diff --git a/deploy/server/notebase/assets/arc-DCwD3PI6.js b/deploy/server/notebase/assets/arc-UQ4BAf3M.js similarity index 98% rename from deploy/server/notebase/assets/arc-DCwD3PI6.js rename to deploy/server/notebase/assets/arc-UQ4BAf3M.js index d3dfbccc94..cf2c64a80b 100644 --- a/deploy/server/notebase/assets/arc-DCwD3PI6.js +++ b/deploy/server/notebase/assets/arc-UQ4BAf3M.js @@ -1 +1 @@ -import{w as ln,c as z}from"./path-CbwjOpE9.js";import{a9 as an,aa as G,ab as O,ac as rn,ad as g,O as on,ae as K,af as _,ag as un,ah as t,ai as sn,aj as tn,ak as fn}from"./mermaid.core-BajzCmnv.js";function cn(l){return l.innerRadius}function gn(l){return l.outerRadius}function yn(l){return l.startAngle}function mn(l){return l.endAngle}function pn(l){return l&&l.padAngle}function dn(l,h,D,j,v,A,B,a){var E=D-l,i=j-h,n=B-v,m=a-A,r=m*E-n*i;if(!(r*ru*u+F*F&&(S=w,k=d),{cx:S,cy:k,x01:-n,y01:-m,x11:S*(v/T-1),y11:k*(v/T-1)}}function vn(){var l=cn,h=gn,D=z(0),j=null,v=yn,A=mn,B=pn,a=null,E=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=A.apply(this,arguments)-rn,C=un(c-f),o=c>f;if(a||(a=n=E()),sg))a.moveTo(0,0);else if(C>on-g)a.moveTo(s*G(f),s*O(f)),a.arc(0,0,s,f,c,!o),r>g&&(a.moveTo(r*G(c),r*O(c)),a.arc(0,0,r,c,f,o));else{var p=f,y=c,R=f,T=c,P=C,I=C,S=B.apply(this,arguments)/2,k=S>g&&(j?+j.apply(this,arguments):K(r*r+s*s)),w=_(un(s-r)/2,+D.apply(this,arguments)),d=w,x=w,e,u;if(k>g){var F=sn(k/r*O(S)),L=sn(k/s*O(S));(P-=F*2)>g?(F*=o?1:-1,R+=F,T-=F):(P=0,R=T=(f+c)/2),(I-=L*2)>g?(L*=o?1:-1,p+=L,y-=L):(I=0,p=y=(f+c)/2)}var H=s*G(p),J=s*O(p),M=r*G(T),N=r*O(T);if(w>g){var Q=s*G(y),U=s*O(y),W=r*G(R),X=r*O(R),q;if(Cg?x>g?(e=V(W,X,H,J,s,x,o),u=V(Q,U,M,N,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),xg)||!(P>g)?a.lineTo(M,N):d>g?(e=V(M,N,Q,U,r,-d,o),u=V(H,J,W,X,r,-d,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),du*u+F*F&&(S=w,k=d),{cx:S,cy:k,x01:-n,y01:-m,x11:S*(v/T-1),y11:k*(v/T-1)}}function vn(){var l=cn,h=gn,D=z(0),j=null,v=yn,A=mn,B=pn,a=null,E=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=A.apply(this,arguments)-rn,C=un(c-f),o=c>f;if(a||(a=n=E()),sg))a.moveTo(0,0);else if(C>on-g)a.moveTo(s*G(f),s*O(f)),a.arc(0,0,s,f,c,!o),r>g&&(a.moveTo(r*G(c),r*O(c)),a.arc(0,0,r,c,f,o));else{var p=f,y=c,R=f,T=c,P=C,I=C,S=B.apply(this,arguments)/2,k=S>g&&(j?+j.apply(this,arguments):K(r*r+s*s)),w=_(un(s-r)/2,+D.apply(this,arguments)),d=w,x=w,e,u;if(k>g){var F=sn(k/r*O(S)),L=sn(k/s*O(S));(P-=F*2)>g?(F*=o?1:-1,R+=F,T-=F):(P=0,R=T=(f+c)/2),(I-=L*2)>g?(L*=o?1:-1,p+=L,y-=L):(I=0,p=y=(f+c)/2)}var H=s*G(p),J=s*O(p),M=r*G(T),N=r*O(T);if(w>g){var Q=s*G(y),U=s*O(y),W=r*G(R),X=r*O(R),q;if(Cg?x>g?(e=V(W,X,H,J,s,x,o),u=V(Q,U,M,N,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),xg)||!(P>g)?a.lineTo(M,N):d>g?(e=V(M,N,Q,U,r,-d,o),u=V(H,J,W,X,r,-d,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),d"u"&&(w.yylloc={});var J=w.yylloc;t.push(J);var me=w.options&&w.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(){var P;return P=u.pop()||w.lex()||C,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}for(var I,M,z,Q,W={},X,B,ae,G;;){if(M=i[i.length-1],this.defaultActions[M]?z=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=_e()),z=m[M]&&m[M][I]),typeof z>"u"||!z.length||!z[0]){var $="";G=[];for(X in m[M])this.terminals_[X]&&X>F&&G.push("'"+this.terminals_[X]+"'");w.showPosition?$="Parse error on line "+(R+1)+`: +import{c as he,V as se,h as H,i as ye,l as S,C as Ee,z as we,j as De,o as ve}from"./mermaid.core-DacimPk4.js";import{c as Ne}from"./clone-CVBlNrV8.js";import{i as ke,c as Ie,b as Oe,d as Te,a as ge,p as ze}from"./edges-e0da2a9e---EYFhqg.js";import{G as Ce}from"./graph-Cryfb0BU.js";import"./index-bOgutTC1.js";import{o as Ae}from"./ordinal-Cboi1Yqb.js";import{c as Re}from"./channel-CFSrZVj_.js";import{s as Be}from"./Tableau10-B-NsZVaP.js";import"./createText-2e5e7dd3-sebYv4r1.js";import"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./init-Gi6I4Gst.js";var le,oe,ee=function(){var e=function(D,o,s,i){for(s=s||{},i=D.length;i--;s[D[i]]=o);return s},a=[1,7],d=[1,13],c=[1,14],n=[1,15],g=[1,19],l=[1,16],f=[1,17],b=[1,18],p=[8,30],x=[8,21,28,29,30,31,32,40,44,47],y=[1,23],T=[1,24],v=[8,15,16,21,28,29,30,31,32,40,44,47],N=[8,15,16,21,27,28,29,30,31,32,40,44,47],E=[1,49],L={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(o,s,i,u,h,t,m){var r=t.length-1;switch(h){case 4:u.getLogger().debug("Rule: separator (NL) ");break;case 5:u.getLogger().debug("Rule: separator (Space) ");break;case 6:u.getLogger().debug("Rule: separator (EOF) ");break;case 7:u.getLogger().debug("Rule: hierarchy: ",t[r-1]),u.setHierarchy(t[r-1]);break;case 8:u.getLogger().debug("Stop NL ");break;case 9:u.getLogger().debug("Stop EOF ");break;case 10:u.getLogger().debug("Stop NL2 ");break;case 11:u.getLogger().debug("Stop EOF2 ");break;case 12:u.getLogger().debug("Rule: statement: ",t[r]),typeof t[r].length=="number"?this.$=t[r]:this.$=[t[r]];break;case 13:u.getLogger().debug("Rule: statement #2: ",t[r-1]),this.$=[t[r-1]].concat(t[r]);break;case 14:u.getLogger().debug("Rule: link: ",t[r],o),this.$={edgeTypeStr:t[r],label:""};break;case 15:u.getLogger().debug("Rule: LABEL link: ",t[r-3],t[r-1],t[r]),this.$={edgeTypeStr:t[r],label:t[r-1]};break;case 18:const R=parseInt(t[r]),Y=u.generateId();this.$={id:Y,type:"space",label:"",width:R,children:[]};break;case 23:u.getLogger().debug("Rule: (nodeStatement link node) ",t[r-2],t[r-1],t[r]," typestr: ",t[r-1].edgeTypeStr);const F=u.edgeStrToEdgeData(t[r-1].edgeTypeStr);this.$=[{id:t[r-2].id,label:t[r-2].label,type:t[r-2].type,directions:t[r-2].directions},{id:t[r-2].id+"-"+t[r].id,start:t[r-2].id,end:t[r].id,label:t[r-1].label,type:"edge",directions:t[r].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions}];break;case 24:u.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[r-1],t[r]),this.$={id:t[r-1].id,label:t[r-1].label,type:u.typeStr2Type(t[r-1].typeStr),directions:t[r-1].directions,widthInColumns:parseInt(t[r],10)};break;case 25:u.getLogger().debug("Rule: nodeStatement (node) ",t[r]),this.$={id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions,widthInColumns:1};break;case 26:u.getLogger().debug("APA123",this?this:"na"),u.getLogger().debug("COLUMNS: ",t[r]),this.$={type:"column-setting",columns:t[r]==="auto"?-1:parseInt(t[r])};break;case 27:u.getLogger().debug("Rule: id-block statement : ",t[r-2],t[r-1]),u.generateId(),this.$={...t[r-2],type:"composite",children:t[r-1]};break;case 28:u.getLogger().debug("Rule: blockStatement : ",t[r-2],t[r-1],t[r]);const C=u.generateId();this.$={id:C,type:"composite",label:"",children:t[r-1]};break;case 29:u.getLogger().debug("Rule: node (NODE_ID separator): ",t[r]),this.$={id:t[r]};break;case 30:u.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[r-1],t[r]),this.$={id:t[r-1],label:t[r].label,typeStr:t[r].typeStr,directions:t[r].directions};break;case 31:u.getLogger().debug("Rule: dirList: ",t[r]),this.$=[t[r]];break;case 32:u.getLogger().debug("Rule: dirList: ",t[r-1],t[r]),this.$=[t[r-1]].concat(t[r]);break;case 33:u.getLogger().debug("Rule: nodeShapeNLabel: ",t[r-2],t[r-1],t[r]),this.$={typeStr:t[r-2]+t[r],label:t[r-1]};break;case 34:u.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[r-3],t[r-2]," #3:",t[r-1],t[r]),this.$={typeStr:t[r-3]+t[r],label:t[r-2],directions:t[r-1]};break;case 35:case 36:this.$={type:"classDef",id:t[r-1].trim(),css:t[r].trim()};break;case 37:this.$={type:"applyClass",id:t[r-1].trim(),styleClass:t[r].trim()};break;case 38:this.$={type:"applyStyles",id:t[r-1].trim(),stylesStr:t[r].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:l,44:f,47:b},{8:[1,20]},e(p,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:a,28:d,29:c,31:n,32:g,40:l,44:f,47:b}),e(x,[2,16],{14:22,15:y,16:T}),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),e(x,[2,21]),e(x,[2,22]),e(v,[2,25],{27:[1,25]}),e(x,[2,26]),{19:26,26:12,32:g},{11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:l,44:f,47:b},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(N,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,32:g},{32:[2,14]},{17:[1,36]},e(v,[2,24]),{11:37,13:4,14:22,15:y,16:T,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:l,44:f,47:b},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(N,[2,30]),{18:[1,43]},{18:[1,44]},e(v,[2,23]),{18:[1,45]},{30:[1,46]},e(x,[2,28]),e(x,[2,35]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),{37:[1,47]},{34:48,35:E},{15:[1,50]},e(x,[2,27]),e(N,[2,33]),{39:[1,51]},{34:52,35:E,39:[2,31]},{32:[2,15]},e(N,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(o,s){if(s.recoverable)this.trace(o);else{var i=new Error(o);throw i.hash=s,i}},parse:function(o){var s=this,i=[0],u=[],h=[null],t=[],m=this.table,r="",R=0,Y=0,F=2,C=1,Le=t.slice.call(arguments,1),w=Object.create(this.lexer),K={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&(K.yy[Z]=this.yy[Z]);w.setInput(o,K.yy),K.yy.lexer=w,K.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var J=w.yylloc;t.push(J);var me=w.options&&w.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(){var P;return P=u.pop()||w.lex()||C,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}for(var I,M,z,Q,W={},X,B,ae,G;;){if(M=i[i.length-1],this.defaultActions[M]?z=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=_e()),z=m[M]&&m[M][I]),typeof z>"u"||!z.length||!z[0]){var $="";G=[];for(X in m[M])this.terminals_[X]&&X>F&&G.push("'"+this.terminals_[X]+"'");w.showPosition?$="Parse error on line "+(R+1)+`: `+w.showPosition()+` Expecting `+G.join(", ")+", got '"+(this.terminals_[I]||I)+"'":$="Parse error on line "+(R+1)+": Unexpected "+(I==C?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError($,{text:w.match,token:this.terminals_[I]||I,line:w.yylineno,loc:J,expected:G})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+I);switch(z[0]){case 1:i.push(I),h.push(w.yytext),t.push(w.yylloc),i.push(z[1]),I=null,Y=w.yyleng,r=w.yytext,R=w.yylineno,J=w.yylloc;break;case 2:if(B=this.productions_[z[1]][1],W.$=h[h.length-B],W._$={first_line:t[t.length-(B||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(B||1)].first_column,last_column:t[t.length-1].last_column},me&&(W._$.range=[t[t.length-(B||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(W,[r,Y,R,K.yy,z[1],h,t].concat(Le)),typeof Q<"u")return Q;B&&(i=i.slice(0,-1*B*2),h=h.slice(0,-1*B),t=t.slice(0,-1*B)),i.push(this.productions_[z[1]][0]),h.push(W.$),t.push(W._$),ae=m[i[i.length-2]][i[i.length-1]],i.push(ae);break;case 3:return!0}}return!0}},A=function(){var D={EOF:1,parseError:function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},setInput:function(o,s){return this.yy=s||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var s=o.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var s=o.length,i=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),s=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/c4Diagram-3d4e48cf-CGakpSmd.js b/deploy/server/notebase/assets/c4Diagram-3d4e48cf-CFkKbH2w.js similarity index 99% rename from deploy/server/notebase/assets/c4Diagram-3d4e48cf-CGakpSmd.js rename to deploy/server/notebase/assets/c4Diagram-3d4e48cf-CFkKbH2w.js index 6ea586cc6b..2b6f633a84 100644 --- a/deploy/server/notebase/assets/c4Diagram-3d4e48cf-CGakpSmd.js +++ b/deploy/server/notebase/assets/c4Diagram-3d4e48cf-CFkKbH2w.js @@ -1,4 +1,4 @@ -import{s as we,g as Oe,a as Te,b as Re,c as Dt,d as ue,e as De,f as wt,h as Nt,l as le,i as Se,w as Pe,j as Kt,k as oe,m as Me}from"./mermaid.core-BajzCmnv.js";import{d as Le,g as Ne}from"./svgDrawCommon-08f97a94-Cb_6H50Z.js";import"./index-CLWgAZNI.js";var Yt=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],L=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],At=[14,42],Vt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],ne=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],mt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(_,x,m,g,T,u,Tt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(At,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(At,[2,14]),e(Vt,[2,16],{12:[1,76]}),e(At,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(At,[2,15]),e(Vt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(At,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ot,[2,21]),e(Ot,[2,22]),e(w,[2,39]),e(ne,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Vt,[2,18]),e(At,[2,38]),e(ne,[2,72]),e(Pt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Tt=this.table,y="",Et=0,se=0,ve=2,ae=1,ke=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(vt.yy[Qt]=this.yy[Qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var Ae=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ce(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ce()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>ve&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`: +import{s as we,g as Oe,a as Te,b as Re,c as Dt,d as ue,e as De,f as wt,h as Nt,l as le,i as Se,w as Pe,j as Kt,k as oe,m as Me}from"./mermaid.core-DacimPk4.js";import{d as Le,g as Ne}from"./svgDrawCommon-08f97a94-CD3fOJ0l.js";import"./index-bOgutTC1.js";var Yt=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],L=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],At=[14,42],Vt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],ne=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],mt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(_,x,m,g,T,u,Tt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(At,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(At,[2,14]),e(Vt,[2,16],{12:[1,76]}),e(At,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(At,[2,15]),e(Vt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(At,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ot,[2,21]),e(Ot,[2,22]),e(w,[2,39]),e(ne,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Vt,[2,18]),e(At,[2,38]),e(ne,[2,72]),e(Pt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Tt=this.table,y="",Et=0,se=0,ve=2,ae=1,ke=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(vt.yy[Qt]=this.yy[Qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var Ae=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ce(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ce()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>ve&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`: `+D.showPosition()+` Expecting `+Lt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Gt="Parse error on line "+(Et+1)+": Unexpected "+(M==ae?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Gt,{text:D.match,token:this.terminals_[M]||M,line:D.yylineno,loc:Ht,expected:Lt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+M);switch(N[0]){case 1:m.push(M),T.push(D.yytext),u.push(D.yylloc),m.push(N[1]),M=null,se=D.yyleng,y=D.yytext,Et=D.yylineno,Ht=D.yylloc;break;case 2:if(z=this.productions_[N[1]][1],Ct.$=T[T.length-z],Ct._$={first_line:u[u.length-(z||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(z||1)].first_column,last_column:u[u.length-1].last_column},Ae&&(Ct._$.range=[u[u.length-(z||1)].range[0],u[u.length-1].range[1]]),qt=this.performAction.apply(Ct,[y,se,Et,vt.yy,N[1],T,u].concat(ke)),typeof qt<"u")return qt;z&&(m=m.slice(0,-1*z*2),T=T.slice(0,-1*z),u=u.slice(0,-1*z)),m.push(this.productions_[N[1]][0]),T.push(Ct.$),u.push(Ct._$),re=Tt[m[m.length-2]][m[m.length-1]],m.push(re);break;case 3:return!0}}return!0}},Ee=function(){var bt={EOF:1,parseError:function(x,m){if(this.yy.parser)this.yy.parser.parseError(x,m);else throw new Error(x)},setInput:function(_,x){return this.yy=x||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var x=_.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},unput:function(_){var x=_.length,m=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_){this.unput(this.match.slice(_))},pastInput:function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _=this.pastInput(),x=new Array(_.length+1).join("-");return _+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/channel--_OxL60w.js b/deploy/server/notebase/assets/channel--_OxL60w.js deleted file mode 100644 index 4f290221dc..0000000000 --- a/deploy/server/notebase/assets/channel--_OxL60w.js +++ /dev/null @@ -1 +0,0 @@ -import{al as o,am as n}from"./mermaid.core-BajzCmnv.js";const l=(a,r)=>o.lang.round(n.parse(a)[r]);export{l as c}; diff --git a/deploy/server/notebase/assets/channel-CFSrZVj_.js b/deploy/server/notebase/assets/channel-CFSrZVj_.js new file mode 100644 index 0000000000..7bcdc5b5fc --- /dev/null +++ b/deploy/server/notebase/assets/channel-CFSrZVj_.js @@ -0,0 +1 @@ +import{al as o,am as n}from"./mermaid.core-DacimPk4.js";const l=(a,r)=>o.lang.round(n.parse(a)[r]);export{l as c}; diff --git a/deploy/server/notebase/assets/classDiagram-70f12bd4-BwtI_QSR.js b/deploy/server/notebase/assets/classDiagram-70f12bd4-i-AU2IWv.js similarity index 97% rename from deploy/server/notebase/assets/classDiagram-70f12bd4-BwtI_QSR.js rename to deploy/server/notebase/assets/classDiagram-70f12bd4-i-AU2IWv.js index f9471890bf..0a616996e5 100644 --- a/deploy/server/notebase/assets/classDiagram-70f12bd4-BwtI_QSR.js +++ b/deploy/server/notebase/assets/classDiagram-70f12bd4-i-AU2IWv.js @@ -1,2 +1,2 @@ -import{p as A,d as S,s as G}from"./styles-9a916d00-BHajR6jW.js";import{c as v,l as y,h as B,i as W,D as $,y as M,E as I}from"./mermaid.core-BajzCmnv.js";import{G as O}from"./graph-CNSoCPH1.js";import{l as P}from"./layout-Cg9I2QIy.js";import"./index-CLWgAZNI.js";import{l as X}from"./line-CH9gKq5B.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(` +import{p as A,d as S,s as G}from"./styles-9a916d00-DJJSKZVB.js";import{c as v,l as y,h as B,i as W,D as $,y as M,E as I}from"./mermaid.core-DacimPk4.js";import{G as O}from"./graph-Cryfb0BU.js";import{l as P}from"./layout-DPudLDYQ.js";import"./index-bOgutTC1.js";import{l as X}from"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(` `);n.forEach(function(x){y.debug(`Adding line: ${x}`),c.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const r=s.node().getBBox(),h=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",r.width+2*t.padding).attr("height",r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return c.node().childNodes.forEach(function(x){x.setAttribute("x",(h-x.getBBox().width)/2)}),g.width=h,g.height=r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,g},_=function(i,a,t,o){const{displayText:p,cssStyle:g}=a.getDisplayDetails(),s=i.append("tspan").attr("x",o.padding).text(p);g!==""&&s.attr("style",a.cssStyle),t||s.attr("dy",o.textHeight)},N={getClassTitleString:C,drawClass:J,drawEdge:Y,drawNote:Z};let T={};const L=20,E=function(i){const a=Object.entries(T).find(t=>t[1].label===i);if(a)return a[0]},R=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},F=function(i,a,t,o){const p=v().class;T={},y.info("Rendering diagram "+i);const g=v().securityLevel;let s;g==="sandbox"&&(s=B("#i"+a));const c=g==="sandbox"?B(s.nodes()[0].contentDocument.body):B("body"),n=c.select(`[id='${a}']`);R(n);const r=new O({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const f=o.db.getClasses(),h=Object.keys(f);for(const e of h){const d=f[e],l=N.drawClass(n,d,p,o);T[l.id]=l,r.setNode(l.id,l),y.info("Org height: "+l.height)}o.db.getRelations().forEach(function(e){y.info("tjoho"+E(e.id1)+E(e.id2)+JSON.stringify(e)),r.setEdge(E(e.id1),E(e.id2),{relation:e},e.title||"DEFAULT")}),o.db.getNotes().forEach(function(e){y.debug(`Adding note: ${JSON.stringify(e)}`);const d=N.drawNote(n,e,p,o);T[d.id]=d,r.setNode(d.id,d),e.class&&e.class in f&&r.setEdge(e.id,E(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),P(r),r.nodes().forEach(function(e){e!==void 0&&r.node(e)!==void 0&&(y.debug("Node "+e+": "+JSON.stringify(r.node(e))),c.select("#"+(o.db.lookUpDomId(e)||e)).attr("transform","translate("+(r.node(e).x-r.node(e).width/2)+","+(r.node(e).y-r.node(e).height/2)+" )"))}),r.edges().forEach(function(e){e!==void 0&&r.edge(e)!==void 0&&(y.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r.edge(e))),N.drawEdge(n,r.edge(e),r.edge(e).relation,p,o))});const u=n.node().getBBox(),m=u.width+L*2,w=u.height+L*2;W(n,w,m,p.useMaxWidth);const k=`${u.x-L} ${u.y-L} ${m} ${w}`;y.debug(`viewBox ${k}`),n.attr("viewBox",k)},U={draw:F},et={parser:A,db:S,renderer:U,styles:G,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,S.clear()}};export{et as diagram}; diff --git a/deploy/server/notebase/assets/classDiagram-v2-f2320105-CNrZSAbx.js b/deploy/server/notebase/assets/classDiagram-v2-f2320105-BaXoILhn.js similarity index 92% rename from deploy/server/notebase/assets/classDiagram-v2-f2320105-CNrZSAbx.js rename to deploy/server/notebase/assets/classDiagram-v2-f2320105-BaXoILhn.js index 47b44ffeb6..8085b61878 100644 --- a/deploy/server/notebase/assets/classDiagram-v2-f2320105-CNrZSAbx.js +++ b/deploy/server/notebase/assets/classDiagram-v2-f2320105-BaXoILhn.js @@ -1,2 +1,2 @@ -import{p as M,d as _,s as R}from"./styles-9a916d00-BHajR6jW.js";import{l as d,c,h as w,y as B,t as G,o as D,q as E,n as C,j as A}from"./mermaid.core-BajzCmnv.js";import{G as q}from"./graph-CNSoCPH1.js";import{r as z}from"./index-3862675e-C5iJKLK2.js";import"./index-CLWgAZNI.js";import"./layout-Cg9I2QIy.js";import"./clone-CJLsyeCN.js";import"./edges-e0da2a9e-121Kky2V.js";import"./createText-2e5e7dd3-CXwUql3o.js";import"./line-CH9gKq5B.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const S=s=>A.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,t,y,a){const e=Object.keys(s);d.info("keys:",e),d.info(s),e.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};t.setNode(l.id,p),$(l.classes,t,y,a,l.id),d.info("setNode",p)})},$=function(s,t,y,a,e){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==e).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),f=D(n.styles),h=n.label??n.id,u=0,b={labelStyle:f.labelStyle,shape:"class_box",labelText:S(h),classData:n,rx:u,ry:u,class:p,style:f.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,e)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};t.setNode(n.id,b),e&&t.setParent(n.id,e),d.info("setNode",b)})},F=function(s,t,y,a){d.info(s),s.forEach(function(e,i){var o,r;const l=e,n="",p={labelStyle:"",style:""},f=l.text,h=0,m={labelStyle:p.labelStyle,shape:"note",labelText:S(f),noteData:l,rx:h,ry:h,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(t.setNode(l.id,m),d.info("setNode",m),!l.class||!(l.class in a))return;const b=y+i,x={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,C)};t.setEdge(l.id,l.class,x,b)})},H=function(s,t){const y=c().flowchart;let a=0;s.forEach(function(e){var i;a++;const o={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:`id_${e.id1}_${e.id2}_${a}`,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:N(e.relation.type1),arrowTypeEnd:N(e.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,C)};if(d.info(o,e),e.style!==void 0){const r=D(e.style);o.style=r.style,o.labelStyle=r.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label=''+e.text+""):(o.labelType="text",o.label=e.text.replace(A.lineBreakRegex,` +import{p as M,d as _,s as R}from"./styles-9a916d00-DJJSKZVB.js";import{l as d,c,h as w,y as B,t as G,o as D,q as E,n as C,j as A}from"./mermaid.core-DacimPk4.js";import{G as q}from"./graph-Cryfb0BU.js";import{r as z}from"./index-3862675e-BtvAzWCw.js";import"./index-bOgutTC1.js";import"./layout-DPudLDYQ.js";import"./clone-CVBlNrV8.js";import"./edges-e0da2a9e---EYFhqg.js";import"./createText-2e5e7dd3-sebYv4r1.js";import"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const S=s=>A.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,t,y,a){const e=Object.keys(s);d.info("keys:",e),d.info(s),e.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};t.setNode(l.id,p),$(l.classes,t,y,a,l.id),d.info("setNode",p)})},$=function(s,t,y,a,e){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==e).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),f=D(n.styles),h=n.label??n.id,u=0,b={labelStyle:f.labelStyle,shape:"class_box",labelText:S(h),classData:n,rx:u,ry:u,class:p,style:f.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,e)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};t.setNode(n.id,b),e&&t.setParent(n.id,e),d.info("setNode",b)})},F=function(s,t,y,a){d.info(s),s.forEach(function(e,i){var o,r;const l=e,n="",p={labelStyle:"",style:""},f=l.text,h=0,m={labelStyle:p.labelStyle,shape:"note",labelText:S(f),noteData:l,rx:h,ry:h,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(t.setNode(l.id,m),d.info("setNode",m),!l.class||!(l.class in a))return;const b=y+i,x={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,C)};t.setEdge(l.id,l.class,x,b)})},H=function(s,t){const y=c().flowchart;let a=0;s.forEach(function(e){var i;a++;const o={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:`id_${e.id1}_${e.id2}_${a}`,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:N(e.relation.type1),arrowTypeEnd:N(e.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,C)};if(d.info(o,e),e.style!==void 0){const r=D(e.style);o.style=r.style,o.labelStyle=r.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label=''+e.text+""):(o.labelType="text",o.label=e.text.replace(A.lineBreakRegex,` `),e.style===void 0&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:"))),t.setEdge(e.id1,e.id2,o,a)})},V=function(s){k={...k,...s}},W=async function(s,t,y,a){d.info("Drawing class - ",t);const e=c().flowchart??c().class,i=c().securityLevel;d.info("config:",e);const o=(e==null?void 0:e.nodeSpacing)??50,r=(e==null?void 0:e.rankSpacing)??50,l=new q({multigraph:!0,compound:!0}).setGraph({rankdir:a.db.getDirection(),nodesep:o,ranksep:r,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=a.db.getNamespaces(),p=a.db.getClasses(),f=a.db.getRelations(),h=a.db.getNotes();d.info(f),P(n,l,t,a),$(p,l,t,a),H(f,l),F(h,l,f.length+1,p);let u;i==="sandbox"&&(u=w("#i"+t));const m=i==="sandbox"?w(u.nodes()[0].contentDocument.body):w("body"),b=m.select(`[id="${t}"]`),x=m.select("#"+t+" g");if(await z(x,l,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),B.insertTitle(b,"classTitleText",(e==null?void 0:e.titleTopMargin)??5,a.db.getDiagramTitle()),G(l,b,e==null?void 0:e.diagramPadding,e==null?void 0:e.useMaxWidth),!(e!=null&&e.htmlLabels)){const T=i==="sandbox"?u.nodes()[0].contentDocument:document,I=T.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const g of I){const L=g.getBBox(),v=T.createElementNS("http://www.w3.org/2000/svg","rect");v.setAttribute("rx",0),v.setAttribute("ry",0),v.setAttribute("width",L.width),v.setAttribute("height",L.height),g.insertBefore(v,g.firstChild)}}};function N(s){let t;switch(s){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}const J={setConf:V,draw:W},se={parser:M,db:_,renderer:J,styles:R,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,_.clear()}};export{se as diagram}; diff --git a/deploy/server/notebase/assets/clone-CJLsyeCN.js b/deploy/server/notebase/assets/clone-CJLsyeCN.js deleted file mode 100644 index bb2ad3f20b..0000000000 --- a/deploy/server/notebase/assets/clone-CJLsyeCN.js +++ /dev/null @@ -1 +0,0 @@ -import{c as r}from"./graph-CNSoCPH1.js";var e=4;function a(o){return r(o,e)}export{a as c}; diff --git a/deploy/server/notebase/assets/clone-CVBlNrV8.js b/deploy/server/notebase/assets/clone-CVBlNrV8.js new file mode 100644 index 0000000000..96a6a304fd --- /dev/null +++ b/deploy/server/notebase/assets/clone-CVBlNrV8.js @@ -0,0 +1 @@ +import{c as r}from"./graph-Cryfb0BU.js";var e=4;function a(o){return r(o,e)}export{a as c}; diff --git a/deploy/server/notebase/assets/createText-2e5e7dd3-CXwUql3o.js b/deploy/server/notebase/assets/createText-2e5e7dd3-sebYv4r1.js similarity index 96% rename from deploy/server/notebase/assets/createText-2e5e7dd3-CXwUql3o.js rename to deploy/server/notebase/assets/createText-2e5e7dd3-sebYv4r1.js index fd1f66b071..030f29195b 100644 --- a/deploy/server/notebase/assets/createText-2e5e7dd3-CXwUql3o.js +++ b/deploy/server/notebase/assets/createText-2e5e7dd3-sebYv4r1.js @@ -1,4 +1,4 @@ -import{l as b,as as T,at as W}from"./mermaid.core-BajzCmnv.js";import{a5 as x}from"./index-CLWgAZNI.js";function E(n){const t=n.replace(/\n{2,}/g,` +import{l as b,as as T,at as W}from"./mermaid.core-DacimPk4.js";import{a5 as x}from"./index-bOgutTC1.js";function E(n){const t=n.replace(/\n{2,}/g,` `);return W(t)}function w(n){const t=E(n),{children:e}=x(t),o=[[]];let i=0;function s(r,a="normal"){r.type==="text"?r.value.split(` `).forEach((l,p)=>{p!==0&&(i++,o.push([])),l.split(" ").forEach(f=>{f&&o[i].push({content:f,type:a})})}):(r.type==="strong"||r.type==="emphasis")&&r.children.forEach(c=>{s(c,r.type)})}return e.forEach(r=>{r.type==="paragraph"&&r.children.forEach(a=>{s(a)})}),o}function S(n){const{children:t}=x(n);function e(o){return o.type==="text"?o.value.replace(/\n/g,"
"):o.type==="strong"?`${o.children.map(e).join("")}`:o.type==="emphasis"?`${o.children.map(e).join("")}`:o.type==="paragraph"?`

${o.children.map(e).join("")}

`:`Unsupported markdown: ${o.type}`}return t.map(e).join("")}function j(n){return Intl.Segmenter?[...new Intl.Segmenter().segment(n)].map(t=>t.segment):[...n]}function v(n,t){const e=j(t.content);return g(n,[],e,t.type)}function g(n,t,e,o){if(e.length===0)return[{content:t.join(""),type:o},{content:"",type:o}];const[i,...s]=e,r=[...t,i];return n([{content:r.join(""),type:o}])?g(n,r,s,o):(t.length===0&&i&&(t.push(i),e.shift()),[{content:t.join(""),type:o},{content:e.join(""),type:o}])}function L(n,t){if(n.some(({content:e})=>e.includes(` `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return h(n,t)}function h(n,t,e=[],o=[]){if(n.length===0)return o.length>0&&e.push(o),e.length>0?e:[];let i="";n[0].content===" "&&(i=" ",n.shift());const s=n.shift()??{content:" ",type:"normal"},r=[...o];if(i!==""&&r.push({content:i,type:"normal"}),r.push(s),t(r))return h(n,t,e,r);if(o.length>0)e.push(o),n.unshift(s);else if(s.content){const[a,c]=v(t,s);e.push([a]),c.content&&n.unshift(c)}return h(n,t,e)}function $(n,t){t&&n.attr("style",t)}function k(n,t,e,o,i=!1){const s=n.append("foreignObject"),r=s.append("xhtml:div"),a=t.label,c=t.isNode?"nodeLabel":"edgeLabel";r.html(` diff --git a/deploy/server/notebase/assets/edges-e0da2a9e-121Kky2V.js b/deploy/server/notebase/assets/edges-e0da2a9e---EYFhqg.js similarity index 99% rename from deploy/server/notebase/assets/edges-e0da2a9e-121Kky2V.js rename to deploy/server/notebase/assets/edges-e0da2a9e---EYFhqg.js index c5079cb3d4..e755d14344 100644 --- a/deploy/server/notebase/assets/edges-e0da2a9e-121Kky2V.js +++ b/deploy/server/notebase/assets/edges-e0da2a9e---EYFhqg.js @@ -1,4 +1,4 @@ -import{p as H,c as b,d as q,as as Q,h as E,l as g,y as j,D as lt}from"./mermaid.core-BajzCmnv.js";import{a as st}from"./createText-2e5e7dd3-CXwUql3o.js";import{l as ct}from"./line-CH9gKq5B.js";const ht=(e,t,a,i)=>{t.forEach(l=>{wt[l](e,a,i)})},ot=(e,t,a)=>{g.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},yt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ft=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},xt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},dt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},gt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ut=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},bt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},wt={extension:ot,composition:yt,aggregation:pt,dependency:ft,lollipop:xt,point:dt,circle:gt,cross:ut,barb:bt},hr=ht;function mt(e,t){t&&e.attr("style",t)}function kt(e){const t=E(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=t.append("xhtml:div"),i=e.label,l=e.isNode?"nodeLabel":"edgeLabel";return a.html('"+i+""),mt(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const vt=(e,t,a,i)=>{let l=e||"";if(typeof l=="object"&&(l=l[0]),H(b().flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"
"),g.debug("vertexText"+l);const r={isNode:i,label:Q(l).replace(/fa[blrs]?:fa-[\w-]+/g,n=>``),labelStyle:t.replace("fill:","color:")};return kt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof l=="string"?s=l.split(/\\n|\n|/gi):Array.isArray(l)?s=l:s=[];for(const n of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),a?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}return r}},R=vt,M=async(e,t,a,i)=>{let l;const r=t.useHtmlLabels||H(b().flowchart.htmlLabels);a?l=a:l="node default";const s=e.insert("g").attr("class",l).attr("id",t.domId||t.id),n=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=n.node();let h;t.labelType==="markdown"?h=st(n,q(Q(c),b()),{useHtmlLabels:r,width:t.width||b().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(R(q(Q(c),b()),t.labelStyle,!1,i));let y=h.getBBox();const f=t.padding/2;if(H(b().flowchart.htmlLabels)){const p=h.children[0],d=E(h),k=p.getElementsByTagName("img");if(k){const x=c.replace(/]*>/g,"").trim()==="";await Promise.all([...k].map(u=>new Promise(S=>{function B(){if(u.style.display="flex",u.style.flexDirection="column",x){const C=b().fontSize?b().fontSize:window.getComputedStyle(document.body).fontSize,D=parseInt(C,10)*5+"px";u.style.minWidth=D,u.style.maxWidth=D}else u.style.width="100%";S(u)}setTimeout(()=>{u.complete&&B()}),u.addEventListener("error",B),u.addEventListener("load",B)})))}y=p.getBoundingClientRect(),d.attr("width",y.width),d.attr("height",y.height)}return r?n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):n.attr("transform","translate(0, "+-y.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:s,bbox:y,halfPadding:f,label:n}},m=(e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height};function I(e,t,a,i){return e.insert("polygon",":first-child").attr("points",i.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}function Lt(e,t){return e.intersect(t)}function it(e,t,a,i){var l=e.x,r=e.y,s=l-i.x,n=r-i.y,c=Math.sqrt(t*t*n*n+a*a*s*s),o=Math.abs(t*a*s/c);i.x0}function Tt(e,t,a){var i=e.x,l=e.y,r=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){s=Math.min(s,d.x),n=Math.min(n,d.y)}):(s=Math.min(s,t.x),n=Math.min(n,t.y));for(var c=i-e.width/2-s,o=l-e.height/2-n,h=0;h1&&r.sort(function(d,k){var x=d.x-a.x,u=d.y-a.y,S=Math.sqrt(x*x+u*u),B=k.x-a.x,C=k.y-a.y,X=Math.sqrt(B*B+C*C);return S{var a=e.x,i=e.y,l=t.x-a,r=t.y-i,s=e.width/2,n=e.height/2,c,o;return Math.abs(r)*s>Math.abs(l)*n?(r<0&&(n=-n),c=r===0?0:n*l/r,o=n):(l<0&&(s=-s),c=s,o=l===0?0:s*r/l),{x:a+c,y:i+o}},Et=Bt,w={node:Lt,circle:St,ellipse:it,polygon:Tt,rect:Et},Ct=async(e,t)=>{t.useHtmlLabels||b().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:i,bbox:l,halfPadding:r}=await M(e,t,"node "+t.classes,!0);g.info("Classes = ",t.classes);const s=i.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-r).attr("y",-l.height/2-r).attr("width",l.width+t.padding).attr("height",l.height+t.padding),m(t,s),t.intersect=function(n){return w.rect(t,n)},i},$t=Ct,_t=e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},Rt=(e,t,a)=>{const i=_t(e),l=2,r=t.height+2*a.padding,s=r/l,n=t.width+2*s+a.padding,c=a.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:s,y:0},{x:n/2,y:2*c},{x:n-s,y:0},{x:n,y:0},{x:n,y:-r/3},{x:n+2*c,y:-r/2},{x:n,y:-2*r/3},{x:n,y:-r},{x:n-s,y:-r},{x:n/2,y:-r-2*c},{x:s,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*c,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:s,y:-r},{x:n-s,y:-r},{x:n,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:n,y:-r+s},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:n,y:0},{x:0,y:-s},{x:0,y:-r+s},{x:n,y:-r}]:i.has("right")&&i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:n,y:-s},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:n,y:0},{x:0,y:-s},{x:n,y:-r}]:i.has("left")&&i.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-r}]:i.has("right")?[{x:s,y:-c},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r+c}]:i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c}]:i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:[{x:0,y:0}]},K=e=>e?" "+e:"",_=(e,t)=>`node default${K(e.classes)} ${K(e.class)}`,P=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=l+r,n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];g.info("Question main (Circle)");const c=I(a,s,s,n);return c.attr("style",t.style),m(t,c),t.intersect=function(o){return g.warn("Intersect called"),w.polygon(t,n,o)},a},Ht=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,l=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return a.insert("polygon",":first-child").attr("points",l.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return w.circle(t,14,s)},a},It=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=4,r=i.height+t.padding,s=r/l,n=i.width+2*s+t.padding,c=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}],o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Nt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,void 0,!0),l=2,r=i.height+2*t.padding,s=r/l,n=i.width+2*s+t.padding,c=Rt(t.directions,i,t),o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Ot=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return I(a,l,r,s).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(c){return w.polygon(t,s,c)},a},Wt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Xt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Yt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Dt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},At=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},jt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=l/2,s=r/(2.5+l/50),n=i.height+s+t.padding,c="M 0,"+s+" a "+r+","+s+" 0,0,0 "+l+" 0 a "+r+","+s+" 0,0,0 "+-l+" 0 l 0,"+n+" a "+r+","+s+" 0,0,0 "+l+" 0 l 0,"+-n,o=a.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-l/2+","+-(n/2+s)+")");return m(t,o),t.intersect=function(h){const y=w.rect(t,h),f=y.x-t.x;if(r!=0&&(Math.abs(f)t.height/2-s)){let p=s*s*(1-f*f/(r*r));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),y.y+=p}return y},a},Ut=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes+" "+t.class,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},zt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},Zt=async(e,t)=>{const{shapeSvg:a}=await M(e,t,"label",!0);g.trace("Classes = ",t.class);const i=a.insert("rect",":first-child"),l=0,r=0;if(i.attr("width",l).attr("height",r),a.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(V(i,t.props.borders,l,r),s.delete("borders")),s.forEach(n=>{g.warn(`Unknown node property ${n}`)})}return m(t,i),t.intersect=function(s){return w.rect(t,s)},a};function V(e,t,a,i){const l=[],r=n=>{l.push(n,0)},s=n=>{l.push(0,n)};t.includes("t")?(g.debug("add top border"),r(a)):s(a),t.includes("r")?(g.debug("add right border"),r(i)):s(i),t.includes("b")?(g.debug("add bottom border"),r(a)):s(a),t.includes("l")?(g.debug("add left border"),r(i)):s(i),e.attr("stroke-dasharray",l.join(" "))}const Gt=(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),r=i.insert("line"),s=i.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,g.info("Label text abc79",c,n,typeof n=="object");const o=s.node().appendChild(R(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(b().flowchart.htmlLabels)){const k=o.children[0],x=E(o);h=k.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}g.info("Text 2",n);const y=n.slice(1,n.length);let f=o.getBBox();const p=s.node().appendChild(R(y.join?y.join("
"):y,t.labelStyle,!0,!0));if(H(b().flowchart.htmlLabels)){const k=p.children[0],x=E(p);h=k.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}const d=t.padding/2;return E(p).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+d+5)+")"),E(o).attr("transform","translate( "+(h.width{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.height+t.padding,r=i.width+l/4+t.padding,s=a.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return m(t,s),t.intersect=function(n){return w.rect(t,n)},a},Qt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t),!0),r=a.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("Circle main"),m(t,r),t.intersect=function(s){return g.info("Circle intersect",t,i.width/2+l,s),w.circle(t,i.width/2+l,s)},a},Vt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t),!0),r=5,s=a.insert("g",":first-child"),n=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l+r).attr("width",i.width+t.padding+r*2).attr("height",i.height+t.padding+r*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("DoubleCircle main"),m(t,n),t.intersect=function(o){return g.info("DoubleCircle intersect",t,i.width/2+l+r,o),w.circle(t,i.width/2+l+r,o)},a},qt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Jt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),m(t,i),t.intersect=function(l){return w.circle(t,7,l)},a},tt=(e,t,a)=>{const i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;a==="LR"&&(l=10,r=70);const s=i.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return m(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return w.rect(t,n)},i},Kt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child"),l=a.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),m(t,l),t.intersect=function(r){return w.circle(t,7,r)},a},Pt=(e,t)=>{const a=t.padding/2,i=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,y=i;const f=s.insert("g").attr("class","label");let p=0;const d=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",x=f.node().appendChild(R(k,t.labelStyle,!0,!0));let u=x.getBBox();if(H(b().flowchart.htmlLabels)){const v=x.children[0],L=E(x);u=v.getBoundingClientRect(),L.attr("width",u.width),L.attr("height",u.height)}t.classData.annotations[0]&&(y+=u.height+i,h+=u.width);let S=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(b().flowchart.htmlLabels?S+="<"+t.classData.type+">":S+="<"+t.classData.type+">");const B=f.node().appendChild(R(S,t.labelStyle,!0,!0));E(B).attr("class","classTitle");let C=B.getBBox();if(H(b().flowchart.htmlLabels)){const v=B.children[0],L=E(B);C=v.getBoundingClientRect(),L.attr("width",C.width),L.attr("height",C.height)}y+=C.height+i,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(//g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const F=N.children[0],A=E(N);$=F.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,X.push(N)}),y+=l;const D=[];if(t.classData.methods.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(//g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const F=N.children[0],A=E(N);$=F.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,D.push(N)}),y+=l,d){let v=(h-u.width)/2;E(x).attr("transform","translate( "+(-1*h/2+v)+", "+-1*y/2+")"),p=u.height+i}let nt=(h-C.width)/2;return E(B).attr("transform","translate( "+(-1*h/2+nt)+", "+(-1*y/2+p)+")"),p+=C.height+i,c.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,X.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p+l/2)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),p+=l,o.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,D.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),n.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-a).attr("y",-(y/2)-a).attr("width",h+t.padding).attr("height",y+t.padding),m(t,n),t.intersect=function(v){return w.rect(t,v)},s},rt={rhombus:P,composite:zt,question:P,rect:Ut,labelRect:Zt,rectWithTitle:Gt,choice:Ht,circle:Qt,doublecircle:Vt,stadium:Ft,hexagon:It,block_arrow:Nt,rect_left_inv_arrow:Ot,lean_right:Wt,lean_left:Xt,trapezoid:Yt,inv_trapezoid:Dt,rect_right_inv_arrow:At,cylinder:jt,start:Jt,end:Kt,note:$t,subroutine:qt,fork:tt,join:tt,class_box:Pt};let Y={};const or=async(e,t,a)=>{let i,l;if(t.link){let r;b().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await rt[t.shape](i,t,a)}else l=await rt[t.shape](e,t,a),i=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),i.attr("data-node","true"),i.attr("data-id",t.id),Y[t.id]=i,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),i},yr=(e,t)=>{Y[t.id]=e},pr=()=>{Y={}},fr=e=>{const t=Y[e.id];g.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},tr=({flowchart:e})=>{var t,a;const i=((t=e==null?void 0:e.subGraphTitleMargin)==null?void 0:t.top)??0,l=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,r=i+l;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function U(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Z(e),t=Z(t);const[a,i]=[e.x,e.y],[l,r]=[t.x,t.y],s=l-a,n=r-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}const Z=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,rr=e=>({x:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaX:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.cos(r)*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaX:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.cos(r)*(s>=0?1:-1)}return Z(t).x+l},y:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaY:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.abs(Math.sin(r))*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaY:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.abs(Math.sin(r))*(s>=0?1:-1)}return Z(t).y+l}}),ar=(e,t,a,i,l)=>{t.arrowTypeStart&&at(e,"start",t.arrowTypeStart,a,i,l),t.arrowTypeEnd&&at(e,"end",t.arrowTypeEnd,a,i,l)},er={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},at=(e,t,a,i,l,r)=>{const s=er[a];if(!s){g.warn(`Unknown arrow type: ${a}`);return}const n=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${l}_${r}-${s}${n})`)};let G={},T={};const xr=()=>{G={},T={}},dr=(e,t)=>{const a=H(b().flowchart.htmlLabels),i=t.labelType==="markdown"?st(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0}):R(t.label,t.labelStyle),l=e.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(i);let s=i.getBBox();if(a){const c=i.children[0],o=E(i);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),G[t.id]=l,t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){const c=R(t.startLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startLeft=o,z(n,t.startLabelLeft)}if(t.startLabelRight){const c=R(t.startLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=o.node().appendChild(c),h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startRight=o,z(n,t.startLabelRight)}if(t.endLabelLeft){const c=R(t.endLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endLeft=o,z(n,t.endLabelLeft)}if(t.endLabelRight){const c=R(t.endLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endRight=o,z(n,t.endLabelRight)}return i};function z(e,t){b().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const gr=(e,t)=>{g.debug("Moving label abc88 ",e.id,e.label,G[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const i=b(),{subGraphTitleTotalMargin:l}=tr(i);if(e.label){const r=G[e.id];let s=e.x,n=e.y;if(a){const c=j.calcLabelPosition(a);g.debug("Moving label "+e.label+" from (",s,",",n,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,n=c.y)}r.attr("transform",`translate(${s}, ${n+l/2})`)}if(e.startLabelLeft){const r=T[e.id].startLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.startLabelRight){const r=T[e.id].startRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelLeft){const r=T[e.id].endLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelRight){const r=T[e.id].endRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}},sr=(e,t)=>{const a=e.x,i=e.y,l=Math.abs(t.x-a),r=Math.abs(t.y-i),s=e.width/2,n=e.height/2;return l>=s||r>=n},ir=(e,t,a)=>{g.debug(`intersection calc abc89: +import{p as H,c as b,d as q,as as Q,h as E,l as g,y as j,D as lt}from"./mermaid.core-DacimPk4.js";import{a as st}from"./createText-2e5e7dd3-sebYv4r1.js";import{l as ct}from"./line-Dno7JaPM.js";const ht=(e,t,a,i)=>{t.forEach(l=>{wt[l](e,a,i)})},ot=(e,t,a)=>{g.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},yt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ft=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},xt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},dt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},gt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ut=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},bt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},wt={extension:ot,composition:yt,aggregation:pt,dependency:ft,lollipop:xt,point:dt,circle:gt,cross:ut,barb:bt},hr=ht;function mt(e,t){t&&e.attr("style",t)}function kt(e){const t=E(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=t.append("xhtml:div"),i=e.label,l=e.isNode?"nodeLabel":"edgeLabel";return a.html('"+i+""),mt(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const vt=(e,t,a,i)=>{let l=e||"";if(typeof l=="object"&&(l=l[0]),H(b().flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"
"),g.debug("vertexText"+l);const r={isNode:i,label:Q(l).replace(/fa[blrs]?:fa-[\w-]+/g,n=>``),labelStyle:t.replace("fill:","color:")};return kt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof l=="string"?s=l.split(/\\n|\n|/gi):Array.isArray(l)?s=l:s=[];for(const n of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),a?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}return r}},R=vt,M=async(e,t,a,i)=>{let l;const r=t.useHtmlLabels||H(b().flowchart.htmlLabels);a?l=a:l="node default";const s=e.insert("g").attr("class",l).attr("id",t.domId||t.id),n=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=n.node();let h;t.labelType==="markdown"?h=st(n,q(Q(c),b()),{useHtmlLabels:r,width:t.width||b().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(R(q(Q(c),b()),t.labelStyle,!1,i));let y=h.getBBox();const f=t.padding/2;if(H(b().flowchart.htmlLabels)){const p=h.children[0],d=E(h),k=p.getElementsByTagName("img");if(k){const x=c.replace(/]*>/g,"").trim()==="";await Promise.all([...k].map(u=>new Promise(S=>{function B(){if(u.style.display="flex",u.style.flexDirection="column",x){const C=b().fontSize?b().fontSize:window.getComputedStyle(document.body).fontSize,D=parseInt(C,10)*5+"px";u.style.minWidth=D,u.style.maxWidth=D}else u.style.width="100%";S(u)}setTimeout(()=>{u.complete&&B()}),u.addEventListener("error",B),u.addEventListener("load",B)})))}y=p.getBoundingClientRect(),d.attr("width",y.width),d.attr("height",y.height)}return r?n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):n.attr("transform","translate(0, "+-y.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:s,bbox:y,halfPadding:f,label:n}},m=(e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height};function I(e,t,a,i){return e.insert("polygon",":first-child").attr("points",i.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}function Lt(e,t){return e.intersect(t)}function it(e,t,a,i){var l=e.x,r=e.y,s=l-i.x,n=r-i.y,c=Math.sqrt(t*t*n*n+a*a*s*s),o=Math.abs(t*a*s/c);i.x0}function Tt(e,t,a){var i=e.x,l=e.y,r=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){s=Math.min(s,d.x),n=Math.min(n,d.y)}):(s=Math.min(s,t.x),n=Math.min(n,t.y));for(var c=i-e.width/2-s,o=l-e.height/2-n,h=0;h1&&r.sort(function(d,k){var x=d.x-a.x,u=d.y-a.y,S=Math.sqrt(x*x+u*u),B=k.x-a.x,C=k.y-a.y,X=Math.sqrt(B*B+C*C);return S{var a=e.x,i=e.y,l=t.x-a,r=t.y-i,s=e.width/2,n=e.height/2,c,o;return Math.abs(r)*s>Math.abs(l)*n?(r<0&&(n=-n),c=r===0?0:n*l/r,o=n):(l<0&&(s=-s),c=s,o=l===0?0:s*r/l),{x:a+c,y:i+o}},Et=Bt,w={node:Lt,circle:St,ellipse:it,polygon:Tt,rect:Et},Ct=async(e,t)=>{t.useHtmlLabels||b().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:i,bbox:l,halfPadding:r}=await M(e,t,"node "+t.classes,!0);g.info("Classes = ",t.classes);const s=i.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-r).attr("y",-l.height/2-r).attr("width",l.width+t.padding).attr("height",l.height+t.padding),m(t,s),t.intersect=function(n){return w.rect(t,n)},i},$t=Ct,_t=e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},Rt=(e,t,a)=>{const i=_t(e),l=2,r=t.height+2*a.padding,s=r/l,n=t.width+2*s+a.padding,c=a.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:s,y:0},{x:n/2,y:2*c},{x:n-s,y:0},{x:n,y:0},{x:n,y:-r/3},{x:n+2*c,y:-r/2},{x:n,y:-2*r/3},{x:n,y:-r},{x:n-s,y:-r},{x:n/2,y:-r-2*c},{x:s,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*c,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:s,y:-r},{x:n-s,y:-r},{x:n,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:n,y:-r+s},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:n,y:0},{x:0,y:-s},{x:0,y:-r+s},{x:n,y:-r}]:i.has("right")&&i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:n,y:-s},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:n,y:0},{x:0,y:-s},{x:n,y:-r}]:i.has("left")&&i.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-r}]:i.has("right")?[{x:s,y:-c},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r+c}]:i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c}]:i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:[{x:0,y:0}]},K=e=>e?" "+e:"",_=(e,t)=>`node default${K(e.classes)} ${K(e.class)}`,P=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=l+r,n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];g.info("Question main (Circle)");const c=I(a,s,s,n);return c.attr("style",t.style),m(t,c),t.intersect=function(o){return g.warn("Intersect called"),w.polygon(t,n,o)},a},Ht=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,l=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return a.insert("polygon",":first-child").attr("points",l.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return w.circle(t,14,s)},a},It=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=4,r=i.height+t.padding,s=r/l,n=i.width+2*s+t.padding,c=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}],o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Nt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,void 0,!0),l=2,r=i.height+2*t.padding,s=r/l,n=i.width+2*s+t.padding,c=Rt(t.directions,i,t),o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Ot=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return I(a,l,r,s).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(c){return w.polygon(t,s,c)},a},Wt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Xt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Yt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Dt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},At=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},jt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=l/2,s=r/(2.5+l/50),n=i.height+s+t.padding,c="M 0,"+s+" a "+r+","+s+" 0,0,0 "+l+" 0 a "+r+","+s+" 0,0,0 "+-l+" 0 l 0,"+n+" a "+r+","+s+" 0,0,0 "+l+" 0 l 0,"+-n,o=a.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-l/2+","+-(n/2+s)+")");return m(t,o),t.intersect=function(h){const y=w.rect(t,h),f=y.x-t.x;if(r!=0&&(Math.abs(f)t.height/2-s)){let p=s*s*(1-f*f/(r*r));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),y.y+=p}return y},a},Ut=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes+" "+t.class,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},zt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},Zt=async(e,t)=>{const{shapeSvg:a}=await M(e,t,"label",!0);g.trace("Classes = ",t.class);const i=a.insert("rect",":first-child"),l=0,r=0;if(i.attr("width",l).attr("height",r),a.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(V(i,t.props.borders,l,r),s.delete("borders")),s.forEach(n=>{g.warn(`Unknown node property ${n}`)})}return m(t,i),t.intersect=function(s){return w.rect(t,s)},a};function V(e,t,a,i){const l=[],r=n=>{l.push(n,0)},s=n=>{l.push(0,n)};t.includes("t")?(g.debug("add top border"),r(a)):s(a),t.includes("r")?(g.debug("add right border"),r(i)):s(i),t.includes("b")?(g.debug("add bottom border"),r(a)):s(a),t.includes("l")?(g.debug("add left border"),r(i)):s(i),e.attr("stroke-dasharray",l.join(" "))}const Gt=(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),r=i.insert("line"),s=i.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,g.info("Label text abc79",c,n,typeof n=="object");const o=s.node().appendChild(R(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(b().flowchart.htmlLabels)){const k=o.children[0],x=E(o);h=k.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}g.info("Text 2",n);const y=n.slice(1,n.length);let f=o.getBBox();const p=s.node().appendChild(R(y.join?y.join("
"):y,t.labelStyle,!0,!0));if(H(b().flowchart.htmlLabels)){const k=p.children[0],x=E(p);h=k.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}const d=t.padding/2;return E(p).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+d+5)+")"),E(o).attr("transform","translate( "+(h.width{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.height+t.padding,r=i.width+l/4+t.padding,s=a.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return m(t,s),t.intersect=function(n){return w.rect(t,n)},a},Qt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t),!0),r=a.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("Circle main"),m(t,r),t.intersect=function(s){return g.info("Circle intersect",t,i.width/2+l,s),w.circle(t,i.width/2+l,s)},a},Vt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t),!0),r=5,s=a.insert("g",":first-child"),n=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l+r).attr("width",i.width+t.padding+r*2).attr("height",i.height+t.padding+r*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("DoubleCircle main"),m(t,n),t.intersect=function(o){return g.info("DoubleCircle intersect",t,i.width/2+l+r,o),w.circle(t,i.width/2+l+r,o)},a},qt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Jt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),m(t,i),t.intersect=function(l){return w.circle(t,7,l)},a},tt=(e,t,a)=>{const i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;a==="LR"&&(l=10,r=70);const s=i.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return m(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return w.rect(t,n)},i},Kt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child"),l=a.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),m(t,l),t.intersect=function(r){return w.circle(t,7,r)},a},Pt=(e,t)=>{const a=t.padding/2,i=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,y=i;const f=s.insert("g").attr("class","label");let p=0;const d=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",x=f.node().appendChild(R(k,t.labelStyle,!0,!0));let u=x.getBBox();if(H(b().flowchart.htmlLabels)){const v=x.children[0],L=E(x);u=v.getBoundingClientRect(),L.attr("width",u.width),L.attr("height",u.height)}t.classData.annotations[0]&&(y+=u.height+i,h+=u.width);let S=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(b().flowchart.htmlLabels?S+="<"+t.classData.type+">":S+="<"+t.classData.type+">");const B=f.node().appendChild(R(S,t.labelStyle,!0,!0));E(B).attr("class","classTitle");let C=B.getBBox();if(H(b().flowchart.htmlLabels)){const v=B.children[0],L=E(B);C=v.getBoundingClientRect(),L.attr("width",C.width),L.attr("height",C.height)}y+=C.height+i,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(//g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const F=N.children[0],A=E(N);$=F.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,X.push(N)}),y+=l;const D=[];if(t.classData.methods.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(//g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const F=N.children[0],A=E(N);$=F.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,D.push(N)}),y+=l,d){let v=(h-u.width)/2;E(x).attr("transform","translate( "+(-1*h/2+v)+", "+-1*y/2+")"),p=u.height+i}let nt=(h-C.width)/2;return E(B).attr("transform","translate( "+(-1*h/2+nt)+", "+(-1*y/2+p)+")"),p+=C.height+i,c.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,X.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p+l/2)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),p+=l,o.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,D.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),n.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-a).attr("y",-(y/2)-a).attr("width",h+t.padding).attr("height",y+t.padding),m(t,n),t.intersect=function(v){return w.rect(t,v)},s},rt={rhombus:P,composite:zt,question:P,rect:Ut,labelRect:Zt,rectWithTitle:Gt,choice:Ht,circle:Qt,doublecircle:Vt,stadium:Ft,hexagon:It,block_arrow:Nt,rect_left_inv_arrow:Ot,lean_right:Wt,lean_left:Xt,trapezoid:Yt,inv_trapezoid:Dt,rect_right_inv_arrow:At,cylinder:jt,start:Jt,end:Kt,note:$t,subroutine:qt,fork:tt,join:tt,class_box:Pt};let Y={};const or=async(e,t,a)=>{let i,l;if(t.link){let r;b().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await rt[t.shape](i,t,a)}else l=await rt[t.shape](e,t,a),i=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),i.attr("data-node","true"),i.attr("data-id",t.id),Y[t.id]=i,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),i},yr=(e,t)=>{Y[t.id]=e},pr=()=>{Y={}},fr=e=>{const t=Y[e.id];g.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},tr=({flowchart:e})=>{var t,a;const i=((t=e==null?void 0:e.subGraphTitleMargin)==null?void 0:t.top)??0,l=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,r=i+l;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function U(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Z(e),t=Z(t);const[a,i]=[e.x,e.y],[l,r]=[t.x,t.y],s=l-a,n=r-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}const Z=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,rr=e=>({x:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaX:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.cos(r)*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaX:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.cos(r)*(s>=0?1:-1)}return Z(t).x+l},y:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaY:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.abs(Math.sin(r))*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaY:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.abs(Math.sin(r))*(s>=0?1:-1)}return Z(t).y+l}}),ar=(e,t,a,i,l)=>{t.arrowTypeStart&&at(e,"start",t.arrowTypeStart,a,i,l),t.arrowTypeEnd&&at(e,"end",t.arrowTypeEnd,a,i,l)},er={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},at=(e,t,a,i,l,r)=>{const s=er[a];if(!s){g.warn(`Unknown arrow type: ${a}`);return}const n=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${l}_${r}-${s}${n})`)};let G={},T={};const xr=()=>{G={},T={}},dr=(e,t)=>{const a=H(b().flowchart.htmlLabels),i=t.labelType==="markdown"?st(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0}):R(t.label,t.labelStyle),l=e.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(i);let s=i.getBBox();if(a){const c=i.children[0],o=E(i);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),G[t.id]=l,t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){const c=R(t.startLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startLeft=o,z(n,t.startLabelLeft)}if(t.startLabelRight){const c=R(t.startLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=o.node().appendChild(c),h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startRight=o,z(n,t.startLabelRight)}if(t.endLabelLeft){const c=R(t.endLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endLeft=o,z(n,t.endLabelLeft)}if(t.endLabelRight){const c=R(t.endLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endRight=o,z(n,t.endLabelRight)}return i};function z(e,t){b().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const gr=(e,t)=>{g.debug("Moving label abc88 ",e.id,e.label,G[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const i=b(),{subGraphTitleTotalMargin:l}=tr(i);if(e.label){const r=G[e.id];let s=e.x,n=e.y;if(a){const c=j.calcLabelPosition(a);g.debug("Moving label "+e.label+" from (",s,",",n,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,n=c.y)}r.attr("transform",`translate(${s}, ${n+l/2})`)}if(e.startLabelLeft){const r=T[e.id].startLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.startLabelRight){const r=T[e.id].startRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelLeft){const r=T[e.id].endLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelRight){const r=T[e.id].endRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}},sr=(e,t)=>{const a=e.x,i=e.y,l=Math.abs(t.x-a),r=Math.abs(t.y-i),s=e.width/2,n=e.height/2;return l>=s||r>=n},ir=(e,t,a)=>{g.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(t)} insidePoint : ${JSON.stringify(a)} node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,l=e.y,r=Math.abs(i-a.x),s=e.width/2;let n=a.xMath.abs(i-t.x)*c){let y=a.y{g.debug("abc88 cutPathAtIntersect",e,t);let a=[],i=e[0],l=!1;return e.forEach(r=>{if(!sr(t,r)&&!l){const s=ir(t,i,r);let n=!1;a.forEach(c=>{n=n||c.x===s.x&&c.y===s.y}),a.some(c=>c.x===s.x&&c.y===s.y)||a.push(s),l=!0}else i=r,l||a.push(r)}),a},ur=function(e,t,a,i,l,r,s){let n=a.points;g.debug("abc88 InsertEdge: edge=",a,"e=",t);let c=!1;const o=r.node(t.v);var h=r.node(t.w);h!=null&&h.intersect&&(o!=null&&o.intersect)&&(n=n.slice(1,a.points.length-1),n.unshift(o.intersect(n[0])),n.push(h.intersect(n[n.length-1]))),a.toCluster&&(g.debug("to cluster abc88",i[a.toCluster]),n=et(a.points,i[a.toCluster].node),c=!0),a.fromCluster&&(g.debug("from cluster abc88",i[a.fromCluster]),n=et(n.reverse(),i[a.fromCluster].node).reverse(),c=!0);const y=n.filter(C=>!Number.isNaN(C.y));let f=lt;a.curve&&(l==="graph"||l==="flowchart")&&(f=a.curve);const{x:p,y:d}=rr(a),k=ct().x(p).y(d).curve(f);let x;switch(a.thickness){case"normal":x="edge-thickness-normal";break;case"thick":x="edge-thickness-thick";break;case"invisible":x="edge-thickness-thick";break;default:x=""}switch(a.pattern){case"solid":x+=" edge-pattern-solid";break;case"dotted":x+=" edge-pattern-dotted";break;case"dashed":x+=" edge-pattern-dashed";break}const u=e.append("path").attr("d",k(y)).attr("id",a.id).attr("class"," "+x+(a.classes?" "+a.classes:"")).attr("style",a.style);let S="";(b().flowchart.arrowMarkerAbsolute||b().state.arrowMarkerAbsolute)&&(S=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,S=S.replace(/\(/g,"\\("),S=S.replace(/\)/g,"\\)")),ar(u,a,S,s,l);let B={};return c&&(B.updatedPath=n),B.originalPath=a.points,B};export{or as a,dr as b,ur as c,gr as d,pr as e,xr as f,tr as g,R as h,hr as i,Et as j,rr as k,M as l,ar as m,fr as p,yr as s,m as u}; diff --git a/starter/src/main/resources/templates/notebase/assets/erDiagram-9861fffd-DqfFxAvA.js b/deploy/server/notebase/assets/erDiagram-9861fffd-BcE67OC0.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/erDiagram-9861fffd-DqfFxAvA.js rename to deploy/server/notebase/assets/erDiagram-9861fffd-BcE67OC0.js index 23d5504d07..9391e2b376 100644 --- a/starter/src/main/resources/templates/notebase/assets/erDiagram-9861fffd-DqfFxAvA.js +++ b/deploy/server/notebase/assets/erDiagram-9861fffd-BcE67OC0.js @@ -1,4 +1,4 @@ -import{c as Y,s as _t,g as Et,b as mt,a as gt,A as kt,B as xt,l as K,C as Rt,h as et,y as Ot,i as bt,D as Nt,E as Tt}from"./mermaid.core-BajzCmnv.js";import{G as At}from"./graph-CNSoCPH1.js";import{l as Mt}from"./layout-Cg9I2QIy.js";import{x as wt}from"./index-CLWgAZNI.js";import{l as It}from"./line-CH9gKq5B.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const St=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Dt(t){return typeof t=="string"&&St.test(t)}function vt(t){if(!Dt(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}function Lt(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e>>32-r}function Zt(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const u=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=g,g=m,m=rt(_,30)>>>0,_=h,h=I}e[0]=e[0]+h>>>0,e[1]=e[1]+_>>>0,e[2]=e[2]+m>>>0,e[3]=e[3]+g>>>0,e[4]=e[4]+x>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}const Ft=Pt("v5",80,Zt);var at=function(){var t=function(M,i,n,c){for(n=n||{},c=M.length;c--;n[M[c]]=i);return n},r=[6,8,10,20,22,24,26,27,28],e=[1,10],f=[1,11],l=[1,12],p=[1,13],u=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],x=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],N=[1,34],I=[27,28,46,47],Z=[41,42,43,44,45],F=[17,34],B=[1,54],T=[1,53],A=[17,34,36,38],R={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(i,n,c,d,E,a,H){var s=a.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(a[s-4]),d.addEntity(a[s-2]),d.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:d.addEntity(a[s-3]),d.addAttributes(a[s-3],a[s-1]);break;case 10:d.addEntity(a[s-2]);break;case 11:d.addEntity(a[s]);break;case 12:d.addEntity(a[s-6],a[s-4]),d.addAttributes(a[s-6],a[s-1]);break;case 13:d.addEntity(a[s-5],a[s-3]);break;case 14:d.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:e,22:f,24:l,26:p,27:u,28:o},t(r,[2,7],{1:[2,1]}),t(r,[2,3]),{9:16,11:9,20:e,22:f,24:l,26:p,27:u,28:o},t(r,[2,5]),t(r,[2,6]),t(r,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:g,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(r,[2,18]),t(y,[2,19]),t(y,[2,20]),t(r,[2,4]),{11:29,27:u,28:o},{16:30,17:[1,31],29:32,30:33,34:N},{11:35,27:u,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(r,[2,15]),t(r,[2,16]),t(r,[2,17]),{13:[1,39]},{17:[1,40]},t(r,[2,10]),{16:41,17:[2,21],29:32,30:33,34:N},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:x},t(Z,[2,39]),t(Z,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(r,[2,9]),{17:[2,22]},t(F,[2,23],{32:50,33:51,35:52,37:B,38:T}),t([17,34,37,38],[2,28]),t(r,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(r,[2,8]),t(r,[2,41]),t(r,[2,42]),t(r,[2,43]),t(F,[2,24],{33:56,36:[1,57],38:T}),t(F,[2,25]),t(A,[2,29]),t(F,[2,32]),t(A,[2,31]),{16:58,17:[1,59],29:32,30:33,34:N},t(F,[2,26]),{35:60,37:B},{17:[1,61]},t(r,[2,13]),t(A,[2,30]),t(r,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=n,c}},parse:function(i){var n=this,c=[0],d=[],E=[null],a=[],H=this.table,s="",X=0,nt=0,ft=2,st=1,ut=a.slice.call(arguments,1),b=Object.create(this.lexer),U={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(U.yy[q]=this.yy[q]);b.setInput(i,U.yy),U.yy.lexer=b,U.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var J=b.yylloc;a.push(J);var yt=b.options&&b.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(){var P;return P=d.pop()||b.lex()||st,typeof P!="number"&&(P instanceof Array&&(d=P,P=d.pop()),P=n.symbols_[P]||P),P}for(var w,z,S,$,G={},Q,C,ot,j;;){if(z=c[c.length-1],this.defaultActions[z]?S=this.defaultActions[z]:((w===null||typeof w>"u")&&(w=pt()),S=H[z]&&H[z][w]),typeof S>"u"||!S.length||!S[0]){var tt="";j=[];for(Q in H[z])this.terminals_[Q]&&Q>ft&&j.push("'"+this.terminals_[Q]+"'");b.showPosition?tt="Parse error on line "+(X+1)+`: +import{c as Y,s as _t,g as Et,b as mt,a as gt,A as kt,B as xt,l as K,C as Rt,h as et,y as Ot,i as bt,D as Nt,E as Tt}from"./mermaid.core-DacimPk4.js";import{G as At}from"./graph-Cryfb0BU.js";import{l as Mt}from"./layout-DPudLDYQ.js";import{x as wt}from"./index-bOgutTC1.js";import{l as It}from"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const St=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Dt(t){return typeof t=="string"&&St.test(t)}function vt(t){if(!Dt(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}function Lt(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e>>32-r}function Zt(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const u=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=g,g=m,m=rt(_,30)>>>0,_=h,h=I}e[0]=e[0]+h>>>0,e[1]=e[1]+_>>>0,e[2]=e[2]+m>>>0,e[3]=e[3]+g>>>0,e[4]=e[4]+x>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}const Ft=Pt("v5",80,Zt);var at=function(){var t=function(M,i,n,c){for(n=n||{},c=M.length;c--;n[M[c]]=i);return n},r=[6,8,10,20,22,24,26,27,28],e=[1,10],f=[1,11],l=[1,12],p=[1,13],u=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],x=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],N=[1,34],I=[27,28,46,47],Z=[41,42,43,44,45],F=[17,34],B=[1,54],T=[1,53],A=[17,34,36,38],R={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(i,n,c,d,E,a,H){var s=a.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(a[s-4]),d.addEntity(a[s-2]),d.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:d.addEntity(a[s-3]),d.addAttributes(a[s-3],a[s-1]);break;case 10:d.addEntity(a[s-2]);break;case 11:d.addEntity(a[s]);break;case 12:d.addEntity(a[s-6],a[s-4]),d.addAttributes(a[s-6],a[s-1]);break;case 13:d.addEntity(a[s-5],a[s-3]);break;case 14:d.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:e,22:f,24:l,26:p,27:u,28:o},t(r,[2,7],{1:[2,1]}),t(r,[2,3]),{9:16,11:9,20:e,22:f,24:l,26:p,27:u,28:o},t(r,[2,5]),t(r,[2,6]),t(r,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:g,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(r,[2,18]),t(y,[2,19]),t(y,[2,20]),t(r,[2,4]),{11:29,27:u,28:o},{16:30,17:[1,31],29:32,30:33,34:N},{11:35,27:u,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(r,[2,15]),t(r,[2,16]),t(r,[2,17]),{13:[1,39]},{17:[1,40]},t(r,[2,10]),{16:41,17:[2,21],29:32,30:33,34:N},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:x},t(Z,[2,39]),t(Z,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(r,[2,9]),{17:[2,22]},t(F,[2,23],{32:50,33:51,35:52,37:B,38:T}),t([17,34,37,38],[2,28]),t(r,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(r,[2,8]),t(r,[2,41]),t(r,[2,42]),t(r,[2,43]),t(F,[2,24],{33:56,36:[1,57],38:T}),t(F,[2,25]),t(A,[2,29]),t(F,[2,32]),t(A,[2,31]),{16:58,17:[1,59],29:32,30:33,34:N},t(F,[2,26]),{35:60,37:B},{17:[1,61]},t(r,[2,13]),t(A,[2,30]),t(r,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=n,c}},parse:function(i){var n=this,c=[0],d=[],E=[null],a=[],H=this.table,s="",X=0,nt=0,ft=2,st=1,ut=a.slice.call(arguments,1),b=Object.create(this.lexer),U={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(U.yy[q]=this.yy[q]);b.setInput(i,U.yy),U.yy.lexer=b,U.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var J=b.yylloc;a.push(J);var yt=b.options&&b.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(){var P;return P=d.pop()||b.lex()||st,typeof P!="number"&&(P instanceof Array&&(d=P,P=d.pop()),P=n.symbols_[P]||P),P}for(var w,z,S,$,G={},Q,C,ot,j;;){if(z=c[c.length-1],this.defaultActions[z]?S=this.defaultActions[z]:((w===null||typeof w>"u")&&(w=pt()),S=H[z]&&H[z][w]),typeof S>"u"||!S.length||!S[0]){var tt="";j=[];for(Q in H[z])this.terminals_[Q]&&Q>ft&&j.push("'"+this.terminals_[Q]+"'");b.showPosition?tt="Parse error on line "+(X+1)+`: `+b.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[w]||w)+"'":tt="Parse error on line "+(X+1)+": Unexpected "+(w==st?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(tt,{text:b.match,token:this.terminals_[w]||w,line:b.yylineno,loc:J,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+w);switch(S[0]){case 1:c.push(w),E.push(b.yytext),a.push(b.yylloc),c.push(S[1]),w=null,nt=b.yyleng,s=b.yytext,X=b.yylineno,J=b.yylloc;break;case 2:if(C=this.productions_[S[1]][1],G.$=E[E.length-C],G._$={first_line:a[a.length-(C||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(C||1)].first_column,last_column:a[a.length-1].last_column},yt&&(G._$.range=[a[a.length-(C||1)].range[0],a[a.length-1].range[1]]),$=this.performAction.apply(G,[s,nt,X,U.yy,S[1],E,a].concat(ut)),typeof $<"u")return $;C&&(c=c.slice(0,-1*C*2),E=E.slice(0,-1*C),a=a.slice(0,-1*C)),c.push(this.productions_[S[1]][0]),E.push(G.$),a.push(G._$),ot=H[c[c.length-2]][c[c.length-1]],c.push(ot);break;case 3:return!0}}return!0}},O=function(){var M={EOF:1,parseError:function(n,c){if(this.yy.parser)this.yy.parser.parseError(n,c);else throw new Error(n)},setInput:function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var n=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/flowDb-956e92f1-AKrTXLR1.js b/deploy/server/notebase/assets/flowDb-956e92f1-_Zo9VT9Z.js similarity index 99% rename from deploy/server/notebase/assets/flowDb-956e92f1-AKrTXLR1.js rename to deploy/server/notebase/assets/flowDb-956e92f1-_Zo9VT9Z.js index f20c5bb0e6..3acb9cb209 100644 --- a/deploy/server/notebase/assets/flowDb-956e92f1-AKrTXLR1.js +++ b/deploy/server/notebase/assets/flowDb-956e92f1-_Zo9VT9Z.js @@ -1,4 +1,4 @@ -import{c as et,a4 as me,s as ye,g as ve,a as Ve,b as Le,A as Ie,B as Re,l as J1,y as dt,C as Ne,j as we,h as w1}from"./mermaid.core-BajzCmnv.js";var pt=function(){var e=function(f1,a,o,f){for(o=o||{},f=f1.length;f--;o[f1[f]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],w=[1,16],X=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],S=[1,49],k=[1,48],l1=[1,29],U1=[1,30],G1=[1,31],M1=[1,32],K1=[1,33],x=[1,44],B=[1,46],m=[1,42],y=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],Y1=[1,34],j1=[1,35],z1=[1,36],X1=[1,37],I1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],q=[1,61],Q=[1,60],Z=[1,62],H1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],C1=[1,87],S1=[1,94],_1=[1,90],x1=[1,95],B1=[1,86],W1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],R1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],Ct=[1,145],St=[1,130],_t=[1,132],xt=[1,136],Bt=[1,137],mt=[1,138],yt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],wt=[1,134],Ot=[1,129],Pt=[1,133],Ut=[1,131],nt=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],O=[1,165],P=[1,166],A=[1,170],d=[1,167],E=[1,168],m1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],J=[1,235],$=[1,233],t1=[1,237],e1=[1,231],s1=[1,232],u1=[1,234],i1=[1,236],r1=[1,238],y1=[1,255],Kt=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],at={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,r,C,t,N1){var s=t.length-1;switch(C){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var Y=r.destructLink(t[s],t[s-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var Y=r.destructLink(t[s]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:I1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:q,9:Q,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:q,9:Q,11:Z,21:66},{8:q,9:Q,11:Z,21:67},{8:q,9:Q,11:Z,21:68},{8:q,9:Q,11:Z,21:69},{8:q,9:Q,11:Z,21:70},{8:q,9:Q,10:[1,71],11:Z,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(H1,[2,46],{18:75,10:I1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(W1,[2,47]),e(W1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:I1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(R1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:Ct,42:St,58:_t,73:xt,77:[1,124],78:[1,125],80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(nt,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(H1,[2,45],{42:Gt}),{42:S,45:150,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{42:S,45:155,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:S,45:162,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:171,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:174,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:175,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:176,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:181,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:182,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:183,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(H1,[2,43],{18:184,10:I1}),e(R1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(m1,[2,73]),e(m1,[2,75]),e(m1,[2,76]),e(m1,[2,161]),e(m1,[2,162]),{8:q,9:Q,10:gt,11:Z,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:Ct,42:St,58:_t,73:xt,80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:I1,18:194},{10:[1,195],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(W1,[2,50],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(h1,[2,79]),e(h1,[2,81]),e(h1,[2,82]),e(h1,[2,146]),e(h1,[2,147]),e(h1,[2,148]),e(h1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(H1,[2,44],{42:Gt}),e(R1,[2,70]),e(R1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(R1,[2,72]),e(m1,[2,74]),{30:225,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(nt,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{10:J,58:$,81:t1,89:228,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:239,101:[1,240],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:241,101:[1,242],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{102:[1,243]},{10:J,58:$,81:t1,89:244,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{42:S,45:245,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(h1,[2,80]),e(N,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(W1,[2,48]),e(T,[2,114],{103:y1}),e(Kt,[2,123],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(W,[2,125]),e(W,[2,127]),e(W,[2,128]),e(W,[2,129]),e(W,[2,130]),e(W,[2,131]),e(W,[2,132]),e(W,[2,133]),e(W,[2,134]),e(T,[2,115],{103:y1}),{10:[1,257]},e(T,[2,116],{103:y1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:y1}),e(T,[2,99],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:q,9:Q,11:Z,21:264},e(b,[2,34]),{10:J,58:$,81:t1,102:e1,104:265,105:230,106:s1,107:u1,108:i1,109:r1},e(W,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(N,[2,61]),e(nt,l,{5:270}),e(Kt,[2,124],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:J,58:$,81:t1,89:275,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:276,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:y1}),e(T,[2,118],{103:y1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var f=new Error(a);throw f.hash=o,f}},parse:function(a){var o=this,f=[0],r=[],C=[null],t=[],N1=this.table,s="",Y=0,Yt=0,Se=2,jt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(d1.yy[ot]=this.yy[ot]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var lt=_.yylloc;t.push(lt);var xe=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var a1;return a1=r.pop()||_.lex()||jt,typeof a1!="number"&&(a1 instanceof Array&&(r=a1,a1=r.pop()),a1=o.symbols_[a1]||a1),a1}for(var G,E1,j,ht,v1={},q1,n1,zt,Q1;;){if(E1=f[f.length-1],this.defaultActions[E1]?j=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=Be()),j=N1[E1]&&N1[E1][G]),typeof j>"u"||!j.length||!j[0]){var ft="";Q1=[];for(q1 in N1[E1])this.terminals_[q1]&&q1>Se&&Q1.push("'"+this.terminals_[q1]+"'");_.showPosition?ft="Parse error on line "+(Y+1)+`: +import{c as et,a4 as me,s as ye,g as ve,a as Ve,b as Le,A as Ie,B as Re,l as J1,y as dt,C as Ne,j as we,h as w1}from"./mermaid.core-DacimPk4.js";var pt=function(){var e=function(f1,a,o,f){for(o=o||{},f=f1.length;f--;o[f1[f]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],w=[1,16],X=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],S=[1,49],k=[1,48],l1=[1,29],U1=[1,30],G1=[1,31],M1=[1,32],K1=[1,33],x=[1,44],B=[1,46],m=[1,42],y=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],Y1=[1,34],j1=[1,35],z1=[1,36],X1=[1,37],I1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],q=[1,61],Q=[1,60],Z=[1,62],H1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],C1=[1,87],S1=[1,94],_1=[1,90],x1=[1,95],B1=[1,86],W1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],R1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],Ct=[1,145],St=[1,130],_t=[1,132],xt=[1,136],Bt=[1,137],mt=[1,138],yt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],wt=[1,134],Ot=[1,129],Pt=[1,133],Ut=[1,131],nt=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],O=[1,165],P=[1,166],A=[1,170],d=[1,167],E=[1,168],m1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],J=[1,235],$=[1,233],t1=[1,237],e1=[1,231],s1=[1,232],u1=[1,234],i1=[1,236],r1=[1,238],y1=[1,255],Kt=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],at={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,r,C,t,N1){var s=t.length-1;switch(C){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var Y=r.destructLink(t[s],t[s-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var Y=r.destructLink(t[s]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:I1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:q,9:Q,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:q,9:Q,11:Z,21:66},{8:q,9:Q,11:Z,21:67},{8:q,9:Q,11:Z,21:68},{8:q,9:Q,11:Z,21:69},{8:q,9:Q,11:Z,21:70},{8:q,9:Q,10:[1,71],11:Z,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(H1,[2,46],{18:75,10:I1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(W1,[2,47]),e(W1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:I1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(R1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:Ct,42:St,58:_t,73:xt,77:[1,124],78:[1,125],80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(nt,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(H1,[2,45],{42:Gt}),{42:S,45:150,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{42:S,45:155,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:S,45:162,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:171,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:174,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:175,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:176,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:181,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:182,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:183,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(H1,[2,43],{18:184,10:I1}),e(R1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(m1,[2,73]),e(m1,[2,75]),e(m1,[2,76]),e(m1,[2,161]),e(m1,[2,162]),{8:q,9:Q,10:gt,11:Z,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:Ct,42:St,58:_t,73:xt,80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:I1,18:194},{10:[1,195],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(W1,[2,50],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(h1,[2,79]),e(h1,[2,81]),e(h1,[2,82]),e(h1,[2,146]),e(h1,[2,147]),e(h1,[2,148]),e(h1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(H1,[2,44],{42:Gt}),e(R1,[2,70]),e(R1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(R1,[2,72]),e(m1,[2,74]),{30:225,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(nt,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{10:J,58:$,81:t1,89:228,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:239,101:[1,240],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:241,101:[1,242],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{102:[1,243]},{10:J,58:$,81:t1,89:244,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{42:S,45:245,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(h1,[2,80]),e(N,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(W1,[2,48]),e(T,[2,114],{103:y1}),e(Kt,[2,123],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(W,[2,125]),e(W,[2,127]),e(W,[2,128]),e(W,[2,129]),e(W,[2,130]),e(W,[2,131]),e(W,[2,132]),e(W,[2,133]),e(W,[2,134]),e(T,[2,115],{103:y1}),{10:[1,257]},e(T,[2,116],{103:y1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:y1}),e(T,[2,99],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:q,9:Q,11:Z,21:264},e(b,[2,34]),{10:J,58:$,81:t1,102:e1,104:265,105:230,106:s1,107:u1,108:i1,109:r1},e(W,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(N,[2,61]),e(nt,l,{5:270}),e(Kt,[2,124],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:J,58:$,81:t1,89:275,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:276,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:y1}),e(T,[2,118],{103:y1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var f=new Error(a);throw f.hash=o,f}},parse:function(a){var o=this,f=[0],r=[],C=[null],t=[],N1=this.table,s="",Y=0,Yt=0,Se=2,jt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(d1.yy[ot]=this.yy[ot]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var lt=_.yylloc;t.push(lt);var xe=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var a1;return a1=r.pop()||_.lex()||jt,typeof a1!="number"&&(a1 instanceof Array&&(r=a1,a1=r.pop()),a1=o.symbols_[a1]||a1),a1}for(var G,E1,j,ht,v1={},q1,n1,zt,Q1;;){if(E1=f[f.length-1],this.defaultActions[E1]?j=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=Be()),j=N1[E1]&&N1[E1][G]),typeof j>"u"||!j.length||!j[0]){var ft="";Q1=[];for(q1 in N1[E1])this.terminals_[q1]&&q1>Se&&Q1.push("'"+this.terminals_[q1]+"'");_.showPosition?ft="Parse error on line "+(Y+1)+`: `+_.showPosition()+` Expecting `+Q1.join(", ")+", got '"+(this.terminals_[G]||G)+"'":ft="Parse error on line "+(Y+1)+": Unexpected "+(G==jt?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(ft,{text:_.match,token:this.terminals_[G]||G,line:_.yylineno,loc:lt,expected:Q1})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E1+", token: "+G);switch(j[0]){case 1:f.push(G),C.push(_.yytext),t.push(_.yylloc),f.push(j[1]),G=null,Yt=_.yyleng,s=_.yytext,Y=_.yylineno,lt=_.yylloc;break;case 2:if(n1=this.productions_[j[1]][1],v1.$=C[C.length-n1],v1._$={first_line:t[t.length-(n1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(n1||1)].first_column,last_column:t[t.length-1].last_column},xe&&(v1._$.range=[t[t.length-(n1||1)].range[0],t[t.length-1].range[1]]),ht=this.performAction.apply(v1,[s,Yt,Y,d1.yy,j[1],C,t].concat(_e)),typeof ht<"u")return ht;n1&&(f=f.slice(0,-1*n1*2),C=C.slice(0,-1*n1),t=t.slice(0,-1*n1)),f.push(this.productions_[j[1]][0]),C.push(v1.$),t.push(v1._$),zt=N1[f[f.length-2]][f[f.length-1]],f.push(zt);break;case 3:return!0}}return!0}},Ce=function(){var f1={EOF:1,parseError:function(o,f){if(this.yy.parser)this.yy.parser.parseError(o,f);else throw new Error(o)},setInput:function(a,o){return this.yy=o||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var o=a.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var o=a.length,f=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===r.length?this.yylloc.first_column:0)+r[r.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),o=new Array(a.length+1).join("-");return a+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/flowDiagram-66a62f08-UGVc-n6K.js b/deploy/server/notebase/assets/flowDiagram-66a62f08-BrH7mvTN.js similarity index 97% rename from starter/src/main/resources/templates/notebase/assets/flowDiagram-66a62f08-UGVc-n6K.js rename to deploy/server/notebase/assets/flowDiagram-66a62f08-BrH7mvTN.js index 8692a6cd03..c84eef6c85 100644 --- a/starter/src/main/resources/templates/notebase/assets/flowDiagram-66a62f08-UGVc-n6K.js +++ b/deploy/server/notebase/assets/flowDiagram-66a62f08-BrH7mvTN.js @@ -1,4 +1,4 @@ -import{p as Lt,f as V}from"./flowDb-956e92f1-AKrTXLR1.js";import{h as S,f as tt,G as _t}from"./graph-CNSoCPH1.js";import{h as x,n as U,o as Y,p as et,c as G,r as rt,j as at,l as R,q as z,t as Et}from"./mermaid.core-BajzCmnv.js";import{u as Tt,r as Nt,p as At,l as Ct,d as M}from"./layout-Cg9I2QIy.js";import{a as N,b as nt,i as st,c as E,e as it,d as ot,f as It,g as Bt,s as Mt}from"./styles-c10674c1-DZh7AwrX.js";import{l as Dt}from"./line-CH9gKq5B.js";import"./index-CLWgAZNI.js";import"./index-3862675e-C5iJKLK2.js";import"./clone-CJLsyeCN.js";import"./edges-e0da2a9e-121Kky2V.js";import"./createText-2e5e7dd3-CXwUql3o.js";import"./channel--_OxL60w.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function Rt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Gt(r,e){return fetch(r,e).then(Rt)}function Pt(r){return(e,t)=>Gt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Ut=Pt("image/svg+xml"),H={normal:Wt,vee:Vt,undirected:zt};function $t(r){H=r}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Yt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Ht(r,e){for(var t=r.append("text"),n=Xt(e.label).split(` +import{p as Lt,f as V}from"./flowDb-956e92f1-_Zo9VT9Z.js";import{h as S,f as tt,G as _t}from"./graph-Cryfb0BU.js";import{h as x,n as U,o as Y,p as et,c as G,r as rt,j as at,l as R,q as z,t as Et}from"./mermaid.core-DacimPk4.js";import{u as Tt,r as Nt,p as At,l as Ct,d as M}from"./layout-DPudLDYQ.js";import{a as N,b as nt,i as st,c as E,e as it,d as ot,f as It,g as Bt,s as Mt}from"./styles-c10674c1-BMcOXXdB.js";import{l as Dt}from"./line-Dno7JaPM.js";import"./index-bOgutTC1.js";import"./index-3862675e-BtvAzWCw.js";import"./clone-CVBlNrV8.js";import"./edges-e0da2a9e---EYFhqg.js";import"./createText-2e5e7dd3-sebYv4r1.js";import"./channel-CFSrZVj_.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function Rt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Gt(r,e){return fetch(r,e).then(Rt)}function Pt(r){return(e,t)=>Gt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Ut=Pt("image/svg+xml"),H={normal:Wt,vee:Vt,undirected:zt};function $t(r){H=r}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Yt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Ht(r,e){for(var t=r.append("text"),n=Xt(e.label).split(` `),a=0;a0}function T(r,e,t){var n=r.x,a=r.y,s=[],i=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;e.forEach(function(p){i=Math.min(i,p.x),o=Math.min(o,p.y)});for(var c=n-r.width/2-i,d=a-r.height/2-o,l=0;l1&&s.sort(function(p,y){var f=p.x-t.x,g=p.y-t.y,k=Math.sqrt(f*f+g*g),I=y.x-t.x,_=y.y-t.y,$=Math.sqrt(I*I+_*_);return k<$?-1:k===$?0:1}),s[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",r),r)}function Z(r,e){var t=r.x,n=r.y,a=e.x-t,s=e.y-n,i=r.width/2,o=r.height/2,c,d;return Math.abs(s)*i>Math.abs(a)*o?(s<0&&(o=-o),c=s===0?0:o*a/s,d=o):(a<0&&(i=-i),c=i,d=a===0?0:i*s/a),{x:t+c,y:n+d}}var K={rect:oe,ellipse:le,circle:ce,diamond:de};function ie(r){K=r}function oe(r,e,t){var n=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(a){return Z(t,a)},n}function le(r,e,t){var n=e.width/2,a=e.height/2,s=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",n).attr("ry",a);return t.intersect=function(i){return ct(t,n,a,i)},s}function ce(r,e,t){var n=Math.max(e.width,e.height)/2,a=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",n);return t.intersect=function(s){return ne(t,n,s)},a}function de(r,e,t){var n=e.width*Math.SQRT2/2,a=e.height*Math.SQRT2/2,s=[{x:0,y:-a},{x:-n,y:0},{x:0,y:a},{x:n,y:0}],i=r.insert("polygon",":first-child").attr("points",s.map(function(o){return o.x+","+o.y}).join(" "));return t.intersect=function(o){return T(t,s,o)},i}function he(){var r=function(e,t){pe(t);var n=D(e,"output"),a=D(n,"clusters"),s=D(n,"edgePaths"),i=F(D(n,"edgeLabels"),t),o=Q(D(n,"nodes"),t,K);Ct(t),ae(o,t),re(i,t),q(s,t,H);var c=X(a,t);ee(c,t),ve(t)};return r.createNodes=function(e){return arguments.length?(te(e),r):Q},r.createClusters=function(e){return arguments.length?(Ft(e),r):X},r.createEdgeLabels=function(e){return arguments.length?(qt(e),r):F},r.createEdgePaths=function(e){return arguments.length?(Qt(e),r):q},r.shapes=function(e){return arguments.length?(ie(e),r):K},r.arrows=function(e){return arguments.length?($t(e),r):H},r}var ue={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},fe={arrowhead:"normal",curve:U};function pe(r){r.nodes().forEach(function(e){var t=r.node(e);!S(t,"label")&&!r.children(e).length&&(t.label=e),S(t,"paddingX")&&M(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),S(t,"paddingY")&&M(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),S(t,"padding")&&M(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),M(t,ue),tt(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(n){t[n]=Number(t[n])}),S(t,"width")&&(t._prevWidth=t.width),S(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);S(t,"label")||(t.label=""),M(t,fe)})}function ve(r){tt(r.nodes(),function(e){var t=r.node(e);S(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,S(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function D(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function dt(r,e,t){const n=e.width,a=e.height,s=(n+a)*.9,i=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}],o=A(r,s,s,i);return t.intersect=function(c){return T(t,i,c)},o}function ht(r,e,t){const a=e.height,s=a/4,i=e.width+2*s,o=[{x:s,y:0},{x:i-s,y:0},{x:i,y:-a/2},{x:i-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],c=A(r,i,a,o);return t.intersect=function(d){return T(t,o,d)},c}function ut(r,e,t){const n=e.width,a=e.height,s=[{x:-a/2,y:0},{x:n,y:0},{x:n,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ft(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function pt(r,e,t){const n=e.width,a=e.height,s=[{x:2*a/6,y:0},{x:n+a/6,y:0},{x:n-2*a/6,y:-a},{x:-a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function vt(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n+2*a/6,y:0},{x:n-a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function gt(r,e,t){const n=e.width,a=e.height,s=[{x:a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:-2*a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function yt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n+a/2,y:0},{x:n,y:-a/2},{x:n+a/2,y:-a},{x:0,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function wt(r,e,t){const n=e.height,a=e.width+n/4,s=r.insert("rect",":first-child").attr("rx",n/2).attr("ry",n/2).attr("x",-a/2).attr("y",-n/2).attr("width",a).attr("height",n);return t.intersect=function(i){return Z(t,i)},s}function mt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n,y:0},{x:n,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function xt(r,e,t){const n=e.width,a=n/2,s=a/(2.5+n/50),i=e.height+s,o="M 0,"+s+" a "+a+","+s+" 0,0,0 "+n+" 0 a "+a+","+s+" 0,0,0 "+-n+" 0 l 0,"+i+" a "+a+","+s+" 0,0,0 "+n+" 0 l 0,"+-i,c=r.attr("label-offset-y",s).insert("path",":first-child").attr("d",o).attr("transform","translate("+-n/2+","+-(i/2+s)+")");return t.intersect=function(d){const l=Z(t,d),v=l.x-t.x;if(a!=0&&(Math.abs(v)t.height/2-s)){let h=s*s*(1-v*v/(a*a));h!=0&&(h=Math.sqrt(h)),h=s-h,d.y-t.y>0&&(h=-h),l.y+=h}return l},c}function ge(r){r.shapes().question=dt,r.shapes().hexagon=ht,r.shapes().stadium=wt,r.shapes().subroutine=mt,r.shapes().cylinder=xt,r.shapes().rect_left_inv_arrow=ut,r.shapes().lean_right=ft,r.shapes().lean_left=pt,r.shapes().trapezoid=vt,r.shapes().inv_trapezoid=gt,r.shapes().rect_right_inv_arrow=yt}function ye(r){r({question:dt}),r({hexagon:ht}),r({stadium:wt}),r({subroutine:mt}),r({cylinder:xt}),r({rect_left_inv_arrow:ut}),r({lean_right:ft}),r({lean_left:pt}),r({trapezoid:vt}),r({inv_trapezoid:gt}),r({rect_right_inv_arrow:yt})}function A(r,e,t,n){return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const we={addToRender:ge,addToRenderV2:ye},bt={},me=function(r){const e=Object.keys(r);for(const t of e)bt[t]=r[t]},kt=async function(r,e,t,n,a,s){const i=n?n.select(`[id="${t}"]`):x(`[id="${t}"]`),o=a||document,c=Object.keys(r);for(const d of c){const l=r[d];let v="default";l.classes.length>0&&(v=l.classes.join(" "));const h=Y(l.styles);let u=l.text!==void 0?l.text:l.id,p;if(et(G().flowchart.htmlLabels)){const g={label:await rt(u.replace(/fa[blrs]?:fa-[\w-]+/g,k=>``),G())};p=nt(i,g).node(),p.parentNode.removeChild(p)}else{const g=o.createElementNS("http://www.w3.org/2000/svg","text");g.setAttribute("style",h.labelStyle.replace("color:","fill:"));const k=u.split(at.lineBreakRegex);for(const I of k){const _=o.createElementNS("http://www.w3.org/2000/svg","tspan");_.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),_.setAttribute("dy","1em"),_.setAttribute("x","1"),_.textContent=I,g.appendChild(_)}p=g}let y=0,f="";switch(l.type){case"round":y=5,f="rect";break;case"square":f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"odd":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"odd_right":f="rect_left_inv_arrow";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"group":f="rect";break;default:f="rect"}R.warn("Adding node",l.id,l.domId),e.setNode(s.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:h.labelStyle,shape:f,label:p,rx:y,ry:y,class:v,style:h.style,id:s.db.lookUpDomId(l.id)})}},St=async function(r,e,t){let n=0,a,s;if(r.defaultStyle!==void 0){const i=Y(r.defaultStyle);a=i.style,s=i.labelStyle}for(const i of r){n++;const o="L-"+i.start+"-"+i.end,c="LS-"+i.start,d="LE-"+i.end,l={};i.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let v="",h="";if(i.style!==void 0){const u=Y(i.style);v=u.style,h=u.labelStyle}else switch(i.stroke){case"normal":v="fill:none",a!==void 0&&(v=a),s!==void 0&&(h=s);break;case"dotted":v="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":v=" stroke-width: 3.5px;fill:none";break}l.style=v,l.labelStyle=h,i.interpolate!==void 0?l.curve=z(i.interpolate,U):r.defaultInterpolate!==void 0?l.curve=z(r.defaultInterpolate,U):l.curve=z(bt.curve,U),i.text===void 0?i.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",et(G().flowchart.htmlLabels)?(l.labelType="html",l.label=`${await rt(i.text.replace(/fa[blrs]?:fa-[\w-]+/g,u=>``),G())}`):(l.labelType="text",l.label=i.text.replace(at.lineBreakRegex,` `),i.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=o,l.class=c+" "+d,l.minlen=i.length||1,e.setEdge(t.db.lookUpDomId(i.start),t.db.lookUpDomId(i.end),l,n)}},xe=function(r,e){return R.info("Extracting classes"),e.db.getClasses()},be=async function(r,e,t,n){R.info("Drawing flowchart");const{securityLevel:a,flowchart:s}=G();let i;a==="sandbox"&&(i=x("#i"+e));const o=a==="sandbox"?x(i.nodes()[0].contentDocument.body):x("body"),c=a==="sandbox"?i.nodes()[0].contentDocument:document;let d=n.db.getDirection();d===void 0&&(d="TD");const l=s.nodeSpacing||50,v=s.rankSpacing||50,h=new _t({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:l,ranksep:v,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let u;const p=n.db.getSubGraphs();for(let w=p.length-1;w>=0;w--)u=p[w],n.db.addVertex(u.id,u.title,"group",void 0,u.classes);const y=n.db.getVertices();R.warn("Get vertices",y);const f=n.db.getEdges();let g=0;for(g=p.length-1;g>=0;g--){u=p[g],Mt("cluster").append("text");for(let w=0;w{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,ke.setConf(r.flowchart),V.clear(),V.setGen("gen-1")}};export{Pe as diagram}; diff --git a/deploy/server/notebase/assets/flowDiagram-v2-96b9c2cf-2GL1AVRC.js b/deploy/server/notebase/assets/flowDiagram-v2-96b9c2cf-2GL1AVRC.js deleted file mode 100644 index b14060309b..0000000000 --- a/deploy/server/notebase/assets/flowDiagram-v2-96b9c2cf-2GL1AVRC.js +++ /dev/null @@ -1 +0,0 @@ -import{p as e,f as o}from"./flowDb-956e92f1-AKrTXLR1.js";import{f as t,g as a}from"./styles-c10674c1-DZh7AwrX.js";import{u as i}from"./mermaid.core-BajzCmnv.js";import"./graph-CNSoCPH1.js";import"./layout-Cg9I2QIy.js";import"./index-CLWgAZNI.js";import"./index-3862675e-C5iJKLK2.js";import"./clone-CJLsyeCN.js";import"./edges-e0da2a9e-121Kky2V.js";import"./createText-2e5e7dd3-CXwUql3o.js";import"./line-CH9gKq5B.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./channel--_OxL60w.js";const n={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{n as diagram}; diff --git a/deploy/server/notebase/assets/flowDiagram-v2-96b9c2cf-jrOiDbEz.js b/deploy/server/notebase/assets/flowDiagram-v2-96b9c2cf-jrOiDbEz.js new file mode 100644 index 0000000000..ff8a713394 --- /dev/null +++ b/deploy/server/notebase/assets/flowDiagram-v2-96b9c2cf-jrOiDbEz.js @@ -0,0 +1 @@ +import{p as e,f as o}from"./flowDb-956e92f1-_Zo9VT9Z.js";import{f as t,g as a}from"./styles-c10674c1-BMcOXXdB.js";import{u as i}from"./mermaid.core-DacimPk4.js";import"./graph-Cryfb0BU.js";import"./layout-DPudLDYQ.js";import"./index-bOgutTC1.js";import"./index-3862675e-BtvAzWCw.js";import"./clone-CVBlNrV8.js";import"./edges-e0da2a9e---EYFhqg.js";import"./createText-2e5e7dd3-sebYv4r1.js";import"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./channel-CFSrZVj_.js";const n={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{n as diagram}; diff --git a/deploy/server/notebase/assets/flowchart-elk-definition-4a651766-DLndsX9w.js b/deploy/server/notebase/assets/flowchart-elk-definition-4a651766-Yv2tsz_U.js similarity index 99% rename from deploy/server/notebase/assets/flowchart-elk-definition-4a651766-DLndsX9w.js rename to deploy/server/notebase/assets/flowchart-elk-definition-4a651766-Yv2tsz_U.js index 5d26b7c4af..69b1a9f65a 100644 --- a/deploy/server/notebase/assets/flowchart-elk-definition-4a651766-DLndsX9w.js +++ b/deploy/server/notebase/assets/flowchart-elk-definition-4a651766-Yv2tsz_U.js @@ -1,4 +1,4 @@ -import{d as xNe,p as FNe}from"./flowDb-956e92f1-AKrTXLR1.js";import{l as Ba,h as IO,V as xU,t as BNe,o as E0n,q as j0n,n as $U,j as RNe}from"./mermaid.core-BajzCmnv.js";import{i as KNe,a as _Ne,l as HNe,b as qNe,k as UNe,m as GNe}from"./edges-e0da2a9e-121Kky2V.js";import{Q as Nse,g as zNe}from"./index-CLWgAZNI.js";import{l as XNe}from"./line-CH9gKq5B.js";import"./createText-2e5e7dd3-CXwUql3o.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function NU(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Bse={exports:{}};(function(ct,_t){(function(Xt){ct.exports=Xt()})(function(){return function(){function Xt(gt,Sr,Di){function y(Ht,Jt){if(!Sr[Ht]){if(!gt[Ht]){var ze=typeof NU=="function"&&NU;if(!Jt&&ze)return ze(Ht,!0);if(Wt)return Wt(Ht,!0);var Yi=new Error("Cannot find module '"+Ht+"'");throw Yi.code="MODULE_NOT_FOUND",Yi}var Ri=Sr[Ht]={exports:{}};gt[Ht][0].call(Ri.exports,function(En){var hu=gt[Ht][1][En];return y(hu||En)},Ri,Ri.exports,Xt,gt,Sr,Di)}return Sr[Ht].exports}for(var Wt=typeof NU=="function"&&NU,Bu=0;Bu0&&arguments[0]!==void 0?arguments[0]:{},Yi=ze.defaultLayoutOptions,Ri=Yi===void 0?{}:Yi,En=ze.algorithms,hu=En===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:En,Qc=ze.workerFactory,Ru=ze.workerUrl;if(y(this,Ht),this.defaultLayoutOptions=Ri,this.initialized=!1,typeof Ru>"u"&&typeof Qc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Pr=Qc;typeof Ru<"u"&&typeof Qc>"u"&&(Pr=function(N1){return new Worker(N1)});var Cf=Pr(Ru);if(typeof Cf.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Bu(Cf),this.worker.postMessage({cmd:"register",algorithms:hu}).then(function(L1){return Jt.initialized=!0}).catch(console.err)}return Di(Ht,[{key:"layout",value:function(ze){var Yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ri=Yi.layoutOptions,En=Ri===void 0?this.defaultLayoutOptions:Ri,hu=Yi.logging,Qc=hu===void 0?!1:hu,Ru=Yi.measureExecutionTime,Pr=Ru===void 0?!1:Ru;return ze?this.worker.postMessage({cmd:"layout",graph:ze,layoutOptions:En,options:{logging:Qc,measureExecutionTime:Pr}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}]),Ht}();Sr.default=Wt;var Bu=function(){function Ht(Jt){var ze=this;if(y(this,Ht),Jt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Jt,this.worker.onmessage=function(Yi){setTimeout(function(){ze.receive(ze,Yi)},0)}}return Di(Ht,[{key:"postMessage",value:function(ze){var Yi=this.id||0;this.id=Yi+1,ze.id=Yi;var Ri=this;return new Promise(function(En,hu){Ri.resolvers[Yi]=function(Qc,Ru){Qc?(Ri.convertGwtStyleError(Qc),hu(Qc)):En(Ru)},Ri.worker.postMessage(ze)})}},{key:"receive",value:function(ze,Yi){var Ri=Yi.data,En=ze.resolvers[Ri.id];En&&(delete ze.resolvers[Ri.id],Ri.error?En(Ri.error):En(null,Ri.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(ze){if(ze){var Yi=ze.__java$exception;Yi&&(Yi.cause&&Yi.cause.backingJsObject&&(ze.cause=Yi.cause.backingJsObject,this.convertGwtStyleError(ze.cause)),delete ze.__java$exception)}}}]),Ht}()},{}],2:[function(Xt,gt,Sr){(function(Di){(function(){var y;typeof window<"u"?y=window:typeof Di<"u"?y=Di:typeof self<"u"&&(y=self);var Wt;function Bu(){}function Ht(){}function Jt(){}function ze(){}function Yi(){}function Ri(){}function En(){}function hu(){}function Qc(){}function Ru(){}function Pr(){}function Cf(){}function L1(){}function N1(){}function og(){}function V3(){}function $1(){}function ul(){}function C0n(){}function M0n(){}function J2(){}function F(){}function T0n(){}function mE(){}function A0n(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function FU(){}function D0n(){}function L0n(){}function N0n(){}function OO(){}function $0n(){}function x0n(){}function F0n(){}function DO(){}function B0n(){}function R0n(){}function BU(){}function K0n(){}function _0n(){}function yu(){}function ju(){}function Q2(){}function Y2(){}function H0n(){}function q0n(){}function U0n(){}function G0n(){}function RU(){}function Eu(){}function Z2(){}function np(){}function z0n(){}function X0n(){}function LO(){}function V0n(){}function W0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function nbn(){}function ebn(){}function tbn(){}function ibn(){}function rbn(){}function cbn(){}function ubn(){}function obn(){}function sbn(){}function fbn(){}function hbn(){}function lbn(){}function abn(){}function dbn(){}function bbn(){}function wbn(){}function gbn(){}function pbn(){}function mbn(){}function vbn(){}function kbn(){}function ybn(){}function jbn(){}function Ebn(){}function Cbn(){}function Mbn(){}function Tbn(){}function KU(){}function Abn(){}function Sbn(){}function Pbn(){}function Ibn(){}function NO(){}function $O(){}function vE(){}function Obn(){}function Dbn(){}function xO(){}function Lbn(){}function Nbn(){}function $bn(){}function kE(){}function xbn(){}function Fbn(){}function Bbn(){}function Rbn(){}function Kbn(){}function _bn(){}function Hbn(){}function qbn(){}function Ubn(){}function _U(){}function Gbn(){}function zbn(){}function HU(){}function Xbn(){}function Vbn(){}function Wbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function FO(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function bwn(){}function qU(){}function UU(){}function wwn(){}function gwn(){}function pwn(){}function mwn(){}function vwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Cwn(){}function Mwn(){}function Twn(){}function Awn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Dwn(){}function Lwn(){}function Nwn(){}function $wn(){}function xwn(){}function Fwn(){}function Bwn(){}function Rwn(){}function Kwn(){}function _wn(){}function Hwn(){}function qwn(){}function Uwn(){}function Gwn(){}function zwn(){}function Xwn(){}function Vwn(){}function Wwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function mgn(){}function vgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Cgn(){}function Mgn(){}function Tgn(){}function Agn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Dgn(){}function Lgn(){}function Ngn(){}function $gn(){}function xgn(){}function Fgn(){}function Bgn(){}function Rgn(){}function Kgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Vgn(){}function Wgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function GU(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function m2n(){}function v2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function C2n(){}function M2n(){}function T2n(){}function A2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function D2n(){}function L2n(){}function N2n(){}function $2n(){}function x2n(){}function F2n(){}function B2n(){}function R2n(){}function K2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function V2n(){}function W2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function mpn(){}function vpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Cpn(){}function Mpn(){}function zU(){}function Tpn(){}function Apn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Dpn(){}function Lpn(){}function Npn(){}function $pn(){}function XU(){}function xpn(){}function Fpn(){}function Bpn(){}function Rpn(){}function Kpn(){}function _pn(){}function VU(){}function WU(){}function Hpn(){}function JU(){}function QU(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Vpn(){}function Wpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function Zpn(){}function YU(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function m3n(){}function v3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function C3n(){}function M3n(){}function T3n(){}function A3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function D3n(){}function L3n(){}function N3n(){}function $3n(){}function x3n(){}function F3n(){}function B3n(){}function R3n(){}function K3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function V3n(){}function W3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function u4n(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function p4n(){}function m4n(){}function v4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function C4n(){}function M4n(){}function T4n(){}function A4n(){}function S4n(){}function P4n(){}function I4n(){}function O4n(){}function _se(){}function D4n(){}function L4n(){}function N4n(){}function $4n(){}function x4n(){}function F4n(){}function B4n(){}function R4n(){}function K4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function G4n(){}function z4n(){}function X4n(){}function V4n(){}function W4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function rmn(){}function BO(){}function RO(){}function cmn(){}function KO(){}function umn(){}function omn(){}function smn(){}function fmn(){}function hmn(){}function lmn(){}function amn(){}function dmn(){}function bmn(){}function wmn(){}function ZU(){}function gmn(){}function pmn(){}function mmn(){}function Hse(){}function vmn(){}function kmn(){}function ymn(){}function jmn(){}function Emn(){}function Cmn(){}function Mmn(){}function Ra(){}function Tmn(){}function ep(){}function nG(){}function Amn(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function Dmn(){}function Lmn(){}function Nmn(){}function $mn(){}function xmn(){}function Fmn(){}function Bmn(){}function Rmn(){}function Kmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function Gmn(){}function hn(){}function zmn(){}function Xmn(){}function Vmn(){}function Wmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function rvn(){}function _O(){}function cvn(){}function uvn(){}function ovn(){}function yE(){}function svn(){}function HO(){}function jE(){}function fvn(){}function eG(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function wvn(){}function EE(){}function gvn(){}function pvn(){}function CE(){}function mvn(){}function ME(){}function vvn(){}function tG(){}function kvn(){}function qO(){}function iG(){}function yvn(){}function jvn(){}function Evn(){}function Cvn(){}function qse(){}function Mvn(){}function Tvn(){}function Avn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Dvn(){}function Lvn(){}function Nvn(){}function W3(){}function UO(){}function $vn(){}function xvn(){}function Fvn(){}function Bvn(){}function Rvn(){}function Kvn(){}function _vn(){}function Hvn(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Vvn(){}function Wvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function p6n(){}function m6n(){}function v6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function C6n(){}function M6n(){}function T6n(){}function A6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function D6n(){}function L6n(){}function N6n(){}function $6n(){}function x6n(){}function F6n(){}function B6n(){}function R6n(){}function K6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function V6n(){}function W6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function p5n(){}function m5n(){}function v5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function C5n(){}function M5n(){}function T5n(){}function A5n(){}function rG(){}function S5n(){}function P5n(){}function GO(){n6()}function I5n(){u7()}function O5n(){aA()}function D5n(){Q$()}function L5n(){M5()}function N5n(){ann()}function $5n(){qs()}function x5n(){jZ()}function F5n(){zk()}function B5n(){o7()}function R5n(){$7()}function K5n(){aCn()}function _5n(){Hp()}function H5n(){KLn()}function q5n(){yQ()}function U5n(){SOn()}function G5n(){jQ()}function z5n(){pNn()}function X5n(){AOn()}function V5n(){cm()}function W5n(){nxn()}function J5n(){Z$n()}function Q5n(){EDn()}function Y5n(){exn()}function Z5n(){ca()}function n8n(){ZE()}function e8n(){ltn()}function t8n(){cn()}function i8n(){txn()}function r8n(){Pxn()}function c8n(){POn()}function u8n(){nKn()}function o8n(){IOn()}function s8n(){bUn()}function f8n(){qnn()}function h8n(){kl()}function l8n(){wBn()}function a8n(){lc()}function d8n(){ROn()}function b8n(){_p()}function w8n(){Men()}function g8n(){ua()}function p8n(){Ten()}function m8n(){Bf()}function v8n(){Qk()}function k8n(){EF()}function y8n(){Dx()}function cf(){wSn()}function j8n(){YM()}function E8n(){mA()}function cG(){qe()}function C8n(){NT()}function M8n(){YY()}function uG(){D$()}function oG(){KA()}function T8n(){Fen()}function sG(n){Jn(n)}function A8n(n){this.a=n}function TE(n){this.a=n}function S8n(n){this.a=n}function P8n(n){this.a=n}function I8n(n){this.a=n}function O8n(n){this.a=n}function D8n(n){this.a=n}function L8n(n){this.a=n}function fG(n){this.a=n}function hG(n){this.a=n}function N8n(n){this.a=n}function $8n(n){this.a=n}function zO(n){this.a=n}function x8n(n){this.a=n}function F8n(n){this.a=n}function XO(n){this.a=n}function VO(n){this.a=n}function B8n(n){this.a=n}function WO(n){this.a=n}function R8n(n){this.a=n}function K8n(n){this.a=n}function _8n(n){this.a=n}function lG(n){this.b=n}function H8n(n){this.c=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function G8n(n){this.a=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function V8n(n){this.a=n}function W8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function e9n(n){this.a=n}function aG(n){this.a=n}function dG(n){this.a=n}function AE(n){this.a=n}function z9(n){this.a=n}function Ka(){this.a=[]}function t9n(n,e){n.a=e}function Use(n,e){n.a=e}function Gse(n,e){n.b=e}function zse(n,e){n.b=e}function Xse(n,e){n.b=e}function bG(n,e){n.j=e}function Vse(n,e){n.g=e}function Wse(n,e){n.i=e}function Jse(n,e){n.c=e}function Qse(n,e){n.c=e}function Yse(n,e){n.d=e}function Zse(n,e){n.d=e}function _a(n,e){n.k=e}function nfe(n,e){n.c=e}function wG(n,e){n.c=e}function gG(n,e){n.a=e}function efe(n,e){n.a=e}function tfe(n,e){n.f=e}function ife(n,e){n.a=e}function rfe(n,e){n.b=e}function JO(n,e){n.d=e}function SE(n,e){n.i=e}function pG(n,e){n.o=e}function cfe(n,e){n.r=e}function ufe(n,e){n.a=e}function ofe(n,e){n.b=e}function i9n(n,e){n.e=e}function sfe(n,e){n.f=e}function mG(n,e){n.g=e}function ffe(n,e){n.e=e}function hfe(n,e){n.f=e}function lfe(n,e){n.f=e}function QO(n,e){n.a=e}function YO(n,e){n.b=e}function afe(n,e){n.n=e}function dfe(n,e){n.a=e}function bfe(n,e){n.c=e}function wfe(n,e){n.c=e}function gfe(n,e){n.c=e}function pfe(n,e){n.a=e}function mfe(n,e){n.a=e}function vfe(n,e){n.d=e}function kfe(n,e){n.d=e}function yfe(n,e){n.e=e}function jfe(n,e){n.e=e}function Efe(n,e){n.g=e}function Cfe(n,e){n.f=e}function Mfe(n,e){n.j=e}function Tfe(n,e){n.a=e}function Afe(n,e){n.a=e}function Sfe(n,e){n.b=e}function r9n(n){n.b=n.a}function c9n(n){n.c=n.d.d}function vG(n){this.a=n}function kG(n){this.a=n}function yG(n){this.a=n}function Ha(n){this.a=n}function qa(n){this.a=n}function X9(n){this.a=n}function u9n(n){this.a=n}function jG(n){this.a=n}function V9(n){this.a=n}function PE(n){this.a=n}function ol(n){this.a=n}function Sb(n){this.a=n}function o9n(n){this.a=n}function s9n(n){this.a=n}function ZO(n){this.b=n}function J3(n){this.b=n}function Q3(n){this.b=n}function nD(n){this.a=n}function f9n(n){this.a=n}function eD(n){this.c=n}function C(n){this.c=n}function h9n(n){this.c=n}function Xv(n){this.d=n}function EG(n){this.a=n}function Te(n){this.a=n}function l9n(n){this.a=n}function CG(n){this.a=n}function MG(n){this.a=n}function TG(n){this.a=n}function AG(n){this.a=n}function SG(n){this.a=n}function PG(n){this.a=n}function Y3(n){this.a=n}function a9n(n){this.a=n}function d9n(n){this.a=n}function Z3(n){this.a=n}function b9n(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function v9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function C9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function A9n(n){this.a=n}function S9n(n){this.a=n}function Vv(n){this.a=n}function P9n(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function D9n(n){this.a=n}function IE(n){this.a=n}function L9n(n){this.a=n}function N9n(n){this.a=n}function n4(n){this.a=n}function IG(n){this.a=n}function $9n(n){this.a=n}function x9n(n){this.a=n}function F9n(n){this.a=n}function B9n(n){this.a=n}function R9n(n){this.a=n}function K9n(n){this.a=n}function OG(n){this.a=n}function DG(n){this.a=n}function LG(n){this.a=n}function Wv(n){this.a=n}function OE(n){this.e=n}function e4(n){this.a=n}function _9n(n){this.a=n}function tp(n){this.a=n}function NG(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function U9n(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function V9n(n){this.a=n}function W9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function Y9n(n){this.a=n}function $G(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function v7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function C7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function A7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function D7n(n){this.a=n}function L7n(n){this.a=n}function N7n(n){this.a=n}function $7n(n){this.a=n}function x7n(n){this.a=n}function F7n(n){this.c=n}function B7n(n){this.b=n}function R7n(n){this.a=n}function K7n(n){this.a=n}function _7n(n){this.a=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function V7n(n){this.a=n}function W7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function lkn(n){this.a=n}function sl(n){this.a=n}function sg(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function vkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Ckn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Akn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Dkn(n){this.a=n}function Lkn(n){this.a=n}function Nkn(n){this.a=n}function $kn(n){this.a=n}function xkn(n){this.a=n}function Fkn(n){this.a=n}function DE(n){this.a=n}function Bkn(n){this.f=n}function Rkn(n){this.a=n}function Kkn(n){this.a=n}function _kn(n){this.a=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Vkn(n){this.a=n}function Wkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function ayn(n){this.a=n}function tD(n){this.a=n}function xG(n){this.a=n}function lt(n){this.b=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function gyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function vyn(n){this.a=n}function kyn(n){this.b=n}function yyn(n){this.a=n}function W9(n){this.a=n}function jyn(n){this.a=n}function Eyn(n){this.a=n}function FG(n){this.c=n}function LE(n){this.e=n}function NE(n){this.a=n}function $E(n){this.a=n}function iD(n){this.a=n}function Cyn(n){this.d=n}function Myn(n){this.a=n}function BG(n){this.a=n}function RG(n){this.a=n}function Wd(n){this.e=n}function Pfe(){this.a=0}function de(){Hu(this)}function Z(){pL(this)}function rD(){sIn(this)}function Tyn(){}function Jd(){this.c=Gdn}function Ayn(n,e){n.b+=e}function Ife(n,e){e.Wb(n)}function Ofe(n){return n.a}function Dfe(n){return n.a}function Lfe(n){return n.a}function Nfe(n){return n.a}function $fe(n){return n.a}function M(n){return n.e}function xfe(){return null}function Ffe(){return null}function Bfe(){Cz(),pLe()}function Rfe(n){n.b.Of(n.e)}function Syn(n){n.b=new CD}function Jv(n,e){n.b=e-n.b}function Qv(n,e){n.a=e-n.a}function Bn(n,e){n.push(e)}function Pyn(n,e){n.sort(e)}function Iyn(n,e){e.jd(n.a)}function Kfe(n,e){gi(e,n)}function _fe(n,e,t){n.Yd(t,e)}function J9(n,e){n.e=e,e.b=n}function KG(n){uh(),this.a=n}function Oyn(n){uh(),this.a=n}function Dyn(n){uh(),this.a=n}function cD(n){m0(),this.a=n}function Lyn(n){O4(),VK.le(n)}function _G(){_G=F,new de}function Ua(){YTn.call(this)}function HG(){YTn.call(this)}function qG(){Ua.call(this)}function uD(){Ua.call(this)}function Nyn(){Ua.call(this)}function Q9(){Ua.call(this)}function Cu(){Ua.call(this)}function ip(){Ua.call(this)}function Pe(){Ua.call(this)}function Bo(){Ua.call(this)}function $yn(){Ua.call(this)}function nc(){Ua.call(this)}function xyn(){Ua.call(this)}function Fyn(){this.a=this}function xE(){this.Bb|=256}function Byn(){this.b=new GMn}function Pb(n,e){n.length=e}function FE(n,e){nn(n.a,e)}function Hfe(n,e){bnn(n.c,e)}function qfe(n,e){fi(n.b,e)}function Ufe(n,e){uA(n.a,e)}function Gfe(n,e){cx(n.a,e)}function t4(n,e){it(n.e,e)}function rp(n){jA(n.c,n.b)}function zfe(n,e){n.kc().Nb(e)}function UG(n){this.a=B5e(n)}function ni(){this.a=new de}function Ryn(){this.a=new de}function GG(){this.a=new rCn}function BE(){this.a=new Z}function oD(){this.a=new Z}function zG(){this.a=new Z}function hs(){this.a=new cbn}function Ga(){this.a=new NLn}function XG(){this.a=new _U}function VG(){this.a=new TOn}function WG(){this.a=new BAn}function Kyn(){this.a=new Z}function _yn(){this.a=new Z}function Hyn(){this.a=new Z}function JG(){this.a=new Z}function qyn(){this.d=new Z}function Uyn(){this.a=new zOn}function Gyn(){this.a=new ni}function zyn(){this.a=new de}function Xyn(){this.b=new de}function Vyn(){this.b=new Z}function QG(){this.e=new Z}function Wyn(){this.a=new Z5n}function Jyn(){this.d=new Z}function Qyn(){QIn.call(this)}function Yyn(){QIn.call(this)}function Zyn(){Z.call(this)}function YG(){qG.call(this)}function ZG(){BE.call(this)}function njn(){qC.call(this)}function ejn(){JG.call(this)}function Yv(){Tyn.call(this)}function sD(){Yv.call(this)}function cp(){Tyn.call(this)}function nz(){cp.call(this)}function tjn(){rz.call(this)}function ijn(){rz.call(this)}function rjn(){rz.call(this)}function cjn(){cz.call(this)}function Zv(){svn.call(this)}function ez(){svn.call(this)}function Mu(){Ct.call(this)}function ujn(){yjn.call(this)}function ojn(){yjn.call(this)}function sjn(){de.call(this)}function fjn(){de.call(this)}function hjn(){de.call(this)}function fD(){cxn.call(this)}function ljn(){ni.call(this)}function ajn(){xE.call(this)}function hD(){BX.call(this)}function tz(){de.call(this)}function lD(){BX.call(this)}function aD(){de.call(this)}function djn(){de.call(this)}function iz(){ME.call(this)}function bjn(){iz.call(this)}function wjn(){ME.call(this)}function gjn(){rG.call(this)}function rz(){this.a=new ni}function pjn(){this.a=new de}function mjn(){this.a=new Z}function cz(){this.a=new de}function up(){this.a=new Ct}function vjn(){this.j=new Z}function kjn(){this.a=new mEn}function yjn(){this.a=new mvn}function uz(){this.a=new Z4n}function n6(){n6=F,KK=new Ht}function dD(){dD=F,_K=new Ejn}function bD(){bD=F,HK=new jjn}function jjn(){XO.call(this,"")}function Ejn(){XO.call(this,"")}function Cjn(n){S$n.call(this,n)}function Mjn(n){S$n.call(this,n)}function oz(n){fG.call(this,n)}function sz(n){XEn.call(this,n)}function Xfe(n){XEn.call(this,n)}function Vfe(n){sz.call(this,n)}function Wfe(n){sz.call(this,n)}function Jfe(n){sz.call(this,n)}function Tjn(n){zN.call(this,n)}function Ajn(n){zN.call(this,n)}function Sjn(n){uSn.call(this,n)}function Pjn(n){Oz.call(this,n)}function e6(n){WE.call(this,n)}function fz(n){WE.call(this,n)}function Ijn(n){WE.call(this,n)}function hz(n){mje.call(this,n)}function lz(n){hz.call(this,n)}function ec(n){APn.call(this,n)}function Ojn(n){ec.call(this,n)}function op(){z9.call(this,{})}function Djn(){Djn=F,dQn=new M0n}function RE(){RE=F,GK=new STn}function Ljn(){Ljn=F,oun=new Bu}function az(){az=F,sun=new N1}function KE(){KE=F,P8=new $1}function wD(n){b4(),this.a=n}function gD(n){RQ(),this.a=n}function Qd(n){nN(),this.f=n}function pD(n){nN(),this.f=n}function Njn(n){bSn(),this.a=n}function $jn(n){n.b=null,n.c=0}function Qfe(n,e){n.e=e,bqn(n,e)}function Yfe(n,e){n.a=e,cEe(n)}function mD(n,e,t){n.a[e.g]=t}function Zfe(n,e,t){kke(t,n,e)}function nhe(n,e){Wae(e.i,n.n)}function xjn(n,e){v6e(n).Cd(e)}function ehe(n,e){n.a.ec().Mc(e)}function Fjn(n,e){return n.g-e.g}function the(n,e){return n*n/e}function on(n){return Jn(n),n}function $(n){return Jn(n),n}function Y9(n){return Jn(n),n}function ihe(n){return new AE(n)}function rhe(n){return new qb(n)}function dz(n){return Jn(n),n}function che(n){return Jn(n),n}function _E(n){ec.call(this,n)}function Ir(n){ec.call(this,n)}function Bjn(n){ec.call(this,n)}function vD(n){APn.call(this,n)}function i4(n){ec.call(this,n)}function Gn(n){ec.call(this,n)}function Or(n){ec.call(this,n)}function Rjn(n){ec.call(this,n)}function sp(n){ec.call(this,n)}function Kl(n){ec.call(this,n)}function _l(n){ec.call(this,n)}function fp(n){ec.call(this,n)}function nh(n){ec.call(this,n)}function kD(n){ec.call(this,n)}function Le(n){ec.call(this,n)}function Ku(n){Jn(n),this.a=n}function bz(n){return ld(n),n}function t6(n){TW(n,n.length)}function i6(n){return n.b==n.c}function Ib(n){return!!n&&n.b}function uhe(n){return!!n&&n.k}function ohe(n){return!!n&&n.j}function she(n,e,t){n.c.Ef(e,t)}function Kjn(n,e){n.be(e),e.ae(n)}function hp(n){uh(),this.a=Se(n)}function yD(){this.a=Oe(Se(ur))}function _jn(){throw M(new Pe)}function fhe(){throw M(new Pe)}function wz(){throw M(new Pe)}function Hjn(){throw M(new Pe)}function hhe(){throw M(new Pe)}function lhe(){throw M(new Pe)}function HE(){HE=F,O4()}function Hl(){X9.call(this,"")}function r6(){X9.call(this,"")}function x1(){X9.call(this,"")}function lp(){X9.call(this,"")}function gz(n){Ir.call(this,n)}function pz(n){Ir.call(this,n)}function eh(n){Gn.call(this,n)}function r4(n){Q3.call(this,n)}function qjn(n){r4.call(this,n)}function jD(n){BC.call(this,n)}function ED(n){JX.call(this,n,0)}function CD(){sJ.call(this,12,3)}function T(n,e){return kOn(n,e)}function qE(n,e){return o$(n,e)}function ahe(n,e){return n.a-e.a}function dhe(n,e){return n.a-e.a}function bhe(n,e){return n.a-e.a}function whe(n,e){return e in n.a}function Ujn(n){return n.a?n.b:0}function ghe(n){return n.a?n.b:0}function phe(n,e,t){e.Cd(n.a[t])}function mhe(n,e,t){e.Pe(n.a[t])}function vhe(n,e){n.b=new rr(e)}function khe(n,e){return n.b=e,n}function Gjn(n,e){return n.c=e,n}function zjn(n,e){return n.f=e,n}function yhe(n,e){return n.g=e,n}function mz(n,e){return n.a=e,n}function vz(n,e){return n.f=e,n}function jhe(n,e){return n.k=e,n}function kz(n,e){return n.a=e,n}function Ehe(n,e){return n.e=e,n}function yz(n,e){return n.e=e,n}function Che(n,e){return n.f=e,n}function Mhe(n,e){n.b=!0,n.d=e}function The(n,e){return n.b-e.b}function Ahe(n,e){return n.g-e.g}function She(n,e){return n?0:e-1}function Xjn(n,e){return n?0:e-1}function Phe(n,e){return n?e-1:0}function Ihe(n,e){return n.s-e.s}function Ohe(n,e){return e.rg(n)}function Yd(n,e){return n.b=e,n}function UE(n,e){return n.a=e,n}function Zd(n,e){return n.c=e,n}function n0(n,e){return n.d=e,n}function e0(n,e){return n.e=e,n}function jz(n,e){return n.f=e,n}function c6(n,e){return n.a=e,n}function c4(n,e){return n.b=e,n}function u4(n,e){return n.c=e,n}function an(n,e){return n.c=e,n}function Sn(n,e){return n.b=e,n}function dn(n,e){return n.d=e,n}function bn(n,e){return n.e=e,n}function Dhe(n,e){return n.f=e,n}function wn(n,e){return n.g=e,n}function gn(n,e){return n.a=e,n}function pn(n,e){return n.i=e,n}function mn(n,e){return n.j=e,n}function Lhe(n,e){ca(),ic(e,n)}function Nhe(n,e,t){Jbe(n.a,e,t)}function GE(n){$L.call(this,n)}function Vjn(n){Z5e.call(this,n)}function Wjn(n){SIn.call(this,n)}function Ez(n){SIn.call(this,n)}function F1(n){S0.call(this,n)}function Jjn(n){CN.call(this,n)}function Qjn(n){CN.call(this,n)}function Yjn(){DX.call(this,"")}function Li(){this.a=0,this.b=0}function Zjn(){this.b=0,this.a=0}function nEn(n,e){n.b=0,Zb(n,e)}function eEn(n,e){return n.k=e,n}function $he(n,e){return n.j=e,n}function xhe(n,e){n.c=e,n.b=!0}function tEn(){tEn=F,TQn=Xke()}function B1(){B1=F,voe=rke()}function iEn(){iEn=F,Ti=gye()}function Cz(){Cz=F,Oa=z4()}function o4(){o4=F,Udn=cke()}function rEn(){rEn=F,ise=uke()}function Mz(){Mz=F,yc=tEe()}function uf(n){return n.e&&n.e()}function cEn(n){return n.l|n.m<<22}function uEn(n,e){return n.c._b(e)}function oEn(n,e){return rBn(n.b,e)}function MD(n){return n?n.d:null}function Fhe(n){return n?n.g:null}function Bhe(n){return n?n.i:null}function za(n){return ll(n),n.o}function fg(n,e){return n.a+=e,n}function TD(n,e){return n.a+=e,n}function ql(n,e){return n.a+=e,n}function t0(n,e){return n.a+=e,n}function Tz(n,e){for(;n.Bd(e););}function zE(n){this.a=new ap(n)}function sEn(){throw M(new Pe)}function fEn(){throw M(new Pe)}function hEn(){throw M(new Pe)}function lEn(){throw M(new Pe)}function aEn(){throw M(new Pe)}function dEn(){throw M(new Pe)}function Ul(n){this.a=new iN(n)}function bEn(){this.a=new K5(Rln)}function wEn(){this.b=new K5(rln)}function gEn(){this.a=new K5(f1n)}function pEn(){this.b=new K5(Fq)}function mEn(){this.b=new K5(Fq)}function XE(n){this.a=0,this.b=n}function Az(n){zGn(),ILe(this,n)}function s4(n){return z1(n),n.a}function Z9(n){return n.b!=n.d.c}function Sz(n,e){return n.d[e.p]}function vEn(n,e){return XTe(n,e)}function Pz(n,e,t){n.splice(e,t)}function hg(n,e){for(;n.Re(e););}function kEn(n){n.c?Dqn(n):Lqn(n)}function yEn(){throw M(new Pe)}function jEn(){throw M(new Pe)}function EEn(){throw M(new Pe)}function CEn(){throw M(new Pe)}function MEn(){throw M(new Pe)}function TEn(){throw M(new Pe)}function AEn(){throw M(new Pe)}function SEn(){throw M(new Pe)}function PEn(){throw M(new Pe)}function IEn(){throw M(new Pe)}function Rhe(){throw M(new nc)}function Khe(){throw M(new nc)}function n7(n){this.a=new OEn(n)}function OEn(n){Ume(this,n,jje())}function e7(n){return!n||oIn(n)}function t7(n){return Zf[n]!=-1}function _he(){cP!=0&&(cP=0),uP=-1}function DEn(){RK==null&&(RK=[])}function i7(n,e){Cg.call(this,n,e)}function f4(n,e){i7.call(this,n,e)}function LEn(n,e){this.a=n,this.b=e}function NEn(n,e){this.a=n,this.b=e}function $En(n,e){this.a=n,this.b=e}function xEn(n,e){this.a=n,this.b=e}function FEn(n,e){this.a=n,this.b=e}function BEn(n,e){this.a=n,this.b=e}function REn(n,e){this.a=n,this.b=e}function h4(n,e){this.e=n,this.d=e}function Iz(n,e){this.b=n,this.c=e}function KEn(n,e){this.b=n,this.a=e}function _En(n,e){this.b=n,this.a=e}function HEn(n,e){this.b=n,this.a=e}function qEn(n,e){this.b=n,this.a=e}function UEn(n,e){this.a=n,this.b=e}function AD(n,e){this.a=n,this.b=e}function GEn(n,e){this.a=n,this.f=e}function i0(n,e){this.g=n,this.i=e}function je(n,e){this.f=n,this.g=e}function zEn(n,e){this.b=n,this.c=e}function XEn(n){KX(n.dc()),this.c=n}function Hhe(n,e){this.a=n,this.b=e}function VEn(n,e){this.a=n,this.b=e}function WEn(n){this.a=u(Se(n),15)}function Oz(n){this.a=u(Se(n),15)}function JEn(n){this.a=u(Se(n),85)}function VE(n){this.b=u(Se(n),85)}function WE(n){this.b=u(Se(n),51)}function JE(){this.q=new y.Date}function SD(n,e){this.a=n,this.b=e}function QEn(n,e){return Zc(n.b,e)}function r7(n,e){return n.b.Hc(e)}function YEn(n,e){return n.b.Ic(e)}function ZEn(n,e){return n.b.Qc(e)}function nCn(n,e){return n.b.Hc(e)}function eCn(n,e){return n.c.uc(e)}function tCn(n,e){return rt(n.c,e)}function of(n,e){return n.a._b(e)}function iCn(n,e){return n>e&&e0}function ND(n,e){return Ec(n,e)<0}function vCn(n,e){return JL(n.a,e)}function ole(n,e){yOn.call(this,n,e)}function Bz(n){wN(),uSn.call(this,n)}function Rz(n,e){bPn(n,n.length,e)}function s7(n,e){HPn(n,n.length,e)}function d6(n,e){return n.a.get(e)}function kCn(n,e){return Zc(n.e,e)}function Kz(n){return Jn(n),!1}function _z(n){this.a=u(Se(n),229)}function cC(n){In.call(this,n,21)}function uC(n,e){je.call(this,n,e)}function $D(n,e){je.call(this,n,e)}function yCn(n,e){this.b=n,this.a=e}function oC(n,e){this.d=n,this.e=e}function jCn(n,e){this.a=n,this.b=e}function ECn(n,e){this.a=n,this.b=e}function CCn(n,e){this.a=n,this.b=e}function MCn(n,e){this.a=n,this.b=e}function bp(n,e){this.a=n,this.b=e}function TCn(n,e){this.b=n,this.a=e}function Hz(n,e){this.b=n,this.a=e}function qz(n,e){je.call(this,n,e)}function Uz(n,e){je.call(this,n,e)}function lg(n,e){je.call(this,n,e)}function xD(n,e){je.call(this,n,e)}function FD(n,e){je.call(this,n,e)}function BD(n,e){je.call(this,n,e)}function sC(n,e){je.call(this,n,e)}function Gz(n,e){this.b=n,this.a=e}function fC(n,e){je.call(this,n,e)}function zz(n,e){this.b=n,this.a=e}function hC(n,e){je.call(this,n,e)}function ACn(n,e){this.b=n,this.a=e}function Xz(n,e){je.call(this,n,e)}function RD(n,e){je.call(this,n,e)}function f7(n,e){je.call(this,n,e)}function b6(n,e,t){n.splice(e,0,t)}function sle(n,e,t){n.Mb(t)&&e.Cd(t)}function fle(n,e,t){e.Pe(n.a.Ye(t))}function hle(n,e,t){e.Dd(n.a.Ze(t))}function lle(n,e,t){e.Cd(n.a.Kb(t))}function ale(n,e){return Au(n.c,e)}function dle(n,e){return Au(n.e,e)}function lC(n,e){je.call(this,n,e)}function aC(n,e){je.call(this,n,e)}function w6(n,e){je.call(this,n,e)}function Vz(n,e){je.call(this,n,e)}function ei(n,e){je.call(this,n,e)}function dC(n,e){je.call(this,n,e)}function SCn(n,e){this.a=n,this.b=e}function PCn(n,e){this.a=n,this.b=e}function ICn(n,e){this.a=n,this.b=e}function OCn(n,e){this.a=n,this.b=e}function DCn(n,e){this.a=n,this.b=e}function LCn(n,e){this.a=n,this.b=e}function NCn(n,e){this.b=n,this.a=e}function $Cn(n,e){this.b=n,this.a=e}function Wz(n,e){this.b=n,this.a=e}function d4(n,e){this.c=n,this.d=e}function xCn(n,e){this.e=n,this.d=e}function FCn(n,e){this.a=n,this.b=e}function BCn(n,e){this.a=n,this.b=e}function RCn(n,e){this.a=n,this.b=e}function KCn(n,e){this.b=n,this.a=e}function _Cn(n,e){this.b=e,this.c=n}function bC(n,e){je.call(this,n,e)}function h7(n,e){je.call(this,n,e)}function KD(n,e){je.call(this,n,e)}function Jz(n,e){je.call(this,n,e)}function g6(n,e){je.call(this,n,e)}function _D(n,e){je.call(this,n,e)}function HD(n,e){je.call(this,n,e)}function l7(n,e){je.call(this,n,e)}function Qz(n,e){je.call(this,n,e)}function qD(n,e){je.call(this,n,e)}function p6(n,e){je.call(this,n,e)}function Yz(n,e){je.call(this,n,e)}function m6(n,e){je.call(this,n,e)}function v6(n,e){je.call(this,n,e)}function Db(n,e){je.call(this,n,e)}function UD(n,e){je.call(this,n,e)}function GD(n,e){je.call(this,n,e)}function Zz(n,e){je.call(this,n,e)}function a7(n,e){je.call(this,n,e)}function ag(n,e){je.call(this,n,e)}function zD(n,e){je.call(this,n,e)}function wC(n,e){je.call(this,n,e)}function d7(n,e){je.call(this,n,e)}function Lb(n,e){je.call(this,n,e)}function gC(n,e){je.call(this,n,e)}function nX(n,e){je.call(this,n,e)}function XD(n,e){je.call(this,n,e)}function VD(n,e){je.call(this,n,e)}function WD(n,e){je.call(this,n,e)}function JD(n,e){je.call(this,n,e)}function QD(n,e){je.call(this,n,e)}function YD(n,e){je.call(this,n,e)}function ZD(n,e){je.call(this,n,e)}function HCn(n,e){this.b=n,this.a=e}function eX(n,e){je.call(this,n,e)}function qCn(n,e){this.a=n,this.b=e}function UCn(n,e){this.a=n,this.b=e}function GCn(n,e){this.a=n,this.b=e}function tX(n,e){je.call(this,n,e)}function iX(n,e){je.call(this,n,e)}function zCn(n,e){this.a=n,this.b=e}function ble(n,e){return k4(),e!=n}function b7(n){return oe(n.a),n.b}function nL(n){return yCe(n,n.c),n}function XCn(){return tEn(),new TQn}function VCn(){VC(),this.a=new kV}function WCn(){OA(),this.a=new ni}function JCn(){NN(),this.b=new ni}function QCn(n,e){this.b=n,this.d=e}function YCn(n,e){this.a=n,this.b=e}function ZCn(n,e){this.a=n,this.b=e}function nMn(n,e){this.a=n,this.b=e}function eMn(n,e){this.b=n,this.a=e}function rX(n,e){je.call(this,n,e)}function cX(n,e){je.call(this,n,e)}function pC(n,e){je.call(this,n,e)}function u0(n,e){je.call(this,n,e)}function eL(n,e){je.call(this,n,e)}function mC(n,e){je.call(this,n,e)}function uX(n,e){je.call(this,n,e)}function oX(n,e){je.call(this,n,e)}function w7(n,e){je.call(this,n,e)}function sX(n,e){je.call(this,n,e)}function tL(n,e){je.call(this,n,e)}function vC(n,e){je.call(this,n,e)}function iL(n,e){je.call(this,n,e)}function rL(n,e){je.call(this,n,e)}function cL(n,e){je.call(this,n,e)}function uL(n,e){je.call(this,n,e)}function fX(n,e){je.call(this,n,e)}function oL(n,e){je.call(this,n,e)}function hX(n,e){je.call(this,n,e)}function g7(n,e){je.call(this,n,e)}function sL(n,e){je.call(this,n,e)}function lX(n,e){je.call(this,n,e)}function p7(n,e){je.call(this,n,e)}function aX(n,e){je.call(this,n,e)}function tMn(n,e){this.b=n,this.a=e}function iMn(n,e){this.b=n,this.a=e}function rMn(n,e){this.b=n,this.a=e}function cMn(n,e){this.b=n,this.a=e}function dX(n,e){this.a=n,this.b=e}function uMn(n,e){this.a=n,this.b=e}function oMn(n,e){this.a=n,this.b=e}function V(n,e){this.a=n,this.b=e}function k6(n,e){je.call(this,n,e)}function m7(n,e){je.call(this,n,e)}function wp(n,e){je.call(this,n,e)}function y6(n,e){je.call(this,n,e)}function v7(n,e){je.call(this,n,e)}function fL(n,e){je.call(this,n,e)}function kC(n,e){je.call(this,n,e)}function j6(n,e){je.call(this,n,e)}function hL(n,e){je.call(this,n,e)}function yC(n,e){je.call(this,n,e)}function dg(n,e){je.call(this,n,e)}function k7(n,e){je.call(this,n,e)}function E6(n,e){je.call(this,n,e)}function C6(n,e){je.call(this,n,e)}function y7(n,e){je.call(this,n,e)}function jC(n,e){je.call(this,n,e)}function bg(n,e){je.call(this,n,e)}function lL(n,e){je.call(this,n,e)}function sMn(n,e){je.call(this,n,e)}function EC(n,e){je.call(this,n,e)}function fMn(n,e){this.a=n,this.b=e}function hMn(n,e){this.a=n,this.b=e}function lMn(n,e){this.a=n,this.b=e}function aMn(n,e){this.a=n,this.b=e}function dMn(n,e){this.a=n,this.b=e}function bMn(n,e){this.a=n,this.b=e}function bi(n,e){this.a=n,this.b=e}function wMn(n,e){this.a=n,this.b=e}function gMn(n,e){this.a=n,this.b=e}function pMn(n,e){this.a=n,this.b=e}function mMn(n,e){this.a=n,this.b=e}function vMn(n,e){this.a=n,this.b=e}function kMn(n,e){this.a=n,this.b=e}function yMn(n,e){this.b=n,this.a=e}function jMn(n,e){this.b=n,this.a=e}function EMn(n,e){this.b=n,this.a=e}function CMn(n,e){this.b=n,this.a=e}function MMn(n,e){this.a=n,this.b=e}function TMn(n,e){this.a=n,this.b=e}function CC(n,e){je.call(this,n,e)}function AMn(n,e){this.a=n,this.b=e}function SMn(n,e){this.a=n,this.b=e}function gp(n,e){je.call(this,n,e)}function PMn(n,e){this.f=n,this.c=e}function bX(n,e){return Au(n.g,e)}function wle(n,e){return Au(e.b,n)}function IMn(n,e){return wx(n.a,e)}function gle(n,e){return-n.b.af(e)}function ple(n,e){n&&Xe(hE,n,e)}function wX(n,e){n.i=null,kT(n,e)}function mle(n,e,t){yKn(e,oF(n,t))}function vle(n,e,t){yKn(e,oF(n,t))}function kle(n,e){VMe(n.a,u(e,58))}function OMn(n,e){U4e(n.a,u(e,12))}function MC(n,e){this.a=n,this.b=e}function DMn(n,e){this.a=n,this.b=e}function LMn(n,e){this.a=n,this.b=e}function NMn(n,e){this.a=n,this.b=e}function $Mn(n,e){this.a=n,this.b=e}function xMn(n,e){this.d=n,this.b=e}function FMn(n,e){this.e=n,this.a=e}function j7(n,e){this.b=n,this.c=e}function gX(n,e){this.i=n,this.g=e}function pX(n,e){this.d=n,this.e=e}function yle(n,e){cme(new ne(n),e)}function TC(n){return Rk(n.c,n.b)}function Kr(n){return n?n.md():null}function x(n){return n??null}function Ai(n){return typeof n===nB}function Nb(n){return typeof n===i3}function $b(n){return typeof n===dtn}function o0(n,e){return Ec(n,e)==0}function AC(n,e){return Ec(n,e)>=0}function M6(n,e){return Ec(n,e)!=0}function SC(n,e){return jve(n.Kc(),e)}function _1(n,e){return n.Rd().Xb(e)}function BMn(n){return eo(n),n.d.gc()}function PC(n){return F6(n==null),n}function T6(n,e){return n.a+=""+e,n}function Er(n,e){return n.a+=""+e,n}function A6(n,e){return n.a+=""+e,n}function Dc(n,e){return n.a+=""+e,n}function Be(n,e){return n.a+=""+e,n}function mX(n,e){return n.a+=""+e,n}function jle(n){return""+(Jn(n),n)}function RMn(n){Hu(this),f5(this,n)}function KMn(){oJ(),dW.call(this)}function _Mn(n,e){mW.call(this,n,e)}function HMn(n,e){mW.call(this,n,e)}function IC(n,e){mW.call(this,n,e)}function ir(n,e){xt(n,e,n.c.b,n.c)}function wg(n,e){xt(n,e,n.a,n.a.a)}function vX(n){return Ln(n,0),null}function qMn(){this.b=0,this.a=!1}function UMn(){this.b=0,this.a=!1}function GMn(){this.b=new ap(Qb(12))}function zMn(){zMn=F,kYn=Ce(jx())}function XMn(){XMn=F,HZn=Ce(iqn())}function VMn(){VMn=F,lre=Ce(xxn())}function kX(){kX=F,_G(),fun=new de}function sf(n){return n.a=0,n.b=0,n}function WMn(n,e){return n.a=e.g+1,n}function aL(n,e){Kb.call(this,n,e)}function Mn(n,e){Dt.call(this,n,e)}function gg(n,e){gX.call(this,n,e)}function JMn(n,e){T7.call(this,n,e)}function dL(n,e){Y4.call(this,n,e)}function Ue(n,e){iC(),Xe(yO,n,e)}function QMn(n,e){n.q.setTime(id(e))}function Ele(n){y.clearTimeout(n)}function Cle(n){return Se(n),new S6(n)}function YMn(n,e){return x(n)===x(e)}function ZMn(n,e){return n.a.a.a.cc(e)}function bL(n,e){return qo(n.a,0,e)}function yX(n){return Awe(u(n,74))}function pp(n){return wi((Jn(n),n))}function Mle(n){return wi((Jn(n),n))}function nTn(n){return Yc(n.l,n.m,n.h)}function jX(n,e){return jc(n.a,e.a)}function Tle(n,e){return KPn(n.a,e.a)}function Ale(n,e){return bt(n.a,e.a)}function th(n,e){return n.indexOf(e)}function Sle(n,e){return n.j[e.p]==2}function s0(n,e){return n==e?0:n?1:-1}function OC(n){return n<10?"0"+n:""+n}function Vr(n){return typeof n===dtn}function Ple(n){return n==rb||n==Iw}function Ile(n){return n==rb||n==Pw}function eTn(n,e){return jc(n.g,e.g)}function EX(n){return qr(n.b.b,n,0)}function tTn(){rM.call(this,0,0,0,0)}function ih(){CG.call(this,new Ql)}function CX(n,e){F4(n,0,n.length,e)}function Ole(n,e){return nn(n.a,e),e}function Dle(n,e){return xs(),e.a+=n}function Lle(n,e){return xs(),e.a+=n}function Nle(n,e){return xs(),e.c+=n}function $le(n,e){return nn(n.c,e),n}function MX(n,e){return Mo(n.a,e),n}function iTn(n){this.a=XCn(),this.b=n}function rTn(n){this.a=XCn(),this.b=n}function rr(n){this.a=n.a,this.b=n.b}function S6(n){this.a=n,GO.call(this)}function cTn(n){this.a=n,GO.call(this)}function mp(){Ho.call(this,0,0,0,0)}function DC(n){return Mo(new ii,n)}function uTn(n){return jM(u(n,123))}function fo(n){return n.vh()&&n.wh()}function pg(n){return n!=Jf&&n!=Sa}function hl(n){return n==Br||n==Xr}function mg(n){return n==us||n==Vf}function oTn(n){return n==S2||n==A2}function xle(n,e){return jc(n.g,e.g)}function sTn(n,e){return new Y4(e,n)}function Fle(n,e){return new Y4(e,n)}function TX(n){return rbe(n.b.Kc(),n.a)}function wL(n,e){um(n,e),G4(n,n.D)}function gL(n,e,t){aT(n,e),lT(n,t)}function vg(n,e,t){I0(n,e),P0(n,t)}function Ro(n,e,t){eu(n,e),tu(n,t)}function E7(n,e,t){_4(n,e),q4(n,t)}function C7(n,e,t){H4(n,e),U4(n,t)}function fTn(n,e,t){sV.call(this,n,e,t)}function AX(n){PMn.call(this,n,!0)}function hTn(){uC.call(this,"Tail",3)}function lTn(){uC.call(this,"Head",1)}function H1(n){dh(),mve.call(this,n)}function f0(n){rM.call(this,n,n,n,n)}function pL(n){n.c=K(ki,Fn,1,0,5,1)}function SX(n){return n.b&&xF(n),n.a}function PX(n){return n.b&&xF(n),n.c}function Ble(n,e){qf||(n.b=e)}function Rle(n,e){return n[n.length]=e}function Kle(n,e){return n[n.length]=e}function _le(n,e){return Yb(e,Af(n))}function Hle(n,e){return Yb(e,Af(n))}function qle(n,e){return pT(dN(n.d),e)}function Ule(n,e){return pT(dN(n.g),e)}function Gle(n,e){return pT(dN(n.j),e)}function Ni(n,e){Dt.call(this,n.b,e)}function zle(n,e){ve(Sc(n.a),DOn(e))}function Xle(n,e){ve(no(n.a),LOn(e))}function Vle(n,e,t){Ro(t,t.i+n,t.j+e)}function aTn(n,e,t){$t(n.c[e.g],e.g,t)}function Wle(n,e,t){u(n.c,71).Gi(e,t)}function mL(n,e,t){return $t(n,e,t),t}function dTn(n){nu(n.Sf(),new D9n(n))}function kg(n){return n!=null?mt(n):0}function Jle(n){return n==null?0:mt(n)}function P6(n){nt(),Wd.call(this,n)}function bTn(n){this.a=n,qV.call(this,n)}function Mf(){Mf=F,y.Math.log(2)}function Ko(){Ko=F,rl=(pCn(),Moe)}function wTn(){wTn=F,YH=new j5(aU)}function Ie(){Ie=F,new gTn,new Z}function gTn(){new de,new de,new de}function Qle(){throw M(new Kl(QJn))}function Yle(){throw M(new Kl(QJn))}function Zle(){throw M(new Kl(YJn))}function n1e(){throw M(new Kl(YJn))}function vL(n){this.a=n,VE.call(this,n)}function kL(n){this.a=n,VE.call(this,n)}function pTn(n,e){m0(),this.a=n,this.b=e}function e1e(n,e){Se(e),Tg(n).Jc(new Ru)}function Yt(n,e){QL(n.c,n.c.length,e)}function tc(n){return n.ae?1:0}function OX(n,e){return Ec(n,e)>0?n:e}function Yc(n,e,t){return{l:n,m:e,h:t}}function t1e(n,e){n.a!=null&&OMn(e,n.a)}function i1e(n){Zi(n,null),Ii(n,null)}function r1e(n,e,t){return Xe(n.g,t,e)}function yg(n,e,t){return nZ(e,t,n.c)}function c1e(n,e,t){return Xe(n.k,t,e)}function u1e(n,e,t){return GOe(n,e,t),t}function o1e(n,e){return ko(),e.n.b+=n}function vTn(n){nJ.call(this),this.b=n}function DX(n){vV.call(this),this.a=n}function kTn(){uC.call(this,"Range",2)}function LC(n){this.b=n,this.a=new Z}function yTn(n){this.b=new $bn,this.a=n}function jTn(n){n.a=new OO,n.c=new OO}function ETn(n){n.a=new de,n.d=new de}function CTn(n){$N(n,null),xN(n,null)}function MTn(n,e){return XOe(n.a,e,null)}function s1e(n,e){return Xe(n.a,e.a,e)}function Ki(n){return new V(n.a,n.b)}function LX(n){return new V(n.c,n.d)}function f1e(n){return new V(n.c,n.d)}function I6(n,e){return cOe(n.c,n.b,e)}function O(n,e){return n!=null&&Tx(n,e)}function yL(n,e){return Yve(n.Kc(),e)!=-1}function NC(n){return n.Ob()?n.Pb():null}function h1e(n){this.b=(Dn(),new eD(n))}function NX(n){this.a=n,de.call(this)}function TTn(){T7.call(this,null,null)}function ATn(){_C.call(this,null,null)}function STn(){je.call(this,"INSTANCE",0)}function PTn(){LZ(),this.a=new K5(Ion)}function ITn(n){return hh(n,0,n.length)}function l1e(n,e){return new VTn(n.Kc(),e)}function $X(n,e){return n.a.Bc(e)!=null}function OTn(n,e){me(n),n.Gc(u(e,15))}function a1e(n,e,t){n.c.bd(e,u(t,136))}function d1e(n,e,t){n.c.Ui(e,u(t,136))}function DTn(n,e){n.c&&(tW(e),rOn(e))}function b1e(n,e){n.q.setHours(e),G5(n,e)}function w1e(n,e){a0(e,n.a.a.a,n.a.a.b)}function g1e(n,e,t,i){$t(n.a[e.g],t.g,i)}function jL(n,e,t){return n.a[e.g][t.g]}function p1e(n,e){return n.e[e.c.p][e.p]}function m1e(n,e){return n.c[e.c.p][e.p]}function Tf(n,e){return n.a[e.c.p][e.p]}function v1e(n,e){return n.j[e.p]=IMe(e)}function EL(n,e){return n.a.Bc(e)!=null}function k1e(n,e){return $(R(e.a))<=n}function y1e(n,e){return $(R(e.a))>=n}function j1e(n,e){return RJ(n.f,e.Pg())}function vp(n,e){return n.a*e.a+n.b*e.b}function E1e(n,e){return n.a0?e/(n*n):e*100}function V1e(n,e){return n>0?e*e/n:e*e*100}function xb(n,e){return u(Lf(n.a,e),34)}function W1e(n,e){return ca(),Pn(n,e.e,e)}function J1e(n,e,t){return nC(),t.Mg(n,e)}function Q1e(n){return kl(),n.e.a+n.f.a/2}function Y1e(n,e,t){return kl(),t.e.a-n*e}function Z1e(n){return kl(),n.e.b+n.f.b/2}function nae(n,e,t){return kl(),t.e.b-n*e}function sAn(n){n.d=new cAn(n),n.e=new de}function fAn(){this.a=new C0,this.b=new C0}function hAn(n){this.c=n,this.a=1,this.b=1}function lAn(n){YF(),Syn(this),this.Ff(n)}function eae(n,e,t){YM(),n.pf(e)&&t.Cd(n)}function tae(n,e,t){return nn(e,jBn(n,t))}function a0(n,e,t){return n.a+=e,n.b+=t,n}function iae(n,e,t){return n.a*=e,n.b*=t,n}function ZX(n,e){return n.a=e.a,n.b=e.b,n}function HC(n){return n.a=-n.a,n.b=-n.b,n}function N6(n,e,t){return n.a-=e,n.b-=t,n}function aAn(n){Ct.call(this),c5(this,n)}function dAn(){je.call(this,"GROW_TREE",0)}function bAn(){je.call(this,"POLYOMINO",0)}function lo(n,e,t){Iu.call(this,n,e,t,2)}function rae(n,e,t){k5(Sc(n.a),e,DOn(t))}function wAn(n,e){a6(),T7.call(this,n,e)}function nV(n,e){Gl(),_C.call(this,n,e)}function gAn(n,e){Gl(),nV.call(this,n,e)}function pAn(n,e){Gl(),_C.call(this,n,e)}function cae(n,e){return n.c.Fc(u(e,136))}function uae(n,e,t){k5(no(n.a),e,LOn(t))}function mAn(n){this.c=n,eu(n,0),tu(n,0)}function PL(n,e){Ko(),oM.call(this,n,e)}function vAn(n,e){Ko(),PL.call(this,n,e)}function eV(n,e){Ko(),PL.call(this,n,e)}function tV(n,e){Ko(),oM.call(this,n,e)}function kAn(n,e){Ko(),eV.call(this,n,e)}function yAn(n,e){Ko(),tV.call(this,n,e)}function jAn(n,e){Ko(),oM.call(this,n,e)}function oae(n,e,t){return e.zl(n.e,n.c,t)}function sae(n,e,t){return e.Al(n.e,n.c,t)}function iV(n,e,t){return qA(ak(n,e),t)}function IL(n,e){return na(n.e,u(e,54))}function fae(n){return n==null?null:NDe(n)}function hae(n){return n==null?null:Aje(n)}function lae(n){return n==null?null:Jr(n)}function aae(n){return n==null?null:Jr(n)}function un(n){return F6(n==null||Nb(n)),n}function R(n){return F6(n==null||$b(n)),n}function Oe(n){return F6(n==null||Ai(n)),n}function ll(n){n.o==null&&cMe(n)}function rV(n){if(!n)throw M(new Q9)}function dae(n){if(!n)throw M(new uD)}function oe(n){if(!n)throw M(new nc)}function Fb(n){if(!n)throw M(new Cu)}function EAn(n){if(!n)throw M(new Bo)}function m4(){m4=F,aE=new ujn,new ojn}function Mg(){Mg=F,O2=new lt("root")}function cV(){cxn.call(this),this.Bb|=hr}function bae(n,e){this.d=n,c9n(this),this.b=e}function uV(n,e){i$.call(this,n),this.a=e}function oV(n,e){i$.call(this,n),this.a=e}function sV(n,e,t){VM.call(this,n,e,t,null)}function CAn(n,e,t){VM.call(this,n,e,t,null)}function P7(n,e){this.c=n,h4.call(this,n,e)}function $6(n,e){this.a=n,P7.call(this,n,e)}function fV(n){this.q=new y.Date(id(n))}function MAn(n){return n>8?0:n+1}function TAn(n,e){qf||nn(n.a,e)}function wae(n,e){return o7(),Q4(e.d.i,n)}function gae(n,e){return Hp(),new tUn(e,n)}function pae(n,e,t){return n.Ne(e,t)<=0?t:e}function mae(n,e,t){return n.Ne(e,t)<=0?e:t}function vae(n,e){return u(Lf(n.b,e),143)}function kae(n,e){return u(Lf(n.c,e),233)}function OL(n){return u(sn(n.a,n.b),294)}function AAn(n){return new V(n.c,n.d+n.a)}function SAn(n){return Jn(n),n?1231:1237}function PAn(n){return ko(),oTn(u(n,203))}function Bb(){Bb=F,ron=yn((go(),Gd))}function yae(n,e){e.a?MCe(n,e):EL(n.a,e.b)}function I7(n,e,t){++n.j,n.tj(),t$(n,e,t)}function IAn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function OAn(n,e,t){var i;i=n.fd(e),i.Rb(t)}function hV(n,e,t){return t=So(n,e,6,t),t}function lV(n,e,t){return t=So(n,e,3,t),t}function aV(n,e,t){return t=So(n,e,9,t),t}function ch(n,e){return X7(e,xtn),n.f=e,n}function dV(n,e){return(e&et)%n.d.length}function DAn(n,e,t){return zen(n.c,n.b,e,t)}function LAn(n,e){this.c=n,S0.call(this,e)}function NAn(n,e){this.a=n,kyn.call(this,e)}function O7(n,e){this.a=n,kyn.call(this,e)}function Dt(n,e){lt.call(this,n),this.a=e}function bV(n,e){FG.call(this,n),this.a=e}function DL(n,e){FG.call(this,n),this.a=e}function jae(n){VY.call(this,0,0),this.f=n}function $An(n,e,t){return n.a+=hh(e,0,t),n}function D7(n){return!n.a&&(n.a=new C0n),n.a}function wV(n,e){var t;return t=n.e,n.e=e,t}function gV(n,e){var t;return t=e,!!n.Fe(t)}function Eae(n,e){return _n(),n==e?0:n?1:-1}function Rb(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function L7(n){n.b?L7(n.b):n.f.c.zc(n.e,n.d)}function xAn(n){Hu(n.e),n.d.b=n.d,n.d.a=n.d}function Cae(n,e,t){Xa(),t9n(n,e.Ve(n.a,t))}function pV(n,e,t){return Pp(n,u(e,22),t)}function $s(n,e){return qE(new Array(e),n)}function Mae(n){return Ae(U1(n,32))^Ae(n)}function LL(n){return String.fromCharCode(n)}function Tae(n){return n==null?null:n.message}function Aae(n,e,t){return n.apply(e,t)}function Sae(n,e){var t;t=n[DB],t.call(n,e)}function Pae(n,e){var t;t=n[DB],t.call(n,e)}function Iae(n,e){return o7(),!Q4(e.d.i,n)}function mV(n,e,t,i){rM.call(this,n,e,t,i)}function FAn(){qC.call(this),this.a=new Li}function vV(){this.n=new Li,this.o=new Li}function BAn(){this.b=new Li,this.c=new Z}function RAn(){this.a=new Z,this.b=new Z}function KAn(){this.a=new _U,this.b=new Byn}function kV(){this.b=new Ql,this.a=new Ql}function _An(){this.b=new ni,this.a=new ni}function HAn(){this.b=new de,this.a=new de}function qAn(){this.b=new wEn,this.a=new H3n}function UAn(){this.a=new n8n,this.b=new Lpn}function GAn(){this.a=new Z,this.d=new Z}function qC(){this.n=new cp,this.i=new mp}function zAn(n){this.a=(Co(n,mw),new Gc(n))}function XAn(n){this.a=(Co(n,mw),new Gc(n))}function Oae(n){return n<100?null:new F1(n)}function Dae(n,e){return n.n.a=(Jn(e),e+10)}function Lae(n,e){return n.n.a=(Jn(e),e+10)}function Nae(n,e){return e==n||km(TA(e),n)}function VAn(n,e){return Xe(n.a,e,"")==null}function $ae(n,e){var t;return t=e.qi(n.a),t}function tt(n,e){return n.a+=e.a,n.b+=e.b,n}function mi(n,e){return n.a-=e.a,n.b-=e.b,n}function xae(n){return Pb(n.j.c,0),n.a=-1,n}function yV(n,e,t){return t=So(n,e,11,t),t}function Fae(n,e,t){t!=null&&mT(e,Fx(n,t))}function Bae(n,e,t){t!=null&&vT(e,Fx(n,t))}function jp(n,e,t,i){q.call(this,n,e,t,i)}function jV(n,e,t,i){q.call(this,n,e,t,i)}function WAn(n,e,t,i){jV.call(this,n,e,t,i)}function JAn(n,e,t,i){bM.call(this,n,e,t,i)}function NL(n,e,t,i){bM.call(this,n,e,t,i)}function EV(n,e,t,i){bM.call(this,n,e,t,i)}function QAn(n,e,t,i){NL.call(this,n,e,t,i)}function CV(n,e,t,i){NL.call(this,n,e,t,i)}function Nn(n,e,t,i){EV.call(this,n,e,t,i)}function YAn(n,e,t,i){CV.call(this,n,e,t,i)}function ZAn(n,e,t,i){jW.call(this,n,e,t,i)}function Kb(n,e){Ir.call(this,k8+n+Td+e)}function MV(n,e){return n.jk().wi().ri(n,e)}function TV(n,e){return n.jk().wi().ti(n,e)}function nSn(n,e){return Jn(n),x(n)===x(e)}function An(n,e){return Jn(n),x(n)===x(e)}function Rae(n,e){return n.b.Bd(new ECn(n,e))}function Kae(n,e){return n.b.Bd(new CCn(n,e))}function eSn(n,e){return n.b.Bd(new MCn(n,e))}function _ae(n,e){return n.e=u(n.d.Kb(e),159)}function AV(n,e,t){return n.lastIndexOf(e,t)}function Hae(n,e,t){return bt(n[e.a],n[t.a])}function qae(n,e){return U(e,(cn(),Cj),n)}function Uae(n,e){return jc(e.a.d.p,n.a.d.p)}function Gae(n,e){return jc(n.a.d.p,e.a.d.p)}function zae(n,e){return bt(n.c-n.s,e.c-e.s)}function Xae(n,e){return bt(n.b.e.a,e.b.e.a)}function Vae(n,e){return bt(n.c.e.a,e.c.e.a)}function tSn(n){return n.c?qr(n.c.a,n,0):-1}function Ep(n){return n==Ud||n==tl||n==qc}function SV(n,e){this.c=n,oN.call(this,n,e)}function iSn(n,e,t){this.a=n,JX.call(this,e,t)}function rSn(n){this.c=n,IC.call(this,Ey,0)}function cSn(n,e,t){this.c=e,this.b=t,this.a=n}function N7(n){k4(),this.d=n,this.a=new Eg}function uSn(n){uh(),this.a=(Dn(),new r4(n))}function Wae(n,e){hl(n.f)?QCe(n,e):Sye(n,e)}function oSn(n,e){sbe.call(this,n,n.length,e)}function Jae(n,e){qf||e&&(n.d=e)}function sSn(n,e){return O(e,15)&&xqn(n.c,e)}function Qae(n,e,t){return u(n.c,71).Wk(e,t)}function UC(n,e,t){return u(n.c,71).Xk(e,t)}function Yae(n,e,t){return oae(n,u(e,343),t)}function PV(n,e,t){return sae(n,u(e,343),t)}function Zae(n,e,t){return PKn(n,u(e,343),t)}function fSn(n,e,t){return _ye(n,u(e,343),t)}function x6(n,e){return e==null?null:tw(n.b,e)}function IV(n){return $b(n)?(Jn(n),n):n.ue()}function GC(n){return!isNaN(n)&&!isFinite(n)}function $L(n){jTn(this),vo(this),Bi(this,n)}function _u(n){pL(this),zV(this.c,0,n.Pc())}function _o(n,e,t){this.a=n,this.b=e,this.c=t}function hSn(n,e,t){this.a=n,this.b=e,this.c=t}function lSn(n,e,t){this.d=n,this.b=t,this.a=e}function aSn(n){this.a=n,fl(),vc(Date.now())}function dSn(n){bo(n.a),GJ(n.c,n.b),n.b=null}function xL(){xL=F,Oun=new $0n,AQn=new x0n}function bSn(){bSn=F,Ioe=K(ki,Fn,1,0,5,1)}function wSn(){wSn=F,Voe=K(ki,Fn,1,0,5,1)}function OV(){OV=F,Woe=K(ki,Fn,1,0,5,1)}function uh(){uh=F,new KG((Dn(),Dn(),sr))}function nde(n){return B4(),Ee((yNn(),IQn),n)}function ede(n){return Gu(),Ee((lNn(),xQn),n)}function tde(n){return YT(),Ee((JDn(),HQn),n)}function ide(n){return cT(),Ee((QDn(),qQn),n)}function rde(n){return NA(),Ee((Jxn(),UQn),n)}function cde(n){return bf(),Ee((fNn(),XQn),n)}function ude(n){return Uu(),Ee((sNn(),WQn),n)}function ode(n){return bu(),Ee((hNn(),QQn),n)}function sde(n){return VA(),Ee((zMn(),kYn),n)}function fde(n){return N0(),Ee((ENn(),jYn),n)}function hde(n){return Vp(),Ee((MNn(),CYn),n)}function lde(n){return A5(),Ee((CNn(),AYn),n)}function ade(n){return YE(),Ee((jDn(),SYn),n)}function dde(n){return uT(),Ee((YDn(),GYn),n)}function bde(n){return i5(),Ee((aNn(),pZn),n)}function wde(n){return Vi(),Ee((u$n(),yZn),n)}function gde(n){return nm(),Ee((ANn(),TZn),n)}function pde(n){return dd(),Ee((TNn(),DZn),n)}function DV(n,e){if(!n)throw M(new Gn(e))}function v4(n){if(!n)throw M(new Or(btn))}function FL(n,e){if(n!=e)throw M(new Bo)}function gSn(n,e,t){this.a=n,this.b=e,this.c=t}function LV(n,e,t){this.a=n,this.b=e,this.c=t}function pSn(n,e,t){this.a=n,this.b=e,this.c=t}function zC(n,e,t){this.b=n,this.a=e,this.c=t}function NV(n,e,t){this.b=n,this.c=e,this.a=t}function $V(n,e,t){this.a=n,this.b=e,this.c=t}function XC(n,e,t){this.e=e,this.b=n,this.d=t}function mSn(n,e,t){this.b=n,this.a=e,this.c=t}function mde(n,e,t){return Xa(),n.a.Yd(e,t),e}function BL(n){var e;return e=new ubn,e.e=n,e}function xV(n){var e;return e=new qyn,e.b=n,e}function $7(){$7=F,CP=new sgn,MP=new fgn}function VC(){VC=F,XZn=new xgn,zZn=new Fgn}function xs(){xs=F,YZn=new G2n,ZZn=new z2n}function vde(n){return D0(),Ee((qLn(),fne),n)}function kde(n){return tr(),Ee((XMn(),HZn),n)}function yde(n){return OT(),Ee((PNn(),GZn),n)}function jde(n){return $f(),Ee((SNn(),tne),n)}function Ede(n){return ow(),Ee((o$n(),rne),n)}function Cde(n){return DA(),Ee(($xn(),hne),n)}function Mde(n){return Yp(),Ee((D$n(),lne),n)}function Tde(n){return QM(),Ee((cLn(),ane),n)}function Ade(n){return u5(),Ee((_Ln(),dne),n)}function Sde(n){return bT(),Ee((HLn(),bne),n)}function Pde(n){return o1(),Ee((s$n(),wne),n)}function Ide(n){return pk(),Ee((eLn(),gne),n)}function Ode(n){return jm(),Ee(($$n(),jne),n)}function Dde(n){return pr(),Ee((aFn(),Ene),n)}function Lde(n){return Z4(),Ee((GLn(),Cne),n)}function Nde(n){return vl(),Ee((zLn(),Tne),n)}function $de(n){return KM(),Ee((nLn(),Ane),n)}function xde(n){return Jk(),Ee((N$n(),yne),n)}function Fde(n){return hd(),Ee((ULn(),mne),n)}function Bde(n){return vA(),Ee((L$n(),vne),n)}function Rde(n){return hk(),Ee((tLn(),kne),n)}function Kde(n){return Yo(),Ee((h$n(),Sne),n)}function _de(n){return a1(),Ee((Xxn(),Yte),n)}function Hde(n){return g5(),Ee((XLn(),Zte),n)}function qde(n){return cw(),Ee((INn(),nie),n)}function Ude(n){return T5(),Ee((f$n(),eie),n)}function Gde(n){return gs(),Ee((dFn(),tie),n)}function zde(n){return lh(),Ee((ONn(),iie),n)}function Xde(n){return wk(),Ee((iLn(),rie),n)}function Vde(n){return gr(),Ee((JLn(),uie),n)}function Wde(n){return ST(),Ee((VLn(),oie),n)}function Jde(n){return d5(),Ee((WLn(),sie),n)}function Qde(n){return om(),Ee((QLn(),fie),n)}function Yde(n){return dT(),Ee((YLn(),hie),n)}function Zde(n){return DT(),Ee((ZLn(),lie),n)}function n0e(n){return O0(),Ee((oNn(),Aie),n)}function e0e(n){return n5(),Ee((rLn(),Die),n)}function t0e(n){return sh(),Ee((sLn(),Rie),n)}function i0e(n){return Sf(),Ee((fLn(),_ie),n)}function r0e(n){return lf(),Ee((hLn(),tre),n)}function c0e(n){return M0(),Ee((lLn(),fre),n)}function u0e(n){return Qp(),Ee((BNn(),hre),n)}function o0e(n){return q5(),Ee((VMn(),lre),n)}function s0e(n){return b5(),Ee((nNn(),are),n)}function f0e(n){return w5(),Ee((FNn(),$re),n)}function h0e(n){return FM(),Ee((uLn(),xre),n)}function l0e(n){return yT(),Ee((oLn(),_re),n)}function a0e(n){return wA(),Ee((l$n(),qre),n)}function d0e(n){return Ok(),Ee((eNn(),Gre),n)}function b0e(n){return ZM(),Ee((aLn(),Ure),n)}function w0e(n){return sA(),Ee((xNn(),lce),n)}function g0e(n){return AT(),Ee((tNn(),ace),n)}function p0e(n){return XT(),Ee((iNn(),dce),n)}function m0e(n){return rA(),Ee((rNn(),wce),n)}function v0e(n){return _T(),Ee((cNn(),mce),n)}function k0e(n){return GM(),Ee((dLn(),Rce),n)}function y0e(n){return V4(),Ee((ZDn(),_Zn),n)}function j0e(n){return Vn(),Ee((x$n(),xZn),n)}function E0e(n){return nT(),Ee((uNn(),Kce),n)}function C0e(n){return N$(),Ee((bLn(),_ce),n)}function M0e(n){return R5(),Ee((a$n(),qce),n)}function T0e(n){return eC(),Ee((IDn(),Gce),n)}function A0e(n){return Fk(),Ee((bNn(),Uce),n)}function S0e(n){return tC(),Ee((ODn(),Xce),n)}function P0e(n){return ck(),Ee((wLn(),Vce),n)}function I0e(n){return Yk(),Ee((d$n(),Wce),n)}function O0e(n){return f6(),Ee((DDn(),lue),n)}function D0e(n){return Ak(),Ee((gLn(),aue),n)}function L0e(n){return gf(),Ee((w$n(),mue),n)}function N0e(n){return l1(),Ee((Lxn(),kue),n)}function $0e(n){return Rh(),Ee((F$n(),yue),n)}function x0e(n){return wd(),Ee((B$n(),Aue),n)}function F0e(n){return ci(),Ee((b$n(),zue),n)}function B0e(n){return Nf(),Ee((wNn(),Xue),n)}function R0e(n){return El(),Ee((RNn(),Vue),n)}function K0e(n){return pA(),Ee((R$n(),Wue),n)}function _0e(n){return jl(),Ee((dNn(),Que),n)}function H0e(n){return To(),Ee((KNn(),Zue),n)}function q0e(n){return lw(),Ee((Wxn(),noe),n)}function U0e(n){return Fg(),Ee((g$n(),eoe),n)}function G0e(n){return Oi(),Ee((K$n(),toe),n)}function z0e(n){return zu(),Ee((_$n(),ioe),n)}function X0e(n){return tn(),Ee((p$n(),roe),n)}function V0e(n){return go(),Ee((_Nn(),foe),n)}function W0e(n){return io(),Ee((Vxn(),hoe),n)}function J0e(n){return Gp(),Ee((gNn(),loe),n)}function Q0e(n,e){return Jn(n),n+(Jn(e),e)}function Y0e(n){return RL(),Ee((pLn(),aoe),n)}function Z0e(n){return qT(),Ee((HNn(),doe),n)}function nbe(n){return LT(),Ee((qNn(),goe),n)}function k4(){k4=F,tln=(tn(),Wn),II=Zn}function RL(){RL=F,vdn=new VSn,kdn=new LPn}function ebe(n){return!n.e&&(n.e=new Z),n.e}function KL(n,e){this.c=n,this.a=e,this.b=e-n}function vSn(n,e,t){this.a=n,this.b=e,this.c=t}function _L(n,e,t){this.a=n,this.b=e,this.c=t}function FV(n,e,t){this.a=n,this.b=e,this.c=t}function BV(n,e,t){this.a=n,this.b=e,this.c=t}function kSn(n,e,t){this.a=n,this.b=e,this.c=t}function ySn(n,e,t){this.a=n,this.b=e,this.c=t}function Xl(n,e,t){this.e=n,this.a=e,this.c=t}function jSn(n,e,t){Ko(),tJ.call(this,n,e,t)}function HL(n,e,t){Ko(),RW.call(this,n,e,t)}function RV(n,e,t){Ko(),RW.call(this,n,e,t)}function KV(n,e,t){Ko(),RW.call(this,n,e,t)}function ESn(n,e,t){Ko(),HL.call(this,n,e,t)}function _V(n,e,t){Ko(),HL.call(this,n,e,t)}function CSn(n,e,t){Ko(),_V.call(this,n,e,t)}function MSn(n,e,t){Ko(),RV.call(this,n,e,t)}function TSn(n,e,t){Ko(),KV.call(this,n,e,t)}function qL(n){rM.call(this,n.d,n.c,n.a,n.b)}function HV(n){rM.call(this,n.d,n.c,n.a,n.b)}function qV(n){this.d=n,c9n(this),this.b=nwe(n.d)}function tbe(n){return Cm(),Ee((Nxn(),Poe),n)}function x7(n,e){return Se(n),Se(e),new NEn(n,e)}function Cp(n,e){return Se(n),Se(e),new RSn(n,e)}function ibe(n,e){return Se(n),Se(e),new KSn(n,e)}function rbe(n,e){return Se(n),Se(e),new qEn(n,e)}function UL(n){return oe(n.b!=0),Xo(n,n.a.a)}function cbe(n){return oe(n.b!=0),Xo(n,n.c.b)}function ube(n){return!n.c&&(n.c=new W3),n.c}function y4(n){var e;return e=new Z,b$(e,n),e}function obe(n){var e;return e=new ni,b$(e,n),e}function ASn(n){var e;return e=new GG,A$(e,n),e}function F7(n){var e;return e=new Ct,A$(e,n),e}function u(n,e){return F6(n==null||Tx(n,e)),n}function sbe(n,e,t){TPn.call(this,e,t),this.a=n}function SSn(n,e){this.c=n,this.b=e,this.a=!1}function PSn(){this.a=";,;",this.b="",this.c=""}function ISn(n,e,t){this.b=n,_Mn.call(this,e,t)}function UV(n,e,t){this.c=n,oC.call(this,e,t)}function GV(n,e,t){d4.call(this,n,e),this.b=t}function zV(n,e,t){Bnn(t,0,n,e,t.length,!1)}function Lh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function XV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function fbe(n,e){e&&(n.b=e,n.a=(z1(e),e.a))}function B7(n,e){if(!n)throw M(new Gn(e))}function Mp(n,e){if(!n)throw M(new Or(e))}function VV(n,e){if(!n)throw M(new Bjn(e))}function hbe(n,e){return ZE(),jc(n.d.p,e.d.p)}function lbe(n,e){return kl(),bt(n.e.b,e.e.b)}function abe(n,e){return kl(),bt(n.e.a,e.e.a)}function dbe(n,e){return jc(GSn(n.d),GSn(e.d))}function WC(n,e){return e&&vM(n,e.d)?e:null}function bbe(n,e){return e==(tn(),Wn)?n.c:n.d}function WV(n){return Q1(dwe(Vr(n)?ds(n):n))}function wbe(n){return new V(n.c+n.b,n.d+n.a)}function OSn(n){return n!=null&&!lx(n,N9,$9)}function gbe(n,e){return(fBn(n)<<4|fBn(e))&ui}function DSn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function JV(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function QV(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function pbe(n,e){var t;return t=n.c,PQ(n,e),t}function YV(n,e){return e<0?n.g=-1:n.g=e,n}function JC(n,e){return Mme(n),n.a*=e,n.b*=e,n}function LSn(n,e,t){A$n.call(this,e,t),this.d=n}function R7(n,e,t){pX.call(this,n,e),this.c=t}function QC(n,e,t){pX.call(this,n,e),this.c=t}function ZV(n){OV(),ME.call(this),this.ci(n)}function NSn(){$4(),Bwe.call(this,(R1(),Ss))}function $Sn(n){return nt(),new Nh(0,n)}function xSn(){xSn=F,AU=(Dn(),new nD(IK))}function YC(){YC=F,new hZ((bD(),HK),(dD(),_K))}function FSn(){FSn=F,pun=K(Gi,J,17,256,0,1)}function BSn(){this.b=$(R(rn((qs(),y_))))}function GL(n){this.b=n,this.a=Wa(this.b.a).Od()}function RSn(n,e){this.b=n,this.a=e,GO.call(this)}function KSn(n,e){this.a=n,this.b=e,GO.call(this)}function _Sn(n,e,t){this.a=n,gg.call(this,e,t)}function HSn(n,e,t){this.a=n,gg.call(this,e,t)}function j4(n,e,t){var i;i=new qb(t),df(n,e,i)}function nW(n,e,t){var i;return i=n[e],n[e]=t,i}function ZC(n){var e;return e=n.slice(),o$(e,n)}function nM(n){var e;return e=n.n,n.a.b+e.d+e.a}function qSn(n){var e;return e=n.n,n.e.b+e.d+e.a}function eW(n){var e;return e=n.n,n.e.a+e.b+e.c}function tW(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function xe(n,e){return xt(n,e,n.c.b,n.c),!0}function mbe(n){return n.a?n.a:vN(n)}function vbe(n){return Lp(),Kh(n)==At(ia(n))}function kbe(n){return Lp(),ia(n)==At(Kh(n))}function d0(n,e){return O5(n,new d4(e.a,e.b))}function ybe(n,e){return yM(),Nx(n,e),new lIn(n,e)}function jbe(n,e){return n.c=e)throw M(new YG)}function _b(n,e){return $k(n,(Jn(e),new a9n(e)))}function Ap(n,e){return $k(n,(Jn(e),new d9n(e)))}function SPn(n,e,t){return VLe(n,u(e,12),u(t,12))}function PPn(n){return Ou(),u(n,12).g.c.length!=0}function IPn(n){return Ou(),u(n,12).e.c.length!=0}function uwe(n,e){return Hp(),bt(e.a.o.a,n.a.o.a)}function owe(n,e){e.Bb&kc&&!n.a.o&&(n.a.o=e)}function swe(n,e){e.Ug("General 'Rotator",1),jDe(n)}function fwe(n,e,t){e.qf(t,$(R(ee(n.b,t)))*n.a)}function OPn(n,e,t){return Xg(),W4(n,e)&&W4(n,t)}function _6(n){return zu(),!n.Hc(Fl)&&!n.Hc(Pa)}function hwe(n){return n.e?qJ(n.e):null}function H6(n){return Vr(n)?""+n:$qn(n)}function yW(n){var e;for(e=n;e.f;)e=e.f;return e}function lwe(n,e,t){return $t(e,0,oW(e[0],t[0])),e}function Vl(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function q(n,e,t,i){ti.call(this,n,e,t),this.b=i}function Ci(n,e,t,i,r){c$.call(this,n,e,t,i,r,-1)}function q6(n,e,t,i,r){ok.call(this,n,e,t,i,r,-1)}function bM(n,e,t,i){R7.call(this,n,e,t),this.b=i}function DPn(n){PMn.call(this,n,!1),this.a=!1}function LPn(){sMn.call(this,"LOOKAHEAD_LAYOUT",1)}function NPn(n){this.b=n,kp.call(this,n),RTn(this)}function $Pn(n){this.b=n,A7.call(this,n),KTn(this)}function Hb(n,e,t){this.a=n,jp.call(this,e,t,5,6)}function jW(n,e,t,i){this.b=n,ti.call(this,e,t,i)}function xPn(n,e){this.b=n,H8n.call(this,n.b),this.a=e}function FPn(n){this.a=kRn(n.a),this.b=new _u(n.b)}function EW(n,e){m0(),Hhe.call(this,n,FT(new Ku(e)))}function wM(n,e){return nt(),new BW(n,e,0)}function rN(n,e){return nt(),new BW(6,n,e)}function _i(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function Zc(n,e){return Ai(e)?AN(n,e):!!wr(n.f,e)}function cN(n,e){return e.Vh()?na(n.b,u(e,54)):e}function awe(n,e){return An(n.substr(0,e.length),e)}function $h(n){return new te(new UX(n.a.length,n.a))}function gM(n){return new V(n.c+n.b/2,n.d+n.a/2)}function dwe(n){return Yc(~n.l&ro,~n.m&ro,~n.h&Il)}function uN(n){return typeof n===vy||typeof n===eB}function Hu(n){n.f=new iTn(n),n.i=new rTn(n),++n.g}function BPn(n){if(!n)throw M(new nc);return n.d}function Sp(n){var e;return e=a5(n),oe(e!=null),e}function bwe(n){var e;return e=I5e(n),oe(e!=null),e}function C4(n,e){var t;return t=n.a.gc(),BJ(e,t),t-e}function fi(n,e){var t;return t=n.a.zc(e,n),t==null}function _7(n,e){return n.a.zc(e,(_n(),wa))==null}function CW(n){return new Tn(null,vwe(n,n.length))}function MW(n,e,t){return cGn(n,u(e,42),u(t,176))}function Pp(n,e,t){return Ks(n.a,e),nW(n.b,e.g,t)}function wwe(n,e,t){E4(t,n.a.c.length),Go(n.a,t,e)}function B(n,e,t,i){xFn(e,t,n.length),gwe(n,e,t,i)}function gwe(n,e,t,i){var r;for(r=e;r0?y.Math.log(n/e):-100}function KPn(n,e){return Ec(n,e)<0?-1:Ec(n,e)>0?1:0}function H7(n,e){OTn(n,O(e,160)?e:u(e,2036).Rl())}function PW(n,e){if(n==null)throw M(new sp(e))}function vwe(n,e){return yme(e,n.length),new XSn(n,e)}function IW(n,e){return e?Bi(n,e):!1}function kwe(){return RE(),S(T(uQn,1),G,549,0,[GK])}function G6(n){return n.e==0?n:new Qa(-n.e,n.d,n.a)}function ywe(n,e){return bt(n.c.c+n.c.b,e.c.c+e.c.b)}function q7(n,e){xt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function _Pn(n,e){return n.c?_Pn(n.c,e):nn(n.b,e),n}function jwe(n,e,t){var i;return i=Jb(n,e),qN(n,e,t),i}function HPn(n,e,t){var i;for(i=0;i=n.g}function $t(n,e,t){return dae(t==null||oPe(n,t)),n[e]=t}function $W(n,e){return zn(e,n.length+1),n.substr(e)}function gN(n,e){for(Jn(e);n.c=n?new Dz:Gme(n-1)}function Hi(n){return!n.a&&n.c?n.c.b:n.a}function KW(n){return O(n,616)?n:new oOn(n)}function z1(n){n.c?z1(n.c):(ea(n),n.d=!0)}function V6(n){n.c?n.c.$e():(n.d=!0,fTe(n))}function sIn(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function fIn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function _we(n,e){var t;t=n.Ih(e),t>=0?n.ki(t):Pnn(n,e)}function hIn(n,e){n.c<0||n.b.b0;)n=n<<1|(n<0?1:0);return n}function mIn(n,e){var t;return t=new Lc(n),Bn(e.c,t),t}function vIn(n,e){n.u.Hc((zu(),Fl))&&zEe(n,e),h4e(n,e)}function mc(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function Cr(n,e){return JL(n.a,e)?n.b[u(e,22).g]:null}function nge(){return YE(),S(T(oon,1),G,489,0,[b_])}function ege(){return eC(),S(T($1n,1),G,490,0,[Bq])}function tge(){return tC(),S(T(zce,1),G,558,0,[Rq])}function ige(){return f6(),S(T(tan,1),G,539,0,[Hj])}function jM(n){return!n.n&&(n.n=new q(Ar,n,1,7)),n.n}function mN(n){return!n.c&&(n.c=new q(Qu,n,9,9)),n.c}function UW(n){return!n.c&&(n.c=new Nn(he,n,5,8)),n.c}function rge(n){return!n.b&&(n.b=new Nn(he,n,4,7)),n.b}function U7(n){return n.j.c.length=0,zW(n.c),xae(n.a),n}function P4(n){return n.e==rv&&jfe(n,Y8e(n.g,n.b)),n.e}function G7(n){return n.f==rv&&Cfe(n,q7e(n.g,n.b)),n.f}function Ve(n,e,t,i){return Hxn(n,e,t,!1),BT(n,i),n}function kIn(n,e){this.b=n,oN.call(this,n,e),RTn(this)}function yIn(n,e){this.b=n,SV.call(this,n,e),KTn(this)}function W6(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function GW(n,e){this.b=n,this.c=e,this.a=new dp(this.b)}function Xi(n,e){return zn(e,n.length),n.charCodeAt(e)}function cge(n,e){DY(n,$(yl(e,"x")),$(yl(e,"y")))}function uge(n,e){DY(n,$(yl(e,"x")),$(yl(e,"y")))}function ut(n,e){return ea(n),new Tn(n,new tQ(e,n.a))}function _r(n,e){return ea(n),new Tn(n,new _J(e,n.a))}function Ub(n,e){return ea(n),new uV(n,new ILn(e,n.a))}function EM(n,e){return ea(n),new oV(n,new OLn(e,n.a))}function oge(n,e){return new GIn(u(Se(n),50),u(Se(e),50))}function sge(n,e){return bt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function jIn(n,e,t){t.a?tu(n,e.b-n.f/2):eu(n,e.a-n.g/2)}function fge(n,e){return bt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function hge(n,e){return $z(),bt((Jn(n),n),(Jn(e),e))}function lge(n){return n!=null&&r7(jO,n.toLowerCase())}function zW(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Tg(n){var e;return e=n.b,!e&&(n.b=e=new N8n(n)),e}function vN(n){var e;return e=Wme(n),e||null}function EIn(n,e){var t,i;return t=n/e,i=wi(t),t>i&&++i,i}function age(n,e,t){var i;i=u(n.d.Kb(t),159),i&&i.Nb(e)}function dge(n,e,t){wIe(n.a,t),zve(t),xCe(n.b,t),$Ie(e,t)}function CM(n,e,t,i){this.a=n,this.c=e,this.b=t,this.d=i}function XW(n,e,t,i){this.c=n,this.b=e,this.a=t,this.d=i}function CIn(n,e,t,i){this.c=n,this.b=e,this.d=t,this.a=i}function Ho(n,e,t,i){this.c=n,this.d=e,this.b=t,this.a=i}function MIn(n,e,t,i){this.a=n,this.d=e,this.c=t,this.b=i}function kN(n,e,t,i){this.a=n,this.e=e,this.d=t,this.c=i}function TIn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function yN(n,e,t){this.a=ktn,this.d=n,this.b=e,this.c=t}function Op(n,e,t,i){je.call(this,n,e),this.a=t,this.b=i}function AIn(n,e){this.d=(Jn(n),n),this.a=16449,this.c=e}function SIn(n){this.a=new Z,this.e=K(ye,J,53,n,0,2)}function bge(n){n.Ug("No crossing minimization",1),n.Vg()}function PIn(){ec.call(this,"There is no more element.")}function IIn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function OIn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function Za(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function DIn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function LIn(n,e,t,i){Ko(),DLn.call(this,e,t,i),this.a=n}function NIn(n,e,t,i){Ko(),DLn.call(this,e,t,i),this.a=n}function jN(n,e,t){var i,r;return i=utn(n),r=e.ti(t,i),r}function al(n){var e,t;return t=(e=new Jd,e),K4(t,n),t}function EN(n){var e,t;return t=(e=new Jd,e),fnn(t,n),t}function wge(n,e){var t;return t=ee(n.f,e),HQ(e,t),null}function $In(n){return!n.b&&(n.b=new q(Vt,n,12,3)),n.b}function xIn(n){return F6(n==null||uN(n)&&n.Tm!==J2),n}function MM(n){return n.n&&(n.e!==Fzn&&n.je(),n.j=null),n}function I4(n){if(eo(n.d),n.d.d!=n.c)throw M(new Bo)}function VW(n){return oe(n.b0&&bKn(this)}function FIn(n,e){this.a=n,bae.call(this,n,u(n.d,15).fd(e))}function gge(n,e){return bt(Su(n)*ao(n),Su(e)*ao(e))}function pge(n,e){return bt(Su(n)*ao(n),Su(e)*ao(e))}function mge(n){return _0(n)&&on(un(z(n,(cn(),Nd))))}function vge(n,e){return Pn(n,u(v(e,(cn(),Cv)),17),e)}function kge(n,e){return u(v(n,(W(),T3)),15).Fc(e),e}function WW(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function BIn(n,e,t,i){this.b=n,this.c=i,IC.call(this,e,t)}function yge(n,e,t){n.i=0,n.e=0,e!=t&&yFn(n,e,t)}function jge(n,e,t){n.i=0,n.e=0,e!=t&&jFn(n,e,t)}function Ege(n,e,t){return s6(),J5e(u(ee(n.e,e),529),t)}function Dp(n){var e;return e=n.f,e||(n.f=new h4(n,n.c))}function RIn(n,e){return xg(n.j,e.s,e.c)+xg(e.e,n.s,n.c)}function KIn(n,e){n.e&&!n.e.a&&(Ayn(n.e,e),KIn(n.e,e))}function _In(n,e){n.d&&!n.d.a&&(Ayn(n.d,e),_In(n.d,e))}function Cge(n,e){return-bt(Su(n)*ao(n),Su(e)*ao(e))}function Mge(n){return u(n.ld(),149).Pg()+":"+Jr(n.md())}function HIn(){tF(this,new oG),this.wb=(G1(),Hn),o4()}function qIn(n){this.b=new Z,hi(this.b,this.b),this.a=n}function JW(n,e){new Ct,this.a=new Mu,this.b=n,this.c=e}function j0(){j0=F,Pun=new FU,ZK=new FU,Iun=new D0n}function Dn(){Dn=F,sr=new A0n,Wh=new P0n,hP=new I0n}function QW(){QW=F,RQn=new nbn,_Qn=new aW,KQn=new ebn}function Lp(){Lp=F,mP=new Z,m_=new de,p_=new Z}function TM(n,e){if(n==null)throw M(new sp(e));return n}function AM(n){return!n.a&&(n.a=new q(Qe,n,10,11)),n.a}function ft(n){return!n.q&&(n.q=new q(As,n,11,10)),n.q}function _(n){return!n.s&&(n.s=new q(ku,n,21,17)),n.s}function Tge(n){return Se(n),IRn(new te(re(n.a.Kc(),new En)))}function Age(n,e){return wo(n),wo(e),Fjn(u(n,22),u(e,22))}function nd(n,e,t){var i,r;i=IV(t),r=new AE(i),df(n,e,r)}function MN(n,e,t,i,r,c){ok.call(this,n,e,t,i,r,c?-2:-1)}function UIn(n,e,t,i){pX.call(this,e,t),this.b=n,this.a=i}function GIn(n,e){Vfe.call(this,new iN(n)),this.a=n,this.b=e}function YW(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Sge(n){xs();var e;e=u(n.g,10),e.n.a=n.d.c+e.d.b}function O4(){O4=F;var n,e;e=!$8e(),n=new V3,VK=e?new og:n}function TN(n){return Dn(),O(n,59)?new jD(n):new BC(n)}function SM(n){return O(n,16)?new B6(u(n,16)):obe(n.Kc())}function Pge(n){return new HTn(n,n.e.Rd().gc()*n.c.Rd().gc())}function Ige(n){return new qTn(n,n.e.Rd().gc()*n.c.Rd().gc())}function ZW(n){return n&&n.hashCode?n.hashCode():l0(n)}function AN(n,e){return e==null?!!wr(n.f,null):zbe(n.i,e)}function Oge(n,e){var t;return t=$X(n.a,e),t&&(e.d=null),t}function zIn(n,e,t){return n.f?n.f.ef(e,t):!1}function z7(n,e,t,i){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i)}function SN(n,e,t,i){$t(n.c[e.g],e.g,t),$t(n.b[e.g],e.g,i)}function Dge(n,e,t){return $(R(t.a))<=n&&$(R(t.b))>=e}function XIn(n,e){this.g=n,this.d=S(T(Qh,1),b1,10,0,[e])}function VIn(n){this.c=n,this.b=new Ul(u(Se(new tbn),50))}function WIn(n){this.c=n,this.b=new Ul(u(Se(new ewn),50))}function JIn(n){this.b=n,this.a=new Ul(u(Se(new Nbn),50))}function QIn(){this.b=new ni,this.d=new Ct,this.e=new ZG}function nJ(){this.c=new Li,this.d=new Li,this.e=new Li}function E0(){this.a=new Mu,this.b=(Co(3,mw),new Gc(3))}function Wl(n,e){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e}function PM(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function YIn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function ZIn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function X1(n,e,t,i,r,c,s){return new GN(n.e,e,t,i,r,c,s)}function Lge(n,e,t){return t>=0&&An(n.substr(t,e.length),e)}function nOn(n,e){return O(e,149)&&An(n.b,u(e,149).Pg())}function Nge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}function eOn(n,e){var t;return t=n.b.Qc(e),WDn(t,n.b.gc()),t}function X7(n,e){if(n==null)throw M(new sp(e));return n}function Hr(n){return n.u||(Zu(n),n.u=new NAn(n,n)),n.u}function PN(n){this.a=(Dn(),O(n,59)?new jD(n):new BC(n))}function au(n){var e;return e=u(Un(n,16),29),e||n.ii()}function IM(n,e){var t;return t=za(n.Rm),e==null?t:t+": "+e}function qo(n,e,t){return Fi(e,t,n.length),n.substr(e,t-e)}function tOn(n,e){qC.call(this),lQ(this),this.a=n,this.c=e}function $ge(n){n&&IM(n,n.ie())}function xge(n){HE(),y.setTimeout(function(){throw n},0)}function Fge(){return YT(),S(T(Bun,1),G,436,0,[o_,Fun])}function Bge(){return cT(),S(T(Kun,1),G,435,0,[Run,s_])}function Rge(){return uT(),S(T(bon,1),G,432,0,[v_,vP])}function Kge(){return V4(),S(T(KZn,1),G,517,0,[dj,L_])}function _ge(){return KM(),S(T(Qsn,1),G,429,0,[fH,Jsn])}function Hge(){return pk(),S(T($sn,1),G,428,0,[WP,Nsn])}function qge(){return QM(),S(T(Asn,1),G,431,0,[Tsn,V_])}function Uge(){return wk(),S(T(qhn,1),G,430,0,[UH,GH])}function Gge(){return n5(),S(T(Oie,1),G,531,0,[r9,i9])}function zge(){return yT(),S(T(Rln,1),G,501,0,[RI,D2])}function Xge(){return sh(),S(T(Bie,1),G,523,0,[mb,y1])}function Vge(){return Sf(),S(T(Kie,1),G,522,0,[Rd,zf])}function Wge(){return lf(),S(T(ere,1),G,528,0,[zw,ja])}function Jge(){return hk(),S(T(Bsn,1),G,488,0,[Fsn,QP])}function Qge(){return GM(),S(T(S1n,1),G,491,0,[$q,A1n])}function Yge(){return N$(),S(T(N1n,1),G,492,0,[D1n,L1n])}function Zge(){return FM(),S(T(Bln,1),G,433,0,[dq,Fln])}function n2e(){return ZM(),S(T(_ln,1),G,434,0,[Kln,vq])}function e2e(){return M0(),S(T(sre,1),G,465,0,[Ea,P2])}function t2e(){return ck(),S(T(x1n,1),G,438,0,[Kq,JI])}function i2e(){return Ak(),S(T(ran,1),G,437,0,[YI,ian])}function r2e(){return RL(),S(T(dO,1),G,347,0,[vdn,kdn])}function OM(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function V7(n){return n.b.b==0?n.a.sf():UL(n.b)}function c2e(n){if(n.p!=5)throw M(new Cu);return Ae(n.f)}function u2e(n){if(n.p!=5)throw M(new Cu);return Ae(n.k)}function eJ(n){return x(n.a)===x((D$(),CU))&&rOe(n),n.a}function o2e(n,e){n.b=e,n.c>0&&n.b>0&&(n.g=cM(n.c,n.b,n.a))}function s2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=cM(n.c,n.b,n.a))}function iOn(n,e){ufe(this,new V(n.a,n.b)),ofe(this,F7(e))}function C0(){Wfe.call(this,new ap(Qb(12))),KX(!0),this.a=2}function IN(n,e,t){nt(),Wd.call(this,n),this.b=e,this.a=t}function tJ(n,e,t){Ko(),LE.call(this,e),this.a=n,this.b=t}function rOn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function f2e(n){return n.b==0?null:(oe(n.b!=0),Xo(n,n.a.a))}function Nc(n,e){return e==null?Kr(wr(n.f,null)):d6(n.i,e)}function cOn(n,e,t,i,r){return new rF(n,(B4(),i_),e,t,i,r)}function DM(n,e){return zDn(e),Lme(n,K(ye,Ke,28,e,15,1),e)}function LM(n,e){return TM(n,"set1"),TM(e,"set2"),new VEn(n,e)}function h2e(n,e){var t=XK[n.charCodeAt(0)];return t??n}function uOn(n,e){var t,i;return t=e,i=new DO,LGn(n,t,i),i.d}function ON(n,e,t,i){var r;r=new FAn,e.a[t.g]=r,Pp(n.b,i,r)}function l2e(n,e){var t;return t=Ime(n.f,e),tt(HC(t),n.f.d)}function W7(n){var e;_me(n.a),dTn(n.a),e=new IE(n.a),HY(e)}function a2e(n,e){_qn(n,!0),nu(n.e.Rf(),new NV(n,!0,e))}function d2e(n,e){return Lp(),n==At(Kh(e))||n==At(ia(e))}function b2e(n,e){return kl(),u(v(e,(lc(),Sh)),17).a==n}function wi(n){return Math.max(Math.min(n,et),-2147483648)|0}function oOn(n){this.a=u(Se(n),277),this.b=(Dn(),new XX(n))}function sOn(n,e,t){this.i=new Z,this.b=n,this.g=e,this.a=t}function iJ(n,e,t){this.a=new Z,this.e=n,this.f=e,this.c=t}function NM(n,e,t){this.c=new Z,this.e=n,this.f=e,this.b=t}function fOn(n){qC.call(this),lQ(this),this.a=n,this.c=!0}function w2e(n){function e(){}return e.prototype=n||{},new e}function g2e(n){if(n.Ae())return null;var e=n.n;return rP[e]}function J7(n){return n.Db>>16!=3?null:u(n.Cb,27)}function Af(n){return n.Db>>16!=9?null:u(n.Cb,27)}function hOn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function M0(){M0=F,Ea=new cX(s3,0),P2=new cX(f3,1)}function sh(){sh=F,mb=new tX(f3,0),y1=new tX(s3,1)}function Sf(){Sf=F,Rd=new iX(_B,0),zf=new iX("UP",1)}function lOn(){lOn=F,oQn=Ce((RE(),S(T(uQn,1),G,549,0,[GK])))}function aOn(n){var e;return e=new zE(Qb(n.length)),eY(e,n),e}function dOn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function p2e(n,e){return Zxn(n,e)?(W$n(n),!0):!1}function dl(n,e){if(e==null)throw M(new ip);return F8e(n,e)}function Q7(n,e){var t;t=n.q.getHours(),n.q.setDate(e),G5(n,t)}function rJ(n,e,t){var i;i=n.Ih(e),i>=0?n.bi(i,t):ten(n,e,t)}function bOn(n,e){var t;return t=n.Ih(e),t>=0?n.Wh(t):hF(n,e)}function wOn(n,e){var t;for(Se(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function DN(n,e,t){var i;i=vFn(n,e,t),n.b=new ET(i.c.length)}function Ag(n,e,t){$M(),n&&Xe(yU,n,e),n&&Xe(hE,n,t)}function m2e(n,e){return VC(),_n(),u(e.a,17).a0}function cJ(n){var e;return e=n.d,e=n.bj(n.f),ve(n,e),e.Ob()}function gOn(n,e){var t;return t=new fW(e),_Kn(t,n),new _u(t)}function y2e(n){if(n.p!=0)throw M(new Cu);return M6(n.f,0)}function j2e(n){if(n.p!=0)throw M(new Cu);return M6(n.k,0)}function pOn(n){return n.Db>>16!=7?null:u(n.Cb,241)}function D4(n){return n.Db>>16!=6?null:u(n.Cb,241)}function mOn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function At(n){return n.Db>>16!=11?null:u(n.Cb,27)}function Gb(n){return n.Db>>16!=17?null:u(n.Cb,29)}function vOn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function uJ(n){var e;return ea(n),e=new ni,ut(n,new M9n(e))}function kOn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function E2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),G5(n,t)}function yOn(n,e){xC(this),this.f=e,this.g=n,MM(this),this.je()}function jOn(n,e){this.a=n,this.c=Ki(this.a),this.b=new PM(e)}function EOn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new _u(t))}function COn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new _u(t))}function MOn(n){this.a=n,this.b=K(Sie,J,2043,n.e.length,0,2)}function TOn(){this.a=new ih,this.e=new ni,this.g=0,this.i=0}function $M(){$M=F,yU=new de,hE=new de,ple(MQn,new wvn)}function AOn(){AOn=F,aie=Pu(new ii,(Vi(),zr),(tr(),bj))}function oJ(){oJ=F,die=Pu(new ii,(Vi(),zr),(tr(),bj))}function SOn(){SOn=F,wie=Pu(new ii,(Vi(),zr),(tr(),bj))}function POn(){POn=F,Lie=Re(new ii,(Vi(),zr),(tr(),x8))}function ko(){ko=F,xie=Re(new ii,(Vi(),zr),(tr(),x8))}function IOn(){IOn=F,Fie=Re(new ii,(Vi(),zr),(tr(),x8))}function NN(){NN=F,Hie=Re(new ii,(Vi(),zr),(tr(),x8))}function J6(n,e,t,i,r,c){return new ml(n.e,e,n.Lj(),t,i,r,c)}function Dr(n,e,t){return e==null?Vc(n.f,null,t):$0(n.i,e,t)}function Zi(n,e){n.c&&du(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function $i(n,e){n.c&&du(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function ic(n,e){n.i&&du(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Ii(n,e){n.d&&du(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function $N(n,e){n.a&&du(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function xN(n,e){n.b&&du(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function OOn(n,e){$we(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68).b}function C2e(n,e){return bt(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}function M2e(n,e){return bt(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}function T2e(n){return Y$(),_n(),u(n.a,86).d.e!=0}function xM(n,e){O(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,e)}function FN(n,e){O(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,e)}function A2e(n,e){LY(n,e),O(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2)}function S2e(n,e){var t,i;t=e.c,i=t!=null,i&&Ip(n,new qb(e.c))}function DOn(n){var e,t;return t=(o4(),e=new Jd,e),K4(t,n),t}function LOn(n){var e,t;return t=(o4(),e=new Jd,e),K4(t,n),t}function NOn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function P2e(n,e,t){return nn(n.a,(yM(),Nx(e,t),new i0(e,t))),n}function $c(n,e){return dr(),a$(e)?new eM(e,n):new j7(e,n)}function Y7(n){return dh(),Ec(n,0)>=0?ta(n):G6(ta(n1(n)))}function I2e(n){var e;return e=u(ZC(n.b),9),new _o(n.a,e,n.c)}function $On(n,e){var t;return t=u(tw(Dp(n.a),e),16),t?t.gc():0}function xOn(n,e,t){var i;oBn(e,t,n.c.length),i=t-e,Pz(n.c,e,i)}function Jl(n,e,t){oBn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Np(n){this.c=new Ct,this.b=n.b,this.d=n.c,this.a=n.a}function BN(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function ed(n,e,t,i){this.c=n,this.d=i,$N(this,e),xN(this,t)}function sJ(n,e){Xfe.call(this,new ap(Qb(n))),Co(e,Ozn),this.a=e}function FOn(n,e,t){return new rF(n,(B4(),t_),null,!1,e,t)}function BOn(n,e,t){return new rF(n,(B4(),r_),e,t,null,!1)}function O2e(){return Gu(),S(T(xr,1),G,108,0,[xun,Yr,Aw])}function D2e(){return bu(),S(T(JQn,1),G,472,0,[vf,pa,zs])}function L2e(){return Uu(),S(T(VQn,1),G,471,0,[Mh,ga,Gs])}function N2e(){return bf(),S(T(Sw,1),G,237,0,[bc,Wc,wc])}function $2e(){return i5(),S(T(Pon,1),G,391,0,[E_,j_,C_])}function x2e(){return D0(),S(T(R_,1),G,372,0,[ub,ma,cb])}function F2e(){return u5(),S(T(Psn,1),G,322,0,[B8,pj,Ssn])}function B2e(){return bT(),S(T(Osn,1),G,351,0,[Isn,VP,W_])}function R2e(){return hd(),S(T(pne,1),G,460,0,[Y_,mv,p2])}function K2e(){return Z4(),S(T(sH,1),G,299,0,[uH,oH,mj])}function _2e(){return vl(),S(T(Mne,1),G,311,0,[vj,v2,E3])}function H2e(){return g5(),S(T(Lhn,1),G,390,0,[FH,Dhn,MI])}function q2e(){return gr(),S(T(cie,1),G,463,0,[n9,Vu,Jc])}function U2e(){return ST(),S(T(zhn,1),G,387,0,[Uhn,zH,Ghn])}function G2e(){return d5(),S(T(Xhn,1),G,349,0,[VH,XH,Ij])}function z2e(){return om(),S(T(Whn,1),G,350,0,[WH,Vhn,e9])}function X2e(){return dT(),S(T(Yhn,1),G,352,0,[Qhn,JH,Jhn])}function V2e(){return DT(),S(T(Zhn,1),G,388,0,[QH,Ov,Gw])}function W2e(){return O0(),S(T(Tie,1),G,464,0,[Oj,t9,PI])}function Pf(n){return cc(S(T(Ei,1),J,8,0,[n.i.n,n.n,n.a]))}function J2e(){return b5(),S(T(gln,1),G,392,0,[wln,nq,Lj])}function ROn(){ROn=F,Fre=Pu(new ii,(Qp(),u9),(q5(),uln))}function FM(){FM=F,dq=new uX("DFS",0),Fln=new uX("BFS",1)}function KOn(n,e,t){var i;i=new E3n,i.b=e,i.a=t,++e.b,nn(n.d,i)}function Q2e(n,e,t){var i;i=new rr(t.d),tt(i,n),DY(e,i.a,i.b)}function Y2e(n,e){LTn(n,Ae(vi(w0(e,24),YA)),Ae(vi(e,YA)))}function zb(n,e){if(n<0||n>e)throw M(new Ir(Ptn+n+Itn+e))}function Ln(n,e){if(n<0||n>=e)throw M(new Ir(Ptn+n+Itn+e))}function zn(n,e){if(n<0||n>=e)throw M(new gz(Ptn+n+Itn+e))}function In(n,e){this.b=(Jn(n),n),this.a=e&vw?e:e|64|wh}function fJ(n){var e;return ea(n),e=(j0(),j0(),ZK),fT(n,e)}function Z2e(n,e,t){var i;return i=V5(n,e,!1),i.b<=e&&i.a<=t}function npe(){return nT(),S(T(O1n,1),G,439,0,[xq,I1n,P1n])}function epe(){return _T(),S(T(a1n,1),G,394,0,[l1n,Oq,h1n])}function tpe(){return XT(),S(T(f1n,1),G,445,0,[Bj,qI,Mq])}function ipe(){return rA(),S(T(bce,1),G,456,0,[Tq,Sq,Aq])}function rpe(){return Ok(),S(T(Uln,1),G,393,0,[KI,Hln,qln])}function cpe(){return AT(),S(T(s1n,1),G,300,0,[Cq,o1n,u1n])}function upe(){return jl(),S(T(ldn,1),G,346,0,[uO,M1,M9])}function ope(){return Fk(),S(T(Fq,1),G,444,0,[XI,VI,WI])}function spe(){return Nf(),S(T(Zan,1),G,278,0,[Bv,Jw,Rv])}function fpe(){return Gp(),S(T(mdn,1),G,280,0,[pdn,Yw,aO])}function T0(n){return Se(n),O(n,16)?new _u(u(n,16)):y4(n.Kc())}function hJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return Q1(ewe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hf(n,e){return Q1(twe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function RN(n,e){return Q1(iwe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hpe(n,e){var t;return t=(Jn(n),n).g,rV(!!t),Jn(e),t(e)}function _On(n,e){var t,i;return i=C4(n,e),t=n.a.fd(i),new zEn(n,t)}function lpe(n){return n.Db>>16!=6?null:u(dF(n),241)}function ape(n){if(n.p!=2)throw M(new Cu);return Ae(n.f)&ui}function dpe(n){if(n.p!=2)throw M(new Cu);return Ae(n.k)&ui}function E(n){return oe(n.ai?1:0}function GOn(n,e){var t,i;return t=s$(e),i=t,u(ee(n.c,i),17).a}function KN(n,e,t){var i;i=n.d[e.p],n.d[e.p]=n.d[t.p],n.d[t.p]=i}function Cpe(n,e,t){var i;n.n&&e&&t&&(i=new uvn,nn(n.e,i))}function _N(n,e){if(fi(n.a,e),e.d)throw M(new ec(nXn));e.d=n}function dJ(n,e){this.a=new Z,this.d=new Z,this.f=n,this.c=e}function zOn(){this.c=new PTn,this.a=new $Ln,this.b=new Xyn,lCn()}function XOn(){qp(),this.b=new de,this.a=new de,this.c=new Z}function VOn(n,e,t){this.d=n,this.j=e,this.e=t,this.o=-1,this.p=3}function WOn(n,e,t){this.d=n,this.k=e,this.f=t,this.o=-1,this.p=5}function JOn(n,e,t,i,r,c){dQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function QOn(n,e,t,i,r,c){bQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function YOn(n,e,t,i,r,c){OJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function ZOn(n,e,t,i,r,c){pQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function nDn(n,e,t,i,r,c){DJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function eDn(n,e,t,i,r,c){wQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function tDn(n,e,t,i,r,c){gQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function iDn(n,e,t,i,r,c){LJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function rDn(n,e,t,i){LE.call(this,t),this.b=n,this.c=e,this.d=i}function cDn(n,e){this.f=n,this.a=($4(),MO),this.c=MO,this.b=e}function uDn(n,e){this.g=n,this.d=($4(),TO),this.a=TO,this.b=e}function bJ(n,e){!n.c&&(n.c=new Rt(n,0)),HA(n.c,(at(),F9),e)}function Mpe(n,e){return oMe(n,e,O(e,102)&&(u(e,19).Bb&hr)!=0)}function Tpe(n,e){return KPn(vc(n.q.getTime()),vc(e.q.getTime()))}function oDn(n){return XL(n.e.Rd().gc()*n.c.Rd().gc(),16,new O8n(n))}function Ape(n){return!!n.u&&Sc(n.u.a).i!=0&&!(n.n&&Ix(n.n))}function Spe(n){return!!n.a&&no(n.a.a).i!=0&&!(n.b&&Ox(n.b))}function wJ(n,e){return e==0?!!n.o&&n.o.f!=0:Cx(n,e)}function Ppe(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Hc(t)}function sDn(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Mc(t)}function fDn(n,e){var t;return t=1-e,n.a[t]=jT(n.a[t],t),jT(n,e)}function hDn(n,e){var t,i;return i=vi(n,mr),t=Fs(e,32),hf(t,i)}function lDn(n,e,t){var i;i=(Se(n),new _u(n)),O7e(new EOn(i,e,t))}function Z7(n,e,t){var i;i=(Se(n),new _u(n)),D7e(new COn(i,e,t))}function fc(n,e,t,i,r,c){return Hxn(n,e,t,c),CY(n,i),MY(n,r),n}function aDn(n,e,t,i){return n.a+=""+qo(e==null?gu:Jr(e),t,i),n}function xi(n,e){this.a=n,Xv.call(this,n),zb(e,n.gc()),this.b=e}function dDn(n){this.a=K(ki,Fn,1,QQ(y.Math.max(8,n))<<1,5,1)}function nk(n){return u(xf(n,K(Qh,b1,10,n.c.length,0,1)),199)}function fh(n){return u(xf(n,K(O_,rR,18,n.c.length,0,1)),483)}function bDn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function Q6(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function wDn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function Ipe(n,e,t){n.a=e,n.c=t,n.b.a.$b(),vo(n.d),Pb(n.e.a.c,0)}function gDn(n,e){var t;n.e=new uz,t=aw(e),Yt(t,n.c),Iqn(n,t,0)}function ri(n,e,t,i){var r;r=new nG,r.a=e,r.b=t,r.c=i,xe(n.a,r)}function Q(n,e,t,i){var r;r=new nG,r.a=e,r.b=t,r.c=i,xe(n.b,r)}function pDn(n,e,t){if(n<0||et)throw M(new Ir(qje(n,e,t)))}function ek(n,e){if(n<0||n>=e)throw M(new Ir(kEe(n,e)));return n}function Ope(n){if(!("stack"in n))try{throw n}catch{}return n}function Sg(n){return s6(),O(n.g,10)?u(n.g,10):null}function Dpe(n){return Tg(n).dc()?!1:(e1e(n,new Pr),!0)}function id(n){var e;return Vr(n)?(e=n,e==-0?0:e):X4e(n)}function mDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function vDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function kDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function gJ(n){var e;return z1(n),e=new L0n,hg(n.a,new j9n(e)),e}function pJ(){var n,e,t;return e=(t=(n=new Jd,n),t),nn(n0n,e),e}function BM(n){var e;return z1(n),e=new N0n,hg(n.a,new E9n(e)),e}function Lpe(n,e){return n.a<=n.b?(e.Dd(n.a++),!0):!1}function yDn(n){P$.call(this,n,(B4(),e_),null,!1,null,!1)}function jDn(){jDn=F,SYn=Ce((YE(),S(T(oon,1),G,489,0,[b_])))}function EDn(){EDn=F,eln=wIn(Y(1),Y(4)),nln=wIn(Y(1),Y(2))}function Npe(n,e){return new _L(e,N6(Ki(e.e),n,n),(_n(),!0))}function RM(n){return new Gc((Co(n,cB),oT(nr(nr(5,n),n/10|0))))}function $pe(n){return XL(n.e.Rd().gc()*n.c.Rd().gc(),273,new I8n(n))}function CDn(n){return u(xf(n,K(FZn,DXn,12,n.c.length,0,1)),2042)}function xpe(n){return ko(),!fr(n)&&!(!fr(n)&&n.c.i.c==n.d.i.c)}function Fpe(n,e){return _p(),u(v(e,(lc(),I2)),17).a>=n.gc()}function Y6(n,e){vLe(e,n),JV(n.d),JV(u(v(n,(cn(),mI)),214))}function HN(n,e){kLe(e,n),QV(n.d),QV(u(v(n,(cn(),mI)),214))}function Bpe(n,e,t){n.d&&du(n.d.e,n),n.d=e,n.d&&b0(n.d.e,t,n)}function Rpe(n,e,t){return t.f.c.length>0?MW(n.a,e,t):MW(n.b,e,t)}function Kpe(n,e,t){var i;i=i9e();try{return Aae(n,e,t)}finally{D3e(i)}}function A0(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.pe()),i}function Z6(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.se()),i}function L4(n,e){var t,i;return t=Jb(n,e),i=null,t&&(i=t.se()),i}function bl(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=gnn(t)),i}function _pe(n,e,t){var i;return i=wm(t),FA(n.g,i,e),FA(n.i,e,t),e}function mJ(n,e,t){this.d=new $7n(this),this.e=n,this.i=e,this.f=t}function MDn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function TDn(n,e,t,i){ETn(this),this.c=n,this.e=e,this.f=t,this.b=i}function vJ(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function ADn(n,e,t,i){return O(t,59)?new iAn(n,e,t,i):new vW(n,e,t,i)}function N4(n){return O(n,16)?u(n,16).dc():!n.Kc().Ob()}function SDn(n){if(n.e.g!=n.b)throw M(new Bo);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function kJ(n,e){Jn(e),$t(n.a,n.c,e),n.c=n.c+1&n.a.length-1,JRn(n)}function V1(n,e){Jn(e),n.b=n.b-1&n.a.length-1,$t(n.a,n.b,e),JRn(n)}function PDn(n){var e;e=n.Gh(),this.a=O(e,71)?u(e,71).Ii():e.Kc()}function Hpe(n){return new In(Ame(u(n.a.md(),16).gc(),n.a.ld()),16)}function IDn(){IDn=F,Gce=Ce((eC(),S(T($1n,1),G,490,0,[Bq])))}function ODn(){ODn=F,Xce=Ce((tC(),S(T(zce,1),G,558,0,[Rq])))}function DDn(){DDn=F,lue=Ce((f6(),S(T(tan,1),G,539,0,[Hj])))}function qpe(){return dd(),S(T(Lon,1),G,389,0,[Ow,Don,P_,I_])}function Upe(){return B4(),S(T(lP,1),G,304,0,[e_,t_,i_,r_])}function Gpe(){return Vp(),S(T(EYn,1),G,332,0,[uj,cj,oj,sj])}function zpe(){return A5(),S(T(TYn,1),G,406,0,[fj,wP,gP,hj])}function Xpe(){return N0(),S(T(yYn,1),G,417,0,[rj,ij,a_,d_])}function Vpe(){return nm(),S(T(MZn,1),G,416,0,[rb,Iw,Pw,a2])}function Wpe(){return $f(),S(T(ene,1),G,421,0,[j3,lv,av,B_])}function Jpe(){return OT(),S(T(UZn,1),G,371,0,[F_,HP,qP,wj])}function Qpe(){return cw(),S(T(RH,1),G,203,0,[TI,BH,S2,A2])}function Ype(){return lh(),S(T(Hhn,1),G,284,0,[k1,_hn,HH,qH])}function Zpe(n){var e;return n.j==(tn(),ae)&&(e=mHn(n),Au(e,Zn))}function n3e(n,e){var t;t=e.a,Zi(t,e.c.d),Ii(t,e.d.d),nw(t.a,n.n)}function yJ(n,e){var t;return t=u(Lf(n.b,e),67),!t&&(t=new Ct),t}function xp(n){return s6(),O(n.g,154)?u(n.g,154):null}function e3e(n){n.a=null,n.e=null,Pb(n.b.c,0),Pb(n.f.c,0),n.c=null}function KM(){KM=F,fH=new Zz(qm,0),Jsn=new Zz("TOP_LEFT",1)}function n5(){n5=F,r9=new eX("UPPER",0),i9=new eX("LOWER",1)}function t3e(n,e){return vp(new V(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function LDn(n,e){return u(ho(_b(u(ot(n.k,e),15).Oc(),b2)),113)}function NDn(n,e){return u(ho(Ap(u(ot(n.k,e),15).Oc(),b2)),113)}function i3e(){return Qp(),S(T(rln,1),G,405,0,[LI,c9,u9,o9])}function r3e(){return w5(),S(T(xln,1),G,353,0,[aq,BI,lq,hq])}function c3e(){return sA(),S(T(c1n,1),G,354,0,[Eq,i1n,r1n,t1n])}function u3e(){return go(),S(T(I9,1),G,386,0,[rE,Gd,iE,Qw])}function o3e(){return To(),S(T(Yue,1),G,291,0,[nE,nl,Ta,Zj])}function s3e(){return El(),S(T(aU,1),G,223,0,[lU,Yj,Kv,F3])}function f3e(){return qT(),S(T(Cdn,1),G,320,0,[wU,ydn,Edn,jdn])}function h3e(){return LT(),S(T(woe,1),G,415,0,[gU,Tdn,Mdn,Adn])}function l3e(n){return $M(),Zc(yU,n)?u(ee(yU,n),341).Qg():null}function Uo(n,e,t){return e<0?hF(n,t):u(t,69).wk().Bk(n,n.hi(),e)}function a3e(n,e,t){var i;return i=wm(t),FA(n.j,i,e),Xe(n.k,e,t),e}function d3e(n,e,t){var i;return i=wm(t),FA(n.d,i,e),Xe(n.e,e,t),e}function $Dn(n){var e,t;return e=(B1(),t=new HO,t),n&&AA(e,n),e}function jJ(n){var e;return e=n.aj(n.i),n.i>0&&Ic(n.g,0,e,0,n.i),e}function xDn(n,e){var t;for(t=n.j.c.length;t>24}function w3e(n){if(n.p!=1)throw M(new Cu);return Ae(n.k)<<24>>24}function g3e(n){if(n.p!=7)throw M(new Cu);return Ae(n.k)<<16>>16}function p3e(n){if(n.p!=7)throw M(new Cu);return Ae(n.f)<<16>>16}function Pg(n,e){return e.e==0||n.e==0?O8:(Am(),vF(n,e))}function RDn(n,e){return x(e)===x(n)?"(this Map)":e==null?gu:Jr(e)}function m3e(n,e,t){return tN(R(Kr(wr(n.f,e))),R(Kr(wr(n.f,t))))}function v3e(n,e,t){var i;i=u(ee(n.g,t),60),nn(n.a.c,new bi(e,i))}function KDn(n,e,t){n.i=0,n.e=0,e!=t&&(jFn(n,e,t),yFn(n,e,t))}function k3e(n,e,t,i,r){var c;c=yMe(r,t,i),nn(e,dEe(r,c)),rje(n,r,e)}function EJ(n,e,t,i,r){this.i=n,this.a=e,this.e=t,this.j=i,this.f=r}function _Dn(n,e){nJ.call(this),this.a=n,this.b=e,nn(this.a.b,this)}function HDn(n){this.b=new de,this.c=new de,this.d=new de,this.a=n}function qDn(n,e){var t;return t=new lp,n.Gd(t),t.a+="..",e.Hd(t),t.a}function UDn(n,e){var t;for(t=e;t;)a0(n,t.i,t.j),t=At(t);return n}function GDn(n,e,t){var i;return i=wm(t),Xe(n.b,i,e),Xe(n.c,e,t),e}function wl(n){var e;for(e=0;n.Ob();)n.Pb(),e=nr(e,1);return oT(e)}function Fh(n,e){dr();var t;return t=u(n,69).vk(),kje(t,e),t.xl(e)}function y3e(n,e,t){if(t){var i=t.oe();n.a[e]=i(t)}else delete n.a[e]}function CJ(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+fa),G5(n,t)}function j3e(n,e){return u(e==null?Kr(wr(n.f,null)):d6(n.i,e),288)}function MJ(n,e){return n==(Vn(),zt)&&e==zt?4:n==zt||e==zt?8:32}function _M(n,e,t){return RA(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function E3e(n,e,t){return Om(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function C3e(n,e,t){return bMe(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function TJ(n){n.b!=n.c&&(n.a=K(ki,Fn,1,8,5,1),n.b=0,n.c=0)}function e5(n){return oe(n.a=0&&n.a[t]===e[t];t--);return t<0}function HM(n){var e;return n?new fW(n):(e=new ih,A$(e,n),e)}function O3e(n,e){var t,i;i=!1;do t=lFn(n,e),i=i|t;while(t);return i}function D3e(n){n&&rme((az(),sun)),--cP,n&&uP!=-1&&(Ele(uP),uP=-1)}function qM(n){nnn(),LTn(this,Ae(vi(w0(n,24),YA)),Ae(vi(n,YA)))}function JDn(){JDn=F,HQn=Ce((YT(),S(T(Bun,1),G,436,0,[o_,Fun])))}function QDn(){QDn=F,qQn=Ce((cT(),S(T(Kun,1),G,435,0,[Run,s_])))}function YDn(){YDn=F,GYn=Ce((uT(),S(T(bon,1),G,432,0,[v_,vP])))}function ZDn(){ZDn=F,_Zn=Ce((V4(),S(T(KZn,1),G,517,0,[dj,L_])))}function nLn(){nLn=F,Ane=Ce((KM(),S(T(Qsn,1),G,429,0,[fH,Jsn])))}function eLn(){eLn=F,gne=Ce((pk(),S(T($sn,1),G,428,0,[WP,Nsn])))}function tLn(){tLn=F,kne=Ce((hk(),S(T(Bsn,1),G,488,0,[Fsn,QP])))}function iLn(){iLn=F,rie=Ce((wk(),S(T(qhn,1),G,430,0,[UH,GH])))}function rLn(){rLn=F,Die=Ce((n5(),S(T(Oie,1),G,531,0,[r9,i9])))}function cLn(){cLn=F,ane=Ce((QM(),S(T(Asn,1),G,431,0,[Tsn,V_])))}function uLn(){uLn=F,xre=Ce((FM(),S(T(Bln,1),G,433,0,[dq,Fln])))}function oLn(){oLn=F,_re=Ce((yT(),S(T(Rln,1),G,501,0,[RI,D2])))}function sLn(){sLn=F,Rie=Ce((sh(),S(T(Bie,1),G,523,0,[mb,y1])))}function fLn(){fLn=F,_ie=Ce((Sf(),S(T(Kie,1),G,522,0,[Rd,zf])))}function hLn(){hLn=F,tre=Ce((lf(),S(T(ere,1),G,528,0,[zw,ja])))}function lLn(){lLn=F,fre=Ce((M0(),S(T(sre,1),G,465,0,[Ea,P2])))}function aLn(){aLn=F,Ure=Ce((ZM(),S(T(_ln,1),G,434,0,[Kln,vq])))}function dLn(){dLn=F,Rce=Ce((GM(),S(T(S1n,1),G,491,0,[$q,A1n])))}function bLn(){bLn=F,_ce=Ce((N$(),S(T(N1n,1),G,492,0,[D1n,L1n])))}function wLn(){wLn=F,Vce=Ce((ck(),S(T(x1n,1),G,438,0,[Kq,JI])))}function gLn(){gLn=F,aue=Ce((Ak(),S(T(ran,1),G,437,0,[YI,ian])))}function pLn(){pLn=F,aoe=Ce((RL(),S(T(dO,1),G,347,0,[vdn,kdn])))}function L3e(){return ci(),S(T(E9,1),G,88,0,[Wf,Xr,Br,Vf,us])}function N3e(){return tn(),S(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])}function $3e(n,e,t){return u(e==null?Vc(n.f,null,t):$0(n.i,e,t),288)}function x3e(n){return(n.k==(Vn(),zt)||n.k==Zt)&&kt(n,(W(),H8))}function XN(n){return n.c&&n.d?aJ(n.c)+"->"+aJ(n.d):"e_"+l0(n)}function qi(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function F3e(n,e){var t;t=new op,nd(t,"x",e.a),nd(t,"y",e.b),Ip(n,t)}function B3e(n,e){var t;t=new op,nd(t,"x",e.a),nd(t,"y",e.b),Ip(n,t)}function mLn(n,e){var t;for(t=e;t;)a0(n,-t.i,-t.j),t=At(t);return n}function SJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Go(n,e,t){var i;return i=(Ln(e,n.c.length),n.c[e]),n.c[e]=t,i}function PJ(n,e,t){n.a.c.length=0,fOe(n,e,t),n.a.c.length==0||xSe(n,e)}function tk(n){n.i=0,s7(n.b,null),s7(n.c,null),n.a=null,n.e=null,++n.g}function UM(){UM=F,qf=!0,DQn=!1,LQn=!1,$Qn=!1,NQn=!1}function VN(n){UM(),!qf&&(this.c=n,this.e=!0,this.a=new Z)}function vLn(n,e){this.c=0,this.b=e,HMn.call(this,n,17493),this.a=this.c}function kLn(n){jzn(),Syn(this),this.a=new Ct,sY(this,n),xe(this.a,n)}function yLn(){pL(this),this.b=new V(St,St),this.a=new V(li,li)}function GM(){GM=F,$q=new fX(cin,0),A1n=new fX("TARGET_WIDTH",1)}function Ig(n,e){return(ea(n),s4(new Tn(n,new tQ(e,n.a)))).Bd(v3)}function R3e(){return Vi(),S(T(Ion,1),G,367,0,[Xs,Jh,Oc,Kc,zr])}function K3e(){return ow(),S(T(ine,1),G,375,0,[gj,zP,XP,GP,UP])}function _3e(){return o1(),S(T(Lsn,1),G,348,0,[J_,Dsn,Q_,pv,gv])}function H3e(){return T5(),S(T($hn,1),G,323,0,[Nhn,KH,_H,Y8,Z8])}function q3e(){return Yo(),S(T(hfn,1),G,171,0,[Ej,U8,ka,G8,xw])}function U3e(){return wA(),S(T(Hre,1),G,368,0,[pq,bq,mq,wq,gq])}function G3e(){return R5(),S(T(Hce,1),G,373,0,[L2,D3,g9,w9,_j])}function z3e(){return Yk(),S(T(K1n,1),G,324,0,[F1n,_q,R1n,Hq,B1n])}function X3e(){return gf(),S(T(Zh,1),G,170,0,[xn,pi,Ph,Kd,E1])}function V3e(){return Fg(),S(T(A9,1),G,256,0,[Aa,eE,adn,T9,ddn])}function W3e(n){return HE(),function(){return Kpe(n,this,arguments)}}function fr(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function IJ(n,e){return O(e,143)?An(n.c,u(e,143).c):!1}function Zu(n){return n.t||(n.t=new myn(n),k5(new Njn(n),0,n.t)),n.t}function jLn(n){this.b=n,ne.call(this,n),this.a=u(Un(this.b.a,4),129)}function ELn(n){this.b=n,yp.call(this,n),this.a=u(Un(this.b.a,4),129)}function Bs(n,e,t,i,r){LLn.call(this,e,i,r),this.c=n,this.b=t}function OJ(n,e,t,i,r){VOn.call(this,e,i,r),this.c=n,this.a=t}function DJ(n,e,t,i,r){WOn.call(this,e,i,r),this.c=n,this.a=t}function LJ(n,e,t,i,r){LLn.call(this,e,i,r),this.c=n,this.a=t}function WN(n,e){var t;return t=u(Lf(n.d,e),23),t||u(Lf(n.e,e),23)}function CLn(n,e){var t,i;return t=e.ld(),i=n.Fe(t),!!i&&mc(i.e,e.md())}function MLn(n,e){var t;return t=e.ld(),new i0(t,n.e.pc(t,u(e.md(),16)))}function J3e(n,e){var t;return t=n.a.get(e),t??K(ki,Fn,1,0,5,1)}function TLn(n){var e;return e=n.length,An(Yn.substr(Yn.length-e,e),n)}function fe(n){if(pe(n))return n.c=n.a,n.a.Pb();throw M(new nc)}function NJ(n,e){return e==0||n.e==0?n:e>0?wqn(n,e):RBn(n,-e)}function Fp(n,e){return e==0||n.e==0?n:e>0?RBn(n,e):wqn(n,-e)}function $J(n){ole.call(this,n==null?gu:Jr(n),O(n,82)?u(n,82):null)}function ALn(n){var e;return n.c||(e=n.r,O(e,90)&&(n.c=u(e,29))),n.c}function JN(n){var e;return e=new E0,Ur(e,n),U(e,(cn(),Fr),null),e}function SLn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Vn(),Zt)&&t.k==Zt}function QN(n){var e,t,i;return e=n&ro,t=n>>22&ro,i=n<0?Il:0,Yc(e,t,i)}function Q3e(n){var e,t,i,r;for(t=n,i=0,r=t.length;i=0?n.Lh(i,t,!0):H0(n,e,t)}function Z3e(n,e,t){return bt(vp(pm(n),Ki(e.b)),vp(pm(n),Ki(t.b)))}function n4e(n,e,t){return bt(vp(pm(n),Ki(e.e)),vp(pm(n),Ki(t.e)))}function e4e(n,e){return y.Math.min(W1(e.a,n.d.d.c),W1(e.b,n.d.d.c))}function ik(n,e){n._i(n.i+1),O6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function t5(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function PLn(n,e,t){var i;i=new NX(n.a),f5(i,n.a.a),Vc(i.f,e,t),n.a.a=i}function xJ(n,e,t,i){var r;for(r=0;re)throw M(new Ir(Mnn(n,e,"index")));return n}function Yl(n,e){var t;return t=(Ln(e,n.c.length),n.c[e]),Pz(n.c,e,1),t}function RJ(n,e){var t,i;return t=(Jn(n),n),i=(Jn(e),e),t==i?0:te.p?-1:0}function FLn(n){var e;return n.a||(e=n.r,O(e,156)&&(n.a=u(e,156))),n.a}function o4e(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].gd(t),136),i.md()}function s4e(n){var e,t;return e=n.ld(),t=u(n.md(),16),x7(t.Nc(),new L8n(e))}function BLn(n,e){return Zc(n.a,e)?(Bp(n.a,e),!0):!1}function Rp(n,e,t){return ek(e,n.e.Rd().gc()),ek(t,n.c.Rd().gc()),n.a[e][t]}function XM(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function VM(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function rk(){this.b=new Ct,this.a=new Ct,this.b=new Ct,this.a=new Ct}function $4(){$4=F;var n,e;MO=(o4(),e=new xE,e),TO=(n=new fD,n)}function f4e(n){var e;return ea(n),e=new ISn(n,n.a.e,n.a.d|4),new uV(n,e)}function RLn(n){var e;for(z1(n),e=0;n.a.Bd(new W0n);)e=nr(e,1);return e}function WM(n,e){return Jn(e),n.c=0,"Initial capacity must not be negative")}function JM(){JM=F,p9=new lt("org.eclipse.elk.labels.labelManager")}function KLn(){KLn=F,ysn=new Dt("separateLayerConnections",(OT(),F_))}function lf(){lf=F,zw=new rX("REGULAR",0),ja=new rX("CRITICAL",1)}function ck(){ck=F,Kq=new lX("FIXED",0),JI=new lX("CENTER_NODE",1)}function QM(){QM=F,Tsn=new Jz("QUADRATIC",0),V_=new Jz("SCANLINE",1)}function _Ln(){_Ln=F,dne=Ce((u5(),S(T(Psn,1),G,322,0,[B8,pj,Ssn])))}function HLn(){HLn=F,bne=Ce((bT(),S(T(Osn,1),G,351,0,[Isn,VP,W_])))}function qLn(){qLn=F,fne=Ce((D0(),S(T(R_,1),G,372,0,[ub,ma,cb])))}function ULn(){ULn=F,mne=Ce((hd(),S(T(pne,1),G,460,0,[Y_,mv,p2])))}function GLn(){GLn=F,Cne=Ce((Z4(),S(T(sH,1),G,299,0,[uH,oH,mj])))}function zLn(){zLn=F,Tne=Ce((vl(),S(T(Mne,1),G,311,0,[vj,v2,E3])))}function XLn(){XLn=F,Zte=Ce((g5(),S(T(Lhn,1),G,390,0,[FH,Dhn,MI])))}function VLn(){VLn=F,oie=Ce((ST(),S(T(zhn,1),G,387,0,[Uhn,zH,Ghn])))}function WLn(){WLn=F,sie=Ce((d5(),S(T(Xhn,1),G,349,0,[VH,XH,Ij])))}function JLn(){JLn=F,uie=Ce((gr(),S(T(cie,1),G,463,0,[n9,Vu,Jc])))}function QLn(){QLn=F,fie=Ce((om(),S(T(Whn,1),G,350,0,[WH,Vhn,e9])))}function YLn(){YLn=F,hie=Ce((dT(),S(T(Yhn,1),G,352,0,[Qhn,JH,Jhn])))}function ZLn(){ZLn=F,lie=Ce((DT(),S(T(Zhn,1),G,388,0,[QH,Ov,Gw])))}function nNn(){nNn=F,are=Ce((b5(),S(T(gln,1),G,392,0,[wln,nq,Lj])))}function eNn(){eNn=F,Gre=Ce((Ok(),S(T(Uln,1),G,393,0,[KI,Hln,qln])))}function tNn(){tNn=F,ace=Ce((AT(),S(T(s1n,1),G,300,0,[Cq,o1n,u1n])))}function iNn(){iNn=F,dce=Ce((XT(),S(T(f1n,1),G,445,0,[Bj,qI,Mq])))}function rNn(){rNn=F,wce=Ce((rA(),S(T(bce,1),G,456,0,[Tq,Sq,Aq])))}function cNn(){cNn=F,mce=Ce((_T(),S(T(a1n,1),G,394,0,[l1n,Oq,h1n])))}function uNn(){uNn=F,Kce=Ce((nT(),S(T(O1n,1),G,439,0,[xq,I1n,P1n])))}function oNn(){oNn=F,Aie=Ce((O0(),S(T(Tie,1),G,464,0,[Oj,t9,PI])))}function sNn(){sNn=F,WQn=Ce((Uu(),S(T(VQn,1),G,471,0,[Mh,ga,Gs])))}function fNn(){fNn=F,XQn=Ce((bf(),S(T(Sw,1),G,237,0,[bc,Wc,wc])))}function hNn(){hNn=F,QQn=Ce((bu(),S(T(JQn,1),G,472,0,[vf,pa,zs])))}function lNn(){lNn=F,xQn=Ce((Gu(),S(T(xr,1),G,108,0,[xun,Yr,Aw])))}function aNn(){aNn=F,pZn=Ce((i5(),S(T(Pon,1),G,391,0,[E_,j_,C_])))}function dNn(){dNn=F,Que=Ce((jl(),S(T(ldn,1),G,346,0,[uO,M1,M9])))}function bNn(){bNn=F,Uce=Ce((Fk(),S(T(Fq,1),G,444,0,[XI,VI,WI])))}function wNn(){wNn=F,Xue=Ce((Nf(),S(T(Zan,1),G,278,0,[Bv,Jw,Rv])))}function gNn(){gNn=F,loe=Ce((Gp(),S(T(mdn,1),G,280,0,[pdn,Yw,aO])))}function Df(n,e){return!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),wx(n.o,e)}function h4e(n,e){var t;n.C&&(t=u(Cr(n.b,e),127).n,t.d=n.C.d,t.a=n.C.a)}function UJ(n){var e,t,i,r;r=n.d,e=n.a,t=n.b,i=n.c,n.d=t,n.a=i,n.b=r,n.c=e}function l4e(n){return!n.g&&(n.g=new CE),!n.g.b&&(n.g.b=new byn(n)),n.g.b}function uk(n){return!n.g&&(n.g=new CE),!n.g.c&&(n.g.c=new pyn(n)),n.g.c}function a4e(n){return!n.g&&(n.g=new CE),!n.g.d&&(n.g.d=new wyn(n)),n.g.d}function d4e(n){return!n.g&&(n.g=new CE),!n.g.a&&(n.g.a=new gyn(n)),n.g.a}function b4e(n,e,t,i){return t&&(i=t.Rh(e,Ot(t.Dh(),n.c.uk()),null,i)),i}function w4e(n,e,t,i){return t&&(i=t.Th(e,Ot(t.Dh(),n.c.uk()),null,i)),i}function e$(n,e,t,i){var r;return r=K(ye,Ke,28,e+1,15,1),vPe(r,n,e,t,i),r}function K(n,e,t,i,r,c){var s;return s=_Rn(r,i),r!=10&&S(T(n,c),e,t,r,s),s}function g4e(n,e,t){var i,r;for(r=new Y4(e,n),i=0;it||e=0?n.Lh(t,!0,!0):H0(n,e,!0)}function L4e(n,e,t){var i;return i=vFn(n,e,t),n.b=new ET(i.c.length),den(n,i)}function N4e(n){if(n.b<=0)throw M(new nc);return--n.b,n.a-=n.c.c,Y(n.a)}function $4e(n){var e;if(!n.a)throw M(new PIn);return e=n.a,n.a=At(n.a),e}function x4e(n){for(;!n.a;)if(!eSn(n.c,new C9n(n)))return!1;return!0}function Kp(n){var e;return Se(n),O(n,204)?(e=u(n,204),e):new _8n(n)}function F4e(n){YM(),u(n.of((qe(),Ww)),181).Fc((zu(),tE)),n.qf(sU,null)}function YM(){YM=F,wue=new Emn,pue=new Cmn,gue=M6e((qe(),sU),wue,Ma,pue)}function ZM(){ZM=F,Kln=new sX("LEAF_NUMBER",0),vq=new sX("NODE_SIZE",1)}function u$(n){n.a=K(ye,Ke,28,n.b+1,15,1),n.c=K(ye,Ke,28,n.b,15,1),n.d=0}function B4e(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new GV(e.c,e.d,n.d)),n.b=e.d)}function nQ(n,e){if(n.g==null||e>=n.i)throw M(new aL(e,n.i));return n.g[e]}function kNn(n,e,t){if(rm(n,t),t!=null&&!n.fk(t))throw M(new uD);return t}function o$(n,e){return gk(e)!=10&&S(wo(e),e.Sm,e.__elementTypeId$,gk(e),n),n}function F4(n,e,t,i){var r;i=(j0(),i||Pun),r=n.slice(e,t),Tnn(r,n,e,t,-e,i)}function zo(n,e,t,i,r){return e<0?H0(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function R4e(n,e){return bt($(R(v(n,(W(),fb)))),$(R(v(e,fb))))}function yNn(){yNn=F,IQn=Ce((B4(),S(T(lP,1),G,304,0,[e_,t_,i_,r_])))}function B4(){B4=F,e_=new uC("All",0),t_=new lTn,i_=new kTn,r_=new hTn}function Uu(){Uu=F,Mh=new FD(s3,0),ga=new FD(qm,1),Gs=new FD(f3,2)}function jNn(){jNn=F,KA(),s0n=St,mse=li,f0n=new V9(St),vse=new V9(li)}function ENn(){ENn=F,jYn=Ce((N0(),S(T(yYn,1),G,417,0,[rj,ij,a_,d_])))}function CNn(){CNn=F,AYn=Ce((A5(),S(T(TYn,1),G,406,0,[fj,wP,gP,hj])))}function MNn(){MNn=F,CYn=Ce((Vp(),S(T(EYn,1),G,332,0,[uj,cj,oj,sj])))}function TNn(){TNn=F,DZn=Ce((dd(),S(T(Lon,1),G,389,0,[Ow,Don,P_,I_])))}function ANn(){ANn=F,TZn=Ce((nm(),S(T(MZn,1),G,416,0,[rb,Iw,Pw,a2])))}function SNn(){SNn=F,tne=Ce(($f(),S(T(ene,1),G,421,0,[j3,lv,av,B_])))}function PNn(){PNn=F,GZn=Ce((OT(),S(T(UZn,1),G,371,0,[F_,HP,qP,wj])))}function INn(){INn=F,nie=Ce((cw(),S(T(RH,1),G,203,0,[TI,BH,S2,A2])))}function ONn(){ONn=F,iie=Ce((lh(),S(T(Hhn,1),G,284,0,[k1,_hn,HH,qH])))}function hk(){hk=F,Fsn=new Yz(kh,0),QP=new Yz("IMPROVE_STRAIGHTNESS",1)}function DNn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Rp(n,i,t)}function LNn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)L(n,e);return jJ(n)}function eQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function NNn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function K4e(n){return O(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function _4e(n){return O(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function $Nn(n,e){if(e.a)throw M(new ec(nXn));fi(n.a,e),e.a=n,!n.j&&(n.j=e)}function tQ(n,e){IC.call(this,e.zd(),e.yd()&-16449),Jn(n),this.a=n,this.c=e}function H4e(n,e){return new _L(e,a0(Ki(e.e),e.f.a+n,e.f.b+n),(_n(),!1))}function q4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function U4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function xNn(){xNn=F,lce=Ce((sA(),S(T(c1n,1),G,354,0,[Eq,i1n,r1n,t1n])))}function FNn(){FNn=F,$re=Ce((w5(),S(T(xln,1),G,353,0,[aq,BI,lq,hq])))}function BNn(){BNn=F,hre=Ce((Qp(),S(T(rln,1),G,405,0,[LI,c9,u9,o9])))}function RNn(){RNn=F,Vue=Ce((El(),S(T(aU,1),G,223,0,[lU,Yj,Kv,F3])))}function KNn(){KNn=F,Zue=Ce((To(),S(T(Yue,1),G,291,0,[nE,nl,Ta,Zj])))}function _Nn(){_Nn=F,foe=Ce((go(),S(T(I9,1),G,386,0,[rE,Gd,iE,Qw])))}function HNn(){HNn=F,doe=Ce((qT(),S(T(Cdn,1),G,320,0,[wU,ydn,Edn,jdn])))}function qNn(){qNn=F,goe=Ce((LT(),S(T(woe,1),G,415,0,[gU,Tdn,Mdn,Adn])))}function nT(){nT=F,xq=new oL(mVn,0),I1n=new oL(Crn,1),P1n=new oL(kh,2)}function Wb(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new AW(n,e,i)}function UNn(n,e){var t;return t=u(Bp(n.e,e),400),t?(tW(t),t.e):null}function du(n,e){var t;return t=qr(n,e,0),t==-1?!1:(Yl(n,t),!0)}function GNn(n,e,t){var i;return z1(n),i=new LO,i.a=e,n.a.Nb(new TCn(i,t)),i.a}function G4e(n){var e;return z1(n),e=K(Pi,Tr,28,0,15,1),hg(n.a,new y9n(e)),e}function iQ(n){var e;if(!E$(n))throw M(new nc);return n.e=1,e=n.d,n.d=null,e}function n1(n){var e;return Vr(n)&&(e=0-n,!isNaN(e))?e:Q1(tm(n))}function qr(n,e,t){for(;t=0?tA(n,t,!0,!0):H0(n,e,!0)}function cQ(n){var e;return e=cd(Un(n,32)),e==null&&(iu(n),e=cd(Un(n,32))),e}function uQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function QNn(n,e){con=new kE,MYn=e,L8=n,u(L8.b,68),XJ(L8,con,null),aGn(L8)}function i5(){i5=F,E_=new RD("XY",0),j_=new RD("X",1),C_=new RD("Y",2)}function bu(){bu=F,vf=new BD("TOP",0),pa=new BD(qm,1),zs=new BD(Ftn,2)}function vl(){vl=F,vj=new GD(kh,0),v2=new GD("TOP",1),E3=new GD(Ftn,2)}function wk(){wk=F,UH=new nX("INPUT_ORDER",0),GH=new nX("PORT_DEGREE",1)}function R4(){R4=F,hun=Yc(ro,ro,524287),bQn=Yc(0,0,Ty),lun=QN(1),QN(2),aun=QN(0)}function a$(n){var e;return n.d!=n.r&&(e=ws(n),n.e=!!e&&e.lk()==bJn,n.d=e),n.e}function d$(n,e,t){var i;return i=n.g[e],O6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function rT(n,e){var t;return t=n.dd(e),t>=0?(n.gd(t),!0):!1}function b$(n,e){var t;for(Se(n),Se(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Lf(n,e){var t;return t=u(ee(n.e,e),400),t?(DTn(n,t),t.e):null}function YNn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function Jb(n,e){var t=n.a[e],i=(K$(),WK)[typeof t];return i?i(t):wY(typeof t)}function rc(n,e){var t,i;return ea(n),i=new _J(e,n.a),t=new rSn(i),new Tn(n,t)}function w$(n){var e;return e=n.b.c.length==0?null:sn(n.b,0),e!=null&&M$(n,0),e}function W4e(n,e){var t,i,r;r=e.c.i,t=u(ee(n.f,r),60),i=t.d.c-t.e.c,BQ(e.a,i,0)}function oQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t0&&arguments[0]!==void 0?arguments[0]:{},Yi=ze.defaultLayoutOptions,Ri=Yi===void 0?{}:Yi,En=ze.algorithms,hu=En===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:En,Qc=ze.workerFactory,Ru=ze.workerUrl;if(y(this,Ht),this.defaultLayoutOptions=Ri,this.initialized=!1,typeof Ru>"u"&&typeof Qc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Pr=Qc;typeof Ru<"u"&&typeof Qc>"u"&&(Pr=function(N1){return new Worker(N1)});var Cf=Pr(Ru);if(typeof Cf.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Bu(Cf),this.worker.postMessage({cmd:"register",algorithms:hu}).then(function(L1){return Jt.initialized=!0}).catch(console.err)}return Di(Ht,[{key:"layout",value:function(ze){var Yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ri=Yi.layoutOptions,En=Ri===void 0?this.defaultLayoutOptions:Ri,hu=Yi.logging,Qc=hu===void 0?!1:hu,Ru=Yi.measureExecutionTime,Pr=Ru===void 0?!1:Ru;return ze?this.worker.postMessage({cmd:"layout",graph:ze,layoutOptions:En,options:{logging:Qc,measureExecutionTime:Pr}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}]),Ht}();Sr.default=Wt;var Bu=function(){function Ht(Jt){var ze=this;if(y(this,Ht),Jt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Jt,this.worker.onmessage=function(Yi){setTimeout(function(){ze.receive(ze,Yi)},0)}}return Di(Ht,[{key:"postMessage",value:function(ze){var Yi=this.id||0;this.id=Yi+1,ze.id=Yi;var Ri=this;return new Promise(function(En,hu){Ri.resolvers[Yi]=function(Qc,Ru){Qc?(Ri.convertGwtStyleError(Qc),hu(Qc)):En(Ru)},Ri.worker.postMessage(ze)})}},{key:"receive",value:function(ze,Yi){var Ri=Yi.data,En=ze.resolvers[Ri.id];En&&(delete ze.resolvers[Ri.id],Ri.error?En(Ri.error):En(null,Ri.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(ze){if(ze){var Yi=ze.__java$exception;Yi&&(Yi.cause&&Yi.cause.backingJsObject&&(ze.cause=Yi.cause.backingJsObject,this.convertGwtStyleError(ze.cause)),delete ze.__java$exception)}}}]),Ht}()},{}],2:[function(Xt,gt,Sr){(function(Di){(function(){var y;typeof window<"u"?y=window:typeof Di<"u"?y=Di:typeof self<"u"&&(y=self);var Wt;function Bu(){}function Ht(){}function Jt(){}function ze(){}function Yi(){}function Ri(){}function En(){}function hu(){}function Qc(){}function Ru(){}function Pr(){}function Cf(){}function L1(){}function N1(){}function og(){}function V3(){}function $1(){}function ul(){}function C0n(){}function M0n(){}function J2(){}function F(){}function T0n(){}function mE(){}function A0n(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function FU(){}function D0n(){}function L0n(){}function N0n(){}function OO(){}function $0n(){}function x0n(){}function F0n(){}function DO(){}function B0n(){}function R0n(){}function BU(){}function K0n(){}function _0n(){}function yu(){}function ju(){}function Q2(){}function Y2(){}function H0n(){}function q0n(){}function U0n(){}function G0n(){}function RU(){}function Eu(){}function Z2(){}function np(){}function z0n(){}function X0n(){}function LO(){}function V0n(){}function W0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function nbn(){}function ebn(){}function tbn(){}function ibn(){}function rbn(){}function cbn(){}function ubn(){}function obn(){}function sbn(){}function fbn(){}function hbn(){}function lbn(){}function abn(){}function dbn(){}function bbn(){}function wbn(){}function gbn(){}function pbn(){}function mbn(){}function vbn(){}function kbn(){}function ybn(){}function jbn(){}function Ebn(){}function Cbn(){}function Mbn(){}function Tbn(){}function KU(){}function Abn(){}function Sbn(){}function Pbn(){}function Ibn(){}function NO(){}function $O(){}function vE(){}function Obn(){}function Dbn(){}function xO(){}function Lbn(){}function Nbn(){}function $bn(){}function kE(){}function xbn(){}function Fbn(){}function Bbn(){}function Rbn(){}function Kbn(){}function _bn(){}function Hbn(){}function qbn(){}function Ubn(){}function _U(){}function Gbn(){}function zbn(){}function HU(){}function Xbn(){}function Vbn(){}function Wbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function FO(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function bwn(){}function qU(){}function UU(){}function wwn(){}function gwn(){}function pwn(){}function mwn(){}function vwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Cwn(){}function Mwn(){}function Twn(){}function Awn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Dwn(){}function Lwn(){}function Nwn(){}function $wn(){}function xwn(){}function Fwn(){}function Bwn(){}function Rwn(){}function Kwn(){}function _wn(){}function Hwn(){}function qwn(){}function Uwn(){}function Gwn(){}function zwn(){}function Xwn(){}function Vwn(){}function Wwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function mgn(){}function vgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Cgn(){}function Mgn(){}function Tgn(){}function Agn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Dgn(){}function Lgn(){}function Ngn(){}function $gn(){}function xgn(){}function Fgn(){}function Bgn(){}function Rgn(){}function Kgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Vgn(){}function Wgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function GU(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function m2n(){}function v2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function C2n(){}function M2n(){}function T2n(){}function A2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function D2n(){}function L2n(){}function N2n(){}function $2n(){}function x2n(){}function F2n(){}function B2n(){}function R2n(){}function K2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function V2n(){}function W2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function mpn(){}function vpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Cpn(){}function Mpn(){}function zU(){}function Tpn(){}function Apn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Dpn(){}function Lpn(){}function Npn(){}function $pn(){}function XU(){}function xpn(){}function Fpn(){}function Bpn(){}function Rpn(){}function Kpn(){}function _pn(){}function VU(){}function WU(){}function Hpn(){}function JU(){}function QU(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Vpn(){}function Wpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function Zpn(){}function YU(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function m3n(){}function v3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function C3n(){}function M3n(){}function T3n(){}function A3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function D3n(){}function L3n(){}function N3n(){}function $3n(){}function x3n(){}function F3n(){}function B3n(){}function R3n(){}function K3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function V3n(){}function W3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function u4n(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function p4n(){}function m4n(){}function v4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function C4n(){}function M4n(){}function T4n(){}function A4n(){}function S4n(){}function P4n(){}function I4n(){}function O4n(){}function _se(){}function D4n(){}function L4n(){}function N4n(){}function $4n(){}function x4n(){}function F4n(){}function B4n(){}function R4n(){}function K4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function G4n(){}function z4n(){}function X4n(){}function V4n(){}function W4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function rmn(){}function BO(){}function RO(){}function cmn(){}function KO(){}function umn(){}function omn(){}function smn(){}function fmn(){}function hmn(){}function lmn(){}function amn(){}function dmn(){}function bmn(){}function wmn(){}function ZU(){}function gmn(){}function pmn(){}function mmn(){}function Hse(){}function vmn(){}function kmn(){}function ymn(){}function jmn(){}function Emn(){}function Cmn(){}function Mmn(){}function Ra(){}function Tmn(){}function ep(){}function nG(){}function Amn(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function Dmn(){}function Lmn(){}function Nmn(){}function $mn(){}function xmn(){}function Fmn(){}function Bmn(){}function Rmn(){}function Kmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function Gmn(){}function hn(){}function zmn(){}function Xmn(){}function Vmn(){}function Wmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function rvn(){}function _O(){}function cvn(){}function uvn(){}function ovn(){}function yE(){}function svn(){}function HO(){}function jE(){}function fvn(){}function eG(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function wvn(){}function EE(){}function gvn(){}function pvn(){}function CE(){}function mvn(){}function ME(){}function vvn(){}function tG(){}function kvn(){}function qO(){}function iG(){}function yvn(){}function jvn(){}function Evn(){}function Cvn(){}function qse(){}function Mvn(){}function Tvn(){}function Avn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Dvn(){}function Lvn(){}function Nvn(){}function W3(){}function UO(){}function $vn(){}function xvn(){}function Fvn(){}function Bvn(){}function Rvn(){}function Kvn(){}function _vn(){}function Hvn(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Vvn(){}function Wvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function p6n(){}function m6n(){}function v6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function C6n(){}function M6n(){}function T6n(){}function A6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function D6n(){}function L6n(){}function N6n(){}function $6n(){}function x6n(){}function F6n(){}function B6n(){}function R6n(){}function K6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function V6n(){}function W6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function p5n(){}function m5n(){}function v5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function C5n(){}function M5n(){}function T5n(){}function A5n(){}function rG(){}function S5n(){}function P5n(){}function GO(){n6()}function I5n(){u7()}function O5n(){aA()}function D5n(){Q$()}function L5n(){M5()}function N5n(){ann()}function $5n(){qs()}function x5n(){jZ()}function F5n(){zk()}function B5n(){o7()}function R5n(){$7()}function K5n(){aCn()}function _5n(){Hp()}function H5n(){KLn()}function q5n(){yQ()}function U5n(){SOn()}function G5n(){jQ()}function z5n(){pNn()}function X5n(){AOn()}function V5n(){cm()}function W5n(){nxn()}function J5n(){Z$n()}function Q5n(){EDn()}function Y5n(){exn()}function Z5n(){ca()}function n8n(){ZE()}function e8n(){ltn()}function t8n(){cn()}function i8n(){txn()}function r8n(){Pxn()}function c8n(){POn()}function u8n(){nKn()}function o8n(){IOn()}function s8n(){bUn()}function f8n(){qnn()}function h8n(){kl()}function l8n(){wBn()}function a8n(){lc()}function d8n(){ROn()}function b8n(){_p()}function w8n(){Men()}function g8n(){ua()}function p8n(){Ten()}function m8n(){Bf()}function v8n(){Qk()}function k8n(){EF()}function y8n(){Dx()}function cf(){wSn()}function j8n(){YM()}function E8n(){mA()}function cG(){qe()}function C8n(){NT()}function M8n(){YY()}function uG(){D$()}function oG(){KA()}function T8n(){Fen()}function sG(n){Jn(n)}function A8n(n){this.a=n}function TE(n){this.a=n}function S8n(n){this.a=n}function P8n(n){this.a=n}function I8n(n){this.a=n}function O8n(n){this.a=n}function D8n(n){this.a=n}function L8n(n){this.a=n}function fG(n){this.a=n}function hG(n){this.a=n}function N8n(n){this.a=n}function $8n(n){this.a=n}function zO(n){this.a=n}function x8n(n){this.a=n}function F8n(n){this.a=n}function XO(n){this.a=n}function VO(n){this.a=n}function B8n(n){this.a=n}function WO(n){this.a=n}function R8n(n){this.a=n}function K8n(n){this.a=n}function _8n(n){this.a=n}function lG(n){this.b=n}function H8n(n){this.c=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function G8n(n){this.a=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function V8n(n){this.a=n}function W8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function e9n(n){this.a=n}function aG(n){this.a=n}function dG(n){this.a=n}function AE(n){this.a=n}function z9(n){this.a=n}function Ka(){this.a=[]}function t9n(n,e){n.a=e}function Use(n,e){n.a=e}function Gse(n,e){n.b=e}function zse(n,e){n.b=e}function Xse(n,e){n.b=e}function bG(n,e){n.j=e}function Vse(n,e){n.g=e}function Wse(n,e){n.i=e}function Jse(n,e){n.c=e}function Qse(n,e){n.c=e}function Yse(n,e){n.d=e}function Zse(n,e){n.d=e}function _a(n,e){n.k=e}function nfe(n,e){n.c=e}function wG(n,e){n.c=e}function gG(n,e){n.a=e}function efe(n,e){n.a=e}function tfe(n,e){n.f=e}function ife(n,e){n.a=e}function rfe(n,e){n.b=e}function JO(n,e){n.d=e}function SE(n,e){n.i=e}function pG(n,e){n.o=e}function cfe(n,e){n.r=e}function ufe(n,e){n.a=e}function ofe(n,e){n.b=e}function i9n(n,e){n.e=e}function sfe(n,e){n.f=e}function mG(n,e){n.g=e}function ffe(n,e){n.e=e}function hfe(n,e){n.f=e}function lfe(n,e){n.f=e}function QO(n,e){n.a=e}function YO(n,e){n.b=e}function afe(n,e){n.n=e}function dfe(n,e){n.a=e}function bfe(n,e){n.c=e}function wfe(n,e){n.c=e}function gfe(n,e){n.c=e}function pfe(n,e){n.a=e}function mfe(n,e){n.a=e}function vfe(n,e){n.d=e}function kfe(n,e){n.d=e}function yfe(n,e){n.e=e}function jfe(n,e){n.e=e}function Efe(n,e){n.g=e}function Cfe(n,e){n.f=e}function Mfe(n,e){n.j=e}function Tfe(n,e){n.a=e}function Afe(n,e){n.a=e}function Sfe(n,e){n.b=e}function r9n(n){n.b=n.a}function c9n(n){n.c=n.d.d}function vG(n){this.a=n}function kG(n){this.a=n}function yG(n){this.a=n}function Ha(n){this.a=n}function qa(n){this.a=n}function X9(n){this.a=n}function u9n(n){this.a=n}function jG(n){this.a=n}function V9(n){this.a=n}function PE(n){this.a=n}function ol(n){this.a=n}function Sb(n){this.a=n}function o9n(n){this.a=n}function s9n(n){this.a=n}function ZO(n){this.b=n}function J3(n){this.b=n}function Q3(n){this.b=n}function nD(n){this.a=n}function f9n(n){this.a=n}function eD(n){this.c=n}function C(n){this.c=n}function h9n(n){this.c=n}function Xv(n){this.d=n}function EG(n){this.a=n}function Te(n){this.a=n}function l9n(n){this.a=n}function CG(n){this.a=n}function MG(n){this.a=n}function TG(n){this.a=n}function AG(n){this.a=n}function SG(n){this.a=n}function PG(n){this.a=n}function Y3(n){this.a=n}function a9n(n){this.a=n}function d9n(n){this.a=n}function Z3(n){this.a=n}function b9n(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function v9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function C9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function A9n(n){this.a=n}function S9n(n){this.a=n}function Vv(n){this.a=n}function P9n(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function D9n(n){this.a=n}function IE(n){this.a=n}function L9n(n){this.a=n}function N9n(n){this.a=n}function n4(n){this.a=n}function IG(n){this.a=n}function $9n(n){this.a=n}function x9n(n){this.a=n}function F9n(n){this.a=n}function B9n(n){this.a=n}function R9n(n){this.a=n}function K9n(n){this.a=n}function OG(n){this.a=n}function DG(n){this.a=n}function LG(n){this.a=n}function Wv(n){this.a=n}function OE(n){this.e=n}function e4(n){this.a=n}function _9n(n){this.a=n}function tp(n){this.a=n}function NG(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function U9n(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function V9n(n){this.a=n}function W9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function Y9n(n){this.a=n}function $G(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function v7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function C7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function A7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function D7n(n){this.a=n}function L7n(n){this.a=n}function N7n(n){this.a=n}function $7n(n){this.a=n}function x7n(n){this.a=n}function F7n(n){this.c=n}function B7n(n){this.b=n}function R7n(n){this.a=n}function K7n(n){this.a=n}function _7n(n){this.a=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function V7n(n){this.a=n}function W7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function lkn(n){this.a=n}function sl(n){this.a=n}function sg(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function vkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Ckn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Akn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Dkn(n){this.a=n}function Lkn(n){this.a=n}function Nkn(n){this.a=n}function $kn(n){this.a=n}function xkn(n){this.a=n}function Fkn(n){this.a=n}function DE(n){this.a=n}function Bkn(n){this.f=n}function Rkn(n){this.a=n}function Kkn(n){this.a=n}function _kn(n){this.a=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Vkn(n){this.a=n}function Wkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function ayn(n){this.a=n}function tD(n){this.a=n}function xG(n){this.a=n}function lt(n){this.b=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function gyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function vyn(n){this.a=n}function kyn(n){this.b=n}function yyn(n){this.a=n}function W9(n){this.a=n}function jyn(n){this.a=n}function Eyn(n){this.a=n}function FG(n){this.c=n}function LE(n){this.e=n}function NE(n){this.a=n}function $E(n){this.a=n}function iD(n){this.a=n}function Cyn(n){this.d=n}function Myn(n){this.a=n}function BG(n){this.a=n}function RG(n){this.a=n}function Wd(n){this.e=n}function Pfe(){this.a=0}function de(){Hu(this)}function Z(){pL(this)}function rD(){sIn(this)}function Tyn(){}function Jd(){this.c=Gdn}function Ayn(n,e){n.b+=e}function Ife(n,e){e.Wb(n)}function Ofe(n){return n.a}function Dfe(n){return n.a}function Lfe(n){return n.a}function Nfe(n){return n.a}function $fe(n){return n.a}function M(n){return n.e}function xfe(){return null}function Ffe(){return null}function Bfe(){Cz(),pLe()}function Rfe(n){n.b.Of(n.e)}function Syn(n){n.b=new CD}function Jv(n,e){n.b=e-n.b}function Qv(n,e){n.a=e-n.a}function Bn(n,e){n.push(e)}function Pyn(n,e){n.sort(e)}function Iyn(n,e){e.jd(n.a)}function Kfe(n,e){gi(e,n)}function _fe(n,e,t){n.Yd(t,e)}function J9(n,e){n.e=e,e.b=n}function KG(n){uh(),this.a=n}function Oyn(n){uh(),this.a=n}function Dyn(n){uh(),this.a=n}function cD(n){m0(),this.a=n}function Lyn(n){O4(),VK.le(n)}function _G(){_G=F,new de}function Ua(){YTn.call(this)}function HG(){YTn.call(this)}function qG(){Ua.call(this)}function uD(){Ua.call(this)}function Nyn(){Ua.call(this)}function Q9(){Ua.call(this)}function Cu(){Ua.call(this)}function ip(){Ua.call(this)}function Pe(){Ua.call(this)}function Bo(){Ua.call(this)}function $yn(){Ua.call(this)}function nc(){Ua.call(this)}function xyn(){Ua.call(this)}function Fyn(){this.a=this}function xE(){this.Bb|=256}function Byn(){this.b=new GMn}function Pb(n,e){n.length=e}function FE(n,e){nn(n.a,e)}function Hfe(n,e){bnn(n.c,e)}function qfe(n,e){fi(n.b,e)}function Ufe(n,e){uA(n.a,e)}function Gfe(n,e){cx(n.a,e)}function t4(n,e){it(n.e,e)}function rp(n){jA(n.c,n.b)}function zfe(n,e){n.kc().Nb(e)}function UG(n){this.a=B5e(n)}function ni(){this.a=new de}function Ryn(){this.a=new de}function GG(){this.a=new rCn}function BE(){this.a=new Z}function oD(){this.a=new Z}function zG(){this.a=new Z}function hs(){this.a=new cbn}function Ga(){this.a=new NLn}function XG(){this.a=new _U}function VG(){this.a=new TOn}function WG(){this.a=new BAn}function Kyn(){this.a=new Z}function _yn(){this.a=new Z}function Hyn(){this.a=new Z}function JG(){this.a=new Z}function qyn(){this.d=new Z}function Uyn(){this.a=new zOn}function Gyn(){this.a=new ni}function zyn(){this.a=new de}function Xyn(){this.b=new de}function Vyn(){this.b=new Z}function QG(){this.e=new Z}function Wyn(){this.a=new Z5n}function Jyn(){this.d=new Z}function Qyn(){QIn.call(this)}function Yyn(){QIn.call(this)}function Zyn(){Z.call(this)}function YG(){qG.call(this)}function ZG(){BE.call(this)}function njn(){qC.call(this)}function ejn(){JG.call(this)}function Yv(){Tyn.call(this)}function sD(){Yv.call(this)}function cp(){Tyn.call(this)}function nz(){cp.call(this)}function tjn(){rz.call(this)}function ijn(){rz.call(this)}function rjn(){rz.call(this)}function cjn(){cz.call(this)}function Zv(){svn.call(this)}function ez(){svn.call(this)}function Mu(){Ct.call(this)}function ujn(){yjn.call(this)}function ojn(){yjn.call(this)}function sjn(){de.call(this)}function fjn(){de.call(this)}function hjn(){de.call(this)}function fD(){cxn.call(this)}function ljn(){ni.call(this)}function ajn(){xE.call(this)}function hD(){BX.call(this)}function tz(){de.call(this)}function lD(){BX.call(this)}function aD(){de.call(this)}function djn(){de.call(this)}function iz(){ME.call(this)}function bjn(){iz.call(this)}function wjn(){ME.call(this)}function gjn(){rG.call(this)}function rz(){this.a=new ni}function pjn(){this.a=new de}function mjn(){this.a=new Z}function cz(){this.a=new de}function up(){this.a=new Ct}function vjn(){this.j=new Z}function kjn(){this.a=new mEn}function yjn(){this.a=new mvn}function uz(){this.a=new Z4n}function n6(){n6=F,KK=new Ht}function dD(){dD=F,_K=new Ejn}function bD(){bD=F,HK=new jjn}function jjn(){XO.call(this,"")}function Ejn(){XO.call(this,"")}function Cjn(n){S$n.call(this,n)}function Mjn(n){S$n.call(this,n)}function oz(n){fG.call(this,n)}function sz(n){XEn.call(this,n)}function Xfe(n){XEn.call(this,n)}function Vfe(n){sz.call(this,n)}function Wfe(n){sz.call(this,n)}function Jfe(n){sz.call(this,n)}function Tjn(n){zN.call(this,n)}function Ajn(n){zN.call(this,n)}function Sjn(n){uSn.call(this,n)}function Pjn(n){Oz.call(this,n)}function e6(n){WE.call(this,n)}function fz(n){WE.call(this,n)}function Ijn(n){WE.call(this,n)}function hz(n){mje.call(this,n)}function lz(n){hz.call(this,n)}function ec(n){APn.call(this,n)}function Ojn(n){ec.call(this,n)}function op(){z9.call(this,{})}function Djn(){Djn=F,dQn=new M0n}function RE(){RE=F,GK=new STn}function Ljn(){Ljn=F,oun=new Bu}function az(){az=F,sun=new N1}function KE(){KE=F,P8=new $1}function wD(n){b4(),this.a=n}function gD(n){RQ(),this.a=n}function Qd(n){nN(),this.f=n}function pD(n){nN(),this.f=n}function Njn(n){bSn(),this.a=n}function $jn(n){n.b=null,n.c=0}function Qfe(n,e){n.e=e,bqn(n,e)}function Yfe(n,e){n.a=e,cEe(n)}function mD(n,e,t){n.a[e.g]=t}function Zfe(n,e,t){kke(t,n,e)}function nhe(n,e){Wae(e.i,n.n)}function xjn(n,e){v6e(n).Cd(e)}function ehe(n,e){n.a.ec().Mc(e)}function Fjn(n,e){return n.g-e.g}function the(n,e){return n*n/e}function on(n){return Jn(n),n}function $(n){return Jn(n),n}function Y9(n){return Jn(n),n}function ihe(n){return new AE(n)}function rhe(n){return new qb(n)}function dz(n){return Jn(n),n}function che(n){return Jn(n),n}function _E(n){ec.call(this,n)}function Ir(n){ec.call(this,n)}function Bjn(n){ec.call(this,n)}function vD(n){APn.call(this,n)}function i4(n){ec.call(this,n)}function Gn(n){ec.call(this,n)}function Or(n){ec.call(this,n)}function Rjn(n){ec.call(this,n)}function sp(n){ec.call(this,n)}function Kl(n){ec.call(this,n)}function _l(n){ec.call(this,n)}function fp(n){ec.call(this,n)}function nh(n){ec.call(this,n)}function kD(n){ec.call(this,n)}function Le(n){ec.call(this,n)}function Ku(n){Jn(n),this.a=n}function bz(n){return ld(n),n}function t6(n){TW(n,n.length)}function i6(n){return n.b==n.c}function Ib(n){return!!n&&n.b}function uhe(n){return!!n&&n.k}function ohe(n){return!!n&&n.j}function she(n,e,t){n.c.Ef(e,t)}function Kjn(n,e){n.be(e),e.ae(n)}function hp(n){uh(),this.a=Se(n)}function yD(){this.a=Oe(Se(ur))}function _jn(){throw M(new Pe)}function fhe(){throw M(new Pe)}function wz(){throw M(new Pe)}function Hjn(){throw M(new Pe)}function hhe(){throw M(new Pe)}function lhe(){throw M(new Pe)}function HE(){HE=F,O4()}function Hl(){X9.call(this,"")}function r6(){X9.call(this,"")}function x1(){X9.call(this,"")}function lp(){X9.call(this,"")}function gz(n){Ir.call(this,n)}function pz(n){Ir.call(this,n)}function eh(n){Gn.call(this,n)}function r4(n){Q3.call(this,n)}function qjn(n){r4.call(this,n)}function jD(n){BC.call(this,n)}function ED(n){JX.call(this,n,0)}function CD(){sJ.call(this,12,3)}function T(n,e){return kOn(n,e)}function qE(n,e){return o$(n,e)}function ahe(n,e){return n.a-e.a}function dhe(n,e){return n.a-e.a}function bhe(n,e){return n.a-e.a}function whe(n,e){return e in n.a}function Ujn(n){return n.a?n.b:0}function ghe(n){return n.a?n.b:0}function phe(n,e,t){e.Cd(n.a[t])}function mhe(n,e,t){e.Pe(n.a[t])}function vhe(n,e){n.b=new rr(e)}function khe(n,e){return n.b=e,n}function Gjn(n,e){return n.c=e,n}function zjn(n,e){return n.f=e,n}function yhe(n,e){return n.g=e,n}function mz(n,e){return n.a=e,n}function vz(n,e){return n.f=e,n}function jhe(n,e){return n.k=e,n}function kz(n,e){return n.a=e,n}function Ehe(n,e){return n.e=e,n}function yz(n,e){return n.e=e,n}function Che(n,e){return n.f=e,n}function Mhe(n,e){n.b=!0,n.d=e}function The(n,e){return n.b-e.b}function Ahe(n,e){return n.g-e.g}function She(n,e){return n?0:e-1}function Xjn(n,e){return n?0:e-1}function Phe(n,e){return n?e-1:0}function Ihe(n,e){return n.s-e.s}function Ohe(n,e){return e.rg(n)}function Yd(n,e){return n.b=e,n}function UE(n,e){return n.a=e,n}function Zd(n,e){return n.c=e,n}function n0(n,e){return n.d=e,n}function e0(n,e){return n.e=e,n}function jz(n,e){return n.f=e,n}function c6(n,e){return n.a=e,n}function c4(n,e){return n.b=e,n}function u4(n,e){return n.c=e,n}function an(n,e){return n.c=e,n}function Sn(n,e){return n.b=e,n}function dn(n,e){return n.d=e,n}function bn(n,e){return n.e=e,n}function Dhe(n,e){return n.f=e,n}function wn(n,e){return n.g=e,n}function gn(n,e){return n.a=e,n}function pn(n,e){return n.i=e,n}function mn(n,e){return n.j=e,n}function Lhe(n,e){ca(),ic(e,n)}function Nhe(n,e,t){Jbe(n.a,e,t)}function GE(n){$L.call(this,n)}function Vjn(n){Z5e.call(this,n)}function Wjn(n){SIn.call(this,n)}function Ez(n){SIn.call(this,n)}function F1(n){S0.call(this,n)}function Jjn(n){CN.call(this,n)}function Qjn(n){CN.call(this,n)}function Yjn(){DX.call(this,"")}function Li(){this.a=0,this.b=0}function Zjn(){this.b=0,this.a=0}function nEn(n,e){n.b=0,Zb(n,e)}function eEn(n,e){return n.k=e,n}function $he(n,e){return n.j=e,n}function xhe(n,e){n.c=e,n.b=!0}function tEn(){tEn=F,TQn=Xke()}function B1(){B1=F,voe=rke()}function iEn(){iEn=F,Ti=gye()}function Cz(){Cz=F,Oa=z4()}function o4(){o4=F,Udn=cke()}function rEn(){rEn=F,ise=uke()}function Mz(){Mz=F,yc=tEe()}function uf(n){return n.e&&n.e()}function cEn(n){return n.l|n.m<<22}function uEn(n,e){return n.c._b(e)}function oEn(n,e){return rBn(n.b,e)}function MD(n){return n?n.d:null}function Fhe(n){return n?n.g:null}function Bhe(n){return n?n.i:null}function za(n){return ll(n),n.o}function fg(n,e){return n.a+=e,n}function TD(n,e){return n.a+=e,n}function ql(n,e){return n.a+=e,n}function t0(n,e){return n.a+=e,n}function Tz(n,e){for(;n.Bd(e););}function zE(n){this.a=new ap(n)}function sEn(){throw M(new Pe)}function fEn(){throw M(new Pe)}function hEn(){throw M(new Pe)}function lEn(){throw M(new Pe)}function aEn(){throw M(new Pe)}function dEn(){throw M(new Pe)}function Ul(n){this.a=new iN(n)}function bEn(){this.a=new K5(Rln)}function wEn(){this.b=new K5(rln)}function gEn(){this.a=new K5(f1n)}function pEn(){this.b=new K5(Fq)}function mEn(){this.b=new K5(Fq)}function XE(n){this.a=0,this.b=n}function Az(n){zGn(),ILe(this,n)}function s4(n){return z1(n),n.a}function Z9(n){return n.b!=n.d.c}function Sz(n,e){return n.d[e.p]}function vEn(n,e){return XTe(n,e)}function Pz(n,e,t){n.splice(e,t)}function hg(n,e){for(;n.Re(e););}function kEn(n){n.c?Dqn(n):Lqn(n)}function yEn(){throw M(new Pe)}function jEn(){throw M(new Pe)}function EEn(){throw M(new Pe)}function CEn(){throw M(new Pe)}function MEn(){throw M(new Pe)}function TEn(){throw M(new Pe)}function AEn(){throw M(new Pe)}function SEn(){throw M(new Pe)}function PEn(){throw M(new Pe)}function IEn(){throw M(new Pe)}function Rhe(){throw M(new nc)}function Khe(){throw M(new nc)}function n7(n){this.a=new OEn(n)}function OEn(n){Ume(this,n,jje())}function e7(n){return!n||oIn(n)}function t7(n){return Zf[n]!=-1}function _he(){cP!=0&&(cP=0),uP=-1}function DEn(){RK==null&&(RK=[])}function i7(n,e){Cg.call(this,n,e)}function f4(n,e){i7.call(this,n,e)}function LEn(n,e){this.a=n,this.b=e}function NEn(n,e){this.a=n,this.b=e}function $En(n,e){this.a=n,this.b=e}function xEn(n,e){this.a=n,this.b=e}function FEn(n,e){this.a=n,this.b=e}function BEn(n,e){this.a=n,this.b=e}function REn(n,e){this.a=n,this.b=e}function h4(n,e){this.e=n,this.d=e}function Iz(n,e){this.b=n,this.c=e}function KEn(n,e){this.b=n,this.a=e}function _En(n,e){this.b=n,this.a=e}function HEn(n,e){this.b=n,this.a=e}function qEn(n,e){this.b=n,this.a=e}function UEn(n,e){this.a=n,this.b=e}function AD(n,e){this.a=n,this.b=e}function GEn(n,e){this.a=n,this.f=e}function i0(n,e){this.g=n,this.i=e}function je(n,e){this.f=n,this.g=e}function zEn(n,e){this.b=n,this.c=e}function XEn(n){KX(n.dc()),this.c=n}function Hhe(n,e){this.a=n,this.b=e}function VEn(n,e){this.a=n,this.b=e}function WEn(n){this.a=u(Se(n),15)}function Oz(n){this.a=u(Se(n),15)}function JEn(n){this.a=u(Se(n),85)}function VE(n){this.b=u(Se(n),85)}function WE(n){this.b=u(Se(n),51)}function JE(){this.q=new y.Date}function SD(n,e){this.a=n,this.b=e}function QEn(n,e){return Zc(n.b,e)}function r7(n,e){return n.b.Hc(e)}function YEn(n,e){return n.b.Ic(e)}function ZEn(n,e){return n.b.Qc(e)}function nCn(n,e){return n.b.Hc(e)}function eCn(n,e){return n.c.uc(e)}function tCn(n,e){return rt(n.c,e)}function of(n,e){return n.a._b(e)}function iCn(n,e){return n>e&&e0}function ND(n,e){return Ec(n,e)<0}function vCn(n,e){return JL(n.a,e)}function ole(n,e){yOn.call(this,n,e)}function Bz(n){wN(),uSn.call(this,n)}function Rz(n,e){bPn(n,n.length,e)}function s7(n,e){HPn(n,n.length,e)}function d6(n,e){return n.a.get(e)}function kCn(n,e){return Zc(n.e,e)}function Kz(n){return Jn(n),!1}function _z(n){this.a=u(Se(n),229)}function cC(n){In.call(this,n,21)}function uC(n,e){je.call(this,n,e)}function $D(n,e){je.call(this,n,e)}function yCn(n,e){this.b=n,this.a=e}function oC(n,e){this.d=n,this.e=e}function jCn(n,e){this.a=n,this.b=e}function ECn(n,e){this.a=n,this.b=e}function CCn(n,e){this.a=n,this.b=e}function MCn(n,e){this.a=n,this.b=e}function bp(n,e){this.a=n,this.b=e}function TCn(n,e){this.b=n,this.a=e}function Hz(n,e){this.b=n,this.a=e}function qz(n,e){je.call(this,n,e)}function Uz(n,e){je.call(this,n,e)}function lg(n,e){je.call(this,n,e)}function xD(n,e){je.call(this,n,e)}function FD(n,e){je.call(this,n,e)}function BD(n,e){je.call(this,n,e)}function sC(n,e){je.call(this,n,e)}function Gz(n,e){this.b=n,this.a=e}function fC(n,e){je.call(this,n,e)}function zz(n,e){this.b=n,this.a=e}function hC(n,e){je.call(this,n,e)}function ACn(n,e){this.b=n,this.a=e}function Xz(n,e){je.call(this,n,e)}function RD(n,e){je.call(this,n,e)}function f7(n,e){je.call(this,n,e)}function b6(n,e,t){n.splice(e,0,t)}function sle(n,e,t){n.Mb(t)&&e.Cd(t)}function fle(n,e,t){e.Pe(n.a.Ye(t))}function hle(n,e,t){e.Dd(n.a.Ze(t))}function lle(n,e,t){e.Cd(n.a.Kb(t))}function ale(n,e){return Au(n.c,e)}function dle(n,e){return Au(n.e,e)}function lC(n,e){je.call(this,n,e)}function aC(n,e){je.call(this,n,e)}function w6(n,e){je.call(this,n,e)}function Vz(n,e){je.call(this,n,e)}function ei(n,e){je.call(this,n,e)}function dC(n,e){je.call(this,n,e)}function SCn(n,e){this.a=n,this.b=e}function PCn(n,e){this.a=n,this.b=e}function ICn(n,e){this.a=n,this.b=e}function OCn(n,e){this.a=n,this.b=e}function DCn(n,e){this.a=n,this.b=e}function LCn(n,e){this.a=n,this.b=e}function NCn(n,e){this.b=n,this.a=e}function $Cn(n,e){this.b=n,this.a=e}function Wz(n,e){this.b=n,this.a=e}function d4(n,e){this.c=n,this.d=e}function xCn(n,e){this.e=n,this.d=e}function FCn(n,e){this.a=n,this.b=e}function BCn(n,e){this.a=n,this.b=e}function RCn(n,e){this.a=n,this.b=e}function KCn(n,e){this.b=n,this.a=e}function _Cn(n,e){this.b=e,this.c=n}function bC(n,e){je.call(this,n,e)}function h7(n,e){je.call(this,n,e)}function KD(n,e){je.call(this,n,e)}function Jz(n,e){je.call(this,n,e)}function g6(n,e){je.call(this,n,e)}function _D(n,e){je.call(this,n,e)}function HD(n,e){je.call(this,n,e)}function l7(n,e){je.call(this,n,e)}function Qz(n,e){je.call(this,n,e)}function qD(n,e){je.call(this,n,e)}function p6(n,e){je.call(this,n,e)}function Yz(n,e){je.call(this,n,e)}function m6(n,e){je.call(this,n,e)}function v6(n,e){je.call(this,n,e)}function Db(n,e){je.call(this,n,e)}function UD(n,e){je.call(this,n,e)}function GD(n,e){je.call(this,n,e)}function Zz(n,e){je.call(this,n,e)}function a7(n,e){je.call(this,n,e)}function ag(n,e){je.call(this,n,e)}function zD(n,e){je.call(this,n,e)}function wC(n,e){je.call(this,n,e)}function d7(n,e){je.call(this,n,e)}function Lb(n,e){je.call(this,n,e)}function gC(n,e){je.call(this,n,e)}function nX(n,e){je.call(this,n,e)}function XD(n,e){je.call(this,n,e)}function VD(n,e){je.call(this,n,e)}function WD(n,e){je.call(this,n,e)}function JD(n,e){je.call(this,n,e)}function QD(n,e){je.call(this,n,e)}function YD(n,e){je.call(this,n,e)}function ZD(n,e){je.call(this,n,e)}function HCn(n,e){this.b=n,this.a=e}function eX(n,e){je.call(this,n,e)}function qCn(n,e){this.a=n,this.b=e}function UCn(n,e){this.a=n,this.b=e}function GCn(n,e){this.a=n,this.b=e}function tX(n,e){je.call(this,n,e)}function iX(n,e){je.call(this,n,e)}function zCn(n,e){this.a=n,this.b=e}function ble(n,e){return k4(),e!=n}function b7(n){return oe(n.a),n.b}function nL(n){return yCe(n,n.c),n}function XCn(){return tEn(),new TQn}function VCn(){VC(),this.a=new kV}function WCn(){OA(),this.a=new ni}function JCn(){NN(),this.b=new ni}function QCn(n,e){this.b=n,this.d=e}function YCn(n,e){this.a=n,this.b=e}function ZCn(n,e){this.a=n,this.b=e}function nMn(n,e){this.a=n,this.b=e}function eMn(n,e){this.b=n,this.a=e}function rX(n,e){je.call(this,n,e)}function cX(n,e){je.call(this,n,e)}function pC(n,e){je.call(this,n,e)}function u0(n,e){je.call(this,n,e)}function eL(n,e){je.call(this,n,e)}function mC(n,e){je.call(this,n,e)}function uX(n,e){je.call(this,n,e)}function oX(n,e){je.call(this,n,e)}function w7(n,e){je.call(this,n,e)}function sX(n,e){je.call(this,n,e)}function tL(n,e){je.call(this,n,e)}function vC(n,e){je.call(this,n,e)}function iL(n,e){je.call(this,n,e)}function rL(n,e){je.call(this,n,e)}function cL(n,e){je.call(this,n,e)}function uL(n,e){je.call(this,n,e)}function fX(n,e){je.call(this,n,e)}function oL(n,e){je.call(this,n,e)}function hX(n,e){je.call(this,n,e)}function g7(n,e){je.call(this,n,e)}function sL(n,e){je.call(this,n,e)}function lX(n,e){je.call(this,n,e)}function p7(n,e){je.call(this,n,e)}function aX(n,e){je.call(this,n,e)}function tMn(n,e){this.b=n,this.a=e}function iMn(n,e){this.b=n,this.a=e}function rMn(n,e){this.b=n,this.a=e}function cMn(n,e){this.b=n,this.a=e}function dX(n,e){this.a=n,this.b=e}function uMn(n,e){this.a=n,this.b=e}function oMn(n,e){this.a=n,this.b=e}function V(n,e){this.a=n,this.b=e}function k6(n,e){je.call(this,n,e)}function m7(n,e){je.call(this,n,e)}function wp(n,e){je.call(this,n,e)}function y6(n,e){je.call(this,n,e)}function v7(n,e){je.call(this,n,e)}function fL(n,e){je.call(this,n,e)}function kC(n,e){je.call(this,n,e)}function j6(n,e){je.call(this,n,e)}function hL(n,e){je.call(this,n,e)}function yC(n,e){je.call(this,n,e)}function dg(n,e){je.call(this,n,e)}function k7(n,e){je.call(this,n,e)}function E6(n,e){je.call(this,n,e)}function C6(n,e){je.call(this,n,e)}function y7(n,e){je.call(this,n,e)}function jC(n,e){je.call(this,n,e)}function bg(n,e){je.call(this,n,e)}function lL(n,e){je.call(this,n,e)}function sMn(n,e){je.call(this,n,e)}function EC(n,e){je.call(this,n,e)}function fMn(n,e){this.a=n,this.b=e}function hMn(n,e){this.a=n,this.b=e}function lMn(n,e){this.a=n,this.b=e}function aMn(n,e){this.a=n,this.b=e}function dMn(n,e){this.a=n,this.b=e}function bMn(n,e){this.a=n,this.b=e}function bi(n,e){this.a=n,this.b=e}function wMn(n,e){this.a=n,this.b=e}function gMn(n,e){this.a=n,this.b=e}function pMn(n,e){this.a=n,this.b=e}function mMn(n,e){this.a=n,this.b=e}function vMn(n,e){this.a=n,this.b=e}function kMn(n,e){this.a=n,this.b=e}function yMn(n,e){this.b=n,this.a=e}function jMn(n,e){this.b=n,this.a=e}function EMn(n,e){this.b=n,this.a=e}function CMn(n,e){this.b=n,this.a=e}function MMn(n,e){this.a=n,this.b=e}function TMn(n,e){this.a=n,this.b=e}function CC(n,e){je.call(this,n,e)}function AMn(n,e){this.a=n,this.b=e}function SMn(n,e){this.a=n,this.b=e}function gp(n,e){je.call(this,n,e)}function PMn(n,e){this.f=n,this.c=e}function bX(n,e){return Au(n.g,e)}function wle(n,e){return Au(e.b,n)}function IMn(n,e){return wx(n.a,e)}function gle(n,e){return-n.b.af(e)}function ple(n,e){n&&Xe(hE,n,e)}function wX(n,e){n.i=null,kT(n,e)}function mle(n,e,t){yKn(e,oF(n,t))}function vle(n,e,t){yKn(e,oF(n,t))}function kle(n,e){VMe(n.a,u(e,58))}function OMn(n,e){U4e(n.a,u(e,12))}function MC(n,e){this.a=n,this.b=e}function DMn(n,e){this.a=n,this.b=e}function LMn(n,e){this.a=n,this.b=e}function NMn(n,e){this.a=n,this.b=e}function $Mn(n,e){this.a=n,this.b=e}function xMn(n,e){this.d=n,this.b=e}function FMn(n,e){this.e=n,this.a=e}function j7(n,e){this.b=n,this.c=e}function gX(n,e){this.i=n,this.g=e}function pX(n,e){this.d=n,this.e=e}function yle(n,e){cme(new ne(n),e)}function TC(n){return Rk(n.c,n.b)}function Kr(n){return n?n.md():null}function x(n){return n??null}function Ai(n){return typeof n===nB}function Nb(n){return typeof n===i3}function $b(n){return typeof n===dtn}function o0(n,e){return Ec(n,e)==0}function AC(n,e){return Ec(n,e)>=0}function M6(n,e){return Ec(n,e)!=0}function SC(n,e){return jve(n.Kc(),e)}function _1(n,e){return n.Rd().Xb(e)}function BMn(n){return eo(n),n.d.gc()}function PC(n){return F6(n==null),n}function T6(n,e){return n.a+=""+e,n}function Er(n,e){return n.a+=""+e,n}function A6(n,e){return n.a+=""+e,n}function Dc(n,e){return n.a+=""+e,n}function Be(n,e){return n.a+=""+e,n}function mX(n,e){return n.a+=""+e,n}function jle(n){return""+(Jn(n),n)}function RMn(n){Hu(this),f5(this,n)}function KMn(){oJ(),dW.call(this)}function _Mn(n,e){mW.call(this,n,e)}function HMn(n,e){mW.call(this,n,e)}function IC(n,e){mW.call(this,n,e)}function ir(n,e){xt(n,e,n.c.b,n.c)}function wg(n,e){xt(n,e,n.a,n.a.a)}function vX(n){return Ln(n,0),null}function qMn(){this.b=0,this.a=!1}function UMn(){this.b=0,this.a=!1}function GMn(){this.b=new ap(Qb(12))}function zMn(){zMn=F,kYn=Ce(jx())}function XMn(){XMn=F,HZn=Ce(iqn())}function VMn(){VMn=F,lre=Ce(xxn())}function kX(){kX=F,_G(),fun=new de}function sf(n){return n.a=0,n.b=0,n}function WMn(n,e){return n.a=e.g+1,n}function aL(n,e){Kb.call(this,n,e)}function Mn(n,e){Dt.call(this,n,e)}function gg(n,e){gX.call(this,n,e)}function JMn(n,e){T7.call(this,n,e)}function dL(n,e){Y4.call(this,n,e)}function Ue(n,e){iC(),Xe(yO,n,e)}function QMn(n,e){n.q.setTime(id(e))}function Ele(n){y.clearTimeout(n)}function Cle(n){return Se(n),new S6(n)}function YMn(n,e){return x(n)===x(e)}function ZMn(n,e){return n.a.a.a.cc(e)}function bL(n,e){return qo(n.a,0,e)}function yX(n){return Awe(u(n,74))}function pp(n){return wi((Jn(n),n))}function Mle(n){return wi((Jn(n),n))}function nTn(n){return Yc(n.l,n.m,n.h)}function jX(n,e){return jc(n.a,e.a)}function Tle(n,e){return KPn(n.a,e.a)}function Ale(n,e){return bt(n.a,e.a)}function th(n,e){return n.indexOf(e)}function Sle(n,e){return n.j[e.p]==2}function s0(n,e){return n==e?0:n?1:-1}function OC(n){return n<10?"0"+n:""+n}function Vr(n){return typeof n===dtn}function Ple(n){return n==rb||n==Iw}function Ile(n){return n==rb||n==Pw}function eTn(n,e){return jc(n.g,e.g)}function EX(n){return qr(n.b.b,n,0)}function tTn(){rM.call(this,0,0,0,0)}function ih(){CG.call(this,new Ql)}function CX(n,e){F4(n,0,n.length,e)}function Ole(n,e){return nn(n.a,e),e}function Dle(n,e){return xs(),e.a+=n}function Lle(n,e){return xs(),e.a+=n}function Nle(n,e){return xs(),e.c+=n}function $le(n,e){return nn(n.c,e),n}function MX(n,e){return Mo(n.a,e),n}function iTn(n){this.a=XCn(),this.b=n}function rTn(n){this.a=XCn(),this.b=n}function rr(n){this.a=n.a,this.b=n.b}function S6(n){this.a=n,GO.call(this)}function cTn(n){this.a=n,GO.call(this)}function mp(){Ho.call(this,0,0,0,0)}function DC(n){return Mo(new ii,n)}function uTn(n){return jM(u(n,123))}function fo(n){return n.vh()&&n.wh()}function pg(n){return n!=Jf&&n!=Sa}function hl(n){return n==Br||n==Xr}function mg(n){return n==us||n==Vf}function oTn(n){return n==S2||n==A2}function xle(n,e){return jc(n.g,e.g)}function sTn(n,e){return new Y4(e,n)}function Fle(n,e){return new Y4(e,n)}function TX(n){return rbe(n.b.Kc(),n.a)}function wL(n,e){um(n,e),G4(n,n.D)}function gL(n,e,t){aT(n,e),lT(n,t)}function vg(n,e,t){I0(n,e),P0(n,t)}function Ro(n,e,t){eu(n,e),tu(n,t)}function E7(n,e,t){_4(n,e),q4(n,t)}function C7(n,e,t){H4(n,e),U4(n,t)}function fTn(n,e,t){sV.call(this,n,e,t)}function AX(n){PMn.call(this,n,!0)}function hTn(){uC.call(this,"Tail",3)}function lTn(){uC.call(this,"Head",1)}function H1(n){dh(),mve.call(this,n)}function f0(n){rM.call(this,n,n,n,n)}function pL(n){n.c=K(ki,Fn,1,0,5,1)}function SX(n){return n.b&&xF(n),n.a}function PX(n){return n.b&&xF(n),n.c}function Ble(n,e){qf||(n.b=e)}function Rle(n,e){return n[n.length]=e}function Kle(n,e){return n[n.length]=e}function _le(n,e){return Yb(e,Af(n))}function Hle(n,e){return Yb(e,Af(n))}function qle(n,e){return pT(dN(n.d),e)}function Ule(n,e){return pT(dN(n.g),e)}function Gle(n,e){return pT(dN(n.j),e)}function Ni(n,e){Dt.call(this,n.b,e)}function zle(n,e){ve(Sc(n.a),DOn(e))}function Xle(n,e){ve(no(n.a),LOn(e))}function Vle(n,e,t){Ro(t,t.i+n,t.j+e)}function aTn(n,e,t){$t(n.c[e.g],e.g,t)}function Wle(n,e,t){u(n.c,71).Gi(e,t)}function mL(n,e,t){return $t(n,e,t),t}function dTn(n){nu(n.Sf(),new D9n(n))}function kg(n){return n!=null?mt(n):0}function Jle(n){return n==null?0:mt(n)}function P6(n){nt(),Wd.call(this,n)}function bTn(n){this.a=n,qV.call(this,n)}function Mf(){Mf=F,y.Math.log(2)}function Ko(){Ko=F,rl=(pCn(),Moe)}function wTn(){wTn=F,YH=new j5(aU)}function Ie(){Ie=F,new gTn,new Z}function gTn(){new de,new de,new de}function Qle(){throw M(new Kl(QJn))}function Yle(){throw M(new Kl(QJn))}function Zle(){throw M(new Kl(YJn))}function n1e(){throw M(new Kl(YJn))}function vL(n){this.a=n,VE.call(this,n)}function kL(n){this.a=n,VE.call(this,n)}function pTn(n,e){m0(),this.a=n,this.b=e}function e1e(n,e){Se(e),Tg(n).Jc(new Ru)}function Yt(n,e){QL(n.c,n.c.length,e)}function tc(n){return n.ae?1:0}function OX(n,e){return Ec(n,e)>0?n:e}function Yc(n,e,t){return{l:n,m:e,h:t}}function t1e(n,e){n.a!=null&&OMn(e,n.a)}function i1e(n){Zi(n,null),Ii(n,null)}function r1e(n,e,t){return Xe(n.g,t,e)}function yg(n,e,t){return nZ(e,t,n.c)}function c1e(n,e,t){return Xe(n.k,t,e)}function u1e(n,e,t){return GOe(n,e,t),t}function o1e(n,e){return ko(),e.n.b+=n}function vTn(n){nJ.call(this),this.b=n}function DX(n){vV.call(this),this.a=n}function kTn(){uC.call(this,"Range",2)}function LC(n){this.b=n,this.a=new Z}function yTn(n){this.b=new $bn,this.a=n}function jTn(n){n.a=new OO,n.c=new OO}function ETn(n){n.a=new de,n.d=new de}function CTn(n){$N(n,null),xN(n,null)}function MTn(n,e){return XOe(n.a,e,null)}function s1e(n,e){return Xe(n.a,e.a,e)}function Ki(n){return new V(n.a,n.b)}function LX(n){return new V(n.c,n.d)}function f1e(n){return new V(n.c,n.d)}function I6(n,e){return cOe(n.c,n.b,e)}function O(n,e){return n!=null&&Tx(n,e)}function yL(n,e){return Yve(n.Kc(),e)!=-1}function NC(n){return n.Ob()?n.Pb():null}function h1e(n){this.b=(Dn(),new eD(n))}function NX(n){this.a=n,de.call(this)}function TTn(){T7.call(this,null,null)}function ATn(){_C.call(this,null,null)}function STn(){je.call(this,"INSTANCE",0)}function PTn(){LZ(),this.a=new K5(Ion)}function ITn(n){return hh(n,0,n.length)}function l1e(n,e){return new VTn(n.Kc(),e)}function $X(n,e){return n.a.Bc(e)!=null}function OTn(n,e){me(n),n.Gc(u(e,15))}function a1e(n,e,t){n.c.bd(e,u(t,136))}function d1e(n,e,t){n.c.Ui(e,u(t,136))}function DTn(n,e){n.c&&(tW(e),rOn(e))}function b1e(n,e){n.q.setHours(e),G5(n,e)}function w1e(n,e){a0(e,n.a.a.a,n.a.a.b)}function g1e(n,e,t,i){$t(n.a[e.g],t.g,i)}function jL(n,e,t){return n.a[e.g][t.g]}function p1e(n,e){return n.e[e.c.p][e.p]}function m1e(n,e){return n.c[e.c.p][e.p]}function Tf(n,e){return n.a[e.c.p][e.p]}function v1e(n,e){return n.j[e.p]=IMe(e)}function EL(n,e){return n.a.Bc(e)!=null}function k1e(n,e){return $(R(e.a))<=n}function y1e(n,e){return $(R(e.a))>=n}function j1e(n,e){return RJ(n.f,e.Pg())}function vp(n,e){return n.a*e.a+n.b*e.b}function E1e(n,e){return n.a0?e/(n*n):e*100}function V1e(n,e){return n>0?e*e/n:e*e*100}function xb(n,e){return u(Lf(n.a,e),34)}function W1e(n,e){return ca(),Pn(n,e.e,e)}function J1e(n,e,t){return nC(),t.Mg(n,e)}function Q1e(n){return kl(),n.e.a+n.f.a/2}function Y1e(n,e,t){return kl(),t.e.a-n*e}function Z1e(n){return kl(),n.e.b+n.f.b/2}function nae(n,e,t){return kl(),t.e.b-n*e}function sAn(n){n.d=new cAn(n),n.e=new de}function fAn(){this.a=new C0,this.b=new C0}function hAn(n){this.c=n,this.a=1,this.b=1}function lAn(n){YF(),Syn(this),this.Ff(n)}function eae(n,e,t){YM(),n.pf(e)&&t.Cd(n)}function tae(n,e,t){return nn(e,jBn(n,t))}function a0(n,e,t){return n.a+=e,n.b+=t,n}function iae(n,e,t){return n.a*=e,n.b*=t,n}function ZX(n,e){return n.a=e.a,n.b=e.b,n}function HC(n){return n.a=-n.a,n.b=-n.b,n}function N6(n,e,t){return n.a-=e,n.b-=t,n}function aAn(n){Ct.call(this),c5(this,n)}function dAn(){je.call(this,"GROW_TREE",0)}function bAn(){je.call(this,"POLYOMINO",0)}function lo(n,e,t){Iu.call(this,n,e,t,2)}function rae(n,e,t){k5(Sc(n.a),e,DOn(t))}function wAn(n,e){a6(),T7.call(this,n,e)}function nV(n,e){Gl(),_C.call(this,n,e)}function gAn(n,e){Gl(),nV.call(this,n,e)}function pAn(n,e){Gl(),_C.call(this,n,e)}function cae(n,e){return n.c.Fc(u(e,136))}function uae(n,e,t){k5(no(n.a),e,LOn(t))}function mAn(n){this.c=n,eu(n,0),tu(n,0)}function PL(n,e){Ko(),oM.call(this,n,e)}function vAn(n,e){Ko(),PL.call(this,n,e)}function eV(n,e){Ko(),PL.call(this,n,e)}function tV(n,e){Ko(),oM.call(this,n,e)}function kAn(n,e){Ko(),eV.call(this,n,e)}function yAn(n,e){Ko(),tV.call(this,n,e)}function jAn(n,e){Ko(),oM.call(this,n,e)}function oae(n,e,t){return e.zl(n.e,n.c,t)}function sae(n,e,t){return e.Al(n.e,n.c,t)}function iV(n,e,t){return qA(ak(n,e),t)}function IL(n,e){return na(n.e,u(e,54))}function fae(n){return n==null?null:NDe(n)}function hae(n){return n==null?null:Aje(n)}function lae(n){return n==null?null:Jr(n)}function aae(n){return n==null?null:Jr(n)}function un(n){return F6(n==null||Nb(n)),n}function R(n){return F6(n==null||$b(n)),n}function Oe(n){return F6(n==null||Ai(n)),n}function ll(n){n.o==null&&cMe(n)}function rV(n){if(!n)throw M(new Q9)}function dae(n){if(!n)throw M(new uD)}function oe(n){if(!n)throw M(new nc)}function Fb(n){if(!n)throw M(new Cu)}function EAn(n){if(!n)throw M(new Bo)}function m4(){m4=F,aE=new ujn,new ojn}function Mg(){Mg=F,O2=new lt("root")}function cV(){cxn.call(this),this.Bb|=hr}function bae(n,e){this.d=n,c9n(this),this.b=e}function uV(n,e){i$.call(this,n),this.a=e}function oV(n,e){i$.call(this,n),this.a=e}function sV(n,e,t){VM.call(this,n,e,t,null)}function CAn(n,e,t){VM.call(this,n,e,t,null)}function P7(n,e){this.c=n,h4.call(this,n,e)}function $6(n,e){this.a=n,P7.call(this,n,e)}function fV(n){this.q=new y.Date(id(n))}function MAn(n){return n>8?0:n+1}function TAn(n,e){qf||nn(n.a,e)}function wae(n,e){return o7(),Q4(e.d.i,n)}function gae(n,e){return Hp(),new tUn(e,n)}function pae(n,e,t){return n.Ne(e,t)<=0?t:e}function mae(n,e,t){return n.Ne(e,t)<=0?e:t}function vae(n,e){return u(Lf(n.b,e),143)}function kae(n,e){return u(Lf(n.c,e),233)}function OL(n){return u(sn(n.a,n.b),294)}function AAn(n){return new V(n.c,n.d+n.a)}function SAn(n){return Jn(n),n?1231:1237}function PAn(n){return ko(),oTn(u(n,203))}function Bb(){Bb=F,ron=yn((go(),Gd))}function yae(n,e){e.a?MCe(n,e):EL(n.a,e.b)}function I7(n,e,t){++n.j,n.tj(),t$(n,e,t)}function IAn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function OAn(n,e,t){var i;i=n.fd(e),i.Rb(t)}function hV(n,e,t){return t=So(n,e,6,t),t}function lV(n,e,t){return t=So(n,e,3,t),t}function aV(n,e,t){return t=So(n,e,9,t),t}function ch(n,e){return X7(e,xtn),n.f=e,n}function dV(n,e){return(e&et)%n.d.length}function DAn(n,e,t){return zen(n.c,n.b,e,t)}function LAn(n,e){this.c=n,S0.call(this,e)}function NAn(n,e){this.a=n,kyn.call(this,e)}function O7(n,e){this.a=n,kyn.call(this,e)}function Dt(n,e){lt.call(this,n),this.a=e}function bV(n,e){FG.call(this,n),this.a=e}function DL(n,e){FG.call(this,n),this.a=e}function jae(n){VY.call(this,0,0),this.f=n}function $An(n,e,t){return n.a+=hh(e,0,t),n}function D7(n){return!n.a&&(n.a=new C0n),n.a}function wV(n,e){var t;return t=n.e,n.e=e,t}function gV(n,e){var t;return t=e,!!n.Fe(t)}function Eae(n,e){return _n(),n==e?0:n?1:-1}function Rb(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function L7(n){n.b?L7(n.b):n.f.c.zc(n.e,n.d)}function xAn(n){Hu(n.e),n.d.b=n.d,n.d.a=n.d}function Cae(n,e,t){Xa(),t9n(n,e.Ve(n.a,t))}function pV(n,e,t){return Pp(n,u(e,22),t)}function $s(n,e){return qE(new Array(e),n)}function Mae(n){return Ae(U1(n,32))^Ae(n)}function LL(n){return String.fromCharCode(n)}function Tae(n){return n==null?null:n.message}function Aae(n,e,t){return n.apply(e,t)}function Sae(n,e){var t;t=n[DB],t.call(n,e)}function Pae(n,e){var t;t=n[DB],t.call(n,e)}function Iae(n,e){return o7(),!Q4(e.d.i,n)}function mV(n,e,t,i){rM.call(this,n,e,t,i)}function FAn(){qC.call(this),this.a=new Li}function vV(){this.n=new Li,this.o=new Li}function BAn(){this.b=new Li,this.c=new Z}function RAn(){this.a=new Z,this.b=new Z}function KAn(){this.a=new _U,this.b=new Byn}function kV(){this.b=new Ql,this.a=new Ql}function _An(){this.b=new ni,this.a=new ni}function HAn(){this.b=new de,this.a=new de}function qAn(){this.b=new wEn,this.a=new H3n}function UAn(){this.a=new n8n,this.b=new Lpn}function GAn(){this.a=new Z,this.d=new Z}function qC(){this.n=new cp,this.i=new mp}function zAn(n){this.a=(Co(n,mw),new Gc(n))}function XAn(n){this.a=(Co(n,mw),new Gc(n))}function Oae(n){return n<100?null:new F1(n)}function Dae(n,e){return n.n.a=(Jn(e),e+10)}function Lae(n,e){return n.n.a=(Jn(e),e+10)}function Nae(n,e){return e==n||km(TA(e),n)}function VAn(n,e){return Xe(n.a,e,"")==null}function $ae(n,e){var t;return t=e.qi(n.a),t}function tt(n,e){return n.a+=e.a,n.b+=e.b,n}function mi(n,e){return n.a-=e.a,n.b-=e.b,n}function xae(n){return Pb(n.j.c,0),n.a=-1,n}function yV(n,e,t){return t=So(n,e,11,t),t}function Fae(n,e,t){t!=null&&mT(e,Fx(n,t))}function Bae(n,e,t){t!=null&&vT(e,Fx(n,t))}function jp(n,e,t,i){q.call(this,n,e,t,i)}function jV(n,e,t,i){q.call(this,n,e,t,i)}function WAn(n,e,t,i){jV.call(this,n,e,t,i)}function JAn(n,e,t,i){bM.call(this,n,e,t,i)}function NL(n,e,t,i){bM.call(this,n,e,t,i)}function EV(n,e,t,i){bM.call(this,n,e,t,i)}function QAn(n,e,t,i){NL.call(this,n,e,t,i)}function CV(n,e,t,i){NL.call(this,n,e,t,i)}function Nn(n,e,t,i){EV.call(this,n,e,t,i)}function YAn(n,e,t,i){CV.call(this,n,e,t,i)}function ZAn(n,e,t,i){jW.call(this,n,e,t,i)}function Kb(n,e){Ir.call(this,k8+n+Td+e)}function MV(n,e){return n.jk().wi().ri(n,e)}function TV(n,e){return n.jk().wi().ti(n,e)}function nSn(n,e){return Jn(n),x(n)===x(e)}function An(n,e){return Jn(n),x(n)===x(e)}function Rae(n,e){return n.b.Bd(new ECn(n,e))}function Kae(n,e){return n.b.Bd(new CCn(n,e))}function eSn(n,e){return n.b.Bd(new MCn(n,e))}function _ae(n,e){return n.e=u(n.d.Kb(e),159)}function AV(n,e,t){return n.lastIndexOf(e,t)}function Hae(n,e,t){return bt(n[e.a],n[t.a])}function qae(n,e){return U(e,(cn(),Cj),n)}function Uae(n,e){return jc(e.a.d.p,n.a.d.p)}function Gae(n,e){return jc(n.a.d.p,e.a.d.p)}function zae(n,e){return bt(n.c-n.s,e.c-e.s)}function Xae(n,e){return bt(n.b.e.a,e.b.e.a)}function Vae(n,e){return bt(n.c.e.a,e.c.e.a)}function tSn(n){return n.c?qr(n.c.a,n,0):-1}function Ep(n){return n==Ud||n==tl||n==qc}function SV(n,e){this.c=n,oN.call(this,n,e)}function iSn(n,e,t){this.a=n,JX.call(this,e,t)}function rSn(n){this.c=n,IC.call(this,Ey,0)}function cSn(n,e,t){this.c=e,this.b=t,this.a=n}function N7(n){k4(),this.d=n,this.a=new Eg}function uSn(n){uh(),this.a=(Dn(),new r4(n))}function Wae(n,e){hl(n.f)?QCe(n,e):Sye(n,e)}function oSn(n,e){sbe.call(this,n,n.length,e)}function Jae(n,e){qf||e&&(n.d=e)}function sSn(n,e){return O(e,15)&&xqn(n.c,e)}function Qae(n,e,t){return u(n.c,71).Wk(e,t)}function UC(n,e,t){return u(n.c,71).Xk(e,t)}function Yae(n,e,t){return oae(n,u(e,343),t)}function PV(n,e,t){return sae(n,u(e,343),t)}function Zae(n,e,t){return PKn(n,u(e,343),t)}function fSn(n,e,t){return _ye(n,u(e,343),t)}function x6(n,e){return e==null?null:tw(n.b,e)}function IV(n){return $b(n)?(Jn(n),n):n.ue()}function GC(n){return!isNaN(n)&&!isFinite(n)}function $L(n){jTn(this),vo(this),Bi(this,n)}function _u(n){pL(this),zV(this.c,0,n.Pc())}function _o(n,e,t){this.a=n,this.b=e,this.c=t}function hSn(n,e,t){this.a=n,this.b=e,this.c=t}function lSn(n,e,t){this.d=n,this.b=t,this.a=e}function aSn(n){this.a=n,fl(),vc(Date.now())}function dSn(n){bo(n.a),GJ(n.c,n.b),n.b=null}function xL(){xL=F,Oun=new $0n,AQn=new x0n}function bSn(){bSn=F,Ioe=K(ki,Fn,1,0,5,1)}function wSn(){wSn=F,Voe=K(ki,Fn,1,0,5,1)}function OV(){OV=F,Woe=K(ki,Fn,1,0,5,1)}function uh(){uh=F,new KG((Dn(),Dn(),sr))}function nde(n){return B4(),Ee((yNn(),IQn),n)}function ede(n){return Gu(),Ee((lNn(),xQn),n)}function tde(n){return YT(),Ee((JDn(),HQn),n)}function ide(n){return cT(),Ee((QDn(),qQn),n)}function rde(n){return NA(),Ee((Jxn(),UQn),n)}function cde(n){return bf(),Ee((fNn(),XQn),n)}function ude(n){return Uu(),Ee((sNn(),WQn),n)}function ode(n){return bu(),Ee((hNn(),QQn),n)}function sde(n){return VA(),Ee((zMn(),kYn),n)}function fde(n){return N0(),Ee((ENn(),jYn),n)}function hde(n){return Vp(),Ee((MNn(),CYn),n)}function lde(n){return A5(),Ee((CNn(),AYn),n)}function ade(n){return YE(),Ee((jDn(),SYn),n)}function dde(n){return uT(),Ee((YDn(),GYn),n)}function bde(n){return i5(),Ee((aNn(),pZn),n)}function wde(n){return Vi(),Ee((u$n(),yZn),n)}function gde(n){return nm(),Ee((ANn(),TZn),n)}function pde(n){return dd(),Ee((TNn(),DZn),n)}function DV(n,e){if(!n)throw M(new Gn(e))}function v4(n){if(!n)throw M(new Or(btn))}function FL(n,e){if(n!=e)throw M(new Bo)}function gSn(n,e,t){this.a=n,this.b=e,this.c=t}function LV(n,e,t){this.a=n,this.b=e,this.c=t}function pSn(n,e,t){this.a=n,this.b=e,this.c=t}function zC(n,e,t){this.b=n,this.a=e,this.c=t}function NV(n,e,t){this.b=n,this.c=e,this.a=t}function $V(n,e,t){this.a=n,this.b=e,this.c=t}function XC(n,e,t){this.e=e,this.b=n,this.d=t}function mSn(n,e,t){this.b=n,this.a=e,this.c=t}function mde(n,e,t){return Xa(),n.a.Yd(e,t),e}function BL(n){var e;return e=new ubn,e.e=n,e}function xV(n){var e;return e=new qyn,e.b=n,e}function $7(){$7=F,CP=new sgn,MP=new fgn}function VC(){VC=F,XZn=new xgn,zZn=new Fgn}function xs(){xs=F,YZn=new G2n,ZZn=new z2n}function vde(n){return D0(),Ee((qLn(),fne),n)}function kde(n){return tr(),Ee((XMn(),HZn),n)}function yde(n){return OT(),Ee((PNn(),GZn),n)}function jde(n){return $f(),Ee((SNn(),tne),n)}function Ede(n){return ow(),Ee((o$n(),rne),n)}function Cde(n){return DA(),Ee(($xn(),hne),n)}function Mde(n){return Yp(),Ee((D$n(),lne),n)}function Tde(n){return QM(),Ee((cLn(),ane),n)}function Ade(n){return u5(),Ee((_Ln(),dne),n)}function Sde(n){return bT(),Ee((HLn(),bne),n)}function Pde(n){return o1(),Ee((s$n(),wne),n)}function Ide(n){return pk(),Ee((eLn(),gne),n)}function Ode(n){return jm(),Ee(($$n(),jne),n)}function Dde(n){return pr(),Ee((aFn(),Ene),n)}function Lde(n){return Z4(),Ee((GLn(),Cne),n)}function Nde(n){return vl(),Ee((zLn(),Tne),n)}function $de(n){return KM(),Ee((nLn(),Ane),n)}function xde(n){return Jk(),Ee((N$n(),yne),n)}function Fde(n){return hd(),Ee((ULn(),mne),n)}function Bde(n){return vA(),Ee((L$n(),vne),n)}function Rde(n){return hk(),Ee((tLn(),kne),n)}function Kde(n){return Yo(),Ee((h$n(),Sne),n)}function _de(n){return a1(),Ee((Xxn(),Yte),n)}function Hde(n){return g5(),Ee((XLn(),Zte),n)}function qde(n){return cw(),Ee((INn(),nie),n)}function Ude(n){return T5(),Ee((f$n(),eie),n)}function Gde(n){return gs(),Ee((dFn(),tie),n)}function zde(n){return lh(),Ee((ONn(),iie),n)}function Xde(n){return wk(),Ee((iLn(),rie),n)}function Vde(n){return gr(),Ee((JLn(),uie),n)}function Wde(n){return ST(),Ee((VLn(),oie),n)}function Jde(n){return d5(),Ee((WLn(),sie),n)}function Qde(n){return om(),Ee((QLn(),fie),n)}function Yde(n){return dT(),Ee((YLn(),hie),n)}function Zde(n){return DT(),Ee((ZLn(),lie),n)}function n0e(n){return O0(),Ee((oNn(),Aie),n)}function e0e(n){return n5(),Ee((rLn(),Die),n)}function t0e(n){return sh(),Ee((sLn(),Rie),n)}function i0e(n){return Sf(),Ee((fLn(),_ie),n)}function r0e(n){return lf(),Ee((hLn(),tre),n)}function c0e(n){return M0(),Ee((lLn(),fre),n)}function u0e(n){return Qp(),Ee((BNn(),hre),n)}function o0e(n){return q5(),Ee((VMn(),lre),n)}function s0e(n){return b5(),Ee((nNn(),are),n)}function f0e(n){return w5(),Ee((FNn(),$re),n)}function h0e(n){return FM(),Ee((uLn(),xre),n)}function l0e(n){return yT(),Ee((oLn(),_re),n)}function a0e(n){return wA(),Ee((l$n(),qre),n)}function d0e(n){return Ok(),Ee((eNn(),Gre),n)}function b0e(n){return ZM(),Ee((aLn(),Ure),n)}function w0e(n){return sA(),Ee((xNn(),lce),n)}function g0e(n){return AT(),Ee((tNn(),ace),n)}function p0e(n){return XT(),Ee((iNn(),dce),n)}function m0e(n){return rA(),Ee((rNn(),wce),n)}function v0e(n){return _T(),Ee((cNn(),mce),n)}function k0e(n){return GM(),Ee((dLn(),Rce),n)}function y0e(n){return V4(),Ee((ZDn(),_Zn),n)}function j0e(n){return Vn(),Ee((x$n(),xZn),n)}function E0e(n){return nT(),Ee((uNn(),Kce),n)}function C0e(n){return N$(),Ee((bLn(),_ce),n)}function M0e(n){return R5(),Ee((a$n(),qce),n)}function T0e(n){return eC(),Ee((IDn(),Gce),n)}function A0e(n){return Fk(),Ee((bNn(),Uce),n)}function S0e(n){return tC(),Ee((ODn(),Xce),n)}function P0e(n){return ck(),Ee((wLn(),Vce),n)}function I0e(n){return Yk(),Ee((d$n(),Wce),n)}function O0e(n){return f6(),Ee((DDn(),lue),n)}function D0e(n){return Ak(),Ee((gLn(),aue),n)}function L0e(n){return gf(),Ee((w$n(),mue),n)}function N0e(n){return l1(),Ee((Lxn(),kue),n)}function $0e(n){return Rh(),Ee((F$n(),yue),n)}function x0e(n){return wd(),Ee((B$n(),Aue),n)}function F0e(n){return ci(),Ee((b$n(),zue),n)}function B0e(n){return Nf(),Ee((wNn(),Xue),n)}function R0e(n){return El(),Ee((RNn(),Vue),n)}function K0e(n){return pA(),Ee((R$n(),Wue),n)}function _0e(n){return jl(),Ee((dNn(),Que),n)}function H0e(n){return To(),Ee((KNn(),Zue),n)}function q0e(n){return lw(),Ee((Wxn(),noe),n)}function U0e(n){return Fg(),Ee((g$n(),eoe),n)}function G0e(n){return Oi(),Ee((K$n(),toe),n)}function z0e(n){return zu(),Ee((_$n(),ioe),n)}function X0e(n){return tn(),Ee((p$n(),roe),n)}function V0e(n){return go(),Ee((_Nn(),foe),n)}function W0e(n){return io(),Ee((Vxn(),hoe),n)}function J0e(n){return Gp(),Ee((gNn(),loe),n)}function Q0e(n,e){return Jn(n),n+(Jn(e),e)}function Y0e(n){return RL(),Ee((pLn(),aoe),n)}function Z0e(n){return qT(),Ee((HNn(),doe),n)}function nbe(n){return LT(),Ee((qNn(),goe),n)}function k4(){k4=F,tln=(tn(),Wn),II=Zn}function RL(){RL=F,vdn=new VSn,kdn=new LPn}function ebe(n){return!n.e&&(n.e=new Z),n.e}function KL(n,e){this.c=n,this.a=e,this.b=e-n}function vSn(n,e,t){this.a=n,this.b=e,this.c=t}function _L(n,e,t){this.a=n,this.b=e,this.c=t}function FV(n,e,t){this.a=n,this.b=e,this.c=t}function BV(n,e,t){this.a=n,this.b=e,this.c=t}function kSn(n,e,t){this.a=n,this.b=e,this.c=t}function ySn(n,e,t){this.a=n,this.b=e,this.c=t}function Xl(n,e,t){this.e=n,this.a=e,this.c=t}function jSn(n,e,t){Ko(),tJ.call(this,n,e,t)}function HL(n,e,t){Ko(),RW.call(this,n,e,t)}function RV(n,e,t){Ko(),RW.call(this,n,e,t)}function KV(n,e,t){Ko(),RW.call(this,n,e,t)}function ESn(n,e,t){Ko(),HL.call(this,n,e,t)}function _V(n,e,t){Ko(),HL.call(this,n,e,t)}function CSn(n,e,t){Ko(),_V.call(this,n,e,t)}function MSn(n,e,t){Ko(),RV.call(this,n,e,t)}function TSn(n,e,t){Ko(),KV.call(this,n,e,t)}function qL(n){rM.call(this,n.d,n.c,n.a,n.b)}function HV(n){rM.call(this,n.d,n.c,n.a,n.b)}function qV(n){this.d=n,c9n(this),this.b=nwe(n.d)}function tbe(n){return Cm(),Ee((Nxn(),Poe),n)}function x7(n,e){return Se(n),Se(e),new NEn(n,e)}function Cp(n,e){return Se(n),Se(e),new RSn(n,e)}function ibe(n,e){return Se(n),Se(e),new KSn(n,e)}function rbe(n,e){return Se(n),Se(e),new qEn(n,e)}function UL(n){return oe(n.b!=0),Xo(n,n.a.a)}function cbe(n){return oe(n.b!=0),Xo(n,n.c.b)}function ube(n){return!n.c&&(n.c=new W3),n.c}function y4(n){var e;return e=new Z,b$(e,n),e}function obe(n){var e;return e=new ni,b$(e,n),e}function ASn(n){var e;return e=new GG,A$(e,n),e}function F7(n){var e;return e=new Ct,A$(e,n),e}function u(n,e){return F6(n==null||Tx(n,e)),n}function sbe(n,e,t){TPn.call(this,e,t),this.a=n}function SSn(n,e){this.c=n,this.b=e,this.a=!1}function PSn(){this.a=";,;",this.b="",this.c=""}function ISn(n,e,t){this.b=n,_Mn.call(this,e,t)}function UV(n,e,t){this.c=n,oC.call(this,e,t)}function GV(n,e,t){d4.call(this,n,e),this.b=t}function zV(n,e,t){Bnn(t,0,n,e,t.length,!1)}function Lh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function XV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function fbe(n,e){e&&(n.b=e,n.a=(z1(e),e.a))}function B7(n,e){if(!n)throw M(new Gn(e))}function Mp(n,e){if(!n)throw M(new Or(e))}function VV(n,e){if(!n)throw M(new Bjn(e))}function hbe(n,e){return ZE(),jc(n.d.p,e.d.p)}function lbe(n,e){return kl(),bt(n.e.b,e.e.b)}function abe(n,e){return kl(),bt(n.e.a,e.e.a)}function dbe(n,e){return jc(GSn(n.d),GSn(e.d))}function WC(n,e){return e&&vM(n,e.d)?e:null}function bbe(n,e){return e==(tn(),Wn)?n.c:n.d}function WV(n){return Q1(dwe(Vr(n)?ds(n):n))}function wbe(n){return new V(n.c+n.b,n.d+n.a)}function OSn(n){return n!=null&&!lx(n,N9,$9)}function gbe(n,e){return(fBn(n)<<4|fBn(e))&ui}function DSn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function JV(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function QV(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function pbe(n,e){var t;return t=n.c,PQ(n,e),t}function YV(n,e){return e<0?n.g=-1:n.g=e,n}function JC(n,e){return Mme(n),n.a*=e,n.b*=e,n}function LSn(n,e,t){A$n.call(this,e,t),this.d=n}function R7(n,e,t){pX.call(this,n,e),this.c=t}function QC(n,e,t){pX.call(this,n,e),this.c=t}function ZV(n){OV(),ME.call(this),this.ci(n)}function NSn(){$4(),Bwe.call(this,(R1(),Ss))}function $Sn(n){return nt(),new Nh(0,n)}function xSn(){xSn=F,AU=(Dn(),new nD(IK))}function YC(){YC=F,new hZ((bD(),HK),(dD(),_K))}function FSn(){FSn=F,pun=K(Gi,J,17,256,0,1)}function BSn(){this.b=$(R(rn((qs(),y_))))}function GL(n){this.b=n,this.a=Wa(this.b.a).Od()}function RSn(n,e){this.b=n,this.a=e,GO.call(this)}function KSn(n,e){this.a=n,this.b=e,GO.call(this)}function _Sn(n,e,t){this.a=n,gg.call(this,e,t)}function HSn(n,e,t){this.a=n,gg.call(this,e,t)}function j4(n,e,t){var i;i=new qb(t),df(n,e,i)}function nW(n,e,t){var i;return i=n[e],n[e]=t,i}function ZC(n){var e;return e=n.slice(),o$(e,n)}function nM(n){var e;return e=n.n,n.a.b+e.d+e.a}function qSn(n){var e;return e=n.n,n.e.b+e.d+e.a}function eW(n){var e;return e=n.n,n.e.a+e.b+e.c}function tW(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function xe(n,e){return xt(n,e,n.c.b,n.c),!0}function mbe(n){return n.a?n.a:vN(n)}function vbe(n){return Lp(),Kh(n)==At(ia(n))}function kbe(n){return Lp(),ia(n)==At(Kh(n))}function d0(n,e){return O5(n,new d4(e.a,e.b))}function ybe(n,e){return yM(),Nx(n,e),new lIn(n,e)}function jbe(n,e){return n.c=e)throw M(new YG)}function _b(n,e){return $k(n,(Jn(e),new a9n(e)))}function Ap(n,e){return $k(n,(Jn(e),new d9n(e)))}function SPn(n,e,t){return VLe(n,u(e,12),u(t,12))}function PPn(n){return Ou(),u(n,12).g.c.length!=0}function IPn(n){return Ou(),u(n,12).e.c.length!=0}function uwe(n,e){return Hp(),bt(e.a.o.a,n.a.o.a)}function owe(n,e){e.Bb&kc&&!n.a.o&&(n.a.o=e)}function swe(n,e){e.Ug("General 'Rotator",1),jDe(n)}function fwe(n,e,t){e.qf(t,$(R(ee(n.b,t)))*n.a)}function OPn(n,e,t){return Xg(),W4(n,e)&&W4(n,t)}function _6(n){return zu(),!n.Hc(Fl)&&!n.Hc(Pa)}function hwe(n){return n.e?qJ(n.e):null}function H6(n){return Vr(n)?""+n:$qn(n)}function yW(n){var e;for(e=n;e.f;)e=e.f;return e}function lwe(n,e,t){return $t(e,0,oW(e[0],t[0])),e}function Vl(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function q(n,e,t,i){ti.call(this,n,e,t),this.b=i}function Ci(n,e,t,i,r){c$.call(this,n,e,t,i,r,-1)}function q6(n,e,t,i,r){ok.call(this,n,e,t,i,r,-1)}function bM(n,e,t,i){R7.call(this,n,e,t),this.b=i}function DPn(n){PMn.call(this,n,!1),this.a=!1}function LPn(){sMn.call(this,"LOOKAHEAD_LAYOUT",1)}function NPn(n){this.b=n,kp.call(this,n),RTn(this)}function $Pn(n){this.b=n,A7.call(this,n),KTn(this)}function Hb(n,e,t){this.a=n,jp.call(this,e,t,5,6)}function jW(n,e,t,i){this.b=n,ti.call(this,e,t,i)}function xPn(n,e){this.b=n,H8n.call(this,n.b),this.a=e}function FPn(n){this.a=kRn(n.a),this.b=new _u(n.b)}function EW(n,e){m0(),Hhe.call(this,n,FT(new Ku(e)))}function wM(n,e){return nt(),new BW(n,e,0)}function rN(n,e){return nt(),new BW(6,n,e)}function _i(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function Zc(n,e){return Ai(e)?AN(n,e):!!wr(n.f,e)}function cN(n,e){return e.Vh()?na(n.b,u(e,54)):e}function awe(n,e){return An(n.substr(0,e.length),e)}function $h(n){return new te(new UX(n.a.length,n.a))}function gM(n){return new V(n.c+n.b/2,n.d+n.a/2)}function dwe(n){return Yc(~n.l&ro,~n.m&ro,~n.h&Il)}function uN(n){return typeof n===vy||typeof n===eB}function Hu(n){n.f=new iTn(n),n.i=new rTn(n),++n.g}function BPn(n){if(!n)throw M(new nc);return n.d}function Sp(n){var e;return e=a5(n),oe(e!=null),e}function bwe(n){var e;return e=I5e(n),oe(e!=null),e}function C4(n,e){var t;return t=n.a.gc(),BJ(e,t),t-e}function fi(n,e){var t;return t=n.a.zc(e,n),t==null}function _7(n,e){return n.a.zc(e,(_n(),wa))==null}function CW(n){return new Tn(null,vwe(n,n.length))}function MW(n,e,t){return cGn(n,u(e,42),u(t,176))}function Pp(n,e,t){return Ks(n.a,e),nW(n.b,e.g,t)}function wwe(n,e,t){E4(t,n.a.c.length),Go(n.a,t,e)}function B(n,e,t,i){xFn(e,t,n.length),gwe(n,e,t,i)}function gwe(n,e,t,i){var r;for(r=e;r0?y.Math.log(n/e):-100}function KPn(n,e){return Ec(n,e)<0?-1:Ec(n,e)>0?1:0}function H7(n,e){OTn(n,O(e,160)?e:u(e,2036).Rl())}function PW(n,e){if(n==null)throw M(new sp(e))}function vwe(n,e){return yme(e,n.length),new XSn(n,e)}function IW(n,e){return e?Bi(n,e):!1}function kwe(){return RE(),S(T(uQn,1),G,549,0,[GK])}function G6(n){return n.e==0?n:new Qa(-n.e,n.d,n.a)}function ywe(n,e){return bt(n.c.c+n.c.b,e.c.c+e.c.b)}function q7(n,e){xt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function _Pn(n,e){return n.c?_Pn(n.c,e):nn(n.b,e),n}function jwe(n,e,t){var i;return i=Jb(n,e),qN(n,e,t),i}function HPn(n,e,t){var i;for(i=0;i=n.g}function $t(n,e,t){return dae(t==null||oPe(n,t)),n[e]=t}function $W(n,e){return zn(e,n.length+1),n.substr(e)}function gN(n,e){for(Jn(e);n.c=n?new Dz:Gme(n-1)}function Hi(n){return!n.a&&n.c?n.c.b:n.a}function KW(n){return O(n,616)?n:new oOn(n)}function z1(n){n.c?z1(n.c):(ea(n),n.d=!0)}function V6(n){n.c?n.c.$e():(n.d=!0,fTe(n))}function sIn(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function fIn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function _we(n,e){var t;t=n.Ih(e),t>=0?n.ki(t):Pnn(n,e)}function hIn(n,e){n.c<0||n.b.b0;)n=n<<1|(n<0?1:0);return n}function mIn(n,e){var t;return t=new Lc(n),Bn(e.c,t),t}function vIn(n,e){n.u.Hc((zu(),Fl))&&zEe(n,e),h4e(n,e)}function mc(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function Cr(n,e){return JL(n.a,e)?n.b[u(e,22).g]:null}function nge(){return YE(),S(T(oon,1),G,489,0,[b_])}function ege(){return eC(),S(T($1n,1),G,490,0,[Bq])}function tge(){return tC(),S(T(zce,1),G,558,0,[Rq])}function ige(){return f6(),S(T(tan,1),G,539,0,[Hj])}function jM(n){return!n.n&&(n.n=new q(Ar,n,1,7)),n.n}function mN(n){return!n.c&&(n.c=new q(Qu,n,9,9)),n.c}function UW(n){return!n.c&&(n.c=new Nn(he,n,5,8)),n.c}function rge(n){return!n.b&&(n.b=new Nn(he,n,4,7)),n.b}function U7(n){return n.j.c.length=0,zW(n.c),xae(n.a),n}function P4(n){return n.e==rv&&jfe(n,Y8e(n.g,n.b)),n.e}function G7(n){return n.f==rv&&Cfe(n,q7e(n.g,n.b)),n.f}function Ve(n,e,t,i){return Hxn(n,e,t,!1),BT(n,i),n}function kIn(n,e){this.b=n,oN.call(this,n,e),RTn(this)}function yIn(n,e){this.b=n,SV.call(this,n,e),KTn(this)}function W6(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function GW(n,e){this.b=n,this.c=e,this.a=new dp(this.b)}function Xi(n,e){return zn(e,n.length),n.charCodeAt(e)}function cge(n,e){DY(n,$(yl(e,"x")),$(yl(e,"y")))}function uge(n,e){DY(n,$(yl(e,"x")),$(yl(e,"y")))}function ut(n,e){return ea(n),new Tn(n,new tQ(e,n.a))}function _r(n,e){return ea(n),new Tn(n,new _J(e,n.a))}function Ub(n,e){return ea(n),new uV(n,new ILn(e,n.a))}function EM(n,e){return ea(n),new oV(n,new OLn(e,n.a))}function oge(n,e){return new GIn(u(Se(n),50),u(Se(e),50))}function sge(n,e){return bt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function jIn(n,e,t){t.a?tu(n,e.b-n.f/2):eu(n,e.a-n.g/2)}function fge(n,e){return bt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function hge(n,e){return $z(),bt((Jn(n),n),(Jn(e),e))}function lge(n){return n!=null&&r7(jO,n.toLowerCase())}function zW(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Tg(n){var e;return e=n.b,!e&&(n.b=e=new N8n(n)),e}function vN(n){var e;return e=Wme(n),e||null}function EIn(n,e){var t,i;return t=n/e,i=wi(t),t>i&&++i,i}function age(n,e,t){var i;i=u(n.d.Kb(t),159),i&&i.Nb(e)}function dge(n,e,t){wIe(n.a,t),zve(t),xCe(n.b,t),$Ie(e,t)}function CM(n,e,t,i){this.a=n,this.c=e,this.b=t,this.d=i}function XW(n,e,t,i){this.c=n,this.b=e,this.a=t,this.d=i}function CIn(n,e,t,i){this.c=n,this.b=e,this.d=t,this.a=i}function Ho(n,e,t,i){this.c=n,this.d=e,this.b=t,this.a=i}function MIn(n,e,t,i){this.a=n,this.d=e,this.c=t,this.b=i}function kN(n,e,t,i){this.a=n,this.e=e,this.d=t,this.c=i}function TIn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function yN(n,e,t){this.a=ktn,this.d=n,this.b=e,this.c=t}function Op(n,e,t,i){je.call(this,n,e),this.a=t,this.b=i}function AIn(n,e){this.d=(Jn(n),n),this.a=16449,this.c=e}function SIn(n){this.a=new Z,this.e=K(ye,J,53,n,0,2)}function bge(n){n.Ug("No crossing minimization",1),n.Vg()}function PIn(){ec.call(this,"There is no more element.")}function IIn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function OIn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function Za(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function DIn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function LIn(n,e,t,i){Ko(),DLn.call(this,e,t,i),this.a=n}function NIn(n,e,t,i){Ko(),DLn.call(this,e,t,i),this.a=n}function jN(n,e,t){var i,r;return i=utn(n),r=e.ti(t,i),r}function al(n){var e,t;return t=(e=new Jd,e),K4(t,n),t}function EN(n){var e,t;return t=(e=new Jd,e),fnn(t,n),t}function wge(n,e){var t;return t=ee(n.f,e),HQ(e,t),null}function $In(n){return!n.b&&(n.b=new q(Vt,n,12,3)),n.b}function xIn(n){return F6(n==null||uN(n)&&n.Tm!==J2),n}function MM(n){return n.n&&(n.e!==Fzn&&n.je(),n.j=null),n}function I4(n){if(eo(n.d),n.d.d!=n.c)throw M(new Bo)}function VW(n){return oe(n.b0&&bKn(this)}function FIn(n,e){this.a=n,bae.call(this,n,u(n.d,15).fd(e))}function gge(n,e){return bt(Su(n)*ao(n),Su(e)*ao(e))}function pge(n,e){return bt(Su(n)*ao(n),Su(e)*ao(e))}function mge(n){return _0(n)&&on(un(z(n,(cn(),Nd))))}function vge(n,e){return Pn(n,u(v(e,(cn(),Cv)),17),e)}function kge(n,e){return u(v(n,(W(),T3)),15).Fc(e),e}function WW(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function BIn(n,e,t,i){this.b=n,this.c=i,IC.call(this,e,t)}function yge(n,e,t){n.i=0,n.e=0,e!=t&&yFn(n,e,t)}function jge(n,e,t){n.i=0,n.e=0,e!=t&&jFn(n,e,t)}function Ege(n,e,t){return s6(),J5e(u(ee(n.e,e),529),t)}function Dp(n){var e;return e=n.f,e||(n.f=new h4(n,n.c))}function RIn(n,e){return xg(n.j,e.s,e.c)+xg(e.e,n.s,n.c)}function KIn(n,e){n.e&&!n.e.a&&(Ayn(n.e,e),KIn(n.e,e))}function _In(n,e){n.d&&!n.d.a&&(Ayn(n.d,e),_In(n.d,e))}function Cge(n,e){return-bt(Su(n)*ao(n),Su(e)*ao(e))}function Mge(n){return u(n.ld(),149).Pg()+":"+Jr(n.md())}function HIn(){tF(this,new oG),this.wb=(G1(),Hn),o4()}function qIn(n){this.b=new Z,hi(this.b,this.b),this.a=n}function JW(n,e){new Ct,this.a=new Mu,this.b=n,this.c=e}function j0(){j0=F,Pun=new FU,ZK=new FU,Iun=new D0n}function Dn(){Dn=F,sr=new A0n,Wh=new P0n,hP=new I0n}function QW(){QW=F,RQn=new nbn,_Qn=new aW,KQn=new ebn}function Lp(){Lp=F,mP=new Z,m_=new de,p_=new Z}function TM(n,e){if(n==null)throw M(new sp(e));return n}function AM(n){return!n.a&&(n.a=new q(Qe,n,10,11)),n.a}function ft(n){return!n.q&&(n.q=new q(As,n,11,10)),n.q}function _(n){return!n.s&&(n.s=new q(ku,n,21,17)),n.s}function Tge(n){return Se(n),IRn(new te(re(n.a.Kc(),new En)))}function Age(n,e){return wo(n),wo(e),Fjn(u(n,22),u(e,22))}function nd(n,e,t){var i,r;i=IV(t),r=new AE(i),df(n,e,r)}function MN(n,e,t,i,r,c){ok.call(this,n,e,t,i,r,c?-2:-1)}function UIn(n,e,t,i){pX.call(this,e,t),this.b=n,this.a=i}function GIn(n,e){Vfe.call(this,new iN(n)),this.a=n,this.b=e}function YW(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Sge(n){xs();var e;e=u(n.g,10),e.n.a=n.d.c+e.d.b}function O4(){O4=F;var n,e;e=!$8e(),n=new V3,VK=e?new og:n}function TN(n){return Dn(),O(n,59)?new jD(n):new BC(n)}function SM(n){return O(n,16)?new B6(u(n,16)):obe(n.Kc())}function Pge(n){return new HTn(n,n.e.Rd().gc()*n.c.Rd().gc())}function Ige(n){return new qTn(n,n.e.Rd().gc()*n.c.Rd().gc())}function ZW(n){return n&&n.hashCode?n.hashCode():l0(n)}function AN(n,e){return e==null?!!wr(n.f,null):zbe(n.i,e)}function Oge(n,e){var t;return t=$X(n.a,e),t&&(e.d=null),t}function zIn(n,e,t){return n.f?n.f.ef(e,t):!1}function z7(n,e,t,i){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i)}function SN(n,e,t,i){$t(n.c[e.g],e.g,t),$t(n.b[e.g],e.g,i)}function Dge(n,e,t){return $(R(t.a))<=n&&$(R(t.b))>=e}function XIn(n,e){this.g=n,this.d=S(T(Qh,1),b1,10,0,[e])}function VIn(n){this.c=n,this.b=new Ul(u(Se(new tbn),50))}function WIn(n){this.c=n,this.b=new Ul(u(Se(new ewn),50))}function JIn(n){this.b=n,this.a=new Ul(u(Se(new Nbn),50))}function QIn(){this.b=new ni,this.d=new Ct,this.e=new ZG}function nJ(){this.c=new Li,this.d=new Li,this.e=new Li}function E0(){this.a=new Mu,this.b=(Co(3,mw),new Gc(3))}function Wl(n,e){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e}function PM(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function YIn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function ZIn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function X1(n,e,t,i,r,c,s){return new GN(n.e,e,t,i,r,c,s)}function Lge(n,e,t){return t>=0&&An(n.substr(t,e.length),e)}function nOn(n,e){return O(e,149)&&An(n.b,u(e,149).Pg())}function Nge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}function eOn(n,e){var t;return t=n.b.Qc(e),WDn(t,n.b.gc()),t}function X7(n,e){if(n==null)throw M(new sp(e));return n}function Hr(n){return n.u||(Zu(n),n.u=new NAn(n,n)),n.u}function PN(n){this.a=(Dn(),O(n,59)?new jD(n):new BC(n))}function au(n){var e;return e=u(Un(n,16),29),e||n.ii()}function IM(n,e){var t;return t=za(n.Rm),e==null?t:t+": "+e}function qo(n,e,t){return Fi(e,t,n.length),n.substr(e,t-e)}function tOn(n,e){qC.call(this),lQ(this),this.a=n,this.c=e}function $ge(n){n&&IM(n,n.ie())}function xge(n){HE(),y.setTimeout(function(){throw n},0)}function Fge(){return YT(),S(T(Bun,1),G,436,0,[o_,Fun])}function Bge(){return cT(),S(T(Kun,1),G,435,0,[Run,s_])}function Rge(){return uT(),S(T(bon,1),G,432,0,[v_,vP])}function Kge(){return V4(),S(T(KZn,1),G,517,0,[dj,L_])}function _ge(){return KM(),S(T(Qsn,1),G,429,0,[fH,Jsn])}function Hge(){return pk(),S(T($sn,1),G,428,0,[WP,Nsn])}function qge(){return QM(),S(T(Asn,1),G,431,0,[Tsn,V_])}function Uge(){return wk(),S(T(qhn,1),G,430,0,[UH,GH])}function Gge(){return n5(),S(T(Oie,1),G,531,0,[r9,i9])}function zge(){return yT(),S(T(Rln,1),G,501,0,[RI,D2])}function Xge(){return sh(),S(T(Bie,1),G,523,0,[mb,y1])}function Vge(){return Sf(),S(T(Kie,1),G,522,0,[Rd,zf])}function Wge(){return lf(),S(T(ere,1),G,528,0,[zw,ja])}function Jge(){return hk(),S(T(Bsn,1),G,488,0,[Fsn,QP])}function Qge(){return GM(),S(T(S1n,1),G,491,0,[$q,A1n])}function Yge(){return N$(),S(T(N1n,1),G,492,0,[D1n,L1n])}function Zge(){return FM(),S(T(Bln,1),G,433,0,[dq,Fln])}function n2e(){return ZM(),S(T(_ln,1),G,434,0,[Kln,vq])}function e2e(){return M0(),S(T(sre,1),G,465,0,[Ea,P2])}function t2e(){return ck(),S(T(x1n,1),G,438,0,[Kq,JI])}function i2e(){return Ak(),S(T(ran,1),G,437,0,[YI,ian])}function r2e(){return RL(),S(T(dO,1),G,347,0,[vdn,kdn])}function OM(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function V7(n){return n.b.b==0?n.a.sf():UL(n.b)}function c2e(n){if(n.p!=5)throw M(new Cu);return Ae(n.f)}function u2e(n){if(n.p!=5)throw M(new Cu);return Ae(n.k)}function eJ(n){return x(n.a)===x((D$(),CU))&&rOe(n),n.a}function o2e(n,e){n.b=e,n.c>0&&n.b>0&&(n.g=cM(n.c,n.b,n.a))}function s2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=cM(n.c,n.b,n.a))}function iOn(n,e){ufe(this,new V(n.a,n.b)),ofe(this,F7(e))}function C0(){Wfe.call(this,new ap(Qb(12))),KX(!0),this.a=2}function IN(n,e,t){nt(),Wd.call(this,n),this.b=e,this.a=t}function tJ(n,e,t){Ko(),LE.call(this,e),this.a=n,this.b=t}function rOn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function f2e(n){return n.b==0?null:(oe(n.b!=0),Xo(n,n.a.a))}function Nc(n,e){return e==null?Kr(wr(n.f,null)):d6(n.i,e)}function cOn(n,e,t,i,r){return new rF(n,(B4(),i_),e,t,i,r)}function DM(n,e){return zDn(e),Lme(n,K(ye,Ke,28,e,15,1),e)}function LM(n,e){return TM(n,"set1"),TM(e,"set2"),new VEn(n,e)}function h2e(n,e){var t=XK[n.charCodeAt(0)];return t??n}function uOn(n,e){var t,i;return t=e,i=new DO,LGn(n,t,i),i.d}function ON(n,e,t,i){var r;r=new FAn,e.a[t.g]=r,Pp(n.b,i,r)}function l2e(n,e){var t;return t=Ime(n.f,e),tt(HC(t),n.f.d)}function W7(n){var e;_me(n.a),dTn(n.a),e=new IE(n.a),HY(e)}function a2e(n,e){_qn(n,!0),nu(n.e.Rf(),new NV(n,!0,e))}function d2e(n,e){return Lp(),n==At(Kh(e))||n==At(ia(e))}function b2e(n,e){return kl(),u(v(e,(lc(),Sh)),17).a==n}function wi(n){return Math.max(Math.min(n,et),-2147483648)|0}function oOn(n){this.a=u(Se(n),277),this.b=(Dn(),new XX(n))}function sOn(n,e,t){this.i=new Z,this.b=n,this.g=e,this.a=t}function iJ(n,e,t){this.a=new Z,this.e=n,this.f=e,this.c=t}function NM(n,e,t){this.c=new Z,this.e=n,this.f=e,this.b=t}function fOn(n){qC.call(this),lQ(this),this.a=n,this.c=!0}function w2e(n){function e(){}return e.prototype=n||{},new e}function g2e(n){if(n.Ae())return null;var e=n.n;return rP[e]}function J7(n){return n.Db>>16!=3?null:u(n.Cb,27)}function Af(n){return n.Db>>16!=9?null:u(n.Cb,27)}function hOn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function M0(){M0=F,Ea=new cX(s3,0),P2=new cX(f3,1)}function sh(){sh=F,mb=new tX(f3,0),y1=new tX(s3,1)}function Sf(){Sf=F,Rd=new iX(_B,0),zf=new iX("UP",1)}function lOn(){lOn=F,oQn=Ce((RE(),S(T(uQn,1),G,549,0,[GK])))}function aOn(n){var e;return e=new zE(Qb(n.length)),eY(e,n),e}function dOn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function p2e(n,e){return Zxn(n,e)?(W$n(n),!0):!1}function dl(n,e){if(e==null)throw M(new ip);return F8e(n,e)}function Q7(n,e){var t;t=n.q.getHours(),n.q.setDate(e),G5(n,t)}function rJ(n,e,t){var i;i=n.Ih(e),i>=0?n.bi(i,t):ten(n,e,t)}function bOn(n,e){var t;return t=n.Ih(e),t>=0?n.Wh(t):hF(n,e)}function wOn(n,e){var t;for(Se(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function DN(n,e,t){var i;i=vFn(n,e,t),n.b=new ET(i.c.length)}function Ag(n,e,t){$M(),n&&Xe(yU,n,e),n&&Xe(hE,n,t)}function m2e(n,e){return VC(),_n(),u(e.a,17).a0}function cJ(n){var e;return e=n.d,e=n.bj(n.f),ve(n,e),e.Ob()}function gOn(n,e){var t;return t=new fW(e),_Kn(t,n),new _u(t)}function y2e(n){if(n.p!=0)throw M(new Cu);return M6(n.f,0)}function j2e(n){if(n.p!=0)throw M(new Cu);return M6(n.k,0)}function pOn(n){return n.Db>>16!=7?null:u(n.Cb,241)}function D4(n){return n.Db>>16!=6?null:u(n.Cb,241)}function mOn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function At(n){return n.Db>>16!=11?null:u(n.Cb,27)}function Gb(n){return n.Db>>16!=17?null:u(n.Cb,29)}function vOn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function uJ(n){var e;return ea(n),e=new ni,ut(n,new M9n(e))}function kOn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function E2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),G5(n,t)}function yOn(n,e){xC(this),this.f=e,this.g=n,MM(this),this.je()}function jOn(n,e){this.a=n,this.c=Ki(this.a),this.b=new PM(e)}function EOn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new _u(t))}function COn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new _u(t))}function MOn(n){this.a=n,this.b=K(Sie,J,2043,n.e.length,0,2)}function TOn(){this.a=new ih,this.e=new ni,this.g=0,this.i=0}function $M(){$M=F,yU=new de,hE=new de,ple(MQn,new wvn)}function AOn(){AOn=F,aie=Pu(new ii,(Vi(),zr),(tr(),bj))}function oJ(){oJ=F,die=Pu(new ii,(Vi(),zr),(tr(),bj))}function SOn(){SOn=F,wie=Pu(new ii,(Vi(),zr),(tr(),bj))}function POn(){POn=F,Lie=Re(new ii,(Vi(),zr),(tr(),x8))}function ko(){ko=F,xie=Re(new ii,(Vi(),zr),(tr(),x8))}function IOn(){IOn=F,Fie=Re(new ii,(Vi(),zr),(tr(),x8))}function NN(){NN=F,Hie=Re(new ii,(Vi(),zr),(tr(),x8))}function J6(n,e,t,i,r,c){return new ml(n.e,e,n.Lj(),t,i,r,c)}function Dr(n,e,t){return e==null?Vc(n.f,null,t):$0(n.i,e,t)}function Zi(n,e){n.c&&du(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function $i(n,e){n.c&&du(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function ic(n,e){n.i&&du(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Ii(n,e){n.d&&du(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function $N(n,e){n.a&&du(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function xN(n,e){n.b&&du(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function OOn(n,e){$we(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68).b}function C2e(n,e){return bt(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}function M2e(n,e){return bt(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}function T2e(n){return Y$(),_n(),u(n.a,86).d.e!=0}function xM(n,e){O(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,e)}function FN(n,e){O(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,e)}function A2e(n,e){LY(n,e),O(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2)}function S2e(n,e){var t,i;t=e.c,i=t!=null,i&&Ip(n,new qb(e.c))}function DOn(n){var e,t;return t=(o4(),e=new Jd,e),K4(t,n),t}function LOn(n){var e,t;return t=(o4(),e=new Jd,e),K4(t,n),t}function NOn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function P2e(n,e,t){return nn(n.a,(yM(),Nx(e,t),new i0(e,t))),n}function $c(n,e){return dr(),a$(e)?new eM(e,n):new j7(e,n)}function Y7(n){return dh(),Ec(n,0)>=0?ta(n):G6(ta(n1(n)))}function I2e(n){var e;return e=u(ZC(n.b),9),new _o(n.a,e,n.c)}function $On(n,e){var t;return t=u(tw(Dp(n.a),e),16),t?t.gc():0}function xOn(n,e,t){var i;oBn(e,t,n.c.length),i=t-e,Pz(n.c,e,i)}function Jl(n,e,t){oBn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Np(n){this.c=new Ct,this.b=n.b,this.d=n.c,this.a=n.a}function BN(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function ed(n,e,t,i){this.c=n,this.d=i,$N(this,e),xN(this,t)}function sJ(n,e){Xfe.call(this,new ap(Qb(n))),Co(e,Ozn),this.a=e}function FOn(n,e,t){return new rF(n,(B4(),t_),null,!1,e,t)}function BOn(n,e,t){return new rF(n,(B4(),r_),e,t,null,!1)}function O2e(){return Gu(),S(T(xr,1),G,108,0,[xun,Yr,Aw])}function D2e(){return bu(),S(T(JQn,1),G,472,0,[vf,pa,zs])}function L2e(){return Uu(),S(T(VQn,1),G,471,0,[Mh,ga,Gs])}function N2e(){return bf(),S(T(Sw,1),G,237,0,[bc,Wc,wc])}function $2e(){return i5(),S(T(Pon,1),G,391,0,[E_,j_,C_])}function x2e(){return D0(),S(T(R_,1),G,372,0,[ub,ma,cb])}function F2e(){return u5(),S(T(Psn,1),G,322,0,[B8,pj,Ssn])}function B2e(){return bT(),S(T(Osn,1),G,351,0,[Isn,VP,W_])}function R2e(){return hd(),S(T(pne,1),G,460,0,[Y_,mv,p2])}function K2e(){return Z4(),S(T(sH,1),G,299,0,[uH,oH,mj])}function _2e(){return vl(),S(T(Mne,1),G,311,0,[vj,v2,E3])}function H2e(){return g5(),S(T(Lhn,1),G,390,0,[FH,Dhn,MI])}function q2e(){return gr(),S(T(cie,1),G,463,0,[n9,Vu,Jc])}function U2e(){return ST(),S(T(zhn,1),G,387,0,[Uhn,zH,Ghn])}function G2e(){return d5(),S(T(Xhn,1),G,349,0,[VH,XH,Ij])}function z2e(){return om(),S(T(Whn,1),G,350,0,[WH,Vhn,e9])}function X2e(){return dT(),S(T(Yhn,1),G,352,0,[Qhn,JH,Jhn])}function V2e(){return DT(),S(T(Zhn,1),G,388,0,[QH,Ov,Gw])}function W2e(){return O0(),S(T(Tie,1),G,464,0,[Oj,t9,PI])}function Pf(n){return cc(S(T(Ei,1),J,8,0,[n.i.n,n.n,n.a]))}function J2e(){return b5(),S(T(gln,1),G,392,0,[wln,nq,Lj])}function ROn(){ROn=F,Fre=Pu(new ii,(Qp(),u9),(q5(),uln))}function FM(){FM=F,dq=new uX("DFS",0),Fln=new uX("BFS",1)}function KOn(n,e,t){var i;i=new E3n,i.b=e,i.a=t,++e.b,nn(n.d,i)}function Q2e(n,e,t){var i;i=new rr(t.d),tt(i,n),DY(e,i.a,i.b)}function Y2e(n,e){LTn(n,Ae(vi(w0(e,24),YA)),Ae(vi(e,YA)))}function zb(n,e){if(n<0||n>e)throw M(new Ir(Ptn+n+Itn+e))}function Ln(n,e){if(n<0||n>=e)throw M(new Ir(Ptn+n+Itn+e))}function zn(n,e){if(n<0||n>=e)throw M(new gz(Ptn+n+Itn+e))}function In(n,e){this.b=(Jn(n),n),this.a=e&vw?e:e|64|wh}function fJ(n){var e;return ea(n),e=(j0(),j0(),ZK),fT(n,e)}function Z2e(n,e,t){var i;return i=V5(n,e,!1),i.b<=e&&i.a<=t}function npe(){return nT(),S(T(O1n,1),G,439,0,[xq,I1n,P1n])}function epe(){return _T(),S(T(a1n,1),G,394,0,[l1n,Oq,h1n])}function tpe(){return XT(),S(T(f1n,1),G,445,0,[Bj,qI,Mq])}function ipe(){return rA(),S(T(bce,1),G,456,0,[Tq,Sq,Aq])}function rpe(){return Ok(),S(T(Uln,1),G,393,0,[KI,Hln,qln])}function cpe(){return AT(),S(T(s1n,1),G,300,0,[Cq,o1n,u1n])}function upe(){return jl(),S(T(ldn,1),G,346,0,[uO,M1,M9])}function ope(){return Fk(),S(T(Fq,1),G,444,0,[XI,VI,WI])}function spe(){return Nf(),S(T(Zan,1),G,278,0,[Bv,Jw,Rv])}function fpe(){return Gp(),S(T(mdn,1),G,280,0,[pdn,Yw,aO])}function T0(n){return Se(n),O(n,16)?new _u(u(n,16)):y4(n.Kc())}function hJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return Q1(ewe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hf(n,e){return Q1(twe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function RN(n,e){return Q1(iwe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hpe(n,e){var t;return t=(Jn(n),n).g,rV(!!t),Jn(e),t(e)}function _On(n,e){var t,i;return i=C4(n,e),t=n.a.fd(i),new zEn(n,t)}function lpe(n){return n.Db>>16!=6?null:u(dF(n),241)}function ape(n){if(n.p!=2)throw M(new Cu);return Ae(n.f)&ui}function dpe(n){if(n.p!=2)throw M(new Cu);return Ae(n.k)&ui}function E(n){return oe(n.ai?1:0}function GOn(n,e){var t,i;return t=s$(e),i=t,u(ee(n.c,i),17).a}function KN(n,e,t){var i;i=n.d[e.p],n.d[e.p]=n.d[t.p],n.d[t.p]=i}function Cpe(n,e,t){var i;n.n&&e&&t&&(i=new uvn,nn(n.e,i))}function _N(n,e){if(fi(n.a,e),e.d)throw M(new ec(nXn));e.d=n}function dJ(n,e){this.a=new Z,this.d=new Z,this.f=n,this.c=e}function zOn(){this.c=new PTn,this.a=new $Ln,this.b=new Xyn,lCn()}function XOn(){qp(),this.b=new de,this.a=new de,this.c=new Z}function VOn(n,e,t){this.d=n,this.j=e,this.e=t,this.o=-1,this.p=3}function WOn(n,e,t){this.d=n,this.k=e,this.f=t,this.o=-1,this.p=5}function JOn(n,e,t,i,r,c){dQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function QOn(n,e,t,i,r,c){bQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function YOn(n,e,t,i,r,c){OJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function ZOn(n,e,t,i,r,c){pQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function nDn(n,e,t,i,r,c){DJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function eDn(n,e,t,i,r,c){wQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function tDn(n,e,t,i,r,c){gQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function iDn(n,e,t,i,r,c){LJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function rDn(n,e,t,i){LE.call(this,t),this.b=n,this.c=e,this.d=i}function cDn(n,e){this.f=n,this.a=($4(),MO),this.c=MO,this.b=e}function uDn(n,e){this.g=n,this.d=($4(),TO),this.a=TO,this.b=e}function bJ(n,e){!n.c&&(n.c=new Rt(n,0)),HA(n.c,(at(),F9),e)}function Mpe(n,e){return oMe(n,e,O(e,102)&&(u(e,19).Bb&hr)!=0)}function Tpe(n,e){return KPn(vc(n.q.getTime()),vc(e.q.getTime()))}function oDn(n){return XL(n.e.Rd().gc()*n.c.Rd().gc(),16,new O8n(n))}function Ape(n){return!!n.u&&Sc(n.u.a).i!=0&&!(n.n&&Ix(n.n))}function Spe(n){return!!n.a&&no(n.a.a).i!=0&&!(n.b&&Ox(n.b))}function wJ(n,e){return e==0?!!n.o&&n.o.f!=0:Cx(n,e)}function Ppe(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Hc(t)}function sDn(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Mc(t)}function fDn(n,e){var t;return t=1-e,n.a[t]=jT(n.a[t],t),jT(n,e)}function hDn(n,e){var t,i;return i=vi(n,mr),t=Fs(e,32),hf(t,i)}function lDn(n,e,t){var i;i=(Se(n),new _u(n)),O7e(new EOn(i,e,t))}function Z7(n,e,t){var i;i=(Se(n),new _u(n)),D7e(new COn(i,e,t))}function fc(n,e,t,i,r,c){return Hxn(n,e,t,c),CY(n,i),MY(n,r),n}function aDn(n,e,t,i){return n.a+=""+qo(e==null?gu:Jr(e),t,i),n}function xi(n,e){this.a=n,Xv.call(this,n),zb(e,n.gc()),this.b=e}function dDn(n){this.a=K(ki,Fn,1,QQ(y.Math.max(8,n))<<1,5,1)}function nk(n){return u(xf(n,K(Qh,b1,10,n.c.length,0,1)),199)}function fh(n){return u(xf(n,K(O_,rR,18,n.c.length,0,1)),483)}function bDn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function Q6(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function wDn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function Ipe(n,e,t){n.a=e,n.c=t,n.b.a.$b(),vo(n.d),Pb(n.e.a.c,0)}function gDn(n,e){var t;n.e=new uz,t=aw(e),Yt(t,n.c),Iqn(n,t,0)}function ri(n,e,t,i){var r;r=new nG,r.a=e,r.b=t,r.c=i,xe(n.a,r)}function Q(n,e,t,i){var r;r=new nG,r.a=e,r.b=t,r.c=i,xe(n.b,r)}function pDn(n,e,t){if(n<0||et)throw M(new Ir(qje(n,e,t)))}function ek(n,e){if(n<0||n>=e)throw M(new Ir(kEe(n,e)));return n}function Ope(n){if(!("stack"in n))try{throw n}catch{}return n}function Sg(n){return s6(),O(n.g,10)?u(n.g,10):null}function Dpe(n){return Tg(n).dc()?!1:(e1e(n,new Pr),!0)}function id(n){var e;return Vr(n)?(e=n,e==-0?0:e):X4e(n)}function mDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function vDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function kDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function gJ(n){var e;return z1(n),e=new L0n,hg(n.a,new j9n(e)),e}function pJ(){var n,e,t;return e=(t=(n=new Jd,n),t),nn(n0n,e),e}function BM(n){var e;return z1(n),e=new N0n,hg(n.a,new E9n(e)),e}function Lpe(n,e){return n.a<=n.b?(e.Dd(n.a++),!0):!1}function yDn(n){P$.call(this,n,(B4(),e_),null,!1,null,!1)}function jDn(){jDn=F,SYn=Ce((YE(),S(T(oon,1),G,489,0,[b_])))}function EDn(){EDn=F,eln=wIn(Y(1),Y(4)),nln=wIn(Y(1),Y(2))}function Npe(n,e){return new _L(e,N6(Ki(e.e),n,n),(_n(),!0))}function RM(n){return new Gc((Co(n,cB),oT(nr(nr(5,n),n/10|0))))}function $pe(n){return XL(n.e.Rd().gc()*n.c.Rd().gc(),273,new I8n(n))}function CDn(n){return u(xf(n,K(FZn,DXn,12,n.c.length,0,1)),2042)}function xpe(n){return ko(),!fr(n)&&!(!fr(n)&&n.c.i.c==n.d.i.c)}function Fpe(n,e){return _p(),u(v(e,(lc(),I2)),17).a>=n.gc()}function Y6(n,e){vLe(e,n),JV(n.d),JV(u(v(n,(cn(),mI)),214))}function HN(n,e){kLe(e,n),QV(n.d),QV(u(v(n,(cn(),mI)),214))}function Bpe(n,e,t){n.d&&du(n.d.e,n),n.d=e,n.d&&b0(n.d.e,t,n)}function Rpe(n,e,t){return t.f.c.length>0?MW(n.a,e,t):MW(n.b,e,t)}function Kpe(n,e,t){var i;i=i9e();try{return Aae(n,e,t)}finally{D3e(i)}}function A0(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.pe()),i}function Z6(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.se()),i}function L4(n,e){var t,i;return t=Jb(n,e),i=null,t&&(i=t.se()),i}function bl(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=gnn(t)),i}function _pe(n,e,t){var i;return i=wm(t),FA(n.g,i,e),FA(n.i,e,t),e}function mJ(n,e,t){this.d=new $7n(this),this.e=n,this.i=e,this.f=t}function MDn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function TDn(n,e,t,i){ETn(this),this.c=n,this.e=e,this.f=t,this.b=i}function vJ(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function ADn(n,e,t,i){return O(t,59)?new iAn(n,e,t,i):new vW(n,e,t,i)}function N4(n){return O(n,16)?u(n,16).dc():!n.Kc().Ob()}function SDn(n){if(n.e.g!=n.b)throw M(new Bo);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function kJ(n,e){Jn(e),$t(n.a,n.c,e),n.c=n.c+1&n.a.length-1,JRn(n)}function V1(n,e){Jn(e),n.b=n.b-1&n.a.length-1,$t(n.a,n.b,e),JRn(n)}function PDn(n){var e;e=n.Gh(),this.a=O(e,71)?u(e,71).Ii():e.Kc()}function Hpe(n){return new In(Ame(u(n.a.md(),16).gc(),n.a.ld()),16)}function IDn(){IDn=F,Gce=Ce((eC(),S(T($1n,1),G,490,0,[Bq])))}function ODn(){ODn=F,Xce=Ce((tC(),S(T(zce,1),G,558,0,[Rq])))}function DDn(){DDn=F,lue=Ce((f6(),S(T(tan,1),G,539,0,[Hj])))}function qpe(){return dd(),S(T(Lon,1),G,389,0,[Ow,Don,P_,I_])}function Upe(){return B4(),S(T(lP,1),G,304,0,[e_,t_,i_,r_])}function Gpe(){return Vp(),S(T(EYn,1),G,332,0,[uj,cj,oj,sj])}function zpe(){return A5(),S(T(TYn,1),G,406,0,[fj,wP,gP,hj])}function Xpe(){return N0(),S(T(yYn,1),G,417,0,[rj,ij,a_,d_])}function Vpe(){return nm(),S(T(MZn,1),G,416,0,[rb,Iw,Pw,a2])}function Wpe(){return $f(),S(T(ene,1),G,421,0,[j3,lv,av,B_])}function Jpe(){return OT(),S(T(UZn,1),G,371,0,[F_,HP,qP,wj])}function Qpe(){return cw(),S(T(RH,1),G,203,0,[TI,BH,S2,A2])}function Ype(){return lh(),S(T(Hhn,1),G,284,0,[k1,_hn,HH,qH])}function Zpe(n){var e;return n.j==(tn(),ae)&&(e=mHn(n),Au(e,Zn))}function n3e(n,e){var t;t=e.a,Zi(t,e.c.d),Ii(t,e.d.d),nw(t.a,n.n)}function yJ(n,e){var t;return t=u(Lf(n.b,e),67),!t&&(t=new Ct),t}function xp(n){return s6(),O(n.g,154)?u(n.g,154):null}function e3e(n){n.a=null,n.e=null,Pb(n.b.c,0),Pb(n.f.c,0),n.c=null}function KM(){KM=F,fH=new Zz(qm,0),Jsn=new Zz("TOP_LEFT",1)}function n5(){n5=F,r9=new eX("UPPER",0),i9=new eX("LOWER",1)}function t3e(n,e){return vp(new V(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function LDn(n,e){return u(ho(_b(u(ot(n.k,e),15).Oc(),b2)),113)}function NDn(n,e){return u(ho(Ap(u(ot(n.k,e),15).Oc(),b2)),113)}function i3e(){return Qp(),S(T(rln,1),G,405,0,[LI,c9,u9,o9])}function r3e(){return w5(),S(T(xln,1),G,353,0,[aq,BI,lq,hq])}function c3e(){return sA(),S(T(c1n,1),G,354,0,[Eq,i1n,r1n,t1n])}function u3e(){return go(),S(T(I9,1),G,386,0,[rE,Gd,iE,Qw])}function o3e(){return To(),S(T(Yue,1),G,291,0,[nE,nl,Ta,Zj])}function s3e(){return El(),S(T(aU,1),G,223,0,[lU,Yj,Kv,F3])}function f3e(){return qT(),S(T(Cdn,1),G,320,0,[wU,ydn,Edn,jdn])}function h3e(){return LT(),S(T(woe,1),G,415,0,[gU,Tdn,Mdn,Adn])}function l3e(n){return $M(),Zc(yU,n)?u(ee(yU,n),341).Qg():null}function Uo(n,e,t){return e<0?hF(n,t):u(t,69).wk().Bk(n,n.hi(),e)}function a3e(n,e,t){var i;return i=wm(t),FA(n.j,i,e),Xe(n.k,e,t),e}function d3e(n,e,t){var i;return i=wm(t),FA(n.d,i,e),Xe(n.e,e,t),e}function $Dn(n){var e,t;return e=(B1(),t=new HO,t),n&&AA(e,n),e}function jJ(n){var e;return e=n.aj(n.i),n.i>0&&Ic(n.g,0,e,0,n.i),e}function xDn(n,e){var t;for(t=n.j.c.length;t>24}function w3e(n){if(n.p!=1)throw M(new Cu);return Ae(n.k)<<24>>24}function g3e(n){if(n.p!=7)throw M(new Cu);return Ae(n.k)<<16>>16}function p3e(n){if(n.p!=7)throw M(new Cu);return Ae(n.f)<<16>>16}function Pg(n,e){return e.e==0||n.e==0?O8:(Am(),vF(n,e))}function RDn(n,e){return x(e)===x(n)?"(this Map)":e==null?gu:Jr(e)}function m3e(n,e,t){return tN(R(Kr(wr(n.f,e))),R(Kr(wr(n.f,t))))}function v3e(n,e,t){var i;i=u(ee(n.g,t),60),nn(n.a.c,new bi(e,i))}function KDn(n,e,t){n.i=0,n.e=0,e!=t&&(jFn(n,e,t),yFn(n,e,t))}function k3e(n,e,t,i,r){var c;c=yMe(r,t,i),nn(e,dEe(r,c)),rje(n,r,e)}function EJ(n,e,t,i,r){this.i=n,this.a=e,this.e=t,this.j=i,this.f=r}function _Dn(n,e){nJ.call(this),this.a=n,this.b=e,nn(this.a.b,this)}function HDn(n){this.b=new de,this.c=new de,this.d=new de,this.a=n}function qDn(n,e){var t;return t=new lp,n.Gd(t),t.a+="..",e.Hd(t),t.a}function UDn(n,e){var t;for(t=e;t;)a0(n,t.i,t.j),t=At(t);return n}function GDn(n,e,t){var i;return i=wm(t),Xe(n.b,i,e),Xe(n.c,e,t),e}function wl(n){var e;for(e=0;n.Ob();)n.Pb(),e=nr(e,1);return oT(e)}function Fh(n,e){dr();var t;return t=u(n,69).vk(),kje(t,e),t.xl(e)}function y3e(n,e,t){if(t){var i=t.oe();n.a[e]=i(t)}else delete n.a[e]}function CJ(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+fa),G5(n,t)}function j3e(n,e){return u(e==null?Kr(wr(n.f,null)):d6(n.i,e),288)}function MJ(n,e){return n==(Vn(),zt)&&e==zt?4:n==zt||e==zt?8:32}function _M(n,e,t){return RA(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function E3e(n,e,t){return Om(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function C3e(n,e,t){return bMe(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function TJ(n){n.b!=n.c&&(n.a=K(ki,Fn,1,8,5,1),n.b=0,n.c=0)}function e5(n){return oe(n.a=0&&n.a[t]===e[t];t--);return t<0}function HM(n){var e;return n?new fW(n):(e=new ih,A$(e,n),e)}function O3e(n,e){var t,i;i=!1;do t=lFn(n,e),i=i|t;while(t);return i}function D3e(n){n&&rme((az(),sun)),--cP,n&&uP!=-1&&(Ele(uP),uP=-1)}function qM(n){nnn(),LTn(this,Ae(vi(w0(n,24),YA)),Ae(vi(n,YA)))}function JDn(){JDn=F,HQn=Ce((YT(),S(T(Bun,1),G,436,0,[o_,Fun])))}function QDn(){QDn=F,qQn=Ce((cT(),S(T(Kun,1),G,435,0,[Run,s_])))}function YDn(){YDn=F,GYn=Ce((uT(),S(T(bon,1),G,432,0,[v_,vP])))}function ZDn(){ZDn=F,_Zn=Ce((V4(),S(T(KZn,1),G,517,0,[dj,L_])))}function nLn(){nLn=F,Ane=Ce((KM(),S(T(Qsn,1),G,429,0,[fH,Jsn])))}function eLn(){eLn=F,gne=Ce((pk(),S(T($sn,1),G,428,0,[WP,Nsn])))}function tLn(){tLn=F,kne=Ce((hk(),S(T(Bsn,1),G,488,0,[Fsn,QP])))}function iLn(){iLn=F,rie=Ce((wk(),S(T(qhn,1),G,430,0,[UH,GH])))}function rLn(){rLn=F,Die=Ce((n5(),S(T(Oie,1),G,531,0,[r9,i9])))}function cLn(){cLn=F,ane=Ce((QM(),S(T(Asn,1),G,431,0,[Tsn,V_])))}function uLn(){uLn=F,xre=Ce((FM(),S(T(Bln,1),G,433,0,[dq,Fln])))}function oLn(){oLn=F,_re=Ce((yT(),S(T(Rln,1),G,501,0,[RI,D2])))}function sLn(){sLn=F,Rie=Ce((sh(),S(T(Bie,1),G,523,0,[mb,y1])))}function fLn(){fLn=F,_ie=Ce((Sf(),S(T(Kie,1),G,522,0,[Rd,zf])))}function hLn(){hLn=F,tre=Ce((lf(),S(T(ere,1),G,528,0,[zw,ja])))}function lLn(){lLn=F,fre=Ce((M0(),S(T(sre,1),G,465,0,[Ea,P2])))}function aLn(){aLn=F,Ure=Ce((ZM(),S(T(_ln,1),G,434,0,[Kln,vq])))}function dLn(){dLn=F,Rce=Ce((GM(),S(T(S1n,1),G,491,0,[$q,A1n])))}function bLn(){bLn=F,_ce=Ce((N$(),S(T(N1n,1),G,492,0,[D1n,L1n])))}function wLn(){wLn=F,Vce=Ce((ck(),S(T(x1n,1),G,438,0,[Kq,JI])))}function gLn(){gLn=F,aue=Ce((Ak(),S(T(ran,1),G,437,0,[YI,ian])))}function pLn(){pLn=F,aoe=Ce((RL(),S(T(dO,1),G,347,0,[vdn,kdn])))}function L3e(){return ci(),S(T(E9,1),G,88,0,[Wf,Xr,Br,Vf,us])}function N3e(){return tn(),S(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])}function $3e(n,e,t){return u(e==null?Vc(n.f,null,t):$0(n.i,e,t),288)}function x3e(n){return(n.k==(Vn(),zt)||n.k==Zt)&&kt(n,(W(),H8))}function XN(n){return n.c&&n.d?aJ(n.c)+"->"+aJ(n.d):"e_"+l0(n)}function qi(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function F3e(n,e){var t;t=new op,nd(t,"x",e.a),nd(t,"y",e.b),Ip(n,t)}function B3e(n,e){var t;t=new op,nd(t,"x",e.a),nd(t,"y",e.b),Ip(n,t)}function mLn(n,e){var t;for(t=e;t;)a0(n,-t.i,-t.j),t=At(t);return n}function SJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Go(n,e,t){var i;return i=(Ln(e,n.c.length),n.c[e]),n.c[e]=t,i}function PJ(n,e,t){n.a.c.length=0,fOe(n,e,t),n.a.c.length==0||xSe(n,e)}function tk(n){n.i=0,s7(n.b,null),s7(n.c,null),n.a=null,n.e=null,++n.g}function UM(){UM=F,qf=!0,DQn=!1,LQn=!1,$Qn=!1,NQn=!1}function VN(n){UM(),!qf&&(this.c=n,this.e=!0,this.a=new Z)}function vLn(n,e){this.c=0,this.b=e,HMn.call(this,n,17493),this.a=this.c}function kLn(n){jzn(),Syn(this),this.a=new Ct,sY(this,n),xe(this.a,n)}function yLn(){pL(this),this.b=new V(St,St),this.a=new V(li,li)}function GM(){GM=F,$q=new fX(cin,0),A1n=new fX("TARGET_WIDTH",1)}function Ig(n,e){return(ea(n),s4(new Tn(n,new tQ(e,n.a)))).Bd(v3)}function R3e(){return Vi(),S(T(Ion,1),G,367,0,[Xs,Jh,Oc,Kc,zr])}function K3e(){return ow(),S(T(ine,1),G,375,0,[gj,zP,XP,GP,UP])}function _3e(){return o1(),S(T(Lsn,1),G,348,0,[J_,Dsn,Q_,pv,gv])}function H3e(){return T5(),S(T($hn,1),G,323,0,[Nhn,KH,_H,Y8,Z8])}function q3e(){return Yo(),S(T(hfn,1),G,171,0,[Ej,U8,ka,G8,xw])}function U3e(){return wA(),S(T(Hre,1),G,368,0,[pq,bq,mq,wq,gq])}function G3e(){return R5(),S(T(Hce,1),G,373,0,[L2,D3,g9,w9,_j])}function z3e(){return Yk(),S(T(K1n,1),G,324,0,[F1n,_q,R1n,Hq,B1n])}function X3e(){return gf(),S(T(Zh,1),G,170,0,[xn,pi,Ph,Kd,E1])}function V3e(){return Fg(),S(T(A9,1),G,256,0,[Aa,eE,adn,T9,ddn])}function W3e(n){return HE(),function(){return Kpe(n,this,arguments)}}function fr(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function IJ(n,e){return O(e,143)?An(n.c,u(e,143).c):!1}function Zu(n){return n.t||(n.t=new myn(n),k5(new Njn(n),0,n.t)),n.t}function jLn(n){this.b=n,ne.call(this,n),this.a=u(Un(this.b.a,4),129)}function ELn(n){this.b=n,yp.call(this,n),this.a=u(Un(this.b.a,4),129)}function Bs(n,e,t,i,r){LLn.call(this,e,i,r),this.c=n,this.b=t}function OJ(n,e,t,i,r){VOn.call(this,e,i,r),this.c=n,this.a=t}function DJ(n,e,t,i,r){WOn.call(this,e,i,r),this.c=n,this.a=t}function LJ(n,e,t,i,r){LLn.call(this,e,i,r),this.c=n,this.a=t}function WN(n,e){var t;return t=u(Lf(n.d,e),23),t||u(Lf(n.e,e),23)}function CLn(n,e){var t,i;return t=e.ld(),i=n.Fe(t),!!i&&mc(i.e,e.md())}function MLn(n,e){var t;return t=e.ld(),new i0(t,n.e.pc(t,u(e.md(),16)))}function J3e(n,e){var t;return t=n.a.get(e),t??K(ki,Fn,1,0,5,1)}function TLn(n){var e;return e=n.length,An(Yn.substr(Yn.length-e,e),n)}function fe(n){if(pe(n))return n.c=n.a,n.a.Pb();throw M(new nc)}function NJ(n,e){return e==0||n.e==0?n:e>0?wqn(n,e):RBn(n,-e)}function Fp(n,e){return e==0||n.e==0?n:e>0?RBn(n,e):wqn(n,-e)}function $J(n){ole.call(this,n==null?gu:Jr(n),O(n,82)?u(n,82):null)}function ALn(n){var e;return n.c||(e=n.r,O(e,90)&&(n.c=u(e,29))),n.c}function JN(n){var e;return e=new E0,Ur(e,n),U(e,(cn(),Fr),null),e}function SLn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Vn(),Zt)&&t.k==Zt}function QN(n){var e,t,i;return e=n&ro,t=n>>22&ro,i=n<0?Il:0,Yc(e,t,i)}function Q3e(n){var e,t,i,r;for(t=n,i=0,r=t.length;i=0?n.Lh(i,t,!0):H0(n,e,t)}function Z3e(n,e,t){return bt(vp(pm(n),Ki(e.b)),vp(pm(n),Ki(t.b)))}function n4e(n,e,t){return bt(vp(pm(n),Ki(e.e)),vp(pm(n),Ki(t.e)))}function e4e(n,e){return y.Math.min(W1(e.a,n.d.d.c),W1(e.b,n.d.d.c))}function ik(n,e){n._i(n.i+1),O6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function t5(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function PLn(n,e,t){var i;i=new NX(n.a),f5(i,n.a.a),Vc(i.f,e,t),n.a.a=i}function xJ(n,e,t,i){var r;for(r=0;re)throw M(new Ir(Mnn(n,e,"index")));return n}function Yl(n,e){var t;return t=(Ln(e,n.c.length),n.c[e]),Pz(n.c,e,1),t}function RJ(n,e){var t,i;return t=(Jn(n),n),i=(Jn(e),e),t==i?0:te.p?-1:0}function FLn(n){var e;return n.a||(e=n.r,O(e,156)&&(n.a=u(e,156))),n.a}function o4e(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].gd(t),136),i.md()}function s4e(n){var e,t;return e=n.ld(),t=u(n.md(),16),x7(t.Nc(),new L8n(e))}function BLn(n,e){return Zc(n.a,e)?(Bp(n.a,e),!0):!1}function Rp(n,e,t){return ek(e,n.e.Rd().gc()),ek(t,n.c.Rd().gc()),n.a[e][t]}function XM(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function VM(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function rk(){this.b=new Ct,this.a=new Ct,this.b=new Ct,this.a=new Ct}function $4(){$4=F;var n,e;MO=(o4(),e=new xE,e),TO=(n=new fD,n)}function f4e(n){var e;return ea(n),e=new ISn(n,n.a.e,n.a.d|4),new uV(n,e)}function RLn(n){var e;for(z1(n),e=0;n.a.Bd(new W0n);)e=nr(e,1);return e}function WM(n,e){return Jn(e),n.c=0,"Initial capacity must not be negative")}function JM(){JM=F,p9=new lt("org.eclipse.elk.labels.labelManager")}function KLn(){KLn=F,ysn=new Dt("separateLayerConnections",(OT(),F_))}function lf(){lf=F,zw=new rX("REGULAR",0),ja=new rX("CRITICAL",1)}function ck(){ck=F,Kq=new lX("FIXED",0),JI=new lX("CENTER_NODE",1)}function QM(){QM=F,Tsn=new Jz("QUADRATIC",0),V_=new Jz("SCANLINE",1)}function _Ln(){_Ln=F,dne=Ce((u5(),S(T(Psn,1),G,322,0,[B8,pj,Ssn])))}function HLn(){HLn=F,bne=Ce((bT(),S(T(Osn,1),G,351,0,[Isn,VP,W_])))}function qLn(){qLn=F,fne=Ce((D0(),S(T(R_,1),G,372,0,[ub,ma,cb])))}function ULn(){ULn=F,mne=Ce((hd(),S(T(pne,1),G,460,0,[Y_,mv,p2])))}function GLn(){GLn=F,Cne=Ce((Z4(),S(T(sH,1),G,299,0,[uH,oH,mj])))}function zLn(){zLn=F,Tne=Ce((vl(),S(T(Mne,1),G,311,0,[vj,v2,E3])))}function XLn(){XLn=F,Zte=Ce((g5(),S(T(Lhn,1),G,390,0,[FH,Dhn,MI])))}function VLn(){VLn=F,oie=Ce((ST(),S(T(zhn,1),G,387,0,[Uhn,zH,Ghn])))}function WLn(){WLn=F,sie=Ce((d5(),S(T(Xhn,1),G,349,0,[VH,XH,Ij])))}function JLn(){JLn=F,uie=Ce((gr(),S(T(cie,1),G,463,0,[n9,Vu,Jc])))}function QLn(){QLn=F,fie=Ce((om(),S(T(Whn,1),G,350,0,[WH,Vhn,e9])))}function YLn(){YLn=F,hie=Ce((dT(),S(T(Yhn,1),G,352,0,[Qhn,JH,Jhn])))}function ZLn(){ZLn=F,lie=Ce((DT(),S(T(Zhn,1),G,388,0,[QH,Ov,Gw])))}function nNn(){nNn=F,are=Ce((b5(),S(T(gln,1),G,392,0,[wln,nq,Lj])))}function eNn(){eNn=F,Gre=Ce((Ok(),S(T(Uln,1),G,393,0,[KI,Hln,qln])))}function tNn(){tNn=F,ace=Ce((AT(),S(T(s1n,1),G,300,0,[Cq,o1n,u1n])))}function iNn(){iNn=F,dce=Ce((XT(),S(T(f1n,1),G,445,0,[Bj,qI,Mq])))}function rNn(){rNn=F,wce=Ce((rA(),S(T(bce,1),G,456,0,[Tq,Sq,Aq])))}function cNn(){cNn=F,mce=Ce((_T(),S(T(a1n,1),G,394,0,[l1n,Oq,h1n])))}function uNn(){uNn=F,Kce=Ce((nT(),S(T(O1n,1),G,439,0,[xq,I1n,P1n])))}function oNn(){oNn=F,Aie=Ce((O0(),S(T(Tie,1),G,464,0,[Oj,t9,PI])))}function sNn(){sNn=F,WQn=Ce((Uu(),S(T(VQn,1),G,471,0,[Mh,ga,Gs])))}function fNn(){fNn=F,XQn=Ce((bf(),S(T(Sw,1),G,237,0,[bc,Wc,wc])))}function hNn(){hNn=F,QQn=Ce((bu(),S(T(JQn,1),G,472,0,[vf,pa,zs])))}function lNn(){lNn=F,xQn=Ce((Gu(),S(T(xr,1),G,108,0,[xun,Yr,Aw])))}function aNn(){aNn=F,pZn=Ce((i5(),S(T(Pon,1),G,391,0,[E_,j_,C_])))}function dNn(){dNn=F,Que=Ce((jl(),S(T(ldn,1),G,346,0,[uO,M1,M9])))}function bNn(){bNn=F,Uce=Ce((Fk(),S(T(Fq,1),G,444,0,[XI,VI,WI])))}function wNn(){wNn=F,Xue=Ce((Nf(),S(T(Zan,1),G,278,0,[Bv,Jw,Rv])))}function gNn(){gNn=F,loe=Ce((Gp(),S(T(mdn,1),G,280,0,[pdn,Yw,aO])))}function Df(n,e){return!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),wx(n.o,e)}function h4e(n,e){var t;n.C&&(t=u(Cr(n.b,e),127).n,t.d=n.C.d,t.a=n.C.a)}function UJ(n){var e,t,i,r;r=n.d,e=n.a,t=n.b,i=n.c,n.d=t,n.a=i,n.b=r,n.c=e}function l4e(n){return!n.g&&(n.g=new CE),!n.g.b&&(n.g.b=new byn(n)),n.g.b}function uk(n){return!n.g&&(n.g=new CE),!n.g.c&&(n.g.c=new pyn(n)),n.g.c}function a4e(n){return!n.g&&(n.g=new CE),!n.g.d&&(n.g.d=new wyn(n)),n.g.d}function d4e(n){return!n.g&&(n.g=new CE),!n.g.a&&(n.g.a=new gyn(n)),n.g.a}function b4e(n,e,t,i){return t&&(i=t.Rh(e,Ot(t.Dh(),n.c.uk()),null,i)),i}function w4e(n,e,t,i){return t&&(i=t.Th(e,Ot(t.Dh(),n.c.uk()),null,i)),i}function e$(n,e,t,i){var r;return r=K(ye,Ke,28,e+1,15,1),vPe(r,n,e,t,i),r}function K(n,e,t,i,r,c){var s;return s=_Rn(r,i),r!=10&&S(T(n,c),e,t,r,s),s}function g4e(n,e,t){var i,r;for(r=new Y4(e,n),i=0;it||e=0?n.Lh(t,!0,!0):H0(n,e,!0)}function L4e(n,e,t){var i;return i=vFn(n,e,t),n.b=new ET(i.c.length),den(n,i)}function N4e(n){if(n.b<=0)throw M(new nc);return--n.b,n.a-=n.c.c,Y(n.a)}function $4e(n){var e;if(!n.a)throw M(new PIn);return e=n.a,n.a=At(n.a),e}function x4e(n){for(;!n.a;)if(!eSn(n.c,new C9n(n)))return!1;return!0}function Kp(n){var e;return Se(n),O(n,204)?(e=u(n,204),e):new _8n(n)}function F4e(n){YM(),u(n.of((qe(),Ww)),181).Fc((zu(),tE)),n.qf(sU,null)}function YM(){YM=F,wue=new Emn,pue=new Cmn,gue=M6e((qe(),sU),wue,Ma,pue)}function ZM(){ZM=F,Kln=new sX("LEAF_NUMBER",0),vq=new sX("NODE_SIZE",1)}function u$(n){n.a=K(ye,Ke,28,n.b+1,15,1),n.c=K(ye,Ke,28,n.b,15,1),n.d=0}function B4e(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new GV(e.c,e.d,n.d)),n.b=e.d)}function nQ(n,e){if(n.g==null||e>=n.i)throw M(new aL(e,n.i));return n.g[e]}function kNn(n,e,t){if(rm(n,t),t!=null&&!n.fk(t))throw M(new uD);return t}function o$(n,e){return gk(e)!=10&&S(wo(e),e.Sm,e.__elementTypeId$,gk(e),n),n}function F4(n,e,t,i){var r;i=(j0(),i||Pun),r=n.slice(e,t),Tnn(r,n,e,t,-e,i)}function zo(n,e,t,i,r){return e<0?H0(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function R4e(n,e){return bt($(R(v(n,(W(),fb)))),$(R(v(e,fb))))}function yNn(){yNn=F,IQn=Ce((B4(),S(T(lP,1),G,304,0,[e_,t_,i_,r_])))}function B4(){B4=F,e_=new uC("All",0),t_=new lTn,i_=new kTn,r_=new hTn}function Uu(){Uu=F,Mh=new FD(s3,0),ga=new FD(qm,1),Gs=new FD(f3,2)}function jNn(){jNn=F,KA(),s0n=St,mse=li,f0n=new V9(St),vse=new V9(li)}function ENn(){ENn=F,jYn=Ce((N0(),S(T(yYn,1),G,417,0,[rj,ij,a_,d_])))}function CNn(){CNn=F,AYn=Ce((A5(),S(T(TYn,1),G,406,0,[fj,wP,gP,hj])))}function MNn(){MNn=F,CYn=Ce((Vp(),S(T(EYn,1),G,332,0,[uj,cj,oj,sj])))}function TNn(){TNn=F,DZn=Ce((dd(),S(T(Lon,1),G,389,0,[Ow,Don,P_,I_])))}function ANn(){ANn=F,TZn=Ce((nm(),S(T(MZn,1),G,416,0,[rb,Iw,Pw,a2])))}function SNn(){SNn=F,tne=Ce(($f(),S(T(ene,1),G,421,0,[j3,lv,av,B_])))}function PNn(){PNn=F,GZn=Ce((OT(),S(T(UZn,1),G,371,0,[F_,HP,qP,wj])))}function INn(){INn=F,nie=Ce((cw(),S(T(RH,1),G,203,0,[TI,BH,S2,A2])))}function ONn(){ONn=F,iie=Ce((lh(),S(T(Hhn,1),G,284,0,[k1,_hn,HH,qH])))}function hk(){hk=F,Fsn=new Yz(kh,0),QP=new Yz("IMPROVE_STRAIGHTNESS",1)}function DNn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Rp(n,i,t)}function LNn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)L(n,e);return jJ(n)}function eQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function NNn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function K4e(n){return O(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function _4e(n){return O(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function $Nn(n,e){if(e.a)throw M(new ec(nXn));fi(n.a,e),e.a=n,!n.j&&(n.j=e)}function tQ(n,e){IC.call(this,e.zd(),e.yd()&-16449),Jn(n),this.a=n,this.c=e}function H4e(n,e){return new _L(e,a0(Ki(e.e),e.f.a+n,e.f.b+n),(_n(),!1))}function q4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function U4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function xNn(){xNn=F,lce=Ce((sA(),S(T(c1n,1),G,354,0,[Eq,i1n,r1n,t1n])))}function FNn(){FNn=F,$re=Ce((w5(),S(T(xln,1),G,353,0,[aq,BI,lq,hq])))}function BNn(){BNn=F,hre=Ce((Qp(),S(T(rln,1),G,405,0,[LI,c9,u9,o9])))}function RNn(){RNn=F,Vue=Ce((El(),S(T(aU,1),G,223,0,[lU,Yj,Kv,F3])))}function KNn(){KNn=F,Zue=Ce((To(),S(T(Yue,1),G,291,0,[nE,nl,Ta,Zj])))}function _Nn(){_Nn=F,foe=Ce((go(),S(T(I9,1),G,386,0,[rE,Gd,iE,Qw])))}function HNn(){HNn=F,doe=Ce((qT(),S(T(Cdn,1),G,320,0,[wU,ydn,Edn,jdn])))}function qNn(){qNn=F,goe=Ce((LT(),S(T(woe,1),G,415,0,[gU,Tdn,Mdn,Adn])))}function nT(){nT=F,xq=new oL(mVn,0),I1n=new oL(Crn,1),P1n=new oL(kh,2)}function Wb(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new AW(n,e,i)}function UNn(n,e){var t;return t=u(Bp(n.e,e),400),t?(tW(t),t.e):null}function du(n,e){var t;return t=qr(n,e,0),t==-1?!1:(Yl(n,t),!0)}function GNn(n,e,t){var i;return z1(n),i=new LO,i.a=e,n.a.Nb(new TCn(i,t)),i.a}function G4e(n){var e;return z1(n),e=K(Pi,Tr,28,0,15,1),hg(n.a,new y9n(e)),e}function iQ(n){var e;if(!E$(n))throw M(new nc);return n.e=1,e=n.d,n.d=null,e}function n1(n){var e;return Vr(n)&&(e=0-n,!isNaN(e))?e:Q1(tm(n))}function qr(n,e,t){for(;t=0?tA(n,t,!0,!0):H0(n,e,!0)}function cQ(n){var e;return e=cd(Un(n,32)),e==null&&(iu(n),e=cd(Un(n,32))),e}function uQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function QNn(n,e){con=new kE,MYn=e,L8=n,u(L8.b,68),XJ(L8,con,null),aGn(L8)}function i5(){i5=F,E_=new RD("XY",0),j_=new RD("X",1),C_=new RD("Y",2)}function bu(){bu=F,vf=new BD("TOP",0),pa=new BD(qm,1),zs=new BD(Ftn,2)}function vl(){vl=F,vj=new GD(kh,0),v2=new GD("TOP",1),E3=new GD(Ftn,2)}function wk(){wk=F,UH=new nX("INPUT_ORDER",0),GH=new nX("PORT_DEGREE",1)}function R4(){R4=F,hun=Yc(ro,ro,524287),bQn=Yc(0,0,Ty),lun=QN(1),QN(2),aun=QN(0)}function a$(n){var e;return n.d!=n.r&&(e=ws(n),n.e=!!e&&e.lk()==bJn,n.d=e),n.e}function d$(n,e,t){var i;return i=n.g[e],O6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function rT(n,e){var t;return t=n.dd(e),t>=0?(n.gd(t),!0):!1}function b$(n,e){var t;for(Se(n),Se(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Lf(n,e){var t;return t=u(ee(n.e,e),400),t?(DTn(n,t),t.e):null}function YNn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function Jb(n,e){var t=n.a[e],i=(K$(),WK)[typeof t];return i?i(t):wY(typeof t)}function rc(n,e){var t,i;return ea(n),i=new _J(e,n.a),t=new rSn(i),new Tn(n,t)}function w$(n){var e;return e=n.b.c.length==0?null:sn(n.b,0),e!=null&&M$(n,0),e}function W4e(n,e){var t,i,r;r=e.c.i,t=u(ee(n.f,r),60),i=t.d.c-t.e.c,BQ(e.a,i,0)}function oQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t=0;)++e[0]}function J4e(n,e){eu(n,e==null||GC((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Q4e(n,e){tu(n,e==null||GC((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Y4e(n,e){I0(n,e==null||GC((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Z4e(n,e){P0(n,e==null||GC((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function nme(n,e,t){return vp(new V(t.e.a+t.f.a/2,t.e.b+t.f.b/2),n)==(Jn(e),e)}function eme(n,e){return O(e,102)&&u(e,19).Bb&hr?new dL(e,n):new Y4(e,n)}function tme(n,e){return O(e,102)&&u(e,19).Bb&hr?new dL(e,n):new Y4(e,n)}function gk(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function e$n(n,e){return e==(xL(),xL(),AQn)?n.toLocaleLowerCase():n.toLowerCase()}function t$n(n){if(!n.e)throw M(new nc);return n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function sQ(n){if(!n.c)throw M(new nc);return n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function i$n(n){var e;for(++n.a,e=n.c.a.length;n.an.a[i]&&(i=t);return i}function r$n(n){var e;return e=u(v(n,(W(),ob)),313),e?e.a==n:!1}function c$n(n){var e;return e=u(v(n,(W(),ob)),313),e?e.i==n:!1}function u$n(){u$n=F,yZn=Ce((Vi(),S(T(Ion,1),G,367,0,[Xs,Jh,Oc,Kc,zr])))}function o$n(){o$n=F,rne=Ce((ow(),S(T(ine,1),G,375,0,[gj,zP,XP,GP,UP])))}function s$n(){s$n=F,wne=Ce((o1(),S(T(Lsn,1),G,348,0,[J_,Dsn,Q_,pv,gv])))}function f$n(){f$n=F,eie=Ce((T5(),S(T($hn,1),G,323,0,[Nhn,KH,_H,Y8,Z8])))}function h$n(){h$n=F,Sne=Ce((Yo(),S(T(hfn,1),G,171,0,[Ej,U8,ka,G8,xw])))}function l$n(){l$n=F,qre=Ce((wA(),S(T(Hre,1),G,368,0,[pq,bq,mq,wq,gq])))}function a$n(){a$n=F,qce=Ce((R5(),S(T(Hce,1),G,373,0,[L2,D3,g9,w9,_j])))}function d$n(){d$n=F,Wce=Ce((Yk(),S(T(K1n,1),G,324,0,[F1n,_q,R1n,Hq,B1n])))}function b$n(){b$n=F,zue=Ce((ci(),S(T(E9,1),G,88,0,[Wf,Xr,Br,Vf,us])))}function w$n(){w$n=F,mue=Ce((gf(),S(T(Zh,1),G,170,0,[xn,pi,Ph,Kd,E1])))}function g$n(){g$n=F,eoe=Ce((Fg(),S(T(A9,1),G,256,0,[Aa,eE,adn,T9,ddn])))}function p$n(){p$n=F,roe=Ce((tn(),S(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])))}function cT(){cT=F,Run=new Uz("BY_SIZE",0),s_=new Uz("BY_SIZE_AND_SHAPE",1)}function uT(){uT=F,v_=new Xz("EADES",0),vP=new Xz("FRUCHTERMAN_REINGOLD",1)}function pk(){pk=F,WP=new Qz("READING_DIRECTION",0),Nsn=new Qz("ROTATION",1)}function r5(){r5=F,PZn=new rwn,IZn=new own,AZn=new swn,SZn=new uwn,OZn=new fwn}function m$n(n){this.b=new Z,this.a=new Z,this.c=new Z,this.d=new Z,this.e=n}function v$n(n){this.g=n,this.f=new Z,this.a=y.Math.min(this.g.c.c,this.g.d.c)}function k$n(n,e,t){qC.call(this),lQ(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function sme(n,e,t){var i,r;for(r=new C(t);r.a=0&&e0?e-1:e,eEn($he(U$n(YV(new up,t),n.n),n.j),n.k)}function Nr(n){var e,t;t=(e=new hD,e),ve((!n.q&&(n.q=new q(As,n,11,10)),n.q),t)}function fQ(n){return(n.i&2?"interface ":n.i&1?"":"class ")+(ll(n),n.o)}function oT(n){return Ec(n,et)>0?et:Ec(n,Wi)<0?Wi:Ae(n)}function Qb(n){return n<3?(Co(n,$zn),n+1):n=-.01&&n.a<=Kf&&(n.a=0),n.b>=-.01&&n.b<=Kf&&(n.b=0),n}function Og(n){Xg();var e,t;for(t=Arn,e=0;et&&(t=n[e]);return t}function C$n(n,e){var t;if(t=oy(n.Dh(),e),!t)throw M(new Gn(da+e+sK));return t}function Yb(n,e){var t;for(t=n;At(t);)if(t=At(t),t==e)return!0;return!1}function vme(n,e){var t,i,r;for(i=e.a.ld(),t=u(e.a.md(),16).gc(),r=0;rn||n>e)throw M(new pz("fromIndex: 0, toIndex: "+n+Mtn+e))}function S0(n){if(n<0)throw M(new Gn("Illegal Capacity: "+n));this.g=this.aj(n)}function hQ(n,e){return Mf(),Rs(sa),y.Math.abs(n-e)<=sa||n==e||isNaN(n)&&isNaN(e)}function m$(n,e){var t,i,r,c;for(i=n.d,r=0,c=i.length;r0&&(n.a/=e,n.b/=e),n}function jo(n){var e;return n.w?n.w:(e=lpe(n),e&&!e.Vh()&&(n.w=e),e)}function K4(n,e){var t,i;i=n.a,t=w5e(n,e,null),i!=e&&!n.e&&(t=Nm(n,e,t)),t&&t.oj()}function P$n(n,e,t){var i,r;i=e;do r=$(n.p[i.p])+t,n.p[i.p]=r,i=n.a[i.p];while(i!=e)}function I$n(n,e,t){var i=function(){return n.apply(i,arguments)};return e.apply(i,t),i}function Tme(n){var e;return n==null?null:(e=u(n,195),Bye(e,e.length))}function L(n,e){if(n.g==null||e>=n.i)throw M(new aL(e,n.i));return n.Wi(e,n.g[e])}function Ame(n,e){Dn();var t,i;for(i=new Z,t=0;t=14&&e<=16))),n}function Ee(n,e){var t;return Jn(e),t=n[":"+e],B7(!!t,"Enum constant undefined: "+e),t}function we(n,e,t,i,r,c){var s;return s=bN(n,e),G$n(t,s),s.i=r?8:0,s.f=i,s.e=r,s.g=c,s}function dQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=n,this.a=t}function bQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=n,this.a=t}function wQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=n,this.a=t}function gQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=n,this.a=t}function pQ(n,e,t,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=n,this.a=t}function z$n(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r=0))throw M(new Gn("tolerance ("+n+") must be >= 0"));return n}function V$n(n,e){var t;return O(e,44)?n.c.Mc(e):(t=wx(n,e),VT(n,e),t)}function Mr(n,e,t){return ad(n,e),zc(n,t),e1(n,0),Zb(n,1),u1(n,!0),c1(n,!0),n}function vk(n,e){var t;if(t=n.gc(),e<0||e>t)throw M(new Kb(e,t));return new SV(n,e)}function wT(n,e){n.b=y.Math.max(n.b,e.d),n.e+=e.r+(n.a.c.length==0?0:n.c),nn(n.a,e)}function W$n(n){Fb(n.c>=0),_8e(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function gT(n){var e,t;for(t=n.c.Cc().Kc();t.Ob();)e=u(t.Pb(),16),e.$b();n.c.$b(),n.d=0}function Fme(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;i=0}function CQ(n,e){n.r>0&&n.c0&&n.g!=0&&CQ(n.i,e/n.r*n.i.d))}function MQ(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,1,t,n.c))}function y$(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,4,t,n.c))}function X4(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,2,t,n.k))}function j$(n,e){var t;t=n.D,n.D=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,2,t,n.D))}function mT(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,8,t,n.f))}function vT(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,7,t,n.i))}function TQ(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,8,t,n.a))}function AQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,0,t,n.b))}function SQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,0,t,n.b))}function PQ(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,1,t,n.c))}function IQ(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,1,t,n.d))}function Ume(n,e,t){var i;n.b=e,n.a=t,i=(n.a&512)==512?new gjn:new rG,n.c=rAe(i,n.b,n.a)}function oxn(n,e){return Sl(n.e,e)?(dr(),a$(e)?new eM(e,n):new j7(e,n)):new $Mn(e,n)}function Gme(n){var e,t;return 0>n?new Dz:(e=n+1,t=new vLn(e,n),new oV(null,t))}function zme(n,e){Dn();var t;return t=new ap(1),Ai(n)?Dr(t,n,e):Vc(t.f,n,e),new eD(t)}function Xme(n,e){var t,i;return t=n.c,i=e.e[n.p],i>0?u(sn(t.a,i-1),10):null}function Vme(n,e){var t,i;return t=n.o+n.p,i=e.o+e.p,te?(e<<=1,e>0?e:Y5):e}function E$(n){switch(_X(n.e!=3),n.e){case 2:return!1;case 0:return!0}return i4e(n)}function fxn(n,e){var t;return O(e,8)?(t=u(e,8),n.a==t.a&&n.b==t.b):!1}function Jme(n,e){var t;t=new kE,u(e.b,68),u(e.b,68),u(e.b,68),nu(e.a,new BV(n,t,e))}function hxn(n,e){var t,i;for(i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),Vk(n,t.ld(),t.md())}function OQ(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,11,t,n.d))}function kT(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,13,t,n.j))}function DQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,21,t,n.b))}function Qme(n,e){(UM(),qf?null:e.c).length==0&&TAn(e,new BU),Dr(n.a,qf?null:e.c,e)}function Yme(n,e){e.Ug("Hierarchical port constraint processing",1),g9e(n),xLe(n),e.Vg()}function D0(){D0=F,ub=new KD("START",0),ma=new KD("MIDDLE",1),cb=new KD("END",2)}function yT(){yT=F,RI=new oX("P1_NODE_PLACEMENT",0),D2=new oX("P2_EDGE_ROUTING",1)}function J1(){J1=F,y3=new lt(Jtn),jP=new lt(MXn),$8=new lt(TXn),lj=new lt(AXn)}function L0(n){var e;return FL(n.f.g,n.d),oe(n.b),n.c=n.a,e=u(n.a.Pb(),44),n.b=GQ(n),e}function LQ(n){var e;return n.b==null?(Gl(),Gl(),dE):(e=n.ul()?n.tl():n.sl(),e)}function lxn(n,e){var t;return t=e==null?-1:qr(n.b,e,0),t<0?!1:(M$(n,t),!0)}function Ks(n,e){var t;return Jn(e),t=e.g,n.b[t]?!1:($t(n.b,t,e),++n.c,!0)}function jT(n,e){var t,i;return t=1-e,i=n.a[t],n.a[t]=i.a[e],i.a[e]=n,n.b=!0,i.b=!1,i}function Zme(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),272),n.b=!0,fi(n.e,t),t.b=n}function nve(n,e){var t,i;return t=u(v(n,(cn(),Hw)),8),i=u(v(e,Hw),8),bt(t.b,i.b)}function C$(n,e,t){var i,r,c;return c=e>>5,r=e&31,i=vi(U1(n.n[t][c],Ae(Fs(r,1))),3),i}function axn(n,e,t){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i0?1:0:(!n.c&&(n.c=Y7(vc(n.f))),n.c).e}function yxn(n,e){e?n.B==null&&(n.B=n.D,n.D=null):n.B!=null&&(n.D=n.B,n.B=null)}function rve(n,e){return nm(),n==rb&&e==Iw||n==Iw&&e==rb||n==a2&&e==Pw||n==Pw&&e==a2}function cve(n,e){return nm(),n==rb&&e==Pw||n==rb&&e==a2||n==Iw&&e==a2||n==Iw&&e==Pw}function jxn(n,e){return Mf(),Rs(Kf),y.Math.abs(0-e)<=Kf||e==0||isNaN(0)&&isNaN(e)?0:n/e}function Exn(n,e){return $(R(ho($k(_r(new Tn(null,new In(n.c.b,16)),new I7n(n)),e))))}function FQ(n,e){return $(R(ho($k(_r(new Tn(null,new In(n.c.b,16)),new P7n(n)),e))))}function uve(){return pr(),S(T(cH,1),G,259,0,[ZP,cs,K8,nI,yv,m2,_8,vv,kv,eI])}function ove(){return gs(),S(T(Khn,1),G,243,0,[AI,Sj,Pj,Fhn,Bhn,xhn,Rhn,SI,pb,Uw])}function sve(n,e){var t;e.Ug("General Compactor",1),t=d8e(u(z(n,(ua(),yq)),393)),t.Cg(n)}function fve(n,e){var t,i;return t=u(z(n,(ua(),_I)),17),i=u(z(e,_I),17),jc(t.a,i.a)}function BQ(n,e,t){var i,r;for(r=ge(n,0);r.b!=r.d.c;)i=u(be(r),8),i.a+=e,i.b+=t;return n}function o5(n,e,t){var i;for(i=n.b[t&n.f];i;i=i.b)if(t==i.a&&oh(e,i.g))return i;return null}function s5(n,e,t){var i;for(i=n.c[t&n.f];i;i=i.d)if(t==i.f&&oh(e,i.i))return i;return null}function hve(n,e,t){var i,r,c;for(i=0,r=0;r>>31;i!=0&&(n[t]=i)}function P$(n,e,t,i,r,c){var s;this.c=n,s=new Z,pZ(n,s,e,n.b,t,i,r,c),this.a=new xi(s,0)}function Cxn(){this.c=new XE(0),this.b=new XE(Trn),this.d=new XE(lVn),this.a=new XE(QB)}function Vo(n,e,t,i,r,c,s){je.call(this,n,e),this.d=t,this.e=i,this.c=r,this.b=c,this.a=If(s)}function Ut(n,e,t,i,r,c,s,f,h,l,a,d,g){return P_n(n,e,t,i,r,c,s,f,h,l,a,d,g),sx(n,!1),n}function lve(n){return n.b.c.i.k==(Vn(),Zt)?u(v(n.b.c.i,(W(),st)),12):n.b.c}function Mxn(n){return n.b.d.i.k==(Vn(),Zt)?u(v(n.b.d.i,(W(),st)),12):n.b.d}function ave(n){var e;return e=BM(n),o0(e.a,0)?(QE(),QE(),SQn):(QE(),new uAn(e.b))}function I$(n){var e;return e=gJ(n),o0(e.a,0)?(Ob(),Ob(),n_):(Ob(),new AL(e.b))}function O$(n){var e;return e=gJ(n),o0(e.a,0)?(Ob(),Ob(),n_):(Ob(),new AL(e.c))}function Txn(n){switch(n.g){case 2:return tn(),Wn;case 4:return tn(),Zn;default:return n}}function Axn(n){switch(n.g){case 1:return tn(),ae;case 3:return tn(),Xn;default:return n}}function Sxn(n){switch(n.g){case 0:return new hmn;case 1:return new lmn;default:return null}}function Hp(){Hp=F,x_=new Dt("edgelabelcenterednessanalysis.includelabel",(_n(),wa))}function RQ(){RQ=F,Mie=ah(WMn(Re(Re(new ii,(Vi(),Oc),(tr(),NP)),Kc,PP),zr),LP)}function Pxn(){Pxn=F,Pie=ah(WMn(Re(Re(new ii,(Vi(),Oc),(tr(),NP)),Kc,PP),zr),LP)}function D$(){D$=F,x9=new ljn,CU=S(T(ku,1),s2,179,0,[]),Joe=S(T(As,1),Gcn,62,0,[])}function V4(){V4=F,dj=new Vz("TO_INTERNAL_LTR",0),L_=new Vz("TO_INPUT_DIRECTION",1)}function Ou(){Ou=F,Ron=new wwn,Fon=new gwn,Bon=new pwn,xon=new mwn,Kon=new vwn,_on=new kwn}function dve(n,e){e.Ug(HXn,1),HY(Qhe(new IE((o6(),new kN(n,!1,!1,new qU))))),e.Vg()}function bve(n,e,t){t.Ug("DFS Treeifying phase",1),O8e(n,e),PTe(n,e),n.a=null,n.b=null,t.Vg()}function kk(n,e){return _n(),Ai(n)?RJ(n,Oe(e)):$b(n)?tN(n,R(e)):Nb(n)?rwe(n,un(e)):n.Fd(e)}function f5(n,e){var t,i;for(Jn(e),i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),n.zc(t.ld(),t.md())}function wve(n,e,t){var i;for(i=t.Kc();i.Ob();)if(!_M(n,e,i.Pb()))return!1;return!0}function gve(n,e,t,i,r){var c;return t&&(c=Ot(e.Dh(),n.c),r=t.Rh(e,-1-(c==-1?i:c),null,r)),r}function pve(n,e,t,i,r){var c;return t&&(c=Ot(e.Dh(),n.c),r=t.Th(e,-1-(c==-1?i:c),null,r)),r}function Ixn(n){var e;if(n.b==-2){if(n.e==0)e=-1;else for(e=0;n.a[e]==0;e++);n.b=e}return n.b}function mve(n){if(Jn(n),n.length==0)throw M(new eh("Zero length BigInteger"));ESe(this,n)}function KQ(n){this.i=n.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),n.Qc(this.g))}function Oxn(n,e,t){this.g=n,this.d=e,this.e=t,this.a=new Z,IEe(this),Dn(),Yt(this.a,null)}function _Q(n,e){e.q=n,n.d=y.Math.max(n.d,e.r),n.b+=e.d+(n.a.c.length==0?0:n.c),nn(n.a,e)}function W4(n,e){var t,i,r,c;return r=n.c,t=n.c+n.b,c=n.d,i=n.d+n.a,e.a>r&&e.ac&&e.br?t=r:zn(e,t+1),n.a=qo(n.a,0,e)+(""+i)+$W(n.a,t)}function Kxn(n,e){n.a=nr(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d=nr(n.d,e)}function Mve(n,e){return e1||n.Ob())return++n.a,n.g=0,e=n.i,n.Ob(),e;throw M(new nc)}function Uxn(n){switch(n.a.g){case 1:return new WCn;case 3:return new WRn;default:return new s8n}}function qQ(n,e){switch(e){case 1:return!!n.n&&n.n.i!=0;case 2:return n.k!=null}return wJ(n,e)}function vc(n){return Ay>22),r=n.h+e.h+(i>>22),Yc(t&ro,i&ro,r&Il)}function Yxn(n,e){var t,i,r;return t=n.l-e.l,i=n.m-e.m+(t>>22),r=n.h-e.h+(i>>22),Yc(t&ro,i&ro,r&Il)}function zve(n){var e,t;for(RDe(n),t=new C(n.d);t.ai)throw M(new Kb(e,i));return n.Si()&&(t=gOn(n,t)),n.Ei(e,t)}function em(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)Rg(n,c,s)||xA(n,c,s,!0,!1)}function u6e(n){Xg();var e,t,i;for(t=K(Ei,J,8,2,0,1),i=0,e=0;e<2;e++)i+=.5,t[e]=Z9e(i,n);return t}function tm(n){var e,t,i;return e=~n.l+1&ro,t=~n.m+(e==0?1:0)&ro,i=~n.h+(e==0&&t==0?1:0)&Il,Yc(e,t,i)}function QQ(n){var e;if(n<0)return Wi;if(n==0)return 0;for(e=Y5;!(e&n);e>>=1);return e}function R$(n,e,t){return n>=128?!1:n<64?M6(vi(Fs(1,n),t),0):M6(vi(Fs(1,n-64),e),0)}function Pk(n,e,t){return t==null?(!n.q&&(n.q=new de),Bp(n.q,e)):(!n.q&&(n.q=new de),Xe(n.q,e,t)),n}function U(n,e,t){return t==null?(!n.q&&(n.q=new de),Bp(n.q,e)):(!n.q&&(n.q=new de),Xe(n.q,e,t)),n}function fFn(n){var e,t;return t=new zM,Ur(t,n),U(t,(J1(),y3),n),e=new de,$Pe(n,t,e),fDe(n,t,e),t}function hFn(n){var e,t;return e=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f,t=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d,e||t}function lFn(n,e){var t,i,r,c;for(t=!1,i=n.a[e].length,c=0;c=0,"Negative initial capacity"),B7(e>=0,"Non-positive load factor"),Hu(this)}function s6e(n,e,t,i,r){var c,s;if(s=n.length,c=t.length,e<0||i<0||r<0||e+r>s||i+r>c)throw M(new qG)}function eY(n,e){Dn();var t,i,r,c,s;for(s=!1,i=e,r=0,c=i.length;r1||e>=0&&n.b<3)}function H$(n){var e,t,i;e=~n.l+1&ro,t=~n.m+(e==0?1:0)&ro,i=~n.h+(e==0&&t==0?1:0)&Il,n.l=e,n.m=t,n.h=i}function rY(n){Dn();var e,t,i;for(i=1,t=n.Kc();t.Ob();)e=t.Pb(),i=31*i+(e!=null?mt(e):0),i=i|0;return i}function d6e(n,e,t,i,r){var c;return c=Xnn(n,e),t&&H$(c),r&&(n=u7e(n,e),i?ba=tm(n):ba=Yc(n.l,n.m,n.h)),c}function yFn(n,e,t){n.g=uF(n,e,(tn(),Zn),n.b),n.d=uF(n,t,Zn,n.b),!(n.g.c==0||n.d.c==0)&&YKn(n)}function jFn(n,e,t){n.g=uF(n,e,(tn(),Wn),n.j),n.d=uF(n,t,Wn,n.j),!(n.g.c==0||n.d.c==0)&&YKn(n)}function cY(n,e){switch(e){case 7:return!!n.e&&n.e.i!=0;case 8:return!!n.d&&n.d.i!=0}return qY(n,e)}function b6e(n,e){switch(e.g){case 0:O(n.b,641)||(n.b=new Rxn);break;case 1:O(n.b,642)||(n.b=new BSn)}}function EFn(n){switch(n.g){case 0:return new gmn;default:throw M(new Gn(xS+(n.f!=null?n.f:""+n.g)))}}function CFn(n){switch(n.g){case 0:return new wmn;default:throw M(new Gn(xS+(n.f!=null?n.f:""+n.g)))}}function w6e(n,e,t){return!s4(ut(new Tn(null,new In(n.c,16)),new Z3(new hMn(e,t)))).Bd((Xa(),v3))}function MFn(n,e){return vp(pm(u(v(e,(lc(),vb)),88)),new V(n.c.e.a-n.b.e.a,n.c.e.b-n.b.e.b))<=0}function g6e(n,e){for(;n.g==null&&!n.c?cJ(n):n.g==null||n.i!=0&&u(n.g[n.i-1],51).Ob();)kle(e,CA(n))}function ld(n){var e,t;for(t=new C(n.a.b);t.ai?1:0}function v6e(n){return nn(n.c,(qp(),bue)),hQ(n.a,$(R(rn((bx(),EI)))))?new tvn:new $kn(n)}function k6e(n){for(;!n.d||!n.d.Ob();)if(n.b&&!i6(n.b))n.d=u(Sp(n.b),51);else return null;return n.d}function oY(n){switch(n.g){case 1:return lVn;default:case 2:return 0;case 3:return QB;case 4:return Trn}}function y6e(){nt();var n;return IU||(n=_1e(oa("M",!0)),n=uM(oa("M",!1),n),IU=n,IU)}function LT(){LT=F,gU=new CC("ELK",0),Tdn=new CC("JSON",1),Mdn=new CC("DOT",2),Adn=new CC("SVG",3)}function d5(){d5=F,VH=new WD("STACKED",0),XH=new WD("REVERSE_STACKED",1),Ij=new WD("SEQUENCED",2)}function b5(){b5=F,wln=new eL(kh,0),nq=new eL("MIDDLE_TO_MIDDLE",1),Lj=new eL("AVOID_OVERLAP",2)}function cm(){cm=F,Esn=new Ygn,Csn=new Zgn,JZn=new Jgn,WZn=new n2n,VZn=new Qgn,jsn=(Jn(VZn),new O0n)}function NT(){NT=F,hdn=new f0(15),Jue=new Ni((qe(),C1),hdn),C9=N3,udn=Pue,odn=Hd,fdn=K2,sdn=Vw}function Lg(n,e){var t,i,r,c,s;for(i=e,r=0,c=i.length;r=n.b.c.length||(fY(n,2*e+1),t=2*e+2,t0&&(e.Cd(t),t.i&&E5e(t))}function hY(n,e,t){var i;for(i=t-1;i>=0&&n[i]===e[i];i--);return i<0?0:ND(vi(n[i],mr),vi(e[i],mr))?-1:1}function SFn(n,e,t){var i,r;this.g=n,this.c=e,this.a=this,this.d=this,r=sxn(t),i=K(sQn,Cy,227,r,0,1),this.b=i}function X$(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)if(Rg(n,c,s))return!0;return!1}function A6e(n,e){var t,i;for(i=n.Zb().Cc().Kc();i.Ob();)if(t=u(i.Pb(),16),t.Hc(e))return!0;return!1}function PFn(n,e,t){var i,r,c,s;for(Jn(t),s=!1,c=n.fd(e),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),s=!0;return s}function V$(n,e){var t,i;return i=u(Un(n.a,4),129),t=K(jU,MK,424,e,0,1),i!=null&&Ic(i,0,t,0,i.length),t}function IFn(n,e){var t;return t=new jF((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,e),n.e!=null||(t.c=n),t}function S6e(n,e){var t;return n===e?!0:O(e,85)?(t=u(e,85),dnn(Wa(n),t.vc())):!1}function OFn(n,e,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),44),n.Be(e,i.md()))return!0;return!1}function DFn(n,e,t){return n.d[e.p][t.p]||(O9e(n,e,t),n.d[e.p][t.p]=!0,n.d[t.p][e.p]=!0),n.a[e.p][t.p]}function P6e(n,e){var t;return!n||n==e||!kt(e,(W(),sb))?!1:(t=u(v(e,(W(),sb)),10),t!=n)}function W$(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.$l()}}function LFn(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n._l()}}function NFn(n){yOn.call(this,"The given string does not match the expected format for individual spacings.",n)}function I6e(n,e){var t;e.Ug("Min Size Preprocessing",1),t=jnn(n),ht(n,(_h(),a9),t.a),ht(n,UI,t.b),e.Vg()}function O6e(n){var e,t,i;for(e=0,i=K(Ei,J,8,n.b,0,1),t=ge(n,0);t.b!=t.d.c;)i[e++]=u(be(t),8);return i}function J$(n,e,t){var i,r,c;for(i=new Ct,c=ge(t,0);c.b!=c.d.c;)r=u(be(c),8),xe(i,new rr(r));PFn(n,e,i)}function D6e(n,e){var t;return t=nr(n,e),ND(RN(n,e),0)|AC(RN(n,t),0)?t:nr(Ey,RN(U1(t,63),1))}function L6e(n,e){var t,i;return t=u(n.d.Bc(e),16),t?(i=n.e.hc(),i.Gc(t),n.e.d-=t.gc(),t.$b(),i):null}function $Fn(n){var e;if(e=n.a.c.length,e>0)return E4(e-1,n.a.c.length),Yl(n.a,e-1);throw M(new $yn)}function xFn(n,e,t){if(n>e)throw M(new Gn(ZA+n+Qzn+e));if(n<0||e>t)throw M(new pz(ZA+n+Stn+e+Mtn+t))}function um(n,e){n.D==null&&n.B!=null&&(n.D=n.B,n.B=null),j$(n,e==null?null:(Jn(e),e)),n.C&&n.hl(null)}function N6e(n,e){var t;t=rn((bx(),EI))!=null&&e.Sg()!=null?$(R(e.Sg()))/$(R(rn(EI))):1,Xe(n.b,e,t)}function lY(n,e){var t,i;if(i=n.c[e],i!=0)for(n.c[e]=0,n.d-=i,t=e+1;tPS?n-t>PS:t-n>PS}function XFn(n,e){var t;for(t=0;tr&&(EKn(e.q,r),i=t!=e.q.d)),i}function VFn(n,e){var t,i,r,c,s,f,h,l;return h=e.i,l=e.j,i=n.f,r=i.i,c=i.j,s=h-r,f=l-c,t=y.Math.sqrt(s*s+f*f),t}function pY(n,e){var t,i;return i=WT(n),i||(t=(UF(),$Hn(e)),i=new Cyn(t),ve(i.El(),n)),i}function Lk(n,e){var t,i;return t=u(n.c.Bc(e),16),t?(i=n.hc(),i.Gc(t),n.d-=t.gc(),t.$b(),n.mc(i)):n.jc()}function G6e(n,e){var t,i;for(i=to(n.d,1)!=0,t=!0;t;)t=!1,t=e.c.mg(e.e,i),t=t|sy(n,e,i,!1),i=!i;$Q(n)}function WFn(n,e,t,i){var r,c;n.a=e,c=i?0:1,n.f=(r=new s_n(n.c,n.a,t,c),new Kqn(t,n.a,r,n.e,n.b,n.c==(O0(),t9)))}function xT(n){var e;return oe(n.a!=n.b),e=n.d.a[n.a],EAn(n.b==n.d.c&&e!=null),n.c=n.a,n.a=n.a+1&n.d.a.length-1,e}function JFn(n){var e;if(n.c!=0)return n.c;for(e=0;e=n.c.b:n.a<=n.c.b))throw M(new nc);return e=n.a,n.a+=n.c.c,++n.b,Y(e)}function ex(n){var e;return e=new DX(n.a),Ur(e,n),U(e,(W(),st),n),e.o.a=n.g,e.o.b=n.f,e.n.a=n.i,e.n.b=n.j,e}function tx(n){return(tn(),mu).Hc(n.j)?$(R(v(n,(W(),jv)))):cc(S(T(Ei,1),J,8,0,[n.i.n,n.n,n.a])).b}function X6e(n){var e;return e=DC(Cie),u(v(n,(W(),Hc)),21).Hc((pr(),yv))&&Re(e,(Vi(),Oc),(tr(),FP)),e}function V6e(n){var e,t,i,r;for(r=new ni,i=new C(n);i.a=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function Z6e(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function na(n,e){var t,i,r,c;return c=(r=n?WT(n):null,O_n((i=e,r&&r.Gl(),i))),c==e&&(t=WT(n),t&&t.Gl()),c}function QFn(n,e,t){var i,r;return r=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,0,r,e),t?t.nj(i):t=i),t}function YFn(n,e,t){var i,r;return r=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,3,r,e),t?t.nj(i):t=i),t}function vY(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,1,r,e),t?t.nj(i):t=i),t}function ZFn(n){var e,t;if(n!=null)for(t=0;t=i||e-129&&n<128?(FSn(),e=n+128,t=pun[e],!t&&(t=pun[e]=new vG(n)),t):new vG(n)}function sm(n){var e,t;return n>-129&&n<128?(nPn(),e=n+128,t=yun[e],!t&&(t=yun[e]=new yG(n)),t):new yG(n)}function tBn(n,e){var t;n.a.c.length>0&&(t=u(sn(n.a,n.a.c.length-1),579),sY(t,e))||nn(n.a,new kLn(e))}function c5e(n){xs();var e,t;e=n.d.c-n.e.c,t=u(n.g,154),nu(t.b,new p7n(e)),nu(t.c,new m7n(e)),qi(t.i,new v7n(e))}function iBn(n){var e;return e=new x1,e.a+="VerticalSegment ",Dc(e,n.e),e.a+=" ",Be(e,RX(new yD,new C(n.k))),e.a}function ix(n,e){var t,i,r;for(t=0,r=uc(n,e).Kc();r.Ob();)i=u(r.Pb(),12),t+=v(i,(W(),Xu))!=null?1:0;return t}function xg(n,e,t){var i,r,c;for(i=0,c=ge(n,0);c.b!=c.d.c&&(r=$(R(be(c))),!(r>t));)r>=e&&++i;return i}function rBn(n,e){Se(n);try{return n._b(e)}catch(t){if(t=It(t),O(t,212)||O(t,169))return!1;throw M(t)}}function yY(n,e){Se(n);try{return n.Hc(e)}catch(t){if(t=It(t),O(t,212)||O(t,169))return!1;throw M(t)}}function u5e(n,e){Se(n);try{return n.Mc(e)}catch(t){if(t=It(t),O(t,212)||O(t,169))return!1;throw M(t)}}function tw(n,e){Se(n);try{return n.xc(e)}catch(t){if(t=It(t),O(t,212)||O(t,169))return null;throw M(t)}}function o5e(n,e){Se(n);try{return n.Bc(e)}catch(t){if(t=It(t),O(t,212)||O(t,169))return null;throw M(t)}}function p5(n,e){switch(e.g){case 2:case 1:return uc(n,e);case 3:case 4:return Qo(uc(n,e))}return Dn(),Dn(),sr}function m5(n){var e;return n.Db&64?_s(n):(e=new ls(_s(n)),e.a+=" (name: ",Er(e,n.zb),e.a+=")",e.a)}function s5e(n){var e;return e=u(Lf(n.c.c,""),233),e||(e=new Np(u4(c4(new ep,""),"Other")),s1(n.c.c,"",e)),e}function jY(n,e,t){var i,r;return r=n.sb,n.sb=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,4,r,e),t?t.nj(i):t=i),t}function EY(n,e,t){var i,r;return r=n.r,n.r=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,8,r,n.r),t?t.nj(i):t=i),t}function f5e(n,e,t){var i,r;return i=new ml(n.e,4,13,(r=e.c,r||(On(),Yf)),null,f1(n,e),!1),t?t.nj(i):t=i,t}function h5e(n,e,t){var i,r;return i=new ml(n.e,3,13,null,(r=e.c,r||(On(),Yf)),f1(n,e),!1),t?t.nj(i):t=i,t}function r1(n,e){var t,i;return t=u(e,691),i=t.el(),!i&&t.fl(i=O(e,90)?new xMn(n,u(e,29)):new cDn(n,u(e,156))),i}function Nk(n,e,t){var i;n._i(n.i+1),i=n.Zi(e,t),e!=n.i&&Ic(n.g,e,n.g,e+1,n.i-e),$t(n.g,e,i),++n.i,n.Mi(e,t),n.Ni()}function l5e(n,e){var t;return e.a&&(t=e.a.a.length,n.a?Be(n.a,n.b):n.a=new mo(n.d),aDn(n.a,e.a,e.d.length,t)),n}function a5e(n,e){var t;n.c=e,n.a=p8e(e),n.a<54&&(n.f=(t=e.d>1?hDn(e.a[0],e.a[1]):hDn(e.a[0],0),id(e.e>0?t:n1(t))))}function $k(n,e){var t;return t=new LO,n.a.Bd(t)?(b4(),new wD(Jn(GNn(n,t.a,e)))):(z1(n),b4(),b4(),Dun)}function cBn(n,e){var t;n.c.length!=0&&(t=u(xf(n,K(Qh,b1,10,n.c.length,0,1)),199),CX(t,new rgn),Y_n(t,e))}function uBn(n,e){var t;n.c.length!=0&&(t=u(xf(n,K(Qh,b1,10,n.c.length,0,1)),199),CX(t,new cgn),Y_n(t,e))}function rt(n,e){return Ai(n)?An(n,e):$b(n)?nSn(n,e):Nb(n)?(Jn(n),x(n)===x(e)):pW(n)?n.Fb(e):hW(n)?YMn(n,e):hJ(n,e)}function Wo(n,e,t){if(e<0)Pnn(n,t);else{if(!t.rk())throw M(new Gn(da+t.xe()+p8));u(t,69).wk().Ek(n,n.hi(),e)}}function oBn(n,e,t){if(n<0||e>t)throw M(new Ir(ZA+n+Stn+e+", size: "+t));if(n>e)throw M(new Gn(ZA+n+Qzn+e))}function sBn(n){var e;return n.Db&64?_s(n):(e=new ls(_s(n)),e.a+=" (source: ",Er(e,n.d),e.a+=")",e.a)}function fBn(n){return n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function d5e(n){VA();var e,t,i,r;for(t=jx(),i=0,r=t.length;i=0?ta(n):G6(ta(n1(n))))}function aBn(n,e,t,i,r,c){this.e=new Z,this.f=(gr(),n9),nn(this.e,n),this.d=e,this.a=t,this.b=i,this.f=r,this.c=c}function g5e(n,e,t){n.n=Va(xa,[J,SB],[376,28],14,[t,wi(y.Math.ceil(e/32))],2),n.o=e,n.p=t,n.j=e-1>>1,n.k=t-1>>1}function dBn(n){return n-=n>>1&1431655765,n=(n>>2&858993459)+(n&858993459),n=(n>>4)+n&252645135,n+=n>>8,n+=n>>16,n&63}function bBn(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)if(t=u(ce(i),142),x(e)===x(t))return!0;return!1}function p5e(n,e,t){var i,r,c;return c=(r=Mm(n.b,e),r),c&&(i=u(qA(ak(n,c),""),29),i)?Qnn(n,i,e,t):null}function rx(n,e,t){var i,r,c;return c=(r=Mm(n.b,e),r),c&&(i=u(qA(ak(n,c),""),29),i)?Ynn(n,i,e,t):null}function m5e(n,e){var t;if(t=Dg(n.i,e),t==null)throw M(new nh("Node did not exist in input."));return HQ(e,t),null}function v5e(n,e){var t;if(t=oy(n,e),O(t,331))return u(t,35);throw M(new Gn(da+e+"' is not a valid attribute"))}function k5(n,e,t){var i;if(i=n.gc(),e>i)throw M(new Kb(e,i));if(n.Si()&&n.Hc(t))throw M(new Gn(Vy));n.Gi(e,t)}function k5e(n,e){e.Ug("Sort end labels",1),qt(ut(rc(new Tn(null,new In(n.b,16)),new Hwn),new qwn),new Uwn),e.Vg()}function ci(){ci=F,Wf=new v7(i8,0),Xr=new v7(f3,1),Br=new v7(s3,2),Vf=new v7(_B,3),us=new v7("UP",4)}function Fk(){Fk=F,XI=new sL("P1_STRUCTURE",0),VI=new sL("P2_PROCESSING_ORDER",1),WI=new sL("P3_EXECUTION",2)}function wBn(){wBn=F,Rre=ah(ah(l6(ah(ah(l6(Re(new ii,(Qp(),c9),(q5(),ZH)),u9),lln),dln),o9),oln),bln)}function y5e(n){switch(u(v(n,(W(),Od)),311).g){case 1:U(n,Od,(vl(),E3));break;case 2:U(n,Od,(vl(),v2))}}function j5e(n){switch(n){case 0:return new rjn;case 1:return new tjn;case 2:return new ijn;default:throw M(new Q9)}}function gBn(n){switch(n.g){case 2:return Xr;case 1:return Br;case 4:return Vf;case 3:return us;default:return Wf}}function AY(n,e){switch(n.b.g){case 0:case 1:return e;case 2:case 3:return new Ho(e.d,0,e.a,e.b);default:return null}}function SY(n){switch(n.g){case 1:return Wn;case 2:return Xn;case 3:return Zn;case 4:return ae;default:return sc}}function Bk(n){switch(n.g){case 1:return ae;case 2:return Wn;case 3:return Xn;case 4:return Zn;default:return sc}}function RT(n){switch(n.g){case 1:return Zn;case 2:return ae;case 3:return Wn;case 4:return Xn;default:return sc}}function PY(n,e,t,i){switch(e){case 1:return!n.n&&(n.n=new q(Ar,n,1,7)),n.n;case 2:return n.k}return yZ(n,e,t,i)}function y5(n,e,t){var i,r;return n.Pj()?(r=n.Qj(),i=lF(n,e,t),n.Jj(n.Ij(7,Y(t),i,e,r)),i):lF(n,e,t)}function cx(n,e){var t,i,r;n.d==null?(++n.e,--n.f):(r=e.ld(),t=e.Bi(),i=(t&et)%n.d.length,o4e(n,i,RHn(n,i,t,r)))}function fm(n,e){var t;t=(n.Bb&Us)!=0,e?n.Bb|=Us:n.Bb&=-1025,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,10,t,e))}function hm(n,e){var t;t=(n.Bb&vw)!=0,e?n.Bb|=vw:n.Bb&=-4097,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,12,t,e))}function lm(n,e){var t;t=(n.Bb&$u)!=0,e?n.Bb|=$u:n.Bb&=-8193,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,15,t,e))}function am(n,e){var t;t=(n.Bb&Tw)!=0,e?n.Bb|=Tw:n.Bb&=-2049,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,11,t,e))}function E5e(n){var e;n.g&&(e=n.c.kg()?n.f:n.a,len(e.a,n.o,!0),len(e.a,n.o,!1),U(n.o,(cn(),Kt),(Oi(),Ud)))}function C5e(n){var e;if(!n.a)throw M(new Or("Cannot offset an unassigned cut."));e=n.c-n.b,n.b+=e,_In(n,e),KIn(n,e)}function M5e(n,e){var t;if(t=ee(n.k,e),t==null)throw M(new nh("Port did not exist in input."));return HQ(e,t),null}function T5e(n){var e,t;for(t=xHn(jo(n)).Kc();t.Ob();)if(e=Oe(t.Pb()),U5(n,e))return A3e((mCn(),Boe),e);return null}function pBn(n){var e,t;for(t=n.p.a.ec().Kc();t.Ob();)if(e=u(t.Pb(),218),e.f&&n.b[e.c]<-1e-10)return e;return null}function A5e(n){var e,t;for(t=Ya(new x1,91),e=!0;n.Ob();)e||(t.a+=ur),e=!1,Dc(t,n.Pb());return(t.a+="]",t).a}function S5e(n){var e,t,i;for(e=new Z,i=new C(n.b);i.ae?1:n==e?n==0?bt(1/n,1/e):0:isNaN(n)?isNaN(e)?0:1:-1}function I5e(n){var e;return e=n.a[n.c-1&n.a.length-1],e==null?null:(n.c=n.c-1&n.a.length-1,$t(n.a,n.c,null),e)}function O5e(n){var e,t,i;for(i=0,t=n.length,e=0;e=1?Xr:Vf):t}function $5e(n){switch(u(v(n,(cn(),$l)),223).g){case 1:return new Ppn;case 3:return new Npn;default:return new Spn}}function ea(n){if(n.c)ea(n.c);else if(n.d)throw M(new Or("Stream already terminated, can't be modified or used"))}function $0(n,e,t){var i;return i=n.a.get(e),n.a.set(e,t===void 0?null:t),i===void 0?(++n.c,++n.b.g):++n.d,i}function x5e(n,e,t){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),Mk(t,u(sn(e,i.p),16)))return i;return null}function OY(n,e,t){var i;return i=0,e&&(mg(n.a)?i+=e.f.a/2:i+=e.f.b/2),t&&(mg(n.a)?i+=t.f.a/2:i+=t.f.b/2),i}function F5e(n,e,t){var i;i=t,!i&&(i=YV(new up,0)),i.Ug(PXn,2),jRn(n.b,e,i.eh(1)),YIe(n,e,i.eh(1)),eLe(e,i.eh(1)),i.Vg()}function DY(n,e,t){var i,r;return i=(B1(),r=new yE,r),aT(i,e),lT(i,t),n&&ve((!n.a&&(n.a=new ti(xo,n,5)),n.a),i),i}function ox(n){var e;return n.Db&64?_s(n):(e=new ls(_s(n)),e.a+=" (identifier: ",Er(e,n.k),e.a+=")",e.a)}function sx(n,e){var t;t=(n.Bb&kc)!=0,e?n.Bb|=kc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,18,t,e))}function LY(n,e){var t;t=(n.Bb&kc)!=0,e?n.Bb|=kc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,18,t,e))}function dm(n,e){var t;t=(n.Bb&wh)!=0,e?n.Bb|=wh:n.Bb&=-16385,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,16,t,e))}function NY(n,e){var t;t=(n.Bb&hr)!=0,e?n.Bb|=hr:n.Bb&=-65537,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,20,t,e))}function $Y(n){var e;return e=K(fs,gh,28,2,15,1),n-=hr,e[0]=(n>>10)+Sy&ui,e[1]=(n&1023)+56320&ui,hh(e,0,e.length)}function B5e(n){var e;return e=sw(n),e>34028234663852886e22?St:e<-34028234663852886e22?li:e}function nr(n,e){var t;return Vr(n)&&Vr(e)&&(t=n+e,Ay"+td(e.c):"e_"+mt(e),n.b&&n.c?td(n.b)+"->"+td(n.c):"e_"+mt(n))}function _5e(n,e){return An(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e),n.b&&n.c?td(n.b)+"->"+td(n.c):"e_"+mt(n))}function x0(n,e){return Mf(),Rs(sa),y.Math.abs(n-e)<=sa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:s0(isNaN(n),isNaN(e))}function El(){El=F,lU=new kC(i8,0),Yj=new kC("POLYLINE",1),Kv=new kC("ORTHOGONAL",2),F3=new kC("SPLINES",3)}function _T(){_T=F,l1n=new uL("ASPECT_RATIO_DRIVEN",0),Oq=new uL("MAX_SCALE_DRIVEN",1),h1n=new uL("AREA_DRIVEN",2)}function H5e(n,e,t){var i;try{l6e(n,e,t)}catch(r){throw r=It(r),O(r,606)?(i=r,M(new $J(i))):M(r)}return e}function q5e(n){var e,t,i;for(t=0,i=n.length;te&&i.Ne(n[c-1],n[c])>0;--c)s=n[c],$t(n,c,n[c-1]),$t(n,c-1,s)}function vn(n,e){var t,i,r,c,s;if(t=e.f,s1(n.c.d,t,e),e.g!=null)for(r=e.g,c=0,s=r.length;ce){wDn(t);break}}q7(t,e)}function X5e(n,e){var t,i,r;i=Sg(e),r=$(R(rw(i,(cn(),Vs)))),t=y.Math.max(0,r/2-.5),I5(e,t,1),nn(n,new NCn(e,t))}function V5e(n,e,t){var i;t.Ug("Straight Line Edge Routing",1),t.dh(e,xrn),i=u(z(e,(Mg(),O2)),27),iGn(n,i),t.dh(e,DS)}function xY(n,e){n.n.c.length==0&&nn(n.n,new NM(n.s,n.t,n.i)),nn(n.b,e),gZ(u(sn(n.n,n.n.c.length-1),209),e),RUn(n,e)}function j5(n){var e;this.a=(e=u(n.e&&n.e(),9),new _o(e,u($s(e,e.length),9),0)),this.b=K(ki,Fn,1,this.a.a.length,5,1)}function Jr(n){var e;return Array.isArray(n)&&n.Tm===J2?za(wo(n))+"@"+(e=mt(n)>>>0,e.toString(16)):n.toString()}function W5e(n,e){return n.h==Ty&&n.m==0&&n.l==0?(e&&(ba=Yc(0,0,0)),nTn((R4(),lun))):(e&&(ba=Yc(n.l,n.m,n.h)),Yc(0,0,0))}function J5e(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function yBn(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function FY(n,e,t,i){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return PY(n,e,t,i)}function HT(n,e){if(e==n.d)return n.e;if(e==n.e)return n.d;throw M(new Gn("Node "+e+" not part of edge "+n))}function Q5e(n,e){var t;if(t=oy(n.Dh(),e),O(t,102))return u(t,19);throw M(new Gn(da+e+"' is not a valid reference"))}function Jo(n,e,t,i){if(e<0)ten(n,t,i);else{if(!t.rk())throw M(new Gn(da+t.xe()+p8));u(t,69).wk().Ck(n,n.hi(),e,i)}}function eo(n){var e;if(n.b){if(eo(n.b),n.b.d!=n.c)throw M(new Bo)}else n.d.dc()&&(e=u(n.f.c.xc(n.e),16),e&&(n.d=e))}function Y5e(n){Bb();var e,t,i,r;for(e=n.o.b,i=u(u(ot(n.r,(tn(),ae)),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r=t.e,r.b+=e}function Z5e(n){var e,t,i;for(this.a=new ih,i=new C(n);i.a=r)return e.c+t;return e.c+e.b.gc()}function e8e(n,e){m4();var t,i,r,c;for(i=LNn(n),r=e,F4(i,0,i.length,r),t=0;t0&&(i+=r,++t);return t>1&&(i+=n.d*(t-1)),i}function i8e(n){var e,t,i,r,c;return c=enn(n),t=e7(n.c),i=!t,i&&(r=new Ka,df(c,"knownLayouters",r),e=new lyn(r),qi(n.c,e)),c}function KY(n){var e,t,i;for(i=new Hl,i.a+="[",e=0,t=n.gc();e0&&(zn(e-1,n.length),n.charCodeAt(e-1)==58)&&!lx(n,N9,$9))}function _Y(n,e){var t;return x(n)===x(e)?!0:O(e,92)?(t=u(e,92),n.e==t.e&&n.d==t.d&&I3e(n,t.a)):!1}function zp(n){switch(tn(),n.g){case 4:return Xn;case 1:return Zn;case 3:return ae;case 2:return Wn;default:return sc}}function o8e(n){var e,t;if(n.b)return n.b;for(t=qf?null:n.d;t;){if(e=qf?null:t.b,e)return e;t=qf?null:t.d}return a4(),$un}function HY(n){var e,t,i;for(i=$(R(n.a.of((qe(),iO)))),t=new C(n.a.Sf());t.a>5,e=n&31,i=K(ye,Ke,28,t+1,15,1),i[t]=1<3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}function Ot(n,e){var t,i,r;if(t=(n.i==null&&bh(n),n.i),i=e.Lj(),i!=-1){for(r=t.length;i=0;--i)for(e=t[i],r=0;r>1,this.k=e-1>>1}function j8e(n){YM(),u(n.of((qe(),Ma)),181).Hc((io(),hO))&&(u(n.of(Ww),181).Fc((zu(),B3)),u(n.of(Ma),181).Mc(hO))}function SBn(n){var e,t;e=n.d==(Yp(),dv),t=GZ(n),e&&!t||!e&&t?U(n.a,(cn(),Th),(Rh(),Uj)):U(n.a,(cn(),Th),(Rh(),qj))}function bx(){bx=F,nC(),EI=(cn(),gb),Qte=If(S(T(Xq,1),Ern,149,0,[Tj,Vs,M2,wb,qw,IH,Av,Sv,OH,J8,C2,Bd,T2]))}function E8e(n,e){var t;return t=u(Wr(n,qu(new ju,new yu,new Eu,S(T(xr,1),G,108,0,[(Gu(),Yr)]))),15),t.Qc(WSn(t.gc()))}function PBn(n,e){var t,i;if(i=new Y3(n.a.ad(e,!0)),i.a.gc()<=1)throw M(new ip);return t=i.a.ec().Kc(),t.Pb(),u(t.Pb(),40)}function C8e(n,e,t){var i,r;return i=$(n.p[e.i.p])+$(n.d[e.i.p])+e.n.b+e.a.b,r=$(n.p[t.i.p])+$(n.d[t.i.p])+t.n.b+t.a.b,r-i}function WY(n,e){var t;return n.i>0&&(e.lengthn.i&&$t(e,n.i,null),e}function UT(n){var e;return n.Db&64?m5(n):(e=new ls(m5(n)),e.a+=" (instanceClassName: ",Er(e,n.D),e.a+=")",e.a)}function GT(n){var e,t,i,r;for(r=0,t=0,i=n.length;t0?(n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=RHn(n,r,i,e),t!=-1):!1}function IBn(n,e){var t,i;n.a=nr(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d+=e,t=e-n.f,i=n.e+t,n.f=i-n.e-t,n.e=i}function JY(n,e){switch(e){case 3:P0(n,0);return;case 4:I0(n,0);return;case 5:eu(n,0);return;case 6:tu(n,0);return}kY(n,e)}function F0(n,e){switch(e.g){case 1:return Cp(n.j,(Ou(),Fon));case 2:return Cp(n.j,(Ou(),Ron));default:return Dn(),Dn(),sr}}function QY(n){m0();var e;switch(e=n.Pc(),e.length){case 0:return qK;case 1:return new VL(Se(e[0]));default:return new PN(q5e(e))}}function OBn(n,e){n.Xj();try{n.d.bd(n.e++,e),n.f=n.d.j,n.g=-1}catch(t){throw t=It(t),O(t,77)?M(new Bo):M(t)}}function gx(){gx=F,TU=new Tvn,zdn=new Avn,Xdn=new Svn,Vdn=new Pvn,Wdn=new Ivn,Jdn=new Ovn,Qdn=new Dvn,Ydn=new Lvn,Zdn=new Nvn}function zT(n,e){kX();var t,i;return t=D7((KE(),KE(),P8)),i=null,e==t&&(i=u(Nc(fun,n),624)),i||(i=new JPn(n),e==t&&Dr(fun,n,i)),i}function DBn(n){cw();var e;return(n.q?n.q:(Dn(),Dn(),Wh))._b((cn(),db))?e=u(v(n,db),203):e=u(v(Hi(n),W8),203),e}function rw(n,e){var t,i;return i=null,kt(n,(cn(),yI))&&(t=u(v(n,yI),96),t.pf(e)&&(i=t.of(e))),i==null&&(i=v(Hi(n),e)),i}function LBn(n,e){var t,i,r;return O(e,44)?(t=u(e,44),i=t.ld(),r=tw(n.Rc(),i),oh(r,t.md())&&(r!=null||n.Rc()._b(i))):!1}function wf(n,e){var t,i,r;return n.f>0&&(n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=xnn(n,r,i,e),t)?t.md():null}function Xc(n,e,t){var i,r,c;return n.Pj()?(i=n.i,c=n.Qj(),Nk(n,i,e),r=n.Ij(3,null,e,i,c),t?t.nj(r):t=r):Nk(n,n.i,e),t}function T8e(n,e,t){var i,r;return i=new ml(n.e,4,10,(r=e.c,O(r,90)?u(r,29):(On(),Ps)),null,f1(n,e),!1),t?t.nj(i):t=i,t}function A8e(n,e,t){var i,r;return i=new ml(n.e,3,10,null,(r=e.c,O(r,90)?u(r,29):(On(),Ps)),f1(n,e),!1),t?t.nj(i):t=i,t}function NBn(n){Bb();var e;return e=new rr(u(n.e.of((qe(),K2)),8)),n.B.Hc((io(),Hv))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function ta(n){dh();var e,t;return t=Ae(n),e=Ae(U1(n,32)),e!=0?new HOn(t,e):t>10||t<0?new gl(1,t):kQn[t]}function Kk(n,e){var t;return Vr(n)&&Vr(e)&&(t=n%e,Ay=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function Hk(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.Ne(e,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function L8e(n,e,t,i){var r,c,s;return r=!1,xOe(n.f,t,i)&&(e9e(n.f,n.a[e][t],n.a[e][i]),c=n.a[e],s=c[i],c[i]=c[t],c[t]=s,r=!0),r}function BBn(n,e,t){var i,r,c,s;for(r=u(ee(n.b,t),183),i=0,s=new C(e.j);s.a>5,e&=31,r=n.d+t+(e==0?0:1),i=K(ye,Ke,28,r,15,1),Oye(i,n.a,t,e),c=new Qa(n.e,r,i),Q6(c),c}function N8e(n,e){var t,i,r;for(i=new te(re(Qt(n).a.Kc(),new En));pe(i);)if(t=u(fe(i),18),r=t.d.i,r.c==e)return!1;return!0}function nZ(n,e,t){var i,r,c,s,f;return s=n.k,f=e.k,i=t[s.g][f.g],r=R(rw(n,i)),c=R(rw(e,i)),y.Math.max((Jn(r),r),(Jn(c),c))}function $8e(){return Error.stackTraceLimit>0?(y.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function x8e(n,e){return Mf(),Mf(),Rs(sa),(y.Math.abs(n-e)<=sa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:s0(isNaN(n),isNaN(e)))>0}function eZ(n,e){return Mf(),Mf(),Rs(sa),(y.Math.abs(n-e)<=sa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:s0(isNaN(n),isNaN(e)))<0}function KBn(n,e){return Mf(),Mf(),Rs(sa),(y.Math.abs(n-e)<=sa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:s0(isNaN(n),isNaN(e)))<=0}function mx(n,e){for(var t=0;!e[t]||e[t]=="";)t++;for(var i=e[t++];t0&&this.b>0&&(this.g=cM(this.c,this.b,this.a))}function F8e(n,e){var t=n.a,i;e=String(e),t.hasOwnProperty(e)&&(i=t[e]);var r=(K$(),WK)[typeof i],c=r?r(i):wY(typeof i);return c}function wm(n){var e,t,i;if(i=null,e=Eh in n.a,t=!e,t)throw M(new nh("Every element must have an id."));return i=Zp(dl(n,Eh)),i}function B0(n){var e,t;for(t=a_n(n),e=null;n.c==2;)Ye(n),e||(e=(nt(),nt(),new P6(2)),pd(e,t),t=e),t.Jm(a_n(n));return t}function VT(n,e){var t,i,r;return n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=xnn(n,r,i,e),t?(V$n(n,t),t.md()):null}function XBn(n,e){return n.e>e.e?1:n.ee.d?n.e:n.d=48&&n<48+y.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function B8e(n,e){if(e.c==n)return e.d;if(e.d==n)return e.c;throw M(new Gn("Input edge is not connected to the input port."))}function R8e(n){if(JT(nv,n))return _n(),ov;if(JT(cK,n))return _n(),wa;throw M(new Gn("Expecting true or false"))}function rZ(n){switch(typeof n){case nB:return t1(n);case dtn:return pp(n);case i3:return SAn(n);default:return n==null?0:l0(n)}}function ah(n,e){if(n.a<0)throw M(new Or("Did not call before(...) or after(...) before calling add(...)."));return YX(n,n.a,e),n}function cZ(n){return $M(),O(n,162)?u(ee(hE,MQn),295).Rg(n):Zc(hE,wo(n))?u(ee(hE,wo(n)),295).Rg(n):null}function iu(n){var e,t;return n.Db&32||(t=(e=u(Un(n,16),29),se(e||n.ii())-se(n.ii())),t!=0&&Xp(n,32,K(ki,Fn,1,t,5,1))),n}function Xp(n,e,t){var i;n.Db&e?t==null?jCe(n,e):(i=Rx(n,e),i==-1?n.Eb=t:$t(cd(n.Eb),i,t)):t!=null&>e(n,e,t)}function K8e(n,e,t,i){var r,c;e.c.length!=0&&(r=$Me(t,i),c=xEe(e),qt(fT(new Tn(null,new In(c,1)),new L3n),new MIn(n,t,r,i)))}function _8e(n,e){var t,i,r,c;return i=n.a.length-1,t=e-n.b&i,c=n.c-e&i,r=n.c-n.b&i,EAn(t=c?(R6e(n,e),-1):(B6e(n,e),1)}function WT(n){var e,t,i;if(i=n.Jh(),!i)for(e=0,t=n.Ph();t;t=t.Ph()){if(++e>PB)return t.Qh();if(i=t.Jh(),i||t==n)break}return i}function WBn(n,e){var t;return x(e)===x(n)?!0:!O(e,21)||(t=u(e,21),t.gc()!=n.gc())?!1:n.Ic(t)}function H8e(n,e){return n.ee.e?1:n.fe.f?1:mt(n)-mt(e)}function JT(n,e){return Jn(n),e==null?!1:An(n,e)?!0:n.length==e.length&&An(n.toLowerCase(),e.toLowerCase())}function Ml(n){var e,t;return Ec(n,-129)>0&&Ec(n,128)<0?(ZSn(),e=Ae(n)+128,t=mun[e],!t&&(t=mun[e]=new kG(n)),t):new kG(n)}function dd(){dd=F,Ow=new aC(kh,0),Don=new aC("INSIDE_PORT_SIDE_GROUPS",1),P_=new aC("GROUP_MODEL_ORDER",2),I_=new aC(tin,3)}function q8e(n){var e;return n.b||xhe(n,(e=$ae(n.e,n.a),!e||!An(cK,wf((!e.b&&(e.b=new lo((On(),ar),pc,e)),e.b),"qualified")))),n.c}function U8e(n,e){var t,i;for(t=(zn(e,n.length),n.charCodeAt(e)),i=e+1;i2e3&&(hQn=n,uP=y.setTimeout(_he,10))),cP++==0?(ime((az(),sun)),!0):!1}function r9e(n,e,t){var i;(DQn?(o8e(n),!0):LQn||$Qn?(a4(),!0):NQn&&(a4(),!1))&&(i=new aSn(e),i.b=t,aje(n,i))}function kx(n,e){var t;t=!n.A.Hc((go(),Gd))||n.q==(Oi(),qc),n.u.Hc((zu(),Fl))?t?XDe(n,e):UGn(n,e):n.u.Hc(Pa)&&(t?dDe(n,e):czn(n,e))}function eRn(n){var e;x(z(n,(qe(),B2)))===x((jl(),uO))&&(At(n)?(e=u(z(At(n),B2),346),ht(n,B2,e)):ht(n,B2,M9))}function c9e(n){var e,t;return kt(n.d.i,(cn(),Cv))?(e=u(v(n.c.i,Cv),17),t=u(v(n.d.i,Cv),17),jc(e.a,t.a)>0):!1}function tRn(n,e,t){return new Ho(y.Math.min(n.a,e.a)-t/2,y.Math.min(n.b,e.b)-t/2,y.Math.abs(n.a-e.a)+t,y.Math.abs(n.b-e.b)+t)}function iRn(n){var e;this.d=new Z,this.j=new Li,this.g=new Li,e=n.g.b,this.f=u(v(Hi(e),(cn(),Do)),88),this.e=$(R(nA(e,qw)))}function rRn(n){this.d=new Z,this.e=new Ql,this.c=K(ye,Ke,28,(tn(),S(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.b=n}function sZ(n,e,t){var i;switch(i=t[n.g][e],n.g){case 1:case 3:return new V(0,i);case 2:case 4:return new V(i,0);default:return null}}function cRn(n,e,t){var i,r;r=u(V7(e.f),205);try{r.rf(n,t),hIn(e.f,r)}catch(c){throw c=It(c),O(c,103)?(i=c,M(i)):M(c)}}function uRn(n,e,t){var i,r,c,s,f,h;return i=null,f=Zen(z4(),e),c=null,f&&(r=null,h=Qen(f,t),s=null,h!=null&&(s=n.qf(f,h)),r=s,c=r),i=c,i}function yx(n,e,t,i){var r;if(r=n.length,e>=r)return r;for(e=e>0?e:0;ei&&$t(e,i,null),e}function oRn(n,e){var t,i;for(i=n.a.length,e.lengthi&&$t(e,i,null),e}function gm(n,e){var t,i;if(++n.j,e!=null&&(t=(i=n.a.Cb,O(i,99)?u(i,99).th():null),hCe(e,t))){Xp(n.a,4,t);return}Xp(n.a,4,u(e,129))}function u9e(n){var e;if(n==null)return null;if(e=lMe(Fc(n,!0)),e==null)throw M(new kD("Invalid hexBinary value: '"+n+"'"));return e}function QT(n,e,t){var i;e.a.length>0&&(nn(n.b,new SSn(e.a,t)),i=e.a.length,0i&&(e.a+=ITn(K(fs,gh,28,-i,15,1))))}function sRn(n,e,t){var i,r,c;if(!t[e.d])for(t[e.d]=!0,r=new C($g(e));r.a=n.b>>1)for(i=n.c,t=n.b;t>e;--t)i=i.b;else for(i=n.a.a,t=0;t=0?n.Wh(r):hF(n,i)):t<0?hF(n,i):u(i,69).wk().Bk(n,n.hi(),t)}function aRn(n){var e,t,i;for(i=(!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),n.o),t=i.c.Kc();t.e!=t.i.gc();)e=u(t.Yj(),44),e.md();return uk(i)}function rn(n){var e;if(O(n.a,4)){if(e=cZ(n.a),e==null)throw M(new Or(NVn+n.b+"'. "+LVn+(ll(lE),lE.k)+bcn));return e}else return n.a}function b9e(n,e){var t,i;if(n.j.length!=e.j.length)return!1;for(t=0,i=n.j.length;t=64&&e<128&&(r=hf(r,Fs(1,e-64)));return r}function nA(n,e){var t,i;return i=null,kt(n,(qe(),$3))&&(t=u(v(n,$3),96),t.pf(e)&&(i=t.of(e))),i==null&&Hi(n)&&(i=v(Hi(n),e)),i}function w9e(n,e){var t;return t=u(v(n,(cn(),Fr)),75),yL(e,LZn)?t?vo(t):(t=new Mu,U(n,Fr,t)):t&&U(n,Fr,null),t}function M5(){M5=F,aon=(qe(),qan),g_=Ean,DYn=$2,lon=C1,xYn=(aA(),Uun),$Yn=Hun,FYn=zun,NYn=_un,LYn=(Q$(),son),w_=PYn,hon=IYn,pP=OYn}function eA(n){switch($z(),this.c=new Z,this.d=n,n.g){case 0:case 2:this.a=qW(Oon),this.b=St;break;case 3:case 1:this.a=Oon,this.b=li}}function g9e(n){var e;Ep(u(v(n,(cn(),Kt)),101))&&(e=n.b,nHn((Ln(0,e.c.length),u(e.c[0],30))),nHn(u(sn(e,e.c.length-1),30)))}function p9e(n,e){e.Ug("Self-Loop post-processing",1),qt(ut(ut(rc(new Tn(null,new In(n.b,16)),new s2n),new f2n),new h2n),new l2n),e.Vg()}function dRn(n,e,t){var i,r;if(n.c)eu(n.c,n.c.i+e),tu(n.c,n.c.j+t);else for(r=new C(n.b);r.a=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}n.C&&(t.b=n.C.b,t.c=n.C.c)}function T5(){T5=F,Nhn=new d7(Crn,0),KH=new d7(sR,1),_H=new d7("LINEAR_SEGMENTS",2),Y8=new d7("BRANDES_KOEPF",3),Z8=new d7(sVn,4)}function A5(){A5=F,fj=new hC(eS,0),wP=new hC(HB,1),gP=new hC(qB,2),hj=new hC(UB,3),fj.a=!1,wP.a=!0,gP.a=!1,hj.a=!0}function Vp(){Vp=F,uj=new fC(eS,0),cj=new fC(HB,1),oj=new fC(qB,2),sj=new fC(UB,3),uj.a=!1,cj.a=!0,oj.a=!1,sj.a=!0}function Wp(n,e,t,i){var r;return t>=0?n.Sh(e,t,i):(n.Ph()&&(i=(r=n.Fh(),r>=0?n.Ah(i):n.Ph().Th(n,-1-r,null,i))),n.Ch(e,t,i))}function fZ(n,e){switch(e){case 7:!n.e&&(n.e=new Nn(Vt,n,7,4)),me(n.e);return;case 8:!n.d&&(n.d=new Nn(Vt,n,8,5)),me(n.d);return}JY(n,e)}function ht(n,e,t){return t==null?(!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),VT(n.o,e)):(!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),Vk(n.o,e,t)),n}function pRn(n,e){Dn();var t,i,r,c;for(t=n,c=e,O(n,21)&&!O(e,21)&&(t=e,c=n),r=t.Kc();r.Ob();)if(i=r.Pb(),c.Hc(i))return!1;return!0}function j9e(n,e,t,i){if(e.at.b)return!0}return!1}function Tx(n,e){return Ai(n)?!!iQn[e]:n.Sm?!!n.Sm[e]:$b(n)?!!tQn[e]:Nb(n)?!!eQn[e]:!1}function E9e(n){var e;e=n.a;do e=u(fe(new te(re(ji(e).a.Kc(),new En))),18).c.i,e.k==(Vn(),Mi)&&n.b.Fc(e);while(e.k==(Vn(),Mi));n.b=Qo(n.b)}function mRn(n,e){var t,i,r;for(r=n,i=new te(re(ji(e).a.Kc(),new En));pe(i);)t=u(fe(i),18),t.c.i.c&&(r=y.Math.max(r,t.c.i.c.p));return r}function C9e(n,e){var t,i,r;for(r=0,i=u(u(ot(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.d+t.b.Mf().b+t.d.a,i.Ob()&&(r+=n.w);return r}function M9e(n,e){var t,i,r;for(r=0,i=u(u(ot(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.b+t.b.Mf().a+t.d.c,i.Ob()&&(r+=n.w);return r}function vRn(n){var e,t,i,r;if(i=0,r=aw(n),r.c.length==0)return 1;for(t=new C(r);t.a=0?n.Lh(s,t,!0):H0(n,c,t)):u(c,69).wk().yk(n,n.hi(),r,t,i)}function P9e(n,e,t,i){var r,c;c=e.pf((qe(),R2))?u(e.of(R2),21):n.j,r=d5e(c),r!=(VA(),l_)&&(t&&!tZ(r)||bnn(aMe(n,r,i),e))}function I9e(n){switch(n.g){case 1:return N0(),rj;case 3:return N0(),ij;case 2:return N0(),d_;case 4:return N0(),a_;default:return null}}function O9e(n,e,t){if(n.e)switch(n.b){case 1:yge(n.c,e,t);break;case 0:jge(n.c,e,t)}else KDn(n.c,e,t);n.a[e.p][t.p]=n.c.i,n.a[t.p][e.p]=n.c.e}function kRn(n){var e,t;if(n==null)return null;for(t=K(Qh,J,199,n.length,0,2),e=0;e=0)return r;if(n.ol()){for(i=0;i=r)throw M(new Kb(e,r));if(n.Si()&&(i=n.dd(t),i>=0&&i!=e))throw M(new Gn(Vy));return n.Xi(e,t)}function hZ(n,e){if(this.a=u(Se(n),253),this.b=u(Se(e),253),n.Ed(e)>0||n==(dD(),_K)||e==(bD(),HK))throw M(new Gn("Invalid range: "+qDn(n,e)))}function yRn(n){var e,t;for(this.b=new Z,this.c=n,this.a=!1,t=new C(n.a);t.a0),(e&-e)==e)return wi(e*to(n,31)*4656612873077393e-25);do t=to(n,31),i=t%e;while(t-i+(e-1)<0);return wi(i)}function F9e(n,e,t){switch(t.g){case 1:n.a=e.a/2,n.b=0;break;case 2:n.a=e.a,n.b=e.b/2;break;case 3:n.a=e.a/2,n.b=e.b;break;case 4:n.a=0,n.b=e.b/2}}function qk(n,e,t,i){var r,c;for(r=e;r1&&(c=L9e(n,e)),c}function CRn(n){var e;return e=$(R(z(n,(qe(),Qj))))*y.Math.sqrt((!n.a&&(n.a=new q(Qe,n,10,11)),n.a).i),new V(e,e/$(R(z(n,rO))))}function Sx(n){var e;return n.f&&n.f.Vh()&&(e=u(n.f,54),n.f=u(na(n,e),84),n.f!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,9,8,e,n.f))),n.f}function Px(n){var e;return n.i&&n.i.Vh()&&(e=u(n.i,54),n.i=u(na(n,e),84),n.i!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,9,7,e,n.i))),n.i}function br(n){var e;return n.b&&n.b.Db&64&&(e=n.b,n.b=u(na(n,e),19),n.b!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,9,21,e,n.b))),n.b}function uA(n,e){var t,i,r;n.d==null?(++n.e,++n.f):(i=e.Bi(),uTe(n,n.f+1),r=(i&et)%n.d.length,t=n.d[r],!t&&(t=n.d[r]=n.dk()),t.Fc(e),++n.f)}function dZ(n,e,t){var i;return e.tk()?!1:e.Ik()!=-2?(i=e.ik(),i==null?t==null:rt(i,t)):e.qk()==n.e.Dh()&&t==null}function oA(){var n;Co(16,$zn),n=sxn(16),this.b=K(UK,Cy,303,n,0,1),this.c=K(UK,Cy,303,n,0,1),this.a=null,this.e=null,this.i=0,this.f=n-1,this.g=0}function Tl(n){vV.call(this),this.k=(Vn(),zt),this.j=(Co(6,mw),new Gc(6)),this.b=(Co(2,mw),new Gc(2)),this.d=new sD,this.f=new nz,this.a=n}function R9e(n){var e,t;n.c.length<=1||(e=Sqn(n,(tn(),ae)),w_n(n,u(e.a,17).a,u(e.b,17).a),t=Sqn(n,Wn),w_n(n,u(t.a,17).a,u(t.b,17).a))}function K9e(n,e,t){var i,r;for(r=n.a.b,i=r.c.length;i102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function Nx(n,e){if(n==null)throw M(new sp("null key in entry: null="+e));if(e==null)throw M(new sp("null value in entry: "+n+"=null"))}function q9e(n,e){for(var t,i;n.Ob();)if(!e.Ob()||(t=n.Pb(),i=e.Pb(),!(x(t)===x(i)||t!=null&&rt(t,i))))return!1;return!e.Ob()}function ARn(n,e){var t;return t=S(T(Pi,1),Tr,28,15,[Z$(n.a[0],e),Z$(n.a[1],e),Z$(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function SRn(n,e){var t;return t=S(T(Pi,1),Tr,28,15,[$T(n.a[0],e),$T(n.a[1],e),$T(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function wZ(n,e,t){Ep(u(v(e,(cn(),Kt)),101))||(PJ(n,e,h1(e,t)),PJ(n,e,h1(e,(tn(),ae))),PJ(n,e,h1(e,Xn)),Dn(),Yt(e.j,new N7n(n)))}function PRn(n){var e,t;for(n.c||sOe(n),t=new Mu,e=new C(n.a),E(e);e.a0&&(zn(0,e.length),e.charCodeAt(0)==43)?(zn(1,e.length+1),e.substr(1)):e))}function i7e(n){var e;return n==null?null:new H1((e=Fc(n,!0),e.length>0&&(zn(0,e.length),e.charCodeAt(0)==43)?(zn(1,e.length+1),e.substr(1)):e))}function pZ(n,e,t,i,r,c,s,f){var h,l;i&&(h=i.a[0],h&&pZ(n,e,t,h,r,c,s,f),qx(n,t,i.d,r,c,s,f)&&e.Fc(i),l=i.a[1],l&&pZ(n,e,t,l,r,c,s,f))}function Rg(n,e,t){try{return o0(C$(n,e,t),1)}catch(i){throw i=It(i),O(i,333)?M(new Ir(GB+n.o+"*"+n.p+zB+e+ur+t+XB)):M(i)}}function NRn(n,e,t){try{return o0(C$(n,e,t),0)}catch(i){throw i=It(i),O(i,333)?M(new Ir(GB+n.o+"*"+n.p+zB+e+ur+t+XB)):M(i)}}function $Rn(n,e,t){try{return o0(C$(n,e,t),2)}catch(i){throw i=It(i),O(i,333)?M(new Ir(GB+n.o+"*"+n.p+zB+e+ur+t+XB)):M(i)}}function xRn(n,e){if(n.g==-1)throw M(new Cu);n.Xj();try{n.d.hd(n.g,e),n.f=n.d.j}catch(t){throw t=It(t),O(t,77)?M(new Bo):M(t)}}function r7e(n){var e,t,i,r,c;for(i=new C(n.b);i.ac&&$t(e,c,null),e}function c7e(n,e){var t,i;if(i=n.gc(),e==null){for(t=0;t0&&(h+=r),l[a]=s,s+=f*(h+i)}function BRn(n){var e,t,i;for(i=n.f,n.n=K(Pi,Tr,28,i,15,1),n.d=K(Pi,Tr,28,i,15,1),e=0;e0?n.c:0),++r;n.b=i,n.d=c}function qRn(n,e){var t;return t=S(T(Pi,1),Tr,28,15,[aZ(n,(bf(),bc),e),aZ(n,Wc,e),aZ(n,wc,e)]),n.f&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function d7e(n,e,t){var i;try{xA(n,e+n.j,t+n.k,!1,!0)}catch(r){throw r=It(r),O(r,77)?(i=r,M(new Ir(i.g+iS+e+ur+t+")."))):M(r)}}function b7e(n,e,t){var i;try{xA(n,e+n.j,t+n.k,!0,!1)}catch(r){throw r=It(r),O(r,77)?(i=r,M(new Ir(i.g+iS+e+ur+t+")."))):M(r)}}function URn(n){var e;kt(n,(cn(),ab))&&(e=u(v(n,ab),21),e.Hc((lw(),Js))?(e.Mc(Js),e.Fc(Qs)):e.Hc(Qs)&&(e.Mc(Qs),e.Fc(Js)))}function GRn(n){var e;kt(n,(cn(),ab))&&(e=u(v(n,ab),21),e.Hc((lw(),Zs))?(e.Mc(Zs),e.Fc(Cs)):e.Hc(Cs)&&(e.Mc(Cs),e.Fc(Zs)))}function Kx(n,e,t,i){var r,c,s,f;return n.a==null&&gje(n,e),s=e.b.j.c.length,c=t.d.p,f=i.d.p,r=f-1,r<0&&(r=s-1),c<=r?n.a[r]-n.a[c]:n.a[s-1]-n.a[c]+n.a[r]}function w7e(n){var e,t;if(!n.b)for(n.b=RM(u(n.f,27).kh().i),t=new ne(u(n.f,27).kh());t.e!=t.i.gc();)e=u(ce(t),135),nn(n.b,new pD(e));return n.b}function g7e(n){var e,t;if(!n.e)for(n.e=RM(mN(u(n.f,27)).i),t=new ne(mN(u(n.f,27)));t.e!=t.i.gc();)e=u(ce(t),123),nn(n.e,new Bkn(e));return n.e}function zRn(n){var e,t;if(!n.a)for(n.a=RM(AM(u(n.f,27)).i),t=new ne(AM(u(n.f,27)));t.e!=t.i.gc();)e=u(ce(t),27),nn(n.a,new ML(n,e));return n.a}function K0(n){var e;if(!n.C&&(n.D!=null||n.B!=null))if(e=iDe(n),e)n.hl(e);else try{n.hl(null)}catch(t){if(t=It(t),!O(t,63))throw M(t)}return n.C}function p7e(n){switch(n.q.g){case 5:gKn(n,(tn(),Xn)),gKn(n,ae);break;case 4:mGn(n,(tn(),Xn)),mGn(n,ae);break;default:y_n(n,(tn(),Xn)),y_n(n,ae)}}function m7e(n){switch(n.q.g){case 5:pKn(n,(tn(),Zn)),pKn(n,Wn);break;case 4:vGn(n,(tn(),Zn)),vGn(n,Wn);break;default:j_n(n,(tn(),Zn)),j_n(n,Wn)}}function Kg(n,e){var t,i,r;for(r=new Li,i=n.Kc();i.Ob();)t=u(i.Pb(),36),Sm(t,r.a,0),r.a+=t.f.a+e,r.b=y.Math.max(r.b,t.f.b);return r.b>0&&(r.b+=e),r}function hA(n,e){var t,i,r;for(r=new Li,i=n.Kc();i.Ob();)t=u(i.Pb(),36),Sm(t,0,r.b),r.b+=t.f.b+e,r.a=y.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=e),r}function XRn(n){var e,t,i;for(i=et,t=new C(n.a);t.a>16==6?n.Cb.Th(n,5,jf,e):(i=br(u($n((t=u(Un(n,16),29),t||n.ii()),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function v7e(n){O4();var e=n.e;if(e&&e.stack){var t=e.stack,i=e+` `;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(` diff --git a/starter/src/main/resources/templates/notebase/assets/ganttDiagram-c361ad54-XfGTrVgm.js b/deploy/server/notebase/assets/ganttDiagram-c361ad54-CWs-elUl.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/ganttDiagram-c361ad54-XfGTrVgm.js rename to deploy/server/notebase/assets/ganttDiagram-c361ad54-CWs-elUl.js index 7280b9d322..3cbd2980c3 100644 --- a/starter/src/main/resources/templates/notebase/assets/ganttDiagram-c361ad54-XfGTrVgm.js +++ b/deploy/server/notebase/assets/ganttDiagram-c361ad54-CWs-elUl.js @@ -1,4 +1,4 @@ -import{H as Re,I as ze,R as Be,J as qe,K as bn,L as $t,M as vn,c as wt,s as xn,g as wn,A as Cn,B as Dn,b as Mn,a as _n,C as Sn,m as Un,l as Xt,h as Rt,i as Fn,j as En,y as An}from"./mermaid.core-BajzCmnv.js";import{m as K,y as In,z as Ln,A as Yn}from"./index-CLWgAZNI.js";import{b as Wn,t as _e,c as Nn,a as Hn,l as On}from"./linear-DTRuWJOk.js";import{i as Vn}from"./init-Gi6I4Gst.js";function Pn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function zn(t){return t}var Bt=1,te=2,ue=3,zt=4,Se=1e-6;function Bn(t){return"translate("+t+",0)"}function qn(t){return"translate(0,"+t+")"}function Zn(t){return e=>+t(e)}function Xn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function jn(){return!this.__axis}function Ze(t,e){var n=[],r=null,i=null,s=6,a=6,D=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,x=t===Bt||t===zt?-1:1,T=t===zt||t===te?"x":"y",I=t===Bt||t===ue?Bn:qn;function w(y){var R=r??(e.ticks?e.ticks.apply(e,n):e.domain()),E=i??(e.tickFormat?e.tickFormat.apply(e,n):zn),tt=Math.max(s,0)+D,nt=e.range(),et=+nt[0]+S,q=+nt[nt.length-1]+S,Z=(e.bandwidth?Xn:Zn)(e.copy(),S),$=y.selection?y.selection():y,p=$.selectAll(".domain").data([null]),O=$.selectAll(".tick").data(R,e).order(),k=O.exit(),U=O.enter().append("g").attr("class","tick"),_=O.select("line"),b=O.select("text");p=p.merge(p.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(U),_=_.merge(U.append("line").attr("stroke","currentColor").attr(T+"2",x*s)),b=b.merge(U.append("text").attr("fill","currentColor").attr(T,x*tt).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),y!==$&&(p=p.transition(y),O=O.transition(y),_=_.transition(y),b=b.transition(y),k=k.transition(y).attr("opacity",Se).attr("transform",function(c){return isFinite(c=Z(c))?I(c+S):this.getAttribute("transform")}),U.attr("opacity",Se).attr("transform",function(c){var d=this.parentNode.__axis;return I((d&&isFinite(d=d(c))?d:Z(c))+S)})),k.remove(),p.attr("d",t===zt||t===te?a?"M"+x*a+","+et+"H"+S+"V"+q+"H"+x*a:"M"+S+","+et+"V"+q:a?"M"+et+","+x*a+"V"+S+"H"+q+"V"+x*a:"M"+et+","+S+"H"+q),O.attr("opacity",1).attr("transform",function(c){return I(Z(c)+S)}),_.attr(T+"2",x*s),b.attr(T,x*tt).text(E),$.filter(jn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===zt?"end":"middle"),$.each(function(){this.__axis=Z})}return w.scale=function(y){return arguments.length?(e=y,w):e},w.ticks=function(){return n=Array.from(arguments),w},w.tickArguments=function(y){return arguments.length?(n=y==null?[]:Array.from(y),w):n.slice()},w.tickValues=function(y){return arguments.length?(r=y==null?null:Array.from(y),w):r&&r.slice()},w.tickFormat=function(y){return arguments.length?(i=y,w):i},w.tickSize=function(y){return arguments.length?(s=a=+y,w):s},w.tickSizeInner=function(y){return arguments.length?(s=+y,w):s},w.tickSizeOuter=function(y){return arguments.length?(a=+y,w):a},w.tickPadding=function(y){return arguments.length?(D=+y,w):D},w.offset=function(y){return arguments.length?(S=+y,w):S},w}function Qn(t){return Ze(Bt,t)}function Jn(t){return Ze(ue,t)}const Gn=Math.PI/180,Kn=180/Math.PI,jt=18,Xe=.96422,je=1,Qe=.82521,Je=4/29,Ct=6/29,Ge=3*Ct*Ct,$n=Ct*Ct*Ct;function Ke(t){if(t instanceof st)return new st(t.l,t.a,t.b,t.opacity);if(t instanceof ct)return $e(t);t instanceof Be||(t=bn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/je),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/Xe),a=ee((.0139322*e+.0971045*n+.7141733*r)/Qe)),new st(116*i-16,500*(s-i),200*(i-a),t.opacity)}function tr(t,e,n,r){return arguments.length===1?Ke(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Re(st,tr,ze(qe,{brighter(t){return new st(this.l+jt*(t??1),this.a,this.b,this.opacity)},darker(t){return new st(this.l-jt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Xe*ne(e),t=je*ne(t),n=Qe*ne(n),new Be(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>$n?Math.pow(t,1/3):t/Ge+Je}function ne(t){return t>Ct?t*t*t:Ge*(t-Je)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function er(t){if(t instanceof ct)return new ct(t.h,t.c,t.l,t.opacity);if(t instanceof st||(t=Ke(t)),t.a===0&&t.b===0)return new ct(NaN,0(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),D=i.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,D)=>{const S=[];if(s=i.ceil(s),D=D==null?1:Math.floor(D),!(s0))return S;let x;do S.push(x=new Date(+s)),e(s,D),t(s);while(xj(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,D)=>{if(a>=a)if(D<0)for(;++D<=0;)for(;e(a,-1),!s(a););else for(;--D>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Mt=j(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Mt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?j(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Mt);Mt.range;const lt=1e3,rt=lt*60,ut=rt*60,ft=ut*24,ye=ft*7,Ue=ft*30,oe=ft*365,dt=j(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getUTCSeconds());dt.range;const It=j(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());It.range;const sr=j(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());sr.range;const Lt=j(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getHours());Lt.range;const ar=j(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCHours());ar.range;const yt=j(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/ft,t=>t.getDate()-1);yt.range;const ke=j(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>t.getUTCDate()-1);ke.range;const or=j(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>Math.floor(t/ft));or.range;function Tt(t){return j(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/ye)}const Nt=Tt(0),Yt=Tt(1),tn=Tt(2),en=Tt(3),kt=Tt(4),nn=Tt(5),rn=Tt(6);Nt.range;Yt.range;tn.range;en.range;kt.range;nn.range;rn.range;function bt(t){return j(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ye)}const sn=bt(0),Qt=bt(1),cr=bt(2),lr=bt(3),_t=bt(4),ur=bt(5),fr=bt(6);sn.range;Qt.range;cr.range;lr.range;_t.range;ur.range;fr.range;const Wt=j(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Wt.range;const hr=j(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());hr.range;const ht=j(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ht.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:j(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});ht.range;const pt=j(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:j(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function dr(t,e,n,r,i,s){const a=[[dt,1,lt],[dt,5,5*lt],[dt,15,15*lt],[dt,30,30*lt],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ut],[i,3,3*ut],[i,6,6*ut],[i,12,12*ut],[r,1,ft],[r,2,2*ft],[n,1,ye],[e,1,Ue],[e,3,3*Ue],[t,1,oe]];function D(x,T,I){const w=Ttt).right(a,w);if(y===a.length)return t.every(_e(x/oe,T/oe,I));if(y===0)return Mt.every(Math.max(_e(x,T,I),1));const[R,E]=a[w/a[y-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(H=le(Ft(l.y,0,1)),B=H.getUTCDay(),H=B>4||B===0?Qt.ceil(H):Qt(H),H=ke.offset(H,(l.V-1)*7),l.y=H.getUTCFullYear(),l.m=H.getUTCMonth(),l.d=H.getUTCDate()+(l.w+6)%7):(H=ce(Ft(l.y,0,1)),B=H.getDay(),H=B>4||B===0?Yt.ceil(H):Yt(H),H=yt.offset(H,(l.V-1)*7),l.y=H.getFullYear(),l.m=H.getMonth(),l.d=H.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),B="Z"in l?le(Ft(l.y,0,1)).getUTCDay():ce(Ft(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(B+5)%7:l.w+l.U*7-(B+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function k(g,F,v,l){for(var V=0,H=F.length,B=v.length,Q,G;V=B)return-1;if(Q=F.charCodeAt(V++),Q===37){if(Q=F.charAt(V++),G=$[Q in Fe?F.charAt(V++):Q],!G||(l=G(g,v,l))<0)return-1}else if(Q!=v.charCodeAt(l++))return-1}return l}function U(g,F,v){var l=x.exec(F.slice(v));return l?(g.p=T.get(l[0].toLowerCase()),v+l[0].length):-1}function _(g,F,v){var l=y.exec(F.slice(v));return l?(g.w=R.get(l[0].toLowerCase()),v+l[0].length):-1}function b(g,F,v){var l=I.exec(F.slice(v));return l?(g.w=w.get(l[0].toLowerCase()),v+l[0].length):-1}function c(g,F,v){var l=nt.exec(F.slice(v));return l?(g.m=et.get(l[0].toLowerCase()),v+l[0].length):-1}function d(g,F,v){var l=E.exec(F.slice(v));return l?(g.m=tt.get(l[0].toLowerCase()),v+l[0].length):-1}function m(g,F,v){return k(g,e,F,v)}function u(g,F,v){return k(g,n,F,v)}function C(g,F,v){return k(g,r,F,v)}function o(g){return a[g.getDay()]}function z(g){return s[g.getDay()]}function h(g){return S[g.getMonth()]}function f(g){return D[g.getMonth()]}function M(g){return i[+(g.getHours()>=12)]}function P(g){return 1+~~(g.getMonth()/3)}function L(g){return a[g.getUTCDay()]}function W(g){return s[g.getUTCDay()]}function A(g){return S[g.getUTCMonth()]}function N(g){return D[g.getUTCMonth()]}function mt(g){return i[+(g.getUTCHours()>=12)]}function gt(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var F=p(g+="",q);return F.toString=function(){return g},F},parse:function(g){var F=O(g+="",!1);return F.toString=function(){return g},F},utcFormat:function(g){var F=p(g+="",Z);return F.toString=function(){return g},F},utcParse:function(g){var F=O(g+="",!0);return F.toString=function(){return g},F}}}var Fe={"-":"",_:" ",0:"0"},J=/^\s*\d+/,kr=/^%/,pr=/[\\^$*+?|[\]().{}]/g;function Y(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function br(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function vr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function xr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=J.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Dr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Mr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function _r(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ie(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Sr(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Le(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=J.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ir(t,e,n){var r=kr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lr(t,e,n){var r=J.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=J.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ye(t,e){return Y(t.getDate(),e,2)}function Wr(t,e){return Y(t.getHours(),e,2)}function Nr(t,e){return Y(t.getHours()%12||12,e,2)}function Hr(t,e){return Y(1+yt.count(ht(t),t),e,3)}function an(t,e){return Y(t.getMilliseconds(),e,3)}function Or(t,e){return an(t,e)+"000"}function Vr(t,e){return Y(t.getMonth()+1,e,2)}function Pr(t,e){return Y(t.getMinutes(),e,2)}function Rr(t,e){return Y(t.getSeconds(),e,2)}function zr(t){var e=t.getDay();return e===0?7:e}function Br(t,e){return Y(Nt.count(ht(t)-1,t),e,2)}function on(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function qr(t,e){return t=on(t),Y(kt.count(ht(t),t)+(ht(t).getDay()===4),e,2)}function Zr(t){return t.getDay()}function Xr(t,e){return Y(Yt.count(ht(t)-1,t),e,2)}function jr(t,e){return Y(t.getFullYear()%100,e,2)}function Qr(t,e){return t=on(t),Y(t.getFullYear()%100,e,2)}function Jr(t,e){return Y(t.getFullYear()%1e4,e,4)}function Gr(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),Y(t.getFullYear()%1e4,e,4)}function Kr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Y(e/60|0,"0",2)+Y(e%60,"0",2)}function We(t,e){return Y(t.getUTCDate(),e,2)}function $r(t,e){return Y(t.getUTCHours(),e,2)}function ti(t,e){return Y(t.getUTCHours()%12||12,e,2)}function ei(t,e){return Y(1+ke.count(pt(t),t),e,3)}function cn(t,e){return Y(t.getUTCMilliseconds(),e,3)}function ni(t,e){return cn(t,e)+"000"}function ri(t,e){return Y(t.getUTCMonth()+1,e,2)}function ii(t,e){return Y(t.getUTCMinutes(),e,2)}function si(t,e){return Y(t.getUTCSeconds(),e,2)}function ai(t){var e=t.getUTCDay();return e===0?7:e}function oi(t,e){return Y(sn.count(pt(t)-1,t),e,2)}function ln(t){var e=t.getUTCDay();return e>=4||e===0?_t(t):_t.ceil(t)}function ci(t,e){return t=ln(t),Y(_t.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function li(t){return t.getUTCDay()}function ui(t,e){return Y(Qt.count(pt(t)-1,t),e,2)}function fi(t,e){return Y(t.getUTCFullYear()%100,e,2)}function hi(t,e){return t=ln(t),Y(t.getUTCFullYear()%100,e,2)}function di(t,e){return Y(t.getUTCFullYear()%1e4,e,4)}function mi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?_t(t):_t.ceil(t),Y(t.getUTCFullYear()%1e4,e,4)}function gi(){return"+0000"}function Ne(){return"%"}function He(t){return+t}function Oe(t){return Math.floor(+t/1e3)}var xt,Jt;yi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function yi(t){return xt=yr(t),Jt=xt.format,xt.parse,xt.utcFormat,xt.utcParse,xt}function ki(t){return new Date(t)}function pi(t){return t instanceof Date?+t:+new Date(+t)}function un(t,e,n,r,i,s,a,D,S,x){var T=Nn(),I=T.invert,w=T.domain,y=x(".%L"),R=x(":%S"),E=x("%I:%M"),tt=x("%I %p"),nt=x("%a %d"),et=x("%b %d"),q=x("%B"),Z=x("%Y");function $(p){return(S(p)"u"&&(A.yylloc={});var gt=A.yylloc;o.push(gt);var g=A.options&&A.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function F(){var at;return at=u.pop()||A.lex()||L,typeof at!="number"&&(at instanceof Array&&(u=at,at=u.pop()),at=d.symbols_[at]||at),at}for(var v,l,V,H,B={},Q,G,Ut,Pt;;){if(l=m[m.length-1],this.defaultActions[l]?V=this.defaultActions[l]:((v===null||typeof v>"u")&&(v=F()),V=z[l]&&z[l][v]),typeof V>"u"||!V.length||!V[0]){var Kt="";Pt=[];for(Q in z[l])this.terminals_[Q]&&Q>P&&Pt.push("'"+this.terminals_[Q]+"'");A.showPosition?Kt="Parse error on line "+(f+1)+`: +import{H as Re,I as ze,R as Be,J as qe,K as bn,L as $t,M as vn,c as wt,s as xn,g as wn,A as Cn,B as Dn,b as Mn,a as _n,C as Sn,m as Un,l as Xt,h as Rt,i as Fn,j as En,y as An}from"./mermaid.core-DacimPk4.js";import{m as K,y as In,z as Ln,A as Yn}from"./index-bOgutTC1.js";import{b as Wn,t as _e,c as Nn,a as Hn,l as On}from"./linear-3xwamwH4.js";import{i as Vn}from"./init-Gi6I4Gst.js";function Pn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function zn(t){return t}var Bt=1,te=2,ue=3,zt=4,Se=1e-6;function Bn(t){return"translate("+t+",0)"}function qn(t){return"translate(0,"+t+")"}function Zn(t){return e=>+t(e)}function Xn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function jn(){return!this.__axis}function Ze(t,e){var n=[],r=null,i=null,s=6,a=6,D=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,x=t===Bt||t===zt?-1:1,T=t===zt||t===te?"x":"y",I=t===Bt||t===ue?Bn:qn;function w(y){var R=r??(e.ticks?e.ticks.apply(e,n):e.domain()),E=i??(e.tickFormat?e.tickFormat.apply(e,n):zn),tt=Math.max(s,0)+D,nt=e.range(),et=+nt[0]+S,q=+nt[nt.length-1]+S,Z=(e.bandwidth?Xn:Zn)(e.copy(),S),$=y.selection?y.selection():y,p=$.selectAll(".domain").data([null]),O=$.selectAll(".tick").data(R,e).order(),k=O.exit(),U=O.enter().append("g").attr("class","tick"),_=O.select("line"),b=O.select("text");p=p.merge(p.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(U),_=_.merge(U.append("line").attr("stroke","currentColor").attr(T+"2",x*s)),b=b.merge(U.append("text").attr("fill","currentColor").attr(T,x*tt).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),y!==$&&(p=p.transition(y),O=O.transition(y),_=_.transition(y),b=b.transition(y),k=k.transition(y).attr("opacity",Se).attr("transform",function(c){return isFinite(c=Z(c))?I(c+S):this.getAttribute("transform")}),U.attr("opacity",Se).attr("transform",function(c){var d=this.parentNode.__axis;return I((d&&isFinite(d=d(c))?d:Z(c))+S)})),k.remove(),p.attr("d",t===zt||t===te?a?"M"+x*a+","+et+"H"+S+"V"+q+"H"+x*a:"M"+S+","+et+"V"+q:a?"M"+et+","+x*a+"V"+S+"H"+q+"V"+x*a:"M"+et+","+S+"H"+q),O.attr("opacity",1).attr("transform",function(c){return I(Z(c)+S)}),_.attr(T+"2",x*s),b.attr(T,x*tt).text(E),$.filter(jn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===zt?"end":"middle"),$.each(function(){this.__axis=Z})}return w.scale=function(y){return arguments.length?(e=y,w):e},w.ticks=function(){return n=Array.from(arguments),w},w.tickArguments=function(y){return arguments.length?(n=y==null?[]:Array.from(y),w):n.slice()},w.tickValues=function(y){return arguments.length?(r=y==null?null:Array.from(y),w):r&&r.slice()},w.tickFormat=function(y){return arguments.length?(i=y,w):i},w.tickSize=function(y){return arguments.length?(s=a=+y,w):s},w.tickSizeInner=function(y){return arguments.length?(s=+y,w):s},w.tickSizeOuter=function(y){return arguments.length?(a=+y,w):a},w.tickPadding=function(y){return arguments.length?(D=+y,w):D},w.offset=function(y){return arguments.length?(S=+y,w):S},w}function Qn(t){return Ze(Bt,t)}function Jn(t){return Ze(ue,t)}const Gn=Math.PI/180,Kn=180/Math.PI,jt=18,Xe=.96422,je=1,Qe=.82521,Je=4/29,Ct=6/29,Ge=3*Ct*Ct,$n=Ct*Ct*Ct;function Ke(t){if(t instanceof st)return new st(t.l,t.a,t.b,t.opacity);if(t instanceof ct)return $e(t);t instanceof Be||(t=bn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/je),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/Xe),a=ee((.0139322*e+.0971045*n+.7141733*r)/Qe)),new st(116*i-16,500*(s-i),200*(i-a),t.opacity)}function tr(t,e,n,r){return arguments.length===1?Ke(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Re(st,tr,ze(qe,{brighter(t){return new st(this.l+jt*(t??1),this.a,this.b,this.opacity)},darker(t){return new st(this.l-jt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Xe*ne(e),t=je*ne(t),n=Qe*ne(n),new Be(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>$n?Math.pow(t,1/3):t/Ge+Je}function ne(t){return t>Ct?t*t*t:Ge*(t-Je)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function er(t){if(t instanceof ct)return new ct(t.h,t.c,t.l,t.opacity);if(t instanceof st||(t=Ke(t)),t.a===0&&t.b===0)return new ct(NaN,0(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),D=i.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,D)=>{const S=[];if(s=i.ceil(s),D=D==null?1:Math.floor(D),!(s0))return S;let x;do S.push(x=new Date(+s)),e(s,D),t(s);while(xj(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,D)=>{if(a>=a)if(D<0)for(;++D<=0;)for(;e(a,-1),!s(a););else for(;--D>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Mt=j(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Mt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?j(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Mt);Mt.range;const lt=1e3,rt=lt*60,ut=rt*60,ft=ut*24,ye=ft*7,Ue=ft*30,oe=ft*365,dt=j(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getUTCSeconds());dt.range;const It=j(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());It.range;const sr=j(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());sr.range;const Lt=j(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getHours());Lt.range;const ar=j(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCHours());ar.range;const yt=j(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/ft,t=>t.getDate()-1);yt.range;const ke=j(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>t.getUTCDate()-1);ke.range;const or=j(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>Math.floor(t/ft));or.range;function Tt(t){return j(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/ye)}const Nt=Tt(0),Yt=Tt(1),tn=Tt(2),en=Tt(3),kt=Tt(4),nn=Tt(5),rn=Tt(6);Nt.range;Yt.range;tn.range;en.range;kt.range;nn.range;rn.range;function bt(t){return j(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ye)}const sn=bt(0),Qt=bt(1),cr=bt(2),lr=bt(3),_t=bt(4),ur=bt(5),fr=bt(6);sn.range;Qt.range;cr.range;lr.range;_t.range;ur.range;fr.range;const Wt=j(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Wt.range;const hr=j(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());hr.range;const ht=j(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ht.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:j(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});ht.range;const pt=j(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:j(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function dr(t,e,n,r,i,s){const a=[[dt,1,lt],[dt,5,5*lt],[dt,15,15*lt],[dt,30,30*lt],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ut],[i,3,3*ut],[i,6,6*ut],[i,12,12*ut],[r,1,ft],[r,2,2*ft],[n,1,ye],[e,1,Ue],[e,3,3*Ue],[t,1,oe]];function D(x,T,I){const w=Ttt).right(a,w);if(y===a.length)return t.every(_e(x/oe,T/oe,I));if(y===0)return Mt.every(Math.max(_e(x,T,I),1));const[R,E]=a[w/a[y-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(H=le(Ft(l.y,0,1)),B=H.getUTCDay(),H=B>4||B===0?Qt.ceil(H):Qt(H),H=ke.offset(H,(l.V-1)*7),l.y=H.getUTCFullYear(),l.m=H.getUTCMonth(),l.d=H.getUTCDate()+(l.w+6)%7):(H=ce(Ft(l.y,0,1)),B=H.getDay(),H=B>4||B===0?Yt.ceil(H):Yt(H),H=yt.offset(H,(l.V-1)*7),l.y=H.getFullYear(),l.m=H.getMonth(),l.d=H.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),B="Z"in l?le(Ft(l.y,0,1)).getUTCDay():ce(Ft(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(B+5)%7:l.w+l.U*7-(B+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function k(g,F,v,l){for(var V=0,H=F.length,B=v.length,Q,G;V=B)return-1;if(Q=F.charCodeAt(V++),Q===37){if(Q=F.charAt(V++),G=$[Q in Fe?F.charAt(V++):Q],!G||(l=G(g,v,l))<0)return-1}else if(Q!=v.charCodeAt(l++))return-1}return l}function U(g,F,v){var l=x.exec(F.slice(v));return l?(g.p=T.get(l[0].toLowerCase()),v+l[0].length):-1}function _(g,F,v){var l=y.exec(F.slice(v));return l?(g.w=R.get(l[0].toLowerCase()),v+l[0].length):-1}function b(g,F,v){var l=I.exec(F.slice(v));return l?(g.w=w.get(l[0].toLowerCase()),v+l[0].length):-1}function c(g,F,v){var l=nt.exec(F.slice(v));return l?(g.m=et.get(l[0].toLowerCase()),v+l[0].length):-1}function d(g,F,v){var l=E.exec(F.slice(v));return l?(g.m=tt.get(l[0].toLowerCase()),v+l[0].length):-1}function m(g,F,v){return k(g,e,F,v)}function u(g,F,v){return k(g,n,F,v)}function C(g,F,v){return k(g,r,F,v)}function o(g){return a[g.getDay()]}function z(g){return s[g.getDay()]}function h(g){return S[g.getMonth()]}function f(g){return D[g.getMonth()]}function M(g){return i[+(g.getHours()>=12)]}function P(g){return 1+~~(g.getMonth()/3)}function L(g){return a[g.getUTCDay()]}function W(g){return s[g.getUTCDay()]}function A(g){return S[g.getUTCMonth()]}function N(g){return D[g.getUTCMonth()]}function mt(g){return i[+(g.getUTCHours()>=12)]}function gt(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var F=p(g+="",q);return F.toString=function(){return g},F},parse:function(g){var F=O(g+="",!1);return F.toString=function(){return g},F},utcFormat:function(g){var F=p(g+="",Z);return F.toString=function(){return g},F},utcParse:function(g){var F=O(g+="",!0);return F.toString=function(){return g},F}}}var Fe={"-":"",_:" ",0:"0"},J=/^\s*\d+/,kr=/^%/,pr=/[\\^$*+?|[\]().{}]/g;function Y(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function br(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function vr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function xr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=J.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Dr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Mr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function _r(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ie(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Sr(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Le(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=J.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ir(t,e,n){var r=kr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lr(t,e,n){var r=J.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=J.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ye(t,e){return Y(t.getDate(),e,2)}function Wr(t,e){return Y(t.getHours(),e,2)}function Nr(t,e){return Y(t.getHours()%12||12,e,2)}function Hr(t,e){return Y(1+yt.count(ht(t),t),e,3)}function an(t,e){return Y(t.getMilliseconds(),e,3)}function Or(t,e){return an(t,e)+"000"}function Vr(t,e){return Y(t.getMonth()+1,e,2)}function Pr(t,e){return Y(t.getMinutes(),e,2)}function Rr(t,e){return Y(t.getSeconds(),e,2)}function zr(t){var e=t.getDay();return e===0?7:e}function Br(t,e){return Y(Nt.count(ht(t)-1,t),e,2)}function on(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function qr(t,e){return t=on(t),Y(kt.count(ht(t),t)+(ht(t).getDay()===4),e,2)}function Zr(t){return t.getDay()}function Xr(t,e){return Y(Yt.count(ht(t)-1,t),e,2)}function jr(t,e){return Y(t.getFullYear()%100,e,2)}function Qr(t,e){return t=on(t),Y(t.getFullYear()%100,e,2)}function Jr(t,e){return Y(t.getFullYear()%1e4,e,4)}function Gr(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),Y(t.getFullYear()%1e4,e,4)}function Kr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Y(e/60|0,"0",2)+Y(e%60,"0",2)}function We(t,e){return Y(t.getUTCDate(),e,2)}function $r(t,e){return Y(t.getUTCHours(),e,2)}function ti(t,e){return Y(t.getUTCHours()%12||12,e,2)}function ei(t,e){return Y(1+ke.count(pt(t),t),e,3)}function cn(t,e){return Y(t.getUTCMilliseconds(),e,3)}function ni(t,e){return cn(t,e)+"000"}function ri(t,e){return Y(t.getUTCMonth()+1,e,2)}function ii(t,e){return Y(t.getUTCMinutes(),e,2)}function si(t,e){return Y(t.getUTCSeconds(),e,2)}function ai(t){var e=t.getUTCDay();return e===0?7:e}function oi(t,e){return Y(sn.count(pt(t)-1,t),e,2)}function ln(t){var e=t.getUTCDay();return e>=4||e===0?_t(t):_t.ceil(t)}function ci(t,e){return t=ln(t),Y(_t.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function li(t){return t.getUTCDay()}function ui(t,e){return Y(Qt.count(pt(t)-1,t),e,2)}function fi(t,e){return Y(t.getUTCFullYear()%100,e,2)}function hi(t,e){return t=ln(t),Y(t.getUTCFullYear()%100,e,2)}function di(t,e){return Y(t.getUTCFullYear()%1e4,e,4)}function mi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?_t(t):_t.ceil(t),Y(t.getUTCFullYear()%1e4,e,4)}function gi(){return"+0000"}function Ne(){return"%"}function He(t){return+t}function Oe(t){return Math.floor(+t/1e3)}var xt,Jt;yi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function yi(t){return xt=yr(t),Jt=xt.format,xt.parse,xt.utcFormat,xt.utcParse,xt}function ki(t){return new Date(t)}function pi(t){return t instanceof Date?+t:+new Date(+t)}function un(t,e,n,r,i,s,a,D,S,x){var T=Nn(),I=T.invert,w=T.domain,y=x(".%L"),R=x(":%S"),E=x("%I:%M"),tt=x("%I %p"),nt=x("%a %d"),et=x("%b %d"),q=x("%B"),Z=x("%Y");function $(p){return(S(p)"u"&&(A.yylloc={});var gt=A.yylloc;o.push(gt);var g=A.options&&A.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function F(){var at;return at=u.pop()||A.lex()||L,typeof at!="number"&&(at instanceof Array&&(u=at,at=u.pop()),at=d.symbols_[at]||at),at}for(var v,l,V,H,B={},Q,G,Ut,Pt;;){if(l=m[m.length-1],this.defaultActions[l]?V=this.defaultActions[l]:((v===null||typeof v>"u")&&(v=F()),V=z[l]&&z[l][v]),typeof V>"u"||!V.length||!V[0]){var Kt="";Pt=[];for(Q in z[l])this.terminals_[Q]&&Q>P&&Pt.push("'"+this.terminals_[Q]+"'");A.showPosition?Kt="Parse error on line "+(f+1)+`: `+A.showPosition()+` Expecting `+Pt.join(", ")+", got '"+(this.terminals_[v]||v)+"'":Kt="Parse error on line "+(f+1)+": Unexpected "+(v==L?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(Kt,{text:A.match,token:this.terminals_[v]||v,line:A.yylineno,loc:gt,expected:Pt})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+l+", token: "+v);switch(V[0]){case 1:m.push(v),C.push(A.yytext),o.push(A.yylloc),m.push(V[1]),v=null,M=A.yyleng,h=A.yytext,f=A.yylineno,gt=A.yylloc;break;case 2:if(G=this.productions_[V[1]][1],B.$=C[C.length-G],B._$={first_line:o[o.length-(G||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(G||1)].first_column,last_column:o[o.length-1].last_column},g&&(B._$.range=[o[o.length-(G||1)].range[0],o[o.length-1].range[1]]),H=this.performAction.apply(B,[h,M,f,N.yy,V[1],C,o].concat(W)),typeof H<"u")return H;G&&(m=m.slice(0,-1*G*2),C=C.slice(0,-1*G),o=o.slice(0,-1*G)),m.push(this.productions_[V[1]][0]),C.push(B.$),o.push(B._$),Ut=z[m[m.length-2]][m[m.length-1]],m.push(Ut);break;case 3:return!0}}return!0}},U=function(){var b={EOF:1,parseError:function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},setInput:function(c,d){return this.yy=d||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},unput:function(c){var d=c.length,m=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(c){this.unput(this.match.slice(c))},pastInput:function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/gitGraphDiagram-72cf32ee-KzmtmPZb.js b/deploy/server/notebase/assets/gitGraphDiagram-72cf32ee-CkF7aqy_.js similarity index 99% rename from deploy/server/notebase/assets/gitGraphDiagram-72cf32ee-KzmtmPZb.js rename to deploy/server/notebase/assets/gitGraphDiagram-72cf32ee-CkF7aqy_.js index 6748821016..ed059ee556 100644 --- a/deploy/server/notebase/assets/gitGraphDiagram-72cf32ee-KzmtmPZb.js +++ b/deploy/server/notebase/assets/gitGraphDiagram-72cf32ee-CkF7aqy_.js @@ -1,4 +1,4 @@ -import{c as C,s as vt,g as Ct,a as Ot,b as Pt,A as Gt,B as At,l as B,j as D,C as St,h as It,y as Nt,F as Ht,G as Bt}from"./mermaid.core-BajzCmnv.js";import"./index-CLWgAZNI.js";var mt=function(){var r=function(A,o,u,d){for(u=u||{},d=A.length;d--;u[A[d]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],p=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],x=[7,13,19,21,23,24,26,28,31,37,40],y=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],R=[1,42],_=[1,41],b=[7,13,29,32,35,38,47],f=[1,55],k=[1,56],g=[1,57],E=[7,13,32,35,42,47],z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,d,s,T,t,X){var e=t.length-1;switch(T){case 2:return t[e];case 3:return t[e-1];case 4:return s.setDirection(t[e-3]),t[e-1];case 6:s.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:s.checkout(t[e]);break;case 22:s.branch(t[e]);break;case 23:s.branch(t[e-2],t[e]);break;case 24:s.cherryPick(t[e],"",void 0);break;case 25:s.cherryPick(t[e-2],"",void 0,t[e]);break;case 26:s.cherryPick(t[e-2],"",t[e]);break;case 27:s.cherryPick(t[e-4],"",t[e],t[e-2]);break;case 28:s.cherryPick(t[e-4],"",t[e-2],t[e]);break;case 29:s.cherryPick(t[e],"",t[e-2]);break;case 30:s.cherryPick(t[e],"","");break;case 31:s.cherryPick(t[e-2],"","");break;case 32:s.cherryPick(t[e-4],"","",t[e-2]);break;case 33:s.cherryPick(t[e-4],"","",t[e]);break;case 34:s.cherryPick(t[e-2],"",t[e-4],t[e]);break;case 35:s.cherryPick(t[e-2],"","",t[e]);break;case 36:s.merge(t[e],"","","");break;case 37:s.merge(t[e-2],t[e],"","");break;case 38:s.merge(t[e-2],"",t[e],"");break;case 39:s.merge(t[e-2],"","",t[e]);break;case 40:s.merge(t[e-4],t[e],"",t[e-2]);break;case 41:s.merge(t[e-4],"",t[e],t[e-2]);break;case 42:s.merge(t[e-4],"",t[e-2],t[e]);break;case 43:s.merge(t[e-4],t[e-2],t[e],"");break;case 44:s.merge(t[e-4],t[e-2],"",t[e]);break;case 45:s.merge(t[e-4],t[e],t[e-2],"");break;case 46:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 47:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 48:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 49:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 50:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 51:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 52:s.commit(t[e]);break;case 53:s.commit("","",s.commitType.NORMAL,t[e]);break;case 54:s.commit("","",t[e],"");break;case 55:s.commit("","",t[e],t[e-2]);break;case 56:s.commit("","",t[e-2],t[e]);break;case 57:s.commit("",t[e],s.commitType.NORMAL,"");break;case 58:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 59:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 60:s.commit("",t[e-2],t[e],"");break;case 61:s.commit("",t[e],t[e-2],"");break;case 62:s.commit("",t[e-4],t[e-2],t[e]);break;case 63:s.commit("",t[e-4],t[e],t[e-2]);break;case 64:s.commit("",t[e-2],t[e-4],t[e]);break;case 65:s.commit("",t[e],t[e-4],t[e-2]);break;case 66:s.commit("",t[e],t[e-2],t[e-4]);break;case 67:s.commit("",t[e-2],t[e],t[e-4]);break;case 68:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 69:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 70:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 71:s.commit(t[e-2],"",t[e],"");break;case 72:s.commit(t[e],"",t[e-2],"");break;case 73:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 74:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 75:s.commit(t[e-4],"",t[e-2],t[e]);break;case 76:s.commit(t[e-4],"",t[e],t[e-2]);break;case 77:s.commit(t[e-2],"",t[e-4],t[e]);break;case 78:s.commit(t[e],"",t[e-4],t[e-2]);break;case 79:s.commit(t[e],"",t[e-2],t[e-4]);break;case 80:s.commit(t[e-2],"",t[e],t[e-4]);break;case 81:s.commit(t[e-4],t[e],t[e-2],"");break;case 82:s.commit(t[e-4],t[e-2],t[e],"");break;case 83:s.commit(t[e-2],t[e],t[e-4],"");break;case 84:s.commit(t[e],t[e-2],t[e-4],"");break;case 85:s.commit(t[e],t[e-4],t[e-2],"");break;case 86:s.commit(t[e-2],t[e-4],t[e],"");break;case 87:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 88:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 89:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 90:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 91:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 92:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 93:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 94:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 95:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 96:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 97:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 98:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 99:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 100:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 101:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 102:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 103:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 104:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 105:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 106:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 107:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 108:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 109:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 110:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 111:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 112:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 113:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 114:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 115:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 116:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 117:this.$="";break;case 118:this.$=t[e];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:p},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:p},{8:[1,15]},r(x,[2,9],{11:16,12:[1,17]}),r(y,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:p},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(y,[2,7]),{1:[2,3]},{7:[1,36]},r(x,[2,10]),{4:37,7:l,13:h,47:i},r(x,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:R,46:_},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:R,46:_},{32:[1,50],35:[1,51]},{27:52,33:R,46:_},{1:[2,4]},r(x,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(b,[2,122]),r(b,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:k,45:g},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(E,[2,119]),r(E,[2,120]),r(E,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:k,45:g},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:k,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:k,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:k,45:g},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:k,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:k,45:g},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:k,45:g},{33:[1,148]},{39:149,43:f,44:k,45:g},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:k,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:k,45:g},{33:[1,162]},{39:163,43:f,44:k,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:k,45:g},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:k,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:k,45:g},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:k,45:g},{33:[1,215]},{39:216,43:f,44:k,45:g},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:k,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:k,45:g},{33:[1,229]},{39:230,43:f,44:k,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:k,45:g},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(u.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=u,d}},parse:function(o){var u=this,d=[0],s=[],T=[null],t=[],X=this.table,e="",rt=0,ft=0,wt=2,pt=1,Lt=t.slice.call(arguments,1),O=Object.create(this.lexer),F={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(F.yy[ct]=this.yy[ct]);O.setInput(o,F.yy),F.yy.lexer=O,F.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var ot=O.yylloc;t.push(ot);var Rt=O.options&&O.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var q;return q=s.pop()||O.lex()||pt,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=u.symbols_[q]||q),q}for(var N,K,V,lt,J={},it,j,bt,st;;){if(K=d[d.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((N===null||typeof N>"u")&&(N=Mt()),V=X[K]&&X[K][N]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>wt&&st.push("'"+this.terminals_[it]+"'");O.showPosition?ht="Parse error on line "+(rt+1)+`: +import{c as C,s as vt,g as Ct,a as Ot,b as Pt,A as Gt,B as At,l as B,j as D,C as St,h as It,y as Nt,F as Ht,G as Bt}from"./mermaid.core-DacimPk4.js";import"./index-bOgutTC1.js";var mt=function(){var r=function(A,o,u,d){for(u=u||{},d=A.length;d--;u[A[d]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],p=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],x=[7,13,19,21,23,24,26,28,31,37,40],y=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],R=[1,42],_=[1,41],b=[7,13,29,32,35,38,47],f=[1,55],k=[1,56],g=[1,57],E=[7,13,32,35,42,47],z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,d,s,T,t,X){var e=t.length-1;switch(T){case 2:return t[e];case 3:return t[e-1];case 4:return s.setDirection(t[e-3]),t[e-1];case 6:s.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:s.checkout(t[e]);break;case 22:s.branch(t[e]);break;case 23:s.branch(t[e-2],t[e]);break;case 24:s.cherryPick(t[e],"",void 0);break;case 25:s.cherryPick(t[e-2],"",void 0,t[e]);break;case 26:s.cherryPick(t[e-2],"",t[e]);break;case 27:s.cherryPick(t[e-4],"",t[e],t[e-2]);break;case 28:s.cherryPick(t[e-4],"",t[e-2],t[e]);break;case 29:s.cherryPick(t[e],"",t[e-2]);break;case 30:s.cherryPick(t[e],"","");break;case 31:s.cherryPick(t[e-2],"","");break;case 32:s.cherryPick(t[e-4],"","",t[e-2]);break;case 33:s.cherryPick(t[e-4],"","",t[e]);break;case 34:s.cherryPick(t[e-2],"",t[e-4],t[e]);break;case 35:s.cherryPick(t[e-2],"","",t[e]);break;case 36:s.merge(t[e],"","","");break;case 37:s.merge(t[e-2],t[e],"","");break;case 38:s.merge(t[e-2],"",t[e],"");break;case 39:s.merge(t[e-2],"","",t[e]);break;case 40:s.merge(t[e-4],t[e],"",t[e-2]);break;case 41:s.merge(t[e-4],"",t[e],t[e-2]);break;case 42:s.merge(t[e-4],"",t[e-2],t[e]);break;case 43:s.merge(t[e-4],t[e-2],t[e],"");break;case 44:s.merge(t[e-4],t[e-2],"",t[e]);break;case 45:s.merge(t[e-4],t[e],t[e-2],"");break;case 46:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 47:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 48:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 49:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 50:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 51:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 52:s.commit(t[e]);break;case 53:s.commit("","",s.commitType.NORMAL,t[e]);break;case 54:s.commit("","",t[e],"");break;case 55:s.commit("","",t[e],t[e-2]);break;case 56:s.commit("","",t[e-2],t[e]);break;case 57:s.commit("",t[e],s.commitType.NORMAL,"");break;case 58:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 59:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 60:s.commit("",t[e-2],t[e],"");break;case 61:s.commit("",t[e],t[e-2],"");break;case 62:s.commit("",t[e-4],t[e-2],t[e]);break;case 63:s.commit("",t[e-4],t[e],t[e-2]);break;case 64:s.commit("",t[e-2],t[e-4],t[e]);break;case 65:s.commit("",t[e],t[e-4],t[e-2]);break;case 66:s.commit("",t[e],t[e-2],t[e-4]);break;case 67:s.commit("",t[e-2],t[e],t[e-4]);break;case 68:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 69:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 70:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 71:s.commit(t[e-2],"",t[e],"");break;case 72:s.commit(t[e],"",t[e-2],"");break;case 73:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 74:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 75:s.commit(t[e-4],"",t[e-2],t[e]);break;case 76:s.commit(t[e-4],"",t[e],t[e-2]);break;case 77:s.commit(t[e-2],"",t[e-4],t[e]);break;case 78:s.commit(t[e],"",t[e-4],t[e-2]);break;case 79:s.commit(t[e],"",t[e-2],t[e-4]);break;case 80:s.commit(t[e-2],"",t[e],t[e-4]);break;case 81:s.commit(t[e-4],t[e],t[e-2],"");break;case 82:s.commit(t[e-4],t[e-2],t[e],"");break;case 83:s.commit(t[e-2],t[e],t[e-4],"");break;case 84:s.commit(t[e],t[e-2],t[e-4],"");break;case 85:s.commit(t[e],t[e-4],t[e-2],"");break;case 86:s.commit(t[e-2],t[e-4],t[e],"");break;case 87:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 88:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 89:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 90:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 91:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 92:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 93:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 94:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 95:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 96:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 97:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 98:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 99:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 100:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 101:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 102:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 103:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 104:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 105:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 106:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 107:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 108:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 109:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 110:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 111:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 112:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 113:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 114:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 115:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 116:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 117:this.$="";break;case 118:this.$=t[e];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:p},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:p},{8:[1,15]},r(x,[2,9],{11:16,12:[1,17]}),r(y,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:p},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(y,[2,7]),{1:[2,3]},{7:[1,36]},r(x,[2,10]),{4:37,7:l,13:h,47:i},r(x,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:R,46:_},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:R,46:_},{32:[1,50],35:[1,51]},{27:52,33:R,46:_},{1:[2,4]},r(x,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(b,[2,122]),r(b,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:k,45:g},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(E,[2,119]),r(E,[2,120]),r(E,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:k,45:g},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:k,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:k,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:k,45:g},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:k,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:k,45:g},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:k,45:g},{33:[1,148]},{39:149,43:f,44:k,45:g},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:k,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:k,45:g},{33:[1,162]},{39:163,43:f,44:k,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:k,45:g},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:k,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:k,45:g},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:k,45:g},{33:[1,215]},{39:216,43:f,44:k,45:g},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:k,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:k,45:g},{33:[1,229]},{39:230,43:f,44:k,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:k,45:g},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(u.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=u,d}},parse:function(o){var u=this,d=[0],s=[],T=[null],t=[],X=this.table,e="",rt=0,ft=0,wt=2,pt=1,Lt=t.slice.call(arguments,1),O=Object.create(this.lexer),F={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(F.yy[ct]=this.yy[ct]);O.setInput(o,F.yy),F.yy.lexer=O,F.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var ot=O.yylloc;t.push(ot);var Rt=O.options&&O.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var q;return q=s.pop()||O.lex()||pt,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=u.symbols_[q]||q),q}for(var N,K,V,lt,J={},it,j,bt,st;;){if(K=d[d.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((N===null||typeof N>"u")&&(N=Mt()),V=X[K]&&X[K][N]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>wt&&st.push("'"+this.terminals_[it]+"'");O.showPosition?ht="Parse error on line "+(rt+1)+`: `+O.showPosition()+` Expecting `+st.join(", ")+", got '"+(this.terminals_[N]||N)+"'":ht="Parse error on line "+(rt+1)+": Unexpected "+(N==pt?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(ht,{text:O.match,token:this.terminals_[N]||N,line:O.yylineno,loc:ot,expected:st})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+N);switch(V[0]){case 1:d.push(N),T.push(O.yytext),t.push(O.yylloc),d.push(V[1]),N=null,ft=O.yyleng,e=O.yytext,rt=O.yylineno,ot=O.yylloc;break;case 2:if(j=this.productions_[V[1]][1],J.$=T[T.length-j],J._$={first_line:t[t.length-(j||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(j||1)].first_column,last_column:t[t.length-1].last_column},Rt&&(J._$.range=[t[t.length-(j||1)].range[0],t[t.length-1].range[1]]),lt=this.performAction.apply(J,[e,ft,rt,F.yy,V[1],T,t].concat(Lt)),typeof lt<"u")return lt;j&&(d=d.slice(0,-1*j*2),T=T.slice(0,-1*j),t=t.slice(0,-1*j)),d.push(this.productions_[V[1]][0]),T.push(J.$),t.push(J._$),bt=X[d[d.length-2]][d[d.length-1]],d.push(bt);break;case 3:return!0}}return!0}},M=function(){var A={EOF:1,parseError:function(u,d){if(this.yy.parser)this.yy.parser.parseError(u,d);else throw new Error(u)},setInput:function(o,u){return this.yy=u||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var u=o.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var u=o.length,d=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===s.length?this.yylloc.first_column:0)+s[s.length-d.length].length-d[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),u=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/graph-CNSoCPH1.js b/deploy/server/notebase/assets/graph-Cryfb0BU.js similarity index 99% rename from deploy/server/notebase/assets/graph-CNSoCPH1.js rename to deploy/server/notebase/assets/graph-Cryfb0BU.js index 4c989f0696..205a24c5e8 100644 --- a/deploy/server/notebase/assets/graph-CNSoCPH1.js +++ b/deploy/server/notebase/assets/graph-Cryfb0BU.js @@ -1 +1 @@ -import{l as qe,S as m,H as Ze,U as re,f as y,e as Te,R as Xe,h as q,T as P,j as Je,V as I,d as Qe,k as Ee,W as G,G as X,X as We,Y as me,Z as ze,$ as D,O as Oe,B as ve,a0 as Ve,a1 as ke,a2 as en,N as nn,a3 as rn,L as tn,K as we,I as sn,E as an,a4 as un,P as R,w as te}from"./index-CLWgAZNI.js";import{an as fn,ao as C,ap as on,aq as j,ar as ie}from"./mermaid.core-BajzCmnv.js";var dn="__lodash_hash_undefined__";function hn(e){return this.__data__.set(e,dn),this}function ln(e){return this.__data__.has(e)}function S(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new qe;++nu))return!1;var g=s.get(e),l=s.get(n);if(g&&l)return g==n&&l==e;var o=-1,h=!0,A=r&_n?new S:void 0;for(s.set(e,n),s.set(n,e);++o-1}var Jn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qn=/^\w*$/;function k(e,n){if(y(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||V(e)?!0:Qn.test(e)||!Jn.test(e)||n!=null&&e in Object(n)}var Wn=500;function zn(e){var n=on(e,function(t){return r.size===Wn&&r.clear(),t}),r=n.cache;return n}var Vn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kn=/\\(\\)?/g,er=zn(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Vn,function(r,t,i,s){n.push(i?s.replace(kn,"$1"):t||r)}),n});function nr(e){return e==null?"":Ne(e)}function Re(e,n){return y(e)?e:k(e,n)?[e]:er(nr(e))}var rr=1/0;function U(e){if(typeof e=="string"||V(e))return e;var n=e+"";return n=="0"&&1/e==-rr?"-0":n}function Me(e,n){n=Re(n,e);for(var r=0,t=n.length;e!=null&&r=Ht){var g=Kt(e);if(g)return J(g);a=!1,i=$e,f=new S}else f=u;e:for(;++t1?i.setNode(s,r):i.setNode(s)}),this}setNode(n,r){return E(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=w,this._children[n]={},this._children[w][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return E(this._nodes,n)}removeNode(n){var r=this;if(E(this._nodes,n)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],v(this.children(n),function(i){r.setParent(i)}),delete this._children[n]),v(T(this._in[n]),t),delete this._in[n],delete this._preds[n],v(T(this._out[n]),t),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if($(r))r=w;else{r+="";for(var t=r;!$(t);t=this.parent(t))if(t===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var r=this._parent[n];if(r!==w)return r}}children(n){if($(n)&&(n=w),this._isCompound){var r=this._children[n];if(r)return T(r)}else{if(n===w)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var r=this._preds[n];if(r)return T(r)}successors(n){var r=this._sucs[n];if(r)return T(r)}neighbors(n){var r=this.predecessors(n);if(r)return qt(r,this.successors(n))}isLeaf(n){var r;return this.isDirected()?r=this.successors(n):r=this.neighbors(n),r.length===0}filterNodes(n){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;v(this._nodes,function(a,u){n(u)&&r.setNode(u,a)}),v(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,t.edge(a))});var i={};function s(a){var u=t.parent(a);return u===void 0||r.hasNode(u)?(i[a]=u,u):u in i?i[u]:s(u)}return this._isCompound&&v(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(n){return te(n)||(n=R(n)),this._defaultEdgeLabelFn=n,this}edgeCount(){return this._edgeCount}edges(){return H(this._edgeObjs)}setPath(n,r){var t=this,i=arguments;return jt(n,function(s,a){return i.length>1?t.setEdge(s,a,r):t.setEdge(s,a),a}),this}setEdge(){var n,r,t,i,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(n=a.v,r=a.w,t=a.name,arguments.length===2&&(i=arguments[1],s=!0)):(n=a,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),n=""+n,r=""+r,$(t)||(t=""+t);var u=L(this._isDirected,n,r,t);if(E(this._edgeLabels,u))return s&&(this._edgeLabels[u]=i),this;if(!$(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(r),this._edgeLabels[u]=s?i:this._defaultEdgeLabelFn(n,r,t);var f=Xt(this._isDirected,n,r,t);return n=f.v,r=f.w,Object.freeze(f),this._edgeObjs[u]=f,ye(this._preds[r],n),ye(this._sucs[n],r),this._in[r][u]=f,this._out[n][u]=f,this._edgeCount++,this}edge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t);return this._edgeLabels[i]}hasEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t);return E(this._edgeLabels,i)}removeEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t),s=this._edgeObjs[i];return s&&(n=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Ae(this._preds[r],n),Ae(this._sucs[n],r),delete this._in[r][i],delete this._out[n][i],this._edgeCount--),this}inEdges(n,r){var t=this._in[n];if(t){var i=H(t);return r?x(i,function(s){return s.v===r}):i}}outEdges(n,r){var t=this._out[n];if(t){var i=H(t);return r?x(i,function(s){return s.w===r}):i}}nodeEdges(n,r){var t=this.inEdges(n,r);if(t)return t.concat(this.outEdges(n,r))}}Ye.prototype._nodeCount=0;Ye.prototype._edgeCount=0;function ye(e,n){e[n]?e[n]++:e[n]=1}function Ae(e,n){--e[n]||delete e[n]}function L(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}return i+be+s+be+($(t)?Zt:t)}function Xt(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}var u={v:i,w:s};return t&&(u.name=t),u}function Y(e,n){return L(e,n.v,n.w,n.name)}export{Ye as G,V as a,sr as b,K as c,He as d,Hn as e,v as f,ee as g,E as h,$ as i,Se as j,T as k,Ft as l,St as m,Re as n,Me as o,vt as p,nr as q,x as r,jt as s,U as t,H as v}; +import{l as qe,S as m,H as Ze,U as re,f as y,e as Te,R as Xe,h as q,T as P,j as Je,V as I,d as Qe,k as Ee,W as G,G as X,X as We,Y as me,Z as ze,$ as D,O as Oe,B as ve,a0 as Ve,a1 as ke,a2 as en,N as nn,a3 as rn,L as tn,K as we,I as sn,E as an,a4 as un,P as R,w as te}from"./index-bOgutTC1.js";import{an as fn,ao as C,ap as on,aq as j,ar as ie}from"./mermaid.core-DacimPk4.js";var dn="__lodash_hash_undefined__";function hn(e){return this.__data__.set(e,dn),this}function ln(e){return this.__data__.has(e)}function S(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new qe;++nu))return!1;var g=s.get(e),l=s.get(n);if(g&&l)return g==n&&l==e;var o=-1,h=!0,A=r&_n?new S:void 0;for(s.set(e,n),s.set(n,e);++o-1}var Jn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qn=/^\w*$/;function k(e,n){if(y(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||V(e)?!0:Qn.test(e)||!Jn.test(e)||n!=null&&e in Object(n)}var Wn=500;function zn(e){var n=on(e,function(t){return r.size===Wn&&r.clear(),t}),r=n.cache;return n}var Vn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kn=/\\(\\)?/g,er=zn(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Vn,function(r,t,i,s){n.push(i?s.replace(kn,"$1"):t||r)}),n});function nr(e){return e==null?"":Ne(e)}function Re(e,n){return y(e)?e:k(e,n)?[e]:er(nr(e))}var rr=1/0;function U(e){if(typeof e=="string"||V(e))return e;var n=e+"";return n=="0"&&1/e==-rr?"-0":n}function Me(e,n){n=Re(n,e);for(var r=0,t=n.length;e!=null&&r=Ht){var g=Kt(e);if(g)return J(g);a=!1,i=$e,f=new S}else f=u;e:for(;++t1?i.setNode(s,r):i.setNode(s)}),this}setNode(n,r){return E(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=w,this._children[n]={},this._children[w][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return E(this._nodes,n)}removeNode(n){var r=this;if(E(this._nodes,n)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],v(this.children(n),function(i){r.setParent(i)}),delete this._children[n]),v(T(this._in[n]),t),delete this._in[n],delete this._preds[n],v(T(this._out[n]),t),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if($(r))r=w;else{r+="";for(var t=r;!$(t);t=this.parent(t))if(t===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var r=this._parent[n];if(r!==w)return r}}children(n){if($(n)&&(n=w),this._isCompound){var r=this._children[n];if(r)return T(r)}else{if(n===w)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var r=this._preds[n];if(r)return T(r)}successors(n){var r=this._sucs[n];if(r)return T(r)}neighbors(n){var r=this.predecessors(n);if(r)return qt(r,this.successors(n))}isLeaf(n){var r;return this.isDirected()?r=this.successors(n):r=this.neighbors(n),r.length===0}filterNodes(n){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;v(this._nodes,function(a,u){n(u)&&r.setNode(u,a)}),v(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,t.edge(a))});var i={};function s(a){var u=t.parent(a);return u===void 0||r.hasNode(u)?(i[a]=u,u):u in i?i[u]:s(u)}return this._isCompound&&v(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(n){return te(n)||(n=R(n)),this._defaultEdgeLabelFn=n,this}edgeCount(){return this._edgeCount}edges(){return H(this._edgeObjs)}setPath(n,r){var t=this,i=arguments;return jt(n,function(s,a){return i.length>1?t.setEdge(s,a,r):t.setEdge(s,a),a}),this}setEdge(){var n,r,t,i,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(n=a.v,r=a.w,t=a.name,arguments.length===2&&(i=arguments[1],s=!0)):(n=a,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),n=""+n,r=""+r,$(t)||(t=""+t);var u=L(this._isDirected,n,r,t);if(E(this._edgeLabels,u))return s&&(this._edgeLabels[u]=i),this;if(!$(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(r),this._edgeLabels[u]=s?i:this._defaultEdgeLabelFn(n,r,t);var f=Xt(this._isDirected,n,r,t);return n=f.v,r=f.w,Object.freeze(f),this._edgeObjs[u]=f,ye(this._preds[r],n),ye(this._sucs[n],r),this._in[r][u]=f,this._out[n][u]=f,this._edgeCount++,this}edge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t);return this._edgeLabels[i]}hasEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t);return E(this._edgeLabels,i)}removeEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t),s=this._edgeObjs[i];return s&&(n=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Ae(this._preds[r],n),Ae(this._sucs[n],r),delete this._in[r][i],delete this._out[n][i],this._edgeCount--),this}inEdges(n,r){var t=this._in[n];if(t){var i=H(t);return r?x(i,function(s){return s.v===r}):i}}outEdges(n,r){var t=this._out[n];if(t){var i=H(t);return r?x(i,function(s){return s.w===r}):i}}nodeEdges(n,r){var t=this.inEdges(n,r);if(t)return t.concat(this.outEdges(n,r))}}Ye.prototype._nodeCount=0;Ye.prototype._edgeCount=0;function ye(e,n){e[n]?e[n]++:e[n]=1}function Ae(e,n){--e[n]||delete e[n]}function L(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}return i+be+s+be+($(t)?Zt:t)}function Xt(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}var u={v:i,w:s};return t&&(u.name=t),u}function Y(e,n){return L(e,n.v,n.w,n.name)}export{Ye as G,V as a,sr as b,K as c,He as d,Hn as e,v as f,ee as g,E as h,$ as i,Se as j,T as k,Ft as l,St as m,Re as n,Me as o,vt as p,nr as q,x as r,jt as s,U as t,H as v}; diff --git a/starter/src/main/resources/templates/notebase/assets/index-3862675e-C5iJKLK2.js b/deploy/server/notebase/assets/index-3862675e-BtvAzWCw.js similarity index 96% rename from starter/src/main/resources/templates/notebase/assets/index-3862675e-C5iJKLK2.js rename to deploy/server/notebase/assets/index-3862675e-BtvAzWCw.js index 308a3b9e2f..dc03ce333d 100644 --- a/starter/src/main/resources/templates/notebase/assets/index-3862675e-C5iJKLK2.js +++ b/deploy/server/notebase/assets/index-3862675e-BtvAzWCw.js @@ -1 +1 @@ -import{i as N,G as A}from"./graph-CNSoCPH1.js";import{m as $,l as H}from"./layout-Cg9I2QIy.js";import{c as V}from"./clone-CJLsyeCN.js";import{i as U,u as W,s as _,a as q,b as z,g as D,p as O,c as K,d as Q,e as Y,f as Z,h as J,j as p}from"./edges-e0da2a9e-121Kky2V.js";import{l as s,c as T,p as S,h as L}from"./mermaid.core-BajzCmnv.js";import{a as I}from"./createText-2e5e7dd3-CXwUql3o.js";function m(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:tt(e),edges:et(e)};return N(e.graph())||(t.value=V(e.graph())),t}function tt(e){return $(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return N(n)||(i.value=n),N(r)||(i.parent=r),i})}function et(e){return $(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return N(t.name)||(r.name=t.name),N(n)||(r.value=n),r})}let l={},g={},R={};const nt=()=>{g={},R={},l={}},B=(e,t)=>(s.trace("In isDescendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),it=(e,t)=>(s.info("Descendants of ",t," is ",g[t]),s.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||B(e.v,t)||B(e.w,t)||g[t].includes(e.w):(s.debug("Tilt, ",t,",not in descendants"),!1)),P=(e,t,n,r)=>{s.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),s.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(a=>{if(t.children(a).length>0)P(a,t,n,r);else{const d=t.node(a);s.info("cp ",a," to ",r," with parent ",e),n.setNode(a,d),r!==t.parent(a)&&(s.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(s.debug("Setting parent",a,e),n.setParent(a,e)):(s.info("In copy ",e,"root",r,"data",t.node(e),r),s.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const u=t.edges(a);s.debug("Copying Edges",u),u.forEach(f=>{s.info("Edge",f);const h=t.edge(f.v,f.w,f.name);s.info("Edge data",h,r);try{it(f,r)?(s.info("Copying as ",f.v,f.w,h,f.name),n.setEdge(f.v,f.w,h,f.name),s.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):s.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",r," clusterId:",e)}catch(w){s.error(w)}})}s.debug("Removing node",a),t.removeNode(a)})},k=(e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)R[i]=e,r=[...r,...k(i,t)];return r},C=(e,t)=>{s.trace("Searching",e);const n=t.children(e);if(s.trace("Searching children of id ",e,n),n.length<1)return s.trace("This is a valid node",e),e;for(const r of n){const i=C(r,t);if(i)return s.trace("Found replacement for",e," => ",i),i}},X=e=>!l[e]||!l[e].externalConnections?e:l[e]?l[e].id:e,st=(e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(s.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),g[n]=k(n,e),l[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),i=e.edges();r.length>0?(s.debug("Cluster identified",n,g),i.forEach(a=>{if(a.v!==n&&a.w!==n){const d=B(a.v,n),u=B(a.w,n);d^u&&(s.warn("Edge: ",a," leaves cluster ",n),s.warn("Descendants of XXX ",n,": ",g[n]),l[n].externalConnections=!0)}})):s.debug("Not a cluster ",n,g)});for(let n of Object.keys(l)){const r=l[n].id,i=e.parent(r);i!==n&&l[i]&&!l[i].externalConnections&&(l[n].id=i)}e.edges().forEach(function(n){const r=e.edge(n);s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(s.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l[n.v]," --- ",l[n.w]),l[n.v]&&l[n.w]&&l[n.v]===l[n.w]){s.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const u=structuredClone(r),f=structuredClone(r);u.label="",u.arrowTypeEnd="none",f.label="",u.fromCluster=n.v,f.toCluster=n.v,e.setEdge(i,d,u,n.name+"-cyclic-special"),e.setEdge(d,a,f,n.name+"-cyclic-special")}else if(l[n.v]||l[n.w]){if(s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const d=e.parent(i);l[d].externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){const d=e.parent(a);l[d].externalConnections=!0,r.toCluster=n.w}s.warn("Fix Replacing with XXX",i,a,n.name),e.setEdge(i,a,r,n.name)}}),s.warn("Adjusted Graph",m(e)),F(e,0),s.trace(l)},F=(e,t)=>{if(s.warn("extractor - ",t,m(e),e.children("D")),t>10){s.error("Bailing out");return}let n=e.nodes(),r=!1;for(const i of n){const a=e.children(i);r=r||a.length>0}if(!r){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",n,t);for(const i of n)if(s.debug("Extracting node",i,l,l[i]&&!l[i].externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!l[i])s.debug("Not a cluster",i,t);else if(!l[i].externalConnections&&e.children(i)&&e.children(i).length>0){s.warn("Cluster without external connections, without a parent and with children",i,t);let d=e.graph().rankdir==="TB"?"LR":"TB";l[i]&&l[i].clusterData&&l[i].clusterData.dir&&(d=l[i].clusterData.dir,s.warn("Fixing dir",l[i].clusterData.dir,d));const u=new A({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",m(e)),P(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:l[i].clusterData,labelText:l[i].labelText,graph:u}),s.warn("New graph after copy node: (",i,")",m(u)),s.debug("Old graph after copy",m(e))}else s.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!l[i].externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),s.debug(l);n=e.nodes(),s.warn("New list of nodes",n);for(const i of n){const a=e.node(i);s.warn(" Now next level",i,a),a.clusterNode&&F(a.graph,t+1)}},G=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const i=e.children(r),a=G(e,i);n=[...n,...a]}),n},rt=e=>G(e,e.children()),at=(e,t)=>{s.info("Creating subgraph rect for ",t.id,t);const n=T(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),i=r.insert("rect",":first-child"),a=S(n.flowchart.htmlLabels),d=r.insert("g").attr("class","cluster-label"),u=t.labelType==="markdown"?I(d,t.labelText,{style:t.labelStyle,useHtmlLabels:a}):d.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}const h=0*t.padding,w=h/2,x=t.width<=f.width+h?f.width+h:t.width;t.width<=f.width+h?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-x/2).attr("y",t.y-t.height/2-w).attr("width",x).attr("height",t.height+h);const{subGraphTitleTopMargin:v}=D(n);a?d.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+v})`):d.attr("transform",`translate(${t.x}, ${t.y-t.height/2+v})`);const y=i.node().getBBox();return t.width=y.width,t.height=y.height,t.intersect=function(c){return p(t,c)},r},ct=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(u){return p(t,u)},n},ot=(e,t)=>{const n=T(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),i=r.insert("rect",":first-child"),a=r.insert("g").attr("class","cluster-label"),d=r.append("rect"),u=a.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}f=u.getBBox();const h=0*t.padding,w=h/2,x=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(f.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,i.attr("class","outer").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w).attr("width",x+h).attr("height",t.height+h),d.attr("class","inner").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w+f.height-1).attr("width",x+h).attr("height",t.height+h-f.height-3);const{subGraphTitleTopMargin:v}=D(n);a.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(S(n.flowchart.htmlLabels)?5:3)+v})`);const y=i.node().getBBox();return t.height=y.height,t.intersect=function(c){return p(t,c)},r},lt=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(u){return p(t,u)},n},ft={rect:at,roundedWithTitle:ot,noteGroup:ct,divider:lt};let j={};const dt=(e,t)=>{s.trace("Inserting cluster");const n=t.shape||"rect";j[t.id]=ft[n](e,t)},ut=()=>{j={}},M=async(e,t,n,r,i,a)=>{s.info("Graph in recursive render: XXX",m(t),i);const d=t.graph().rankdir;s.trace("Dir in recursive render - dir:",d);const u=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));const f=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),w=u.insert("g").attr("class","edgeLabels"),x=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(c){const o=t.node(c);if(i!==void 0){const b=JSON.parse(JSON.stringify(i.clusterData));s.info("Setting data for cluster XXX (",c,") ",b,i),t.setNode(i.id,b),t.parent(c)||(s.trace("Setting parent",c,i.id),t.setParent(c,i.id,b))}if(s.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){s.info("Cluster identified",c,o.width,t.node(c));const b=await M(x,o.graph,n,r,t.node(c),a),E=b.elem;W(o,E),o.diff=b.diff||0,s.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),_(E,o),s.warn("Recursive render complete ",E,o)}else t.children(c).length>0?(s.info("Cluster - the non recursive path XXX",c,o.id,o,t),s.info(C(o.id,t)),l[o.id]={id:C(o.id,t),node:o}):(s.info("Node - the non recursive path",c,o.id,o),await q(x,t.node(c),d))})),t.edges().forEach(function(c){const o=t.edge(c.v,c.w,c.name);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),s.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),s.info("Fix",l,"ids:",c.v,c.w,"Translating: ",l[c.v],l[c.w]),z(w,o)}),t.edges().forEach(function(c){s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),H(t),s.info("Graph after layout:",m(t));let v=0;const{subGraphTitleTotalMargin:y}=D(a);return rt(t).forEach(function(c){const o=t.node(c);s.info("Position "+c+": "+JSON.stringify(t.node(c))),s.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=y,O(o)):t.children(c).length>0?(o.height+=y,dt(f,o),l[o.id].node=o):(o.y+=y/2,O(o))}),t.edges().forEach(function(c){const o=t.edge(c);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o),o.points.forEach(E=>E.y+=y/2);const b=K(h,c,o,l,n,t,r);Q(o,b)}),t.nodes().forEach(function(c){const o=t.node(c);s.info(c,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:u,diff:v}},bt=async(e,t,n,r,i)=>{U(e,n,r,i),Y(),Z(),ut(),nt(),s.warn("Graph at first:",JSON.stringify(m(t))),st(t),s.warn("Graph after:",JSON.stringify(m(t)));const a=T();await M(e,t,r,i,void 0,a)};export{bt as r}; +import{i as N,G as A}from"./graph-Cryfb0BU.js";import{m as $,l as H}from"./layout-DPudLDYQ.js";import{c as V}from"./clone-CVBlNrV8.js";import{i as U,u as W,s as _,a as q,b as z,g as D,p as O,c as K,d as Q,e as Y,f as Z,h as J,j as p}from"./edges-e0da2a9e---EYFhqg.js";import{l as s,c as T,p as S,h as L}from"./mermaid.core-DacimPk4.js";import{a as I}from"./createText-2e5e7dd3-sebYv4r1.js";function m(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:tt(e),edges:et(e)};return N(e.graph())||(t.value=V(e.graph())),t}function tt(e){return $(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return N(n)||(i.value=n),N(r)||(i.parent=r),i})}function et(e){return $(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return N(t.name)||(r.name=t.name),N(n)||(r.value=n),r})}let l={},g={},R={};const nt=()=>{g={},R={},l={}},B=(e,t)=>(s.trace("In isDescendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),it=(e,t)=>(s.info("Descendants of ",t," is ",g[t]),s.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||B(e.v,t)||B(e.w,t)||g[t].includes(e.w):(s.debug("Tilt, ",t,",not in descendants"),!1)),P=(e,t,n,r)=>{s.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),s.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(a=>{if(t.children(a).length>0)P(a,t,n,r);else{const d=t.node(a);s.info("cp ",a," to ",r," with parent ",e),n.setNode(a,d),r!==t.parent(a)&&(s.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(s.debug("Setting parent",a,e),n.setParent(a,e)):(s.info("In copy ",e,"root",r,"data",t.node(e),r),s.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const u=t.edges(a);s.debug("Copying Edges",u),u.forEach(f=>{s.info("Edge",f);const h=t.edge(f.v,f.w,f.name);s.info("Edge data",h,r);try{it(f,r)?(s.info("Copying as ",f.v,f.w,h,f.name),n.setEdge(f.v,f.w,h,f.name),s.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):s.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",r," clusterId:",e)}catch(w){s.error(w)}})}s.debug("Removing node",a),t.removeNode(a)})},k=(e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)R[i]=e,r=[...r,...k(i,t)];return r},C=(e,t)=>{s.trace("Searching",e);const n=t.children(e);if(s.trace("Searching children of id ",e,n),n.length<1)return s.trace("This is a valid node",e),e;for(const r of n){const i=C(r,t);if(i)return s.trace("Found replacement for",e," => ",i),i}},X=e=>!l[e]||!l[e].externalConnections?e:l[e]?l[e].id:e,st=(e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(s.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),g[n]=k(n,e),l[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),i=e.edges();r.length>0?(s.debug("Cluster identified",n,g),i.forEach(a=>{if(a.v!==n&&a.w!==n){const d=B(a.v,n),u=B(a.w,n);d^u&&(s.warn("Edge: ",a," leaves cluster ",n),s.warn("Descendants of XXX ",n,": ",g[n]),l[n].externalConnections=!0)}})):s.debug("Not a cluster ",n,g)});for(let n of Object.keys(l)){const r=l[n].id,i=e.parent(r);i!==n&&l[i]&&!l[i].externalConnections&&(l[n].id=i)}e.edges().forEach(function(n){const r=e.edge(n);s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(s.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l[n.v]," --- ",l[n.w]),l[n.v]&&l[n.w]&&l[n.v]===l[n.w]){s.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const u=structuredClone(r),f=structuredClone(r);u.label="",u.arrowTypeEnd="none",f.label="",u.fromCluster=n.v,f.toCluster=n.v,e.setEdge(i,d,u,n.name+"-cyclic-special"),e.setEdge(d,a,f,n.name+"-cyclic-special")}else if(l[n.v]||l[n.w]){if(s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const d=e.parent(i);l[d].externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){const d=e.parent(a);l[d].externalConnections=!0,r.toCluster=n.w}s.warn("Fix Replacing with XXX",i,a,n.name),e.setEdge(i,a,r,n.name)}}),s.warn("Adjusted Graph",m(e)),F(e,0),s.trace(l)},F=(e,t)=>{if(s.warn("extractor - ",t,m(e),e.children("D")),t>10){s.error("Bailing out");return}let n=e.nodes(),r=!1;for(const i of n){const a=e.children(i);r=r||a.length>0}if(!r){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",n,t);for(const i of n)if(s.debug("Extracting node",i,l,l[i]&&!l[i].externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!l[i])s.debug("Not a cluster",i,t);else if(!l[i].externalConnections&&e.children(i)&&e.children(i).length>0){s.warn("Cluster without external connections, without a parent and with children",i,t);let d=e.graph().rankdir==="TB"?"LR":"TB";l[i]&&l[i].clusterData&&l[i].clusterData.dir&&(d=l[i].clusterData.dir,s.warn("Fixing dir",l[i].clusterData.dir,d));const u=new A({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",m(e)),P(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:l[i].clusterData,labelText:l[i].labelText,graph:u}),s.warn("New graph after copy node: (",i,")",m(u)),s.debug("Old graph after copy",m(e))}else s.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!l[i].externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),s.debug(l);n=e.nodes(),s.warn("New list of nodes",n);for(const i of n){const a=e.node(i);s.warn(" Now next level",i,a),a.clusterNode&&F(a.graph,t+1)}},G=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const i=e.children(r),a=G(e,i);n=[...n,...a]}),n},rt=e=>G(e,e.children()),at=(e,t)=>{s.info("Creating subgraph rect for ",t.id,t);const n=T(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),i=r.insert("rect",":first-child"),a=S(n.flowchart.htmlLabels),d=r.insert("g").attr("class","cluster-label"),u=t.labelType==="markdown"?I(d,t.labelText,{style:t.labelStyle,useHtmlLabels:a}):d.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}const h=0*t.padding,w=h/2,x=t.width<=f.width+h?f.width+h:t.width;t.width<=f.width+h?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-x/2).attr("y",t.y-t.height/2-w).attr("width",x).attr("height",t.height+h);const{subGraphTitleTopMargin:v}=D(n);a?d.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+v})`):d.attr("transform",`translate(${t.x}, ${t.y-t.height/2+v})`);const y=i.node().getBBox();return t.width=y.width,t.height=y.height,t.intersect=function(c){return p(t,c)},r},ct=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(u){return p(t,u)},n},ot=(e,t)=>{const n=T(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),i=r.insert("rect",":first-child"),a=r.insert("g").attr("class","cluster-label"),d=r.append("rect"),u=a.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}f=u.getBBox();const h=0*t.padding,w=h/2,x=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(f.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,i.attr("class","outer").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w).attr("width",x+h).attr("height",t.height+h),d.attr("class","inner").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w+f.height-1).attr("width",x+h).attr("height",t.height+h-f.height-3);const{subGraphTitleTopMargin:v}=D(n);a.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(S(n.flowchart.htmlLabels)?5:3)+v})`);const y=i.node().getBBox();return t.height=y.height,t.intersect=function(c){return p(t,c)},r},lt=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(u){return p(t,u)},n},ft={rect:at,roundedWithTitle:ot,noteGroup:ct,divider:lt};let j={};const dt=(e,t)=>{s.trace("Inserting cluster");const n=t.shape||"rect";j[t.id]=ft[n](e,t)},ut=()=>{j={}},M=async(e,t,n,r,i,a)=>{s.info("Graph in recursive render: XXX",m(t),i);const d=t.graph().rankdir;s.trace("Dir in recursive render - dir:",d);const u=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));const f=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),w=u.insert("g").attr("class","edgeLabels"),x=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(c){const o=t.node(c);if(i!==void 0){const b=JSON.parse(JSON.stringify(i.clusterData));s.info("Setting data for cluster XXX (",c,") ",b,i),t.setNode(i.id,b),t.parent(c)||(s.trace("Setting parent",c,i.id),t.setParent(c,i.id,b))}if(s.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){s.info("Cluster identified",c,o.width,t.node(c));const b=await M(x,o.graph,n,r,t.node(c),a),E=b.elem;W(o,E),o.diff=b.diff||0,s.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),_(E,o),s.warn("Recursive render complete ",E,o)}else t.children(c).length>0?(s.info("Cluster - the non recursive path XXX",c,o.id,o,t),s.info(C(o.id,t)),l[o.id]={id:C(o.id,t),node:o}):(s.info("Node - the non recursive path",c,o.id,o),await q(x,t.node(c),d))})),t.edges().forEach(function(c){const o=t.edge(c.v,c.w,c.name);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),s.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),s.info("Fix",l,"ids:",c.v,c.w,"Translating: ",l[c.v],l[c.w]),z(w,o)}),t.edges().forEach(function(c){s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),H(t),s.info("Graph after layout:",m(t));let v=0;const{subGraphTitleTotalMargin:y}=D(a);return rt(t).forEach(function(c){const o=t.node(c);s.info("Position "+c+": "+JSON.stringify(t.node(c))),s.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=y,O(o)):t.children(c).length>0?(o.height+=y,dt(f,o),l[o.id].node=o):(o.y+=y/2,O(o))}),t.edges().forEach(function(c){const o=t.edge(c);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o),o.points.forEach(E=>E.y+=y/2);const b=K(h,c,o,l,n,t,r);Q(o,b)}),t.nodes().forEach(function(c){const o=t.node(c);s.info(c,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:u,diff:v}},bt=async(e,t,n,r,i)=>{U(e,n,r,i),Y(),Z(),ut(),nt(),s.warn("Graph at first:",JSON.stringify(m(t))),st(t),s.warn("Graph after:",JSON.stringify(m(t)));const a=T();await M(e,t,r,i,void 0,a)};export{bt as r}; diff --git a/deploy/server/notebase/assets/index-D2q_syzD.js b/deploy/server/notebase/assets/index-CVIZTd-d.js similarity index 99% rename from deploy/server/notebase/assets/index-D2q_syzD.js rename to deploy/server/notebase/assets/index-CVIZTd-d.js index 482092a8cb..90c420f522 100644 --- a/deploy/server/notebase/assets/index-D2q_syzD.js +++ b/deploy/server/notebase/assets/index-CVIZTd-d.js @@ -1,4 +1,4 @@ -import{g as xl}from"./index-CLWgAZNI.js";function ul(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],a=typeof t;(a==="object"||a==="function")&&!Object.isFrozen(t)&&ul(t)}),n}class yr{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function pl(n){return n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function _e(n,...e){const t=Object.create(null);for(const a in n)t[a]=n[a];return e.forEach(function(a){for(const r in a)t[r]=a[r]}),t}const Pl="",hr=n=>!!n.scope,wl=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((a,r)=>`${a}${"_".repeat(r+1)}`)].join(" ")}return`${e}${n}`};class kl{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=pl(e)}openNode(e){if(!hr(e))return;const t=wl(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){hr(e)&&(this.buffer+=Pl)}value(){return this.buffer}span(e){this.buffer+=``}}const Dr=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class _r{constructor(){this.rootNode=Dr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=Dr({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(a=>this._walk(e,a)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{_r._collapse(t)}))}}class Ul extends _r{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const a=e.root;t&&(a.scope=`language:${t}`),this.add(a)}toHTML(){return new kl(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Oe(n){return n?typeof n=="string"?n:n.source:null}function ml(n){return me("(?=",n,")")}function Fl(n){return me("(?:",n,")*")}function Bl(n){return me("(?:",n,")?")}function me(...n){return n.map(t=>Oe(t)).join("")}function Gl(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function dr(...n){return"("+(Gl(n).capture?"":"?:")+n.map(a=>Oe(a)).join("|")+")"}function El(n){return new RegExp(n.toString()+"|").exec("").length-1}function Yl(n,e){const t=n&&n.exec(e);return t&&t.index===0}const ql=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ur(n,{joinWith:e}){let t=0;return n.map(a=>{t+=1;const r=t;let i=Oe(a),s="";for(;i.length>0;){const o=ql.exec(i);if(!o){s+=i;break}s+=i.substring(0,o.index),i=i.substring(o.index+o[0].length),o[0][0]==="\\"&&o[1]?s+="\\"+String(Number(o[1])+r):(s+=o[0],o[0]==="("&&t++)}return s}).map(a=>`(${a})`).join(e)}const Hl=/\b\B/,gl="[a-zA-Z]\\w*",pr="[a-zA-Z_]\\w*",Sl="\\b\\d+(\\.\\d+)?",Tl="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",bl="\\b(0b[01]+)",Vl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zl=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=me(e,/.*\b/,n.binary,/\b.*/)),_e({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,a)=>{t.index!==0&&a.ignoreMatch()}},n)},Ie={begin:"\\\\[\\s\\S]",relevance:0},Wl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ie]},Kl={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ie]},$l={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},De=function(n,e,t={}){const a=_e({scope:"comment",begin:n,end:e,contains:[]},t);a.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=dr("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return a.contains.push({begin:me(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a},Ql=De("//","$"),Xl=De("/\\*","\\*/"),Zl=De("#","$"),Jl={scope:"number",begin:Sl,relevance:0},jl={scope:"number",begin:Tl,relevance:0},ec={scope:"number",begin:bl,relevance:0},tc={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ie,{begin:/\[/,end:/\]/,relevance:0,contains:[Ie]}]},nc={scope:"title",begin:gl,relevance:0},ac={scope:"title",begin:pr,relevance:0},rc={begin:"\\.\\s*"+pr,relevance:0},ic=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var ye=Object.freeze({__proto__:null,APOS_STRING_MODE:Wl,BACKSLASH_ESCAPE:Ie,BINARY_NUMBER_MODE:ec,BINARY_NUMBER_RE:bl,COMMENT:De,C_BLOCK_COMMENT_MODE:Xl,C_LINE_COMMENT_MODE:Ql,C_NUMBER_MODE:jl,C_NUMBER_RE:Tl,END_SAME_AS_BEGIN:ic,HASH_COMMENT_MODE:Zl,IDENT_RE:gl,MATCH_NOTHING_RE:Hl,METHOD_GUARD:rc,NUMBER_MODE:Jl,NUMBER_RE:Sl,PHRASAL_WORDS_MODE:$l,QUOTE_STRING_MODE:Kl,REGEXP_MODE:tc,RE_STARTERS_RE:Vl,SHEBANG:zl,TITLE_MODE:nc,UNDERSCORE_IDENT_RE:pr,UNDERSCORE_TITLE_MODE:ac});function oc(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function sc(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function lc(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=oc,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function cc(n,e){Array.isArray(n.illegal)&&(n.illegal=dr(...n.illegal))}function _c(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function dc(n,e){n.relevance===void 0&&(n.relevance=1)}const uc=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(a=>{delete n[a]}),n.keywords=t.keywords,n.begin=me(t.beforeMatch,ml(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},pc=["of","and","for","in","not","or","if","then","parent","list","value"],mc="keyword";function Rl(n,e,t=mc){const a=Object.create(null);return typeof n=="string"?r(t,n.split(" ")):Array.isArray(n)?r(t,n):Object.keys(n).forEach(function(i){Object.assign(a,Rl(n[i],e,i))}),a;function r(i,s){e&&(s=s.map(o=>o.toLowerCase())),s.forEach(function(o){const l=o.split("|");a[l[0]]=[i,Ec(l[0],l[1])]})}}function Ec(n,e){return e?Number(e):gc(n)?0:1}function gc(n){return pc.includes(n.toLowerCase())}const Mr={},pe=n=>{console.error(n)},Lr=(n,...e)=>{console.log(`WARN: ${n}`,...e)},be=(n,e)=>{Mr[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),Mr[`${n}/${e}`]=!0)},he=new Error;function fl(n,e,{key:t}){let a=0;const r=n[t],i={},s={};for(let o=1;o<=e.length;o++)s[o+a]=r[o],i[o+a]=!0,a+=El(e[o-1]);n[t]=s,n[t]._emit=i,n[t]._multi=!0}function Sc(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw pe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),he;if(typeof n.beginScope!="object"||n.beginScope===null)throw pe("beginScope must be object"),he;fl(n,n.begin,{key:"beginScope"}),n.begin=ur(n.begin,{joinWith:""})}}function Tc(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw pe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),he;if(typeof n.endScope!="object"||n.endScope===null)throw pe("endScope must be object"),he;fl(n,n.end,{key:"endScope"}),n.end=ur(n.end,{joinWith:""})}}function bc(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function Rc(n){bc(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Sc(n),Tc(n)}function fc(n){function e(s,o){return new RegExp(Oe(s),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(o?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(o,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,o]),this.matchAt+=El(o)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const o=this.regexes.map(l=>l[1]);this.matcherRe=e(ur(o,{joinWith:"|"}),!0),this.lastIndex=0}exec(o){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(o);if(!l)return null;const _=l.findIndex((d,p)=>p>0&&d!==void 0),c=this.matchIndexes[_];return l.splice(0,_),Object.assign(l,c)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(o){if(this.multiRegexes[o])return this.multiRegexes[o];const l=new t;return this.rules.slice(o).forEach(([_,c])=>l.addRule(_,c)),l.compile(),this.multiRegexes[o]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(o,l){this.rules.push([o,l]),l.type==="begin"&&this.count++}exec(o){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let _=l.exec(o);if(this.resumingScanAtSamePosition()&&!(_&&_.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,_=c.exec(o)}return _&&(this.regexIndex+=_.position+1,this.regexIndex===this.count&&this.considerAll()),_}}function r(s){const o=new a;return s.contains.forEach(l=>o.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&o.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&o.addRule(s.illegal,{type:"illegal"}),o}function i(s,o){const l=s;if(s.isCompiled)return l;[sc,_c,Rc,uc].forEach(c=>c(s,o)),n.compilerExtensions.forEach(c=>c(s,o)),s.__beforeBegin=null,[lc,cc,dc].forEach(c=>c(s,o)),s.isCompiled=!0;let _=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),_=s.keywords.$pattern,delete s.keywords.$pattern),_=_||/\w+/,s.keywords&&(s.keywords=Rl(s.keywords,n.case_insensitive)),l.keywordPatternRe=e(_,!0),o&&(s.begin||(s.begin=/\B|\b/),l.beginRe=e(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=e(l.end)),l.terminatorEnd=Oe(l.end)||"",s.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+o.terminatorEnd)),s.illegal&&(l.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(c){return Cc(c==="self"?s:c)})),s.contains.forEach(function(c){i(c,l)}),s.starts&&i(s.starts,o),l.matcher=r(l),l}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=_e(n.classNameAliases||{}),i(n)}function Cl(n){return n?n.endsWithParent||Cl(n.starts):!1}function Cc(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return _e(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:Cl(n)?_e(n,{starts:n.starts?_e(n.starts):null}):Object.isFrozen(n)?_e(n):n}var Nc="11.11.1";class Oc extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Le=pl,xr=_e,Pr=Symbol("nomatch"),Ic=7,Nl=function(n){const e=Object.create(null),t=Object.create(null),a=[];let r=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let o={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ul};function l(T){return o.noHighlightRe.test(T)}function _(T){let O=T.className+" ";O+=T.parentNode?T.parentNode.className:"";const M=o.languageDetectRe.exec(O);if(M){const w=v(M[1]);return w||(Lr(i.replace("{}",M[1])),Lr("Falling back to no-highlight mode for this block.",T)),w?M[1]:"no-highlight"}return O.split(/\s+/).find(w=>l(w)||v(w))}function c(T,O,M){let w="",B="";typeof O=="object"?(w=T,M=O.ignoreIllegals,B=O.language):(be("10.7.0","highlight(lang, code, ...args) has been deprecated."),be("10.7.0",`Please use highlight(code, options) instead. +import{g as xl}from"./index-bOgutTC1.js";function ul(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],a=typeof t;(a==="object"||a==="function")&&!Object.isFrozen(t)&&ul(t)}),n}class yr{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function pl(n){return n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function _e(n,...e){const t=Object.create(null);for(const a in n)t[a]=n[a];return e.forEach(function(a){for(const r in a)t[r]=a[r]}),t}const Pl="",hr=n=>!!n.scope,wl=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((a,r)=>`${a}${"_".repeat(r+1)}`)].join(" ")}return`${e}${n}`};class kl{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=pl(e)}openNode(e){if(!hr(e))return;const t=wl(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){hr(e)&&(this.buffer+=Pl)}value(){return this.buffer}span(e){this.buffer+=``}}const Dr=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class _r{constructor(){this.rootNode=Dr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=Dr({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(a=>this._walk(e,a)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{_r._collapse(t)}))}}class Ul extends _r{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const a=e.root;t&&(a.scope=`language:${t}`),this.add(a)}toHTML(){return new kl(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Oe(n){return n?typeof n=="string"?n:n.source:null}function ml(n){return me("(?=",n,")")}function Fl(n){return me("(?:",n,")*")}function Bl(n){return me("(?:",n,")?")}function me(...n){return n.map(t=>Oe(t)).join("")}function Gl(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function dr(...n){return"("+(Gl(n).capture?"":"?:")+n.map(a=>Oe(a)).join("|")+")"}function El(n){return new RegExp(n.toString()+"|").exec("").length-1}function Yl(n,e){const t=n&&n.exec(e);return t&&t.index===0}const ql=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ur(n,{joinWith:e}){let t=0;return n.map(a=>{t+=1;const r=t;let i=Oe(a),s="";for(;i.length>0;){const o=ql.exec(i);if(!o){s+=i;break}s+=i.substring(0,o.index),i=i.substring(o.index+o[0].length),o[0][0]==="\\"&&o[1]?s+="\\"+String(Number(o[1])+r):(s+=o[0],o[0]==="("&&t++)}return s}).map(a=>`(${a})`).join(e)}const Hl=/\b\B/,gl="[a-zA-Z]\\w*",pr="[a-zA-Z_]\\w*",Sl="\\b\\d+(\\.\\d+)?",Tl="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",bl="\\b(0b[01]+)",Vl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zl=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=me(e,/.*\b/,n.binary,/\b.*/)),_e({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,a)=>{t.index!==0&&a.ignoreMatch()}},n)},Ie={begin:"\\\\[\\s\\S]",relevance:0},Wl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ie]},Kl={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ie]},$l={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},De=function(n,e,t={}){const a=_e({scope:"comment",begin:n,end:e,contains:[]},t);a.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=dr("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return a.contains.push({begin:me(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a},Ql=De("//","$"),Xl=De("/\\*","\\*/"),Zl=De("#","$"),Jl={scope:"number",begin:Sl,relevance:0},jl={scope:"number",begin:Tl,relevance:0},ec={scope:"number",begin:bl,relevance:0},tc={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ie,{begin:/\[/,end:/\]/,relevance:0,contains:[Ie]}]},nc={scope:"title",begin:gl,relevance:0},ac={scope:"title",begin:pr,relevance:0},rc={begin:"\\.\\s*"+pr,relevance:0},ic=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var ye=Object.freeze({__proto__:null,APOS_STRING_MODE:Wl,BACKSLASH_ESCAPE:Ie,BINARY_NUMBER_MODE:ec,BINARY_NUMBER_RE:bl,COMMENT:De,C_BLOCK_COMMENT_MODE:Xl,C_LINE_COMMENT_MODE:Ql,C_NUMBER_MODE:jl,C_NUMBER_RE:Tl,END_SAME_AS_BEGIN:ic,HASH_COMMENT_MODE:Zl,IDENT_RE:gl,MATCH_NOTHING_RE:Hl,METHOD_GUARD:rc,NUMBER_MODE:Jl,NUMBER_RE:Sl,PHRASAL_WORDS_MODE:$l,QUOTE_STRING_MODE:Kl,REGEXP_MODE:tc,RE_STARTERS_RE:Vl,SHEBANG:zl,TITLE_MODE:nc,UNDERSCORE_IDENT_RE:pr,UNDERSCORE_TITLE_MODE:ac});function oc(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function sc(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function lc(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=oc,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function cc(n,e){Array.isArray(n.illegal)&&(n.illegal=dr(...n.illegal))}function _c(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function dc(n,e){n.relevance===void 0&&(n.relevance=1)}const uc=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(a=>{delete n[a]}),n.keywords=t.keywords,n.begin=me(t.beforeMatch,ml(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},pc=["of","and","for","in","not","or","if","then","parent","list","value"],mc="keyword";function Rl(n,e,t=mc){const a=Object.create(null);return typeof n=="string"?r(t,n.split(" ")):Array.isArray(n)?r(t,n):Object.keys(n).forEach(function(i){Object.assign(a,Rl(n[i],e,i))}),a;function r(i,s){e&&(s=s.map(o=>o.toLowerCase())),s.forEach(function(o){const l=o.split("|");a[l[0]]=[i,Ec(l[0],l[1])]})}}function Ec(n,e){return e?Number(e):gc(n)?0:1}function gc(n){return pc.includes(n.toLowerCase())}const Mr={},pe=n=>{console.error(n)},Lr=(n,...e)=>{console.log(`WARN: ${n}`,...e)},be=(n,e)=>{Mr[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),Mr[`${n}/${e}`]=!0)},he=new Error;function fl(n,e,{key:t}){let a=0;const r=n[t],i={},s={};for(let o=1;o<=e.length;o++)s[o+a]=r[o],i[o+a]=!0,a+=El(e[o-1]);n[t]=s,n[t]._emit=i,n[t]._multi=!0}function Sc(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw pe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),he;if(typeof n.beginScope!="object"||n.beginScope===null)throw pe("beginScope must be object"),he;fl(n,n.begin,{key:"beginScope"}),n.begin=ur(n.begin,{joinWith:""})}}function Tc(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw pe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),he;if(typeof n.endScope!="object"||n.endScope===null)throw pe("endScope must be object"),he;fl(n,n.end,{key:"endScope"}),n.end=ur(n.end,{joinWith:""})}}function bc(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function Rc(n){bc(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Sc(n),Tc(n)}function fc(n){function e(s,o){return new RegExp(Oe(s),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(o?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(o,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,o]),this.matchAt+=El(o)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const o=this.regexes.map(l=>l[1]);this.matcherRe=e(ur(o,{joinWith:"|"}),!0),this.lastIndex=0}exec(o){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(o);if(!l)return null;const _=l.findIndex((d,p)=>p>0&&d!==void 0),c=this.matchIndexes[_];return l.splice(0,_),Object.assign(l,c)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(o){if(this.multiRegexes[o])return this.multiRegexes[o];const l=new t;return this.rules.slice(o).forEach(([_,c])=>l.addRule(_,c)),l.compile(),this.multiRegexes[o]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(o,l){this.rules.push([o,l]),l.type==="begin"&&this.count++}exec(o){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let _=l.exec(o);if(this.resumingScanAtSamePosition()&&!(_&&_.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,_=c.exec(o)}return _&&(this.regexIndex+=_.position+1,this.regexIndex===this.count&&this.considerAll()),_}}function r(s){const o=new a;return s.contains.forEach(l=>o.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&o.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&o.addRule(s.illegal,{type:"illegal"}),o}function i(s,o){const l=s;if(s.isCompiled)return l;[sc,_c,Rc,uc].forEach(c=>c(s,o)),n.compilerExtensions.forEach(c=>c(s,o)),s.__beforeBegin=null,[lc,cc,dc].forEach(c=>c(s,o)),s.isCompiled=!0;let _=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),_=s.keywords.$pattern,delete s.keywords.$pattern),_=_||/\w+/,s.keywords&&(s.keywords=Rl(s.keywords,n.case_insensitive)),l.keywordPatternRe=e(_,!0),o&&(s.begin||(s.begin=/\B|\b/),l.beginRe=e(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=e(l.end)),l.terminatorEnd=Oe(l.end)||"",s.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+o.terminatorEnd)),s.illegal&&(l.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(c){return Cc(c==="self"?s:c)})),s.contains.forEach(function(c){i(c,l)}),s.starts&&i(s.starts,o),l.matcher=r(l),l}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=_e(n.classNameAliases||{}),i(n)}function Cl(n){return n?n.endsWithParent||Cl(n.starts):!1}function Cc(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return _e(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:Cl(n)?_e(n,{starts:n.starts?_e(n.starts):null}):Object.isFrozen(n)?_e(n):n}var Nc="11.11.1";class Oc extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Le=pl,xr=_e,Pr=Symbol("nomatch"),Ic=7,Nl=function(n){const e=Object.create(null),t=Object.create(null),a=[];let r=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let o={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ul};function l(T){return o.noHighlightRe.test(T)}function _(T){let O=T.className+" ";O+=T.parentNode?T.parentNode.className:"";const M=o.languageDetectRe.exec(O);if(M){const w=v(M[1]);return w||(Lr(i.replace("{}",M[1])),Lr("Falling back to no-highlight mode for this block.",T)),w?M[1]:"no-highlight"}return O.split(/\s+/).find(w=>l(w)||v(w))}function c(T,O,M){let w="",B="";typeof O=="object"?(w=T,M=O.ignoreIllegals,B=O.language):(be("10.7.0","highlight(lang, code, ...args) has been deprecated."),be("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),B=T,w=O),M===void 0&&(M=!0);const Q={code:w,language:B};X("before:highlight",Q);const ne=Q.result?Q.result:d(Q.language,Q.code,M);return ne.code=Q.code,X("after:highlight",ne),ne}function d(T,O,M,w){const B=Object.create(null);function Q(N,y){return N.keywords[y]}function ne(){if(!x.keywords){te.addText(Y);return}let N=0;x.keywordPatternRe.lastIndex=0;let y=x.keywordPatternRe.exec(Y),P="";for(;y;){P+=Y.substring(N,y.index);const U=oe.case_insensitive?y[0].toLowerCase():y[0],Z=Q(x,U);if(Z){const[se,Ce]=Z;if(te.addText(P),P="",B[U]=(B[U]||0)+1,B[U]<=Ic&&(ue+=Ce),se.startsWith("_"))P+=y[0];else{const Ae=oe.classNameAliases[se]||se;H(y[0],Ae)}}else P+=y[0];N=x.keywordPatternRe.lastIndex,y=x.keywordPatternRe.exec(Y)}P+=Y.substring(N),te.addText(P)}function ae(){if(Y==="")return;let N=null;if(typeof x.subLanguage=="string"){if(!e[x.subLanguage]){te.addText(Y);return}N=d(x.subLanguage,Y,!0,fe[x.subLanguage]),fe[x.subLanguage]=N._top}else N=E(Y,x.subLanguage.length?x.subLanguage:null);x.relevance>0&&(ue+=N.relevance),te.__addSublanguage(N._emitter,N.language)}function z(){x.subLanguage!=null?ae():ne(),Y=""}function H(N,y){N!==""&&(te.startScope(y),te.addText(N),te.endScope())}function J(N,y){let P=1;const U=y.length-1;for(;P<=U;){if(!N._emit[P]){P++;continue}const Z=oe.classNameAliases[N[P]]||N[P],se=y[P];Z?H(se,Z):(Y=se,ne(),Y=""),P++}}function V(N,y){return N.scope&&typeof N.scope=="string"&&te.openNode(oe.classNameAliases[N.scope]||N.scope),N.beginScope&&(N.beginScope._wrap?(H(Y,oe.classNameAliases[N.beginScope._wrap]||N.beginScope._wrap),Y=""):N.beginScope._multi&&(J(N.beginScope,y),Y="")),x=Object.create(N,{parent:{value:x}}),x}function G(N,y,P){let U=Yl(N.endRe,P);if(U){if(N["on:end"]){const Z=new yr(N);N["on:end"](y,Z),Z.isMatchIgnored&&(U=!1)}if(U){for(;N.endsParent&&N.parent;)N=N.parent;return N}}if(N.endsWithParent)return G(N.parent,y,P)}function K(N){return x.matcher.regexIndex===0?(Y+=N[0],1):(ce=!0,0)}function j(N){const y=N[0],P=N.rule,U=new yr(P),Z=[P.__beforeBegin,P["on:begin"]];for(const se of Z)if(se&&(se(N,U),U.isMatchIgnored))return K(y);return P.skip?Y+=y:(P.excludeBegin&&(Y+=y),z(),!P.returnBegin&&!P.excludeBegin&&(Y=y)),V(P,N),P.returnBegin?0:y.length}function ee(N){const y=N[0],P=O.substring(N.index),U=G(x,N,P);if(!U)return Pr;const Z=x;x.endScope&&x.endScope._wrap?(z(),H(y,x.endScope._wrap)):x.endScope&&x.endScope._multi?(z(),J(x.endScope,N)):Z.skip?Y+=y:(Z.returnEnd||Z.excludeEnd||(Y+=y),z(),Z.excludeEnd&&(Y=y));do x.scope&&te.closeNode(),!x.skip&&!x.subLanguage&&(ue+=x.relevance),x=x.parent;while(x!==U.parent);return U.starts&&V(U.starts,N),Z.returnEnd?0:y.length}function re(){const N=[];for(let y=x;y!==oe;y=y.parent)y.scope&&N.unshift(y.scope);N.forEach(y=>te.openNode(y))}let ie={};function Ee(N,y){const P=y&&y[0];if(Y+=N,P==null)return z(),0;if(ie.type==="begin"&&y.type==="end"&&ie.index===y.index&&P===""){if(Y+=O.slice(y.index,y.index+1),!r){const U=new Error(`0 width match regex (${T})`);throw U.languageName=T,U.badRule=ie.rule,U}return 1}if(ie=y,y.type==="begin")return j(y);if(y.type==="illegal"&&!M){const U=new Error('Illegal lexeme "'+P+'" for mode "'+(x.scope||"")+'"');throw U.mode=x,U}else if(y.type==="end"){const U=ee(y);if(U!==Pr)return U}if(y.type==="illegal"&&P==="")return Y+=` `,1;if(Se>1e5&&Se>y.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Y+=P,P.length}const oe=v(T);if(!oe)throw pe(i.replace("{}",T)),new Error('Unknown language: "'+T+'"');const ge=fc(oe);let de="",x=w||ge;const fe={},te=new o.__emitter(o);re();let Y="",ue=0,le=0,Se=0,ce=!1;try{if(oe.__emitTokens)oe.__emitTokens(O,te);else{for(x.matcher.considerAll();;){Se++,ce?ce=!1:x.matcher.considerAll(),x.matcher.lastIndex=le;const N=x.matcher.exec(O);if(!N)break;const y=O.substring(le,N.index),P=Ee(y,N);le=N.index+P}Ee(O.substring(le))}return te.finalize(),de=te.toHTML(),{language:T,value:de,relevance:ue,illegal:!1,_emitter:te,_top:x}}catch(N){if(N.message&&N.message.includes("Illegal"))return{language:T,value:Le(O),illegal:!0,relevance:0,_illegalBy:{message:N.message,index:le,context:O.slice(le-100,le+100),mode:N.mode,resultSoFar:de},_emitter:te};if(r)return{language:T,value:Le(O),illegal:!1,relevance:0,errorRaised:N,_emitter:te,_top:x};throw N}}function p(T){const O={value:Le(T),illegal:!1,relevance:0,_top:s,_emitter:new o.__emitter(o)};return O._emitter.addText(T),O}function E(T,O){O=O||o.languages||Object.keys(e);const M=p(T),w=O.filter(v).filter(k).map(z=>d(z,T,!1));w.unshift(M);const B=w.sort((z,H)=>{if(z.relevance!==H.relevance)return H.relevance-z.relevance;if(z.language&&H.language){if(v(z.language).supersetOf===H.language)return 1;if(v(H.language).supersetOf===z.language)return-1}return 0}),[Q,ne]=B,ae=Q;return ae.secondBest=ne,ae}function m(T,O,M){const w=O&&t[O]||M;T.classList.add("hljs"),T.classList.add(`language-${w}`)}function S(T){let O=null;const M=_(T);if(l(M))return;if(X("before:highlightElement",{el:T,language:M}),T.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",T);return}if(T.children.length>0&&(o.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(T)),o.throwUnescapedHTML))throw new Oc("One of your code blocks includes unescaped HTML.",T.innerHTML);O=T;const w=O.textContent,B=M?c(w,{language:M,ignoreIllegals:!0}):E(w);T.innerHTML=B.value,T.dataset.highlighted="yes",m(T,M,B.language),T.result={language:B.language,re:B.relevance,relevance:B.relevance},B.secondBest&&(T.secondBest={language:B.secondBest.language,relevance:B.secondBest.relevance}),X("after:highlightElement",{el:T,result:B,text:w})}function g(T){o=xr(o,T)}const b=()=>{A(),be("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function R(){A(),be("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let f=!1;function A(){function T(){A()}if(document.readyState==="loading"){f||window.addEventListener("DOMContentLoaded",T,!1),f=!0;return}document.querySelectorAll(o.cssSelector).forEach(S)}function I(T,O){let M=null;try{M=O(n)}catch(w){if(pe("Language definition for '{}' could not be registered.".replace("{}",T)),r)pe(w);else throw w;M=s}M.name||(M.name=T),e[T]=M,M.rawDefinition=O.bind(null,n),M.aliases&&L(M.aliases,{languageName:T})}function C(T){delete e[T];for(const O of Object.keys(t))t[O]===T&&delete t[O]}function h(){return Object.keys(e)}function v(T){return T=(T||"").toLowerCase(),e[T]||e[t[T]]}function L(T,{languageName:O}){typeof T=="string"&&(T=[T]),T.forEach(M=>{t[M.toLowerCase()]=O})}function k(T){const O=v(T);return O&&!O.disableAutodetect}function D(T){T["before:highlightBlock"]&&!T["before:highlightElement"]&&(T["before:highlightElement"]=O=>{T["before:highlightBlock"](Object.assign({block:O.el},O))}),T["after:highlightBlock"]&&!T["after:highlightElement"]&&(T["after:highlightElement"]=O=>{T["after:highlightBlock"](Object.assign({block:O.el},O))})}function F(T){D(T),a.push(T)}function $(T){const O=a.indexOf(T);O!==-1&&a.splice(O,1)}function X(T,O){const M=T;a.forEach(function(w){w[M]&&w[M](O)})}function q(T){return be("10.7.0","highlightBlock will be removed entirely in v12.0"),be("10.7.0","Please use highlightElement now."),S(T)}Object.assign(n,{highlight:c,highlightAuto:E,highlightAll:A,highlightElement:S,highlightBlock:q,configure:g,initHighlighting:b,initHighlightingOnLoad:R,registerLanguage:I,unregisterLanguage:C,listLanguages:h,getLanguage:v,registerAliases:L,autoDetection:k,inherit:xr,addPlugin:F,removePlugin:$}),n.debugMode=function(){r=!1},n.safeMode=function(){r=!0},n.versionString=Nc,n.regex={concat:me,lookahead:ml,either:dr,optional:Bl,anyNumberOfTimes:Fl};for(const T in ye)typeof ye[T]=="object"&&ul(ye[T]);return Object.assign(n,ye),n},Re=Nl({});Re.newInstance=()=>Nl({});var Ac=Re;Re.HighlightJS=Re;Re.default=Re;var xe,wr;function vc(){if(wr)return xe;wr=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",i="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",l="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",E="разделительстраниц разделительстрок символтабуляции "+"ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон "+"acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища "+"wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",B="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля "+"автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы "+"виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента "+"авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных "+"использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц "+"отображениевремениэлементовпланировщика "+"типфайлаформатированногодокумента "+"обходрезультатазапроса типзаписизапроса "+"видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов "+"доступкфайлу режимдиалогавыборафайла режимоткрытияфайла "+"типизмеренияпостроителязапроса "+"видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений "+"wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson "+"видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных "+"важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения "+"режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации "+"расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии "+"кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip "+"звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp "+"направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса "+"httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений "+"важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",ae="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",z="null истина ложь неопределено",H=e.inherit(e.NUMBER_MODE),J={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},V={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},G={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},K=e.inherit(e.C_LINE_COMMENT_MODE),j={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,keyword:i+l},contains:[K]},ee={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},re={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:"знач",literal:z},contains:[H,J,V]},K]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:i,built_in:E,class:B,type:ae,literal:z},contains:[j,re,K,ee,H,J,V,G]}}return xe=n,xe}var Pe,kr;function yc(){if(kr)return Pe;kr=1;function n(e){const t=e.regex,a=/^[a-zA-Z][a-zA-Z0-9-]*/,r=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],i=e.COMMENT(/;/,/$/),s={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},o={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},l={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},_={scope:"symbol",match:/%[si](?=".*")/},c={scope:"attribute",match:t.concat(a,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:r,contains:[{scope:"operator",match:/=\/?/},c,i,s,o,l,_,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return Pe=n,Pe}var we,Ur;function hc(){if(Ur)return we;Ur=1;function n(e){const t=e.regex,a=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:t.concat(/"/,t.either(...a)),end:/"/,keywords:a,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return we=n,we}var ke,Fr;function Dc(){if(Fr)return ke;Fr=1;function n(e){const t=e.regex,a=/[a-zA-Z_$][a-zA-Z0-9_$]*/,r=t.concat(a,t.concat("(\\.",a,")*")),i=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,s={className:"rest_arg",begin:/[.]{3}/,end:a,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s]},{begin:t.concat(/:\s*/,i)}]},e.METHOD_GUARD],illegal:/#/}}return ke=n,ke}var Ue,Br;function Mc(){if(Br)return Ue;Br=1;function n(e){const t="\\d(_|\\d)*",a="[eE][-+]?"+t,r=t+"(\\."+t+")?("+a+")?",i="\\w+",o="\\b("+(t+"#"+i+"(\\."+i+")?#("+a+")?")+"|"+r+")",l="[A-Za-z](_?[A-Za-z0-9.])*",_=`[]\\{\\}%#'"`,c=e.COMMENT("--","$"),d={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:_,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:l,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[c,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:o,relevance:0},{className:"symbol",begin:"'"+l},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:_},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[c,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:_},d,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:_}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:_},d]}}return Ue=n,Ue}var Fe,Gr;function Lc(){if(Gr)return Fe;Gr=1;function n(e){const t={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},a={className:"symbol",begin:"[a-zA-Z0-9_]+@"},r={className:"keyword",begin:"<",end:">",contains:[t,a]};return t.contains=[r],a.contains=[r],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},t,a,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return Fe=n,Fe}var Be,Yr;function xc(){if(Yr)return Be;Yr=1;function n(e){const t={className:"number",begin:/[$%]\d+/},a={className:"number",begin:/\b\d+/},r={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},i={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[r,i,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},r,a,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return Be=n,Be}var Ge,qr;function Pc(){if(qr)return Ge;qr=1;function n(e){const t=e.regex,a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,a]},i=e.COMMENT(/--/,/$/),s=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",i]}),o=[i,s,e.HASH_COMMENT_MODE],l=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],_=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[a,e.C_NUMBER_MODE,{className:"built_in",begin:t.concat(/\b/,t.either(..._),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:t.concat(/\b/,t.either(...l),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,r]},...o],illegal:/\/\/|->|=>|\[\[/}}return Ge=n,Ge}var Ye,Hr;function wc(){if(Hr)return Ye;Hr=1;function n(e){const t=e.regex,a="[A-Za-z_][0-9A-Za-z_]*",r={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","of","return","switch","try","var","void","while"],literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","DistanceToCoordinate","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureInFilter","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","FilterBySubtypeCode","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","KnowledgeGraphByPortalItem","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","MeasureToCoordinate","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","PointToCoordinate","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","QueryGraph","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeFilename","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When|0","Within","Year|0"]},i=["aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","graph","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","userInput","value","variables","view"],s={className:"symbol",begin:"\\$"+t.either(...i)},o={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},l={className:"subst",begin:"\\$\\{",end:"\\}",keywords:r,contains:[]},_={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,l]};l.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,o,e.REGEXP_MODE];const c=l.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:r,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,o,{begin:/[{,]\s*/,relevance:0,contains:[{begin:a+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:a,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+a+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:a},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:c}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:a}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:c}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return Ye=n,Ye}var qe,Vr;function kc(){if(Vr)return qe;Vr=1;function n(t){const a=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",l="(?!struct)("+i+"|"+a.optional(s)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",_={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},E={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},m={className:"title",begin:a.optional(s)+t.IDENT_RE,relevance:0},S=a.optional(s)+t.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],R=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],f=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:b,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:R},h={className:"function.dispatch",relevance:0,keywords:{_hint:f},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},v=[h,E,_,r,t.C_BLOCK_COMMENT_MODE,p,d],L={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:v.concat([{begin:/\(/,end:/\)/,keywords:C,contains:v.concat(["self"]),relevance:0}]),relevance:0},k={className:"function",begin:"("+l+"[\\*&\\s]+)+"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:C,relevance:0},{begin:S,returnBegin:!0,contains:[m],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[d,p]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,d,p,_,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,d,p,_]}]},_,r,t.C_BLOCK_COMMENT_MODE,E]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"",keywords:C,contains:["self",_]},{begin:t.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function e(t){const a={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=n(t),i=r.keywords;return i.type=[...i.type,...a.type],i.literal=[...i.literal,...a.literal],i.built_in=[...i.built_in,...a.built_in],i._hints=a._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}return qe=e,qe}var He,zr;function Uc(){if(zr)return He;zr=1;function n(e){const t={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},t,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return He=n,He}var Ve,Wr;function Fc(){if(Wr)return Ve;Wr=1;function n(e){const t=e.regex,a=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(s,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"string"}),_=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[s,_,l,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[s,o,_,l]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[_]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Ve=n,Ve}var ze,Kr;function Bc(){if(Kr)return ze;Kr=1;function n(e){const t=e.regex,a={begin:"^'{3,}[ \\t]*$",relevance:10},r=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:t.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],s=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:t.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],o={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},l={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},l,o,...r,...i,...s,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},a,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return ze=n,ze}var We,$r;function Gc(){if($r)return We;$r=1;function n(e){const t=e.regex,a=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],r=["get","set","args","call"];return{name:"AspectJ",keywords:a,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:a.concat(r),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:a,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:a.concat(r),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:a,excludeEnd:!0,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:a,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return We=n,We}var Ke,Qr;function Yc(){if(Qr)return Ke;Qr=1;function n(e){const t={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return Ke=n,Ke}var $e,Xr;function qc(){if(Xr)return $e;Xr=1;function n(e){const t="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",a=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],r="True False And Null Not Or Default",i="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",s={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},o={begin:"\\$[A-z0-9_]+"},l={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},_={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},c={className:"meta",begin:"#",end:"$",keywords:{keyword:a},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[l,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},l,s]},d={className:"symbol",begin:"@[A-z0-9_]+"},p={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[o,l,_]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:t,built_in:i,literal:r},contains:[s,o,l,_,c,d,p]}}return $e=n,$e}var Qe,Zr;function Hc(){if(Zr)return Qe;Zr=1;function n(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return Qe=n,Qe}var Xe,Jr;function Vc(){if(Jr)return Xe;Jr=1;function n(e){const t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:a},contains:[t,r,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return Xe=n,Xe}var Ze,jr;function zc(){if(jr)return Ze;jr=1;function n(e){const t=e.UNDERSCORE_IDENT_RE,s={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},o={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s};return{name:"X++",aliases:["x++"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},o]}}return Ze=n,Ze}var Je,ei;function Wc(){if(ei)return Je;ei=1;function n(e){const t=e.regex,a={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[a]}]};Object.assign(a,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},s=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},l={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,i]};i.contains.push(l);const _={match:/\\"/},c={className:"string",begin:/'/,end:/'/},d={match:/\\'/},p={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,a]},E=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],m=e.SHEBANG({binary:`(${E.join("|")})`,relevance:10}),S={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},g=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],b=["true","false"],R={match:/(\/[a-z._-]+)+/},f=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],A=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],I=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],C=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:g,literal:b,built_in:[...f,...A,"set","shopt",...I,...C]},contains:[m,e.SHEBANG(),S,p,s,o,R,l,_,c,d,a]}}return Je=n,Je}var je,ti;function Kc(){if(ti)return je;ti=1;function n(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[{scope:"string",begin:/"/,end:/"|$/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return je=n,je}var et,ni;function $c(){if(ni)return et;ni=1;function n(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin://},{begin:/::=/,end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}return et=n,et}var tt,ai;function Qc(){if(ai)return tt;ai=1;function n(e){const t={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[t]},t]}}return tt=n,tt}var nt,ri;function Xc(){if(ri)return nt;ri=1;function n(e){const t=e.regex,a=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},m=t.optional(i)+e.IDENT_RE+"\\s*\\(",b={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},R=[p,l,a,e.C_BLOCK_COMMENT_MODE,d,c],f={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:R.concat([{begin:/\(/,end:/\)/,keywords:b,contains:R.concat(["self"]),relevance:0}]),relevance:0},A={begin:"("+o+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:b,relevance:0},{begin:m,returnBegin:!0,contains:[e.inherit(E,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,c,d,l,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,c,d,l]}]},l,a,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C",aliases:["h"],keywords:b,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:p,strings:c,keywords:b}}}return nt=n,nt}var at,ii;function Zc(){if(ii)return at;ii=1;function n(e){const t=e.regex,a=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],r="false true",i=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],s={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"string",begin:/(#\d+)+/},l={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},_={className:"string",begin:'"',end:'"'},c={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:a,contains:[s,o,e.NUMBER_MODE]},...i]},d=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],p={match:[/OBJECT/,/\s+/,t.either(...d),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:a,literal:r},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},s,o,l,_,e.NUMBER_MODE,p,c]}}return at=n,at}var rt,oi;function Jc(){if(oi)return rt;oi=1;function n(e){const t=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],a=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],r=["true","false"],i={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:t,type:a,literal:r},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},i]}}return rt=n,rt}var it,si;function jc(){if(si)return it;si=1;function n(e){const t=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],a=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],r=["doc","by","license","see","throws","tagged"],i={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},s=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[i]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return i.contains=s,{name:"Ceylon",keywords:{keyword:t.concat(a),meta:r},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(s)}}return it=n,it}var ot,li;function e_(){if(li)return ot;li=1;function n(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return ot=n,ot}var st,ci;function t_(){if(ci)return st;ci=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&'",a="[#]?["+t+"]["+t+"0-9/;:$#]*",r="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",i={$pattern:a,built_in:r+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},s={begin:a,relevance:0},o={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},l={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},_={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d={scope:"punctuation",match:/,/,relevance:0},p=e.COMMENT(";","$",{relevance:0}),E={className:"literal",begin:/\b(true|false|nil)\b/},m={begin:"\\[|(#::?"+a+")?\\{",end:"[\\]\\}]",relevance:0},S={className:"symbol",begin:"[:]{1,2}"+a},g={begin:"\\(",end:"\\)"},b={endsWithParent:!0,relevance:0},R={keywords:i,className:"name",begin:a,relevance:0,starts:b},f=[d,g,l,_,c,p,S,m,o,E,s],A={beginKeywords:r,keywords:{$pattern:a,keyword:r},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:a,relevance:0,excludeEnd:!0,endsParent:!0}].concat(f)};return g.contains=[A,R,b],b.contains=f,m.contains=f,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[d,g,l,_,c,p,S,m,o,E]}}return st=n,st}var lt,_i;function n_(){if(_i)return lt;_i=1;function n(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return lt=n,lt}var ct,di;function a_(){if(di)return ct;di=1;function n(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return ct=n,ct}var _t,ui;function r_(){if(ui)return _t;ui=1;const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],e=["true","false","null","undefined","NaN","Infinity"],t=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],a=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=[].concat(r,t,a);function s(o){const l=["npm","print"],_=["yes","no","on","off"],c=["then","unless","until","loop","by","when","and","or","is","isnt","not"],d=["var","const","let","function","static"],p=I=>C=>!I.includes(C),E={keyword:n.concat(c).filter(p(d)),literal:e.concat(_),built_in:i.concat(l)},m="[A-Za-z$_][0-9A-Za-z$_]*",S={className:"subst",begin:/#\{/,end:/\}/,keywords:E},g=[o.BINARY_NUMBER_MODE,o.inherit(o.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,S]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,S]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[S,o.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+m},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];S.contains=g;const b=o.inherit(o.TITLE_MODE,{begin:m}),R="(\\(.*\\)\\s*)?\\B[-=]>",f={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:E,contains:["self"].concat(g)}]},A={variants:[{match:[/class\s+/,m,/\s+extends\s+/,m]},{match:[/class\s+/,m]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:E};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:E,illegal:/\/\*/,contains:[...g,o.COMMENT("###","###"),o.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+m+"\\s*=\\s*"+R,end:"[-=]>",returnBegin:!0,contains:[b,f]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:R,end:"[-=]>",returnBegin:!0,contains:[f]}]},A,{begin:m+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return _t=s,_t}var dt,pi;function i_(){if(pi)return dt;pi=1;function n(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return dt=n,dt}var ut,mi;function o_(){if(mi)return ut;mi=1;function n(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}return ut=n,ut}var pt,Ei;function s_(){if(Ei)return pt;Ei=1;function n(e){const t=e.regex,a=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",l={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},m=t.optional(i)+e.IDENT_RE+"\\s*\\(",S=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],R=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],I={type:g,keyword:S,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},C={className:"function.dispatch",relevance:0,keywords:{_hint:R},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},h=[C,p,l,a,e.C_BLOCK_COMMENT_MODE,d,c],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:I,contains:h.concat([{begin:/\(/,end:/\)/,keywords:I,contains:h.concat(["self"]),relevance:0}]),relevance:0},L={className:"function",begin:"("+o+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:I,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:I,relevance:0},{begin:m,returnBegin:!0,contains:[E],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,c,d,l,{begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,c,d,l]}]},l,a,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:I,illegal:"",keywords:I,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:I},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return pt=n,pt}var mt,gi;function l_(){if(gi)return mt;gi=1;function n(e){const t="primitive rsc_template",a="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:t,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+a.split(" ").join("|")+")\\s+",keywords:a,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}return mt=n,mt}var Et,Si;function c_(){if(Si)return Et;Si=1;function n(e){const t="(_?[ui](8|16|32|64|128))?",a="(_?f(32|64))?",r="[a-zA-Z_]\\w*[!?=]?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",s="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",o={$pattern:r,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},l={className:"subst",begin:/#\{/,end:/\}/,keywords:o},_={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},c={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:o};function d(R,f){const A=[{begin:R,end:f}];return A[0].contains=A,A}const p={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:d("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},E={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%q<",end:">",contains:d("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},m={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},S={className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"%r\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%r<",end:">",contains:d("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},g={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},b=[c,p,E,S,m,g,_,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[p,{begin:i}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+a+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return l.contains=b,c.contains=b.slice(1),{name:"Crystal",aliases:["cr"],keywords:o,contains:b}}return Et=n,Et}var gt,Ti;function __(){if(Ti)return gt;Ti=1;function n(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],a=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(s),built_in:t,literal:r},l=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),_={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},p=e.inherit(d,{illegal:/\n/}),E={className:"subst",begin:/\{/,end:/\}/,keywords:o},m=e.inherit(E,{illegal:/\n/}),S={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,m]},g={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},E]},b=e.inherit(g,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},m]});E.contains=[g,S,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.C_BLOCK_COMMENT_MODE],m.contains=[b,S,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const R={variants:[c,g,S,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},A=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",I={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},R,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},l,f,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,f,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+A+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:a.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,f],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[R,_,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},I]}}return gt=n,gt}var St,bi;function d_(){if(bi)return St;bi=1;function n(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return St=n,St}var Tt,Ri;function u_(){if(Ri)return Tt;Ri=1;const n=_=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:_.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:_.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...e,...t],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function l(_){const c=_.regex,d=n(_),p={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},E="and or not only",m=/@-?\w[\w]*(-\w+)*/,S="[a-zA-Z-][a-zA-Z0-9_-]*",g=[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[d.BLOCK_COMMENT,p,d.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+S,relevance:0},d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[d.BLOCK_COMMENT,d.HEXCOLOR,d.IMPORTANT,d.CSS_NUMBER_MODE,...g,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...g,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},d.FUNCTION_DISPATCH]},{begin:c.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:m},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:E,attribute:r.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...g,d.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b"}]}}return Tt=l,Tt}var bt,fi;function p_(){if(fi)return bt;fi=1;function n(e){const t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},a="(0|[1-9][\\d_]*)",r="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",i="0[bB][01_]+",s="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",o="0[xX]"+s,l="([eE][+-]?"+r+")",_="("+r+"(\\.\\d*|"+l+")|\\d+\\."+r+"|\\."+a+l+"?)",c="(0[xX]("+s+"\\."+s+"|\\.?"+s+")[pP][+-]?"+r+")",d="("+a+"|"+i+"|"+o+")",p="("+c+"|"+_+")",E=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,m={className:"number",begin:"\\b"+d+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},S={className:"number",begin:"\\b("+p+"([fF]|L|i|[fF]i|Li)?|"+d+"(i|[fF]i|Li))",relevance:0},g={className:"string",begin:"'("+E+"|.)",end:"'",illegal:"."},R={className:"string",begin:'"',contains:[{begin:E,relevance:0}],end:'"[cwd]?'},f={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},A={className:"string",begin:"`",end:"`[cwd]?"},I={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},C={className:"string",begin:'q"\\{',end:'\\}"'},h={className:"meta",begin:"^#!",end:"$",relevance:5},v={className:"meta",begin:"#(line)",end:"$",relevance:5},L={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},k=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,k,I,R,f,A,C,S,m,g,h,v,L]}}return bt=n,bt}var Rt,Ci;function m_(){if(Ci)return Rt;Ci=1;function n(e){const t=e.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},l=/[A-Za-z][A-Za-z0-9+.-]*/,_={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,l,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=e.inherit(c,{contains:[]}),E=e.inherit(d,{contains:[]});c.contains.push(E),d.contains.push(p);let m=[a,_];return[c,d,p,E].forEach(R=>{R.contains=R.contains.concat(m)}),m=m.concat(c,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:m},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:m}]}]},a,s,c,d,{className:"quote",begin:"^>\\s+",contains:m,end:"$"},i,r,_,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Rt=n,Rt}var ft,Ni;function E_(){if(Ni)return ft;Ni=1;function n(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},a={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},r={className:"number",relevance:0,variants:[{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/},{match:/\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/}]},i={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,a]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,a]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,a]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,a]}]};a.contains=[r,i];const s=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=s.map(c=>`${c}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:s.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[i,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},r,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return ft=n,ft}var Ct,Oi;function g_(){if(Oi)return Ct;Oi=1;function n(e){const t=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],a=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"number",relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},o={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},l={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},_={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[i,o,r].concat(a)},r].concat(a)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,o,s,l,_,r].concat(a)}}return Ct=n,Ct}var Nt,Ii;function S_(){if(Ii)return Nt;Ii=1;function n(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return Nt=n,Nt}var Ot,Ai;function T_(){if(Ai)return Ot;Ai=1;function n(e){const t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[t]}]}}return Ot=n,Ot}var It,vi;function b_(){if(vi)return It;vi=1;function n(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return It=n,It}var At,yi;function R_(){if(yi)return At;yi=1;function n(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i={className:"variable",begin:/&[a-z\d_]*\b/},s={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},o={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},l={className:"params",relevance:0,begin:"<",end:">",contains:[a,i]},_={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},c={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},d={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},p={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},E={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[c,i,s,o,_,p,d,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,t,r,E,{begin:e.IDENT_RE+"::",keywords:""}]}}return ht=n,ht}var Dt,Li;function O_(){if(Li)return Dt;Li=1;function n(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}return Dt=n,Dt}var Mt,xi;function I_(){if(xi)return Mt;xi=1;function n(e){const t=e.COMMENT(/\(\*/,/\*\)/),a={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},i={begin:/=/,end:/[.;]/,contains:[t,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,a,i]}}return Mt=n,Mt}var Lt,Pi;function A_(){if(Pi)return Lt;Pi=1;function n(e){const t=e.regex,a="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",o={$pattern:a,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},l={className:"subst",begin:/#\{/,end:/\}/,keywords:o},_={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},d={match:/\\[\s\S]/,scope:"char.escape",relevance:0},p=`[/|([{<"']`,E=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],m=C=>({scope:"char.escape",begin:t.concat(/\\/,C),relevance:0}),S={className:"string",begin:"~[a-z](?="+p+")",contains:E.map(C=>e.inherit(C,{contains:[m(C.end),d,l]}))},g={className:"string",begin:"~[A-Z](?="+p+")",contains:E.map(C=>e.inherit(C,{contains:[m(C.end)]}))},b={className:"regex",variants:[{begin:"~r(?="+p+")",contains:E.map(C=>e.inherit(C,{end:t.concat(C.end,/[uismxfU]{0,7}/),contains:[m(C.end),d,l]}))},{begin:"~R(?="+p+")",contains:E.map(C=>e.inherit(C,{end:t.concat(C.end,/[uismxfU]{0,7}/),contains:[m(C.end)]}))}]},R={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},f={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},A=e.inherit(f,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),I=[R,b,g,S,e.HASH_COMMENT_MODE,A,f,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[R,{begin:r}],relevance:0},{className:"symbol",begin:a+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},_,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return l.contains=I,{name:"Elixir",aliases:["ex","exs"],keywords:o,contains:I}}return Lt=n,Lt}var xt,wi;function v_(){if(wi)return xt;wi=1;function n(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},a={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},r={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},i={begin:/\{/,end:/\}/,contains:r.contains},s={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[a,r,i,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},s,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,a,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}return xt=n,xt}var Pt,ki;function y_(){if(ki)return Pt;ki=1;function n(e){const t=e.regex,a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},l={className:"doctag",begin:"@[A-Za-z]+"},_={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[l]}),e.COMMENT("^=begin","^=end",{contains:[l],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:o},p={className:"string",contains:[e.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,d]})]}]},E="[1-9](_?[0-9])*|0",m="[0-9](_?[0-9])*",S={className:"number",relevance:0,variants:[{begin:`\\b(${E})(\\.(${m}))?([eE][+-]?(${m})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},g={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},h=[p,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[g]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[p,{begin:a}],relevance:0},S,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(_,c),relevance:0}].concat(_,c);d.contains=h,g.contains=h;const D=[{begin:/^\s*=>/,starts:{end:"$",contains:h}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:h}}];return c.unshift(_),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(D).concat(c).concat(h)}}return Pt=n,Pt}var wt,Ui;function h_(){if(Ui)return wt;Ui=1;function n(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return wt=n,wt}var kt,Fi;function D_(){if(Fi)return kt;Fi=1;function n(e){const t=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:t.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return kt=n,kt}var Ut,Bi;function M_(){if(Bi)return Ut;Bi=1;function n(e){const t="[a-z'][a-zA-Z0-9_']*",a="("+t+":"+t+"|"+t+")",r={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor maybe else",literal:"false true"},i=e.COMMENT("%","$"),s={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},o={begin:"fun\\s+"+t+"/\\d+"},l={begin:a+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:a,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},_={begin:/\{/,end:/\}/,relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},d={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},p={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},E={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},m={scope:"string",match:/"""("*)(?!")[\s\S]*?"""\1/},S={scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{match:/~\w?"""("*)(?!")[\s\S]*?"""\1/},{begin:/~\w?\(/,end:/\)/},{begin:/~\w?\[/,end:/\]/},{begin:/~\w?{/,end:/}/},{begin:/~\w?/},{begin:/~\w?\//,end:/\//},{begin:/~\w?\|/,end:/\|/},{begin:/~\w?'/,end:/'/},{begin:/~\w?"/,end:/"/},{begin:/~\w?`/,end:/`/},{begin:/~\w?#/,end:/#/}]},g={beginKeywords:"fun receive if try case maybe",end:"end",keywords:r};g.contains=[i,o,e.inherit(e.APOS_STRING_MODE,{className:""}),g,l,S,m,e.QUOTE_STRING_MODE,s,_,c,d,p,E];const b=[i,o,g,l,S,m,e.QUOTE_STRING_MODE,s,_,c,d,p,E];l.contains[1].contains=b,_.contains=b,p.contains[1].contains=b;const R=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-moduledoc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec","-on_load","-nifs"],f={className:"params",begin:"\\(",end:"\\)",contains:b};return{name:"Erlang",aliases:["erl"],keywords:r,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[f,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:r,contains:b}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:R.map(A=>`${A}|1.5`).join(" ")},contains:[f,S,m,e.QUOTE_STRING_MODE]},s,S,m,e.QUOTE_STRING_MODE,p,c,d,_,E,{begin:/\.$/}]}}return Ut=n,Ut}var Ft,Gi;function L_(){if(Gi)return Ft;Gi=1;function n(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ARRAYTOTEXT","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","BYCOL","BYROW","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CHOOSECOLS","CHOOSEROWS","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DROP","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPAND","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE","F.DIST","FDIST","F.DIST.RT","FILTER","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HSTACK","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGE","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISOMITTED","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LAMBDA","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LET","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MAKEARRAY","MAP","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDB","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDARRAY","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REDUCE","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SCAN","SEARCH","SEARCHB","SEC","SECH","SECOND","SEQUENCE","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SORT","SORTBY","SQRT","SQRTPI","SQL.REQUEST","STANDARDIZE","STOCKHISTORY","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TAKE","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTAFTER","TEXTBEFORE","TEXTJOIN","TEXTSPLIT","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TOCOL","TOROW","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UNIQUE","UPPER","VALUE","VALUETOTEXT","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","VSTACK","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","WRAPCOLS","WRAPROWS","XIRR","XLOOKUP","XMATCH","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return Ft=n,Ft}var Bt,Yi;function x_(){if(Yi)return Bt;Yi=1;function n(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return Bt=n,Bt}var Gt,qi;function P_(){if(qi)return Gt;qi=1;function n(e){const t={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},a={className:"string",variants:[{begin:'"',end:'"'}]},i={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t,a,i,e.C_NUMBER_MODE]}}return Gt=n,Gt}var Yt,Hi;function w_(){if(Hi)return Yt;Hi=1;function n(e){const t=e.regex,a={className:"params",begin:"\\(",end:"\\)"},r={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},i=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,s,i)},{begin:t.concat(/\b\d+/,s,i)},{begin:t.concat(/\.\d+/,s,i)}],relevance:0},l={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,a]},_={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[_,l,{begin:/^C\s*=(?!=)/,relevance:0},r,o]}}return Yt=n,Yt}var qt,Vi;function k_(){if(Vi)return qt;Vi=1;function n(o){return new RegExp(o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function e(o){return o?typeof o=="string"?o:o.source:null}function t(o){return a("(?=",o,")")}function a(...o){return o.map(_=>e(_)).join("")}function r(o){const l=o[o.length-1];return typeof l=="object"&&l.constructor===Object?(o.splice(o.length-1,1),l):{}}function i(...o){return"("+(r(o).capture?"":"?:")+o.map(c=>e(c)).join("|")+")"}function s(o){const l=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],_={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},c=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],d=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],p=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],E=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],S={keyword:l,literal:d,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":p},b={variants:[o.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),o.C_LINE_COMMENT_MODE]},R=/[a-zA-Z_](\w|')*/,f={scope:"variable",begin:/``/,end:/``/},A=/\B('|\^)/,I={scope:"symbol",variants:[{match:a(A,/``.*?``/)},{match:a(A,o.UNDERSCORE_IDENT_RE)}],relevance:0},C=function({includeEqual:H}){let J;H?J="!%&*+-/<=>@^|~?":J="!%&*+-/<>@^|~?";const V=Array.from(J),G=a("[",...V.map(n),"]"),K=i(G,/\./),j=a(K,t(K)),ee=i(a(j,K,"*"),a(G,"+"));return{scope:"operator",match:i(ee,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},h=C({includeEqual:!0}),v=C({includeEqual:!1}),L=function(H,J){return{begin:a(H,t(a(/\s*/,i(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:J,end:t(i(/\n/,/=/)),relevance:0,keywords:o.inherit(S,{type:E}),contains:[b,I,o.inherit(f,{scope:null}),v]}},k=L(/:/,"operator"),D=L(/\bof\b/,"keyword"),F={begin:[/(^|\s+)/,/type/,/\s+/,R],beginScope:{2:"keyword",4:"title.class"},end:t(/\(|=|$/),keywords:S,contains:[b,o.inherit(f,{scope:null}),I,{scope:"operator",match:/<|>/},k]},$={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},X={begin:[/^\s*/,a(/#/,i(...c)),/\b/],beginScope:{2:"meta"},end:t(/\s|$/)},q={variants:[o.BINARY_NUMBER_MODE,o.C_NUMBER_MODE]},T={scope:"string",begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE]},O={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},o.BACKSLASH_ESCAPE]},M={scope:"string",begin:/"""/,end:/"""/,relevance:2},w={scope:"subst",begin:/\{/,end:/\}/,keywords:S},B={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},o.BACKSLASH_ESCAPE,w]},Q={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},o.BACKSLASH_ESCAPE,w]},ne={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},w],relevance:2},ae={scope:"string",match:a(/'/,i(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return w.contains=[Q,B,O,T,ae,_,b,f,k,$,X,q,I,h],{name:"F#",aliases:["fs","f#"],keywords:S,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[_,{variants:[ne,Q,B,M,O,T,ae]},b,f,F,{scope:"meta",begin:/\[\]/,relevance:2,contains:[f,M,O,T,ae,q]},D,k,$,X,q,I,h]}}return qt=s,qt}var Ht,zi;function U_(){if(zi)return Ht;zi=1;function n(e){const t=e.regex,a={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},r={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},s={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},o={begin:"/",end:"/",keywords:a,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},l=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,_={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[s,o,{className:"comment",begin:t.concat(l,t.anyNumberOfTimes(t.concat(/[ ]+/,l))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:a,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,_]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[_]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},r,i]},e.C_NUMBER_MODE,i]}}return Ht=n,Ht}var Vt,Wi;function F_(){if(Wi)return Vt;Wi=1;function n(e){const t={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},a=e.COMMENT("@","@"),r={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a]},i={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},s=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,i]}],o={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},l=function(E,m,S){const g=e.inherit({className:"function",beginKeywords:E,end:m,excludeEnd:!0,contains:[].concat(s)},{});return g.contains.push(o),g.contains.push(e.C_NUMBER_MODE),g.contains.push(e.C_BLOCK_COMMENT_MODE),g.contains.push(a),g},_={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},c={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},d={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},_,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},p={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,_,d,c,"self"]};return d.contains.push(p),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,c,r,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},l("proc keyword",";"),l("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,a,p]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},d,i]}}return Vt=n,Vt}var zt,Ki;function B_(){if(Ki)return zt;Ki=1;function n(e){const t=e.regex,a={$pattern:/[A-Z]+|%/,keyword:["THEN","ELSE","ENDIF","IF","GOTO","DO","WHILE","WH","END","CALL","SUB","ENDSUB","EQ","NE","LT","GT","LE","GE","AND","OR","XOR","%"],built_in:["ATAN","ABS","ACOS","ASIN","COS","EXP","FIX","FUP","ROUND","LN","SIN","SQRT","TAN","EXISTS"]},r=/\b/;function i(m,S){if(m.index===0)return;const g=m.input[m.index-1];g>="0"&&g<="9"||g!=="_"&&S.ignoreMatch()}const s=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,o=/[GM]\s*\d+(\.\d+)?/,l=/T\s*\d+/,_=/O\s*\d+/,c=/O<.+>/,d=/[ABCUVWXYZ]\s*/,p=/[FHIJKPQRS]\s*/,E=[e.COMMENT(/\(/,/\)/),e.COMMENT(/;/,/$/),e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{scope:"title.function",variants:[{match:t.concat(r,o)},{begin:o,"on:begin":i},{match:t.concat(r,l)},{begin:l,"on:begin":i}]},{scope:"symbol",variants:[{match:t.concat(r,_)},{begin:_,"on:begin":i},{match:t.concat(r,c)},{begin:c,"on:begin":i},{match:/\*\s*\d+\s*$/}]},{scope:"operator",match:/^N\s*\d+/},{scope:"variable",match:/-?#\s*\d+/},{scope:"property",variants:[{match:t.concat(r,d,s)},{begin:t.concat(d,s),"on:begin":i}]},{scope:"params",variants:[{match:t.concat(r,p,s)},{begin:t.concat(p,s),"on:begin":i}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,disableAutodetect:!0,keywords:a,contains:E}}return zt=n,zt}var Wt,$i;function G_(){if($i)return Wt;$i=1;function n(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}return Wt=n,Wt}var Kt,Qi;function Y_(){if(Qi)return Kt;Qi=1;function n(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return Kt=n,Kt}var $t,Xi;function q_(){if(Xi)return $t;Xi=1;function n(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","new","not","or","repeat","return","static","switch","then","until","var","while","with","xor"],built_in:["abs","alarm_get","alarm_set","angle_difference","animcurve_channel_evaluate","animcurve_channel_new","animcurve_create","animcurve_destroy","animcurve_exists","animcurve_get","animcurve_get_channel","animcurve_get_channel_index","animcurve_point_new","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_all","array_any","array_concat","array_contains","array_contains_ext","array_copy","array_copy_while","array_create","array_create_ext","array_delete","array_equals","array_filter","array_filter_ext","array_find_index","array_first","array_foreach","array_get","array_get_index","array_insert","array_intersection","array_last","array_length","array_map","array_map_ext","array_pop","array_push","array_reduce","array_resize","array_reverse","array_reverse_ext","array_set","array_shuffle","array_shuffle_ext","array_sort","array_union","array_unique","array_unique_ext","asset_add_tags","asset_clear_tags","asset_get_ids","asset_get_index","asset_get_tags","asset_get_type","asset_has_any_tag","asset_has_tags","asset_remove_tags","audio_bus_clear_emitters","audio_bus_create","audio_bus_get_emitters","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_effect_create","audio_emitter_bus","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_bus","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_get_assets","audio_group_get_gain","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_pause_all","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_sound","audio_play_sound_at","audio_play_sound_ext","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_audio_group","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_loop","audio_sound_get_loop_end","audio_sound_get_loop_start","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_is_playable","audio_sound_length","audio_sound_loop","audio_sound_loop_end","audio_sound_loop_start","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_paused","audio_sync_group_is_playing","audio_system_is_available","audio_system_is_initialised","base64_decode","base64_encode","bool","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_compress","buffer_copy","buffer_copy_from_vertex_buffer","buffer_copy_stride","buffer_crc32","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_decompress","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_set_used_size","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","call_cancel","call_later","camera_apply","camera_copy_transforms","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","db_to_lin","dbg_add_font_glyphs","dbg_button","dbg_checkbox","dbg_color","dbg_colour","dbg_drop_down","dbg_same_line","dbg_section","dbg_section_delete","dbg_section_exists","dbg_slider","dbg_slider_int","dbg_sprite","dbg_text","dbg_text_input","dbg_view","dbg_view_delete","dbg_view_exists","dbg_watch","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_frequency","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_drawevent","draw_enable_skeleton_blendmodes","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_enable_skeleton_blendmodes","draw_get_font","draw_get_halign","draw_get_lighting","draw_get_swf_aa_level","draw_get_valign","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_circle_precision","draw_set_color","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_to_mp_grid","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_is_list","ds_list_is_map","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_is_list","ds_map_is_map","ds_map_keys_to_array","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_values_to_array","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","effect_create_depth","effect_create_layer","environment_get_variable","event_inherited","event_perform","event_perform_async","event_perform_object","event_user","exception_unhandled_handler","exp","extension_exists","extension_get_option_count","extension_get_option_names","extension_get_option_value","extension_get_options","extension_get_version","external_call","external_define","external_free","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_cache_glyph","font_delete","font_enable_effects","font_enable_sdf","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_info","font_get_italic","font_get_last","font_get_name","font_get_sdf_enabled","font_get_sdf_spread","font_get_size","font_get_texture","font_get_uvs","font_replace_sprite","font_replace_sprite_ext","font_sdf_spread","font_set_cache_size","frac","fx_create","fx_get_name","fx_get_parameter","fx_get_parameter_names","fx_get_parameters","fx_get_single_layer","fx_set_parameter","fx_set_parameters","fx_set_single_layer","game_change","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_get_guid","gamepad_get_mapping","gamepad_get_option","gamepad_hat_count","gamepad_hat_value","gamepad_is_connected","gamepad_is_supported","gamepad_remove_mapping","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_option","gamepad_set_vibration","gamepad_test_mapping","gc_collect","gc_enable","gc_get_stats","gc_get_target_frame_time","gc_is_enabled","gc_target_frame_time","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gif_add_surface","gif_open","gif_save","gif_save_buffer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_depth","gpu_get_fog","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_depth","gpu_set_fog","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","handle_parse","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_get_request_crossorigin","http_post_string","http_request","http_set_request_crossorigin","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","instanceof","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_callable","is_debug_overlay_open","is_handle","is_infinity","is_instanceof","is_int32","is_int64","is_keyboard_used_debug_overlay","is_method","is_mouse_over_debug_overlay","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","json_decode","json_encode","json_parse","json_stringify","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_clear_fx","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_enable_fx","layer_exists","layer_force_draw_depth","layer_fx_is_enabled","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_fx","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_sequence_angle","layer_sequence_create","layer_sequence_destroy","layer_sequence_exists","layer_sequence_get_angle","layer_sequence_get_headdir","layer_sequence_get_headpos","layer_sequence_get_instance","layer_sequence_get_length","layer_sequence_get_sequence","layer_sequence_get_speedscale","layer_sequence_get_x","layer_sequence_get_xscale","layer_sequence_get_y","layer_sequence_get_yscale","layer_sequence_headdir","layer_sequence_headpos","layer_sequence_is_finished","layer_sequence_is_paused","layer_sequence_pause","layer_sequence_play","layer_sequence_speedscale","layer_sequence_x","layer_sequence_xscale","layer_sequence_y","layer_sequence_yscale","layer_set_fx","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","lin_to_db","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","method","method_call","method_get_index","method_get_self","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_and_collide","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","nameof","network_connect","network_connect_async","network_connect_raw","network_connect_raw_async","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_check_permission","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","os_request_permission","os_set_orientation_lock","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_delay","part_emitter_destroy","part_emitter_destroy_all","part_emitter_enable","part_emitter_exists","part_emitter_interval","part_emitter_region","part_emitter_relative","part_emitter_stream","part_particles_burst","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_angle","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_color","part_system_colour","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_info","part_system_get_layer","part_system_global_space","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_size_x","part_type_size_y","part_type_speed","part_type_sprite","part_type_step","part_type_subimage","particle_exists","particle_get_info","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","ref_create","rollback_chat","rollback_create_game","rollback_define_extra_network_latency","rollback_define_input","rollback_define_input_frame_delay","rollback_define_mock_input","rollback_define_player","rollback_display_events","rollback_get_info","rollback_get_input","rollback_get_player_prefs","rollback_join_game","rollback_leave_game","rollback_set_player_prefs","rollback_start_game","rollback_sync_on_frame","rollback_use_late_join","rollback_use_manual_start","rollback_use_player_prefs","rollback_use_random_input","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_info","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_camera","room_set_height","room_set_persistent","room_set_view_enabled","room_set_viewport","room_set_width","round","scheduler_resolution_get","scheduler_resolution_set","screen_save","screen_save_part","script_execute","script_execute_ext","script_exists","script_get_name","sequence_create","sequence_destroy","sequence_exists","sequence_get","sequence_get_objects","sequence_instance_override_object","sequence_keyframe_new","sequence_keyframedata_new","sequence_track_new","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_f_buffer","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_message_ext","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_event_frames","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_get_position","skeleton_animation_is_finished","skeleton_animation_is_looping","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_animation_set_position","skeleton_attachment_create","skeleton_attachment_create_color","skeleton_attachment_create_colour","skeleton_attachment_destroy","skeleton_attachment_exists","skeleton_attachment_get","skeleton_attachment_replace","skeleton_attachment_replace_color","skeleton_attachment_replace_colour","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_list","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_find_slot","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_create","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_alpha_get","skeleton_slot_color_get","skeleton_slot_color_set","skeleton_slot_colour_get","skeleton_slot_colour_set","skeleton_slot_data","skeleton_slot_data_instance","skeleton_slot_list","sprite_add","sprite_add_ext","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_mode","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_info","sprite_get_name","sprite_get_nineslice","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_nineslice_create","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_bbox","sprite_set_bbox_mode","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_nineslice","sprite_set_offset","sprite_set_speed","sqr","sqrt","static_get","static_set","string","string_byte_at","string_byte_length","string_char_at","string_concat","string_concat_ext","string_copy","string_count","string_delete","string_digits","string_ends_with","string_ext","string_foreach","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_join","string_join_ext","string_last_pos","string_last_pos_ext","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_pos_ext","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_split","string_split_ext","string_starts_with","string_trim","string_trim_end","string_trim_start","string_upper","string_width","string_width_ext","struct_exists","struct_foreach","struct_get","struct_get_from_hash","struct_get_names","struct_names_count","struct_remove","struct_set","struct_set_from_hash","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_format_is_supported","surface_free","surface_get_depth_disable","surface_get_format","surface_get_height","surface_get_target","surface_get_target_ext","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tag_get_asset_ids","tag_get_assets","tan","texture_debug_messages","texture_flush","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_is_ready","texture_prefetch","texture_set_stage","texturegroup_get_fonts","texturegroup_get_names","texturegroup_get_sprites","texturegroup_get_status","texturegroup_get_textures","texturegroup_get_tilesets","texturegroup_load","texturegroup_set_mode","texturegroup_unload","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_height","tilemap_set_mask","tilemap_set_width","tilemap_tileset","tilemap_x","tilemap_y","tileset_get_info","tileset_get_name","tileset_get_texture","tileset_get_uvs","time_bpm_to_seconds","time_seconds_to_bpm","time_source_create","time_source_destroy","time_source_exists","time_source_get_children","time_source_get_parent","time_source_get_period","time_source_get_reps_completed","time_source_get_reps_remaining","time_source_get_state","time_source_get_time_remaining","time_source_get_units","time_source_pause","time_source_reconfigure","time_source_reset","time_source_resume","time_source_start","time_source_stop","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","uwp_device_touchscreen_available","uwp_livetile_badge_clear","uwp_livetile_badge_notification","uwp_livetile_notification_begin","uwp_livetile_notification_end","uwp_livetile_notification_expiry","uwp_livetile_notification_image_add","uwp_livetile_notification_secondary_begin","uwp_livetile_notification_tag","uwp_livetile_notification_template_add","uwp_livetile_notification_text_add","uwp_livetile_queue_enable","uwp_livetile_tile_clear","uwp_secondarytile_badge_clear","uwp_secondarytile_badge_notification","uwp_secondarytile_delete","uwp_secondarytile_pin","uwp_secondarytile_tile_clear","variable_clone","variable_get_hash","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_names_count","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_format_get_info","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_submit_ext","vertex_texcoord","vertex_ubyte4","vertex_update_buffer_from_buffer","vertex_update_buffer_from_vertex","video_close","video_draw","video_enable_loop","video_get_duration","video_get_format","video_get_position","video_get_status","video_get_volume","video_is_looping","video_open","video_pause","video_resume","video_seek_to","video_set_volume","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","wallpaper_set_config","wallpaper_set_subscriptions","weak_ref_alive","weak_ref_any_alive","weak_ref_create","window_center","window_device","window_enable_borderless_fullscreen","window_get_borderless_fullscreen","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_showborder","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_delta_x","window_mouse_get_delta_y","window_mouse_get_locked","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_mouse_set_locked","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_showborder","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_tile_background_color","winphone_tile_background_colour","zip_add_file","zip_create","zip_save","zip_unzip","zip_unzip_async"],symbol:["AudioEffect","AudioEffectType","AudioLFOType","GM_build_date","GM_build_type","GM_is_sandboxed","GM_project_filename","GM_runtime_version","GM_version","NaN","_GMFILE_","_GMFUNCTION_","_GMLINE_","alignmentH","alignmentV","all","animcurvetype_bezier","animcurvetype_catmullrom","animcurvetype_linear","asset_animationcurve","asset_font","asset_object","asset_path","asset_room","asset_script","asset_sequence","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3D","audio_bus_main","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_exponent_distance_scaled","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_inverse_distance_scaled","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_stereo","bboxkind_diamond","bboxkind_ellipse","bboxkind_precise","bboxkind_rectangular","bboxmode_automatic","bboxmode_fullimage","bboxmode_manual","bm_add","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_grow","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","c_aqua","c_black","c_blue","c_dkgray","c_dkgrey","c_fuchsia","c_gray","c_green","c_grey","c_lime","c_ltgray","c_ltgrey","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cache_directory","characterSpacing","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","coreColor","coreColour","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","dropShadowEnabled","dropShadowEnabled","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","effectsEnabled","effectsEnabled","ev_alarm","ev_animation_end","ev_animation_event","ev_animation_update","ev_async_audio_playback","ev_async_audio_playback_ended","ev_async_audio_recording","ev_async_dialog","ev_async_push_notification","ev_async_save_load","ev_async_save_load","ev_async_social","ev_async_system_event","ev_async_web","ev_async_web_cloud","ev_async_web_iap","ev_async_web_image_load","ev_async_web_networking","ev_async_web_steam","ev_audio_playback","ev_audio_playback_ended","ev_audio_recording","ev_boundary","ev_boundary_view0","ev_boundary_view1","ev_boundary_view2","ev_boundary_view3","ev_boundary_view4","ev_boundary_view5","ev_boundary_view6","ev_boundary_view7","ev_broadcast_message","ev_cleanup","ev_collision","ev_create","ev_destroy","ev_dialog_async","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_normal","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_outside_view0","ev_outside_view1","ev_outside_view2","ev_outside_view3","ev_outside_view4","ev_outside_view5","ev_outside_view6","ev_outside_view7","ev_pre_create","ev_push_notification","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_social","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_system_event","ev_trigger","ev_user0","ev_user1","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_web_async","ev_web_cloud","ev_web_iap","ev_web_image_load","ev_web_networking","ev_web_sound_load","ev_web_steam","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_none","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","false","frameSizeX","frameSizeY","gamespeed_fps","gamespeed_microseconds","global","glowColor","glowColour","glowEnabled","glowEnabled","glowEnd","glowStart","gp_axis_acceleration_x","gp_axis_acceleration_y","gp_axis_acceleration_z","gp_axis_angular_velocity_x","gp_axis_angular_velocity_y","gp_axis_angular_velocity_z","gp_axis_orientation_w","gp_axis_orientation_x","gp_axis_orientation_y","gp_axis_orientation_z","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","infinity","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sequence","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","lineSpacing","m_axisx","m_axisx_gui","m_axisy","m_axisy_gui","m_scroll_down","m_scroll_up","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mb_side1","mb_side2","mip_markedonly","mip_off","mip_on","network_config_avoid_time_wait","network_config_connect_timeout","network_config_disable_multicast","network_config_disable_reliable_udp","network_config_enable_multicast","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_config_websocket_protocol","network_connect_active","network_connect_blocking","network_connect_nonblocking","network_connect_none","network_connect_passive","network_send_binary","network_send_text","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_socket_ws","network_socket_wss","network_type_connect","network_type_data","network_type_disconnect","network_type_down","network_type_non_blocking_connect","network_type_up","network_type_up_failed","nineslice_blank","nineslice_bottom","nineslice_center","nineslice_centre","nineslice_hide","nineslice_left","nineslice_mirror","nineslice_repeat","nineslice_right","nineslice_stretch","nineslice_top","noone","of_challenge_lose","of_challenge_tie","of_challenge_win","os_android","os_gdk","os_gxgames","os_ios","os_linux","os_macosx","os_operagx","os_permission_denied","os_permission_denied_dont_request","os_permission_granted","os_ps3","os_ps4","os_ps5","os_psvita","os_switch","os_tvos","os_unknown","os_uwp","os_win8native","os_windows","os_winphone","os_xboxone","os_xboxseriesxs","other","outlineColor","outlineColour","outlineDist","outlineEnabled","outlineEnabled","paragraphSpacing","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pointer_invalid","pointer_null","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_mode_burst","ps_mode_stream","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","rollback_chat_message","rollback_connect_error","rollback_connect_info","rollback_connected_to_peer","rollback_connection_rejected","rollback_disconnected_from_peer","rollback_end_game","rollback_game_full","rollback_game_info","rollback_game_interrupted","rollback_game_resumed","rollback_high_latency","rollback_player_prefs","rollback_protocol_rejected","rollback_synchronized_with_peer","rollback_synchronizing_with_peer","self","seqaudiokey_loop","seqaudiokey_oneshot","seqdir_left","seqdir_right","seqinterpolation_assign","seqinterpolation_lerp","seqplay_loop","seqplay_oneshot","seqplay_pingpong","seqtextkey_bottom","seqtextkey_center","seqtextkey_justify","seqtextkey_left","seqtextkey_middle","seqtextkey_right","seqtextkey_top","seqtracktype_audio","seqtracktype_bool","seqtracktype_clipmask","seqtracktype_clipmask_mask","seqtracktype_clipmask_subject","seqtracktype_color","seqtracktype_colour","seqtracktype_empty","seqtracktype_graphic","seqtracktype_group","seqtracktype_instance","seqtracktype_message","seqtracktype_moment","seqtracktype_particlesystem","seqtracktype_real","seqtracktype_sequence","seqtracktype_spriteframes","seqtracktype_string","seqtracktype_text","shadowColor","shadowColour","shadowOffsetX","shadowOffsetY","shadowSoftness","sprite_add_ext_error_cancelled","sprite_add_ext_error_decompressfailed","sprite_add_ext_error_loadfailed","sprite_add_ext_error_setupfailed","sprite_add_ext_error_spritenotfound","sprite_add_ext_error_unknown","spritespeed_framespergameframe","spritespeed_framespersecond","surface_r16float","surface_r32float","surface_r8unorm","surface_rg8unorm","surface_rgba16float","surface_rgba32float","surface_rgba4unorm","surface_rgba8unorm","texturegroup_status_fetched","texturegroup_status_loaded","texturegroup_status_loading","texturegroup_status_unloaded","tf_anisotropic","tf_linear","tf_point","thickness","tile_flip","tile_index_mask","tile_mirror","tile_rotate","time_source_expire_after","time_source_expire_nearest","time_source_game","time_source_global","time_source_state_active","time_source_state_initial","time_source_state_paused","time_source_state_stopped","time_source_units_frames","time_source_units_seconds","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","tm_systemtiming","true","ty_real","ty_string","undefined","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","video_format_rgba","video_format_yuv","video_status_closed","video_status_paused","video_status_playing","video_status_preparing","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f10","vk_f11","vk_f12","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up","wallpaper_config","wallpaper_subscription_data","wrap"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","colour?ColourTrack","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","drawn_by_sequence","event_action","event_data","event_number","event_object","event_type","font_texture_page_size","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gravity","gravity_direction","health","hspeed","iap_data","id","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","in_collision_tree","in_sequence","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","longMessage","managed","mask_index","message","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","player_avatar_sprite","player_avatar_url","player_id","player_local","player_type","player_user_id","program_directory","rollback_api_server","rollback_confirmed_frame","rollback_current_frame","rollback_event_id","rollback_event_param","rollback_game_running","room","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","script","sequence_instance","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","stacktrace","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_camera","view_current","view_enabled","view_hport","view_surface_id","view_visible","view_wport","view_xport","view_yport","visible","vspeed","webgl_enabled","working_directory","x","xprevious","xstart","y","yprevious","ystart"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return $t=n,$t}var Qt,Zi;function H_(){if(Zi)return Qt;Zi=1;function n(e){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return en=n,en}var tn,ao;function Q_(){if(ao)return tn;ao=1;function n(e){const t=e.regex,a={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},r={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},i=/""|"[^"]+"/,s=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,l=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,_=/(\.|\/)/,c=t.either(i,s,o,l),d=t.concat(t.optional(/\.|\.\/|\//),c,t.anyNumberOfTimes(t.concat(_,c))),p=t.concat("(",o,"|",l,")(?==)"),E={begin:d},m=e.inherit(E,{keywords:r}),S={begin:/\(/,end:/\)/},g={className:"attr",begin:p,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,m,S]}}},b={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},R={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,b,g,m,S],returnEnd:!0},f=e.inherit(E,{className:"name",keywords:a,starts:e.inherit(R,{end:/\)/})});S.contains=[f];const A=e.inherit(E,{keywords:a,className:"name",starts:e.inherit(R,{end:/\}\}/})}),I=e.inherit(E,{keywords:a,className:"name"}),C=e.inherit(E,{className:"name",keywords:a,starts:e.inherit(R,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[A],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[I]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[A]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[I]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[C]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[C]}]}}return tn=n,tn}var nn,ro;function X_(){if(ro)return nn;ro=1;function n(e){const t="([0-9]_*)+",a="([0-9a-fA-F]_*)+",r="([01]_*)+",i="([0-7]_*)+",_="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",c={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},d={className:"meta",begin:/\{-#/,end:/#-\}/},p={className:"meta",begin:"^#",end:"$"},E={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},m={begin:"\\(",end:"\\)",illegal:'"',contains:[d,p,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),c]},S={begin:/\{/,end:/\}/,contains:m.contains},g={className:"number",relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${a})(\\.(${a}))?([pP][+-]?(${t}))?\\b`},{match:`\\b0[oO](${i})\\b`},{match:`\\b0[bB](${r})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[m,c],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[m,c],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[E,m,c]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[d,E,m,S,c]},{beginKeywords:"default",end:"$",contains:[E,m,c]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,c]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[E,e.QUOTE_STRING_MODE,c]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},d,p,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,g,E,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${_}--+|--+(?!-)${_}`},c,{begin:"->|<-"}]}}return nn=n,nn}var an,io;function Z_(){if(io)return an;io=1;function n(e){const t="[a-zA-Z_$][a-zA-Z0-9_$]*",a=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:a,relevance:0},{className:"variable",begin:"\\$"+t},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",beginKeywords:"new",end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[e.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+e.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}return an=n,an}var rn,oo;function J_(){if(oo)return rn;oo=1;function n(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}return rn=n,rn}var on,so;function j_(){if(so)return on;so=1;function n(e){const t=e.regex,a="HTTP/([32]|1\\.[01])",r=/[A-Za-z][A-Za-z0-9-]*/,i={className:"attribute",begin:t.concat("^",r,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},s=[i,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+a+" \\d{3})",end:/$/,contains:[{className:"meta",begin:a},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},{begin:"(?=^[A-Z]+ (.*?) "+a+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:a},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},e.inherit(i,{relevance:0})]}}return on=n,on}var sn,lo;function ed(){if(lo)return sn;lo=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&#'",a="["+t+"]["+t+"0-9/;:]*",r={$pattern:a,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},i="[-+]?\\d+(\\.\\d+)?",s={begin:a,relevance:0},o={className:"number",begin:i,relevance:0},l=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),_=e.COMMENT(";","$",{relevance:0}),c={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},d={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},p={className:"comment",begin:"\\^"+a},E=e.COMMENT("\\^\\{","\\}"),m={className:"symbol",begin:"[:]{1,2}"+a},S={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},b={className:"name",relevance:0,keywords:r,begin:a,starts:g},R=[S,l,p,E,_,m,d,o,c,s];return S.contains=[e.COMMENT("comment",""),b,g],g.contains=R,d.contains=R,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),S,l,p,E,_,m,d,o,c]}}return sn=n,sn}var ln,co;function td(){if(co)return ln;co=1;function n(e){const t="\\[",a="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:t,end:a}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:t,end:a,contains:["self"]}]}}return ln=n,ln}var cn,_o;function nd(){if(_o)return cn;_o=1;function n(e){const t=e.regex,a={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},l={begin:/\[/,end:/\]/,contains:[r,s,i,o,a,"self"],relevance:0},_=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,d=/'[^']*'/,p=t.either(_,c,d),E=t.concat(p,"(\\s*\\.\\s*",p,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:E,className:"attr",starts:{end:/$/,contains:[r,l,s,i,o,a]}}]}}return cn=n,cn}var _n,uo;function ad(){if(uo)return _n;uo=1;function n(e){const t=e.regex,a={className:"params",begin:"\\(",end:"\\)"},r=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,s={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,i,r)},{begin:t.concat(/\b\d+/,i,r)},{begin:t.concat(/\.\d+/,i,r)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,a]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),s]}}return _n=n,_n}var dn,po;function rd(){if(po)return dn;po=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",a="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",r="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",H="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",Ol="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",Il="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",Al="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",vl="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",yl=H+Ol,hl=Al,Dl="null true false nil ",fr={className:"number",begin:e.NUMBER_RE,relevance:0},Cr={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Nr={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},Ml={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Nr]},Ll={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Nr]},Or={variants:[Ml,Ll]},ve={$pattern:t,keyword:r,built_in:yl,class:hl,literal:Dl},Me={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:ve,relevance:0},Ir={className:"type",begin:":[ \\t]*("+vl.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},Ar={className:"variable",keywords:ve,begin:t,relevance:0,contains:[Ir,Me]},vr=a+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:ve,illegal:"\\$|\\?|%|,|;$|~|#|@|r(s,o,l-1))}function i(s){const o=s.regex,l="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",_=l+r("(?:<"+l+"~~~(?:\\s*,\\s*"+l+"~~~)*>)?",/~~~/g,2),m={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},S={className:"meta",begin:"@"+l,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},g={className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[s.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:m,illegal:/<\/|#/,contains:[s.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[s.BACKSLASH_ESCAPE]},s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[o.concat(/(?!else)/,l),/\s+/,l,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,l],className:{1:"keyword",3:"title.class"},contains:[g,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+_+"\\s+)",s.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:m,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[S,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,a,s.C_BLOCK_COMMENT_MODE]},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},a,S]}}return un=i,un}var pn,Eo;function od(){if(Eo)return pn;Eo=1;const n="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],t=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],r=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(i,a,r);function l(_){const c=_.regex,d=(V,{after:G})=>{const K="",end:""},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,S={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(V,G)=>{const K=V[0].length+V.index,j=V.input[K];if(j==="<"||j===","){G.ignoreMatch();return}j===">"&&(d(V,{after:K})||G.ignoreMatch());let ee;const re=V.input.substring(K);if(ee=re.match(/^\s*=/)){G.ignoreMatch();return}if((ee=re.match(/^\s+extends\s+/))&&ee.index===0){G.ignoreMatch();return}}},g={$pattern:n,keyword:e,literal:t,built_in:o,"variable.language":s},b="[0-9](_?[0-9])*",R=`\\.(${b})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",A={className:"number",variants:[{begin:`(\\b(${f})((${R})|\\.)?|(${R}))[eE][+-]?(${b})\\b`},{begin:`\\b(${f})\\b((${R})\\b|\\.)?|(${R})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},I={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},C={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,I],subLanguage:"xml"}},h={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,I],subLanguage:"css"}},v={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,I],subLanguage:"graphql"}},L={className:"string",begin:"`",end:"`",contains:[_.BACKSLASH_ESCAPE,I]},D={className:"comment",variants:[_.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:p+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),_.C_BLOCK_COMMENT_MODE,_.C_LINE_COMMENT_MODE]},F=[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,C,h,v,L,{match:/\$\d+/},A];I.contains=F.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(F)});const $=[].concat(D,I.contains),X=$.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat($)}]),q={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:X},T={variants:[{match:[/class/,/\s+/,p,/\s+/,/extends/,/\s+/,c.concat(p,"(",c.concat(/\./,p),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,p],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:c.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...r]}},M={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},w={variants:[{match:[/function/,/\s+/,p,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[q],illegal:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Q(V){return c.concat("(?!",V.join("|"),")")}const ne={match:c.concat(/\b/,Q([...i,"super","import"].map(V=>`${V}\\s*\\(`)),p,c.lookahead(/\s*\(/)),className:"title.function",relevance:0},ae={begin:c.concat(/\./,c.lookahead(c.concat(p,/(?![0-9A-Za-z$_(])/))),end:p,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},z={match:[/get|set/,/\s+/,p,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},q]},H="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+_.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,p,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead(H)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[q]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:X,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[_.SHEBANG({label:"shebang",binary:"node",relevance:5}),M,_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,C,h,v,L,D,{match:/\$\d+/},A,O,{scope:"attr",match:p+c.lookahead(":"),relevance:0},J,{begin:"("+_.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,_.REGEXP_MODE,{className:"function",begin:H,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:_.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:X}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:E.begin,end:E.end},{match:m},{begin:S.begin,"on:begin":S.isTrulyOpeningTag,end:S.end}],subLanguage:"xml",contains:[{begin:S.begin,end:S.end,skip:!0,contains:["self"]}]}]},w,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+_.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[q,_.inherit(_.TITLE_MODE,{begin:p,className:"title.function"})]},{match:/\.\.\./,relevance:0},ae,{match:"\\$"+p,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[q]},ne,B,T,z,{match:/\$[(.]/}]}}return pn=l,pn}var mn,go;function sd(){if(go)return mn;go=1;function n(e){const a={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},r={className:"function",begin:/:[\w\-.]+/,relevance:0},i={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},s={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,s,r,i,a]}}return mn=n,mn}var En,So;function ld(){if(So)return En;So=1;function n(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,a,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return En=n,En}var gn,To;function cd(){if(To)return gn;To=1;function n(e){const t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",s={$pattern:t,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},o={keywords:s,illegal:/<\//},l={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},_={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},c={className:"subst",begin:/\$\(/,end:/\)/,keywords:s},d={className:"variable",begin:"\\$"+t},p={className:"string",contains:[e.BACKSLASH_ESCAPE,c,d],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},E={className:"string",contains:[e.BACKSLASH_ESCAPE,c,d],begin:"`",end:"`"},m={className:"meta",begin:"@"+t},S={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return o.name="Julia",o.contains=[l,_,p,E,m,S,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],c.contains=o.contains,o}return gn=n,gn}var Sn,bo;function _d(){if(bo)return Sn;bo=1;function n(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return Sn=n,Sn}var Tn,Ro;function dd(){if(Ro)return Tn;Ro=1;var n="[0-9](_*[0-9])*",e=`\\.(${n})`,t="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${n})((${e})|\\.)?|(${e}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${t})\\.?|(${t})?\\.(${t}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${t})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function r(i){const s={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},o={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},l={className:"symbol",begin:i.UNDERSCORE_IDENT_RE+"@"},_={className:"subst",begin:/\$\{/,end:/\}/,contains:[i.C_NUMBER_MODE]},c={className:"variable",begin:"\\$"+i.UNDERSCORE_IDENT_RE},d={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[c,_]},{begin:"'",end:"'",illegal:/\n/,contains:[i.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[i.BACKSLASH_ESCAPE,c,_]}]};_.contains.push(d);const p={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+i.UNDERSCORE_IDENT_RE+")?"},E={className:"meta",begin:"@"+i.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[i.inherit(d,{className:"string"}),"self"]}]},m=a,S=i.COMMENT("/\\*","\\*/",{contains:[i.C_BLOCK_COMMENT_MODE]}),g={variants:[{className:"type",begin:i.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},b=g;return b.variants[1].contains=[g],g.variants[1].contains=[b],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[i.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),i.C_LINE_COMMENT_MODE,S,o,l,p,E,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:i.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[i.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[g,i.C_LINE_COMMENT_MODE,S],relevance:0},i.C_LINE_COMMENT_MODE,S,p,E,d,i.C_NUMBER_MODE]},S]},{begin:[/class|interface|trait/,/\s+/,i.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},i.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},p,E]},d,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` `},m]}}return Tn=r,Tn}var bn,fo;function ud(){if(fo)return bn;fo=1;function n(e){const t="[a-zA-Z_][\\w.]*",a="<\\?(lasso(script)?|=)",r="\\]|\\?>",i={$pattern:t+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},s=e.COMMENT("",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},l={className:"meta",begin:"\\[/noprocess|"+a},_={className:"symbol",begin:"'"+t+"'"},c=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+t},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:t,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+t,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[_]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:t+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[|"+a,returnEnd:!0,relevance:0,contains:[s]}},o,l,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[noprocess\\]|"+a,returnEnd:!0,contains:[s]}},o,l].concat(c)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(c)}}return bn=n,bn}var Rn,Co;function pd(){if(Co)return Rn;Co=1;function n(e){const a=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(D=>D+"(?![a-zA-Z@:_])")),r=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(D=>D+"(?![a-zA-Z:_])").join("|")),i=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],s=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],o={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:a},{endsParent:!0,begin:r},{endsParent:!0,variants:s},{endsParent:!0,relevance:0,variants:i}]},l={className:"params",relevance:0,begin:/#+\d?/},_={variants:s},c={className:"built_in",relevance:0,begin:/[$&^_]/},d={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},p=e.COMMENT("%","$",{relevance:0}),E=[o,l,_,c,d,p],m={begin:/\{/,end:/\}/,relevance:0,contains:["self",...E]},S=e.inherit(m,{relevance:0,endsParent:!0,contains:[m,...E]}),g={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[m,...E]},b={begin:/\s+/,relevance:0},R=[S],f=[g],A=function(D,F){return{contains:[b],starts:{relevance:0,contains:D,starts:F}}},I=function(D,F){return{begin:"\\\\"+D+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+D},relevance:0,contains:[b],starts:F}},C=function(D,F){return e.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+D+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},A(R,F))},h=(D="string")=>e.END_SAME_AS_BEGIN({className:D,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),v=function(D){return{className:"string",end:"(?=\\\\end\\{"+D+"\\})"}},L=(D="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:D,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),k=[...["verb","lstinline"].map(D=>I(D,{contains:[h()]})),I("mint",A(R,{contains:[h()]})),I("mintinline",A(R,{contains:[L(),h()]})),I("url",{contains:[L("link"),L("link")]}),I("hyperref",{contains:[L("link")]}),I("href",A(f,{contains:[L("link")]})),...[].concat(...["","\\*"].map(D=>[C("verbatim"+D,v("verbatim"+D)),C("filecontents"+D,A(R,v("filecontents"+D))),...["","B","L"].map(F=>C(F+"Verbatim"+D,A(f,v(F+"Verbatim"+D))))])),C("minted",A(f,A(R,v("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...k,...E]}}return Rn=n,Rn}var fn,No;function md(){if(No)return fn;No=1;function n(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}return fn=n,fn}var Cn,Oo;function Ed(){if(Oo)return Cn;Oo=1;function n(e){const t=/([A-Za-z_][A-Za-z_0-9]*)?/,r={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},i={match:[t,/(?=\()/],scope:{1:"keyword"},contains:[r]};return r.contains.unshift(i),{name:"Leaf",contains:[{match:[/#+/,t,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[r]},{match:[/#+/,t,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return Cn=n,Cn}var Nn,Io;function gd(){if(Io)return Nn;Io=1;const n=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...e,...t],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),l=i.concat(s).sort().reverse();function _(c){const d=n(c),p=l,E="and or not only",m="[\\w-]+",S="("+m+"|@\\{"+m+"\\})",g=[],b=[],R=function($){return{className:"string",begin:"~?"+$+".*?"+$}},f=function($,X,q){return{className:$,begin:X,relevance:q}},A={$pattern:/[a-z-]+/,keyword:E,attribute:r.join(" ")},I={begin:"\\(",end:"\\)",contains:b,keywords:A,relevance:0};b.push(c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,R("'"),R('"'),d.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},d.HEXCOLOR,I,f("variable","@@?"+m,10),f("variable","@\\{"+m+"\\}"),f("built_in","~?`[^`]*?`"),{className:"attribute",begin:m+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},d.IMPORTANT,{beginKeywords:"and not"},d.FUNCTION_DISPATCH);const C=b.concat({begin:/\{/,end:/\}/,contains:g}),h={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(b)},v={begin:S+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:b}}]},L={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:A,returnEnd:!0,contains:b,relevance:0}},k={className:"variable",variants:[{begin:"@"+m+"\\s*:",relevance:15},{begin:"@"+m}],starts:{end:"[;}]",returnEnd:!0,contains:C}},D={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:S,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,h,f("keyword","all\\b"),f("variable","@\\{"+m+"\\}"),{begin:"\\b("+a.join("|")+")\\b",className:"selector-tag"},d.CSS_NUMBER_MODE,f("selector-tag",S,0),f("selector-id","#"+S),f("selector-class","\\."+S,0),f("selector-tag","&",0),d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+s.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:C},{begin:"!important"},d.FUNCTION_DISPATCH]},F={begin:m+`:(:)?(${p.join("|")})`,returnBegin:!0,contains:[D]};return g.push(c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,L,k,F,v,D,h,d.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:g}}return Nn=_,Nn}var On,Ao;function Sd(){if(Ao)return On;Ao=1;function n(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",a="\\|[^]*?\\|",r="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",i={className:"literal",begin:"\\b(t{1}|nil)\\b"},s={className:"number",variants:[{begin:r,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+r+" +"+r,end:"\\)"}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),_={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+t},d={begin:t,relevance:0},p={begin:a},m={contains:[s,o,_,c,{begin:"\\(",end:"\\)",contains:["self",i,o,s,d]},d],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+a}]},S={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},g={begin:"\\(\\s*",end:"\\)"},b={endsWithParent:!0,relevance:0};return g.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:a}]},b],b.contains=[m,S,g,i,s,o,l,_,c,p,d],{name:"Lisp",illegal:/\S/,contains:[s,e.SHEBANG(),i,o,l,m,S,g,d]}}return On=n,On}var In,vo;function Td(){if(vo)return In;vo=1;function n(e){const t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},a=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],r=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),i=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[i,r],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r].concat(a),illegal:";$|^\\[|^=|&|\\{"}}return In=n,In}var An,yo;function bd(){if(yo)return An;yo=1;const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],e=["true","false","null","undefined","NaN","Infinity"],t=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],a=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=[].concat(r,t,a);function s(o){const l=["npm","print"],_=["yes","no","on","off","it","that","void"],c=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],d={keyword:n.concat(c),literal:e.concat(_),built_in:i.concat(l)},p="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",E=o.inherit(o.TITLE_MODE,{begin:p}),m={className:"subst",begin:/#\{/,end:/\}/,keywords:d},S={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:d},g=[o.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,m,S]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,m,S]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[m,o.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+p},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];m.contains=g;const b={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:d,contains:["self"].concat(g)}]},R={begin:"(#=>|=>|\\|>>|-?->|!->)"},f={variants:[{match:[/class\s+/,p,/\s+extends\s+/,p]},{match:[/class\s+/,p]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:d};return{name:"LiveScript",aliases:["ls"],keywords:d,illegal:/\/\*/,contains:g.concat([o.COMMENT("\\/\\*","\\*\\/"),o.HASH_COMMENT_MODE,R,{className:"function",contains:[E,b],returnBegin:!0,variants:[{begin:"("+p+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+p+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+p+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},f,{begin:p+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return An=s,An}var vn,ho;function Rd(){if(ho)return vn;ho=1;function n(e){const t=e.regex,a=/([-a-zA-Z$._][\w$.-]*)/,r={className:"type",begin:/\bi\d+(?=\s|\b)/},i={className:"operator",relevance:0,begin:/=/},s={className:"punctuation",relevance:0,begin:/,/},o={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},l={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},_={className:"variable",variants:[{begin:t.concat(/%/,a)},{begin:/%\d+/},{begin:/#\d+/}]},c={className:"title",variants:[{begin:t.concat(/@/,a)},{begin:/@\d+/},{begin:t.concat(/!/,a)},{begin:t.concat(/!\d+/,a)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:{keyword:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},contains:[r,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},c,s,i,_,l,o]}}return vn=n,vn}var yn,Do;function fd(){if(Do)return yn;Do=1;function n(e){const a={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},r={className:"number",relevance:0,begin:e.C_NUMBER_RE},i={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},s={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[a,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},r,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},s,i,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return yn=n,yn}var hn,Mo;function Cd(){if(Mo)return hn;Mo=1;function n(e){const t="\\[=*\\[",a="\\]=*\\]",r={begin:t,end:a,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,a,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:a,contains:[r],relevance:5}])}}return hn=n,hn}var Dn,Lo;function Nd(){if(Lo)return Dn;Lo=1;function n(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{S.has(h[0])||v.ignoreMatch()}},{className:"symbol",relevance:0,begin:m}]},b={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},R={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},f={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},A={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},I={className:"brace",relevance:0,begin:/[[\](){}]/},C={className:"message-name",relevance:0,begin:a.concat("::",m)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[t.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),f,A,C,g,b,t.QUOTE_STRING_MODE,E,R,I]}}return Mn=e,Mn}var Ln,Po;function Id(){if(Po)return Ln;Po=1;function n(e){const t="('|\\.')+",a={relevance:0,contains:[{begin:t}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:a},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+t,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:a},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:a},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:a},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}return Ln=n,Ln}var xn,wo;function Ad(){if(wo)return xn;wo=1;function n(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return xn=n,xn}var Pn,ko;function vd(){if(ko)return Pn;ko=1;function n(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:""},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},a,e.C_BLOCK_COMMENT_MODE,r,e.NUMBER_MODE,i,s,{begin:/:-/},{begin:/\.$/}]}}return wn=n,wn}var kn,Fo;function hd(){if(Fo)return kn;Fo=1;function n(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return kn=n,kn}var Un,Bo;function Dd(){if(Bo)return Un;Bo=1;function n(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}return Un=n,Un}var Fn,Go;function Md(){if(Go)return Fn;Go=1;function n(e){const t=e.regex,a=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:a.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},l={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},_={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[l]},c={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[e.BACKSLASH_ESCAPE,s,_],p=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],E=(g,b,R="\\1")=>{const f=R==="\\1"?R:t.concat(R,b);return t.concat(t.concat("(?:",g,")"),b,/(?:\\.|[^\\\/])*?/,f,/(?:\\.|[^\\\/])*?/,R,r)},m=(g,b,R)=>t.concat(t.concat("(?:",g,")"),b,/(?:\\.|[^\\\/])*?/,R,r),S=[_,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},c,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:E("s|tr|y",t.either(...p,{capture:!0}))},{begin:E("s|tr|y","\\(","\\)")},{begin:E("s|tr|y","\\[","\\]")},{begin:E("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:m("(?:m|qr)?",/\//,/\//)},{begin:m("m|qr",t.either(...p,{capture:!0}),/\1/)},{begin:m("m|qr",/\(/,/\)/)},{begin:m("m|qr",/\[/,/\]/)},{begin:m("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l,c]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=S,o.contains=S,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:S}}return Fn=n,Fn}var Bn,Yo;function Ld(){if(Yo)return Bn;Yo=1;function n(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return Bn=n,Bn}var Gn,qo;function xd(){if(qo)return Gn;qo=1;function n(e){const t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},a={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},r={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),a,r,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}return Gn=n,Gn}var Yn,Ho;function Pd(){if(Ho)return Yn;Ho=1;function n(e){const t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},a="[A-Za-z$_][0-9A-Za-z$_]*",r={className:"subst",begin:/#\{/,end:/\}/,keywords:t},i=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];r.contains=i;const s=e.inherit(e.TITLE_MODE,{begin:a}),o="(\\(.*\\)\\s*)?\\B[-=]>",l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(i)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:i.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+a+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[s,l]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[l]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[s]},s]},{className:"name",begin:a+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return Yn=n,Yn}var qn,Vo;function wd(){if(Vo)return qn;Vo=1;function n(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}return qn=n,qn}var Hn,zo;function kd(){if(zo)return Hn;zo=1;function n(e){const t={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},a={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},r={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},i={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),i,r,t,a]}}return Hn=n,Hn}var Vn,Wo;function Ud(){if(Wo)return Vn;Wo=1;function n(e){const t=e.regex,a={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},i={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[a]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},a]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:i.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return Vn=n,Vn}var zn,Ko;function Fd(){if(Ko)return zn;Ko=1;function n(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","concept","const","continue","converter","defer","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}return zn=n,zn}var Wn,$o;function Bd(){if($o)return Wn;$o=1;function n(e){const t=e.regex,a={keyword:["assert","else","if","in","inherit","let","or","rec","then","with"],literal:["true","false","null"],built_in:["abort","baseNameOf","builtins","derivation","derivationStrict","dirOf","fetchGit","fetchMercurial","fetchTarball","fetchTree","fromTOML","import","isNull","map","placeholder","removeAttrs","scopedImport","throw","toString"]},r={scope:"built_in",match:t.either(...["abort","add","addDrvOutputDependencies","addErrorContext","all","any","appendContext","attrNames","attrValues","baseNameOf","bitAnd","bitOr","bitXor","break","builtins","catAttrs","ceil","compareVersions","concatLists","concatMap","concatStringsSep","convertHash","currentSystem","currentTime","deepSeq","derivation","derivationStrict","dirOf","div","elem","elemAt","false","fetchGit","fetchMercurial","fetchTarball","fetchTree","fetchurl","filter","filterSource","findFile","flakeRefToString","floor","foldl'","fromJSON","fromTOML","functionArgs","genList","genericClosure","getAttr","getContext","getEnv","getFlake","groupBy","hasAttr","hasContext","hashFile","hashString","head","import","intersectAttrs","isAttrs","isBool","isFloat","isFunction","isInt","isList","isNull","isPath","isString","langVersion","length","lessThan","listToAttrs","map","mapAttrs","match","mul","nixPath","nixVersion","null","parseDrvName","parseFlakeRef","partition","path","pathExists","placeholder","readDir","readFile","readFileType","removeAttrs","replaceStrings","scopedImport","seq","sort","split","splitVersion","storeDir","storePath","stringLength","sub","substring","tail","throw","toFile","toJSON","toPath","toString","toXML","trace","traceVerbose","true","tryEval","typeOf","unsafeDiscardOutputDependency","unsafeDiscardStringContext","unsafeGetAttrPos","warn","zipAttrsWith"].map(h=>`builtins\\.${h}`)),relevance:10},i="[A-Za-z_][A-Za-z0-9_'-]*",s={scope:"symbol",match:new RegExp(`<${i}(/${i})*>`)},o="[A-Za-z0-9_\\+\\.-]+",l={scope:"symbol",match:new RegExp(`(\\.\\.|\\.|~)?/(${o})?(/${o})*(?=[\\s;])`)},_=t.either("==","=","\\+\\+","\\+","<=","<\\|","<",">=",">","->","//","/","!=","!","\\|\\|","\\|>","\\?","\\*","&&"),c={scope:"operator",match:t.concat(_,/(?!-)/),relevance:0},d={scope:"number",match:new RegExp(`${e.NUMBER_RE}(?!-)`),relevance:0},p={variants:[{scope:"operator",beforeMatch:/\s/,begin:/-(?!>)/},{begin:[new RegExp(`${e.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:"number",2:"operator"}},{begin:[_,/-/,/(?!>)/],beginScope:{1:"operator",2:"operator"}}],relevance:0},E={beforeMatch:/(^|\{|;)\s*/,begin:new RegExp(`${i}(\\.${i})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:"attr",match:new RegExp(`${i}(\\.${i})*(?=\\s*=)`),relevance:.2}]},m={scope:"char.escape",match:/\\\$/},S={scope:"char.escape",match:/''\$/},g={scope:"subst",begin:/\$\{/,end:/\}/,keywords:a},b={scope:"char.escape",match:/'''/},R={scope:"char.escape",match:/\\(?!\$)./},f={scope:"string",variants:[{begin:"''",end:"''",contains:[S,g,b,R]},{begin:'"',end:'"',contains:[m,g,R]}]},A={scope:"params",match:new RegExp(`${i}\\s*:(?=\\s)`)},I=[d,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),r,f,s,l,A,E,p,c];g.contains=I;const C=[{scope:"meta.prompt",match:/^nix-repl>(?=\s)/,relevance:10},{scope:"meta",beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}];return{name:"Nix",aliases:["nixos"],keywords:a,contains:I.concat(C)}}return Wn=n,Wn}var Kn,Qo;function Gd(){if(Qo)return Kn;Qo=1;function n(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Kn=n,Kn}var $n,Xo;function Yd(){if(Xo)return $n;Xo=1;function n(e){const t=e.regex,a=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],r=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],i=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],s={className:"variable.constant",begin:t.concat(/\$/,t.either(...a))},o={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},l={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},_={className:"variable",begin:/\$+\([\w^.:!-]+\)/},c={className:"params",begin:t.either(...r)},d={className:"keyword",begin:t.concat(/!/,t.either(...i))},p={className:"char.escape",begin:/\$(\\[nrt]|\$)/},E={className:"title.function",begin:/\w+::\w+/},m={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[p,s,o,l,_]},S=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],g=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],b={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},f={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:S,literal:g},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),f,b,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},m,d,o,l,_,c,E,e.NUMBER_MODE]}}return $n=n,$n}var Qn,Zo;function qd(){if(Zo)return Qn;Zo=1;function n(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,l={"variable.language":["this","super"],$pattern:a,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},_={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:l,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+_.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:_,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return Qn=n,Qn}var Xn,Jo;function Hd(){if(Jo)return Xn;Jo=1;function n(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return Xn=n,Xn}var Zn,jo;function Vd(){if(jo)return Zn;jo=1;function n(e){const t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},a={className:"literal",begin:"false|true|PI|undef"},r={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},o={className:"params",begin:"\\(",end:"\\)",contains:["self",r,i,t,a]},l={begin:"[*!#%]",relevance:0},_={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[o,e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,s,i,t,l,_]}}return Zn=n,Zn}var Jn,es;function zd(){if(es)return Jn;es=1;function n(e){const t={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},a=e.COMMENT(/\{/,/\}/,{relevance:0}),r=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),i={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},s={className:"string",begin:"(#\\d+)+"},o={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[i,s]},a,r]},l={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[a,r,e.C_LINE_COMMENT_MODE,i,s,e.NUMBER_MODE,o,l]}}return Jn=n,Jn}var jn,ts;function Wd(){if(ts)return jn;ts=1;function n(e){const t=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}return jn=n,jn}var ea,ns;function Kd(){if(ns)return ea;ns=1;function n(e){const t={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},a={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,t,a]}}return ea=n,ea}var ta,as;function $d(){if(as)return ta;as=1;function n(e){const t=e.COMMENT("--","$"),a="[a-zA-Z_][a-zA-Z_0-9$]*",r="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="<<\\s*"+a+"\\s*>>",s="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",o="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",l="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",_="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",c=_.trim().split(" ").map(function(g){return g.split("|")[0]}).join("|"),d="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",p="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",E="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",S="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(g){return g.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:s+l+o,built_in:d+p+E},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+S+")\\s*\\("},{begin:"\\.("+c+")\\b"},{begin:"\\b("+c+")\\s+PATH\\b",keywords:{keyword:"PATH",type:_.replace("PATH ","")}},{className:"type",begin:"\\b("+c+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:r,end:r,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:i,relevance:10}]}}return ta=n,ta}var na,rs;function Qd(){if(rs)return na;rs=1;function n(e){const t=e.regex,a=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),s=t.concat(/[A-Z]+/,a),o={scope:"variable",match:"\\$+"+r},l={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},_={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(_)}),p={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(_),"on:begin":(q,T)=>{T.data._beginMatch=q[1]||q[2]},"on:end":(q,T)=>{T.data._beginMatch!==q[1]&&T.ignoreMatch()}},E=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),m=`[ diff --git a/deploy/server/notebase/assets/index-CLWgAZNI.js b/deploy/server/notebase/assets/index-bOgutTC1.js similarity index 99% rename from deploy/server/notebase/assets/index-CLWgAZNI.js rename to deploy/server/notebase/assets/index-bOgutTC1.js index ecdd7c7bd2..f808388801 100644 --- a/deploy/server/notebase/assets/index-CLWgAZNI.js +++ b/deploy/server/notebase/assets/index-bOgutTC1.js @@ -79,7 +79,7 @@ var Wbe;function En(){return Wbe.apply(null,arguments)}function Hje(e){Wbe=e}fun [`+o+"] ";for(a in arguments[0])pi(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];r.push(i)}Ybe(e+` Arguments: `+Array.prototype.slice.call(r).join("")+` `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var _te={};function Kbe(e,t){En.deprecationHandler!=null&&En.deprecationHandler(e,t),_te[e]||(Ybe(t),_te[e]=!0)}En.suppressDeprecationWarnings=!1;En.deprecationHandler=null;function Gf(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function zje(e){var t,n;for(n in e)pi(e,n)&&(t=e[n],Gf(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Rj(e,t){var n=Im({},e),r;for(r in t)pi(t,r)&&(sv(e[r])&&sv(t[r])?(n[r]={},Im(n[r],e[r]),Im(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)pi(e,r)&&!pi(t,r)&&sv(e[r])&&(n[r]=Im({},n[r]));return n}function cW(e){e!=null&&this.set(e)}var Ij;Object.keys?Ij=Object.keys:Ij=function(e){var t,n=[];for(t in e)pi(e,t)&&n.push(t);return n};var Vje={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Gje(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Gf(r)?r.call(t,n):r}function $f(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var uW=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,sR=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,J8={},by={};function or(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(by[e]=i),t&&(by[t[0]]=function(){return $f(i.apply(this,arguments),t[1],t[2])}),n&&(by[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Wje(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function qje(e){var t=e.match(uW),n,r;for(n=0,r=t.length;n=0&&sR.test(e);)e=e.replace(sR,r),sR.lastIndex=0,n-=1;return e}var Yje={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Kje(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(uW).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Qje="Invalid date";function Xje(){return this._invalidDate}var Zje="%d",Jje=/\d{1,2}/;function eHe(e){return this._ordinal.replace("%d",e)}var tHe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function nHe(e,t,n,r){var i=this._relativeTime[n];return Gf(i)?i(e,t,n,r):i.replace(/%d/i,e)}function rHe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Gf(n)?n(t):n.replace(/%s/i,t)}var Ste={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Tu(e){return typeof e=="string"?Ste[e]||Ste[e.toLowerCase()]:void 0}function dW(e){var t={},n,r;for(r in e)pi(e,r)&&(n=Tu(r),n&&(t[n]=e[r]));return t}var iHe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function oHe(e){var t=[],n;for(n in e)pi(e,n)&&t.push({unit:n,priority:iHe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Xbe=/\d/,Rc=/\d\d/,Zbe=/\d{3}/,fW=/\d{4}/,MP=/[+-]?\d{6}/,fo=/\d\d?/,Jbe=/\d\d\d\d?/,eye=/\d\d\d\d\d\d?/,kP=/\d{1,3}/,pW=/\d{1,4}/,PP=/[+-]?\d{1,6}/,cS=/\d+/,DP=/[+-]?\d+/,aHe=/Z|[+-]\d\d:?\d\d/gi,$P=/Z|[+-]\d\d(?::?\d\d)?/gi,sHe=/[+-]?\d+(\.\d{1,3})?/,Kx=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,uS=/^[1-9]\d?/,hW=/^([1-9]\d|\d)/,oM;oM={};function jn(e,t,n){oM[e]=Gf(t)?t:function(r,i){return r&&n?n:t}}function lHe(e,t){return pi(oM,e)?oM[e](t._strict,t._locale):new RegExp(cHe(e))}function cHe(e){return Wp(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function Wp(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Xc(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Wr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Xc(t)),n}var Aj={};function $i(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),oh(t)&&(r=function(o,a){a[t]=Wr(o)}),i=e.length,n=0;n68?1900:2e3)};var tye=dS("FullYear",!0);function pHe(){return LP(this.year())}function dS(e,t){return function(n){return n!=null?(nye(this,e,n),En.updateOffset(this,t),this):mT(this,e)}}function mT(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function nye(e,t,n){var r,i,o,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!LP(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function hHe(e){return e=Tu(e),Gf(this[e])?this[e]():this}function mHe(e,t){if(typeof e=="object"){e=dW(e);var n=oHe(e),r,i=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function gT(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function aM(e,t,n){var r=7+t-n,i=(7+gT(e,0,r).getUTCDay()-t)%7;return-i+r-1}function lye(e,t,n,r,i){var o=(7+n-r)%7,a=aM(e,r,i),s=1+7*(t-1)+o+a,l,c;return s<=0?(l=e-1,c=iw(l)+s):s>iw(e)?(l=e+1,c=s-iw(e)):(l=e,c=s),{year:l,dayOfYear:c}}function vT(e,t,n){var r=aM(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+qp(a,t,n)):i>qp(e.year(),t,n)?(o=i-qp(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function qp(e,t,n){var r=aM(e,t,n),i=aM(e+1,t,n);return(iw(e)-r+i)/7}or("w",["ww",2],"wo","week");or("W",["WW",2],"Wo","isoWeek");jn("w",fo,uS);jn("ww",fo,Rc);jn("W",fo,uS);jn("WW",fo,Rc);Qx(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Wr(e)});function RHe(e){return vT(e,this._week.dow,this._week.doy).week}var IHe={dow:0,doy:6};function AHe(){return this._week.dow}function NHe(){return this._week.doy}function MHe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function kHe(e){var t=vT(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}or("d",0,"do","day");or("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});or("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});or("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});or("e",0,0,"weekday");or("E",0,0,"isoWeekday");jn("d",fo);jn("e",fo);jn("E",fo);jn("dd",function(e,t){return t.weekdaysMinRegex(e)});jn("ddd",function(e,t){return t.weekdaysShortRegex(e)});jn("dddd",function(e,t){return t.weekdaysRegex(e)});Qx(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Nr(n).invalidWeekday=e});Qx(["d","e","E"],function(e,t,n,r){t[r]=Wr(e)});function PHe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function DHe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function gW(e,t){return e.slice(t,7).concat(e.slice(0,t))}var $He="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),cye="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),LHe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),FHe=Kx,BHe=Kx,jHe=Kx;function HHe(e,t){var n=Sd(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?gW(n,this._week.dow):e?n[e.day()]:n}function UHe(e){return e===!0?gW(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function zHe(e){return e===!0?gW(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function VHe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Vf([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=Xo.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=Xo.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=Xo.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=Xo.call(this._weekdaysParse,a),i!==-1||(i=Xo.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=Xo.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=Xo.call(this._shortWeekdaysParse,a),i!==-1||(i=Xo.call(this._weekdaysParse,a),i!==-1)?i:(i=Xo.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=Xo.call(this._minWeekdaysParse,a),i!==-1||(i=Xo.call(this._weekdaysParse,a),i!==-1)?i:(i=Xo.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function GHe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return VHe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Vf([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function WHe(e){if(!this.isValid())return e!=null?this:NaN;var t=mT(this,"Day");return e!=null?(e=PHe(e,this.localeData()),this.add(e-t,"d")):t}function qHe(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function YHe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=DHe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function KHe(e){return this._weekdaysParseExact?(pi(this,"_weekdaysRegex")||vW.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(pi(this,"_weekdaysRegex")||(this._weekdaysRegex=FHe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function QHe(e){return this._weekdaysParseExact?(pi(this,"_weekdaysRegex")||vW.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(pi(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=BHe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function XHe(e){return this._weekdaysParseExact?(pi(this,"_weekdaysRegex")||vW.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(pi(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=jHe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function vW(){function e(u,d){return d.length-u.length}var t=[],n=[],r=[],i=[],o,a,s,l,c;for(o=0;o<7;o++)a=Vf([2e3,1]).day(o),s=Wp(this.weekdaysMin(a,"")),l=Wp(this.weekdaysShort(a,"")),c=Wp(this.weekdays(a,"")),t.push(s),n.push(l),r.push(c),i.push(s),i.push(l),i.push(c);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function bW(){return this.hours()%12||12}function ZHe(){return this.hours()||24}or("H",["HH",2],0,"hour");or("h",["hh",2],0,bW);or("k",["kk",2],0,ZHe);or("hmm",0,0,function(){return""+bW.apply(this)+$f(this.minutes(),2)});or("hmmss",0,0,function(){return""+bW.apply(this)+$f(this.minutes(),2)+$f(this.seconds(),2)});or("Hmm",0,0,function(){return""+this.hours()+$f(this.minutes(),2)});or("Hmmss",0,0,function(){return""+this.hours()+$f(this.minutes(),2)+$f(this.seconds(),2)});function uye(e,t){or(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}uye("a",!0);uye("A",!1);function dye(e,t){return t._meridiemParse}jn("a",dye);jn("A",dye);jn("H",fo,hW);jn("h",fo,uS);jn("k",fo,uS);jn("HH",fo,Rc);jn("hh",fo,Rc);jn("kk",fo,Rc);jn("hmm",Jbe);jn("hmmss",eye);jn("Hmm",Jbe);jn("Hmmss",eye);$i(["H","HH"],Ea);$i(["k","kk"],function(e,t,n){var r=Wr(e);t[Ea]=r===24?0:r});$i(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});$i(["h","hh"],function(e,t,n){t[Ea]=Wr(e),Nr(n).bigHour=!0});$i("hmm",function(e,t,n){var r=e.length-2;t[Ea]=Wr(e.substr(0,r)),t[rd]=Wr(e.substr(r)),Nr(n).bigHour=!0});$i("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ea]=Wr(e.substr(0,r)),t[rd]=Wr(e.substr(r,2)),t[Up]=Wr(e.substr(i)),Nr(n).bigHour=!0});$i("Hmm",function(e,t,n){var r=e.length-2;t[Ea]=Wr(e.substr(0,r)),t[rd]=Wr(e.substr(r))});$i("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ea]=Wr(e.substr(0,r)),t[rd]=Wr(e.substr(r,2)),t[Up]=Wr(e.substr(i))});function JHe(e){return(e+"").toLowerCase().charAt(0)==="p"}var eUe=/[ap]\.?m?\.?/i,tUe=dS("Hours",!0);function nUe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var fye={calendar:Vje,longDateFormat:Yje,invalidDate:Qje,ordinal:Zje,dayOfMonthOrdinalParse:Jje,relativeTime:tHe,months:vHe,monthsShort:rye,week:IHe,weekdays:$He,weekdaysMin:LHe,weekdaysShort:cye,meridiemParse:eUe},mo={},AE={},bT;function rUe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=FP(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&rUe(o,r)>=n-1)break;n--}t++}return bT}function oUe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function FP(e){var t=null,n;if(mo[e]===void 0&&typeof module<"u"&&module&&module.exports&&oUe(e))try{t=bT._abbr,n=require,n("./locale/"+e),tg(t)}catch{mo[e]=null}return mo[e]}function tg(e,t){var n;return e&&(fl(t)?n=_h(e):n=yW(e,t),n?bT=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),bT._abbr}function yW(e,t){if(t!==null){var n,r=fye;if(t.abbr=e,mo[e]!=null)Kbe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=mo[e]._config;else if(t.parentLocale!=null)if(mo[t.parentLocale]!=null)r=mo[t.parentLocale]._config;else if(n=FP(t.parentLocale),n!=null)r=n._config;else return AE[t.parentLocale]||(AE[t.parentLocale]=[]),AE[t.parentLocale].push({name:e,config:t}),null;return mo[e]=new cW(Rj(r,t)),AE[e]&&AE[e].forEach(function(i){yW(i.name,i.config)}),tg(e),mo[e]}else return delete mo[e],null}function aUe(e,t){if(t!=null){var n,r,i=fye;mo[e]!=null&&mo[e].parentLocale!=null?mo[e].set(Rj(mo[e]._config,t)):(r=FP(e),r!=null&&(i=r._config),t=Rj(i,t),r==null&&(t.abbr=e),n=new cW(t),n.parentLocale=mo[e],mo[e]=n),tg(e)}else mo[e]!=null&&(mo[e].parentLocale!=null?(mo[e]=mo[e].parentLocale,e===tg()&&tg(e)):mo[e]!=null&&delete mo[e]);return mo[e]}function _h(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return bT;if(!Sd(e)){if(t=FP(e),t)return t;e=[e]}return iUe(e)}function sUe(){return Ij(mo)}function _W(e){var t,n=e._a;return n&&Nr(e).overflow===-2&&(t=n[Hp]<0||n[Hp]>11?Hp:n[gf]<1||n[gf]>mW(n[Os],n[Hp])?gf:n[Ea]<0||n[Ea]>24||n[Ea]===24&&(n[rd]!==0||n[Up]!==0||n[$1]!==0)?Ea:n[rd]<0||n[rd]>59?rd:n[Up]<0||n[Up]>59?Up:n[$1]<0||n[$1]>999?$1:-1,Nr(e)._overflowDayOfYear&&(tgf)&&(t=gf),Nr(e)._overflowWeeks&&t===-1&&(t=dHe),Nr(e)._overflowWeekday&&t===-1&&(t=fHe),Nr(e).overflow=t),e}var lUe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cUe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,uUe=/Z|[+-]\d\d(?::?\d\d)?/,lR=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],e$=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],dUe=/^\/?Date\((-?\d+)/i,fUe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,pUe={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function pye(e){var t,n,r=e._i,i=lUe.exec(r)||cUe.exec(r),o,a,s,l,c=lR.length,u=e$.length;if(i){for(Nr(e).iso=!0,t=0,n=c;tiw(a)||e._dayOfYear===0)&&(Nr(e)._overflowDayOfYear=!0),n=gT(a,0,e._dayOfYear),e._a[Hp]=n.getUTCMonth(),e._a[gf]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Ea]===24&&e._a[rd]===0&&e._a[Up]===0&&e._a[$1]===0&&(e._nextDay=!0,e._a[Ea]=0),e._d=(e._useUTC?gT:OHe).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ea]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(Nr(e).weekdayMismatch=!0)}}function SUe(e){var t,n,r,i,o,a,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=xb(t.GG,e._a[Os],vT(co(),1,4).year),r=xb(t.W,1),i=xb(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=vT(co(),o,a),n=xb(t.gg,e._a[Os],c.year),r=xb(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>qp(n,o,a)?Nr(e)._overflowWeeks=!0:l!=null?Nr(e)._overflowWeekday=!0:(s=lye(n,r,i,o,a),e._a[Os]=s.year,e._dayOfYear=s.dayOfYear)}En.ISO_8601=function(){};En.RFC_2822=function(){};function EW(e){if(e._f===En.ISO_8601){pye(e);return}if(e._f===En.RFC_2822){hye(e);return}e._a=[],Nr(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,c,u;for(i=Qbe(e._f,e._locale).match(uW)||[],u=i.length,n=0;n0&&Nr(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),by[o]?(r?Nr(e).empty=!1:Nr(e).unusedTokens.push(o),uHe(o,r,e)):e._strict&&!r&&Nr(e).unusedTokens.push(o);Nr(e).charsLeftOver=s-l,t.length>0&&Nr(e).unusedInput.push(t),e._a[Ea]<=12&&Nr(e).bigHour===!0&&e._a[Ea]>0&&(Nr(e).bigHour=void 0),Nr(e).parsedDateParts=e._a.slice(0),Nr(e).meridiem=e._meridiem,e._a[Ea]=EUe(e._locale,e._a[Ea],e._meridiem),c=Nr(e).era,c!==null&&(e._a[Os]=e._locale.erasConvertYear(c,e._a[Os])),SW(e),_W(e)}function EUe(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function CUe(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(l===0){Nr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:NP()});function vye(e,t){var n,r;if(t.length===1&&Sd(t[0])&&(t=t[0]),!t.length)return co();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function VUe(){if(!fl(this._isDSTShifted))return this._isDSTShifted;var e={},t;return lW(e,this),e=mye(e),e._a?(t=e._isUTC?Vf(e._a):co(e._a),this._isDSTShifted=this.isValid()&&DUe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function GUe(){return this.isValid()?!this._isUTC:!1}function WUe(){return this.isValid()?this._isUTC:!1}function yye(){return this.isValid()?this._isUTC&&this._offset===0:!1}var qUe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,YUe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function $d(e,t){var n=e,r=null,i,o,a;return yA(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:oh(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=qUe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Wr(r[gf])*i,h:Wr(r[Ea])*i,m:Wr(r[rd])*i,s:Wr(r[Up])*i,ms:Wr(Nj(r[$1]*1e3))*i}):(r=YUe.exec(e))?(i=r[1]==="-"?-1:1,n={y:e1(r[2],i),M:e1(r[3],i),w:e1(r[4],i),d:e1(r[5],i),h:e1(r[6],i),m:e1(r[7],i),s:e1(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=KUe(co(n.from),co(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new BP(n),yA(e)&&pi(e,"_locale")&&(o._locale=e._locale),yA(e)&&pi(e,"_isValid")&&(o._isValid=e._isValid),o}$d.fn=BP.prototype;$d.invalid=PUe;function e1(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Cte(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function KUe(e,t){var n;return e.isValid()&&t.isValid()?(t=wW(t,e),e.isBefore(t)?n=Cte(e,t):(n=Cte(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function _ye(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(Kbe(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=$d(n,r),Sye(this,i,e),this}}function Sye(e,t,n,r){var i=t._milliseconds,o=Nj(t._days),a=Nj(t._months);e.isValid()&&(r=r??!0,a&&oye(e,mT(e,"Month")+a*n),o&&nye(e,"Date",mT(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&En.updateOffset(e,o||a))}var QUe=_ye(1,"add"),XUe=_ye(-1,"subtract");function Eye(e){return typeof e=="string"||e instanceof String}function ZUe(e){return Ed(e)||qx(e)||Eye(e)||oh(e)||eze(e)||JUe(e)||e===null||e===void 0}function JUe(e){var t=sv(e)&&!aW(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,a=r.length;for(i=0;in.valueOf():n.valueOf()9999?bA(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Gf(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",bA(n,"Z")):bA(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function hze(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+i+o)}function mze(e){e||(e=this.isUtc()?En.defaultFormatUtc:En.defaultFormat);var t=bA(this,e);return this.localeData().postformat(t)}function gze(e,t){return this.isValid()&&(Ed(e)&&e.isValid()||co(e).isValid())?$d({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vze(e){return this.from(co(),e)}function bze(e,t){return this.isValid()&&(Ed(e)&&e.isValid()||co(e).isValid())?$d({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function yze(e){return this.to(co(),e)}function Cye(e){var t;return e===void 0?this._locale._abbr:(t=_h(e),t!=null&&(this._locale=t),this)}var wye=wu("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Tye(){return this._locale}var sM=1e3,yy=60*sM,lM=60*yy,xye=(365*400+97)*24*lM;function _y(e,t){return(e%t+t)%t}function Oye(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-xye:new Date(e,t,n).valueOf()}function Rye(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-xye:Date.UTC(e,t,n)}function _ze(e){var t,n;if(e=Tu(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Rye:Oye,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=_y(t+(this._isUTC?0:this.utcOffset()*yy),lM);break;case"minute":t=this._d.valueOf(),t-=_y(t,yy);break;case"second":t=this._d.valueOf(),t-=_y(t,sM);break}return this._d.setTime(t),En.updateOffset(this,!0),this}function Sze(e){var t,n;if(e=Tu(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Rye:Oye,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=lM-_y(t+(this._isUTC?0:this.utcOffset()*yy),lM)-1;break;case"minute":t=this._d.valueOf(),t+=yy-_y(t,yy)-1;break;case"second":t=this._d.valueOf(),t+=sM-_y(t,sM)-1;break}return this._d.setTime(t),En.updateOffset(this,!0),this}function Eze(){return this._d.valueOf()-(this._offset||0)*6e4}function Cze(){return Math.floor(this.valueOf()/1e3)}function wze(){return new Date(this.valueOf())}function Tze(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xze(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Oze(){return this.isValid()?this.toISOString():null}function Rze(){return sW(this)}function Ize(){return Im({},Nr(this))}function Aze(){return Nr(this).overflow}function Nze(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}or("N",0,0,"eraAbbr");or("NN",0,0,"eraAbbr");or("NNN",0,0,"eraAbbr");or("NNNN",0,0,"eraName");or("NNNNN",0,0,"eraNarrow");or("y",["y",1],"yo","eraYear");or("y",["yy",2],0,"eraYear");or("y",["yyy",3],0,"eraYear");or("y",["yyyy",4],0,"eraYear");jn("N",TW);jn("NN",TW);jn("NNN",TW);jn("NNNN",Uze);jn("NNNNN",zze);$i(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Nr(n).era=i:Nr(n).invalidEra=e});jn("y",cS);jn("yy",cS);jn("yyy",cS);jn("yyyy",cS);jn("yo",Vze);$i(["y","yy","yyy","yyyy"],Os);$i(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Os]=n._locale.eraYearOrdinalParse(e,i):t[Os]=parseInt(e,10)});function Mze(e,t){var n,r,i,o=this._eras||_h("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function Pze(e,t){var n=e.since<=e.until?1:-1;return t===void 0?En(e.since).year():En(e.since).year()+(t-e.offset)*n}function Dze(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),Xze.call(this,e,t,n,r,i))}function Xze(e,t,n,r,i){var o=lye(e,t,n,r,i),a=gT(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}or("Q",0,"Qo","quarter");jn("Q",Xbe);$i("Q",function(e,t){t[Hp]=(Wr(e)-1)*3});function Zze(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}or("D",["DD",2],"Do","date");jn("D",fo,uS);jn("DD",fo,Rc);jn("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});$i(["D","DD"],gf);$i("Do",function(e,t){t[gf]=Wr(e.match(fo)[0])});var Aye=dS("Date",!0);or("DDD",["DDDD",3],"DDDo","dayOfYear");jn("DDD",kP);jn("DDDD",Zbe);$i(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Wr(e)});function Jze(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}or("m",["mm",2],0,"minute");jn("m",fo,hW);jn("mm",fo,Rc);$i(["m","mm"],rd);var eVe=dS("Minutes",!1);or("s",["ss",2],0,"second");jn("s",fo,hW);jn("ss",fo,Rc);$i(["s","ss"],Up);var tVe=dS("Seconds",!1);or("S",0,0,function(){return~~(this.millisecond()/100)});or(0,["SS",2],0,function(){return~~(this.millisecond()/10)});or(0,["SSS",3],0,"millisecond");or(0,["SSSS",4],0,function(){return this.millisecond()*10});or(0,["SSSSS",5],0,function(){return this.millisecond()*100});or(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});or(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});or(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});or(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});jn("S",kP,Xbe);jn("SS",kP,Rc);jn("SSS",kP,Zbe);var Am,Nye;for(Am="SSSS";Am.length<=9;Am+="S")jn(Am,cS);function nVe(e,t){t[$1]=Wr(("0."+e)*1e3)}for(Am="S";Am.length<=9;Am+="S")$i(Am,nVe);Nye=dS("Milliseconds",!1);or("z",0,0,"zoneAbbr");or("zz",0,0,"zoneName");function rVe(){return this._isUTC?"UTC":""}function iVe(){return this._isUTC?"Coordinated Universal Time":""}var fn=Yx.prototype;fn.add=QUe;fn.calendar=rze;fn.clone=ize;fn.diff=dze;fn.endOf=Sze;fn.format=mze;fn.from=gze;fn.fromNow=vze;fn.to=bze;fn.toNow=yze;fn.get=hHe;fn.invalidAt=Aze;fn.isAfter=oze;fn.isBefore=aze;fn.isBetween=sze;fn.isSame=lze;fn.isSameOrAfter=cze;fn.isSameOrBefore=uze;fn.isValid=Rze;fn.lang=wye;fn.locale=Cye;fn.localeData=Tye;fn.max=RUe;fn.min=OUe;fn.parsingFlags=Ize;fn.set=mHe;fn.startOf=_ze;fn.subtract=XUe;fn.toArray=Tze;fn.toObject=xze;fn.toDate=wze;fn.toISOString=pze;fn.inspect=hze;typeof Symbol<"u"&&Symbol.for!=null&&(fn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});fn.toJSON=Oze;fn.toString=fze;fn.unix=Cze;fn.valueOf=Eze;fn.creationData=Nze;fn.eraName=Dze;fn.eraNarrow=$ze;fn.eraAbbr=Lze;fn.eraYear=Fze;fn.year=tye;fn.isLeapYear=pHe;fn.weekYear=Gze;fn.isoWeekYear=Wze;fn.quarter=fn.quarters=Zze;fn.month=aye;fn.daysInMonth=wHe;fn.week=fn.weeks=MHe;fn.isoWeek=fn.isoWeeks=kHe;fn.weeksInYear=Kze;fn.weeksInWeekYear=Qze;fn.isoWeeksInYear=qze;fn.isoWeeksInISOWeekYear=Yze;fn.date=Aye;fn.day=fn.days=WHe;fn.weekday=qHe;fn.isoWeekday=YHe;fn.dayOfYear=Jze;fn.hour=fn.hours=tUe;fn.minute=fn.minutes=eVe;fn.second=fn.seconds=tVe;fn.millisecond=fn.milliseconds=Nye;fn.utcOffset=LUe;fn.utc=BUe;fn.local=jUe;fn.parseZone=HUe;fn.hasAlignedHourOffset=UUe;fn.isDST=zUe;fn.isLocal=GUe;fn.isUtcOffset=WUe;fn.isUtc=yye;fn.isUTC=yye;fn.zoneAbbr=rVe;fn.zoneName=iVe;fn.dates=wu("dates accessor is deprecated. Use date instead.",Aye);fn.months=wu("months accessor is deprecated. Use month instead",aye);fn.years=wu("years accessor is deprecated. Use year instead",tye);fn.zone=wu("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",FUe);fn.isDSTShifted=wu("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",VUe);function oVe(e){return co(e*1e3)}function aVe(){return co.apply(null,arguments).parseZone()}function Mye(e){return e}var hi=cW.prototype;hi.calendar=Gje;hi.longDateFormat=Kje;hi.invalidDate=Xje;hi.ordinal=eHe;hi.preparse=Mye;hi.postformat=Mye;hi.relativeTime=nHe;hi.pastFuture=rHe;hi.set=zje;hi.eras=Mze;hi.erasParse=kze;hi.erasConvertYear=Pze;hi.erasAbbrRegex=jze;hi.erasNameRegex=Bze;hi.erasNarrowRegex=Hze;hi.months=_He;hi.monthsShort=SHe;hi.monthsParse=CHe;hi.monthsRegex=xHe;hi.monthsShortRegex=THe;hi.week=RHe;hi.firstDayOfYear=NHe;hi.firstDayOfWeek=AHe;hi.weekdays=HHe;hi.weekdaysMin=zHe;hi.weekdaysShort=UHe;hi.weekdaysParse=GHe;hi.weekdaysRegex=KHe;hi.weekdaysShortRegex=QHe;hi.weekdaysMinRegex=XHe;hi.isPM=JHe;hi.meridiem=nUe;function cM(e,t,n,r){var i=_h(),o=Vf().set(r,t);return i[n](o,e)}function kye(e,t,n){if(oh(e)&&(t=e,e=void 0),e=e||"",t!=null)return cM(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=cM(e,r,n,"month");return i}function OW(e,t,n,r){typeof e=="boolean"?(oh(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,oh(t)&&(n=t,t=void 0),t=t||"");var i=_h(),o=e?i._week.dow:0,a,s=[];if(n!=null)return cM(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=cM(t,(a+o)%7,r,"day");return s}function sVe(e,t){return kye(e,t,"months")}function lVe(e,t){return kye(e,t,"monthsShort")}function cVe(e,t,n){return OW(e,t,n,"weekdays")}function uVe(e,t,n){return OW(e,t,n,"weekdaysShort")}function dVe(e,t,n){return OW(e,t,n,"weekdaysMin")}tg("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Wr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});En.lang=wu("moment.lang is deprecated. Use moment.locale instead.",tg);En.langData=wu("moment.langData is deprecated. Use moment.localeData instead.",_h);var ap=Math.abs;function fVe(){var e=this._data;return this._milliseconds=ap(this._milliseconds),this._days=ap(this._days),this._months=ap(this._months),e.milliseconds=ap(e.milliseconds),e.seconds=ap(e.seconds),e.minutes=ap(e.minutes),e.hours=ap(e.hours),e.months=ap(e.months),e.years=ap(e.years),this}function Pye(e,t,n,r){var i=$d(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function pVe(e,t){return Pye(this,e,t,1)}function hVe(e,t){return Pye(this,e,t,-1)}function wte(e){return e<0?Math.floor(e):Math.ceil(e)}function mVe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=wte(kj(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Xc(e/1e3),r.seconds=i%60,o=Xc(i/60),r.minutes=o%60,a=Xc(o/60),r.hours=a%24,t+=Xc(a/24),l=Xc(Dye(t)),n+=l,t-=wte(kj(l)),s=Xc(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Dye(e){return e*4800/146097}function kj(e){return e*146097/4800}function gVe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Tu(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Dye(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(kj(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Sh(e){return function(){return this.as(e)}}var $ye=Sh("ms"),vVe=Sh("s"),bVe=Sh("m"),yVe=Sh("h"),_Ve=Sh("d"),SVe=Sh("w"),EVe=Sh("M"),CVe=Sh("Q"),wVe=Sh("y"),TVe=$ye;function xVe(){return $d(this)}function OVe(e){return e=Tu(e),this.isValid()?this[e+"s"]():NaN}function v0(e){return function(){return this.isValid()?this._data[e]:NaN}}var RVe=v0("milliseconds"),IVe=v0("seconds"),AVe=v0("minutes"),NVe=v0("hours"),MVe=v0("days"),kVe=v0("months"),PVe=v0("years");function DVe(){return Xc(this.days()/7)}var Rp=Math.round,Jb={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function $Ve(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function LVe(e,t,n,r){var i=$d(e).abs(),o=Rp(i.as("s")),a=Rp(i.as("m")),s=Rp(i.as("h")),l=Rp(i.as("d")),c=Rp(i.as("M")),u=Rp(i.as("w")),d=Rp(i.as("y")),f=o<=n.ss&&["s",o]||o0,f[4]=r,$Ve.apply(null,f)}function FVe(e){return e===void 0?Rp:typeof e=="function"?(Rp=e,!0):!1}function BVe(e,t){return Jb[e]===void 0?!1:t===void 0?Jb[e]:(Jb[e]=t,e==="s"&&(Jb.ss=t-1),!0)}function jVe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Jb,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Jb,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=LVe(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var t$=Math.abs;function W0(e){return(e>0)-(e<0)||+e}function HP(){if(!this.isValid())return this.localeData().invalidDate();var e=t$(this._milliseconds)/1e3,t=t$(this._days),n=t$(this._months),r,i,o,a,s=this.asSeconds(),l,c,u,d;return s?(r=Xc(e/60),i=Xc(r/60),e%=60,r%=60,o=Xc(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=W0(this._months)!==W0(s)?"-":"",u=W0(this._days)!==W0(s)?"-":"",d=W0(this._milliseconds)!==W0(s)?"-":"",l+"P"+(o?c+o+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+a+"S":"")):"P0D"}var ri=BP.prototype;ri.isValid=kUe;ri.abs=fVe;ri.add=pVe;ri.subtract=hVe;ri.as=gVe;ri.asMilliseconds=$ye;ri.asSeconds=vVe;ri.asMinutes=bVe;ri.asHours=yVe;ri.asDays=_Ve;ri.asWeeks=SVe;ri.asMonths=EVe;ri.asQuarters=CVe;ri.asYears=wVe;ri.valueOf=TVe;ri._bubble=mVe;ri.clone=xVe;ri.get=OVe;ri.milliseconds=RVe;ri.seconds=IVe;ri.minutes=AVe;ri.hours=NVe;ri.days=MVe;ri.weeks=DVe;ri.months=kVe;ri.years=PVe;ri.humanize=jVe;ri.toISOString=HP;ri.toString=HP;ri.toJSON=HP;ri.locale=Cye;ri.localeData=Tye;ri.toIsoString=wu("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",HP);ri.lang=wye;or("X",0,0,"unix");or("x",0,0,"valueOf");jn("x",DP);jn("X",sHe);$i("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});$i("x",function(e,t,n){n._d=new Date(Wr(e))});//! moment.js -En.version="2.30.1";Hje(co);En.fn=fn;En.min=IUe;En.max=AUe;En.now=NUe;En.utc=Vf;En.unix=oVe;En.months=sVe;En.isDate=qx;En.locale=tg;En.invalid=NP;En.duration=$d;En.isMoment=Ed;En.weekdays=cVe;En.parseZone=aVe;En.localeData=_h;En.isDuration=yA;En.monthsShort=lVe;En.weekdaysMin=dVe;En.defineLocale=yW;En.updateLocale=aUe;En.locales=sUe;En.weekdaysShort=uVe;En.normalizeUnits=Tu;En.relativeTimeRounding=FVe;En.relativeTimeThreshold=BVe;En.calendarFormat=nze;En.prototype=fn;En.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let cR;const HVe=new Uint8Array(16);function UVe(){if(!cR&&(cR=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!cR))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cR(HVe)}const qa=[];for(let e=0;e<256;++e)qa.push((e+256).toString(16).slice(1));function zVe(e,t=0){return qa[e[t+0]]+qa[e[t+1]]+qa[e[t+2]]+qa[e[t+3]]+"-"+qa[e[t+4]]+qa[e[t+5]]+"-"+qa[e[t+6]]+qa[e[t+7]]+"-"+qa[e[t+8]]+qa[e[t+9]]+"-"+qa[e[t+10]]+qa[e[t+11]]+qa[e[t+12]]+qa[e[t+13]]+qa[e[t+14]]+qa[e[t+15]]}const VVe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Tte={randomUUID:VVe};function GVe(e,t,n){if(Tte.randomUUID&&!t&&!e)return Tte.randomUUID();e=e||{};const r=e.random||(e.rng||UVe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,zVe(r)}const WVe="1.0.2";function qVe(){return WVe}function YVe(){const e=localStorage.getItem(iA);(e===null||e==="true")&&new Audio(zLe).play()}function KVe(){return En().format("YYYY-MM-DD HH:mm:ss")}function UP(){return GVe().replaceAll(/-/g,"")}function q0(e){return e.endsWith("/")?e.slice(0,-1):e}function xte(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function QVe(e){if(KLe===e||QLe===e||XLe===e||ZLe===e||JLe===e)return!0}function XVe(e){return e===fT||e===pT}function ZVe(e){return e===fT||e===pT}function JVe(e){return e.startsWith(a6e)}function Lye(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}function eGe(){return["undo","redo","brush","eraser","|","bold","italic","underline","strike","link","code","hr","todo","emoji","font-color","|","image","video","attachment","quote","code-block","table"]}const $l=Oc()(Md(kd(Pd(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:CLe}))),id=Oc()(Md(kd(Pd((e,t)=>({threads:[],queuingThreads:[],currentThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},currentQueuingThread:{uid:"",user:{uid:"",nickname:"",avatar:""}},threadResult:{data:{content:[],last:!0}},showQueueButton:!1,showQueueList:!1,showRightPanel:!1,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{},addThread(n){var i,o;if(n.state===tee)return t().addQueuingThread(n),0;if(t().threads.some(a=>a.topic===n.topic))if(((i=t().currentThread)==null?void 0:i.topic)===""||((o=t().currentThread)==null?void 0:o.topic)!==n.topic){for(let a=0;aa.topic!==n.topic)]}),n.unreadCount}else{const a=t().threads.map(s=>s.topic===n.topic?(n.top=s.top,n.mute=s.mute,n.unread=s.unread,n.agent=s.agent,n):s);return e({threads:a}),0}else return n.unreadCount=1,e({threads:[n,...t().threads]}),n.unreadCount},addThreadWithMessage(n,r){var s,l;if(r.type===YLe)return t().addQueuingThread(n),0;const i=t().threads.some(c=>c.topic===n.topic),o=!XVe(r.type);if(ZVe(r.type)&&(n.state=nee),i)if(((s=t().currentThread)==null?void 0:s.topic)===""||((l=t().currentThread)==null?void 0:l.topic)!==n.topic){for(let c=0;cc.topic!==n.topic)]}),n.unreadCount}else{const c=t().threads.map(u=>u.topic===n.topic?(n.top=u.top,n.mute=u.mute,n.unread=u.unread,n.agent=u.agent,n):u);return e({threads:c}),0}else return o&&(n.unreadCount=1),e({threads:[n,...t().threads]}),n.unreadCount},addQueuingThread(n){t().queuingThreads.some(i=>i.topic===n.topic)||e({queuingThreads:[n,...t().queuingThreads]})},updateThreadContent(n,r){let i=null;const o=t().threads.map(a=>a.topic===n?(i={...a,unreadCount:a.unreadCount+1,content:r},i):a);return e({threads:o}),i},updateThreadStatus(n,r){let i=null;const o=t().threads.map(a=>a.topic===n?(i={...a,state:r},i):a);return e({threads:o}),i},removeThread(n){e({threads:[...t().threads.filter(r=>(r==null?void 0:r.uid)!==(n==null?void 0:n.uid))]})},closeThread(n){const r=t().threads.map(i=>i.topic===n?{...i,state:nee}:i);e({threads:r})},addThreads(n){for(let r=0;ra.topic===i.topic))e({threads:[...t().threads,i]});else{const a=t().threads.map(s=>s.topic===i.topic?{...i,unreadCount:s.unreadCount}:s);e({threads:a})}}},setThreads(n){e(r=>{r.threads=n})},setQueuingThreads(n){e(r=>{r.queuingThreads=n})},setCurrentThread(n){e(o=>{o.showQueueList=!1});const r={...n,unreadCount:0},i=t().threads.map(o=>o.topic===r.topic?r:o);e(o=>{o.currentThread=r,o.threads=i})},setCurrentQueuingThread(n){e(r=>{r.currentQueuingThread=n})},setThreadResult(n){e(r=>{r.threadResult=n})},getUnreadCount(){return t().threads.reduce((n,r)=>{var i;return r.unreadCount>0&&r.topic!==((i=t().currentThread)==null?void 0:i.topic)?n+r.unreadCount:n},0)},setShowQueueButton(n){e(r=>{r.showQueueButton=n})},setShowQueueList(n){e(r=>{r.showQueueList=n,r.showRightPanel=!1})},setShowRightPanel(n){e(r=>{r.showRightPanel=n})},resetThreads(){e(n=>{n.threads=[],n.queuingThreads=[],n.currentThread={uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},n.currentQueuingThread={uid:"",user:{uid:"",nickname:"",avatar:""}},n.threadResult={data:{content:[],last:!0}},n.showQueueButton=!1,n.showQueueList=!1,n.showRightPanel=!1})},setLoading:n=>e({loading:n}),setError:n=>e({error:n}),setSearchText:n=>e({searchText:n}),setFilter:(n,r)=>e(i=>{i.filters[n]=r}),clearFilters:()=>e({filters:{}}),refreshThreads:async()=>{const{currentOrg:n}=$l.getState();if(n!=null&&n.uid){const{threadService:r}=await oW(async()=>{const{threadService:i}=await import("./threadService-CYtUfoLW.js");return{threadService:i}},[]);await r.loadThreads(n.uid)}},setPagination:n=>e({pagination:n})})),{name:ILe}))),Eh=Oc()(Md(kd(Pd((e,t)=>({messageList:[],addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===dT){const o=t().messageList.findIndex(a=>a.type===dT&&a.uid===n.uid);if(o!==-1){const a=[...t().messageList];a[o].content+=n.content,e({messageList:a});return}}const i=t().messageList.findIndex(o=>o.uid===n.uid);if(i!==-1){const o=[...t().messageList];o[i]=n,e({messageList:o})}}else{const i=t().messageList[t().messageList.length-1];if(i&&n.type===GF&&i.type===GF){const o=t().messageList.findIndex(s=>s.uid===i.uid),a=[...t().messageList];a[o]=n,e({messageList:a})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let o=0;ol.uid===a.uid)||r.unshift(a)}const i=[...r,...t().messageList].sort((o,a)=>{const s=En(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=En(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",i),e({messageList:i})},updateMessageStatus(n,r){const i=t().messageList.findIndex(o=>o.uid===n);if(i!==-1){const o=[...t().messageList];o[i].status=r,e({messageList:o})}},updateMessage(n){const r=t().messageList.findIndex(i=>i.uid===n.uid);if(r!==-1){const i=[...t().messageList];i[r].content=n.content,e({messageList:i})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i.splice(r,1),e({messageList:i})}},recallMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i[r].type=vve,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const o=En(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),a=En(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return o-a});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:TLe}))),xa=Oc()(Md(kd(Pd((e,t)=>({userInfo:{uid:"",nickname:"",avatar:""},deviceUid:"",setUserInfo:n=>{e({userInfo:n})},setDeviceUid(n){e({deviceUid:n})},resetUserInfo(){e({userInfo:{uid:t().userInfo.uid,nickname:"",avatar:""}})}})),{name:OLe}))),b0=Oc()(Md(kd(Pd((e,t)=>({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""},insertAgent(n){e(r=>{r.agentResult.data.content.unshift(n)})},updateAgent(n){e(r=>{const i=r.agentResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i[o]=n:console.warn(`Agent with uid ${n.uid} not found.`)})},deleteAgent(n){e(r=>{const i=r.agentResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i.splice(o,1):console.warn(`Agent with uid ${n.uid} not found.`)})},setAgentResult:n=>{e({agentResult:n})},setAgentInfo(n){e({agentInfo:n})},deleteAgentInfo(n){const r=t().agentResult.data.content,i=r.findIndex(o=>o.uid===n);i!==-1?e({agentResult:{...t().agentResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Agent not found in cache:",n),t().agentInfo.uid===n&&e({agentInfo:{uid:"",orgUid:""}})},resetAgentInfo(){e({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""}})}})),{name:NLe})));var Fye={exports:{}};/*! +En.version="2.30.1";Hje(co);En.fn=fn;En.min=IUe;En.max=AUe;En.now=NUe;En.utc=Vf;En.unix=oVe;En.months=sVe;En.isDate=qx;En.locale=tg;En.invalid=NP;En.duration=$d;En.isMoment=Ed;En.weekdays=cVe;En.parseZone=aVe;En.localeData=_h;En.isDuration=yA;En.monthsShort=lVe;En.weekdaysMin=dVe;En.defineLocale=yW;En.updateLocale=aUe;En.locales=sUe;En.weekdaysShort=uVe;En.normalizeUnits=Tu;En.relativeTimeRounding=FVe;En.relativeTimeThreshold=BVe;En.calendarFormat=nze;En.prototype=fn;En.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let cR;const HVe=new Uint8Array(16);function UVe(){if(!cR&&(cR=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!cR))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cR(HVe)}const qa=[];for(let e=0;e<256;++e)qa.push((e+256).toString(16).slice(1));function zVe(e,t=0){return qa[e[t+0]]+qa[e[t+1]]+qa[e[t+2]]+qa[e[t+3]]+"-"+qa[e[t+4]]+qa[e[t+5]]+"-"+qa[e[t+6]]+qa[e[t+7]]+"-"+qa[e[t+8]]+qa[e[t+9]]+"-"+qa[e[t+10]]+qa[e[t+11]]+qa[e[t+12]]+qa[e[t+13]]+qa[e[t+14]]+qa[e[t+15]]}const VVe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Tte={randomUUID:VVe};function GVe(e,t,n){if(Tte.randomUUID&&!t&&!e)return Tte.randomUUID();e=e||{};const r=e.random||(e.rng||UVe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,zVe(r)}const WVe="1.0.2";function qVe(){return WVe}function YVe(){const e=localStorage.getItem(iA);(e===null||e==="true")&&new Audio(zLe).play()}function KVe(){return En().format("YYYY-MM-DD HH:mm:ss")}function UP(){return GVe().replaceAll(/-/g,"")}function q0(e){return e.endsWith("/")?e.slice(0,-1):e}function xte(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function QVe(e){if(KLe===e||QLe===e||XLe===e||ZLe===e||JLe===e)return!0}function XVe(e){return e===fT||e===pT}function ZVe(e){return e===fT||e===pT}function JVe(e){return e.startsWith(a6e)}function Lye(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}function eGe(){return["undo","redo","brush","eraser","|","bold","italic","underline","strike","link","code","hr","todo","emoji","font-color","|","image","video","attachment","quote","code-block","table"]}const $l=Oc()(Md(kd(Pd(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:CLe}))),id=Oc()(Md(kd(Pd((e,t)=>({threads:[],queuingThreads:[],currentThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},currentQueuingThread:{uid:"",user:{uid:"",nickname:"",avatar:""}},threadResult:{data:{content:[],last:!0}},showQueueButton:!1,showQueueList:!1,showRightPanel:!1,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{},addThread(n){var i,o;if(n.state===tee)return t().addQueuingThread(n),0;if(t().threads.some(a=>a.topic===n.topic))if(((i=t().currentThread)==null?void 0:i.topic)===""||((o=t().currentThread)==null?void 0:o.topic)!==n.topic){for(let a=0;aa.topic!==n.topic)]}),n.unreadCount}else{const a=t().threads.map(s=>s.topic===n.topic?(n.top=s.top,n.mute=s.mute,n.unread=s.unread,n.agent=s.agent,n):s);return e({threads:a}),0}else return n.unreadCount=1,e({threads:[n,...t().threads]}),n.unreadCount},addThreadWithMessage(n,r){var s,l;if(r.type===YLe)return t().addQueuingThread(n),0;const i=t().threads.some(c=>c.topic===n.topic),o=!XVe(r.type);if(ZVe(r.type)&&(n.state=nee),i)if(((s=t().currentThread)==null?void 0:s.topic)===""||((l=t().currentThread)==null?void 0:l.topic)!==n.topic){for(let c=0;cc.topic!==n.topic)]}),n.unreadCount}else{const c=t().threads.map(u=>u.topic===n.topic?(n.top=u.top,n.mute=u.mute,n.unread=u.unread,n.agent=u.agent,n):u);return e({threads:c}),0}else return o&&(n.unreadCount=1),e({threads:[n,...t().threads]}),n.unreadCount},addQueuingThread(n){t().queuingThreads.some(i=>i.topic===n.topic)||e({queuingThreads:[n,...t().queuingThreads]})},updateThreadContent(n,r){let i=null;const o=t().threads.map(a=>a.topic===n?(i={...a,unreadCount:a.unreadCount+1,content:r},i):a);return e({threads:o}),i},updateThreadStatus(n,r){let i=null;const o=t().threads.map(a=>a.topic===n?(i={...a,state:r},i):a);return e({threads:o}),i},removeThread(n){e({threads:[...t().threads.filter(r=>(r==null?void 0:r.uid)!==(n==null?void 0:n.uid))]})},closeThread(n){const r=t().threads.map(i=>i.topic===n?{...i,state:nee}:i);e({threads:r})},addThreads(n){for(let r=0;ra.topic===i.topic))e({threads:[...t().threads,i]});else{const a=t().threads.map(s=>s.topic===i.topic?{...i,unreadCount:s.unreadCount}:s);e({threads:a})}}},setThreads(n){e(r=>{r.threads=n})},setQueuingThreads(n){e(r=>{r.queuingThreads=n})},setCurrentThread(n){e(o=>{o.showQueueList=!1});const r={...n,unreadCount:0},i=t().threads.map(o=>o.topic===r.topic?r:o);e(o=>{o.currentThread=r,o.threads=i})},setCurrentQueuingThread(n){e(r=>{r.currentQueuingThread=n})},setThreadResult(n){e(r=>{r.threadResult=n})},getUnreadCount(){return t().threads.reduce((n,r)=>{var i;return r.unreadCount>0&&r.topic!==((i=t().currentThread)==null?void 0:i.topic)?n+r.unreadCount:n},0)},setShowQueueButton(n){e(r=>{r.showQueueButton=n})},setShowQueueList(n){e(r=>{r.showQueueList=n,r.showRightPanel=!1})},setShowRightPanel(n){e(r=>{r.showRightPanel=n})},resetThreads(){e(n=>{n.threads=[],n.queuingThreads=[],n.currentThread={uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},n.currentQueuingThread={uid:"",user:{uid:"",nickname:"",avatar:""}},n.threadResult={data:{content:[],last:!0}},n.showQueueButton=!1,n.showQueueList=!1,n.showRightPanel=!1})},setLoading:n=>e({loading:n}),setError:n=>e({error:n}),setSearchText:n=>e({searchText:n}),setFilter:(n,r)=>e(i=>{i.filters[n]=r}),clearFilters:()=>e({filters:{}}),refreshThreads:async()=>{const{currentOrg:n}=$l.getState();if(n!=null&&n.uid){const{threadService:r}=await oW(async()=>{const{threadService:i}=await import("./threadService-Bmr3Oiaf.js");return{threadService:i}},[]);await r.loadThreads(n.uid)}},setPagination:n=>e({pagination:n})})),{name:ILe}))),Eh=Oc()(Md(kd(Pd((e,t)=>({messageList:[],addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===dT){const o=t().messageList.findIndex(a=>a.type===dT&&a.uid===n.uid);if(o!==-1){const a=[...t().messageList];a[o].content+=n.content,e({messageList:a});return}}const i=t().messageList.findIndex(o=>o.uid===n.uid);if(i!==-1){const o=[...t().messageList];o[i]=n,e({messageList:o})}}else{const i=t().messageList[t().messageList.length-1];if(i&&n.type===GF&&i.type===GF){const o=t().messageList.findIndex(s=>s.uid===i.uid),a=[...t().messageList];a[o]=n,e({messageList:a})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let o=0;ol.uid===a.uid)||r.unshift(a)}const i=[...r,...t().messageList].sort((o,a)=>{const s=En(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=En(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",i),e({messageList:i})},updateMessageStatus(n,r){const i=t().messageList.findIndex(o=>o.uid===n);if(i!==-1){const o=[...t().messageList];o[i].status=r,e({messageList:o})}},updateMessage(n){const r=t().messageList.findIndex(i=>i.uid===n.uid);if(r!==-1){const i=[...t().messageList];i[r].content=n.content,e({messageList:i})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i.splice(r,1),e({messageList:i})}},recallMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i[r].type=vve,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const o=En(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),a=En(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return o-a});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:TLe}))),xa=Oc()(Md(kd(Pd((e,t)=>({userInfo:{uid:"",nickname:"",avatar:""},deviceUid:"",setUserInfo:n=>{e({userInfo:n})},setDeviceUid(n){e({deviceUid:n})},resetUserInfo(){e({userInfo:{uid:t().userInfo.uid,nickname:"",avatar:""}})}})),{name:OLe}))),b0=Oc()(Md(kd(Pd((e,t)=>({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""},insertAgent(n){e(r=>{r.agentResult.data.content.unshift(n)})},updateAgent(n){e(r=>{const i=r.agentResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i[o]=n:console.warn(`Agent with uid ${n.uid} not found.`)})},deleteAgent(n){e(r=>{const i=r.agentResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i.splice(o,1):console.warn(`Agent with uid ${n.uid} not found.`)})},setAgentResult:n=>{e({agentResult:n})},setAgentInfo(n){e({agentInfo:n})},deleteAgentInfo(n){const r=t().agentResult.data.content,i=r.findIndex(o=>o.uid===n);i!==-1?e({agentResult:{...t().agentResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Agent not found in cache:",n),t().agentInfo.uid===n&&e({agentInfo:{uid:"",orgUid:""}})},resetAgentInfo(){e({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""}})}})),{name:NLe})));var Fye={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames @@ -761,7 +761,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var R3=xr.default;Object.defineProperty(vd,"__esModule",{value:!0});vd.default=Lqt;vd.unitless=vd.ignore=vd.getComputedToken=void 0;var Aqt=R3(p),Nqt=Dg,Mqt=R3(T3),gce=Mf,kqt=R3(jf),GAe=R3(rQ),vce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,o=vce(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=(0,GAe.default)(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=vce(c,["theme"]);let f=d;u&&(f=iQ(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=f}),a};vd.getComputedToken=iQ;function Lqt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=Aqt.default.useContext(gce.DesignTokenContext),o=`${Mqt.default}-${t||""}`,a=n||gce.defaultTheme,[s,l,c]=(0,Nqt.useCacheToken)(a,[kqt.default,e],{salt:o,override:r,getComputedToken:iQ,formatToken:GAe.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Pqt,ignore:Dqt,preserve:$qt}});return[a,c,t?l:"",s,i]}var og={},xo={};Object.defineProperty(xo,"__esModule",{value:!0});xo.textEllipsis=xo.resetIcon=xo.resetComponent=xo.operationUnit=xo.genLinkStyle=xo.genIconStyle=xo.genFocusStyle=xo.genFocusOutline=xo.genCommonStyle=xo.clearFix=void 0;var Fqt=Dg;xo.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const Bqt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}};xo.resetComponent=Bqt;const WAe=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});xo.resetIcon=WAe;const jqt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});xo.clearFix=jqt;const Hqt=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}});xo.genLinkStyle=Hqt;const Uqt=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}};xo.genCommonStyle=Uqt;const qAe=(e,t)=>({outline:`${(0,Fqt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});xo.genFocusOutline=qAe;const YAe=(e,t)=>({"&:focus-visible":Object.assign({},qAe(e,t))});xo.genFocusStyle=YAe;const zqt=e=>({[`.${e}`]:Object.assign(Object.assign({},WAe()),{[`.${e} .${e}-icon`]:{display:"block"}})});xo.genIconStyle=zqt;const Vqt=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},YAe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});xo.operationUnit=Vqt;var Gqt=oa.default;Object.defineProperty(og,"__esModule",{value:!0});og.genSubStyleComponent=og.genStyleHooks=og.genComponentStyleHook=void 0;var bce=p,Wqt=zAe,QL=sc,XL=xo,yce=Gqt(vd);const{genStyleHooks:qqt,genComponentStyleHook:Yqt,genSubStyleComponent:Kqt}=(0,Wqt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,bce.useContext)(QL.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,yce.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,bce.useContext)(QL.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,XL.genLinkStyle)(e)},(0,XL.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:QL.defaultIconPrefixCls)]},getCommonStyle:XL.genCommonStyle,getCompUnitless:()=>yce.unitless});og.genSubStyleComponent=Kqt;og.genComponentStyleHook=Yqt;og.genStyleHooks=qqt;var oQ={};Object.defineProperty(oQ,"__esModule",{value:!0});oQ.default=Xqt;var Qqt=nQ;function Xqt(e,t){return Qqt.PresetColors.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}var I3={},Zqt=xr.default;Object.defineProperty(I3,"__esModule",{value:!0});I3.default=void 0;var Jqt=Dg,eYt=xo,tYt=Zqt(vd);const nYt=(e,t)=>{const[n,r]=(0,tYt.default)();return(0,Jqt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,eYt.genIconStyle)(e)])};I3.default=nYt;(function(e){var t=xr.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DesignTokenContext",{enumerable:!0,get:function(){return u.DesignTokenContext}}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return i.PresetColors}}),Object.defineProperty(e,"calc",{enumerable:!0,get:function(){return r.genCalc}}),Object.defineProperty(e,"defaultConfig",{enumerable:!0,get:function(){return u.defaultConfig}}),Object.defineProperty(e,"genComponentStyleHook",{enumerable:!0,get:function(){return s.genComponentStyleHook}}),Object.defineProperty(e,"genPresetColor",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"genStyleHooks",{enumerable:!0,get:function(){return s.genStyleHooks}}),Object.defineProperty(e,"genSubStyleComponent",{enumerable:!0,get:function(){return s.genSubStyleComponent}}),Object.defineProperty(e,"getLineHeight",{enumerable:!0,get:function(){return o.getLineHeight}}),Object.defineProperty(e,"mergeToken",{enumerable:!0,get:function(){return r.mergeToken}}),Object.defineProperty(e,"statistic",{enumerable:!0,get:function(){return r.statistic}}),Object.defineProperty(e,"statisticToken",{enumerable:!0,get:function(){return r.statisticToken}}),Object.defineProperty(e,"useResetIconStyle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useStyleRegister",{enumerable:!0,get:function(){return n.useStyleRegister}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return a.default}});var n=Dg,r=zAe,i=nQ,o=eO,a=t(vd),s=og,l=t(oQ),c=t(I3),u=Mf})(nE);var A3={},rYt=oa.default;Object.defineProperty(A3,"__esModule",{value:!0});A3.default=void 0;var iYt=rYt(p);const oYt=Object.assign({},iYt),{useId:_ce}=oYt,aYt=()=>"",sYt=typeof _ce>"u"?aYt:_ce;A3.default=sYt;var aQ=xr.default;Object.defineProperty(tQ,"__esModule",{value:!0});tQ.default=fYt;var lYt=aQ(p3),cYt=aQ(C3),uYt=su,Sce=nE,dYt=aQ(A3);function fYt(e,t,n){var r;(0,uYt.devUseWarning)("ConfigProvider");const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},Sce.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Sce.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=(0,dYt.default)();return(0,lYt.default)(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(f=>{c[f]=Object.assign(Object.assign({},c[f]),e.components[f])});const u=`css-var-${a.replace(/:/g,"")}`,d=((s=i.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:d})},[i,o],(s,l)=>s.some((c,u)=>{const d=l[u];return!(0,cYt.default)(c,d,!0)}))}var sQ={};const pYt=Nx(DYe);var hYt=oa.default;Object.defineProperty(sQ,"__esModule",{value:!0});sQ.default=vYt;var Ece=hYt(p),mYt=pYt,gYt=nE;function vYt(e){const{children:t}=e,[,n]=(0,gYt.useToken)(),{motion:r}=n,i=Ece.useRef(!1);return i.current=i.current||r===!1,i.current?Ece.createElement(mYt.Provider,{motion:r},t):t}var N3={},bYt=oa.default;Object.defineProperty(N3,"__esModule",{value:!0});N3.default=void 0;bYt(p);N3.default=()=>null;var KAe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=nE})(KAe);(function(e){"use client";var t=xr.default,n=oa.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return g.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return g.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return g.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return g.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return g.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var r=n(p),i=Dg,o=t(JS),a=t(p3),s=h3,l=n(su),c=t(m3),u=n(DAe),d=t(tE),f=t(u0),h=Mf,m=t(jf),g=sc,v=S3,y=Xv,b=t(E3),_=t(tQ),E=t(sQ),w=t(N3),S=n(Zv),C=t(KAe),T=function(q,H){var z={};for(var J in q)Object.prototype.hasOwnProperty.call(q,J)&&H.indexOf(J)<0&&(z[J]=q[J]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,J=Object.getOwnPropertySymbols(q);teH.endsWith("Color"))}const I=q=>{const{prefixCls:H,iconPrefixCls:z,theme:J,holderRender:te}=q;H!==void 0&&(O=H),z!==void 0&&(N=z),"holderRender"in q&&(M=te),J&&(B(J)?(0,v.registerTheme)(F(),J):A=J)},k=()=>({getPrefixCls:(q,H)=>H||(q?`${F()}-${q}`:F()),getIconPrefixCls:P,getRootPrefixCls:()=>O||F(),getTheme:()=>A,holderRender:M});e.globalConfig=k;const U=q=>{const{children:H,csp:z,autoInsertSpaceInButton:J,alert:te,anchor:ae,form:K,locale:Q,componentSize:oe,direction:ge,space:fe,splitter:ue,virtual:le,dropdownMatchSelectWidth:ve,popupMatchSelectWidth:ne,popupOverflow:pe,legacyLocale:be,parentContext:Re,iconPrefixCls:Se,theme:Ce,componentDisabled:ye,segmented:he,statistic:_e,spin:Oe,calendar:De,carousel:Y,cascader:$,collapse:V,typography:ie,checkbox:me,descriptions:se,divider:Be,drawer:Ve,skeleton:re,steps:Me,image:je,layout:ke,list:Ge,mentions:Ue,modal:qe,progress:At,result:at,slider:pt,breadcrumb:Ct,menu:bt,pagination:Vt,input:Tt,textArea:Ot,empty:Ut,badge:ze,radio:Ye,rate:He,switch:Ze,transfer:yt,avatar:_t,message:Bt,tag:Nt,table:vt,card:ht,tabs:kt,timeline:Et,timePicker:Yt,upload:ct,notification:Rt,tree:Ht,colorPicker:wt,datePicker:St,rangePicker:jt,flex:Pe,wave:Pt,dropdown:rt,warning:Mt,tour:It,tooltip:xn,popover:Hn,popconfirm:R,floatButtonGroup:L,variant:Z,inputNumber:xe,treeSelect:Le}=q,et=r.useCallback((on,an)=>{const{prefixCls:Gn}=q;if(an)return an;const _r=Gn||Re.getPrefixCls("");return on?`${_r}-${on}`:_r},[Re.getPrefixCls,q.prefixCls]),Lt=Se||Re.iconPrefixCls||g.defaultIconPrefixCls,pn=z||Re.csp;(0,C.default)(Lt,pn);const Fn=(0,_.default)(Ce,Re.theme,{prefixCls:et("")}),Xr={csp:pn,autoInsertSpaceInButton:J,alert:te,anchor:ae,locale:Q||be,direction:ge,space:fe,splitter:ue,virtual:le,popupMatchSelectWidth:ne??ve,popupOverflow:pe,getPrefixCls:et,iconPrefixCls:Lt,theme:Fn,segmented:he,statistic:_e,spin:Oe,calendar:De,carousel:Y,cascader:$,collapse:V,typography:ie,checkbox:me,descriptions:se,divider:Be,drawer:Ve,skeleton:re,steps:Me,image:je,input:Tt,textArea:Ot,layout:ke,list:Ge,mentions:Ue,modal:qe,progress:At,result:at,slider:pt,breadcrumb:Ct,menu:bt,pagination:Vt,empty:Ut,badge:ze,radio:Ye,rate:He,switch:Ze,transfer:yt,avatar:_t,message:Bt,tag:Nt,table:vt,card:ht,tabs:kt,timeline:Et,timePicker:Yt,upload:ct,notification:Rt,tree:Ht,colorPicker:wt,datePicker:St,rangePicker:jt,flex:Pe,wave:Pt,dropdown:rt,warning:Mt,tour:It,tooltip:xn,popover:Hn,popconfirm:R,floatButtonGroup:L,variant:Z,inputNumber:xe,treeSelect:Le},$r=Object.assign({},Re);Object.keys(Xr).forEach(on=>{Xr[on]!==void 0&&($r[on]=Xr[on])}),x.forEach(on=>{const an=q[on];an&&($r[on]=an)}),typeof J<"u"&&($r.button=Object.assign({autoInsertSpace:J},$r.button));const bi=(0,a.default)(()=>$r,$r,(on,an)=>{const Gn=Object.keys(on),_r=Object.keys(an);return Gn.length!==_r.length||Gn.some(oi=>on[oi]!==an[oi])}),Sr=r.useMemo(()=>({prefixCls:Lt,csp:pn}),[Lt,pn]);let ln=r.createElement(r.Fragment,null,r.createElement(w.default,{dropdownMatchSelectWidth:ve}),H);const _n=r.useMemo(()=>{var on,an,Gn,_r;return(0,s.merge)(((on=f.default.Form)===null||on===void 0?void 0:on.defaultValidateMessages)||{},((Gn=(an=bi.locale)===null||an===void 0?void 0:an.Form)===null||Gn===void 0?void 0:Gn.defaultValidateMessages)||{},((_r=bi.form)===null||_r===void 0?void 0:_r.validateMessages)||{},(K==null?void 0:K.validateMessages)||{})},[bi,K==null?void 0:K.validateMessages]);Object.keys(_n).length>0&&(ln=r.createElement(c.default.Provider,{value:_n},ln)),Q&&(ln=r.createElement(u.default,{locale:Q,_ANT_MARK__:u.ANT_MARK},ln)),(Lt||pn)&&(ln=r.createElement(o.default.Provider,{value:Sr},ln)),oe&&(ln=r.createElement(S.SizeContextProvider,{size:oe},ln)),ln=r.createElement(E.default,null,ln);const Er=r.useMemo(()=>{const on=Fn||{},{algorithm:an,token:Gn,components:_r,cssVar:oi}=on,Zi=T(on,["algorithm","token","components","cssVar"]),nr=an&&(!Array.isArray(an)||an.length>0)?(0,i.createTheme)(an):h.defaultTheme,Fi={};Object.entries(_r||{}).forEach(dn=>{let[wn,Mn]=dn;const Qn=Object.assign({},Mn);"algorithm"in Qn&&(Qn.algorithm===!0?Qn.theme=nr:(Array.isArray(Qn.algorithm)||typeof Qn.algorithm=="function")&&(Qn.theme=(0,i.createTheme)(Qn.algorithm)),delete Qn.algorithm),Fi[wn]=Qn});const Zn=Object.assign(Object.assign({},m.default),Gn);return Object.assign(Object.assign({},Zi),{theme:nr,token:Zn,components:Fi,override:Object.assign({override:Zn},Fi),cssVar:oi})},[Fn]);return Ce&&(ln=r.createElement(h.DesignTokenContext.Provider,{value:Er},ln)),bi.warning&&(ln=r.createElement(l.WarningContext.Provider,{value:bi.warning},ln)),ye!==void 0&&(ln=r.createElement(y.DisabledContextProvider,{disabled:ye},ln)),r.createElement(g.ConfigContext.Provider,{value:bi},ln)},D=q=>{const H=r.useContext(g.ConfigContext),z=r.useContext(d.default);return r.createElement(U,Object.assign({parentContext:H,legacyLocale:z},q))};D.ConfigContext=g.ConfigContext,D.SizeContext=S.default,D.config=I,D.useConfig=b.default,Object.defineProperty(D,"SizeContext",{get:()=>S.default}),e.default=D})(WK);var nO={},yYt=oa.default;Object.defineProperty(nO,"__esModule",{value:!0});nO.LayoutContext=void 0;var _Yt=yYt(p);nO.LayoutContext=_Yt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var lQ={},cQ={},uQ={},SYt=xr.default;Object.defineProperty(uQ,"__esModule",{value:!0});uQ.default=xYt;var EYt=SYt(d0),CYt=Symbol.for("react.element"),wYt=Symbol.for("react.transitional.element"),TYt=Symbol.for("react.fragment");function xYt(e){return e&&(0,EYt.default)(e)==="object"&&(e.$$typeof===CYt||e.$$typeof===wYt)&&e.type===TYt}var QAe=xr.default;Object.defineProperty(cQ,"__esModule",{value:!0});cQ.default=cz;var OYt=QAe(uQ),RYt=QAe(p);function cz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return RYt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(cz(r)):(0,OYt.default)(r)&&r.props?n=n.concat(cz(r.props.children,t)):n.push(r))}),n}var k_={},uz={exports:{}},M3={},dQ={};Object.defineProperty(dQ,"__esModule",{value:!0});var IYt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};dQ.default=IYt;var AYt=oa.default,fQ=xr.default;Object.defineProperty(M3,"__esModule",{value:!0});M3.default=void 0;var NYt=fQ(VD),XAe=AYt(p),MYt=fQ(dQ),kYt=fQ(ZS),PYt=function(t,n){return XAe.createElement(kYt.default,(0,NYt.default)({},t,{ref:n,icon:MYt.default}))},DYt=XAe.forwardRef(PYt);M3.default=DYt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(M3);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(uz,uz.exports);var $Yt=uz.exports,dz={exports:{}},k3={},pQ={};Object.defineProperty(pQ,"__esModule",{value:!0});var LYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};pQ.default=LYt;var FYt=oa.default,hQ=xr.default;Object.defineProperty(k3,"__esModule",{value:!0});k3.default=void 0;var BYt=hQ(VD),ZAe=FYt(p),jYt=hQ(pQ),HYt=hQ(ZS),UYt=function(t,n){return ZAe.createElement(HYt.default,(0,BYt.default)({},t,{ref:n,icon:jYt.default}))},zYt=ZAe.forwardRef(UYt);k3.default=zYt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(k3);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(dz,dz.exports);var VYt=dz.exports,fz={exports:{}},P3={},mQ={};Object.defineProperty(mQ,"__esModule",{value:!0});var GYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};mQ.default=GYt;var WYt=oa.default,gQ=xr.default;Object.defineProperty(P3,"__esModule",{value:!0});P3.default=void 0;var qYt=gQ(VD),JAe=WYt(p),YYt=gQ(mQ),KYt=gQ(ZS),QYt=function(t,n){return JAe.createElement(KYt.default,(0,qYt.default)({},t,{ref:n,icon:YYt.default}))},XYt=JAe.forwardRef(QYt);P3.default=XYt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(P3);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(fz,fz.exports);var ZYt=fz.exports,D3={},Qp={};Object.defineProperty(Qp,"__esModule",{value:!0});Qp.prepareComponentToken=Qp.default=Qp.DEPRECATED_TOKENS=void 0;var JYt=Dg,eKt=nE;const tKt=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:a,color:s,lineHeight:(0,JYt.unit)(o),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},eNe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}};Qp.prepareComponentToken=eNe;const nKt=Qp.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Qp.default=(0,eKt.genStyleHooks)("Layout",e=>[tKt(e)],eNe,{deprecatedTokens:nKt});Object.defineProperty(D3,"__esModule",{value:!0});D3.default=void 0;var XE=Dg,Cce=Qp,rKt=nE;const iKt=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:h,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:(0,XE.unit)(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,XE.unit)(f)} ${(0,XE.unit)(f)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,XE.unit)(f)} 0 0 ${(0,XE.unit)(f)}`}}},"&-light":{background:h,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};D3.default=(0,rKt.genStyleHooks)(["Layout","Sider"],e=>[iKt(e)],Cce.prepareComponentToken,{deprecatedTokens:Cce.DEPRECATED_TOKENS});var rE=xr.default,oKt=oa.default;Object.defineProperty(k_,"__esModule",{value:!0});k_.default=k_.SiderContext=void 0;var _p=oKt(p),Zl=_p,aKt=rE($Yt),wce=rE(VYt),Tce=rE(ZYt),xce=rE(zP),sKt=rE(f3),lKt=WK,cKt=nO,uKt=rE(D3),dKt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i!Number.isNaN(Number.parseFloat(e))&&isFinite(e),pKt=k_.SiderContext=Zl.createContext({}),hKt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),mKt=Zl.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=dKt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,_p.useContext)(cKt.LayoutContext),[_,E]=(0,_p.useState)("collapsed"in e?e.collapsed:a),[w,S]=(0,_p.useState)(!1);(0,_p.useEffect)(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const C=(Q,oe)=>{"collapsed"in e||E(Q),g==null||g(Q,oe)},{getPrefixCls:T,direction:x}=(0,_p.useContext)(lKt.ConfigContext),O=T("layout-sider",n),[N,A,M]=(0,uKt.default)(O),F=(0,_p.useRef)(null);F.current=Q=>{S(Q.matches),v==null||v(Q.matches),_!==Q.matches&&C(Q.matches,"responsive")},(0,_p.useEffect)(()=>{function Q(ge){return F.current(ge)}let oe;if(typeof window<"u"){const{matchMedia:ge}=window;if(ge&&m&&m in Oce){oe=ge(`screen and (max-width: ${Oce[m]})`);try{oe.addEventListener("change",Q)}catch{oe.addListener(Q)}Q(oe)}}return()=>{try{oe==null||oe.removeEventListener("change",Q)}catch{oe==null||oe.removeListener(Q)}}},[m]),(0,_p.useEffect)(()=>{const Q=hKt("ant-sider-");return b.addSider(Q),()=>b.removeSider(Q)},[]);const P=()=>{C(!_,"clickTrigger")},B=(0,sKt.default)(y,["collapsed"]),I=_?f:d,k=fKt(I)?`${I}px`:String(I),U=parseFloat(String(f||0))===0?Zl.createElement("span",{onClick:P,className:(0,xce.default)(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:h},i||Zl.createElement(aKt.default,null)):null,D=x==="rtl"==!u,z={expanded:D?Zl.createElement(Tce.default,null):Zl.createElement(wce.default,null),collapsed:D?Zl.createElement(wce.default,null):Zl.createElement(Tce.default,null)}[_?"collapsed":"expanded"],J=i!==null?U||Zl.createElement("div",{className:`${O}-trigger`,onClick:P,style:{width:k}},i||z):null,te=Object.assign(Object.assign({},l),{flex:`0 0 ${k}`,maxWidth:k,minWidth:k,width:k}),ae=(0,xce.default)(O,`${O}-${s}`,{[`${O}-collapsed`]:!!_,[`${O}-has-trigger`]:c&&i!==null&&!U,[`${O}-below`]:!!w,[`${O}-zero-width`]:parseFloat(k)===0},r,A,M),K=Zl.useMemo(()=>({siderCollapsed:_}),[_]);return N(Zl.createElement(pKt.Provider,{value:K},Zl.createElement("aside",Object.assign({className:ae},B,{style:te,ref:t}),Zl.createElement("div",{className:`${O}-children`},o),c||w&&U?J:null)))});k_.default=mKt;var tNe=xr.default;Object.defineProperty(lQ,"__esModule",{value:!0});lQ.default=bKt;var gKt=tNe(cQ),vKt=tNe(k_);function bKt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,gKt.default)(t).some(i=>i.type===vKt.default)}var $3,L3,yKt=oa.default,rO=xr.default;Object.defineProperty(zp,"__esModule",{value:!0});zp.default=zp.Header=L3=zp.Footer=$3=zp.Content=void 0;var _Kt=rO(IAe),qc=yKt(p),nNe=rO(zP),SKt=rO(f3),pz=WK,EKt=nO,CKt=rO(lQ),rNe=rO(Qp),iNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iqc.forwardRef((a,s)=>qc.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const vQ=qc.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=iNe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=qc.useContext(pz.ConfigContext),l=s("layout",n),[c,u,d]=(0,rNe.default)(l),f=r?`${l}-${r}`:l;return c(qc.createElement(o,Object.assign({className:(0,nNe.default)(n||f,i,u,d),ref:t},a)))}),wKt=qc.forwardRef((e,t)=>{const{direction:n}=qc.useContext(pz.ConfigContext),[r,i]=qc.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,f=iNe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=(0,SKt.default)(f,["suffixCls"]),{getPrefixCls:m,layout:g}=qc.useContext(pz.ConfigContext),v=m("layout",o),y=(0,CKt.default)(r,l,c),[b,_,E]=(0,rNe.default)(v),w=(0,nNe.default)(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,a,s,_,E),S=qc.useMemo(()=>({siderHook:{addSider:C=>{i(T=>[].concat((0,_Kt.default)(T),[C]))},removeSider:C=>{i(T=>T.filter(x=>x!==C))}}}),[]);return b(qc.createElement(EKt.LayoutContext.Provider,{value:S},qc.createElement(u,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},g==null?void 0:g.style),d)},h),l)))}),TKt=F3({tagName:"div",displayName:"Layout"})(wKt);zp.Header=F3({suffixCls:"header",tagName:"header",displayName:"Header"})(vQ);L3=zp.Footer=F3({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(vQ);$3=zp.Content=F3({suffixCls:"content",tagName:"main",displayName:"Content"})(vQ);zp.default=TKt;function iO(){const{isDarkMode:e}=FG(),{token:t}=_s.useToken(),n={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},r=260,i={borderBottom:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},o={borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},a={minHeight:120,overflowY:"auto"},s={height:20,fontSize:12,backgroundColor:t.colorBgContainer,color:t.colorText};return{leftSiderStyle:n,leftSiderWidth:r,headerStyle:i,rightSiderStyle:o,contentStyle:a,footerStyle:s}}const{Header:xKt,Sider:OKt,Content:RKt}=uo,oNe=()=>{const e=vi();p.useContext(As);const t=Ia(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:i,contentStyle:o}=iO(),[a,s]=p.useState([]);p.useEffect(()=>{const c=[{label:e.formatMessage({id:"setting.menu.title",defaultMessage:"设置"}),key:"setting",children:[{label:e.formatMessage({id:"setting.menu.profile",defaultMessage:"个人信息"}),key:"profile"},{label:e.formatMessage({id:"setting.menu.basic",defaultMessage:"基本设置"}),key:"basic"}]}];s(c)},[e]);const l=c=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),c),t("/setting/"+c.key)};return j.jsxs(uo,{children:[j.jsx(OKt,{style:r,width:i,children:j.jsx(Bd,{mode:"inline",onClick:l,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:a})}),j.jsxs(uo,{children:[j.jsx(xKt,{style:n,children:e.formatMessage({id:"menu.dashboard.mine"})}),j.jsx(RKt,{style:o,children:j.jsx(ED,{})})]})]})},aNe=()=>{const e=Ia(),{userInfo:t}=IY(),{translateString:n}=Mc(),{mode:r}=p.useContext(As),[i,o]=p.useState(""),[a,s]=p.useState(""),[l,c]=p.useState(""),u=()=>{e("/setting")};return p.useEffect(()=>{o(n(t==null?void 0:t.nickname)),s(n(t==null?void 0:t.description)),c(t==null?void 0:t.avatar)},[r,t]),j.jsx(j.Fragment,{children:j.jsx(bu,{title:i,content:a,placement:"rightBottom",children:j.jsx(j.Fragment,{children:j.jsx(xh,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function bQ(){const e=Fx(b=>b.accessToken),t=xa(b=>b.userInfo),n=b0(b=>b.agentInfo),r=d3(),[i,o]=p.useState(!1),{showNotification:a}=GK(),{translateString:s}=Mc();Eh(b=>b.addMessage),id(b=>b.updateThreadContent),p.useContext(As),p.useRef(!1);const l=id(b=>b.threads),[c,u]=p.useState(l),d=p.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!$_t()&&r&&e&&g()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",r," accessToken:",e)},[r,e]),f=async()=>{},h=p.useRef(n==null?void 0:n.uid),m=p.useCallback(()=>{if(!i&&e)return setInterval(async()=>{h.current?f():console.log("useMqtt autoPingMessage currentUidRef.current:",h.current)},1e4);console.log("useMqtt autoPingMessage isNetworkOnline:",r," accessToken:",e)},[i,e,t,n]),g=()=>{console.log("useMqtt doConnect"),P_t({uid:t.uid,username:t.username,accessToken:e})},v=()=>{console.log("useMqtt useEffect doDisconnect"),mL()},y=b=>{var _,E;(b==null?void 0:b.type)!==fT&&((_=b==null?void 0:b.user)==null?void 0:_.uid)!==(t==null?void 0:t.uid)&&((E=b==null?void 0:b.user)==null?void 0:E.uid)!==(n==null?void 0:n.uid)&&(YVe(),console.log("playAudio"))};return p.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?g():mL()},[r]),p.useEffect(()=>{if(n!=null&&n.uid){h.current=n==null?void 0:n.uid;const b=m();return()=>{clearInterval(b)}}else h.current=null},[n]),p.useEffect(()=>{console.log("useMqtt useEffect accessToken"),g();const b=d();return()=>{mL(),clearInterval(b)}},[e,t]),p.useEffect(()=>{console.log("useMqtt threads change"),u(l)},[l]),p.useEffect(()=>{const b=function(_){if(console.log("useMqtt handleNewMessage",_),_.type===dT||_.type===vve||_.type===GF||_.type===fT||_.type===pT)return;const E=_.threadTopic,w=c.find(S=>S.topic===E);w?w.mute?console.log("useMqtt matchingThread muted",E):(console.log("useMqtt matchingThread no mute",E),a(s(JO),s(JO)),y(_)):(console.log("useMqtt matchingThread no"),a(s(JO),s(JO)),y(_))};return vr.on(uT,b),()=>{vr.off(uT)}},[c]),p.useEffect(()=>{console.log("useMqtt useEffect");const b=function(){console.log("handleMqttConnected"),o(!0)},_=function(){console.log("handleMqttDisconnected"),o(!1)};return vr.on(DF,b),vr.on(LF,_),vr.on(FF,_),vr.on($F,_),vr.on(BF,_),vr.on(jF,_),()=>{console.log("un - useEffect mqttDisconnect"),vr.off(DF),vr.off(LF),vr.off(FF),vr.off($F),vr.off(BF),vr.off(jF)}},[]),{doConnect:g,doDisconnect:v,isMqttConnected:i}}const sNe=Oc()(Md(kd(Pd((e,t)=>({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}},addNewfriend(n){console.log("addNewfriend",n)},addDevice(n){var r;if(n.type===gve){const i=t().devices.some(o=>o.device.uid===n.device.uid);e(i?{devices:[n,...t().devices.filter(o=>o.device.uid!==n.device.uid)]}:{devices:[n,...t().devices]}),((r=t().currentContact.device)==null?void 0:r.uid)===n.device.uid&&e({currentContact:n})}},addGroup(n){console.log("addGroup",n)},addChannel(n){console.log("addChannel",n)},addMember(n){if(n.type===kLe){const r=t().members.some(i=>i.member.uid===n.member.uid);e(r?{members:[n,...t().members.filter(i=>i.member.uid!==n.member.uid)]}:{members:[...t().members,n]})}},addFriend(n){console.log("addFriend",n)},setCurrentContact:n=>{e({currentContact:n})},setMemberSelf:n=>{e({memberSelf:n})},resetContactInfo(){e({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}}})}})),{name:xLe})));function lNe(){console.log("useElectronApi");const e=Ia(),t=xa(r=>r.userInfo),n=sNe(r=>r.addDevice);p.useEffect(()=>(console.log("useElectronApi useEffect"),ja?(window.electronAPI.loginSuccess(),window.electronAPI.onNewWindowCreated(r=>{console.log("Dashboard onNewWindowCreated content:",r),e("/enlarge",{state:{content:r}})}),window.electronAPI.onMulticastMessage(r=>{const i=JSON.parse(r);if(i.user.uid!==t.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",r);const o={type:gve,device:i.device,user:i.user,createdAt:i.createdAt};n(o)}}),window.electronAPI.onWebSocketMessage(r=>{console.log("Dashboard onWebSocketMessage content:",r)}),window.electronAPI.onHttpMessage(r=>{console.log("Dashboard onHttpMessage content:",r)}),window.electronAPI.onNotificationMessage(r=>{if(console.log("Dashboard onNotificationMessage content:",r),r.type===mLe){Wt.success("截图成功");const i=r.data;vr.emit(SLe,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),ja?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const IKt=Oc()(Md(kd(Pd((e,t)=>({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},setCurrentMember(n){e({currentMember:n})},setMemberSelf(n){e({memberSelf:n})},setMemberResult:n=>{e({memberResult:n})},resetMembers:()=>e({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}}})})),{name:wLe}))),cNe=Oc()(Md(kd(Pd((e,t)=>({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""},insertWorkgroup(n){e(r=>{r.workgroupResult.data.content.unshift(n)})},updateWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i[o]=n:console.warn(`Workgroup with uid ${n.uid} not found.`)})},deleteWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i.splice(o,1):console.warn(`Workgroup with uid ${n.uid} not found.`)})},setWorkgroupResult:n=>{e({workgroupResult:n})},setWorkgroupInfo(n){e({workgroupInfo:n})},deleteWorkgroupInfo(n){const r=t().workgroupResult.data.content,i=r.findIndex(o=>o.uid===n);i!==-1?e({workgroupResult:{...t().workgroupResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Workgroup not found in cache:",n),t().workgroupInfo.uid===n&&e({workgroupInfo:{uid:"",orgUid:""}})},resetWorkgroupInfo(){e({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""}})}})),{name:MLe}))),AKt=()=>{const e=$l(u=>u.deleteOrg),t=id(u=>u.resetThreads),n=Eh(u=>u.resetMessageList),r=IKt(u=>u.resetMembers),i=Fx(u=>u.removeAccessToken),o=xa(u=>u.resetUserInfo),a=sNe(u=>u.resetContactInfo),s=b0(u=>u.resetAgentInfo),l=cNe(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),i(),o(),a(),s(),l()}}};function uNe(){console.log("useEventBus");const{clearStorage:e}=AKt(),{doDisconnect:t}=bQ(),{setPingLoading:n}=p.useContext(As),r=p.useCallback(async()=>{try{const i=await JGt();console.log("logout result:",i.data),n(!1),t(),e(),q_t()}catch(i){console.log("logout error:",i)}},[]);return p.useEffect(()=>{console.log("useEventBus useEffect");const i=function(o){console.log("token过期,强制刷新登录",o),vr.off(Zm,i),r()};return vr.on(Zm,i),()=>{console.log("un - useEffect mqttDisconnect"),vr.off(Zm)}},[]),{doLogout:r}}const NKt=()=>{const e=vi(),{doLogout:t}=uNe(),{isLoggedIn:n,locale:r,changeLocale:i,mode:o,changeMode:a,handleUpdateAgentStatus:s}=p.useContext(As),{agentInfo:l}=b0(h=>({agentInfo:h.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:j.jsx(dY,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[u,d]=p.useState(c);p.useEffect(()=>{if(d(c),l.uid!==""&&o===kv){console.log("agentInfo changed",l);const h=[...c],m={key:"status",label:e.formatMessage({id:"menu.agent.status",defaultMessage:"Agent Status"}),type:"group",children:[{key:cee,icon:l.status===cee?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:uee,icon:l.status===uee?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:N8,icon:l.status===N8?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},g=h[0].children,v=g.findIndex(y=>y.key===m.key);v!==-1?g[v]=m:g.splice(0,0,m),h[0].children=g,d(h)}},[l,r,o]);const f=async h=>{console.log("click",h.key),h.key==="logout"?t():h.key==="zh-cn"||h.key==="zh-tw"||h.key==="en"?i(h.key):h.key===vy||h.key===kv||h.key===XN?(console.log("mode",h.key),a(h.key)):(console.log("status"),h.key===N8&&Ho.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(h.key))};return j.jsx(j.Fragment,{children:n?j.jsx(j.Fragment,{children:j.jsx(Bd,{inlineCollapsed:!0,onClick:f,style:{width:64,height:34},mode:"inline",items:u})}):j.jsx(j.Fragment,{})})};async function MKt(e){return Lr("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:wr}})}const dNe=()=>{const[e,t]=p.useState([]),n=new R2e;p.useEffect(()=>{(async()=>{try{const s=await n.getAllMessages();t(s)}catch(s){console.error("Error fetching messages from IndexedDB:",s)}})()},[]);const r=async a=>{try{await n.createMessage(a);const s=await n.getAllMessages();console.log("useIndexedDB createMessage newMessages: ",s),t(s)}catch(s){console.error("Error creating message in IndexedDB:",s)}},i=async(a,s)=>{try{await n.updateMessage(a,s);const l=await n.getAllMessages();t(l)}catch(l){console.error("Error updating message in IndexedDB:",l)}},o=async a=>{try{await n.deleteMessage(a);const s=await n.getAllMessages();t(s)}catch(s){console.error("Error deleting message in IndexedDB:",s)}};return p.useEffect(()=>{console.log("useIndexedDB useEffect");const a=function(s){console.log("useIndexedDB handleNewMessage",s),r(s)};return vr.on(uT,a),()=>{console.log("useIndexedDB useEffect return"),vr.off(uT,a)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:o}};async function fNe(){return Lr("/api/v1/user/profile",{method:"GET",params:{client:wr}})}async function pNe(e){return Lr("/api/v1/user/update",{method:"POST",data:{...e,client:wr}})}async function kKt(e){return Lr("/api/v1/user/change/password",{method:"POST",data:{...e,client:wr}})}async function hNe(e){return Lr("/api/v1/user/change/email",{method:"POST",data:{...e,client:wr}})}async function mNe(e){return Lr("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:wr}})}const PKt=()=>{const e=vi(),{locale:t,changeLocale:n}=p.useContext(As),r=[{key:"lang",icon:j.jsx(Gmt,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=o=>{const a=o.key;n(a)};return j.jsx(Bd,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})};var Cl=function(){return Cl=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?Da(iE,--_u):0,D_--,ua===10&&(D_=1,j3--),ua}function bd(){return ua=_u2||mz(ua)>3?"":" "}function WKt(e,t){for(;--t&&bd()&&!(ua<48||ua>102||ua>57&&ua<65||ua>70&&ua<97););return U3(e,QA()+(t<6&&gv()==32&&bd()==32))}function gz(e){for(;bd();)switch(ua){case e:return _u;case 34:case 39:e!==34&&e!==39&&gz(ua);break;case 40:e===41&&gz(e);break;case 92:bd();break}return _u}function qKt(e,t){for(;bd()&&e+ua!==57;)if(e+ua===84&&gv()===47)break;return"/*"+U3(t,_u-1)+"*"+_Q(e===47?e:bd())}function YKt(e){for(;!mz(gv());)bd();return U3(e,_u)}function KKt(e){return VKt(XA("",null,null,null,[""],e=zKt(e),0,[0],e))}function XA(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,m=0,g=1,v=1,y=1,b=0,_="",E=i,w=o,S=r,C=_;v;)switch(m=b,b=bd()){case 40:if(m!=108&&Da(C,d-1)==58){KA(C+=kr(ZL(b),"&","&\f"),"&\f",bNe(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:C+=ZL(b);break;case 9:case 10:case 13:case 32:C+=GKt(m);break;case 92:C+=WKt(QA()-1,7);continue;case 47:switch(gv()){case 42:case 47:BC(QKt(qKt(bd(),QA()),t,n,l),l);break;default:C+="/"}break;case 123*g:s[c++]=ff(C)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:y==-1&&(C=kr(C,/\f/g,"")),h>0&&ff(C)-d&&BC(h>32?Ace(C+";",r,n,d-1,l):Ace(kr(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(BC(S=Ice(C,t,n,c,u,i,s,_,E=[],w=[],d,o),o),b===123)if(u===0)XA(C,t,S,S,E,o,d,s,w);else switch(f===99&&Da(C,3)===110?100:f){case 100:case 108:case 109:case 115:XA(e,S,S,r&&BC(Ice(e,S,S,0,0,i,s,_,i,E=[],d,w),w),i,w,d,s,r?E:w);break;default:XA(C,S,S,S,[""],w,0,s,w)}}c=u=h=0,g=y=1,_=C="",d=a;break;case 58:d=1+ff(C),h=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&UKt()==125)continue}switch(C+=_Q(b),b*g){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(ff(C)-1)*y,y=1;break;case 64:gv()===45&&(C+=ZL(bd())),f=gv(),u=d=ff(_=C+=YKt(QA())),b++;break;case 45:m===45&&ff(C)==2&&(g=0)}}return o}function Ice(e,t,n,r,i,o,a,s,l,c,u,d){for(var f=i-1,h=i===0?o:[""],m=_Ne(h),g=0,v=0,y=0;g0?h[b]+" "+_:kr(_,/&\f/g,h[b])))&&(l[y++]=E);return H3(e,t,n,i===0?B3:s,l,c,u,d)}function QKt(e,t,n,r){return H3(e,t,n,gNe,_Q(HKt()),P_(e,2,-2),0,r)}function Ace(e,t,n,r,i){return H3(e,t,n,yQ,P_(e,0,r),P_(e,r+1,-1),r,i)}function ENe(e,t,n){switch(BKt(e,t)){case 5103:return _i+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _i+e+e;case 4789:return _w+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _i+e+_w+e+no+e+e;case 5936:switch(Da(e,t+11)){case 114:return _i+e+no+kr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _i+e+no+kr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _i+e+no+kr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return _i+e+no+e+e;case 6165:return _i+e+no+"flex-"+e+e;case 5187:return _i+e+kr(e,/(\w+).+(:[^]+)/,_i+"box-$1$2"+no+"flex-$1$2")+e;case 5443:return _i+e+no+"flex-item-"+kr(e,/flex-|-self/g,"")+(Ap(e,/flex-|baseline/)?"":no+"grid-row-"+kr(e,/flex-|-self/g,""))+e;case 4675:return _i+e+no+"flex-line-pack"+kr(e,/align-content|flex-|-self/g,"")+e;case 5548:return _i+e+no+kr(e,"shrink","negative")+e;case 5292:return _i+e+no+kr(e,"basis","preferred-size")+e;case 6060:return _i+"box-"+kr(e,"-grow","")+_i+e+no+kr(e,"grow","positive")+e;case 4554:return _i+kr(e,/([^-])(transform)/g,"$1"+_i+"$2")+e;case 6187:return kr(kr(kr(e,/(zoom-|grab)/,_i+"$1"),/(image-set)/,_i+"$1"),e,"")+e;case 5495:case 3959:return kr(e,/(image-set\([^]*)/,_i+"$1$`$1");case 4968:return kr(kr(e,/(.+:)(flex-)?(.*)/,_i+"box-pack:$3"+no+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_i+e+e;case 4200:if(!Ap(e,/flex-|baseline/))return no+"grid-column-align"+P_(e,t)+e;break;case 2592:case 3360:return no+kr(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Ap(r.props,/grid-\w+-end/)})?~KA(e+(n=n[t].value),"span",0)?e:no+kr(e,"-start","")+e+no+"grid-row-span:"+(~KA(n,"span",0)?Ap(n,/\d+/):+Ap(n,/\d+/)-+Ap(e,/\d+/))+";":no+kr(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Ap(r.props,/grid-\w+-start/)})?e:no+kr(kr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return kr(e,/(.+)-inline(.+)/,_i+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ff(e)-1-t>6)switch(Da(e,t+1)){case 109:if(Da(e,t+4)!==45)break;case 102:return kr(e,/(.+:)(.+)-([^]+)/,"$1"+_i+"$2-$3$1"+_w+(Da(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~KA(e,"stretch",0)?ENe(kr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return kr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,s,l,c){return no+i+":"+o+c+(a?no+i+"-span:"+(s?l:+l-+o)+c:"")+e});case 4949:if(Da(e,t+6)===121)return kr(e,":",":"+_i)+e;break;case 6444:switch(Da(e,Da(e,14)===45?18:11)){case 120:return kr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_i+(Da(e,14)===45?"inline-":"")+"box$3$1"+_i+"$2$3$1"+no+"$2box$3")+e;case 100:return kr(e,":",":"+no)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return kr(e,"scroll-","scroll-snap-")+e}return e}function Ik(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case yQ:e.return=ENe(e.value,e.length,n);return;case vNe:return Ik([nm(e,{value:kr(e.value,"@","@"+_i)})],r);case B3:if(e.length)return jKt(n=e.props,function(i){switch(Ap(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":db(nm(e,{props:[kr(i,/:(read-\w+)/,":"+_w+"$1")]})),db(nm(e,{props:[i]})),hz(e,{props:Rce(n,r)});break;case"::placeholder":db(nm(e,{props:[kr(i,/:(plac\w+)/,":"+_i+"input-$1")]})),db(nm(e,{props:[kr(i,/:(plac\w+)/,":"+_w+"$1")]})),db(nm(e,{props:[kr(i,/:(plac\w+)/,no+"input-$1")]})),db(nm(e,{props:[i]})),hz(e,{props:Rce(n,r)});break}return""})}}var tQt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ec={npm_package_dependencies_emoji_mart:"^5.6.0",npm_package_dependencies_use_debounce:"^10.0.1",ELECTRON_MIRROR:"http://npm.taobao.org/mirrors/electron/",NVM_INC:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/include/node",npm_package_devDependencies_prettier:"3.2.5",npm_package_devDependencies_electron_builder:"24.13.3",npm_package_scripts_build_mac_dmg:"tsc && vite build --mode prod && electron-builder --mac --config electron-builder-mac-dmg.yml",npm_package_dependencies_ts_protoc_gen:"^0.15.0",TERM_PROGRAM:"vscode",rvm_bin_path:"/Users/ningjinpeng/.rvm/bin",npm_package_dependencies__bytemd_plugin_breaks:"^1.21.0",npm_package_dependencies_cheerio:"^1.0.0",NODE:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",npm_config_version_git_tag:"true",npm_package_homepage:"https://github.com/bytedesk/bytedesk#readme",npm_package_scripts_release_mac:"sh cicd/scripts/build-upload-mac.sh",npm_package_dependencies_axios:"^1.6.5",npm_package_dependencies_moment:"^2.30.1",npm_package_devDependencies_typescript:"^5.1.6",npm_package_devDependencies_vite_plugin_pwa:"^0.20.1",PYENV_ROOT:"/Users/ningjinpeng/.pyenv",NVM_CD_FLAGS:"-q",GEM_HOME:"/Users/ningjinpeng/.gem/ruby",INIT_CWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase",npm_package_scripts_build_mac_mas:"tsc && vite build --mode prod && electron-builder --mac --config electron-builder-mac-mas.yml",npm_package_devDependencies_jest:"^29.7.0",npm_package_devDependencies_vite:"^5.0.10",TERM:"xterm-256color",SHELL:"/bin/zsh",npm_config_shamefully_hoist:"true",npm_package_dependencies__emotion_styled:"11.11.5",npm_package_dependencies_react_infinite_scroll_component:"^6.1.0",HOMEBREW_BOTTLE_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles",HOMEBREW_API_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api",npm_package_dependencies__ant_design_pro_provider:"^2.15.2",TMPDIR:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/",HOMEBREW_REPOSITORY:"/opt/homebrew",npm_config_init_license:"MIT",npm_package_dependencies__ant_design_x:"^1.0.5",npm_package_dependencies__langchain_community:"^0.2.28",npm_package_dependencies_socket_io:"^4.7.5",npm_package_locales_en_productName:"ByteDesk",npm_package_dependencies_debug:"^4.3.7",npm_package_dependencies_dompurify:"^3.0.9",npm_package_devDependencies__vitejs_plugin_react:"^4.0.4",TERM_PROGRAM_VERSION:"1.98.2",npm_package_scripts_dev:"vite --host --mode dev",npm_package_dependencies_express_rate_limit:"^7.2.0",npm_package_dependencies_uuid:"^9.0.1",ZDOTDIR:"/Users/ningjinpeng",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",MallocNanoZone:"0",npm_package_scripts_build_linux:"tsc && vite build --mode prod && electron-builder --linux --config electron-builder-linux.yml",npm_config_registry:"https://registry.npmmirror.com/",npm_package_private:"true",npm_package_repository_url:"git+https://github.com/bytedesk/bytedesk.git",npm_package_dependencies__ant_design_icons:"^5.6.1",npm_package_dependencies__tanstack_react_query_devtools:"^5.21.0",npm_package_dependencies_bowser:"^2.11.0",npm_package_dependencies_react_dom:"^18.2.0",PNPM_HOME:"/Users/ningjinpeng/Library/pnpm",npm_package_dependencies__ant_design_cssinjs:"^1.22.0",npm_package_dependencies_dayjs:"^1.11.11",npm_package_dependencies_react_dropzone:"^14.2.3",npm_package_readmeFilename:"README.md",OBJC_DISABLE_INITIALIZE_FORK_SAFETY:"YES",npm_package_description:"对话即服务",npm_package_debug_env_VITE_DEV_SERVER_URL:"http://127.0.0.1:9005/",npm_package_devDependencies__testing_library_react:"^14.2.2",npm_package_devDependencies_ajv:"^8.17.1",USER:"ningjinpeng",NVM_DIR:"/Users/ningjinpeng/.nvm",npm_package_license:"GNU",npm_package_devDependencies__types_react:"^18.2.20",npm_package_dependencies_intersection_observer:"^0.12.2",npm_package_dependencies_react_helmet_async:"^2.0.4",COMMAND_MODE:"unix2003",npm_package_scripts_release_open:"sh cicd/scripts/build-open.sh",npm_package_dependencies_aieditor:"^1.0.13",npm_package_dependencies_bytemd:"^1.21.0",npm_package_scripts_release_mas:"sh cicd/scripts/build-mac-mas.sh",npm_package_dependencies_xgplayer:"^3.0.13",rvm_path:"/Users/ningjinpeng/.rvm",HOMEBREW_INSTALL_FROM_API:"1",HOMEBREW_CORE_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",FLUTTER_ROOT:"/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/flutter",npm_package_dependencies_react_virtuoso:"^4.7.1",npm_package_dependencies_zustand:"^4.4.7",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.yibVKLTnXr/Listeners",npm_package_dependencies__bytemd_plugin_gemoji:"^1.21.0",npm_package_dependencies_highlight_js:"^11.11.1",npm_package_devDependencies__types_express:"^4.17.21",npm_package_devDependencies__types_jest:"^29.5.12",npm_package_devDependencies_less:"^4.2.0",npm_package_devDependencies_postcss:"^8.4.31",VSCODE_PROFILE_INITIALIZED:"1",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",PUB_HOSTED_URL:"https://pub.flutter-io.cn",npm_package_scripts_e2e:"playwright test",npm_execpath:"/usr/local/lib/node_modules/yarn/bin/yarn.js",npm_package_scripts_build_open:"tsc && vite build --mode open",npm_package_dependencies__bytemd_react:"^1.21.0",npm_package_author_name:"weiyuai.cn",npm_package_dependencies_react_use:"^17.5.0",npm_package_devDependencies__electron_osx_sign:"^1.3.1",npm_package_devDependencies__types_react_dom:"^18.2.7",npm_package_dependencies__bytemd_plugin_gfm:"^1.21.0",npm_package_dependencies_peerjs:"^1.5.2",npm_package_devDependencies_styled_components:"^6.1.13",rvm_prefix:"/Users/ningjinpeng",npm_package_scripts_build_web:"tsc && vite build --mode web",npm_package_dependencies__emoji_mart_react:"^1.1.1",npm_package_dependencies_immer:"^10.1.1",npm_config_argv:'{"remain":[],"cooked":["run","build:open"],"original":["build:open"]}',PATH:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/yarn--1742863227464-0.9857400098158955:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase/node_modules/.bin:/Users/ningjinpeng/.config/yarn/link/node_modules/.bin:/Users/ningjinpeng/.yarn/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/usr/local/bin",npm_package_scripts_release_web:"sh cicd/scripts/build-upload.sh",npm_package_dependencies__ant_design_use_emotion_css:"1.0.4",npm_package_dependencies_electron_context_menu:"^3.6.1",npm_config_auto_install_peers:"true",npm_package_dependencies_react_contexify:"^6.0.0",npm_package_dependencies_systeminformation:"^5.22.3",npm_package_devDependencies_ts_jest:"^29.1.2",USER_ZDOTDIR:"/Users/ningjinpeng",__CFBundleIdentifier:"com.microsoft.VSCode",npm_package_dependencies_electron_screenshots:"^0.5.26",npm_package_devDependencies_tailwindcss:"^3.3.3",PWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase",npm_config_nodeLinker:"node-modules",npm_package_bugs_url:"https://github.com/bytedesk/bytedesk/issues",npm_package_scripts_preview:"vite preview --host",npm_package_dependencies__bytemd_plugin_frontmatter:"^1.21.0",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home",FLUTTER_STORAGE_BASE_URL:"https://storage.flutter-io.cn",npm_package_dependencies_date_fns:"^3.3.1",npm_package_dependencies_ua_parser_js:"^1.0.37",npm_lifecycle_event:"build:open",npm_package_name:"notebase",npm_package_repository_type:"git",npm_package_dependencies_react_intl:"^6.8.9",LANG:"zh_CN.UTF-8",LOCAL_GIT_DIRECTORY:"/Applications/GitHub Desktop.app/Contents/Resources/app/git",npm_package_scripts_build_win:"tsc && vite build --mode prod && electron-builder --win --config electron-builder-windows.yml",npm_package_scripts_pree2e:"vite build --mode=test",npm_package_dependencies_file_saver:"^2.0.5",npm_package_devDependencies_vite_plugin_electron_renderer:"^0.14.5",npm_config_version_commit_hooks:"true",npm_package_scripts_start:"vite --host --mode dev",npm_package_scripts_build:"tsc && vite build --mode prod && electron-builder",npm_package_scripts_release_win:"sh cicd/scripts/build-upload-win.sh",NODE_PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/bin/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/node_modules",npm_package_dependencies_menubar:"^9.4.0",npm_package_dependencies_react_router_dom:"^6.21.2",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XPC_FLAGS:"0x0",npm_config_bin_links:"true",npm_package_dependencies__bytemd_plugin_highlight:"^1.21.0",npm_package_dependencies__types_ua_parser_js:"^0.7.39",npm_config_electron_mirror:"https://npmmirror.com/mirrors/electron/",npm_package_engines_node:">=20",npm_package_main:"dist-electron/main/index.js",npm_package_dependencies__tanstack_react_query:"^5.20.5",npm_package_dependencies_dexie:"^4.0.7",npm_package_version:"1.0.2",npm_package_dependencies__emotion_react:"11.11.4",npm_package_dependencies_node_json_db:"^2.3.1",npm_package_dependencies_winston:"^3.11.0",npm_package_dependencies_ws:"^8.16.0",XPC_SERVICE_NAME:"0",npm_package_devDependencies_autoprefixer:"^10.4.16",VSCODE_INJECTION:"1",rvm_version:"1.29.12 (latest)",npm_package_type:"module",SHLVL:"4",PYENV_SHELL:"zsh",HOME:"/Users/ningjinpeng",npm_package_dependencies_react_markdown:"^9.0.1",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",HOMEBREW_BREW_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",npm_config_strict_ssl:"true",npm_config_save_prefix:"^",npm_package_dependencies_dotenv:"^16.4.5",npm_package_dependencies_mitt:"^3.0.1",npm_package_dependencies_openai:"^4.56.0",npm_config_version_git_message:"v%s",npm_package_dependencies__emoji_mart_data:"^1.2.1",npm_package_devDependencies_cross_env:"^7.0.3",HOMEBREW_PREFIX:"/opt/homebrew",npm_package_dependencies__bytemd_plugin_mermaid:"^1.21.0",npm_package_dependencies_react_photo_view:"^1.2.6",npm_package_devDependencies__types_web_bluetooth:"^0.0.20",npm_package_dependencies_unique_names_generator:"^4.7.1",YARN_WRAP_OUTPUT:"false",LOGNAME:"ningjinpeng",npm_package_locales_zh_CN_productName:"微语",npm_lifecycle_script:"tsc && vite build --mode open",npm_package_author_email:"270580156@qq.com",npm_package_dependencies_lodash_es:"^4.17.21",VSCODE_GIT_IPC_HANDLE:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/vscode-git-7f4d23a467.sock",npm_package_scripts_release_linux:"sh cicd/scripts/build-upload-linux.sh",npm_package_dependencies_react:"^18.2.0",npm_package_dependencies_mqtt:"^5.2.0",NVM_BIN:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin",BUN_INSTALL:"/Users/ningjinpeng/.bun",npm_config_user_agent:"yarn/1.22.17 npm/? node/v20.0.0 darwin arm64",npm_config_ignore_scripts:"",npm_config_version_git_sign:"",npm_package_dependencies_node_cmd:"^5.0.0",npm_package_dependencies_text_search_engine:"^1.1.0",npm_package_devDependencies__electron_notarize:"^2.5.0",npm_package_dependencies_socket_io_client:"^4.7.5",npm_package_devDependencies__playwright_test:"^1.37.1",npm_package_devDependencies__types_node:"^20.12.3",VSCODE_GIT_ASKPASS_NODE:"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)",GIT_ASKPASS:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",npm_package_dependencies_express:"^4.18.3",npm_config_ignore_optional:"",npm_config_init_version:"1.0.0",npm_package_scripts_build_quanjing:"tsc && vite build --mode quanjing",npm_package_dependencies_antd:"^5.23.2",npm_package_dependencies_langchain:"^0.2.16",npm_package_dependencies__ant_design_compatible:"^5.1.4",npm_package_dependencies_antd_img_crop:"^4.23.0",npm_package_dependencies_electron_updater:"^6.1.1",npm_package_devDependencies_vite_plugin_electron:"^0.28.0",npm_package_dependencies__dicebear_collection:"^8.0.1",npm_package_dependencies__types_file_saver:"^2.0.7",npm_package_devDependencies_electron:"^33.2.0",npm_package_locales_zh_CN_description:"对话即服务",npm_config_version_tag_prefix:"v",npm_package_dependencies__ant_design_pro_components:"^2.6.28",npm_package_dependencies__dicebear_core:"^8.0.1",npm_package_dependencies_dexie_react_hooks:"^1.1.7",npm_package_devDependencies__testing_library_jest_dom:"^6.4.2",npm_package_locales_en_description:"Chat as a Service",npm_node_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",COLORTERM:"truecolor",NODE_ENV:"production"},$_=typeof process<"u"&&ec!==void 0&&(ec.REACT_APP_SC_ATTR||ec.SC_ATTR)||"data-styled",CNe="active",wNe="data-styled-version",z3="6.1.13",SQ=`/*!sc*/ + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var R3=xr.default;Object.defineProperty(vd,"__esModule",{value:!0});vd.default=Lqt;vd.unitless=vd.ignore=vd.getComputedToken=void 0;var Aqt=R3(p),Nqt=Dg,Mqt=R3(T3),gce=Mf,kqt=R3(jf),GAe=R3(rQ),vce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,o=vce(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=(0,GAe.default)(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=vce(c,["theme"]);let f=d;u&&(f=iQ(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=f}),a};vd.getComputedToken=iQ;function Lqt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=Aqt.default.useContext(gce.DesignTokenContext),o=`${Mqt.default}-${t||""}`,a=n||gce.defaultTheme,[s,l,c]=(0,Nqt.useCacheToken)(a,[kqt.default,e],{salt:o,override:r,getComputedToken:iQ,formatToken:GAe.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Pqt,ignore:Dqt,preserve:$qt}});return[a,c,t?l:"",s,i]}var og={},xo={};Object.defineProperty(xo,"__esModule",{value:!0});xo.textEllipsis=xo.resetIcon=xo.resetComponent=xo.operationUnit=xo.genLinkStyle=xo.genIconStyle=xo.genFocusStyle=xo.genFocusOutline=xo.genCommonStyle=xo.clearFix=void 0;var Fqt=Dg;xo.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const Bqt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}};xo.resetComponent=Bqt;const WAe=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});xo.resetIcon=WAe;const jqt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});xo.clearFix=jqt;const Hqt=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}});xo.genLinkStyle=Hqt;const Uqt=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}};xo.genCommonStyle=Uqt;const qAe=(e,t)=>({outline:`${(0,Fqt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});xo.genFocusOutline=qAe;const YAe=(e,t)=>({"&:focus-visible":Object.assign({},qAe(e,t))});xo.genFocusStyle=YAe;const zqt=e=>({[`.${e}`]:Object.assign(Object.assign({},WAe()),{[`.${e} .${e}-icon`]:{display:"block"}})});xo.genIconStyle=zqt;const Vqt=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},YAe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});xo.operationUnit=Vqt;var Gqt=oa.default;Object.defineProperty(og,"__esModule",{value:!0});og.genSubStyleComponent=og.genStyleHooks=og.genComponentStyleHook=void 0;var bce=p,Wqt=zAe,QL=sc,XL=xo,yce=Gqt(vd);const{genStyleHooks:qqt,genComponentStyleHook:Yqt,genSubStyleComponent:Kqt}=(0,Wqt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,bce.useContext)(QL.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,yce.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,bce.useContext)(QL.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,XL.genLinkStyle)(e)},(0,XL.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:QL.defaultIconPrefixCls)]},getCommonStyle:XL.genCommonStyle,getCompUnitless:()=>yce.unitless});og.genSubStyleComponent=Kqt;og.genComponentStyleHook=Yqt;og.genStyleHooks=qqt;var oQ={};Object.defineProperty(oQ,"__esModule",{value:!0});oQ.default=Xqt;var Qqt=nQ;function Xqt(e,t){return Qqt.PresetColors.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}var I3={},Zqt=xr.default;Object.defineProperty(I3,"__esModule",{value:!0});I3.default=void 0;var Jqt=Dg,eYt=xo,tYt=Zqt(vd);const nYt=(e,t)=>{const[n,r]=(0,tYt.default)();return(0,Jqt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,eYt.genIconStyle)(e)])};I3.default=nYt;(function(e){var t=xr.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DesignTokenContext",{enumerable:!0,get:function(){return u.DesignTokenContext}}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return i.PresetColors}}),Object.defineProperty(e,"calc",{enumerable:!0,get:function(){return r.genCalc}}),Object.defineProperty(e,"defaultConfig",{enumerable:!0,get:function(){return u.defaultConfig}}),Object.defineProperty(e,"genComponentStyleHook",{enumerable:!0,get:function(){return s.genComponentStyleHook}}),Object.defineProperty(e,"genPresetColor",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"genStyleHooks",{enumerable:!0,get:function(){return s.genStyleHooks}}),Object.defineProperty(e,"genSubStyleComponent",{enumerable:!0,get:function(){return s.genSubStyleComponent}}),Object.defineProperty(e,"getLineHeight",{enumerable:!0,get:function(){return o.getLineHeight}}),Object.defineProperty(e,"mergeToken",{enumerable:!0,get:function(){return r.mergeToken}}),Object.defineProperty(e,"statistic",{enumerable:!0,get:function(){return r.statistic}}),Object.defineProperty(e,"statisticToken",{enumerable:!0,get:function(){return r.statisticToken}}),Object.defineProperty(e,"useResetIconStyle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useStyleRegister",{enumerable:!0,get:function(){return n.useStyleRegister}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return a.default}});var n=Dg,r=zAe,i=nQ,o=eO,a=t(vd),s=og,l=t(oQ),c=t(I3),u=Mf})(nE);var A3={},rYt=oa.default;Object.defineProperty(A3,"__esModule",{value:!0});A3.default=void 0;var iYt=rYt(p);const oYt=Object.assign({},iYt),{useId:_ce}=oYt,aYt=()=>"",sYt=typeof _ce>"u"?aYt:_ce;A3.default=sYt;var aQ=xr.default;Object.defineProperty(tQ,"__esModule",{value:!0});tQ.default=fYt;var lYt=aQ(p3),cYt=aQ(C3),uYt=su,Sce=nE,dYt=aQ(A3);function fYt(e,t,n){var r;(0,uYt.devUseWarning)("ConfigProvider");const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},Sce.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Sce.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=(0,dYt.default)();return(0,lYt.default)(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(f=>{c[f]=Object.assign(Object.assign({},c[f]),e.components[f])});const u=`css-var-${a.replace(/:/g,"")}`,d=((s=i.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:d})},[i,o],(s,l)=>s.some((c,u)=>{const d=l[u];return!(0,cYt.default)(c,d,!0)}))}var sQ={};const pYt=Nx(DYe);var hYt=oa.default;Object.defineProperty(sQ,"__esModule",{value:!0});sQ.default=vYt;var Ece=hYt(p),mYt=pYt,gYt=nE;function vYt(e){const{children:t}=e,[,n]=(0,gYt.useToken)(),{motion:r}=n,i=Ece.useRef(!1);return i.current=i.current||r===!1,i.current?Ece.createElement(mYt.Provider,{motion:r},t):t}var N3={},bYt=oa.default;Object.defineProperty(N3,"__esModule",{value:!0});N3.default=void 0;bYt(p);N3.default=()=>null;var KAe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=nE})(KAe);(function(e){"use client";var t=xr.default,n=oa.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return g.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return g.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return g.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return g.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return g.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var r=n(p),i=Dg,o=t(JS),a=t(p3),s=h3,l=n(su),c=t(m3),u=n(DAe),d=t(tE),f=t(u0),h=Mf,m=t(jf),g=sc,v=S3,y=Xv,b=t(E3),_=t(tQ),E=t(sQ),w=t(N3),S=n(Zv),C=t(KAe),T=function(q,H){var z={};for(var J in q)Object.prototype.hasOwnProperty.call(q,J)&&H.indexOf(J)<0&&(z[J]=q[J]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,J=Object.getOwnPropertySymbols(q);teH.endsWith("Color"))}const I=q=>{const{prefixCls:H,iconPrefixCls:z,theme:J,holderRender:te}=q;H!==void 0&&(O=H),z!==void 0&&(N=z),"holderRender"in q&&(M=te),J&&(B(J)?(0,v.registerTheme)(F(),J):A=J)},k=()=>({getPrefixCls:(q,H)=>H||(q?`${F()}-${q}`:F()),getIconPrefixCls:P,getRootPrefixCls:()=>O||F(),getTheme:()=>A,holderRender:M});e.globalConfig=k;const U=q=>{const{children:H,csp:z,autoInsertSpaceInButton:J,alert:te,anchor:ae,form:K,locale:Q,componentSize:oe,direction:ge,space:fe,splitter:ue,virtual:le,dropdownMatchSelectWidth:ve,popupMatchSelectWidth:ne,popupOverflow:pe,legacyLocale:be,parentContext:Re,iconPrefixCls:Se,theme:Ce,componentDisabled:ye,segmented:he,statistic:_e,spin:Oe,calendar:De,carousel:Y,cascader:$,collapse:V,typography:ie,checkbox:me,descriptions:se,divider:Be,drawer:Ve,skeleton:re,steps:Me,image:je,layout:ke,list:Ge,mentions:Ue,modal:qe,progress:At,result:at,slider:pt,breadcrumb:Ct,menu:bt,pagination:Vt,input:Tt,textArea:Ot,empty:Ut,badge:ze,radio:Ye,rate:He,switch:Ze,transfer:yt,avatar:_t,message:Bt,tag:Nt,table:vt,card:ht,tabs:kt,timeline:Et,timePicker:Yt,upload:ct,notification:Rt,tree:Ht,colorPicker:wt,datePicker:St,rangePicker:jt,flex:Pe,wave:Pt,dropdown:rt,warning:Mt,tour:It,tooltip:xn,popover:Hn,popconfirm:R,floatButtonGroup:L,variant:Z,inputNumber:xe,treeSelect:Le}=q,et=r.useCallback((on,an)=>{const{prefixCls:Gn}=q;if(an)return an;const _r=Gn||Re.getPrefixCls("");return on?`${_r}-${on}`:_r},[Re.getPrefixCls,q.prefixCls]),Lt=Se||Re.iconPrefixCls||g.defaultIconPrefixCls,pn=z||Re.csp;(0,C.default)(Lt,pn);const Fn=(0,_.default)(Ce,Re.theme,{prefixCls:et("")}),Xr={csp:pn,autoInsertSpaceInButton:J,alert:te,anchor:ae,locale:Q||be,direction:ge,space:fe,splitter:ue,virtual:le,popupMatchSelectWidth:ne??ve,popupOverflow:pe,getPrefixCls:et,iconPrefixCls:Lt,theme:Fn,segmented:he,statistic:_e,spin:Oe,calendar:De,carousel:Y,cascader:$,collapse:V,typography:ie,checkbox:me,descriptions:se,divider:Be,drawer:Ve,skeleton:re,steps:Me,image:je,input:Tt,textArea:Ot,layout:ke,list:Ge,mentions:Ue,modal:qe,progress:At,result:at,slider:pt,breadcrumb:Ct,menu:bt,pagination:Vt,empty:Ut,badge:ze,radio:Ye,rate:He,switch:Ze,transfer:yt,avatar:_t,message:Bt,tag:Nt,table:vt,card:ht,tabs:kt,timeline:Et,timePicker:Yt,upload:ct,notification:Rt,tree:Ht,colorPicker:wt,datePicker:St,rangePicker:jt,flex:Pe,wave:Pt,dropdown:rt,warning:Mt,tour:It,tooltip:xn,popover:Hn,popconfirm:R,floatButtonGroup:L,variant:Z,inputNumber:xe,treeSelect:Le},$r=Object.assign({},Re);Object.keys(Xr).forEach(on=>{Xr[on]!==void 0&&($r[on]=Xr[on])}),x.forEach(on=>{const an=q[on];an&&($r[on]=an)}),typeof J<"u"&&($r.button=Object.assign({autoInsertSpace:J},$r.button));const bi=(0,a.default)(()=>$r,$r,(on,an)=>{const Gn=Object.keys(on),_r=Object.keys(an);return Gn.length!==_r.length||Gn.some(oi=>on[oi]!==an[oi])}),Sr=r.useMemo(()=>({prefixCls:Lt,csp:pn}),[Lt,pn]);let ln=r.createElement(r.Fragment,null,r.createElement(w.default,{dropdownMatchSelectWidth:ve}),H);const _n=r.useMemo(()=>{var on,an,Gn,_r;return(0,s.merge)(((on=f.default.Form)===null||on===void 0?void 0:on.defaultValidateMessages)||{},((Gn=(an=bi.locale)===null||an===void 0?void 0:an.Form)===null||Gn===void 0?void 0:Gn.defaultValidateMessages)||{},((_r=bi.form)===null||_r===void 0?void 0:_r.validateMessages)||{},(K==null?void 0:K.validateMessages)||{})},[bi,K==null?void 0:K.validateMessages]);Object.keys(_n).length>0&&(ln=r.createElement(c.default.Provider,{value:_n},ln)),Q&&(ln=r.createElement(u.default,{locale:Q,_ANT_MARK__:u.ANT_MARK},ln)),(Lt||pn)&&(ln=r.createElement(o.default.Provider,{value:Sr},ln)),oe&&(ln=r.createElement(S.SizeContextProvider,{size:oe},ln)),ln=r.createElement(E.default,null,ln);const Er=r.useMemo(()=>{const on=Fn||{},{algorithm:an,token:Gn,components:_r,cssVar:oi}=on,Zi=T(on,["algorithm","token","components","cssVar"]),nr=an&&(!Array.isArray(an)||an.length>0)?(0,i.createTheme)(an):h.defaultTheme,Fi={};Object.entries(_r||{}).forEach(dn=>{let[wn,Mn]=dn;const Qn=Object.assign({},Mn);"algorithm"in Qn&&(Qn.algorithm===!0?Qn.theme=nr:(Array.isArray(Qn.algorithm)||typeof Qn.algorithm=="function")&&(Qn.theme=(0,i.createTheme)(Qn.algorithm)),delete Qn.algorithm),Fi[wn]=Qn});const Zn=Object.assign(Object.assign({},m.default),Gn);return Object.assign(Object.assign({},Zi),{theme:nr,token:Zn,components:Fi,override:Object.assign({override:Zn},Fi),cssVar:oi})},[Fn]);return Ce&&(ln=r.createElement(h.DesignTokenContext.Provider,{value:Er},ln)),bi.warning&&(ln=r.createElement(l.WarningContext.Provider,{value:bi.warning},ln)),ye!==void 0&&(ln=r.createElement(y.DisabledContextProvider,{disabled:ye},ln)),r.createElement(g.ConfigContext.Provider,{value:bi},ln)},D=q=>{const H=r.useContext(g.ConfigContext),z=r.useContext(d.default);return r.createElement(U,Object.assign({parentContext:H,legacyLocale:z},q))};D.ConfigContext=g.ConfigContext,D.SizeContext=S.default,D.config=I,D.useConfig=b.default,Object.defineProperty(D,"SizeContext",{get:()=>S.default}),e.default=D})(WK);var nO={},yYt=oa.default;Object.defineProperty(nO,"__esModule",{value:!0});nO.LayoutContext=void 0;var _Yt=yYt(p);nO.LayoutContext=_Yt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var lQ={},cQ={},uQ={},SYt=xr.default;Object.defineProperty(uQ,"__esModule",{value:!0});uQ.default=xYt;var EYt=SYt(d0),CYt=Symbol.for("react.element"),wYt=Symbol.for("react.transitional.element"),TYt=Symbol.for("react.fragment");function xYt(e){return e&&(0,EYt.default)(e)==="object"&&(e.$$typeof===CYt||e.$$typeof===wYt)&&e.type===TYt}var QAe=xr.default;Object.defineProperty(cQ,"__esModule",{value:!0});cQ.default=cz;var OYt=QAe(uQ),RYt=QAe(p);function cz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return RYt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(cz(r)):(0,OYt.default)(r)&&r.props?n=n.concat(cz(r.props.children,t)):n.push(r))}),n}var k_={},uz={exports:{}},M3={},dQ={};Object.defineProperty(dQ,"__esModule",{value:!0});var IYt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};dQ.default=IYt;var AYt=oa.default,fQ=xr.default;Object.defineProperty(M3,"__esModule",{value:!0});M3.default=void 0;var NYt=fQ(VD),XAe=AYt(p),MYt=fQ(dQ),kYt=fQ(ZS),PYt=function(t,n){return XAe.createElement(kYt.default,(0,NYt.default)({},t,{ref:n,icon:MYt.default}))},DYt=XAe.forwardRef(PYt);M3.default=DYt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(M3);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(uz,uz.exports);var $Yt=uz.exports,dz={exports:{}},k3={},pQ={};Object.defineProperty(pQ,"__esModule",{value:!0});var LYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};pQ.default=LYt;var FYt=oa.default,hQ=xr.default;Object.defineProperty(k3,"__esModule",{value:!0});k3.default=void 0;var BYt=hQ(VD),ZAe=FYt(p),jYt=hQ(pQ),HYt=hQ(ZS),UYt=function(t,n){return ZAe.createElement(HYt.default,(0,BYt.default)({},t,{ref:n,icon:jYt.default}))},zYt=ZAe.forwardRef(UYt);k3.default=zYt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(k3);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(dz,dz.exports);var VYt=dz.exports,fz={exports:{}},P3={},mQ={};Object.defineProperty(mQ,"__esModule",{value:!0});var GYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};mQ.default=GYt;var WYt=oa.default,gQ=xr.default;Object.defineProperty(P3,"__esModule",{value:!0});P3.default=void 0;var qYt=gQ(VD),JAe=WYt(p),YYt=gQ(mQ),KYt=gQ(ZS),QYt=function(t,n){return JAe.createElement(KYt.default,(0,qYt.default)({},t,{ref:n,icon:YYt.default}))},XYt=JAe.forwardRef(QYt);P3.default=XYt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(P3);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(fz,fz.exports);var ZYt=fz.exports,D3={},Qp={};Object.defineProperty(Qp,"__esModule",{value:!0});Qp.prepareComponentToken=Qp.default=Qp.DEPRECATED_TOKENS=void 0;var JYt=Dg,eKt=nE;const tKt=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:a,color:s,lineHeight:(0,JYt.unit)(o),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},eNe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}};Qp.prepareComponentToken=eNe;const nKt=Qp.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Qp.default=(0,eKt.genStyleHooks)("Layout",e=>[tKt(e)],eNe,{deprecatedTokens:nKt});Object.defineProperty(D3,"__esModule",{value:!0});D3.default=void 0;var XE=Dg,Cce=Qp,rKt=nE;const iKt=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:h,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:(0,XE.unit)(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,XE.unit)(f)} ${(0,XE.unit)(f)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,XE.unit)(f)} 0 0 ${(0,XE.unit)(f)}`}}},"&-light":{background:h,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};D3.default=(0,rKt.genStyleHooks)(["Layout","Sider"],e=>[iKt(e)],Cce.prepareComponentToken,{deprecatedTokens:Cce.DEPRECATED_TOKENS});var rE=xr.default,oKt=oa.default;Object.defineProperty(k_,"__esModule",{value:!0});k_.default=k_.SiderContext=void 0;var _p=oKt(p),Zl=_p,aKt=rE($Yt),wce=rE(VYt),Tce=rE(ZYt),xce=rE(zP),sKt=rE(f3),lKt=WK,cKt=nO,uKt=rE(D3),dKt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i!Number.isNaN(Number.parseFloat(e))&&isFinite(e),pKt=k_.SiderContext=Zl.createContext({}),hKt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),mKt=Zl.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=dKt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,_p.useContext)(cKt.LayoutContext),[_,E]=(0,_p.useState)("collapsed"in e?e.collapsed:a),[w,S]=(0,_p.useState)(!1);(0,_p.useEffect)(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const C=(Q,oe)=>{"collapsed"in e||E(Q),g==null||g(Q,oe)},{getPrefixCls:T,direction:x}=(0,_p.useContext)(lKt.ConfigContext),O=T("layout-sider",n),[N,A,M]=(0,uKt.default)(O),F=(0,_p.useRef)(null);F.current=Q=>{S(Q.matches),v==null||v(Q.matches),_!==Q.matches&&C(Q.matches,"responsive")},(0,_p.useEffect)(()=>{function Q(ge){return F.current(ge)}let oe;if(typeof window<"u"){const{matchMedia:ge}=window;if(ge&&m&&m in Oce){oe=ge(`screen and (max-width: ${Oce[m]})`);try{oe.addEventListener("change",Q)}catch{oe.addListener(Q)}Q(oe)}}return()=>{try{oe==null||oe.removeEventListener("change",Q)}catch{oe==null||oe.removeListener(Q)}}},[m]),(0,_p.useEffect)(()=>{const Q=hKt("ant-sider-");return b.addSider(Q),()=>b.removeSider(Q)},[]);const P=()=>{C(!_,"clickTrigger")},B=(0,sKt.default)(y,["collapsed"]),I=_?f:d,k=fKt(I)?`${I}px`:String(I),U=parseFloat(String(f||0))===0?Zl.createElement("span",{onClick:P,className:(0,xce.default)(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:h},i||Zl.createElement(aKt.default,null)):null,D=x==="rtl"==!u,z={expanded:D?Zl.createElement(Tce.default,null):Zl.createElement(wce.default,null),collapsed:D?Zl.createElement(wce.default,null):Zl.createElement(Tce.default,null)}[_?"collapsed":"expanded"],J=i!==null?U||Zl.createElement("div",{className:`${O}-trigger`,onClick:P,style:{width:k}},i||z):null,te=Object.assign(Object.assign({},l),{flex:`0 0 ${k}`,maxWidth:k,minWidth:k,width:k}),ae=(0,xce.default)(O,`${O}-${s}`,{[`${O}-collapsed`]:!!_,[`${O}-has-trigger`]:c&&i!==null&&!U,[`${O}-below`]:!!w,[`${O}-zero-width`]:parseFloat(k)===0},r,A,M),K=Zl.useMemo(()=>({siderCollapsed:_}),[_]);return N(Zl.createElement(pKt.Provider,{value:K},Zl.createElement("aside",Object.assign({className:ae},B,{style:te,ref:t}),Zl.createElement("div",{className:`${O}-children`},o),c||w&&U?J:null)))});k_.default=mKt;var tNe=xr.default;Object.defineProperty(lQ,"__esModule",{value:!0});lQ.default=bKt;var gKt=tNe(cQ),vKt=tNe(k_);function bKt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,gKt.default)(t).some(i=>i.type===vKt.default)}var $3,L3,yKt=oa.default,rO=xr.default;Object.defineProperty(zp,"__esModule",{value:!0});zp.default=zp.Header=L3=zp.Footer=$3=zp.Content=void 0;var _Kt=rO(IAe),qc=yKt(p),nNe=rO(zP),SKt=rO(f3),pz=WK,EKt=nO,CKt=rO(lQ),rNe=rO(Qp),iNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iqc.forwardRef((a,s)=>qc.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const vQ=qc.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=iNe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=qc.useContext(pz.ConfigContext),l=s("layout",n),[c,u,d]=(0,rNe.default)(l),f=r?`${l}-${r}`:l;return c(qc.createElement(o,Object.assign({className:(0,nNe.default)(n||f,i,u,d),ref:t},a)))}),wKt=qc.forwardRef((e,t)=>{const{direction:n}=qc.useContext(pz.ConfigContext),[r,i]=qc.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,f=iNe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=(0,SKt.default)(f,["suffixCls"]),{getPrefixCls:m,layout:g}=qc.useContext(pz.ConfigContext),v=m("layout",o),y=(0,CKt.default)(r,l,c),[b,_,E]=(0,rNe.default)(v),w=(0,nNe.default)(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,a,s,_,E),S=qc.useMemo(()=>({siderHook:{addSider:C=>{i(T=>[].concat((0,_Kt.default)(T),[C]))},removeSider:C=>{i(T=>T.filter(x=>x!==C))}}}),[]);return b(qc.createElement(EKt.LayoutContext.Provider,{value:S},qc.createElement(u,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},g==null?void 0:g.style),d)},h),l)))}),TKt=F3({tagName:"div",displayName:"Layout"})(wKt);zp.Header=F3({suffixCls:"header",tagName:"header",displayName:"Header"})(vQ);L3=zp.Footer=F3({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(vQ);$3=zp.Content=F3({suffixCls:"content",tagName:"main",displayName:"Content"})(vQ);zp.default=TKt;function iO(){const{isDarkMode:e}=FG(),{token:t}=_s.useToken(),n={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},r=260,i={borderBottom:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},o={borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},a={minHeight:120,overflowY:"auto"},s={height:20,fontSize:12,backgroundColor:t.colorBgContainer,color:t.colorText};return{leftSiderStyle:n,leftSiderWidth:r,headerStyle:i,rightSiderStyle:o,contentStyle:a,footerStyle:s}}const{Header:xKt,Sider:OKt,Content:RKt}=uo,oNe=()=>{const e=vi();p.useContext(As);const t=Ia(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:i,contentStyle:o}=iO(),[a,s]=p.useState([]);p.useEffect(()=>{const c=[{label:e.formatMessage({id:"setting.menu.title",defaultMessage:"设置"}),key:"setting",children:[{label:e.formatMessage({id:"setting.menu.profile",defaultMessage:"个人信息"}),key:"profile"},{label:e.formatMessage({id:"setting.menu.basic",defaultMessage:"基本设置"}),key:"basic"}]}];s(c)},[e]);const l=c=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),c),t("/setting/"+c.key)};return j.jsxs(uo,{children:[j.jsx(OKt,{style:r,width:i,children:j.jsx(Bd,{mode:"inline",onClick:l,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:a})}),j.jsxs(uo,{children:[j.jsx(xKt,{style:n,children:e.formatMessage({id:"menu.dashboard.mine"})}),j.jsx(RKt,{style:o,children:j.jsx(ED,{})})]})]})},aNe=()=>{const e=Ia(),{userInfo:t}=IY(),{translateString:n}=Mc(),{mode:r}=p.useContext(As),[i,o]=p.useState(""),[a,s]=p.useState(""),[l,c]=p.useState(""),u=()=>{e("/setting")};return p.useEffect(()=>{o(n(t==null?void 0:t.nickname)),s(n(t==null?void 0:t.description)),c(t==null?void 0:t.avatar)},[r,t]),j.jsx(j.Fragment,{children:j.jsx(bu,{title:i,content:a,placement:"rightBottom",children:j.jsx(j.Fragment,{children:j.jsx(xh,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function bQ(){const e=Fx(b=>b.accessToken),t=xa(b=>b.userInfo),n=b0(b=>b.agentInfo),r=d3(),[i,o]=p.useState(!1),{showNotification:a}=GK(),{translateString:s}=Mc();Eh(b=>b.addMessage),id(b=>b.updateThreadContent),p.useContext(As),p.useRef(!1);const l=id(b=>b.threads),[c,u]=p.useState(l),d=p.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!$_t()&&r&&e&&g()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",r," accessToken:",e)},[r,e]),f=async()=>{},h=p.useRef(n==null?void 0:n.uid),m=p.useCallback(()=>{if(!i&&e)return setInterval(async()=>{h.current?f():console.log("useMqtt autoPingMessage currentUidRef.current:",h.current)},1e4);console.log("useMqtt autoPingMessage isNetworkOnline:",r," accessToken:",e)},[i,e,t,n]),g=()=>{console.log("useMqtt doConnect"),P_t({uid:t.uid,username:t.username,accessToken:e})},v=()=>{console.log("useMqtt useEffect doDisconnect"),mL()},y=b=>{var _,E;(b==null?void 0:b.type)!==fT&&((_=b==null?void 0:b.user)==null?void 0:_.uid)!==(t==null?void 0:t.uid)&&((E=b==null?void 0:b.user)==null?void 0:E.uid)!==(n==null?void 0:n.uid)&&(YVe(),console.log("playAudio"))};return p.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?g():mL()},[r]),p.useEffect(()=>{if(n!=null&&n.uid){h.current=n==null?void 0:n.uid;const b=m();return()=>{clearInterval(b)}}else h.current=null},[n]),p.useEffect(()=>{console.log("useMqtt useEffect accessToken"),g();const b=d();return()=>{mL(),clearInterval(b)}},[e,t]),p.useEffect(()=>{console.log("useMqtt threads change"),u(l)},[l]),p.useEffect(()=>{const b=function(_){if(console.log("useMqtt handleNewMessage",_),_.type===dT||_.type===vve||_.type===GF||_.type===fT||_.type===pT)return;const E=_.threadTopic,w=c.find(S=>S.topic===E);w?w.mute?console.log("useMqtt matchingThread muted",E):(console.log("useMqtt matchingThread no mute",E),a(s(JO),s(JO)),y(_)):(console.log("useMqtt matchingThread no"),a(s(JO),s(JO)),y(_))};return vr.on(uT,b),()=>{vr.off(uT)}},[c]),p.useEffect(()=>{console.log("useMqtt useEffect");const b=function(){console.log("handleMqttConnected"),o(!0)},_=function(){console.log("handleMqttDisconnected"),o(!1)};return vr.on(DF,b),vr.on(LF,_),vr.on(FF,_),vr.on($F,_),vr.on(BF,_),vr.on(jF,_),()=>{console.log("un - useEffect mqttDisconnect"),vr.off(DF),vr.off(LF),vr.off(FF),vr.off($F),vr.off(BF),vr.off(jF)}},[]),{doConnect:g,doDisconnect:v,isMqttConnected:i}}const sNe=Oc()(Md(kd(Pd((e,t)=>({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}},addNewfriend(n){console.log("addNewfriend",n)},addDevice(n){var r;if(n.type===gve){const i=t().devices.some(o=>o.device.uid===n.device.uid);e(i?{devices:[n,...t().devices.filter(o=>o.device.uid!==n.device.uid)]}:{devices:[n,...t().devices]}),((r=t().currentContact.device)==null?void 0:r.uid)===n.device.uid&&e({currentContact:n})}},addGroup(n){console.log("addGroup",n)},addChannel(n){console.log("addChannel",n)},addMember(n){if(n.type===kLe){const r=t().members.some(i=>i.member.uid===n.member.uid);e(r?{members:[n,...t().members.filter(i=>i.member.uid!==n.member.uid)]}:{members:[...t().members,n]})}},addFriend(n){console.log("addFriend",n)},setCurrentContact:n=>{e({currentContact:n})},setMemberSelf:n=>{e({memberSelf:n})},resetContactInfo(){e({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}}})}})),{name:xLe})));function lNe(){console.log("useElectronApi");const e=Ia(),t=xa(r=>r.userInfo),n=sNe(r=>r.addDevice);p.useEffect(()=>(console.log("useElectronApi useEffect"),ja?(window.electronAPI.loginSuccess(),window.electronAPI.onNewWindowCreated(r=>{console.log("Dashboard onNewWindowCreated content:",r),e("/enlarge",{state:{content:r}})}),window.electronAPI.onMulticastMessage(r=>{const i=JSON.parse(r);if(i.user.uid!==t.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",r);const o={type:gve,device:i.device,user:i.user,createdAt:i.createdAt};n(o)}}),window.electronAPI.onWebSocketMessage(r=>{console.log("Dashboard onWebSocketMessage content:",r)}),window.electronAPI.onHttpMessage(r=>{console.log("Dashboard onHttpMessage content:",r)}),window.electronAPI.onNotificationMessage(r=>{if(console.log("Dashboard onNotificationMessage content:",r),r.type===mLe){Wt.success("截图成功");const i=r.data;vr.emit(SLe,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),ja?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const IKt=Oc()(Md(kd(Pd((e,t)=>({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},setCurrentMember(n){e({currentMember:n})},setMemberSelf(n){e({memberSelf:n})},setMemberResult:n=>{e({memberResult:n})},resetMembers:()=>e({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}}})})),{name:wLe}))),cNe=Oc()(Md(kd(Pd((e,t)=>({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""},insertWorkgroup(n){e(r=>{r.workgroupResult.data.content.unshift(n)})},updateWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i[o]=n:console.warn(`Workgroup with uid ${n.uid} not found.`)})},deleteWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i.splice(o,1):console.warn(`Workgroup with uid ${n.uid} not found.`)})},setWorkgroupResult:n=>{e({workgroupResult:n})},setWorkgroupInfo(n){e({workgroupInfo:n})},deleteWorkgroupInfo(n){const r=t().workgroupResult.data.content,i=r.findIndex(o=>o.uid===n);i!==-1?e({workgroupResult:{...t().workgroupResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Workgroup not found in cache:",n),t().workgroupInfo.uid===n&&e({workgroupInfo:{uid:"",orgUid:""}})},resetWorkgroupInfo(){e({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""}})}})),{name:MLe}))),AKt=()=>{const e=$l(u=>u.deleteOrg),t=id(u=>u.resetThreads),n=Eh(u=>u.resetMessageList),r=IKt(u=>u.resetMembers),i=Fx(u=>u.removeAccessToken),o=xa(u=>u.resetUserInfo),a=sNe(u=>u.resetContactInfo),s=b0(u=>u.resetAgentInfo),l=cNe(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),i(),o(),a(),s(),l()}}};function uNe(){console.log("useEventBus");const{clearStorage:e}=AKt(),{doDisconnect:t}=bQ(),{setPingLoading:n}=p.useContext(As),r=p.useCallback(async()=>{try{const i=await JGt();console.log("logout result:",i.data),n(!1),t(),e(),q_t()}catch(i){console.log("logout error:",i)}},[]);return p.useEffect(()=>{console.log("useEventBus useEffect");const i=function(o){console.log("token过期,强制刷新登录",o),vr.off(Zm,i),r()};return vr.on(Zm,i),()=>{console.log("un - useEffect mqttDisconnect"),vr.off(Zm)}},[]),{doLogout:r}}const NKt=()=>{const e=vi(),{doLogout:t}=uNe(),{isLoggedIn:n,locale:r,changeLocale:i,mode:o,changeMode:a,handleUpdateAgentStatus:s}=p.useContext(As),{agentInfo:l}=b0(h=>({agentInfo:h.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:j.jsx(dY,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[u,d]=p.useState(c);p.useEffect(()=>{if(d(c),l.uid!==""&&o===kv){console.log("agentInfo changed",l);const h=[...c],m={key:"status",label:e.formatMessage({id:"menu.agent.status",defaultMessage:"Agent Status"}),type:"group",children:[{key:cee,icon:l.status===cee?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:uee,icon:l.status===uee?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:N8,icon:l.status===N8?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},g=h[0].children,v=g.findIndex(y=>y.key===m.key);v!==-1?g[v]=m:g.splice(0,0,m),h[0].children=g,d(h)}},[l,r,o]);const f=async h=>{console.log("click",h.key),h.key==="logout"?t():h.key==="zh-cn"||h.key==="zh-tw"||h.key==="en"?i(h.key):h.key===vy||h.key===kv||h.key===XN?(console.log("mode",h.key),a(h.key)):(console.log("status"),h.key===N8&&Ho.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(h.key))};return j.jsx(j.Fragment,{children:n?j.jsx(j.Fragment,{children:j.jsx(Bd,{inlineCollapsed:!0,onClick:f,style:{width:64,height:34},mode:"inline",items:u})}):j.jsx(j.Fragment,{})})};async function MKt(e){return Lr("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:wr}})}const dNe=()=>{const[e,t]=p.useState([]),n=new R2e;p.useEffect(()=>{(async()=>{try{const s=await n.getAllMessages();t(s)}catch(s){console.error("Error fetching messages from IndexedDB:",s)}})()},[]);const r=async a=>{try{await n.createMessage(a);const s=await n.getAllMessages();console.log("useIndexedDB createMessage newMessages: ",s),t(s)}catch(s){console.error("Error creating message in IndexedDB:",s)}},i=async(a,s)=>{try{await n.updateMessage(a,s);const l=await n.getAllMessages();t(l)}catch(l){console.error("Error updating message in IndexedDB:",l)}},o=async a=>{try{await n.deleteMessage(a);const s=await n.getAllMessages();t(s)}catch(s){console.error("Error deleting message in IndexedDB:",s)}};return p.useEffect(()=>{console.log("useIndexedDB useEffect");const a=function(s){console.log("useIndexedDB handleNewMessage",s),r(s)};return vr.on(uT,a),()=>{console.log("useIndexedDB useEffect return"),vr.off(uT,a)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:o}};async function fNe(){return Lr("/api/v1/user/profile",{method:"GET",params:{client:wr}})}async function pNe(e){return Lr("/api/v1/user/update",{method:"POST",data:{...e,client:wr}})}async function kKt(e){return Lr("/api/v1/user/change/password",{method:"POST",data:{...e,client:wr}})}async function hNe(e){return Lr("/api/v1/user/change/email",{method:"POST",data:{...e,client:wr}})}async function mNe(e){return Lr("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:wr}})}const PKt=()=>{const e=vi(),{locale:t,changeLocale:n}=p.useContext(As),r=[{key:"lang",icon:j.jsx(Gmt,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=o=>{const a=o.key;n(a)};return j.jsx(Bd,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})};var Cl=function(){return Cl=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?Da(iE,--_u):0,D_--,ua===10&&(D_=1,j3--),ua}function bd(){return ua=_u2||mz(ua)>3?"":" "}function WKt(e,t){for(;--t&&bd()&&!(ua<48||ua>102||ua>57&&ua<65||ua>70&&ua<97););return U3(e,QA()+(t<6&&gv()==32&&bd()==32))}function gz(e){for(;bd();)switch(ua){case e:return _u;case 34:case 39:e!==34&&e!==39&&gz(ua);break;case 40:e===41&&gz(e);break;case 92:bd();break}return _u}function qKt(e,t){for(;bd()&&e+ua!==57;)if(e+ua===84&&gv()===47)break;return"/*"+U3(t,_u-1)+"*"+_Q(e===47?e:bd())}function YKt(e){for(;!mz(gv());)bd();return U3(e,_u)}function KKt(e){return VKt(XA("",null,null,null,[""],e=zKt(e),0,[0],e))}function XA(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,m=0,g=1,v=1,y=1,b=0,_="",E=i,w=o,S=r,C=_;v;)switch(m=b,b=bd()){case 40:if(m!=108&&Da(C,d-1)==58){KA(C+=kr(ZL(b),"&","&\f"),"&\f",bNe(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:C+=ZL(b);break;case 9:case 10:case 13:case 32:C+=GKt(m);break;case 92:C+=WKt(QA()-1,7);continue;case 47:switch(gv()){case 42:case 47:BC(QKt(qKt(bd(),QA()),t,n,l),l);break;default:C+="/"}break;case 123*g:s[c++]=ff(C)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:y==-1&&(C=kr(C,/\f/g,"")),h>0&&ff(C)-d&&BC(h>32?Ace(C+";",r,n,d-1,l):Ace(kr(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(BC(S=Ice(C,t,n,c,u,i,s,_,E=[],w=[],d,o),o),b===123)if(u===0)XA(C,t,S,S,E,o,d,s,w);else switch(f===99&&Da(C,3)===110?100:f){case 100:case 108:case 109:case 115:XA(e,S,S,r&&BC(Ice(e,S,S,0,0,i,s,_,i,E=[],d,w),w),i,w,d,s,r?E:w);break;default:XA(C,S,S,S,[""],w,0,s,w)}}c=u=h=0,g=y=1,_=C="",d=a;break;case 58:d=1+ff(C),h=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&UKt()==125)continue}switch(C+=_Q(b),b*g){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(ff(C)-1)*y,y=1;break;case 64:gv()===45&&(C+=ZL(bd())),f=gv(),u=d=ff(_=C+=YKt(QA())),b++;break;case 45:m===45&&ff(C)==2&&(g=0)}}return o}function Ice(e,t,n,r,i,o,a,s,l,c,u,d){for(var f=i-1,h=i===0?o:[""],m=_Ne(h),g=0,v=0,y=0;g0?h[b]+" "+_:kr(_,/&\f/g,h[b])))&&(l[y++]=E);return H3(e,t,n,i===0?B3:s,l,c,u,d)}function QKt(e,t,n,r){return H3(e,t,n,gNe,_Q(HKt()),P_(e,2,-2),0,r)}function Ace(e,t,n,r,i){return H3(e,t,n,yQ,P_(e,0,r),P_(e,r+1,-1),r,i)}function ENe(e,t,n){switch(BKt(e,t)){case 5103:return _i+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _i+e+e;case 4789:return _w+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _i+e+_w+e+no+e+e;case 5936:switch(Da(e,t+11)){case 114:return _i+e+no+kr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _i+e+no+kr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _i+e+no+kr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return _i+e+no+e+e;case 6165:return _i+e+no+"flex-"+e+e;case 5187:return _i+e+kr(e,/(\w+).+(:[^]+)/,_i+"box-$1$2"+no+"flex-$1$2")+e;case 5443:return _i+e+no+"flex-item-"+kr(e,/flex-|-self/g,"")+(Ap(e,/flex-|baseline/)?"":no+"grid-row-"+kr(e,/flex-|-self/g,""))+e;case 4675:return _i+e+no+"flex-line-pack"+kr(e,/align-content|flex-|-self/g,"")+e;case 5548:return _i+e+no+kr(e,"shrink","negative")+e;case 5292:return _i+e+no+kr(e,"basis","preferred-size")+e;case 6060:return _i+"box-"+kr(e,"-grow","")+_i+e+no+kr(e,"grow","positive")+e;case 4554:return _i+kr(e,/([^-])(transform)/g,"$1"+_i+"$2")+e;case 6187:return kr(kr(kr(e,/(zoom-|grab)/,_i+"$1"),/(image-set)/,_i+"$1"),e,"")+e;case 5495:case 3959:return kr(e,/(image-set\([^]*)/,_i+"$1$`$1");case 4968:return kr(kr(e,/(.+:)(flex-)?(.*)/,_i+"box-pack:$3"+no+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_i+e+e;case 4200:if(!Ap(e,/flex-|baseline/))return no+"grid-column-align"+P_(e,t)+e;break;case 2592:case 3360:return no+kr(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Ap(r.props,/grid-\w+-end/)})?~KA(e+(n=n[t].value),"span",0)?e:no+kr(e,"-start","")+e+no+"grid-row-span:"+(~KA(n,"span",0)?Ap(n,/\d+/):+Ap(n,/\d+/)-+Ap(e,/\d+/))+";":no+kr(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Ap(r.props,/grid-\w+-start/)})?e:no+kr(kr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return kr(e,/(.+)-inline(.+)/,_i+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ff(e)-1-t>6)switch(Da(e,t+1)){case 109:if(Da(e,t+4)!==45)break;case 102:return kr(e,/(.+:)(.+)-([^]+)/,"$1"+_i+"$2-$3$1"+_w+(Da(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~KA(e,"stretch",0)?ENe(kr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return kr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,s,l,c){return no+i+":"+o+c+(a?no+i+"-span:"+(s?l:+l-+o)+c:"")+e});case 4949:if(Da(e,t+6)===121)return kr(e,":",":"+_i)+e;break;case 6444:switch(Da(e,Da(e,14)===45?18:11)){case 120:return kr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_i+(Da(e,14)===45?"inline-":"")+"box$3$1"+_i+"$2$3$1"+no+"$2box$3")+e;case 100:return kr(e,":",":"+no)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return kr(e,"scroll-","scroll-snap-")+e}return e}function Ik(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case yQ:e.return=ENe(e.value,e.length,n);return;case vNe:return Ik([nm(e,{value:kr(e.value,"@","@"+_i)})],r);case B3:if(e.length)return jKt(n=e.props,function(i){switch(Ap(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":db(nm(e,{props:[kr(i,/:(read-\w+)/,":"+_w+"$1")]})),db(nm(e,{props:[i]})),hz(e,{props:Rce(n,r)});break;case"::placeholder":db(nm(e,{props:[kr(i,/:(plac\w+)/,":"+_i+"input-$1")]})),db(nm(e,{props:[kr(i,/:(plac\w+)/,":"+_w+"$1")]})),db(nm(e,{props:[kr(i,/:(plac\w+)/,no+"input-$1")]})),db(nm(e,{props:[i]})),hz(e,{props:Rce(n,r)});break}return""})}}var tQt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ec={npm_package_dependencies_emoji_mart:"^5.6.0",npm_package_dependencies_use_debounce:"^10.0.1",ELECTRON_MIRROR:"http://npm.taobao.org/mirrors/electron/",NVM_INC:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/include/node",npm_package_devDependencies_prettier:"3.2.5",npm_package_devDependencies_electron_builder:"24.13.3",npm_package_scripts_build_mac_dmg:"tsc && vite build --mode prod && electron-builder --mac --config electron-builder-mac-dmg.yml",npm_package_dependencies_ts_protoc_gen:"^0.15.0",TERM_PROGRAM:"vscode",rvm_bin_path:"/Users/ningjinpeng/.rvm/bin",npm_package_dependencies__bytemd_plugin_breaks:"^1.21.0",npm_package_dependencies_cheerio:"^1.0.0",NODE:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",npm_config_version_git_tag:"true",npm_package_homepage:"https://github.com/bytedesk/bytedesk#readme",npm_package_scripts_release_mac:"sh cicd/scripts/build-upload-mac.sh",npm_package_dependencies_axios:"^1.6.5",npm_package_dependencies_moment:"^2.30.1",npm_package_devDependencies_typescript:"^5.1.6",npm_package_devDependencies_vite_plugin_pwa:"^0.20.1",PYENV_ROOT:"/Users/ningjinpeng/.pyenv",NVM_CD_FLAGS:"-q",GEM_HOME:"/Users/ningjinpeng/.gem/ruby",INIT_CWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase",npm_package_scripts_build_mac_mas:"tsc && vite build --mode prod && electron-builder --mac --config electron-builder-mac-mas.yml",npm_package_devDependencies_jest:"^29.7.0",npm_package_devDependencies_vite:"^5.0.10",TERM:"xterm-256color",SHELL:"/bin/zsh",npm_config_shamefully_hoist:"true",npm_package_dependencies__emotion_styled:"11.11.5",npm_package_dependencies_react_infinite_scroll_component:"^6.1.0",HOMEBREW_BOTTLE_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles",HOMEBREW_API_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api",npm_package_dependencies__ant_design_pro_provider:"^2.15.2",TMPDIR:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/",HOMEBREW_REPOSITORY:"/opt/homebrew",npm_config_init_license:"MIT",npm_package_dependencies__ant_design_x:"^1.0.5",npm_package_dependencies__langchain_community:"^0.2.28",npm_package_dependencies_socket_io:"^4.7.5",npm_package_locales_en_productName:"ByteDesk",npm_package_dependencies_debug:"^4.3.7",npm_package_dependencies_dompurify:"^3.0.9",npm_package_devDependencies__vitejs_plugin_react:"^4.0.4",TERM_PROGRAM_VERSION:"1.98.2",npm_package_scripts_dev:"vite --host --mode dev",npm_package_dependencies_express_rate_limit:"^7.2.0",npm_package_dependencies_uuid:"^9.0.1",ZDOTDIR:"/Users/ningjinpeng",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",MallocNanoZone:"0",npm_package_scripts_build_linux:"tsc && vite build --mode prod && electron-builder --linux --config electron-builder-linux.yml",npm_config_registry:"https://registry.npmmirror.com/",npm_package_private:"true",npm_package_repository_url:"git+https://github.com/bytedesk/bytedesk.git",npm_package_dependencies__ant_design_icons:"^5.6.1",npm_package_dependencies__tanstack_react_query_devtools:"^5.21.0",npm_package_dependencies_bowser:"^2.11.0",npm_package_dependencies_react_dom:"^18.2.0",PNPM_HOME:"/Users/ningjinpeng/Library/pnpm",npm_package_dependencies__ant_design_cssinjs:"^1.22.0",npm_package_dependencies_dayjs:"^1.11.11",npm_package_dependencies_react_dropzone:"^14.2.3",npm_package_readmeFilename:"README.md",OBJC_DISABLE_INITIALIZE_FORK_SAFETY:"YES",npm_package_description:"对话即服务",npm_package_debug_env_VITE_DEV_SERVER_URL:"http://127.0.0.1:9005/",npm_package_devDependencies__testing_library_react:"^14.2.2",npm_package_devDependencies_ajv:"^8.17.1",USER:"ningjinpeng",NVM_DIR:"/Users/ningjinpeng/.nvm",npm_package_license:"GNU",npm_package_devDependencies__types_react:"^18.2.20",npm_package_dependencies_intersection_observer:"^0.12.2",npm_package_dependencies_react_helmet_async:"^2.0.4",COMMAND_MODE:"unix2003",npm_package_scripts_release_open:"sh cicd/scripts/build-open.sh",npm_package_dependencies_aieditor:"^1.0.13",npm_package_dependencies_bytemd:"^1.21.0",npm_package_scripts_release_mas:"sh cicd/scripts/build-mac-mas.sh",npm_package_dependencies_xgplayer:"^3.0.13",rvm_path:"/Users/ningjinpeng/.rvm",HOMEBREW_INSTALL_FROM_API:"1",HOMEBREW_CORE_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",FLUTTER_ROOT:"/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/flutter",npm_package_dependencies_react_virtuoso:"^4.7.1",npm_package_dependencies_zustand:"^4.4.7",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.zLKVH3rvH7/Listeners",npm_package_dependencies__bytemd_plugin_gemoji:"^1.21.0",npm_package_dependencies_highlight_js:"^11.11.1",npm_package_devDependencies__types_express:"^4.17.21",npm_package_devDependencies__types_jest:"^29.5.12",npm_package_devDependencies_less:"^4.2.0",npm_package_devDependencies_postcss:"^8.4.31",VSCODE_PROFILE_INITIALIZED:"1",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",PUB_HOSTED_URL:"https://pub.flutter-io.cn",npm_package_scripts_e2e:"playwright test",npm_execpath:"/usr/local/lib/node_modules/yarn/bin/yarn.js",npm_package_scripts_build_open:"tsc && vite build --mode open",npm_package_dependencies__bytemd_react:"^1.21.0",npm_package_author_name:"weiyuai.cn",npm_package_dependencies_react_use:"^17.5.0",npm_package_devDependencies__electron_osx_sign:"^1.3.1",npm_package_devDependencies__types_react_dom:"^18.2.7",npm_package_dependencies__bytemd_plugin_gfm:"^1.21.0",npm_package_dependencies_peerjs:"^1.5.2",npm_package_devDependencies_styled_components:"^6.1.13",rvm_prefix:"/Users/ningjinpeng",npm_package_scripts_build_web:"tsc && vite build --mode web",npm_package_dependencies__emoji_mart_react:"^1.1.1",npm_package_dependencies_immer:"^10.1.1",npm_config_argv:'{"remain":[],"cooked":["run","build:open"],"original":["build:open"]}',PATH:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/yarn--1742995750350-0.6319152823611585:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase/node_modules/.bin:/Users/ningjinpeng/.config/yarn/link/node_modules/.bin:/Users/ningjinpeng/.yarn/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/usr/local/bin",npm_package_scripts_release_web:"sh cicd/scripts/build-upload.sh",npm_package_dependencies__ant_design_use_emotion_css:"1.0.4",npm_package_dependencies_electron_context_menu:"^3.6.1",npm_config_auto_install_peers:"true",npm_package_dependencies_react_contexify:"^6.0.0",npm_package_dependencies_systeminformation:"^5.22.3",npm_package_devDependencies_ts_jest:"^29.1.2",USER_ZDOTDIR:"/Users/ningjinpeng",__CFBundleIdentifier:"com.microsoft.VSCode",npm_package_dependencies_electron_screenshots:"^0.5.26",npm_package_devDependencies_tailwindcss:"^3.3.3",PWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase",npm_config_nodeLinker:"node-modules",npm_package_bugs_url:"https://github.com/bytedesk/bytedesk/issues",npm_package_scripts_preview:"vite preview --host",npm_package_dependencies__bytemd_plugin_frontmatter:"^1.21.0",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home",FLUTTER_STORAGE_BASE_URL:"https://storage.flutter-io.cn",npm_package_dependencies_date_fns:"^3.3.1",npm_package_dependencies_ua_parser_js:"^1.0.37",npm_lifecycle_event:"build:open",npm_package_name:"notebase",npm_package_repository_type:"git",npm_package_dependencies_react_intl:"^6.8.9",LANG:"zh_CN.UTF-8",LOCAL_GIT_DIRECTORY:"/Applications/GitHub Desktop.app/Contents/Resources/app/git",npm_package_scripts_build_win:"tsc && vite build --mode prod && electron-builder --win --config electron-builder-windows.yml",npm_package_scripts_pree2e:"vite build --mode=test",npm_package_dependencies_file_saver:"^2.0.5",npm_package_devDependencies_vite_plugin_electron_renderer:"^0.14.5",npm_config_version_commit_hooks:"true",npm_package_scripts_start:"vite --host --mode dev",npm_package_scripts_build:"tsc && vite build --mode prod && electron-builder",npm_package_scripts_release_win:"sh cicd/scripts/build-upload-win.sh",NODE_PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/bin/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/node_modules",npm_package_dependencies_menubar:"^9.4.0",npm_package_dependencies_react_router_dom:"^6.21.2",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XPC_FLAGS:"0x0",npm_config_bin_links:"true",npm_package_dependencies__bytemd_plugin_highlight:"^1.21.0",npm_package_dependencies__types_ua_parser_js:"^0.7.39",npm_config_electron_mirror:"https://npmmirror.com/mirrors/electron/",npm_package_engines_node:">=20",npm_package_main:"dist-electron/main/index.js",npm_package_dependencies__tanstack_react_query:"^5.20.5",npm_package_dependencies_dexie:"^4.0.7",npm_package_version:"1.0.2",npm_package_dependencies__emotion_react:"11.11.4",npm_package_dependencies_node_json_db:"^2.3.1",npm_package_dependencies_winston:"^3.11.0",npm_package_dependencies_ws:"^8.16.0",XPC_SERVICE_NAME:"0",npm_package_devDependencies_autoprefixer:"^10.4.16",VSCODE_INJECTION:"1",rvm_version:"1.29.12 (latest)",npm_package_type:"module",SHLVL:"4",PYENV_SHELL:"zsh",HOME:"/Users/ningjinpeng",npm_package_dependencies_react_markdown:"^9.0.1",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",HOMEBREW_BREW_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",npm_config_strict_ssl:"true",npm_config_save_prefix:"^",npm_package_dependencies_dotenv:"^16.4.5",npm_package_dependencies_mitt:"^3.0.1",npm_package_dependencies_openai:"^4.56.0",npm_config_version_git_message:"v%s",npm_package_dependencies__emoji_mart_data:"^1.2.1",npm_package_devDependencies_cross_env:"^7.0.3",HOMEBREW_PREFIX:"/opt/homebrew",npm_package_dependencies__bytemd_plugin_mermaid:"^1.21.0",npm_package_dependencies_react_photo_view:"^1.2.6",npm_package_devDependencies__types_web_bluetooth:"^0.0.20",npm_package_dependencies_unique_names_generator:"^4.7.1",YARN_WRAP_OUTPUT:"false",LOGNAME:"ningjinpeng",npm_package_locales_zh_CN_productName:"微语",npm_lifecycle_script:"tsc && vite build --mode open",npm_package_author_email:"270580156@qq.com",npm_package_dependencies_lodash_es:"^4.17.21",VSCODE_GIT_IPC_HANDLE:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/vscode-git-7f4d23a467.sock",npm_package_scripts_release_linux:"sh cicd/scripts/build-upload-linux.sh",npm_package_dependencies_react:"^18.2.0",npm_package_dependencies_mqtt:"^5.2.0",NVM_BIN:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin",BUN_INSTALL:"/Users/ningjinpeng/.bun",npm_config_user_agent:"yarn/1.22.17 npm/? node/v20.0.0 darwin arm64",npm_config_ignore_scripts:"",npm_config_version_git_sign:"",npm_package_dependencies_node_cmd:"^5.0.0",npm_package_dependencies_text_search_engine:"^1.1.0",npm_package_devDependencies__electron_notarize:"^2.5.0",npm_package_dependencies_socket_io_client:"^4.7.5",npm_package_devDependencies__playwright_test:"^1.37.1",npm_package_devDependencies__types_node:"^20.12.3",VSCODE_GIT_ASKPASS_NODE:"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)",GIT_ASKPASS:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",npm_package_dependencies_express:"^4.18.3",npm_config_ignore_optional:"",npm_config_init_version:"1.0.0",npm_package_scripts_build_quanjing:"tsc && vite build --mode quanjing",npm_package_dependencies_antd:"^5.23.2",npm_package_dependencies_langchain:"^0.2.16",npm_package_dependencies__ant_design_compatible:"^5.1.4",npm_package_dependencies_antd_img_crop:"^4.23.0",npm_package_dependencies_electron_updater:"^6.1.1",npm_package_devDependencies_vite_plugin_electron:"^0.28.0",npm_package_dependencies__dicebear_collection:"^8.0.1",npm_package_dependencies__types_file_saver:"^2.0.7",npm_package_devDependencies_electron:"^33.2.0",npm_package_locales_zh_CN_description:"对话即服务",npm_config_version_tag_prefix:"v",npm_package_dependencies__ant_design_pro_components:"^2.6.28",npm_package_dependencies__dicebear_core:"^8.0.1",npm_package_dependencies_dexie_react_hooks:"^1.1.7",npm_package_devDependencies__testing_library_jest_dom:"^6.4.2",npm_package_locales_en_description:"Chat as a Service",npm_node_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",COLORTERM:"truecolor",NODE_ENV:"production"},$_=typeof process<"u"&&ec!==void 0&&(ec.REACT_APP_SC_ATTR||ec.SC_ATTR)||"data-styled",CNe="active",wNe="data-styled-version",z3="6.1.13",SQ=`/*!sc*/ `,Ak=typeof window<"u"&&"HTMLElement"in window,nQt=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&ec!==void 0&&ec.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&ec.REACT_APP_SC_DISABLE_SPEEDY!==""?ec.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&ec.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&ec!==void 0&&ec.SC_DISABLE_SPEEDY!==void 0&&ec.SC_DISABLE_SPEEDY!==""&&ec.SC_DISABLE_SPEEDY!=="false"&&ec.SC_DISABLE_SPEEDY),V3=Object.freeze([]),L_=Object.freeze({});function rQt(e,t,n){return n===void 0&&(n=L_),e.theme!==n.theme&&e.theme||t||n.theme}var TNe=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),iQt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,oQt=/(^-|-$)/g;function Nce(e){return e.replace(iQt,"-").replace(oQt,"")}var aQt=/(a)(d)/gi,XR=52,Mce=function(e){return String.fromCharCode(e+(e>25?39:97))};function vz(e){var t,n="";for(t=Math.abs(e);t>XR;t=t/XR|0)n=Mce(t%XR)+n;return(Mce(t%XR)+n).replace(aQt,"$1-$2")}var JL,xNe=5381,ry=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ONe=function(e){return ry(xNe,e)};function sQt(e){return vz(ONe(e)>>>0)}function lQt(e){return e.displayName||e.name||"Component"}function e6(e){return typeof e=="string"&&!0}var RNe=typeof Symbol=="function"&&Symbol.for,INe=RNe?Symbol.for("react.memo"):60115,cQt=RNe?Symbol.for("react.forward_ref"):60112,uQt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},dQt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ANe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},fQt=((JL={})[cQt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},JL[INe]=ANe,JL);function kce(e){return("type"in(t=e)&&t.type.$$typeof)===INe?ANe:"$$typeof"in e?fQt[e.$$typeof]:uQt;var t}var pQt=Object.defineProperty,hQt=Object.getOwnPropertyNames,Pce=Object.getOwnPropertySymbols,mQt=Object.getOwnPropertyDescriptor,gQt=Object.getPrototypeOf,Dce=Object.prototype;function NNe(e,t,n){if(typeof t!="string"){if(Dce){var r=gQt(t);r&&r!==Dce&&NNe(e,r,n)}var i=hQt(t);Pce&&(i=i.concat(Pce(t)));for(var o=kce(e),a=kce(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var vQt=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw oO(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=i;a=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,a=i;a=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(v+="".concat(y,","))}),l+="".concat(m).concat(g,'{content:"').concat(v,'"}').concat(SQ)},u=0;u0?".".concat(t):f},u=l.slice();u.push(function(f){f.type===B3&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(RQt,n).replace(r,c))}),a.prefix&&u.push(eQt),u.push(XKt);var d=function(f,h,m,g){h===void 0&&(h=""),m===void 0&&(m=""),g===void 0&&(g="&"),t=g,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var v=f.replace(IQt,""),y=KKt(m||h?"".concat(m," ").concat(h," { ").concat(v," }"):v);a.namespace&&(y=PNe(y,a.namespace));var b=[];return Ik(y,ZKt(u.concat(JKt(function(_){return b.push(_)})))),b};return d.hash=l.length?l.reduce(function(f,h){return h.name||oO(15),ry(f,h.name)},xNe).toString():"",d}var NQt=new kNe,yz=AQt(),DNe=ce.createContext({shouldForwardProp:void 0,styleSheet:NQt,stylis:yz});DNe.Consumer;ce.createContext(void 0);function Bce(){return p.useContext(DNe)}var MQt=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=yz);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,CQ(this,function(){throw oO(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=yz),this.name+t.hash},e}(),kQt=function(e){return e>="A"&&e<="Z"};function jce(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,a)){var s=r(o,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,s)}i=G1(i,a),this.staticRulesId=a}else{for(var l=ry(this.baseHash,r.hash),c="",u=0;u>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(c,".".concat(h),void 0,this.componentId)),i=G1(i,h)}}return i},e}(),FNe=ce.createContext(void 0);FNe.Consumer;var t6={};function LQt(e,t,n){var r=EQ(e),i=e,o=!e6(e),a=t.attrs,s=a===void 0?V3:a,l=t.componentId,c=l===void 0?function(E,w){var S=typeof E!="string"?"sc":Nce(E);t6[S]=(t6[S]||0)+1;var C="".concat(S,"-").concat(sQt(z3+S+t6[S]));return w?"".concat(w,"-").concat(C):C}(t.displayName,t.parentComponentId):l,u=t.displayName,d=u===void 0?function(E){return e6(E)?"styled.".concat(E):"Styled(".concat(lQt(E),")")}(e):u,f=t.displayName&&t.componentId?"".concat(Nce(t.displayName),"-").concat(t.componentId):t.componentId||c,h=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,m=t.shouldForwardProp;if(r&&i.shouldForwardProp){var g=i.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;m=function(E,w){return g(E,w)&&v(E,w)}}else m=g}var y=new $Qt(n,f,r?i.componentStyle:void 0);function b(E,w){return function(S,C,T){var x=S.attrs,O=S.componentStyle,N=S.defaultProps,A=S.foldedComponentIds,M=S.styledComponentId,F=S.target,P=ce.useContext(FNe),B=Bce(),I=S.shouldForwardProp||B.shouldForwardProp,k=rQt(C,P,N)||L_,U=function(te,ae,K){for(var Q,oe=Cl(Cl({},ae),{className:void 0,theme:K}),ge=0;ge{const[o]=Dr.useForm(),a=$l(l=>l.currentOrg);p.useEffect(()=>{t&&n?o.setFieldsValue({name:n==null?void 0:n.name,description:n==null?void 0:n.description,type:n==null?void 0:n.type}):o.setFieldsValue({type:eg})},[o,t,n]);const s=async()=>{try{const l=await o.validateFields();if(console.log("values:",l),t&&n){const c={...l,orgUid:a==null?void 0:a.uid,uid:n==null?void 0:n.uid},u=await HNe(c);if(console.log("updateKbase response:",u.data),u.data.code===200)return Wt.success("知识库更新成功"),i(),!0}else{const c={...l,orgUid:a==null?void 0:a.uid},u=await jNe(c);return console.log("createKbase response:",u.data),u.data.code===200?(Wt.success("知识库创建成功"),i(),!0):(Wt.error(u.data.message),!1)}}catch(l){return console.error("Create space failed:",l),Wt.error("创建知识库失败"),!1}};return j.jsx(Wo,{title:"创建知识库",open:e,onOk:s,onCancel:r,children:j.jsxs(Dr,{form:o,submitter:!1,children:[j.jsx(ci,{name:"name",label:"知识库名称",placeholder:"请输入知识库名称",rules:[{required:!0,message:"请输入知识库名称"}]}),j.jsx(XS,{name:"description",label:"知识库描述",placeholder:"请输入知识库描述",rules:[{required:!0,message:"请输入知识库描述"}],fieldProps:{rows:4}}),j.jsx(zD.Group,{name:"type",label:"知识库类型",rules:[{required:!0,message:"请选择知识库类型"}],options:[{label:"帮助文档",value:s6e},{label:"私有知识库",value:eg}]})]})})},$g=Oc(e=>({kbases:[],currentKbase:null,setKbases:t=>e({kbases:t}),setCurrentKbase:t=>e({currentKbase:t}),fetchKbases:async t=>{const r=await BQt({pageNumber:0,pageSize:10,type:eg,orgUid:t,queryNotebase:!0});console.log("queryKbasesByOrg response",r.data),r.data.code===200?e({kbases:r.data.data.content||[]}):Wt.error(r.data.message)},toggleStarKbase:t=>e(n=>({kbases:n.kbases.map(r=>r.uid===t?{...r,favorite:!r.favorite}:r)})),createKbase:async t=>{const n={...t,type:eg,queryNotebase:!0},r=await jNe(n);console.log("createKbase response",r.data),r.data.code===200?e(i=>({kbases:[...i.kbases,t]})):Wt.error(r.data.message)},updateKbase:async t=>{const n={...t,type:eg,queryNotebase:!0},r=await HNe(n);console.log("updateKbase response",r.data),r.data.code===200?Wt.success("更新成功"):Wt.error(r.data.message)},deleteKbase:async t=>{const r=await HQt({uid:t});console.log("deleteKbase response",r.data),r.data.code===200?Wt.success("删除成功"):Wt.error(r.data.message)},fetchKbaseDetail:async t=>{const r=await jQt({uid:t});if(console.log("queryKbaseDetail response",r.data),r.data.code===200)e({currentKbase:r.data.data});else throw new Error("KBASE.KbaseResponse not found")}})),{Title:UQt,Paragraph:zQt}=I2,VQt=Po(Z5)` .ant-card-body { height: 120px; @@ -1514,7 +1514,7 @@ ${Pr("ai-append")} `))}function l(h,m,g,v){const y=g.enter("tableCell"),b=g.enter("phrasing"),_=S3e(h,g,{...v,before:o,after:o});return b(),y(),_}function c(h,m){return COn(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function u(h,m,g){const v=h.children;let y=-1;const b=[],_=m.enter("table");for(;++y-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(d,f,h){return f?(h?"":" ".repeat(a))+d:(h?o:o+" ".repeat(a-o.length))+d}}const DOn={exit:{taskListCheckValueChecked:Cme,taskListCheckValueUnchecked:Cme,paragraph:LOn}},$On={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:FOn}};function Cme(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function LOn(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o',CheckCorrect:'',InsertTable:''},UOn="Strikethrough",zOn="text",VOn="Table",GOn="Heading",WOn="Task list",qOn="todo",YOn={strike:UOn,strikeText:zOn,table:VOn,tableHeading:GOn,task:WOn,taskText:qOn};function KOn({locale:e,...t}={}){const n={...YOn,...e};return{remark:r=>r.use(HOn,t),actions:[{title:n.strike,icon:I7.Strikethrough,cheatsheet:`~~${n.strikeText}~~`,handler:{type:"action",click({wrapText:r,editor:i}){r("~~"),i.focus()}}},{title:n.task,icon:I7.CheckCorrect,cheatsheet:`- [ ] ${n.taskText}`,handler:{type:"action",click({replaceLines:r,editor:i}){r(o=>"- [ ] "+o),i.focus()}}},{title:n.table,icon:I7.InsertTable,handler:{type:"action",click({editor:r,appendBlock:i,codemirror:o}){const{line:a}=i(`| ${n.tableHeading} | | | --- | --- | | | | -`);r.setSelection(o.Pos(a,2),o.Pos(a,2+n.tableHeading.length)),r.focus()}}}]}}function QOn({init:e}={}){let t;return{viewerEffect({markdownBody:n}){(async()=>{const r=n.querySelectorAll("pre>code");r.length!==0&&(t||(t=await oW(()=>import("./index-D2q_syzD.js"),[]).then(i=>i.default),e&&await e(t)),r.forEach(i=>{t.highlightElement(i)}))})()}}}const XOn={ChartGraph:''},ZOn="Entity relationship diagram",JOn="Flow chart",eRn="Gantt chart",tRn="Mermaid diagrams",nRn="Mindmaps",rRn="Pie chart",iRn="Sequence diagram",oRn="State diagram",aRn="Timeline",sRn="User journey diagram",lRn={class:"Class diagram",er:ZOn,flowchart:JOn,gantt:eRn,mermaid:tRn,mindmap:nRn,pie:rRn,sequence:iRn,state:oRn,timeline:aRn,uj:sRn};function cRn({locale:e,...t}={}){const n={...lRn,...e};let r;const i=[{title:n.flowchart,code:`graph TD +`);r.setSelection(o.Pos(a,2),o.Pos(a,2+n.tableHeading.length)),r.focus()}}}]}}function QOn({init:e}={}){let t;return{viewerEffect({markdownBody:n}){(async()=>{const r=n.querySelectorAll("pre>code");r.length!==0&&(t||(t=await oW(()=>import("./index-CVIZTd-d.js"),[]).then(i=>i.default),e&&await e(t)),r.forEach(i=>{t.highlightElement(i)}))})()}}}const XOn={ChartGraph:''},ZOn="Entity relationship diagram",JOn="Flow chart",eRn="Gantt chart",tRn="Mermaid diagrams",nRn="Mindmaps",rRn="Pie chart",iRn="Sequence diagram",oRn="State diagram",aRn="Timeline",sRn="User journey diagram",lRn={class:"Class diagram",er:ZOn,flowchart:JOn,gantt:eRn,mermaid:tRn,mindmap:nRn,pie:rRn,sequence:iRn,state:oRn,timeline:aRn,uj:sRn};function cRn({locale:e,...t}={}){const n={...lRn,...e};let r;const i=[{title:n.flowchart,code:`graph TD Start --> Stop`},{title:n.sequence,code:`sequenceDiagram Alice->>John: Hello John, how are you? John-->>Alice: Great! @@ -1579,7 +1579,7 @@ another task : 24d`},{title:n.pie,code:`pie title Pets adopted by volunteer : Google 2005 : Youtube 2006 : Twitter - `}];return{viewerEffect({markdownBody:o}){(async()=>{const a=o.querySelectorAll("pre>code.language-mermaid");a.length!==0&&(r||(r=await oW(()=>import("./mermaid.core-BajzCmnv.js").then(s=>s.au),[]).then(s=>s.default),t&&r.initialize(t)),a.forEach((s,l)=>{const c=s.parentElement,u=s.innerText,d=document.createElement("div");d.classList.add("bytemd-mermaid"),d.style.lineHeight="initial",c.replaceWith(d),r.render(`bytemd-mermaid-${Date.now()}-${l}`,u,d).then(f=>{d.innerHTML=f.svg}).catch(f=>{})}))})()},actions:[{title:n.mermaid,icon:XOn.ChartGraph,cheatsheet:"```mermaid",handler:{type:"dropdown",actions:i.map(({title:o,code:a})=>({title:o,handler:{type:"action",click({editor:s,appendBlock:l,codemirror:c}){const{line:u}=l("```mermaid\n"+a+"\n```");s.setSelection(c.Pos(u+1,0),c.Pos(u+a.split(` + `}];return{viewerEffect({markdownBody:o}){(async()=>{const a=o.querySelectorAll("pre>code.language-mermaid");a.length!==0&&(r||(r=await oW(()=>import("./mermaid.core-DacimPk4.js").then(s=>s.au),[]).then(s=>s.default),t&&r.initialize(t)),a.forEach((s,l)=>{const c=s.parentElement,u=s.innerText,d=document.createElement("div");d.classList.add("bytemd-mermaid"),d.style.lineHeight="initial",c.replaceWith(d),r.render(`bytemd-mermaid-${Date.now()}-${l}`,u,d).then(f=>{d.innerHTML=f.svg}).catch(f=>{})}))})()},actions:[{title:n.mermaid,icon:XOn.ChartGraph,cheatsheet:"```mermaid",handler:{type:"dropdown",actions:i.map(({title:o,code:a})=>({title:o,handler:{type:"action",click({editor:s,appendBlock:l,codemirror:c}){const{line:u}=l("```mermaid\n"+a+"\n```");s.setSelection(c.Pos(u+1,0),c.Pos(u+a.split(` `).length)),s.focus()}}})),...n}}]}}function Ox(e){"@babel/helpers - typeof";return Ox=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ox(e)}function wme(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function NV(e){for(var t=1;t a, & > span":{paddingInlineEnd:s,fontSize:o,lineHeight:d},"&-name":{color:h,fontSize:i,transition:"color ".concat(g),"> *":{color:h,"&:hover":{color:h}}},"&-time":{color:m,whiteSpace:"nowrap",cursor:"auto"}},"&-detail p":{whiteSpace:"pre-wrap",marginBlock:0}}),"".concat(n,"-actions"),{marginTop:l,marginBottom:0,paddingInlineStart:0,"> li":{display:"inline-block",color:h,"> span":{marginInlineEnd:l,color:h,fontSize:o,cursor:"pointer",transition:"color ".concat(g),userSelect:"none","&:hover":{color:f}}}}),"".concat(n,"-nested"),{marginInlineStart:44})))};function pRn(e){var t=_s.useToken(),n=t.theme,r=t.token,i=t.hashId,o=p.useContext($n.ConfigContext),a=o.iconPrefixCls;return[d_({theme:n,token:r,hashId:i,path:["compatible","Comment",e,a]},function(){var s=NV({componentCls:".".concat(e)},r);return[fRn(s)]}),i]}function Rx(e){"@babel/helpers - typeof";return Rx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rx(e)}var hRn=["actions","author","avatar","children","className","content","prefixCls","datetime"];function MV(){return MV=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wRn(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var TRn=$n.ConfigContext,xRn=function(t){var n=t.actions,r=t.author,i=t.avatar,o=t.children,a=t.className,s=t.content,l=t.prefixCls,c=t.datetime,u=CRn(t,hRn),d=p.useContext(TRn),f=d.getPrefixCls,h=d.direction,m=function(O,N){return p.createElement("div",{className:Te("".concat(O,"-nested"))},N)},g=f("comment",l),v=pRn(g),y=bRn(v,2),b=y[0],_=y[1],E=i?p.createElement("div",{className:"".concat(g,"-avatar")},typeof i=="string"?p.createElement("img",{src:i,alt:"comment-avatar"}):i):null,w=n&&n.length?p.createElement("ul",{className:"".concat(g,"-actions")},n.map(function(x,O){return p.createElement("li",{key:"action-".concat(O)},x)})):null,S=(r||c)&&p.createElement("div",{className:"".concat(g,"-content-author")},r&&p.createElement("span",{className:"".concat(g,"-content-author-name")},r),c&&p.createElement("span",{className:"".concat(g,"-content-author-time")},c)),C=p.createElement("div",{className:"".concat(g,"-content")},S,p.createElement("div",{className:"".concat(g,"-content-detail")},s),w),T=Te(g,mRn({},"".concat(g,"-rtl"),h==="rtl"),a,_);return b(p.createElement("div",MV({},u,{className:T}),p.createElement("div",{className:"".concat(g,"-inner")},E,C),o?m(g,o):null))};async function ORn(e){return Lr("/api/v1/comment/query/org",{method:"GET",params:{...e,client:wr}})}async function RRn(e){return Lr("/api/v1/comment/create",{method:"POST",data:{...e,client:wr}})}async function IRn(e){return Lr("/api/v1/comment/delete",{method:"POST",data:{...e,client:wr}})}const{TextArea:ARn}=Ki,NRn=Po.div` .ant-comment-content-detail { diff --git a/starter/src/main/resources/templates/notebase/assets/infoDiagram-f8f76790-DFiIBbny.js b/deploy/server/notebase/assets/infoDiagram-f8f76790-grTWIixK.js similarity index 98% rename from starter/src/main/resources/templates/notebase/assets/infoDiagram-f8f76790-DFiIBbny.js rename to deploy/server/notebase/assets/infoDiagram-f8f76790-grTWIixK.js index 994e3ebb92..426a17a22a 100644 --- a/starter/src/main/resources/templates/notebase/assets/infoDiagram-f8f76790-DFiIBbny.js +++ b/deploy/server/notebase/assets/infoDiagram-f8f76790-grTWIixK.js @@ -1,4 +1,4 @@ -import{l as Y,N as D,i as M}from"./mermaid.core-BajzCmnv.js";import"./index-CLWgAZNI.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,j=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>j&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`: +import{l as Y,N as D,i as M}from"./mermaid.core-DacimPk4.js";import"./index-bOgutTC1.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,j=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>j&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`: `+o.showPosition()+` Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(v+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(h[1]),l=null,L=o.yyleng,P=o.yytext,v=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],_.$=r[r.length-c],_._$={first_line:i[i.length-(c||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(c||1)].first_column,last_column:i[i.length-1].last_column},z&&(_._$.range=[i[i.length-(c||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(_,[P,L,v,p.yy,h[1],r,i].concat(R)),typeof w<"u")return w;c&&(n=n.slice(0,-1*c*2),r=r.slice(0,-1*c),i=i.slice(0,-1*c)),n.push(this.productions_[h[1]][0]),r.push(_.$),i.push(_._$),F=d[n[n.length-2]][n[n.length-1]],n.push(F);break;case 3:return!0}}return!0}},k=function(){var u={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/journeyDiagram-49397b02-D3yzpSN_.js b/deploy/server/notebase/assets/journeyDiagram-49397b02-Bv4S8x0v.js similarity index 98% rename from deploy/server/notebase/assets/journeyDiagram-49397b02-D3yzpSN_.js rename to deploy/server/notebase/assets/journeyDiagram-49397b02-Bv4S8x0v.js index 69ee1f4383..36f685a63f 100644 --- a/deploy/server/notebase/assets/journeyDiagram-49397b02-D3yzpSN_.js +++ b/deploy/server/notebase/assets/journeyDiagram-49397b02-Bv4S8x0v.js @@ -1,4 +1,4 @@ -import{c as A,A as yt,B as ft,s as dt,g as pt,b as gt,a as mt,C as xt,h as W,i as kt}from"./mermaid.core-BajzCmnv.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-08f97a94-Cb_6H50Z.js";import"./index-CLWgAZNI.js";import{a as Q}from"./arc-DCwD3PI6.js";import"./path-CbwjOpE9.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var T;return T=u.pop()||x.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,E,b,O,C={},N,$,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`: +import{c as A,A as yt,B as ft,s as dt,g as pt,b as gt,a as mt,C as xt,h as W,i as kt}from"./mermaid.core-DacimPk4.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-08f97a94-CD3fOJ0l.js";import"./index-bOgutTC1.js";import{a as Q}from"./arc-UQ4BAf3M.js";import"./path-CbwjOpE9.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var T;return T=u.pop()||x.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,E,b,O,C={},N,$,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`: `+x.showPosition()+` Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":q="Parse error on line "+(R+1)+": Unexpected "+(_==J?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(q,{text:x.match,token:this.terminals_[_]||_,line:x.yylineno,loc:Y,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),d.push(x.yytext),o.push(x.yylloc),a.push(b[1]),_=null,Z=x.yyleng,k=x.yytext,R=x.yylineno,Y=x.yylloc;break;case 2:if($=this.productions_[b[1]][1],C.$=d[d.length-$],C._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},ht&&(C._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),O=this.performAction.apply(C,[k,Z,R,S.yy,b[1],d,o].concat(ct)),typeof O<"u")return O;$&&(a=a.slice(0,-1*$*2),d=d.slice(0,-1*$),o=o.slice(0,-1*$)),a.push(this.productions_[b[1]][0]),d.push(C.$),o.push(C._$),K=w[a[a.length-2]][a[a.length-1]],a.push(K);break;case 3:return!0}}return!0}},m=function(){var p={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(s,r){return this.yy=r||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var r=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),r=new Array(s.length+1).join("-");return s+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/layout-Cg9I2QIy.js b/deploy/server/notebase/assets/layout-DPudLDYQ.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/layout-Cg9I2QIy.js rename to deploy/server/notebase/assets/layout-DPudLDYQ.js index decb6079c7..853fe25a5c 100644 --- a/starter/src/main/resources/templates/notebase/assets/layout-Cg9I2QIy.js +++ b/deploy/server/notebase/assets/layout-DPudLDYQ.js @@ -1 +1 @@ -import{a as F,b as gn,c as zn,d as L,k as Xn,e as Hn,g as Un,j as P,l as xn,m as En,n as kn,t as Jn,o as yn,p as Kn,q as jn,f as s,G as x,h as w,i as g,r as M,v as y,s as Y}from"./graph-CNSoCPH1.js";import{B as A,C as Zn,D as Qn,E as Nn,F as B,G as Ln,H as ne,e as _n,f as K,I as ee,J as re,K as j,L as te,N as Cn,O as ie,P as ae,n as U}from"./index-CLWgAZNI.js";var oe=/\s/;function ue(n){for(var e=n.length;e--&&oe.test(n.charAt(e)););return e}var de=/^\s+/;function fe(n){return n&&n.slice(0,ue(n)+1).replace(de,"")}var un=NaN,se=/^[-+]0x[0-9a-f]+$/i,ce=/^0b[01]+$/i,he=/^0o[0-7]+$/i,le=parseInt;function ve(n){if(typeof n=="number")return n;if(F(n))return un;if(A(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=A(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=fe(n);var r=ce.test(n);return r||he.test(n)?le(n.slice(2),r?2:8):se.test(n)?un:+n}var dn=1/0,pe=17976931348623157e292;function S(n){if(!n)return n===0?n:0;if(n=ve(n),n===dn||n===-dn){var e=n<0?-1:1;return e*pe}return n===n?n:0}function we(n){var e=S(n),r=e%1;return e===e?r?e-r:e:0}function _(n){var e=n==null?0:n.length;return e?gn(n):[]}function me(n){return Zn(Qn(n,void 0,_),n+"")}var be=1,ge=4;function xe(n){return zn(n,be|ge)}var In=Object.prototype,Ee=In.hasOwnProperty,ke=Nn(function(n,e){n=Object(n);var r=-1,t=e.length,i=t>2?e[2]:void 0;for(i&&B(e[0],e[1],i)&&(t=1);++r-1?i[o?e[a]:a]:void 0}}var Ne=Math.max;function Le(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:we(r);return i<0&&(i=Ne(t+i,0)),Hn(n,L(e),i)}var Z=ye(Le);function Rn(n,e){var r=-1,t=_n(n)?Array(n.length):[];return Un(n,function(i,o,a){t[++r]=e(i,o,a)}),t}function m(n,e){var r=K(n)?P:Rn;return r(n,L(e))}function _e(n,e){return n==null?n:ee(n,xn(e),Ln)}function Ce(n,e){return n&&En(n,xn(e))}function Ie(n,e){return n>e}function Tn(n,e){return ne||o&&a&&d&&!u&&!f||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!f&&n=u)return d;var f=r[t];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Se(n,e,r){e.length?e=P(e,function(o){return K(o)?function(a){return yn(a,o.length===1?o[0]:o)}:o}):e=[j];var t=-1;e=P(e,ie(L));var i=Rn(n,function(o,a,u){var d=P(e,function(f){return f(o)});return{criteria:d,index:++t,value:o}});return Me(i,function(o,a){return Pe(o,a,r)})}function Fe(n,e){return Te(n,e,function(r,t){return Kn(n,t)})}var V=me(function(n,e){return n==null?{}:Fe(n,e)}),Ae=Math.ceil,Be=Math.max;function Ge(n,e,r,t){for(var i=-1,o=Be(Ae((e-n)/(r||1)),0),a=Array(o);o--;)a[++i]=n,n+=r;return a}function Ve(n){return function(e,r,t){return t&&typeof t!="number"&&B(e,r,t)&&(r=t=void 0),e=S(e),r===void 0?(r=e,e=0):r=S(r),t=t===void 0?e1&&B(n,e[0],e[1])?e=[]:r>2&&B(e[0],e[1],e[2])&&(e=[e[0]]),Se(n,gn(e),[])}),Ye=0;function en(n){var e=++Ye;return jn(n)+e}function De(n,e,r){for(var t=-1,i=n.length,o=e.length,a={};++t0;--u)if(a=e[u].dequeue(),a){t=t.concat(q(n,e,r,a,!0));break}}}return t}function q(n,e,r,t,i){var o=i?[]:void 0;return s(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,J(e,r,d)}),s(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,J(e,r,f)}),n.removeNode(t.v),o}function Ue(n,e){var r=new x,t=0,i=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var o=N(i+t+3).map(function(){return new qe}),a=t+1;return s(r.nodes(),function(u){J(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function J(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function Je(n){var e=n.graph().acyclicer==="greedy"?Xe(n,r(n)):Ke(n);s(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,en("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function Ke(n){var e=[],r={},t={};function i(o){w(t,o)||(t[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):i(a.w)}),delete r[o])}return s(n.nodes(),i),e}function je(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function C(n,e,r,t){var i;do i=en(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function Ze(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function Mn(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function sn(n,e){var r=n.x,t=n.y,i=e.x-r,o=e.y-t,a=n.width/2,u=n.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,f=u):(i<0&&(a=-a),d=a,f=a*o/i),{x:r+d,y:t+f}}function $(n){var e=m(N(On(n)+1),function(){return[]});return s(n.nodes(),function(r){var t=n.node(r),i=t.rank;g(i)||(e[i][t.order]=r)}),e}function Qe(n){var e=R(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var t=n.node(r);w(t,"rank")&&(t.rank-=e)})}function nr(n){var e=R(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%i!==0?--t:t&&s(o,function(u){n.node(u).rank+=t})})}function cn(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),C(n,"border",i,e)}function On(n){return E(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function er(n,e){var r={lhs:[],rhs:[]};return s(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function rr(n,e){return e()}function tr(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&s(t,e),w(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;oa.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===vn(n,n.node(c.v),u)&&d!==vn(n,n.node(c.w),u)});return nn(f,function(c){return T(e,c)})}function Dn(n,e,r,t){var i=r.v,o=r.w;n.removeEdge(i,o),n.setEdge(t.v,t.w,{}),an(n),tn(n,e),br(n,e)}function br(n,e){var r=Z(n.nodes(),function(i){return!e.node(i).parent}),t=wr(n,r);t=t.slice(1),s(t,function(i){var o=n.node(i).parent,a=e.edge(i,o),u=!1;a||(a=e.edge(o,i),u=!0),e.node(i).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function gr(n,e,r){return n.hasEdge(e,r)}function vn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function xr(n){switch(n.graph().ranker){case"network-simplex":pn(n);break;case"tight-tree":kr(n);break;case"longest-path":Er(n);break;default:pn(n)}}var Er=rn;function kr(n){rn(n),Sn(n)}function pn(n){k(n)}function yr(n){var e=C(n,"root",{},"_root"),r=Nr(n),t=E(y(r))-1,i=2*t+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=i});var o=Lr(n)+1;s(n.children(),function(a){$n(n,e,i,o,t,r,a)}),n.graph().nodeRankFactor=i}function $n(n,e,r,t,i,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=cn(n,"_bt"),f=cn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){$n(n,e,r,t,i,o,h);var l=n.node(h),v=l.borderTop?l.borderTop:h,p=l.borderBottom?l.borderBottom:h,b=l.borderTop?t:2*t,I=v!==p?1:i-o[a]+1;n.setEdge(d,v,{weight:b,minlen:I,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:I,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:i+o[a]})}function Nr(n){var e={};function r(t,i){var o=n.children(t);o&&o.length&&s(o,function(a){r(a,i+1)}),e[t]=i}return s(n.children(),function(t){r(t,1)}),e}function Lr(n){return Y(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function _r(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Cr(n,e,r){var t={},i;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function Ir(n,e,r){var t=Rr(n),i=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=i.edge(f,o),h=g(c)?0:c.weight;i.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),i}function Rr(n){for(var e;n.hasNode(e=en("_root")););return e}function Tr(n,e){for(var r=0,t=1;t0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function Or(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),t=E(m(r,function(u){return n.node(u).rank})),i=m(N(t+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);i[d.rank].push(u),s(n.successors(u),o)}}var a=O(r,function(u){return n.node(u).rank});return s(a,o),i}function Pr(n,e){return m(e,function(r){var t=n.inEdges(r);if(t.length){var i=Y(t,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Sr(n,e){var r={};s(n,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};g(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),s(e.edges(),function(i){var o=r[i.v],a=r[i.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=M(r,function(i){return!i.indegree});return Fr(t)}function Fr(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Ar(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var i=n.pop();e.push(i),s(i.in.reverse(),r(i)),s(i.out,t(i))}return m(M(e,function(o){return!o.merged}),function(o){return V(o,["vs","i","barycenter","weight"])})}function Ar(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function Br(n,e){var r=er(n,function(c){return w(c,"barycenter")}),t=r.lhs,i=O(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;t.sort(Gr(!!e)),d=wn(o,i,d),s(t,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=wn(o,i,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function wn(n,e,r){for(var t;e.length&&(t=G(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Gr(n){return function(e,r){return e.barycenterr.barycenter?1:n?r.i-e.i:e.i-r.i}}function qn(n,e,r,t){var i=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=M(i,function(p){return p!==a&&p!==u}));var f=Pr(n,i);s(f,function(p){if(n.children(p.v).length){var b=qn(n,p.v,r,t);d[p.v]=b,w(b,"barycenter")&&Yr(p,b)}});var c=Sr(f,r);Vr(c,d);var h=Br(c,t);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var l=n.node(n.predecessors(a)[0]),v=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+v.order)/(h.weight+2),h.weight+=2}return h}function Vr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function Yr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function Dr(n){var e=On(n),r=mn(n,N(1,e+1),"inEdges"),t=mn(n,N(e-1,-1,-1),"outEdges"),i=Or(n);bn(n,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){$r(u%2?r:t,u%4>=2),i=$(n);var f=Tr(n,i);fa||u>e[d].lim));for(f=d,d=t;(d=n.parent(d))!==f;)o.push(d);return{path:i.concat(o.reverse()),lca:f}}function zr(n){var e={},r=0;function t(i){var o=r;s(n.children(i),t),e[i]={low:o,lim:r++}}return s(n.children(),t),e}function Xr(n,e){var r={};function t(i,o){var a=0,u=0,d=i.length,f=G(o);return s(o,function(c,h){var l=Ur(n,c),v=l?n.node(l).order:d;(l||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var I=n.node(b),on=I.order;(onf)&&Wn(r,l,c)})})}function i(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var l=n.predecessors(c);l.length&&(d=n.node(l[0]).order,t(a,f,h,u,d),f=h,u=d)}t(a,f,a.length,d,o.length)}),a}return Y(e,i),r}function Ur(n,e){if(n.node(e).dummy)return Z(n.predecessors(e),function(r){return n.node(r).dummy})}function Wn(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function Jr(n,e,r){if(e>r){var t=e;e=r,r=t}return w(n[e],r)}function Kr(n,e,r,t){var i={},o={},a={};return s(e,function(u){s(u,function(d,f){i[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=t(f);if(c.length){c=O(c,function(b){return a[b]});for(var h=(c.length-1)/2,l=Math.floor(h),v=Math.ceil(h);l<=v;++l){var p=c[l];o[f]===f&&d2?e[2]:void 0;for(i&&B(e[0],e[1],i)&&(t=1);++r-1?i[o?e[a]:a]:void 0}}var Ne=Math.max;function Le(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:we(r);return i<0&&(i=Ne(t+i,0)),Hn(n,L(e),i)}var Z=ye(Le);function Rn(n,e){var r=-1,t=_n(n)?Array(n.length):[];return Un(n,function(i,o,a){t[++r]=e(i,o,a)}),t}function m(n,e){var r=K(n)?P:Rn;return r(n,L(e))}function _e(n,e){return n==null?n:ee(n,xn(e),Ln)}function Ce(n,e){return n&&En(n,xn(e))}function Ie(n,e){return n>e}function Tn(n,e){return ne||o&&a&&d&&!u&&!f||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!f&&n=u)return d;var f=r[t];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Se(n,e,r){e.length?e=P(e,function(o){return K(o)?function(a){return yn(a,o.length===1?o[0]:o)}:o}):e=[j];var t=-1;e=P(e,ie(L));var i=Rn(n,function(o,a,u){var d=P(e,function(f){return f(o)});return{criteria:d,index:++t,value:o}});return Me(i,function(o,a){return Pe(o,a,r)})}function Fe(n,e){return Te(n,e,function(r,t){return Kn(n,t)})}var V=me(function(n,e){return n==null?{}:Fe(n,e)}),Ae=Math.ceil,Be=Math.max;function Ge(n,e,r,t){for(var i=-1,o=Be(Ae((e-n)/(r||1)),0),a=Array(o);o--;)a[++i]=n,n+=r;return a}function Ve(n){return function(e,r,t){return t&&typeof t!="number"&&B(e,r,t)&&(r=t=void 0),e=S(e),r===void 0?(r=e,e=0):r=S(r),t=t===void 0?e1&&B(n,e[0],e[1])?e=[]:r>2&&B(e[0],e[1],e[2])&&(e=[e[0]]),Se(n,gn(e),[])}),Ye=0;function en(n){var e=++Ye;return jn(n)+e}function De(n,e,r){for(var t=-1,i=n.length,o=e.length,a={};++t0;--u)if(a=e[u].dequeue(),a){t=t.concat(q(n,e,r,a,!0));break}}}return t}function q(n,e,r,t,i){var o=i?[]:void 0;return s(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,J(e,r,d)}),s(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,J(e,r,f)}),n.removeNode(t.v),o}function Ue(n,e){var r=new x,t=0,i=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var o=N(i+t+3).map(function(){return new qe}),a=t+1;return s(r.nodes(),function(u){J(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function J(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function Je(n){var e=n.graph().acyclicer==="greedy"?Xe(n,r(n)):Ke(n);s(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,en("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function Ke(n){var e=[],r={},t={};function i(o){w(t,o)||(t[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):i(a.w)}),delete r[o])}return s(n.nodes(),i),e}function je(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function C(n,e,r,t){var i;do i=en(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function Ze(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function Mn(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function sn(n,e){var r=n.x,t=n.y,i=e.x-r,o=e.y-t,a=n.width/2,u=n.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,f=u):(i<0&&(a=-a),d=a,f=a*o/i),{x:r+d,y:t+f}}function $(n){var e=m(N(On(n)+1),function(){return[]});return s(n.nodes(),function(r){var t=n.node(r),i=t.rank;g(i)||(e[i][t.order]=r)}),e}function Qe(n){var e=R(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var t=n.node(r);w(t,"rank")&&(t.rank-=e)})}function nr(n){var e=R(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%i!==0?--t:t&&s(o,function(u){n.node(u).rank+=t})})}function cn(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),C(n,"border",i,e)}function On(n){return E(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function er(n,e){var r={lhs:[],rhs:[]};return s(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function rr(n,e){return e()}function tr(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&s(t,e),w(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;oa.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===vn(n,n.node(c.v),u)&&d!==vn(n,n.node(c.w),u)});return nn(f,function(c){return T(e,c)})}function Dn(n,e,r,t){var i=r.v,o=r.w;n.removeEdge(i,o),n.setEdge(t.v,t.w,{}),an(n),tn(n,e),br(n,e)}function br(n,e){var r=Z(n.nodes(),function(i){return!e.node(i).parent}),t=wr(n,r);t=t.slice(1),s(t,function(i){var o=n.node(i).parent,a=e.edge(i,o),u=!1;a||(a=e.edge(o,i),u=!0),e.node(i).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function gr(n,e,r){return n.hasEdge(e,r)}function vn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function xr(n){switch(n.graph().ranker){case"network-simplex":pn(n);break;case"tight-tree":kr(n);break;case"longest-path":Er(n);break;default:pn(n)}}var Er=rn;function kr(n){rn(n),Sn(n)}function pn(n){k(n)}function yr(n){var e=C(n,"root",{},"_root"),r=Nr(n),t=E(y(r))-1,i=2*t+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=i});var o=Lr(n)+1;s(n.children(),function(a){$n(n,e,i,o,t,r,a)}),n.graph().nodeRankFactor=i}function $n(n,e,r,t,i,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=cn(n,"_bt"),f=cn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){$n(n,e,r,t,i,o,h);var l=n.node(h),v=l.borderTop?l.borderTop:h,p=l.borderBottom?l.borderBottom:h,b=l.borderTop?t:2*t,I=v!==p?1:i-o[a]+1;n.setEdge(d,v,{weight:b,minlen:I,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:I,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:i+o[a]})}function Nr(n){var e={};function r(t,i){var o=n.children(t);o&&o.length&&s(o,function(a){r(a,i+1)}),e[t]=i}return s(n.children(),function(t){r(t,1)}),e}function Lr(n){return Y(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function _r(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Cr(n,e,r){var t={},i;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function Ir(n,e,r){var t=Rr(n),i=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=i.edge(f,o),h=g(c)?0:c.weight;i.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),i}function Rr(n){for(var e;n.hasNode(e=en("_root")););return e}function Tr(n,e){for(var r=0,t=1;t0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function Or(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),t=E(m(r,function(u){return n.node(u).rank})),i=m(N(t+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);i[d.rank].push(u),s(n.successors(u),o)}}var a=O(r,function(u){return n.node(u).rank});return s(a,o),i}function Pr(n,e){return m(e,function(r){var t=n.inEdges(r);if(t.length){var i=Y(t,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Sr(n,e){var r={};s(n,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};g(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),s(e.edges(),function(i){var o=r[i.v],a=r[i.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=M(r,function(i){return!i.indegree});return Fr(t)}function Fr(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Ar(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var i=n.pop();e.push(i),s(i.in.reverse(),r(i)),s(i.out,t(i))}return m(M(e,function(o){return!o.merged}),function(o){return V(o,["vs","i","barycenter","weight"])})}function Ar(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function Br(n,e){var r=er(n,function(c){return w(c,"barycenter")}),t=r.lhs,i=O(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;t.sort(Gr(!!e)),d=wn(o,i,d),s(t,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=wn(o,i,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function wn(n,e,r){for(var t;e.length&&(t=G(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Gr(n){return function(e,r){return e.barycenterr.barycenter?1:n?r.i-e.i:e.i-r.i}}function qn(n,e,r,t){var i=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=M(i,function(p){return p!==a&&p!==u}));var f=Pr(n,i);s(f,function(p){if(n.children(p.v).length){var b=qn(n,p.v,r,t);d[p.v]=b,w(b,"barycenter")&&Yr(p,b)}});var c=Sr(f,r);Vr(c,d);var h=Br(c,t);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var l=n.node(n.predecessors(a)[0]),v=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+v.order)/(h.weight+2),h.weight+=2}return h}function Vr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function Yr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function Dr(n){var e=On(n),r=mn(n,N(1,e+1),"inEdges"),t=mn(n,N(e-1,-1,-1),"outEdges"),i=Or(n);bn(n,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){$r(u%2?r:t,u%4>=2),i=$(n);var f=Tr(n,i);fa||u>e[d].lim));for(f=d,d=t;(d=n.parent(d))!==f;)o.push(d);return{path:i.concat(o.reverse()),lca:f}}function zr(n){var e={},r=0;function t(i){var o=r;s(n.children(i),t),e[i]={low:o,lim:r++}}return s(n.children(),t),e}function Xr(n,e){var r={};function t(i,o){var a=0,u=0,d=i.length,f=G(o);return s(o,function(c,h){var l=Ur(n,c),v=l?n.node(l).order:d;(l||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var I=n.node(b),on=I.order;(onf)&&Wn(r,l,c)})})}function i(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var l=n.predecessors(c);l.length&&(d=n.node(l[0]).order,t(a,f,h,u,d),f=h,u=d)}t(a,f,a.length,d,o.length)}),a}return Y(e,i),r}function Ur(n,e){if(n.node(e).dummy)return Z(n.predecessors(e),function(r){return n.node(r).dummy})}function Wn(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function Jr(n,e,r){if(e>r){var t=e;e=r,r=t}return w(n[e],r)}function Kr(n,e,r,t){var i={},o={},a={};return s(e,function(u){s(u,function(d,f){i[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=t(f);if(c.length){c=O(c,function(b){return a[b]});for(var h=(c.length-1)/2,l=Math.floor(h),v=Math.ceil(h);l<=v;++l){var p=c[l];o[f]===f&&dt?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function Q(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o>>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=Q(F),dn=sn.right;Q(ln).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=gn?10:f>=yn?5:f>=Mn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function jn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function Pn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var zn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=zn.exec(n)))throw new Error("invalid format: "+n);var t;return new X({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=X.prototype;function X(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}X.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $n(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Fn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function U(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const W={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:bn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>U(n*100,t),r:U,s:Fn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function _(n){return n}var H=Array.prototype.map,J=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rn(n){var t=n.grouping===void 0||n.thousands===void 0?_:jn(H.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?_:Pn(H.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,S=h.symbol,k=h.zero,b=h.width,T=h.comma,w=h.precision,B=h.trim,d=h.type;d==="n"?(T=!0,d="g"):W[d]||(w===void 0&&(w=12),B=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",G=W[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function O(m){var N=en,g=on,x,V,j;if(d==="c")g=G(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:G(Math.abs(m),w),B&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?J[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,V=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return O.toString=function(){return h+""},O}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,S=Math.pow(10,-y),k=J[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;En({thousands:",",grouping:[3],currency:["$",""]});function En(n){return $=Rn(n),tn=$.format,rn=$.formatPrefix,$}function Dn(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function In(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function Ln(n){return function(){return n}}function qn(n){return+n}var K=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Ln(isNaN(t)?NaN:.5)}function Cn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Xn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?Bn:Xn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,qn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=Sn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Vn(){return On()(A,A)}function Yn(n,t,e,r){var i=wn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=In(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Dn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Yn(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Un(){var n=Vn();return n.copy=function(){return Gn(n,Un())},cn.apply(n,arguments),Zn(n)}export{Gn as a,Q as b,Vn as c,Un as l,wn as t}; +import{W as un,X as I,Y,Z,_ as fn}from"./mermaid.core-DacimPk4.js";import{i as cn}from"./init-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:nt?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function Q(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o>>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=Q(F),dn=sn.right;Q(ln).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=gn?10:f>=yn?5:f>=Mn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function jn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function Pn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var zn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=zn.exec(n)))throw new Error("invalid format: "+n);var t;return new X({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=X.prototype;function X(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}X.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $n(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Fn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function U(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const W={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:bn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>U(n*100,t),r:U,s:Fn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function _(n){return n}var H=Array.prototype.map,J=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rn(n){var t=n.grouping===void 0||n.thousands===void 0?_:jn(H.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?_:Pn(H.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,S=h.symbol,k=h.zero,b=h.width,T=h.comma,w=h.precision,B=h.trim,d=h.type;d==="n"?(T=!0,d="g"):W[d]||(w===void 0&&(w=12),B=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",G=W[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function O(m){var N=en,g=on,x,V,j;if(d==="c")g=G(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:G(Math.abs(m),w),B&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?J[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,V=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return O.toString=function(){return h+""},O}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,S=Math.pow(10,-y),k=J[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;En({thousands:",",grouping:[3],currency:["$",""]});function En(n){return $=Rn(n),tn=$.format,rn=$.formatPrefix,$}function Dn(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function In(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function Ln(n){return function(){return n}}function qn(n){return+n}var K=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Ln(isNaN(t)?NaN:.5)}function Cn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Xn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?Bn:Xn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,qn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=Sn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Vn(){return On()(A,A)}function Yn(n,t,e,r){var i=wn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=In(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Dn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Yn(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Un(){var n=Vn();return n.copy=function(){return Gn(n,Un())},cn.apply(n,arguments),Zn(n)}export{Gn as a,Q as b,Vn as c,Un as l,wn as t}; diff --git a/deploy/server/notebase/assets/mermaid.core-BajzCmnv.js b/deploy/server/notebase/assets/mermaid.core-DacimPk4.js similarity index 98% rename from deploy/server/notebase/assets/mermaid.core-BajzCmnv.js rename to deploy/server/notebase/assets/mermaid.core-DacimPk4.js index edca66f9a9..86f7aa4833 100644 --- a/deploy/server/notebase/assets/mermaid.core-BajzCmnv.js +++ b/deploy/server/notebase/assets/mermaid.core-DacimPk4.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/c4Diagram-3d4e48cf-CGakpSmd.js","assets/svgDrawCommon-08f97a94-Cb_6H50Z.js","assets/index-CLWgAZNI.js","assets/index-DltfDjaU.css","assets/flowDiagram-66a62f08-UGVc-n6K.js","assets/flowDb-956e92f1-AKrTXLR1.js","assets/graph-CNSoCPH1.js","assets/layout-Cg9I2QIy.js","assets/styles-c10674c1-DZh7AwrX.js","assets/index-3862675e-C5iJKLK2.js","assets/clone-CJLsyeCN.js","assets/edges-e0da2a9e-121Kky2V.js","assets/createText-2e5e7dd3-CXwUql3o.js","assets/line-CH9gKq5B.js","assets/array-BKyUJesY.js","assets/path-CbwjOpE9.js","assets/channel--_OxL60w.js","assets/flowDiagram-v2-96b9c2cf-2GL1AVRC.js","assets/erDiagram-9861fffd-DqfFxAvA.js","assets/gitGraphDiagram-72cf32ee-KzmtmPZb.js","assets/ganttDiagram-c361ad54-XfGTrVgm.js","assets/linear-DTRuWJOk.js","assets/init-Gi6I4Gst.js","assets/infoDiagram-f8f76790-DFiIBbny.js","assets/pieDiagram-8a3498a8-EafKsBAO.js","assets/arc-DCwD3PI6.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-120e2f19-8vv_6TNi.js","assets/xychartDiagram-e933f94c--91O5qLe.js","assets/requirementDiagram-deff3bca-C7te2cZt.js","assets/sequenceDiagram-704730f1-SW2l45_G.js","assets/classDiagram-70f12bd4-BwtI_QSR.js","assets/styles-9a916d00-BHajR6jW.js","assets/classDiagram-v2-f2320105-CNrZSAbx.js","assets/stateDiagram-587899a1-Cq6WQ8Vn.js","assets/styles-6aaf32cf-CNcbqEDz.js","assets/stateDiagram-v2-d93cdb3a-BwNs18zh.js","assets/journeyDiagram-49397b02-D3yzpSN_.js","assets/flowchart-elk-definition-4a651766-DLndsX9w.js","assets/timeline-definition-85554ec2-CvJeyBUi.js","assets/mindmap-definition-fc14e90a-CRNQVvtP.js","assets/sankeyDiagram-04a897e0-ySFe1tss.js","assets/Tableau10-B-NsZVaP.js","assets/blockDiagram-38ab4fdb-Drr0MnjZ.js"])))=>i.map(i=>d[i]); -import{o as Ua,i as Mo,b as Si,c as wi,t as le,d as Io,M as cr,e as Ya,f as Va,h as ja,j as Ga,k as Xa,l as Oo,m as Ka,n as Za,s as Qa,p as Ja,q as tl,_ as I}from"./index-CLWgAZNI.js";var el=Ua(Object.keys,Object),il=Object.prototype,rl=il.hasOwnProperty;function nl(t){if(!Mo(t))return el(t);var e=[];for(var i in Object(t))rl.call(t,i)&&i!="constructor"&&e.push(i);return e}var ur=Si(wi,"DataView"),dr=Si(wi,"Promise"),fr=Si(wi,"Set"),pr=Si(wi,"WeakMap"),En="[object Map]",ol="[object Object]",Mn="[object Promise]",In="[object Set]",On="[object WeakMap]",Dn="[object DataView]",sl=le(ur),al=le(cr),ll=le(dr),hl=le(fr),cl=le(pr),Ot=Io;(ur&&Ot(new ur(new ArrayBuffer(1)))!=Dn||cr&&Ot(new cr)!=En||dr&&Ot(dr.resolve())!=Mn||fr&&Ot(new fr)!=In||pr&&Ot(new pr)!=On)&&(Ot=function(t){var e=Io(t),i=e==ol?t.constructor:void 0,r=i?le(i):"";if(r)switch(r){case sl:return Dn;case al:return En;case ll:return Mn;case hl:return In;case cl:return On}return e});var ul="[object Map]",dl="[object Set]",fl=Object.prototype,pl=fl.hasOwnProperty;function Zi(t){if(t==null)return!0;if(Ya(t)&&(Va(t)||typeof t=="string"||typeof t.splice=="function"||ja(t)||Ga(t)||Xa(t)))return!t.length;var e=Ot(t);if(e==ul||e==dl)return!t.size;if(Mo(t))return!nl(t).length;for(var i in t)if(pl.call(t,i))return!1;return!0}var gl="Expected a function";function Re(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(gl);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(Re.Cache||Oo),i}Re.Cache=Oo;function ml(t){for(var e=[],i=1;ii.map(i=>d[i]); +import{o as Ua,i as Mo,b as Si,c as wi,t as le,d as Io,M as cr,e as Ya,f as Va,h as ja,j as Ga,k as Xa,l as Oo,m as Ka,n as Za,s as Qa,p as Ja,q as tl,_ as I}from"./index-bOgutTC1.js";var el=Ua(Object.keys,Object),il=Object.prototype,rl=il.hasOwnProperty;function nl(t){if(!Mo(t))return el(t);var e=[];for(var i in Object(t))rl.call(t,i)&&i!="constructor"&&e.push(i);return e}var ur=Si(wi,"DataView"),dr=Si(wi,"Promise"),fr=Si(wi,"Set"),pr=Si(wi,"WeakMap"),En="[object Map]",ol="[object Object]",Mn="[object Promise]",In="[object Set]",On="[object WeakMap]",Dn="[object DataView]",sl=le(ur),al=le(cr),ll=le(dr),hl=le(fr),cl=le(pr),Ot=Io;(ur&&Ot(new ur(new ArrayBuffer(1)))!=Dn||cr&&Ot(new cr)!=En||dr&&Ot(dr.resolve())!=Mn||fr&&Ot(new fr)!=In||pr&&Ot(new pr)!=On)&&(Ot=function(t){var e=Io(t),i=e==ol?t.constructor:void 0,r=i?le(i):"";if(r)switch(r){case sl:return Dn;case al:return En;case ll:return Mn;case hl:return In;case cl:return On}return e});var ul="[object Map]",dl="[object Set]",fl=Object.prototype,pl=fl.hasOwnProperty;function Zi(t){if(t==null)return!0;if(Ya(t)&&(Va(t)||typeof t=="string"||typeof t.splice=="function"||ja(t)||Ga(t)||Xa(t)))return!t.length;var e=Ot(t);if(e==ul||e==dl)return!t.size;if(Mo(t))return!nl(t).length;for(var i in t)if(pl.call(t,i))return!1;return!0}var gl="Expected a function";function Re(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(gl);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(Re.Cache||Oo),i}Re.Cache=Oo;function ml(t){for(var e=[],i=1;i `:`
${r}
`).join("").replace(Sr,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:po()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(//g,""))},zr={getRows:kd,sanitizeText:De,sanitizeTextOrArray:wd,hasBreaks:Bd,splitBreaks:Ad,lineBreakRegex:ze,removeScript:Bs,getUrl:Fd,evaluate:Ls,getMax:Ed,getMin:Md},j=(t,e)=>e?f(t,{s:-40,l:10}):f(t,{s:-40,l:-10}),Ii="#ffffff",Oi="#f2f2f2";let Nd=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||f(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||f(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||j(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||j(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||j(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||_(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||_(this.tertiaryColor),this.lineColor=this.lineColor||_(this.background),this.arrowheadColor=this.arrowheadColor||_(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?S(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||S(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||_(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||b(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||f(this.primaryColor,{h:30}),this.cScale4=this.cScale4||f(this.primaryColor,{h:60}),this.cScale5=this.cScale5||f(this.primaryColor,{h:90}),this.cScale6=this.cScale6||f(this.primaryColor,{h:120}),this.cScale7=this.cScale7||f(this.primaryColor,{h:150}),this.cScale8=this.cScale8||f(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||f(this.primaryColor,{h:270}),this.cScale10=this.cScale10||f(this.primaryColor,{h:300}),this.cScale11=this.cScale11||f(this.primaryColor,{h:330}),this.darkMode)for(let g=0;g{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Rd=t=>{const e=new Nd;return e.calculate(t),e};let Pd=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=b(this.primaryColor,16),this.tertiaryColor=f(this.primaryColor,{h:-160}),this.primaryBorderColor=_(this.background),this.secondaryBorderColor=j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=j(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=b(_("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Be(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=S("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=S(this.sectionBkgColor,10),this.taskBorderColor=Be(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Be(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;this.secondBkg=b(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=b(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=b(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=f(this.primaryColor,{h:64}),this.fillType3=f(this.secondaryColor,{h:64}),this.fillType4=f(this.primaryColor,{h:-64}),this.fillType5=f(this.secondaryColor,{h:-64}),this.fillType6=f(this.primaryColor,{h:128}),this.fillType7=f(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||f(this.primaryColor,{h:30}),this.cScale4=this.cScale4||f(this.primaryColor,{h:60}),this.cScale5=this.cScale5||f(this.primaryColor,{h:90}),this.cScale6=this.cScale6||f(this.primaryColor,{h:120}),this.cScale7=this.cScale7||f(this.primaryColor,{h:150}),this.cScale8=this.cScale8||f(this.primaryColor,{h:210}),this.cScale9=this.cScale9||f(this.primaryColor,{h:270}),this.cScale10=this.cScale10||f(this.primaryColor,{h:300}),this.cScale11=this.cScale11||f(this.primaryColor,{h:330});for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const qd=t=>{const e=new Pd;return e.calculate(t),e};let $d=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=f(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=f(this.primaryColor,{h:-160}),this.primaryBorderColor=j(this.primaryColor,this.darkMode),this.secondaryBorderColor=j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=j(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Be(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||f(this.primaryColor,{h:30}),this.cScale4=this.cScale4||f(this.primaryColor,{h:60}),this.cScale5=this.cScale5||f(this.primaryColor,{h:90}),this.cScale6=this.cScale6||f(this.primaryColor,{h:120}),this.cScale7=this.cScale7||f(this.primaryColor,{h:150}),this.cScale8=this.cScale8||f(this.primaryColor,{h:210}),this.cScale9=this.cScale9||f(this.primaryColor,{h:270}),this.cScale10=this.cScale10||f(this.primaryColor,{h:300}),this.cScale11=this.cScale11||f(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||S(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||S(this.tertiaryColor,40);for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const zd=t=>{const e=new $d;return e.calculate(t),e};let Wd=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=b("#cde498",10),this.primaryBorderColor=j(this.primaryColor,this.darkMode),this.secondaryBorderColor=j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=j(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.primaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;this.actorBorder=S(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||f(this.primaryColor,{h:30}),this.cScale4=this.cScale4||f(this.primaryColor,{h:60}),this.cScale5=this.cScale5||f(this.primaryColor,{h:90}),this.cScale6=this.cScale6||f(this.primaryColor,{h:120}),this.cScale7=this.cScale7||f(this.primaryColor,{h:150}),this.cScale8=this.cScale8||f(this.primaryColor,{h:210}),this.cScale9=this.cScale9||f(this.primaryColor,{h:270}),this.cScale10=this.cScale10||f(this.primaryColor,{h:300}),this.cScale11=this.cScale11||f(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||S(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||S(this.tertiaryColor,40);for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Hd=t=>{const e=new Wd;return e.calculate(t),e};class Ud{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=b(this.contrast,55),this.background="#ffffff",this.tertiaryColor=f(this.primaryColor,{h:-160}),this.primaryBorderColor=j(this.primaryColor,this.darkMode),this.secondaryBorderColor=j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=j(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;this.secondBkg=b(this.contrast,55),this.border2=this.contrast,this.actorBorder=b(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const Yd=t=>{const e=new Ud;return e.calculate(t),e},wt={base:{getThemeVariables:Rd},dark:{getThemeVariables:qd},default:{getThemeVariables:zd},forest:{getThemeVariables:Hd},neutral:{getThemeVariables:Yd}},vt={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Fs={...vt,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:wt.default.getThemeVariables(),sequence:{...vt.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...vt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...vt.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...vt.pie,useWidth:984},xyChart:{...vt.xyChart,useWidth:void 0},requirement:{...vt.requirement,useWidth:void 0},gitGraph:{...vt.gitGraph,useMaxWidth:!1},sankey:{...vt.sankey,useMaxWidth:!1}},Es=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Es(t[r],"")]:[...i,e+r],[]),Vd=new Set(Es(Fs,"")),jd=Fs,mi=t=>{if(k.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>mi(e));return}for(const e of Object.keys(t)){if(k.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Vd.has(e)||t[e]==null){k.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){k.debug("sanitizing object",e),mi(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(k.debug("sanitizing css option",e),t[e]=Gd(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}k.debug("After sanitization",t)}},Gd=t=>{let e=0,i=0;for(const r of t){if(e{for(const{id:e,detector:i,loader:r}of t)Ds(e,i,r)},Ds=(t,e,i)=>{ne[t]?k.error(`Detector with key ${t} already exists`):ne[t]={detector:e,loader:i},k.debug(`Detector with key ${t} added${i?" with loader":""}`)},Kd=t=>ne[t].loader,wr=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>wr(t,o,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=wr(t[o],e[o],{depth:i-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},W=wr,Zd="​",Qd={curveBasis:Ou,curveBasisClosed:Du,curveBasisOpen:Nu,curveBumpX:Mu,curveBumpY:Iu,curveBundle:Ru,curveCardinalClosed:qu,curveCardinalOpen:$u,curveCardinal:Pu,curveCatmullRomClosed:Wu,curveCatmullRomOpen:Hu,curveCatmullRom:zu,curveLinear:Eu,curveLinearClosed:Uu,curveMonotoneX:Yu,curveMonotoneY:Vu,curveNatural:ju,curveStep:Gu,curveStepAfter:Ku,curveStepBefore:Xu},Jd=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,tf=function(t,e){const i=Ns(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const s=i.map(a=>a.args);mi(s),r=W(r,[...s])}else r=i.args;if(!r)return;let n=Di(t,e);const o="config";return r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o]),r},Ns=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${Jd.source})(?=[}][%]{2}).* -`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),k.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=Ae.exec(t))!==null;)if(r.index===Ae.lastIndex&&Ae.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return k.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},ef=function(t){return t.replace(Ae,"")},rf=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function nf(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Qd[i]??e}function of(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Do.sanitizeUrl(i):i}const sf=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s{i+=Rs(n,e),e=n});const r=i/2;return Wr(t,r)}function lf(t){return t.length===1?t[0]:af(t)}const mo=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Wr=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=Rs(n,i);if(o=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:mo((1-s)*i.x+s*n.x,5),y:mo((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},hf=(t,e,i)=>{k.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Wr(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function cf(t,e,i){const r=structuredClone(i);k.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Wr(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function uf(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let _o=0;const df=()=>(_o++,"id-"+Math.random().toString(36).substr(2,12)+"-"+_o);function ff(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;nff(t.length),gf=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},mf=function(t,e){const i=e.text.replace(zr.lineBreakRegex," "),[,r]=Ur(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},_f=Re((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},i),zr.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=_i(`${s} `,i),c=_i(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:g}=yf(s,e,"-",i);n.push(o,...h),o=g}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),yf=Re((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(_i(c,r)>=e){const p=l+1,h=n.length===p,g=`${c}${i}`;o.push(h?c:g),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Cf(t,e){return Hr(t,e).height}function _i(t,e){return Hr(t,e).width}const Hr=Re((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Ur(i),s=["sans-serif",r],a=t.split(zr.lineBreakRegex),l=[],c=ot("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let g=0;const y={width:0,height:0,lineHeight:0};for(const w of a){const v=gf();v.text=w||Zd;const E=mf(u,v).style("font-size",o).style("font-weight",n).style("font-family",h),B=(E._groups||E)[0][0].getBBox();if(B.width===0&&B.height===0)throw new Error("svg element not in render tree");y.width=Math.round(Math.max(y.width,B.width)),g=Math.round(B.height),y.height+=g,y.lineHeight=Math.round(Math.max(y.lineHeight,g))}l.push(y)}u.remove();const p=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[p]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class xf{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let ti;const bf=function(t){return ti=ti||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ti.innerHTML=t,unescape(ti.textContent)};function Ps(t){return"str"in t}const Tf=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Ur=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function qs(t,e){return Za({},t,e)}const Le={assignWithDepth:W,wrapLabel:_f,calculateTextHeight:Cf,calculateTextWidth:_i,calculateTextDimensions:Hr,cleanAndMerge:qs,detectInit:tf,detectDirective:Ns,isSubstringInArray:rf,interpolateToCurve:nf,calcLabelPosition:lf,calcCardinalityPosition:hf,calcTerminalLabelPosition:cf,formatUrl:of,getStylesFromArray:uf,generateId:df,random:pf,runFunc:sf,entityDecode:bf,insertTitle:Tf,parseFontSize:Ur,InitIDGenerator:xf},kf=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},vf=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},yo="10.9.3",oe=Object.freeze(jd);let K=W({},oe),$s,se=[],Fe=W({},oe);const Ni=(t,e)=>{let i=W({},t),r={};for(const n of e)Hs(n),r=W(r,n);if(i=W(i,r),r.theme&&r.theme in wt){const n=W({},$s),o=W(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in wt&&(i.themeVariables=wt[i.theme].getThemeVariables(o))}return Fe=i,Us(Fe),Fe},Sf=t=>(K=W({},oe),K=W(K,t),t.theme&&wt[t.theme]&&(K.themeVariables=wt[t.theme].getThemeVariables(t.themeVariables)),Ni(K,se),K),wf=t=>{$s=W({},t)},Bf=t=>(K=W(K,t),Ni(K,se),K),zs=()=>W({},K),Ws=t=>(Us(t),W(Fe,t),_t()),_t=()=>W({},Fe),Hs=t=>{t&&(["secure",...K.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(k.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Hs(t[e])}))},Af=t=>{mi(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),se.push(t),Ni(K,se)},yi=(t=K)=>{se=[],Ni(t,se)},Lf={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Co={},Ff=t=>{Co[t]||(k.warn(Lf[t]),Co[t]=!0)},Us=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Ff("LAZY_LOAD_DEPRECATED")},Ys="c4",Ef=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),Mf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./c4Diagram-3d4e48cf-CGakpSmd.js");return{diagram:e}},__vite__mapDeps([0,1,2,3]));return{id:Ys,diagram:t}},If={id:Ys,detector:Ef,loader:Mf},Of=If,Vs="flowchart",Df=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},Nf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowDiagram-66a62f08-UGVc-n6K.js");return{diagram:e}},__vite__mapDeps([4,5,6,2,3,7,8,9,10,11,12,13,14,15,16]));return{id:Vs,diagram:t}},Rf={id:Vs,detector:Df,loader:Nf},Pf=Rf,js="flowchart-v2",qf=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},$f=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowDiagram-v2-96b9c2cf-2GL1AVRC.js");return{diagram:e}},__vite__mapDeps([17,5,8,6,2,3,9,7,10,11,12,13,14,15,16]));return{id:js,diagram:t}},zf={id:js,detector:qf,loader:$f},Wf=zf,Gs="er",Hf=t=>/^\s*erDiagram/.test(t),Uf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./erDiagram-9861fffd-DqfFxAvA.js");return{diagram:e}},__vite__mapDeps([18,6,2,3,7,13,14,15]));return{id:Gs,diagram:t}},Yf={id:Gs,detector:Hf,loader:Uf},Vf=Yf,Xs="gitGraph",jf=t=>/^\s*gitGraph/.test(t),Gf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./gitGraphDiagram-72cf32ee-KzmtmPZb.js");return{diagram:e}},__vite__mapDeps([19,2,3]));return{id:Xs,diagram:t}},Xf={id:Xs,detector:jf,loader:Gf},Kf=Xf,Ks="gantt",Zf=t=>/^\s*gantt/.test(t),Qf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./ganttDiagram-c361ad54-XfGTrVgm.js");return{diagram:e}},__vite__mapDeps([20,2,3,21,22]));return{id:Ks,diagram:t}},Jf={id:Ks,detector:Zf,loader:Qf},tp=Jf,Zs="info",ep=t=>/^\s*info/.test(t),ip=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./infoDiagram-f8f76790-DFiIBbny.js");return{diagram:e}},__vite__mapDeps([23,2,3]));return{id:Zs,diagram:t}},rp={id:Zs,detector:ep,loader:ip},Qs="pie",np=t=>/^\s*pie/.test(t),op=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./pieDiagram-8a3498a8-EafKsBAO.js");return{diagram:e}},__vite__mapDeps([24,2,3,25,15,26,22,14]));return{id:Qs,diagram:t}},sp={id:Qs,detector:np,loader:op},Js="quadrantChart",ap=t=>/^\s*quadrantChart/.test(t),lp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./quadrantDiagram-120e2f19-8vv_6TNi.js");return{diagram:e}},__vite__mapDeps([27,2,3,21,22]));return{id:Js,diagram:t}},hp={id:Js,detector:ap,loader:lp},cp=hp,ta="xychart",up=t=>/^\s*xychart-beta/.test(t),dp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./xychartDiagram-e933f94c--91O5qLe.js");return{diagram:e}},__vite__mapDeps([28,12,2,3,22,26,21,13,14,15]));return{id:ta,diagram:t}},fp={id:ta,detector:up,loader:dp},pp=fp,ea="requirement",gp=t=>/^\s*requirement(Diagram)?/.test(t),mp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./requirementDiagram-deff3bca-C7te2cZt.js");return{diagram:e}},__vite__mapDeps([29,6,2,3,7,13,14,15]));return{id:ea,diagram:t}},_p={id:ea,detector:gp,loader:mp},yp=_p,ia="sequence",Cp=t=>/^\s*sequenceDiagram/.test(t),xp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./sequenceDiagram-704730f1-SW2l45_G.js");return{diagram:e}},__vite__mapDeps([30,1,2,3]));return{id:ia,diagram:t}},bp={id:ia,detector:Cp,loader:xp},Tp=bp,ra="class",kp=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},vp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./classDiagram-70f12bd4-BwtI_QSR.js");return{diagram:e}},__vite__mapDeps([31,32,6,2,3,7,13,14,15]));return{id:ra,diagram:t}},Sp={id:ra,detector:kp,loader:vp},wp=Sp,na="classDiagram",Bp=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Ap=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./classDiagram-v2-f2320105-CNrZSAbx.js");return{diagram:e}},__vite__mapDeps([33,32,6,2,3,9,7,10,11,12,13,14,15]));return{id:na,diagram:t}},Lp={id:na,detector:Bp,loader:Ap},Fp=Lp,oa="state",Ep=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},Mp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./stateDiagram-587899a1-Cq6WQ8Vn.js");return{diagram:e}},__vite__mapDeps([34,35,6,2,3,7,13,14,15]));return{id:oa,diagram:t}},Ip={id:oa,detector:Ep,loader:Mp},Op=Ip,sa="stateDiagram",Dp=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},Np=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./stateDiagram-v2-d93cdb3a-BwNs18zh.js");return{diagram:e}},__vite__mapDeps([36,35,6,2,3,9,7,10,11,12,13,14,15]));return{id:sa,diagram:t}},Rp={id:sa,detector:Dp,loader:Np},Pp=Rp,aa="journey",qp=t=>/^\s*journey/.test(t),$p=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./journeyDiagram-49397b02-D3yzpSN_.js");return{diagram:e}},__vite__mapDeps([37,1,2,3,25,15]));return{id:aa,diagram:t}},zp={id:aa,detector:qp,loader:$p},Wp=zp,Hp=function(t,e){for(let i of e)t.attr(i[0],i[1])},Up=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},la=function(t,e,i,r){const n=Up(e,i,r);Hp(t,n)},Yp=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;k.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;k.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,k.info(`Calculated bounds: ${a}x${l}`),la(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},si={},Vp=(t,e,i)=>{let r="";return t in si&&si[t]?r=si[t](i):k.warn(`No theme found for ${t}`),` & { +`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),k.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=Ae.exec(t))!==null;)if(r.index===Ae.lastIndex&&Ae.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return k.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},ef=function(t){return t.replace(Ae,"")},rf=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function nf(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Qd[i]??e}function of(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Do.sanitizeUrl(i):i}const sf=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s{i+=Rs(n,e),e=n});const r=i/2;return Wr(t,r)}function lf(t){return t.length===1?t[0]:af(t)}const mo=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Wr=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=Rs(n,i);if(o=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:mo((1-s)*i.x+s*n.x,5),y:mo((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},hf=(t,e,i)=>{k.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Wr(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function cf(t,e,i){const r=structuredClone(i);k.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Wr(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function uf(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let _o=0;const df=()=>(_o++,"id-"+Math.random().toString(36).substr(2,12)+"-"+_o);function ff(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;nff(t.length),gf=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},mf=function(t,e){const i=e.text.replace(zr.lineBreakRegex," "),[,r]=Ur(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},_f=Re((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},i),zr.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=_i(`${s} `,i),c=_i(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:g}=yf(s,e,"-",i);n.push(o,...h),o=g}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),yf=Re((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(_i(c,r)>=e){const p=l+1,h=n.length===p,g=`${c}${i}`;o.push(h?c:g),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Cf(t,e){return Hr(t,e).height}function _i(t,e){return Hr(t,e).width}const Hr=Re((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Ur(i),s=["sans-serif",r],a=t.split(zr.lineBreakRegex),l=[],c=ot("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let g=0;const y={width:0,height:0,lineHeight:0};for(const w of a){const v=gf();v.text=w||Zd;const E=mf(u,v).style("font-size",o).style("font-weight",n).style("font-family",h),B=(E._groups||E)[0][0].getBBox();if(B.width===0&&B.height===0)throw new Error("svg element not in render tree");y.width=Math.round(Math.max(y.width,B.width)),g=Math.round(B.height),y.height+=g,y.lineHeight=Math.round(Math.max(y.lineHeight,g))}l.push(y)}u.remove();const p=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[p]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class xf{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let ti;const bf=function(t){return ti=ti||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ti.innerHTML=t,unescape(ti.textContent)};function Ps(t){return"str"in t}const Tf=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Ur=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function qs(t,e){return Za({},t,e)}const Le={assignWithDepth:W,wrapLabel:_f,calculateTextHeight:Cf,calculateTextWidth:_i,calculateTextDimensions:Hr,cleanAndMerge:qs,detectInit:tf,detectDirective:Ns,isSubstringInArray:rf,interpolateToCurve:nf,calcLabelPosition:lf,calcCardinalityPosition:hf,calcTerminalLabelPosition:cf,formatUrl:of,getStylesFromArray:uf,generateId:df,random:pf,runFunc:sf,entityDecode:bf,insertTitle:Tf,parseFontSize:Ur,InitIDGenerator:xf},kf=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},vf=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},yo="10.9.3",oe=Object.freeze(jd);let K=W({},oe),$s,se=[],Fe=W({},oe);const Ni=(t,e)=>{let i=W({},t),r={};for(const n of e)Hs(n),r=W(r,n);if(i=W(i,r),r.theme&&r.theme in wt){const n=W({},$s),o=W(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in wt&&(i.themeVariables=wt[i.theme].getThemeVariables(o))}return Fe=i,Us(Fe),Fe},Sf=t=>(K=W({},oe),K=W(K,t),t.theme&&wt[t.theme]&&(K.themeVariables=wt[t.theme].getThemeVariables(t.themeVariables)),Ni(K,se),K),wf=t=>{$s=W({},t)},Bf=t=>(K=W(K,t),Ni(K,se),K),zs=()=>W({},K),Ws=t=>(Us(t),W(Fe,t),_t()),_t=()=>W({},Fe),Hs=t=>{t&&(["secure",...K.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(k.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Hs(t[e])}))},Af=t=>{mi(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),se.push(t),Ni(K,se)},yi=(t=K)=>{se=[],Ni(t,se)},Lf={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Co={},Ff=t=>{Co[t]||(k.warn(Lf[t]),Co[t]=!0)},Us=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Ff("LAZY_LOAD_DEPRECATED")},Ys="c4",Ef=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),Mf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./c4Diagram-3d4e48cf-CFkKbH2w.js");return{diagram:e}},__vite__mapDeps([0,1,2,3]));return{id:Ys,diagram:t}},If={id:Ys,detector:Ef,loader:Mf},Of=If,Vs="flowchart",Df=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},Nf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowDiagram-66a62f08-BrH7mvTN.js");return{diagram:e}},__vite__mapDeps([4,5,6,2,3,7,8,9,10,11,12,13,14,15,16]));return{id:Vs,diagram:t}},Rf={id:Vs,detector:Df,loader:Nf},Pf=Rf,js="flowchart-v2",qf=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},$f=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowDiagram-v2-96b9c2cf-jrOiDbEz.js");return{diagram:e}},__vite__mapDeps([17,5,8,6,2,3,9,7,10,11,12,13,14,15,16]));return{id:js,diagram:t}},zf={id:js,detector:qf,loader:$f},Wf=zf,Gs="er",Hf=t=>/^\s*erDiagram/.test(t),Uf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./erDiagram-9861fffd-BcE67OC0.js");return{diagram:e}},__vite__mapDeps([18,6,2,3,7,13,14,15]));return{id:Gs,diagram:t}},Yf={id:Gs,detector:Hf,loader:Uf},Vf=Yf,Xs="gitGraph",jf=t=>/^\s*gitGraph/.test(t),Gf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./gitGraphDiagram-72cf32ee-CkF7aqy_.js");return{diagram:e}},__vite__mapDeps([19,2,3]));return{id:Xs,diagram:t}},Xf={id:Xs,detector:jf,loader:Gf},Kf=Xf,Ks="gantt",Zf=t=>/^\s*gantt/.test(t),Qf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./ganttDiagram-c361ad54-CWs-elUl.js");return{diagram:e}},__vite__mapDeps([20,2,3,21,22]));return{id:Ks,diagram:t}},Jf={id:Ks,detector:Zf,loader:Qf},tp=Jf,Zs="info",ep=t=>/^\s*info/.test(t),ip=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./infoDiagram-f8f76790-grTWIixK.js");return{diagram:e}},__vite__mapDeps([23,2,3]));return{id:Zs,diagram:t}},rp={id:Zs,detector:ep,loader:ip},Qs="pie",np=t=>/^\s*pie/.test(t),op=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./pieDiagram-8a3498a8-Cto3ORfA.js");return{diagram:e}},__vite__mapDeps([24,2,3,25,15,26,22,14]));return{id:Qs,diagram:t}},sp={id:Qs,detector:np,loader:op},Js="quadrantChart",ap=t=>/^\s*quadrantChart/.test(t),lp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./quadrantDiagram-120e2f19-CK36s5Eb.js");return{diagram:e}},__vite__mapDeps([27,2,3,21,22]));return{id:Js,diagram:t}},hp={id:Js,detector:ap,loader:lp},cp=hp,ta="xychart",up=t=>/^\s*xychart-beta/.test(t),dp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./xychartDiagram-e933f94c-DcCVCk7Y.js");return{diagram:e}},__vite__mapDeps([28,12,2,3,22,26,21,13,14,15]));return{id:ta,diagram:t}},fp={id:ta,detector:up,loader:dp},pp=fp,ea="requirement",gp=t=>/^\s*requirement(Diagram)?/.test(t),mp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./requirementDiagram-deff3bca-DjgxaJC8.js");return{diagram:e}},__vite__mapDeps([29,6,2,3,7,13,14,15]));return{id:ea,diagram:t}},_p={id:ea,detector:gp,loader:mp},yp=_p,ia="sequence",Cp=t=>/^\s*sequenceDiagram/.test(t),xp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./sequenceDiagram-704730f1-C7R7HoPG.js");return{diagram:e}},__vite__mapDeps([30,1,2,3]));return{id:ia,diagram:t}},bp={id:ia,detector:Cp,loader:xp},Tp=bp,ra="class",kp=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},vp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./classDiagram-70f12bd4-i-AU2IWv.js");return{diagram:e}},__vite__mapDeps([31,32,6,2,3,7,13,14,15]));return{id:ra,diagram:t}},Sp={id:ra,detector:kp,loader:vp},wp=Sp,na="classDiagram",Bp=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Ap=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./classDiagram-v2-f2320105-BaXoILhn.js");return{diagram:e}},__vite__mapDeps([33,32,6,2,3,9,7,10,11,12,13,14,15]));return{id:na,diagram:t}},Lp={id:na,detector:Bp,loader:Ap},Fp=Lp,oa="state",Ep=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},Mp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./stateDiagram-587899a1-C-uCmOEE.js");return{diagram:e}},__vite__mapDeps([34,35,6,2,3,7,13,14,15]));return{id:oa,diagram:t}},Ip={id:oa,detector:Ep,loader:Mp},Op=Ip,sa="stateDiagram",Dp=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},Np=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./stateDiagram-v2-d93cdb3a-CIX6Pzhs.js");return{diagram:e}},__vite__mapDeps([36,35,6,2,3,9,7,10,11,12,13,14,15]));return{id:sa,diagram:t}},Rp={id:sa,detector:Dp,loader:Np},Pp=Rp,aa="journey",qp=t=>/^\s*journey/.test(t),$p=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./journeyDiagram-49397b02-Bv4S8x0v.js");return{diagram:e}},__vite__mapDeps([37,1,2,3,25,15]));return{id:aa,diagram:t}},zp={id:aa,detector:qp,loader:$p},Wp=zp,Hp=function(t,e){for(let i of e)t.attr(i[0],i[1])},Up=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},la=function(t,e,i,r){const n=Up(e,i,r);Hp(t,n)},Yp=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;k.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;k.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,k.info(`Calculated bounds: ${a}x${l}`),la(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},si={},Vp=(t,e,i)=>{let r="";return t in si&&si[t]?r=si[t](i):k.warn(`No theme found for ${t}`),` & { font-family: ${i.fontFamily}; font-size: ${i.fontSize}; fill: ${i.textColor} @@ -62,7 +62,7 @@ import{o as Ua,i as Mo,b as Si,c as wi,t as le,d as Io,M as cr,e as Ya,f as Va,h ${e} `},jp=(t,e)=>{e!==void 0&&(si[t]=e)},Gp=Vp;let Yr="",Vr="",jr="";const Gr=t=>De(t,_t()),Xp=()=>{Yr="",jr="",Vr=""},Kp=t=>{Yr=Gr(t).replace(/^\s+/g,"")},Zp=()=>Yr,Qp=t=>{jr=Gr(t).replace(/\n\s+/g,` `)},Jp=()=>jr,tg=t=>{Vr=Gr(t)},eg=()=>Vr,ig=Object.freeze(Object.defineProperty({__proto__:null,clear:Xp,getAccDescription:Jp,getAccTitle:Zp,getDiagramTitle:eg,setAccDescription:Qp,setAccTitle:Kp,setDiagramTitle:tg},Symbol.toStringTag,{value:"Module"})),rg=k,ng=$r,Xr=_t,A_=Ws,L_=oe,og=t=>De(t,Xr()),sg=Yp,ag=()=>ig,Ci={},xi=(t,e,i)=>{var r;if(Ci[t])throw new Error(`Diagram ${t} already registered.`);Ci[t]=e,i&&Ds(t,i),jp(t,e.styles),(r=e.injectUtils)==null||r.call(e,rg,ng,Xr,og,sg,ag(),()=>{})},Kr=t=>{if(t in Ci)return Ci[t];throw new lg(t)};class lg extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const hg=t=>{var e;const{securityLevel:i}=Xr();let r=ot("body");if(i==="sandbox"){const s=((e=ot(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=ot(s.body)}return r.select(`#${t}`)},cg=(t,e,i)=>{k.debug(`rendering svg for syntax error -`);const r=hg(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),la(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},ha={draw:cg},ug=ha,dg={db:{},renderer:ha,parser:{parser:{yy:{}},parse:()=>{}}},fg=dg,ca="flowchart-elk",pg=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},gg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowchart-elk-definition-4a651766-DLndsX9w.js");return{diagram:e}},__vite__mapDeps([38,5,11,12,2,3,13,14,15]));return{id:ca,diagram:t}},mg={id:ca,detector:pg,loader:gg},_g=mg,ua="timeline",yg=t=>/^\s*timeline/.test(t),Cg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./timeline-definition-85554ec2-CvJeyBUi.js");return{diagram:e}},__vite__mapDeps([39,2,3,25,15]));return{id:ua,diagram:t}},xg={id:ua,detector:yg,loader:Cg},bg=xg,da="mindmap",Tg=t=>/^\s*mindmap/.test(t),kg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./mindmap-definition-fc14e90a-CRNQVvtP.js");return{diagram:e}},__vite__mapDeps([40,2,3,12]));return{id:da,diagram:t}},vg={id:da,detector:Tg,loader:kg},Sg=vg,fa="sankey",wg=t=>/^\s*sankey-beta/.test(t),Bg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./sankeyDiagram-04a897e0-ySFe1tss.js");return{diagram:e}},__vite__mapDeps([41,2,3,26,22,42]));return{id:fa,diagram:t}},Ag={id:fa,detector:wg,loader:Bg},Lg=Ag,pa="block",Fg=t=>/^\s*block-beta/.test(t),Eg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./blockDiagram-38ab4fdb-Drr0MnjZ.js");return{diagram:e}},__vite__mapDeps([43,10,6,2,3,11,12,13,14,15,26,22,16,42]));return{id:pa,diagram:t}},Mg={id:pa,detector:Fg,loader:Eg},Ig=Mg;let xo=!1;const Zr=()=>{xo||(xo=!0,xi("error",fg,t=>t.toLowerCase().trim()==="error"),xi("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Os(Of,Fp,wp,Vf,tp,rp,sp,yp,Tp,_g,Wf,Pf,Sg,bg,Kf,Pp,Op,Wp,cp,Lg,pp,Ig))};class ga{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=kf(e),this.text+=` +`);const r=hg(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),la(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},ha={draw:cg},ug=ha,dg={db:{},renderer:ha,parser:{parser:{yy:{}},parse:()=>{}}},fg=dg,ca="flowchart-elk",pg=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},gg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowchart-elk-definition-4a651766-Yv2tsz_U.js");return{diagram:e}},__vite__mapDeps([38,5,11,12,2,3,13,14,15]));return{id:ca,diagram:t}},mg={id:ca,detector:pg,loader:gg},_g=mg,ua="timeline",yg=t=>/^\s*timeline/.test(t),Cg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./timeline-definition-85554ec2-CQ7c8ExM.js");return{diagram:e}},__vite__mapDeps([39,2,3,25,15]));return{id:ua,diagram:t}},xg={id:ua,detector:yg,loader:Cg},bg=xg,da="mindmap",Tg=t=>/^\s*mindmap/.test(t),kg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./mindmap-definition-fc14e90a-CQPy3eoX.js");return{diagram:e}},__vite__mapDeps([40,2,3,12]));return{id:da,diagram:t}},vg={id:da,detector:Tg,loader:kg},Sg=vg,fa="sankey",wg=t=>/^\s*sankey-beta/.test(t),Bg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./sankeyDiagram-04a897e0-BWGVYAbc.js");return{diagram:e}},__vite__mapDeps([41,2,3,26,22,42]));return{id:fa,diagram:t}},Ag={id:fa,detector:wg,loader:Bg},Lg=Ag,pa="block",Fg=t=>/^\s*block-beta/.test(t),Eg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./blockDiagram-38ab4fdb-NQHR76N-.js");return{diagram:e}},__vite__mapDeps([43,10,6,2,3,11,12,13,14,15,26,22,16,42]));return{id:pa,diagram:t}},Mg={id:pa,detector:Fg,loader:Eg},Ig=Mg;let xo=!1;const Zr=()=>{xo||(xo=!0,xi("error",fg,t=>t.toLowerCase().trim()==="error"),xi("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Os(Of,Fp,wp,Vf,tp,rp,sp,yp,Tp,_g,Wf,Pf,Sg,bg,Kf,Pp,Op,Wp,cp,Lg,pp,Ig))};class ga{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=kf(e),this.text+=` `;const r=_t();try{this.type=Di(e,r)}catch(o){this.type="error",this.detectError=o}const n=Kr(this.type);k.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,o;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const s=_t();(r=this.init)==null||r.call(this,s),this.metadata.title&&((o=(n=this.db).setDiagramTitle)==null||o.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const Og=async(t,e={})=>{const i=Di(t,_t());try{Kr(i)}catch{const n=Kd(i);if(!n)throw new Is(`Diagram ${i} not found.`);const{id:o,diagram:s}=await n();xi(o,s)}return new ga(t,e)};let bo=[];const Dg=()=>{bo.forEach(t=>{t()}),bo=[]},Ng="graphics-document document";function Rg(t,e){t.attr("role",Ng),e!==""&&t.attr("aria-roledescription",e)}function Pg(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const qg=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function ma(t){return typeof t>"u"||t===null}function $g(t){return typeof t=="object"&&t!==null}function zg(t){return Array.isArray(t)?t:ma(t)?[]:[t]}function Wg(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;ia&&(o=" ... ",e=r-a+o.length),i-r>a&&(s=" ...",i=r+a-s.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+s,pos:r-e+o.length}}function ar(t,e){return V.repeat(" ",e-t.length)+t}function Zg(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o,s=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,p=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=sr(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),p),a=V.repeat(" ",e.indent)+ar((t.line-l+1).toString(),u)+" | "+c.str+` diff --git a/deploy/server/notebase/assets/mindmap-definition-fc14e90a-CRNQVvtP.js b/deploy/server/notebase/assets/mindmap-definition-fc14e90a-CQPy3eoX.js similarity index 99% rename from deploy/server/notebase/assets/mindmap-definition-fc14e90a-CRNQVvtP.js rename to deploy/server/notebase/assets/mindmap-definition-fc14e90a-CQPy3eoX.js index 07e66aeeef..4b7576562e 100644 --- a/deploy/server/notebase/assets/mindmap-definition-fc14e90a-CRNQVvtP.js +++ b/deploy/server/notebase/assets/mindmap-definition-fc14e90a-CQPy3eoX.js @@ -1,4 +1,4 @@ -import{l as Sr,c as Ai,N as Pu,t as Nu,P as hn,d as dn,h as Mu,a6 as ku,a7 as Bu,a8 as Fu,T as Gu}from"./mermaid.core-BajzCmnv.js";import{Q as Li,g as zu}from"./index-CLWgAZNI.js";import{a as _u}from"./createText-2e5e7dd3-CXwUql3o.js";function We(t){"@babel/helpers - typeof";return We=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(t)}function fr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vu(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,a=new Array(e);rt.length)&&(e=t.length);for(var r=0,a=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,o;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return i=l.done,l},e:function(l){s=!0,o=l},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(s)throw o}}}}var $e=typeof window>"u"?null:window,is=$e?$e.navigator:null;$e&&$e.document;var qu=We(""),Lo=We({}),Ku=We(function(){}),Zu=typeof HTMLElement>"u"?"undefined":We(HTMLElement),Oa=function(e){return e&&e.instanceString&&Ve(e.instanceString)?e.instanceString():null},ce=function(e){return e!=null&&We(e)==qu},Ve=function(e){return e!=null&&We(e)===Ku},Me=function(e){return!xt(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},Ae=function(e){return e!=null&&We(e)===Lo&&!Me(e)&&e.constructor===Object},Qu=function(e){return e!=null&&We(e)===Lo},re=function(e){return e!=null&&We(e)===We(1)&&!isNaN(e)},Ju=function(e){return re(e)&&Math.floor(e)===e},gn=function(e){if(Zu!=="undefined")return e!=null&&e instanceof HTMLElement},xt=function(e){return Pa(e)||Ro(e)},Pa=function(e){return Oa(e)==="collection"&&e._private.single},Ro=function(e){return Oa(e)==="collection"&&!e._private.single},Ii=function(e){return Oa(e)==="core"},Io=function(e){return Oa(e)==="stylesheet"},ju=function(e){return Oa(e)==="event"},ar=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},ef=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},tf=function(e){return Ae(e)&&re(e.x1)&&re(e.x2)&&re(e.y1)&&re(e.y2)},rf=function(e){return Qu(e)&&Ve(e.then)},af=function(){return is&&is.userAgent.match(/msie|trident|edge/i)},wa=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],s=0;sr?1:0},cf=function(e,r){return-1*Po(e,r)},he=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r1&&(p-=1),p<1/6?d+(g-d)*6*p:p<1/2?g:p<2/3?d+(g-d)*(2/3-p)*6:d}var c=new RegExp("^"+of+"$").exec(e);if(c){if(a=parseInt(c[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(c[2]),n<0||n>100||(n=n/100,i=parseFloat(c[3]),i<0||i>100)||(i=i/100,s=c[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(n===0)o=l=u=Math.round(i*255);else{var h=i<.5?i*(1+n):i+n-i*n,v=2*i-h;o=Math.round(255*f(v,h,a+1/3)),l=Math.round(255*f(v,h,a)),u=Math.round(255*f(v,h,a-1/3))}r=[o,l,u,s]}return r},df=function(e){var r,a=new RegExp("^"+nf+"$").exec(e);if(a){r=[];for(var n=[],i=1;i<=3;i++){var s=a[i];if(s[s.length-1]==="%"&&(n[i]=!0),s=parseFloat(s),n[i]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=n[1]||n[2]||n[3],l=n[1]&&n[2]&&n[3];if(o&&!l)return;var u=a[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;r.push(u)}}return r},gf=function(e){return pf[e.toLowerCase()]},No=function(e){return(Me(e)?e:null)||gf(e)||vf(e)||df(e)||hf(e)},pf={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Mo=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i=e||w<0||c&&x>=i}function y(){var D=Xn();if(p(D))return b(D);o=setTimeout(y,g(D))}function b(D){return o=void 0,h&&a?v(D):(a=n=void 0,s)}function m(){o!==void 0&&clearTimeout(o),u=0,a=l=n=o=void 0}function E(){return o===void 0?s:b(Xn())}function C(){var D=Xn(),w=p(D);if(a=arguments,n=this,l=D,w){if(o===void 0)return d(l);if(c)return clearTimeout(o),o=setTimeout(y,e),v(l)}return o===void 0&&(o=setTimeout(y,e)),s}return C.cancel=m,C.flush=E,C}var Ma=ec,Wn=$e?$e.performance:null,Go=Wn&&Wn.now?function(){return Wn.now()}:function(){return Date.now()},tc=function(){if($e){if($e.requestAnimationFrame)return function(t){$e.requestAnimationFrame(t)};if($e.mozRequestAnimationFrame)return function(t){$e.mozRequestAnimationFrame(t)};if($e.webkitRequestAnimationFrame)return function(t){$e.webkitRequestAnimationFrame(t)};if($e.msRequestAnimationFrame)return function(t){$e.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(Go())},1e3/60)}}(),pn=function(e){return tc(e)},Xt=Go,kr=9261,zo=65599,va=5381,_o=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kr,a=r,n;n=e.next(),!n.done;)a=a*zo+n.value|0;return a},Ea=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kr;return r*zo+e|0},xa=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:va;return(r<<5)+r+e|0},rc=function(e,r){return e*2097152+r},Qt=function(e){return e[0]*2097152+e[1]},Ya=function(e,r){return[Ea(e[0],r[0]),xa(e[1],r[1])]},ac=function(e,r){var a={value:0,done:!1},n=0,i=e.length,s={next:function(){return n=0;n--)e[n]===r&&e.splice(n,1)},Mi=function(e){e.splice(0,e.length)},fc=function(e,r){for(var a=0;a"u"?"undefined":We(Set))!==vc?Set:hc,Rn=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!Ii(e)){_e("An element must have a core reference and parameters set");return}var n=r.group;if(n==null&&(r.data&&r.data.source!=null&&r.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){_e("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?n==="edges":!!r.pannable,active:!1,classes:new Xr,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();i.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];Me(r.classes)?u=r.classes:ce(r.classes)&&(u=r.classes.split(/\s+/));for(var f=0,c=u.length;fb?1:0},f=function(y,b,m,E,C){var D;if(m==null&&(m=0),C==null&&(C=a),m<0)throw new Error("lo must be non-negative");for(E==null&&(E=y.length);mS;0<=S?T++:T--)x.push(T);return x}).apply(this).reverse(),w=[],E=0,C=D.length;EA;0<=A?++x:--x)L.push(s(y,m));return L},g=function(y,b,m,E){var C,D,w;for(E==null&&(E=a),C=y[m];m>b;){if(w=m-1>>1,D=y[w],E(C,D)<0){y[m]=D,m=w;continue}break}return y[m]=C},p=function(y,b,m){var E,C,D,w,x;for(m==null&&(m=a),C=y.length,x=b,D=y[b],E=2*b+1;E0;){var D=b.pop(),w=p(D),x=D.id();if(h[x]=w,w!==1/0)for(var T=D.neighborhood().intersect(d),S=0;S0)for(M.unshift(k);c[z];){var F=c[z];M.unshift(F.edge),M.unshift(F.node),B=F.node,z=B.id()}return o.spawn(M)}}}},yc={kruskal:function(e){e=e||function(m){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,s=new Array(i),o=a,l=function(E){for(var C=0;C0;){if(C(),w++,E===f){for(var x=[],T=i,S=f,A=y[S];x.unshift(T),A!=null&&x.unshift(A),T=p[S],T!=null;)S=T.id(),A=y[S];return{found:!0,distance:c[E],path:this.spawn(x),steps:w}}v[E]=!0;for(var L=m._private.edges,I=0;IA&&(d[S]=A,b[S]=T,m[S]=C),!i){var L=T*f+x;!i&&d[L]>A&&(d[L]=A,b[L]=x,m[L]=C)}}}for(var I=0;I1&&arguments[1]!==void 0?arguments[1]:s,pe=m(ue),ye=[],de=pe;;){if(de==null)return r.spawn();var me=b(de),xe=me.edge,De=me.pred;if(ye.unshift(de[0]),de.same(le)&&ye.length>0)break;xe!=null&&ye.unshift(xe),de=De}return l.spawn(ye)},D=0;D=0;f--){var c=u[f],h=c[1],v=c[2];(r[h]===o&&r[v]===l||r[h]===l&&r[v]===o)&&u.splice(f,1)}for(var d=0;dn;){var i=Math.floor(Math.random()*r.length);r=Dc(i,e,r),a--}return r},Sc={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(M){return M.isLoop()});var i=a.length,s=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/Cc);if(i<2){_e("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],f=0;f1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,s=r;s1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(r,a):(a0&&e.splice(0,r));for(var o=0,l=e.length-1;l>=0;l--){var u=e[l];s?isFinite(u)||(e[l]=-1/0,o++):e.splice(l,1)}i&&e.sort(function(h,v){return h-v});var f=e.length,c=Math.floor(f/2);return f%2!==0?e[c+1+o]:(e[c-1+o]+e[c+o])/2},Pc=function(e){return Math.PI*e/180},$a=function(e,r){return Math.atan2(r,e)-Math.PI/2},ki=Math.log2||function(t){return Math.log(t)/Math.log(2)},Wo=function(e){return e>0?1:e<0?-1:0},Er=function(e,r){return Math.sqrt(gr(e,r))},gr=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},Nc=function(e){for(var r=e.length,a=0,n=0;n=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},kc=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Bc=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Fc=function(e,r,a){return{x1:e.x1+r,x2:e.x2+r,y1:e.y1+a,y2:e.y2+a,w:e.w,h:e.h}},qo=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},Gc=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},an=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},nn=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,s;if(r.length===1)a=n=i=s=r[0];else if(r.length===2)a=i=r[0],s=n=r[1];else if(r.length===4){var o=je(r,4);a=o[0],n=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},hs=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},Bi=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},Yr=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},zc=function(e,r){return Yr(e,r.x,r.y)},Ko=function(e,r){return Yr(e,r.x1,r.y1)&&Yr(e,r.x2,r.y2)},Zo=function(e,r,a,n,i,s,o){var l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",u=l==="auto"?xr(i,s):l,f=i/2,c=s/2;u=Math.min(u,f,c);var h=u!==f,v=u!==c,d;if(h){var g=a-f+u-o,p=n-c-o,y=a+f-u+o,b=p;if(d=er(e,r,a,n,g,p,y,b,!1),d.length>0)return d}if(v){var m=a+f+o,E=n-c+u-o,C=m,D=n+c-u+o;if(d=er(e,r,a,n,m,E,C,D,!1),d.length>0)return d}if(h){var w=a-f+u-o,x=n+c+o,T=a+f-u+o,S=x;if(d=er(e,r,a,n,w,x,T,S,!1),d.length>0)return d}if(v){var A=a-f-o,L=n-c+u-o,I=A,R=n+c-u+o;if(d=er(e,r,a,n,A,L,I,R,!1),d.length>0)return d}var P;{var N=a-f+u,k=n-c+u;if(P=ha(e,r,a,n,N,k,u+o),P.length>0&&P[0]<=N&&P[1]<=k)return[P[0],P[1]]}{var M=a+f-u,B=n-c+u;if(P=ha(e,r,a,n,M,B,u+o),P.length>0&&P[0]>=M&&P[1]<=B)return[P[0],P[1]]}{var z=a+f-u,F=n+c-u;if(P=ha(e,r,a,n,z,F,u+o),P.length>0&&P[0]>=z&&P[1]>=F)return[P[0],P[1]]}{var G=a-f+u,H=n+c-u;if(P=ha(e,r,a,n,G,H,u+o),P.length>0&&P[0]<=G&&P[1]>=H)return[P[0],P[1]]}return[]},_c=function(e,r,a,n,i,s,o){var l=o,u=Math.min(a,i),f=Math.max(a,i),c=Math.min(n,s),h=Math.max(n,s);return u-l<=e&&e<=f+l&&c-l<=r&&r<=h+l},Vc=function(e,r,a,n,i,s,o,l,u){var f={x1:Math.min(a,o,i)-u,x2:Math.max(a,o,i)+u,y1:Math.min(n,l,s)-u,y2:Math.max(n,l,s)+u};return!(ef.x2||rf.y2)},Uc=function(e,r,a,n){a-=n;var i=r*r-4*e*a;if(i<0)return[];var s=Math.sqrt(i),o=2*e,l=(-r+s)/o,u=(-r-s)/o;return[l,u]},Yc=function(e,r,a,n,i){var s=1e-5;e===0&&(e=s),r/=e,a/=e,n/=e;var o,l,u,f,c,h,v,d;if(l=(3*a-r*r)/9,u=-(27*n)+r*(9*a-2*(r*r)),u/=54,o=l*l*l+u*u,i[1]=0,v=r/3,o>0){c=u+Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),h=u-Math.sqrt(o),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),i[0]=-v+c+h,v+=(c+h)/2,i[4]=i[2]=-v,v=Math.sqrt(3)*(-h+c)/2,i[3]=v,i[5]=-v;return}if(i[5]=i[3]=0,o===0){d=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-v+2*d,i[4]=i[2]=-(d+v);return}l=-l,f=l*l*l,f=Math.acos(u/Math.sqrt(f)),d=2*Math.sqrt(l),i[0]=-v+d*Math.cos(f/3),i[2]=-v+d*Math.cos((f+2*Math.PI)/3),i[4]=-v+d*Math.cos((f+4*Math.PI)/3)},$c=function(e,r,a,n,i,s,o,l){var u=1*a*a-4*a*i+2*a*o+4*i*i-4*i*o+o*o+n*n-4*n*s+2*n*l+4*s*s-4*s*l+l*l,f=1*9*a*i-3*a*a-3*a*o-6*i*i+3*i*o+9*n*s-3*n*n-3*n*l-6*s*s+3*s*l,c=1*3*a*a-6*a*i+a*o-a*e+2*i*i+2*i*e-o*e+3*n*n-6*n*s+n*l-n*r+2*s*s+2*s*r-l*r,h=1*a*i-a*a+a*e-i*e+n*s-n*n+n*r-s*r,v=[];Yc(u,f,c,h,v);for(var d=1e-7,g=[],p=0;p<6;p+=2)Math.abs(v[p+1])=0&&v[p]<=1&&g.push(v[p]);g.push(1),g.push(0);for(var y=-1,b,m,E,C=0;C=0?Eu?(e-i)*(e-i)+(r-s)*(r-s):f-h},pt=function(e,r,a){for(var n,i,s,o,l,u=0,f=0;f=e&&e>=s||n<=e&&e<=s)l=(e-n)/(s-n)*(o-i)+i,l>r&&u++;else continue;return u%2!==0},Wt=function(e,r,a,n,i,s,o,l,u){var f=new Array(a.length),c;l[0]!=null?(c=Math.atan(l[1]/l[0]),l[0]<0?c=c+Math.PI/2:c=-c-Math.PI/2):c=l;for(var h=Math.cos(-c),v=Math.sin(-c),d=0;d0){var p=bn(f,-u);g=mn(p)}else g=f;return pt(e,r,g)},Xc=function(e,r,a,n,i,s,o,l){for(var u=new Array(a.length*2),f=0;f=0&&p<=1&&b.push(p),y>=0&&y<=1&&b.push(y),b.length===0)return[];var m=b[0]*l[0]+e,E=b[0]*l[1]+r;if(b.length>1){if(b[0]==b[1])return[m,E];var C=b[1]*l[0]+e,D=b[1]*l[1]+r;return[m,E,C,D]}else return[m,E]},Kn=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},er=function(e,r,a,n,i,s,o,l,u){var f=e-i,c=a-e,h=o-i,v=r-s,d=n-r,g=l-s,p=h*v-g*f,y=c*v-d*f,b=g*c-h*d;if(b!==0){var m=p/b,E=y/b,C=.001,D=0-C,w=1+C;return D<=m&&m<=w&&D<=E&&E<=w?[e+m*c,r+m*d]:u?[e+m*c,r+m*d]:[]}else return p===0||y===0?Kn(e,a,o)===o?[o,l]:Kn(e,a,i)===i?[i,s]:Kn(i,o,a)===a?[a,n]:[]:[]},Da=function(e,r,a,n,i,s,o,l){var u=[],f,c=new Array(a.length),h=!0;s==null&&(h=!1);var v;if(h){for(var d=0;d0){var g=bn(c,-l);v=mn(g)}else v=c}else v=a;for(var p,y,b,m,E=0;E2){for(var d=[f[0],f[1]],g=Math.pow(d[0]-e,2)+Math.pow(d[1]-r,2),p=1;pf&&(f=E)},get:function(m){return u[m]}},h=0;h0?N=P.edgesTo(R)[0]:N=R.edgesTo(P)[0];var k=n(N);R=R.id(),x[R]>x[L]+k&&(x[R]=x[L]+k,T.nodes.indexOf(R)<0?T.push(R):T.updateItem(R),w[R]=0,D[R]=[]),x[R]==x[L]+k&&(w[R]=w[R]+w[L],D[R].push(L))}else for(var M=0;M0;){for(var G=C.pop(),H=0;H0&&o.push(a[l]);o.length!==0&&i.push(n.collection(o))}return i},lv=function(e,r){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:cv,o=n,l,u,f=0;f=2?ia(e,r,a,0,ms,vv):ia(e,r,a,0,ys)},squaredEuclidean:function(e,r,a){return ia(e,r,a,0,ms)},manhattan:function(e,r,a){return ia(e,r,a,0,ys)},max:function(e,r,a){return ia(e,r,a,-1/0,hv)}};$r["squared-euclidean"]=$r.squaredEuclidean;$r.squaredeuclidean=$r.squaredEuclidean;function On(t,e,r,a,n,i){var s;return Ve(t)?s=t:s=$r[t]||$r.euclidean,e===0&&Ve(t)?s(n,i):s(e,r,a,n,i)}var dv=et({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Gi=function(e){return dv(e)},wn=function(e,r,a,n,i){var s=i!=="kMedoids",o=s?function(c){return a[c]}:function(c){return n[c](a)},l=function(h){return n[h](r)},u=a,f=r;return On(e,n.length,o,l,u,f)},Zn=function(e,r,a){for(var n=a.length,i=new Array(n),s=new Array(n),o=new Array(r),l=null,u=0;ua)return!1}return!0},yv=function(e,r,a){for(var n=0;no&&(o=r[u][f],l=f);i[l].push(e[u])}for(var c=0;c=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var d=r[s],g=r[n[s]],p;i.mode==="dendrogram"?p={left:d,right:g,key:d.key}:p={value:d.value.concat(g.value),key:d.key},e[d.index]=p,e.splice(g.index,1),r[d.key]=p;for(var y=0;ya[g.key][b.key]&&(l=a[g.key][b.key])):i.linkage==="max"?(l=a[d.key][b.key],a[d.key][b.key]0&&n.push(i);return n},Cs=function(e,r,a){for(var n=[],i=0;io&&(s=u,o=r[i*e+u])}s>0&&n.push(s)}for(var f=0;fu&&(l=f,u=c)}a[i]=s[l]}return n=Cs(e,r,a),n},Ds=function(e){for(var r=this.cy(),a=this.nodes(),n=Ov(e),i={},s=0;s=A?(L=A,A=R,I=P):R>L&&(L=R);for(var N=0;N0?1:0;w[T%n.minIterations*o+G]=H,F+=H}if(F>0&&(T>=n.minIterations-1||T==n.maxIterations-1)){for(var X=0,K=0;K1||D>1)&&(o=!0),c[m]=[],b.outgoers().forEach(function(x){x.isEdge()&&c[m].push(x.id())})}else h[m]=[void 0,b.target().id()]}):s.forEach(function(b){var m=b.id();if(b.isNode()){var E=b.degree(!0);E%2&&(l?u?o=!0:u=m:l=m),c[m]=[],b.connectedEdges().forEach(function(C){return c[m].push(C.id())})}else h[m]=[b.source().id(),b.target().id()]});var v={found:!1,trail:void 0};if(o)return v;if(u&&l)if(i){if(f&&u!=f)return v;f=u}else{if(f&&u!=f&&l!=f)return v;f||(f=u)}else f||(f=s[0].id());var d=function(m){for(var E=m,C=[m],D,w,x;c[E].length;)D=c[E].shift(),w=h[D][0],x=h[D][1],E!=x?(c[x]=c[x].filter(function(T){return T!=D}),E=x):!i&&E!=w&&(c[w]=c[w].filter(function(T){return T!=D}),E=w),C.unshift(D),C.unshift(E);return C},g=[],p=[];for(p=d(f);p.length!=1;)c[p[0]].length==0?(g.unshift(s.getElementById(p.shift())),g.unshift(s.getElementById(p.shift()))):p=d(p.shift()).concat(p);g.unshift(s.getElementById(p.shift()));for(var y in c)if(c[y].length)return v;return v.found=!0,v.trail=this.spawn(g,!0),v}},Wa=function(){var e=this,r={},a=0,n=0,i=[],s=[],o={},l=function(h,v){for(var d=s.length-1,g=[],p=e.spawn();s[d].x!=h||s[d].y!=v;)g.push(s.pop().edge),d--;g.push(s.pop().edge),g.forEach(function(y){var b=y.connectedNodes().intersection(e);p.merge(y),b.forEach(function(m){var E=m.id(),C=m.connectedEdges().intersection(e);p.merge(m),r[E].cutVertex?p.merge(C.filter(function(D){return D.isLoop()})):p.merge(C)})}),i.push(p)},u=function c(h,v,d){h===d&&(n+=1),r[v]={id:a,low:a++,cutVertex:!1};var g=e.getElementById(v).connectedEdges().intersection(e);if(g.size()===0)i.push(e.spawn(e.getElementById(v)));else{var p,y,b,m;g.forEach(function(E){p=E.source().id(),y=E.target().id(),b=p===v?y:p,b!==d&&(m=E.id(),o[m]||(o[m]=!0,s.push({x:v,y:b,edge:E})),b in r?r[v].low=Math.min(r[v].low,r[b].id):(c(h,b,v),r[v].low=Math.min(r[v].low,r[b].low),r[v].id<=r[b].low&&(r[v].cutVertex=!0,l(v,b))))})}};e.forEach(function(c){if(c.isNode()){var h=c.id();h in r||(n=0,u(h,h),r[h].cutVertex=n>1)}});var f=Object.keys(r).filter(function(c){return r[c].cutVertex}).map(function(c){return e.getElementById(c)});return{cut:e.spawn(f),components:i}},zv={hopcroftTarjanBiconnected:Wa,htbc:Wa,htb:Wa,hopcroftTarjanBiconnectedComponents:Wa},qa=function(){var e=this,r={},a=0,n=[],i=[],s=e.spawn(e),o=function l(u){i.push(u),r[u]={index:a,low:a++,explored:!1};var f=e.getElementById(u).connectedEdges().intersection(e);if(f.forEach(function(g){var p=g.target().id();p!==u&&(p in r||l(p),r[p].explored||(r[u].low=Math.min(r[u].low,r[p].low)))}),r[u].index===r[u].low){for(var c=e.spawn();;){var h=i.pop();if(c.merge(e.getElementById(h)),r[h].low=r[u].index,r[h].explored=!0,h===u)break}var v=c.edgesWith(c),d=c.merge(v);n.push(d),s=s.difference(d)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in r||o(u)}}),{cut:s,components:n}},_v={tarjanStronglyConnected:qa,tsc:qa,tscc:qa,tarjanStronglyConnectedComponents:qa},al={};[Ta,pc,yc,bc,Ec,Tc,Sc,Qc,zr,_r,vi,fv,Tv,Rv,Bv,Gv,zv,_v].forEach(function(t){he(al,t)});/*! diff --git a/starter/src/main/resources/templates/notebase/assets/pieDiagram-8a3498a8-EafKsBAO.js b/deploy/server/notebase/assets/pieDiagram-8a3498a8-Cto3ORfA.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/pieDiagram-8a3498a8-EafKsBAO.js rename to deploy/server/notebase/assets/pieDiagram-8a3498a8-Cto3ORfA.js index 9ba1979aa6..72ae70f312 100644 --- a/starter/src/main/resources/templates/notebase/assets/pieDiagram-8a3498a8-EafKsBAO.js +++ b/deploy/server/notebase/assets/pieDiagram-8a3498a8-Cto3ORfA.js @@ -1,4 +1,4 @@ -import{O as H,P as at,A as lt,B as ot,s as ct,g as ht,b as ut,a as yt,C as ft,d as pt,c as et,l as it,Q as gt,N as dt,T as mt,i as _t}from"./mermaid.core-BajzCmnv.js";import"./index-CLWgAZNI.js";import{a as tt}from"./arc-DCwD3PI6.js";import{o as xt}from"./ordinal-Cboi1Yqb.js";import{a as kt}from"./array-BKyUJesY.js";import{c as F}from"./path-CbwjOpE9.js";import"./init-Gi6I4Gst.js";function vt(e,u){return ue?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,$=null,p=F(0),g=F(H),A=F(0);function y(a){var l,d=(a=kt(a)).length,m,I,T=0,_=new Array(d),v=new Array(d),c=+p.apply(this,arguments),E=Math.min(H,Math.max(-H,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs(E)/d,A.apply(this,arguments)),b=w*(E<0?-1:1),t;for(l=0;l0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):$!=null&&_.sort(function(i,n){return $(a[i],a[n])}),l=0,I=T?(E-d*b)/T:0;l0?t*I:0)+b,v[m]={data:a[m],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return y.value=function(a){return arguments.length?(e=typeof a=="function"?a:F(+a),y):e},y.sortValues=function(a){return arguments.length?(u=a,$=null,y):u},y.sort=function(a){return arguments.length?($=a,u=null,y):$},y.startAngle=function(a){return arguments.length?(p=typeof a=="function"?a:F(+a),y):p},y.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:F(+a),y):g},y.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:F(+a),y):A},y}var J=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],$=[1,4],p=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],y=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],m=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],E={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,P){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:$,21:p,22:g},{1:[3]},{3:7,4:2,5:u,20:$,21:p,22:g},e(A,y,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,y,{6:18}),e(A,[2,5]),{4:19,20:$,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],P=this.table,x="",f=0,V=0,R=2,M=1,U=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var Q=h.yylloc;s.push(Q);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,Z,z={},j,D,X,W;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=P[L]&&P[L][k]),typeof S>"u"||!S.length||!S[0]){var q="";W=[];for(j in P[L])this.terminals_[j]&&j>R&&W.push("'"+this.terminals_[j]+"'");h.showPosition?q="Parse error on line "+(f+1)+`: +import{O as H,P as at,A as lt,B as ot,s as ct,g as ht,b as ut,a as yt,C as ft,d as pt,c as et,l as it,Q as gt,N as dt,T as mt,i as _t}from"./mermaid.core-DacimPk4.js";import"./index-bOgutTC1.js";import{a as tt}from"./arc-UQ4BAf3M.js";import{o as xt}from"./ordinal-Cboi1Yqb.js";import{a as kt}from"./array-BKyUJesY.js";import{c as F}from"./path-CbwjOpE9.js";import"./init-Gi6I4Gst.js";function vt(e,u){return ue?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,$=null,p=F(0),g=F(H),A=F(0);function y(a){var l,d=(a=kt(a)).length,m,I,T=0,_=new Array(d),v=new Array(d),c=+p.apply(this,arguments),E=Math.min(H,Math.max(-H,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs(E)/d,A.apply(this,arguments)),b=w*(E<0?-1:1),t;for(l=0;l0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):$!=null&&_.sort(function(i,n){return $(a[i],a[n])}),l=0,I=T?(E-d*b)/T:0;l0?t*I:0)+b,v[m]={data:a[m],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return y.value=function(a){return arguments.length?(e=typeof a=="function"?a:F(+a),y):e},y.sortValues=function(a){return arguments.length?(u=a,$=null,y):u},y.sort=function(a){return arguments.length?($=a,u=null,y):$},y.startAngle=function(a){return arguments.length?(p=typeof a=="function"?a:F(+a),y):p},y.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:F(+a),y):g},y.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:F(+a),y):A},y}var J=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],$=[1,4],p=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],y=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],m=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],E={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,P){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:$,21:p,22:g},{1:[3]},{3:7,4:2,5:u,20:$,21:p,22:g},e(A,y,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,y,{6:18}),e(A,[2,5]),{4:19,20:$,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],P=this.table,x="",f=0,V=0,R=2,M=1,U=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var Q=h.yylloc;s.push(Q);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,Z,z={},j,D,X,W;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=P[L]&&P[L][k]),typeof S>"u"||!S.length||!S[0]){var q="";W=[];for(j in P[L])this.terminals_[j]&&j>R&&W.push("'"+this.terminals_[j]+"'");h.showPosition?q="Parse error on line "+(f+1)+`: `+h.showPosition()+` Expecting `+W.join(", ")+", got '"+(this.terminals_[k]||k)+"'":q="Parse error on line "+(f+1)+": Unexpected "+(k==M?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(q,{text:h.match,token:this.terminals_[k]||k,line:h.yylineno,loc:Q,expected:W})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+k);switch(S[0]){case 1:n.push(k),o.push(h.yytext),s.push(h.yylloc),n.push(S[1]),k=null,V=h.yyleng,x=h.yytext,f=h.yylineno,Q=h.yylloc;break;case 2:if(D=this.productions_[S[1]][1],z.$=o[o.length-D],z._$={first_line:s[s.length-(D||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(D||1)].first_column,last_column:s[s.length-1].last_column},st&&(z._$.range=[s[s.length-(D||1)].range[0],s[s.length-1].range[1]]),Z=this.performAction.apply(z,[x,V,f,N.yy,S[1],o,s].concat(U)),typeof Z<"u")return Z;D&&(n=n.slice(0,-1*D*2),o=o.slice(0,-1*D),s=s.slice(0,-1*D)),n.push(this.productions_[S[1]][0]),o.push(z.$),s.push(z._$),X=P[n[n.length-2]][n[n.length-1]],n.push(X);break;case 3:return!0}}return!0}},O=function(){var b={EOF:1,parseError:function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw new Error(i)},setInput:function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var i=t.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var i=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/quadrantDiagram-120e2f19-8vv_6TNi.js b/deploy/server/notebase/assets/quadrantDiagram-120e2f19-CK36s5Eb.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/quadrantDiagram-120e2f19-8vv_6TNi.js rename to deploy/server/notebase/assets/quadrantDiagram-120e2f19-CK36s5Eb.js index 7bcaac3989..ca35519b30 100644 --- a/starter/src/main/resources/templates/notebase/assets/quadrantDiagram-120e2f19-8vv_6TNi.js +++ b/deploy/server/notebase/assets/quadrantDiagram-120e2f19-CK36s5Eb.js @@ -1,4 +1,4 @@ -import{U as vt,c as yt,P as D,l as ot,s as Lt,g as Ct,A as zt,B as bt,a as Et,b as Dt,C as It,h as gt,i as Bt,d as wt}from"./mermaid.core-BajzCmnv.js";import"./index-CLWgAZNI.js";import{l as mt}from"./linear-DTRuWJOk.js";import"./init-Gi6I4Gst.js";var pt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],m=[1,33],_=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:o.addPoint(a[u-3],a[u-1],a[u]);break;case 18:o.setXAxisLeftText(a[u-2]),o.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",o.setXAxisLeftText(a[u-1]);break;case 20:o.setXAxisLeftText(a[u]);break;case 21:o.setYAxisBottomText(a[u-2]),o.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",o.setYAxisBottomText(a[u-1]);break;case 23:o.setYAxisBottomText(a[u]);break;case 24:o.setQuadrant1Text(a[u]);break;case 25:o.setQuadrant2Text(a[u]);break;case 26:o.setQuadrant3Text(a[u]);break;case 27:o.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=o.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,_t,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`: +import{U as vt,c as yt,P as D,l as ot,s as Lt,g as Ct,A as zt,B as bt,a as Et,b as Dt,C as It,h as gt,i as Bt,d as wt}from"./mermaid.core-DacimPk4.js";import"./index-bOgutTC1.js";import{l as mt}from"./linear-3xwamwH4.js";import"./init-Gi6I4Gst.js";var pt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],m=[1,33],_=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:o.addPoint(a[u-3],a[u-1],a[u]);break;case 18:o.setXAxisLeftText(a[u-2]),o.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",o.setXAxisLeftText(a[u-1]);break;case 20:o.setXAxisLeftText(a[u]);break;case 21:o.setYAxisBottomText(a[u-2]),o.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",o.setYAxisBottomText(a[u-1]);break;case 23:o.setYAxisBottomText(a[u]);break;case 24:o.setQuadrant1Text(a[u]);break;case 25:o.setQuadrant2Text(a[u]);break;case 26:o.setQuadrant3Text(a[u]);break;case 27:o.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=o.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,_t,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`: `+E.showPosition()+` Expecting `+lt.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ft="Parse error on line "+(st+1)+": Unexpected "+(W==Tt?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ft,{text:E.match,token:this.terminals_[W]||W,line:E.yylineno,loc:ut,expected:lt})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+W);switch(H[0]){case 1:l.push(W),q.push(E.yytext),a.push(E.yylloc),l.push(H[1]),W=null,qt=E.yyleng,u=E.yytext,st=E.yylineno,ut=E.yylloc;break;case 2:if($=this.productions_[H[1]][1],tt.$=q[q.length-$],tt._$={first_line:a[a.length-($||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-($||1)].first_column,last_column:a[a.length-1].last_column},Ft&&(tt._$.range=[a[a.length-($||1)].range[0],a[a.length-1].range[1]]),xt=this.performAction.apply(tt,[u,qt,st,Z.yy,H[1],q,a].concat(kt)),typeof xt<"u")return xt;$&&(l=l.slice(0,-1*$*2),q=q.slice(0,-1*$),a=a.slice(0,-1*$)),l.push(this.productions_[H[1]][0]),q.push(tt.$),a.push(tt._$),_t=et[l[l.length-2]][l[l.length-1]],l.push(_t);break;case 3:return!0}}return!0}},At=function(){var K={EOF:1,parseError:function(r,l){if(this.yy.parser)this.yy.parser.parseError(r,l);else throw new Error(r)},setInput:function(n,r){return this.yy=r||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var r=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var q=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===o.length?this.yylloc.first_column:0)+o[o.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/requirementDiagram-deff3bca-C7te2cZt.js b/deploy/server/notebase/assets/requirementDiagram-deff3bca-DjgxaJC8.js similarity index 98% rename from deploy/server/notebase/assets/requirementDiagram-deff3bca-C7te2cZt.js rename to deploy/server/notebase/assets/requirementDiagram-deff3bca-DjgxaJC8.js index 91d943aaca..8828f493ac 100644 --- a/deploy/server/notebase/assets/requirementDiagram-deff3bca-C7te2cZt.js +++ b/deploy/server/notebase/assets/requirementDiagram-deff3bca-DjgxaJC8.js @@ -1,4 +1,4 @@ -import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,C as Pe,h as oe,i as Ye,j as ke}from"./mermaid.core-BajzCmnv.js";import{G as Ue}from"./graph-CNSoCPH1.js";import{l as Be}from"./layout-Cg9I2QIy.js";import"./index-CLWgAZNI.js";import{l as Qe}from"./line-CH9gKq5B.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],ge=[1,51],Ee=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),E=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);E.setInput(i,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var se=E.yylloc;s.push(se);var Oe=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||E.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");E.showPosition?le="Parse error on line "+(Z+1)+`: +import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,C as Pe,h as oe,i as Ye,j as ke}from"./mermaid.core-DacimPk4.js";import{G as Ue}from"./graph-Cryfb0BU.js";import{l as Be}from"./layout-DPudLDYQ.js";import"./index-bOgutTC1.js";import{l as Qe}from"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],ge=[1,51],Ee=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),E=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);E.setInput(i,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var se=E.yylloc;s.push(se);var Oe=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||E.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");E.showPosition?le="Parse error on line "+(Z+1)+`: `+E.showPosition()+` Expecting `+te.join(", ")+", got '"+(this.terminals_[I]||I)+"'":le="Parse error on line "+(Z+1)+": Unexpected "+(I==Ie?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(le,{text:E.match,token:this.terminals_[I]||I,line:E.yylineno,loc:se,expected:te})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+I);switch(S[0]){case 1:a.push(I),f.push(E.yytext),s.push(E.yylloc),a.push(S[1]),I=null,me=E.yyleng,_=E.yytext,Z=E.yylineno,se=E.yylloc;break;case 2:if(w=this.productions_[S[1]][1],Q.$=f[f.length-w],Q._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},Oe&&(Q._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),ae=this.performAction.apply(Q,[_,me,Z,L.yy,S[1],f,s].concat(qe)),typeof ae<"u")return ae;w&&(a=a.slice(0,-1*w*2),f=f.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[S[1]][0]),f.push(Q.$),s.push(Q._$),be=W[a[a.length-2]][a[a.length-1]],a.push(be);break;case 3:return!0}}return!0}},$e=function(){var V={EOF:1,parseError:function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},setInput:function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var n=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/sankeyDiagram-04a897e0-ySFe1tss.js b/deploy/server/notebase/assets/sankeyDiagram-04a897e0-BWGVYAbc.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/sankeyDiagram-04a897e0-ySFe1tss.js rename to deploy/server/notebase/assets/sankeyDiagram-04a897e0-BWGVYAbc.js index d3ab38e76c..92b410ae9a 100644 --- a/starter/src/main/resources/templates/notebase/assets/sankeyDiagram-04a897e0-ySFe1tss.js +++ b/deploy/server/notebase/assets/sankeyDiagram-04a897e0-BWGVYAbc.js @@ -1,4 +1,4 @@ -import{c as rt,g as mt,s as kt,a as _t,b as xt,B as vt,A as bt,C as wt,j as St,a4 as Lt,h as G,t as Et}from"./mermaid.core-BajzCmnv.js";import"./index-CLWgAZNI.js";import{o as At}from"./ordinal-Cboi1Yqb.js";import{s as Tt}from"./Tableau10-B-NsZVaP.js";import"./init-Gi6I4Gst.js";function ot(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s=u)&&(s=u)}return s}function yt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function Mt(t){return t.target.depth}function Nt(t){return t.depth}function Ct(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Pt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Mt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return H(t.source,n.source)||t.index-n.index}function at(t,n){return H(t.target,n.target)||t.index-n.index}function H(t,n){return t.y0-n.y0}function J(t){return t.value}function It(t){return t.index}function $t(t){return t.nodes}function Ot(t){return t.links}function ct(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ut({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function jt(){let t=0,n=0,s=1,a=1,u=24,_=8,g,p=It,i=dt,o,c,m=$t,b=Ot,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(p=typeof e=="function"?e:Y(e),x):p},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=g=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:Y(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=ct(l,k)),typeof v!="object"&&(v=r.target=ct(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function N({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function I({nodes:e}){const f=ot(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function j(e){const f=yt(e,l=>(a-n-(l.length-1)*g)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+g)/(l.length+1);for(let r=0;rl.length)-1)),j(f);for(let l=0;l0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),C(k,l)}}function O(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,z=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,z+=F}if(!(z>0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),C(k,l)}}function C(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-g,l-1,f),P(e,h.y1+g,l+1,f),d(e,a,e.length-1,f),P(e,n,0,f)}function P(e,f,l,h){for(;l1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+g}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(at);for(const{target:{targetLinks:l}}of e)l.sort(lt)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(at),l.sort(lt)}function T(e,f){let l=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var tt=Math.PI,et=2*tt,D=1e-6,zt=et-D;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gt(){return new nt}nt.prototype=gt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,g=this._y1,p=s-t,i=a-n,o=_-t,c=g-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>D)if(!(Math.abs(c*p-i*o)>D)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-g,x=p*p+i*i,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(m),N=u*Math.tan((tt-Math.acos((x+m-E)/(2*L*A)))/2),I=N/A,j=N/L;Math.abs(I-1)>D&&(this._+="L"+(t+I*o)+","+(n+I*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+j*p)+","+(this._y1=n+j*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var g=s*Math.cos(a),p=s*Math.sin(a),i=t+g,o=n+p,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%et+et),m>zt?this._+="A"+s+","+s+",0,1,"+c+","+(t-g)+","+(n-p)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>D&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Dt(t){return t[0]}function Bt(t){return t[1]}var Vt=Array.prototype.slice;function Rt(t){return t.source}function Ut(t){return t.target}function Wt(t){var n=Rt,s=Ut,a=Dt,u=Bt,_=null;function g(){var p,i=Vt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=p=gt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),p)return _=null,p+""||null}return g.source=function(p){return arguments.length?(n=p,g):n},g.target=function(p){return arguments.length?(s=p,g):s},g.x=function(p){return arguments.length?(a=typeof p=="function"?p:ht(+p),g):a},g.y=function(p){return arguments.length?(u=typeof p=="function"?p:ht(+p),g):u},g.context=function(p){return arguments.length?(_=p??null,g):_},g}function Ft(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Gt(){return Wt(Ft)}function Yt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Xt(){return Gt().source(Yt).target(Ht)}var it=function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,j=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(M.yy[O]=this.yy[O]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var P=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,$,T,V,e={},f,l,h,r;;){if($=c[c.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),T=x[$]&&x[$][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[$])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`: +import{c as rt,g as mt,s as kt,a as _t,b as xt,B as vt,A as bt,C as wt,j as St,a4 as Lt,h as G,t as Et}from"./mermaid.core-DacimPk4.js";import"./index-bOgutTC1.js";import{o as At}from"./ordinal-Cboi1Yqb.js";import{s as Tt}from"./Tableau10-B-NsZVaP.js";import"./init-Gi6I4Gst.js";function ot(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s=u)&&(s=u)}return s}function yt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function Mt(t){return t.target.depth}function Nt(t){return t.depth}function Ct(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Pt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Mt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return H(t.source,n.source)||t.index-n.index}function at(t,n){return H(t.target,n.target)||t.index-n.index}function H(t,n){return t.y0-n.y0}function J(t){return t.value}function It(t){return t.index}function $t(t){return t.nodes}function Ot(t){return t.links}function ct(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ut({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function jt(){let t=0,n=0,s=1,a=1,u=24,_=8,g,p=It,i=dt,o,c,m=$t,b=Ot,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(p=typeof e=="function"?e:Y(e),x):p},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=g=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:Y(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=ct(l,k)),typeof v!="object"&&(v=r.target=ct(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function N({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function I({nodes:e}){const f=ot(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function j(e){const f=yt(e,l=>(a-n-(l.length-1)*g)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+g)/(l.length+1);for(let r=0;rl.length)-1)),j(f);for(let l=0;l0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),C(k,l)}}function O(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,z=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,z+=F}if(!(z>0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),C(k,l)}}function C(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-g,l-1,f),P(e,h.y1+g,l+1,f),d(e,a,e.length-1,f),P(e,n,0,f)}function P(e,f,l,h){for(;l1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+g}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(at);for(const{target:{targetLinks:l}}of e)l.sort(lt)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(at),l.sort(lt)}function T(e,f){let l=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var tt=Math.PI,et=2*tt,D=1e-6,zt=et-D;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gt(){return new nt}nt.prototype=gt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,g=this._y1,p=s-t,i=a-n,o=_-t,c=g-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>D)if(!(Math.abs(c*p-i*o)>D)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-g,x=p*p+i*i,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(m),N=u*Math.tan((tt-Math.acos((x+m-E)/(2*L*A)))/2),I=N/A,j=N/L;Math.abs(I-1)>D&&(this._+="L"+(t+I*o)+","+(n+I*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+j*p)+","+(this._y1=n+j*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var g=s*Math.cos(a),p=s*Math.sin(a),i=t+g,o=n+p,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%et+et),m>zt?this._+="A"+s+","+s+",0,1,"+c+","+(t-g)+","+(n-p)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>D&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Dt(t){return t[0]}function Bt(t){return t[1]}var Vt=Array.prototype.slice;function Rt(t){return t.source}function Ut(t){return t.target}function Wt(t){var n=Rt,s=Ut,a=Dt,u=Bt,_=null;function g(){var p,i=Vt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=p=gt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),p)return _=null,p+""||null}return g.source=function(p){return arguments.length?(n=p,g):n},g.target=function(p){return arguments.length?(s=p,g):s},g.x=function(p){return arguments.length?(a=typeof p=="function"?p:ht(+p),g):a},g.y=function(p){return arguments.length?(u=typeof p=="function"?p:ht(+p),g):u},g.context=function(p){return arguments.length?(_=p??null,g):_},g}function Ft(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Gt(){return Wt(Ft)}function Yt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Xt(){return Gt().source(Yt).target(Ht)}var it=function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,j=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(M.yy[O]=this.yy[O]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var P=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,$,T,V,e={},f,l,h,r;;){if($=c[c.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),T=x[$]&&x[$][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[$])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`: `+S.showPosition()+` Expecting `+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":k="Parse error on line "+(L+1)+": Unexpected "+(w==I?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(k,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:C,expected:r})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+w);switch(T[0]){case 1:c.push(w),b.push(S.yytext),y.push(S.yylloc),c.push(T[1]),w=null,A=S.yyleng,E=S.yytext,L=S.yylineno,C=S.yylloc;break;case 2:if(l=this.productions_[T[1]][1],e.$=b[b.length-l],e._$={first_line:y[y.length-(l||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(l||1)].first_column,last_column:y[y.length-1].last_column},P&&(e._$.range=[y[y.length-(l||1)].range[0],y[y.length-1].range[1]]),V=this.performAction.apply(e,[E,A,L,M.yy,T[1],b,y].concat(j)),typeof V<"u")return V;l&&(c=c.slice(0,-1*l*2),b=b.slice(0,-1*l),y=y.slice(0,-1*l)),c.push(this.productions_[T[1]][0]),b.push(e.$),y.push(e._$),h=x[c[c.length-2]][c[c.length-1]],c.push(h);break;case 3:return!0}}return!0}},_=function(){var p={EOF:1,parseError:function(o,c){if(this.yy.parser)this.yy.parser.parseError(o,c);else throw new Error(o)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===m.length?this.yylloc.first_column:0)+m[m.length-c.length].length-c[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/sequenceDiagram-704730f1-SW2l45_G.js b/deploy/server/notebase/assets/sequenceDiagram-704730f1-C7R7HoPG.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/sequenceDiagram-704730f1-SW2l45_G.js rename to deploy/server/notebase/assets/sequenceDiagram-704730f1-C7R7HoPG.js index dfef01cdad..af695aeed9 100644 --- a/starter/src/main/resources/templates/notebase/assets/sequenceDiagram-704730f1-SW2l45_G.js +++ b/deploy/server/notebase/assets/sequenceDiagram-704730f1-C7R7HoPG.js @@ -1,4 +1,4 @@ -import{g as we,B as ve,A as _e,c as st,s as $t,b as ke,a as Pe,C as Le,l as X,d as At,j as v,e as Ie,h as Lt,i as Ae,y as B,$ as nt,a0 as wt,m as te,r as ee,V as Bt,T as se,a1 as Ne}from"./mermaid.core-BajzCmnv.js";import{d as Se,a as Me,g as Nt,b as zt,c as Re,e as Ce}from"./svgDrawCommon-08f97a94-Cb_6H50Z.js";import"./index-CLWgAZNI.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],c=[1,3],s=[1,4],i=[2,4],a=[1,9],o=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],U=[1,38],F=[1,39],W=[1,41],Z=[1,42],K=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Gt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:U,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Gt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:U,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:U,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Gt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Xt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var G,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((G===null||typeof G>"u")&&(G=me()),et=Et[ut]&&Et[ut][G]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`: +import{g as we,B as ve,A as _e,c as st,s as $t,b as ke,a as Pe,C as Le,l as X,d as At,j as v,e as Ie,h as Lt,i as Ae,y as B,$ as nt,a0 as wt,m as te,r as ee,V as Bt,T as se,a1 as Ne}from"./mermaid.core-DacimPk4.js";import{d as Se,a as Me,g as Nt,b as zt,c as Re,e as Ce}from"./svgDrawCommon-08f97a94-CD3fOJ0l.js";import"./index-bOgutTC1.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],c=[1,3],s=[1,4],i=[2,4],a=[1,9],o=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],U=[1,38],F=[1,39],W=[1,41],Z=[1,42],K=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Gt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:U,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Gt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:U,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:U,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Gt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Xt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var G,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((G===null||typeof G>"u")&&(G=me()),et=Et[ut]&&Et[ut][G]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`: `+Y.showPosition()+` Expecting `+Pt.join(", ")+", got '"+(this.terminals_[G]||G)+"'":Ot="Parse error on line "+(_t+1)+": Unexpected "+(G==Jt?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(Ot,{text:Y.match,token:this.terminals_[G]||G,line:Y.yylineno,loc:Dt,expected:Pt})}if(et[0]instanceof Array&&et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ut+", token: "+G);switch(et[0]){case 1:L.push(G),M.push(Y.yytext),h.push(Y.yylloc),L.push(et[1]),G=null,Xt=Y.yyleng,d=Y.yytext,_t=Y.yylineno,Dt=Y.yylloc;break;case 2:if(ct=this.productions_[et[1]][1],yt.$=M[M.length-ct],yt._$={first_line:h[h.length-(ct||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(ct||1)].first_column,last_column:h[h.length-1].last_column},Ee&&(yt._$.range=[h[h.length-(ct||1)].range[0],h[h.length-1].range[1]]),Vt=this.performAction.apply(yt,[d,Xt,_t,pt.yy,et[1],M,h].concat(be)),typeof Vt<"u")return Vt;ct&&(L=L.slice(0,-1*ct*2),M=M.slice(0,-1*ct),h=h.slice(0,-1*ct)),L.push(this.productions_[et[1]][0]),M.push(yt.$),h.push(yt._$),Zt=Et[L[L.length-2]][L[L.length-1]],L.push(Zt);break;case 3:return!0}}return!0}},ye=function(){var dt={EOF:1,parseError:function(k,L){if(this.yy.parser)this.yy.parser.parseError(k,L);else throw new Error(k)},setInput:function(w,k){return this.yy=k||this.yy||{},this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var k=w.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},unput:function(w){var k=w.length,L=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),L.length-1&&(this.yylineno-=L.length-1);var M=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:L?(L.length===b.length?this.yylloc.first_column:0)+b[b.length-L.length].length-L[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),k=new Array(w.length+1).join("-");return w+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/stateDiagram-587899a1-Cq6WQ8Vn.js b/deploy/server/notebase/assets/stateDiagram-587899a1-C-uCmOEE.js similarity index 97% rename from deploy/server/notebase/assets/stateDiagram-587899a1-Cq6WQ8Vn.js rename to deploy/server/notebase/assets/stateDiagram-587899a1-C-uCmOEE.js index 1944197bc5..9fbeb9e52e 100644 --- a/deploy/server/notebase/assets/stateDiagram-587899a1-Cq6WQ8Vn.js +++ b/deploy/server/notebase/assets/stateDiagram-587899a1-C-uCmOEE.js @@ -1 +1 @@ -import{p as P,d as N,s as W}from"./styles-6aaf32cf-CNcbqEDz.js";import{c as t,h as H,l as b,i as R,j as T,D as v,y as U}from"./mermaid.core-BajzCmnv.js";import{G as C}from"./graph-CNSoCPH1.js";import{l as F}from"./layout-Cg9I2QIy.js";import"./index-CLWgAZNI.js";import{l as $}from"./line-CH9gKq5B.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(l){a||(o(p,l,r),r=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();i.doc,l=a-c,x>p&&(l=(p-d)/2+c),Math.abs(a-m.x)p&&(l=a-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",a+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
");p=p.replace(/\n/g,"
");const a=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",i+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&j(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const D=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(v),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(i.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},K=function(){},Q=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},V=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);Q(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,a,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;R(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,i,o,c,s,g,p)=>{const a=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let E=w.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),D(i,a.edge(n),a.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:K,draw:V},lt={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{lt as diagram}; +import{p as P,d as N,s as W}from"./styles-6aaf32cf-CyH9-6AO.js";import{c as t,h as H,l as b,i as R,j as T,D as v,y as U}from"./mermaid.core-DacimPk4.js";import{G as C}from"./graph-Cryfb0BU.js";import{l as F}from"./layout-DPudLDYQ.js";import"./index-bOgutTC1.js";import{l as $}from"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(l){a||(o(p,l,r),r=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();i.doc,l=a-c,x>p&&(l=(p-d)/2+c),Math.abs(a-m.x)p&&(l=a-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",a+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
");p=p.replace(/\n/g,"
");const a=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",i+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&j(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const D=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(v),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(i.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},K=function(){},Q=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},V=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);Q(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,a,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;R(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,i,o,c,s,g,p)=>{const a=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let E=w.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),D(i,a.edge(n),a.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:K,draw:V},lt={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{lt as diagram}; diff --git a/deploy/server/notebase/assets/stateDiagram-v2-d93cdb3a-BwNs18zh.js b/deploy/server/notebase/assets/stateDiagram-v2-d93cdb3a-CIX6Pzhs.js similarity index 90% rename from deploy/server/notebase/assets/stateDiagram-v2-d93cdb3a-BwNs18zh.js rename to deploy/server/notebase/assets/stateDiagram-v2-d93cdb3a-CIX6Pzhs.js index 37e9f7b635..a0ead1e8b3 100644 --- a/deploy/server/notebase/assets/stateDiagram-v2-d93cdb3a-BwNs18zh.js +++ b/deploy/server/notebase/assets/stateDiagram-v2-d93cdb3a-CIX6Pzhs.js @@ -1 +1 @@ -import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-6aaf32cf-CNcbqEDz.js";import{G as tt}from"./graph-CNSoCPH1.js";import{l as E,c as g,h as x,y as et,i as ot,j as w}from"./mermaid.core-BajzCmnv.js";import{r as st}from"./index-3862675e-C5iJKLK2.js";import"./index-CLWgAZNI.js";import"./layout-Cg9I2QIy.js";import"./clone-CJLsyeCN.js";import"./edges-e0da2a9e-121Kky2V.js";import"./createText-2e5e7dd3-CXwUql3o.js";import"./line-CH9gKq5B.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,U="transition",St="note",Tt="note-edge",pt=`${U} ${Tt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,V="parent",Y="note",At="state",N="----",ht=`${N}${Y}`,M=`${N}${V}`,m="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let T=h;e.start===!0&&(T=nt),e.start===!1&&(T=it),e.type!==H&&(T=e.type),y[o]||(y[o]={id:o,shape:T,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const p={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(p.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,Y),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,V),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,p),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:m,labelStyle:"",classes:pt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,p)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:m,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:U};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Vt as diagram}; +import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-6aaf32cf-CyH9-6AO.js";import{G as tt}from"./graph-Cryfb0BU.js";import{l as E,c as g,h as x,y as et,i as ot,j as w}from"./mermaid.core-DacimPk4.js";import{r as st}from"./index-3862675e-BtvAzWCw.js";import"./index-bOgutTC1.js";import"./layout-DPudLDYQ.js";import"./clone-CVBlNrV8.js";import"./edges-e0da2a9e---EYFhqg.js";import"./createText-2e5e7dd3-sebYv4r1.js";import"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,U="transition",St="note",Tt="note-edge",pt=`${U} ${Tt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,V="parent",Y="note",At="state",N="----",ht=`${N}${Y}`,M=`${N}${V}`,m="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let T=h;e.start===!0&&(T=nt),e.start===!1&&(T=it),e.type!==H&&(T=e.type),y[o]||(y[o]={id:o,shape:T,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const p={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(p.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,Y),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,V),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,p),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:m,labelStyle:"",classes:pt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,p)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:m,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:U};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Vt as diagram}; diff --git a/starter/src/main/resources/templates/notebase/assets/styles-6aaf32cf-CNcbqEDz.js b/deploy/server/notebase/assets/styles-6aaf32cf-CyH9-6AO.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/styles-6aaf32cf-CNcbqEDz.js rename to deploy/server/notebase/assets/styles-6aaf32cf-CyH9-6AO.js index 0955e8c05e..e3db0a7d5a 100644 --- a/starter/src/main/resources/templates/notebase/assets/styles-6aaf32cf-CNcbqEDz.js +++ b/deploy/server/notebase/assets/styles-6aaf32cf-CyH9-6AO.js @@ -1,4 +1,4 @@ -import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,A as Xt,B as Kt,l as D,j as ot,C as Wt,a2 as Jt}from"./mermaid.core-BajzCmnv.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var A=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");A=st[0],O=[O,st[1]]}this.$={stmt:"state",id:A,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",A=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),v={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(v.yy[dt]=this.yy[dt]);S.setInput(r,v.yy),v.yy.lexer=S,v.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(A+1)+`: +import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,A as Xt,B as Kt,l as D,j as ot,C as Wt,a2 as Jt}from"./mermaid.core-DacimPk4.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var A=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");A=st[0],O=[O,st[1]]}this.$={stmt:"state",id:A,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",A=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),v={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(v.yy[dt]=this.yy[dt]);S.setInput(r,v.yy),v.yy.lexer=S,v.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(A+1)+`: `+S.showPosition()+` Expecting `+rt.join(", ")+", got '"+(this.terminals_[_]||_)+"'":St="Parse error on line "+(A+1)+": Unexpected "+(_==B?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(St,{text:S.match,token:this.terminals_[_]||_,line:S.yylineno,loc:yt,expected:rt})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+_);switch(m[0]){case 1:i.push(_),p.push(S.yytext),e.push(S.yylloc),i.push(m[1]),_=null,O=S.yyleng,l=S.yytext,A=S.yylineno,yt=S.yylloc;break;case 2:if(b=this.productions_[m[1]][1],N.$=p[p.length-b],N._$={first_line:e[e.length-(b||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(b||1)].first_column,last_column:e[e.length-1].last_column},Gt&&(N._$.range=[e[e.length-(b||1)].range[0],e[e.length-1].range[1]]),pt=this.performAction.apply(N,[l,O,A,v.yy,m[1],p,e].concat(ft)),typeof pt<"u")return pt;b&&(i=i.slice(0,-1*b*2),p=p.slice(0,-1*b),e=e.slice(0,-1*b)),i.push(this.productions_[m[1]][0]),p.push(N.$),e.push(N._$),Ct=$[i[i.length-2]][i[i.length-1]],i.push(Ct);break;case 3:return!0}}return!0}},Yt=function(){var C={EOF:1,parseError:function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},setInput:function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var n=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===o.length?this.yylloc.first_column:0)+o[o.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/styles-9a916d00-BHajR6jW.js b/deploy/server/notebase/assets/styles-9a916d00-DJJSKZVB.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/styles-9a916d00-BHajR6jW.js rename to deploy/server/notebase/assets/styles-9a916d00-DJJSKZVB.js index d12cda685d..a6d5e99d36 100644 --- a/starter/src/main/resources/templates/notebase/assets/styles-9a916d00-BHajR6jW.js +++ b/deploy/server/notebase/assets/styles-9a916d00-DJJSKZVB.js @@ -1,4 +1,4 @@ -import{s as ut,g as rt,a as at,b as lt,c as F,A as ct,B as ot,j as v,C as ht,l as At,y as We,h as z,d as pt,E as Re}from"./mermaid.core-BajzCmnv.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],g=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ge=[1,27],ke=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],k=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],j=[1,57],Q=[1,58],X=[1,59],H=[1,60],De=[1,61],Be=[1,62],W=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be}),{37:[1,63]},e(W,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:k},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:k},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:k}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:k},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:k},{49:85,57:54,58:55,59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:j,61:Q,62:X,63:H}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:k},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,61],{57:120,59:Y,60:j,61:Q,62:X,63:H}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(W,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:k},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(W,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(W,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,je,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`: +import{s as ut,g as rt,a as at,b as lt,c as F,A as ct,B as ot,j as v,C as ht,l as At,y as We,h as z,d as pt,E as Re}from"./mermaid.core-DacimPk4.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],g=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ge=[1,27],ke=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],k=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],j=[1,57],Q=[1,58],X=[1,59],H=[1,60],De=[1,61],Be=[1,62],W=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be}),{37:[1,63]},e(W,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:k},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:k},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:k}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:k},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:k},{49:85,57:54,58:55,59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:j,61:Q,62:X,63:H}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:k},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,61],{57:120,59:Y,60:j,61:Q,62:X,63:H}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(W,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:k},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(W,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(W,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,je,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`: `+b.showPosition()+` Expecting `+oe.join(", ")+", got '"+(this.terminals_[T]||T)+"'":Ie="Parse error on line "+(le+1)+": Unexpected "+(T==Ye?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(Ie,{text:b.match,token:this.terminals_[T]||T,line:b.yylineno,loc:xe,expected:oe})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+T);switch(y[0]){case 1:h.push(T),f.push(b.yytext),t.push(b.yylloc),h.push(y[1]),T=null,Ke=b.yyleng,s=b.yytext,le=b.yylineno,xe=b.yylloc;break;case 2:if(N=this.productions_[y[1]][1],P.$=f[f.length-N],P._$={first_line:t[t.length-(N||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(N||1)].first_column,last_column:t[t.length-1].last_column},it&&(P._$.range=[t[t.length-(N||1)].range[0],t[t.length-1].range[1]]),Oe=this.performAction.apply(P,[s,Ke,le,I.yy,y[1],f,t].concat(st)),typeof Oe<"u")return Oe;N&&(h=h.slice(0,-1*N*2),f=f.slice(0,-1*N),t=t.slice(0,-1*N)),h.push(this.productions_[y[1]][0]),f.push(P.$),t.push(P._$),je=U[h[h.length-2]][h[h.length-1]],h.push(je);break;case 3:return!0}}return!0}},et=function(){var x={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(u,a){return this.yy=a||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var a=u.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var a=u.length,h=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===n.length?this.yylloc.first_column:0)+n[n.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),a=new Array(u.length+1).join("-");return u+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/styles-c10674c1-DZh7AwrX.js b/deploy/server/notebase/assets/styles-c10674c1-BMcOXXdB.js similarity index 97% rename from starter/src/main/resources/templates/notebase/assets/styles-c10674c1-DZh7AwrX.js rename to deploy/server/notebase/assets/styles-c10674c1-BMcOXXdB.js index 450b6e892b..6538254461 100644 --- a/starter/src/main/resources/templates/notebase/assets/styles-c10674c1-DZh7AwrX.js +++ b/deploy/server/notebase/assets/styles-c10674c1-BMcOXXdB.js @@ -1,4 +1,4 @@ -import{G as R}from"./graph-CNSoCPH1.js";import{S as z,v as F,x as j,o as A,l as g,p as U,c as S,j as G,r as q,q as E,n as L,h as C,y as H,t as K,z as W}from"./mermaid.core-BajzCmnv.js";import{r as X}from"./index-3862675e-C5iJKLK2.js";import{v as J,w as Q}from"./index-CLWgAZNI.js";import{c as Y}from"./channel--_OxL60w.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([j(e)],F)}function be(e,l){return!!e.children(l).length}function fe(e){return N(e.v)+":"+N(e.w)+":"+N(e.name)}var O=/:/g;function N(e){return e?String(e).replace(O,"\\:"):""}function ee(e,l){l&&e.attr("style",l)}function ue(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function we(e,l){var c=l.graph();if(J(c)){var a=c.transition;if(Q(a))return a(e)}return e}function te(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}ee(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const P={},re=function(e){const l=Object.keys(e);for(const c of l)P[c]=e[c]},V=async function(e,l,c,a,i,d){const u=a.select(`[id="${c}"]`),n=Object.keys(e);for(const p of n){const r=e[p];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const w=A(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(U(S().flowchart.htmlLabels))s=te(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const _=t.split(G.lineBreakRegex);for(const $ of _){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=$,k.appendChild(v)}s=k}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}const T=await q(t,S());l.setNode(r.id,{labelStyle:w.labelStyle,shape:o,labelText:T,labelType:r.labelType,rx:b,ry:b,class:y,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:S().flowchart.padding}),g.info("setNode",{labelStyle:w.labelStyle,labelType:r.labelType,shape:o,labelText:T,rx:b,ry:b,class:y,style:w.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:S().flowchart.padding})}},M=async function(e,l,c){g.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=A(e.defaultStyle);d=n.style,u=n.labelStyle}for(const n of e){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,g.info("abc78 new entry",p,i[p])):(i[p]++,g.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];g.info("abc78 new link id to be used is",p,r,i[p]);const y="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=A(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=E(n.interpolate,L):e.defaultInterpolate!==void 0?t.curve=E(e.defaultInterpolate,L):t.curve=E(P.curve,L),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await q(n.text.replace(G.lineBreakRegex,` +import{G as R}from"./graph-Cryfb0BU.js";import{S as z,v as F,x as j,o as A,l as g,p as U,c as S,j as G,r as q,q as E,n as L,h as C,y as H,t as K,z as W}from"./mermaid.core-DacimPk4.js";import{r as X}from"./index-3862675e-BtvAzWCw.js";import{v as J,w as Q}from"./index-bOgutTC1.js";import{c as Y}from"./channel-CFSrZVj_.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([j(e)],F)}function be(e,l){return!!e.children(l).length}function fe(e){return N(e.v)+":"+N(e.w)+":"+N(e.name)}var O=/:/g;function N(e){return e?String(e).replace(O,"\\:"):""}function ee(e,l){l&&e.attr("style",l)}function ue(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function we(e,l){var c=l.graph();if(J(c)){var a=c.transition;if(Q(a))return a(e)}return e}function te(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}ee(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const P={},re=function(e){const l=Object.keys(e);for(const c of l)P[c]=e[c]},V=async function(e,l,c,a,i,d){const u=a.select(`[id="${c}"]`),n=Object.keys(e);for(const p of n){const r=e[p];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const w=A(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(U(S().flowchart.htmlLabels))s=te(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const _=t.split(G.lineBreakRegex);for(const $ of _){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=$,k.appendChild(v)}s=k}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}const T=await q(t,S());l.setNode(r.id,{labelStyle:w.labelStyle,shape:o,labelText:T,labelType:r.labelType,rx:b,ry:b,class:y,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:S().flowchart.padding}),g.info("setNode",{labelStyle:w.labelStyle,labelType:r.labelType,shape:o,labelText:T,rx:b,ry:b,class:y,style:w.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:S().flowchart.padding})}},M=async function(e,l,c){g.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=A(e.defaultStyle);d=n.style,u=n.labelStyle}for(const n of e){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,g.info("abc78 new entry",p,i[p])):(i[p]++,g.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];g.info("abc78 new link id to be used is",p,r,i[p]);const y="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=A(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=E(n.interpolate,L):e.defaultInterpolate!==void 0?t.curve=E(e.defaultInterpolate,L):t.curve=E(P.curve,L),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await q(n.text.replace(G.lineBreakRegex,` `),S()),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=r,t.classes="flowchart-link "+y+" "+w,l.setEdge(n.start,n.end,t,a)}},le=function(e,l){return l.db.getClasses()},ae=async function(e,l,c,a){g.info("Drawing flowchart");let i=a.db.getDirection();i===void 0&&(i="TD");const{securityLevel:d,flowchart:u}=S(),n=u.nodeSpacing||50,p=u.rankSpacing||50;let r;d==="sandbox"&&(r=C("#i"+l));const y=d==="sandbox"?C(r.nodes()[0].contentDocument.body):C("body"),w=d==="sandbox"?r.nodes()[0].contentDocument:document,t=new R({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:n,ranksep:p,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let s;const b=a.db.getSubGraphs();g.info("Subgraphs - ",b);for(let f=b.length-1;f>=0;f--)s=b[f],g.info("Subgraph - ",s),a.db.addVertex(s.id,{text:s.title,type:s.labelType},"group",void 0,s.classes,s.dir);const o=a.db.getVertices(),T=a.db.getEdges();g.info("Edges",T);let k=0;for(k=b.length-1;k>=0;k--){s=b[k],Z("cluster").append("text");for(let f=0;f{const c=Y,a=c(e,"r"),i=c(e,"g"),d=c(e,"b");return W(a,i,d,l)},ne=e=>`.label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; diff --git a/deploy/server/notebase/assets/svgDrawCommon-08f97a94-Cb_6H50Z.js b/deploy/server/notebase/assets/svgDrawCommon-08f97a94-CD3fOJ0l.js similarity index 95% rename from deploy/server/notebase/assets/svgDrawCommon-08f97a94-Cb_6H50Z.js rename to deploy/server/notebase/assets/svgDrawCommon-08f97a94-CD3fOJ0l.js index 7fed33956c..ef2aab69ed 100644 --- a/deploy/server/notebase/assets/svgDrawCommon-08f97a94-Cb_6H50Z.js +++ b/deploy/server/notebase/assets/svgDrawCommon-08f97a94-CD3fOJ0l.js @@ -1 +1 @@ -import{a3 as o,m as i}from"./mermaid.core-BajzCmnv.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,m as b,y as c,l as d,h as e,d as f,g}; +import{a3 as o,m as i}from"./mermaid.core-DacimPk4.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,m as b,y as c,l as d,h as e,d as f,g}; diff --git a/deploy/server/notebase/assets/threadService-CYtUfoLW.js b/deploy/server/notebase/assets/threadService-Bmr3Oiaf.js similarity index 94% rename from deploy/server/notebase/assets/threadService-CYtUfoLW.js rename to deploy/server/notebase/assets/threadService-Bmr3Oiaf.js index 5f777f5fa4..29db4a9f5a 100644 --- a/deploy/server/notebase/assets/threadService-CYtUfoLW.js +++ b/deploy/server/notebase/assets/threadService-Bmr3Oiaf.js @@ -1 +1 @@ -import{r as T,u as n,a as h}from"./index-CLWgAZNI.js";async function y(t){return T("/api/v1/thread/query",{method:"GET",params:{...t}})}const b={async loadThreads(t,s=3){const{setLoading:o,setError:d,setThreads:i,searchText:c,pagination:a,setPagination:l}=n.getState(),p=h.getState().currentOrg,g=async u=>{try{o(!0),d(null);const r={orgUid:p.uid,pageNumber:a.pageNumber,pageSize:a.pageSize};c&&(r.searchText=c);const e=await y(r);if(console.log("queryThreads response",r,e.data),e.data.code===200){if(l({...a,total:e.data.data.totalElements,pageNumber:e.data.data.last?a.pageNumber:a.pageNumber+1}),a.pageNumber===0)i(e.data.data.content);else{const{threads:S}=n.getState();i([...S,...e.data.data.content])}const{setThreadResult:m}=n.getState();m(e.data)}else throw new Error(e.data.message)}catch(r){if(usetTimeout(e,1e3)),g(u+1);d(r instanceof Error?r.message:"Failed to load threads")}finally{o(!1)}};return g(1)},async resetAndLoad(){const{setPagination:t}=n.getState(),s=h.getState().currentOrg;return t({pageNumber:0,pageSize:100,total:0}),this.loadThreads(s.uid)},async loadThreadsWithFilters(t){const{setFilter:s}=n.getState();return Object.entries(t).forEach(([o,d])=>{s(o,d)}),this.resetAndLoad()}};export{b as threadService}; +import{r as T,u as n,a as h}from"./index-bOgutTC1.js";async function y(t){return T("/api/v1/thread/query",{method:"GET",params:{...t}})}const b={async loadThreads(t,s=3){const{setLoading:o,setError:d,setThreads:i,searchText:c,pagination:a,setPagination:l}=n.getState(),p=h.getState().currentOrg,g=async u=>{try{o(!0),d(null);const r={orgUid:p.uid,pageNumber:a.pageNumber,pageSize:a.pageSize};c&&(r.searchText=c);const e=await y(r);if(console.log("queryThreads response",r,e.data),e.data.code===200){if(l({...a,total:e.data.data.totalElements,pageNumber:e.data.data.last?a.pageNumber:a.pageNumber+1}),a.pageNumber===0)i(e.data.data.content);else{const{threads:S}=n.getState();i([...S,...e.data.data.content])}const{setThreadResult:m}=n.getState();m(e.data)}else throw new Error(e.data.message)}catch(r){if(usetTimeout(e,1e3)),g(u+1);d(r instanceof Error?r.message:"Failed to load threads")}finally{o(!1)}};return g(1)},async resetAndLoad(){const{setPagination:t}=n.getState(),s=h.getState().currentOrg;return t({pageNumber:0,pageSize:100,total:0}),this.loadThreads(s.uid)},async loadThreadsWithFilters(t){const{setFilter:s}=n.getState();return Object.entries(t).forEach(([o,d])=>{s(o,d)}),this.resetAndLoad()}};export{b as threadService}; diff --git a/deploy/server/notebase/assets/timeline-definition-85554ec2-CvJeyBUi.js b/deploy/server/notebase/assets/timeline-definition-85554ec2-CQ7c8ExM.js similarity index 99% rename from deploy/server/notebase/assets/timeline-definition-85554ec2-CvJeyBUi.js rename to deploy/server/notebase/assets/timeline-definition-85554ec2-CQ7c8ExM.js index f6989f06c4..fe839d3fad 100644 --- a/deploy/server/notebase/assets/timeline-definition-85554ec2-CvJeyBUi.js +++ b/deploy/server/notebase/assets/timeline-definition-85554ec2-CQ7c8ExM.js @@ -1,4 +1,4 @@ -import{a5 as ft,C as gt,c as mt,l as E,h as G,t as xt,a6 as _t,a7 as bt,a8 as kt}from"./mermaid.core-BajzCmnv.js";import"./index-CLWgAZNI.js";import{a as D}from"./arc-DCwD3PI6.js";import"./path-CbwjOpE9.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],l=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,o,$){var x=o.length-1;switch(u){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 15:d.addTask(o[x],0,""),this.$=o[x];break;case 16:d.addEvent(o[x].substr(2)),this.$=o[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],o=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=o.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;o.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var b,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=z()),S=$[L]&&$[L][b]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`: +import{a5 as ft,C as gt,c as mt,l as E,h as G,t as xt,a6 as _t,a7 as bt,a8 as kt}from"./mermaid.core-DacimPk4.js";import"./index-bOgutTC1.js";import{a as D}from"./arc-UQ4BAf3M.js";import"./path-CbwjOpE9.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],l=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,o,$){var x=o.length-1;switch(u){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 15:d.addTask(o[x],0,""),this.$=o[x];break;case 16:d.addEvent(o[x].substr(2)),this.$=o[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],o=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=o.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;o.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var b,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=z()),S=$[L]&&$[L][b]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`: `+k.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[b]||b)+"'":J="Parse error on line "+(T+1)+": Unexpected "+(b==A?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(J,{text:k.match,token:this.terminals_[b]||b,line:k.yylineno,loc:I,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+b);switch(S[0]){case 1:c.push(b),u.push(k.yytext),o.push(k.yylloc),c.push(S[1]),b=null,W=k.yyleng,x=k.yytext,T=k.yylineno,I=k.yylloc;break;case 2:if(N=this.productions_[S[1]][1],R.$=u[u.length-N],R._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},P&&(R._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),Z=this.performAction.apply(R,[x,W,T,w.yy,S[1],u,o].concat(B)),typeof Z<"u")return Z;N&&(c=c.slice(0,-1*N*2),u=u.slice(0,-1*N),o=o.slice(0,-1*N)),c.push(this.productions_[S[1]][0]),u.push(R.$),o.push(R._$),Y=$[c[c.length-2]][c[c.length-1]],c.push(Y);break;case 3:return!0}}return!0}},_=function(){var g={EOF:1,parseError:function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw new Error(r)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/xychartDiagram-e933f94c--91O5qLe.js b/deploy/server/notebase/assets/xychartDiagram-e933f94c-DcCVCk7Y.js similarity index 99% rename from deploy/server/notebase/assets/xychartDiagram-e933f94c--91O5qLe.js rename to deploy/server/notebase/assets/xychartDiagram-e933f94c-DcCVCk7Y.js index 5f07ce5971..84c3e51df5 100644 --- a/deploy/server/notebase/assets/xychartDiagram-e933f94c--91O5qLe.js +++ b/deploy/server/notebase/assets/xychartDiagram-e933f94c-DcCVCk7Y.js @@ -1,4 +1,4 @@ -import{U as zt,V as ot,Q as wt,P as Ft,s as Nt,g as Xt,A as Yt,B as St,a as Ht,b as $t,C as Ut,l as Ct,N as qt,i as jt,d as Gt}from"./mermaid.core-BajzCmnv.js";import{c as Qt}from"./createText-2e5e7dd3-CXwUql3o.js";import"./index-CLWgAZNI.js";import{i as Kt}from"./init-Gi6I4Gst.js";import{o as Zt}from"./ordinal-Cboi1Yqb.js";import{l as ft}from"./linear-DTRuWJOk.js";import{l as pt}from"./line-CH9gKq5B.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Wt=k.options&&k.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,W,v,it,O={},q,M,dt,j;;){if(W=u[u.length-1],this.defaultActions[W]?v=this.defaultActions[W]:((D===null||typeof D>"u")&&(D=Ot()),v=F[W]&&F[W][D]),typeof v>"u"||!v.length||!v[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`: +import{U as zt,V as ot,Q as wt,P as Ft,s as Nt,g as Xt,A as Yt,B as St,a as Ht,b as $t,C as Ut,l as Ct,N as qt,i as jt,d as Gt}from"./mermaid.core-DacimPk4.js";import{c as Qt}from"./createText-2e5e7dd3-sebYv4r1.js";import"./index-bOgutTC1.js";import{i as Kt}from"./init-Gi6I4Gst.js";import{o as Zt}from"./ordinal-Cboi1Yqb.js";import{l as ft}from"./linear-3xwamwH4.js";import{l as pt}from"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Wt=k.options&&k.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,W,v,it,O={},q,M,dt,j;;){if(W=u[u.length-1],this.defaultActions[W]?v=this.defaultActions[W]:((D===null||typeof D>"u")&&(D=Ot()),v=F[W]&&F[W][D]),typeof v>"u"||!v.length||!v[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`: `+k.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[D]||D)+"'":et="Parse error on line "+(U+1)+": Unexpected "+(D==xt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(et,{text:k.match,token:this.terminals_[D]||D,line:k.yylineno,loc:tt,expected:j})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+D);switch(v[0]){case 1:u.push(D),b.push(k.yytext),a.push(k.yylloc),u.push(v[1]),D=null,gt=k.yyleng,x=k.yytext,U=k.yylineno,tt=k.yylloc;break;case 2:if(M=this.productions_[v[1]][1],O.$=b[b.length-M],O._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},Wt&&(O._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),it=this.performAction.apply(O,[x,gt,U,B.yy,v[1],b,a].concat(Bt)),typeof it<"u")return it;M&&(u=u.slice(0,-1*M*2),b=b.slice(0,-1*M),a=a.slice(0,-1*M)),u.push(this.productions_[v[1]][0]),b.push(O.$),a.push(O._$),dt=F[u[u.length-2]][u[u.length-1]],u.push(dt);break;case 3:return!0}}return!0}},It=function(){var V={EOF:1,parseError:function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},setInput:function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var l=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===g.length?this.yylloc.first_column:0)+g[g.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/deploy/server/notebase/index.html b/deploy/server/notebase/index.html index 9e2c2f2dcd..534af050c2 100644 --- a/deploy/server/notebase/index.html +++ b/deploy/server/notebase/index.html @@ -7,7 +7,7 @@ 微语 - + diff --git a/starter/src/main/resources/templates/agent/agent/assets/js/index-DivwmTky.js b/starter/src/main/resources/templates/agent/agent/assets/js/index-Cu_dx1tM.js similarity index 54% rename from starter/src/main/resources/templates/agent/agent/assets/js/index-DivwmTky.js rename to starter/src/main/resources/templates/agent/agent/assets/js/index-Cu_dx1tM.js index 21786bd1c8..e3a593aea4 100644 --- a/starter/src/main/resources/templates/agent/agent/assets/js/index-DivwmTky.js +++ b/starter/src/main/resources/templates/agent/agent/assets/js/index-Cu_dx1tM.js @@ -1,4 +1,4 @@ -var WSe=Object.defineProperty;var dW=e=>{throw TypeError(e)};var VSe=(e,t,n)=>t in e?WSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qSe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Yr=(e,t,n)=>VSe(e,typeof t!="symbol"?t+"":t,n),Z7=(e,t,n)=>t.has(e)||dW("Cannot "+n);var Fe=(e,t,n)=>(Z7(e,t,"read from private field"),n?n.call(e):t.get(e)),Un=(e,t,n)=>t.has(e)?dW("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),yn=(e,t,n,r)=>(Z7(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Nn=(e,t,n)=>(Z7(e,t,"access private method"),n);var Fh=(e,t,n,r)=>({set _(i){yn(e,t,i,n)},get _(){return Fe(e,t,r)}});var snn=qSe(($l,qo)=>{function x5(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var oi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ei(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function B3(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Rie={exports:{}},S5={},jie={exports:{}},Ar={};/** +var qSe=Object.defineProperty;var hW=e=>{throw TypeError(e)};var KSe=(e,t,n)=>t in e?qSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var GSe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Gr=(e,t,n)=>KSe(e,typeof t!="symbol"?t+"":t,n),eM=(e,t,n)=>t.has(e)||hW("Cannot "+n);var Fe=(e,t,n)=>(eM(e,t,"read from private field"),n?n.call(e):t.get(e)),Un=(e,t,n)=>t.has(e)?hW("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),xn=(e,t,n,r)=>(eM(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Dn=(e,t,n)=>(eM(e,t,"access private method"),n);var Bh=(e,t,n,r)=>({set _(i){xn(e,t,i,n)},get _(){return Fe(e,t,r)}});var cnn=GSe((Ml,qo)=>{function S5(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var oi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ei(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function B3(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Aie={exports:{}},C5={},Die={exports:{}},Nr={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var WSe=Object.defineProperty;var dW=e=>{throw TypeError(e)};var VSe=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var z3=Symbol.for("react.element"),KSe=Symbol.for("react.portal"),GSe=Symbol.for("react.fragment"),YSe=Symbol.for("react.strict_mode"),XSe=Symbol.for("react.profiler"),ZSe=Symbol.for("react.provider"),QSe=Symbol.for("react.context"),JSe=Symbol.for("react.forward_ref"),eCe=Symbol.for("react.suspense"),tCe=Symbol.for("react.memo"),nCe=Symbol.for("react.lazy"),fW=Symbol.iterator;function rCe(e){return e===null||typeof e!="object"?null:(e=fW&&e[fW]||e["@@iterator"],typeof e=="function"?e:null)}var Nie={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Aie=Object.assign,Die={};function ny(e,t,n){this.props=e,this.context=t,this.refs=Die,this.updater=n||Nie}ny.prototype.isReactComponent={};ny.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ny.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Fie(){}Fie.prototype=ny.prototype;function gD(e,t,n){this.props=e,this.context=t,this.refs=Die,this.updater=n||Nie}var vD=gD.prototype=new Fie;vD.constructor=gD;Aie(vD,ny.prototype);vD.isPureReactComponent=!0;var pW=Array.isArray,Lie=Object.prototype.hasOwnProperty,yD={current:null},Bie={key:!0,ref:!0,__self:!0,__source:!0};function zie(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)Lie.call(t,r)&&!Bie.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1{throw TypeError(e)};var VSe=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var lCe=d,cCe=Symbol.for("react.element"),uCe=Symbol.for("react.fragment"),dCe=Object.prototype.hasOwnProperty,fCe=lCe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,pCe={key:!0,ref:!0,__self:!0,__source:!0};function Uie(e,t,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)dCe.call(t,r)&&!pCe.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:cCe,type:e,key:a,ref:o,props:i,_owner:fCe.current}}S5.Fragment=uCe;S5.jsx=Uie;S5.jsxs=Uie;Rie.exports=S5;var x=Rie.exports,UP={},Wie={exports:{}},Fl={},Vie={exports:{}},qie={};/** + */var uCe=d,dCe=Symbol.for("react.element"),fCe=Symbol.for("react.fragment"),pCe=Object.prototype.hasOwnProperty,hCe=uCe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,mCe={key:!0,ref:!0,__self:!0,__source:!0};function qie(e,t,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)pCe.call(t,r)&&!mCe.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:dCe,type:e,key:a,ref:o,props:i,_owner:hCe.current}}C5.Fragment=fCe;C5.jsx=qie;C5.jsxs=qie;Aie.exports=C5;var x=Aie.exports,qP={},Kie={exports:{}},Bl={},Gie={exports:{}},Yie={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var WSe=Object.defineProperty;var dW=e=>{throw TypeError(e)};var VSe=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(D,V){var F=D.length;D.push(V);e:for(;0>>1,B=D[K];if(0>>1;Ki(ee,F))iei(Y,ee)?(D[K]=Y,D[ie]=F,K=ie):(D[K]=ee,D[Z]=F,K=Z);else if(iei(Y,F))D[K]=Y,D[ie]=F,K=ie;else break e}}return V}function i(D,V){var F=D.sortIndex-V.sortIndex;return F!==0?F:D.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,f=null,p=3,h=!1,m=!1,g=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(D){for(var V=n(c);V!==null;){if(V.callback===null)r(c);else if(V.startTime<=D)r(c),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(c)}}function _(D){if(g=!1,w(D),!m)if(n(l)!==null)m=!0,j(k);else{var V=n(c);V!==null&&N(_,V.startTime-D)}}function k(D,V){m=!1,g&&(g=!1,y(E),E=-1),h=!0;var F=p;try{for(w(V),f=n(l);f!==null&&(!(f.expirationTime>V)||D&&!P());){var K=f.callback;if(typeof K=="function"){f.callback=null,p=f.priorityLevel;var B=K(f.expirationTime<=V);V=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(l)&&r(l),w(V)}else r(l);f=n(l)}if(f!==null)var U=!0;else{var Z=n(c);Z!==null&&N(_,Z.startTime-V),U=!1}return U}finally{f=null,p=F,h=!1}}var S=!1,C=null,E=-1,$=5,M=-1;function P(){return!(e.unstable_now()-M<$)}function I(){if(C!==null){var D=e.unstable_now();M=D;var V=!0;try{V=C(!0,D)}finally{V?O():(S=!1,C=null)}}else S=!1}var O;if(typeof b=="function")O=function(){b(I)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,R=A.port2;A.port1.onmessage=I,O=function(){R.postMessage(null)}}else O=function(){v(I,0)};function j(D){C=D,S||(S=!0,O())}function N(D,V){E=v(function(){D(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,j(k))},e.unstable_forceFrameRate=function(D){0>D||125K?(D.sortIndex=F,t(c,D),n(l)===null&&D===n(c)&&(g?(y(E),E=-1):g=!0,N(_,F-K))):(D.sortIndex=B,t(l,D),m||h||(m=!0,j(k))),D},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(D){var V=p;return function(){var F=p;p=V;try{return D.apply(this,arguments)}finally{p=F}}}})(qie);Vie.exports=qie;var hCe=Vie.exports;/** + */(function(e){function t(F,K){var L=F.length;F.push(K);e:for(;0>>1,B=F[V];if(0>>1;Vi(ee,L))iei(Z,ee)?(F[V]=Z,F[ie]=L,V=ie):(F[V]=ee,F[Y]=L,V=Y);else if(iei(Z,L))F[V]=Z,F[ie]=L,V=ie;else break e}}return K}function i(F,K){var L=F.sortIndex-K.sortIndex;return L!==0?L:F.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,f=null,p=3,h=!1,m=!1,g=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(F){for(var K=n(c);K!==null;){if(K.callback===null)r(c);else if(K.startTime<=F)r(c),K.sortIndex=K.expirationTime,t(l,K);else break;K=n(c)}}function C(F){if(g=!1,b(F),!m)if(n(l)!==null)m=!0,A(k);else{var K=n(c);K!==null&&N(C,K.startTime-F)}}function k(F,K){m=!1,g&&(g=!1,y(E),E=-1),h=!0;var L=p;try{for(b(K),f=n(l);f!==null&&(!(f.expirationTime>K)||F&&!P());){var V=f.callback;if(typeof V=="function"){f.callback=null,p=f.priorityLevel;var B=V(f.expirationTime<=K);K=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(l)&&r(l),b(K)}else r(l);f=n(l)}if(f!==null)var U=!0;else{var Y=n(c);Y!==null&&N(C,Y.startTime-K),U=!1}return U}finally{f=null,p=L,h=!1}}var S=!1,_=null,E=-1,$=5,M=-1;function P(){return!(e.unstable_now()-M<$)}function R(){if(_!==null){var F=e.unstable_now();M=F;var K=!0;try{K=_(!0,F)}finally{K?O():(S=!1,_=null)}}else S=!1}var O;if(typeof w=="function")O=function(){w(R)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,I=j.port2;j.port1.onmessage=R,O=function(){I.postMessage(null)}}else O=function(){v(R,0)};function A(F){_=F,S||(S=!0,O())}function N(F,K){E=v(function(){F(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,A(k))},e.unstable_forceFrameRate=function(F){0>F||125V?(F.sortIndex=L,t(c,F),n(l)===null&&F===n(c)&&(g?(y(E),E=-1):g=!0,N(C,L-V))):(F.sortIndex=B,t(l,F),m||h||(m=!0,A(k))),F},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(F){var K=p;return function(){var L=p;p=K;try{return F.apply(this,arguments)}finally{p=L}}}})(Yie);Gie.exports=Yie;var gCe=Gie.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var WSe=Object.defineProperty;var dW=e=>{throw TypeError(e)};var VSe=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var mCe=d,Ol=hCe;function pn(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),WP=Object.prototype.hasOwnProperty,gCe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,mW={},gW={};function vCe(e){return WP.call(gW,e)?!0:WP.call(mW,e)?!1:gCe.test(e)?gW[e]=!0:(mW[e]=!0,!1)}function yCe(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function bCe(e,t,n,r){if(t===null||typeof t>"u"||yCe(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function xs(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var xo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xo[e]=new xs(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xo[t]=new xs(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xo[e]=new xs(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xo[e]=new xs(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xo[e]=new xs(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xo[e]=new xs(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xo[e]=new xs(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xo[e]=new xs(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xo[e]=new xs(e,5,!1,e.toLowerCase(),null,!1,!1)});var wD=/[\-:]([a-z])/g;function xD(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wD,xD);xo[t]=new xs(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wD,xD);xo[t]=new xs(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wD,xD);xo[t]=new xs(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xo[e]=new xs(e,1,!1,e.toLowerCase(),null,!1,!1)});xo.xlinkHref=new xs("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xo[e]=new xs(e,1,!1,e.toLowerCase(),null,!0,!0)});function SD(e,t,n,r){var i=xo.hasOwnProperty(t)?xo[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),KP=Object.prototype.hasOwnProperty,yCe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yW={},bW={};function bCe(e){return KP.call(bW,e)?!0:KP.call(yW,e)?!1:yCe.test(e)?bW[e]=!0:(yW[e]=!0,!1)}function wCe(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function xCe(e,t,n,r){if(t===null||typeof t>"u"||wCe(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function _s(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var So={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){So[e]=new _s(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];So[t]=new _s(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){So[e]=new _s(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){So[e]=new _s(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){So[e]=new _s(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){So[e]=new _s(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){So[e]=new _s(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){So[e]=new _s(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){So[e]=new _s(e,5,!1,e.toLowerCase(),null,!1,!1)});var CD=/[\-:]([a-z])/g;function _D(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(CD,_D);So[t]=new _s(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(CD,_D);So[t]=new _s(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(CD,_D);So[t]=new _s(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){So[e]=new _s(e,1,!1,e.toLowerCase(),null,!1,!1)});So.xlinkHref=new _s("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){So[e]=new _s(e,1,!1,e.toLowerCase(),null,!0,!0)});function kD(e,t,n,r){var i=So.hasOwnProperty(t)?So[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{eM=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?c2(e):""}function wCe(e){switch(e.tag){case 5:return c2(e.type);case 16:return c2("Lazy");case 13:return c2("Suspense");case 19:return c2("SuspenseList");case 0:case 2:case 15:return e=tM(e.type,!1),e;case 11:return e=tM(e.type.render,!1),e;case 1:return e=tM(e.type,!0),e;default:return""}}function GP(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case J1:return"Fragment";case Q1:return"Portal";case VP:return"Profiler";case CD:return"StrictMode";case qP:return"Suspense";case KP:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Yie:return(e.displayName||"Context")+".Consumer";case Gie:return(e._context.displayName||"Context")+".Provider";case _D:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kD:return t=e.displayName||null,t!==null?t:GP(e.type)||"Memo";case xp:t=e._payload,e=e._init;try{return GP(e(t))}catch{}}return null}function xCe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return GP(t);case 8:return t===CD?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function sh(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zie(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function SCe(e){var t=Zie(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rx(e){e._valueTracker||(e._valueTracker=SCe(e))}function Qie(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zie(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function B_(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function YP(e,t){var n=t.checked;return ia({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function yW(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=sh(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jie(e,t){t=t.checked,t!=null&&SD(e,"checked",t,!1)}function XP(e,t){Jie(e,t);var n=sh(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ZP(e,t.type,n):t.hasOwnProperty("defaultValue")&&ZP(e,t.type,sh(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bW(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ZP(e,t,n){(t!=="number"||B_(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var u2=Array.isArray;function bv(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=jx.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pw(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var P2={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},CCe=["Webkit","ms","Moz","O"];Object.keys(P2).forEach(function(e){CCe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),P2[t]=P2[e]})});function rae(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||P2.hasOwnProperty(e)&&P2[e]?(""+t).trim():t+"px"}function iae(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=rae(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var _Ce=ia({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function eO(e,t){if(t){if(_Ce[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(pn(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(pn(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(pn(61))}if(t.style!=null&&typeof t.style!="object")throw Error(pn(62))}}function tO(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nO=null;function ED(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rO=null,wv=null,xv=null;function SW(e){if(e=W3(e)){if(typeof rO!="function")throw Error(pn(280));var t=e.stateNode;t&&(t=$5(t),rO(e.stateNode,e.type,t))}}function aae(e){wv?xv?xv.push(e):xv=[e]:wv=e}function oae(){if(wv){var e=wv,t=xv;if(xv=wv=null,SW(e),t)for(e=0;e>>=0,e===0?32:31-(NCe(e)/ACe|0)|0}var Nx=64,Ax=4194304;function d2(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function W_(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=d2(s):(a&=o,a!==0&&(r=d2(a)))}else o=n&~i,o!==0?r=d2(o):a!==0&&(r=d2(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function H3(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-eu(t),e[t]=n}function BCe(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=I2),OW=" ",IW=!1;function Eae(e,t){switch(e){case"keyup":return h_e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $ae(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ev=!1;function g_e(e,t){switch(e){case"compositionend":return $ae(t);case"keypress":return t.which!==32?null:(IW=!0,OW);case"textInput":return e=t.data,e===OW&&IW?null:e;default:return null}}function v_e(e,t){if(ev)return e==="compositionend"||!jD&&Eae(e,t)?(e=_ae(),hC=OD=Ip=null,ev=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=AW(n)}}function Oae(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Oae(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Iae(){for(var e=window,t=B_();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=B_(e.document)}return t}function ND(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function E_e(e){var t=Iae(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Oae(n.ownerDocument.documentElement,n)){if(r!==null&&ND(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=DW(n,a);var o=DW(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,tv=null,cO=null,j2=null,uO=!1;function FW(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uO||tv==null||tv!==B_(r)||(r=tv,"selectionStart"in r&&ND(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),j2&&bw(j2,r)||(j2=r,r=K_(cO,"onSelect"),0iv||(e.current=gO[iv],gO[iv]=null,iv--)}function Ti(e,t){iv++,gO[iv]=e.current,e.current=t}var lh={},Yo=hh(lh),Fs=hh(!1),Jm=lh;function t0(e,t){var n=e.type.contextTypes;if(!n)return lh;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ls(e){return e=e.childContextTypes,e!=null}function Y_(){Fi(Fs),Fi(Yo)}function VW(e,t,n){if(Yo.current!==lh)throw Error(pn(168));Ti(Yo,t),Ti(Fs,n)}function zae(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(pn(108,xCe(e)||"Unknown",i));return ia({},n,r)}function X_(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lh,Jm=Yo.current,Ti(Yo,e),Ti(Fs,Fs.current),!0}function qW(e,t,n){var r=e.stateNode;if(!r)throw Error(pn(169));n?(e=zae(e,t,Jm),r.__reactInternalMemoizedMergedChildContext=e,Fi(Fs),Fi(Yo),Ti(Yo,e)):Fi(Fs),Ti(Fs,n)}var nf=null,M5=!1,mM=!1;function Hae(e){nf===null?nf=[e]:nf.push(e)}function F_e(e){M5=!0,Hae(e)}function mh(){if(!mM&&nf!==null){mM=!0;var e=0,t=ui;try{var n=nf;for(ui=1;e>=o,i-=o,lf=1<<32-eu(t)+i|n<E?($=C,C=null):$=C.sibling;var M=p(y,C,w[E],_);if(M===null){C===null&&(C=$);break}e&&C&&M.alternate===null&&t(y,C),b=a(M,b,E),S===null?k=M:S.sibling=M,S=M,C=$}if(E===w.length)return n(y,C),Xi&&Zh(y,E),k;if(C===null){for(;EE?($=C,C=null):$=C.sibling;var P=p(y,C,M.value,_);if(P===null){C===null&&(C=$);break}e&&C&&P.alternate===null&&t(y,C),b=a(P,b,E),S===null?k=P:S.sibling=P,S=P,C=$}if(M.done)return n(y,C),Xi&&Zh(y,E),k;if(C===null){for(;!M.done;E++,M=w.next())M=f(y,M.value,_),M!==null&&(b=a(M,b,E),S===null?k=M:S.sibling=M,S=M);return Xi&&Zh(y,E),k}for(C=r(y,C);!M.done;E++,M=w.next())M=h(C,y,E,M.value,_),M!==null&&(e&&M.alternate!==null&&C.delete(M.key===null?E:M.key),b=a(M,b,E),S===null?k=M:S.sibling=M,S=M);return e&&C.forEach(function(I){return t(y,I)}),Xi&&Zh(y,E),k}function v(y,b,w,_){if(typeof w=="object"&&w!==null&&w.type===J1&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ix:e:{for(var k=w.key,S=b;S!==null;){if(S.key===k){if(k=w.type,k===J1){if(S.tag===7){n(y,S.sibling),b=i(S,w.props.children),b.return=y,y=b;break e}}else if(S.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===xp&&YW(k)===S.type){n(y,S.sibling),b=i(S,w.props),b.ref=bb(y,S,w),b.return=y,y=b;break e}n(y,S);break}else t(y,S);S=S.sibling}w.type===J1?(b=Am(w.props.children,y.mode,_,w.key),b.return=y,y=b):(_=SC(w.type,w.key,w.props,null,y.mode,_),_.ref=bb(y,b,w),_.return=y,y=_)}return o(y);case Q1:e:{for(S=w.key;b!==null;){if(b.key===S)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){n(y,b.sibling),b=i(b,w.children||[]),b.return=y,y=b;break e}else{n(y,b);break}else t(y,b);b=b.sibling}b=CM(w,y.mode,_),b.return=y,y=b}return o(y);case xp:return S=w._init,v(y,b,S(w._payload),_)}if(u2(w))return m(y,b,w,_);if(hb(w))return g(y,b,w,_);Ux(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,b!==null&&b.tag===6?(n(y,b.sibling),b=i(b,w),b.return=y,y=b):(n(y,b),b=SM(w,y.mode,_),b.return=y,y=b),o(y)):n(y,b)}return v}var r0=qae(!0),Kae=qae(!1),J_=hh(null),ek=null,sv=null,LD=null;function BD(){LD=sv=ek=null}function zD(e){var t=J_.current;Fi(J_),e._currentValue=t}function bO(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Cv(e,t){ek=e,LD=sv=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(As=!0),e.firstContext=null)}function fc(e){var t=e._currentValue;if(LD!==e)if(e={context:e,memoizedValue:t,next:null},sv===null){if(ek===null)throw Error(pn(308));sv=e,ek.dependencies={lanes:0,firstContext:e}}else sv=sv.next=e;return t}var mm=null;function HD(e){mm===null?mm=[e]:mm.push(e)}function Gae(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,HD(t)):(n.next=i.next,i.next=n),t.interleaved=n,_f(e,r)}function _f(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Sp=!1;function UD(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yae(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mf(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yp(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Xr&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,_f(e,n)}return i=r.interleaved,i===null?(t.next=t,HD(r)):(t.next=i.next,i.next=t),r.interleaved=t,_f(e,n)}function gC(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,MD(e,n)}}function XW(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function tk(e,t,n,r){var i=e.updateQueue;Sp=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?a=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,u=c=l=null,s=a;do{var p=s.lane,h=s.eventTime;if((r&p)===p){u!==null&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(p=t,h=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){f=m.call(h,f,p);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,p=typeof m=="function"?m.call(h,f,p):m,p==null)break e;f=ia({},f,p);break e;case 2:Sp=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=h,l=f):u=u.next=h,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(u===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);ng|=o,e.lanes=o,e.memoizedState=f}}function ZW(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=vM.transition;vM.transition={};try{e(!1),t()}finally{ui=n,vM.transition=r}}function foe(){return pc().memoizedState}function H_e(e,t,n){var r=Zp(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},poe(e))hoe(t,n);else if(n=Gae(e,t,n,r),n!==null){var i=vs();tu(n,e,r,i),moe(n,t,r)}}function U_e(e,t,n){var r=Zp(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(poe(e))hoe(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,uu(s,o)){var l=t.interleaved;l===null?(i.next=i,HD(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Gae(e,t,i,r),n!==null&&(i=vs(),tu(n,e,r,i),moe(n,t,r))}}function poe(e){var t=e.alternate;return e===ra||t!==null&&t===ra}function hoe(e,t){N2=rk=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function moe(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,MD(e,n)}}var ik={readContext:fc,useCallback:Oo,useContext:Oo,useEffect:Oo,useImperativeHandle:Oo,useInsertionEffect:Oo,useLayoutEffect:Oo,useMemo:Oo,useReducer:Oo,useRef:Oo,useState:Oo,useDebugValue:Oo,useDeferredValue:Oo,useTransition:Oo,useMutableSource:Oo,useSyncExternalStore:Oo,useId:Oo,unstable_isNewReconciler:!1},W_e={readContext:fc,useCallback:function(e,t){return Bu().memoizedState=[e,t===void 0?null:t],e},useContext:fc,useEffect:JW,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yC(4194308,4,soe.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yC(4194308,4,e,t)},useInsertionEffect:function(e,t){return yC(4,2,e,t)},useMemo:function(e,t){var n=Bu();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bu();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=H_e.bind(null,ra,e),[r.memoizedState,e]},useRef:function(e){var t=Bu();return e={current:e},t.memoizedState=e},useState:QW,useDebugValue:ZD,useDeferredValue:function(e){return Bu().memoizedState=e},useTransition:function(){var e=QW(!1),t=e[0];return e=z_e.bind(null,e[1]),Bu().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ra,i=Bu();if(Xi){if(n===void 0)throw Error(pn(407));n=n()}else{if(n=t(),ao===null)throw Error(pn(349));tg&30||Jae(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,JW(toe.bind(null,r,a,e),[e]),r.flags|=2048,$w(9,eoe.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Bu(),t=ao.identifierPrefix;if(Xi){var n=cf,r=lf;n=(r&~(1<<32-eu(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=kw++,0")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{rM=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?u2(e):""}function SCe(e){switch(e.tag){case 5:return u2(e.type);case 16:return u2("Lazy");case 13:return u2("Suspense");case 19:return u2("SuspenseList");case 0:case 2:case 15:return e=iM(e.type,!1),e;case 11:return e=iM(e.type.render,!1),e;case 1:return e=iM(e.type,!0),e;default:return""}}function ZP(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ev:return"Fragment";case J1:return"Portal";case GP:return"Profiler";case ED:return"StrictMode";case YP:return"Suspense";case XP:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qie:return(e.displayName||"Context")+".Consumer";case Zie:return(e._context.displayName||"Context")+".Provider";case $D:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case MD:return t=e.displayName||null,t!==null?t:ZP(e.type)||"Memo";case xp:t=e._payload,e=e._init;try{return ZP(e(t))}catch{}}return null}function CCe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ZP(t);case 8:return t===ED?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lh(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function eae(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _Ce(e){var t=eae(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nx(e){e._valueTracker||(e._valueTracker=_Ce(e))}function tae(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eae(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function z_(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function QP(e,t){var n=t.checked;return ra({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xW(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lh(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nae(e,t){t=t.checked,t!=null&&kD(e,"checked",t,!1)}function JP(e,t){nae(e,t);var n=lh(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?eO(e,t.type,n):t.hasOwnProperty("defaultValue")&&eO(e,t.type,lh(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function SW(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function eO(e,t,n){(t!=="number"||z_(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var d2=Array.isArray;function xv(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ax.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pw(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var O2={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kCe=["Webkit","ms","Moz","O"];Object.keys(O2).forEach(function(e){kCe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),O2[t]=O2[e]})});function oae(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||O2.hasOwnProperty(e)&&O2[e]?(""+t).trim():t+"px"}function sae(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=oae(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ECe=ra({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rO(e,t){if(t){if(ECe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(hn(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(hn(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(hn(61))}if(t.style!=null&&typeof t.style!="object")throw Error(hn(62))}}function iO(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var aO=null;function TD(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oO=null,Sv=null,Cv=null;function kW(e){if(e=W3(e)){if(typeof oO!="function")throw Error(hn(280));var t=e.stateNode;t&&(t=M5(t),oO(e.stateNode,e.type,t))}}function lae(e){Sv?Cv?Cv.push(e):Cv=[e]:Sv=e}function cae(){if(Sv){var e=Sv,t=Cv;if(Cv=Sv=null,kW(e),t)for(e=0;e>>=0,e===0?32:31-(DCe(e)/FCe|0)|0}var Dx=64,Fx=4194304;function f2(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function V_(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=f2(s):(a&=o,a!==0&&(r=f2(a)))}else o=n&~i,o!==0?r=f2(o):a!==0&&(r=f2(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function H3(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-iu(t),e[t]=n}function HCe(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=I2),jW=" ",NW=!1;function Tae(e,t){switch(e){case"keyup":return g_e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pae(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tv=!1;function y_e(e,t){switch(e){case"compositionend":return Pae(t);case"keypress":return t.which!==32?null:(NW=!0,jW);case"textInput":return e=t.data,e===jW&&NW?null:e;default:return null}}function b_e(e,t){if(tv)return e==="compositionend"||!DD&&Tae(e,t)?(e=$ae(),gC=jD=Ip=null,tv=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=LW(n)}}function jae(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jae(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nae(){for(var e=window,t=z_();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=z_(e.document)}return t}function FD(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function M_e(e){var t=Nae(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jae(n.ownerDocument.documentElement,n)){if(r!==null&&FD(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=BW(n,a);var o=BW(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,nv=null,fO=null,N2=null,pO=!1;function zW(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pO||nv==null||nv!==z_(r)||(r=nv,"selectionStart"in r&&FD(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),N2&&bw(N2,r)||(N2=r,r=G_(fO,"onSelect"),0av||(e.current=bO[av],bO[av]=null,av--)}function Mi(e,t){av++,bO[av]=e.current,e.current=t}var ch={},Yo=gh(ch),Fs=gh(!1),eg=ch;function i0(e,t){var n=e.type.contextTypes;if(!n)return ch;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ls(e){return e=e.childContextTypes,e!=null}function X_(){Ai(Fs),Ai(Yo)}function GW(e,t,n){if(Yo.current!==ch)throw Error(hn(168));Mi(Yo,t),Mi(Fs,n)}function Wae(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(hn(108,CCe(e)||"Unknown",i));return ra({},n,r)}function Z_(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ch,eg=Yo.current,Mi(Yo,e),Mi(Fs,Fs.current),!0}function YW(e,t,n){var r=e.stateNode;if(!r)throw Error(hn(169));n?(e=Wae(e,t,eg),r.__reactInternalMemoizedMergedChildContext=e,Ai(Fs),Ai(Yo),Mi(Yo,e)):Ai(Fs),Mi(Fs,n)}var rf=null,T5=!1,yM=!1;function Vae(e){rf===null?rf=[e]:rf.push(e)}function B_e(e){T5=!0,Vae(e)}function vh(){if(!yM&&rf!==null){yM=!0;var e=0,t=ui;try{var n=rf;for(ui=1;e>=o,i-=o,cf=1<<32-iu(t)+i|n<E?($=_,_=null):$=_.sibling;var M=p(y,_,b[E],C);if(M===null){_===null&&(_=$);break}e&&_&&M.alternate===null&&t(y,_),w=a(M,w,E),S===null?k=M:S.sibling=M,S=M,_=$}if(E===b.length)return n(y,_),Yi&&Jh(y,E),k;if(_===null){for(;EE?($=_,_=null):$=_.sibling;var P=p(y,_,M.value,C);if(P===null){_===null&&(_=$);break}e&&_&&P.alternate===null&&t(y,_),w=a(P,w,E),S===null?k=P:S.sibling=P,S=P,_=$}if(M.done)return n(y,_),Yi&&Jh(y,E),k;if(_===null){for(;!M.done;E++,M=b.next())M=f(y,M.value,C),M!==null&&(w=a(M,w,E),S===null?k=M:S.sibling=M,S=M);return Yi&&Jh(y,E),k}for(_=r(y,_);!M.done;E++,M=b.next())M=h(_,y,E,M.value,C),M!==null&&(e&&M.alternate!==null&&_.delete(M.key===null?E:M.key),w=a(M,w,E),S===null?k=M:S.sibling=M,S=M);return e&&_.forEach(function(R){return t(y,R)}),Yi&&Jh(y,E),k}function v(y,w,b,C){if(typeof b=="object"&&b!==null&&b.type===ev&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case jx:e:{for(var k=b.key,S=w;S!==null;){if(S.key===k){if(k=b.type,k===ev){if(S.tag===7){n(y,S.sibling),w=i(S,b.props.children),w.return=y,y=w;break e}}else if(S.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===xp&&QW(k)===S.type){n(y,S.sibling),w=i(S,b.props),w.ref=wb(y,S,b),w.return=y,y=w;break e}n(y,S);break}else t(y,S);S=S.sibling}b.type===ev?(w=Dm(b.props.children,y.mode,C,b.key),w.return=y,y=w):(C=_C(b.type,b.key,b.props,null,y.mode,C),C.ref=wb(y,w,b),C.return=y,y=C)}return o(y);case J1:e:{for(S=b.key;w!==null;){if(w.key===S)if(w.tag===4&&w.stateNode.containerInfo===b.containerInfo&&w.stateNode.implementation===b.implementation){n(y,w.sibling),w=i(w,b.children||[]),w.return=y,y=w;break e}else{n(y,w);break}else t(y,w);w=w.sibling}w=EM(b,y.mode,C),w.return=y,y=w}return o(y);case xp:return S=b._init,v(y,w,S(b._payload),C)}if(d2(b))return m(y,w,b,C);if(mb(b))return g(y,w,b,C);Vx(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,w!==null&&w.tag===6?(n(y,w.sibling),w=i(w,b),w.return=y,y=w):(n(y,w),w=kM(b,y.mode,C),w.return=y,y=w),o(y)):n(y,w)}return v}var o0=Yae(!0),Xae=Yae(!1),ek=gh(null),tk=null,lv=null,HD=null;function UD(){HD=lv=tk=null}function WD(e){var t=ek.current;Ai(ek),e._currentValue=t}function SO(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function kv(e,t){tk=e,HD=lv=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(As=!0),e.firstContext=null)}function hc(e){var t=e._currentValue;if(HD!==e)if(e={context:e,memoizedValue:t,next:null},lv===null){if(tk===null)throw Error(hn(308));lv=e,tk.dependencies={lanes:0,firstContext:e}}else lv=lv.next=e;return t}var gm=null;function VD(e){gm===null?gm=[e]:gm.push(e)}function Zae(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,VD(t)):(n.next=i.next,i.next=n),t.interleaved=n,_f(e,r)}function _f(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Sp=!1;function qD(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qae(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function gf(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xp(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Yr&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,_f(e,n)}return i=r.interleaved,i===null?(t.next=t,VD(r)):(t.next=i.next,i.next=t),r.interleaved=t,_f(e,n)}function yC(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,OD(e,n)}}function JW(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function nk(e,t,n,r){var i=e.updateQueue;Sp=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?a=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,u=c=l=null,s=a;do{var p=s.lane,h=s.eventTime;if((r&p)===p){u!==null&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(p=t,h=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){f=m.call(h,f,p);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,p=typeof m=="function"?m.call(h,f,p):m,p==null)break e;f=ra({},f,p);break e;case 2:Sp=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=h,l=f):u=u.next=h,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(u===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);rg|=o,e.lanes=o,e.memoizedState=f}}function eV(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=wM.transition;wM.transition={};try{e(!1),t()}finally{ui=n,wM.transition=r}}function moe(){return mc().memoizedState}function W_e(e,t,n){var r=Qp(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},goe(e))voe(t,n);else if(n=Zae(e,t,n,r),n!==null){var i=ws();au(n,e,r,i),yoe(n,t,r)}}function V_e(e,t,n){var r=Qp(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(goe(e))voe(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,hu(s,o)){var l=t.interleaved;l===null?(i.next=i,VD(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Zae(e,t,i,r),n!==null&&(i=ws(),au(n,e,r,i),yoe(n,t,r))}}function goe(e){var t=e.alternate;return e===na||t!==null&&t===na}function voe(e,t){A2=ik=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yoe(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,OD(e,n)}}var ak={readContext:hc,useCallback:Ro,useContext:Ro,useEffect:Ro,useImperativeHandle:Ro,useInsertionEffect:Ro,useLayoutEffect:Ro,useMemo:Ro,useReducer:Ro,useRef:Ro,useState:Ro,useDebugValue:Ro,useDeferredValue:Ro,useTransition:Ro,useMutableSource:Ro,useSyncExternalStore:Ro,useId:Ro,unstable_isNewReconciler:!1},q_e={readContext:hc,useCallback:function(e,t){return Uu().memoizedState=[e,t===void 0?null:t],e},useContext:hc,useEffect:nV,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wC(4194308,4,uoe.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wC(4194308,4,e,t)},useInsertionEffect:function(e,t){return wC(4,2,e,t)},useMemo:function(e,t){var n=Uu();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Uu();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=W_e.bind(null,na,e),[r.memoizedState,e]},useRef:function(e){var t=Uu();return e={current:e},t.memoizedState=e},useState:tV,useDebugValue:eF,useDeferredValue:function(e){return Uu().memoizedState=e},useTransition:function(){var e=tV(!1),t=e[0];return e=U_e.bind(null,e[1]),Uu().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=na,i=Uu();if(Yi){if(n===void 0)throw Error(hn(407));n=n()}else{if(n=t(),io===null)throw Error(hn(349));ng&30||noe(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,nV(ioe.bind(null,r,a,e),[e]),r.flags|=2048,$w(9,roe.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Uu(),t=io.identifierPrefix;if(Yi){var n=uf,r=cf;n=(r&~(1<<32-iu(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=kw++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Yu]=t,e[Sw]=r,koe(e,t,!1,!1),t.stateNode=e;e:{switch(o=tO(n,r),n){case"dialog":Ri("cancel",e),Ri("close",e),i=r;break;case"iframe":case"object":case"embed":Ri("load",e),i=r;break;case"video":case"audio":for(i=0;io0&&(t.flags|=128,r=!0,wb(a,!1),t.lanes=4194304)}else{if(!r)if(e=nk(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wb(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Xi)return Io(t),null}else 2*Sa()-a.renderingStartTime>o0&&n!==1073741824&&(t.flags|=128,r=!0,wb(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Sa(),t.sibling=null,n=na.current,Ti(na,r?n&1|2:n&1),t):(Io(t),null);case 22:case 23:return rF(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gl&1073741824&&(Io(t),t.subtreeFlags&6&&(t.flags|=8192)):Io(t),null;case 24:return null;case 25:return null}throw Error(pn(156,t.tag))}function Q_e(e,t){switch(DD(t),t.tag){case 1:return Ls(t.type)&&Y_(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return i0(),Fi(Fs),Fi(Yo),qD(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return VD(t),null;case 13:if(Fi(na),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(pn(340));n0()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fi(na),null;case 4:return i0(),null;case 10:return zD(t.type._context),null;case 22:case 23:return rF(),null;case 24:return null;default:return null}}var Vx=!1,Ho=!1,J_e=typeof WeakSet=="function"?WeakSet:Set,Bn=null;function lv(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pa(e,t,r)}else n.current=null}function MO(e,t,n){try{n()}catch(r){pa(e,t,r)}}var uV=!1;function eke(e,t){if(dO=V_,e=Iae(),ND(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===i&&(s=o),p===a&&++u===r&&(l=o),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(fO={focusedElem:e,selectionRange:n},V_=!1,Bn=t;Bn!==null;)if(t=Bn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Bn=e;else for(;Bn!==null;){t=Bn;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:Bc(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(pn(163))}}catch(_){pa(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,Bn=e;break}Bn=t.return}return m=uV,uV=!1,m}function A2(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&MO(t,n,a)}i=i.next}while(i!==r)}}function O5(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function TO(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Moe(e){var t=e.alternate;t!==null&&(e.alternate=null,Moe(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yu],delete t[Sw],delete t[mO],delete t[A_e],delete t[D_e])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Toe(e){return e.tag===5||e.tag===3||e.tag===4}function dV(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Toe(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function PO(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=G_));else if(r!==4&&(e=e.child,e!==null))for(PO(e,t,n),e=e.sibling;e!==null;)PO(e,t,n),e=e.sibling}function OO(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(OO(e,t,n),e=e.sibling;e!==null;)OO(e,t,n),e=e.sibling}var ho=null,Uc=!1;function ap(e,t,n){for(n=n.child;n!==null;)Poe(e,t,n),n=n.sibling}function Poe(e,t,n){if(id&&typeof id.onCommitFiberUnmount=="function")try{id.onCommitFiberUnmount(C5,n)}catch{}switch(n.tag){case 5:Ho||lv(n,t);case 6:var r=ho,i=Uc;ho=null,ap(e,t,n),ho=r,Uc=i,ho!==null&&(Uc?(e=ho,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ho.removeChild(n.stateNode));break;case 18:ho!==null&&(Uc?(e=ho,n=n.stateNode,e.nodeType===8?hM(e.parentNode,n):e.nodeType===1&&hM(e,n),vw(e)):hM(ho,n.stateNode));break;case 4:r=ho,i=Uc,ho=n.stateNode.containerInfo,Uc=!0,ap(e,t,n),ho=r,Uc=i;break;case 0:case 11:case 14:case 15:if(!Ho&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&MO(n,t,o),i=i.next}while(i!==r)}ap(e,t,n);break;case 1:if(!Ho&&(lv(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){pa(n,t,s)}ap(e,t,n);break;case 21:ap(e,t,n);break;case 22:n.mode&1?(Ho=(r=Ho)||n.memoizedState!==null,ap(e,t,n),Ho=r):ap(e,t,n);break;default:ap(e,t,n)}}function fV(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new J_e),t.forEach(function(r){var i=cke.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Oc(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=Sa()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nke(r/1960))-r,10e?16:e,Rp===null)var r=!1;else{if(e=Rp,Rp=null,sk=0,Xr&6)throw Error(pn(331));var i=Xr;for(Xr|=4,Bn=e.current;Bn!==null;){var a=Bn,o=a.child;if(Bn.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lSa()-tF?Nm(e,0):eF|=n),Bs(e,t)}function Foe(e,t){t===0&&(e.mode&1?(t=Ax,Ax<<=1,!(Ax&130023424)&&(Ax=4194304)):t=1);var n=vs();e=_f(e,t),e!==null&&(H3(e,t,n),Bs(e,n))}function lke(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Foe(e,n)}function cke(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(pn(314))}r!==null&&r.delete(t),Foe(e,n)}var Loe;Loe=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fs.current)As=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return As=!1,X_e(e,t,n);As=!!(e.flags&131072)}else As=!1,Xi&&t.flags&1048576&&Uae(t,Q_,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bC(e,t),e=t.pendingProps;var i=t0(t,Yo.current);Cv(t,n),i=GD(null,t,r,e,i,n);var a=YD();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ls(r)?(a=!0,X_(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,UD(t),i.updater=P5,t.stateNode=i,i._reactInternals=t,xO(t,r,e,n),t=_O(null,t,r,!0,a,n)):(t.tag=0,Xi&&a&&AD(t),cs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bC(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=dke(r),e=Bc(r,e),i){case 0:t=CO(null,t,r,e,n);break e;case 1:t=sV(null,t,r,e,n);break e;case 11:t=aV(null,t,r,e,n);break e;case 14:t=oV(null,t,r,Bc(r.type,e),n);break e}throw Error(pn(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bc(r,i),CO(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bc(r,i),sV(e,t,r,i,n);case 3:e:{if(Soe(t),e===null)throw Error(pn(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Yae(e,t),tk(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=a0(Error(pn(423)),t),t=lV(e,t,r,n,i);break e}else if(r!==i){i=a0(Error(pn(424)),t),t=lV(e,t,r,n,i);break e}else for(xl=Gp(t.stateNode.containerInfo.firstChild),Ml=t,Xi=!0,Kc=null,n=Kae(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(n0(),r===i){t=kf(e,t,n);break e}cs(e,t,r,n)}t=t.child}return t;case 5:return Xae(t),e===null&&yO(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,pO(r,i)?o=null:a!==null&&pO(r,a)&&(t.flags|=32),xoe(e,t),cs(e,t,o,n),t.child;case 6:return e===null&&yO(t),null;case 13:return Coe(e,t,n);case 4:return WD(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=r0(t,null,r,n):cs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bc(r,i),aV(e,t,r,i,n);case 7:return cs(e,t,t.pendingProps,n),t.child;case 8:return cs(e,t,t.pendingProps.children,n),t.child;case 12:return cs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Ti(J_,r._currentValue),r._currentValue=o,a!==null)if(uu(a.value,o)){if(a.children===i.children&&!Fs.current){t=kf(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=mf(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),bO(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(pn(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),bO(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}cs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Cv(t,n),i=fc(i),r=r(i),t.flags|=1,cs(e,t,r,n),t.child;case 14:return r=t.type,i=Bc(r,t.pendingProps),i=Bc(r.type,i),oV(e,t,r,i,n);case 15:return boe(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bc(r,i),bC(e,t),t.tag=1,Ls(r)?(e=!0,X_(t)):e=!1,Cv(t,n),goe(t,r,i),xO(t,r,i,n),_O(null,t,r,!0,e,n);case 19:return _oe(e,t,n);case 22:return woe(e,t,n)}throw Error(pn(156,t.tag))};function Boe(e,t){return pae(e,t)}function uke(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lc(e,t,n,r){return new uke(e,t,n,r)}function aF(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dke(e){if(typeof e=="function")return aF(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_D)return 11;if(e===kD)return 14}return 2}function Qp(e,t){var n=e.alternate;return n===null?(n=lc(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function SC(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")aF(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case J1:return Am(n.children,i,a,t);case CD:o=8,i|=8;break;case VP:return e=lc(12,n,t,i|2),e.elementType=VP,e.lanes=a,e;case qP:return e=lc(13,n,t,i),e.elementType=qP,e.lanes=a,e;case KP:return e=lc(19,n,t,i),e.elementType=KP,e.lanes=a,e;case Xie:return R5(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gie:o=10;break e;case Yie:o=9;break e;case _D:o=11;break e;case kD:o=14;break e;case xp:o=16,r=null;break e}throw Error(pn(130,e==null?e:typeof e,""))}return t=lc(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Am(e,t,n,r){return e=lc(7,e,r,t),e.lanes=n,e}function R5(e,t,n,r){return e=lc(22,e,r,t),e.elementType=Xie,e.lanes=n,e.stateNode={isHidden:!1},e}function SM(e,t,n){return e=lc(6,e,null,t),e.lanes=n,e}function CM(e,t,n){return t=lc(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fke(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rM(0),this.expirationTimes=rM(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rM(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function oF(e,t,n,r,i,a,o,s,l){return e=new fke(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=lc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},UD(a),e}function pke(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Woe)}catch(e){console.error(e)}}Woe(),Wie.exports=Fl;var Ka=Wie.exports;const ig=ei(Ka),Voe=x5({__proto__:null,default:ig},[Ka]);var wV=Ka;UP.createRoot=wV.createRoot,UP.hydrateRoot=wV.hydrateRoot;const yke={BASE_URL:"/agent",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_APP_ENV:"web",VITE_CONFIG_ENV:"prod-open"},xV=e=>{let t;const n=new Set,r=(u,f)=>{const p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){const h=t;t=f??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(m=>m(t,h))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(yke?"open":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,i,l);return l},bke=e=>e?xV(e):xV;var qoe={exports:{}},Koe={},Goe={exports:{}},Yoe={};/** +`+a.stack}return{value:e,source:t,stack:i,digest:null}}function CM(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function kO(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Y_e=typeof WeakMap=="function"?WeakMap:Map;function woe(e,t,n){n=gf(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){sk||(sk=!0,NO=r),kO(e,t)},n}function xoe(e,t,n){n=gf(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){kO(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){kO(e,t),typeof r!="function"&&(Zp===null?Zp=new Set([this]):Zp.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function aV(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Y_e;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=cke.bind(null,e,t,n),t.then(e,e))}function oV(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function sV(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=gf(-1,1),t.tag=2,Xp(n,t,1))),n.lanes|=1),e)}var X_e=Lf.ReactCurrentOwner,As=!1;function fs(e,t,n,r){t.child=e===null?Xae(t,null,n,r):o0(t,e.child,n,r)}function lV(e,t,n,r,i){n=n.render;var a=t.ref;return kv(t,i),r=ZD(e,t,n,r,a,i),n=QD(),e!==null&&!As?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,kf(e,t,i)):(Yi&&n&&LD(t),t.flags|=1,fs(e,t,r,i),t.child)}function cV(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!lF(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Soe(e,t,a,r,i)):(e=_C(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:bw,n(o,r)&&e.ref===t.ref)return kf(e,t,i)}return t.flags|=1,e=Jp(a,r),e.ref=t.ref,e.return=t,t.child=e}function Soe(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(bw(a,r)&&e.ref===t.ref)if(As=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(As=!0);else return t.lanes=e.lanes,kf(e,t,i)}return EO(e,t,n,r,i)}function Coe(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mi(uv,vl),vl|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Mi(uv,vl),vl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Mi(uv,vl),vl|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Mi(uv,vl),vl|=r;return fs(e,t,i,n),t.child}function _oe(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function EO(e,t,n,r,i){var a=Ls(n)?eg:Yo.current;return a=i0(t,a),kv(t,i),n=ZD(e,t,n,r,a,i),r=QD(),e!==null&&!As?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,kf(e,t,i)):(Yi&&r&&LD(t),t.flags|=1,fs(e,t,n,i),t.child)}function uV(e,t,n,r,i){if(Ls(n)){var a=!0;Z_(t)}else a=!1;if(kv(t,i),t.stateNode===null)xC(e,t),boe(t,n,r),_O(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=hc(c):(c=Ls(n)?eg:Yo.current,c=i0(t,c));var u=n.getDerivedStateFromProps,f=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||l!==c)&&iV(t,o,r,c),Sp=!1;var p=t.memoizedState;o.state=p,nk(t,r,o,i),l=t.memoizedState,s!==r||p!==l||Fs.current||Sp?(typeof u=="function"&&(CO(t,n,u,r),l=t.memoizedState),(s=Sp||rV(t,n,s,r,p,l,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Qae(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Wc(t.type,s),o.props=c,f=t.pendingProps,p=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=hc(l):(l=Ls(n)?eg:Yo.current,l=i0(t,l));var h=n.getDerivedStateFromProps;(u=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||p!==l)&&iV(t,o,r,l),Sp=!1,p=t.memoizedState,o.state=p,nk(t,r,o,i);var m=t.memoizedState;s!==f||p!==m||Fs.current||Sp?(typeof h=="function"&&(CO(t,n,h,r),m=t.memoizedState),(c=Sp||rV(t,n,c,r,p,m,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return $O(e,t,n,r,a,i)}function $O(e,t,n,r,i,a){_oe(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&YW(t,n,!1),kf(e,t,a);r=t.stateNode,X_e.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=o0(t,e.child,null,a),t.child=o0(t,null,s,a)):fs(e,t,s,a),t.memoizedState=r.state,i&&YW(t,n,!0),t.child}function koe(e){var t=e.stateNode;t.pendingContext?GW(e,t.pendingContext,t.pendingContext!==t.context):t.context&&GW(e,t.context,!1),KD(e,t.containerInfo)}function dV(e,t,n,r,i){return a0(),zD(i),t.flags|=256,fs(e,t,n,r),t.child}var MO={dehydrated:null,treeContext:null,retryLane:0};function TO(e){return{baseLanes:e,cachePool:null,transitions:null}}function Eoe(e,t,n){var r=t.pendingProps,i=ta.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Mi(ta,i&1),e===null)return xO(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=j5(o,r,0,null),e=Dm(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=TO(n),t.memoizedState=MO,e):tF(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Z_e(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Jp(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=Jp(s,a):(a=Dm(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?TO(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=MO,r}return a=e.child,e=a.sibling,r=Jp(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function tF(e,t){return t=j5({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qx(e,t,n,r){return r!==null&&zD(r),o0(t,e.child,null,n),e=tF(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Z_e(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=CM(Error(hn(422))),qx(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=j5({mode:"visible",children:r.children},i,0,null),a=Dm(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&o0(t,e.child,null,o),t.child.memoizedState=TO(o),t.memoizedState=MO,a);if(!(t.mode&1))return qx(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(hn(419)),r=CM(a,r,void 0),qx(e,t,o,r)}if(s=(o&e.childLanes)!==0,As||s){if(r=io,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,_f(e,i),au(r,e,i,-1))}return sF(),r=CM(Error(hn(421))),qx(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=uke.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Sl=Yp(i.nextSibling),Tl=t,Yi=!0,Zc=null,e!==null&&(rc[ic++]=cf,rc[ic++]=uf,rc[ic++]=tg,cf=e.id,uf=e.overflow,tg=t),t=tF(t,r.children),t.flags|=4096,t)}function fV(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),SO(e.return,t,n)}function _M(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function $oe(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(fs(e,t,r.children,n),r=ta.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fV(e,n,t);else if(e.tag===19)fV(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Mi(ta,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&rk(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),_M(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&rk(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}_M(t,!0,n,null,a);break;case"together":_M(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xC(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function kf(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),rg|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(hn(153));if(t.child!==null){for(e=t.child,n=Jp(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Jp(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Q_e(e,t,n){switch(t.tag){case 3:koe(t),a0();break;case 5:Jae(t);break;case 1:Ls(t.type)&&Z_(t);break;case 4:KD(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Mi(ek,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Mi(ta,ta.current&1),t.flags|=128,null):n&t.child.childLanes?Eoe(e,t,n):(Mi(ta,ta.current&1),e=kf(e,t,n),e!==null?e.sibling:null);Mi(ta,ta.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $oe(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Mi(ta,ta.current),r)break;return null;case 22:case 23:return t.lanes=0,Coe(e,t,n)}return kf(e,t,n)}var Moe,PO,Toe,Poe;Moe=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};PO=function(){};Toe=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,vm(ld.current);var a=null;switch(n){case"input":i=QP(e,i),r=QP(e,r),a=[];break;case"select":i=ra({},i,{value:void 0}),r=ra({},r,{value:void 0}),a=[];break;case"textarea":i=tO(e,i),r=tO(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Y_)}rO(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(fw.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(fw.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ri("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};Poe=function(e,t,n,r){n!==r&&(t.flags|=4)};function xb(e,t){if(!Yi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Io(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function J_e(e,t,n){var r=t.pendingProps;switch(BD(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Io(t),null;case 1:return Ls(t.type)&&X_(),Io(t),null;case 3:return r=t.stateNode,s0(),Ai(Fs),Ai(Yo),YD(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Wx(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Zc!==null&&(FO(Zc),Zc=null))),PO(e,t),Io(t),null;case 5:GD(t);var i=vm(_w.current);if(n=t.type,e!==null&&t.stateNode!=null)Toe(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(hn(166));return Io(t),null}if(e=vm(ld.current),Wx(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Qu]=t,r[Sw]=a,e=(t.mode&1)!==0,n){case"dialog":Ri("cancel",r),Ri("close",r);break;case"iframe":case"object":case"embed":Ri("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Qu]=t,e[Sw]=r,Moe(e,t,!1,!1),t.stateNode=e;e:{switch(o=iO(n,r),n){case"dialog":Ri("cancel",e),Ri("close",e),i=r;break;case"iframe":case"object":case"embed":Ri("load",e),i=r;break;case"video":case"audio":for(i=0;ic0&&(t.flags|=128,r=!0,xb(a,!1),t.lanes=4194304)}else{if(!r)if(e=rk(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xb(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Yi)return Io(t),null}else 2*xa()-a.renderingStartTime>c0&&n!==1073741824&&(t.flags|=128,r=!0,xb(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=xa(),t.sibling=null,n=ta.current,Mi(ta,r?n&1|2:n&1),t):(Io(t),null);case 22:case 23:return oF(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?vl&1073741824&&(Io(t),t.subtreeFlags&6&&(t.flags|=8192)):Io(t),null;case 24:return null;case 25:return null}throw Error(hn(156,t.tag))}function eke(e,t){switch(BD(t),t.tag){case 1:return Ls(t.type)&&X_(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return s0(),Ai(Fs),Ai(Yo),YD(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return GD(t),null;case 13:if(Ai(ta),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(hn(340));a0()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ai(ta),null;case 4:return s0(),null;case 10:return WD(t.type._context),null;case 22:case 23:return oF(),null;case 24:return null;default:return null}}var Kx=!1,Uo=!1,tke=typeof WeakSet=="function"?WeakSet:Set,Bn=null;function cv(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fa(e,t,r)}else n.current=null}function OO(e,t,n){try{n()}catch(r){fa(e,t,r)}}var pV=!1;function nke(e,t){if(hO=q_,e=Nae(),FD(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===i&&(s=o),p===a&&++u===r&&(l=o),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(mO={focusedElem:e,selectionRange:n},q_=!1,Bn=t;Bn!==null;)if(t=Bn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Bn=e;else for(;Bn!==null;){t=Bn;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,w=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:Wc(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(hn(163))}}catch(C){fa(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Bn=e;break}Bn=t.return}return m=pV,pV=!1,m}function D2(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&OO(t,n,a)}i=i.next}while(i!==r)}}function R5(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function RO(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ooe(e){var t=e.alternate;t!==null&&(e.alternate=null,Ooe(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qu],delete t[Sw],delete t[yO],delete t[F_e],delete t[L_e])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Roe(e){return e.tag===5||e.tag===3||e.tag===4}function hV(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Roe(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function IO(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Y_));else if(r!==4&&(e=e.child,e!==null))for(IO(e,t,n),e=e.sibling;e!==null;)IO(e,t,n),e=e.sibling}function jO(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(jO(e,t,n),e=e.sibling;e!==null;)jO(e,t,n),e=e.sibling}var ho=null,Kc=!1;function ap(e,t,n){for(n=n.child;n!==null;)Ioe(e,t,n),n=n.sibling}function Ioe(e,t,n){if(sd&&typeof sd.onCommitFiberUnmount=="function")try{sd.onCommitFiberUnmount(_5,n)}catch{}switch(n.tag){case 5:Uo||cv(n,t);case 6:var r=ho,i=Kc;ho=null,ap(e,t,n),ho=r,Kc=i,ho!==null&&(Kc?(e=ho,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ho.removeChild(n.stateNode));break;case 18:ho!==null&&(Kc?(e=ho,n=n.stateNode,e.nodeType===8?vM(e.parentNode,n):e.nodeType===1&&vM(e,n),vw(e)):vM(ho,n.stateNode));break;case 4:r=ho,i=Kc,ho=n.stateNode.containerInfo,Kc=!0,ap(e,t,n),ho=r,Kc=i;break;case 0:case 11:case 14:case 15:if(!Uo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&OO(n,t,o),i=i.next}while(i!==r)}ap(e,t,n);break;case 1:if(!Uo&&(cv(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){fa(n,t,s)}ap(e,t,n);break;case 21:ap(e,t,n);break;case 22:n.mode&1?(Uo=(r=Uo)||n.memoizedState!==null,ap(e,t,n),Uo=r):ap(e,t,n);break;default:ap(e,t,n)}}function mV(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tke),t.forEach(function(r){var i=dke.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function jc(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=xa()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ike(r/1960))-r,10e?16:e,jp===null)var r=!1;else{if(e=jp,jp=null,lk=0,Yr&6)throw Error(hn(331));var i=Yr;for(Yr|=4,Bn=e.current;Bn!==null;){var a=Bn,o=a.child;if(Bn.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lxa()-iF?Am(e,0):rF|=n),Bs(e,t)}function zoe(e,t){t===0&&(e.mode&1?(t=Fx,Fx<<=1,!(Fx&130023424)&&(Fx=4194304)):t=1);var n=ws();e=_f(e,t),e!==null&&(H3(e,t,n),Bs(e,n))}function uke(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zoe(e,n)}function dke(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(hn(314))}r!==null&&r.delete(t),zoe(e,n)}var Hoe;Hoe=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fs.current)As=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return As=!1,Q_e(e,t,n);As=!!(e.flags&131072)}else As=!1,Yi&&t.flags&1048576&&qae(t,J_,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xC(e,t),e=t.pendingProps;var i=i0(t,Yo.current);kv(t,n),i=ZD(null,t,r,e,i,n);var a=QD();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ls(r)?(a=!0,Z_(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,qD(t),i.updater=O5,t.stateNode=i,i._reactInternals=t,_O(t,r,e,n),t=$O(null,t,r,!0,a,n)):(t.tag=0,Yi&&a&&LD(t),fs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xC(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=pke(r),e=Wc(r,e),i){case 0:t=EO(null,t,r,e,n);break e;case 1:t=uV(null,t,r,e,n);break e;case 11:t=lV(null,t,r,e,n);break e;case 14:t=cV(null,t,r,Wc(r.type,e),n);break e}throw Error(hn(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wc(r,i),EO(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wc(r,i),uV(e,t,r,i,n);case 3:e:{if(koe(t),e===null)throw Error(hn(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Qae(e,t),nk(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=l0(Error(hn(423)),t),t=dV(e,t,r,n,i);break e}else if(r!==i){i=l0(Error(hn(424)),t),t=dV(e,t,r,n,i);break e}else for(Sl=Yp(t.stateNode.containerInfo.firstChild),Tl=t,Yi=!0,Zc=null,n=Xae(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(a0(),r===i){t=kf(e,t,n);break e}fs(e,t,r,n)}t=t.child}return t;case 5:return Jae(t),e===null&&xO(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,gO(r,i)?o=null:a!==null&&gO(r,a)&&(t.flags|=32),_oe(e,t),fs(e,t,o,n),t.child;case 6:return e===null&&xO(t),null;case 13:return Eoe(e,t,n);case 4:return KD(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=o0(t,null,r,n):fs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wc(r,i),lV(e,t,r,i,n);case 7:return fs(e,t,t.pendingProps,n),t.child;case 8:return fs(e,t,t.pendingProps.children,n),t.child;case 12:return fs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Mi(ek,r._currentValue),r._currentValue=o,a!==null)if(hu(a.value,o)){if(a.children===i.children&&!Fs.current){t=kf(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=gf(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),SO(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(hn(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),SO(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}fs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,kv(t,n),i=hc(i),r=r(i),t.flags|=1,fs(e,t,r,n),t.child;case 14:return r=t.type,i=Wc(r,t.pendingProps),i=Wc(r.type,i),cV(e,t,r,i,n);case 15:return Soe(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wc(r,i),xC(e,t),t.tag=1,Ls(r)?(e=!0,Z_(t)):e=!1,kv(t,n),boe(t,r,i),_O(t,r,i,n),$O(null,t,r,!0,e,n);case 19:return $oe(e,t,n);case 22:return Coe(e,t,n)}throw Error(hn(156,t.tag))};function Uoe(e,t){return gae(e,t)}function fke(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function uc(e,t,n,r){return new fke(e,t,n,r)}function lF(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pke(e){if(typeof e=="function")return lF(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$D)return 11;if(e===MD)return 14}return 2}function Jp(e,t){var n=e.alternate;return n===null?(n=uc(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _C(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")lF(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ev:return Dm(n.children,i,a,t);case ED:o=8,i|=8;break;case GP:return e=uc(12,n,t,i|2),e.elementType=GP,e.lanes=a,e;case YP:return e=uc(13,n,t,i),e.elementType=YP,e.lanes=a,e;case XP:return e=uc(19,n,t,i),e.elementType=XP,e.lanes=a,e;case Jie:return j5(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zie:o=10;break e;case Qie:o=9;break e;case $D:o=11;break e;case MD:o=14;break e;case xp:o=16,r=null;break e}throw Error(hn(130,e==null?e:typeof e,""))}return t=uc(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Dm(e,t,n,r){return e=uc(7,e,r,t),e.lanes=n,e}function j5(e,t,n,r){return e=uc(22,e,r,t),e.elementType=Jie,e.lanes=n,e.stateNode={isHidden:!1},e}function kM(e,t,n){return e=uc(6,e,null,t),e.lanes=n,e}function EM(e,t,n){return t=uc(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hke(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oM(0),this.expirationTimes=oM(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oM(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function cF(e,t,n,r,i,a,o,s,l){return e=new hke(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=uc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qD(a),e}function mke(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Koe)}catch(e){console.error(e)}}Koe(),Kie.exports=Bl;var Va=Kie.exports;const ag=ei(Va),Goe=S5({__proto__:null,default:ag},[Va]);var CV=Va;qP.createRoot=CV.createRoot,qP.hydrateRoot=CV.hydrateRoot;const wke={BASE_URL:"/agent",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_APP_ENV:"web",VITE_CONFIG_ENV:"prod-open"},_V=e=>{let t;const n=new Set,r=(u,f)=>{const p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){const h=t;t=f??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(m=>m(t,h))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(wke?"open":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,i,l);return l},xke=e=>e?_V(e):_V;var Yoe={exports:{}},Xoe={},Zoe={exports:{}},Qoe={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -45,7 +45,7 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var s0=d;function wke(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xke=typeof Object.is=="function"?Object.is:wke,Ske=s0.useState,Cke=s0.useEffect,_ke=s0.useLayoutEffect,kke=s0.useDebugValue;function Eke(e,t){var n=t(),r=Ske({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return _ke(function(){i.value=n,i.getSnapshot=t,_M(i)&&a({inst:i})},[e,n,t]),Cke(function(){return _M(i)&&a({inst:i}),e(function(){_M(i)&&a({inst:i})})},[e]),kke(n),n}function _M(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xke(e,n)}catch{return!0}}function $ke(e,t){return t()}var Mke=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?$ke:Eke;Yoe.useSyncExternalStore=s0.useSyncExternalStore!==void 0?s0.useSyncExternalStore:Mke;Goe.exports=Yoe;var Xoe=Goe.exports;/** + */var u0=d;function Ske(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Cke=typeof Object.is=="function"?Object.is:Ske,_ke=u0.useState,kke=u0.useEffect,Eke=u0.useLayoutEffect,$ke=u0.useDebugValue;function Mke(e,t){var n=t(),r=_ke({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return Eke(function(){i.value=n,i.getSnapshot=t,$M(i)&&a({inst:i})},[e,n,t]),kke(function(){return $M(i)&&a({inst:i}),e(function(){$M(i)&&a({inst:i})})},[e]),$ke(n),n}function $M(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cke(e,n)}catch{return!0}}function Tke(e,t){return t()}var Pke=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Tke:Mke;Qoe.useSyncExternalStore=u0.useSyncExternalStore!==void 0?u0.useSyncExternalStore:Pke;Zoe.exports=Qoe;var Joe=Zoe.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -53,37 +53,37 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var F5=d,Tke=Xoe;function Pke(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Oke=typeof Object.is=="function"?Object.is:Pke,Ike=Tke.useSyncExternalStore,Rke=F5.useRef,jke=F5.useEffect,Nke=F5.useMemo,Ake=F5.useDebugValue;Koe.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=Rke(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=Nke(function(){function l(h){if(!c){if(c=!0,u=h,h=r(h),i!==void 0&&o.hasValue){var m=o.value;if(i(m,h))return f=m}return f=h}if(m=f,Oke(u,h))return m;var g=r(h);return i!==void 0&&i(m,g)?m:(u=h,f=g)}var c=!1,u,f,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=Ike(e,a[0],a[1]);return jke(function(){o.hasValue=!0,o.value=s},[s]),Ake(s),s};qoe.exports=Koe;var Dke=qoe.exports;const Fke=ei(Dke),Zoe={BASE_URL:"/agent",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_APP_ENV:"web",VITE_CONFIG_ENV:"prod-open"},{useDebugValue:Lke}=te,{useSyncExternalStoreWithSelector:Bke}=Fke;let SV=!1;const zke=e=>e;function Hke(e,t=zke,n){(Zoe?"open":void 0)!=="production"&&n&&!SV&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),SV=!0);const r=Bke(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Lke(r),r}const CV=e=>{(Zoe?"open":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?bke(e):e,n=(r,i)=>Hke(t,r,i);return Object.assign(n,t),n},So=e=>e?CV(e):CV,CC={BASE_URL:"/agent",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_APP_ENV:"web",VITE_CONFIG_ENV:"prod-open"},AO=new Map,Gx=e=>{const t=AO.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},Uke=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=AO.get(n.name);if(r)return{type:"tracked",store:e,...r};const i={connection:t.connect(n),stores:{}};return AO.set(n.name,i),{type:"tracked",store:e,...i}},Wke=(e,t={})=>(n,r,i)=>{const{enabled:a,anonymousActionType:o,store:s,...l}=t;let c;try{c=(a??(CC?"open":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(CC?"open":void 0)!=="production"&&a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const{connection:u,...f}=Uke(s,c,l);let p=!0;i.setState=(g,v,y)=>{const b=n(g,v);if(!p)return b;const w=y===void 0?{type:o||"anonymous"}:typeof y=="string"?{type:y}:y;return s===void 0?(u==null||u.send(w,r()),b):(u==null||u.send({...w,type:`${s}/${w.type}`},{...Gx(l.name),[s]:i.getState()}),b)};const h=(...g)=>{const v=p;p=!1,n(...g),p=v},m=e(i.setState,r,i);if(f.type==="untracked"?u==null||u.init(m):(f.stores[f.store]=i,u==null||u.init(Object.fromEntries(Object.entries(f.stores).map(([g,v])=>[g,g===f.store?m:v.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let g=!1;const v=i.dispatch;i.dispatch=(...y)=>{(CC?"open":void 0)!=="production"&&y[0].type==="__setState"&&!g&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),g=!0),v(...y)}}return u.subscribe(g=>{var v;switch(g.type){case"ACTION":if(typeof g.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return kM(g.payload,y=>{if(y.type==="__setState"){if(s===void 0){h(y.state);return}Object.keys(y.state).length!==1&&console.error(` + */var L5=d,Oke=Joe;function Rke(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ike=typeof Object.is=="function"?Object.is:Rke,jke=Oke.useSyncExternalStore,Nke=L5.useRef,Ake=L5.useEffect,Dke=L5.useMemo,Fke=L5.useDebugValue;Xoe.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=Nke(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=Dke(function(){function l(h){if(!c){if(c=!0,u=h,h=r(h),i!==void 0&&o.hasValue){var m=o.value;if(i(m,h))return f=m}return f=h}if(m=f,Ike(u,h))return m;var g=r(h);return i!==void 0&&i(m,g)?m:(u=h,f=g)}var c=!1,u,f,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=jke(e,a[0],a[1]);return Ake(function(){o.hasValue=!0,o.value=s},[s]),Fke(s),s};Yoe.exports=Xoe;var Lke=Yoe.exports;const Bke=ei(Lke),ese={BASE_URL:"/agent",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_APP_ENV:"web",VITE_CONFIG_ENV:"prod-open"},{useDebugValue:zke}=te,{useSyncExternalStoreWithSelector:Hke}=Bke;let kV=!1;const Uke=e=>e;function Wke(e,t=Uke,n){(ese?"open":void 0)!=="production"&&n&&!kV&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),kV=!0);const r=Hke(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return zke(r),r}const EV=e=>{(ese?"open":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?xke(e):e,n=(r,i)=>Wke(t,r,i);return Object.assign(n,t),n},so=e=>e?EV(e):EV,kC={BASE_URL:"/agent",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_APP_ENV:"web",VITE_CONFIG_ENV:"prod-open"},LO=new Map,Xx=e=>{const t=LO.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},Vke=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=LO.get(n.name);if(r)return{type:"tracked",store:e,...r};const i={connection:t.connect(n),stores:{}};return LO.set(n.name,i),{type:"tracked",store:e,...i}},qke=(e,t={})=>(n,r,i)=>{const{enabled:a,anonymousActionType:o,store:s,...l}=t;let c;try{c=(a??(kC?"open":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(kC?"open":void 0)!=="production"&&a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const{connection:u,...f}=Vke(s,c,l);let p=!0;i.setState=(g,v,y)=>{const w=n(g,v);if(!p)return w;const b=y===void 0?{type:o||"anonymous"}:typeof y=="string"?{type:y}:y;return s===void 0?(u==null||u.send(b,r()),w):(u==null||u.send({...b,type:`${s}/${b.type}`},{...Xx(l.name),[s]:i.getState()}),w)};const h=(...g)=>{const v=p;p=!1,n(...g),p=v},m=e(i.setState,r,i);if(f.type==="untracked"?u==null||u.init(m):(f.stores[f.store]=i,u==null||u.init(Object.fromEntries(Object.entries(f.stores).map(([g,v])=>[g,g===f.store?m:v.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let g=!1;const v=i.dispatch;i.dispatch=(...y)=>{(kC?"open":void 0)!=="production"&&y[0].type==="__setState"&&!g&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),g=!0),v(...y)}}return u.subscribe(g=>{var v;switch(g.type){case"ACTION":if(typeof g.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return MM(g.payload,y=>{if(y.type==="__setState"){if(s===void 0){h(y.state);return}Object.keys(y.state).length!==1&&console.error(` [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } - `);const b=y.state[s];if(b==null)return;JSON.stringify(i.getState())!==JSON.stringify(b)&&h(b);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(y)});case"DISPATCH":switch(g.payload.type){case"RESET":return h(m),s===void 0?u==null?void 0:u.init(i.getState()):u==null?void 0:u.init(Gx(l.name));case"COMMIT":if(s===void 0){u==null||u.init(i.getState());return}return u==null?void 0:u.init(Gx(l.name));case"ROLLBACK":return kM(g.state,y=>{if(s===void 0){h(y),u==null||u.init(i.getState());return}h(y[s]),u==null||u.init(Gx(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return kM(g.state,y=>{if(s===void 0){h(y);return}JSON.stringify(i.getState())!==JSON.stringify(y[s])&&h(y[s])});case"IMPORT_STATE":{const{nextLiftedState:y}=g.payload,b=(v=y.computedStates.slice(-1)[0])==null?void 0:v.state;if(!b)return;h(s===void 0?b:b[s]),u==null||u.send(null,y);return}case"PAUSE_RECORDING":return p=!p}return}}),m},Ss=Wke,kM=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};function Vke(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var a;const o=l=>l===null?null:JSON.parse(l,void 0),s=(a=n.getItem(i))!=null?a:null;return s instanceof Promise?s.then(o):o(s)},setItem:(i,a)=>n.setItem(i,JSON.stringify(a,void 0)),removeItem:i=>n.removeItem(i)}}const Tw=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Tw(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Tw(r)(n)}}}},qke=(e,t)=>(n,r,i)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,y)=>({...y,...v}),...t},o=!1;const s=new Set,l=new Set;let c;try{c=a.getStorage()}catch{}if(!c)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...v)},r,i);const u=Tw(a.serialize),f=()=>{const v=a.partialize({...r()});let y;const b=u({state:v,version:a.version}).then(w=>c.setItem(a.name,w)).catch(w=>{y=w});if(y)throw y;return b},p=i.setState;i.setState=(v,y)=>{p(v,y),f()};const h=e((...v)=>{n(...v),f()},r,i);let m;const g=()=>{var v;if(!c)return;o=!1,s.forEach(b=>b(r()));const y=((v=a.onRehydrateStorage)==null?void 0:v.call(a,r()))||void 0;return Tw(c.getItem.bind(c))(a.name).then(b=>{if(b)return a.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==a.version){if(a.migrate)return a.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var w;return m=a.merge(b,(w=r())!=null?w:h),n(m,!0),f()}).then(()=>{y==null||y(m,void 0),o=!0,l.forEach(b=>b(m))}).catch(b=>{y==null||y(void 0,b)})};return i.persist={setOptions:v=>{a={...a,...v},v.getStorage&&(c=v.getStorage())},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:v=>(s.add(v),()=>{s.delete(v)}),onFinishHydration:v=>(l.add(v),()=>{l.delete(v)})},g(),m||h},Kke=(e,t)=>(n,r,i)=>{let a={storage:Vke(()=>localStorage),partialize:g=>g,version:0,merge:(g,v)=>({...v,...g}),...t},o=!1;const s=new Set,l=new Set;let c=a.storage;if(!c)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...g)},r,i);const u=()=>{const g=a.partialize({...r()});return c.setItem(a.name,{state:g,version:a.version})},f=i.setState;i.setState=(g,v)=>{f(g,v),u()};const p=e((...g)=>{n(...g),u()},r,i);i.getInitialState=()=>p;let h;const m=()=>{var g,v;if(!c)return;o=!1,s.forEach(b=>{var w;return b((w=r())!=null?w:p)});const y=((v=a.onRehydrateStorage)==null?void 0:v.call(a,(g=r())!=null?g:p))||void 0;return Tw(c.getItem.bind(c))(a.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==a.version){if(a.migrate)return[!0,a.migrate(b.state,b.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var w;const[_,k]=b;if(h=a.merge(k,(w=r())!=null?w:p),n(h,!0),_)return u()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return i.persist={setOptions:g=>{a={...a,...g},g.storage&&(c=g.storage)},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},a.skipHydration||m(),h||p},Gke=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((CC?"open":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),qke(e,t)):Kke(e,t),Cs=Gke;var Qoe=Symbol.for("immer-nothing"),_V=Symbol.for("immer-draftable"),Il=Symbol.for("immer-state");function Gc(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var l0=Object.getPrototypeOf;function c0(e){return!!e&&!!e[Il]}function ag(e){var t;return e?Joe(e)||Array.isArray(e)||!!e[_V]||!!((t=e.constructor)!=null&&t[_V])||B5(e)||z5(e):!1}var Yke=Object.prototype.constructor.toString();function Joe(e){if(!e||typeof e!="object")return!1;const t=l0(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Yke}function uk(e,t){L5(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function L5(e){const t=e[Il];return t?t.type_:Array.isArray(e)?1:B5(e)?2:z5(e)?3:0}function DO(e,t){return L5(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ese(e,t,n){const r=L5(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Xke(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function B5(e){return e instanceof Map}function z5(e){return e instanceof Set}function Jh(e){return e.copy_||e.base_}function FO(e,t){if(B5(e))return new Map(e);if(z5(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Joe(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Il];let i=Reflect.ownKeys(r);for(let a=0;a1&&(e.set=e.add=e.clear=e.delete=Zke),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>uF(r,!0))),e}function Zke(){Gc(2)}function H5(e){return Object.isFrozen(e)}var Qke={};function og(e){const t=Qke[e];return t||Gc(0,e),t}var Pw;function tse(){return Pw}function Jke(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function kV(e,t){t&&(og("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function LO(e){BO(e),e.drafts_.forEach(e6e),e.drafts_=null}function BO(e){e===Pw&&(Pw=e.parent_)}function EV(e){return Pw=Jke(Pw,e)}function e6e(e){const t=e[Il];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function $V(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Il].modified_&&(LO(t),Gc(4)),ag(e)&&(e=dk(t,e),t.parent_||fk(t,e)),t.patches_&&og("Patches").generateReplacementPatches_(n[Il].base_,e,t.patches_,t.inversePatches_)):e=dk(t,n,[]),LO(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Qoe?e:void 0}function dk(e,t,n){if(H5(t))return t;const r=t[Il];if(!r)return uk(t,(i,a)=>MV(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return fk(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,o=!1;r.type_===3&&(a=new Set(i),i.clear(),o=!0),uk(a,(s,l)=>MV(e,r,i,s,l,n,o)),fk(e,i,!1),n&&e.patches_&&og("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function MV(e,t,n,r,i,a,o){if(c0(i)){const s=a&&t&&t.type_!==3&&!DO(t.assigned_,r)?a.concat(r):void 0,l=dk(e,i,s);if(ese(n,r,l),c0(l))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(ag(i)&&!H5(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;dk(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&fk(e,i)}}function fk(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&uF(t,n)}function t6e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:tse(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=dF;n&&(i=[r],a=Ow);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}var dF={get(e,t){if(t===Il)return e;const n=Jh(e);if(!DO(n,t))return n6e(e,n,t);const r=n[t];return e.finalized_||!ag(r)?r:r===EM(e.base_,t)?($M(e),e.copy_[t]=HO(r,e)):r},has(e,t){return t in Jh(e)},ownKeys(e){return Reflect.ownKeys(Jh(e))},set(e,t,n){const r=nse(Jh(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=EM(Jh(e),t),a=i==null?void 0:i[Il];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Xke(n,i)&&(n!==void 0||DO(e.base_,t)))return!0;$M(e),zO(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return EM(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,$M(e),zO(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Jh(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Gc(11)},getPrototypeOf(e){return l0(e.base_)},setPrototypeOf(){Gc(12)}},Ow={};uk(dF,(e,t)=>{Ow[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ow.deleteProperty=function(e,t){return Ow.set.call(this,e,t,void 0)};Ow.set=function(e,t,n){return dF.set.call(this,e[0],t,n,e[0])};function EM(e,t){const n=e[Il];return(n?Jh(n):e)[t]}function n6e(e,t,n){var i;const r=nse(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function nse(e,t){if(!(t in e))return;let n=l0(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=l0(n)}}function zO(e){e.modified_||(e.modified_=!0,e.parent_&&zO(e.parent_))}function $M(e){e.copy_||(e.copy_=FO(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var r6e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const o=this;return function(l=a,...c){return o.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&Gc(6),r!==void 0&&typeof r!="function"&&Gc(7);let i;if(ag(t)){const a=EV(this),o=HO(t,void 0);let s=!0;try{i=n(o),s=!1}finally{s?LO(a):BO(a)}return kV(a,r),$V(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Qoe&&(i=void 0),this.autoFreeze_&&uF(i,!0),r){const a=[],o=[];og("Patches").generateReplacementPatches_(t,i,a,o),r(a,o)}return i}else Gc(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let r,i;return[this.produce(t,n,(o,s)=>{r=o,i=s}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ag(e)||Gc(8),c0(e)&&(e=i6e(e));const t=EV(this),n=HO(e,void 0);return n[Il].isManual_=!0,BO(t),n}finishDraft(e,t){const n=e&&e[Il];(!n||!n.isManual_)&&Gc(9);const{scope_:r}=n;return kV(r,t),$V(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=og("Patches").applyPatches_;return c0(e)?r(e,t):this.produce(e,i=>r(i,t))}};function HO(e,t){const n=B5(e)?og("MapSet").proxyMap_(e,t):z5(e)?og("MapSet").proxySet_(e,t):t6e(e,t);return(t?t.scope_:tse()).drafts_.push(n),n}function i6e(e){return c0(e)||Gc(10,e),rse(e)}function rse(e){if(!ag(e)||H5(e))return e;const t=e[Il];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=FO(e,t.scope_.immer_.useStrictShallowCopy_)}else n=FO(e,!0);return uk(n,(r,i)=>{ese(n,r,rse(i))}),t&&(t.finalized_=!1),n}var Rl=new r6e,a6e=Rl.produce;Rl.produceWithPatches.bind(Rl);Rl.setAutoFreeze.bind(Rl);Rl.setUseStrictShallowCopy.bind(Rl);Rl.applyPatches.bind(Rl);Rl.createDraft.bind(Rl);Rl.finishDraft.bind(Rl);const o6e=e=>(t,n,r)=>(r.setState=(i,a,...o)=>{const s=typeof i=="function"?a6e(i):i;return t(s,a,...o)},e(r.setState,n,r)),_s=o6e,s6e="dev",ise="open",TV="prod",l6e="quanjing",fF="prod-open";console.log("Current VITE_CONFIG_ENV:","prod-open","configEnv:",fF);const c6e="web";console.log("Current VITE_APP_ENV:","web","appEnv:",c6e);let ac;switch(fF){case"dev":ac={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9006",IS_DEBUG:!0,SERVER_MODE:s6e,CLIENT:"WEB"};break;case"prod-open":ac={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9003",IS_DEBUG:!1,SERVER_MODE:ise,CLIENT:"WEB"};break;case"prod-quanjing":ac={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9003",IS_DEBUG:!1,SERVER_MODE:l6e,CLIENT:"WEB"};break;case"prod-web":ac={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:TV,CLIENT:"WEB"};break;default:ac={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:TV,CLIENT:"ELECTRON"}}console.log("config.API_BASE_URL: ",fF,ac);const ma=navigator.userAgent.toLowerCase().indexOf("electron")>-1,MM=ac.API_URL,PV=ac.MQTT_URL;ac.HTML_URL;const Xo=ac.IS_DEBUG,u6e=ac.SERVER_MODE,Sn=ac.CLIENT,hc="BYTEDESK",OV="locale",IV="mode",_C="team",Iw="agent",ase="personal",UO="i18n.",Yx="i18n.new.message",ose="ANONYMOUS",sse="message_list_item",vl="bytedesk_login_credentials",RV="THEME_MODE_TYPE",jV="THEME_NAME_TYPE",kC="PLAY_AUDIO",EC="NETWORK_STATUS_NOTIFICATION",L2="CONFIG_ENABLED_AGENT",$C="CONFIG_API_URL_AGENT",MC="CONFIG_WEBSOCKET_URL_AGENT",TM="CONFIG_HTML_URL_AGENT",uv="CONFIG_CUSTOM_ENABLED_AGENT",p2="CONFIG_CUSTOM_API_URL_AGENT",h2="CONFIG_CUSTOM_WEBSOCKET_URL_AGENT",d6e="CONFIG_PROPERTIES",f6e="SCREENSHOT_OK",p6e="EVENT_BUS_SERVER_ERROR_500",Jp="EVENT_BUS_TOKEN_INVALID",TC="EVENT_BUS_SEND_IMAGE_MESSAGE",PM="EVENT_BUS_SEND_FILE_MESSAGE",Rw="EVENT_BUS_MQTT_MESSAGE",WO="EVENT_BUS_MQTT_CONNECTED",VO="EVENT_BUS_MQTT_OFFLINE",qO="EVENT_BUS_MQTT_CLOSE",KO="EVENT_BUS_MQTT_DISCONNECTED",GO="EVENT_BUS_MQTT_ERROR",YO="EVENT_BUS_MQTT_END",pk="EVENT_BUS_MESSAGE_TYPE_STATUS",h6e="EVENT_BUS_MESSAGE_TYPE_TYPING",m6e="EVENT_BUS_MESSAGE_TYPE_PROCESSING",lse="EVENT_BUS_MESSAGE_TYPE_STREAM",g6e="EVENT_BUS_MESSAGE_TYPE_PREVIEW",cse="EVENT_BUS_MESSAGE_TYPE_TRANSFER",use="EVENT_BUS_MESSAGE_TYPE_TRANSFER_ACCEPT",dse="EVENT_BUS_MESSAGE_TYPE_TRANSFER_REJECT",fse="EVENT_BUS_MESSAGE_TYPE_INVITE",pse="EVENT_BUS_MESSAGE_TYPE_INVITE_ACCEPT",hse="EVENT_BUS_MESSAGE_TYPE_INVITE_REJECT",XO="EVENT_BUS_SCREEN_CAPTURE_IMAGE",ZO="EVENT_BUS_QUICKREPLY_SEND",QO="EVENT_BUS_QUICKREPLY_ADD",JO="EVENT_BUS_THREAD_UPDATE_NOTE",jw="EVENT_BUS_ASK_AI_COPILOT",Nw="EVENT_BUS_SEARCH_QUICKREPLY",v6e="AUTH_STORE",Ef="ACCESS_TOKEN",y6e="ORGANIZATION_STORE",b6e="MEMBER_STORE",w6e="VISITOR_STORE",x6e="MESSAGE_STORE",S6e="CONTACT_STORE",C6e="USER_STORE",_6e="SETTINGS_STORE",k6e="THREAD_STORE",E6e="DEVICE_STORE",$6e="AGENT_STORE",M6e="CATEGORY_STORE",T6e="WORKGROUP_STORE",P6e="PROVIDER_STORE",O6e="ROBOT_MESSAGE_STORE",I6e="member",mse="device",R6e="MOBILE_LOGIN",j6e="MOBILE_RESET",N6e="MOBILE_VERIFY",A6e="EMAIL_RESET",D6e="EMAIL_VERIFY",F6e="PENDING",L6e="SCANNED",B6e="CONFIRMED",z6e="EXPIRED",H6e="https://cdn.weiyuai.cn/agent/assets/sound/dingdong.wav",gse="https://cdn.weiyuai.cn/agent/assets/css/chatui/chatui-theme-dark.css",U6e="https://cdn.weiyuai.cn/agent/assets/css/scrollbar.css",$f="AGENT",W6e="VISITOR",V6e="ROBOT",U5="USER",ay="AGENT",oy="WORKGROUP",vse="MEMBER",yse="GROUP",bse="TICKET",pF="LLM",NV="QUEUING",q6e="STARTED",eI="CLOSED",im="SENDING",hk="SUCCESS",K6e="LEAVE_MSG_SUBMIT",G6e="TRANSFER_PENDING",u0="TRANSFER_ACCEPTED",d0="TRANSFER_REJECTED",Y6e="INVITE_PENDING",AV="INVITE_ACCEPTED",DV="INVITE_REJECTED",wse="WELCOME",f0="CONTINUE",W5="SYSTEM",X6e="QUEUE",xse="NOTICE",Uo="TEXT",Sl="IMAGE",od="FILE",Aw="AUDIO",sg="VIDEO",Z6e="GOODS",FV="LEAVE_MSG",mk="TYPING",tI="PROCESSING",Mf="STREAM",Q6e="STREAM_END",LV="PREVIEW",nI="RECALL",rI="DELIVERED",iI="READ",Sse="FAQ",J6e="FAQ_UP",e5e="FAQ_DOWN",t5e="ROBOT",n5e="ROBOT_UP",r5e="ROBOT_DOWN",i5e="RATE",dv="RATE_INVITE",Cse="RATE_SUBMIT",a5e="RATE_CANCEL",p0="AUTO_CLOSED",h0="AGENT_CLOSED",hF="TRANSFER",mF="TRANSFER_ACCEPT",gF="TRANSFER_REJECT",vF="INVITE",yF="INVITE_ACCEPT",bF="INVITE_REJECT",o5e="LOGIN",Ad="TRANSFER",BV="TRANSFER_REJECT",zV="TRANSFER_ACCEPT",HV="TRANSFER_TIMEOUT",UV="TRANSFER_CANCEL",Dd="INVITE",WV="INVITE_REJECT",VV="INVITE_ACCEPT",qV="INVITE_TIMEOUT",KV="INVITE_CANCEL",GV="INVITE_VISITOR",YV="INVITE_VISITOR_REJECT",XV="INVITE_VISITOR_ACCEPT",ZV="INVITE_VISITOR_TIMEOUT",QV="INVITE_VISITOR_CANCEL",JV="INVITE_GROUP",eq="INVITE_GROUP_REJECT",tq="INVITE_GROUP_ACCEPT",nq="INVITE_GROUP_TIMEOUT",rq="INVITE_GROUP_CANCEL",iq="INVITE_KBASE",aq="INVITE_KBASE_REJECT",oq="INVITE_KBASE_ACCEPT",sq="INVITE_KBASE_TIMEOUT",lq="INVITE_KBASE_CANCEL",cq="INVITE_ORGANIZATION",uq="INVITE_ORGANIZATION_REJECT",dq="INVITE_ORGANIZATION_ACCEPT",fq="INVITE_ORGANIZATION_TIMEOUT",pq="INVITE_ORGANIZATION_CANCEL",m0="AVAILABLE",hq="BUSY",Dm="OFFLINE",gk="REST",wF="LLM",s5e="NORMAL",l5e="system",_se="org/member/",kse="org/group/",Ese="org/robot/",c5e="org/agent/",u5e="org/workgroup/",d5e="org/ticket/agent/",f5e="org/ticket/workgroup/",p5e="LLM",mq="AUTOREPLY",vk="TICKET",xF="CHAT",h5e="ATTACHMENT",OM="FIXED",IM="KEYWORD",RM="LLM",m5e="KB",g5e="CATEGORY",gq="lastPath",Dw="ORGANIZATION",v5e="AGENT",y5e="QUICKREPLY",b5e="ROBOT",w5e="ROLE_SUPER",x5e="ROLE_ADMIN",S5e="ROLE_MEMBER",C5e="ROLE_AGENT",yk="AGENT",_5e="WORKGROUP",$se="LOWEST",SF="LOW",bk="MEDIUM",CF="HIGH",_F="URGENT",kF="CRITICAL",lg="NEW",q3="CLAIMED",Mse="UNCLAIMED",sy="PROCESSING",K3="PENDING",G3="HOLDING",EF="RESUMED",Y3="REOPENED",X3="RESOLVED",k5e="ESCALATED",Z3="CLOSED",Q3="CANCELLED",g0="STATUS_ALL",v0="PRIORITY_ALL",y0="ASSIGNMENT_ALL",b0="TIME_ALL",aI="UNASSIGNED",Tse="MY_CREATED",Pse="MY_ASSIGNED",Ose="TODAY",Ise="YESTERDAY",Rse="THIS_WEEK",jse="LAST_WEEK",Nse="THIS_MONTH",Ase="LAST_MONTH",E5e="groupTicketSimpleProcess",J3=So()(Ss(Cs(_s((e,t)=>({accessToken:"",setAccessToken(n){localStorage.setItem(Ef,n),e({accessToken:n})},getAccessToken(){return t().accessToken},removeAccessToken(){localStorage.removeItem(Ef),e({accessToken:""})}})),{name:v6e}))),$F=So()(Ss(Cs(_s(e=>({settings:{playSound:!0,showNotifications:!0,openAtStartup:!1,colors:!1,proLayoutCollapsed:!0},currentMenu:"chat",setCurrentMenu(t){e({currentMenu:t})},setProLayoutCollapsed(t){e(n=>({settings:{...n.settings,proLayoutCollapsed:t}}))}})),{name:_6e})));var Rg={},Dse={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Dse);var br=Dse.exports,V5={};Object.defineProperty(V5,"__esModule",{value:!0});V5.default=void 0;var $5e={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};V5.default=$5e;var q5={},e4={},K5={},Fse={exports:{}},Lse={exports:{}},Bse={exports:{}},zse={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(zse);var jg=zse.exports,Hse={exports:{}};(function(e){var t=jg.default;function n(r,i){if(t(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var o=a.call(r,i||"default");if(t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Hse);var M5e=Hse.exports;(function(e){var t=jg.default,n=M5e;function r(i){var a=n(i,"string");return t(a)=="symbol"?a:a+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Bse);var T5e=Bse.exports;(function(e){var t=T5e;function n(r,i,a){return(i=t(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Lse);var Use=Lse.exports;(function(e){var t=Use;function n(i,a){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);a&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),o.push.apply(o,s)}return o}function r(i){for(var a=1;a{r==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",o=>{o.matches?n("dark"):n("light")}))},[]),d.useEffect(()=>{localStorage.setItem(RV,i),i==="light"?n("light"):i==="dark"?n("dark"):i==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"))},[i]),d.useEffect(()=>{localStorage.setItem(jV,t)},[t]),{themeName:t,setThemeName:n,themeMode:i,setThemeMode:a,isDarkMode:t==="dark",isLightMode:t==="light"}}function Yse(e,t){return function(){return e.apply(t,arguments)}}const{toString:SEe}=Object.prototype,{getPrototypeOf:MF}=Object,aE=(e=>t=>{const n=SEe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wu=e=>(e=e.toLowerCase(),t=>aE(t)===e),oE=e=>t=>typeof t===e,{isArray:cy}=Array,Fw=oE("undefined");function CEe(e){return e!==null&&!Fw(e)&&e.constructor!==null&&!Fw(e.constructor)&&Tl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xse=wu("ArrayBuffer");function _Ee(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xse(e.buffer),t}const kEe=oE("string"),Tl=oE("function"),Zse=oE("number"),sE=e=>e!==null&&typeof e=="object",EEe=e=>e===!0||e===!1,PC=e=>{if(aE(e)!=="object")return!1;const t=MF(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$Ee=wu("Date"),MEe=wu("File"),TEe=wu("Blob"),PEe=wu("FileList"),OEe=e=>sE(e)&&Tl(e.pipe),IEe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Tl(e.append)&&((t=aE(e))==="formdata"||t==="object"&&Tl(e.toString)&&e.toString()==="[object FormData]"))},REe=wu("URLSearchParams"),[jEe,NEe,AEe,DEe]=["ReadableStream","Request","Response","Headers"].map(wu),FEe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function o4(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),cy(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const vm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Jse=e=>!Fw(e)&&e!==vm;function oI(){const{caseless:e}=Jse(this)&&this||{},t={},n=(r,i)=>{const a=e&&Qse(t,i)||i;PC(t[a])&&PC(r)?t[a]=oI(t[a],r):PC(r)?t[a]=oI({},r):cy(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(o4(t,(i,a)=>{n&&Tl(i)?e[a]=Yse(i,n):e[a]=i},{allOwnKeys:r}),e),BEe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zEe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},HEe=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&MF(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},UEe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},WEe=e=>{if(!e)return null;if(cy(e))return e;let t=e.length;if(!Zse(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},VEe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&MF(Uint8Array)),qEe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},KEe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},GEe=wu("HTMLFormElement"),YEe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),xq=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),XEe=wu("RegExp"),ele=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};o4(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},ZEe=e=>{ele(e,(t,n)=>{if(Tl(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Tl(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},QEe=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return cy(e)?r(e):r(String(e).split(t)),n},JEe=()=>{},e8e=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,jM="abcdefghijklmnopqrstuvwxyz",Sq="0123456789",tle={DIGIT:Sq,ALPHA:jM,ALPHA_DIGIT:jM+jM.toUpperCase()+Sq},t8e=(e=16,t=tle.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function n8e(e){return!!(e&&Tl(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const r8e=e=>{const t=new Array(10),n=(r,i)=>{if(sE(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=cy(r)?[]:{};return o4(r,(o,s)=>{const l=n(o,i+1);!Fw(l)&&(a[s]=l)}),t[i]=void 0,a}}return r};return n(e,0)},i8e=wu("AsyncFunction"),a8e=e=>e&&(sE(e)||Tl(e))&&Tl(e.then)&&Tl(e.catch),nle=((e,t)=>e?setImmediate:t?((n,r)=>(vm.addEventListener("message",({source:i,data:a})=>{i===vm&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),vm.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Tl(vm.postMessage)),o8e=typeof queueMicrotask<"u"?queueMicrotask.bind(vm):typeof process<"u"&&process.nextTick||nle,Vt={isArray:cy,isArrayBuffer:Xse,isBuffer:CEe,isFormData:IEe,isArrayBufferView:_Ee,isString:kEe,isNumber:Zse,isBoolean:EEe,isObject:sE,isPlainObject:PC,isReadableStream:jEe,isRequest:NEe,isResponse:AEe,isHeaders:DEe,isUndefined:Fw,isDate:$Ee,isFile:MEe,isBlob:TEe,isRegExp:XEe,isFunction:Tl,isStream:OEe,isURLSearchParams:REe,isTypedArray:VEe,isFileList:PEe,forEach:o4,merge:oI,extend:LEe,trim:FEe,stripBOM:BEe,inherits:zEe,toFlatObject:HEe,kindOf:aE,kindOfTest:wu,endsWith:UEe,toArray:WEe,forEachEntry:qEe,matchAll:KEe,isHTMLForm:GEe,hasOwnProperty:xq,hasOwnProp:xq,reduceDescriptors:ele,freezeMethods:ZEe,toObjectSet:QEe,toCamelCase:YEe,noop:JEe,toFiniteNumber:e8e,findKey:Qse,global:vm,isContextDefined:Jse,ALPHABET:tle,generateString:t8e,isSpecCompliantForm:n8e,toJSONObject:r8e,isAsyncFn:i8e,isThenable:a8e,setImmediate:nle,asap:o8e};function Cr(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Vt.inherits(Cr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Vt.toJSONObject(this.config),code:this.code,status:this.status}}});const rle=Cr.prototype,ile={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ile[e]={value:e}});Object.defineProperties(Cr,ile);Object.defineProperty(rle,"isAxiosError",{value:!0});Cr.from=(e,t,n,r,i,a)=>{const o=Object.create(rle);return Vt.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Cr.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const s8e=null;function sI(e){return Vt.isPlainObject(e)||Vt.isArray(e)}function ale(e){return Vt.endsWith(e,"[]")?e.slice(0,-2):e}function Cq(e,t,n){return e?e.concat(t).map(function(i,a){return i=ale(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function l8e(e){return Vt.isArray(e)&&!e.some(sI)}const c8e=Vt.toFlatObject(Vt,{},null,function(t){return/^is[A-Z]/.test(t)});function lE(e,t,n){if(!Vt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Vt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!Vt.isUndefined(v[g])});const r=n.metaTokens,i=n.visitor||u,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Vt.isSpecCompliantForm(t);if(!Vt.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(Vt.isDate(m))return m.toISOString();if(!l&&Vt.isBlob(m))throw new Cr("Blob is not supported. Use a Buffer instead.");return Vt.isArrayBuffer(m)||Vt.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,v){let y=m;if(m&&!v&&typeof m=="object"){if(Vt.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(Vt.isArray(m)&&l8e(m)||(Vt.isFileList(m)||Vt.endsWith(g,"[]"))&&(y=Vt.toArray(m)))return g=ale(g),y.forEach(function(w,_){!(Vt.isUndefined(w)||w===null)&&t.append(o===!0?Cq([g],_,a):o===null?g:g+"[]",c(w))}),!1}return sI(m)?!0:(t.append(Cq(v,g,a),c(m)),!1)}const f=[],p=Object.assign(c8e,{defaultVisitor:u,convertValue:c,isVisitable:sI});function h(m,g){if(!Vt.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),Vt.forEach(m,function(y,b){(!(Vt.isUndefined(y)||y===null)&&i.call(t,y,Vt.isString(b)?b.trim():b,g,p))===!0&&h(y,g?g.concat(b):[b])}),f.pop()}}if(!Vt.isObject(e))throw new TypeError("data must be an object");return h(e),t}function _q(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function TF(e,t){this._pairs=[],e&&lE(e,this,t)}const ole=TF.prototype;ole.append=function(t,n){this._pairs.push([t,n])};ole.toString=function(t){const n=t?function(r){return t.call(this,r,_q)}:_q;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function u8e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sle(e,t,n){if(!t)return e;const r=n&&n.encode||u8e;Vt.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=Vt.isURLSearchParams(t)?t.toString():new TF(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class kq{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Vt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const lle={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},d8e=typeof URLSearchParams<"u"?URLSearchParams:TF,f8e=typeof FormData<"u"?FormData:null,p8e=typeof Blob<"u"?Blob:null,h8e={isBrowser:!0,classes:{URLSearchParams:d8e,FormData:f8e,Blob:p8e},protocols:["http","https","file","blob","url","data"]},PF=typeof window<"u"&&typeof document<"u",lI=typeof navigator=="object"&&navigator||void 0,m8e=PF&&(!lI||["ReactNative","NativeScript","NS"].indexOf(lI.product)<0),g8e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",v8e=PF&&window.location.href||"http://localhost",y8e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:PF,hasStandardBrowserEnv:m8e,hasStandardBrowserWebWorkerEnv:g8e,navigator:lI,origin:v8e},Symbol.toStringTag,{value:"Module"})),Wo={...y8e,...h8e};function b8e(e,t){return lE(e,new Wo.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Wo.isNode&&Vt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function w8e(e){return Vt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function x8e(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return o=!o&&Vt.isArray(i)?i.length:o,l?(Vt.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!Vt.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&Vt.isArray(i[o])&&(i[o]=x8e(i[o])),!s)}if(Vt.isFormData(e)&&Vt.isFunction(e.entries)){const n={};return Vt.forEachEntry(e,(r,i)=>{t(w8e(r),i,n,0)}),n}return null}function S8e(e,t,n){if(Vt.isString(e))try{return(t||JSON.parse)(e),Vt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const s4={transitional:lle,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=Vt.isObject(t);if(a&&Vt.isHTMLForm(t)&&(t=new FormData(t)),Vt.isFormData(t))return i?JSON.stringify(cle(t)):t;if(Vt.isArrayBuffer(t)||Vt.isBuffer(t)||Vt.isStream(t)||Vt.isFile(t)||Vt.isBlob(t)||Vt.isReadableStream(t))return t;if(Vt.isArrayBufferView(t))return t.buffer;if(Vt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return b8e(t,this.formSerializer).toString();if((s=Vt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return lE(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),S8e(t)):t}],transformResponse:[function(t){const n=this.transitional||s4.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Vt.isResponse(t)||Vt.isReadableStream(t))return t;if(t&&Vt.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Cr.from(s,Cr.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wo.classes.FormData,Blob:Wo.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Vt.forEach(["delete","get","head","post","put","patch"],e=>{s4.headers[e]={}});const C8e=Vt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_8e=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&C8e[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Eq=Symbol("internals");function Sb(e){return e&&String(e).trim().toLowerCase()}function OC(e){return e===!1||e==null?e:Vt.isArray(e)?e.map(OC):String(e)}function k8e(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const E8e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function NM(e,t,n,r,i){if(Vt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Vt.isString(t)){if(Vt.isString(r))return t.indexOf(r)!==-1;if(Vt.isRegExp(r))return r.test(t)}}function $8e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function M8e(e,t){const n=Vt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}class zs{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,l,c){const u=Sb(l);if(!u)throw new Error("header name must be a non-empty string");const f=Vt.findKey(i,u);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||l]=OC(s))}const o=(s,l)=>Vt.forEach(s,(c,u)=>a(c,u,l));if(Vt.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(Vt.isString(t)&&(t=t.trim())&&!E8e(t))o(_8e(t),n);else if(Vt.isHeaders(t))for(const[s,l]of t.entries())a(l,s,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=Sb(t),t){const r=Vt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return k8e(i);if(Vt.isFunction(n))return n.call(this,i,r);if(Vt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Sb(t),t){const r=Vt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||NM(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=Sb(o),o){const s=Vt.findKey(r,o);s&&(!n||NM(r,r[s],s,n))&&(delete r[s],i=!0)}}return Vt.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||NM(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return Vt.forEach(this,(i,a)=>{const o=Vt.findKey(r,a);if(o){n[o]=OC(i),delete n[a];return}const s=t?$8e(a):String(a).trim();s!==a&&delete n[a],n[s]=OC(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Vt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Vt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Eq]=this[Eq]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Sb(o);r[s]||(M8e(i,o),r[s]=!0)}return Vt.isArray(t)?t.forEach(a):a(t),this}}zs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Vt.reduceDescriptors(zs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Vt.freezeMethods(zs);function AM(e,t){const n=this||s4,r=t||n,i=zs.from(r.headers);let a=r.data;return Vt.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function ule(e){return!!(e&&e.__CANCEL__)}function uy(e,t,n){Cr.call(this,e??"canceled",Cr.ERR_CANCELED,t,n),this.name="CanceledError"}Vt.inherits(uy,Cr,{__CANCEL__:!0});function dle(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Cr("Request failed with status code "+n.status,[Cr.ERR_BAD_REQUEST,Cr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function T8e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function P8e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[a];o||(o=c),n[i]=l,r[i]=c;let f=a,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{n=u,i=null,a&&(clearTimeout(a),a=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?o(c,u):(i=c,a||(a=setTimeout(()=>{a=null,o(i)},r-f)))},()=>i&&o(i)]}const wk=(e,t,n=3)=>{let r=0;const i=P8e(50,250);return O8e(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-r,c=i(l),u=o<=s;r=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},$q=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Mq=e=>(...t)=>Vt.asap(()=>e(...t)),I8e=Wo.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Wo.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Wo.origin),Wo.navigator&&/(msie|trident)/i.test(Wo.navigator.userAgent)):()=>!0,R8e=Wo.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];Vt.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Vt.isString(r)&&o.push("path="+r),Vt.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function j8e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function N8e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function fle(e,t){return e&&!j8e(t)?N8e(e,t):t}const Tq=e=>e instanceof zs?{...e}:e;function cg(e,t){t=t||{};const n={};function r(c,u,f,p){return Vt.isPlainObject(c)&&Vt.isPlainObject(u)?Vt.merge.call({caseless:p},c,u):Vt.isPlainObject(u)?Vt.merge({},u):Vt.isArray(u)?u.slice():u}function i(c,u,f,p){if(Vt.isUndefined(u)){if(!Vt.isUndefined(c))return r(void 0,c,f,p)}else return r(c,u,f,p)}function a(c,u){if(!Vt.isUndefined(u))return r(void 0,u)}function o(c,u){if(Vt.isUndefined(u)){if(!Vt.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u,f)=>i(Tq(c),Tq(u),f,!0)};return Vt.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||i,p=f(e[u],t[u],u);Vt.isUndefined(p)&&f!==s||(n[u]=p)}),n}const ple=e=>{const t=cg({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=zs.from(o),t.url=sle(fle(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Vt.isFormData(n)){if(Wo.hasStandardBrowserEnv||Wo.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Wo.hasStandardBrowserEnv&&(r&&Vt.isFunction(r)&&(r=r(t)),r||r!==!1&&I8e(t.url))){const c=i&&a&&R8e.read(a);c&&o.set(i,c)}return t},A8e=typeof XMLHttpRequest<"u",D8e=A8e&&function(e){return new Promise(function(n,r){const i=ple(e);let a=i.data;const o=zs.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,f,p,h,m;function g(){h&&h(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function y(){if(!v)return;const w=zs.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),k={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:w,config:e,request:v};dle(function(C){n(C),g()},function(C){r(C),g()},k),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new Cr("Request aborted",Cr.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new Cr("Network Error",Cr.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const k=i.transitional||lle;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),r(new Cr(_,k.clarifyTimeoutError?Cr.ETIMEDOUT:Cr.ECONNABORTED,e,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&Vt.forEach(o.toJSON(),function(_,k){v.setRequestHeader(k,_)}),Vt.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),c&&([p,m]=wk(c,!0),v.addEventListener("progress",p)),l&&v.upload&&([f,h]=wk(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=w=>{v&&(r(!w||w.type?new uy(null,e,v):w),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const b=T8e(i.url);if(b&&Wo.protocols.indexOf(b)===-1){r(new Cr("Unsupported protocol "+b+":",Cr.ERR_BAD_REQUEST,e));return}v.send(a||null)})},F8e=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Cr?u:new uy(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,a(new Cr(`timeout ${t} of ms exceeded`,Cr.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>Vt.asap(s),l}},L8e=function*(e,t){let n=e.byteLength;if(n{const i=B8e(e,t);let a=0,o,s=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){s(),l.close();return}let f=u.byteLength;if(n){let p=a+=f;n(p)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},cE=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",hle=cE&&typeof ReadableStream=="function",H8e=cE&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),mle=(e,...t)=>{try{return!!e(...t)}catch{return!1}},U8e=hle&&mle(()=>{let e=!1;const t=new Request(Wo.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Oq=64*1024,cI=hle&&mle(()=>Vt.isReadableStream(new Response("").body)),xk={stream:cI&&(e=>e.body)};cE&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!xk[t]&&(xk[t]=Vt.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Cr(`Response type '${t}' is not supported`,Cr.ERR_NOT_SUPPORT,r)})})})(new Response);const W8e=async e=>{if(e==null)return 0;if(Vt.isBlob(e))return e.size;if(Vt.isSpecCompliantForm(e))return(await new Request(Wo.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Vt.isArrayBufferView(e)||Vt.isArrayBuffer(e))return e.byteLength;if(Vt.isURLSearchParams(e)&&(e=e+""),Vt.isString(e))return(await H8e(e)).byteLength},V8e=async(e,t)=>{const n=Vt.toFiniteNumber(e.getContentLength());return n??W8e(t)},q8e=cE&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:p}=ple(e);c=c?(c+"").toLowerCase():"text";let h=F8e([i,a&&a.toAbortSignal()],o),m;const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(l&&U8e&&n!=="get"&&n!=="head"&&(v=await V8e(u,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),S;if(Vt.isFormData(r)&&(S=k.headers.get("content-type"))&&u.setContentType(S),k.body){const[C,E]=$q(v,wk(Mq(l)));r=Pq(k.body,Oq,C,E)}}Vt.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;m=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?f:void 0});let b=await fetch(m);const w=cI&&(c==="stream"||c==="response");if(cI&&(s||w&&g)){const k={};["status","statusText","headers"].forEach($=>{k[$]=b[$]});const S=Vt.toFiniteNumber(b.headers.get("content-length")),[C,E]=s&&$q(S,wk(Mq(s),!0))||[];b=new Response(Pq(b.body,Oq,C,()=>{E&&E(),g&&g()}),k)}c=c||"text";let _=await xk[Vt.findKey(xk,c)||"text"](b,e);return!w&&g&&g(),await new Promise((k,S)=>{dle(k,S,{data:_,headers:zs.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:m})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new Cr("Network Error",Cr.ERR_NETWORK,e,m),{cause:y.cause||y}):Cr.from(y,y&&y.code,e,m)}}),uI={http:s8e,xhr:D8e,fetch:q8e};Vt.forEach(uI,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Iq=e=>`- ${e}`,K8e=e=>Vt.isFunction(e)||e===null||e===!1,gle={getAdapter:e=>{e=Vt.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : -`+a.map(Iq).join(` -`):" "+Iq(a[0]):"as no adapter specified";throw new Cr("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:uI};function DM(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new uy(null,e)}function Rq(e){return DM(e),e.headers=zs.from(e.headers),e.data=AM.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gle.getAdapter(e.adapter||s4.adapter)(e).then(function(r){return DM(e),r.data=AM.call(e,e.transformResponse,r),r.headers=zs.from(r.headers),r},function(r){return ule(r)||(DM(e),r&&r.response&&(r.response.data=AM.call(e,e.transformResponse,r.response),r.response.headers=zs.from(r.response.headers))),Promise.reject(r)})}const vle="1.7.8",uE={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{uE[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const jq={};uE.transitional=function(t,n,r){function i(a,o){return"[Axios v"+vle+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new Cr(i(o," has been removed"+(n?" in "+n:"")),Cr.ERR_DEPRECATED);return n&&!jq[o]&&(jq[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};uE.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function G8e(e,t,n){if(typeof e!="object")throw new Cr("options must be an object",Cr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new Cr("option "+a+" must be "+l,Cr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Cr("Unknown option "+a,Cr.ERR_BAD_OPTION)}}const IC={assertOptions:G8e,validators:uE},Iu=IC.validators;class Fm{constructor(t){this.defaults=t,this.interceptors={request:new kq,response:new kq}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=cg(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&IC.assertOptions(r,{silentJSONParsing:Iu.transitional(Iu.boolean),forcedJSONParsing:Iu.transitional(Iu.boolean),clarifyTimeoutError:Iu.transitional(Iu.boolean)},!1),i!=null&&(Vt.isFunction(i)?n.paramsSerializer={serialize:i}:IC.assertOptions(i,{encode:Iu.function,serialize:Iu.function},!0)),IC.assertOptions(n,{baseUrl:Iu.spelling("baseURL"),withXsrfToken:Iu.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&Vt.merge(a.common,a[n.method]);a&&Vt.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=zs.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,f=0,p;if(!l){const m=[Rq.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),p=m.length,u=Promise.resolve(n);f{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new uy(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new OF(function(i){t=i}),cancel:t}}}function Y8e(e){return function(n){return e.apply(null,n)}}function X8e(e){return Vt.isObject(e)&&e.isAxiosError===!0}const dI={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(dI).forEach(([e,t])=>{dI[t]=e});function yle(e){const t=new Fm(e),n=Yse(Fm.prototype.request,t);return Vt.extend(n,Fm.prototype,t,{allOwnKeys:!0}),Vt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return yle(cg(e,i))},n}const _a=yle(s4);_a.Axios=Fm;_a.CanceledError=uy;_a.CancelToken=OF;_a.isCancel=ule;_a.VERSION=vle;_a.toFormData=lE;_a.AxiosError=Cr;_a.Cancel=_a.CanceledError;_a.all=function(t){return Promise.all(t)};_a.spread=Y8e;_a.isAxiosError=X8e;_a.mergeConfig=cg;_a.AxiosHeaders=zs;_a.formToJSON=e=>cle(Vt.isHTMLForm(e)?new FormData(e):e);_a.getAdapter=gle.getAdapter;_a.HttpStatusCode=dI;_a.default=_a;function Z8e(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const En=Z8e();async function Q8e(){return dn("/config/bytedesk/properties",{method:"GET",params:{client:Sn}})}async function ble(){try{const t=(await _a.get("/agent/config.json")).data;if(t.enabled)console.log("config enabled: ",t),localStorage.setItem(L2,"true"),localStorage.setItem($C,t.apiUrl),localStorage.setItem(MC,t.websocketUrl),localStorage.setItem(TM,t.htmlUrl);else if(u6e===ise){console.log("config opensource");const n=window.location.port,r=window.location.protocol+"//"+window.location.hostname+":"+n,i="ws://"+window.location.hostname+":9885/websocket";console.log("apiUrl: ",r," port:",n," websocketUrl:",i),localStorage.setItem(L2,"true"),localStorage.setItem($C,r),localStorage.setItem(MC,i),localStorage.setItem(TM,r)}else console.log("config disabled"),localStorage.setItem(L2,"false"),localStorage.removeItem($C),localStorage.removeItem(MC),localStorage.removeItem(TM)}catch(e){console.log("loadConfig error: ",e)}}function l4(){const e=localStorage.getItem(uv);if(console.log("custom_enabled: ",e),e==="true"){const n=localStorage.getItem(p2);return n===null?MM:n}if(localStorage.getItem(L2)==="true"){const n=localStorage.getItem($C);return n===null?MM:n}return MM}function dy(){return l4()+"/api/v1/upload/file"}function J8e(){const e=localStorage.getItem(uv);if(console.log("custom_enabled: ",e),e==="true"){const r=localStorage.getItem(h2);return r===null?PV:r}const t=localStorage.getItem(L2),n=localStorage.getItem(MC);return t==="true"?n:PV}async function wle(){const e=await Q8e();return console.log("getConfigProperties response: ",e.data.data),e.data.code===200?(localStorage.setItem(d6e,JSON.stringify(e.data.data)),e.data.data):null}const dn=_a.create({timeout:2e4,baseURL:l4(),paramsSerializer:{indexes:null}});dn.interceptors.request.use(e=>{e.baseURL=l4();const t=localStorage.getItem(Ef);return t&&t.length>10&&e.url.startsWith("/api")&&(e.headers.Authorization=`Bearer ${t}`),!t&&e.url.startsWith("/api")?Promise.reject(e$e):e},e=>(console.debug("request error",e),e.response.status===403&&En.emit(Jp,"403"),e.response.status===401&&En.emit(Jp,"401"),Promise.reject(e)));dn.interceptors.response.use(e=>e,e=>{var t,n,r;if(console.debug("response error",e),e!=null&&e.response)switch((t=e==null?void 0:e.response)==null?void 0:t.status){case 400:console.log("axios interception error 400"),En.emit(Jp,"400");break;case 401:console.log("axios interception error 401"),En.emit(Jp,"401");break;case 403:console.log("axios interception error 403"),En.emit(Jp,"403");break;case 500:console.log("axios interception error 500"),En.emit(p6e,"500");break;case 601:console.log("axios interception error 601",e.message);break}return Promise.resolve({message:e==null?void 0:e.message,code:(n=e==null?void 0:e.response)==null?void 0:n.status,data:{message:e==null?void 0:e.message,code:(r=e==null?void 0:e.response)==null?void 0:r.status,data:!1}})});const FM={data:null,status:601,statusText:ose,headers:{},config:{headers:void 0},request:null},e$e={message:"匿名用户,无需访问服务器接口",name:ose,code:"601",config:FM.config,request:FM.request,response:FM,isAxiosError:!0,toJSON:function(){return{message:this.message,name:this.name,code:this.code,config:this.config,request:this.request,response:this.response}}};async function IF(e){return dn("/api/v1/agent/query/org",{method:"GET",params:{...e,client:Sn}})}async function xle(e){return dn("/api/v1/agent/query",{method:"GET",params:{orgUid:e,client:Sn}})}async function t$e(e){return dn("/api/v1/agent/sync/current/thread/count",{method:"POST",data:{...e}})}async function n$e(e){return dn("/api/v1/agent/update",{method:"POST",data:{...e,client:Sn}})}async function r$e(e){return dn("/api/v1/agent/update/status",{method:"POST",data:{...e,client:Sn}})}async function i$e(e){return dn("/api/v1/agent/update/autoreply",{method:"POST",data:{...e,client:Sn}})}async function a$e(e){return dn("/api/v1/message/query/topic",{method:"GET",params:{...e}})}async function o$e(e){return dn("/api/v1/message_unread/query",{method:"GET",params:{userUid:e,client:Sn}})}async function s$e(e,t){return dn("/api/v1/vip/trans/baidu/translate",{method:"GET",params:{msgUid:e,content:t,client:Sn}})}async function l$e(e){return dn("/api/v1/message/rest/send",{method:"POST",data:{json:e,client:Sn}})}async function Sle(e,t){console.log("sendMessageSSE: ",e);const n=`${l4()}/visitor/api/v1/member/message/sse?message=${e}`,r=new EventSource(n,{withCredentials:!1});r.onopen=i=>{console.log("sendMessageSSE onopen:",i.target)},r.onmessage=i=>{console.log("sendMessageSSE onmessage:",i.data);const a=JSON.parse(i.data);if(a.type==Q6e){console.log("sendMessageSSE stream end"),En.emit(lse),r&&r.close();return}else t(a)},r.onerror=i=>{console.log("sendMessageSSE onerror:",i),r.readyState===EventSource.CLOSED?console.log("sendMessageSSE connection is closed"):console.log("sendMessageSSE Error occurred",i),r.close()},r.addEventListener("customEventName",i=>{console.log("sendMessageSSE Message id is "+i.lastEventId)})}async function RF(){return dn("/api/v1/user/profile",{method:"GET",params:{client:Sn}})}async function Cle(e){return dn("/api/v1/user/update",{method:"POST",data:{...e,client:Sn}})}async function c$e(e){return dn("/api/v1/user/change/password",{method:"POST",data:{...e,client:Sn}})}async function _le(e){return dn("/api/v1/user/change/email",{method:"POST",data:{...e,client:Sn}})}async function kle(e){return dn("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:Sn}})}var jF=Object.defineProperty,u$e=Object.getOwnPropertyDescriptor,d$e=Object.getOwnPropertyNames,f$e=Object.prototype.hasOwnProperty,Co=(e,t)=>()=>(e&&(t=e(e=0)),t),ln=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Dg=(e,t)=>{for(var n in t)jF(e,n,{get:t[n],enumerable:!0})},p$e=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of d$e(t))!f$e.call(e,i)&&i!==n&&jF(e,i,{get:()=>t[i],enumerable:!(r=u$e(t,i))||r.enumerable});return e},Ci=e=>p$e(jF({},"__esModule",{value:!0}),e),Qt=Co(()=>{}),li={};Dg(li,{_debugEnd:()=>WI,_debugProcess:()=>UI,_events:()=>aR,_eventsCount:()=>oR,_exiting:()=>TI,_fatalExceptions:()=>BI,_getActiveHandles:()=>Ile,_getActiveRequests:()=>Ole,_kill:()=>II,_linkedBinding:()=>Tle,_maxListeners:()=>iR,_preload_modules:()=>nR,_rawDebug:()=>EI,_startProfilerIdleNotifier:()=>VI,_stopProfilerIdleNotifier:()=>qI,_tickCallback:()=>HI,abort:()=>XI,addListener:()=>sR,allowedNodeEnvironmentFlags:()=>FI,arch:()=>pI,argv:()=>gI,argv0:()=>tR,assert:()=>Rle,binding:()=>xI,chdir:()=>_I,config:()=>PI,cpuUsage:()=>m2,cwd:()=>CI,debugPort:()=>eR,default:()=>AF,dlopen:()=>Ple,domain:()=>MI,emit:()=>fR,emitWarning:()=>wI,env:()=>mI,execArgv:()=>vI,execPath:()=>JI,exit:()=>AI,features:()=>LI,hasUncaughtExceptionCaptureCallback:()=>jle,hrtime:()=>RC,kill:()=>NI,listeners:()=>Ale,memoryUsage:()=>jI,moduleLoadList:()=>$I,nextTick:()=>$le,off:()=>cR,on:()=>Vd,once:()=>lR,openStdin:()=>DI,pid:()=>ZI,platform:()=>hI,ppid:()=>QI,prependListener:()=>pR,prependOnceListener:()=>hR,reallyExit:()=>OI,release:()=>kI,removeAllListeners:()=>dR,removeListener:()=>uR,resourceUsage:()=>RI,setSourceMapsEnabled:()=>rR,setUncaughtExceptionCaptureCallback:()=>zI,stderr:()=>GI,stdin:()=>YI,stdout:()=>KI,title:()=>fI,umask:()=>SI,uptime:()=>Nle,version:()=>yI,versions:()=>bI});function NF(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function h$e(){!Lm||!ym||(Lm=!1,ym.length?Qu=ym.concat(Qu):B2=-1,Qu.length&&Ele())}function Ele(){if(!Lm){var e=setTimeout(h$e,0);Lm=!0;for(var t=Qu.length;t;){for(ym=Qu,Qu=[];++B21)for(var n=1;n{Qt(),en(),Jt(),Qu=[],Lm=!1,B2=-1,Mle.prototype.run=function(){this.fun.apply(null,this.array)},fI="browser",pI="x64",hI="browser",mI={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},gI=["/usr/bin/node"],vI=[],yI="v16.8.0",bI={},wI=function(e,t){console.warn((t?t+": ":"")+e)},xI=function(e){NF("binding")},SI=function(e){return 0},CI=function(){return"/"},_I=function(e){},kI={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},EI=Ro,$I=[],MI={},TI=!1,PI={},OI=Ro,II=Ro,m2=function(){return{}},RI=m2,jI=m2,NI=Ro,AI=Ro,DI=Ro,FI={},LI={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},BI=Ro,zI=Ro,HI=Ro,UI=Ro,WI=Ro,VI=Ro,qI=Ro,KI=void 0,GI=void 0,YI=void 0,XI=Ro,ZI=2,QI=1,JI="/bin/usr/node",eR=9229,tR="node",nR=[],rR=Ro,rf={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},rf.now===void 0&&(LM=Date.now(),rf.timing&&rf.timing.navigationStart&&(LM=rf.timing.navigationStart),rf.now=()=>Date.now()-LM),jC=1e9,RC.bigint=function(e){var t=RC(e);return typeof BigInt>"u"?t[0]*jC+t[1]:BigInt(t[0]*jC)+BigInt(t[1])},iR=10,aR={},oR=0,sR=Vd,lR=Vd,cR=Vd,uR=Vd,dR=Vd,fR=Ro,pR=Vd,hR=Vd,AF={version:yI,versions:bI,arch:pI,platform:hI,release:kI,_rawDebug:EI,moduleLoadList:$I,binding:xI,_linkedBinding:Tle,_events:aR,_eventsCount:oR,_maxListeners:iR,on:Vd,addListener:sR,once:lR,off:cR,removeListener:uR,removeAllListeners:dR,emit:fR,prependListener:pR,prependOnceListener:hR,listeners:Ale,domain:MI,_exiting:TI,config:PI,dlopen:Ple,uptime:Nle,_getActiveRequests:Ole,_getActiveHandles:Ile,reallyExit:OI,_kill:II,cpuUsage:m2,resourceUsage:RI,memoryUsage:jI,kill:NI,exit:AI,openStdin:DI,allowedNodeEnvironmentFlags:FI,assert:Rle,features:LI,_fatalExceptions:BI,setUncaughtExceptionCaptureCallback:zI,hasUncaughtExceptionCaptureCallback:jle,emitWarning:wI,nextTick:$le,_tickCallback:HI,_debugProcess:UI,_debugEnd:WI,_startProfilerIdleNotifier:VI,_stopProfilerIdleNotifier:qI,stdout:KI,stdin:YI,stderr:GI,abort:XI,umask:SI,chdir:_I,cwd:CI,env:mI,title:fI,argv:gI,execArgv:vI,pid:ZI,ppid:QI,execPath:JI,debugPort:eR,hrtime:RC,argv0:tR,_preload_modules:nR,setSourceMapsEnabled:rR}}),Jt=Co(()=>{m$e()}),_o={};Dg(_o,{Buffer:()=>Sk,INSPECT_MAX_BYTES:()=>Dle,default:()=>qd,kMaxLength:()=>Fle});function g$e(){if(mR)return K1;mR=!0,K1.byteLength=s,K1.toByteArray=c,K1.fromByteArray=p;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var g=h.indexOf("=");g===-1&&(g=m);var v=g===m?0:4-g%4;return[g,v]}function s(h){var m=o(h),g=m[0],v=m[1];return(g+v)*3/4-v}function l(h,m,g){return(m+g)*3/4-g}function c(h){var m,g=o(h),v=g[0],y=g[1],b=new n(l(h,v,y)),w=0,_=y>0?v-4:v,k;for(k=0;k<_;k+=4)m=t[h.charCodeAt(k)]<<18|t[h.charCodeAt(k+1)]<<12|t[h.charCodeAt(k+2)]<<6|t[h.charCodeAt(k+3)],b[w++]=m>>16&255,b[w++]=m>>8&255,b[w++]=m&255;return y===2&&(m=t[h.charCodeAt(k)]<<2|t[h.charCodeAt(k+1)]>>4,b[w++]=m&255),y===1&&(m=t[h.charCodeAt(k)]<<10|t[h.charCodeAt(k+1)]<<4|t[h.charCodeAt(k+2)]>>2,b[w++]=m>>8&255,b[w++]=m&255),b}function u(h){return e[h>>18&63]+e[h>>12&63]+e[h>>6&63]+e[h&63]}function f(h,m,g){for(var v,y=[],b=m;b_?_:w+b));return v===1?(m=h[g-1],y.push(e[m>>2]+e[m<<4&63]+"==")):v===2&&(m=(h[g-2]<<8)+h[g-1],y.push(e[m>>10]+e[m>>4&63]+e[m<<2&63]+"=")),y.join("")}return K1}function v$e(){return gR?g2:(gR=!0,g2.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,l=(1<>1,u=-7,f=n?i-1:0,p=n?-1:1,h=e[t+f];for(f+=p,a=h&(1<<-u)-1,h>>=-u,u+=s;u>0;a=a*256+e[t+f],f+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+f],f+=p,u-=8);if(a===0)a=1-c;else{if(a===l)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-c}return(h?-1:1)*o*Math.pow(2,a-r)},g2.write=function(e,t,n,r,i,a){var o,s,l,c=a*8-i-1,u=(1<>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,m=r?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=p/l:t+=p*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=s&255,h+=m,s/=256,i-=8);for(o=o<0;e[n+h]=o&255,h+=m,o/=256,c-=8);e[n+h-m]|=g*128},g2)}function y$e(){if(vR)return fp;vR=!0;let e=g$e(),t=v$e(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;fp.Buffer=o,fp.SlowBuffer=y,fp.INSPECT_MAX_BYTES=50;let r=2147483647;fp.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let z=new Uint8Array(1),H={foo:function(){return 42}};return Object.setPrototypeOf(H,Uint8Array.prototype),Object.setPrototypeOf(z,H),z.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(z){if(z>r)throw new RangeError('The value "'+z+'" is invalid for option "size"');let H=new Uint8Array(z);return Object.setPrototypeOf(H,o.prototype),H}function o(z,H,G){if(typeof z=="number"){if(typeof H=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(z)}return s(z,H,G)}o.poolSize=8192;function s(z,H,G){if(typeof z=="string")return f(z,H);if(ArrayBuffer.isView(z))return h(z);if(z==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z);if(Se(z,ArrayBuffer)||z&&Se(z.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Se(z,SharedArrayBuffer)||z&&Se(z.buffer,SharedArrayBuffer)))return m(z,H,G);if(typeof z=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let de=z.valueOf&&z.valueOf();if(de!=null&&de!==z)return o.from(de,H,G);let xe=g(z);if(xe)return xe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof z[Symbol.toPrimitive]=="function")return o.from(z[Symbol.toPrimitive]("string"),H,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z)}o.from=function(z,H,G){return s(z,H,G)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(z){if(typeof z!="number")throw new TypeError('"size" argument must be of type number');if(z<0)throw new RangeError('The value "'+z+'" is invalid for option "size"')}function c(z,H,G){return l(z),z<=0?a(z):H!==void 0?typeof G=="string"?a(z).fill(H,G):a(z).fill(H):a(z)}o.alloc=function(z,H,G){return c(z,H,G)};function u(z){return l(z),a(z<0?0:v(z)|0)}o.allocUnsafe=function(z){return u(z)},o.allocUnsafeSlow=function(z){return u(z)};function f(z,H){if((typeof H!="string"||H==="")&&(H="utf8"),!o.isEncoding(H))throw new TypeError("Unknown encoding: "+H);let G=b(z,H)|0,de=a(G),xe=de.write(z,H);return xe!==G&&(de=de.slice(0,xe)),de}function p(z){let H=z.length<0?0:v(z.length)|0,G=a(H);for(let de=0;de=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return z|0}function y(z){return+z!=z&&(z=0),o.alloc(+z)}o.isBuffer=function(z){return z!=null&&z._isBuffer===!0&&z!==o.prototype},o.compare=function(z,H){if(Se(z,Uint8Array)&&(z=o.from(z,z.offset,z.byteLength)),Se(H,Uint8Array)&&(H=o.from(H,H.offset,H.byteLength)),!o.isBuffer(z)||!o.isBuffer(H))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(z===H)return 0;let G=z.length,de=H.length;for(let xe=0,he=Math.min(G,de);xede.length?(o.isBuffer(he)||(he=o.from(he)),he.copy(de,xe)):Uint8Array.prototype.set.call(de,he,xe);else if(o.isBuffer(he))he.copy(de,xe);else throw new TypeError('"list" argument must be an Array of Buffers');xe+=he.length}return de};function b(z,H){if(o.isBuffer(z))return z.length;if(ArrayBuffer.isView(z)||Se(z,ArrayBuffer))return z.byteLength;if(typeof z!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof z);let G=z.length,de=arguments.length>2&&arguments[2]===!0;if(!de&&G===0)return 0;let xe=!1;for(;;)switch(H){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return fe(z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return Ce(z).length;default:if(xe)return de?-1:fe(z).length;H=(""+H).toLowerCase(),xe=!0}}o.byteLength=b;function w(z,H,G){let de=!1;if((H===void 0||H<0)&&(H=0),H>this.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0,H>>>=0,G<=H))return"";for(z||(z="utf8");;)switch(z){case"hex":return D(this,H,G);case"utf8":case"utf-8":return O(this,H,G);case"ascii":return j(this,H,G);case"latin1":case"binary":return N(this,H,G);case"base64":return I(this,H,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,H,G);default:if(de)throw new TypeError("Unknown encoding: "+z);z=(z+"").toLowerCase(),de=!0}}o.prototype._isBuffer=!0;function _(z,H,G){let de=z[H];z[H]=z[G],z[G]=de}o.prototype.swap16=function(){let z=this.length;if(z%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let H=0;HH&&(z+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(z,H,G,de,xe){if(Se(z,Uint8Array)&&(z=o.from(z,z.offset,z.byteLength)),!o.isBuffer(z))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof z);if(H===void 0&&(H=0),G===void 0&&(G=z?z.length:0),de===void 0&&(de=0),xe===void 0&&(xe=this.length),H<0||G>z.length||de<0||xe>this.length)throw new RangeError("out of range index");if(de>=xe&&H>=G)return 0;if(de>=xe)return-1;if(H>=G)return 1;if(H>>>=0,G>>>=0,de>>>=0,xe>>>=0,this===z)return 0;let he=xe-de,Ue=G-H,We=Math.min(he,Ue),ge=this.slice(de,xe),ze=z.slice(H,G);for(let Ve=0;Ve2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,we(G)&&(G=xe?0:z.length-1),G<0&&(G=z.length+G),G>=z.length){if(xe)return-1;G=z.length-1}else if(G<0)if(xe)G=0;else return-1;if(typeof H=="string"&&(H=o.from(H,de)),o.isBuffer(H))return H.length===0?-1:S(z,H,G,de,xe);if(typeof H=="number")return H=H&255,typeof Uint8Array.prototype.indexOf=="function"?xe?Uint8Array.prototype.indexOf.call(z,H,G):Uint8Array.prototype.lastIndexOf.call(z,H,G):S(z,[H],G,de,xe);throw new TypeError("val must be string, number or Buffer")}function S(z,H,G,de,xe){let he=1,Ue=z.length,We=H.length;if(de!==void 0&&(de=String(de).toLowerCase(),de==="ucs2"||de==="ucs-2"||de==="utf16le"||de==="utf-16le")){if(z.length<2||H.length<2)return-1;he=2,Ue/=2,We/=2,G/=2}function ge(Ve,Be){return he===1?Ve[Be]:Ve.readUInt16BE(Be*he)}let ze;if(xe){let Ve=-1;for(ze=G;zeUe&&(G=Ue-We),ze=G;ze>=0;ze--){let Ve=!0;for(let Be=0;Bexe&&(de=xe)):de=xe;let he=H.length;de>he/2&&(de=he/2);let Ue;for(Ue=0;Ue>>0,isFinite(G)?(G=G>>>0,de===void 0&&(de="utf8")):(de=G,G=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let xe=this.length-H;if((G===void 0||G>xe)&&(G=xe),z.length>0&&(G<0||H<0)||H>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");let he=!1;for(;;)switch(de){case"hex":return C(this,z,H,G);case"utf8":case"utf-8":return E(this,z,H,G);case"ascii":case"latin1":case"binary":return $(this,z,H,G);case"base64":return M(this,z,H,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,z,H,G);default:if(he)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),he=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(z,H,G){return H===0&&G===z.length?e.fromByteArray(z):e.fromByteArray(z.slice(H,G))}function O(z,H,G){G=Math.min(z.length,G);let de=[],xe=H;for(;xe239?4:he>223?3:he>191?2:1;if(xe+We<=G){let ge,ze,Ve,Be;switch(We){case 1:he<128&&(Ue=he);break;case 2:ge=z[xe+1],(ge&192)===128&&(Be=(he&31)<<6|ge&63,Be>127&&(Ue=Be));break;case 3:ge=z[xe+1],ze=z[xe+2],(ge&192)===128&&(ze&192)===128&&(Be=(he&15)<<12|(ge&63)<<6|ze&63,Be>2047&&(Be<55296||Be>57343)&&(Ue=Be));break;case 4:ge=z[xe+1],ze=z[xe+2],Ve=z[xe+3],(ge&192)===128&&(ze&192)===128&&(Ve&192)===128&&(Be=(he&15)<<18|(ge&63)<<12|(ze&63)<<6|Ve&63,Be>65535&&Be<1114112&&(Ue=Be))}}Ue===null?(Ue=65533,We=1):Ue>65535&&(Ue-=65536,de.push(Ue>>>10&1023|55296),Ue=56320|Ue&1023),de.push(Ue),xe+=We}return R(de)}let A=4096;function R(z){let H=z.length;if(H<=A)return String.fromCharCode.apply(String,z);let G="",de=0;for(;dede)&&(G=de);let xe="";for(let he=H;heG&&(z=G),H<0?(H+=G,H<0&&(H=0)):H>G&&(H=G),HG)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(z,H,G){z=z>>>0,H=H>>>0,G||F(z,H,this.length);let de=this[z],xe=1,he=0;for(;++he>>0,H=H>>>0,G||F(z,H,this.length);let de=this[z+--H],xe=1;for(;H>0&&(xe*=256);)de+=this[z+--H]*xe;return de},o.prototype.readUint8=o.prototype.readUInt8=function(z,H){return z=z>>>0,H||F(z,1,this.length),this[z]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(z,H){return z=z>>>0,H||F(z,2,this.length),this[z]|this[z+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(z,H){return z=z>>>0,H||F(z,2,this.length),this[z]<<8|this[z+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(z,H){return z=z>>>0,H||F(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(z,H){return z=z>>>0,H||F(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},o.prototype.readBigUInt64LE=ye(function(z){z=z>>>0,ce(z,"offset");let H=this[z],G=this[z+7];(H===void 0||G===void 0)&&pe(z,this.length-8);let de=H+this[++z]*2**8+this[++z]*2**16+this[++z]*2**24,xe=this[++z]+this[++z]*2**8+this[++z]*2**16+G*2**24;return BigInt(de)+(BigInt(xe)<>>0,ce(z,"offset");let H=this[z],G=this[z+7];(H===void 0||G===void 0)&&pe(z,this.length-8);let de=H*2**24+this[++z]*2**16+this[++z]*2**8+this[++z],xe=this[++z]*2**24+this[++z]*2**16+this[++z]*2**8+G;return(BigInt(de)<>>0,H=H>>>0,G||F(z,H,this.length);let de=this[z],xe=1,he=0;for(;++he=xe&&(de-=Math.pow(2,8*H)),de},o.prototype.readIntBE=function(z,H,G){z=z>>>0,H=H>>>0,G||F(z,H,this.length);let de=H,xe=1,he=this[z+--de];for(;de>0&&(xe*=256);)he+=this[z+--de]*xe;return xe*=128,he>=xe&&(he-=Math.pow(2,8*H)),he},o.prototype.readInt8=function(z,H){return z=z>>>0,H||F(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},o.prototype.readInt16LE=function(z,H){z=z>>>0,H||F(z,2,this.length);let G=this[z]|this[z+1]<<8;return G&32768?G|4294901760:G},o.prototype.readInt16BE=function(z,H){z=z>>>0,H||F(z,2,this.length);let G=this[z+1]|this[z]<<8;return G&32768?G|4294901760:G},o.prototype.readInt32LE=function(z,H){return z=z>>>0,H||F(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},o.prototype.readInt32BE=function(z,H){return z=z>>>0,H||F(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},o.prototype.readBigInt64LE=ye(function(z){z=z>>>0,ce(z,"offset");let H=this[z],G=this[z+7];(H===void 0||G===void 0)&&pe(z,this.length-8);let de=this[z+4]+this[z+5]*2**8+this[z+6]*2**16+(G<<24);return(BigInt(de)<>>0,ce(z,"offset");let H=this[z],G=this[z+7];(H===void 0||G===void 0)&&pe(z,this.length-8);let de=(H<<24)+this[++z]*2**16+this[++z]*2**8+this[++z];return(BigInt(de)<>>0,H||F(z,4,this.length),t.read(this,z,!0,23,4)},o.prototype.readFloatBE=function(z,H){return z=z>>>0,H||F(z,4,this.length),t.read(this,z,!1,23,4)},o.prototype.readDoubleLE=function(z,H){return z=z>>>0,H||F(z,8,this.length),t.read(this,z,!0,52,8)},o.prototype.readDoubleBE=function(z,H){return z=z>>>0,H||F(z,8,this.length),t.read(this,z,!1,52,8)};function K(z,H,G,de,xe,he){if(!o.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>xe||Hz.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(z,H,G,de){if(z=+z,H=H>>>0,G=G>>>0,!de){let Ue=Math.pow(2,8*G)-1;K(this,z,H,G,Ue,0)}let xe=1,he=0;for(this[H]=z&255;++he>>0,G=G>>>0,!de){let Ue=Math.pow(2,8*G)-1;K(this,z,H,G,Ue,0)}let xe=G-1,he=1;for(this[H+xe]=z&255;--xe>=0&&(he*=256);)this[H+xe]=z/he&255;return H+G},o.prototype.writeUint8=o.prototype.writeUInt8=function(z,H,G){return z=+z,H=H>>>0,G||K(this,z,H,1,255,0),this[H]=z&255,H+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(z,H,G){return z=+z,H=H>>>0,G||K(this,z,H,2,65535,0),this[H]=z&255,this[H+1]=z>>>8,H+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(z,H,G){return z=+z,H=H>>>0,G||K(this,z,H,2,65535,0),this[H]=z>>>8,this[H+1]=z&255,H+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(z,H,G){return z=+z,H=H>>>0,G||K(this,z,H,4,4294967295,0),this[H+3]=z>>>24,this[H+2]=z>>>16,this[H+1]=z>>>8,this[H]=z&255,H+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(z,H,G){return z=+z,H=H>>>0,G||K(this,z,H,4,4294967295,0),this[H]=z>>>24,this[H+1]=z>>>16,this[H+2]=z>>>8,this[H+3]=z&255,H+4};function B(z,H,G,de,xe){le(H,de,xe,z,G,7);let he=Number(H&BigInt(4294967295));z[G++]=he,he=he>>8,z[G++]=he,he=he>>8,z[G++]=he,he=he>>8,z[G++]=he;let Ue=Number(H>>BigInt(32)&BigInt(4294967295));return z[G++]=Ue,Ue=Ue>>8,z[G++]=Ue,Ue=Ue>>8,z[G++]=Ue,Ue=Ue>>8,z[G++]=Ue,G}function U(z,H,G,de,xe){le(H,de,xe,z,G,7);let he=Number(H&BigInt(4294967295));z[G+7]=he,he=he>>8,z[G+6]=he,he=he>>8,z[G+5]=he,he=he>>8,z[G+4]=he;let Ue=Number(H>>BigInt(32)&BigInt(4294967295));return z[G+3]=Ue,Ue=Ue>>8,z[G+2]=Ue,Ue=Ue>>8,z[G+1]=Ue,Ue=Ue>>8,z[G]=Ue,G+8}o.prototype.writeBigUInt64LE=ye(function(z,H=0){return B(this,z,H,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=ye(function(z,H=0){return U(this,z,H,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(z,H,G,de){if(z=+z,H=H>>>0,!de){let We=Math.pow(2,8*G-1);K(this,z,H,G,We-1,-We)}let xe=0,he=1,Ue=0;for(this[H]=z&255;++xe>0)-Ue&255;return H+G},o.prototype.writeIntBE=function(z,H,G,de){if(z=+z,H=H>>>0,!de){let We=Math.pow(2,8*G-1);K(this,z,H,G,We-1,-We)}let xe=G-1,he=1,Ue=0;for(this[H+xe]=z&255;--xe>=0&&(he*=256);)z<0&&Ue===0&&this[H+xe+1]!==0&&(Ue=1),this[H+xe]=(z/he>>0)-Ue&255;return H+G},o.prototype.writeInt8=function(z,H,G){return z=+z,H=H>>>0,G||K(this,z,H,1,127,-128),z<0&&(z=255+z+1),this[H]=z&255,H+1},o.prototype.writeInt16LE=function(z,H,G){return z=+z,H=H>>>0,G||K(this,z,H,2,32767,-32768),this[H]=z&255,this[H+1]=z>>>8,H+2},o.prototype.writeInt16BE=function(z,H,G){return z=+z,H=H>>>0,G||K(this,z,H,2,32767,-32768),this[H]=z>>>8,this[H+1]=z&255,H+2},o.prototype.writeInt32LE=function(z,H,G){return z=+z,H=H>>>0,G||K(this,z,H,4,2147483647,-2147483648),this[H]=z&255,this[H+1]=z>>>8,this[H+2]=z>>>16,this[H+3]=z>>>24,H+4},o.prototype.writeInt32BE=function(z,H,G){return z=+z,H=H>>>0,G||K(this,z,H,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),this[H]=z>>>24,this[H+1]=z>>>16,this[H+2]=z>>>8,this[H+3]=z&255,H+4},o.prototype.writeBigInt64LE=ye(function(z,H=0){return B(this,z,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=ye(function(z,H=0){return U(this,z,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Z(z,H,G,de,xe,he){if(G+de>z.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function ee(z,H,G,de,xe){return H=+H,G=G>>>0,xe||Z(z,H,G,4),t.write(z,H,G,de,23,4),G+4}o.prototype.writeFloatLE=function(z,H,G){return ee(this,z,H,!0,G)},o.prototype.writeFloatBE=function(z,H,G){return ee(this,z,H,!1,G)};function ie(z,H,G,de,xe){return H=+H,G=G>>>0,xe||Z(z,H,G,8),t.write(z,H,G,de,52,8),G+8}o.prototype.writeDoubleLE=function(z,H,G){return ie(this,z,H,!0,G)},o.prototype.writeDoubleBE=function(z,H,G){return ie(this,z,H,!1,G)},o.prototype.copy=function(z,H,G,de){if(!o.isBuffer(z))throw new TypeError("argument should be a Buffer");if(G||(G=0),!de&&de!==0&&(de=this.length),H>=z.length&&(H=z.length),H||(H=0),de>0&&de=this.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),z.length-H>>0,G=G===void 0?this.length:G>>>0,z||(z=0);let xe;if(typeof z=="number")for(xe=H;xe2**32?xe=ae(String(G)):typeof G=="bigint"&&(xe=String(G),(G>BigInt(2)**BigInt(32)||G<-(BigInt(2)**BigInt(32)))&&(xe=ae(xe)),xe+="n"),de+=` It must be ${H}. Received ${xe}`,de},RangeError);function ae(z){let H="",G=z.length,de=z[0]==="-"?1:0;for(;G>=de+4;G-=3)H=`_${z.slice(G-3,G)}${H}`;return`${z.slice(0,G)}${H}`}function oe(z,H,G){ce(H,"offset"),(z[H]===void 0||z[H+G]===void 0)&&pe(H,z.length-(G+1))}function le(z,H,G,de,xe,he){if(z>G||z= 0${Ue} and < 2${Ue} ** ${(he+1)*8}${Ue}`:We=`>= -(2${Ue} ** ${(he+1)*8-1}${Ue}) and < 2 ** ${(he+1)*8-1}${Ue}`,new Y.ERR_OUT_OF_RANGE("value",We,z)}oe(de,xe,he)}function ce(z,H){if(typeof z!="number")throw new Y.ERR_INVALID_ARG_TYPE(H,"number",z)}function pe(z,H,G){throw Math.floor(z)!==z?(ce(z,G),new Y.ERR_OUT_OF_RANGE("offset","an integer",z)):H<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${H}`,z)}let me=/[^+/0-9A-Za-z-_]/g;function re(z){if(z=z.split("=")[0],z=z.trim().replace(me,""),z.length<2)return"";for(;z.length%4!==0;)z=z+"=";return z}function fe(z,H){H=H||1/0;let G,de=z.length,xe=null,he=[];for(let Ue=0;Ue55295&&G<57344){if(!xe){if(G>56319){(H-=3)>-1&&he.push(239,191,189);continue}else if(Ue+1===de){(H-=3)>-1&&he.push(239,191,189);continue}xe=G;continue}if(G<56320){(H-=3)>-1&&he.push(239,191,189),xe=G;continue}G=(xe-55296<<10|G-56320)+65536}else xe&&(H-=3)>-1&&he.push(239,191,189);if(xe=null,G<128){if((H-=1)<0)break;he.push(G)}else if(G<2048){if((H-=2)<0)break;he.push(G>>6|192,G&63|128)}else if(G<65536){if((H-=3)<0)break;he.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((H-=4)<0)break;he.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return he}function ve(z){let H=[];for(let G=0;G>8,xe=G%256,he.push(xe),he.push(de);return he}function Ce(z){return e.toByteArray(re(z))}function be(z,H,G,de){let xe;for(xe=0;xe=H.length||xe>=z.length);++xe)H[xe+G]=z[xe];return xe}function Se(z,H){return z instanceof H||z!=null&&z.constructor!=null&&z.constructor.name!=null&&z.constructor.name===H.name}function we(z){return z!==z}let se=function(){let z="0123456789abcdef",H=new Array(256);for(let G=0;G<16;++G){let de=G*16;for(let xe=0;xe<16;++xe)H[de+xe]=z[G]+z[xe]}return H}();function ye(z){return typeof BigInt>"u"?Oe:z}function Oe(){throw new Error("BigInt not supported")}return fp}var K1,mR,g2,gR,fp,vR,qd,Sk,Dle,Fle,ko=Co(()=>{Qt(),en(),Jt(),K1={},mR=!1,g2={},gR=!1,fp={},vR=!1,qd=y$e(),qd.Buffer,qd.SlowBuffer,qd.INSPECT_MAX_BYTES,qd.kMaxLength,Sk=qd.Buffer,Dle=qd.INSPECT_MAX_BYTES,Fle=qd.kMaxLength}),en=Co(()=>{ko()}),b$e=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(n){this.aliasToTopic={},this.max=n}put(n,r){return r===0||r>this.max?!1:(this.aliasToTopic[r]=n,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(n){return this.aliasToTopic[n]}clear(){this.aliasToTopic={}}};e.default=t}),Ga=ln((e,t)=>{Qt(),en(),Jt(),t.exports={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,i){return n.slice(r,i)},Error,FunctionPrototypeCall(n,r,...i){return n.call(r,...i)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,i){return Object.defineProperty(n,r,i)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,i){return n.then(r,i)},PromiseReject(n){return Promise.reject(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,i){return n.slice(r,i)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(n,r,i){return n.set(r,i)},Uint8Array}}),Tf=ln((e,t)=>{Qt(),en(),Jt();var n=(ko(),Ci(_o)),r=Object.getPrototypeOf(async function(){}).constructor,i=globalThis.Blob||n.Blob,a=typeof i<"u"?function(s){return s instanceof i}:function(s){return!1},o=class extends Error{constructor(s){if(!Array.isArray(s))throw new TypeError(`Expected input to be an Array, got ${typeof s}`);let l="";for(let c=0;c{s=c,l=u}),resolve:s,reject:l}},promisify(s){return new Promise((l,c)=>{s((u,...f)=>u?c(u):l(...f))})},debuglog(){return function(){}},format(s,...l){return s.replace(/%([sdifj])/g,function(...[c,u]){let f=l.shift();return u==="f"?f.toFixed(6):u==="j"?JSON.stringify(f):u==="s"&&typeof f=="object"?`${f.constructor!==Object?f.constructor.name:""} {}`.trim():f.toString()})},inspect(s){switch(typeof s){case"string":if(s.includes("'"))if(s.includes('"')){if(!s.includes("`")&&!s.includes("${"))return`\`${s}\``}else return`"${s}"`;return`'${s}'`;case"number":return isNaN(s)?"NaN":Object.is(s,-0)?String(s):s;case"bigint":return`${String(s)}n`;case"boolean":case"undefined":return String(s);case"object":return"{}"}},types:{isAsyncFunction(s){return s instanceof r},isArrayBufferView(s){return ArrayBuffer.isView(s)}},isBlob:a},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),DF=ln((e,t)=>{Qt(),en(),Jt();var{AbortController:n,AbortSignal:r}=typeof self<"u"?self:typeof window<"u"?window:void 0;t.exports=n,t.exports.AbortSignal=r,t.exports.default=n}),Gs=ln((e,t)=>{Qt(),en(),Jt();var{format:n,inspect:r,AggregateError:i}=Tf(),a=globalThis.AggregateError||i,o=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,c="__node_internal_",u={};function f(b,w){if(!b)throw new u.ERR_INTERNAL_ASSERTION(w)}function p(b){let w="",_=b.length,k=b[0]==="-"?1:0;for(;_>=k+4;_-=3)w=`_${b.slice(_-3,_)}${w}`;return`${b.slice(0,_)}${w}`}function h(b,w,_){if(typeof w=="function")return f(w.length<=_.length,`Code: ${b}; The provided arguments length (${_.length}) does not match the required ones (${w.length}).`),w(..._);let k=(w.match(/%[dfijoOs]/g)||[]).length;return f(k===_.length,`Code: ${b}; The provided arguments length (${_.length}) does not match the required ones (${k}).`),_.length===0?w:n(w,..._)}function m(b,w,_){_||(_=Error);class k extends _{constructor(...C){super(h(b,w,C))}toString(){return`${this.name} [${b}]: ${this.message}`}}Object.defineProperties(k.prototype,{name:{value:_.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${b}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),k.prototype.code=b,k.prototype[o]=!0,u[b]=k}function g(b){let w=c+b.name;return Object.defineProperty(b,"name",{value:w}),b}function v(b,w){if(b&&w&&b!==w){if(Array.isArray(w.errors))return w.errors.push(b),w;let _=new a([w,b],w.message);return _.code=w.code,_}return b||w}var y=class extends Error{constructor(b="The operation was aborted",w=void 0){if(w!==void 0&&typeof w!="object")throw new u.ERR_INVALID_ARG_TYPE("options","Object",w);super(b,w),this.code="ABORT_ERR",this.name="AbortError"}};m("ERR_ASSERTION","%s",Error),m("ERR_INVALID_ARG_TYPE",(b,w,_)=>{f(typeof b=="string","'name' must be a string"),Array.isArray(w)||(w=[w]);let k="The ";b.endsWith(" argument")?k+=`${b} `:k+=`"${b}" ${b.includes(".")?"property":"argument"} `,k+="must be ";let S=[],C=[],E=[];for(let M of w)f(typeof M=="string","All expected entries have to be of type string"),s.includes(M)?S.push(M.toLowerCase()):l.test(M)?C.push(M):(f(M!=="object",'The value "object" should be written as "Object"'),E.push(M));if(C.length>0){let M=S.indexOf("object");M!==-1&&(S.splice(S,M,1),C.push("Object"))}if(S.length>0){switch(S.length){case 1:k+=`of type ${S[0]}`;break;case 2:k+=`one of type ${S[0]} or ${S[1]}`;break;default:{let M=S.pop();k+=`one of type ${S.join(", ")}, or ${M}`}}(C.length>0||E.length>0)&&(k+=" or ")}if(C.length>0){switch(C.length){case 1:k+=`an instance of ${C[0]}`;break;case 2:k+=`an instance of ${C[0]} or ${C[1]}`;break;default:{let M=C.pop();k+=`an instance of ${C.join(", ")}, or ${M}`}}E.length>0&&(k+=" or ")}switch(E.length){case 0:break;case 1:E[0].toLowerCase()!==E[0]&&(k+="an "),k+=`${E[0]}`;break;case 2:k+=`one of ${E[0]} or ${E[1]}`;break;default:{let M=E.pop();k+=`one of ${E.join(", ")}, or ${M}`}}if(_==null)k+=`. Received ${_}`;else if(typeof _=="function"&&_.name)k+=`. Received function ${_.name}`;else if(typeof _=="object"){var $;if(($=_.constructor)!==null&&$!==void 0&&$.name)k+=`. Received an instance of ${_.constructor.name}`;else{let M=r(_,{depth:-1});k+=`. Received ${M}`}}else{let M=r(_,{colors:!1});M.length>25&&(M=`${M.slice(0,25)}...`),k+=`. Received type ${typeof _} (${M})`}return k},TypeError),m("ERR_INVALID_ARG_VALUE",(b,w,_="is invalid")=>{let k=r(w);return k.length>128&&(k=k.slice(0,128)+"..."),`The ${b.includes(".")?"property":"argument"} '${b}' ${_}. Received ${k}`},TypeError),m("ERR_INVALID_RETURN_VALUE",(b,w,_)=>{var k;let S=_!=null&&(k=_.constructor)!==null&&k!==void 0&&k.name?`instance of ${_.constructor.name}`:`type ${typeof _}`;return`Expected ${b} to be returned from the "${w}" function but got ${S}.`},TypeError),m("ERR_MISSING_ARGS",(...b)=>{f(b.length>0,"At least one arg needs to be specified");let w,_=b.length;switch(b=(Array.isArray(b)?b:[b]).map(k=>`"${k}"`).join(" or "),_){case 1:w+=`The ${b[0]} argument`;break;case 2:w+=`The ${b[0]} and ${b[1]} arguments`;break;default:{let k=b.pop();w+=`The ${b.join(", ")}, and ${k} arguments`}break}return`${w} must be specified`},TypeError),m("ERR_OUT_OF_RANGE",(b,w,_)=>{f(w,'Missing "range" argument');let k;return Number.isInteger(_)&&Math.abs(_)>2**32?k=p(String(_)):typeof _=="bigint"?(k=String(_),(_>2n**32n||_<-(2n**32n))&&(k=p(k)),k+="n"):k=r(_),`The value of "${b}" is out of range. It must be ${w}. Received ${k}`},RangeError),m("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),m("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),m("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),m("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),m("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),m("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),m("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),m("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),m("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),m("ERR_STREAM_WRITE_AFTER_END","write after end",Error),m("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:y,aggregateTwoErrors:g(v),hideStackFrames:g,codes:u}}),dE=ln((e,t)=>{Qt(),en(),Jt();var{ArrayIsArray:n,ArrayPrototypeIncludes:r,ArrayPrototypeJoin:i,ArrayPrototypeMap:a,NumberIsInteger:o,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:c,NumberParseInt:u,ObjectPrototypeHasOwnProperty:f,RegExpPrototypeExec:p,String:h,StringPrototypeToUpperCase:m,StringPrototypeTrim:g}=Ga(),{hideStackFrames:v,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:b,ERR_INVALID_ARG_VALUE:w,ERR_OUT_OF_RANGE:_,ERR_UNKNOWN_SIGNAL:k}}=Gs(),{normalizeEncoding:S}=Tf(),{isAsyncFunction:C,isArrayBufferView:E}=Tf().types,$={};function M(be){return be===(be|0)}function P(be){return be===be>>>0}var I=/^[0-7]+$/,O="must be a 32-bit unsigned integer or an octal string";function A(be,Se,we){if(typeof be>"u"&&(be=we),typeof be=="string"){if(p(I,be)===null)throw new w(Se,be,O);be=u(be,8)}return N(be,Se),be}var R=v((be,Se,we=c,se=l)=>{if(typeof be!="number")throw new b(Se,"number",be);if(!o(be))throw new _(Se,"an integer",be);if(bese)throw new _(Se,`>= ${we} && <= ${se}`,be)}),j=v((be,Se,we=-2147483648,se=2147483647)=>{if(typeof be!="number")throw new b(Se,"number",be);if(!o(be))throw new _(Se,"an integer",be);if(bese)throw new _(Se,`>= ${we} && <= ${se}`,be)}),N=v((be,Se,we=!1)=>{if(typeof be!="number")throw new b(Se,"number",be);if(!o(be))throw new _(Se,"an integer",be);let se=we?1:0,ye=4294967295;if(beye)throw new _(Se,`>= ${se} && <= ${ye}`,be)});function D(be,Se){if(typeof be!="string")throw new b(Se,"string",be)}function V(be,Se,we=void 0,se){if(typeof be!="number")throw new b(Se,"number",be);if(we!=null&&bese||(we!=null||se!=null)&&s(be))throw new _(Se,`${we!=null?`>= ${we}`:""}${we!=null&&se!=null?" && ":""}${se!=null?`<= ${se}`:""}`,be)}var F=v((be,Se,we)=>{if(!r(we,be)){let se="must be one of: "+i(a(we,ye=>typeof ye=="string"?`'${ye}'`:h(ye)),", ");throw new w(Se,be,se)}});function K(be,Se){if(typeof be!="boolean")throw new b(Se,"boolean",be)}function B(be,Se,we){return be==null||!f(be,Se)?we:be[Se]}var U=v((be,Se,we=null)=>{let se=B(we,"allowArray",!1),ye=B(we,"allowFunction",!1);if(!B(we,"nullable",!1)&&be===null||!se&&n(be)||typeof be!="object"&&(!ye||typeof be!="function"))throw new b(Se,"Object",be)}),Z=v((be,Se)=>{if(be!=null&&typeof be!="object"&&typeof be!="function")throw new b(Se,"a dictionary",be)}),ee=v((be,Se,we=0)=>{if(!n(be))throw new b(Se,"Array",be);if(be.length{if(!E(be))throw new b(Se,["Buffer","TypedArray","DataView"],be)});function oe(be,Se){let we=S(Se),se=be.length;if(we==="hex"&&se%2!==0)throw new w("encoding",Se,`is invalid for data of length ${se}`)}function le(be,Se="Port",we=!0){if(typeof be!="number"&&typeof be!="string"||typeof be=="string"&&g(be).length===0||+be!==+be>>>0||be>65535||be===0&&!we)throw new y(Se,be,we);return be|0}var ce=v((be,Se)=>{if(be!==void 0&&(be===null||typeof be!="object"||!("aborted"in be)))throw new b(Se,"AbortSignal",be)}),pe=v((be,Se)=>{if(typeof be!="function")throw new b(Se,"Function",be)}),me=v((be,Se)=>{if(typeof be!="function"||C(be))throw new b(Se,"Function",be)}),re=v((be,Se)=>{if(be!==void 0)throw new b(Se,"undefined",be)});function fe(be,Se,we){if(!r(we,be))throw new b(Se,`('${i(we,"|")}')`,be)}var ve=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function $e(be,Se){if(typeof be>"u"||!p(ve,be))throw new w(Se,be,'must be an array or string of format "; rel=preload; as=style"')}function Ce(be){if(typeof be=="string")return $e(be,"hints"),be;if(n(be)){let Se=be.length,we="";if(Se===0)return we;for(let se=0;se; rel=preload; as=style"')}t.exports={isInt32:M,isUint32:P,parseFileMode:A,validateArray:ee,validateStringArray:ie,validateBooleanArray:Y,validateBoolean:K,validateBuffer:ae,validateDictionary:Z,validateEncoding:oe,validateFunction:pe,validateInt32:j,validateInteger:R,validateNumber:V,validateObject:U,validateOneOf:F,validatePlainFunction:me,validatePort:le,validateSignalName:X,validateString:D,validateUint32:N,validateUndefined:re,validateUnion:fe,validateAbortSignal:ce,validateLinkHeaderValue:Ce}}),Fg=ln((e,t)=>{Qt(),en(),Jt();var n=t.exports={},r,i;function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?r=setTimeout:r=a}catch{r=a}try{typeof clearTimeout=="function"?i=clearTimeout:i=o}catch{i=o}})();function s(y){if(r===setTimeout)return setTimeout(y,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(y,0);try{return r(y,0)}catch{try{return r.call(null,y,0)}catch{return r.call(this,y,0)}}}function l(y){if(i===clearTimeout)return clearTimeout(y);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(y);try{return i(y)}catch{try{return i.call(null,y)}catch{return i.call(this,y)}}}var c=[],u=!1,f,p=-1;function h(){!u||!f||(u=!1,f.length?c=f.concat(c):p=-1,c.length&&m())}function m(){if(!u){var y=s(h);u=!0;for(var b=c.length;b;){for(f=c,c=[];++p1)for(var w=1;w{Qt(),en(),Jt();var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:i,SymbolFor:a}=Ga(),o=n("kDestroyed"),s=n("kIsErrored"),l=n("kIsReadable"),c=n("kIsDisturbed"),u=a("nodejs.webstream.isClosedPromise"),f=a("nodejs.webstream.controllerErrorFunction");function p(B,U=!1){var Z;return!!(B&&typeof B.pipe=="function"&&typeof B.on=="function"&&(!U||typeof B.pause=="function"&&typeof B.resume=="function")&&(!B._writableState||((Z=B._readableState)===null||Z===void 0?void 0:Z.readable)!==!1)&&(!B._writableState||B._readableState))}function h(B){var U;return!!(B&&typeof B.write=="function"&&typeof B.on=="function"&&(!B._readableState||((U=B._writableState)===null||U===void 0?void 0:U.writable)!==!1))}function m(B){return!!(B&&typeof B.pipe=="function"&&B._readableState&&typeof B.on=="function"&&typeof B.write=="function")}function g(B){return B&&(B._readableState||B._writableState||typeof B.write=="function"&&typeof B.on=="function"||typeof B.pipe=="function"&&typeof B.on=="function")}function v(B){return!!(B&&!g(B)&&typeof B.pipeThrough=="function"&&typeof B.getReader=="function"&&typeof B.cancel=="function")}function y(B){return!!(B&&!g(B)&&typeof B.getWriter=="function"&&typeof B.abort=="function")}function b(B){return!!(B&&!g(B)&&typeof B.readable=="object"&&typeof B.writable=="object")}function w(B){return v(B)||y(B)||b(B)}function _(B,U){return B==null?!1:U===!0?typeof B[r]=="function":U===!1?typeof B[i]=="function":typeof B[r]=="function"||typeof B[i]=="function"}function k(B){if(!g(B))return null;let U=B._writableState,Z=B._readableState,ee=U||Z;return!!(B.destroyed||B[o]||ee!=null&&ee.destroyed)}function S(B){if(!h(B))return null;if(B.writableEnded===!0)return!0;let U=B._writableState;return U!=null&&U.errored?!1:typeof(U==null?void 0:U.ended)!="boolean"?null:U.ended}function C(B,U){if(!h(B))return null;if(B.writableFinished===!0)return!0;let Z=B._writableState;return Z!=null&&Z.errored?!1:typeof(Z==null?void 0:Z.finished)!="boolean"?null:!!(Z.finished||U===!1&&Z.ended===!0&&Z.length===0)}function E(B){if(!p(B))return null;if(B.readableEnded===!0)return!0;let U=B._readableState;return!U||U.errored?!1:typeof(U==null?void 0:U.ended)!="boolean"?null:U.ended}function $(B,U){if(!p(B))return null;let Z=B._readableState;return Z!=null&&Z.errored?!1:typeof(Z==null?void 0:Z.endEmitted)!="boolean"?null:!!(Z.endEmitted||U===!1&&Z.ended===!0&&Z.length===0)}function M(B){return B&&B[l]!=null?B[l]:typeof(B==null?void 0:B.readable)!="boolean"?null:k(B)?!1:p(B)&&B.readable&&!$(B)}function P(B){return typeof(B==null?void 0:B.writable)!="boolean"?null:k(B)?!1:h(B)&&B.writable&&!S(B)}function I(B,U){return g(B)?k(B)?!0:!((U==null?void 0:U.readable)!==!1&&M(B)||(U==null?void 0:U.writable)!==!1&&P(B)):null}function O(B){var U,Z;return g(B)?B.writableErrored?B.writableErrored:(U=(Z=B._writableState)===null||Z===void 0?void 0:Z.errored)!==null&&U!==void 0?U:null:null}function A(B){var U,Z;return g(B)?B.readableErrored?B.readableErrored:(U=(Z=B._readableState)===null||Z===void 0?void 0:Z.errored)!==null&&U!==void 0?U:null:null}function R(B){if(!g(B))return null;if(typeof B.closed=="boolean")return B.closed;let U=B._writableState,Z=B._readableState;return typeof(U==null?void 0:U.closed)=="boolean"||typeof(Z==null?void 0:Z.closed)=="boolean"?(U==null?void 0:U.closed)||(Z==null?void 0:Z.closed):typeof B._closed=="boolean"&&j(B)?B._closed:null}function j(B){return typeof B._closed=="boolean"&&typeof B._defaultKeepAlive=="boolean"&&typeof B._removedConnection=="boolean"&&typeof B._removedContLen=="boolean"}function N(B){return typeof B._sent100=="boolean"&&j(B)}function D(B){var U;return typeof B._consuming=="boolean"&&typeof B._dumped=="boolean"&&((U=B.req)===null||U===void 0?void 0:U.upgradeOrConnect)===void 0}function V(B){if(!g(B))return null;let U=B._writableState,Z=B._readableState,ee=U||Z;return!ee&&N(B)||!!(ee&&ee.autoDestroy&&ee.emitClose&&ee.closed===!1)}function F(B){var U;return!!(B&&((U=B[c])!==null&&U!==void 0?U:B.readableDidRead||B.readableAborted))}function K(B){var U,Z,ee,ie,Y,X,ae,oe,le,ce;return!!(B&&((U=(Z=(ee=(ie=(Y=(X=B[s])!==null&&X!==void 0?X:B.readableErrored)!==null&&Y!==void 0?Y:B.writableErrored)!==null&&ie!==void 0?ie:(ae=B._readableState)===null||ae===void 0?void 0:ae.errorEmitted)!==null&&ee!==void 0?ee:(oe=B._writableState)===null||oe===void 0?void 0:oe.errorEmitted)!==null&&Z!==void 0?Z:(le=B._readableState)===null||le===void 0?void 0:le.errored)!==null&&U!==void 0?U:!((ce=B._writableState)===null||ce===void 0)&&ce.errored))}t.exports={kDestroyed:o,isDisturbed:F,kIsDisturbed:c,isErrored:K,kIsErrored:s,isReadable:M,kIsReadable:l,kIsClosedPromise:u,kControllerErrorFunction:f,isClosed:R,isDestroyed:k,isDuplexNodeStream:m,isFinished:I,isIterable:_,isReadableNodeStream:p,isReadableStream:v,isReadableEnded:E,isReadableFinished:$,isReadableErrored:A,isNodeStream:g,isWebStream:w,isWritable:P,isWritableNodeStream:h,isWritableStream:y,isWritableEnded:S,isWritableFinished:C,isWritableErrored:O,isServerRequest:D,isServerResponse:N,willEmitClose:V,isTransformStream:b}}),gh=ln((e,t)=>{Qt(),en(),Jt();var n=Fg(),{AbortError:r,codes:i}=Gs(),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:o}=i,{kEmptyObject:s,once:l}=Tf(),{validateAbortSignal:c,validateFunction:u,validateObject:f,validateBoolean:p}=dE(),{Promise:h,PromisePrototypeThen:m}=Ga(),{isClosed:g,isReadable:v,isReadableNodeStream:y,isReadableStream:b,isReadableFinished:w,isReadableErrored:_,isWritable:k,isWritableNodeStream:S,isWritableStream:C,isWritableFinished:E,isWritableErrored:$,isNodeStream:M,willEmitClose:P,kIsClosedPromise:I}=Bf();function O(D){return D.setHeader&&typeof D.abort=="function"}var A=()=>{};function R(D,V,F){var K,B;if(arguments.length===2?(F=V,V=s):V==null?V=s:f(V,"options"),u(F,"callback"),c(V.signal,"options.signal"),F=l(F),b(D)||C(D))return j(D,V,F);if(!M(D))throw new a("stream",["ReadableStream","WritableStream","Stream"],D);let U=(K=V.readable)!==null&&K!==void 0?K:y(D),Z=(B=V.writable)!==null&&B!==void 0?B:S(D),ee=D._writableState,ie=D._readableState,Y=()=>{D.writable||oe()},X=P(D)&&y(D)===U&&S(D)===Z,ae=E(D,!1),oe=()=>{ae=!0,D.destroyed&&(X=!1),!(X&&(!D.readable||U))&&(!U||le)&&F.call(D)},le=w(D,!1),ce=()=>{le=!0,D.destroyed&&(X=!1),!(X&&(!D.writable||Z))&&(!Z||ae)&&F.call(D)},pe=Ce=>{F.call(D,Ce)},me=g(D),re=()=>{me=!0;let Ce=$(D)||_(D);if(Ce&&typeof Ce!="boolean")return F.call(D,Ce);if(U&&!le&&y(D,!0)&&!w(D,!1))return F.call(D,new o);if(Z&&!ae&&!E(D,!1))return F.call(D,new o);F.call(D)},fe=()=>{me=!0;let Ce=$(D)||_(D);if(Ce&&typeof Ce!="boolean")return F.call(D,Ce);F.call(D)},ve=()=>{D.req.on("finish",oe)};O(D)?(D.on("complete",oe),X||D.on("abort",re),D.req?ve():D.on("request",ve)):Z&&!ee&&(D.on("end",Y),D.on("close",Y)),!X&&typeof D.aborted=="boolean"&&D.on("aborted",re),D.on("end",ce),D.on("finish",oe),V.error!==!1&&D.on("error",pe),D.on("close",re),me?n.nextTick(re):ee!=null&&ee.errorEmitted||ie!=null&&ie.errorEmitted?X||n.nextTick(fe):(!U&&(!X||v(D))&&(ae||k(D)===!1)||!Z&&(!X||k(D))&&(le||v(D)===!1)||ie&&D.req&&D.aborted)&&n.nextTick(fe);let $e=()=>{F=A,D.removeListener("aborted",re),D.removeListener("complete",oe),D.removeListener("abort",re),D.removeListener("request",ve),D.req&&D.req.removeListener("finish",oe),D.removeListener("end",Y),D.removeListener("close",Y),D.removeListener("finish",oe),D.removeListener("end",ce),D.removeListener("error",pe),D.removeListener("close",re)};if(V.signal&&!me){let Ce=()=>{let be=F;$e(),be.call(D,new r(void 0,{cause:V.signal.reason}))};if(V.signal.aborted)n.nextTick(Ce);else{let be=F;F=l((...Se)=>{V.signal.removeEventListener("abort",Ce),be.apply(D,Se)}),V.signal.addEventListener("abort",Ce)}}return $e}function j(D,V,F){let K=!1,B=A;if(V.signal)if(B=()=>{K=!0,F.call(D,new r(void 0,{cause:V.signal.reason}))},V.signal.aborted)n.nextTick(B);else{let Z=F;F=l((...ee)=>{V.signal.removeEventListener("abort",B),Z.apply(D,ee)}),V.signal.addEventListener("abort",B)}let U=(...Z)=>{K||n.nextTick(()=>F.apply(D,Z))};return m(D[I].promise,U,U),A}function N(D,V){var F;let K=!1;return V===null&&(V=s),(F=V)!==null&&F!==void 0&&F.cleanup&&(p(V.cleanup,"cleanup"),K=V.cleanup),new h((B,U)=>{let Z=R(D,V,ee=>{K&&Z(),ee?U(ee):B()})})}t.exports=R,t.exports.finished=N}),fy=ln((e,t)=>{Qt(),en(),Jt();var n=Fg(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:a}=Gs(),{Symbol:o}=Ga(),{kDestroyed:s,isDestroyed:l,isFinished:c,isServerRequest:u}=Bf(),f=o("kDestroy"),p=o("kConstruct");function h(I,O,A){I&&(I.stack,O&&!O.errored&&(O.errored=I),A&&!A.errored&&(A.errored=I))}function m(I,O){let A=this._readableState,R=this._writableState,j=R||A;return R!=null&&R.destroyed||A!=null&&A.destroyed?(typeof O=="function"&&O(),this):(h(I,R,A),R&&(R.destroyed=!0),A&&(A.destroyed=!0),j.constructed?g(this,I,O):this.once(f,function(N){g(this,r(N,I),O)}),this)}function g(I,O,A){let R=!1;function j(N){if(R)return;R=!0;let D=I._readableState,V=I._writableState;h(N,V,D),V&&(V.closed=!0),D&&(D.closed=!0),typeof A=="function"&&A(N),N?n.nextTick(v,I,N):n.nextTick(y,I)}try{I._destroy(O||null,j)}catch(N){j(N)}}function v(I,O){b(I,O),y(I)}function y(I){let O=I._readableState,A=I._writableState;A&&(A.closeEmitted=!0),O&&(O.closeEmitted=!0),(A!=null&&A.emitClose||O!=null&&O.emitClose)&&I.emit("close")}function b(I,O){let A=I._readableState,R=I._writableState;R!=null&&R.errorEmitted||A!=null&&A.errorEmitted||(R&&(R.errorEmitted=!0),A&&(A.errorEmitted=!0),I.emit("error",O))}function w(){let I=this._readableState,O=this._writableState;I&&(I.constructed=!0,I.closed=!1,I.closeEmitted=!1,I.destroyed=!1,I.errored=null,I.errorEmitted=!1,I.reading=!1,I.ended=I.readable===!1,I.endEmitted=I.readable===!1),O&&(O.constructed=!0,O.destroyed=!1,O.closed=!1,O.closeEmitted=!1,O.errored=null,O.errorEmitted=!1,O.finalCalled=!1,O.prefinished=!1,O.ended=O.writable===!1,O.ending=O.writable===!1,O.finished=O.writable===!1)}function _(I,O,A){let R=I._readableState,j=I._writableState;if(j!=null&&j.destroyed||R!=null&&R.destroyed)return this;R!=null&&R.autoDestroy||j!=null&&j.autoDestroy?I.destroy(O):O&&(O.stack,j&&!j.errored&&(j.errored=O),R&&!R.errored&&(R.errored=O),A?n.nextTick(b,I,O):b(I,O))}function k(I,O){if(typeof I._construct!="function")return;let A=I._readableState,R=I._writableState;A&&(A.constructed=!1),R&&(R.constructed=!1),I.once(p,O),!(I.listenerCount(p)>1)&&n.nextTick(S,I)}function S(I){let O=!1;function A(R){if(O){_(I,R??new i);return}O=!0;let j=I._readableState,N=I._writableState,D=N||j;j&&(j.constructed=!0),N&&(N.constructed=!0),D.destroyed?I.emit(f,R):R?_(I,R,!0):n.nextTick(C,I)}try{I._construct(R=>{n.nextTick(A,R)})}catch(R){n.nextTick(A,R)}}function C(I){I.emit(p)}function E(I){return(I==null?void 0:I.setHeader)&&typeof I.abort=="function"}function $(I){I.emit("close")}function M(I,O){I.emit("error",O),n.nextTick($,I)}function P(I,O){!I||l(I)||(!O&&!c(I)&&(O=new a),u(I)?(I.socket=null,I.destroy(O)):E(I)?I.abort():E(I.req)?I.req.abort():typeof I.destroy=="function"?I.destroy(O):typeof I.close=="function"?I.close():O?n.nextTick(M,I,O):n.nextTick($,I),I.destroyed||(I[s]=!0))}t.exports={construct:k,destroyer:P,destroy:m,undestroy:w,errorOrDestroy:_}});function mi(){mi.init.call(this)}function NC(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function Lle(e){return e._maxListeners===void 0?mi.defaultMaxListeners:e._maxListeners}function Nq(e,t,n,r){var i,a,o,s;if(NC(n),(a=e._events)===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),o===void 0)o=a[t]=n,++e._eventsCount;else if(typeof o=="function"?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=Lle(e))>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,s=l,console&&console.warn&&console.warn(s)}return e}function w$e(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Aq(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=w$e.bind(r);return i.listener=n,r.wrapFn=i,i}function Dq(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?function(a){for(var o=new Array(a.length),s=0;s{Qt(),en(),Jt(),Lh=typeof Reflect=="object"?Reflect:null,BM=Lh&&typeof Lh.apply=="function"?Lh.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},Bq=Lh&&typeof Lh.ownKeys=="function"?Lh.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},zM=Number.isNaN||function(e){return e!=e},Lq=mi,mi.EventEmitter=mi,mi.prototype._events=void 0,mi.prototype._eventsCount=0,mi.prototype._maxListeners=void 0,HM=10,Object.defineProperty(mi,"defaultMaxListeners",{enumerable:!0,get:function(){return HM},set:function(e){if(typeof e!="number"||e<0||zM(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");HM=e}}),mi.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},mi.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||zM(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},mi.prototype.getMaxListeners=function(){return Lle(this)},mi.prototype.emit=function(e){for(var t=[],n=1;n0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var s=i[e];if(s===void 0)return!1;if(typeof s=="function")BM(s,this,t);else{var l=s.length,c=Ble(s,l);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():function(s,l){for(;l+1=0;r--)this.removeListener(e,t[r]);return this},mi.prototype.listeners=function(e){return Dq(this,e,!0)},mi.prototype.rawListeners=function(e){return Dq(this,e,!1)},mi.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Fq.call(e,t)},mi.prototype.listenerCount=Fq,mi.prototype.eventNames=function(){return this._eventsCount>0?Bq(this._events):[]},ml=Lq,ml.EventEmitter,ml.defaultMaxListeners,ml.init,ml.listenerCount,ml.EventEmitter,ml.defaultMaxListeners,ml.init,ml.listenerCount}),Lg={};Dg(Lg,{EventEmitter:()=>zle,default:()=>ml,defaultMaxListeners:()=>Hle,init:()=>Ule,listenerCount:()=>Wle,on:()=>Vle,once:()=>qle});var zle,Hle,Ule,Wle,Vle,qle,py=Co(()=>{Qt(),en(),Jt(),zq(),zq(),ml.once=function(e,t){return new Promise((n,r)=>{function i(...o){a!==void 0&&e.removeListener("error",a),n(o)}let a;t!=="error"&&(a=o=>{e.removeListener(name,i),r(o)},e.once("error",a)),e.once(t,i)})},ml.on=function(e,t){let n=[],r=[],i=null,a=!1,o={async next(){let c=n.shift();if(c)return createIterResult(c,!1);if(i){let u=Promise.reject(i);return i=null,u}return a?createIterResult(void 0,!0):new Promise((u,f)=>r.push({resolve:u,reject:f}))},async return(){e.removeListener(t,s),e.removeListener("error",l),a=!0;for(let c of r)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){i=c,e.removeListener(t,s),e.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return e.on(t,s),e.on("error",l),o;function s(...c){let u=r.shift();u?u.resolve(createIterResult(c,!1)):n.push(c)}function l(c){a=!0;let u=r.shift();u?u.reject(c):i=c,o.return()}},{EventEmitter:zle,defaultMaxListeners:Hle,init:Ule,listenerCount:Wle,on:Vle,once:qle}=ml}),FF=ln((e,t)=>{Qt(),en(),Jt();var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=Ga(),{EventEmitter:i}=(py(),Ci(Lg));function a(s){i.call(this,s)}r(a.prototype,i.prototype),r(a,i),a.prototype.pipe=function(s,l){let c=this;function u(y){s.writable&&s.write(y)===!1&&c.pause&&c.pause()}c.on("data",u);function f(){c.readable&&c.resume&&c.resume()}s.on("drain",f),!s._isStdio&&(!l||l.end!==!1)&&(c.on("end",h),c.on("close",m));let p=!1;function h(){p||(p=!0,s.end())}function m(){p||(p=!0,typeof s.destroy=="function"&&s.destroy())}function g(y){v(),i.listenerCount(this,"error")===0&&this.emit("error",y)}o(c,"error",g),o(s,"error",g);function v(){c.removeListener("data",u),s.removeListener("drain",f),c.removeListener("end",h),c.removeListener("close",m),c.removeListener("error",g),s.removeListener("error",g),c.removeListener("end",v),c.removeListener("close",v),s.removeListener("close",v)}return c.on("end",v),c.on("close",v),s.on("close",v),s.emit("pipe",c),s};function o(s,l,c){if(typeof s.prependListener=="function")return s.prependListener(l,c);!s._events||!s._events[l]?s.on(l,c):n(s._events[l])?s._events[l].unshift(c):s._events[l]=[c,s._events[l]]}t.exports={Stream:a,prependListener:o}}),fE=ln((e,t)=>{Qt(),en(),Jt();var{AbortError:n,codes:r}=Gs(),{isNodeStream:i,isWebStream:a,kControllerErrorFunction:o}=Bf(),s=gh(),{ERR_INVALID_ARG_TYPE:l}=r,c=(u,f)=>{if(typeof u!="object"||!("aborted"in u))throw new l(f,"AbortSignal",u)};t.exports.addAbortSignal=function(u,f){if(c(u,"signal"),!i(f)&&!a(f))throw new l("stream",["ReadableStream","WritableStream","Stream"],f);return t.exports.addAbortSignalNoValidate(u,f)},t.exports.addAbortSignalNoValidate=function(u,f){if(typeof u!="object"||!("aborted"in u))return f;let p=i(f)?()=>{f.destroy(new n(void 0,{cause:u.reason}))}:()=>{f[o](new n(void 0,{cause:u.reason}))};return u.aborted?p():(u.addEventListener("abort",p),s(f,()=>u.removeEventListener("abort",p))),f}}),x$e=ln((e,t)=>{Qt(),en(),Jt();var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:i,Uint8Array:a}=Ga(),{Buffer:o}=(ko(),Ci(_o)),{inspect:s}=Tf();t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(l){let c={data:l,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}unshift(l){let c={data:l,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}shift(){if(this.length===0)return;let l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}clear(){this.head=this.tail=null,this.length=0}join(l){if(this.length===0)return"";let c=this.head,u=""+c.data;for(;(c=c.next)!==null;)u+=l+c.data;return u}concat(l){if(this.length===0)return o.alloc(0);let c=o.allocUnsafe(l>>>0),u=this.head,f=0;for(;u;)i(c,u.data,f),f+=u.data.length,u=u.next;return c}consume(l,c){let u=this.head.data;if(lp.length)c+=p,l-=p.length;else{l===p.length?(c+=p,++f,u.next?this.head=u.next:this.head=this.tail=null):(c+=n(p,0,l),this.head=u,u.data=n(p,l));break}++f}while((u=u.next)!==null);return this.length-=f,c}_getBuffer(l){let c=o.allocUnsafe(l),u=l,f=this.head,p=0;do{let h=f.data;if(l>h.length)i(c,h,u-l),l-=h.length;else{l===h.length?(i(c,h,u-l),++p,f.next?this.head=f.next:this.head=this.tail=null):(i(c,new a(h.buffer,h.byteOffset,l),u-l),this.head=f,f.data=h.slice(l));break}++p}while((f=f.next)!==null);return this.length-=p,c}[Symbol.for("nodejs.util.inspect.custom")](l,c){return s(this,{...c,depth:0,customInspect:!1})}}}),LF=ln((e,t)=>{Qt(),en(),Jt();var{MathFloor:n,NumberIsInteger:r}=Ga(),{ERR_INVALID_ARG_VALUE:i}=Gs().codes;function a(l,c,u){return l.highWaterMark!=null?l.highWaterMark:c?l[u]:null}function o(l){return l?16:16*1024}function s(l,c,u,f){let p=a(c,f,u);if(p!=null){if(!r(p)||p<0){let h=f?`options.${u}`:"options.highWaterMark";throw new i(h,p)}return n(p)}return o(l.objectMode)}t.exports={getHighWaterMark:s,getDefaultHighWaterMark:o}});function Hq(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return n===-1&&(n=t),[n,n===t?0:4-n%4]}function S$e(e,t,n){for(var r,i,a=[],o=t;o>18&63]+Wc[i>>12&63]+Wc[i>>6&63]+Wc[63&i]);return a.join("")}function uf(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,on.prototype),t}function on(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return yR(e)}return Kle(e,t,n)}function Kle(e,t,n){if(typeof e=="string")return function(a,o){if(typeof o=="string"&&o!==""||(o="utf8"),!on.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var s=0|Yle(a,o),l=uf(s),c=l.write(a,o);return c!==s&&(l=l.slice(0,c)),l}(e,t);if(ArrayBuffer.isView(e))return UM(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(df(e,ArrayBuffer)||e&&df(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(df(e,SharedArrayBuffer)||e&&df(e.buffer,SharedArrayBuffer)))return C$e(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return on.from(r,t,n);var i=function(a){if(on.isBuffer(a)){var o=0|BF(a.length),s=uf(o);return s.length===0||a.copy(s,0,0,o),s}if(a.length!==void 0)return typeof a.length!="number"||zF(a.length)?uf(0):UM(a);if(a.type==="Buffer"&&Array.isArray(a.data))return UM(a.data)}(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return on.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function Gle(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function yR(e){return Gle(e),uf(e<0?0:0|BF(e))}function UM(e){for(var t=e.length<0?0:0|BF(e.length),n=uf(t),r=0;r=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function Yle(e,t){if(on.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||df(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return bR(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Jle(e).length;default:if(i)return r?-1:bR(e).length;t=(""+t).toLowerCase(),i=!0}}function _$e(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R$e(this,t,n);case"utf8":case"utf-8":return Zle(this,t,n);case"ascii":return O$e(this,t,n);case"latin1":case"binary":return I$e(this,t,n);case"base64":return P$e(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j$e(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Bh(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Uq(e,t,n,r,i){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),zF(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if(typeof t=="string"&&(t=on.from(t,r)),on.isBuffer(t))return t.length===0?-1:Wq(e,t,n,r,i);if(typeof t=="number")return t&=255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Wq(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Wq(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(r!==void 0&&((r=String(r).toLowerCase())==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(h,m){return o===1?h[m]:h.readUInt16BE(m*o)}if(i){var u=-1;for(a=n;as&&(n=s-l),a=n;a>=0;a--){for(var f=!0,p=0;pi&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>8,l=o%256,c.push(l),c.push(s);return c}(t,e.length-n),e,n,r)}function P$e(e,t,n){return t===0&&n===e.length?Ck.fromByteArray(e):Ck.fromByteArray(e.slice(t,n))}function Zle(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}u===null?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=f}return function(p){var h=p.length;if(h<=4096)return String.fromCharCode.apply(String,p);for(var m="",g=0;gr)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function Es(e,t,n,r,i,a){if(!on.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function Qle(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Vq(e,t,n,r,i){return t=+t,n>>>=0,i||Qle(e,0,n,4),am.write(e,t,n,r,23,4),n+4}function qq(e,t,n,r,i){return t=+t,n>>>=0,i||Qle(e,0,n,8),am.write(e,t,n,r,52,8),n+8}function bR(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Jle(e){return Ck.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(ece,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function pE(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function df(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function zF(e){return e!=e}function Kq(e,t){for(var n in e)t[n]=e[n]}function zh(e,t,n){return jc(e,t,n)}function Cb(e){var t;switch(this.encoding=function(n){var r=function(i){if(!i)return"utf8";for(var a;;)switch(i){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return i;default:if(a)return;i=(""+i).toLowerCase(),a=!0}}(n);if(typeof r!="string"&&(_k.isEncoding===wR||!wR(n)))throw new Error("Unknown encoding: "+n);return r||n}(e),this.encoding){case"utf16le":this.text=A$e,this.end=D$e,t=4;break;case"utf8":this.fillLast=N$e,t=4;break;case"base64":this.text=F$e,this.end=L$e,t=3;break;default:return this.write=B$e,this.end=z$e,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=_k.allocUnsafe(t)}function WM(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function N$e(e){var t=this.lastTotal-this.lastNeed,n=function(r,i,a){if((192&i[0])!=128)return r.lastNeed=0,"�";if(r.lastNeed>1&&i.length>1){if((192&i[1])!=128)return r.lastNeed=1,"�";if(r.lastNeed>2&&i.length>2&&(192&i[2])!=128)return r.lastNeed=2,"�"}}(this,e);return n!==void 0?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length,void 0)}function A$e(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function D$e(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function F$e(e,t){var n=(e.length-t)%3;return n===0?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function L$e(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function B$e(e){return e.toString(this.encoding)}function z$e(e){return e&&e.length?this.write(e):""}var Gq,Wc,nl,Yq,Zx,Hh,Xq,Zq,Ru,Ck,am,VM,ece,tce,_b,kb,jc,Qq,fv,_k,wR,Jq=Co(()=>{for(Qt(),en(),Jt(),Gq={byteLength:function(e){var t=Hq(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=Hq(e),i=r[0],a=r[1],o=new Yq(function(c,u,f){return 3*(u+f)/4-f}(0,i,a)),s=0,l=a>0?i-4:i;for(n=0;n>16&255,o[s++]=t>>8&255,o[s++]=255&t;return a===2&&(t=nl[e.charCodeAt(n)]<<2|nl[e.charCodeAt(n+1)]>>4,o[s++]=255&t),a===1&&(t=nl[e.charCodeAt(n)]<<10|nl[e.charCodeAt(n+1)]<<4|nl[e.charCodeAt(n+2)]>>2,o[s++]=t>>8&255,o[s++]=255&t),o},fromByteArray:function(e){for(var t,n=e.length,r=n%3,i=[],a=0,o=n-r;ao?o:a+16383));return r===1?(t=e[n-1],i.push(Wc[t>>2]+Wc[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(Wc[t>>10]+Wc[t>>4&63]+Wc[t<<2&63]+"=")),i.join("")}},Wc=[],nl=[],Yq=typeof Uint8Array<"u"?Uint8Array:Array,Zx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hh=0,Xq=Zx.length;Hh>1,u=-7,f=n?i-1:0,p=n?-1:1,h=e[t+f];for(f+=p,a=h&(1<<-u)-1,h>>=-u,u+=s;u>0;a=256*a+e[t+f],f+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+f],f+=p,u-=8);if(a===0)a=1-c;else{if(a===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),a-=c}return(h?-1:1)*o*Math.pow(2,a-r)},write:function(e,t,n,r,i,a){var o,s,l,c=8*a-i-1,u=(1<>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,m=r?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+f>=1?p/l:p*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&s,h+=m,s/=256,i-=8);for(o=o<0;e[n+h]=255&o,h+=m,o/=256,c-=8);e[n+h-m]|=128*g}},Ru={},Ck=Gq,am=Zq,VM=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,Ru.Buffer=on,Ru.SlowBuffer=function(e){return+e!=e&&(e=0),on.alloc(+e)},Ru.INSPECT_MAX_BYTES=50,Ru.kMaxLength=2147483647,on.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}(),on.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(on.prototype,"parent",{enumerable:!0,get:function(){if(on.isBuffer(this))return this.buffer}}),Object.defineProperty(on.prototype,"offset",{enumerable:!0,get:function(){if(on.isBuffer(this))return this.byteOffset}}),on.poolSize=8192,on.from=function(e,t,n){return Kle(e,t,n)},Object.setPrototypeOf(on.prototype,Uint8Array.prototype),Object.setPrototypeOf(on,Uint8Array),on.alloc=function(e,t,n){return function(r,i,a){return Gle(r),r<=0?uf(r):i!==void 0?typeof a=="string"?uf(r).fill(i,a):uf(r).fill(i):uf(r)}(e,t,n)},on.allocUnsafe=function(e){return yR(e)},on.allocUnsafeSlow=function(e){return yR(e)},on.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==on.prototype},on.compare=function(e,t){if(df(e,Uint8Array)&&(e=on.from(e,e.offset,e.byteLength)),df(t,Uint8Array)&&(t=on.from(t,t.offset,t.byteLength)),!on.isBuffer(e)||!on.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);it&&(e+=" ... "),""},VM&&(on.prototype[VM]=on.prototype.inspect),on.prototype.compare=function(e,t,n,r,i){if(df(e,Uint8Array)&&(e=on.from(e,e.offset,e.byteLength)),!on.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(r,i),c=e.slice(t,n),u=0;u>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return k$e(this,e,t,n);case"utf8":case"utf-8":return E$e(this,e,t,n);case"ascii":return Xle(this,e,t,n);case"latin1":case"binary":return $$e(this,e,t,n);case"base64":return M$e(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T$e(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},on.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},on.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||Za(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||Za(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},on.prototype.readUInt8=function(e,t){return e>>>=0,t||Za(e,1,this.length),this[e]},on.prototype.readUInt16LE=function(e,t){return e>>>=0,t||Za(e,2,this.length),this[e]|this[e+1]<<8},on.prototype.readUInt16BE=function(e,t){return e>>>=0,t||Za(e,2,this.length),this[e]<<8|this[e+1]},on.prototype.readUInt32LE=function(e,t){return e>>>=0,t||Za(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},on.prototype.readUInt32BE=function(e,t){return e>>>=0,t||Za(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},on.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Za(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},on.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Za(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},on.prototype.readInt8=function(e,t){return e>>>=0,t||Za(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},on.prototype.readInt16LE=function(e,t){e>>>=0,t||Za(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},on.prototype.readInt16BE=function(e,t){e>>>=0,t||Za(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},on.prototype.readInt32LE=function(e,t){return e>>>=0,t||Za(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},on.prototype.readInt32BE=function(e,t){return e>>>=0,t||Za(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},on.prototype.readFloatLE=function(e,t){return e>>>=0,t||Za(e,4,this.length),am.read(this,e,!0,23,4)},on.prototype.readFloatBE=function(e,t){return e>>>=0,t||Za(e,4,this.length),am.read(this,e,!1,23,4)},on.prototype.readDoubleLE=function(e,t){return e>>>=0,t||Za(e,8,this.length),am.read(this,e,!0,52,8)},on.prototype.readDoubleBE=function(e,t){return e>>>=0,t||Za(e,8,this.length),am.read(this,e,!1,52,8)},on.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||Es(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,r||Es(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},on.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,1,255,0),this[t]=255&e,t+1},on.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},on.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},on.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},on.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},on.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);Es(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},on.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);Es(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},on.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},on.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},on.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},on.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},on.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},on.prototype.writeFloatLE=function(e,t,n){return Vq(this,e,t,!0,n)},on.prototype.writeFloatBE=function(e,t,n){return Vq(this,e,t,!1,n)},on.prototype.writeDoubleLE=function(e,t,n){return qq(this,e,t,!0,n)},on.prototype.writeDoubleBE=function(e,t,n){return qq(this,e,t,!1,n)},on.prototype.copy=function(e,t,n,r){if(!on.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},on.prototype.fill=function(e,t,n,r){if(typeof e=="string"){if(typeof t=="string"?(r=t,t=0,n=this.length):typeof n=="string"&&(r=n,n=this.length),r!==void 0&&typeof r!="string")throw new TypeError("encoding must be a string");if(typeof r=="string"&&!on.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(e.length===1){var i=e.charCodeAt(0);(r==="utf8"&&i<128||r==="latin1")&&(e=i)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e=="number")for(a=t;a=0?(l>0&&(i.lastNeed=l-1),l):--s=0?(l>0&&(i.lastNeed=l-2),l):--s=0?(l>0&&(l===2?l=0:i.lastNeed=l-3),l):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},Cb.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},fv.StringDecoder,fv.StringDecoder}),nce={};Dg(nce,{StringDecoder:()=>rce,default:()=>fv});var rce,H$e=Co(()=>{Qt(),en(),Jt(),Jq(),Jq(),rce=fv.StringDecoder}),ice=ln((e,t)=>{Qt(),en(),Jt();var n=Fg(),{PromisePrototypeThen:r,SymbolAsyncIterator:i,SymbolIterator:a}=Ga(),{Buffer:o}=(ko(),Ci(_o)),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:l}=Gs().codes;function c(u,f,p){let h;if(typeof f=="string"||f instanceof o)return new u({objectMode:!0,...p,read(){this.push(f),this.push(null)}});let m;if(f&&f[i])m=!0,h=f[i]();else if(f&&f[a])m=!1,h=f[a]();else throw new s("iterable",["Iterable"],f);let g=new u({objectMode:!0,highWaterMark:1,...p}),v=!1;g._read=function(){v||(v=!0,b())},g._destroy=function(w,_){r(y(w),()=>n.nextTick(_,w),k=>n.nextTick(_,k||w))};async function y(w){let _=w!=null,k=typeof h.throw=="function";if(_&&k){let{value:S,done:C}=await h.throw(w);if(await S,C)return}if(typeof h.return=="function"){let{value:S}=await h.return();await S}}async function b(){for(;;){try{let{value:w,done:_}=m?await h.next():h.next();if(_)g.push(null);else{let k=w&&typeof w.then=="function"?await w:w;if(k===null)throw v=!1,new l;if(g.push(k))continue;v=!1}}catch(w){g.destroy(w)}break}}return g}t.exports=c}),hE=ln((e,t)=>{Qt(),en(),Jt();var n=Fg(),{ArrayPrototypeIndexOf:r,NumberIsInteger:i,NumberIsNaN:a,NumberParseInt:o,ObjectDefineProperties:s,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:u,SafeSet:f,SymbolAsyncIterator:p,Symbol:h}=Ga();t.exports=B,B.ReadableState=K;var{EventEmitter:m}=(py(),Ci(Lg)),{Stream:g,prependListener:v}=FF(),{Buffer:y}=(ko(),Ci(_o)),{addAbortSignal:b}=fE(),w=gh(),_=Tf().debuglog("stream",H=>{_=H}),k=x$e(),S=fy(),{getHighWaterMark:C,getDefaultHighWaterMark:E}=LF(),{aggregateTwoErrors:$,codes:{ERR_INVALID_ARG_TYPE:M,ERR_METHOD_NOT_IMPLEMENTED:P,ERR_OUT_OF_RANGE:I,ERR_STREAM_PUSH_AFTER_EOF:O,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:A}}=Gs(),{validateObject:R}=dE(),j=h("kPaused"),{StringDecoder:N}=(H$e(),Ci(nce)),D=ice();c(B.prototype,g.prototype),c(B,g);var V=()=>{},{errorOrDestroy:F}=S;function K(H,G,de){typeof de!="boolean"&&(de=G instanceof Pf()),this.objectMode=!!(H&&H.objectMode),de&&(this.objectMode=this.objectMode||!!(H&&H.readableObjectMode)),this.highWaterMark=H?C(this,H,"readableHighWaterMark",de):E(!1),this.buffer=new k,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[j]=null,this.errorEmitted=!1,this.emitClose=!H||H.emitClose!==!1,this.autoDestroy=!H||H.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=H&&H.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,H&&H.encoding&&(this.decoder=new N(H.encoding),this.encoding=H.encoding)}function B(H){if(!(this instanceof B))return new B(H);let G=this instanceof Pf();this._readableState=new K(H,this,G),H&&(typeof H.read=="function"&&(this._read=H.read),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.construct=="function"&&(this._construct=H.construct),H.signal&&!G&&b(H.signal,this)),g.call(this,H),S.construct(this,()=>{this._readableState.needReadable&&le(this,this._readableState)})}B.prototype.destroy=S.destroy,B.prototype._undestroy=S.undestroy,B.prototype._destroy=function(H,G){G(H)},B.prototype[m.captureRejectionSymbol]=function(H){this.destroy(H)},B.prototype.push=function(H,G){return U(this,H,G,!1)},B.prototype.unshift=function(H,G){return U(this,H,G,!0)};function U(H,G,de,xe){_("readableAddChunk",G);let he=H._readableState,Ue;if(he.objectMode||(typeof G=="string"?(de=de||he.defaultEncoding,he.encoding!==de&&(xe&&he.encoding?G=y.from(G,de).toString(he.encoding):(G=y.from(G,de),de=""))):G instanceof y?de="":g._isUint8Array(G)?(G=g._uint8ArrayToBuffer(G),de=""):G!=null&&(Ue=new M("chunk",["string","Buffer","Uint8Array"],G))),Ue)F(H,Ue);else if(G===null)he.reading=!1,X(H,he);else if(he.objectMode||G&&G.length>0)if(xe)if(he.endEmitted)F(H,new A);else{if(he.destroyed||he.errored)return!1;Z(H,he,G,!0)}else if(he.ended)F(H,new O);else{if(he.destroyed||he.errored)return!1;he.reading=!1,he.decoder&&!de?(G=he.decoder.write(G),he.objectMode||G.length!==0?Z(H,he,G,!1):le(H,he)):Z(H,he,G,!1)}else xe||(he.reading=!1,le(H,he));return!he.ended&&(he.length0?(G.multiAwaitDrain?G.awaitDrainWriters.clear():G.awaitDrainWriters=null,G.dataEmitted=!0,H.emit("data",de)):(G.length+=G.objectMode?1:de.length,xe?G.buffer.unshift(de):G.buffer.push(de),G.needReadable&&ae(H)),le(H,G)}B.prototype.isPaused=function(){let H=this._readableState;return H[j]===!0||H.flowing===!1},B.prototype.setEncoding=function(H){let G=new N(H);this._readableState.decoder=G,this._readableState.encoding=this._readableState.decoder.encoding;let de=this._readableState.buffer,xe="";for(let he of de)xe+=G.write(he);return de.clear(),xe!==""&&de.push(xe),this._readableState.length=xe.length,this};var ee=1073741824;function ie(H){if(H>ee)throw new I("size","<= 1GiB",H);return H--,H|=H>>>1,H|=H>>>2,H|=H>>>4,H|=H>>>8,H|=H>>>16,H++,H}function Y(H,G){return H<=0||G.length===0&&G.ended?0:G.objectMode?1:a(H)?G.flowing&&G.length?G.buffer.first().length:G.length:H<=G.length?H:G.ended?G.length:0}B.prototype.read=function(H){_("read",H),H===void 0?H=NaN:i(H)||(H=o(H,10));let G=this._readableState,de=H;if(H>G.highWaterMark&&(G.highWaterMark=ie(H)),H!==0&&(G.emittedReadable=!1),H===0&&G.needReadable&&((G.highWaterMark!==0?G.length>=G.highWaterMark:G.length>0)||G.ended))return _("read: emitReadable",G.length,G.ended),G.length===0&&G.ended?we(this):ae(this),null;if(H=Y(H,G),H===0&&G.ended)return G.length===0&&we(this),null;let xe=G.needReadable;if(_("need readable",xe),(G.length===0||G.length-H0?he=Se(H,G):he=null,he===null?(G.needReadable=G.length<=G.highWaterMark,H=0):(G.length-=H,G.multiAwaitDrain?G.awaitDrainWriters.clear():G.awaitDrainWriters=null),G.length===0&&(G.ended||(G.needReadable=!0),de!==H&&G.ended&&we(this)),he!==null&&!G.errorEmitted&&!G.closeEmitted&&(G.dataEmitted=!0,this.emit("data",he)),he};function X(H,G){if(_("onEofChunk"),!G.ended){if(G.decoder){let de=G.decoder.end();de&&de.length&&(G.buffer.push(de),G.length+=G.objectMode?1:de.length)}G.ended=!0,G.sync?ae(H):(G.needReadable=!1,G.emittedReadable=!0,oe(H))}}function ae(H){let G=H._readableState;_("emitReadable",G.needReadable,G.emittedReadable),G.needReadable=!1,G.emittedReadable||(_("emitReadable",G.flowing),G.emittedReadable=!0,n.nextTick(oe,H))}function oe(H){let G=H._readableState;_("emitReadable_",G.destroyed,G.length,G.ended),!G.destroyed&&!G.errored&&(G.length||G.ended)&&(H.emit("readable"),G.emittedReadable=!1),G.needReadable=!G.flowing&&!G.ended&&G.length<=G.highWaterMark,$e(H)}function le(H,G){!G.readingMore&&G.constructed&&(G.readingMore=!0,n.nextTick(ce,H,G))}function ce(H,G){for(;!G.reading&&!G.ended&&(G.length1&&xe.pipes.includes(H)&&(_("false write response, pause",xe.awaitDrainWriters.size),xe.awaitDrainWriters.add(H)),de.pause()),ge||(ge=pe(de,H),H.on("drain",ge))}de.on("data",Xe);function Xe(vt){_("ondata");let Ze=H.write(vt);_("dest.write",Ze),Ze===!1&&Be()}function Ke(vt){if(_("onerror",vt),dt(),H.removeListener("error",Ke),H.listenerCount("error")===0){let Ze=H._writableState||H._readableState;Ze&&!Ze.errorEmitted?F(H,vt):H.emit("error",vt)}}v(H,"error",Ke);function qe(){H.removeListener("finish",Et),dt()}H.once("close",qe);function Et(){_("onfinish"),H.removeListener("close",qe),dt()}H.once("finish",Et);function dt(){_("unpipe"),de.unpipe(H)}return H.emit("pipe",de),H.writableNeedDrain===!0?xe.flowing&&Be():xe.flowing||(_("pipe resume"),de.resume()),H};function pe(H,G){return function(){let de=H._readableState;de.awaitDrainWriters===G?(_("pipeOnDrain",1),de.awaitDrainWriters=null):de.multiAwaitDrain&&(_("pipeOnDrain",de.awaitDrainWriters.size),de.awaitDrainWriters.delete(G)),(!de.awaitDrainWriters||de.awaitDrainWriters.size===0)&&H.listenerCount("data")&&H.resume()}}B.prototype.unpipe=function(H){let G=this._readableState,de={hasUnpiped:!1};if(G.pipes.length===0)return this;if(!H){let he=G.pipes;G.pipes=[],this.pause();for(let Ue=0;Ue0,xe.flowing!==!1&&this.resume()):H==="readable"&&!xe.endEmitted&&!xe.readableListening&&(xe.readableListening=xe.needReadable=!0,xe.flowing=!1,xe.emittedReadable=!1,_("on readable",xe.length,xe.reading),xe.length?ae(this):xe.reading||n.nextTick(re,this)),de},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(H,G){let de=g.prototype.removeListener.call(this,H,G);return H==="readable"&&n.nextTick(me,this),de},B.prototype.off=B.prototype.removeListener,B.prototype.removeAllListeners=function(H){let G=g.prototype.removeAllListeners.apply(this,arguments);return(H==="readable"||H===void 0)&&n.nextTick(me,this),G};function me(H){let G=H._readableState;G.readableListening=H.listenerCount("readable")>0,G.resumeScheduled&&G[j]===!1?G.flowing=!0:H.listenerCount("data")>0?H.resume():G.readableListening||(G.flowing=null)}function re(H){_("readable nexttick read 0"),H.read(0)}B.prototype.resume=function(){let H=this._readableState;return H.flowing||(_("resume"),H.flowing=!H.readableListening,fe(this,H)),H[j]=!1,this};function fe(H,G){G.resumeScheduled||(G.resumeScheduled=!0,n.nextTick(ve,H,G))}function ve(H,G){_("resume",G.reading),G.reading||H.read(0),G.resumeScheduled=!1,H.emit("resume"),$e(H),G.flowing&&!G.reading&&H.read(0)}B.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[j]=!0,this};function $e(H){let G=H._readableState;for(_("flow",G.flowing);G.flowing&&H.read()!==null;);}B.prototype.wrap=function(H){let G=!1;H.on("data",xe=>{!this.push(xe)&&H.pause&&(G=!0,H.pause())}),H.on("end",()=>{this.push(null)}),H.on("error",xe=>{F(this,xe)}),H.on("close",()=>{this.destroy()}),H.on("destroy",()=>{this.destroy()}),this._read=()=>{G&&H.resume&&(G=!1,H.resume())};let de=l(H);for(let xe=1;xe{he=We?$(he,We):null,de(),de=V});try{for(;;){let We=H.destroyed?null:H.read();if(We!==null)yield We;else{if(he)throw he;if(he===null)return;await new u(xe)}}}catch(We){throw he=$(he,We),he}finally{(he||(G==null?void 0:G.destroyOnReturn)!==!1)&&(he===void 0||H._readableState.autoDestroy)?S.destroyer(H,null):(H.off("readable",xe),Ue())}}s(B.prototype,{readable:{__proto__:null,get(){let H=this._readableState;return!!H&&H.readable!==!1&&!H.destroyed&&!H.errorEmitted&&!H.endEmitted},set(H){this._readableState&&(this._readableState.readable=!!H)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(H){this._readableState&&(this._readableState.flowing=H)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(H){this._readableState&&(this._readableState.destroyed=H)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(K.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[j]!==!1},set(H){this[j]=!!H}}}),B._fromList=Se;function Se(H,G){if(G.length===0)return null;let de;return G.objectMode?de=G.buffer.shift():!H||H>=G.length?(G.decoder?de=G.buffer.join(""):G.buffer.length===1?de=G.buffer.first():de=G.buffer.concat(G.length),G.buffer.clear()):de=G.buffer.consume(H,G.decoder),de}function we(H){let G=H._readableState;_("endReadable",G.endEmitted),G.endEmitted||(G.ended=!0,n.nextTick(se,G,H))}function se(H,G){if(_("endReadableNT",H.endEmitted,H.length),!H.errored&&!H.closeEmitted&&!H.endEmitted&&H.length===0){if(H.endEmitted=!0,G.emit("end"),G.writable&&G.allowHalfOpen===!1)n.nextTick(ye,G);else if(H.autoDestroy){let de=G._writableState;(!de||de.autoDestroy&&(de.finished||de.writable===!1))&&G.destroy()}}}function ye(H){H.writable&&!H.writableEnded&&!H.destroyed&&H.end()}B.from=function(H,G){return D(B,H,G)};var Oe;function z(){return Oe===void 0&&(Oe={}),Oe}B.fromWeb=function(H,G){return z().newStreamReadableFromReadableStream(H,G)},B.toWeb=function(H,G){return z().newReadableStreamFromStreamReadable(H,G)},B.wrap=function(H,G){var de,xe;return new B({objectMode:(de=(xe=H.readableObjectMode)!==null&&xe!==void 0?xe:H.objectMode)!==null&&de!==void 0?de:!0,...G,destroy(he,Ue){S.destroyer(H,he),Ue(he)}}).wrap(H)}}),ace=ln((e,t)=>{Qt(),en(),Jt();var n=Fg(),{ArrayPrototypeSlice:r,Error:i,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:o,ObjectDefineProperties:s,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:u,SymbolHasInstance:f}=Ga();t.exports=N,N.WritableState=R;var{EventEmitter:p}=(py(),Ci(Lg)),h=FF().Stream,{Buffer:m}=(ko(),Ci(_o)),g=fy(),{addAbortSignal:v}=fE(),{getHighWaterMark:y,getDefaultHighWaterMark:b}=LF(),{ERR_INVALID_ARG_TYPE:w,ERR_METHOD_NOT_IMPLEMENTED:_,ERR_MULTIPLE_CALLBACK:k,ERR_STREAM_CANNOT_PIPE:S,ERR_STREAM_DESTROYED:C,ERR_STREAM_ALREADY_FINISHED:E,ERR_STREAM_NULL_VALUES:$,ERR_STREAM_WRITE_AFTER_END:M,ERR_UNKNOWN_ENCODING:P}=Gs().codes,{errorOrDestroy:I}=g;l(N.prototype,h.prototype),l(N,h);function O(){}var A=u("kOnFinished");function R(re,fe,ve){typeof ve!="boolean"&&(ve=fe instanceof Pf()),this.objectMode=!!(re&&re.objectMode),ve&&(this.objectMode=this.objectMode||!!(re&&re.writableObjectMode)),this.highWaterMark=re?y(this,re,"writableHighWaterMark",ve):b(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let $e=!!(re&&re.decodeStrings===!1);this.decodeStrings=!$e,this.defaultEncoding=re&&re.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=B.bind(void 0,fe),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,j(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!re||re.emitClose!==!1,this.autoDestroy=!re||re.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[A]=[]}function j(re){re.buffered=[],re.bufferedIndex=0,re.allBuffers=!0,re.allNoop=!0}R.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},o(R.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function N(re){let fe=this instanceof Pf();if(!fe&&!a(N,this))return new N(re);this._writableState=new R(re,this,fe),re&&(typeof re.write=="function"&&(this._write=re.write),typeof re.writev=="function"&&(this._writev=re.writev),typeof re.destroy=="function"&&(this._destroy=re.destroy),typeof re.final=="function"&&(this._final=re.final),typeof re.construct=="function"&&(this._construct=re.construct),re.signal&&v(re.signal,this)),h.call(this,re),g.construct(this,()=>{let ve=this._writableState;ve.writing||ie(this,ve),oe(this,ve)})}o(N,f,{__proto__:null,value:function(re){return a(this,re)?!0:this!==N?!1:re&&re._writableState instanceof R}}),N.prototype.pipe=function(){I(this,new S)};function D(re,fe,ve,$e){let Ce=re._writableState;if(typeof ve=="function")$e=ve,ve=Ce.defaultEncoding;else{if(!ve)ve=Ce.defaultEncoding;else if(ve!=="buffer"&&!m.isEncoding(ve))throw new P(ve);typeof $e!="function"&&($e=O)}if(fe===null)throw new $;if(!Ce.objectMode)if(typeof fe=="string")Ce.decodeStrings!==!1&&(fe=m.from(fe,ve),ve="buffer");else if(fe instanceof m)ve="buffer";else if(h._isUint8Array(fe))fe=h._uint8ArrayToBuffer(fe),ve="buffer";else throw new w("chunk",["string","Buffer","Uint8Array"],fe);let be;return Ce.ending?be=new M:Ce.destroyed&&(be=new C("write")),be?(n.nextTick($e,be),I(re,be,!0),be):(Ce.pendingcb++,V(re,Ce,fe,ve,$e))}N.prototype.write=function(re,fe,ve){return D(this,re,fe,ve)===!0},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){let re=this._writableState;re.corked&&(re.corked--,re.writing||ie(this,re))},N.prototype.setDefaultEncoding=function(re){if(typeof re=="string"&&(re=c(re)),!m.isEncoding(re))throw new P(re);return this._writableState.defaultEncoding=re,this};function V(re,fe,ve,$e,Ce){let be=fe.objectMode?1:ve.length;fe.length+=be;let Se=fe.lengthve.bufferedIndex&&ie(re,ve),$e?ve.afterWriteTickInfo!==null&&ve.afterWriteTickInfo.cb===Ce?ve.afterWriteTickInfo.count++:(ve.afterWriteTickInfo={count:1,cb:Ce,stream:re,state:ve},n.nextTick(U,ve.afterWriteTickInfo)):Z(re,ve,1,Ce))}function U({stream:re,state:fe,count:ve,cb:$e}){return fe.afterWriteTickInfo=null,Z(re,fe,ve,$e)}function Z(re,fe,ve,$e){for(!fe.ending&&!re.destroyed&&fe.length===0&&fe.needDrain&&(fe.needDrain=!1,re.emit("drain"));ve-- >0;)fe.pendingcb--,$e();fe.destroyed&&ee(fe),oe(re,fe)}function ee(re){if(re.writing)return;for(let Ce=re.bufferedIndex;Ce1&&re._writev){fe.pendingcb-=be-1;let we=fe.allNoop?O:ye=>{for(let Oe=Se;Oe256?(ve.splice(0,Se),fe.bufferedIndex=0):fe.bufferedIndex=Se}fe.bufferProcessing=!1}N.prototype._write=function(re,fe,ve){if(this._writev)this._writev([{chunk:re,encoding:fe}],ve);else throw new _("_write()")},N.prototype._writev=null,N.prototype.end=function(re,fe,ve){let $e=this._writableState;typeof re=="function"?(ve=re,re=null,fe=null):typeof fe=="function"&&(ve=fe,fe=null);let Ce;if(re!=null){let be=D(this,re,fe);be instanceof i&&(Ce=be)}return $e.corked&&($e.corked=1,this.uncork()),Ce||(!$e.errored&&!$e.ending?($e.ending=!0,oe(this,$e,!0),$e.ended=!0):$e.finished?Ce=new E("end"):$e.destroyed&&(Ce=new C("end"))),typeof ve=="function"&&(Ce||$e.finished?n.nextTick(ve,Ce):$e[A].push(ve)),this};function Y(re){return re.ending&&!re.destroyed&&re.constructed&&re.length===0&&!re.errored&&re.buffered.length===0&&!re.finished&&!re.writing&&!re.errorEmitted&&!re.closeEmitted}function X(re,fe){let ve=!1;function $e(Ce){if(ve){I(re,Ce??k());return}if(ve=!0,fe.pendingcb--,Ce){let be=fe[A].splice(0);for(let Se=0;Se{Y(Ce)?le($e,Ce):Ce.pendingcb--},re,fe)):Y(fe)&&(fe.pendingcb++,le(re,fe))))}function le(re,fe){fe.pendingcb--,fe.finished=!0;let ve=fe[A].splice(0);for(let $e=0;$e{Qt(),en(),Jt();var n=Fg(),r=(ko(),Ci(_o)),{isReadable:i,isWritable:a,isIterable:o,isNodeStream:s,isReadableNodeStream:l,isWritableNodeStream:c,isDuplexNodeStream:u}=Bf(),f=gh(),{AbortError:p,codes:{ERR_INVALID_ARG_TYPE:h,ERR_INVALID_RETURN_VALUE:m}}=Gs(),{destroyer:g}=fy(),v=Pf(),y=hE(),{createDeferredPromise:b}=Tf(),w=ice(),_=globalThis.Blob||r.Blob,k=typeof _<"u"?function(P){return P instanceof _}:function(P){return!1},S=globalThis.AbortController||DF().AbortController,{FunctionPrototypeCall:C}=Ga(),E=class extends v{constructor(P){super(P),(P==null?void 0:P.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(P==null?void 0:P.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};t.exports=function P(I,O){if(u(I))return I;if(l(I))return M({readable:I});if(c(I))return M({writable:I});if(s(I))return M({writable:!1,readable:!1});if(typeof I=="function"){let{value:R,write:j,final:N,destroy:D}=$(I);if(o(R))return w(E,R,{objectMode:!0,write:j,final:N,destroy:D});let V=R==null?void 0:R.then;if(typeof V=="function"){let F,K=C(V,R,B=>{if(B!=null)throw new m("nully","body",B)},B=>{g(F,B)});return F=new E({objectMode:!0,readable:!1,write:j,final(B){N(async()=>{try{await K,n.nextTick(B,null)}catch(U){n.nextTick(B,U)}})},destroy:D})}throw new m("Iterable, AsyncIterable or AsyncFunction",O,R)}if(k(I))return P(I.arrayBuffer());if(o(I))return w(E,I,{objectMode:!0,writable:!1});if(typeof(I==null?void 0:I.writable)=="object"||typeof(I==null?void 0:I.readable)=="object"){let R=I!=null&&I.readable?l(I==null?void 0:I.readable)?I==null?void 0:I.readable:P(I.readable):void 0,j=I!=null&&I.writable?c(I==null?void 0:I.writable)?I==null?void 0:I.writable:P(I.writable):void 0;return M({readable:R,writable:j})}let A=I==null?void 0:I.then;if(typeof A=="function"){let R;return C(A,I,j=>{j!=null&&R.push(j),R.push(null)},j=>{g(R,j)}),R=new E({objectMode:!0,writable:!1,read(){}})}throw new h(O,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],I)};function $(P){let{promise:I,resolve:O}=b(),A=new S,R=A.signal;return{value:P(async function*(){for(;;){let j=I;I=null;let{chunk:N,done:D,cb:V}=await j;if(n.nextTick(V),D)return;if(R.aborted)throw new p(void 0,{cause:R.reason});({promise:I,resolve:O}=b()),yield N}}(),{signal:R}),write(j,N,D){let V=O;O=null,V({chunk:j,done:!1,cb:D})},final(j){let N=O;O=null,N({done:!0,cb:j})},destroy(j,N){A.abort(),N(j)}}}function M(P){let I=P.readable&&typeof P.readable.read!="function"?y.wrap(P.readable):P.readable,O=P.writable,A=!!i(I),R=!!a(O),j,N,D,V,F;function K(B){let U=V;V=null,U?U(B):B&&F.destroy(B)}return F=new E({readableObjectMode:!!(I!=null&&I.readableObjectMode),writableObjectMode:!!(O!=null&&O.writableObjectMode),readable:A,writable:R}),R&&(f(O,B=>{R=!1,B&&g(I,B),K(B)}),F._write=function(B,U,Z){O.write(B,U)?Z():j=Z},F._final=function(B){O.end(),N=B},O.on("drain",function(){if(j){let B=j;j=null,B()}}),O.on("finish",function(){if(N){let B=N;N=null,B()}})),A&&(f(I,B=>{A=!1,B&&g(I,B),K(B)}),I.on("readable",function(){if(D){let B=D;D=null,B()}}),I.on("end",function(){F.push(null)}),F._read=function(){for(;;){let B=I.read();if(B===null){D=F._read;return}if(!F.push(B))return}}),F._destroy=function(B,U){!B&&V!==null&&(B=new p),D=null,j=null,N=null,V===null?U(B):(V=U,g(O,B),g(I,B))},F}}),Pf=ln((e,t)=>{Qt(),en(),Jt();var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:i,ObjectSetPrototypeOf:a}=Ga();t.exports=l;var o=hE(),s=ace();a(l.prototype,o.prototype),a(l,o);{let p=i(s.prototype);for(let h=0;h{Qt(),en(),Jt();var{ObjectSetPrototypeOf:n,Symbol:r}=Ga();t.exports=l;var{ERR_METHOD_NOT_IMPLEMENTED:i}=Gs().codes,a=Pf(),{getHighWaterMark:o}=LF();n(l.prototype,a.prototype),n(l,a);var s=r("kCallback");function l(f){if(!(this instanceof l))return new l(f);let p=f?o(this,f,"readableHighWaterMark",!0):null;p===0&&(f={...f,highWaterMark:null,readableHighWaterMark:p,writableHighWaterMark:f.writableHighWaterMark||0}),a.call(this,f),this._readableState.sync=!1,this[s]=null,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",u)}function c(f){typeof this._flush=="function"&&!this.destroyed?this._flush((p,h)=>{if(p){f?f(p):this.destroy(p);return}h!=null&&this.push(h),this.push(null),f&&f()}):(this.push(null),f&&f())}function u(){this._final!==c&&c.call(this)}l.prototype._final=c,l.prototype._transform=function(f,p,h){throw new i("_transform()")},l.prototype._write=function(f,p,h){let m=this._readableState,g=this._writableState,v=m.length;this._transform(f,p,(y,b)=>{if(y){h(y);return}b!=null&&this.push(b),g.ended||v===m.length||m.length{Qt(),en(),Jt();var{ObjectSetPrototypeOf:n}=Ga();t.exports=i;var r=oce();n(i.prototype,r.prototype),n(i,r);function i(a){if(!(this instanceof i))return new i(a);r.call(this,a)}i.prototype._transform=function(a,o,s){s(null,a)}}),HF=ln((e,t)=>{Qt(),en(),Jt();var n=Fg(),{ArrayIsArray:r,Promise:i,SymbolAsyncIterator:a}=Ga(),o=gh(),{once:s}=Tf(),l=fy(),c=Pf(),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:h,ERR_STREAM_DESTROYED:m,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:v}=Gs(),{validateFunction:y,validateAbortSignal:b}=dE(),{isIterable:w,isReadable:_,isReadableNodeStream:k,isNodeStream:S,isTransformStream:C,isWebStream:E,isReadableStream:$,isReadableEnded:M}=Bf(),P=globalThis.AbortController||DF().AbortController,I,O;function A(U,Z,ee){let ie=!1;U.on("close",()=>{ie=!0});let Y=o(U,{readable:Z,writable:ee},X=>{ie=!X});return{destroy:X=>{ie||(ie=!0,l.destroyer(U,X||new m("pipe")))},cleanup:Y}}function R(U){return y(U[U.length-1],"streams[stream.length - 1]"),U.pop()}function j(U){if(w(U))return U;if(k(U))return N(U);throw new f("val",["Readable","Iterable","AsyncIterable"],U)}async function*N(U){O||(O=hE()),yield*O.prototype[a].call(U)}async function D(U,Z,ee,{end:ie}){let Y,X=null,ae=ce=>{if(ce&&(Y=ce),X){let pe=X;X=null,pe()}},oe=()=>new i((ce,pe)=>{Y?pe(Y):X=()=>{Y?pe(Y):ce()}});Z.on("drain",ae);let le=o(Z,{readable:!1},ae);try{Z.writableNeedDrain&&await oe();for await(let ce of U)Z.write(ce)||await oe();ie&&Z.end(),await oe(),ee()}catch(ce){ee(Y!==ce?u(Y,ce):ce)}finally{le(),Z.off("drain",ae)}}async function V(U,Z,ee,{end:ie}){C(Z)&&(Z=Z.writable);let Y=Z.getWriter();try{for await(let X of U)await Y.ready,Y.write(X).catch(()=>{});await Y.ready,ie&&await Y.close(),ee()}catch(X){try{await Y.abort(X),ee(X)}catch(ae){ee(ae)}}}function F(...U){return K(U,s(R(U)))}function K(U,Z,ee){if(U.length===1&&r(U[0])&&(U=U[0]),U.length<2)throw new h("streams");let ie=new P,Y=ie.signal,X=ee==null?void 0:ee.signal,ae=[];b(X,"options.signal");function oe(){fe(new v)}X==null||X.addEventListener("abort",oe);let le,ce,pe=[],me=0;function re(be){fe(be,--me===0)}function fe(be,Se){if(be&&(!le||le.code==="ERR_STREAM_PREMATURE_CLOSE")&&(le=be),!(!le&&!Se)){for(;pe.length;)pe.shift()(le);X==null||X.removeEventListener("abort",oe),ie.abort(),Se&&(le||ae.forEach(we=>we()),n.nextTick(Z,le,ce))}}let ve;for(let be=0;be0,ye=we||(ee==null?void 0:ee.end)!==!1,Oe=be===U.length-1;if(S(Se)){let z=function(H){H&&H.name!=="AbortError"&&H.code!=="ERR_STREAM_PREMATURE_CLOSE"&&re(H)};if(ye){let{destroy:H,cleanup:G}=A(Se,we,se);pe.push(H),_(Se)&&Oe&&ae.push(G)}Se.on("error",z),_(Se)&&Oe&&ae.push(()=>{Se.removeListener("error",z)})}if(be===0)if(typeof Se=="function"){if(ve=Se({signal:Y}),!w(ve))throw new p("Iterable, AsyncIterable or Stream","source",ve)}else w(Se)||k(Se)||C(Se)?ve=Se:ve=c.from(Se);else if(typeof Se=="function"){if(C(ve)){var $e;ve=j(($e=ve)===null||$e===void 0?void 0:$e.readable)}else ve=j(ve);if(ve=Se(ve,{signal:Y}),we){if(!w(ve,!0))throw new p("AsyncIterable",`transform[${be-1}]`,ve)}else{var Ce;I||(I=sce());let z=new I({objectMode:!0}),H=(Ce=ve)===null||Ce===void 0?void 0:Ce.then;if(typeof H=="function")me++,H.call(ve,xe=>{ce=xe,xe!=null&&z.write(xe),ye&&z.end(),n.nextTick(re)},xe=>{z.destroy(xe),n.nextTick(re,xe)});else if(w(ve,!0))me++,D(ve,z,re,{end:ye});else if($(ve)||C(ve)){let xe=ve.readable||ve;me++,D(xe,z,re,{end:ye})}else throw new p("AsyncIterable or Promise","destination",ve);ve=z;let{destroy:G,cleanup:de}=A(ve,!1,!0);pe.push(G),Oe&&ae.push(de)}}else if(S(Se)){if(k(ve)){me+=2;let z=B(ve,Se,re,{end:ye});_(Se)&&Oe&&ae.push(z)}else if(C(ve)||$(ve)){let z=ve.readable||ve;me++,D(z,Se,re,{end:ye})}else if(w(ve))me++,D(ve,Se,re,{end:ye});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],ve);ve=Se}else if(E(Se)){if(k(ve))me++,V(j(ve),Se,re,{end:ye});else if($(ve)||w(ve))me++,V(ve,Se,re,{end:ye});else if(C(ve))me++,V(ve.readable,Se,re,{end:ye});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],ve);ve=Se}else ve=c.from(Se)}return(Y!=null&&Y.aborted||X!=null&&X.aborted)&&n.nextTick(oe),ve}function B(U,Z,ee,{end:ie}){let Y=!1;if(Z.on("close",()=>{Y||ee(new g)}),U.pipe(Z,{end:!1}),ie){let X=function(){Y=!0,Z.end()};M(U)?n.nextTick(X):U.once("end",X)}else ee();return o(U,{readable:!0,writable:!1},X=>{let ae=U._readableState;X&&X.code==="ERR_STREAM_PREMATURE_CLOSE"&&ae&&ae.ended&&!ae.errored&&!ae.errorEmitted?U.once("end",ee).once("error",ee):ee(X)}),o(Z,{readable:!1,writable:!0},ee)}t.exports={pipelineImpl:K,pipeline:F}}),lce=ln((e,t)=>{Qt(),en(),Jt();var{pipeline:n}=HF(),r=Pf(),{destroyer:i}=fy(),{isNodeStream:a,isReadable:o,isWritable:s,isWebStream:l,isTransformStream:c,isWritableStream:u,isReadableStream:f}=Bf(),{AbortError:p,codes:{ERR_INVALID_ARG_VALUE:h,ERR_MISSING_ARGS:m}}=Gs(),g=gh();t.exports=function(...v){if(v.length===0)throw new m("streams");if(v.length===1)return r.from(v[0]);let y=[...v];if(typeof v[0]=="function"&&(v[0]=r.from(v[0])),typeof v[v.length-1]=="function"){let I=v.length-1;v[I]=r.from(v[I])}for(let I=0;I0&&!(s(v[I])||u(v[I])||c(v[I])))throw new h(`streams[${I}]`,y[I],"must be writable")}let b,w,_,k,S;function C(I){let O=k;k=null,O?O(I):I?S.destroy(I):!P&&!M&&S.destroy()}let E=v[0],$=n(v,C),M=!!(s(E)||u(E)||c(E)),P=!!(o($)||f($)||c($));if(S=new r({writableObjectMode:!!(E!=null&&E.writableObjectMode),readableObjectMode:!!($!=null&&$.writableObjectMode),writable:M,readable:P}),M){if(a(E))S._write=function(O,A,R){E.write(O,A)?R():b=R},S._final=function(O){E.end(),w=O},E.on("drain",function(){if(b){let O=b;b=null,O()}});else if(l(E)){let O=(c(E)?E.writable:E).getWriter();S._write=async function(A,R,j){try{await O.ready,O.write(A).catch(()=>{}),j()}catch(N){j(N)}},S._final=async function(A){try{await O.ready,O.close().catch(()=>{}),w=A}catch(R){A(R)}}}let I=c($)?$.readable:$;g(I,()=>{if(w){let O=w;w=null,O()}})}if(P){if(a($))$.on("readable",function(){if(_){let I=_;_=null,I()}}),$.on("end",function(){S.push(null)}),S._read=function(){for(;;){let I=$.read();if(I===null){_=S._read;return}if(!S.push(I))return}};else if(l($)){let I=(c($)?$.readable:$).getReader();S._read=async function(){for(;;)try{let{value:O,done:A}=await I.read();if(!S.push(O))return;if(A){S.push(null);return}}catch{return}}}}return S._destroy=function(I,O){!I&&k!==null&&(I=new p),_=null,b=null,w=null,k===null?O(I):(k=O,a($)&&i($,I))},S}}),W$e=ln((e,t)=>{Qt(),en(),Jt();var n=globalThis.AbortController||DF().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r,ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:o},AbortError:s}=Gs(),{validateAbortSignal:l,validateInteger:c,validateObject:u}=dE(),f=Ga().Symbol("kWeak"),{finished:p}=gh(),h=lce(),{addAbortSignalNoValidate:m}=fE(),{isWritable:g,isNodeStream:v}=Bf(),{ArrayPrototypePush:y,MathFloor:b,Number:w,NumberIsNaN:_,Promise:k,PromiseReject:S,PromisePrototypeThen:C,Symbol:E}=Ga(),$=E("kEmpty"),M=E("kEof");function P(ie,Y){if(Y!=null&&u(Y,"options"),(Y==null?void 0:Y.signal)!=null&&l(Y.signal,"options.signal"),v(ie)&&!g(ie))throw new r("stream",ie,"must be writable");let X=h(this,ie);return Y!=null&&Y.signal&&m(Y.signal,X),X}function I(ie,Y){if(typeof ie!="function")throw new i("fn",["Function","AsyncFunction"],ie);Y!=null&&u(Y,"options"),(Y==null?void 0:Y.signal)!=null&&l(Y.signal,"options.signal");let X=1;return(Y==null?void 0:Y.concurrency)!=null&&(X=b(Y.concurrency)),c(X,"concurrency",1),(async function*(){var ae,oe;let le=new n,ce=this,pe=[],me=le.signal,re={signal:me},fe=()=>le.abort();Y!=null&&(ae=Y.signal)!==null&&ae!==void 0&&ae.aborted&&fe(),Y==null||(oe=Y.signal)===null||oe===void 0||oe.addEventListener("abort",fe);let ve,$e,Ce=!1;function be(){Ce=!0}async function Se(){try{for await(let ye of ce){var we;if(Ce)return;if(me.aborted)throw new s;try{ye=ie(ye,re)}catch(Oe){ye=S(Oe)}ye!==$&&(typeof((we=ye)===null||we===void 0?void 0:we.catch)=="function"&&ye.catch(be),pe.push(ye),ve&&(ve(),ve=null),!Ce&&pe.length&&pe.length>=X&&await new k(Oe=>{$e=Oe}))}pe.push(M)}catch(ye){let Oe=S(ye);C(Oe,void 0,be),pe.push(Oe)}finally{var se;Ce=!0,ve&&(ve(),ve=null),Y==null||(se=Y.signal)===null||se===void 0||se.removeEventListener("abort",fe)}}Se();try{for(;;){for(;pe.length>0;){let we=await pe[0];if(we===M)return;if(me.aborted)throw new s;we!==$&&(yield we),pe.shift(),$e&&($e(),$e=null)}await new k(we=>{ve=we})}}finally{le.abort(),Ce=!0,$e&&($e(),$e=null)}}).call(this)}function O(ie=void 0){return ie!=null&&u(ie,"options"),(ie==null?void 0:ie.signal)!=null&&l(ie.signal,"options.signal"),(async function*(){let Y=0;for await(let ae of this){var X;if(ie!=null&&(X=ie.signal)!==null&&X!==void 0&&X.aborted)throw new s({cause:ie.signal.reason});yield[Y++,ae]}}).call(this)}async function A(ie,Y=void 0){for await(let X of D.call(this,ie,Y))return!0;return!1}async function R(ie,Y=void 0){if(typeof ie!="function")throw new i("fn",["Function","AsyncFunction"],ie);return!await A.call(this,async(...X)=>!await ie(...X),Y)}async function j(ie,Y){for await(let X of D.call(this,ie,Y))return X}async function N(ie,Y){if(typeof ie!="function")throw new i("fn",["Function","AsyncFunction"],ie);async function X(ae,oe){return await ie(ae,oe),$}for await(let ae of I.call(this,X,Y));}function D(ie,Y){if(typeof ie!="function")throw new i("fn",["Function","AsyncFunction"],ie);async function X(ae,oe){return await ie(ae,oe)?ae:$}return I.call(this,X,Y)}var V=class extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function F(ie,Y,X){var ae;if(typeof ie!="function")throw new i("reducer",["Function","AsyncFunction"],ie);X!=null&&u(X,"options"),(X==null?void 0:X.signal)!=null&&l(X.signal,"options.signal");let oe=arguments.length>1;if(X!=null&&(ae=X.signal)!==null&&ae!==void 0&&ae.aborted){let re=new s(void 0,{cause:X.signal.reason});throw this.once("error",()=>{}),await p(this.destroy(re)),re}let le=new n,ce=le.signal;if(X!=null&&X.signal){let re={once:!0,[f]:this};X.signal.addEventListener("abort",()=>le.abort(),re)}let pe=!1;try{for await(let re of this){var me;if(pe=!0,X!=null&&(me=X.signal)!==null&&me!==void 0&&me.aborted)throw new s;oe?Y=await ie(Y,re,{signal:ce}):(Y=re,oe=!0)}if(!pe&&!oe)throw new V}finally{le.abort()}return Y}async function K(ie){ie!=null&&u(ie,"options"),(ie==null?void 0:ie.signal)!=null&&l(ie.signal,"options.signal");let Y=[];for await(let ae of this){var X;if(ie!=null&&(X=ie.signal)!==null&&X!==void 0&&X.aborted)throw new s(void 0,{cause:ie.signal.reason});y(Y,ae)}return Y}function B(ie,Y){let X=I.call(this,ie,Y);return(async function*(){for await(let ae of X)yield*ae}).call(this)}function U(ie){if(ie=w(ie),_(ie))return 0;if(ie<0)throw new o("number",">= 0",ie);return ie}function Z(ie,Y=void 0){return Y!=null&&u(Y,"options"),(Y==null?void 0:Y.signal)!=null&&l(Y.signal,"options.signal"),ie=U(ie),(async function*(){var X;if(Y!=null&&(X=Y.signal)!==null&&X!==void 0&&X.aborted)throw new s;for await(let oe of this){var ae;if(Y!=null&&(ae=Y.signal)!==null&&ae!==void 0&&ae.aborted)throw new s;ie--<=0&&(yield oe)}}).call(this)}function ee(ie,Y=void 0){return Y!=null&&u(Y,"options"),(Y==null?void 0:Y.signal)!=null&&l(Y.signal,"options.signal"),ie=U(ie),(async function*(){var X;if(Y!=null&&(X=Y.signal)!==null&&X!==void 0&&X.aborted)throw new s;for await(let oe of this){var ae;if(Y!=null&&(ae=Y.signal)!==null&&ae!==void 0&&ae.aborted)throw new s;if(ie-- >0)yield oe;else return}}).call(this)}t.exports.streamReturningOperators={asIndexedPairs:O,drop:Z,filter:D,flatMap:B,map:I,take:ee,compose:P},t.exports.promiseReturningOperators={every:R,forEach:N,reduce:F,toArray:K,some:A,find:j}}),cce=ln((e,t)=>{Qt(),en(),Jt();var{ArrayPrototypePop:n,Promise:r}=Ga(),{isIterable:i,isNodeStream:a,isWebStream:o}=Bf(),{pipelineImpl:s}=HF(),{finished:l}=gh();uce();function c(...u){return new r((f,p)=>{let h,m,g=u[u.length-1];if(g&&typeof g=="object"&&!a(g)&&!i(g)&&!o(g)){let v=n(u);h=v.signal,m=v.end}s(u,(v,y)=>{v?p(v):f(y)},{signal:h,end:m})})}t.exports={finished:l,pipeline:c}}),uce=ln((e,t)=>{Qt(),en(),Jt();var{Buffer:n}=(ko(),Ci(_o)),{ObjectDefineProperty:r,ObjectKeys:i,ReflectApply:a}=Ga(),{promisify:{custom:o}}=Tf(),{streamReturningOperators:s,promiseReturningOperators:l}=W$e(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=Gs(),u=lce(),{pipeline:f}=HF(),{destroyer:p}=fy(),h=gh(),m=cce(),g=Bf(),v=t.exports=FF().Stream;v.isDisturbed=g.isDisturbed,v.isErrored=g.isErrored,v.isReadable=g.isReadable,v.Readable=hE();for(let b of i(s)){let w=function(...k){if(new.target)throw c();return v.Readable.from(a(_,this,k))},_=s[b];r(w,"name",{__proto__:null,value:_.name}),r(w,"length",{__proto__:null,value:_.length}),r(v.Readable.prototype,b,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}for(let b of i(l)){let w=function(...k){if(new.target)throw c();return a(_,this,k)},_=l[b];r(w,"name",{__proto__:null,value:_.name}),r(w,"length",{__proto__:null,value:_.length}),r(v.Readable.prototype,b,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}v.Writable=ace(),v.Duplex=Pf(),v.Transform=oce(),v.PassThrough=sce(),v.pipeline=f;var{addAbortSignal:y}=fE();v.addAbortSignal=y,v.finished=h,v.destroy=p,v.compose=u,r(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),r(f,o,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),r(h,o,{__proto__:null,enumerable:!0,get(){return m.finished}}),v.Stream=v,v._isUint8Array=function(b){return b instanceof Uint8Array},v._uint8ArrayToBuffer=function(b){return n.from(b.buffer,b.byteOffset,b.byteLength)}}),Bg=ln((e,t)=>{Qt(),en(),Jt();var n=uce(),r=cce(),i=n.Readable.destroy;t.exports=n.Readable,t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.destroy=i,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=n.Stream,t.exports.default=t.exports}),V$e=ln((e,t)=>{Qt(),en(),Jt(),typeof Object.create=="function"?t.exports=function(n,r){r&&(n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(n,r){if(r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}}}),q$e=ln((e,t)=>{Qt(),en(),Jt();var{Buffer:n}=(ko(),Ci(_o)),r=Symbol.for("BufferList");function i(a){if(!(this instanceof i))return new i(a);i._init.call(this,a)}i._init=function(a){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,a&&this.append(a)},i.prototype._new=function(a){return new i(a)},i.prototype._offset=function(a){if(a===0)return[0,0];let o=0;for(let s=0;sthis.length||a<0)return;let o=this._offset(a);return this._bufs[o[0]][o[1]]},i.prototype.slice=function(a,o){return typeof a=="number"&&a<0&&(a+=this.length),typeof o=="number"&&o<0&&(o+=this.length),this.copy(null,0,a,o)},i.prototype.copy=function(a,o,s,l){if((typeof s!="number"||s<0)&&(s=0),(typeof l!="number"||l>this.length)&&(l=this.length),s>=this.length||l<=0)return a||n.alloc(0);let c=!!a,u=this._offset(s),f=l-s,p=f,h=c&&o||0,m=u[1];if(s===0&&l===this.length){if(!c)return this._bufs.length===1?this._bufs[0]:n.concat(this._bufs,this.length);for(let g=0;gv)this._bufs[g].copy(a,h,m),h+=v;else{this._bufs[g].copy(a,h,m,m+p),h+=v;break}p-=v,m&&(m=0)}return a.length>h?a.slice(0,h):a},i.prototype.shallowSlice=function(a,o){if(a=a||0,o=typeof o!="number"?this.length:o,a<0&&(a+=this.length),o<0&&(o+=this.length),a===o)return this._new();let s=this._offset(a),l=this._offset(o),c=this._bufs.slice(s[0],l[0]+1);return l[1]===0?c.pop():c[c.length-1]=c[c.length-1].slice(0,l[1]),s[1]!==0&&(c[0]=c[0].slice(s[1])),this._new(c)},i.prototype.toString=function(a,o,s){return this.slice(o,s).toString(a)},i.prototype.consume=function(a){if(a=Math.trunc(a),Number.isNaN(a)||a<=0)return this;for(;this._bufs.length;)if(a>=this._bufs[0].length)a-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(a),this.length-=a;break}return this},i.prototype.duplicate=function(){let a=this._new();for(let o=0;othis.length?this.length:o;let l=this._offset(o),c=l[0],u=l[1];for(;c=a.length){let p=f.indexOf(a,u);if(p!==-1)return this._reverseOffset([c,p]);u=f.length-a.length+1}else{let p=this._reverseOffset([c,u]);if(this._match(p,a))return p;u++}u=0}return-1},i.prototype._match=function(a,o){if(this.length-a{Qt(),en(),Jt();var n=Bg().Duplex,r=V$e(),i=q$e();function a(o){if(!(this instanceof a))return new a(o);if(typeof o=="function"){this._callback=o;let s=(function(l){this._callback&&(this._callback(l),this._callback=null)}).bind(this);this.on("pipe",function(l){l.on("error",s)}),this.on("unpipe",function(l){l.removeListener("error",s)}),o=null}i._init.call(this,o),n.call(this)}r(a,n),Object.assign(a.prototype,i.prototype),a.prototype._new=function(o){return new a(o)},a.prototype._write=function(o,s,l){this._appendBuffer(o),typeof l=="function"&&l()},a.prototype._read=function(o){if(!this.length)return this.push(null);o=Math.min(o,this.length),this.push(this.slice(0,o)),this.consume(o)},a.prototype.end=function(o){n.prototype.end.call(this,o),this._callback&&(this._callback(null,this.slice()),this._callback=null)},a.prototype._destroy=function(o,s){this._bufs.length=0,this.length=0,s(o)},a.prototype._isBufferList=function(o){return o instanceof a||o instanceof i||a.isBufferList(o)},a.isBufferList=i.isBufferList,t.exports=a,t.exports.BufferListStream=a,t.exports.BufferList=i}),G$e=ln((e,t)=>{Qt(),en(),Jt();var n=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};t.exports=n}),dce=ln((e,t)=>{Qt(),en(),Jt();var n=t.exports,{Buffer:r}=(ko(),Ci(_o));n.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},n.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},n.requiredHeaderFlagsErrors={};for(let a in n.requiredHeaderFlags){let o=n.requiredHeaderFlags[a];n.requiredHeaderFlagsErrors[a]="Invalid header flag bits, must be 0x"+o.toString(16)+" for "+n.types[a]+" packet"}n.codes={};for(let a in n.types){let o=n.types[a];n.codes[o]=a}n.CMD_SHIFT=4,n.CMD_MASK=240,n.DUP_MASK=8,n.QOS_MASK=3,n.QOS_SHIFT=1,n.RETAIN_MASK=1,n.VARBYTEINT_MASK=127,n.VARBYTEINT_FIN_MASK=128,n.VARBYTEINT_MAX=268435455,n.SESSIONPRESENT_MASK=1,n.SESSIONPRESENT_HEADER=r.from([n.SESSIONPRESENT_MASK]),n.CONNACK_HEADER=r.from([n.codes.connack<[0,1].map(s=>[0,1].map(l=>{let c=r.alloc(1);return c.writeUInt8(n.codes[a]<r.from([a])),n.EMPTY={pingreq:r.from([n.codes.pingreq<<4,0]),pingresp:r.from([n.codes.pingresp<<4,0]),disconnect:r.from([n.codes.disconnect<<4,0])},n.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},n.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},n.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},n.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),Y$e=ln((e,t)=>{Qt(),en(),Jt();var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(p,h){h=h||{};var m=typeof p;if(m==="string"&&p.length>0)return l(p);if(m==="number"&&isFinite(p))return h.long?u(p):c(p);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(p))};function l(p){if(p=String(p),!(p.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(p);if(h){var m=parseFloat(h[1]),g=(h[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return m*s;case"weeks":case"week":case"w":return m*o;case"days":case"day":case"d":return m*a;case"hours":case"hour":case"hrs":case"hr":case"h":return m*i;case"minutes":case"minute":case"mins":case"min":case"m":return m*r;case"seconds":case"second":case"secs":case"sec":case"s":return m*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function c(p){var h=Math.abs(p);return h>=a?Math.round(p/a)+"d":h>=i?Math.round(p/i)+"h":h>=r?Math.round(p/r)+"m":h>=n?Math.round(p/n)+"s":p+"ms"}function u(p){var h=Math.abs(p);return h>=a?f(p,h,a,"day"):h>=i?f(p,h,i,"hour"):h>=r?f(p,h,r,"minute"):h>=n?f(p,h,n,"second"):p+" ms"}function f(p,h,m,g){var v=h>=m*1.5;return Math.round(p/m)+" "+g+(v?"s":"")}}),X$e=ln((e,t)=>{Qt(),en(),Jt();function n(r){a.debug=a,a.default=a,a.coerce=f,a.disable=l,a.enable=s,a.enabled=c,a.humanize=Y$e(),a.destroy=p,Object.keys(r).forEach(h=>{a[h]=r[h]}),a.names=[],a.skips=[],a.formatters={};function i(h){let m=0;for(let g=0;g{if(E==="%%")return"%";C++;let M=a.formatters[$];if(typeof M=="function"){let P=w[C];E=M.call(_,P),w.splice(C,1),C--}return E}),a.formatArgs.call(_,w),(_.log||a.log).apply(_,w)}return b.namespace=h,b.useColors=a.useColors(),b.color=a.selectColor(h),b.extend=o,b.destroy=a.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(v!==a.namespaces&&(v=a.namespaces,y=a.enabled(h)),y),set:w=>{g=w}}),typeof a.init=="function"&&a.init(b),b}function o(h,m){let g=a(this.namespace+(typeof m>"u"?":":m)+h);return g.log=this.log,g}function s(h){a.save(h),a.namespaces=h,a.names=[],a.skips=[];let m,g=(typeof h=="string"?h:"").split(/[\s,]+/),v=g.length;for(m=0;m"-"+m)].join(",");return a.enable(""),h}function c(h){if(h[h.length-1]==="*")return!0;let m,g;for(m=0,g=a.skips.length;m{Qt(),en(),Jt(),e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,f=0;l[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(u++,p==="%c"&&(f=u))}),l.splice(f,0,c)}e.log=console.debug||console.log||(()=>{});function i(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function a(){let l;try{l=e.storage.getItem("debug")}catch{}return!l&&typeof li<"u"&&"env"in li&&(l=li.env.DEBUG),l}function o(){try{return localStorage}catch{}}t.exports=X$e()(e);var{formatters:s}=t.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}),Z$e=ln((e,t)=>{Qt(),en(),Jt();var n=K$e(),{EventEmitter:r}=(py(),Ci(Lg)),i=G$e(),a=dce(),o=Of()("mqtt-packet:parser"),s=class xR extends r{constructor(){super(),this.parser=this.constructor.parser}static parser(c){return this instanceof xR?(this.settings=c||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new xR().parser(c)}_resetState(){o("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new i,this.error=null,this._list=n(),this._stateCounter=0}parse(c){for(this.error&&this._resetState(),this._list.append(c),o("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,o("parse: state complete. _stateCounter is now: %d",this._stateCounter),o("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return o("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let c=this._list.readUInt8(0),u=c>>a.CMD_SHIFT;this.packet.cmd=a.types[u];let f=c&15,p=a.requiredHeaderFlags[u];return p!=null&&f!==p?this._emitError(new Error(a.requiredHeaderFlagsErrors[u])):(this.packet.retain=(c&a.RETAIN_MASK)!==0,this.packet.qos=c>>a.QOS_SHIFT&a.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(c&a.DUP_MASK)!==0,o("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let c=this._parseVarByteNum(!0);return c&&(this.packet.length=c.value,this._list.consume(c.bytes)),o("_parseLength %d",c.value),!!c}_parsePayload(){o("_parsePayload: payload %O",this._list);let c=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}c=!0}return o("_parsePayload complete result: %s",c),c}_parseConnect(){o("_parseConnect");let c,u,f,p,h={},m=this.packet,g=this._parseString();if(g===null)return this._emitError(new Error("Cannot parse protocolId"));if(g!=="MQTT"&&g!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(m.protocolId=g,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(m.protocolVersion=this._list.readUInt8(this._pos),m.protocolVersion>=128&&(m.bridgeMode=!0,m.protocolVersion=m.protocolVersion-128),m.protocolVersion!==3&&m.protocolVersion!==4&&m.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));h.username=this._list.readUInt8(this._pos)&a.USERNAME_MASK,h.password=this._list.readUInt8(this._pos)&a.PASSWORD_MASK,h.will=this._list.readUInt8(this._pos)&a.WILL_FLAG_MASK;let v=!!(this._list.readUInt8(this._pos)&a.WILL_RETAIN_MASK),y=(this._list.readUInt8(this._pos)&a.WILL_QOS_MASK)>>a.WILL_QOS_SHIFT;if(h.will)m.will={},m.will.retain=v,m.will.qos=y;else{if(v)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(y)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(m.clean=(this._list.readUInt8(this._pos)&a.CLEAN_SESSION_MASK)!==0,this._pos++,m.keepalive=this._parseNum(),m.keepalive===-1)return this._emitError(new Error("Packet too short"));if(m.protocolVersion===5){let w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(m.properties=w)}let b=this._parseString();if(b===null)return this._emitError(new Error("Packet too short"));if(m.clientId=b,o("_parseConnect: packet.clientId: %s",m.clientId),h.will){if(m.protocolVersion===5){let w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(m.will.properties=w)}if(c=this._parseString(),c===null)return this._emitError(new Error("Cannot parse will topic"));if(m.will.topic=c,o("_parseConnect: packet.will.topic: %s",m.will.topic),u=this._parseBuffer(),u===null)return this._emitError(new Error("Cannot parse will payload"));m.will.payload=u,o("_parseConnect: packet.will.paylaod: %s",m.will.payload)}if(h.username){if(p=this._parseString(),p===null)return this._emitError(new Error("Cannot parse username"));m.username=p,o("_parseConnect: packet.username: %s",m.username)}if(h.password){if(f=this._parseBuffer(),f===null)return this._emitError(new Error("Cannot parse password"));m.password=f}return this.settings=m,o("_parseConnect: complete"),m}_parseConnack(){o("_parseConnack");let c=this.packet;if(this._list.length<1)return null;let u=this._list.readUInt8(this._pos++);if(u>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(c.sessionPresent=!!(u&a.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?c.reasonCode=this._list.readUInt8(this._pos++):c.reasonCode=0;else{if(this._list.length<2)return null;c.returnCode=this._list.readUInt8(this._pos++)}if(c.returnCode===-1||c.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}o("_parseConnack: complete")}_parsePublish(){o("_parsePublish");let c=this.packet;if(c.topic=this._parseString(),c.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(c.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}c.payload=this._list.slice(this._pos,c.length),o("_parsePublish: payload from buffer list: %o",c.payload)}}_parseSubscribe(){o("_parseSubscribe");let c=this.packet,u,f,p,h,m,g,v;if(c.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let y=this._parseProperties();Object.getOwnPropertyNames(y).length&&(c.properties=y)}if(c.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=c.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(f=this._parseByte(),this.settings.protocolVersion===5){if(f&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(f&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(p=f&a.SUBSCRIBE_OPTIONS_QOS_MASK,p>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(g=(f>>a.SUBSCRIBE_OPTIONS_NL_SHIFT&a.SUBSCRIBE_OPTIONS_NL_MASK)!==0,m=(f>>a.SUBSCRIBE_OPTIONS_RAP_SHIFT&a.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,h=f>>a.SUBSCRIBE_OPTIONS_RH_SHIFT&a.SUBSCRIBE_OPTIONS_RH_MASK,h>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));v={topic:u,qos:p},this.settings.protocolVersion===5?(v.nl=g,v.rap=m,v.rh=h):this.settings.bridgeMode&&(v.rh=0,v.rap=!0,v.nl=!0),o("_parseSubscribe: push subscription `%s` to subscription",v),c.subscriptions.push(v)}}}_parseSuback(){o("_parseSuback");let c=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(c.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&u!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(u)}}}_parseUnsubscribe(){o("_parseUnsubscribe");let c=this.packet;if(c.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(c.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(c.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!a.MQTT5_PUBACK_PUBREC_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!a.MQTT5_PUBREL_PUBCOMP_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}o("_parseConfirmation: packet.reasonCode `%d`",c.reasonCode)}else c.reasonCode=0;if(c.length>3){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}}return!0}_parseDisconnect(){let c=this.packet;if(o("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(c.reasonCode=this._parseByte(),a.MQTT5_DISCONNECT_CODES[c.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):c.reasonCode=0;let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}return o("_parseDisconnect result: true"),!0}_parseAuth(){o("_parseAuth");let c=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(c.reasonCode=this._parseByte(),!a.MQTT5_AUTH_CODES[c.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let u=this._parseProperties();return Object.getOwnPropertyNames(u).length&&(c.properties=u),o("_parseAuth: result: true"),!0}_parseMessageId(){let c=this.packet;return c.messageId=this._parseNum(),c.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(o("_parseMessageId: packet.messageId %d",c.messageId),!0)}_parseString(c){let u=this._parseNum(),f=u+this._pos;if(u===-1||f>this._list.length||f>this.packet.length)return null;let p=this._list.toString("utf8",this._pos,f);return this._pos+=u,o("_parseString: result: %s",p),p}_parseStringPair(){return o("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let c=this._parseNum(),u=c+this._pos;if(c===-1||u>this._list.length||u>this.packet.length)return null;let f=this._list.slice(this._pos,u);return this._pos+=c,o("_parseBuffer: result: %o",f),f}_parseNum(){if(this._list.length-this._pos<2)return-1;let c=this._list.readUInt16BE(this._pos);return this._pos+=2,o("_parseNum: result: %s",c),c}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let c=this._list.readUInt32BE(this._pos);return this._pos+=4,o("_parse4ByteNum: result: %s",c),c}_parseVarByteNum(c){o("_parseVarByteNum");let u=4,f=0,p=1,h=0,m=!1,g,v=this._pos?this._pos:0;for(;f=f&&this._emitError(new Error("Invalid variable byte integer")),v&&(this._pos+=f),m?c?m={bytes:f,value:h}:m=h:m=!1,o("_parseVarByteNum: result: %o",m),m}_parseByte(){let c;return this._pos{Qt(),en(),Jt();var{Buffer:n}=(ko(),Ci(_o)),r=65536,i={},a=n.isBuffer(n.from([1,2]).subarray(0,1));function o(u){let f=n.allocUnsafe(2);return f.writeUInt8(u>>8,0),f.writeUInt8(u&255,1),f}function s(){for(let u=0;u0&&(f=f|128),h.writeUInt8(f,p++);while(u>0&&p<4);return u>0&&(p=0),a?h.subarray(0,p):h.slice(0,p)}function c(u){let f=n.allocUnsafe(4);return f.writeUInt32BE(u,0),f}t.exports={cache:i,generateCache:s,generateNumber:o,genBufVariableByteInt:l,generate4ByteBuffer:c}}),J$e=ln((e,t)=>{Qt(),en(),Jt(),typeof li>"u"||!li.version||li.version.indexOf("v0.")===0||li.version.indexOf("v1.")===0&&li.version.indexOf("v1.8.")!==0?t.exports={nextTick:n}:t.exports=li;function n(r,i,a,o){if(typeof r!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,l,c;switch(s){case 0:case 1:return li.nextTick(r);case 2:return li.nextTick(function(){r.call(null,i)});case 3:return li.nextTick(function(){r.call(null,i,a)});case 4:return li.nextTick(function(){r.call(null,i,a,o)});default:for(l=new Array(s-1),c=0;c{Qt(),en(),Jt();var n=dce(),{Buffer:r}=(ko(),Ci(_o)),i=r.allocUnsafe(0),a=r.from([0]),o=Q$e(),s=J$e().nextTick,l=Of()("mqtt-packet:writeToStream"),c=o.cache,u=o.generateNumber,f=o.generateCache,p=o.genBufVariableByteInt,h=o.generate4ByteBuffer,m=N,g=!0;function v(Y,X,ae){switch(l("generate called"),X.cork&&(X.cork(),s(y,X)),g&&(g=!1,f()),l("generate: packet.cmd: %s",Y.cmd),Y.cmd){case"connect":return b(Y,X);case"connack":return w(Y,X,ae);case"publish":return _(Y,X,ae);case"puback":case"pubrec":case"pubrel":case"pubcomp":return k(Y,X,ae);case"subscribe":return S(Y,X,ae);case"suback":return C(Y,X,ae);case"unsubscribe":return E(Y,X,ae);case"unsuback":return $(Y,X,ae);case"pingreq":case"pingresp":return M(Y,X);case"disconnect":return P(Y,X,ae);case"auth":return I(Y,X,ae);default:return X.destroy(new Error("Unknown command")),!1}}Object.defineProperty(v,"cacheNumbers",{get(){return m===N},set(Y){Y?((!c||Object.keys(c).length===0)&&(g=!0),m=N):(g=!1,m=D)}});function y(Y){Y.uncork()}function b(Y,X,ae){let oe=Y||{},le=oe.protocolId||"MQTT",ce=oe.protocolVersion||4,pe=oe.will,me=oe.clean,re=oe.keepalive||0,fe=oe.clientId||"",ve=oe.username,$e=oe.password,Ce=oe.properties;me===void 0&&(me=!0);let be=0;if(!le||typeof le!="string"&&!r.isBuffer(le))return X.destroy(new Error("Invalid protocolId")),!1;if(be+=le.length+2,ce!==3&&ce!==4&&ce!==5)return X.destroy(new Error("Invalid protocol version")),!1;if(be+=1,(typeof fe=="string"||r.isBuffer(fe))&&(fe||ce>=4)&&(fe||me))be+=r.byteLength(fe)+2;else{if(ce<4)return X.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(me*1===0)return X.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof re!="number"||re<0||re>65535||re%1!==0)return X.destroy(new Error("Invalid keepalive")),!1;be+=2,be+=1;let Se,we;if(ce===5){if(Se=K(X,Ce),!Se)return!1;be+=Se.length}if(pe){if(typeof pe!="object")return X.destroy(new Error("Invalid will")),!1;if(!pe.topic||typeof pe.topic!="string")return X.destroy(new Error("Invalid will topic")),!1;if(be+=r.byteLength(pe.topic)+2,be+=2,pe.payload)if(pe.payload.length>=0)typeof pe.payload=="string"?be+=r.byteLength(pe.payload):be+=pe.payload.length;else return X.destroy(new Error("Invalid will payload")),!1;if(we={},ce===5){if(we=K(X,pe.properties),!we)return!1;be+=we.length}}let se=!1;if(ve!=null)if(ie(ve))se=!0,be+=r.byteLength(ve)+2;else return X.destroy(new Error("Invalid username")),!1;if($e!=null){if(!se)return X.destroy(new Error("Username is required to use password")),!1;if(ie($e))be+=ee($e)+2;else return X.destroy(new Error("Invalid password")),!1}X.write(n.CONNECT_HEADER),A(X,be),F(X,le),oe.bridgeMode&&(ce+=128),X.write(ce===131?n.VERSION131:ce===132?n.VERSION132:ce===4?n.VERSION4:ce===5?n.VERSION5:n.VERSION3);let ye=0;return ye|=ve!=null?n.USERNAME_MASK:0,ye|=$e!=null?n.PASSWORD_MASK:0,ye|=pe&&pe.retain?n.WILL_RETAIN_MASK:0,ye|=pe&&pe.qos?pe.qos<0&&m(X,fe),Ce==null||Ce.write(),l("publish: payload: %o",re),X.write(re)}function k(Y,X,ae){let oe=ae?ae.protocolVersion:4,le=Y||{},ce=le.cmd||"puback",pe=le.messageId,me=le.dup&&ce==="pubrel"?n.DUP_MASK:0,re=0,fe=le.reasonCode,ve=le.properties,$e=oe===5?3:2;if(ce==="pubrel"&&(re=1),typeof pe!="number")return X.destroy(new Error("Invalid messageId")),!1;let Ce=null;if(oe===5&&typeof ve=="object"){if(Ce=B(X,ve,ae,$e),!Ce)return!1;$e+=Ce.length}return X.write(n.ACKS[ce][re][me][0]),$e===3&&($e+=fe!==0?1:-1),A(X,$e),m(X,pe),oe===5&&$e!==2&&X.write(r.from([fe])),Ce!==null?Ce.write():$e===4&&X.write(r.from([0])),!0}function S(Y,X,ae){l("subscribe: packet: ");let oe=ae?ae.protocolVersion:4,le=Y||{},ce=le.dup?n.DUP_MASK:0,pe=le.messageId,me=le.subscriptions,re=le.properties,fe=0;if(typeof pe!="number")return X.destroy(new Error("Invalid messageId")),!1;fe+=2;let ve=null;if(oe===5){if(ve=K(X,re),!ve)return!1;fe+=ve.length}if(typeof me=="object"&&me.length)for(let Ce=0;Ce2)return X.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}fe+=r.byteLength(be)+2+1}else return X.destroy(new Error("Invalid subscriptions")),!1;l("subscribe: writing to stream: %o",n.SUBSCRIBE_HEADER),X.write(n.SUBSCRIBE_HEADER[1][ce?1:0][0]),A(X,fe),m(X,pe),ve!==null&&ve.write();let $e=!0;for(let Ce of me){let be=Ce.topic,Se=Ce.qos,we=+Ce.nl,se=+Ce.rap,ye=Ce.rh,Oe;R(X,be),Oe=n.SUBSCRIBE_OPTIONS_QOS[Se],oe===5&&(Oe|=we?n.SUBSCRIBE_OPTIONS_NL:0,Oe|=se?n.SUBSCRIBE_OPTIONS_RAP:0,Oe|=ye?n.SUBSCRIBE_OPTIONS_RH[ye]:0),$e=X.write(r.from([Oe]))}return $e}function C(Y,X,ae){let oe=ae?ae.protocolVersion:4,le=Y||{},ce=le.messageId,pe=le.granted,me=le.properties,re=0;if(typeof ce!="number")return X.destroy(new Error("Invalid messageId")),!1;if(re+=2,typeof pe=="object"&&pe.length)for(let ve=0;ven.VARBYTEINT_MAX)return Y.destroy(new Error(`Invalid variable byte integer: ${X}`)),!1;let ae=O[X];return ae||(ae=p(X),X<16384&&(O[X]=ae)),l("writeVarByteInt: writing to stream: %o",ae),Y.write(ae)}function R(Y,X){let ae=r.byteLength(X);return m(Y,ae),l("writeString: %s",X),Y.write(X,"utf8")}function j(Y,X,ae){R(Y,X),R(Y,ae)}function N(Y,X){return l("writeNumberCached: number: %d",X),l("writeNumberCached: %o",c[X]),Y.write(c[X])}function D(Y,X){let ae=u(X);return l("writeNumberGenerated: %o",ae),Y.write(ae)}function V(Y,X){let ae=h(X);return l("write4ByteNumber: %o",ae),Y.write(ae)}function F(Y,X){typeof X=="string"?R(Y,X):X?(m(Y,X.length),Y.write(X)):m(Y,0)}function K(Y,X){if(typeof X!="object"||X.length!=null)return{length:1,write(){Z(Y,{},0)}};let ae=0;function oe(le,ce){let pe=n.propertiesTypes[le],me=0;switch(pe){case"byte":{if(typeof ce!="boolean")return Y.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=2;break}case"int8":{if(typeof ce!="number"||ce<0||ce>255)return Y.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=2;break}case"binary":{if(ce&&ce===null)return Y.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=1+r.byteLength(ce)+2;break}case"int16":{if(typeof ce!="number"||ce<0||ce>65535)return Y.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=3;break}case"int32":{if(typeof ce!="number"||ce<0||ce>4294967295)return Y.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=5;break}case"var":{if(typeof ce!="number"||ce<0||ce>268435455)return Y.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=1+r.byteLength(p(ce));break}case"string":{if(typeof ce!="string")return Y.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=3+r.byteLength(ce.toString());break}case"pair":{if(typeof ce!="object")return Y.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=Object.getOwnPropertyNames(ce).reduce((re,fe)=>{let ve=ce[fe];return Array.isArray(ve)?re+=ve.reduce(($e,Ce)=>($e+=3+r.byteLength(fe.toString())+2+r.byteLength(Ce.toString()),$e),0):re+=3+r.byteLength(fe.toString())+2+r.byteLength(ce[fe].toString()),re},0);break}default:return Y.destroy(new Error(`Invalid property ${le}: ${ce}`)),!1}return me}if(X)for(let le in X){let ce=0,pe=0,me=X[le];if(Array.isArray(me))for(let re=0;rece;){let me=le.shift();if(me&&X[me])delete X[me],pe=K(Y,X);else return!1}return pe}function U(Y,X,ae){switch(n.propertiesTypes[X]){case"byte":{Y.write(r.from([n.properties[X]])),Y.write(r.from([+ae]));break}case"int8":{Y.write(r.from([n.properties[X]])),Y.write(r.from([ae]));break}case"binary":{Y.write(r.from([n.properties[X]])),F(Y,ae);break}case"int16":{Y.write(r.from([n.properties[X]])),m(Y,ae);break}case"int32":{Y.write(r.from([n.properties[X]])),V(Y,ae);break}case"var":{Y.write(r.from([n.properties[X]])),A(Y,ae);break}case"string":{Y.write(r.from([n.properties[X]])),R(Y,ae);break}case"pair":{Object.getOwnPropertyNames(ae).forEach(oe=>{let le=ae[oe];Array.isArray(le)?le.forEach(ce=>{Y.write(r.from([n.properties[X]])),j(Y,oe.toString(),ce.toString())}):(Y.write(r.from([n.properties[X]])),j(Y,oe.toString(),le.toString()))});break}default:return Y.destroy(new Error(`Invalid property ${X} value: ${ae}`)),!1}}function Z(Y,X,ae){A(Y,ae);for(let oe in X)if(Object.prototype.hasOwnProperty.call(X,oe)&&X[oe]!==null){let le=X[oe];if(Array.isArray(le))for(let ce=0;ce{Qt(),en(),Jt();var n=fce(),{EventEmitter:r}=(py(),Ci(Lg)),{Buffer:i}=(ko(),Ci(_o));function a(s,l){let c=new o;return n(s,c,l),c.concat()}var o=class extends r{constructor(){super(),this._array=new Array(20),this._i=0}write(s){return this._array[this._i++]=s,!0}concat(){let s=0,l=new Array(this._array.length),c=this._array,u=0,f;for(f=0;f{Qt(),en(),Jt(),e.parser=Z$e().parser,e.generate=e7e(),e.writeToStream=fce()}),pce=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let n=this.nextId++;return this.nextId===65536&&(this.nextId=1),n}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(n){return!0}deallocate(n){}clear(){}};e.default=t}),n7e=ln((e,t)=>{Qt(),en(),Jt(),t.exports=r;function n(a){return a instanceof Sk?Sk.from(a):new a.constructor(a.buffer.slice(),a.byteOffset,a.length)}function r(a){if(a=a||{},a.circles)return i(a);return a.proto?l:s;function o(c,u){for(var f=Object.keys(c),p=new Array(f.length),h=0;h{Qt(),en(),Jt(),t.exports=n7e()()}),i7e=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0}),e.validateTopics=e.validateTopic=void 0;function t(r){let i=r.split("/");for(let a=0;a{Qt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bg(),n={objectMode:!0},r={clean:!0},i=class{constructor(a){this.options=a||{},this.options=Object.assign(Object.assign({},r),a),this._inflights=new Map}put(a,o){return this._inflights.set(a.messageId,a),o&&o(),this}createStream(){let a=new t.Readable(n),o=[],s=!1,l=0;return this._inflights.forEach((c,u)=>{o.push(c)}),a._read=()=>{!s&&l{if(!s)return s=!0,setTimeout(()=>{a.emit("close")},0),a},a}del(a,o){let s=this._inflights.get(a.messageId);return s?(this._inflights.delete(a.messageId),o(null,s)):o&&o(new Error("missing packet")),this}get(a,o){let s=this._inflights.get(a.messageId);return s?o(null,s):o&&o(new Error("missing packet")),this}close(a){this.options.clean&&(this._inflights=null),a&&a()}};e.default=i}),a7e=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0});var t=[0,16,128,131,135,144,145,151,153],n=(r,i,a)=>{r.log("handlePublish: packet %o",i),a=typeof a<"u"?a:r.noop;let o=i.topic.toString(),s=i.payload,{qos:l}=i,{messageId:c}=i,{options:u}=r;if(r.options.protocolVersion===5){let f;if(i.properties&&(f=i.properties.topicAlias),typeof f<"u")if(o.length===0)if(f>0&&f<=65535){let p=r.topicAliasRecv.getTopicByAlias(f);if(p)o=p,r.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",o,f);else{r.log("handlePublish :: unregistered topic alias. alias: %d",f),r.emit("error",new Error("Received unregistered Topic Alias"));return}}else{r.log("handlePublish :: topic alias out of range. alias: %d",f),r.emit("error",new Error("Received Topic Alias is out of range"));return}else if(r.topicAliasRecv.put(o,f))r.log("handlePublish :: registered topic: %s - alias: %d",o,f);else{r.log("handlePublish :: topic alias out of range. alias: %d",f),r.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(r.log("handlePublish: qos %d",l),l){case 2:{u.customHandleAcks(o,s,i,(f,p)=>{if(typeof f=="number"&&(p=f,f=null),f)return r.emit("error",f);if(t.indexOf(p)===-1)return r.emit("error",new Error("Wrong reason code for pubrec"));p?r._sendPacket({cmd:"pubrec",messageId:c,reasonCode:p},a):r.incomingStore.put(i,()=>{r._sendPacket({cmd:"pubrec",messageId:c},a)})});break}case 1:{u.customHandleAcks(o,s,i,(f,p)=>{if(typeof f=="number"&&(p=f,f=null),f)return r.emit("error",f);if(t.indexOf(p)===-1)return r.emit("error",new Error("Wrong reason code for puback"));p||r.emit("message",o,s,i),r.handleMessage(i,h=>{if(h)return a&&a(h);r._sendPacket({cmd:"puback",messageId:c,reasonCode:p},a)})});break}case 0:r.emit("message",o,s,i),r.handleMessage(i,a);break;default:r.log("handlePublish: unknown QoS. Doing nothing.");break}};e.default=n}),o7e=ln((e,t)=>{t.exports={version:"5.10.3"}}),hy=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var t=class mce extends Error{constructor(i,a){super(i),this.code=a,Object.setPrototypeOf(this,mce.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=t;function n(r,i,a=!1){var o;let s=[i];for(;;){let l=s[0],c=Object.getPrototypeOf(l);if(c!=null&&c.prototype)s.unshift(c);else break}for(let l of s)for(let c of Object.getOwnPropertyNames(l.prototype))(a||c!=="constructor")&&Object.defineProperty(r.prototype,c,(o=Object.getOwnPropertyDescriptor(l.prototype,c))!==null&&o!==void 0?o:Object.create(null))}e.applyMixin=n,e.nextTick=typeof(li==null?void 0:li.nextTick)=="function"?li.nextTick:r=>{setTimeout(r,0)},e.MQTTJS_VERSION=o7e().version}),mE=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var t=hy();e.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};var n=(r,i)=>{let{messageId:a}=i,o=i.cmd,s=null,l=r.outgoing[a]?r.outgoing[a].cb:null,c=null;if(!l){r.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(r.log("_handleAck :: packet type",o),o){case"pubcomp":case"puback":{let u=i.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(a,()=>{l(c,i)})):r._removeOutgoingAndStoreMessage(a,l);break}case"pubrec":{s={cmd:"pubrel",qos:2,messageId:a};let u=i.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(a,()=>{l(c,i)})):r._sendPacket(s);break}case"suback":{delete r.outgoing[a],r.messageIdProvider.deallocate(a);let u=i.granted;for(let f=0;f{delete r._resubscribeTopics[m]})}}delete r.messageIdToTopic[a],r._invokeStoreProcessingQueue(),l(c,i);break}case"unsuback":{delete r.outgoing[a],r.messageIdProvider.deallocate(a),r._invokeStoreProcessingQueue(),l(null,i);break}default:r.emit("error",new Error("unrecognized packet type"))}r.disconnecting&&Object.keys(r.outgoing).length===0&&r.emit("outgoingEmpty")};e.default=n}),s7e=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0});var t=hy(),n=mE(),r=(i,a)=>{let{options:o}=i,s=o.protocolVersion,l=s===5?a.reasonCode:a.returnCode;if(s!==5){let c=new t.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${s}`,l);i.emit("error",c);return}i.handleAuth(a,(c,u)=>{if(c){i.emit("error",c);return}if(l===24)i.reconnecting=!1,i._sendPacket(u);else{let f=new t.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[l]}`,l);i.emit("error",f)}})};e.default=r}),l7e=ln(e=>{var h,m,g,v,y,b,w,_,k,S,C,E,$,M,P,I,O,A,R,j,N,D,V,F,K,B,SR,Z,ee,ie,Y,gce,ae,oe,le,pp,hp,CR,AC,DC,Ui,_R,v2,be;Qt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,n=new Set,r=typeof li=="object"&&li?li:{},i=(Se,we,se,ye)=>{typeof r.emitWarning=="function"?r.emitWarning(Se,we,se,ye):console.error(`[${se}] ${we}: ${Se}`)},a=globalThis.AbortController,o=globalThis.AbortSignal;if(typeof a>"u"){o=class{constructor(){Yr(this,"onabort");Yr(this,"_onabort",[]);Yr(this,"reason");Yr(this,"aborted",!1)}addEventListener(se,ye){this._onabort.push(ye)}},a=class{constructor(){Yr(this,"signal",new o);we()}abort(se){var ye,Oe;if(!this.signal.aborted){this.signal.reason=se,this.signal.aborted=!0;for(let z of this.signal._onabort)z(se);(Oe=(ye=this.signal).onabort)==null||Oe.call(ye,se)}}};let Se=((h=r.env)==null?void 0:h.LRU_CACHE_IGNORE_AC_WARNING)!=="1",we=()=>{Se&&(Se=!1,i("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",we))}}var s=Se=>!n.has(Se),l=Se=>Se&&Se===Math.floor(Se)&&Se>0&&isFinite(Se),c=Se=>l(Se)?Se<=Math.pow(2,8)?Uint8Array:Se<=Math.pow(2,16)?Uint16Array:Se<=Math.pow(2,32)?Uint32Array:Se<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(Se){super(Se),this.fill(0)}},f=(m=class{constructor(we,se){Yr(this,"heap");Yr(this,"length");if(!Fe(m,g))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new se(we),this.length=0}static create(we){let se=c(we);if(!se)return[];yn(m,g,!0);let ye=new m(we,se);return yn(m,g,!1),ye}push(we){this.heap[this.length++]=we}pop(){return this.heap[--this.length]}},g=new WeakMap,Un(m,g,!1),m),p=(be=class{constructor(we){Un(this,B);Un(this,v);Un(this,y);Un(this,b);Un(this,w);Un(this,_);Yr(this,"ttl");Yr(this,"ttlResolution");Yr(this,"ttlAutopurge");Yr(this,"updateAgeOnGet");Yr(this,"updateAgeOnHas");Yr(this,"allowStale");Yr(this,"noDisposeOnSet");Yr(this,"noUpdateTTL");Yr(this,"maxEntrySize");Yr(this,"sizeCalculation");Yr(this,"noDeleteOnFetchRejection");Yr(this,"noDeleteOnStaleGet");Yr(this,"allowStaleOnFetchAbort");Yr(this,"allowStaleOnFetchRejection");Yr(this,"ignoreFetchAbort");Un(this,k);Un(this,S);Un(this,C);Un(this,E);Un(this,$);Un(this,M);Un(this,P);Un(this,I);Un(this,O);Un(this,A);Un(this,R);Un(this,j);Un(this,N);Un(this,D);Un(this,V);Un(this,F);Un(this,K);Un(this,Z,()=>{});Un(this,ee,()=>{});Un(this,ie,()=>{});Un(this,Y,()=>!1);Un(this,ae,we=>{});Un(this,oe,(we,se,ye)=>{});Un(this,le,(we,se,ye,Oe)=>{if(ye||Oe)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:se=0,ttl:ye,ttlResolution:Oe=1,ttlAutopurge:z,updateAgeOnGet:H,updateAgeOnHas:G,allowStale:de,dispose:xe,disposeAfter:he,noDisposeOnSet:Ue,noUpdateTTL:We,maxSize:ge=0,maxEntrySize:ze=0,sizeCalculation:Ve,fetchMethod:Be,noDeleteOnFetchRejection:Xe,noDeleteOnStaleGet:Ke,allowStaleOnFetchRejection:qe,allowStaleOnFetchAbort:Et,ignoreFetchAbort:dt}=we;if(se!==0&&!l(se))throw new TypeError("max option must be a nonnegative integer");let vt=se?c(se):Array;if(!vt)throw new Error("invalid max value: "+se);if(yn(this,v,se),yn(this,y,ge),this.maxEntrySize=ze||Fe(this,y),this.sizeCalculation=Ve,this.sizeCalculation){if(!Fe(this,y)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Be!==void 0&&typeof Be!="function")throw new TypeError("fetchMethod must be a function if specified");if(yn(this,_,Be),yn(this,F,!!Be),yn(this,C,new Map),yn(this,E,new Array(se).fill(void 0)),yn(this,$,new Array(se).fill(void 0)),yn(this,M,new vt(se)),yn(this,P,new vt(se)),yn(this,I,0),yn(this,O,0),yn(this,A,f.create(se)),yn(this,k,0),yn(this,S,0),typeof xe=="function"&&yn(this,b,xe),typeof he=="function"?(yn(this,w,he),yn(this,R,[])):(yn(this,w,void 0),yn(this,R,void 0)),yn(this,V,!!Fe(this,b)),yn(this,K,!!Fe(this,w)),this.noDisposeOnSet=!!Ue,this.noUpdateTTL=!!We,this.noDeleteOnFetchRejection=!!Xe,this.allowStaleOnFetchRejection=!!qe,this.allowStaleOnFetchAbort=!!Et,this.ignoreFetchAbort=!!dt,this.maxEntrySize!==0){if(Fe(this,y)!==0&&!l(Fe(this,y)))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Nn(this,B,gce).call(this)}if(this.allowStale=!!de,this.noDeleteOnStaleGet=!!Ke,this.updateAgeOnGet=!!H,this.updateAgeOnHas=!!G,this.ttlResolution=l(Oe)||Oe===0?Oe:1,this.ttlAutopurge=!!z,this.ttl=ye||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Nn(this,B,SR).call(this)}if(Fe(this,v)===0&&this.ttl===0&&Fe(this,y)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!Fe(this,v)&&!Fe(this,y)){let Ze="LRU_CACHE_UNBOUNDED";s(Ze)&&(n.add(Ze),i("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Ze,be))}}static unsafeExposeInternals(we){return{starts:Fe(we,N),ttls:Fe(we,D),sizes:Fe(we,j),keyMap:Fe(we,C),keyList:Fe(we,E),valList:Fe(we,$),next:Fe(we,M),prev:Fe(we,P),get head(){return Fe(we,I)},get tail(){return Fe(we,O)},free:Fe(we,A),isBackgroundFetch:se=>{var ye;return Nn(ye=we,B,Ui).call(ye,se)},backgroundFetch:(se,ye,Oe,z)=>{var H;return Nn(H=we,B,DC).call(H,se,ye,Oe,z)},moveToTail:se=>{var ye;return Nn(ye=we,B,v2).call(ye,se)},indexes:se=>{var ye;return Nn(ye=we,B,pp).call(ye,se)},rindexes:se=>{var ye;return Nn(ye=we,B,hp).call(ye,se)},isStale:se=>{var ye;return Fe(ye=we,Y).call(ye,se)}}}get max(){return Fe(this,v)}get maxSize(){return Fe(this,y)}get calculatedSize(){return Fe(this,S)}get size(){return Fe(this,k)}get fetchMethod(){return Fe(this,_)}get dispose(){return Fe(this,b)}get disposeAfter(){return Fe(this,w)}getRemainingTTL(we){return Fe(this,C).has(we)?1/0:0}*entries(){for(let we of Nn(this,B,pp).call(this))Fe(this,$)[we]!==void 0&&Fe(this,E)[we]!==void 0&&!Nn(this,B,Ui).call(this,Fe(this,$)[we])&&(yield[Fe(this,E)[we],Fe(this,$)[we]])}*rentries(){for(let we of Nn(this,B,hp).call(this))Fe(this,$)[we]!==void 0&&Fe(this,E)[we]!==void 0&&!Nn(this,B,Ui).call(this,Fe(this,$)[we])&&(yield[Fe(this,E)[we],Fe(this,$)[we]])}*keys(){for(let we of Nn(this,B,pp).call(this)){let se=Fe(this,E)[we];se!==void 0&&!Nn(this,B,Ui).call(this,Fe(this,$)[we])&&(yield se)}}*rkeys(){for(let we of Nn(this,B,hp).call(this)){let se=Fe(this,E)[we];se!==void 0&&!Nn(this,B,Ui).call(this,Fe(this,$)[we])&&(yield se)}}*values(){for(let we of Nn(this,B,pp).call(this))Fe(this,$)[we]!==void 0&&!Nn(this,B,Ui).call(this,Fe(this,$)[we])&&(yield Fe(this,$)[we])}*rvalues(){for(let we of Nn(this,B,hp).call(this))Fe(this,$)[we]!==void 0&&!Nn(this,B,Ui).call(this,Fe(this,$)[we])&&(yield Fe(this,$)[we])}[Symbol.iterator](){return this.entries()}find(we,se={}){for(let ye of Nn(this,B,pp).call(this)){let Oe=Fe(this,$)[ye],z=Nn(this,B,Ui).call(this,Oe)?Oe.__staleWhileFetching:Oe;if(z!==void 0&&we(z,Fe(this,E)[ye],this))return this.get(Fe(this,E)[ye],se)}}forEach(we,se=this){for(let ye of Nn(this,B,pp).call(this)){let Oe=Fe(this,$)[ye],z=Nn(this,B,Ui).call(this,Oe)?Oe.__staleWhileFetching:Oe;z!==void 0&&we.call(se,z,Fe(this,E)[ye],this)}}rforEach(we,se=this){for(let ye of Nn(this,B,hp).call(this)){let Oe=Fe(this,$)[ye],z=Nn(this,B,Ui).call(this,Oe)?Oe.__staleWhileFetching:Oe;z!==void 0&&we.call(se,z,Fe(this,E)[ye],this)}}purgeStale(){let we=!1;for(let se of Nn(this,B,hp).call(this,{allowStale:!0}))Fe(this,Y).call(this,se)&&(this.delete(Fe(this,E)[se]),we=!0);return we}dump(){let we=[];for(let se of Nn(this,B,pp).call(this,{allowStale:!0})){let ye=Fe(this,E)[se],Oe=Fe(this,$)[se],z=Nn(this,B,Ui).call(this,Oe)?Oe.__staleWhileFetching:Oe;if(z===void 0||ye===void 0)continue;let H={value:z};if(Fe(this,D)&&Fe(this,N)){H.ttl=Fe(this,D)[se];let G=t.now()-Fe(this,N)[se];H.start=Math.floor(Date.now()-G)}Fe(this,j)&&(H.size=Fe(this,j)[se]),we.unshift([ye,H])}return we}load(we){this.clear();for(let[se,ye]of we){if(ye.start){let Oe=Date.now()-ye.start;ye.start=t.now()-Oe}this.set(se,ye.value,ye)}}set(we,se,ye={}){var We,ge,ze,Ve,Be;if(se===void 0)return this.delete(we),this;let{ttl:Oe=this.ttl,start:z,noDisposeOnSet:H=this.noDisposeOnSet,sizeCalculation:G=this.sizeCalculation,status:de}=ye,{noUpdateTTL:xe=this.noUpdateTTL}=ye,he=Fe(this,le).call(this,we,se,ye.size||0,G);if(this.maxEntrySize&&he>this.maxEntrySize)return de&&(de.set="miss",de.maxEntrySizeExceeded=!0),this.delete(we),this;let Ue=Fe(this,k)===0?void 0:Fe(this,C).get(we);if(Ue===void 0)Ue=Fe(this,k)===0?Fe(this,O):Fe(this,A).length!==0?Fe(this,A).pop():Fe(this,k)===Fe(this,v)?Nn(this,B,AC).call(this,!1):Fe(this,k),Fe(this,E)[Ue]=we,Fe(this,$)[Ue]=se,Fe(this,C).set(we,Ue),Fe(this,M)[Fe(this,O)]=Ue,Fe(this,P)[Ue]=Fe(this,O),yn(this,O,Ue),Fh(this,k)._++,Fe(this,oe).call(this,Ue,he,de),de&&(de.set="add"),xe=!1;else{Nn(this,B,v2).call(this,Ue);let Xe=Fe(this,$)[Ue];if(se!==Xe){if(Fe(this,F)&&Nn(this,B,Ui).call(this,Xe)){Xe.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Ke}=Xe;Ke!==void 0&&!H&&(Fe(this,V)&&((We=Fe(this,b))==null||We.call(this,Ke,we,"set")),Fe(this,K)&&((ge=Fe(this,R))==null||ge.push([Ke,we,"set"])))}else H||(Fe(this,V)&&((ze=Fe(this,b))==null||ze.call(this,Xe,we,"set")),Fe(this,K)&&((Ve=Fe(this,R))==null||Ve.push([Xe,we,"set"])));if(Fe(this,ae).call(this,Ue),Fe(this,oe).call(this,Ue,he,de),Fe(this,$)[Ue]=se,de){de.set="replace";let Ke=Xe&&Nn(this,B,Ui).call(this,Xe)?Xe.__staleWhileFetching:Xe;Ke!==void 0&&(de.oldValue=Ke)}}else de&&(de.set="update")}if(Oe!==0&&!Fe(this,D)&&Nn(this,B,SR).call(this),Fe(this,D)&&(xe||Fe(this,ie).call(this,Ue,Oe,z),de&&Fe(this,ee).call(this,de,Ue)),!H&&Fe(this,K)&&Fe(this,R)){let Xe=Fe(this,R),Ke;for(;Ke=Xe==null?void 0:Xe.shift();)(Be=Fe(this,w))==null||Be.call(this,...Ke)}return this}pop(){var we;try{for(;Fe(this,k);){let se=Fe(this,$)[Fe(this,I)];if(Nn(this,B,AC).call(this,!0),Nn(this,B,Ui).call(this,se)){if(se.__staleWhileFetching)return se.__staleWhileFetching}else if(se!==void 0)return se}}finally{if(Fe(this,K)&&Fe(this,R)){let se=Fe(this,R),ye;for(;ye=se==null?void 0:se.shift();)(we=Fe(this,w))==null||we.call(this,...ye)}}}has(we,se={}){let{updateAgeOnHas:ye=this.updateAgeOnHas,status:Oe}=se,z=Fe(this,C).get(we);if(z!==void 0){let H=Fe(this,$)[z];if(Nn(this,B,Ui).call(this,H)&&H.__staleWhileFetching===void 0)return!1;if(Fe(this,Y).call(this,z))Oe&&(Oe.has="stale",Fe(this,ee).call(this,Oe,z));else return ye&&Fe(this,Z).call(this,z),Oe&&(Oe.has="hit",Fe(this,ee).call(this,Oe,z)),!0}else Oe&&(Oe.has="miss");return!1}peek(we,se={}){let{allowStale:ye=this.allowStale}=se,Oe=Fe(this,C).get(we);if(Oe!==void 0&&(ye||!Fe(this,Y).call(this,Oe))){let z=Fe(this,$)[Oe];return Nn(this,B,Ui).call(this,z)?z.__staleWhileFetching:z}}async fetch(we,se={}){let{allowStale:ye=this.allowStale,updateAgeOnGet:Oe=this.updateAgeOnGet,noDeleteOnStaleGet:z=this.noDeleteOnStaleGet,ttl:H=this.ttl,noDisposeOnSet:G=this.noDisposeOnSet,size:de=0,sizeCalculation:xe=this.sizeCalculation,noUpdateTTL:he=this.noUpdateTTL,noDeleteOnFetchRejection:Ue=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:We=this.allowStaleOnFetchRejection,ignoreFetchAbort:ge=this.ignoreFetchAbort,allowStaleOnFetchAbort:ze=this.allowStaleOnFetchAbort,context:Ve,forceRefresh:Be=!1,status:Xe,signal:Ke}=se;if(!Fe(this,F))return Xe&&(Xe.fetch="get"),this.get(we,{allowStale:ye,updateAgeOnGet:Oe,noDeleteOnStaleGet:z,status:Xe});let qe={allowStale:ye,updateAgeOnGet:Oe,noDeleteOnStaleGet:z,ttl:H,noDisposeOnSet:G,size:de,sizeCalculation:xe,noUpdateTTL:he,noDeleteOnFetchRejection:Ue,allowStaleOnFetchRejection:We,allowStaleOnFetchAbort:ze,ignoreFetchAbort:ge,status:Xe,signal:Ke},Et=Fe(this,C).get(we);if(Et===void 0){Xe&&(Xe.fetch="miss");let dt=Nn(this,B,DC).call(this,we,Et,qe,Ve);return dt.__returned=dt}else{let dt=Fe(this,$)[Et];if(Nn(this,B,Ui).call(this,dt)){let jt=ye&&dt.__staleWhileFetching!==void 0;return Xe&&(Xe.fetch="inflight",jt&&(Xe.returnedStale=!0)),jt?dt.__staleWhileFetching:dt.__returned=dt}let vt=Fe(this,Y).call(this,Et);if(!Be&&!vt)return Xe&&(Xe.fetch="hit"),Nn(this,B,v2).call(this,Et),Oe&&Fe(this,Z).call(this,Et),Xe&&Fe(this,ee).call(this,Xe,Et),dt;let Ze=Nn(this,B,DC).call(this,we,Et,qe,Ve),nt=Ze.__staleWhileFetching!==void 0&&ye;return Xe&&(Xe.fetch=vt?"stale":"refresh",nt&&vt&&(Xe.returnedStale=!0)),nt?Ze.__staleWhileFetching:Ze.__returned=Ze}}get(we,se={}){let{allowStale:ye=this.allowStale,updateAgeOnGet:Oe=this.updateAgeOnGet,noDeleteOnStaleGet:z=this.noDeleteOnStaleGet,status:H}=se,G=Fe(this,C).get(we);if(G!==void 0){let de=Fe(this,$)[G],xe=Nn(this,B,Ui).call(this,de);return H&&Fe(this,ee).call(this,H,G),Fe(this,Y).call(this,G)?(H&&(H.get="stale"),xe?(H&&ye&&de.__staleWhileFetching!==void 0&&(H.returnedStale=!0),ye?de.__staleWhileFetching:void 0):(z||this.delete(we),H&&ye&&(H.returnedStale=!0),ye?de:void 0)):(H&&(H.get="hit"),xe?de.__staleWhileFetching:(Nn(this,B,v2).call(this,G),Oe&&Fe(this,Z).call(this,G),de))}else H&&(H.get="miss")}delete(we){var ye,Oe,z,H;let se=!1;if(Fe(this,k)!==0){let G=Fe(this,C).get(we);if(G!==void 0)if(se=!0,Fe(this,k)===1)this.clear();else{Fe(this,ae).call(this,G);let de=Fe(this,$)[G];Nn(this,B,Ui).call(this,de)?de.__abortController.abort(new Error("deleted")):(Fe(this,V)||Fe(this,K))&&(Fe(this,V)&&((ye=Fe(this,b))==null||ye.call(this,de,we,"delete")),Fe(this,K)&&((Oe=Fe(this,R))==null||Oe.push([de,we,"delete"]))),Fe(this,C).delete(we),Fe(this,E)[G]=void 0,Fe(this,$)[G]=void 0,G===Fe(this,O)?yn(this,O,Fe(this,P)[G]):G===Fe(this,I)?yn(this,I,Fe(this,M)[G]):(Fe(this,M)[Fe(this,P)[G]]=Fe(this,M)[G],Fe(this,P)[Fe(this,M)[G]]=Fe(this,P)[G]),Fh(this,k)._--,Fe(this,A).push(G)}}if(Fe(this,K)&&((z=Fe(this,R))!=null&&z.length)){let G=Fe(this,R),de;for(;de=G==null?void 0:G.shift();)(H=Fe(this,w))==null||H.call(this,...de)}return se}clear(){var we,se,ye;for(let Oe of Nn(this,B,hp).call(this,{allowStale:!0})){let z=Fe(this,$)[Oe];if(Nn(this,B,Ui).call(this,z))z.__abortController.abort(new Error("deleted"));else{let H=Fe(this,E)[Oe];Fe(this,V)&&((we=Fe(this,b))==null||we.call(this,z,H,"delete")),Fe(this,K)&&((se=Fe(this,R))==null||se.push([z,H,"delete"]))}}if(Fe(this,C).clear(),Fe(this,$).fill(void 0),Fe(this,E).fill(void 0),Fe(this,D)&&Fe(this,N)&&(Fe(this,D).fill(0),Fe(this,N).fill(0)),Fe(this,j)&&Fe(this,j).fill(0),yn(this,I,0),yn(this,O,0),Fe(this,A).length=0,yn(this,S,0),yn(this,k,0),Fe(this,K)&&Fe(this,R)){let Oe=Fe(this,R),z;for(;z=Oe==null?void 0:Oe.shift();)(ye=Fe(this,w))==null||ye.call(this,...z)}}},v=new WeakMap,y=new WeakMap,b=new WeakMap,w=new WeakMap,_=new WeakMap,k=new WeakMap,S=new WeakMap,C=new WeakMap,E=new WeakMap,$=new WeakMap,M=new WeakMap,P=new WeakMap,I=new WeakMap,O=new WeakMap,A=new WeakMap,R=new WeakMap,j=new WeakMap,N=new WeakMap,D=new WeakMap,V=new WeakMap,F=new WeakMap,K=new WeakMap,B=new WeakSet,SR=function(){let we=new u(Fe(this,v)),se=new u(Fe(this,v));yn(this,D,we),yn(this,N,se),yn(this,ie,(z,H,G=t.now())=>{if(se[z]=H!==0?G:0,we[z]=H,H!==0&&this.ttlAutopurge){let de=setTimeout(()=>{Fe(this,Y).call(this,z)&&this.delete(Fe(this,E)[z])},H+1);de.unref&&de.unref()}}),yn(this,Z,z=>{se[z]=we[z]!==0?t.now():0}),yn(this,ee,(z,H)=>{if(we[H]){let G=we[H],de=se[H];z.ttl=G,z.start=de,z.now=ye||Oe();let xe=z.now-de;z.remainingTTL=G-xe}});let ye=0,Oe=()=>{let z=t.now();if(this.ttlResolution>0){ye=z;let H=setTimeout(()=>ye=0,this.ttlResolution);H.unref&&H.unref()}return z};this.getRemainingTTL=z=>{let H=Fe(this,C).get(z);if(H===void 0)return 0;let G=we[H],de=se[H];if(G===0||de===0)return 1/0;let xe=(ye||Oe())-de;return G-xe},yn(this,Y,z=>we[z]!==0&&se[z]!==0&&(ye||Oe())-se[z]>we[z])},Z=new WeakMap,ee=new WeakMap,ie=new WeakMap,Y=new WeakMap,gce=function(){let we=new u(Fe(this,v));yn(this,S,0),yn(this,j,we),yn(this,ae,se=>{yn(this,S,Fe(this,S)-we[se]),we[se]=0}),yn(this,le,(se,ye,Oe,z)=>{if(Nn(this,B,Ui).call(this,ye))return 0;if(!l(Oe))if(z){if(typeof z!="function")throw new TypeError("sizeCalculation must be a function");if(Oe=z(ye,se),!l(Oe))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return Oe}),yn(this,oe,(se,ye,Oe)=>{if(we[se]=ye,Fe(this,y)){let z=Fe(this,y)-we[se];for(;Fe(this,S)>z;)Nn(this,B,AC).call(this,!0)}yn(this,S,Fe(this,S)+we[se]),Oe&&(Oe.entrySize=ye,Oe.totalCalculatedSize=Fe(this,S))})},ae=new WeakMap,oe=new WeakMap,le=new WeakMap,pp=function*({allowStale:we=this.allowStale}={}){if(Fe(this,k))for(let se=Fe(this,O);!(!Nn(this,B,CR).call(this,se)||((we||!Fe(this,Y).call(this,se))&&(yield se),se===Fe(this,I)));)se=Fe(this,P)[se]},hp=function*({allowStale:we=this.allowStale}={}){if(Fe(this,k))for(let se=Fe(this,I);!(!Nn(this,B,CR).call(this,se)||((we||!Fe(this,Y).call(this,se))&&(yield se),se===Fe(this,O)));)se=Fe(this,M)[se]},CR=function(we){return we!==void 0&&Fe(this,C).get(Fe(this,E)[we])===we},AC=function(we){var z,H;let se=Fe(this,I),ye=Fe(this,E)[se],Oe=Fe(this,$)[se];return Fe(this,F)&&Nn(this,B,Ui).call(this,Oe)?Oe.__abortController.abort(new Error("evicted")):(Fe(this,V)||Fe(this,K))&&(Fe(this,V)&&((z=Fe(this,b))==null||z.call(this,Oe,ye,"evict")),Fe(this,K)&&((H=Fe(this,R))==null||H.push([Oe,ye,"evict"]))),Fe(this,ae).call(this,se),we&&(Fe(this,E)[se]=void 0,Fe(this,$)[se]=void 0,Fe(this,A).push(se)),Fe(this,k)===1?(yn(this,I,yn(this,O,0)),Fe(this,A).length=0):yn(this,I,Fe(this,M)[se]),Fe(this,C).delete(ye),Fh(this,k)._--,se},DC=function(we,se,ye,Oe){let z=se===void 0?void 0:Fe(this,$)[se];if(Nn(this,B,Ui).call(this,z))return z;let H=new a,{signal:G}=ye;G==null||G.addEventListener("abort",()=>H.abort(G.reason),{signal:H.signal});let de={signal:H.signal,options:ye,context:Oe},xe=(Ve,Be=!1)=>{let{aborted:Xe}=H.signal,Ke=ye.ignoreFetchAbort&&Ve!==void 0;if(ye.status&&(Xe&&!Be?(ye.status.fetchAborted=!0,ye.status.fetchError=H.signal.reason,Ke&&(ye.status.fetchAbortIgnored=!0)):ye.status.fetchResolved=!0),Xe&&!Ke&&!Be)return Ue(H.signal.reason);let qe=ge;return Fe(this,$)[se]===ge&&(Ve===void 0?qe.__staleWhileFetching?Fe(this,$)[se]=qe.__staleWhileFetching:this.delete(we):(ye.status&&(ye.status.fetchUpdated=!0),this.set(we,Ve,de.options))),Ve},he=Ve=>(ye.status&&(ye.status.fetchRejected=!0,ye.status.fetchError=Ve),Ue(Ve)),Ue=Ve=>{let{aborted:Be}=H.signal,Xe=Be&&ye.allowStaleOnFetchAbort,Ke=Xe||ye.allowStaleOnFetchRejection,qe=Ke||ye.noDeleteOnFetchRejection,Et=ge;if(Fe(this,$)[se]===ge&&(!qe||Et.__staleWhileFetching===void 0?this.delete(we):Xe||(Fe(this,$)[se]=Et.__staleWhileFetching)),Ke)return ye.status&&Et.__staleWhileFetching!==void 0&&(ye.status.returnedStale=!0),Et.__staleWhileFetching;if(Et.__returned===Et)throw Ve},We=(Ve,Be)=>{var Ke;let Xe=(Ke=Fe(this,_))==null?void 0:Ke.call(this,we,z,de);Xe&&Xe instanceof Promise&&Xe.then(qe=>Ve(qe===void 0?void 0:qe),Be),H.signal.addEventListener("abort",()=>{(!ye.ignoreFetchAbort||ye.allowStaleOnFetchAbort)&&(Ve(void 0),ye.allowStaleOnFetchAbort&&(Ve=qe=>xe(qe,!0)))})};ye.status&&(ye.status.fetchDispatched=!0);let ge=new Promise(We).then(xe,he),ze=Object.assign(ge,{__abortController:H,__staleWhileFetching:z,__returned:void 0});return se===void 0?(this.set(we,ze,{...de.options,status:void 0}),se=Fe(this,C).get(we)):Fe(this,$)[se]=ze,ze},Ui=function(we){if(!Fe(this,F))return!1;let se=we;return!!se&&se instanceof Promise&&se.hasOwnProperty("__staleWhileFetching")&&se.__abortController instanceof a},_R=function(we,se){Fe(this,P)[se]=we,Fe(this,M)[we]=se},v2=function(we){we!==Fe(this,O)&&(we===Fe(this,I)?yn(this,I,Fe(this,M)[we]):Nn(this,B,_R).call(this,Fe(this,P)[we],Fe(this,M)[we]),Nn(this,B,_R).call(this,Fe(this,O),we),yn(this,O,we))},be);e.LRUCache=p}),zf=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.ContainerIterator=e.Container=e.Base=void 0;var t=class{constructor(i=0){this.iteratorType=i}equals(i){return this.o===i.o}};e.ContainerIterator=t;var n=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};e.Base=n;var r=class extends n{};e.Container=r}),c7e=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=class extends t.Base{constructor(i=[]){super(),this.S=[];let a=this;i.forEach(function(o){a.push(o)})}clear(){this.i=0,this.S=[]}push(i){return this.S.push(i),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},r=n;e.default=r}),u7e=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=class extends t.Base{constructor(i=[]){super(),this.j=0,this.q=[];let a=this;i.forEach(function(o){a.push(o)})}clear(){this.q=[],this.i=this.j=0}push(i){let a=this.q.length;if(this.j/a>.5&&this.j+this.i>=a&&a>4096){let o=this.i;for(let s=0;s{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=class extends t.Base{constructor(i=[],a=function(s,l){return s>l?-1:s>1;for(let l=this.i-1>>1;l>=0;--l)this.k(l,s)}m(i){let a=this.C[i];for(;i>0;){let o=i-1>>1,s=this.C[o];if(this.v(s,a)<=0)break;this.C[i]=s,i=o}this.C[i]=a}k(i,a){let o=this.C[i];for(;i0&&(s=l,c=this.C[l]),this.v(c,o)>=0)break;this.C[i]=c,i=s}this.C[i]=o}clear(){this.i=0,this.C.length=0}push(i){this.C.push(i),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let i=this.C[0],a=this.C.pop();return this.i-=1,this.i&&(this.C[0]=a,this.k(0,this.i>>1)),i}top(){return this.C[0]}find(i){return this.C.indexOf(i)>=0}remove(i){let a=this.C.indexOf(i);return a<0?!1:(a===0?this.pop():a===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(a,1,this.C.pop()),this.i-=1,this.m(a),this.k(a,this.i>>1)),!0)}updateItem(i){let a=this.C.indexOf(i);return a<0?!1:(this.m(a),this.k(a,this.i>>1),!0)}toArray(){return[...this.C]}},r=n;e.default=r}),UF=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=class extends t.Container{},r=n;e.default=r}),Hf=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=t;function t(){throw new RangeError("Iterator access denied!")}}),vce=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var t=zf(),n=Hf(),r=class extends t.ContainerIterator{constructor(i,a){super(a),this.o=i,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,n.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,n.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,n.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,n.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(i){this.container.setElementByPos(this.o,i)}};e.RandomIterator=r}),f7e=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(UF()),n=vce();function r(s){return s&&s.t?s:{default:s}}var i=class yce extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new yce(this.o,this.container,this.iteratorType)}},a=class extends t.default{constructor(s=[],l=!0){if(super(),Array.isArray(s))this.J=l?[...s]:s,this.i=s.length;else{this.J=[];let c=this;s.forEach(function(u){c.pushBack(u)})}}clear(){this.i=0,this.J.length=0}begin(){return new i(0,this)}end(){return new i(this.i,this)}rBegin(){return new i(this.i-1,this,1)}rEnd(){return new i(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J[s]}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J.splice(s,1),this.i-=1,this.i}eraseElementByValue(s){let l=0;for(let c=0;cthis.i-1)throw new RangeError;this.J[s]=l}insert(s,l,c=1){if(s<0||s>this.i)throw new RangeError;return this.J.splice(s,0,...new Array(c).fill(l)),this.i+=c,this.i}find(s){for(let l=0;l{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(UF()),n=zf(),r=Hf();function i(l){return l&&l.t?l:{default:l}}var a=class bce extends n.ContainerIterator{constructor(c,u,f,p){super(p),this.o=c,this.h=u,this.container=f,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.l}set pointer(c){this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.l=c}copy(){return new bce(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.default{constructor(l=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let c=this;l.forEach(function(u){c.pushBack(u)})}V(l){let{L:c,B:u}=l;c.B=u,u.L=c,l===this.p&&(this.p=u),l===this._&&(this._=c),this.i-=1}G(l,c){let u=c.B,f={l,L:c,B:u};c.B=f,u.L=f,c===this.h&&(this.p=f),u===this.h&&(this._=f),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new a(this.p,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this._,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return c.l}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return this.V(c),this.i}eraseElementByValue(l){let c=this.p;for(;c!==this.h;)c.l===l&&this.V(c),c=c.B;return this.i}eraseElementByIterator(l){let c=l.o;return c===this.h&&(0,r.throwIteratorAccessError)(),l=l.next(),this.V(c),l}pushBack(l){return this.G(l,this._),this.i}popBack(){if(this.i===0)return;let l=this._.l;return this.V(this._),l}pushFront(l){return this.G(l,this.h),this.i}popFront(){if(this.i===0)return;let l=this.p.l;return this.V(this.p),l}setElementByPos(l,c){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;u.l=c}insert(l,c,u=1){if(l<0||l>this.i)throw new RangeError;if(u<=0)return this.i;if(l===0)for(;u--;)this.pushFront(c);else if(l===this.i)for(;u--;)this.pushBack(c);else{let f=this.p;for(let h=1;h{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(UF()),n=vce();function r(s){return s&&s.t?s:{default:s}}var i=class wce extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new wce(this.o,this.container,this.iteratorType)}},a=class extends t.default{constructor(s=[],l=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let c=(()=>{if(typeof s.length=="number")return s.length;if(typeof s.size=="number")return s.size;if(typeof s.size=="function")return s.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=l,this.P=Math.max(Math.ceil(c/this.F),1);for(let p=0;p>1)-(u>>1),this.D=this.N=this.F-c%this.F>>1;let f=this;s.forEach(function(p){f.pushBack(p)})}T(){let s=[],l=Math.max(this.P>>1,1);for(let c=0;c>1}begin(){return new i(0,this)}end(){return new i(this.i,this)}rBegin(){return new i(this.i-1,this,1)}rEnd(){return new i(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(s){return this.i&&(this.N0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,s}pushFront(s){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=s,this.i}popFront(){if(this.i===0)return;let s=this.A[this.j][this.D];return this.i!==1&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:l,curNodePointerIndex:c}=this.O(s);return this.A[l][c]}setElementByPos(s,l){if(s<0||s>this.i-1)throw new RangeError;let{curNodeBucketIndex:c,curNodePointerIndex:u}=this.O(s);this.A[c][u]=l}insert(s,l,c=1){if(s<0||s>this.i)throw new RangeError;if(s===0)for(;c--;)this.pushFront(l);else if(s===this.i)for(;c--;)this.pushBack(l);else{let u=[];for(let f=s;fthis.i-1)throw new RangeError;if(s===0)this.popFront();else if(s===this.i-1)this.popBack();else{let l=[];for(let u=s+1;us;)this.popBack();return this.i}sort(s){let l=[];for(let c=0;c{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.TreeNodeEnableIndex=e.TreeNode=void 0;var t=class{constructor(r,i){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=r,this.l=i}L(){let r=this;if(r.ee===1&&r.tt.tt===r)r=r.W;else if(r.U)for(r=r.U;r.W;)r=r.W;else{let i=r.tt;for(;i.U===r;)r=i,i=r.tt;r=i}return r}B(){let r=this;if(r.W){for(r=r.W;r.U;)r=r.U;return r}else{let i=r.tt;for(;i.W===r;)r=i,i=r.tt;return r.W!==i?i:r}}te(){let r=this.tt,i=this.W,a=i.U;return r.tt===this?r.tt=i:r.U===this?r.U=i:r.W=i,i.tt=r,i.U=this,this.tt=i,this.W=a,a&&(a.tt=this),i}se(){let r=this.tt,i=this.U,a=i.W;return r.tt===this?r.tt=i:r.U===this?r.U=i:r.W=i,i.tt=r,i.W=this,this.tt=i,this.U=a,a&&(a.tt=this),i}};e.TreeNode=t;var n=class extends t{constructor(){super(...arguments),this.rt=1}te(){let r=super.te();return this.ie(),r.ie(),r}se(){let r=super.se();return this.ie(),r.ie(),r}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};e.TreeNodeEnableIndex=n}),xce=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=m7e(),n=zf(),r=Hf(),i=class extends n.Container{constructor(o=function(l,c){return lc?1:0},s=!1){super(),this.Y=void 0,this.v=o,s?(this.re=t.TreeNodeEnableIndex,this.M=function(l,c,u){let f=this.ne(l,c,u);if(f){let p=f.tt;for(;p!==this.h;)p.rt+=1,p=p.tt;let h=this.he(f);if(h){let{parentNode:m,grandParent:g,curNode:v}=h;m.ie(),g.ie(),v.ie()}}return this.i},this.V=function(l){let c=this.fe(l);for(;c!==this.h;)c.rt-=1,c=c.tt}):(this.re=t.TreeNode,this.M=function(l,c,u){let f=this.ne(l,c,u);return f&&this.he(f),this.i},this.V=this.fe),this.h=new this.re}X(o,s){let l=this.h;for(;o;){let c=this.v(o.u,s);if(c<0)o=o.W;else if(c>0)l=o,o=o.U;else return o}return l}Z(o,s){let l=this.h;for(;o;)this.v(o.u,s)<=0?o=o.W:(l=o,o=o.U);return l}$(o,s){let l=this.h;for(;o;){let c=this.v(o.u,s);if(c<0)l=o,o=o.W;else if(c>0)o=o.U;else return o}return l}rr(o,s){let l=this.h;for(;o;)this.v(o.u,s)<0?(l=o,o=o.W):o=o.U;return l}ue(o){for(;;){let s=o.tt;if(s===this.h)return;if(o.ee===1){o.ee=0;return}if(o===s.U){let l=s.W;if(l.ee===1)l.ee=0,s.ee=1,s===this.Y?this.Y=s.te():s.te();else if(l.W&&l.W.ee===1){l.ee=s.ee,s.ee=0,l.W.ee=0,s===this.Y?this.Y=s.te():s.te();return}else l.U&&l.U.ee===1?(l.ee=1,l.U.ee=0,l.se()):(l.ee=1,o=s)}else{let l=s.U;if(l.ee===1)l.ee=0,s.ee=1,s===this.Y?this.Y=s.se():s.se();else if(l.U&&l.U.ee===1){l.ee=s.ee,s.ee=0,l.U.ee=0,s===this.Y?this.Y=s.se():s.se();return}else l.W&&l.W.ee===1?(l.ee=1,l.W.ee=0,l.te()):(l.ee=1,o=s)}}}fe(o){if(this.i===1)return this.clear(),this.h;let s=o;for(;s.U||s.W;){if(s.W)for(s=s.W;s.U;)s=s.U;else s=s.U;[o.u,s.u]=[s.u,o.u],[o.l,s.l]=[s.l,o.l],o=s}this.h.U===s?this.h.U=s.tt:this.h.W===s&&(this.h.W=s.tt),this.ue(s);let l=s.tt;return s===l.U?l.U=void 0:l.W=void 0,this.i-=1,this.Y.ee=0,l}oe(o,s){return o===void 0?!1:this.oe(o.U,s)||s(o)?!0:this.oe(o.W,s)}he(o){for(;;){let s=o.tt;if(s.ee===0)return;let l=s.tt;if(s===l.U){let c=l.W;if(c&&c.ee===1){if(c.ee=s.ee=0,l===this.Y)return;l.ee=1,o=l;continue}else if(o===s.W){if(o.ee=0,o.U&&(o.U.tt=s),o.W&&(o.W.tt=l),s.W=o.U,l.U=o.W,o.U=s,o.W=l,l===this.Y)this.Y=o,this.h.tt=o;else{let u=l.tt;u.U===l?u.U=o:u.W=o}return o.tt=l.tt,s.tt=o,l.tt=o,l.ee=1,{parentNode:s,grandParent:l,curNode:o}}else s.ee=0,l===this.Y?this.Y=l.se():l.se(),l.ee=1}else{let c=l.U;if(c&&c.ee===1){if(c.ee=s.ee=0,l===this.Y)return;l.ee=1,o=l;continue}else if(o===s.U){if(o.ee=0,o.U&&(o.U.tt=l),o.W&&(o.W.tt=s),l.W=o.U,s.U=o.W,o.U=l,o.W=s,l===this.Y)this.Y=o,this.h.tt=o;else{let u=l.tt;u.U===l?u.U=o:u.W=o}return o.tt=l.tt,s.tt=o,l.tt=o,l.ee=1,{parentNode:s,grandParent:l,curNode:o}}else s.ee=0,l===this.Y?this.Y=l.te():l.te(),l.ee=1}return}}ne(o,s,l){if(this.Y===void 0){this.i+=1,this.Y=new this.re(o,s),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let c,u=this.h.U,f=this.v(u.u,o);if(f===0){u.l=s;return}else if(f>0)u.U=new this.re(o,s),u.U.tt=u,c=u.U,this.h.U=c;else{let p=this.h.W,h=this.v(p.u,o);if(h===0){p.l=s;return}else if(h<0)p.W=new this.re(o,s),p.W.tt=p,c=p.W,this.h.W=c;else{if(l!==void 0){let m=l.o;if(m!==this.h){let g=this.v(m.u,o);if(g===0){m.l=s;return}else if(g>0){let v=m.L(),y=this.v(v.u,o);if(y===0){v.l=s;return}else y<0&&(c=new this.re(o,s),v.W===void 0?(v.W=c,c.tt=v):(m.U=c,c.tt=m))}}}if(c===void 0)for(c=this.Y;;){let m=this.v(c.u,o);if(m>0){if(c.U===void 0){c.U=new this.re(o,s),c.U.tt=c,c=c.U;break}c=c.U}else if(m<0){if(c.W===void 0){c.W=new this.re(o,s),c.W.tt=c,c=c.W;break}c=c.W}else{c.l=s;return}}}}return this.i+=1,c}I(o,s){for(;o;){let l=this.v(o.u,s);if(l<0)o=o.W;else if(l>0)o=o.U;else return o}return o||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(o,s){let l=o.o;if(l===this.h&&(0,r.throwIteratorAccessError)(),this.i===1)return l.u=s,!0;if(l===this.h.U)return this.v(l.B().u,s)>0?(l.u=s,!0):!1;if(l===this.h.W)return this.v(l.L().u,s)<0?(l.u=s,!0):!1;let c=l.L().u;if(this.v(c,s)>=0)return!1;let u=l.B().u;return this.v(u,s)<=0?!1:(l.u=s,!0)}eraseElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let s=0,l=this;return this.oe(this.Y,function(c){return o===s?(l.V(c),!0):(s+=1,!1)}),this.i}eraseElementByKey(o){if(this.i===0)return!1;let s=this.I(this.Y,o);return s===this.h?!1:(this.V(s),!0)}eraseElementByIterator(o){let s=o.o;s===this.h&&(0,r.throwIteratorAccessError)();let l=s.W===void 0;return o.iteratorType===0?l&&o.next():(!l||s.U===void 0)&&o.next(),this.V(s),o}forEach(o){let s=0;for(let l of this)o(l,s++,this)}getElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let s,l=0;for(let c of this){if(l===o){s=c;break}l+=1}return s}getHeight(){if(this.i===0)return 0;let o=function(s){return s?Math.max(o(s.U),o(s.W))+1:0};return o(this.Y)}},a=i;e.default=a}),Sce=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=Hf(),r=class extends t.ContainerIterator{constructor(a,o,s){super(s),this.o=a,this.h=o,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let a=this.o,o=this.h.tt;if(a===this.h)return o?o.rt-1:0;let s=0;for(a.U&&(s+=a.U.rt);a!==o;){let l=a.tt;a===l.W&&(s+=1,l.U&&(s+=l.U.rt)),a=l}return s}},i=r;e.default=i}),g7e=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(xce()),n=i(Sce()),r=Hf();function i(l){return l&&l.t?l:{default:l}}var a=class Cce extends n.default{constructor(c,u,f,p){super(c,u,p),this.container=f}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new Cce(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.default{constructor(l=[],c,u){super(c,u);let f=this;l.forEach(function(p){f.insert(p)})}*K(l){l!==void 0&&(yield*this.K(l.U),yield l.u,yield*this.K(l.W))}begin(){return new a(this.h.U||this.h,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this.h.W||this.h,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(l,c){return this.M(l,void 0,c)}find(l){let c=this.I(this.Y,l);return new a(c,this.h,this)}lowerBound(l){let c=this.X(this.Y,l);return new a(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new a(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new a(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new a(c,this.h,this)}union(l){let c=this;return l.forEach(function(u){c.insert(u)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=o;e.default=s}),v7e=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(xce()),n=i(Sce()),r=Hf();function i(l){return l&&l.t?l:{default:l}}var a=class _ce extends n.default{constructor(c,u,f,p){super(c,u,p),this.container=f}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,f){if(f==="0")return c.o.u;if(f==="1")return c.o.l},set(u,f,p){if(f!=="1")throw new TypeError("props must be 1");return c.o.l=p,!0}})}copy(){return new _ce(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.default{constructor(l=[],c,u){super(c,u);let f=this;l.forEach(function(p){f.setElement(p[0],p[1])})}*K(l){l!==void 0&&(yield*this.K(l.U),yield[l.u,l.l],yield*this.K(l.W))}begin(){return new a(this.h.U||this.h,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this.h.W||this.h,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){if(this.i===0)return;let l=this.h.U;return[l.u,l.l]}back(){if(this.i===0)return;let l=this.h.W;return[l.u,l.l]}lowerBound(l){let c=this.X(this.Y,l);return new a(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new a(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new a(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new a(c,this.h,this)}setElement(l,c,u){return this.M(l,c,u)}find(l){let c=this.I(this.Y,l);return new a(c,this.h,this)}getElementByKey(l){return this.I(this.Y,l).l}union(l){let c=this;return l.forEach(function(u){c.setElement(u[0],u[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=o;e.default=s}),kce=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=t;function t(n){let r=typeof n;return r==="object"&&n!==null||r==="function"}}),Ece=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var t=zf(),n=i(kce()),r=Hf();function i(s){return s&&s.t?s:{default:s}}var a=class extends t.ContainerIterator{constructor(s,l,c){super(c),this.o=s,this.h=l,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this})}};e.HashContainerIterator=a;var o=class extends t.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(s){let{L:l,B:c}=s;l.B=c,c.L=l,s===this.p&&(this.p=c),s===this._&&(this._=l),this.i-=1}M(s,l,c){c===void 0&&(c=(0,n.default)(s));let u;if(c){let f=s[this.HASH_TAG];if(f!==void 0)return this.H[f].l=l,this.i;Object.defineProperty(s,this.HASH_TAG,{value:this.H.length,configurable:!0}),u={u:s,l,L:this._,B:this.h},this.H.push(u)}else{let f=this.g[s];if(f)return f.l=l,this.i;u={u:s,l,L:this._,B:this.h},this.g[s]=u}return this.i===0?(this.p=u,this.h.B=u):this._.B=u,this._=u,this.h.L=u,++this.i}I(s,l){if(l===void 0&&(l=(0,n.default)(s)),l){let c=s[this.HASH_TAG];return c===void 0?this.h:this.H[c]}else return this.g[s]||this.h}clear(){let s=this.HASH_TAG;this.H.forEach(function(l){delete l.u[s]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(s,l){let c;if(l===void 0&&(l=(0,n.default)(s)),l){let u=s[this.HASH_TAG];if(u===void 0)return!1;delete s[this.HASH_TAG],c=this.H[u],delete this.H[u]}else{if(c=this.g[s],c===void 0)return!1;delete this.g[s]}return this.V(c),!0}eraseElementByIterator(s){let l=s.o;return l===this.h&&(0,r.throwIteratorAccessError)(),this.V(l),s.next()}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let l=this.p;for(;s--;)l=l.B;return this.V(l),this.i}};e.HashContainer=o}),y7e=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Ece(),n=Hf(),r=class $ce extends t.HashContainerIterator{constructor(s,l,c,u){super(s,l,u),this.container=c}get pointer(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.u}copy(){return new $ce(this.o,this.h,this.container,this.iteratorType)}},i=class extends t.HashContainer{constructor(o=[]){super();let s=this;o.forEach(function(l){s.insert(l)})}begin(){return new r(this.p,this.h,this)}end(){return new r(this.h,this.h,this)}rBegin(){return new r(this._,this.h,this,1)}rEnd(){return new r(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(o,s){return this.M(o,void 0,s)}getElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let s=this.p;for(;o--;)s=s.B;return s.u}find(o,s){let l=this.I(o,s);return new r(l,this.h,this)}forEach(o){let s=0,l=this.p;for(;l!==this.h;)o(l.u,s++,this),l=l.B}[Symbol.iterator](){return(function*(){let o=this.p;for(;o!==this.h;)yield o.u,o=o.B}).bind(this)()}},a=i;e.default=a}),b7e=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Ece(),n=i(kce()),r=Hf();function i(l){return l&&l.t?l:{default:l}}var a=class Mce extends t.HashContainerIterator{constructor(c,u,f,p){super(c,u,p),this.container=f}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,f){if(f==="0")return c.o.u;if(f==="1")return c.o.l},set(u,f,p){if(f!=="1")throw new TypeError("props must be 1");return c.o.l=p,!0}})}copy(){return new Mce(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.HashContainer{constructor(l=[]){super();let c=this;l.forEach(function(u){c.setElement(u[0],u[1])})}begin(){return new a(this.p,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this._,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(l,c,u){return this.M(l,c,u)}getElementByKey(l,c){if(c===void 0&&(c=(0,n.default)(l)),c){let f=l[this.HASH_TAG];return f!==void 0?this.H[f].l:void 0}let u=this.g[l];return u?u.l:void 0}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return[c.u,c.l]}find(l,c){let u=this.I(l,c);return new a(u,this.h,this)}forEach(l){let c=0,u=this.p;for(;u!==this.h;)l([u.u,u.l],c++,this),u=u.B}[Symbol.iterator](){return(function*(){let l=this.p;for(;l!==this.h;)yield[l.u,l.l],l=l.B}).bind(this)()}},s=o;e.default=s}),w7e=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"t",{value:!0}),Object.defineProperty(e,"Deque",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"HashMap",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"HashSet",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"LinkList",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"OrderedMap",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"OrderedSet",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"PriorityQueue",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"Queue",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"Vector",{enumerable:!0,get:function(){return i.default}});var t=f(c7e()),n=f(u7e()),r=f(d7e()),i=f(f7e()),a=f(p7e()),o=f(h7e()),s=f(g7e()),l=f(v7e()),c=f(y7e()),u=f(b7e());function f(p){return p&&p.t?p:{default:p}}}),x7e=ln((e,t)=>{Qt(),en(),Jt();var n=w7e().OrderedSet,r=Of()("number-allocator:trace"),i=Of()("number-allocator:error");function a(s,l){this.low=s,this.high=l}a.prototype.equals=function(s){return this.low===s.low&&this.high===s.high},a.prototype.compare=function(s){return this.lowc.compare(u)),r("Create"),this.clear()}o.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},o.prototype.alloc=function(){if(this.ss.size()===0)return r("alloc():empty"),null;let s=this.ss.begin(),l=s.pointer.low,c=s.pointer.high,u=l;return u+1<=c?this.ss.updateKeyByIterator(s,new a(l+1,c)):this.ss.eraseElementByPos(0),r("alloc():"+u),u},o.prototype.use=function(s){let l=new a(s,s),c=this.ss.lowerBound(l);if(!c.equals(this.ss.end())){let u=c.pointer.low,f=c.pointer.high;return c.pointer.equals(l)?(this.ss.eraseElementByIterator(c),r("use():"+s),!0):u>s?!1:u===s?(this.ss.updateKeyByIterator(c,new a(u+1,f)),r("use():"+s),!0):f===s?(this.ss.updateKeyByIterator(c,new a(u,f-1)),r("use():"+s),!0):(this.ss.updateKeyByIterator(c,new a(s+1,f)),this.ss.insert(new a(u,s-1)),r("use():"+s),!0)}return r("use():failed"),!1},o.prototype.free=function(s){if(sthis.max){i("free():"+s+" is out of range");return}let l=new a(s,s),c=this.ss.upperBound(l);if(c.equals(this.ss.end())){if(c.equals(this.ss.begin())){this.ss.insert(l);return}c.pre();let u=c.pointer.high;c.pointer.high+1===s?this.ss.updateKeyByIterator(c,new a(u,s)):this.ss.insert(l)}else if(c.equals(this.ss.begin()))if(s+1===c.pointer.low){let u=c.pointer.high;this.ss.updateKeyByIterator(c,new a(s,u))}else this.ss.insert(l);else{let u=c.pointer.low,f=c.pointer.high;c.pre();let p=c.pointer.low;c.pointer.high+1===s?s+1===u?(this.ss.eraseElementByIterator(c),this.ss.updateKeyByIterator(c,new a(p,f))):this.ss.updateKeyByIterator(c,new a(p,s)):s+1===u?(this.ss.eraseElementByIterator(c.next()),this.ss.insert(new a(s,f))):this.ss.insert(l)}r("free():"+s)},o.prototype.clear=function(){r("clear()"),this.ss.clear(),this.ss.insert(new a(this.min,this.max))},o.prototype.intervalCount=function(){return this.ss.size()},o.prototype.dump=function(){console.log("length:"+this.ss.size());for(let s of this.ss)console.log(s)},t.exports=o}),Tce=ln((e,t)=>{Qt(),en(),Jt();var n=x7e();t.exports.NumberAllocator=n}),S7e=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0});var t=l7e(),n=Tce(),r=class{constructor(i){i>0&&(this.aliasToTopic=new t.LRUCache({max:i}),this.topicToAlias={},this.numberAllocator=new n.NumberAllocator(1,i),this.max=i,this.length=0)}put(i,a){if(a===0||a>this.max)return!1;let o=this.aliasToTopic.get(a);return o&&delete this.topicToAlias[o],this.aliasToTopic.set(a,i),this.topicToAlias[i]=a,this.numberAllocator.use(a),this.length=this.aliasToTopic.size,!0}getTopicByAlias(i){return this.aliasToTopic.get(i)}getAliasByTopic(i){let a=this.topicToAlias[i];return typeof a<"u"&&this.aliasToTopic.get(a),a}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};e.default=r}),C7e=ln(e=>{Qt(),en(),Jt();var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var n=mE(),r=t(S7e()),i=hy(),a=(o,s)=>{o.log("_handleConnack");let{options:l}=o,c=l.protocolVersion===5?s.reasonCode:s.returnCode;if(clearTimeout(o.connackTimer),delete o.topicAliasSend,s.properties){if(s.properties.topicAliasMaximum){if(s.properties.topicAliasMaximum>65535){o.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}s.properties.topicAliasMaximum>0&&(o.topicAliasSend=new r.default(s.properties.topicAliasMaximum))}s.properties.serverKeepAlive&&l.keepalive&&(l.keepalive=s.properties.serverKeepAlive),s.properties.maximumPacketSize&&(l.properties||(l.properties={}),l.properties.maximumPacketSize=s.properties.maximumPacketSize)}if(c===0)o.reconnecting=!1,o._onConnect(s);else if(c>0){let u=new i.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[c]}`,c);o.emit("error",u),o.options.reconnectOnConnackError&&o._cleanUp(!0)}};e.default=a}),_7e=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(n,r,i)=>{n.log("handling pubrel packet");let a=typeof i<"u"?i:n.noop,{messageId:o}=r,s={cmd:"pubcomp",messageId:o};n.incomingStore.get(r,(l,c)=>{l?n._sendPacket(s,a):(n.emit("message",c.topic,c.payload,c),n.handleMessage(c,u=>{if(u)return a(u);n.incomingStore.del(c,n.noop),n._sendPacket(s,a)}))})};e.default=t}),k7e=ln(e=>{Qt(),en(),Jt();var t=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(a7e()),r=t(s7e()),i=t(C7e()),a=t(mE()),o=t(_7e()),s=(l,c,u)=>{let{options:f}=l;if(f.protocolVersion===5&&f.properties&&f.properties.maximumPacketSize&&f.properties.maximumPacketSize{Qt(),en(),Jt();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypedEventEmitter=void 0;var n=t((py(),Ci(Lg))),r=hy(),i=class{};e.TypedEventEmitter=i,(0,r.applyMixin)(i,n.default)}),gE=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0}),e.isReactNativeBrowser=e.isWebWorker=void 0;var t=()=>{var a;return typeof window<"u"?typeof navigator<"u"&&((a=navigator.userAgent)===null||a===void 0?void 0:a.toLowerCase().indexOf(" electron/"))>-1&&li!=null&&li.versions?!Object.prototype.hasOwnProperty.call(li.versions,"electron"):typeof window.document<"u":!1},n=()=>{var a,o;return!!(typeof self=="object"&&!((o=(a=self==null?void 0:self.constructor)===null||a===void 0?void 0:a.name)===null||o===void 0)&&o.includes("WorkerGlobalScope"))},r=()=>typeof navigator<"u"&&navigator.product==="ReactNative",i=t()||n()||r();e.isWebWorker=n(),e.isReactNativeBrowser=r(),e.default=i}),$7e=ln((e,t)=>{Qt(),en(),Jt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.fastUniqueNumbers={}))}(e,function(n){var r=function(h){return function(m){var g=h(m);return m.add(g),g}},i=function(h){return function(m,g){return h.set(m,g),g}},a=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,o=536870912,s=o*2,l=function(h,m){return function(g){var v=m.get(g),y=v===void 0?g.size:va)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;g.has(y);)y=Math.floor(Math.random()*a);return h(g,y)}},c=new WeakMap,u=i(c),f=l(u,c),p=r(f);n.addUniqueNumber=p,n.generateUniqueNumber=f})}),M7e=ln((e,t)=>{Qt(),en(),Jt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,$7e()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.workerTimersBroker={},n.fastUniqueNumbers))}(e,function(n,r){var i=function(s){return s.method!==void 0&&s.method==="call"},a=function(s){return s.error===null&&typeof s.id=="number"},o=function(s){var l=new Map([[0,function(){}]]),c=new Map([[0,function(){}]]),u=new Map,f=new Worker(s);f.addEventListener("message",function(v){var y=v.data;if(i(y)){var b=y.params,w=b.timerId,_=b.timerType;if(_==="interval"){var k=l.get(w);if(typeof k=="number"){var S=u.get(k);if(S===void 0||S.timerId!==w||S.timerType!==_)throw new Error("The timer is in an undefined state.")}else if(typeof k<"u")k();else throw new Error("The timer is in an undefined state.")}else if(_==="timeout"){var C=c.get(w);if(typeof C=="number"){var E=u.get(C);if(E===void 0||E.timerId!==w||E.timerType!==_)throw new Error("The timer is in an undefined state.")}else if(typeof C<"u")C(),c.delete(w);else throw new Error("The timer is in an undefined state.")}}else if(a(y)){var $=y.id,M=u.get($);if(M===void 0)throw new Error("The timer is in an undefined state.");var P=M.timerId,I=M.timerType;u.delete($),I==="interval"?l.delete(P):c.delete(P)}else{var O=y.error.message;throw new Error(O)}});var p=function(v){var y=r.generateUniqueNumber(u);u.set(y,{timerId:v,timerType:"interval"}),l.set(v,y),f.postMessage({id:y,method:"clear",params:{timerId:v,timerType:"interval"}})},h=function(v){var y=r.generateUniqueNumber(u);u.set(y,{timerId:v,timerType:"timeout"}),c.set(v,y),f.postMessage({id:y,method:"clear",params:{timerId:v,timerType:"timeout"}})},m=function(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,b=r.generateUniqueNumber(l);return l.set(b,function(){v(),typeof l.get(b)=="function"&&f.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:b,timerType:"interval"}})}),f.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:b,timerType:"interval"}}),b},g=function(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,b=r.generateUniqueNumber(c);return c.set(b,v),f.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:b,timerType:"timeout"}}),b};return{clearInterval:p,clearTimeout:h,setInterval:m,setTimeout:g}};n.load=o})}),T7e=ln((e,t)=>{Qt(),en(),Jt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,M7e()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.workerTimers={},n.workerTimersBroker))}(e,function(n,r){var i=function(f,p){var h=null;return function(){if(h!==null)return h;var m=new Blob([p],{type:"application/javascript; charset=utf-8"}),g=URL.createObjectURL(m);return h=f(g),setTimeout(function(){return URL.revokeObjectURL(g)}),h}},a=`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`,o=i(r.load,a),s=function(f){return o().clearInterval(f)},l=function(f){return o().clearTimeout(f)},c=function(){var f;return(f=o()).setInterval.apply(f,arguments)},u=function(){var f;return(f=o()).setTimeout.apply(f,arguments)};n.clearInterval=s,n.clearTimeout=l,n.setInterval=c,n.setTimeout=u})}),P7e=ln(e=>{Qt(),en(),Jt();var t=e&&e.__createBinding||(Object.create?function(c,u,f,p){p===void 0&&(p=f);var h=Object.getOwnPropertyDescriptor(u,f);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(c,p,h)}:function(c,u,f,p){p===void 0&&(p=f),c[p]=u[f]}),n=e&&e.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),r=e&&e.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var f in c)f!=="default"&&Object.prototype.hasOwnProperty.call(c,f)&&t(u,c,f);return n(u,c),u};Object.defineProperty(e,"__esModule",{value:!0});var i=r(gE()),a=T7e(),o={set:a.setInterval,clear:a.clearInterval},s={set:(c,u)=>setInterval(c,u),clear:c=>clearInterval(c)},l=c=>{switch(c){case"native":return s;case"worker":return o;case"auto":default:return i.default&&!i.isWebWorker&&!i.isReactNativeBrowser?o:s}};e.default=l}),Pce=ln(e=>{Qt(),en(),Jt();var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(P7e()),r=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(i,a){this.destroyed=!1,this.client=i,this.timer=typeof a=="object"&&"set"in a&&"clear"in a?a:(0,n.default)(a),this.setKeepalive(i.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(i){if(i*=1e3,isNaN(i)||i<=0||i>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${i}`);this._keepalive=i,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${i}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let i=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+i,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}};e.default=r}),kR=ln(e=>{Qt(),en(),Jt();var t=e&&e.__createBinding||(Object.create?function(k,S,C,E){E===void 0&&(E=C);var $=Object.getOwnPropertyDescriptor(S,C);(!$||("get"in $?!S.__esModule:$.writable||$.configurable))&&($={enumerable:!0,get:function(){return S[C]}}),Object.defineProperty(k,E,$)}:function(k,S,C,E){E===void 0&&(E=C),k[E]=S[C]}),n=e&&e.__setModuleDefault||(Object.create?function(k,S){Object.defineProperty(k,"default",{enumerable:!0,value:S})}:function(k,S){k.default=S}),r=e&&e.__importStar||function(k){if(k&&k.__esModule)return k;var S={};if(k!=null)for(var C in k)C!=="default"&&Object.prototype.hasOwnProperty.call(k,C)&&t(S,k,C);return n(S,k),S},i=e&&e.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(e,"__esModule",{value:!0});var a=i(b$e()),o=i(t7e()),s=i(pce()),l=Bg(),c=i(r7e()),u=r(i7e()),f=i(Of()),p=i(hce()),h=i(k7e()),m=hy(),g=E7e(),v=i(Pce()),y=r(gE()),b=globalThis.setImmediate||((...k)=>{let S=k.shift();(0,m.nextTick)(()=>{S(...k)})}),w={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},_=class ER extends g.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(S,C){super(),this.options=C||{};for(let E in w)typeof this.options[E]>"u"?this.options[E]=w[E]:this.options[E]=C[E];this.log=this.options.log||(0,f.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",ER.VERSION),y.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",y.default?"browser":"node"),this.log("MqttClient :: options.protocol",C.protocol),this.log("MqttClient :: options.protocolVersion",C.protocolVersion),this.log("MqttClient :: options.username",C.username),this.log("MqttClient :: options.keepalive",C.keepalive),this.log("MqttClient :: options.reconnectPeriod",C.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",C.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",C.properties?C.properties.topicAliasMaximum:void 0),this.options.clientId=typeof C.clientId=="string"?C.clientId:ER.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=C.protocolVersion===5&&C.customHandleAcks?C.customHandleAcks:(...E)=>{E[3](null,0)},this.options.writeCache||(o.default.writeToStream.cacheNumbers=!1),this.streamBuilder=S,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new s.default:this.options.messageIdProvider,this.outgoingStore=C.outgoingStore||new p.default,this.incomingStore=C.incomingStore||new p.default,this.queueQoSZero=C.queueQoSZero===void 0?!0:C.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,C.properties&&C.properties.topicAliasMaximum>0&&(C.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new a.default(C.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:E}=this,$=()=>{let M=E.shift();this.log("deliver :: entry %o",M);let P=null;if(!M){this._resubscribe();return}P=M.packet,this.log("deliver :: call _sendPacket for %o",P);let I=!0;P.messageId&&P.messageId!==0&&(this.messageIdProvider.register(P.messageId)||(I=!1)),I?this._sendPacket(P,O=>{M.cb&&M.cb(O),$()}):(this.log("messageId: %d has already used. The message is skipped and removed.",P.messageId),$())};this.log("connect :: sending queued packets"),$()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(S,C){C()}handleMessage(S,C){C()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var S;let C=new l.Writable,E=o.default.parser(this.options),$=null,M=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new p.default,this.outgoingStore=this.options.outgoingStore||new p.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),E.on("packet",R=>{this.log("parser :: on packet push to packets array."),M.push(R)});let P=()=>{this.log("work :: getting next packet in queue");let R=M.shift();if(R)this.log("work :: packet pulled from queue"),(0,h.default)(this,R,I);else{this.log("work :: no packets in queue");let j=$;$=null,this.log("work :: done flag is %s",!!j),j&&j()}},I=()=>{if(M.length)(0,m.nextTick)(P);else{let R=$;$=null,R()}};C._write=(R,j,N)=>{$=N,this.log("writable stream :: parsing buffer"),E.parse(R),P()};let O=R=>{this.log("streamErrorHandler :: error",R.message),R.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",R)):this.noop(R)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(C),this.stream.on("error",O),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let A={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(A.will=Object.assign(Object.assign({},this.options.will),{payload:(S=this.options.will)===null||S===void 0?void 0:S.payload})),this.topicAliasRecv&&(A.properties||(A.properties={}),this.topicAliasRecv&&(A.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(A),E.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){let R=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(R)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(S,C,E,$){this.log("publish :: message `%s` to topic `%s`",C,S);let{options:M}=this;typeof E=="function"&&($=E,E=null),E=E||{},E=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),E);let{qos:P,retain:I,dup:O,properties:A,cbStorePut:R}=E;if(this._checkDisconnecting($))return this;let j=()=>{let N=0;if((P===1||P===2)&&(N=this._nextId(),N===null))return this.log("No messageId left"),!1;let D={cmd:"publish",topic:S,payload:C,qos:P,retain:I,messageId:N,dup:O};switch(M.protocolVersion===5&&(D.properties=A),this.log("publish :: qos",P),P){case 1:case 2:this.outgoing[D.messageId]={volatile:!1,cb:$||this.noop},this.log("MqttClient:publish: packet cmd: %s",D.cmd),this._sendPacket(D,void 0,R);break;default:this.log("MqttClient:publish: packet cmd: %s",D.cmd),this._sendPacket(D,$,R);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!j())&&this._storeProcessingQueue.push({invoke:j,cbStorePut:E.cbStorePut,callback:$}),this}publishAsync(S,C,E){return new Promise(($,M)=>{this.publish(S,C,E,(P,I)=>{P?M(P):$(I)})})}subscribe(S,C,E){let $=this.options.protocolVersion;typeof C=="function"&&(E=C),E=E||this.noop;let M=!1,P=[];typeof S=="string"?(S=[S],P=S):Array.isArray(S)?P=S:typeof S=="object"&&(M=S.resubscribe,delete S.resubscribe,P=Object.keys(S));let I=u.validateTopics(P);if(I!==null)return b(E,new Error(`Invalid topic ${I}`)),this;if(this._checkDisconnecting(E))return this.log("subscribe: discconecting true"),this;let O={qos:0};$===5&&(O.nl=!1,O.rap=!1,O.rh=0),C=Object.assign(Object.assign({},O),C);let A=C.properties,R=[],j=(D,V)=>{if(V=V||C,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,D)||this._resubscribeTopics[D].qos{this.log("subscribe: array topic %s",D),j(D)}):Object.keys(S).forEach(D=>{this.log("subscribe: object topic %s, %o",D,S[D]),j(D,S[D])}),!R.length)return E(null,[]),this;let N=()=>{let D=this._nextId();if(D===null)return this.log("No messageId left"),!1;let V={cmd:"subscribe",subscriptions:R,messageId:D};if(A&&(V.properties=A),this.options.resubscribe){this.log("subscribe :: resubscribe true");let F=[];R.forEach(K=>{if(this.options.reconnectPeriod>0){let B={qos:K.qos};$===5&&(B.nl=K.nl||!1,B.rap=K.rap||!1,B.rh=K.rh||0,B.properties=K.properties),this._resubscribeTopics[K.topic]=B,F.push(K.topic)}}),this.messageIdToTopic[V.messageId]=F}return this.outgoing[V.messageId]={volatile:!0,cb(F,K){if(!F){let{granted:B}=K;for(let U=0;U0||!N())&&this._storeProcessingQueue.push({invoke:N,callback:E}),this}subscribeAsync(S,C){return new Promise((E,$)=>{this.subscribe(S,C,(M,P)=>{M?$(M):E(P)})})}unsubscribe(S,C,E){typeof S=="string"&&(S=[S]),typeof C=="function"&&(E=C),E=E||this.noop;let $=u.validateTopics(S);if($!==null)return b(E,new Error(`Invalid topic ${$}`)),this;if(this._checkDisconnecting(E))return this;let M=()=>{let P=this._nextId();if(P===null)return this.log("No messageId left"),!1;let I={cmd:"unsubscribe",messageId:P,unsubscriptions:[]};return typeof S=="string"?I.unsubscriptions=[S]:Array.isArray(S)&&(I.unsubscriptions=S),this.options.resubscribe&&I.unsubscriptions.forEach(O=>{delete this._resubscribeTopics[O]}),typeof C=="object"&&C.properties&&(I.properties=C.properties),this.outgoing[I.messageId]={volatile:!0,cb:E},this.log("unsubscribe: call _sendPacket"),this._sendPacket(I),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!M())&&this._storeProcessingQueue.push({invoke:M,callback:E}),this}unsubscribeAsync(S,C){return new Promise((E,$)=>{this.unsubscribe(S,C,(M,P)=>{M?$(M):E(P)})})}end(S,C,E){this.log("end :: (%s)",this.options.clientId),(S==null||typeof S!="boolean")&&(E=E||C,C=S,S=!1),typeof C!="object"&&(E=E||C,C=null),this.log("end :: cb? %s",!!E),(!E||typeof E!="function")&&(E=this.noop);let $=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(P=>{this.outgoingStore.close(I=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),E){let O=P||I;this.log("end :: closeStores: invoking callback with args"),E(O)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},M=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,S),this._cleanUp(S,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,m.nextTick)($)},C)};return this.disconnecting?(E(),this):(this._clearReconnect(),this.disconnecting=!0,!S&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,M,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),M()),this)}endAsync(S,C){return new Promise((E,$)=>{this.end(S,C,M=>{M?$(M):E()})})}removeOutgoingMessage(S){if(this.outgoing[S]){let{cb:C}=this.outgoing[S];this._removeOutgoingAndStoreMessage(S,()=>{C(new Error("Message removed"))})}return this}reconnect(S){this.log("client reconnect");let C=()=>{S?(this.options.incomingStore=S.incomingStore,this.options.outgoingStore=S.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new p.default,this.outgoingStore=this.options.outgoingStore||new p.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=C:C(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(S=>{this.outgoing[S].volatile&&typeof this.outgoing[S].cb=="function"&&(this.outgoing[S].cb(new Error("Connection closed")),delete this.outgoing[S])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(S=>{typeof this.outgoing[S].cb=="function"&&(this.outgoing[S].cb(new Error("Connection closed")),delete this.outgoing[S])}))}_removeTopicAliasAndRecoverTopicName(S){let C;S.properties&&(C=S.properties.topicAlias);let E=S.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",C,E),E.length===0){if(typeof C>"u")return new Error("Unregistered Topic Alias");if(E=this.topicAliasSend.getTopicByAlias(C),typeof E>"u")return new Error("Unregistered Topic Alias");S.topic=E}C&&delete S.properties.topicAlias}_checkDisconnecting(S){return this.disconnecting&&(S&&S!==this.noop?S(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(S,C,E={}){if(C&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",C)),this.log("_cleanUp :: forced? %s",S),S)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let $=Object.assign({cmd:"disconnect"},E);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket($,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),b(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),C&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",C),C())}_storeAndSend(S,C,E){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",S.cmd);let $=S,M;if($.cmd==="publish"&&($=(0,c.default)(S),M=this._removeTopicAliasAndRecoverTopicName($),M))return C&&C(M);this.outgoingStore.put($,P=>{if(P)return C&&C(P);E(),this._writePacket(S,C)})}_applyTopicAlias(S){if(this.options.protocolVersion===5&&S.cmd==="publish"){let C;S.properties&&(C=S.properties.topicAlias);let E=S.topic.toString();if(this.topicAliasSend)if(C){if(E.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",E,C),!this.topicAliasSend.put(E,C)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",E,C),new Error("Sending Topic Alias out of range")}else E.length!==0&&(this.options.autoAssignTopicAlias?(C=this.topicAliasSend.getAliasByTopic(E),C?(S.topic="",S.properties=Object.assign(Object.assign({},S.properties),{topicAlias:C}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",E,C)):(C=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(E,C),S.properties=Object.assign(Object.assign({},S.properties),{topicAlias:C}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",E,C))):this.options.autoUseTopicAlias&&(C=this.topicAliasSend.getAliasByTopic(E),C&&(S.topic="",S.properties=Object.assign(Object.assign({},S.properties),{topicAlias:C}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",E,C))));else if(C)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",E,C),new Error("Sending Topic Alias out of range")}}_noop(S){this.log("noop ::",S)}_writePacket(S,C){this.log("_writePacket :: packet: %O",S),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",S),this.log("_writePacket :: writing to stream");let E=o.default.writeToStream(S,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",E),!E&&C&&C!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",C)):C&&(this.log("_writePacket :: invoking cb"),C())}_sendPacket(S,C,E,$){this.log("_sendPacket :: (%s) :: start",this.options.clientId),E=E||this.noop,C=C||this.noop;let M=this._applyTopicAlias(S);if(M){C(M);return}if(!this.connected){if(S.cmd==="auth"){this._writePacket(S,C);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(S,C,E);return}if($){this._writePacket(S,C);return}switch(S.cmd){case"publish":break;case"pubrel":this._storeAndSend(S,C,E);return;default:this._writePacket(S,C);return}switch(S.qos){case 2:case 1:this._storeAndSend(S,C,E);break;case 0:default:this._writePacket(S,C);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(S,C,E){this.log("_storePacket :: packet: %o",S),this.log("_storePacket :: cb? %s",!!C),E=E||this.noop;let $=S;if($.cmd==="publish"){$=(0,c.default)(S);let P=this._removeTopicAliasAndRecoverTopicName($);if(P)return C&&C(P)}let M=$.qos||0;M===0&&this.queueQoSZero||$.cmd!=="publish"?this.queue.push({packet:$,cb:C}):M>0?(C=this.outgoing[$.messageId]?this.outgoing[$.messageId].cb:null,this.outgoingStore.put($,P=>{if(P)return C&&C(P);E()})):C&&C(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new v.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(S=!1){this.keepaliveManager&&this.options.keepalive&&(S||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let S=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&S.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let C=0;C{let E=this.outgoingStore.createStream(),$=()=>{E.destroy(),E=null,this._flushStoreProcessingQueue(),M()},M=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",$),E.on("error",I=>{M(),this._flushStoreProcessingQueue(),this.removeListener("close",$),this.emit("error",I)});let P=()=>{if(!E)return;let I=E.read(1),O;if(!I){E.once("readable",P);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[I.messageId]){P();return}!this.disconnecting&&!this.reconnectTimer?(O=this.outgoing[I.messageId]?this.outgoing[I.messageId].cb:null,this.outgoing[I.messageId]={volatile:!1,cb(A,R){O&&O(A,R),P()}},this._packetIdsDuringStoreProcessing[I.messageId]=!0,this.messageIdProvider.register(I.messageId)?this._sendPacket(I,void 0,void 0,!0):this.log("messageId: %d has already used.",I.messageId)):E.destroy&&E.destroy()};E.on("end",()=>{let I=!0;for(let O in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[O]){I=!1;break}this.removeListener("close",$),I?(M(),this._invokeAllStoreProcessingQueue(),this.emit("connect",S)):C()}),P()};C()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let S=this._storeProcessingQueue[0];if(S&&S.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let S of this._storeProcessingQueue)S.cbStorePut&&S.cbStorePut(new Error("Connection closed")),S.callback&&S.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(S,C){delete this.outgoing[S],this.outgoingStore.del({messageId:S},(E,$)=>{C(E,$),this.messageIdProvider.deallocate(S),this._invokeStoreProcessingQueue()})}};_.VERSION=m.MQTTJS_VERSION,e.default=_}),O7e=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0});var t=Tce(),n=class{constructor(){this.numberAllocator=new t.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(r){return this.numberAllocator.use(r)}deallocate(r){this.numberAllocator.free(r)}clear(){this.numberAllocator.clear()}};e.default=n});function Uh(e){throw new RangeError(Ice[e])}function eK(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);let i=function(a,o){let s=[],l=a.length;for(;l--;)s[l]=o(a[l]);return s}((e=e.replace(Oce,".")).split("."),t).join(".");return r+i}function tK(e){let t=[],n=0,r=e.length;for(;n=55296&&i<=56319&&n{Qt(),en(),Jt(),nK=/^xn--/,rK=/[^\0-\x7E]/,Oce=/[\x2E\u3002\uFF0E\uFF61]/g,Ice={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ic=Math.floor,Qx=String.fromCharCode,qM=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},KM=function(e,t,n){let r=0;for(e=n?Ic(e/700):e>>1,e+=Ic(e/t);e>455;r+=36)e=Ic(e/35);return Ic(r+36*e/(e+38))},GM=function(e){let t=[],n=e.length,r=0,i=128,a=72,o=e.lastIndexOf("-");o<0&&(o=0);for(let l=0;l=128&&Uh("not-basic"),t.push(e.charCodeAt(l));for(let l=o>0?o+1:0;l=n&&Uh("invalid-input");let h=(s=e.charCodeAt(l++))-48<10?s-22:s-65<26?s-65:s-97<26?s-97:36;(h>=36||h>Ic((2147483647-r)/f))&&Uh("overflow"),r+=h*f;let m=p<=a?1:p>=a+26?26:p-a;if(hIc(2147483647/g)&&Uh("overflow"),f*=g}let u=t.length+1;a=KM(r-c,u,c==0),Ic(r/u)>2147483647-i&&Uh("overflow"),i+=Ic(r/u),r%=u,t.splice(r++,0,i)}var s;return String.fromCodePoint(...t)},YM=function(e){let t=[],n=(e=tK(e)).length,r=128,i=0,a=72;for(let l of e)l<128&&t.push(Qx(l));let o=t.length,s=o;for(o&&t.push("-");s=r&&uIc((2147483647-i)/c)&&Uh("overflow"),i+=(l-r)*c,r=l;for(let u of e)if(u2147483647&&Uh("overflow"),u==r){let f=i;for(let p=36;;p+=36){let h=p<=a?1:p>=a+26?26:p-a;if(fString.fromCodePoint(...e)},decode:GM,encode:YM,toASCII:function(e){return eK(e,function(t){return rK.test(t)?"xn--"+YM(t):t})},toUnicode:function(e){return eK(e,function(t){return nK.test(t)?GM(t.slice(4).toLowerCase()):t})}},mp.decode,mp.encode,mp.toASCII,mp.toUnicode,mp.ucs2,mp.version});function R7e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var iK,C1,aK,Du,j7e=Co(()=>{Qt(),en(),Jt(),iK=function(e,t,n,r){t=t||"&",n=n||"=";var i={};if(typeof e!="string"||e.length===0)return i;var a=/\+/g;e=e.split(t);var o=1e3;r&&typeof r.maxKeys=="number"&&(o=r.maxKeys);var s=e.length;o>0&&s>o&&(s=o);for(var l=0;l=0?(c=h.substr(0,m),u=h.substr(m+1)):(c=h,u=""),f=decodeURIComponent(c),p=decodeURIComponent(u),R7e(i,f)?Array.isArray(i[f])?i[f].push(p):i[f]=[i[f],p]:i[f]=p}return i},C1=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},aK=function(e,t,n,r){return t=t||"&",n=n||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(i){var a=encodeURIComponent(C1(i))+n;return Array.isArray(e[i])?e[i].map(function(o){return a+encodeURIComponent(C1(o))}).join(t):a+encodeURIComponent(C1(e[i]))}).join(t):r?encodeURIComponent(C1(r))+n+encodeURIComponent(C1(e)):""},Du={},Du.decode=Du.parse=iK,Du.encode=Du.stringify=aK,Du.decode,Du.encode,Du.parse,Du.stringify});function $R(){throw new Error("setTimeout has not been defined")}function MR(){throw new Error("clearTimeout has not been defined")}function Rce(e){if(Zd===setTimeout)return setTimeout(e,0);if((Zd===$R||!Zd)&&setTimeout)return Zd=setTimeout,setTimeout(e,0);try{return Zd(e,0)}catch{try{return Zd.call(null,e,0)}catch{return Zd.call(this||Bm,e,0)}}}function N7e(){zm&&bm&&(zm=!1,bm.length?Ju=bm.concat(Ju):z2=-1,Ju.length&&jce())}function jce(){if(!zm){var e=Rce(N7e);zm=!0;for(var t=Ju.length;t;){for(bm=Ju,Ju=[];++z2{Qt(),en(),Jt(),Bm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,ca=sK={},function(){try{Zd=typeof setTimeout=="function"?setTimeout:$R}catch{Zd=$R}try{Qd=typeof clearTimeout=="function"?clearTimeout:MR}catch{Qd=MR}}(),Ju=[],zm=!1,z2=-1,ca.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n1)for(var y=1;y{Qt(),en(),Jt(),FC={},TR=!1,em=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Wi=D7e(),Wi.platform="browser",Wi.addListener,Wi.argv,Wi.binding,Wi.browser,Wi.chdir,Wi.cwd,Wi.emit,Wi.env,Wi.listeners,Wi.nextTick,Wi.off,Wi.on,Wi.once,Wi.prependListener,Wi.prependOnceListener,Wi.removeAllListeners,Wi.removeListener,Wi.title,Wi.umask,Wi.version,Wi.versions});function F7e(){if(PR)return LC;PR=!0;var e=Wi;function t(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function n(a,o){for(var s="",l=0,c=-1,u=0,f,p=0;p<=a.length;++p){if(p2){var h=s.lastIndexOf("/");if(h!==s.length-1){h===-1?(s="",l=0):(s=s.slice(0,h),l=s.length-1-s.lastIndexOf("/")),c=p,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=p,u=0;continue}}o&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+a.slice(c+1,p):s=a.slice(c+1,p),l=p-c-1;c=p,u=0}else f===46&&u!==-1?++u:u=-1}return s}function r(a,o){var s=o.dir||o.root,l=o.base||(o.name||"")+(o.ext||"");return s?s===o.root?s+l:s+a+l:l}var i={resolve:function(){for(var a="",o=!1,s,l=arguments.length-1;l>=-1&&!o;l--){var c;l>=0?c=arguments[l]:(s===void 0&&(s=e.cwd()),c=s),t(c),c.length!==0&&(a=c+"/"+a,o=c.charCodeAt(0)===47)}return a=n(a,!o),o?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(a){if(t(a),a.length===0)return".";var o=a.charCodeAt(0)===47,s=a.charCodeAt(a.length-1)===47;return a=n(a,!o),a.length===0&&!o&&(a="."),a.length>0&&s&&(a+="/"),o?"/"+a:a},isAbsolute:function(a){return t(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,o=0;o0&&(a===void 0?a=s:a+="/"+s)}return a===void 0?".":i.normalize(a)},relative:function(a,o){if(t(a),t(o),a===o||(a=i.resolve(a),o=i.resolve(o),a===o))return"";for(var s=1;sh){if(o.charCodeAt(u+g)===47)return o.slice(u+g+1);if(g===0)return o.slice(u+g)}else c>h&&(a.charCodeAt(s+g)===47?m=g:g===0&&(m=0));break}var v=a.charCodeAt(s+g),y=o.charCodeAt(u+g);if(v!==y)break;v===47&&(m=g)}var b="";for(g=s+m+1;g<=l;++g)(g===l||a.charCodeAt(g)===47)&&(b.length===0?b+="..":b+="/..");return b.length>0?b+o.slice(u+m):(u+=m,o.charCodeAt(u)===47&&++u,o.slice(u))},_makeLong:function(a){return a},dirname:function(a){if(t(a),a.length===0)return".";for(var o=a.charCodeAt(0),s=o===47,l=-1,c=!0,u=a.length-1;u>=1;--u)if(o=a.charCodeAt(u),o===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":a.slice(0,l)},basename:function(a,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');t(a);var s=0,l=-1,c=!0,u;if(o!==void 0&&o.length>0&&o.length<=a.length){if(o.length===a.length&&o===a)return"";var f=o.length-1,p=-1;for(u=a.length-1;u>=0;--u){var h=a.charCodeAt(u);if(h===47){if(!c){s=u+1;break}}else p===-1&&(c=!1,p=u+1),f>=0&&(h===o.charCodeAt(f)?--f===-1&&(l=u):(f=-1,l=p))}return s===l?l=p:l===-1&&(l=a.length),a.slice(s,l)}else{for(u=a.length-1;u>=0;--u)if(a.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":a.slice(s,l)}},extname:function(a){t(a);for(var o=-1,s=0,l=-1,c=!0,u=0,f=a.length-1;f>=0;--f){var p=a.charCodeAt(f);if(p===47){if(!c){s=f+1;break}continue}l===-1&&(c=!1,l=f+1),p===46?o===-1?o=f:u!==1&&(u=1):o!==-1&&(u=-1)}return o===-1||l===-1||u===0||u===1&&o===l-1&&o===s+1?"":a.slice(o,l)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return r("/",a)},parse:function(a){t(a);var o={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return o;var s=a.charCodeAt(0),l=s===47,c;l?(o.root="/",c=1):c=0;for(var u=-1,f=0,p=-1,h=!0,m=a.length-1,g=0;m>=c;--m){if(s=a.charCodeAt(m),s===47){if(!h){f=m+1;break}continue}p===-1&&(h=!1,p=m+1),s===46?u===-1?u=m:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||p===-1||g===0||g===1&&u===p-1&&u===f+1?p!==-1&&(f===0&&l?o.base=o.name=a.slice(1,p):o.base=o.name=a.slice(f,p)):(f===0&&l?(o.name=a.slice(1,u),o.base=a.slice(1,p)):(o.name=a.slice(f,u),o.base=a.slice(f,p)),o.ext=a.slice(u,p)),f>0?o.dir=a.slice(0,f-1):l&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,LC=i,LC}var LC,PR,OR,L7e=Co(()=>{Qt(),en(),Jt(),Nce(),LC={},PR=!1,OR=F7e()}),Ace={};Dg(Ace,{URL:()=>eue,Url:()=>Yce,default:()=>hi,fileURLToPath:()=>Dce,format:()=>Xce,parse:()=>Jce,pathToFileURL:()=>Fce,resolve:()=>Zce,resolveObject:()=>Qce});function Gl(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function Eb(e,t,n){if(e&&Nc.isObject(e)&&e instanceof Gl)return e;var r=new Gl;return r.parse(e,t,n),r}function B7e(){if(IR)return BC;IR=!0;var e=Ji;function t(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function n(a,o){for(var s="",l=0,c=-1,u=0,f,p=0;p<=a.length;++p){if(p2){var h=s.lastIndexOf("/");if(h!==s.length-1){h===-1?(s="",l=0):(s=s.slice(0,h),l=s.length-1-s.lastIndexOf("/")),c=p,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=p,u=0;continue}}o&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+a.slice(c+1,p):s=a.slice(c+1,p),l=p-c-1;c=p,u=0}else f===46&&u!==-1?++u:u=-1}return s}function r(a,o){var s=o.dir||o.root,l=o.base||(o.name||"")+(o.ext||"");return s?s===o.root?s+l:s+a+l:l}var i={resolve:function(){for(var a="",o=!1,s,l=arguments.length-1;l>=-1&&!o;l--){var c;l>=0?c=arguments[l]:(s===void 0&&(s=e.cwd()),c=s),t(c),c.length!==0&&(a=c+"/"+a,o=c.charCodeAt(0)===47)}return a=n(a,!o),o?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(a){if(t(a),a.length===0)return".";var o=a.charCodeAt(0)===47,s=a.charCodeAt(a.length-1)===47;return a=n(a,!o),a.length===0&&!o&&(a="."),a.length>0&&s&&(a+="/"),o?"/"+a:a},isAbsolute:function(a){return t(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,o=0;o0&&(a===void 0?a=s:a+="/"+s)}return a===void 0?".":i.normalize(a)},relative:function(a,o){if(t(a),t(o),a===o||(a=i.resolve(a),o=i.resolve(o),a===o))return"";for(var s=1;sh){if(o.charCodeAt(u+g)===47)return o.slice(u+g+1);if(g===0)return o.slice(u+g)}else c>h&&(a.charCodeAt(s+g)===47?m=g:g===0&&(m=0));break}var v=a.charCodeAt(s+g),y=o.charCodeAt(u+g);if(v!==y)break;v===47&&(m=g)}var b="";for(g=s+m+1;g<=l;++g)(g===l||a.charCodeAt(g)===47)&&(b.length===0?b+="..":b+="/..");return b.length>0?b+o.slice(u+m):(u+=m,o.charCodeAt(u)===47&&++u,o.slice(u))},_makeLong:function(a){return a},dirname:function(a){if(t(a),a.length===0)return".";for(var o=a.charCodeAt(0),s=o===47,l=-1,c=!0,u=a.length-1;u>=1;--u)if(o=a.charCodeAt(u),o===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":a.slice(0,l)},basename:function(a,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');t(a);var s=0,l=-1,c=!0,u;if(o!==void 0&&o.length>0&&o.length<=a.length){if(o.length===a.length&&o===a)return"";var f=o.length-1,p=-1;for(u=a.length-1;u>=0;--u){var h=a.charCodeAt(u);if(h===47){if(!c){s=u+1;break}}else p===-1&&(c=!1,p=u+1),f>=0&&(h===o.charCodeAt(f)?--f===-1&&(l=u):(f=-1,l=p))}return s===l?l=p:l===-1&&(l=a.length),a.slice(s,l)}else{for(u=a.length-1;u>=0;--u)if(a.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":a.slice(s,l)}},extname:function(a){t(a);for(var o=-1,s=0,l=-1,c=!0,u=0,f=a.length-1;f>=0;--f){var p=a.charCodeAt(f);if(p===47){if(!c){s=f+1;break}continue}l===-1&&(c=!1,l=f+1),p===46?o===-1?o=f:u!==1&&(u=1):o!==-1&&(u=-1)}return o===-1||l===-1||u===0||u===1&&o===l-1&&o===s+1?"":a.slice(o,l)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return r("/",a)},parse:function(a){t(a);var o={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return o;var s=a.charCodeAt(0),l=s===47,c;l?(o.root="/",c=1):c=0;for(var u=-1,f=0,p=-1,h=!0,m=a.length-1,g=0;m>=c;--m){if(s=a.charCodeAt(m),s===47){if(!h){f=m+1;break}continue}p===-1&&(h=!1,p=m+1),s===46?u===-1?u=m:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||p===-1||g===0||g===1&&u===p-1&&u===f+1?p!==-1&&(f===0&&l?o.base=o.name=a.slice(1,p):o.base=o.name=a.slice(f,p)):(f===0&&l?(o.name=a.slice(1,u),o.base=a.slice(1,p)):(o.name=a.slice(f,u),o.base=a.slice(f,p)),o.ext=a.slice(u,p)),f>0?o.dir=a.slice(0,f-1):l&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,BC=i,BC}function z7e(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return kk?H7e(e):U7e(e)}function H7e(e){let t=e.hostname,n=e.pathname;for(let r=0;rHce||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function U7e(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;niue||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function q7e(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;n{Qt(),en(),Jt(),I7e(),j7e(),A7e(),L7e(),Nce(),hi={},lK=mp,Nc={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},hi.parse=Eb,hi.resolve=function(e,t){return Eb(e,!1,!0).resolve(t)},hi.resolveObject=function(e,t){return e?Eb(e,!1,!0).resolveObject(t):t},hi.format=function(e){return Nc.isString(e)&&(e=Eb(e)),e instanceof Gl?e.format():Gl.prototype.format.call(e)},hi.Url=Gl,cK=/^([a-z0-9.+-]+:)/i,uK=/:[0-9]*$/,dK=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,fK=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` -`," "]),Jx=["'"].concat(fK),XM=["%","/","?",";","#"].concat(Jx),ZM=["/","?","#"],QM=/^[+a-z0-9A-Z_-]{0,63}$/,pK=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,hK={javascript:!0,"javascript:":!0},eS={javascript:!0,"javascript:":!0},Wh={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},tS=Du,Gl.prototype.parse=function(e,t,n){if(!Nc.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r127?_+="x":_+=w[k];if(!_.match(QM)){var C=y.slice(0,m),E=y.slice(m+1),$=w.match(pK);$&&(C.push($[1]),E.unshift($[2])),E.length&&(o="/"+E.join(".")+o),this.hostname=C.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=lK.toASCII(this.hostname));var M=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+M,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),o[0]!=="/"&&(o="/"+o))}if(!hK[c])for(m=0,b=Jx.length;m0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift())),n.search=e.search,n.query=e.query,Nc.isNull(n.pathname)&&Nc.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=w.slice(-1)[0],S=(n.host||e.host||w.length>1)&&(k==="."||k==="..")||k==="",C=0,E=w.length;E>=0;E--)(k=w[E])==="."?w.splice(E,1):k===".."?(w.splice(E,1),C++):C&&(w.splice(E,1),C--);if(!y&&!b)for(;C--;C)w.unshift("..");!y||w[0]===""||w[0]&&w[0].charAt(0)==="/"||w.unshift(""),S&&w.join("/").substr(-1)!=="/"&&w.push("");var $,M=w[0]===""||w[0]&&w[0].charAt(0)==="/";return _&&(n.hostname=n.host=M?"":w.length?w.shift():"",($=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift())),(y=y||n.host&&w.length)&&!M&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),Nc.isNull(n.pathname)&&Nc.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},Gl.prototype.parseHost=function(){var e=this.host,t=uK.exec(e);t&&((t=t[0])!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},hi.Url,hi.format,hi.resolve,hi.resolveObject,BC={},IR=!1,RR=B7e(),mK=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,hi.URL=typeof URL<"u"?URL:null,hi.pathToFileURL=W7e,hi.fileURLToPath=z7e,hi.Url,hi.format,hi.resolve,hi.resolveObject,hi.URL,Lce=92,Bce=47,zce=97,Hce=122,kk=mK==="win32",Uce=/\//g,Wce=/%/g,Vce=/\\/g,qce=/\n/g,Kce=/\r/g,Gce=/\t/g,gK=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,hi.URL=typeof URL<"u"?URL:null,hi.pathToFileURL=Fce,hi.fileURLToPath=Dce,Yce=hi.Url,Xce=hi.format,Zce=hi.resolve,Qce=hi.resolveObject,Jce=hi.parse,eue=hi.URL,tue=92,nue=47,rue=97,iue=122,Ek=gK==="win32",aue=/\//g,oue=/%/g,sue=/\\/g,lue=/\n/g,cue=/\r/g,uue=/\t/g}),G7e=ln((e,t)=>{Qt(),en(),Jt(),t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),WF=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=e.writev=void 0;var t=Bg(),n=(ko(),Ci(_o));function r(a,o){let s=new Array(a.length);for(let l=0;l{this.destroyed||this.push(l)})}_read(a){this.proxy.read(a)}_write(a,o,s){this.isSocketOpen?this.writeToProxy(a,o,s):this.writeQueue.push({chunk:a,encoding:o,cb:s})}_final(a){this.writeQueue=[],this.proxy.end(a)}_destroy(a,o){this.writeQueue=[],this.proxy.destroy(),o(a)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(a,o,s){this.proxy.write(a,o)===!1?this.proxy.once("drain",s):s()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:a,encoding:o,cb:s}=this.writeQueue.shift();this.writeToProxy(a,o,s)}}};e.BufferedDuplex=i}),nS=ln(e=>{Qt(),en(),Jt();var t=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.streamBuilder=e.browserStreamBuilder=void 0;var n=(ko(),Ci(_o)),r=t(G7e()),i=t(Of()),a=Bg(),o=t(gE()),s=WF(),l=(0,i.default)("mqttjs:ws"),c=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function u(y,b){let w=`${y.protocol}://${y.hostname}:${y.port}${y.path}`;return typeof y.transformWsUrl=="function"&&(w=y.transformWsUrl(w,y,b)),w}function f(y){let b=y;return y.port||(y.protocol==="wss"?b.port=443:b.port=80),y.path||(b.path="/"),y.wsOptions||(b.wsOptions={}),!o.default&&!y.forceNativeWebSocket&&y.protocol==="wss"&&c.forEach(w=>{Object.prototype.hasOwnProperty.call(y,w)&&!Object.prototype.hasOwnProperty.call(y.wsOptions,w)&&(b.wsOptions[w]=y[w])}),b}function p(y){let b=f(y);if(b.hostname||(b.hostname=b.host),!b.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let w=new URL(document.URL);b.hostname=w.hostname,b.port||(b.port=Number(w.port))}return b.objectMode===void 0&&(b.objectMode=!(b.binary===!0||b.binary===void 0)),b}function h(y,b,w){l("createWebSocket"),l(`protocol: ${w.protocolId} ${w.protocolVersion}`);let _=w.protocolId==="MQIsdp"&&w.protocolVersion===3?"mqttv3.1":"mqtt";l(`creating new Websocket for url: ${b} and protocol: ${_}`);let k;return w.createWebsocket?k=w.createWebsocket(b,[_],w):k=new r.default(b,[_],w.wsOptions),k}function m(y,b){let w=b.protocolId==="MQIsdp"&&b.protocolVersion===3?"mqttv3.1":"mqtt",_=u(b,y),k;return b.createWebsocket?k=b.createWebsocket(_,[w],b):k=new WebSocket(_,[w]),k.binaryType="arraybuffer",k}var g=(y,b)=>{l("streamBuilder");let w=f(b);w.hostname=w.hostname||w.host||"localhost";let _=u(w,y),k=h(y,_,w),S=r.default.createWebSocketStream(k,w.wsOptions);return S.url=_,k.on("close",()=>{S.destroy()}),S};e.streamBuilder=g;var v=(y,b)=>{l("browserStreamBuilder");let w,_=p(b).browserBufferSize||1024*512,k=b.browserBufferTimeout||1e3,S=!b.objectMode,C=m(y,b),E=M(b,R,j);b.objectMode||(E._writev=s.writev.bind(E)),E.on("close",()=>{C.close()});let $=typeof C.addEventListener<"u";C.readyState===C.OPEN?(w=E,w.socket=C):(w=new s.BufferedDuplex(b,E,C),$?C.addEventListener("open",P):C.onopen=P),$?(C.addEventListener("close",I),C.addEventListener("error",O),C.addEventListener("message",A)):(C.onclose=I,C.onerror=O,C.onmessage=A);function M(N,D,V){let F=new a.Transform({objectMode:N.objectMode});return F._write=D,F._flush=V,F}function P(){l("WebSocket onOpen"),w instanceof s.BufferedDuplex&&w.socketReady()}function I(N){l("WebSocket onClose",N),w.end(),w.destroy()}function O(N){l("WebSocket onError",N);let D=new Error("WebSocket error");D.event=N,w.destroy(D)}async function A(N){let{data:D}=N;D instanceof ArrayBuffer?D=n.Buffer.from(D):D instanceof Blob?D=n.Buffer.from(await new Response(D).arrayBuffer()):D=n.Buffer.from(D,"utf8"),E&&!E.destroyed&&E.push(D)}function R(N,D,V){if(C.bufferedAmount>_){setTimeout(R,k,N,D,V);return}S&&typeof N=="string"&&(N=n.Buffer.from(N,"utf8"));try{C.send(N)}catch(F){return V(F)}V()}function j(N){C.close(),N()}return w};e.browserStreamBuilder=v}),VF={};Dg(VF,{Server:()=>qi,Socket:()=>qi,Stream:()=>qi,_createServerHandle:()=>qi,_normalizeArgs:()=>qi,_setSimultaneousAccepts:()=>qi,connect:()=>qi,createConnection:()=>qi,createServer:()=>qi,default:()=>due,isIP:()=>qi,isIPv4:()=>qi,isIPv6:()=>qi});function qi(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var due,fue=Co(()=>{Qt(),en(),Jt(),due={_createServerHandle:qi,_normalizeArgs:qi,_setSimultaneousAccepts:qi,connect:qi,createConnection:qi,createServer:qi,isIP:qi,isIPv4:qi,isIPv6:qi,Server:qi,Socket:qi,Stream:qi}}),vK=ln(e=>{Qt(),en(),Jt();var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((fue(),Ci(VF))),r=t(Of()),i=(0,r.default)("mqttjs:tcp"),a=(o,s)=>{s.port=s.port||1883,s.hostname=s.hostname||s.host||"localhost";let{port:l,path:c}=s,u=s.hostname;return i("port %d and host %s",l,u),n.default.createConnection({port:l,host:u,path:c})};e.default=a}),pue={};Dg(pue,{default:()=>hue});var hue,Y7e=Co(()=>{Qt(),en(),Jt(),hue={}}),yK=ln(e=>{Qt(),en(),Jt();var t=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((Y7e(),Ci(pue))),r=t((fue(),Ci(VF))),i=t(Of()),a=(0,i.default)("mqttjs:tls"),o=(s,l)=>{l.port=l.port||8883,l.host=l.hostname||l.host||"localhost",r.default.isIP(l.host)===0&&(l.servername=l.host),l.rejectUnauthorized=l.rejectUnauthorized!==!1,delete l.path,a("port %d host %s rejectUnauthorized %b",l.port,l.host,l.rejectUnauthorized);let c=n.default.connect(l);c.on("secureConnect",()=>{l.rejectUnauthorized&&!c.authorized?c.emit("error",new Error("TLS not authorized")):c.removeListener("error",u)});function u(f){l.rejectUnauthorized&&s.emit("error",f),c.end()}return c.on("error",u),c};e.default=o}),bK=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ko(),Ci(_o)),n=Bg(),r=WF(),i,a,o;function s(){let p=new n.Transform;return p._write=(h,m,g)=>{i.send({data:h.buffer,success(){g()},fail(v){g(new Error(v))}})},p._flush=h=>{i.close({success(){h()}})},p}function l(p){p.hostname||(p.hostname="localhost"),p.path||(p.path="/"),p.wsOptions||(p.wsOptions={})}function c(p,h){let m=p.protocol==="wxs"?"wss":"ws",g=`${m}://${p.hostname}${p.path}`;return p.port&&p.port!==80&&p.port!==443&&(g=`${m}://${p.hostname}:${p.port}${p.path}`),typeof p.transformWsUrl=="function"&&(g=p.transformWsUrl(g,p,h)),g}function u(){i.onOpen(()=>{o.socketReady()}),i.onMessage(p=>{let{data:h}=p;h instanceof ArrayBuffer?h=t.Buffer.from(h):h=t.Buffer.from(h,"utf8"),a.push(h)}),i.onClose(()=>{o.emit("close"),o.end(),o.destroy()}),i.onError(p=>{let h=new Error(p.errMsg);o.destroy(h)})}var f=(p,h)=>{if(h.hostname=h.hostname||h.host,!h.hostname)throw new Error("Could not determine host. Specify host manually.");let m=h.protocolId==="MQIsdp"&&h.protocolVersion===3?"mqttv3.1":"mqtt";l(h);let g=c(h,p);i=wx.connectSocket({url:g,protocols:[m]}),a=s(),o=new r.BufferedDuplex(h,a,i),o._destroy=(y,b)=>{i.close({success(){b&&b(y)}})};let v=o.destroy;return o.destroy=(y,b)=>(o.destroy=v,setTimeout(()=>{i.close({fail(){o._destroy(y,b)}})},0),o),u(),o};e.default=f}),wK=ln(e=>{Qt(),en(),Jt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ko(),Ci(_o)),n=Bg(),r=WF(),i,a,o,s=!1;function l(){let h=new n.Transform;return h._write=(m,g,v)=>{i.sendSocketMessage({data:m.buffer,success(){v()},fail(){v(new Error)}})},h._flush=m=>{i.closeSocket({success(){m()}})},h}function c(h){h.hostname||(h.hostname="localhost"),h.path||(h.path="/"),h.wsOptions||(h.wsOptions={})}function u(h,m){let g=h.protocol==="alis"?"wss":"ws",v=`${g}://${h.hostname}${h.path}`;return h.port&&h.port!==80&&h.port!==443&&(v=`${g}://${h.hostname}:${h.port}${h.path}`),typeof h.transformWsUrl=="function"&&(v=h.transformWsUrl(v,h,m)),v}function f(){s||(s=!0,i.onSocketOpen(()=>{o.socketReady()}),i.onSocketMessage(h=>{if(typeof h.data=="string"){let m=t.Buffer.from(h.data,"base64");a.push(m)}else{let m=new FileReader;m.addEventListener("load",()=>{let g=m.result;g instanceof ArrayBuffer?g=t.Buffer.from(g):g=t.Buffer.from(g,"utf8"),a.push(g)}),m.readAsArrayBuffer(h.data)}}),i.onSocketClose(()=>{o.end(),o.destroy()}),i.onSocketError(h=>{o.destroy(h)}))}var p=(h,m)=>{if(m.hostname=m.hostname||m.host,!m.hostname)throw new Error("Could not determine host. Specify host manually.");let g=m.protocolId==="MQIsdp"&&m.protocolVersion===3?"mqttv3.1":"mqtt";c(m);let v=u(m,h);return i=m.my,i.connectSocket({url:v,protocols:g}),a=l(),o=new r.BufferedDuplex(m,a,i),f(),o};e.default=p}),X7e=ln(e=>{Qt(),en(),Jt();var t=e&&e.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.connectAsync=void 0;var n=t(Of()),r=t((K7e(),Ci(Ace))),i=t(kR()),a=t(gE());typeof(li==null?void 0:li.nextTick)!="function"&&(li.nextTick=setImmediate);var o=(0,n.default)("mqttjs"),s=null;function l(f){let p;f.auth&&(p=f.auth.match(/^(.+):(.+)$/),p?(f.username=p[1],f.password=p[2]):f.username=f.auth)}function c(f,p){var h,m,g,v;if(o("connecting to an MQTT broker..."),typeof f=="object"&&!p&&(p=f,f=""),p=p||{},f&&typeof f=="string"){let w=r.default.parse(f,!0),_={};if(w.port!=null&&(_.port=Number(w.port)),_.host=w.hostname,_.query=w.query,_.auth=w.auth,_.protocol=w.protocol,_.path=w.path,_.protocol=(h=_.protocol)===null||h===void 0?void 0:h.replace(/:$/,""),p=Object.assign(Object.assign({},_),p),!p.protocol)throw new Error("Missing protocol")}if(p.unixSocket=p.unixSocket||((m=p.protocol)===null||m===void 0?void 0:m.includes("+unix")),p.unixSocket?p.protocol=p.protocol.replace("+unix",""):!(!((g=p.protocol)===null||g===void 0)&&g.startsWith("ws"))&&!(!((v=p.protocol)===null||v===void 0)&&v.startsWith("wx"))&&delete p.path,l(p),p.query&&typeof p.query.clientId=="string"&&(p.clientId=p.query.clientId),p.cert&&p.key)if(p.protocol){if(["mqtts","wss","wxs","alis"].indexOf(p.protocol)===-1)switch(p.protocol){case"mqtt":p.protocol="mqtts";break;case"ws":p.protocol="wss";break;case"wx":p.protocol="wxs";break;case"ali":p.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${p.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(s||(s={},!a.default&&!p.forceNativeWebSocket?(s.ws=nS().streamBuilder,s.wss=nS().streamBuilder,s.mqtt=vK().default,s.tcp=vK().default,s.ssl=yK().default,s.tls=s.ssl,s.mqtts=yK().default):(s.ws=nS().browserStreamBuilder,s.wss=nS().browserStreamBuilder,s.wx=bK().default,s.wxs=bK().default,s.ali=wK().default,s.alis=wK().default)),!s[p.protocol]){let w=["mqtts","wss"].indexOf(p.protocol)!==-1;p.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((_,k)=>w&&k%2===0?!1:typeof s[_]=="function")[0]}if(p.clean===!1&&!p.clientId)throw new Error("Missing clientId for unclean clients");p.protocol&&(p.defaultProtocol=p.protocol);function y(w){return p.servers&&((!w._reconnectCount||w._reconnectCount===p.servers.length)&&(w._reconnectCount=0),p.host=p.servers[w._reconnectCount].host,p.port=p.servers[w._reconnectCount].port,p.protocol=p.servers[w._reconnectCount].protocol?p.servers[w._reconnectCount].protocol:p.defaultProtocol,p.hostname=p.host,w._reconnectCount++),o("calling streambuilder for",p.protocol),s[p.protocol](w,p)}let b=new i.default(y,p);return b.on("error",()=>{}),b}function u(f,p,h=!0){return new Promise((m,g)=>{let v=c(f,p),y={connect:w=>{b(),m(v)},end:()=>{b(),m(v)},error:w=>{b(),v.end(),g(w)}};h===!1&&(y.close=()=>{y.error(new Error("Couldn't connect to server"))});function b(){Object.keys(y).forEach(w=>{v.off(w,y[w])})}Object.keys(y).forEach(w=>{v.on(w,y[w])})})}e.connectAsync=u,e.default=c}),xK=ln(e=>{Qt(),en(),Jt();var t=e&&e.__createBinding||(Object.create?function(h,m,g,v){v===void 0&&(v=g);var y=Object.getOwnPropertyDescriptor(m,g);(!y||("get"in y?!m.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return m[g]}}),Object.defineProperty(h,v,y)}:function(h,m,g,v){v===void 0&&(v=g),h[v]=m[g]}),n=e&&e.__setModuleDefault||(Object.create?function(h,m){Object.defineProperty(h,"default",{enumerable:!0,value:m})}:function(h,m){h.default=m}),r=e&&e.__importStar||function(h){if(h&&h.__esModule)return h;var m={};if(h!=null)for(var g in h)g!=="default"&&Object.prototype.hasOwnProperty.call(h,g)&&t(m,h,g);return n(m,h),m},i=e&&e.__exportStar||function(h,m){for(var g in h)g!=="default"&&!Object.prototype.hasOwnProperty.call(m,g)&&t(m,h,g)},a=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=e.KeepaliveManager=e.UniqueMessageIdProvider=e.DefaultMessageIdProvider=e.Store=e.MqttClient=e.connectAsync=e.connect=e.Client=void 0;var o=a(kR());e.MqttClient=o.default;var s=a(pce());e.DefaultMessageIdProvider=s.default;var l=a(O7e());e.UniqueMessageIdProvider=l.default;var c=a(hce());e.Store=c.default;var u=r(X7e());e.connect=u.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return u.connectAsync}});var f=a(Pce());e.KeepaliveManager=f.default,e.Client=o.default,i(kR(),e),i(hy(),e);var p=mE();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return p.ReasonCodes}})}),Z7e=ln(e=>{Qt(),en(),Jt();var t=e&&e.__createBinding||(Object.create?function(o,s,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(s,l);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(o,c,u)}:function(o,s,l,c){c===void 0&&(c=l),o[c]=s[l]}),n=e&&e.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),r=e&&e.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var l in o)l!=="default"&&Object.prototype.hasOwnProperty.call(o,l)&&t(s,o,l);return n(s,o),s},i=e&&e.__exportStar||function(o,s){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,o,l)};Object.defineProperty(e,"__esModule",{value:!0});var a=r(xK());e.default=a,i(xK(),e)});const Q7e=Z7e();/*! Bundled license information: + `);const w=y.state[s];if(w==null)return;JSON.stringify(i.getState())!==JSON.stringify(w)&&h(w);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(y)});case"DISPATCH":switch(g.payload.type){case"RESET":return h(m),s===void 0?u==null?void 0:u.init(i.getState()):u==null?void 0:u.init(Xx(l.name));case"COMMIT":if(s===void 0){u==null||u.init(i.getState());return}return u==null?void 0:u.init(Xx(l.name));case"ROLLBACK":return MM(g.state,y=>{if(s===void 0){h(y),u==null||u.init(i.getState());return}h(y[s]),u==null||u.init(Xx(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return MM(g.state,y=>{if(s===void 0){h(y);return}JSON.stringify(i.getState())!==JSON.stringify(y[s])&&h(y[s])});case"IMPORT_STATE":{const{nextLiftedState:y}=g.payload,w=(v=y.computedStates.slice(-1)[0])==null?void 0:v.state;if(!w)return;h(s===void 0?w:w[s]),u==null||u.send(null,y);return}case"PAUSE_RECORDING":return p=!p}return}}),m},es=qke,MM=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};function Kke(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var a;const o=l=>l===null?null:JSON.parse(l,void 0),s=(a=n.getItem(i))!=null?a:null;return s instanceof Promise?s.then(o):o(s)},setItem:(i,a)=>n.setItem(i,JSON.stringify(a,void 0)),removeItem:i=>n.removeItem(i)}}const Tw=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Tw(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Tw(r)(n)}}}},Gke=(e,t)=>(n,r,i)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,y)=>({...y,...v}),...t},o=!1;const s=new Set,l=new Set;let c;try{c=a.getStorage()}catch{}if(!c)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...v)},r,i);const u=Tw(a.serialize),f=()=>{const v=a.partialize({...r()});let y;const w=u({state:v,version:a.version}).then(b=>c.setItem(a.name,b)).catch(b=>{y=b});if(y)throw y;return w},p=i.setState;i.setState=(v,y)=>{p(v,y),f()};const h=e((...v)=>{n(...v),f()},r,i);let m;const g=()=>{var v;if(!c)return;o=!1,s.forEach(w=>w(r()));const y=((v=a.onRehydrateStorage)==null?void 0:v.call(a,r()))||void 0;return Tw(c.getItem.bind(c))(a.name).then(w=>{if(w)return a.deserialize(w)}).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==a.version){if(a.migrate)return a.migrate(w.state,w.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return w.state}).then(w=>{var b;return m=a.merge(w,(b=r())!=null?b:h),n(m,!0),f()}).then(()=>{y==null||y(m,void 0),o=!0,l.forEach(w=>w(m))}).catch(w=>{y==null||y(void 0,w)})};return i.persist={setOptions:v=>{a={...a,...v},v.getStorage&&(c=v.getStorage())},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:v=>(s.add(v),()=>{s.delete(v)}),onFinishHydration:v=>(l.add(v),()=>{l.delete(v)})},g(),m||h},Yke=(e,t)=>(n,r,i)=>{let a={storage:Kke(()=>localStorage),partialize:g=>g,version:0,merge:(g,v)=>({...v,...g}),...t},o=!1;const s=new Set,l=new Set;let c=a.storage;if(!c)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...g)},r,i);const u=()=>{const g=a.partialize({...r()});return c.setItem(a.name,{state:g,version:a.version})},f=i.setState;i.setState=(g,v)=>{f(g,v),u()};const p=e((...g)=>{n(...g),u()},r,i);i.getInitialState=()=>p;let h;const m=()=>{var g,v;if(!c)return;o=!1,s.forEach(w=>{var b;return w((b=r())!=null?b:p)});const y=((v=a.onRehydrateStorage)==null?void 0:v.call(a,(g=r())!=null?g:p))||void 0;return Tw(c.getItem.bind(c))(a.name).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==a.version){if(a.migrate)return[!0,a.migrate(w.state,w.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,w.state];return[!1,void 0]}).then(w=>{var b;const[C,k]=w;if(h=a.merge(k,(b=r())!=null?b:p),n(h,!0),C)return u()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(w=>w(h))}).catch(w=>{y==null||y(void 0,w)})};return i.persist={setOptions:g=>{a={...a,...g},g.storage&&(c=g.storage)},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},a.skipHydration||m(),h||p},Xke=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((kC?"open":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Gke(e,t)):Yke(e,t),ts=Xke;var tse=Symbol.for("immer-nothing"),$V=Symbol.for("immer-draftable"),Il=Symbol.for("immer-state");function Qc(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var d0=Object.getPrototypeOf;function f0(e){return!!e&&!!e[Il]}function og(e){var t;return e?nse(e)||Array.isArray(e)||!!e[$V]||!!((t=e.constructor)!=null&&t[$V])||z5(e)||H5(e):!1}var Zke=Object.prototype.constructor.toString();function nse(e){if(!e||typeof e!="object")return!1;const t=d0(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Zke}function dk(e,t){B5(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function B5(e){const t=e[Il];return t?t.type_:Array.isArray(e)?1:z5(e)?2:H5(e)?3:0}function BO(e,t){return B5(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function rse(e,t,n){const r=B5(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Qke(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function z5(e){return e instanceof Map}function H5(e){return e instanceof Set}function tm(e){return e.copy_||e.base_}function zO(e,t){if(z5(e))return new Map(e);if(H5(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=nse(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Il];let i=Reflect.ownKeys(r);for(let a=0;a1&&(e.set=e.add=e.clear=e.delete=Jke),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>pF(r,!0))),e}function Jke(){Qc(2)}function U5(e){return Object.isFrozen(e)}var e6e={};function sg(e){const t=e6e[e];return t||Qc(0,e),t}var Pw;function ise(){return Pw}function t6e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function MV(e,t){t&&(sg("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function HO(e){UO(e),e.drafts_.forEach(n6e),e.drafts_=null}function UO(e){e===Pw&&(Pw=e.parent_)}function TV(e){return Pw=t6e(Pw,e)}function n6e(e){const t=e[Il];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function PV(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Il].modified_&&(HO(t),Qc(4)),og(e)&&(e=fk(t,e),t.parent_||pk(t,e)),t.patches_&&sg("Patches").generateReplacementPatches_(n[Il].base_,e,t.patches_,t.inversePatches_)):e=fk(t,n,[]),HO(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==tse?e:void 0}function fk(e,t,n){if(U5(t))return t;const r=t[Il];if(!r)return dk(t,(i,a)=>OV(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return pk(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,o=!1;r.type_===3&&(a=new Set(i),i.clear(),o=!0),dk(a,(s,l)=>OV(e,r,i,s,l,n,o)),pk(e,i,!1),n&&e.patches_&&sg("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function OV(e,t,n,r,i,a,o){if(f0(i)){const s=a&&t&&t.type_!==3&&!BO(t.assigned_,r)?a.concat(r):void 0,l=fk(e,i,s);if(rse(n,r,l),f0(l))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(og(i)&&!U5(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;fk(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&pk(e,i)}}function pk(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&pF(t,n)}function r6e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:ise(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=hF;n&&(i=[r],a=Ow);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}var hF={get(e,t){if(t===Il)return e;const n=tm(e);if(!BO(n,t))return i6e(e,n,t);const r=n[t];return e.finalized_||!og(r)?r:r===TM(e.base_,t)?(PM(e),e.copy_[t]=VO(r,e)):r},has(e,t){return t in tm(e)},ownKeys(e){return Reflect.ownKeys(tm(e))},set(e,t,n){const r=ase(tm(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=TM(tm(e),t),a=i==null?void 0:i[Il];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Qke(n,i)&&(n!==void 0||BO(e.base_,t)))return!0;PM(e),WO(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return TM(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,PM(e),WO(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=tm(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Qc(11)},getPrototypeOf(e){return d0(e.base_)},setPrototypeOf(){Qc(12)}},Ow={};dk(hF,(e,t)=>{Ow[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ow.deleteProperty=function(e,t){return Ow.set.call(this,e,t,void 0)};Ow.set=function(e,t,n){return hF.set.call(this,e[0],t,n,e[0])};function TM(e,t){const n=e[Il];return(n?tm(n):e)[t]}function i6e(e,t,n){var i;const r=ase(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function ase(e,t){if(!(t in e))return;let n=d0(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=d0(n)}}function WO(e){e.modified_||(e.modified_=!0,e.parent_&&WO(e.parent_))}function PM(e){e.copy_||(e.copy_=zO(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var a6e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const o=this;return function(l=a,...c){return o.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&Qc(6),r!==void 0&&typeof r!="function"&&Qc(7);let i;if(og(t)){const a=TV(this),o=VO(t,void 0);let s=!0;try{i=n(o),s=!1}finally{s?HO(a):UO(a)}return MV(a,r),PV(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===tse&&(i=void 0),this.autoFreeze_&&pF(i,!0),r){const a=[],o=[];sg("Patches").generateReplacementPatches_(t,i,a,o),r(a,o)}return i}else Qc(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let r,i;return[this.produce(t,n,(o,s)=>{r=o,i=s}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){og(e)||Qc(8),f0(e)&&(e=o6e(e));const t=TV(this),n=VO(e,void 0);return n[Il].isManual_=!0,UO(t),n}finishDraft(e,t){const n=e&&e[Il];(!n||!n.isManual_)&&Qc(9);const{scope_:r}=n;return MV(r,t),PV(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=sg("Patches").applyPatches_;return f0(e)?r(e,t):this.produce(e,i=>r(i,t))}};function VO(e,t){const n=z5(e)?sg("MapSet").proxyMap_(e,t):H5(e)?sg("MapSet").proxySet_(e,t):r6e(e,t);return(t?t.scope_:ise()).drafts_.push(n),n}function o6e(e){return f0(e)||Qc(10,e),ose(e)}function ose(e){if(!og(e)||U5(e))return e;const t=e[Il];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=zO(e,t.scope_.immer_.useStrictShallowCopy_)}else n=zO(e,!0);return dk(n,(r,i)=>{rse(n,r,ose(i))}),t&&(t.finalized_=!1),n}var jl=new a6e,s6e=jl.produce;jl.produceWithPatches.bind(jl);jl.setAutoFreeze.bind(jl);jl.setUseStrictShallowCopy.bind(jl);jl.applyPatches.bind(jl);jl.createDraft.bind(jl);jl.finishDraft.bind(jl);const l6e=e=>(t,n,r)=>(r.setState=(i,a,...o)=>{const s=typeof i=="function"?s6e(i):i;return t(s,a,...o)},e(r.setState,n,r)),ns=l6e,c6e="dev",sse="open",RV="prod",u6e="quanjing",mF="prod-open";console.log("Current VITE_CONFIG_ENV:","prod-open","configEnv:",mF);const d6e="web";console.log("Current VITE_APP_ENV:","web","appEnv:",d6e);let sc;switch(mF){case"dev":sc={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9006",IS_DEBUG:!0,SERVER_MODE:c6e,CLIENT:"WEB"};break;case"prod-open":sc={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9003",IS_DEBUG:!1,SERVER_MODE:sse,CLIENT:"WEB"};break;case"prod-quanjing":sc={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9003",IS_DEBUG:!1,SERVER_MODE:u6e,CLIENT:"WEB"};break;case"prod-web":sc={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:RV,CLIENT:"WEB"};break;default:sc={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:RV,CLIENT:"ELECTRON"}}console.log("config.API_BASE_URL: ",mF,sc);const ha=navigator.userAgent.toLowerCase().indexOf("electron")>-1,OM=sc.API_URL,IV=sc.MQTT_URL;sc.HTML_URL;const Nl=sc.IS_DEBUG,f6e=sc.SERVER_MODE,kn=sc.CLIENT,gc="BYTEDESK",jV="locale",NV="mode",EC="team",Rw="agent",lse="personal",Iw="i18n.",Zx="i18n.new.message",cse="ANONYMOUS",use="message_list_item",yl="bytedesk_login_credentials",AV="THEME_MODE_TYPE",DV="THEME_NAME_TYPE",$C="PLAY_AUDIO",MC="NETWORK_STATUS_NOTIFICATION",B2="CONFIG_ENABLED_AGENT",TC="CONFIG_API_URL_AGENT",PC="CONFIG_WEBSOCKET_URL_AGENT",RM="CONFIG_HTML_URL_AGENT",dv="CONFIG_CUSTOM_ENABLED_AGENT",h2="CONFIG_CUSTOM_API_URL_AGENT",m2="CONFIG_CUSTOM_WEBSOCKET_URL_AGENT",p6e="CONFIG_PROPERTIES",fv=Iw+"DEPT_ALL",h6e="SCREENSHOT_OK",m6e="EVENT_BUS_SERVER_ERROR_500",eh="EVENT_BUS_TOKEN_INVALID",OC="EVENT_BUS_SEND_IMAGE_MESSAGE",IM="EVENT_BUS_SEND_FILE_MESSAGE",jw="EVENT_BUS_MQTT_MESSAGE",qO="EVENT_BUS_MQTT_CONNECTED",KO="EVENT_BUS_MQTT_OFFLINE",GO="EVENT_BUS_MQTT_CLOSE",YO="EVENT_BUS_MQTT_DISCONNECTED",XO="EVENT_BUS_MQTT_ERROR",ZO="EVENT_BUS_MQTT_END",hk="EVENT_BUS_MESSAGE_TYPE_STATUS",g6e="EVENT_BUS_MESSAGE_TYPE_TYPING",v6e="EVENT_BUS_MESSAGE_TYPE_PROCESSING",dse="EVENT_BUS_MESSAGE_TYPE_STREAM",y6e="EVENT_BUS_MESSAGE_TYPE_PREVIEW",fse="EVENT_BUS_MESSAGE_TYPE_TRANSFER",pse="EVENT_BUS_MESSAGE_TYPE_TRANSFER_ACCEPT",hse="EVENT_BUS_MESSAGE_TYPE_TRANSFER_REJECT",mse="EVENT_BUS_MESSAGE_TYPE_INVITE",gse="EVENT_BUS_MESSAGE_TYPE_INVITE_ACCEPT",vse="EVENT_BUS_MESSAGE_TYPE_INVITE_REJECT",QO="EVENT_BUS_SCREEN_CAPTURE_IMAGE",JO="EVENT_BUS_QUICKREPLY_SEND",eR="EVENT_BUS_QUICKREPLY_ADD",tR="EVENT_BUS_THREAD_UPDATE_NOTE",Nw="EVENT_BUS_ASK_AI_COPILOT",Aw="EVENT_BUS_SEARCH_QUICKREPLY",b6e="AUTH_STORE",Ef="ACCESS_TOKEN",w6e="ORGANIZATION_STORE",x6e="DEPARTMENT_STORE",S6e="MEMBER_STORE",C6e="VISITOR_STORE",_6e="MESSAGE_STORE",k6e="CONTACT_STORE",E6e="USER_STORE",$6e="SETTINGS_STORE",M6e="THREAD_STORE",T6e="DEVICE_STORE",P6e="AGENT_STORE",O6e="CATEGORY_STORE",R6e="WORKGROUP_STORE",I6e="PROVIDER_STORE",j6e="ROBOT_MESSAGE_STORE",N6e="member",yse="device",A6e="MOBILE_LOGIN",D6e="MOBILE_RESET",F6e="MOBILE_VERIFY",L6e="EMAIL_RESET",B6e="EMAIL_VERIFY",z6e="PENDING",H6e="SCANNED",U6e="CONFIRMED",W6e="EXPIRED",V6e="https://cdn.weiyuai.cn/agent/assets/sound/dingdong.wav",bse="https://cdn.weiyuai.cn/agent/assets/css/chatui/chatui-theme-dark.css",q6e="https://cdn.weiyuai.cn/agent/assets/css/scrollbar.css",uh="AGENT",K6e="VISITOR",G6e="ROBOT",mk="MEMBER",W5="USER",q3="AGENT",K3="WORKGROUP",wse="MEMBER",xse="GROUP",Sse="TICKET",gF="LLM",FV="QUEUING",Y6e="STARTED",nR="CLOSED",$p="SENDING",Dw="SUCCESS",X6e="LEAVE_MSG_SUBMIT",Z6e="TRANSFER_PENDING",p0="TRANSFER_ACCEPTED",h0="TRANSFER_REJECTED",Q6e="INVITE_PENDING",LV="INVITE_ACCEPTED",BV="INVITE_REJECTED",Cse="WELCOME",m0="CONTINUE",V5="SYSTEM",J6e="QUEUE",_se="NOTICE",vo="TEXT",Cl="IMAGE",cd="FILE",Fw="AUDIO",lg="VIDEO",e5e="GOODS",zV="LEAVE_MSG",gk="TYPING",rR="PROCESSING",$f="STREAM",t5e="STREAM_END",HV="PREVIEW",iR="RECALL",aR="DELIVERED",oR="READ",kse="FAQ",n5e="FAQ_UP",r5e="FAQ_DOWN",i5e="ROBOT",a5e="ROBOT_UP",o5e="ROBOT_DOWN",s5e="RATE",pv="RATE_INVITE",Ese="RATE_SUBMIT",l5e="RATE_CANCEL",g0="AUTO_CLOSED",v0="AGENT_CLOSED",vF="TRANSFER",yF="TRANSFER_ACCEPT",bF="TRANSFER_REJECT",wF="INVITE",xF="INVITE_ACCEPT",SF="INVITE_REJECT",c5e="LOGIN",Ld="TRANSFER",UV="TRANSFER_REJECT",WV="TRANSFER_ACCEPT",VV="TRANSFER_TIMEOUT",qV="TRANSFER_CANCEL",Bd="INVITE",KV="INVITE_REJECT",GV="INVITE_ACCEPT",YV="INVITE_TIMEOUT",XV="INVITE_CANCEL",ZV="INVITE_VISITOR",QV="INVITE_VISITOR_REJECT",JV="INVITE_VISITOR_ACCEPT",eq="INVITE_VISITOR_TIMEOUT",tq="INVITE_VISITOR_CANCEL",nq="INVITE_GROUP",rq="INVITE_GROUP_REJECT",iq="INVITE_GROUP_ACCEPT",aq="INVITE_GROUP_TIMEOUT",oq="INVITE_GROUP_CANCEL",sq="INVITE_KBASE",lq="INVITE_KBASE_REJECT",cq="INVITE_KBASE_ACCEPT",uq="INVITE_KBASE_TIMEOUT",dq="INVITE_KBASE_CANCEL",fq="INVITE_ORGANIZATION",pq="INVITE_ORGANIZATION_REJECT",hq="INVITE_ORGANIZATION_ACCEPT",mq="INVITE_ORGANIZATION_TIMEOUT",gq="INVITE_ORGANIZATION_CANCEL",y0="AVAILABLE",vq="BUSY",Fm="OFFLINE",vk="REST",CF="LLM",u5e="NORMAL",d5e="system",$se="org/member/",Mse="org/group/",Tse="org/robot/",f5e="org/agent/",p5e="org/workgroup/",h5e="LLM",yq="AUTOREPLY",yk="TICKET",_F="CHAT",m5e="ATTACHMENT",jM="FIXED",NM="KEYWORD",AM="LLM",g5e="KB",v5e="CATEGORY",bq="lastPath",Lw="ORGANIZATION",y5e="AGENT",b5e="QUICKREPLY",w5e="ROBOT",x5e="ROLE_SUPER",S5e="ROLE_ADMIN",C5e="ROLE_MEMBER",_5e="ROLE_AGENT",sR="AGENT",Pse="LOWEST",kF="LOW",bk="MEDIUM",EF="HIGH",$F="URGENT",MF="CRITICAL",cg="NEW",Ose="ASSIGNED",G3="CLAIMED",Rse="UNCLAIMED",ly="PROCESSING",Y3="PENDING",X3="HOLDING",TF="RESUMED",Z3="REOPENED",Q3="RESOLVED",k5e="ESCALATED",J3="CLOSED",e4="CANCELLED",b0="STATUS_ALL",w0="PRIORITY_ALL",x0="ASSIGNMENT_ALL",S0="TIME_ALL",lR="UNASSIGNED",Ise="MY_CREATED",jse="MY_ASSIGNED",Nse="TODAY",Ase="YESTERDAY",Dse="THIS_WEEK",Fse="LAST_WEEK",Lse="THIS_MONTH",Bse="LAST_MONTH",E5e="groupTicketSimpleProcess",$5e="agent_assistant",t4=so()(es(ts(ns((e,t)=>({accessToken:"",setAccessToken(n){localStorage.setItem(Ef,n),e({accessToken:n})},getAccessToken(){return t().accessToken},removeAccessToken(){localStorage.removeItem(Ef),e({accessToken:""})}})),{name:b6e}))),PF=so()(es(ts(ns(e=>({settings:{playSound:!0,showNotifications:!0,openAtStartup:!1,colors:!1,proLayoutCollapsed:!0},currentMenu:"chat",setCurrentMenu(t){e({currentMenu:t})},setProLayoutCollapsed(t){e(n=>({settings:{...n.settings,proLayoutCollapsed:t}}))}})),{name:$6e})));var jg={},zse={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(zse);var br=zse.exports,q5={};Object.defineProperty(q5,"__esModule",{value:!0});q5.default=void 0;var M5e={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};q5.default=M5e;var K5={},n4={},G5={},Hse={exports:{}},Use={exports:{}},Wse={exports:{}},Vse={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Vse);var Ng=Vse.exports,qse={exports:{}};(function(e){var t=Ng.default;function n(r,i){if(t(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var o=a.call(r,i||"default");if(t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(qse);var T5e=qse.exports;(function(e){var t=Ng.default,n=T5e;function r(i){var a=n(i,"string");return t(a)=="symbol"?a:a+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Wse);var P5e=Wse.exports;(function(e){var t=P5e;function n(r,i,a){return(i=t(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Use);var Kse=Use.exports;(function(e){var t=Kse;function n(i,a){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);a&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),o.push.apply(o,s)}return o}function r(i){for(var a=1;a{r==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",o=>{o.matches?n("dark"):n("light")}))},[]),d.useEffect(()=>{localStorage.setItem(AV,i),i==="light"?n("light"):i==="dark"?n("dark"):i==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"))},[i]),d.useEffect(()=>{localStorage.setItem(DV,t)},[t]),{themeName:t,setThemeName:n,themeMode:i,setThemeMode:a,isDarkMode:t==="dark",isLightMode:t==="light"}}function Jse(e,t){return function(){return e.apply(t,arguments)}}const{toString:CEe}=Object.prototype,{getPrototypeOf:OF}=Object,oE=(e=>t=>{const n=CEe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Cu=e=>(e=e.toLowerCase(),t=>oE(t)===e),sE=e=>t=>typeof t===e,{isArray:uy}=Array,Bw=sE("undefined");function _Ee(e){return e!==null&&!Bw(e)&&e.constructor!==null&&!Bw(e.constructor)&&Pl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ele=Cu("ArrayBuffer");function kEe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ele(e.buffer),t}const EEe=sE("string"),Pl=sE("function"),tle=sE("number"),lE=e=>e!==null&&typeof e=="object",$Ee=e=>e===!0||e===!1,RC=e=>{if(oE(e)!=="object")return!1;const t=OF(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},MEe=Cu("Date"),TEe=Cu("File"),PEe=Cu("Blob"),OEe=Cu("FileList"),REe=e=>lE(e)&&Pl(e.pipe),IEe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Pl(e.append)&&((t=oE(e))==="formdata"||t==="object"&&Pl(e.toString)&&e.toString()==="[object FormData]"))},jEe=Cu("URLSearchParams"),[NEe,AEe,DEe,FEe]=["ReadableStream","Request","Response","Headers"].map(Cu),LEe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function l4(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),uy(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const ym=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rle=e=>!Bw(e)&&e!==ym;function cR(){const{caseless:e}=rle(this)&&this||{},t={},n=(r,i)=>{const a=e&&nle(t,i)||i;RC(t[a])&&RC(r)?t[a]=cR(t[a],r):RC(r)?t[a]=cR({},r):uy(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(l4(t,(i,a)=>{n&&Pl(i)?e[a]=Jse(i,n):e[a]=i},{allOwnKeys:r}),e),zEe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),HEe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},UEe=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&OF(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},WEe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},VEe=e=>{if(!e)return null;if(uy(e))return e;let t=e.length;if(!tle(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},qEe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&OF(Uint8Array)),KEe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},GEe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},YEe=Cu("HTMLFormElement"),XEe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),_q=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ZEe=Cu("RegExp"),ile=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};l4(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},QEe=e=>{ile(e,(t,n)=>{if(Pl(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Pl(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},JEe=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return uy(e)?r(e):r(String(e).split(t)),n},e8e=()=>{},t8e=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,DM="abcdefghijklmnopqrstuvwxyz",kq="0123456789",ale={DIGIT:kq,ALPHA:DM,ALPHA_DIGIT:DM+DM.toUpperCase()+kq},n8e=(e=16,t=ale.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function r8e(e){return!!(e&&Pl(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const i8e=e=>{const t=new Array(10),n=(r,i)=>{if(lE(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=uy(r)?[]:{};return l4(r,(o,s)=>{const l=n(o,i+1);!Bw(l)&&(a[s]=l)}),t[i]=void 0,a}}return r};return n(e,0)},a8e=Cu("AsyncFunction"),o8e=e=>e&&(lE(e)||Pl(e))&&Pl(e.then)&&Pl(e.catch),ole=((e,t)=>e?setImmediate:t?((n,r)=>(ym.addEventListener("message",({source:i,data:a})=>{i===ym&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ym.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Pl(ym.postMessage)),s8e=typeof queueMicrotask<"u"?queueMicrotask.bind(ym):typeof process<"u"&&process.nextTick||ole,Vt={isArray:uy,isArrayBuffer:ele,isBuffer:_Ee,isFormData:IEe,isArrayBufferView:kEe,isString:EEe,isNumber:tle,isBoolean:$Ee,isObject:lE,isPlainObject:RC,isReadableStream:NEe,isRequest:AEe,isResponse:DEe,isHeaders:FEe,isUndefined:Bw,isDate:MEe,isFile:TEe,isBlob:PEe,isRegExp:ZEe,isFunction:Pl,isStream:REe,isURLSearchParams:jEe,isTypedArray:qEe,isFileList:OEe,forEach:l4,merge:cR,extend:BEe,trim:LEe,stripBOM:zEe,inherits:HEe,toFlatObject:UEe,kindOf:oE,kindOfTest:Cu,endsWith:WEe,toArray:VEe,forEachEntry:KEe,matchAll:GEe,isHTMLForm:YEe,hasOwnProperty:_q,hasOwnProp:_q,reduceDescriptors:ile,freezeMethods:QEe,toObjectSet:JEe,toCamelCase:XEe,noop:e8e,toFiniteNumber:t8e,findKey:nle,global:ym,isContextDefined:rle,ALPHABET:ale,generateString:n8e,isSpecCompliantForm:r8e,toJSONObject:i8e,isAsyncFn:a8e,isThenable:o8e,setImmediate:ole,asap:s8e};function _r(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Vt.inherits(_r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Vt.toJSONObject(this.config),code:this.code,status:this.status}}});const sle=_r.prototype,lle={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{lle[e]={value:e}});Object.defineProperties(_r,lle);Object.defineProperty(sle,"isAxiosError",{value:!0});_r.from=(e,t,n,r,i,a)=>{const o=Object.create(sle);return Vt.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),_r.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const l8e=null;function uR(e){return Vt.isPlainObject(e)||Vt.isArray(e)}function cle(e){return Vt.endsWith(e,"[]")?e.slice(0,-2):e}function Eq(e,t,n){return e?e.concat(t).map(function(i,a){return i=cle(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function c8e(e){return Vt.isArray(e)&&!e.some(uR)}const u8e=Vt.toFlatObject(Vt,{},null,function(t){return/^is[A-Z]/.test(t)});function cE(e,t,n){if(!Vt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Vt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!Vt.isUndefined(v[g])});const r=n.metaTokens,i=n.visitor||u,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Vt.isSpecCompliantForm(t);if(!Vt.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(Vt.isDate(m))return m.toISOString();if(!l&&Vt.isBlob(m))throw new _r("Blob is not supported. Use a Buffer instead.");return Vt.isArrayBuffer(m)||Vt.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,v){let y=m;if(m&&!v&&typeof m=="object"){if(Vt.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(Vt.isArray(m)&&c8e(m)||(Vt.isFileList(m)||Vt.endsWith(g,"[]"))&&(y=Vt.toArray(m)))return g=cle(g),y.forEach(function(b,C){!(Vt.isUndefined(b)||b===null)&&t.append(o===!0?Eq([g],C,a):o===null?g:g+"[]",c(b))}),!1}return uR(m)?!0:(t.append(Eq(v,g,a),c(m)),!1)}const f=[],p=Object.assign(u8e,{defaultVisitor:u,convertValue:c,isVisitable:uR});function h(m,g){if(!Vt.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),Vt.forEach(m,function(y,w){(!(Vt.isUndefined(y)||y===null)&&i.call(t,y,Vt.isString(w)?w.trim():w,g,p))===!0&&h(y,g?g.concat(w):[w])}),f.pop()}}if(!Vt.isObject(e))throw new TypeError("data must be an object");return h(e),t}function $q(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function RF(e,t){this._pairs=[],e&&cE(e,this,t)}const ule=RF.prototype;ule.append=function(t,n){this._pairs.push([t,n])};ule.toString=function(t){const n=t?function(r){return t.call(this,r,$q)}:$q;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function d8e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dle(e,t,n){if(!t)return e;const r=n&&n.encode||d8e;Vt.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=Vt.isURLSearchParams(t)?t.toString():new RF(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Mq{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Vt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const fle={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},f8e=typeof URLSearchParams<"u"?URLSearchParams:RF,p8e=typeof FormData<"u"?FormData:null,h8e=typeof Blob<"u"?Blob:null,m8e={isBrowser:!0,classes:{URLSearchParams:f8e,FormData:p8e,Blob:h8e},protocols:["http","https","file","blob","url","data"]},IF=typeof window<"u"&&typeof document<"u",dR=typeof navigator=="object"&&navigator||void 0,g8e=IF&&(!dR||["ReactNative","NativeScript","NS"].indexOf(dR.product)<0),v8e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",y8e=IF&&window.location.href||"http://localhost",b8e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:IF,hasStandardBrowserEnv:g8e,hasStandardBrowserWebWorkerEnv:v8e,navigator:dR,origin:y8e},Symbol.toStringTag,{value:"Module"})),Wo={...b8e,...m8e};function w8e(e,t){return cE(e,new Wo.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Wo.isNode&&Vt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function x8e(e){return Vt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function S8e(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return o=!o&&Vt.isArray(i)?i.length:o,l?(Vt.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!Vt.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&Vt.isArray(i[o])&&(i[o]=S8e(i[o])),!s)}if(Vt.isFormData(e)&&Vt.isFunction(e.entries)){const n={};return Vt.forEachEntry(e,(r,i)=>{t(x8e(r),i,n,0)}),n}return null}function C8e(e,t,n){if(Vt.isString(e))try{return(t||JSON.parse)(e),Vt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const c4={transitional:fle,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=Vt.isObject(t);if(a&&Vt.isHTMLForm(t)&&(t=new FormData(t)),Vt.isFormData(t))return i?JSON.stringify(ple(t)):t;if(Vt.isArrayBuffer(t)||Vt.isBuffer(t)||Vt.isStream(t)||Vt.isFile(t)||Vt.isBlob(t)||Vt.isReadableStream(t))return t;if(Vt.isArrayBufferView(t))return t.buffer;if(Vt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return w8e(t,this.formSerializer).toString();if((s=Vt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return cE(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),C8e(t)):t}],transformResponse:[function(t){const n=this.transitional||c4.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Vt.isResponse(t)||Vt.isReadableStream(t))return t;if(t&&Vt.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?_r.from(s,_r.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wo.classes.FormData,Blob:Wo.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Vt.forEach(["delete","get","head","post","put","patch"],e=>{c4.headers[e]={}});const _8e=Vt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),k8e=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&_8e[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Tq=Symbol("internals");function Cb(e){return e&&String(e).trim().toLowerCase()}function IC(e){return e===!1||e==null?e:Vt.isArray(e)?e.map(IC):String(e)}function E8e(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const $8e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function FM(e,t,n,r,i){if(Vt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Vt.isString(t)){if(Vt.isString(r))return t.indexOf(r)!==-1;if(Vt.isRegExp(r))return r.test(t)}}function M8e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function T8e(e,t){const n=Vt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}class zs{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,l,c){const u=Cb(l);if(!u)throw new Error("header name must be a non-empty string");const f=Vt.findKey(i,u);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||l]=IC(s))}const o=(s,l)=>Vt.forEach(s,(c,u)=>a(c,u,l));if(Vt.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(Vt.isString(t)&&(t=t.trim())&&!$8e(t))o(k8e(t),n);else if(Vt.isHeaders(t))for(const[s,l]of t.entries())a(l,s,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=Cb(t),t){const r=Vt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return E8e(i);if(Vt.isFunction(n))return n.call(this,i,r);if(Vt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Cb(t),t){const r=Vt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||FM(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=Cb(o),o){const s=Vt.findKey(r,o);s&&(!n||FM(r,r[s],s,n))&&(delete r[s],i=!0)}}return Vt.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||FM(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return Vt.forEach(this,(i,a)=>{const o=Vt.findKey(r,a);if(o){n[o]=IC(i),delete n[a];return}const s=t?M8e(a):String(a).trim();s!==a&&delete n[a],n[s]=IC(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Vt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Vt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Tq]=this[Tq]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Cb(o);r[s]||(T8e(i,o),r[s]=!0)}return Vt.isArray(t)?t.forEach(a):a(t),this}}zs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Vt.reduceDescriptors(zs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Vt.freezeMethods(zs);function LM(e,t){const n=this||c4,r=t||n,i=zs.from(r.headers);let a=r.data;return Vt.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function hle(e){return!!(e&&e.__CANCEL__)}function dy(e,t,n){_r.call(this,e??"canceled",_r.ERR_CANCELED,t,n),this.name="CanceledError"}Vt.inherits(dy,_r,{__CANCEL__:!0});function mle(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new _r("Request failed with status code "+n.status,[_r.ERR_BAD_REQUEST,_r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function P8e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function O8e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[a];o||(o=c),n[i]=l,r[i]=c;let f=a,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{n=u,i=null,a&&(clearTimeout(a),a=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?o(c,u):(i=c,a||(a=setTimeout(()=>{a=null,o(i)},r-f)))},()=>i&&o(i)]}const wk=(e,t,n=3)=>{let r=0;const i=O8e(50,250);return R8e(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-r,c=i(l),u=o<=s;r=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},Pq=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Oq=e=>(...t)=>Vt.asap(()=>e(...t)),I8e=Wo.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Wo.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Wo.origin),Wo.navigator&&/(msie|trident)/i.test(Wo.navigator.userAgent)):()=>!0,j8e=Wo.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];Vt.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Vt.isString(r)&&o.push("path="+r),Vt.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function N8e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function A8e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function gle(e,t){return e&&!N8e(t)?A8e(e,t):t}const Rq=e=>e instanceof zs?{...e}:e;function ug(e,t){t=t||{};const n={};function r(c,u,f,p){return Vt.isPlainObject(c)&&Vt.isPlainObject(u)?Vt.merge.call({caseless:p},c,u):Vt.isPlainObject(u)?Vt.merge({},u):Vt.isArray(u)?u.slice():u}function i(c,u,f,p){if(Vt.isUndefined(u)){if(!Vt.isUndefined(c))return r(void 0,c,f,p)}else return r(c,u,f,p)}function a(c,u){if(!Vt.isUndefined(u))return r(void 0,u)}function o(c,u){if(Vt.isUndefined(u)){if(!Vt.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u,f)=>i(Rq(c),Rq(u),f,!0)};return Vt.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||i,p=f(e[u],t[u],u);Vt.isUndefined(p)&&f!==s||(n[u]=p)}),n}const vle=e=>{const t=ug({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=zs.from(o),t.url=dle(gle(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Vt.isFormData(n)){if(Wo.hasStandardBrowserEnv||Wo.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Wo.hasStandardBrowserEnv&&(r&&Vt.isFunction(r)&&(r=r(t)),r||r!==!1&&I8e(t.url))){const c=i&&a&&j8e.read(a);c&&o.set(i,c)}return t},D8e=typeof XMLHttpRequest<"u",F8e=D8e&&function(e){return new Promise(function(n,r){const i=vle(e);let a=i.data;const o=zs.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,f,p,h,m;function g(){h&&h(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function y(){if(!v)return;const b=zs.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),k={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:b,config:e,request:v};mle(function(_){n(_),g()},function(_){r(_),g()},k),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new _r("Request aborted",_r.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new _r("Network Error",_r.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const k=i.transitional||fle;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new _r(C,k.clarifyTimeoutError?_r.ETIMEDOUT:_r.ECONNABORTED,e,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&Vt.forEach(o.toJSON(),function(C,k){v.setRequestHeader(k,C)}),Vt.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),c&&([p,m]=wk(c,!0),v.addEventListener("progress",p)),l&&v.upload&&([f,h]=wk(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=b=>{v&&(r(!b||b.type?new dy(null,e,v):b),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const w=P8e(i.url);if(w&&Wo.protocols.indexOf(w)===-1){r(new _r("Unsupported protocol "+w+":",_r.ERR_BAD_REQUEST,e));return}v.send(a||null)})},L8e=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof _r?u:new dy(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,a(new _r(`timeout ${t} of ms exceeded`,_r.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>Vt.asap(s),l}},B8e=function*(e,t){let n=e.byteLength;if(n{const i=z8e(e,t);let a=0,o,s=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){s(),l.close();return}let f=u.byteLength;if(n){let p=a+=f;n(p)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},uE=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",yle=uE&&typeof ReadableStream=="function",U8e=uE&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ble=(e,...t)=>{try{return!!e(...t)}catch{return!1}},W8e=yle&&ble(()=>{let e=!1;const t=new Request(Wo.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),jq=64*1024,fR=yle&&ble(()=>Vt.isReadableStream(new Response("").body)),xk={stream:fR&&(e=>e.body)};uE&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!xk[t]&&(xk[t]=Vt.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new _r(`Response type '${t}' is not supported`,_r.ERR_NOT_SUPPORT,r)})})})(new Response);const V8e=async e=>{if(e==null)return 0;if(Vt.isBlob(e))return e.size;if(Vt.isSpecCompliantForm(e))return(await new Request(Wo.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Vt.isArrayBufferView(e)||Vt.isArrayBuffer(e))return e.byteLength;if(Vt.isURLSearchParams(e)&&(e=e+""),Vt.isString(e))return(await U8e(e)).byteLength},q8e=async(e,t)=>{const n=Vt.toFiniteNumber(e.getContentLength());return n??V8e(t)},K8e=uE&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:p}=vle(e);c=c?(c+"").toLowerCase():"text";let h=L8e([i,a&&a.toAbortSignal()],o),m;const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(l&&W8e&&n!=="get"&&n!=="head"&&(v=await q8e(u,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),S;if(Vt.isFormData(r)&&(S=k.headers.get("content-type"))&&u.setContentType(S),k.body){const[_,E]=Pq(v,wk(Oq(l)));r=Iq(k.body,jq,_,E)}}Vt.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;m=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?f:void 0});let w=await fetch(m);const b=fR&&(c==="stream"||c==="response");if(fR&&(s||b&&g)){const k={};["status","statusText","headers"].forEach($=>{k[$]=w[$]});const S=Vt.toFiniteNumber(w.headers.get("content-length")),[_,E]=s&&Pq(S,wk(Oq(s),!0))||[];w=new Response(Iq(w.body,jq,_,()=>{E&&E(),g&&g()}),k)}c=c||"text";let C=await xk[Vt.findKey(xk,c)||"text"](w,e);return!b&&g&&g(),await new Promise((k,S)=>{mle(k,S,{data:C,headers:zs.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:m})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new _r("Network Error",_r.ERR_NETWORK,e,m),{cause:y.cause||y}):_r.from(y,y&&y.code,e,m)}}),pR={http:l8e,xhr:F8e,fetch:K8e};Vt.forEach(pR,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Nq=e=>`- ${e}`,G8e=e=>Vt.isFunction(e)||e===null||e===!1,wle={getAdapter:e=>{e=Vt.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : +`+a.map(Nq).join(` +`):" "+Nq(a[0]):"as no adapter specified";throw new _r("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:pR};function BM(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dy(null,e)}function Aq(e){return BM(e),e.headers=zs.from(e.headers),e.data=LM.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wle.getAdapter(e.adapter||c4.adapter)(e).then(function(r){return BM(e),r.data=LM.call(e,e.transformResponse,r),r.headers=zs.from(r.headers),r},function(r){return hle(r)||(BM(e),r&&r.response&&(r.response.data=LM.call(e,e.transformResponse,r.response),r.response.headers=zs.from(r.response.headers))),Promise.reject(r)})}const xle="1.7.8",dE={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{dE[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Dq={};dE.transitional=function(t,n,r){function i(a,o){return"[Axios v"+xle+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new _r(i(o," has been removed"+(n?" in "+n:"")),_r.ERR_DEPRECATED);return n&&!Dq[o]&&(Dq[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};dE.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Y8e(e,t,n){if(typeof e!="object")throw new _r("options must be an object",_r.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new _r("option "+a+" must be "+l,_r.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _r("Unknown option "+a,_r.ERR_BAD_OPTION)}}const jC={assertOptions:Y8e,validators:dE},Nu=jC.validators;class Lm{constructor(t){this.defaults=t,this.interceptors={request:new Mq,response:new Mq}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ug(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&jC.assertOptions(r,{silentJSONParsing:Nu.transitional(Nu.boolean),forcedJSONParsing:Nu.transitional(Nu.boolean),clarifyTimeoutError:Nu.transitional(Nu.boolean)},!1),i!=null&&(Vt.isFunction(i)?n.paramsSerializer={serialize:i}:jC.assertOptions(i,{encode:Nu.function,serialize:Nu.function},!0)),jC.assertOptions(n,{baseUrl:Nu.spelling("baseURL"),withXsrfToken:Nu.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&Vt.merge(a.common,a[n.method]);a&&Vt.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=zs.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,f=0,p;if(!l){const m=[Aq.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),p=m.length,u=Promise.resolve(n);f{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new dy(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new jF(function(i){t=i}),cancel:t}}}function X8e(e){return function(n){return e.apply(null,n)}}function Z8e(e){return Vt.isObject(e)&&e.isAxiosError===!0}const hR={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(hR).forEach(([e,t])=>{hR[t]=e});function Sle(e){const t=new Lm(e),n=Jse(Lm.prototype.request,t);return Vt.extend(n,Lm.prototype,t,{allOwnKeys:!0}),Vt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Sle(ug(e,i))},n}const Sa=Sle(c4);Sa.Axios=Lm;Sa.CanceledError=dy;Sa.CancelToken=jF;Sa.isCancel=hle;Sa.VERSION=xle;Sa.toFormData=cE;Sa.AxiosError=_r;Sa.Cancel=Sa.CanceledError;Sa.all=function(t){return Promise.all(t)};Sa.spread=X8e;Sa.isAxiosError=Z8e;Sa.mergeConfig=ug;Sa.AxiosHeaders=zs;Sa.formToJSON=e=>ple(Vt.isHTMLForm(e)?new FormData(e):e);Sa.getAdapter=wle.getAdapter;Sa.HttpStatusCode=hR;Sa.default=Sa;function Q8e(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const $n=Q8e();async function J8e(){return bn("/config/bytedesk/properties",{method:"GET",params:{client:kn}})}async function Cle(){try{const t=(await Sa.get("/agent/config.json")).data;if(t.enabled)console.log("config enabled: ",t),localStorage.setItem(B2,"true"),localStorage.setItem(TC,t.apiUrl),localStorage.setItem(PC,t.websocketUrl),localStorage.setItem(RM,t.htmlUrl);else if(f6e===sse){console.log("config opensource");const n=window.location.port,r=window.location.protocol+"//"+window.location.hostname+":"+n,i="ws://"+window.location.hostname+":9885/websocket";console.log("apiUrl: ",r," port:",n," websocketUrl:",i),localStorage.setItem(B2,"true"),localStorage.setItem(TC,r),localStorage.setItem(PC,i),localStorage.setItem(RM,r)}else console.log("config disabled"),localStorage.setItem(B2,"false"),localStorage.removeItem(TC),localStorage.removeItem(PC),localStorage.removeItem(RM)}catch(e){console.log("loadConfig error: ",e)}}function u4(){const e=localStorage.getItem(dv);if(console.log("custom_enabled: ",e),e==="true"){const n=localStorage.getItem(h2);return n===null?OM:n}if(localStorage.getItem(B2)==="true"){const n=localStorage.getItem(TC);return n===null?OM:n}return OM}function fy(){return u4()+"/api/v1/upload/file"}function e$e(){const e=localStorage.getItem(dv);if(console.log("custom_enabled: ",e),e==="true"){const r=localStorage.getItem(m2);return r===null?IV:r}const t=localStorage.getItem(B2),n=localStorage.getItem(PC);return t==="true"?n:IV}async function _le(){const e=await J8e();return console.log("getConfigProperties response: ",e.data.data),e.data.code===200?(localStorage.setItem(p6e,JSON.stringify(e.data.data)),e.data.data):null}const bn=Sa.create({timeout:2e4,baseURL:u4(),paramsSerializer:{indexes:null}});bn.interceptors.request.use(e=>{e.baseURL=u4();const t=localStorage.getItem(Ef);return t&&t.length>10&&e.url.startsWith("/api")&&(e.headers.Authorization=`Bearer ${t}`),!t&&e.url.startsWith("/api")?Promise.reject(t$e):e},e=>(console.debug("request error",e),e.response.status===403&&$n.emit(eh,"403"),e.response.status===401&&$n.emit(eh,"401"),Promise.reject(e)));bn.interceptors.response.use(e=>e,e=>{var t,n,r;if(console.debug("response error",e),e!=null&&e.response)switch((t=e==null?void 0:e.response)==null?void 0:t.status){case 400:console.log("axios interception error 400"),$n.emit(eh,"400");break;case 401:console.log("axios interception error 401"),$n.emit(eh,"401");break;case 403:console.log("axios interception error 403"),$n.emit(eh,"403");break;case 500:console.log("axios interception error 500"),$n.emit(m6e,"500");break;case 601:console.log("axios interception error 601",e.message);break}return Promise.resolve({message:e==null?void 0:e.message,code:(n=e==null?void 0:e.response)==null?void 0:n.status,data:{message:e==null?void 0:e.message,code:(r=e==null?void 0:e.response)==null?void 0:r.status,data:!1}})});const zM={data:null,status:601,statusText:cse,headers:{},config:{headers:void 0},request:null},t$e={message:"匿名用户,无需访问服务器接口",name:cse,code:"601",config:zM.config,request:zM.request,response:zM,isAxiosError:!0,toJSON:function(){return{message:this.message,name:this.name,code:this.code,config:this.config,request:this.request,response:this.response}}};async function kle(e){return bn("/api/v1/agent/query/org",{method:"GET",params:{...e,client:kn}})}async function Ele(e){return bn("/api/v1/agent/query",{method:"GET",params:{orgUid:e,client:kn}})}async function n$e(e){return bn("/api/v1/agent/sync/current/thread/count",{method:"POST",data:{...e}})}async function r$e(e){return bn("/api/v1/agent/update",{method:"POST",data:{...e,client:kn}})}async function i$e(e){return bn("/api/v1/agent/update/status",{method:"POST",data:{...e,client:kn}})}async function a$e(e){return bn("/api/v1/agent/update/autoreply",{method:"POST",data:{...e,client:kn}})}async function o$e(e){return bn("/api/v1/message/query/topic",{method:"GET",params:{...e}})}async function s$e(e){return bn("/api/v1/message_unread/query",{method:"GET",params:{userUid:e,client:kn}})}async function l$e(e,t){return bn("/api/v1/vip/trans/baidu/translate",{method:"GET",params:{msgUid:e,content:t,client:kn}})}async function c$e(e){return bn("/api/v1/message/rest/send",{method:"POST",data:{json:e,client:kn}})}async function $le(e,t){console.log("sendMessageSSE: ",e);const n=`${u4()}/visitor/api/v1/member/message/sse?message=${e}`,r=new EventSource(n,{withCredentials:!1});r.onopen=i=>{console.log("sendMessageSSE onopen:",i.target)},r.onmessage=i=>{console.log("sendMessageSSE onmessage:",i.data);const a=JSON.parse(i.data);if(a.type==t5e){console.log("sendMessageSSE stream end"),$n.emit(dse),r&&r.close();return}else t(a)},r.onerror=i=>{console.log("sendMessageSSE onerror:",i),r.readyState===EventSource.CLOSED?console.log("sendMessageSSE connection is closed"):console.log("sendMessageSSE Error occurred",i),r.close()},r.addEventListener("customEventName",i=>{console.log("sendMessageSSE Message id is "+i.lastEventId)})}async function NF(){return bn("/api/v1/user/profile",{method:"GET",params:{client:kn}})}async function Mle(e){return bn("/api/v1/user/update",{method:"POST",data:{...e,client:kn}})}async function u$e(e){return bn("/api/v1/user/change/password",{method:"POST",data:{...e,client:kn}})}async function Tle(e){return bn("/api/v1/user/change/email",{method:"POST",data:{...e,client:kn}})}async function Ple(e){return bn("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:kn}})}var AF=Object.defineProperty,d$e=Object.getOwnPropertyDescriptor,f$e=Object.getOwnPropertyNames,p$e=Object.prototype.hasOwnProperty,Co=(e,t)=>()=>(e&&(t=e(e=0)),t),un=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Fg=(e,t)=>{for(var n in t)AF(e,n,{get:t[n],enumerable:!0})},h$e=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of f$e(t))!p$e.call(e,i)&&i!==n&&AF(e,i,{get:()=>t[i],enumerable:!(r=d$e(t,i))||r.enumerable});return e},Si=e=>h$e(AF({},"__esModule",{value:!0}),e),Zt=Co(()=>{}),li={};Fg(li,{_debugEnd:()=>KR,_debugProcess:()=>qR,_events:()=>lI,_eventsCount:()=>cI,_exiting:()=>RR,_fatalExceptions:()=>UR,_getActiveHandles:()=>Dle,_getActiveRequests:()=>Ale,_kill:()=>NR,_linkedBinding:()=>jle,_maxListeners:()=>sI,_preload_modules:()=>aI,_rawDebug:()=>TR,_startProfilerIdleNotifier:()=>GR,_stopProfilerIdleNotifier:()=>YR,_tickCallback:()=>VR,abort:()=>JR,addListener:()=>uI,allowedNodeEnvironmentFlags:()=>zR,arch:()=>gR,argv:()=>bR,argv0:()=>iI,assert:()=>Fle,binding:()=>_R,chdir:()=>$R,config:()=>IR,cpuUsage:()=>g2,cwd:()=>ER,debugPort:()=>rI,default:()=>FF,dlopen:()=>Nle,domain:()=>OR,emit:()=>mI,emitWarning:()=>CR,env:()=>yR,execArgv:()=>wR,execPath:()=>nI,exit:()=>LR,features:()=>HR,hasUncaughtExceptionCaptureCallback:()=>Lle,hrtime:()=>NC,kill:()=>FR,listeners:()=>zle,memoryUsage:()=>DR,moduleLoadList:()=>PR,nextTick:()=>Rle,off:()=>fI,on:()=>Gd,once:()=>dI,openStdin:()=>BR,pid:()=>eI,platform:()=>vR,ppid:()=>tI,prependListener:()=>gI,prependOnceListener:()=>vI,reallyExit:()=>jR,release:()=>MR,removeAllListeners:()=>hI,removeListener:()=>pI,resourceUsage:()=>AR,setSourceMapsEnabled:()=>oI,setUncaughtExceptionCaptureCallback:()=>WR,stderr:()=>ZR,stdin:()=>QR,stdout:()=>XR,title:()=>mR,umask:()=>kR,uptime:()=>Ble,version:()=>xR,versions:()=>SR});function DF(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function m$e(){!Bm||!bm||(Bm=!1,bm.length?td=bm.concat(td):z2=-1,td.length&&Ole())}function Ole(){if(!Bm){var e=setTimeout(m$e,0);Bm=!0;for(var t=td.length;t;){for(bm=td,td=[];++z21)for(var n=1;n{Zt(),Jt(),Qt(),td=[],Bm=!1,z2=-1,Ile.prototype.run=function(){this.fun.apply(null,this.array)},mR="browser",gR="x64",vR="browser",yR={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},bR=["/usr/bin/node"],wR=[],xR="v16.8.0",SR={},CR=function(e,t){console.warn((t?t+": ":"")+e)},_R=function(e){DF("binding")},kR=function(e){return 0},ER=function(){return"/"},$R=function(e){},MR={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},TR=jo,PR=[],OR={},RR=!1,IR={},jR=jo,NR=jo,g2=function(){return{}},AR=g2,DR=g2,FR=jo,LR=jo,BR=jo,zR={},HR={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},UR=jo,WR=jo,VR=jo,qR=jo,KR=jo,GR=jo,YR=jo,XR=void 0,ZR=void 0,QR=void 0,JR=jo,eI=2,tI=1,nI="/bin/usr/node",rI=9229,iI="node",aI=[],oI=jo,af={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},af.now===void 0&&(HM=Date.now(),af.timing&&af.timing.navigationStart&&(HM=af.timing.navigationStart),af.now=()=>Date.now()-HM),AC=1e9,NC.bigint=function(e){var t=NC(e);return typeof BigInt>"u"?t[0]*AC+t[1]:BigInt(t[0]*AC)+BigInt(t[1])},sI=10,lI={},cI=0,uI=Gd,dI=Gd,fI=Gd,pI=Gd,hI=Gd,mI=jo,gI=Gd,vI=Gd,FF={version:xR,versions:SR,arch:gR,platform:vR,release:MR,_rawDebug:TR,moduleLoadList:PR,binding:_R,_linkedBinding:jle,_events:lI,_eventsCount:cI,_maxListeners:sI,on:Gd,addListener:uI,once:dI,off:fI,removeListener:pI,removeAllListeners:hI,emit:mI,prependListener:gI,prependOnceListener:vI,listeners:zle,domain:OR,_exiting:RR,config:IR,dlopen:Nle,uptime:Ble,_getActiveRequests:Ale,_getActiveHandles:Dle,reallyExit:jR,_kill:NR,cpuUsage:g2,resourceUsage:AR,memoryUsage:DR,kill:FR,exit:LR,openStdin:BR,allowedNodeEnvironmentFlags:zR,assert:Fle,features:HR,_fatalExceptions:UR,setUncaughtExceptionCaptureCallback:WR,hasUncaughtExceptionCaptureCallback:Lle,emitWarning:CR,nextTick:Rle,_tickCallback:VR,_debugProcess:qR,_debugEnd:KR,_startProfilerIdleNotifier:GR,_stopProfilerIdleNotifier:YR,stdout:XR,stdin:QR,stderr:ZR,abort:JR,umask:kR,chdir:$R,cwd:ER,env:yR,title:mR,argv:bR,execArgv:wR,pid:eI,ppid:tI,execPath:nI,debugPort:rI,hrtime:NC,argv0:iI,_preload_modules:aI,setSourceMapsEnabled:oI}}),Qt=Co(()=>{g$e()}),_o={};Fg(_o,{Buffer:()=>Sk,INSPECT_MAX_BYTES:()=>Hle,default:()=>Yd,kMaxLength:()=>Ule});function v$e(){if(yI)return G1;yI=!0,G1.byteLength=s,G1.toByteArray=c,G1.fromByteArray=p;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var g=h.indexOf("=");g===-1&&(g=m);var v=g===m?0:4-g%4;return[g,v]}function s(h){var m=o(h),g=m[0],v=m[1];return(g+v)*3/4-v}function l(h,m,g){return(m+g)*3/4-g}function c(h){var m,g=o(h),v=g[0],y=g[1],w=new n(l(h,v,y)),b=0,C=y>0?v-4:v,k;for(k=0;k>16&255,w[b++]=m>>8&255,w[b++]=m&255;return y===2&&(m=t[h.charCodeAt(k)]<<2|t[h.charCodeAt(k+1)]>>4,w[b++]=m&255),y===1&&(m=t[h.charCodeAt(k)]<<10|t[h.charCodeAt(k+1)]<<4|t[h.charCodeAt(k+2)]>>2,w[b++]=m>>8&255,w[b++]=m&255),w}function u(h){return e[h>>18&63]+e[h>>12&63]+e[h>>6&63]+e[h&63]}function f(h,m,g){for(var v,y=[],w=m;wC?C:b+w));return v===1?(m=h[g-1],y.push(e[m>>2]+e[m<<4&63]+"==")):v===2&&(m=(h[g-2]<<8)+h[g-1],y.push(e[m>>10]+e[m>>4&63]+e[m<<2&63]+"=")),y.join("")}return G1}function y$e(){return bI?v2:(bI=!0,v2.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,l=(1<>1,u=-7,f=n?i-1:0,p=n?-1:1,h=e[t+f];for(f+=p,a=h&(1<<-u)-1,h>>=-u,u+=s;u>0;a=a*256+e[t+f],f+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+f],f+=p,u-=8);if(a===0)a=1-c;else{if(a===l)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-c}return(h?-1:1)*o*Math.pow(2,a-r)},v2.write=function(e,t,n,r,i,a){var o,s,l,c=a*8-i-1,u=(1<>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,m=r?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=p/l:t+=p*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=s&255,h+=m,s/=256,i-=8);for(o=o<0;e[n+h]=o&255,h+=m,o/=256,c-=8);e[n+h-m]|=g*128},v2)}function b$e(){if(wI)return fp;wI=!0;let e=v$e(),t=y$e(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;fp.Buffer=o,fp.SlowBuffer=y,fp.INSPECT_MAX_BYTES=50;let r=2147483647;fp.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let z=new Uint8Array(1),H={foo:function(){return 42}};return Object.setPrototypeOf(H,Uint8Array.prototype),Object.setPrototypeOf(z,H),z.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(z){if(z>r)throw new RangeError('The value "'+z+'" is invalid for option "size"');let H=new Uint8Array(z);return Object.setPrototypeOf(H,o.prototype),H}function o(z,H,G){if(typeof z=="number"){if(typeof H=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(z)}return s(z,H,G)}o.poolSize=8192;function s(z,H,G){if(typeof z=="string")return f(z,H);if(ArrayBuffer.isView(z))return h(z);if(z==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z);if(Se(z,ArrayBuffer)||z&&Se(z.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Se(z,SharedArrayBuffer)||z&&Se(z.buffer,SharedArrayBuffer)))return m(z,H,G);if(typeof z=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let de=z.valueOf&&z.valueOf();if(de!=null&&de!==z)return o.from(de,H,G);let xe=g(z);if(xe)return xe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof z[Symbol.toPrimitive]=="function")return o.from(z[Symbol.toPrimitive]("string"),H,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z)}o.from=function(z,H,G){return s(z,H,G)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(z){if(typeof z!="number")throw new TypeError('"size" argument must be of type number');if(z<0)throw new RangeError('The value "'+z+'" is invalid for option "size"')}function c(z,H,G){return l(z),z<=0?a(z):H!==void 0?typeof G=="string"?a(z).fill(H,G):a(z).fill(H):a(z)}o.alloc=function(z,H,G){return c(z,H,G)};function u(z){return l(z),a(z<0?0:v(z)|0)}o.allocUnsafe=function(z){return u(z)},o.allocUnsafeSlow=function(z){return u(z)};function f(z,H){if((typeof H!="string"||H==="")&&(H="utf8"),!o.isEncoding(H))throw new TypeError("Unknown encoding: "+H);let G=w(z,H)|0,de=a(G),xe=de.write(z,H);return xe!==G&&(de=de.slice(0,xe)),de}function p(z){let H=z.length<0?0:v(z.length)|0,G=a(H);for(let de=0;de=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return z|0}function y(z){return+z!=z&&(z=0),o.alloc(+z)}o.isBuffer=function(z){return z!=null&&z._isBuffer===!0&&z!==o.prototype},o.compare=function(z,H){if(Se(z,Uint8Array)&&(z=o.from(z,z.offset,z.byteLength)),Se(H,Uint8Array)&&(H=o.from(H,H.offset,H.byteLength)),!o.isBuffer(z)||!o.isBuffer(H))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(z===H)return 0;let G=z.length,de=H.length;for(let xe=0,he=Math.min(G,de);xede.length?(o.isBuffer(he)||(he=o.from(he)),he.copy(de,xe)):Uint8Array.prototype.set.call(de,he,xe);else if(o.isBuffer(he))he.copy(de,xe);else throw new TypeError('"list" argument must be an Array of Buffers');xe+=he.length}return de};function w(z,H){if(o.isBuffer(z))return z.length;if(ArrayBuffer.isView(z)||Se(z,ArrayBuffer))return z.byteLength;if(typeof z!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof z);let G=z.length,de=arguments.length>2&&arguments[2]===!0;if(!de&&G===0)return 0;let xe=!1;for(;;)switch(H){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return fe(z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return Ce(z).length;default:if(xe)return de?-1:fe(z).length;H=(""+H).toLowerCase(),xe=!0}}o.byteLength=w;function b(z,H,G){let de=!1;if((H===void 0||H<0)&&(H=0),H>this.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0,H>>>=0,G<=H))return"";for(z||(z="utf8");;)switch(z){case"hex":return F(this,H,G);case"utf8":case"utf-8":return O(this,H,G);case"ascii":return A(this,H,G);case"latin1":case"binary":return N(this,H,G);case"base64":return R(this,H,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,H,G);default:if(de)throw new TypeError("Unknown encoding: "+z);z=(z+"").toLowerCase(),de=!0}}o.prototype._isBuffer=!0;function C(z,H,G){let de=z[H];z[H]=z[G],z[G]=de}o.prototype.swap16=function(){let z=this.length;if(z%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let H=0;HH&&(z+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(z,H,G,de,xe){if(Se(z,Uint8Array)&&(z=o.from(z,z.offset,z.byteLength)),!o.isBuffer(z))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof z);if(H===void 0&&(H=0),G===void 0&&(G=z?z.length:0),de===void 0&&(de=0),xe===void 0&&(xe=this.length),H<0||G>z.length||de<0||xe>this.length)throw new RangeError("out of range index");if(de>=xe&&H>=G)return 0;if(de>=xe)return-1;if(H>=G)return 1;if(H>>>=0,G>>>=0,de>>>=0,xe>>>=0,this===z)return 0;let he=xe-de,Ue=G-H,We=Math.min(he,Ue),ge=this.slice(de,xe),ze=z.slice(H,G);for(let Ve=0;Ve2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,we(G)&&(G=xe?0:z.length-1),G<0&&(G=z.length+G),G>=z.length){if(xe)return-1;G=z.length-1}else if(G<0)if(xe)G=0;else return-1;if(typeof H=="string"&&(H=o.from(H,de)),o.isBuffer(H))return H.length===0?-1:S(z,H,G,de,xe);if(typeof H=="number")return H=H&255,typeof Uint8Array.prototype.indexOf=="function"?xe?Uint8Array.prototype.indexOf.call(z,H,G):Uint8Array.prototype.lastIndexOf.call(z,H,G):S(z,[H],G,de,xe);throw new TypeError("val must be string, number or Buffer")}function S(z,H,G,de,xe){let he=1,Ue=z.length,We=H.length;if(de!==void 0&&(de=String(de).toLowerCase(),de==="ucs2"||de==="ucs-2"||de==="utf16le"||de==="utf-16le")){if(z.length<2||H.length<2)return-1;he=2,Ue/=2,We/=2,G/=2}function ge(Ve,Be){return he===1?Ve[Be]:Ve.readUInt16BE(Be*he)}let ze;if(xe){let Ve=-1;for(ze=G;zeUe&&(G=Ue-We),ze=G;ze>=0;ze--){let Ve=!0;for(let Be=0;Bexe&&(de=xe)):de=xe;let he=H.length;de>he/2&&(de=he/2);let Ue;for(Ue=0;Ue>>0,isFinite(G)?(G=G>>>0,de===void 0&&(de="utf8")):(de=G,G=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let xe=this.length-H;if((G===void 0||G>xe)&&(G=xe),z.length>0&&(G<0||H<0)||H>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");let he=!1;for(;;)switch(de){case"hex":return _(this,z,H,G);case"utf8":case"utf-8":return E(this,z,H,G);case"ascii":case"latin1":case"binary":return $(this,z,H,G);case"base64":return M(this,z,H,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,z,H,G);default:if(he)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),he=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(z,H,G){return H===0&&G===z.length?e.fromByteArray(z):e.fromByteArray(z.slice(H,G))}function O(z,H,G){G=Math.min(z.length,G);let de=[],xe=H;for(;xe239?4:he>223?3:he>191?2:1;if(xe+We<=G){let ge,ze,Ve,Be;switch(We){case 1:he<128&&(Ue=he);break;case 2:ge=z[xe+1],(ge&192)===128&&(Be=(he&31)<<6|ge&63,Be>127&&(Ue=Be));break;case 3:ge=z[xe+1],ze=z[xe+2],(ge&192)===128&&(ze&192)===128&&(Be=(he&15)<<12|(ge&63)<<6|ze&63,Be>2047&&(Be<55296||Be>57343)&&(Ue=Be));break;case 4:ge=z[xe+1],ze=z[xe+2],Ve=z[xe+3],(ge&192)===128&&(ze&192)===128&&(Ve&192)===128&&(Be=(he&15)<<18|(ge&63)<<12|(ze&63)<<6|Ve&63,Be>65535&&Be<1114112&&(Ue=Be))}}Ue===null?(Ue=65533,We=1):Ue>65535&&(Ue-=65536,de.push(Ue>>>10&1023|55296),Ue=56320|Ue&1023),de.push(Ue),xe+=We}return I(de)}let j=4096;function I(z){let H=z.length;if(H<=j)return String.fromCharCode.apply(String,z);let G="",de=0;for(;dede)&&(G=de);let xe="";for(let he=H;heG&&(z=G),H<0?(H+=G,H<0&&(H=0)):H>G&&(H=G),HG)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(z,H,G){z=z>>>0,H=H>>>0,G||L(z,H,this.length);let de=this[z],xe=1,he=0;for(;++he>>0,H=H>>>0,G||L(z,H,this.length);let de=this[z+--H],xe=1;for(;H>0&&(xe*=256);)de+=this[z+--H]*xe;return de},o.prototype.readUint8=o.prototype.readUInt8=function(z,H){return z=z>>>0,H||L(z,1,this.length),this[z]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(z,H){return z=z>>>0,H||L(z,2,this.length),this[z]|this[z+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(z,H){return z=z>>>0,H||L(z,2,this.length),this[z]<<8|this[z+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(z,H){return z=z>>>0,H||L(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(z,H){return z=z>>>0,H||L(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},o.prototype.readBigUInt64LE=ye(function(z){z=z>>>0,ce(z,"offset");let H=this[z],G=this[z+7];(H===void 0||G===void 0)&&pe(z,this.length-8);let de=H+this[++z]*2**8+this[++z]*2**16+this[++z]*2**24,xe=this[++z]+this[++z]*2**8+this[++z]*2**16+G*2**24;return BigInt(de)+(BigInt(xe)<>>0,ce(z,"offset");let H=this[z],G=this[z+7];(H===void 0||G===void 0)&&pe(z,this.length-8);let de=H*2**24+this[++z]*2**16+this[++z]*2**8+this[++z],xe=this[++z]*2**24+this[++z]*2**16+this[++z]*2**8+G;return(BigInt(de)<>>0,H=H>>>0,G||L(z,H,this.length);let de=this[z],xe=1,he=0;for(;++he=xe&&(de-=Math.pow(2,8*H)),de},o.prototype.readIntBE=function(z,H,G){z=z>>>0,H=H>>>0,G||L(z,H,this.length);let de=H,xe=1,he=this[z+--de];for(;de>0&&(xe*=256);)he+=this[z+--de]*xe;return xe*=128,he>=xe&&(he-=Math.pow(2,8*H)),he},o.prototype.readInt8=function(z,H){return z=z>>>0,H||L(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},o.prototype.readInt16LE=function(z,H){z=z>>>0,H||L(z,2,this.length);let G=this[z]|this[z+1]<<8;return G&32768?G|4294901760:G},o.prototype.readInt16BE=function(z,H){z=z>>>0,H||L(z,2,this.length);let G=this[z+1]|this[z]<<8;return G&32768?G|4294901760:G},o.prototype.readInt32LE=function(z,H){return z=z>>>0,H||L(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},o.prototype.readInt32BE=function(z,H){return z=z>>>0,H||L(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},o.prototype.readBigInt64LE=ye(function(z){z=z>>>0,ce(z,"offset");let H=this[z],G=this[z+7];(H===void 0||G===void 0)&&pe(z,this.length-8);let de=this[z+4]+this[z+5]*2**8+this[z+6]*2**16+(G<<24);return(BigInt(de)<>>0,ce(z,"offset");let H=this[z],G=this[z+7];(H===void 0||G===void 0)&&pe(z,this.length-8);let de=(H<<24)+this[++z]*2**16+this[++z]*2**8+this[++z];return(BigInt(de)<>>0,H||L(z,4,this.length),t.read(this,z,!0,23,4)},o.prototype.readFloatBE=function(z,H){return z=z>>>0,H||L(z,4,this.length),t.read(this,z,!1,23,4)},o.prototype.readDoubleLE=function(z,H){return z=z>>>0,H||L(z,8,this.length),t.read(this,z,!0,52,8)},o.prototype.readDoubleBE=function(z,H){return z=z>>>0,H||L(z,8,this.length),t.read(this,z,!1,52,8)};function V(z,H,G,de,xe,he){if(!o.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>xe||Hz.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(z,H,G,de){if(z=+z,H=H>>>0,G=G>>>0,!de){let Ue=Math.pow(2,8*G)-1;V(this,z,H,G,Ue,0)}let xe=1,he=0;for(this[H]=z&255;++he>>0,G=G>>>0,!de){let Ue=Math.pow(2,8*G)-1;V(this,z,H,G,Ue,0)}let xe=G-1,he=1;for(this[H+xe]=z&255;--xe>=0&&(he*=256);)this[H+xe]=z/he&255;return H+G},o.prototype.writeUint8=o.prototype.writeUInt8=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,1,255,0),this[H]=z&255,H+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,2,65535,0),this[H]=z&255,this[H+1]=z>>>8,H+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,2,65535,0),this[H]=z>>>8,this[H+1]=z&255,H+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,4,4294967295,0),this[H+3]=z>>>24,this[H+2]=z>>>16,this[H+1]=z>>>8,this[H]=z&255,H+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,4,4294967295,0),this[H]=z>>>24,this[H+1]=z>>>16,this[H+2]=z>>>8,this[H+3]=z&255,H+4};function B(z,H,G,de,xe){le(H,de,xe,z,G,7);let he=Number(H&BigInt(4294967295));z[G++]=he,he=he>>8,z[G++]=he,he=he>>8,z[G++]=he,he=he>>8,z[G++]=he;let Ue=Number(H>>BigInt(32)&BigInt(4294967295));return z[G++]=Ue,Ue=Ue>>8,z[G++]=Ue,Ue=Ue>>8,z[G++]=Ue,Ue=Ue>>8,z[G++]=Ue,G}function U(z,H,G,de,xe){le(H,de,xe,z,G,7);let he=Number(H&BigInt(4294967295));z[G+7]=he,he=he>>8,z[G+6]=he,he=he>>8,z[G+5]=he,he=he>>8,z[G+4]=he;let Ue=Number(H>>BigInt(32)&BigInt(4294967295));return z[G+3]=Ue,Ue=Ue>>8,z[G+2]=Ue,Ue=Ue>>8,z[G+1]=Ue,Ue=Ue>>8,z[G]=Ue,G+8}o.prototype.writeBigUInt64LE=ye(function(z,H=0){return B(this,z,H,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=ye(function(z,H=0){return U(this,z,H,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(z,H,G,de){if(z=+z,H=H>>>0,!de){let We=Math.pow(2,8*G-1);V(this,z,H,G,We-1,-We)}let xe=0,he=1,Ue=0;for(this[H]=z&255;++xe>0)-Ue&255;return H+G},o.prototype.writeIntBE=function(z,H,G,de){if(z=+z,H=H>>>0,!de){let We=Math.pow(2,8*G-1);V(this,z,H,G,We-1,-We)}let xe=G-1,he=1,Ue=0;for(this[H+xe]=z&255;--xe>=0&&(he*=256);)z<0&&Ue===0&&this[H+xe+1]!==0&&(Ue=1),this[H+xe]=(z/he>>0)-Ue&255;return H+G},o.prototype.writeInt8=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,1,127,-128),z<0&&(z=255+z+1),this[H]=z&255,H+1},o.prototype.writeInt16LE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,2,32767,-32768),this[H]=z&255,this[H+1]=z>>>8,H+2},o.prototype.writeInt16BE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,2,32767,-32768),this[H]=z>>>8,this[H+1]=z&255,H+2},o.prototype.writeInt32LE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,4,2147483647,-2147483648),this[H]=z&255,this[H+1]=z>>>8,this[H+2]=z>>>16,this[H+3]=z>>>24,H+4},o.prototype.writeInt32BE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),this[H]=z>>>24,this[H+1]=z>>>16,this[H+2]=z>>>8,this[H+3]=z&255,H+4},o.prototype.writeBigInt64LE=ye(function(z,H=0){return B(this,z,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=ye(function(z,H=0){return U(this,z,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Y(z,H,G,de,xe,he){if(G+de>z.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function ee(z,H,G,de,xe){return H=+H,G=G>>>0,xe||Y(z,H,G,4),t.write(z,H,G,de,23,4),G+4}o.prototype.writeFloatLE=function(z,H,G){return ee(this,z,H,!0,G)},o.prototype.writeFloatBE=function(z,H,G){return ee(this,z,H,!1,G)};function ie(z,H,G,de,xe){return H=+H,G=G>>>0,xe||Y(z,H,G,8),t.write(z,H,G,de,52,8),G+8}o.prototype.writeDoubleLE=function(z,H,G){return ie(this,z,H,!0,G)},o.prototype.writeDoubleBE=function(z,H,G){return ie(this,z,H,!1,G)},o.prototype.copy=function(z,H,G,de){if(!o.isBuffer(z))throw new TypeError("argument should be a Buffer");if(G||(G=0),!de&&de!==0&&(de=this.length),H>=z.length&&(H=z.length),H||(H=0),de>0&&de=this.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),z.length-H>>0,G=G===void 0?this.length:G>>>0,z||(z=0);let xe;if(typeof z=="number")for(xe=H;xe2**32?xe=ae(String(G)):typeof G=="bigint"&&(xe=String(G),(G>BigInt(2)**BigInt(32)||G<-(BigInt(2)**BigInt(32)))&&(xe=ae(xe)),xe+="n"),de+=` It must be ${H}. Received ${xe}`,de},RangeError);function ae(z){let H="",G=z.length,de=z[0]==="-"?1:0;for(;G>=de+4;G-=3)H=`_${z.slice(G-3,G)}${H}`;return`${z.slice(0,G)}${H}`}function oe(z,H,G){ce(H,"offset"),(z[H]===void 0||z[H+G]===void 0)&&pe(H,z.length-(G+1))}function le(z,H,G,de,xe,he){if(z>G||z= 0${Ue} and < 2${Ue} ** ${(he+1)*8}${Ue}`:We=`>= -(2${Ue} ** ${(he+1)*8-1}${Ue}) and < 2 ** ${(he+1)*8-1}${Ue}`,new Z.ERR_OUT_OF_RANGE("value",We,z)}oe(de,xe,he)}function ce(z,H){if(typeof z!="number")throw new Z.ERR_INVALID_ARG_TYPE(H,"number",z)}function pe(z,H,G){throw Math.floor(z)!==z?(ce(z,G),new Z.ERR_OUT_OF_RANGE("offset","an integer",z)):H<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${H}`,z)}let me=/[^+/0-9A-Za-z-_]/g;function re(z){if(z=z.split("=")[0],z=z.trim().replace(me,""),z.length<2)return"";for(;z.length%4!==0;)z=z+"=";return z}function fe(z,H){H=H||1/0;let G,de=z.length,xe=null,he=[];for(let Ue=0;Ue55295&&G<57344){if(!xe){if(G>56319){(H-=3)>-1&&he.push(239,191,189);continue}else if(Ue+1===de){(H-=3)>-1&&he.push(239,191,189);continue}xe=G;continue}if(G<56320){(H-=3)>-1&&he.push(239,191,189),xe=G;continue}G=(xe-55296<<10|G-56320)+65536}else xe&&(H-=3)>-1&&he.push(239,191,189);if(xe=null,G<128){if((H-=1)<0)break;he.push(G)}else if(G<2048){if((H-=2)<0)break;he.push(G>>6|192,G&63|128)}else if(G<65536){if((H-=3)<0)break;he.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((H-=4)<0)break;he.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return he}function ve(z){let H=[];for(let G=0;G>8,xe=G%256,he.push(xe),he.push(de);return he}function Ce(z){return e.toByteArray(re(z))}function be(z,H,G,de){let xe;for(xe=0;xe=H.length||xe>=z.length);++xe)H[xe+G]=z[xe];return xe}function Se(z,H){return z instanceof H||z!=null&&z.constructor!=null&&z.constructor.name!=null&&z.constructor.name===H.name}function we(z){return z!==z}let se=function(){let z="0123456789abcdef",H=new Array(256);for(let G=0;G<16;++G){let de=G*16;for(let xe=0;xe<16;++xe)H[de+xe]=z[G]+z[xe]}return H}();function ye(z){return typeof BigInt>"u"?Oe:z}function Oe(){throw new Error("BigInt not supported")}return fp}var G1,yI,v2,bI,fp,wI,Yd,Sk,Hle,Ule,ko=Co(()=>{Zt(),Jt(),Qt(),G1={},yI=!1,v2={},bI=!1,fp={},wI=!1,Yd=b$e(),Yd.Buffer,Yd.SlowBuffer,Yd.INSPECT_MAX_BYTES,Yd.kMaxLength,Sk=Yd.Buffer,Hle=Yd.INSPECT_MAX_BYTES,Ule=Yd.kMaxLength}),Jt=Co(()=>{ko()}),w$e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(n){this.aliasToTopic={},this.max=n}put(n,r){return r===0||r>this.max?!1:(this.aliasToTopic[r]=n,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(n){return this.aliasToTopic[n]}clear(){this.aliasToTopic={}}};e.default=t}),qa=un((e,t)=>{Zt(),Jt(),Qt(),t.exports={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,i){return n.slice(r,i)},Error,FunctionPrototypeCall(n,r,...i){return n.call(r,...i)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,i){return Object.defineProperty(n,r,i)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,i){return n.then(r,i)},PromiseReject(n){return Promise.reject(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,i){return n.slice(r,i)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(n,r,i){return n.set(r,i)},Uint8Array}}),Mf=un((e,t)=>{Zt(),Jt(),Qt();var n=(ko(),Si(_o)),r=Object.getPrototypeOf(async function(){}).constructor,i=globalThis.Blob||n.Blob,a=typeof i<"u"?function(s){return s instanceof i}:function(s){return!1},o=class extends Error{constructor(s){if(!Array.isArray(s))throw new TypeError(`Expected input to be an Array, got ${typeof s}`);let l="";for(let c=0;c{s=c,l=u}),resolve:s,reject:l}},promisify(s){return new Promise((l,c)=>{s((u,...f)=>u?c(u):l(...f))})},debuglog(){return function(){}},format(s,...l){return s.replace(/%([sdifj])/g,function(...[c,u]){let f=l.shift();return u==="f"?f.toFixed(6):u==="j"?JSON.stringify(f):u==="s"&&typeof f=="object"?`${f.constructor!==Object?f.constructor.name:""} {}`.trim():f.toString()})},inspect(s){switch(typeof s){case"string":if(s.includes("'"))if(s.includes('"')){if(!s.includes("`")&&!s.includes("${"))return`\`${s}\``}else return`"${s}"`;return`'${s}'`;case"number":return isNaN(s)?"NaN":Object.is(s,-0)?String(s):s;case"bigint":return`${String(s)}n`;case"boolean":case"undefined":return String(s);case"object":return"{}"}},types:{isAsyncFunction(s){return s instanceof r},isArrayBufferView(s){return ArrayBuffer.isView(s)}},isBlob:a},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),LF=un((e,t)=>{Zt(),Jt(),Qt();var{AbortController:n,AbortSignal:r}=typeof self<"u"?self:typeof window<"u"?window:void 0;t.exports=n,t.exports.AbortSignal=r,t.exports.default=n}),Gs=un((e,t)=>{Zt(),Jt(),Qt();var{format:n,inspect:r,AggregateError:i}=Mf(),a=globalThis.AggregateError||i,o=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,c="__node_internal_",u={};function f(w,b){if(!w)throw new u.ERR_INTERNAL_ASSERTION(b)}function p(w){let b="",C=w.length,k=w[0]==="-"?1:0;for(;C>=k+4;C-=3)b=`_${w.slice(C-3,C)}${b}`;return`${w.slice(0,C)}${b}`}function h(w,b,C){if(typeof b=="function")return f(b.length<=C.length,`Code: ${w}; The provided arguments length (${C.length}) does not match the required ones (${b.length}).`),b(...C);let k=(b.match(/%[dfijoOs]/g)||[]).length;return f(k===C.length,`Code: ${w}; The provided arguments length (${C.length}) does not match the required ones (${k}).`),C.length===0?b:n(b,...C)}function m(w,b,C){C||(C=Error);class k extends C{constructor(..._){super(h(w,b,_))}toString(){return`${this.name} [${w}]: ${this.message}`}}Object.defineProperties(k.prototype,{name:{value:C.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${w}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),k.prototype.code=w,k.prototype[o]=!0,u[w]=k}function g(w){let b=c+w.name;return Object.defineProperty(w,"name",{value:b}),w}function v(w,b){if(w&&b&&w!==b){if(Array.isArray(b.errors))return b.errors.push(w),b;let C=new a([b,w],b.message);return C.code=b.code,C}return w||b}var y=class extends Error{constructor(w="The operation was aborted",b=void 0){if(b!==void 0&&typeof b!="object")throw new u.ERR_INVALID_ARG_TYPE("options","Object",b);super(w,b),this.code="ABORT_ERR",this.name="AbortError"}};m("ERR_ASSERTION","%s",Error),m("ERR_INVALID_ARG_TYPE",(w,b,C)=>{f(typeof w=="string","'name' must be a string"),Array.isArray(b)||(b=[b]);let k="The ";w.endsWith(" argument")?k+=`${w} `:k+=`"${w}" ${w.includes(".")?"property":"argument"} `,k+="must be ";let S=[],_=[],E=[];for(let M of b)f(typeof M=="string","All expected entries have to be of type string"),s.includes(M)?S.push(M.toLowerCase()):l.test(M)?_.push(M):(f(M!=="object",'The value "object" should be written as "Object"'),E.push(M));if(_.length>0){let M=S.indexOf("object");M!==-1&&(S.splice(S,M,1),_.push("Object"))}if(S.length>0){switch(S.length){case 1:k+=`of type ${S[0]}`;break;case 2:k+=`one of type ${S[0]} or ${S[1]}`;break;default:{let M=S.pop();k+=`one of type ${S.join(", ")}, or ${M}`}}(_.length>0||E.length>0)&&(k+=" or ")}if(_.length>0){switch(_.length){case 1:k+=`an instance of ${_[0]}`;break;case 2:k+=`an instance of ${_[0]} or ${_[1]}`;break;default:{let M=_.pop();k+=`an instance of ${_.join(", ")}, or ${M}`}}E.length>0&&(k+=" or ")}switch(E.length){case 0:break;case 1:E[0].toLowerCase()!==E[0]&&(k+="an "),k+=`${E[0]}`;break;case 2:k+=`one of ${E[0]} or ${E[1]}`;break;default:{let M=E.pop();k+=`one of ${E.join(", ")}, or ${M}`}}if(C==null)k+=`. Received ${C}`;else if(typeof C=="function"&&C.name)k+=`. Received function ${C.name}`;else if(typeof C=="object"){var $;if(($=C.constructor)!==null&&$!==void 0&&$.name)k+=`. Received an instance of ${C.constructor.name}`;else{let M=r(C,{depth:-1});k+=`. Received ${M}`}}else{let M=r(C,{colors:!1});M.length>25&&(M=`${M.slice(0,25)}...`),k+=`. Received type ${typeof C} (${M})`}return k},TypeError),m("ERR_INVALID_ARG_VALUE",(w,b,C="is invalid")=>{let k=r(b);return k.length>128&&(k=k.slice(0,128)+"..."),`The ${w.includes(".")?"property":"argument"} '${w}' ${C}. Received ${k}`},TypeError),m("ERR_INVALID_RETURN_VALUE",(w,b,C)=>{var k;let S=C!=null&&(k=C.constructor)!==null&&k!==void 0&&k.name?`instance of ${C.constructor.name}`:`type ${typeof C}`;return`Expected ${w} to be returned from the "${b}" function but got ${S}.`},TypeError),m("ERR_MISSING_ARGS",(...w)=>{f(w.length>0,"At least one arg needs to be specified");let b,C=w.length;switch(w=(Array.isArray(w)?w:[w]).map(k=>`"${k}"`).join(" or "),C){case 1:b+=`The ${w[0]} argument`;break;case 2:b+=`The ${w[0]} and ${w[1]} arguments`;break;default:{let k=w.pop();b+=`The ${w.join(", ")}, and ${k} arguments`}break}return`${b} must be specified`},TypeError),m("ERR_OUT_OF_RANGE",(w,b,C)=>{f(b,'Missing "range" argument');let k;return Number.isInteger(C)&&Math.abs(C)>2**32?k=p(String(C)):typeof C=="bigint"?(k=String(C),(C>2n**32n||C<-(2n**32n))&&(k=p(k)),k+="n"):k=r(C),`The value of "${w}" is out of range. It must be ${b}. Received ${k}`},RangeError),m("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),m("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),m("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),m("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),m("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),m("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),m("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),m("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),m("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),m("ERR_STREAM_WRITE_AFTER_END","write after end",Error),m("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:y,aggregateTwoErrors:g(v),hideStackFrames:g,codes:u}}),fE=un((e,t)=>{Zt(),Jt(),Qt();var{ArrayIsArray:n,ArrayPrototypeIncludes:r,ArrayPrototypeJoin:i,ArrayPrototypeMap:a,NumberIsInteger:o,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:c,NumberParseInt:u,ObjectPrototypeHasOwnProperty:f,RegExpPrototypeExec:p,String:h,StringPrototypeToUpperCase:m,StringPrototypeTrim:g}=qa(),{hideStackFrames:v,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:w,ERR_INVALID_ARG_VALUE:b,ERR_OUT_OF_RANGE:C,ERR_UNKNOWN_SIGNAL:k}}=Gs(),{normalizeEncoding:S}=Mf(),{isAsyncFunction:_,isArrayBufferView:E}=Mf().types,$={};function M(be){return be===(be|0)}function P(be){return be===be>>>0}var R=/^[0-7]+$/,O="must be a 32-bit unsigned integer or an octal string";function j(be,Se,we){if(typeof be>"u"&&(be=we),typeof be=="string"){if(p(R,be)===null)throw new b(Se,be,O);be=u(be,8)}return N(be,Se),be}var I=v((be,Se,we=c,se=l)=>{if(typeof be!="number")throw new w(Se,"number",be);if(!o(be))throw new C(Se,"an integer",be);if(bese)throw new C(Se,`>= ${we} && <= ${se}`,be)}),A=v((be,Se,we=-2147483648,se=2147483647)=>{if(typeof be!="number")throw new w(Se,"number",be);if(!o(be))throw new C(Se,"an integer",be);if(bese)throw new C(Se,`>= ${we} && <= ${se}`,be)}),N=v((be,Se,we=!1)=>{if(typeof be!="number")throw new w(Se,"number",be);if(!o(be))throw new C(Se,"an integer",be);let se=we?1:0,ye=4294967295;if(beye)throw new C(Se,`>= ${se} && <= ${ye}`,be)});function F(be,Se){if(typeof be!="string")throw new w(Se,"string",be)}function K(be,Se,we=void 0,se){if(typeof be!="number")throw new w(Se,"number",be);if(we!=null&&bese||(we!=null||se!=null)&&s(be))throw new C(Se,`${we!=null?`>= ${we}`:""}${we!=null&&se!=null?" && ":""}${se!=null?`<= ${se}`:""}`,be)}var L=v((be,Se,we)=>{if(!r(we,be)){let se="must be one of: "+i(a(we,ye=>typeof ye=="string"?`'${ye}'`:h(ye)),", ");throw new b(Se,be,se)}});function V(be,Se){if(typeof be!="boolean")throw new w(Se,"boolean",be)}function B(be,Se,we){return be==null||!f(be,Se)?we:be[Se]}var U=v((be,Se,we=null)=>{let se=B(we,"allowArray",!1),ye=B(we,"allowFunction",!1);if(!B(we,"nullable",!1)&&be===null||!se&&n(be)||typeof be!="object"&&(!ye||typeof be!="function"))throw new w(Se,"Object",be)}),Y=v((be,Se)=>{if(be!=null&&typeof be!="object"&&typeof be!="function")throw new w(Se,"a dictionary",be)}),ee=v((be,Se,we=0)=>{if(!n(be))throw new w(Se,"Array",be);if(be.length{if(!E(be))throw new w(Se,["Buffer","TypedArray","DataView"],be)});function oe(be,Se){let we=S(Se),se=be.length;if(we==="hex"&&se%2!==0)throw new b("encoding",Se,`is invalid for data of length ${se}`)}function le(be,Se="Port",we=!0){if(typeof be!="number"&&typeof be!="string"||typeof be=="string"&&g(be).length===0||+be!==+be>>>0||be>65535||be===0&&!we)throw new y(Se,be,we);return be|0}var ce=v((be,Se)=>{if(be!==void 0&&(be===null||typeof be!="object"||!("aborted"in be)))throw new w(Se,"AbortSignal",be)}),pe=v((be,Se)=>{if(typeof be!="function")throw new w(Se,"Function",be)}),me=v((be,Se)=>{if(typeof be!="function"||_(be))throw new w(Se,"Function",be)}),re=v((be,Se)=>{if(be!==void 0)throw new w(Se,"undefined",be)});function fe(be,Se,we){if(!r(we,be))throw new w(Se,`('${i(we,"|")}')`,be)}var ve=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function $e(be,Se){if(typeof be>"u"||!p(ve,be))throw new b(Se,be,'must be an array or string of format "; rel=preload; as=style"')}function Ce(be){if(typeof be=="string")return $e(be,"hints"),be;if(n(be)){let Se=be.length,we="";if(Se===0)return we;for(let se=0;se; rel=preload; as=style"')}t.exports={isInt32:M,isUint32:P,parseFileMode:j,validateArray:ee,validateStringArray:ie,validateBooleanArray:Z,validateBoolean:V,validateBuffer:ae,validateDictionary:Y,validateEncoding:oe,validateFunction:pe,validateInt32:A,validateInteger:I,validateNumber:K,validateObject:U,validateOneOf:L,validatePlainFunction:me,validatePort:le,validateSignalName:X,validateString:F,validateUint32:N,validateUndefined:re,validateUnion:fe,validateAbortSignal:ce,validateLinkHeaderValue:Ce}}),Lg=un((e,t)=>{Zt(),Jt(),Qt();var n=t.exports={},r,i;function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?r=setTimeout:r=a}catch{r=a}try{typeof clearTimeout=="function"?i=clearTimeout:i=o}catch{i=o}})();function s(y){if(r===setTimeout)return setTimeout(y,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(y,0);try{return r(y,0)}catch{try{return r.call(null,y,0)}catch{return r.call(this,y,0)}}}function l(y){if(i===clearTimeout)return clearTimeout(y);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(y);try{return i(y)}catch{try{return i.call(null,y)}catch{return i.call(this,y)}}}var c=[],u=!1,f,p=-1;function h(){!u||!f||(u=!1,f.length?c=f.concat(c):p=-1,c.length&&m())}function m(){if(!u){var y=s(h);u=!0;for(var w=c.length;w;){for(f=c,c=[];++p1)for(var b=1;b{Zt(),Jt(),Qt();var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:i,SymbolFor:a}=qa(),o=n("kDestroyed"),s=n("kIsErrored"),l=n("kIsReadable"),c=n("kIsDisturbed"),u=a("nodejs.webstream.isClosedPromise"),f=a("nodejs.webstream.controllerErrorFunction");function p(B,U=!1){var Y;return!!(B&&typeof B.pipe=="function"&&typeof B.on=="function"&&(!U||typeof B.pause=="function"&&typeof B.resume=="function")&&(!B._writableState||((Y=B._readableState)===null||Y===void 0?void 0:Y.readable)!==!1)&&(!B._writableState||B._readableState))}function h(B){var U;return!!(B&&typeof B.write=="function"&&typeof B.on=="function"&&(!B._readableState||((U=B._writableState)===null||U===void 0?void 0:U.writable)!==!1))}function m(B){return!!(B&&typeof B.pipe=="function"&&B._readableState&&typeof B.on=="function"&&typeof B.write=="function")}function g(B){return B&&(B._readableState||B._writableState||typeof B.write=="function"&&typeof B.on=="function"||typeof B.pipe=="function"&&typeof B.on=="function")}function v(B){return!!(B&&!g(B)&&typeof B.pipeThrough=="function"&&typeof B.getReader=="function"&&typeof B.cancel=="function")}function y(B){return!!(B&&!g(B)&&typeof B.getWriter=="function"&&typeof B.abort=="function")}function w(B){return!!(B&&!g(B)&&typeof B.readable=="object"&&typeof B.writable=="object")}function b(B){return v(B)||y(B)||w(B)}function C(B,U){return B==null?!1:U===!0?typeof B[r]=="function":U===!1?typeof B[i]=="function":typeof B[r]=="function"||typeof B[i]=="function"}function k(B){if(!g(B))return null;let U=B._writableState,Y=B._readableState,ee=U||Y;return!!(B.destroyed||B[o]||ee!=null&&ee.destroyed)}function S(B){if(!h(B))return null;if(B.writableEnded===!0)return!0;let U=B._writableState;return U!=null&&U.errored?!1:typeof(U==null?void 0:U.ended)!="boolean"?null:U.ended}function _(B,U){if(!h(B))return null;if(B.writableFinished===!0)return!0;let Y=B._writableState;return Y!=null&&Y.errored?!1:typeof(Y==null?void 0:Y.finished)!="boolean"?null:!!(Y.finished||U===!1&&Y.ended===!0&&Y.length===0)}function E(B){if(!p(B))return null;if(B.readableEnded===!0)return!0;let U=B._readableState;return!U||U.errored?!1:typeof(U==null?void 0:U.ended)!="boolean"?null:U.ended}function $(B,U){if(!p(B))return null;let Y=B._readableState;return Y!=null&&Y.errored?!1:typeof(Y==null?void 0:Y.endEmitted)!="boolean"?null:!!(Y.endEmitted||U===!1&&Y.ended===!0&&Y.length===0)}function M(B){return B&&B[l]!=null?B[l]:typeof(B==null?void 0:B.readable)!="boolean"?null:k(B)?!1:p(B)&&B.readable&&!$(B)}function P(B){return typeof(B==null?void 0:B.writable)!="boolean"?null:k(B)?!1:h(B)&&B.writable&&!S(B)}function R(B,U){return g(B)?k(B)?!0:!((U==null?void 0:U.readable)!==!1&&M(B)||(U==null?void 0:U.writable)!==!1&&P(B)):null}function O(B){var U,Y;return g(B)?B.writableErrored?B.writableErrored:(U=(Y=B._writableState)===null||Y===void 0?void 0:Y.errored)!==null&&U!==void 0?U:null:null}function j(B){var U,Y;return g(B)?B.readableErrored?B.readableErrored:(U=(Y=B._readableState)===null||Y===void 0?void 0:Y.errored)!==null&&U!==void 0?U:null:null}function I(B){if(!g(B))return null;if(typeof B.closed=="boolean")return B.closed;let U=B._writableState,Y=B._readableState;return typeof(U==null?void 0:U.closed)=="boolean"||typeof(Y==null?void 0:Y.closed)=="boolean"?(U==null?void 0:U.closed)||(Y==null?void 0:Y.closed):typeof B._closed=="boolean"&&A(B)?B._closed:null}function A(B){return typeof B._closed=="boolean"&&typeof B._defaultKeepAlive=="boolean"&&typeof B._removedConnection=="boolean"&&typeof B._removedContLen=="boolean"}function N(B){return typeof B._sent100=="boolean"&&A(B)}function F(B){var U;return typeof B._consuming=="boolean"&&typeof B._dumped=="boolean"&&((U=B.req)===null||U===void 0?void 0:U.upgradeOrConnect)===void 0}function K(B){if(!g(B))return null;let U=B._writableState,Y=B._readableState,ee=U||Y;return!ee&&N(B)||!!(ee&&ee.autoDestroy&&ee.emitClose&&ee.closed===!1)}function L(B){var U;return!!(B&&((U=B[c])!==null&&U!==void 0?U:B.readableDidRead||B.readableAborted))}function V(B){var U,Y,ee,ie,Z,X,ae,oe,le,ce;return!!(B&&((U=(Y=(ee=(ie=(Z=(X=B[s])!==null&&X!==void 0?X:B.readableErrored)!==null&&Z!==void 0?Z:B.writableErrored)!==null&&ie!==void 0?ie:(ae=B._readableState)===null||ae===void 0?void 0:ae.errorEmitted)!==null&&ee!==void 0?ee:(oe=B._writableState)===null||oe===void 0?void 0:oe.errorEmitted)!==null&&Y!==void 0?Y:(le=B._readableState)===null||le===void 0?void 0:le.errored)!==null&&U!==void 0?U:!((ce=B._writableState)===null||ce===void 0)&&ce.errored))}t.exports={kDestroyed:o,isDisturbed:L,kIsDisturbed:c,isErrored:V,kIsErrored:s,isReadable:M,kIsReadable:l,kIsClosedPromise:u,kControllerErrorFunction:f,isClosed:I,isDestroyed:k,isDuplexNodeStream:m,isFinished:R,isIterable:C,isReadableNodeStream:p,isReadableStream:v,isReadableEnded:E,isReadableFinished:$,isReadableErrored:j,isNodeStream:g,isWebStream:b,isWritable:P,isWritableNodeStream:h,isWritableStream:y,isWritableEnded:S,isWritableFinished:_,isWritableErrored:O,isServerRequest:F,isServerResponse:N,willEmitClose:K,isTransformStream:w}}),yh=un((e,t)=>{Zt(),Jt(),Qt();var n=Lg(),{AbortError:r,codes:i}=Gs(),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:o}=i,{kEmptyObject:s,once:l}=Mf(),{validateAbortSignal:c,validateFunction:u,validateObject:f,validateBoolean:p}=fE(),{Promise:h,PromisePrototypeThen:m}=qa(),{isClosed:g,isReadable:v,isReadableNodeStream:y,isReadableStream:w,isReadableFinished:b,isReadableErrored:C,isWritable:k,isWritableNodeStream:S,isWritableStream:_,isWritableFinished:E,isWritableErrored:$,isNodeStream:M,willEmitClose:P,kIsClosedPromise:R}=Bf();function O(F){return F.setHeader&&typeof F.abort=="function"}var j=()=>{};function I(F,K,L){var V,B;if(arguments.length===2?(L=K,K=s):K==null?K=s:f(K,"options"),u(L,"callback"),c(K.signal,"options.signal"),L=l(L),w(F)||_(F))return A(F,K,L);if(!M(F))throw new a("stream",["ReadableStream","WritableStream","Stream"],F);let U=(V=K.readable)!==null&&V!==void 0?V:y(F),Y=(B=K.writable)!==null&&B!==void 0?B:S(F),ee=F._writableState,ie=F._readableState,Z=()=>{F.writable||oe()},X=P(F)&&y(F)===U&&S(F)===Y,ae=E(F,!1),oe=()=>{ae=!0,F.destroyed&&(X=!1),!(X&&(!F.readable||U))&&(!U||le)&&L.call(F)},le=b(F,!1),ce=()=>{le=!0,F.destroyed&&(X=!1),!(X&&(!F.writable||Y))&&(!Y||ae)&&L.call(F)},pe=Ce=>{L.call(F,Ce)},me=g(F),re=()=>{me=!0;let Ce=$(F)||C(F);if(Ce&&typeof Ce!="boolean")return L.call(F,Ce);if(U&&!le&&y(F,!0)&&!b(F,!1))return L.call(F,new o);if(Y&&!ae&&!E(F,!1))return L.call(F,new o);L.call(F)},fe=()=>{me=!0;let Ce=$(F)||C(F);if(Ce&&typeof Ce!="boolean")return L.call(F,Ce);L.call(F)},ve=()=>{F.req.on("finish",oe)};O(F)?(F.on("complete",oe),X||F.on("abort",re),F.req?ve():F.on("request",ve)):Y&&!ee&&(F.on("end",Z),F.on("close",Z)),!X&&typeof F.aborted=="boolean"&&F.on("aborted",re),F.on("end",ce),F.on("finish",oe),K.error!==!1&&F.on("error",pe),F.on("close",re),me?n.nextTick(re):ee!=null&&ee.errorEmitted||ie!=null&&ie.errorEmitted?X||n.nextTick(fe):(!U&&(!X||v(F))&&(ae||k(F)===!1)||!Y&&(!X||k(F))&&(le||v(F)===!1)||ie&&F.req&&F.aborted)&&n.nextTick(fe);let $e=()=>{L=j,F.removeListener("aborted",re),F.removeListener("complete",oe),F.removeListener("abort",re),F.removeListener("request",ve),F.req&&F.req.removeListener("finish",oe),F.removeListener("end",Z),F.removeListener("close",Z),F.removeListener("finish",oe),F.removeListener("end",ce),F.removeListener("error",pe),F.removeListener("close",re)};if(K.signal&&!me){let Ce=()=>{let be=L;$e(),be.call(F,new r(void 0,{cause:K.signal.reason}))};if(K.signal.aborted)n.nextTick(Ce);else{let be=L;L=l((...Se)=>{K.signal.removeEventListener("abort",Ce),be.apply(F,Se)}),K.signal.addEventListener("abort",Ce)}}return $e}function A(F,K,L){let V=!1,B=j;if(K.signal)if(B=()=>{V=!0,L.call(F,new r(void 0,{cause:K.signal.reason}))},K.signal.aborted)n.nextTick(B);else{let Y=L;L=l((...ee)=>{K.signal.removeEventListener("abort",B),Y.apply(F,ee)}),K.signal.addEventListener("abort",B)}let U=(...Y)=>{V||n.nextTick(()=>L.apply(F,Y))};return m(F[R].promise,U,U),j}function N(F,K){var L;let V=!1;return K===null&&(K=s),(L=K)!==null&&L!==void 0&&L.cleanup&&(p(K.cleanup,"cleanup"),V=K.cleanup),new h((B,U)=>{let Y=I(F,K,ee=>{V&&Y(),ee?U(ee):B()})})}t.exports=I,t.exports.finished=N}),py=un((e,t)=>{Zt(),Jt(),Qt();var n=Lg(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:a}=Gs(),{Symbol:o}=qa(),{kDestroyed:s,isDestroyed:l,isFinished:c,isServerRequest:u}=Bf(),f=o("kDestroy"),p=o("kConstruct");function h(R,O,j){R&&(R.stack,O&&!O.errored&&(O.errored=R),j&&!j.errored&&(j.errored=R))}function m(R,O){let j=this._readableState,I=this._writableState,A=I||j;return I!=null&&I.destroyed||j!=null&&j.destroyed?(typeof O=="function"&&O(),this):(h(R,I,j),I&&(I.destroyed=!0),j&&(j.destroyed=!0),A.constructed?g(this,R,O):this.once(f,function(N){g(this,r(N,R),O)}),this)}function g(R,O,j){let I=!1;function A(N){if(I)return;I=!0;let F=R._readableState,K=R._writableState;h(N,K,F),K&&(K.closed=!0),F&&(F.closed=!0),typeof j=="function"&&j(N),N?n.nextTick(v,R,N):n.nextTick(y,R)}try{R._destroy(O||null,A)}catch(N){A(N)}}function v(R,O){w(R,O),y(R)}function y(R){let O=R._readableState,j=R._writableState;j&&(j.closeEmitted=!0),O&&(O.closeEmitted=!0),(j!=null&&j.emitClose||O!=null&&O.emitClose)&&R.emit("close")}function w(R,O){let j=R._readableState,I=R._writableState;I!=null&&I.errorEmitted||j!=null&&j.errorEmitted||(I&&(I.errorEmitted=!0),j&&(j.errorEmitted=!0),R.emit("error",O))}function b(){let R=this._readableState,O=this._writableState;R&&(R.constructed=!0,R.closed=!1,R.closeEmitted=!1,R.destroyed=!1,R.errored=null,R.errorEmitted=!1,R.reading=!1,R.ended=R.readable===!1,R.endEmitted=R.readable===!1),O&&(O.constructed=!0,O.destroyed=!1,O.closed=!1,O.closeEmitted=!1,O.errored=null,O.errorEmitted=!1,O.finalCalled=!1,O.prefinished=!1,O.ended=O.writable===!1,O.ending=O.writable===!1,O.finished=O.writable===!1)}function C(R,O,j){let I=R._readableState,A=R._writableState;if(A!=null&&A.destroyed||I!=null&&I.destroyed)return this;I!=null&&I.autoDestroy||A!=null&&A.autoDestroy?R.destroy(O):O&&(O.stack,A&&!A.errored&&(A.errored=O),I&&!I.errored&&(I.errored=O),j?n.nextTick(w,R,O):w(R,O))}function k(R,O){if(typeof R._construct!="function")return;let j=R._readableState,I=R._writableState;j&&(j.constructed=!1),I&&(I.constructed=!1),R.once(p,O),!(R.listenerCount(p)>1)&&n.nextTick(S,R)}function S(R){let O=!1;function j(I){if(O){C(R,I??new i);return}O=!0;let A=R._readableState,N=R._writableState,F=N||A;A&&(A.constructed=!0),N&&(N.constructed=!0),F.destroyed?R.emit(f,I):I?C(R,I,!0):n.nextTick(_,R)}try{R._construct(I=>{n.nextTick(j,I)})}catch(I){n.nextTick(j,I)}}function _(R){R.emit(p)}function E(R){return(R==null?void 0:R.setHeader)&&typeof R.abort=="function"}function $(R){R.emit("close")}function M(R,O){R.emit("error",O),n.nextTick($,R)}function P(R,O){!R||l(R)||(!O&&!c(R)&&(O=new a),u(R)?(R.socket=null,R.destroy(O)):E(R)?R.abort():E(R.req)?R.req.abort():typeof R.destroy=="function"?R.destroy(O):typeof R.close=="function"?R.close():O?n.nextTick(M,R,O):n.nextTick($,R),R.destroyed||(R[s]=!0))}t.exports={construct:k,destroyer:P,destroy:m,undestroy:b,errorOrDestroy:C}});function mi(){mi.init.call(this)}function DC(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function Wle(e){return e._maxListeners===void 0?mi.defaultMaxListeners:e._maxListeners}function Fq(e,t,n,r){var i,a,o,s;if(DC(n),(a=e._events)===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),o===void 0)o=a[t]=n,++e._eventsCount;else if(typeof o=="function"?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=Wle(e))>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,s=l,console&&console.warn&&console.warn(s)}return e}function x$e(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Lq(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=x$e.bind(r);return i.listener=n,r.wrapFn=i,i}function Bq(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?function(a){for(var o=new Array(a.length),s=0;s{Zt(),Jt(),Qt(),zh=typeof Reflect=="object"?Reflect:null,UM=zh&&typeof zh.apply=="function"?zh.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},Uq=zh&&typeof zh.ownKeys=="function"?zh.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},WM=Number.isNaN||function(e){return e!=e},Hq=mi,mi.EventEmitter=mi,mi.prototype._events=void 0,mi.prototype._eventsCount=0,mi.prototype._maxListeners=void 0,VM=10,Object.defineProperty(mi,"defaultMaxListeners",{enumerable:!0,get:function(){return VM},set:function(e){if(typeof e!="number"||e<0||WM(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");VM=e}}),mi.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},mi.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||WM(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},mi.prototype.getMaxListeners=function(){return Wle(this)},mi.prototype.emit=function(e){for(var t=[],n=1;n0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var s=i[e];if(s===void 0)return!1;if(typeof s=="function")UM(s,this,t);else{var l=s.length,c=Vle(s,l);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():function(s,l){for(;l+1=0;r--)this.removeListener(e,t[r]);return this},mi.prototype.listeners=function(e){return Bq(this,e,!0)},mi.prototype.rawListeners=function(e){return Bq(this,e,!1)},mi.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):zq.call(e,t)},mi.prototype.listenerCount=zq,mi.prototype.eventNames=function(){return this._eventsCount>0?Uq(this._events):[]},gl=Hq,gl.EventEmitter,gl.defaultMaxListeners,gl.init,gl.listenerCount,gl.EventEmitter,gl.defaultMaxListeners,gl.init,gl.listenerCount}),Bg={};Fg(Bg,{EventEmitter:()=>qle,default:()=>gl,defaultMaxListeners:()=>Kle,init:()=>Gle,listenerCount:()=>Yle,on:()=>Xle,once:()=>Zle});var qle,Kle,Gle,Yle,Xle,Zle,hy=Co(()=>{Zt(),Jt(),Qt(),Wq(),Wq(),gl.once=function(e,t){return new Promise((n,r)=>{function i(...o){a!==void 0&&e.removeListener("error",a),n(o)}let a;t!=="error"&&(a=o=>{e.removeListener(name,i),r(o)},e.once("error",a)),e.once(t,i)})},gl.on=function(e,t){let n=[],r=[],i=null,a=!1,o={async next(){let c=n.shift();if(c)return createIterResult(c,!1);if(i){let u=Promise.reject(i);return i=null,u}return a?createIterResult(void 0,!0):new Promise((u,f)=>r.push({resolve:u,reject:f}))},async return(){e.removeListener(t,s),e.removeListener("error",l),a=!0;for(let c of r)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){i=c,e.removeListener(t,s),e.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return e.on(t,s),e.on("error",l),o;function s(...c){let u=r.shift();u?u.resolve(createIterResult(c,!1)):n.push(c)}function l(c){a=!0;let u=r.shift();u?u.reject(c):i=c,o.return()}},{EventEmitter:qle,defaultMaxListeners:Kle,init:Gle,listenerCount:Yle,on:Xle,once:Zle}=gl}),BF=un((e,t)=>{Zt(),Jt(),Qt();var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=qa(),{EventEmitter:i}=(hy(),Si(Bg));function a(s){i.call(this,s)}r(a.prototype,i.prototype),r(a,i),a.prototype.pipe=function(s,l){let c=this;function u(y){s.writable&&s.write(y)===!1&&c.pause&&c.pause()}c.on("data",u);function f(){c.readable&&c.resume&&c.resume()}s.on("drain",f),!s._isStdio&&(!l||l.end!==!1)&&(c.on("end",h),c.on("close",m));let p=!1;function h(){p||(p=!0,s.end())}function m(){p||(p=!0,typeof s.destroy=="function"&&s.destroy())}function g(y){v(),i.listenerCount(this,"error")===0&&this.emit("error",y)}o(c,"error",g),o(s,"error",g);function v(){c.removeListener("data",u),s.removeListener("drain",f),c.removeListener("end",h),c.removeListener("close",m),c.removeListener("error",g),s.removeListener("error",g),c.removeListener("end",v),c.removeListener("close",v),s.removeListener("close",v)}return c.on("end",v),c.on("close",v),s.on("close",v),s.emit("pipe",c),s};function o(s,l,c){if(typeof s.prependListener=="function")return s.prependListener(l,c);!s._events||!s._events[l]?s.on(l,c):n(s._events[l])?s._events[l].unshift(c):s._events[l]=[c,s._events[l]]}t.exports={Stream:a,prependListener:o}}),pE=un((e,t)=>{Zt(),Jt(),Qt();var{AbortError:n,codes:r}=Gs(),{isNodeStream:i,isWebStream:a,kControllerErrorFunction:o}=Bf(),s=yh(),{ERR_INVALID_ARG_TYPE:l}=r,c=(u,f)=>{if(typeof u!="object"||!("aborted"in u))throw new l(f,"AbortSignal",u)};t.exports.addAbortSignal=function(u,f){if(c(u,"signal"),!i(f)&&!a(f))throw new l("stream",["ReadableStream","WritableStream","Stream"],f);return t.exports.addAbortSignalNoValidate(u,f)},t.exports.addAbortSignalNoValidate=function(u,f){if(typeof u!="object"||!("aborted"in u))return f;let p=i(f)?()=>{f.destroy(new n(void 0,{cause:u.reason}))}:()=>{f[o](new n(void 0,{cause:u.reason}))};return u.aborted?p():(u.addEventListener("abort",p),s(f,()=>u.removeEventListener("abort",p))),f}}),S$e=un((e,t)=>{Zt(),Jt(),Qt();var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:i,Uint8Array:a}=qa(),{Buffer:o}=(ko(),Si(_o)),{inspect:s}=Mf();t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(l){let c={data:l,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}unshift(l){let c={data:l,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}shift(){if(this.length===0)return;let l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}clear(){this.head=this.tail=null,this.length=0}join(l){if(this.length===0)return"";let c=this.head,u=""+c.data;for(;(c=c.next)!==null;)u+=l+c.data;return u}concat(l){if(this.length===0)return o.alloc(0);let c=o.allocUnsafe(l>>>0),u=this.head,f=0;for(;u;)i(c,u.data,f),f+=u.data.length,u=u.next;return c}consume(l,c){let u=this.head.data;if(lp.length)c+=p,l-=p.length;else{l===p.length?(c+=p,++f,u.next?this.head=u.next:this.head=this.tail=null):(c+=n(p,0,l),this.head=u,u.data=n(p,l));break}++f}while((u=u.next)!==null);return this.length-=f,c}_getBuffer(l){let c=o.allocUnsafe(l),u=l,f=this.head,p=0;do{let h=f.data;if(l>h.length)i(c,h,u-l),l-=h.length;else{l===h.length?(i(c,h,u-l),++p,f.next?this.head=f.next:this.head=this.tail=null):(i(c,new a(h.buffer,h.byteOffset,l),u-l),this.head=f,f.data=h.slice(l));break}++p}while((f=f.next)!==null);return this.length-=p,c}[Symbol.for("nodejs.util.inspect.custom")](l,c){return s(this,{...c,depth:0,customInspect:!1})}}}),zF=un((e,t)=>{Zt(),Jt(),Qt();var{MathFloor:n,NumberIsInteger:r}=qa(),{ERR_INVALID_ARG_VALUE:i}=Gs().codes;function a(l,c,u){return l.highWaterMark!=null?l.highWaterMark:c?l[u]:null}function o(l){return l?16:16*1024}function s(l,c,u,f){let p=a(c,f,u);if(p!=null){if(!r(p)||p<0){let h=f?`options.${u}`:"options.highWaterMark";throw new i(h,p)}return n(p)}return o(l.objectMode)}t.exports={getHighWaterMark:s,getDefaultHighWaterMark:o}});function Vq(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return n===-1&&(n=t),[n,n===t?0:4-n%4]}function C$e(e,t,n){for(var r,i,a=[],o=t;o>18&63]+Gc[i>>12&63]+Gc[i>>6&63]+Gc[63&i]);return a.join("")}function df(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,an.prototype),t}function an(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return xI(e)}return Qle(e,t,n)}function Qle(e,t,n){if(typeof e=="string")return function(a,o){if(typeof o=="string"&&o!==""||(o="utf8"),!an.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var s=0|ece(a,o),l=df(s),c=l.write(a,o);return c!==s&&(l=l.slice(0,c)),l}(e,t);if(ArrayBuffer.isView(e))return qM(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ff(e,ArrayBuffer)||e&&ff(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ff(e,SharedArrayBuffer)||e&&ff(e.buffer,SharedArrayBuffer)))return _$e(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return an.from(r,t,n);var i=function(a){if(an.isBuffer(a)){var o=0|HF(a.length),s=df(o);return s.length===0||a.copy(s,0,0,o),s}if(a.length!==void 0)return typeof a.length!="number"||UF(a.length)?df(0):qM(a);if(a.type==="Buffer"&&Array.isArray(a.data))return qM(a.data)}(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return an.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function Jle(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function xI(e){return Jle(e),df(e<0?0:0|HF(e))}function qM(e){for(var t=e.length<0?0:0|HF(e.length),n=df(t),r=0;r=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function ece(e,t){if(an.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ff(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return SI(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return ice(e).length;default:if(i)return r?-1:SI(e).length;t=(""+t).toLowerCase(),i=!0}}function k$e(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j$e(this,t,n);case"utf8":case"utf-8":return nce(this,t,n);case"ascii":return R$e(this,t,n);case"latin1":case"binary":return I$e(this,t,n);case"base64":return O$e(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N$e(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Hh(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function qq(e,t,n,r,i){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),UF(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if(typeof t=="string"&&(t=an.from(t,r)),an.isBuffer(t))return t.length===0?-1:Kq(e,t,n,r,i);if(typeof t=="number")return t&=255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Kq(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Kq(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(r!==void 0&&((r=String(r).toLowerCase())==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(h,m){return o===1?h[m]:h.readUInt16BE(m*o)}if(i){var u=-1;for(a=n;as&&(n=s-l),a=n;a>=0;a--){for(var f=!0,p=0;pi&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>8,l=o%256,c.push(l),c.push(s);return c}(t,e.length-n),e,n,r)}function O$e(e,t,n){return t===0&&n===e.length?Ck.fromByteArray(e):Ck.fromByteArray(e.slice(t,n))}function nce(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}u===null?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=f}return function(p){var h=p.length;if(h<=4096)return String.fromCharCode.apply(String,p);for(var m="",g=0;gr)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function Es(e,t,n,r,i,a){if(!an.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function rce(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Gq(e,t,n,r,i){return t=+t,n>>>=0,i||rce(e,0,n,4),om.write(e,t,n,r,23,4),n+4}function Yq(e,t,n,r,i){return t=+t,n>>>=0,i||rce(e,0,n,8),om.write(e,t,n,r,52,8),n+8}function SI(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function ice(e){return Ck.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(ace,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function hE(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function ff(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function UF(e){return e!=e}function Xq(e,t){for(var n in e)t[n]=e[n]}function Uh(e,t,n){return Dc(e,t,n)}function _b(e){var t;switch(this.encoding=function(n){var r=function(i){if(!i)return"utf8";for(var a;;)switch(i){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return i;default:if(a)return;i=(""+i).toLowerCase(),a=!0}}(n);if(typeof r!="string"&&(_k.isEncoding===CI||!CI(n)))throw new Error("Unknown encoding: "+n);return r||n}(e),this.encoding){case"utf16le":this.text=D$e,this.end=F$e,t=4;break;case"utf8":this.fillLast=A$e,t=4;break;case"base64":this.text=L$e,this.end=B$e,t=3;break;default:return this.write=z$e,this.end=H$e,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=_k.allocUnsafe(t)}function KM(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function A$e(e){var t=this.lastTotal-this.lastNeed,n=function(r,i,a){if((192&i[0])!=128)return r.lastNeed=0,"�";if(r.lastNeed>1&&i.length>1){if((192&i[1])!=128)return r.lastNeed=1,"�";if(r.lastNeed>2&&i.length>2&&(192&i[2])!=128)return r.lastNeed=2,"�"}}(this,e);return n!==void 0?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length,void 0)}function D$e(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function F$e(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function L$e(e,t){var n=(e.length-t)%3;return n===0?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function B$e(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function z$e(e){return e.toString(this.encoding)}function H$e(e){return e&&e.length?this.write(e):""}var Zq,Gc,nl,Qq,Jx,Wh,Jq,eK,Au,Ck,om,GM,ace,oce,kb,Eb,Dc,tK,hv,_k,CI,nK=Co(()=>{for(Zt(),Jt(),Qt(),Zq={byteLength:function(e){var t=Vq(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=Vq(e),i=r[0],a=r[1],o=new Qq(function(c,u,f){return 3*(u+f)/4-f}(0,i,a)),s=0,l=a>0?i-4:i;for(n=0;n>16&255,o[s++]=t>>8&255,o[s++]=255&t;return a===2&&(t=nl[e.charCodeAt(n)]<<2|nl[e.charCodeAt(n+1)]>>4,o[s++]=255&t),a===1&&(t=nl[e.charCodeAt(n)]<<10|nl[e.charCodeAt(n+1)]<<4|nl[e.charCodeAt(n+2)]>>2,o[s++]=t>>8&255,o[s++]=255&t),o},fromByteArray:function(e){for(var t,n=e.length,r=n%3,i=[],a=0,o=n-r;ao?o:a+16383));return r===1?(t=e[n-1],i.push(Gc[t>>2]+Gc[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(Gc[t>>10]+Gc[t>>4&63]+Gc[t<<2&63]+"=")),i.join("")}},Gc=[],nl=[],Qq=typeof Uint8Array<"u"?Uint8Array:Array,Jx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wh=0,Jq=Jx.length;Wh>1,u=-7,f=n?i-1:0,p=n?-1:1,h=e[t+f];for(f+=p,a=h&(1<<-u)-1,h>>=-u,u+=s;u>0;a=256*a+e[t+f],f+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+f],f+=p,u-=8);if(a===0)a=1-c;else{if(a===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),a-=c}return(h?-1:1)*o*Math.pow(2,a-r)},write:function(e,t,n,r,i,a){var o,s,l,c=8*a-i-1,u=(1<>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,m=r?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+f>=1?p/l:p*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&s,h+=m,s/=256,i-=8);for(o=o<0;e[n+h]=255&o,h+=m,o/=256,c-=8);e[n+h-m]|=128*g}},Au={},Ck=Zq,om=eK,GM=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,Au.Buffer=an,Au.SlowBuffer=function(e){return+e!=e&&(e=0),an.alloc(+e)},Au.INSPECT_MAX_BYTES=50,Au.kMaxLength=2147483647,an.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}(),an.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(an.prototype,"parent",{enumerable:!0,get:function(){if(an.isBuffer(this))return this.buffer}}),Object.defineProperty(an.prototype,"offset",{enumerable:!0,get:function(){if(an.isBuffer(this))return this.byteOffset}}),an.poolSize=8192,an.from=function(e,t,n){return Qle(e,t,n)},Object.setPrototypeOf(an.prototype,Uint8Array.prototype),Object.setPrototypeOf(an,Uint8Array),an.alloc=function(e,t,n){return function(r,i,a){return Jle(r),r<=0?df(r):i!==void 0?typeof a=="string"?df(r).fill(i,a):df(r).fill(i):df(r)}(e,t,n)},an.allocUnsafe=function(e){return xI(e)},an.allocUnsafeSlow=function(e){return xI(e)},an.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==an.prototype},an.compare=function(e,t){if(ff(e,Uint8Array)&&(e=an.from(e,e.offset,e.byteLength)),ff(t,Uint8Array)&&(t=an.from(t,t.offset,t.byteLength)),!an.isBuffer(e)||!an.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);it&&(e+=" ... "),""},GM&&(an.prototype[GM]=an.prototype.inspect),an.prototype.compare=function(e,t,n,r,i){if(ff(e,Uint8Array)&&(e=an.from(e,e.offset,e.byteLength)),!an.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(r,i),c=e.slice(t,n),u=0;u>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return E$e(this,e,t,n);case"utf8":case"utf-8":return $$e(this,e,t,n);case"ascii":return tce(this,e,t,n);case"latin1":case"binary":return M$e(this,e,t,n);case"base64":return T$e(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P$e(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},an.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},an.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||Ya(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||Ya(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},an.prototype.readUInt8=function(e,t){return e>>>=0,t||Ya(e,1,this.length),this[e]},an.prototype.readUInt16LE=function(e,t){return e>>>=0,t||Ya(e,2,this.length),this[e]|this[e+1]<<8},an.prototype.readUInt16BE=function(e,t){return e>>>=0,t||Ya(e,2,this.length),this[e]<<8|this[e+1]},an.prototype.readUInt32LE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},an.prototype.readUInt32BE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},an.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Ya(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},an.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Ya(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},an.prototype.readInt8=function(e,t){return e>>>=0,t||Ya(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},an.prototype.readInt16LE=function(e,t){e>>>=0,t||Ya(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},an.prototype.readInt16BE=function(e,t){e>>>=0,t||Ya(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},an.prototype.readInt32LE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},an.prototype.readInt32BE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},an.prototype.readFloatLE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),om.read(this,e,!0,23,4)},an.prototype.readFloatBE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),om.read(this,e,!1,23,4)},an.prototype.readDoubleLE=function(e,t){return e>>>=0,t||Ya(e,8,this.length),om.read(this,e,!0,52,8)},an.prototype.readDoubleBE=function(e,t){return e>>>=0,t||Ya(e,8,this.length),om.read(this,e,!1,52,8)},an.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||Es(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,r||Es(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},an.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,1,255,0),this[t]=255&e,t+1},an.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},an.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},an.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},an.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},an.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);Es(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},an.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);Es(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},an.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},an.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},an.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},an.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},an.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},an.prototype.writeFloatLE=function(e,t,n){return Gq(this,e,t,!0,n)},an.prototype.writeFloatBE=function(e,t,n){return Gq(this,e,t,!1,n)},an.prototype.writeDoubleLE=function(e,t,n){return Yq(this,e,t,!0,n)},an.prototype.writeDoubleBE=function(e,t,n){return Yq(this,e,t,!1,n)},an.prototype.copy=function(e,t,n,r){if(!an.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},an.prototype.fill=function(e,t,n,r){if(typeof e=="string"){if(typeof t=="string"?(r=t,t=0,n=this.length):typeof n=="string"&&(r=n,n=this.length),r!==void 0&&typeof r!="string")throw new TypeError("encoding must be a string");if(typeof r=="string"&&!an.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(e.length===1){var i=e.charCodeAt(0);(r==="utf8"&&i<128||r==="latin1")&&(e=i)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e=="number")for(a=t;a=0?(l>0&&(i.lastNeed=l-1),l):--s=0?(l>0&&(i.lastNeed=l-2),l):--s=0?(l>0&&(l===2?l=0:i.lastNeed=l-3),l):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},_b.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},hv.StringDecoder,hv.StringDecoder}),sce={};Fg(sce,{StringDecoder:()=>lce,default:()=>hv});var lce,U$e=Co(()=>{Zt(),Jt(),Qt(),nK(),nK(),lce=hv.StringDecoder}),cce=un((e,t)=>{Zt(),Jt(),Qt();var n=Lg(),{PromisePrototypeThen:r,SymbolAsyncIterator:i,SymbolIterator:a}=qa(),{Buffer:o}=(ko(),Si(_o)),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:l}=Gs().codes;function c(u,f,p){let h;if(typeof f=="string"||f instanceof o)return new u({objectMode:!0,...p,read(){this.push(f),this.push(null)}});let m;if(f&&f[i])m=!0,h=f[i]();else if(f&&f[a])m=!1,h=f[a]();else throw new s("iterable",["Iterable"],f);let g=new u({objectMode:!0,highWaterMark:1,...p}),v=!1;g._read=function(){v||(v=!0,w())},g._destroy=function(b,C){r(y(b),()=>n.nextTick(C,b),k=>n.nextTick(C,k||b))};async function y(b){let C=b!=null,k=typeof h.throw=="function";if(C&&k){let{value:S,done:_}=await h.throw(b);if(await S,_)return}if(typeof h.return=="function"){let{value:S}=await h.return();await S}}async function w(){for(;;){try{let{value:b,done:C}=m?await h.next():h.next();if(C)g.push(null);else{let k=b&&typeof b.then=="function"?await b:b;if(k===null)throw v=!1,new l;if(g.push(k))continue;v=!1}}catch(b){g.destroy(b)}break}}return g}t.exports=c}),mE=un((e,t)=>{Zt(),Jt(),Qt();var n=Lg(),{ArrayPrototypeIndexOf:r,NumberIsInteger:i,NumberIsNaN:a,NumberParseInt:o,ObjectDefineProperties:s,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:u,SafeSet:f,SymbolAsyncIterator:p,Symbol:h}=qa();t.exports=B,B.ReadableState=V;var{EventEmitter:m}=(hy(),Si(Bg)),{Stream:g,prependListener:v}=BF(),{Buffer:y}=(ko(),Si(_o)),{addAbortSignal:w}=pE(),b=yh(),C=Mf().debuglog("stream",H=>{C=H}),k=S$e(),S=py(),{getHighWaterMark:_,getDefaultHighWaterMark:E}=zF(),{aggregateTwoErrors:$,codes:{ERR_INVALID_ARG_TYPE:M,ERR_METHOD_NOT_IMPLEMENTED:P,ERR_OUT_OF_RANGE:R,ERR_STREAM_PUSH_AFTER_EOF:O,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:j}}=Gs(),{validateObject:I}=fE(),A=h("kPaused"),{StringDecoder:N}=(U$e(),Si(sce)),F=cce();c(B.prototype,g.prototype),c(B,g);var K=()=>{},{errorOrDestroy:L}=S;function V(H,G,de){typeof de!="boolean"&&(de=G instanceof Tf()),this.objectMode=!!(H&&H.objectMode),de&&(this.objectMode=this.objectMode||!!(H&&H.readableObjectMode)),this.highWaterMark=H?_(this,H,"readableHighWaterMark",de):E(!1),this.buffer=new k,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[A]=null,this.errorEmitted=!1,this.emitClose=!H||H.emitClose!==!1,this.autoDestroy=!H||H.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=H&&H.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,H&&H.encoding&&(this.decoder=new N(H.encoding),this.encoding=H.encoding)}function B(H){if(!(this instanceof B))return new B(H);let G=this instanceof Tf();this._readableState=new V(H,this,G),H&&(typeof H.read=="function"&&(this._read=H.read),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.construct=="function"&&(this._construct=H.construct),H.signal&&!G&&w(H.signal,this)),g.call(this,H),S.construct(this,()=>{this._readableState.needReadable&&le(this,this._readableState)})}B.prototype.destroy=S.destroy,B.prototype._undestroy=S.undestroy,B.prototype._destroy=function(H,G){G(H)},B.prototype[m.captureRejectionSymbol]=function(H){this.destroy(H)},B.prototype.push=function(H,G){return U(this,H,G,!1)},B.prototype.unshift=function(H,G){return U(this,H,G,!0)};function U(H,G,de,xe){C("readableAddChunk",G);let he=H._readableState,Ue;if(he.objectMode||(typeof G=="string"?(de=de||he.defaultEncoding,he.encoding!==de&&(xe&&he.encoding?G=y.from(G,de).toString(he.encoding):(G=y.from(G,de),de=""))):G instanceof y?de="":g._isUint8Array(G)?(G=g._uint8ArrayToBuffer(G),de=""):G!=null&&(Ue=new M("chunk",["string","Buffer","Uint8Array"],G))),Ue)L(H,Ue);else if(G===null)he.reading=!1,X(H,he);else if(he.objectMode||G&&G.length>0)if(xe)if(he.endEmitted)L(H,new j);else{if(he.destroyed||he.errored)return!1;Y(H,he,G,!0)}else if(he.ended)L(H,new O);else{if(he.destroyed||he.errored)return!1;he.reading=!1,he.decoder&&!de?(G=he.decoder.write(G),he.objectMode||G.length!==0?Y(H,he,G,!1):le(H,he)):Y(H,he,G,!1)}else xe||(he.reading=!1,le(H,he));return!he.ended&&(he.length0?(G.multiAwaitDrain?G.awaitDrainWriters.clear():G.awaitDrainWriters=null,G.dataEmitted=!0,H.emit("data",de)):(G.length+=G.objectMode?1:de.length,xe?G.buffer.unshift(de):G.buffer.push(de),G.needReadable&&ae(H)),le(H,G)}B.prototype.isPaused=function(){let H=this._readableState;return H[A]===!0||H.flowing===!1},B.prototype.setEncoding=function(H){let G=new N(H);this._readableState.decoder=G,this._readableState.encoding=this._readableState.decoder.encoding;let de=this._readableState.buffer,xe="";for(let he of de)xe+=G.write(he);return de.clear(),xe!==""&&de.push(xe),this._readableState.length=xe.length,this};var ee=1073741824;function ie(H){if(H>ee)throw new R("size","<= 1GiB",H);return H--,H|=H>>>1,H|=H>>>2,H|=H>>>4,H|=H>>>8,H|=H>>>16,H++,H}function Z(H,G){return H<=0||G.length===0&&G.ended?0:G.objectMode?1:a(H)?G.flowing&&G.length?G.buffer.first().length:G.length:H<=G.length?H:G.ended?G.length:0}B.prototype.read=function(H){C("read",H),H===void 0?H=NaN:i(H)||(H=o(H,10));let G=this._readableState,de=H;if(H>G.highWaterMark&&(G.highWaterMark=ie(H)),H!==0&&(G.emittedReadable=!1),H===0&&G.needReadable&&((G.highWaterMark!==0?G.length>=G.highWaterMark:G.length>0)||G.ended))return C("read: emitReadable",G.length,G.ended),G.length===0&&G.ended?we(this):ae(this),null;if(H=Z(H,G),H===0&&G.ended)return G.length===0&&we(this),null;let xe=G.needReadable;if(C("need readable",xe),(G.length===0||G.length-H0?he=Se(H,G):he=null,he===null?(G.needReadable=G.length<=G.highWaterMark,H=0):(G.length-=H,G.multiAwaitDrain?G.awaitDrainWriters.clear():G.awaitDrainWriters=null),G.length===0&&(G.ended||(G.needReadable=!0),de!==H&&G.ended&&we(this)),he!==null&&!G.errorEmitted&&!G.closeEmitted&&(G.dataEmitted=!0,this.emit("data",he)),he};function X(H,G){if(C("onEofChunk"),!G.ended){if(G.decoder){let de=G.decoder.end();de&&de.length&&(G.buffer.push(de),G.length+=G.objectMode?1:de.length)}G.ended=!0,G.sync?ae(H):(G.needReadable=!1,G.emittedReadable=!0,oe(H))}}function ae(H){let G=H._readableState;C("emitReadable",G.needReadable,G.emittedReadable),G.needReadable=!1,G.emittedReadable||(C("emitReadable",G.flowing),G.emittedReadable=!0,n.nextTick(oe,H))}function oe(H){let G=H._readableState;C("emitReadable_",G.destroyed,G.length,G.ended),!G.destroyed&&!G.errored&&(G.length||G.ended)&&(H.emit("readable"),G.emittedReadable=!1),G.needReadable=!G.flowing&&!G.ended&&G.length<=G.highWaterMark,$e(H)}function le(H,G){!G.readingMore&&G.constructed&&(G.readingMore=!0,n.nextTick(ce,H,G))}function ce(H,G){for(;!G.reading&&!G.ended&&(G.length1&&xe.pipes.includes(H)&&(C("false write response, pause",xe.awaitDrainWriters.size),xe.awaitDrainWriters.add(H)),de.pause()),ge||(ge=pe(de,H),H.on("drain",ge))}de.on("data",Xe);function Xe(gt){C("ondata");let Ze=H.write(gt);C("dest.write",Ze),Ze===!1&&Be()}function Ke(gt){if(C("onerror",gt),ut(),H.removeListener("error",Ke),H.listenerCount("error")===0){let Ze=H._writableState||H._readableState;Ze&&!Ze.errorEmitted?L(H,gt):H.emit("error",gt)}}v(H,"error",Ke);function qe(){H.removeListener("finish",Et),ut()}H.once("close",qe);function Et(){C("onfinish"),H.removeListener("close",qe),ut()}H.once("finish",Et);function ut(){C("unpipe"),de.unpipe(H)}return H.emit("pipe",de),H.writableNeedDrain===!0?xe.flowing&&Be():xe.flowing||(C("pipe resume"),de.resume()),H};function pe(H,G){return function(){let de=H._readableState;de.awaitDrainWriters===G?(C("pipeOnDrain",1),de.awaitDrainWriters=null):de.multiAwaitDrain&&(C("pipeOnDrain",de.awaitDrainWriters.size),de.awaitDrainWriters.delete(G)),(!de.awaitDrainWriters||de.awaitDrainWriters.size===0)&&H.listenerCount("data")&&H.resume()}}B.prototype.unpipe=function(H){let G=this._readableState,de={hasUnpiped:!1};if(G.pipes.length===0)return this;if(!H){let he=G.pipes;G.pipes=[],this.pause();for(let Ue=0;Ue0,xe.flowing!==!1&&this.resume()):H==="readable"&&!xe.endEmitted&&!xe.readableListening&&(xe.readableListening=xe.needReadable=!0,xe.flowing=!1,xe.emittedReadable=!1,C("on readable",xe.length,xe.reading),xe.length?ae(this):xe.reading||n.nextTick(re,this)),de},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(H,G){let de=g.prototype.removeListener.call(this,H,G);return H==="readable"&&n.nextTick(me,this),de},B.prototype.off=B.prototype.removeListener,B.prototype.removeAllListeners=function(H){let G=g.prototype.removeAllListeners.apply(this,arguments);return(H==="readable"||H===void 0)&&n.nextTick(me,this),G};function me(H){let G=H._readableState;G.readableListening=H.listenerCount("readable")>0,G.resumeScheduled&&G[A]===!1?G.flowing=!0:H.listenerCount("data")>0?H.resume():G.readableListening||(G.flowing=null)}function re(H){C("readable nexttick read 0"),H.read(0)}B.prototype.resume=function(){let H=this._readableState;return H.flowing||(C("resume"),H.flowing=!H.readableListening,fe(this,H)),H[A]=!1,this};function fe(H,G){G.resumeScheduled||(G.resumeScheduled=!0,n.nextTick(ve,H,G))}function ve(H,G){C("resume",G.reading),G.reading||H.read(0),G.resumeScheduled=!1,H.emit("resume"),$e(H),G.flowing&&!G.reading&&H.read(0)}B.prototype.pause=function(){return C("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(C("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[A]=!0,this};function $e(H){let G=H._readableState;for(C("flow",G.flowing);G.flowing&&H.read()!==null;);}B.prototype.wrap=function(H){let G=!1;H.on("data",xe=>{!this.push(xe)&&H.pause&&(G=!0,H.pause())}),H.on("end",()=>{this.push(null)}),H.on("error",xe=>{L(this,xe)}),H.on("close",()=>{this.destroy()}),H.on("destroy",()=>{this.destroy()}),this._read=()=>{G&&H.resume&&(G=!1,H.resume())};let de=l(H);for(let xe=1;xe{he=We?$(he,We):null,de(),de=K});try{for(;;){let We=H.destroyed?null:H.read();if(We!==null)yield We;else{if(he)throw he;if(he===null)return;await new u(xe)}}}catch(We){throw he=$(he,We),he}finally{(he||(G==null?void 0:G.destroyOnReturn)!==!1)&&(he===void 0||H._readableState.autoDestroy)?S.destroyer(H,null):(H.off("readable",xe),Ue())}}s(B.prototype,{readable:{__proto__:null,get(){let H=this._readableState;return!!H&&H.readable!==!1&&!H.destroyed&&!H.errorEmitted&&!H.endEmitted},set(H){this._readableState&&(this._readableState.readable=!!H)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(H){this._readableState&&(this._readableState.flowing=H)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(H){this._readableState&&(this._readableState.destroyed=H)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(V.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[A]!==!1},set(H){this[A]=!!H}}}),B._fromList=Se;function Se(H,G){if(G.length===0)return null;let de;return G.objectMode?de=G.buffer.shift():!H||H>=G.length?(G.decoder?de=G.buffer.join(""):G.buffer.length===1?de=G.buffer.first():de=G.buffer.concat(G.length),G.buffer.clear()):de=G.buffer.consume(H,G.decoder),de}function we(H){let G=H._readableState;C("endReadable",G.endEmitted),G.endEmitted||(G.ended=!0,n.nextTick(se,G,H))}function se(H,G){if(C("endReadableNT",H.endEmitted,H.length),!H.errored&&!H.closeEmitted&&!H.endEmitted&&H.length===0){if(H.endEmitted=!0,G.emit("end"),G.writable&&G.allowHalfOpen===!1)n.nextTick(ye,G);else if(H.autoDestroy){let de=G._writableState;(!de||de.autoDestroy&&(de.finished||de.writable===!1))&&G.destroy()}}}function ye(H){H.writable&&!H.writableEnded&&!H.destroyed&&H.end()}B.from=function(H,G){return F(B,H,G)};var Oe;function z(){return Oe===void 0&&(Oe={}),Oe}B.fromWeb=function(H,G){return z().newStreamReadableFromReadableStream(H,G)},B.toWeb=function(H,G){return z().newReadableStreamFromStreamReadable(H,G)},B.wrap=function(H,G){var de,xe;return new B({objectMode:(de=(xe=H.readableObjectMode)!==null&&xe!==void 0?xe:H.objectMode)!==null&&de!==void 0?de:!0,...G,destroy(he,Ue){S.destroyer(H,he),Ue(he)}}).wrap(H)}}),uce=un((e,t)=>{Zt(),Jt(),Qt();var n=Lg(),{ArrayPrototypeSlice:r,Error:i,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:o,ObjectDefineProperties:s,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:u,SymbolHasInstance:f}=qa();t.exports=N,N.WritableState=I;var{EventEmitter:p}=(hy(),Si(Bg)),h=BF().Stream,{Buffer:m}=(ko(),Si(_o)),g=py(),{addAbortSignal:v}=pE(),{getHighWaterMark:y,getDefaultHighWaterMark:w}=zF(),{ERR_INVALID_ARG_TYPE:b,ERR_METHOD_NOT_IMPLEMENTED:C,ERR_MULTIPLE_CALLBACK:k,ERR_STREAM_CANNOT_PIPE:S,ERR_STREAM_DESTROYED:_,ERR_STREAM_ALREADY_FINISHED:E,ERR_STREAM_NULL_VALUES:$,ERR_STREAM_WRITE_AFTER_END:M,ERR_UNKNOWN_ENCODING:P}=Gs().codes,{errorOrDestroy:R}=g;l(N.prototype,h.prototype),l(N,h);function O(){}var j=u("kOnFinished");function I(re,fe,ve){typeof ve!="boolean"&&(ve=fe instanceof Tf()),this.objectMode=!!(re&&re.objectMode),ve&&(this.objectMode=this.objectMode||!!(re&&re.writableObjectMode)),this.highWaterMark=re?y(this,re,"writableHighWaterMark",ve):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let $e=!!(re&&re.decodeStrings===!1);this.decodeStrings=!$e,this.defaultEncoding=re&&re.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=B.bind(void 0,fe),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,A(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!re||re.emitClose!==!1,this.autoDestroy=!re||re.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[j]=[]}function A(re){re.buffered=[],re.bufferedIndex=0,re.allBuffers=!0,re.allNoop=!0}I.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},o(I.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function N(re){let fe=this instanceof Tf();if(!fe&&!a(N,this))return new N(re);this._writableState=new I(re,this,fe),re&&(typeof re.write=="function"&&(this._write=re.write),typeof re.writev=="function"&&(this._writev=re.writev),typeof re.destroy=="function"&&(this._destroy=re.destroy),typeof re.final=="function"&&(this._final=re.final),typeof re.construct=="function"&&(this._construct=re.construct),re.signal&&v(re.signal,this)),h.call(this,re),g.construct(this,()=>{let ve=this._writableState;ve.writing||ie(this,ve),oe(this,ve)})}o(N,f,{__proto__:null,value:function(re){return a(this,re)?!0:this!==N?!1:re&&re._writableState instanceof I}}),N.prototype.pipe=function(){R(this,new S)};function F(re,fe,ve,$e){let Ce=re._writableState;if(typeof ve=="function")$e=ve,ve=Ce.defaultEncoding;else{if(!ve)ve=Ce.defaultEncoding;else if(ve!=="buffer"&&!m.isEncoding(ve))throw new P(ve);typeof $e!="function"&&($e=O)}if(fe===null)throw new $;if(!Ce.objectMode)if(typeof fe=="string")Ce.decodeStrings!==!1&&(fe=m.from(fe,ve),ve="buffer");else if(fe instanceof m)ve="buffer";else if(h._isUint8Array(fe))fe=h._uint8ArrayToBuffer(fe),ve="buffer";else throw new b("chunk",["string","Buffer","Uint8Array"],fe);let be;return Ce.ending?be=new M:Ce.destroyed&&(be=new _("write")),be?(n.nextTick($e,be),R(re,be,!0),be):(Ce.pendingcb++,K(re,Ce,fe,ve,$e))}N.prototype.write=function(re,fe,ve){return F(this,re,fe,ve)===!0},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){let re=this._writableState;re.corked&&(re.corked--,re.writing||ie(this,re))},N.prototype.setDefaultEncoding=function(re){if(typeof re=="string"&&(re=c(re)),!m.isEncoding(re))throw new P(re);return this._writableState.defaultEncoding=re,this};function K(re,fe,ve,$e,Ce){let be=fe.objectMode?1:ve.length;fe.length+=be;let Se=fe.lengthve.bufferedIndex&&ie(re,ve),$e?ve.afterWriteTickInfo!==null&&ve.afterWriteTickInfo.cb===Ce?ve.afterWriteTickInfo.count++:(ve.afterWriteTickInfo={count:1,cb:Ce,stream:re,state:ve},n.nextTick(U,ve.afterWriteTickInfo)):Y(re,ve,1,Ce))}function U({stream:re,state:fe,count:ve,cb:$e}){return fe.afterWriteTickInfo=null,Y(re,fe,ve,$e)}function Y(re,fe,ve,$e){for(!fe.ending&&!re.destroyed&&fe.length===0&&fe.needDrain&&(fe.needDrain=!1,re.emit("drain"));ve-- >0;)fe.pendingcb--,$e();fe.destroyed&&ee(fe),oe(re,fe)}function ee(re){if(re.writing)return;for(let Ce=re.bufferedIndex;Ce1&&re._writev){fe.pendingcb-=be-1;let we=fe.allNoop?O:ye=>{for(let Oe=Se;Oe256?(ve.splice(0,Se),fe.bufferedIndex=0):fe.bufferedIndex=Se}fe.bufferProcessing=!1}N.prototype._write=function(re,fe,ve){if(this._writev)this._writev([{chunk:re,encoding:fe}],ve);else throw new C("_write()")},N.prototype._writev=null,N.prototype.end=function(re,fe,ve){let $e=this._writableState;typeof re=="function"?(ve=re,re=null,fe=null):typeof fe=="function"&&(ve=fe,fe=null);let Ce;if(re!=null){let be=F(this,re,fe);be instanceof i&&(Ce=be)}return $e.corked&&($e.corked=1,this.uncork()),Ce||(!$e.errored&&!$e.ending?($e.ending=!0,oe(this,$e,!0),$e.ended=!0):$e.finished?Ce=new E("end"):$e.destroyed&&(Ce=new _("end"))),typeof ve=="function"&&(Ce||$e.finished?n.nextTick(ve,Ce):$e[j].push(ve)),this};function Z(re){return re.ending&&!re.destroyed&&re.constructed&&re.length===0&&!re.errored&&re.buffered.length===0&&!re.finished&&!re.writing&&!re.errorEmitted&&!re.closeEmitted}function X(re,fe){let ve=!1;function $e(Ce){if(ve){R(re,Ce??k());return}if(ve=!0,fe.pendingcb--,Ce){let be=fe[j].splice(0);for(let Se=0;Se{Z(Ce)?le($e,Ce):Ce.pendingcb--},re,fe)):Z(fe)&&(fe.pendingcb++,le(re,fe))))}function le(re,fe){fe.pendingcb--,fe.finished=!0;let ve=fe[j].splice(0);for(let $e=0;$e{Zt(),Jt(),Qt();var n=Lg(),r=(ko(),Si(_o)),{isReadable:i,isWritable:a,isIterable:o,isNodeStream:s,isReadableNodeStream:l,isWritableNodeStream:c,isDuplexNodeStream:u}=Bf(),f=yh(),{AbortError:p,codes:{ERR_INVALID_ARG_TYPE:h,ERR_INVALID_RETURN_VALUE:m}}=Gs(),{destroyer:g}=py(),v=Tf(),y=mE(),{createDeferredPromise:w}=Mf(),b=cce(),C=globalThis.Blob||r.Blob,k=typeof C<"u"?function(P){return P instanceof C}:function(P){return!1},S=globalThis.AbortController||LF().AbortController,{FunctionPrototypeCall:_}=qa(),E=class extends v{constructor(P){super(P),(P==null?void 0:P.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(P==null?void 0:P.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};t.exports=function P(R,O){if(u(R))return R;if(l(R))return M({readable:R});if(c(R))return M({writable:R});if(s(R))return M({writable:!1,readable:!1});if(typeof R=="function"){let{value:I,write:A,final:N,destroy:F}=$(R);if(o(I))return b(E,I,{objectMode:!0,write:A,final:N,destroy:F});let K=I==null?void 0:I.then;if(typeof K=="function"){let L,V=_(K,I,B=>{if(B!=null)throw new m("nully","body",B)},B=>{g(L,B)});return L=new E({objectMode:!0,readable:!1,write:A,final(B){N(async()=>{try{await V,n.nextTick(B,null)}catch(U){n.nextTick(B,U)}})},destroy:F})}throw new m("Iterable, AsyncIterable or AsyncFunction",O,I)}if(k(R))return P(R.arrayBuffer());if(o(R))return b(E,R,{objectMode:!0,writable:!1});if(typeof(R==null?void 0:R.writable)=="object"||typeof(R==null?void 0:R.readable)=="object"){let I=R!=null&&R.readable?l(R==null?void 0:R.readable)?R==null?void 0:R.readable:P(R.readable):void 0,A=R!=null&&R.writable?c(R==null?void 0:R.writable)?R==null?void 0:R.writable:P(R.writable):void 0;return M({readable:I,writable:A})}let j=R==null?void 0:R.then;if(typeof j=="function"){let I;return _(j,R,A=>{A!=null&&I.push(A),I.push(null)},A=>{g(I,A)}),I=new E({objectMode:!0,writable:!1,read(){}})}throw new h(O,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],R)};function $(P){let{promise:R,resolve:O}=w(),j=new S,I=j.signal;return{value:P(async function*(){for(;;){let A=R;R=null;let{chunk:N,done:F,cb:K}=await A;if(n.nextTick(K),F)return;if(I.aborted)throw new p(void 0,{cause:I.reason});({promise:R,resolve:O}=w()),yield N}}(),{signal:I}),write(A,N,F){let K=O;O=null,K({chunk:A,done:!1,cb:F})},final(A){let N=O;O=null,N({done:!0,cb:A})},destroy(A,N){j.abort(),N(A)}}}function M(P){let R=P.readable&&typeof P.readable.read!="function"?y.wrap(P.readable):P.readable,O=P.writable,j=!!i(R),I=!!a(O),A,N,F,K,L;function V(B){let U=K;K=null,U?U(B):B&&L.destroy(B)}return L=new E({readableObjectMode:!!(R!=null&&R.readableObjectMode),writableObjectMode:!!(O!=null&&O.writableObjectMode),readable:j,writable:I}),I&&(f(O,B=>{I=!1,B&&g(R,B),V(B)}),L._write=function(B,U,Y){O.write(B,U)?Y():A=Y},L._final=function(B){O.end(),N=B},O.on("drain",function(){if(A){let B=A;A=null,B()}}),O.on("finish",function(){if(N){let B=N;N=null,B()}})),j&&(f(R,B=>{j=!1,B&&g(R,B),V(B)}),R.on("readable",function(){if(F){let B=F;F=null,B()}}),R.on("end",function(){L.push(null)}),L._read=function(){for(;;){let B=R.read();if(B===null){F=L._read;return}if(!L.push(B))return}}),L._destroy=function(B,U){!B&&K!==null&&(B=new p),F=null,A=null,N=null,K===null?U(B):(K=U,g(O,B),g(R,B))},L}}),Tf=un((e,t)=>{Zt(),Jt(),Qt();var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:i,ObjectSetPrototypeOf:a}=qa();t.exports=l;var o=mE(),s=uce();a(l.prototype,o.prototype),a(l,o);{let p=i(s.prototype);for(let h=0;h{Zt(),Jt(),Qt();var{ObjectSetPrototypeOf:n,Symbol:r}=qa();t.exports=l;var{ERR_METHOD_NOT_IMPLEMENTED:i}=Gs().codes,a=Tf(),{getHighWaterMark:o}=zF();n(l.prototype,a.prototype),n(l,a);var s=r("kCallback");function l(f){if(!(this instanceof l))return new l(f);let p=f?o(this,f,"readableHighWaterMark",!0):null;p===0&&(f={...f,highWaterMark:null,readableHighWaterMark:p,writableHighWaterMark:f.writableHighWaterMark||0}),a.call(this,f),this._readableState.sync=!1,this[s]=null,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",u)}function c(f){typeof this._flush=="function"&&!this.destroyed?this._flush((p,h)=>{if(p){f?f(p):this.destroy(p);return}h!=null&&this.push(h),this.push(null),f&&f()}):(this.push(null),f&&f())}function u(){this._final!==c&&c.call(this)}l.prototype._final=c,l.prototype._transform=function(f,p,h){throw new i("_transform()")},l.prototype._write=function(f,p,h){let m=this._readableState,g=this._writableState,v=m.length;this._transform(f,p,(y,w)=>{if(y){h(y);return}w!=null&&this.push(w),g.ended||v===m.length||m.length{Zt(),Jt(),Qt();var{ObjectSetPrototypeOf:n}=qa();t.exports=i;var r=dce();n(i.prototype,r.prototype),n(i,r);function i(a){if(!(this instanceof i))return new i(a);r.call(this,a)}i.prototype._transform=function(a,o,s){s(null,a)}}),WF=un((e,t)=>{Zt(),Jt(),Qt();var n=Lg(),{ArrayIsArray:r,Promise:i,SymbolAsyncIterator:a}=qa(),o=yh(),{once:s}=Mf(),l=py(),c=Tf(),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:h,ERR_STREAM_DESTROYED:m,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:v}=Gs(),{validateFunction:y,validateAbortSignal:w}=fE(),{isIterable:b,isReadable:C,isReadableNodeStream:k,isNodeStream:S,isTransformStream:_,isWebStream:E,isReadableStream:$,isReadableEnded:M}=Bf(),P=globalThis.AbortController||LF().AbortController,R,O;function j(U,Y,ee){let ie=!1;U.on("close",()=>{ie=!0});let Z=o(U,{readable:Y,writable:ee},X=>{ie=!X});return{destroy:X=>{ie||(ie=!0,l.destroyer(U,X||new m("pipe")))},cleanup:Z}}function I(U){return y(U[U.length-1],"streams[stream.length - 1]"),U.pop()}function A(U){if(b(U))return U;if(k(U))return N(U);throw new f("val",["Readable","Iterable","AsyncIterable"],U)}async function*N(U){O||(O=mE()),yield*O.prototype[a].call(U)}async function F(U,Y,ee,{end:ie}){let Z,X=null,ae=ce=>{if(ce&&(Z=ce),X){let pe=X;X=null,pe()}},oe=()=>new i((ce,pe)=>{Z?pe(Z):X=()=>{Z?pe(Z):ce()}});Y.on("drain",ae);let le=o(Y,{readable:!1},ae);try{Y.writableNeedDrain&&await oe();for await(let ce of U)Y.write(ce)||await oe();ie&&Y.end(),await oe(),ee()}catch(ce){ee(Z!==ce?u(Z,ce):ce)}finally{le(),Y.off("drain",ae)}}async function K(U,Y,ee,{end:ie}){_(Y)&&(Y=Y.writable);let Z=Y.getWriter();try{for await(let X of U)await Z.ready,Z.write(X).catch(()=>{});await Z.ready,ie&&await Z.close(),ee()}catch(X){try{await Z.abort(X),ee(X)}catch(ae){ee(ae)}}}function L(...U){return V(U,s(I(U)))}function V(U,Y,ee){if(U.length===1&&r(U[0])&&(U=U[0]),U.length<2)throw new h("streams");let ie=new P,Z=ie.signal,X=ee==null?void 0:ee.signal,ae=[];w(X,"options.signal");function oe(){fe(new v)}X==null||X.addEventListener("abort",oe);let le,ce,pe=[],me=0;function re(be){fe(be,--me===0)}function fe(be,Se){if(be&&(!le||le.code==="ERR_STREAM_PREMATURE_CLOSE")&&(le=be),!(!le&&!Se)){for(;pe.length;)pe.shift()(le);X==null||X.removeEventListener("abort",oe),ie.abort(),Se&&(le||ae.forEach(we=>we()),n.nextTick(Y,le,ce))}}let ve;for(let be=0;be0,ye=we||(ee==null?void 0:ee.end)!==!1,Oe=be===U.length-1;if(S(Se)){let z=function(H){H&&H.name!=="AbortError"&&H.code!=="ERR_STREAM_PREMATURE_CLOSE"&&re(H)};if(ye){let{destroy:H,cleanup:G}=j(Se,we,se);pe.push(H),C(Se)&&Oe&&ae.push(G)}Se.on("error",z),C(Se)&&Oe&&ae.push(()=>{Se.removeListener("error",z)})}if(be===0)if(typeof Se=="function"){if(ve=Se({signal:Z}),!b(ve))throw new p("Iterable, AsyncIterable or Stream","source",ve)}else b(Se)||k(Se)||_(Se)?ve=Se:ve=c.from(Se);else if(typeof Se=="function"){if(_(ve)){var $e;ve=A(($e=ve)===null||$e===void 0?void 0:$e.readable)}else ve=A(ve);if(ve=Se(ve,{signal:Z}),we){if(!b(ve,!0))throw new p("AsyncIterable",`transform[${be-1}]`,ve)}else{var Ce;R||(R=fce());let z=new R({objectMode:!0}),H=(Ce=ve)===null||Ce===void 0?void 0:Ce.then;if(typeof H=="function")me++,H.call(ve,xe=>{ce=xe,xe!=null&&z.write(xe),ye&&z.end(),n.nextTick(re)},xe=>{z.destroy(xe),n.nextTick(re,xe)});else if(b(ve,!0))me++,F(ve,z,re,{end:ye});else if($(ve)||_(ve)){let xe=ve.readable||ve;me++,F(xe,z,re,{end:ye})}else throw new p("AsyncIterable or Promise","destination",ve);ve=z;let{destroy:G,cleanup:de}=j(ve,!1,!0);pe.push(G),Oe&&ae.push(de)}}else if(S(Se)){if(k(ve)){me+=2;let z=B(ve,Se,re,{end:ye});C(Se)&&Oe&&ae.push(z)}else if(_(ve)||$(ve)){let z=ve.readable||ve;me++,F(z,Se,re,{end:ye})}else if(b(ve))me++,F(ve,Se,re,{end:ye});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],ve);ve=Se}else if(E(Se)){if(k(ve))me++,K(A(ve),Se,re,{end:ye});else if($(ve)||b(ve))me++,K(ve,Se,re,{end:ye});else if(_(ve))me++,K(ve.readable,Se,re,{end:ye});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],ve);ve=Se}else ve=c.from(Se)}return(Z!=null&&Z.aborted||X!=null&&X.aborted)&&n.nextTick(oe),ve}function B(U,Y,ee,{end:ie}){let Z=!1;if(Y.on("close",()=>{Z||ee(new g)}),U.pipe(Y,{end:!1}),ie){let X=function(){Z=!0,Y.end()};M(U)?n.nextTick(X):U.once("end",X)}else ee();return o(U,{readable:!0,writable:!1},X=>{let ae=U._readableState;X&&X.code==="ERR_STREAM_PREMATURE_CLOSE"&&ae&&ae.ended&&!ae.errored&&!ae.errorEmitted?U.once("end",ee).once("error",ee):ee(X)}),o(Y,{readable:!1,writable:!0},ee)}t.exports={pipelineImpl:V,pipeline:L}}),pce=un((e,t)=>{Zt(),Jt(),Qt();var{pipeline:n}=WF(),r=Tf(),{destroyer:i}=py(),{isNodeStream:a,isReadable:o,isWritable:s,isWebStream:l,isTransformStream:c,isWritableStream:u,isReadableStream:f}=Bf(),{AbortError:p,codes:{ERR_INVALID_ARG_VALUE:h,ERR_MISSING_ARGS:m}}=Gs(),g=yh();t.exports=function(...v){if(v.length===0)throw new m("streams");if(v.length===1)return r.from(v[0]);let y=[...v];if(typeof v[0]=="function"&&(v[0]=r.from(v[0])),typeof v[v.length-1]=="function"){let R=v.length-1;v[R]=r.from(v[R])}for(let R=0;R0&&!(s(v[R])||u(v[R])||c(v[R])))throw new h(`streams[${R}]`,y[R],"must be writable")}let w,b,C,k,S;function _(R){let O=k;k=null,O?O(R):R?S.destroy(R):!P&&!M&&S.destroy()}let E=v[0],$=n(v,_),M=!!(s(E)||u(E)||c(E)),P=!!(o($)||f($)||c($));if(S=new r({writableObjectMode:!!(E!=null&&E.writableObjectMode),readableObjectMode:!!($!=null&&$.writableObjectMode),writable:M,readable:P}),M){if(a(E))S._write=function(O,j,I){E.write(O,j)?I():w=I},S._final=function(O){E.end(),b=O},E.on("drain",function(){if(w){let O=w;w=null,O()}});else if(l(E)){let O=(c(E)?E.writable:E).getWriter();S._write=async function(j,I,A){try{await O.ready,O.write(j).catch(()=>{}),A()}catch(N){A(N)}},S._final=async function(j){try{await O.ready,O.close().catch(()=>{}),b=j}catch(I){j(I)}}}let R=c($)?$.readable:$;g(R,()=>{if(b){let O=b;b=null,O()}})}if(P){if(a($))$.on("readable",function(){if(C){let R=C;C=null,R()}}),$.on("end",function(){S.push(null)}),S._read=function(){for(;;){let R=$.read();if(R===null){C=S._read;return}if(!S.push(R))return}};else if(l($)){let R=(c($)?$.readable:$).getReader();S._read=async function(){for(;;)try{let{value:O,done:j}=await R.read();if(!S.push(O))return;if(j){S.push(null);return}}catch{return}}}}return S._destroy=function(R,O){!R&&k!==null&&(R=new p),C=null,w=null,b=null,k===null?O(R):(k=O,a($)&&i($,R))},S}}),V$e=un((e,t)=>{Zt(),Jt(),Qt();var n=globalThis.AbortController||LF().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r,ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:o},AbortError:s}=Gs(),{validateAbortSignal:l,validateInteger:c,validateObject:u}=fE(),f=qa().Symbol("kWeak"),{finished:p}=yh(),h=pce(),{addAbortSignalNoValidate:m}=pE(),{isWritable:g,isNodeStream:v}=Bf(),{ArrayPrototypePush:y,MathFloor:w,Number:b,NumberIsNaN:C,Promise:k,PromiseReject:S,PromisePrototypeThen:_,Symbol:E}=qa(),$=E("kEmpty"),M=E("kEof");function P(ie,Z){if(Z!=null&&u(Z,"options"),(Z==null?void 0:Z.signal)!=null&&l(Z.signal,"options.signal"),v(ie)&&!g(ie))throw new r("stream",ie,"must be writable");let X=h(this,ie);return Z!=null&&Z.signal&&m(Z.signal,X),X}function R(ie,Z){if(typeof ie!="function")throw new i("fn",["Function","AsyncFunction"],ie);Z!=null&&u(Z,"options"),(Z==null?void 0:Z.signal)!=null&&l(Z.signal,"options.signal");let X=1;return(Z==null?void 0:Z.concurrency)!=null&&(X=w(Z.concurrency)),c(X,"concurrency",1),(async function*(){var ae,oe;let le=new n,ce=this,pe=[],me=le.signal,re={signal:me},fe=()=>le.abort();Z!=null&&(ae=Z.signal)!==null&&ae!==void 0&&ae.aborted&&fe(),Z==null||(oe=Z.signal)===null||oe===void 0||oe.addEventListener("abort",fe);let ve,$e,Ce=!1;function be(){Ce=!0}async function Se(){try{for await(let ye of ce){var we;if(Ce)return;if(me.aborted)throw new s;try{ye=ie(ye,re)}catch(Oe){ye=S(Oe)}ye!==$&&(typeof((we=ye)===null||we===void 0?void 0:we.catch)=="function"&&ye.catch(be),pe.push(ye),ve&&(ve(),ve=null),!Ce&&pe.length&&pe.length>=X&&await new k(Oe=>{$e=Oe}))}pe.push(M)}catch(ye){let Oe=S(ye);_(Oe,void 0,be),pe.push(Oe)}finally{var se;Ce=!0,ve&&(ve(),ve=null),Z==null||(se=Z.signal)===null||se===void 0||se.removeEventListener("abort",fe)}}Se();try{for(;;){for(;pe.length>0;){let we=await pe[0];if(we===M)return;if(me.aborted)throw new s;we!==$&&(yield we),pe.shift(),$e&&($e(),$e=null)}await new k(we=>{ve=we})}}finally{le.abort(),Ce=!0,$e&&($e(),$e=null)}}).call(this)}function O(ie=void 0){return ie!=null&&u(ie,"options"),(ie==null?void 0:ie.signal)!=null&&l(ie.signal,"options.signal"),(async function*(){let Z=0;for await(let ae of this){var X;if(ie!=null&&(X=ie.signal)!==null&&X!==void 0&&X.aborted)throw new s({cause:ie.signal.reason});yield[Z++,ae]}}).call(this)}async function j(ie,Z=void 0){for await(let X of F.call(this,ie,Z))return!0;return!1}async function I(ie,Z=void 0){if(typeof ie!="function")throw new i("fn",["Function","AsyncFunction"],ie);return!await j.call(this,async(...X)=>!await ie(...X),Z)}async function A(ie,Z){for await(let X of F.call(this,ie,Z))return X}async function N(ie,Z){if(typeof ie!="function")throw new i("fn",["Function","AsyncFunction"],ie);async function X(ae,oe){return await ie(ae,oe),$}for await(let ae of R.call(this,X,Z));}function F(ie,Z){if(typeof ie!="function")throw new i("fn",["Function","AsyncFunction"],ie);async function X(ae,oe){return await ie(ae,oe)?ae:$}return R.call(this,X,Z)}var K=class extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function L(ie,Z,X){var ae;if(typeof ie!="function")throw new i("reducer",["Function","AsyncFunction"],ie);X!=null&&u(X,"options"),(X==null?void 0:X.signal)!=null&&l(X.signal,"options.signal");let oe=arguments.length>1;if(X!=null&&(ae=X.signal)!==null&&ae!==void 0&&ae.aborted){let re=new s(void 0,{cause:X.signal.reason});throw this.once("error",()=>{}),await p(this.destroy(re)),re}let le=new n,ce=le.signal;if(X!=null&&X.signal){let re={once:!0,[f]:this};X.signal.addEventListener("abort",()=>le.abort(),re)}let pe=!1;try{for await(let re of this){var me;if(pe=!0,X!=null&&(me=X.signal)!==null&&me!==void 0&&me.aborted)throw new s;oe?Z=await ie(Z,re,{signal:ce}):(Z=re,oe=!0)}if(!pe&&!oe)throw new K}finally{le.abort()}return Z}async function V(ie){ie!=null&&u(ie,"options"),(ie==null?void 0:ie.signal)!=null&&l(ie.signal,"options.signal");let Z=[];for await(let ae of this){var X;if(ie!=null&&(X=ie.signal)!==null&&X!==void 0&&X.aborted)throw new s(void 0,{cause:ie.signal.reason});y(Z,ae)}return Z}function B(ie,Z){let X=R.call(this,ie,Z);return(async function*(){for await(let ae of X)yield*ae}).call(this)}function U(ie){if(ie=b(ie),C(ie))return 0;if(ie<0)throw new o("number",">= 0",ie);return ie}function Y(ie,Z=void 0){return Z!=null&&u(Z,"options"),(Z==null?void 0:Z.signal)!=null&&l(Z.signal,"options.signal"),ie=U(ie),(async function*(){var X;if(Z!=null&&(X=Z.signal)!==null&&X!==void 0&&X.aborted)throw new s;for await(let oe of this){var ae;if(Z!=null&&(ae=Z.signal)!==null&&ae!==void 0&&ae.aborted)throw new s;ie--<=0&&(yield oe)}}).call(this)}function ee(ie,Z=void 0){return Z!=null&&u(Z,"options"),(Z==null?void 0:Z.signal)!=null&&l(Z.signal,"options.signal"),ie=U(ie),(async function*(){var X;if(Z!=null&&(X=Z.signal)!==null&&X!==void 0&&X.aborted)throw new s;for await(let oe of this){var ae;if(Z!=null&&(ae=Z.signal)!==null&&ae!==void 0&&ae.aborted)throw new s;if(ie-- >0)yield oe;else return}}).call(this)}t.exports.streamReturningOperators={asIndexedPairs:O,drop:Y,filter:F,flatMap:B,map:R,take:ee,compose:P},t.exports.promiseReturningOperators={every:I,forEach:N,reduce:L,toArray:V,some:j,find:A}}),hce=un((e,t)=>{Zt(),Jt(),Qt();var{ArrayPrototypePop:n,Promise:r}=qa(),{isIterable:i,isNodeStream:a,isWebStream:o}=Bf(),{pipelineImpl:s}=WF(),{finished:l}=yh();mce();function c(...u){return new r((f,p)=>{let h,m,g=u[u.length-1];if(g&&typeof g=="object"&&!a(g)&&!i(g)&&!o(g)){let v=n(u);h=v.signal,m=v.end}s(u,(v,y)=>{v?p(v):f(y)},{signal:h,end:m})})}t.exports={finished:l,pipeline:c}}),mce=un((e,t)=>{Zt(),Jt(),Qt();var{Buffer:n}=(ko(),Si(_o)),{ObjectDefineProperty:r,ObjectKeys:i,ReflectApply:a}=qa(),{promisify:{custom:o}}=Mf(),{streamReturningOperators:s,promiseReturningOperators:l}=V$e(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=Gs(),u=pce(),{pipeline:f}=WF(),{destroyer:p}=py(),h=yh(),m=hce(),g=Bf(),v=t.exports=BF().Stream;v.isDisturbed=g.isDisturbed,v.isErrored=g.isErrored,v.isReadable=g.isReadable,v.Readable=mE();for(let w of i(s)){let b=function(...k){if(new.target)throw c();return v.Readable.from(a(C,this,k))},C=s[w];r(b,"name",{__proto__:null,value:C.name}),r(b,"length",{__proto__:null,value:C.length}),r(v.Readable.prototype,w,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}for(let w of i(l)){let b=function(...k){if(new.target)throw c();return a(C,this,k)},C=l[w];r(b,"name",{__proto__:null,value:C.name}),r(b,"length",{__proto__:null,value:C.length}),r(v.Readable.prototype,w,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}v.Writable=uce(),v.Duplex=Tf(),v.Transform=dce(),v.PassThrough=fce(),v.pipeline=f;var{addAbortSignal:y}=pE();v.addAbortSignal=y,v.finished=h,v.destroy=p,v.compose=u,r(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),r(f,o,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),r(h,o,{__proto__:null,enumerable:!0,get(){return m.finished}}),v.Stream=v,v._isUint8Array=function(w){return w instanceof Uint8Array},v._uint8ArrayToBuffer=function(w){return n.from(w.buffer,w.byteOffset,w.byteLength)}}),zg=un((e,t)=>{Zt(),Jt(),Qt();var n=mce(),r=hce(),i=n.Readable.destroy;t.exports=n.Readable,t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.destroy=i,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=n.Stream,t.exports.default=t.exports}),q$e=un((e,t)=>{Zt(),Jt(),Qt(),typeof Object.create=="function"?t.exports=function(n,r){r&&(n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(n,r){if(r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}}}),K$e=un((e,t)=>{Zt(),Jt(),Qt();var{Buffer:n}=(ko(),Si(_o)),r=Symbol.for("BufferList");function i(a){if(!(this instanceof i))return new i(a);i._init.call(this,a)}i._init=function(a){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,a&&this.append(a)},i.prototype._new=function(a){return new i(a)},i.prototype._offset=function(a){if(a===0)return[0,0];let o=0;for(let s=0;sthis.length||a<0)return;let o=this._offset(a);return this._bufs[o[0]][o[1]]},i.prototype.slice=function(a,o){return typeof a=="number"&&a<0&&(a+=this.length),typeof o=="number"&&o<0&&(o+=this.length),this.copy(null,0,a,o)},i.prototype.copy=function(a,o,s,l){if((typeof s!="number"||s<0)&&(s=0),(typeof l!="number"||l>this.length)&&(l=this.length),s>=this.length||l<=0)return a||n.alloc(0);let c=!!a,u=this._offset(s),f=l-s,p=f,h=c&&o||0,m=u[1];if(s===0&&l===this.length){if(!c)return this._bufs.length===1?this._bufs[0]:n.concat(this._bufs,this.length);for(let g=0;gv)this._bufs[g].copy(a,h,m),h+=v;else{this._bufs[g].copy(a,h,m,m+p),h+=v;break}p-=v,m&&(m=0)}return a.length>h?a.slice(0,h):a},i.prototype.shallowSlice=function(a,o){if(a=a||0,o=typeof o!="number"?this.length:o,a<0&&(a+=this.length),o<0&&(o+=this.length),a===o)return this._new();let s=this._offset(a),l=this._offset(o),c=this._bufs.slice(s[0],l[0]+1);return l[1]===0?c.pop():c[c.length-1]=c[c.length-1].slice(0,l[1]),s[1]!==0&&(c[0]=c[0].slice(s[1])),this._new(c)},i.prototype.toString=function(a,o,s){return this.slice(o,s).toString(a)},i.prototype.consume=function(a){if(a=Math.trunc(a),Number.isNaN(a)||a<=0)return this;for(;this._bufs.length;)if(a>=this._bufs[0].length)a-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(a),this.length-=a;break}return this},i.prototype.duplicate=function(){let a=this._new();for(let o=0;othis.length?this.length:o;let l=this._offset(o),c=l[0],u=l[1];for(;c=a.length){let p=f.indexOf(a,u);if(p!==-1)return this._reverseOffset([c,p]);u=f.length-a.length+1}else{let p=this._reverseOffset([c,u]);if(this._match(p,a))return p;u++}u=0}return-1},i.prototype._match=function(a,o){if(this.length-a{Zt(),Jt(),Qt();var n=zg().Duplex,r=q$e(),i=K$e();function a(o){if(!(this instanceof a))return new a(o);if(typeof o=="function"){this._callback=o;let s=(function(l){this._callback&&(this._callback(l),this._callback=null)}).bind(this);this.on("pipe",function(l){l.on("error",s)}),this.on("unpipe",function(l){l.removeListener("error",s)}),o=null}i._init.call(this,o),n.call(this)}r(a,n),Object.assign(a.prototype,i.prototype),a.prototype._new=function(o){return new a(o)},a.prototype._write=function(o,s,l){this._appendBuffer(o),typeof l=="function"&&l()},a.prototype._read=function(o){if(!this.length)return this.push(null);o=Math.min(o,this.length),this.push(this.slice(0,o)),this.consume(o)},a.prototype.end=function(o){n.prototype.end.call(this,o),this._callback&&(this._callback(null,this.slice()),this._callback=null)},a.prototype._destroy=function(o,s){this._bufs.length=0,this.length=0,s(o)},a.prototype._isBufferList=function(o){return o instanceof a||o instanceof i||a.isBufferList(o)},a.isBufferList=i.isBufferList,t.exports=a,t.exports.BufferListStream=a,t.exports.BufferList=i}),Y$e=un((e,t)=>{Zt(),Jt(),Qt();var n=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};t.exports=n}),gce=un((e,t)=>{Zt(),Jt(),Qt();var n=t.exports,{Buffer:r}=(ko(),Si(_o));n.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},n.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},n.requiredHeaderFlagsErrors={};for(let a in n.requiredHeaderFlags){let o=n.requiredHeaderFlags[a];n.requiredHeaderFlagsErrors[a]="Invalid header flag bits, must be 0x"+o.toString(16)+" for "+n.types[a]+" packet"}n.codes={};for(let a in n.types){let o=n.types[a];n.codes[o]=a}n.CMD_SHIFT=4,n.CMD_MASK=240,n.DUP_MASK=8,n.QOS_MASK=3,n.QOS_SHIFT=1,n.RETAIN_MASK=1,n.VARBYTEINT_MASK=127,n.VARBYTEINT_FIN_MASK=128,n.VARBYTEINT_MAX=268435455,n.SESSIONPRESENT_MASK=1,n.SESSIONPRESENT_HEADER=r.from([n.SESSIONPRESENT_MASK]),n.CONNACK_HEADER=r.from([n.codes.connack<[0,1].map(s=>[0,1].map(l=>{let c=r.alloc(1);return c.writeUInt8(n.codes[a]<r.from([a])),n.EMPTY={pingreq:r.from([n.codes.pingreq<<4,0]),pingresp:r.from([n.codes.pingresp<<4,0]),disconnect:r.from([n.codes.disconnect<<4,0])},n.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},n.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},n.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},n.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),X$e=un((e,t)=>{Zt(),Jt(),Qt();var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(p,h){h=h||{};var m=typeof p;if(m==="string"&&p.length>0)return l(p);if(m==="number"&&isFinite(p))return h.long?u(p):c(p);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(p))};function l(p){if(p=String(p),!(p.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(p);if(h){var m=parseFloat(h[1]),g=(h[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return m*s;case"weeks":case"week":case"w":return m*o;case"days":case"day":case"d":return m*a;case"hours":case"hour":case"hrs":case"hr":case"h":return m*i;case"minutes":case"minute":case"mins":case"min":case"m":return m*r;case"seconds":case"second":case"secs":case"sec":case"s":return m*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function c(p){var h=Math.abs(p);return h>=a?Math.round(p/a)+"d":h>=i?Math.round(p/i)+"h":h>=r?Math.round(p/r)+"m":h>=n?Math.round(p/n)+"s":p+"ms"}function u(p){var h=Math.abs(p);return h>=a?f(p,h,a,"day"):h>=i?f(p,h,i,"hour"):h>=r?f(p,h,r,"minute"):h>=n?f(p,h,n,"second"):p+" ms"}function f(p,h,m,g){var v=h>=m*1.5;return Math.round(p/m)+" "+g+(v?"s":"")}}),Z$e=un((e,t)=>{Zt(),Jt(),Qt();function n(r){a.debug=a,a.default=a,a.coerce=f,a.disable=l,a.enable=s,a.enabled=c,a.humanize=X$e(),a.destroy=p,Object.keys(r).forEach(h=>{a[h]=r[h]}),a.names=[],a.skips=[],a.formatters={};function i(h){let m=0;for(let g=0;g{if(E==="%%")return"%";_++;let M=a.formatters[$];if(typeof M=="function"){let P=b[_];E=M.call(C,P),b.splice(_,1),_--}return E}),a.formatArgs.call(C,b),(C.log||a.log).apply(C,b)}return w.namespace=h,w.useColors=a.useColors(),w.color=a.selectColor(h),w.extend=o,w.destroy=a.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(v!==a.namespaces&&(v=a.namespaces,y=a.enabled(h)),y),set:b=>{g=b}}),typeof a.init=="function"&&a.init(w),w}function o(h,m){let g=a(this.namespace+(typeof m>"u"?":":m)+h);return g.log=this.log,g}function s(h){a.save(h),a.namespaces=h,a.names=[],a.skips=[];let m,g=(typeof h=="string"?h:"").split(/[\s,]+/),v=g.length;for(m=0;m"-"+m)].join(",");return a.enable(""),h}function c(h){if(h[h.length-1]==="*")return!0;let m,g;for(m=0,g=a.skips.length;m{Zt(),Jt(),Qt(),e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,f=0;l[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(u++,p==="%c"&&(f=u))}),l.splice(f,0,c)}e.log=console.debug||console.log||(()=>{});function i(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function a(){let l;try{l=e.storage.getItem("debug")}catch{}return!l&&typeof li<"u"&&"env"in li&&(l=li.env.DEBUG),l}function o(){try{return localStorage}catch{}}t.exports=Z$e()(e);var{formatters:s}=t.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}),Q$e=un((e,t)=>{Zt(),Jt(),Qt();var n=G$e(),{EventEmitter:r}=(hy(),Si(Bg)),i=Y$e(),a=gce(),o=Pf()("mqtt-packet:parser"),s=class _I extends r{constructor(){super(),this.parser=this.constructor.parser}static parser(c){return this instanceof _I?(this.settings=c||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new _I().parser(c)}_resetState(){o("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new i,this.error=null,this._list=n(),this._stateCounter=0}parse(c){for(this.error&&this._resetState(),this._list.append(c),o("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,o("parse: state complete. _stateCounter is now: %d",this._stateCounter),o("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return o("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let c=this._list.readUInt8(0),u=c>>a.CMD_SHIFT;this.packet.cmd=a.types[u];let f=c&15,p=a.requiredHeaderFlags[u];return p!=null&&f!==p?this._emitError(new Error(a.requiredHeaderFlagsErrors[u])):(this.packet.retain=(c&a.RETAIN_MASK)!==0,this.packet.qos=c>>a.QOS_SHIFT&a.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(c&a.DUP_MASK)!==0,o("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let c=this._parseVarByteNum(!0);return c&&(this.packet.length=c.value,this._list.consume(c.bytes)),o("_parseLength %d",c.value),!!c}_parsePayload(){o("_parsePayload: payload %O",this._list);let c=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}c=!0}return o("_parsePayload complete result: %s",c),c}_parseConnect(){o("_parseConnect");let c,u,f,p,h={},m=this.packet,g=this._parseString();if(g===null)return this._emitError(new Error("Cannot parse protocolId"));if(g!=="MQTT"&&g!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(m.protocolId=g,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(m.protocolVersion=this._list.readUInt8(this._pos),m.protocolVersion>=128&&(m.bridgeMode=!0,m.protocolVersion=m.protocolVersion-128),m.protocolVersion!==3&&m.protocolVersion!==4&&m.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));h.username=this._list.readUInt8(this._pos)&a.USERNAME_MASK,h.password=this._list.readUInt8(this._pos)&a.PASSWORD_MASK,h.will=this._list.readUInt8(this._pos)&a.WILL_FLAG_MASK;let v=!!(this._list.readUInt8(this._pos)&a.WILL_RETAIN_MASK),y=(this._list.readUInt8(this._pos)&a.WILL_QOS_MASK)>>a.WILL_QOS_SHIFT;if(h.will)m.will={},m.will.retain=v,m.will.qos=y;else{if(v)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(y)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(m.clean=(this._list.readUInt8(this._pos)&a.CLEAN_SESSION_MASK)!==0,this._pos++,m.keepalive=this._parseNum(),m.keepalive===-1)return this._emitError(new Error("Packet too short"));if(m.protocolVersion===5){let b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(m.properties=b)}let w=this._parseString();if(w===null)return this._emitError(new Error("Packet too short"));if(m.clientId=w,o("_parseConnect: packet.clientId: %s",m.clientId),h.will){if(m.protocolVersion===5){let b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(m.will.properties=b)}if(c=this._parseString(),c===null)return this._emitError(new Error("Cannot parse will topic"));if(m.will.topic=c,o("_parseConnect: packet.will.topic: %s",m.will.topic),u=this._parseBuffer(),u===null)return this._emitError(new Error("Cannot parse will payload"));m.will.payload=u,o("_parseConnect: packet.will.paylaod: %s",m.will.payload)}if(h.username){if(p=this._parseString(),p===null)return this._emitError(new Error("Cannot parse username"));m.username=p,o("_parseConnect: packet.username: %s",m.username)}if(h.password){if(f=this._parseBuffer(),f===null)return this._emitError(new Error("Cannot parse password"));m.password=f}return this.settings=m,o("_parseConnect: complete"),m}_parseConnack(){o("_parseConnack");let c=this.packet;if(this._list.length<1)return null;let u=this._list.readUInt8(this._pos++);if(u>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(c.sessionPresent=!!(u&a.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?c.reasonCode=this._list.readUInt8(this._pos++):c.reasonCode=0;else{if(this._list.length<2)return null;c.returnCode=this._list.readUInt8(this._pos++)}if(c.returnCode===-1||c.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}o("_parseConnack: complete")}_parsePublish(){o("_parsePublish");let c=this.packet;if(c.topic=this._parseString(),c.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(c.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}c.payload=this._list.slice(this._pos,c.length),o("_parsePublish: payload from buffer list: %o",c.payload)}}_parseSubscribe(){o("_parseSubscribe");let c=this.packet,u,f,p,h,m,g,v;if(c.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let y=this._parseProperties();Object.getOwnPropertyNames(y).length&&(c.properties=y)}if(c.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=c.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(f=this._parseByte(),this.settings.protocolVersion===5){if(f&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(f&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(p=f&a.SUBSCRIBE_OPTIONS_QOS_MASK,p>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(g=(f>>a.SUBSCRIBE_OPTIONS_NL_SHIFT&a.SUBSCRIBE_OPTIONS_NL_MASK)!==0,m=(f>>a.SUBSCRIBE_OPTIONS_RAP_SHIFT&a.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,h=f>>a.SUBSCRIBE_OPTIONS_RH_SHIFT&a.SUBSCRIBE_OPTIONS_RH_MASK,h>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));v={topic:u,qos:p},this.settings.protocolVersion===5?(v.nl=g,v.rap=m,v.rh=h):this.settings.bridgeMode&&(v.rh=0,v.rap=!0,v.nl=!0),o("_parseSubscribe: push subscription `%s` to subscription",v),c.subscriptions.push(v)}}}_parseSuback(){o("_parseSuback");let c=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(c.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&u!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(u)}}}_parseUnsubscribe(){o("_parseUnsubscribe");let c=this.packet;if(c.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(c.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(c.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!a.MQTT5_PUBACK_PUBREC_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!a.MQTT5_PUBREL_PUBCOMP_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}o("_parseConfirmation: packet.reasonCode `%d`",c.reasonCode)}else c.reasonCode=0;if(c.length>3){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}}return!0}_parseDisconnect(){let c=this.packet;if(o("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(c.reasonCode=this._parseByte(),a.MQTT5_DISCONNECT_CODES[c.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):c.reasonCode=0;let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}return o("_parseDisconnect result: true"),!0}_parseAuth(){o("_parseAuth");let c=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(c.reasonCode=this._parseByte(),!a.MQTT5_AUTH_CODES[c.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let u=this._parseProperties();return Object.getOwnPropertyNames(u).length&&(c.properties=u),o("_parseAuth: result: true"),!0}_parseMessageId(){let c=this.packet;return c.messageId=this._parseNum(),c.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(o("_parseMessageId: packet.messageId %d",c.messageId),!0)}_parseString(c){let u=this._parseNum(),f=u+this._pos;if(u===-1||f>this._list.length||f>this.packet.length)return null;let p=this._list.toString("utf8",this._pos,f);return this._pos+=u,o("_parseString: result: %s",p),p}_parseStringPair(){return o("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let c=this._parseNum(),u=c+this._pos;if(c===-1||u>this._list.length||u>this.packet.length)return null;let f=this._list.slice(this._pos,u);return this._pos+=c,o("_parseBuffer: result: %o",f),f}_parseNum(){if(this._list.length-this._pos<2)return-1;let c=this._list.readUInt16BE(this._pos);return this._pos+=2,o("_parseNum: result: %s",c),c}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let c=this._list.readUInt32BE(this._pos);return this._pos+=4,o("_parse4ByteNum: result: %s",c),c}_parseVarByteNum(c){o("_parseVarByteNum");let u=4,f=0,p=1,h=0,m=!1,g,v=this._pos?this._pos:0;for(;f=f&&this._emitError(new Error("Invalid variable byte integer")),v&&(this._pos+=f),m?c?m={bytes:f,value:h}:m=h:m=!1,o("_parseVarByteNum: result: %o",m),m}_parseByte(){let c;return this._pos{Zt(),Jt(),Qt();var{Buffer:n}=(ko(),Si(_o)),r=65536,i={},a=n.isBuffer(n.from([1,2]).subarray(0,1));function o(u){let f=n.allocUnsafe(2);return f.writeUInt8(u>>8,0),f.writeUInt8(u&255,1),f}function s(){for(let u=0;u0&&(f=f|128),h.writeUInt8(f,p++);while(u>0&&p<4);return u>0&&(p=0),a?h.subarray(0,p):h.slice(0,p)}function c(u){let f=n.allocUnsafe(4);return f.writeUInt32BE(u,0),f}t.exports={cache:i,generateCache:s,generateNumber:o,genBufVariableByteInt:l,generate4ByteBuffer:c}}),e7e=un((e,t)=>{Zt(),Jt(),Qt(),typeof li>"u"||!li.version||li.version.indexOf("v0.")===0||li.version.indexOf("v1.")===0&&li.version.indexOf("v1.8.")!==0?t.exports={nextTick:n}:t.exports=li;function n(r,i,a,o){if(typeof r!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,l,c;switch(s){case 0:case 1:return li.nextTick(r);case 2:return li.nextTick(function(){r.call(null,i)});case 3:return li.nextTick(function(){r.call(null,i,a)});case 4:return li.nextTick(function(){r.call(null,i,a,o)});default:for(l=new Array(s-1),c=0;c{Zt(),Jt(),Qt();var n=gce(),{Buffer:r}=(ko(),Si(_o)),i=r.allocUnsafe(0),a=r.from([0]),o=J$e(),s=e7e().nextTick,l=Pf()("mqtt-packet:writeToStream"),c=o.cache,u=o.generateNumber,f=o.generateCache,p=o.genBufVariableByteInt,h=o.generate4ByteBuffer,m=N,g=!0;function v(Z,X,ae){switch(l("generate called"),X.cork&&(X.cork(),s(y,X)),g&&(g=!1,f()),l("generate: packet.cmd: %s",Z.cmd),Z.cmd){case"connect":return w(Z,X);case"connack":return b(Z,X,ae);case"publish":return C(Z,X,ae);case"puback":case"pubrec":case"pubrel":case"pubcomp":return k(Z,X,ae);case"subscribe":return S(Z,X,ae);case"suback":return _(Z,X,ae);case"unsubscribe":return E(Z,X,ae);case"unsuback":return $(Z,X,ae);case"pingreq":case"pingresp":return M(Z,X);case"disconnect":return P(Z,X,ae);case"auth":return R(Z,X,ae);default:return X.destroy(new Error("Unknown command")),!1}}Object.defineProperty(v,"cacheNumbers",{get(){return m===N},set(Z){Z?((!c||Object.keys(c).length===0)&&(g=!0),m=N):(g=!1,m=F)}});function y(Z){Z.uncork()}function w(Z,X,ae){let oe=Z||{},le=oe.protocolId||"MQTT",ce=oe.protocolVersion||4,pe=oe.will,me=oe.clean,re=oe.keepalive||0,fe=oe.clientId||"",ve=oe.username,$e=oe.password,Ce=oe.properties;me===void 0&&(me=!0);let be=0;if(!le||typeof le!="string"&&!r.isBuffer(le))return X.destroy(new Error("Invalid protocolId")),!1;if(be+=le.length+2,ce!==3&&ce!==4&&ce!==5)return X.destroy(new Error("Invalid protocol version")),!1;if(be+=1,(typeof fe=="string"||r.isBuffer(fe))&&(fe||ce>=4)&&(fe||me))be+=r.byteLength(fe)+2;else{if(ce<4)return X.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(me*1===0)return X.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof re!="number"||re<0||re>65535||re%1!==0)return X.destroy(new Error("Invalid keepalive")),!1;be+=2,be+=1;let Se,we;if(ce===5){if(Se=V(X,Ce),!Se)return!1;be+=Se.length}if(pe){if(typeof pe!="object")return X.destroy(new Error("Invalid will")),!1;if(!pe.topic||typeof pe.topic!="string")return X.destroy(new Error("Invalid will topic")),!1;if(be+=r.byteLength(pe.topic)+2,be+=2,pe.payload)if(pe.payload.length>=0)typeof pe.payload=="string"?be+=r.byteLength(pe.payload):be+=pe.payload.length;else return X.destroy(new Error("Invalid will payload")),!1;if(we={},ce===5){if(we=V(X,pe.properties),!we)return!1;be+=we.length}}let se=!1;if(ve!=null)if(ie(ve))se=!0,be+=r.byteLength(ve)+2;else return X.destroy(new Error("Invalid username")),!1;if($e!=null){if(!se)return X.destroy(new Error("Username is required to use password")),!1;if(ie($e))be+=ee($e)+2;else return X.destroy(new Error("Invalid password")),!1}X.write(n.CONNECT_HEADER),j(X,be),L(X,le),oe.bridgeMode&&(ce+=128),X.write(ce===131?n.VERSION131:ce===132?n.VERSION132:ce===4?n.VERSION4:ce===5?n.VERSION5:n.VERSION3);let ye=0;return ye|=ve!=null?n.USERNAME_MASK:0,ye|=$e!=null?n.PASSWORD_MASK:0,ye|=pe&&pe.retain?n.WILL_RETAIN_MASK:0,ye|=pe&&pe.qos?pe.qos<0&&m(X,fe),Ce==null||Ce.write(),l("publish: payload: %o",re),X.write(re)}function k(Z,X,ae){let oe=ae?ae.protocolVersion:4,le=Z||{},ce=le.cmd||"puback",pe=le.messageId,me=le.dup&&ce==="pubrel"?n.DUP_MASK:0,re=0,fe=le.reasonCode,ve=le.properties,$e=oe===5?3:2;if(ce==="pubrel"&&(re=1),typeof pe!="number")return X.destroy(new Error("Invalid messageId")),!1;let Ce=null;if(oe===5&&typeof ve=="object"){if(Ce=B(X,ve,ae,$e),!Ce)return!1;$e+=Ce.length}return X.write(n.ACKS[ce][re][me][0]),$e===3&&($e+=fe!==0?1:-1),j(X,$e),m(X,pe),oe===5&&$e!==2&&X.write(r.from([fe])),Ce!==null?Ce.write():$e===4&&X.write(r.from([0])),!0}function S(Z,X,ae){l("subscribe: packet: ");let oe=ae?ae.protocolVersion:4,le=Z||{},ce=le.dup?n.DUP_MASK:0,pe=le.messageId,me=le.subscriptions,re=le.properties,fe=0;if(typeof pe!="number")return X.destroy(new Error("Invalid messageId")),!1;fe+=2;let ve=null;if(oe===5){if(ve=V(X,re),!ve)return!1;fe+=ve.length}if(typeof me=="object"&&me.length)for(let Ce=0;Ce2)return X.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}fe+=r.byteLength(be)+2+1}else return X.destroy(new Error("Invalid subscriptions")),!1;l("subscribe: writing to stream: %o",n.SUBSCRIBE_HEADER),X.write(n.SUBSCRIBE_HEADER[1][ce?1:0][0]),j(X,fe),m(X,pe),ve!==null&&ve.write();let $e=!0;for(let Ce of me){let be=Ce.topic,Se=Ce.qos,we=+Ce.nl,se=+Ce.rap,ye=Ce.rh,Oe;I(X,be),Oe=n.SUBSCRIBE_OPTIONS_QOS[Se],oe===5&&(Oe|=we?n.SUBSCRIBE_OPTIONS_NL:0,Oe|=se?n.SUBSCRIBE_OPTIONS_RAP:0,Oe|=ye?n.SUBSCRIBE_OPTIONS_RH[ye]:0),$e=X.write(r.from([Oe]))}return $e}function _(Z,X,ae){let oe=ae?ae.protocolVersion:4,le=Z||{},ce=le.messageId,pe=le.granted,me=le.properties,re=0;if(typeof ce!="number")return X.destroy(new Error("Invalid messageId")),!1;if(re+=2,typeof pe=="object"&&pe.length)for(let ve=0;ven.VARBYTEINT_MAX)return Z.destroy(new Error(`Invalid variable byte integer: ${X}`)),!1;let ae=O[X];return ae||(ae=p(X),X<16384&&(O[X]=ae)),l("writeVarByteInt: writing to stream: %o",ae),Z.write(ae)}function I(Z,X){let ae=r.byteLength(X);return m(Z,ae),l("writeString: %s",X),Z.write(X,"utf8")}function A(Z,X,ae){I(Z,X),I(Z,ae)}function N(Z,X){return l("writeNumberCached: number: %d",X),l("writeNumberCached: %o",c[X]),Z.write(c[X])}function F(Z,X){let ae=u(X);return l("writeNumberGenerated: %o",ae),Z.write(ae)}function K(Z,X){let ae=h(X);return l("write4ByteNumber: %o",ae),Z.write(ae)}function L(Z,X){typeof X=="string"?I(Z,X):X?(m(Z,X.length),Z.write(X)):m(Z,0)}function V(Z,X){if(typeof X!="object"||X.length!=null)return{length:1,write(){Y(Z,{},0)}};let ae=0;function oe(le,ce){let pe=n.propertiesTypes[le],me=0;switch(pe){case"byte":{if(typeof ce!="boolean")return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=2;break}case"int8":{if(typeof ce!="number"||ce<0||ce>255)return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=2;break}case"binary":{if(ce&&ce===null)return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=1+r.byteLength(ce)+2;break}case"int16":{if(typeof ce!="number"||ce<0||ce>65535)return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=3;break}case"int32":{if(typeof ce!="number"||ce<0||ce>4294967295)return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=5;break}case"var":{if(typeof ce!="number"||ce<0||ce>268435455)return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=1+r.byteLength(p(ce));break}case"string":{if(typeof ce!="string")return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=3+r.byteLength(ce.toString());break}case"pair":{if(typeof ce!="object")return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=Object.getOwnPropertyNames(ce).reduce((re,fe)=>{let ve=ce[fe];return Array.isArray(ve)?re+=ve.reduce(($e,Ce)=>($e+=3+r.byteLength(fe.toString())+2+r.byteLength(Ce.toString()),$e),0):re+=3+r.byteLength(fe.toString())+2+r.byteLength(ce[fe].toString()),re},0);break}default:return Z.destroy(new Error(`Invalid property ${le}: ${ce}`)),!1}return me}if(X)for(let le in X){let ce=0,pe=0,me=X[le];if(Array.isArray(me))for(let re=0;rece;){let me=le.shift();if(me&&X[me])delete X[me],pe=V(Z,X);else return!1}return pe}function U(Z,X,ae){switch(n.propertiesTypes[X]){case"byte":{Z.write(r.from([n.properties[X]])),Z.write(r.from([+ae]));break}case"int8":{Z.write(r.from([n.properties[X]])),Z.write(r.from([ae]));break}case"binary":{Z.write(r.from([n.properties[X]])),L(Z,ae);break}case"int16":{Z.write(r.from([n.properties[X]])),m(Z,ae);break}case"int32":{Z.write(r.from([n.properties[X]])),K(Z,ae);break}case"var":{Z.write(r.from([n.properties[X]])),j(Z,ae);break}case"string":{Z.write(r.from([n.properties[X]])),I(Z,ae);break}case"pair":{Object.getOwnPropertyNames(ae).forEach(oe=>{let le=ae[oe];Array.isArray(le)?le.forEach(ce=>{Z.write(r.from([n.properties[X]])),A(Z,oe.toString(),ce.toString())}):(Z.write(r.from([n.properties[X]])),A(Z,oe.toString(),le.toString()))});break}default:return Z.destroy(new Error(`Invalid property ${X} value: ${ae}`)),!1}}function Y(Z,X,ae){j(Z,ae);for(let oe in X)if(Object.prototype.hasOwnProperty.call(X,oe)&&X[oe]!==null){let le=X[oe];if(Array.isArray(le))for(let ce=0;ce{Zt(),Jt(),Qt();var n=vce(),{EventEmitter:r}=(hy(),Si(Bg)),{Buffer:i}=(ko(),Si(_o));function a(s,l){let c=new o;return n(s,c,l),c.concat()}var o=class extends r{constructor(){super(),this._array=new Array(20),this._i=0}write(s){return this._array[this._i++]=s,!0}concat(){let s=0,l=new Array(this._array.length),c=this._array,u=0,f;for(f=0;f{Zt(),Jt(),Qt(),e.parser=Q$e().parser,e.generate=t7e(),e.writeToStream=vce()}),yce=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let n=this.nextId++;return this.nextId===65536&&(this.nextId=1),n}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(n){return!0}deallocate(n){}clear(){}};e.default=t}),r7e=un((e,t)=>{Zt(),Jt(),Qt(),t.exports=r;function n(a){return a instanceof Sk?Sk.from(a):new a.constructor(a.buffer.slice(),a.byteOffset,a.length)}function r(a){if(a=a||{},a.circles)return i(a);return a.proto?l:s;function o(c,u){for(var f=Object.keys(c),p=new Array(f.length),h=0;h{Zt(),Jt(),Qt(),t.exports=r7e()()}),a7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.validateTopics=e.validateTopic=void 0;function t(r){let i=r.split("/");for(let a=0;a{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=zg(),n={objectMode:!0},r={clean:!0},i=class{constructor(a){this.options=a||{},this.options=Object.assign(Object.assign({},r),a),this._inflights=new Map}put(a,o){return this._inflights.set(a.messageId,a),o&&o(),this}createStream(){let a=new t.Readable(n),o=[],s=!1,l=0;return this._inflights.forEach((c,u)=>{o.push(c)}),a._read=()=>{!s&&l{if(!s)return s=!0,setTimeout(()=>{a.emit("close")},0),a},a}del(a,o){let s=this._inflights.get(a.messageId);return s?(this._inflights.delete(a.messageId),o(null,s)):o&&o(new Error("missing packet")),this}get(a,o){let s=this._inflights.get(a.messageId);return s?o(null,s):o&&o(new Error("missing packet")),this}close(a){this.options.clean&&(this._inflights=null),a&&a()}};e.default=i}),o7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=[0,16,128,131,135,144,145,151,153],n=(r,i,a)=>{r.log("handlePublish: packet %o",i),a=typeof a<"u"?a:r.noop;let o=i.topic.toString(),s=i.payload,{qos:l}=i,{messageId:c}=i,{options:u}=r;if(r.options.protocolVersion===5){let f;if(i.properties&&(f=i.properties.topicAlias),typeof f<"u")if(o.length===0)if(f>0&&f<=65535){let p=r.topicAliasRecv.getTopicByAlias(f);if(p)o=p,r.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",o,f);else{r.log("handlePublish :: unregistered topic alias. alias: %d",f),r.emit("error",new Error("Received unregistered Topic Alias"));return}}else{r.log("handlePublish :: topic alias out of range. alias: %d",f),r.emit("error",new Error("Received Topic Alias is out of range"));return}else if(r.topicAliasRecv.put(o,f))r.log("handlePublish :: registered topic: %s - alias: %d",o,f);else{r.log("handlePublish :: topic alias out of range. alias: %d",f),r.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(r.log("handlePublish: qos %d",l),l){case 2:{u.customHandleAcks(o,s,i,(f,p)=>{if(typeof f=="number"&&(p=f,f=null),f)return r.emit("error",f);if(t.indexOf(p)===-1)return r.emit("error",new Error("Wrong reason code for pubrec"));p?r._sendPacket({cmd:"pubrec",messageId:c,reasonCode:p},a):r.incomingStore.put(i,()=>{r._sendPacket({cmd:"pubrec",messageId:c},a)})});break}case 1:{u.customHandleAcks(o,s,i,(f,p)=>{if(typeof f=="number"&&(p=f,f=null),f)return r.emit("error",f);if(t.indexOf(p)===-1)return r.emit("error",new Error("Wrong reason code for puback"));p||r.emit("message",o,s,i),r.handleMessage(i,h=>{if(h)return a&&a(h);r._sendPacket({cmd:"puback",messageId:c,reasonCode:p},a)})});break}case 0:r.emit("message",o,s,i),r.handleMessage(i,a);break;default:r.log("handlePublish: unknown QoS. Doing nothing.");break}};e.default=n}),s7e=un((e,t)=>{t.exports={version:"5.10.3"}}),my=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var t=class wce extends Error{constructor(i,a){super(i),this.code=a,Object.setPrototypeOf(this,wce.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=t;function n(r,i,a=!1){var o;let s=[i];for(;;){let l=s[0],c=Object.getPrototypeOf(l);if(c!=null&&c.prototype)s.unshift(c);else break}for(let l of s)for(let c of Object.getOwnPropertyNames(l.prototype))(a||c!=="constructor")&&Object.defineProperty(r.prototype,c,(o=Object.getOwnPropertyDescriptor(l.prototype,c))!==null&&o!==void 0?o:Object.create(null))}e.applyMixin=n,e.nextTick=typeof(li==null?void 0:li.nextTick)=="function"?li.nextTick:r=>{setTimeout(r,0)},e.MQTTJS_VERSION=s7e().version}),gE=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var t=my();e.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};var n=(r,i)=>{let{messageId:a}=i,o=i.cmd,s=null,l=r.outgoing[a]?r.outgoing[a].cb:null,c=null;if(!l){r.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(r.log("_handleAck :: packet type",o),o){case"pubcomp":case"puback":{let u=i.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(a,()=>{l(c,i)})):r._removeOutgoingAndStoreMessage(a,l);break}case"pubrec":{s={cmd:"pubrel",qos:2,messageId:a};let u=i.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(a,()=>{l(c,i)})):r._sendPacket(s);break}case"suback":{delete r.outgoing[a],r.messageIdProvider.deallocate(a);let u=i.granted;for(let f=0;f{delete r._resubscribeTopics[m]})}}delete r.messageIdToTopic[a],r._invokeStoreProcessingQueue(),l(c,i);break}case"unsuback":{delete r.outgoing[a],r.messageIdProvider.deallocate(a),r._invokeStoreProcessingQueue(),l(null,i);break}default:r.emit("error",new Error("unrecognized packet type"))}r.disconnecting&&Object.keys(r.outgoing).length===0&&r.emit("outgoingEmpty")};e.default=n}),l7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=my(),n=gE(),r=(i,a)=>{let{options:o}=i,s=o.protocolVersion,l=s===5?a.reasonCode:a.returnCode;if(s!==5){let c=new t.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${s}`,l);i.emit("error",c);return}i.handleAuth(a,(c,u)=>{if(c){i.emit("error",c);return}if(l===24)i.reconnecting=!1,i._sendPacket(u);else{let f=new t.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[l]}`,l);i.emit("error",f)}})};e.default=r}),c7e=un(e=>{var h,m,g,v,y,w,b,C,k,S,_,E,$,M,P,R,O,j,I,A,N,F,K,L,V,B,kI,Y,ee,ie,Z,xce,ae,oe,le,pp,hp,EI,FC,LC,zi,$I,y2,be;Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,n=new Set,r=typeof li=="object"&&li?li:{},i=(Se,we,se,ye)=>{typeof r.emitWarning=="function"?r.emitWarning(Se,we,se,ye):console.error(`[${se}] ${we}: ${Se}`)},a=globalThis.AbortController,o=globalThis.AbortSignal;if(typeof a>"u"){o=class{constructor(){Gr(this,"onabort");Gr(this,"_onabort",[]);Gr(this,"reason");Gr(this,"aborted",!1)}addEventListener(se,ye){this._onabort.push(ye)}},a=class{constructor(){Gr(this,"signal",new o);we()}abort(se){var ye,Oe;if(!this.signal.aborted){this.signal.reason=se,this.signal.aborted=!0;for(let z of this.signal._onabort)z(se);(Oe=(ye=this.signal).onabort)==null||Oe.call(ye,se)}}};let Se=((h=r.env)==null?void 0:h.LRU_CACHE_IGNORE_AC_WARNING)!=="1",we=()=>{Se&&(Se=!1,i("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",we))}}var s=Se=>!n.has(Se),l=Se=>Se&&Se===Math.floor(Se)&&Se>0&&isFinite(Se),c=Se=>l(Se)?Se<=Math.pow(2,8)?Uint8Array:Se<=Math.pow(2,16)?Uint16Array:Se<=Math.pow(2,32)?Uint32Array:Se<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(Se){super(Se),this.fill(0)}},f=(m=class{constructor(we,se){Gr(this,"heap");Gr(this,"length");if(!Fe(m,g))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new se(we),this.length=0}static create(we){let se=c(we);if(!se)return[];xn(m,g,!0);let ye=new m(we,se);return xn(m,g,!1),ye}push(we){this.heap[this.length++]=we}pop(){return this.heap[--this.length]}},g=new WeakMap,Un(m,g,!1),m),p=(be=class{constructor(we){Un(this,B);Un(this,v);Un(this,y);Un(this,w);Un(this,b);Un(this,C);Gr(this,"ttl");Gr(this,"ttlResolution");Gr(this,"ttlAutopurge");Gr(this,"updateAgeOnGet");Gr(this,"updateAgeOnHas");Gr(this,"allowStale");Gr(this,"noDisposeOnSet");Gr(this,"noUpdateTTL");Gr(this,"maxEntrySize");Gr(this,"sizeCalculation");Gr(this,"noDeleteOnFetchRejection");Gr(this,"noDeleteOnStaleGet");Gr(this,"allowStaleOnFetchAbort");Gr(this,"allowStaleOnFetchRejection");Gr(this,"ignoreFetchAbort");Un(this,k);Un(this,S);Un(this,_);Un(this,E);Un(this,$);Un(this,M);Un(this,P);Un(this,R);Un(this,O);Un(this,j);Un(this,I);Un(this,A);Un(this,N);Un(this,F);Un(this,K);Un(this,L);Un(this,V);Un(this,Y,()=>{});Un(this,ee,()=>{});Un(this,ie,()=>{});Un(this,Z,()=>!1);Un(this,ae,we=>{});Un(this,oe,(we,se,ye)=>{});Un(this,le,(we,se,ye,Oe)=>{if(ye||Oe)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:se=0,ttl:ye,ttlResolution:Oe=1,ttlAutopurge:z,updateAgeOnGet:H,updateAgeOnHas:G,allowStale:de,dispose:xe,disposeAfter:he,noDisposeOnSet:Ue,noUpdateTTL:We,maxSize:ge=0,maxEntrySize:ze=0,sizeCalculation:Ve,fetchMethod:Be,noDeleteOnFetchRejection:Xe,noDeleteOnStaleGet:Ke,allowStaleOnFetchRejection:qe,allowStaleOnFetchAbort:Et,ignoreFetchAbort:ut}=we;if(se!==0&&!l(se))throw new TypeError("max option must be a nonnegative integer");let gt=se?c(se):Array;if(!gt)throw new Error("invalid max value: "+se);if(xn(this,v,se),xn(this,y,ge),this.maxEntrySize=ze||Fe(this,y),this.sizeCalculation=Ve,this.sizeCalculation){if(!Fe(this,y)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Be!==void 0&&typeof Be!="function")throw new TypeError("fetchMethod must be a function if specified");if(xn(this,C,Be),xn(this,L,!!Be),xn(this,_,new Map),xn(this,E,new Array(se).fill(void 0)),xn(this,$,new Array(se).fill(void 0)),xn(this,M,new gt(se)),xn(this,P,new gt(se)),xn(this,R,0),xn(this,O,0),xn(this,j,f.create(se)),xn(this,k,0),xn(this,S,0),typeof xe=="function"&&xn(this,w,xe),typeof he=="function"?(xn(this,b,he),xn(this,I,[])):(xn(this,b,void 0),xn(this,I,void 0)),xn(this,K,!!Fe(this,w)),xn(this,V,!!Fe(this,b)),this.noDisposeOnSet=!!Ue,this.noUpdateTTL=!!We,this.noDeleteOnFetchRejection=!!Xe,this.allowStaleOnFetchRejection=!!qe,this.allowStaleOnFetchAbort=!!Et,this.ignoreFetchAbort=!!ut,this.maxEntrySize!==0){if(Fe(this,y)!==0&&!l(Fe(this,y)))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Dn(this,B,xce).call(this)}if(this.allowStale=!!de,this.noDeleteOnStaleGet=!!Ke,this.updateAgeOnGet=!!H,this.updateAgeOnHas=!!G,this.ttlResolution=l(Oe)||Oe===0?Oe:1,this.ttlAutopurge=!!z,this.ttl=ye||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Dn(this,B,kI).call(this)}if(Fe(this,v)===0&&this.ttl===0&&Fe(this,y)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!Fe(this,v)&&!Fe(this,y)){let Ze="LRU_CACHE_UNBOUNDED";s(Ze)&&(n.add(Ze),i("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Ze,be))}}static unsafeExposeInternals(we){return{starts:Fe(we,N),ttls:Fe(we,F),sizes:Fe(we,A),keyMap:Fe(we,_),keyList:Fe(we,E),valList:Fe(we,$),next:Fe(we,M),prev:Fe(we,P),get head(){return Fe(we,R)},get tail(){return Fe(we,O)},free:Fe(we,j),isBackgroundFetch:se=>{var ye;return Dn(ye=we,B,zi).call(ye,se)},backgroundFetch:(se,ye,Oe,z)=>{var H;return Dn(H=we,B,LC).call(H,se,ye,Oe,z)},moveToTail:se=>{var ye;return Dn(ye=we,B,y2).call(ye,se)},indexes:se=>{var ye;return Dn(ye=we,B,pp).call(ye,se)},rindexes:se=>{var ye;return Dn(ye=we,B,hp).call(ye,se)},isStale:se=>{var ye;return Fe(ye=we,Z).call(ye,se)}}}get max(){return Fe(this,v)}get maxSize(){return Fe(this,y)}get calculatedSize(){return Fe(this,S)}get size(){return Fe(this,k)}get fetchMethod(){return Fe(this,C)}get dispose(){return Fe(this,w)}get disposeAfter(){return Fe(this,b)}getRemainingTTL(we){return Fe(this,_).has(we)?1/0:0}*entries(){for(let we of Dn(this,B,pp).call(this))Fe(this,$)[we]!==void 0&&Fe(this,E)[we]!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield[Fe(this,E)[we],Fe(this,$)[we]])}*rentries(){for(let we of Dn(this,B,hp).call(this))Fe(this,$)[we]!==void 0&&Fe(this,E)[we]!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield[Fe(this,E)[we],Fe(this,$)[we]])}*keys(){for(let we of Dn(this,B,pp).call(this)){let se=Fe(this,E)[we];se!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield se)}}*rkeys(){for(let we of Dn(this,B,hp).call(this)){let se=Fe(this,E)[we];se!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield se)}}*values(){for(let we of Dn(this,B,pp).call(this))Fe(this,$)[we]!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield Fe(this,$)[we])}*rvalues(){for(let we of Dn(this,B,hp).call(this))Fe(this,$)[we]!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield Fe(this,$)[we])}[Symbol.iterator](){return this.entries()}find(we,se={}){for(let ye of Dn(this,B,pp).call(this)){let Oe=Fe(this,$)[ye],z=Dn(this,B,zi).call(this,Oe)?Oe.__staleWhileFetching:Oe;if(z!==void 0&&we(z,Fe(this,E)[ye],this))return this.get(Fe(this,E)[ye],se)}}forEach(we,se=this){for(let ye of Dn(this,B,pp).call(this)){let Oe=Fe(this,$)[ye],z=Dn(this,B,zi).call(this,Oe)?Oe.__staleWhileFetching:Oe;z!==void 0&&we.call(se,z,Fe(this,E)[ye],this)}}rforEach(we,se=this){for(let ye of Dn(this,B,hp).call(this)){let Oe=Fe(this,$)[ye],z=Dn(this,B,zi).call(this,Oe)?Oe.__staleWhileFetching:Oe;z!==void 0&&we.call(se,z,Fe(this,E)[ye],this)}}purgeStale(){let we=!1;for(let se of Dn(this,B,hp).call(this,{allowStale:!0}))Fe(this,Z).call(this,se)&&(this.delete(Fe(this,E)[se]),we=!0);return we}dump(){let we=[];for(let se of Dn(this,B,pp).call(this,{allowStale:!0})){let ye=Fe(this,E)[se],Oe=Fe(this,$)[se],z=Dn(this,B,zi).call(this,Oe)?Oe.__staleWhileFetching:Oe;if(z===void 0||ye===void 0)continue;let H={value:z};if(Fe(this,F)&&Fe(this,N)){H.ttl=Fe(this,F)[se];let G=t.now()-Fe(this,N)[se];H.start=Math.floor(Date.now()-G)}Fe(this,A)&&(H.size=Fe(this,A)[se]),we.unshift([ye,H])}return we}load(we){this.clear();for(let[se,ye]of we){if(ye.start){let Oe=Date.now()-ye.start;ye.start=t.now()-Oe}this.set(se,ye.value,ye)}}set(we,se,ye={}){var We,ge,ze,Ve,Be;if(se===void 0)return this.delete(we),this;let{ttl:Oe=this.ttl,start:z,noDisposeOnSet:H=this.noDisposeOnSet,sizeCalculation:G=this.sizeCalculation,status:de}=ye,{noUpdateTTL:xe=this.noUpdateTTL}=ye,he=Fe(this,le).call(this,we,se,ye.size||0,G);if(this.maxEntrySize&&he>this.maxEntrySize)return de&&(de.set="miss",de.maxEntrySizeExceeded=!0),this.delete(we),this;let Ue=Fe(this,k)===0?void 0:Fe(this,_).get(we);if(Ue===void 0)Ue=Fe(this,k)===0?Fe(this,O):Fe(this,j).length!==0?Fe(this,j).pop():Fe(this,k)===Fe(this,v)?Dn(this,B,FC).call(this,!1):Fe(this,k),Fe(this,E)[Ue]=we,Fe(this,$)[Ue]=se,Fe(this,_).set(we,Ue),Fe(this,M)[Fe(this,O)]=Ue,Fe(this,P)[Ue]=Fe(this,O),xn(this,O,Ue),Bh(this,k)._++,Fe(this,oe).call(this,Ue,he,de),de&&(de.set="add"),xe=!1;else{Dn(this,B,y2).call(this,Ue);let Xe=Fe(this,$)[Ue];if(se!==Xe){if(Fe(this,L)&&Dn(this,B,zi).call(this,Xe)){Xe.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Ke}=Xe;Ke!==void 0&&!H&&(Fe(this,K)&&((We=Fe(this,w))==null||We.call(this,Ke,we,"set")),Fe(this,V)&&((ge=Fe(this,I))==null||ge.push([Ke,we,"set"])))}else H||(Fe(this,K)&&((ze=Fe(this,w))==null||ze.call(this,Xe,we,"set")),Fe(this,V)&&((Ve=Fe(this,I))==null||Ve.push([Xe,we,"set"])));if(Fe(this,ae).call(this,Ue),Fe(this,oe).call(this,Ue,he,de),Fe(this,$)[Ue]=se,de){de.set="replace";let Ke=Xe&&Dn(this,B,zi).call(this,Xe)?Xe.__staleWhileFetching:Xe;Ke!==void 0&&(de.oldValue=Ke)}}else de&&(de.set="update")}if(Oe!==0&&!Fe(this,F)&&Dn(this,B,kI).call(this),Fe(this,F)&&(xe||Fe(this,ie).call(this,Ue,Oe,z),de&&Fe(this,ee).call(this,de,Ue)),!H&&Fe(this,V)&&Fe(this,I)){let Xe=Fe(this,I),Ke;for(;Ke=Xe==null?void 0:Xe.shift();)(Be=Fe(this,b))==null||Be.call(this,...Ke)}return this}pop(){var we;try{for(;Fe(this,k);){let se=Fe(this,$)[Fe(this,R)];if(Dn(this,B,FC).call(this,!0),Dn(this,B,zi).call(this,se)){if(se.__staleWhileFetching)return se.__staleWhileFetching}else if(se!==void 0)return se}}finally{if(Fe(this,V)&&Fe(this,I)){let se=Fe(this,I),ye;for(;ye=se==null?void 0:se.shift();)(we=Fe(this,b))==null||we.call(this,...ye)}}}has(we,se={}){let{updateAgeOnHas:ye=this.updateAgeOnHas,status:Oe}=se,z=Fe(this,_).get(we);if(z!==void 0){let H=Fe(this,$)[z];if(Dn(this,B,zi).call(this,H)&&H.__staleWhileFetching===void 0)return!1;if(Fe(this,Z).call(this,z))Oe&&(Oe.has="stale",Fe(this,ee).call(this,Oe,z));else return ye&&Fe(this,Y).call(this,z),Oe&&(Oe.has="hit",Fe(this,ee).call(this,Oe,z)),!0}else Oe&&(Oe.has="miss");return!1}peek(we,se={}){let{allowStale:ye=this.allowStale}=se,Oe=Fe(this,_).get(we);if(Oe!==void 0&&(ye||!Fe(this,Z).call(this,Oe))){let z=Fe(this,$)[Oe];return Dn(this,B,zi).call(this,z)?z.__staleWhileFetching:z}}async fetch(we,se={}){let{allowStale:ye=this.allowStale,updateAgeOnGet:Oe=this.updateAgeOnGet,noDeleteOnStaleGet:z=this.noDeleteOnStaleGet,ttl:H=this.ttl,noDisposeOnSet:G=this.noDisposeOnSet,size:de=0,sizeCalculation:xe=this.sizeCalculation,noUpdateTTL:he=this.noUpdateTTL,noDeleteOnFetchRejection:Ue=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:We=this.allowStaleOnFetchRejection,ignoreFetchAbort:ge=this.ignoreFetchAbort,allowStaleOnFetchAbort:ze=this.allowStaleOnFetchAbort,context:Ve,forceRefresh:Be=!1,status:Xe,signal:Ke}=se;if(!Fe(this,L))return Xe&&(Xe.fetch="get"),this.get(we,{allowStale:ye,updateAgeOnGet:Oe,noDeleteOnStaleGet:z,status:Xe});let qe={allowStale:ye,updateAgeOnGet:Oe,noDeleteOnStaleGet:z,ttl:H,noDisposeOnSet:G,size:de,sizeCalculation:xe,noUpdateTTL:he,noDeleteOnFetchRejection:Ue,allowStaleOnFetchRejection:We,allowStaleOnFetchAbort:ze,ignoreFetchAbort:ge,status:Xe,signal:Ke},Et=Fe(this,_).get(we);if(Et===void 0){Xe&&(Xe.fetch="miss");let ut=Dn(this,B,LC).call(this,we,Et,qe,Ve);return ut.__returned=ut}else{let ut=Fe(this,$)[Et];if(Dn(this,B,zi).call(this,ut)){let jt=ye&&ut.__staleWhileFetching!==void 0;return Xe&&(Xe.fetch="inflight",jt&&(Xe.returnedStale=!0)),jt?ut.__staleWhileFetching:ut.__returned=ut}let gt=Fe(this,Z).call(this,Et);if(!Be&&!gt)return Xe&&(Xe.fetch="hit"),Dn(this,B,y2).call(this,Et),Oe&&Fe(this,Y).call(this,Et),Xe&&Fe(this,ee).call(this,Xe,Et),ut;let Ze=Dn(this,B,LC).call(this,we,Et,qe,Ve),nt=Ze.__staleWhileFetching!==void 0&&ye;return Xe&&(Xe.fetch=gt?"stale":"refresh",nt&>&&(Xe.returnedStale=!0)),nt?Ze.__staleWhileFetching:Ze.__returned=Ze}}get(we,se={}){let{allowStale:ye=this.allowStale,updateAgeOnGet:Oe=this.updateAgeOnGet,noDeleteOnStaleGet:z=this.noDeleteOnStaleGet,status:H}=se,G=Fe(this,_).get(we);if(G!==void 0){let de=Fe(this,$)[G],xe=Dn(this,B,zi).call(this,de);return H&&Fe(this,ee).call(this,H,G),Fe(this,Z).call(this,G)?(H&&(H.get="stale"),xe?(H&&ye&&de.__staleWhileFetching!==void 0&&(H.returnedStale=!0),ye?de.__staleWhileFetching:void 0):(z||this.delete(we),H&&ye&&(H.returnedStale=!0),ye?de:void 0)):(H&&(H.get="hit"),xe?de.__staleWhileFetching:(Dn(this,B,y2).call(this,G),Oe&&Fe(this,Y).call(this,G),de))}else H&&(H.get="miss")}delete(we){var ye,Oe,z,H;let se=!1;if(Fe(this,k)!==0){let G=Fe(this,_).get(we);if(G!==void 0)if(se=!0,Fe(this,k)===1)this.clear();else{Fe(this,ae).call(this,G);let de=Fe(this,$)[G];Dn(this,B,zi).call(this,de)?de.__abortController.abort(new Error("deleted")):(Fe(this,K)||Fe(this,V))&&(Fe(this,K)&&((ye=Fe(this,w))==null||ye.call(this,de,we,"delete")),Fe(this,V)&&((Oe=Fe(this,I))==null||Oe.push([de,we,"delete"]))),Fe(this,_).delete(we),Fe(this,E)[G]=void 0,Fe(this,$)[G]=void 0,G===Fe(this,O)?xn(this,O,Fe(this,P)[G]):G===Fe(this,R)?xn(this,R,Fe(this,M)[G]):(Fe(this,M)[Fe(this,P)[G]]=Fe(this,M)[G],Fe(this,P)[Fe(this,M)[G]]=Fe(this,P)[G]),Bh(this,k)._--,Fe(this,j).push(G)}}if(Fe(this,V)&&((z=Fe(this,I))!=null&&z.length)){let G=Fe(this,I),de;for(;de=G==null?void 0:G.shift();)(H=Fe(this,b))==null||H.call(this,...de)}return se}clear(){var we,se,ye;for(let Oe of Dn(this,B,hp).call(this,{allowStale:!0})){let z=Fe(this,$)[Oe];if(Dn(this,B,zi).call(this,z))z.__abortController.abort(new Error("deleted"));else{let H=Fe(this,E)[Oe];Fe(this,K)&&((we=Fe(this,w))==null||we.call(this,z,H,"delete")),Fe(this,V)&&((se=Fe(this,I))==null||se.push([z,H,"delete"]))}}if(Fe(this,_).clear(),Fe(this,$).fill(void 0),Fe(this,E).fill(void 0),Fe(this,F)&&Fe(this,N)&&(Fe(this,F).fill(0),Fe(this,N).fill(0)),Fe(this,A)&&Fe(this,A).fill(0),xn(this,R,0),xn(this,O,0),Fe(this,j).length=0,xn(this,S,0),xn(this,k,0),Fe(this,V)&&Fe(this,I)){let Oe=Fe(this,I),z;for(;z=Oe==null?void 0:Oe.shift();)(ye=Fe(this,b))==null||ye.call(this,...z)}}},v=new WeakMap,y=new WeakMap,w=new WeakMap,b=new WeakMap,C=new WeakMap,k=new WeakMap,S=new WeakMap,_=new WeakMap,E=new WeakMap,$=new WeakMap,M=new WeakMap,P=new WeakMap,R=new WeakMap,O=new WeakMap,j=new WeakMap,I=new WeakMap,A=new WeakMap,N=new WeakMap,F=new WeakMap,K=new WeakMap,L=new WeakMap,V=new WeakMap,B=new WeakSet,kI=function(){let we=new u(Fe(this,v)),se=new u(Fe(this,v));xn(this,F,we),xn(this,N,se),xn(this,ie,(z,H,G=t.now())=>{if(se[z]=H!==0?G:0,we[z]=H,H!==0&&this.ttlAutopurge){let de=setTimeout(()=>{Fe(this,Z).call(this,z)&&this.delete(Fe(this,E)[z])},H+1);de.unref&&de.unref()}}),xn(this,Y,z=>{se[z]=we[z]!==0?t.now():0}),xn(this,ee,(z,H)=>{if(we[H]){let G=we[H],de=se[H];z.ttl=G,z.start=de,z.now=ye||Oe();let xe=z.now-de;z.remainingTTL=G-xe}});let ye=0,Oe=()=>{let z=t.now();if(this.ttlResolution>0){ye=z;let H=setTimeout(()=>ye=0,this.ttlResolution);H.unref&&H.unref()}return z};this.getRemainingTTL=z=>{let H=Fe(this,_).get(z);if(H===void 0)return 0;let G=we[H],de=se[H];if(G===0||de===0)return 1/0;let xe=(ye||Oe())-de;return G-xe},xn(this,Z,z=>we[z]!==0&&se[z]!==0&&(ye||Oe())-se[z]>we[z])},Y=new WeakMap,ee=new WeakMap,ie=new WeakMap,Z=new WeakMap,xce=function(){let we=new u(Fe(this,v));xn(this,S,0),xn(this,A,we),xn(this,ae,se=>{xn(this,S,Fe(this,S)-we[se]),we[se]=0}),xn(this,le,(se,ye,Oe,z)=>{if(Dn(this,B,zi).call(this,ye))return 0;if(!l(Oe))if(z){if(typeof z!="function")throw new TypeError("sizeCalculation must be a function");if(Oe=z(ye,se),!l(Oe))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return Oe}),xn(this,oe,(se,ye,Oe)=>{if(we[se]=ye,Fe(this,y)){let z=Fe(this,y)-we[se];for(;Fe(this,S)>z;)Dn(this,B,FC).call(this,!0)}xn(this,S,Fe(this,S)+we[se]),Oe&&(Oe.entrySize=ye,Oe.totalCalculatedSize=Fe(this,S))})},ae=new WeakMap,oe=new WeakMap,le=new WeakMap,pp=function*({allowStale:we=this.allowStale}={}){if(Fe(this,k))for(let se=Fe(this,O);!(!Dn(this,B,EI).call(this,se)||((we||!Fe(this,Z).call(this,se))&&(yield se),se===Fe(this,R)));)se=Fe(this,P)[se]},hp=function*({allowStale:we=this.allowStale}={}){if(Fe(this,k))for(let se=Fe(this,R);!(!Dn(this,B,EI).call(this,se)||((we||!Fe(this,Z).call(this,se))&&(yield se),se===Fe(this,O)));)se=Fe(this,M)[se]},EI=function(we){return we!==void 0&&Fe(this,_).get(Fe(this,E)[we])===we},FC=function(we){var z,H;let se=Fe(this,R),ye=Fe(this,E)[se],Oe=Fe(this,$)[se];return Fe(this,L)&&Dn(this,B,zi).call(this,Oe)?Oe.__abortController.abort(new Error("evicted")):(Fe(this,K)||Fe(this,V))&&(Fe(this,K)&&((z=Fe(this,w))==null||z.call(this,Oe,ye,"evict")),Fe(this,V)&&((H=Fe(this,I))==null||H.push([Oe,ye,"evict"]))),Fe(this,ae).call(this,se),we&&(Fe(this,E)[se]=void 0,Fe(this,$)[se]=void 0,Fe(this,j).push(se)),Fe(this,k)===1?(xn(this,R,xn(this,O,0)),Fe(this,j).length=0):xn(this,R,Fe(this,M)[se]),Fe(this,_).delete(ye),Bh(this,k)._--,se},LC=function(we,se,ye,Oe){let z=se===void 0?void 0:Fe(this,$)[se];if(Dn(this,B,zi).call(this,z))return z;let H=new a,{signal:G}=ye;G==null||G.addEventListener("abort",()=>H.abort(G.reason),{signal:H.signal});let de={signal:H.signal,options:ye,context:Oe},xe=(Ve,Be=!1)=>{let{aborted:Xe}=H.signal,Ke=ye.ignoreFetchAbort&&Ve!==void 0;if(ye.status&&(Xe&&!Be?(ye.status.fetchAborted=!0,ye.status.fetchError=H.signal.reason,Ke&&(ye.status.fetchAbortIgnored=!0)):ye.status.fetchResolved=!0),Xe&&!Ke&&!Be)return Ue(H.signal.reason);let qe=ge;return Fe(this,$)[se]===ge&&(Ve===void 0?qe.__staleWhileFetching?Fe(this,$)[se]=qe.__staleWhileFetching:this.delete(we):(ye.status&&(ye.status.fetchUpdated=!0),this.set(we,Ve,de.options))),Ve},he=Ve=>(ye.status&&(ye.status.fetchRejected=!0,ye.status.fetchError=Ve),Ue(Ve)),Ue=Ve=>{let{aborted:Be}=H.signal,Xe=Be&&ye.allowStaleOnFetchAbort,Ke=Xe||ye.allowStaleOnFetchRejection,qe=Ke||ye.noDeleteOnFetchRejection,Et=ge;if(Fe(this,$)[se]===ge&&(!qe||Et.__staleWhileFetching===void 0?this.delete(we):Xe||(Fe(this,$)[se]=Et.__staleWhileFetching)),Ke)return ye.status&&Et.__staleWhileFetching!==void 0&&(ye.status.returnedStale=!0),Et.__staleWhileFetching;if(Et.__returned===Et)throw Ve},We=(Ve,Be)=>{var Ke;let Xe=(Ke=Fe(this,C))==null?void 0:Ke.call(this,we,z,de);Xe&&Xe instanceof Promise&&Xe.then(qe=>Ve(qe===void 0?void 0:qe),Be),H.signal.addEventListener("abort",()=>{(!ye.ignoreFetchAbort||ye.allowStaleOnFetchAbort)&&(Ve(void 0),ye.allowStaleOnFetchAbort&&(Ve=qe=>xe(qe,!0)))})};ye.status&&(ye.status.fetchDispatched=!0);let ge=new Promise(We).then(xe,he),ze=Object.assign(ge,{__abortController:H,__staleWhileFetching:z,__returned:void 0});return se===void 0?(this.set(we,ze,{...de.options,status:void 0}),se=Fe(this,_).get(we)):Fe(this,$)[se]=ze,ze},zi=function(we){if(!Fe(this,L))return!1;let se=we;return!!se&&se instanceof Promise&&se.hasOwnProperty("__staleWhileFetching")&&se.__abortController instanceof a},$I=function(we,se){Fe(this,P)[se]=we,Fe(this,M)[we]=se},y2=function(we){we!==Fe(this,O)&&(we===Fe(this,R)?xn(this,R,Fe(this,M)[we]):Dn(this,B,$I).call(this,Fe(this,P)[we],Fe(this,M)[we]),Dn(this,B,$I).call(this,Fe(this,O),we),xn(this,O,we))},be);e.LRUCache=p}),zf=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.ContainerIterator=e.Container=e.Base=void 0;var t=class{constructor(i=0){this.iteratorType=i}equals(i){return this.o===i.o}};e.ContainerIterator=t;var n=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};e.Base=n;var r=class extends n{};e.Container=r}),u7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=class extends t.Base{constructor(i=[]){super(),this.S=[];let a=this;i.forEach(function(o){a.push(o)})}clear(){this.i=0,this.S=[]}push(i){return this.S.push(i),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},r=n;e.default=r}),d7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=class extends t.Base{constructor(i=[]){super(),this.j=0,this.q=[];let a=this;i.forEach(function(o){a.push(o)})}clear(){this.q=[],this.i=this.j=0}push(i){let a=this.q.length;if(this.j/a>.5&&this.j+this.i>=a&&a>4096){let o=this.i;for(let s=0;s{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=class extends t.Base{constructor(i=[],a=function(s,l){return s>l?-1:s>1;for(let l=this.i-1>>1;l>=0;--l)this.k(l,s)}m(i){let a=this.C[i];for(;i>0;){let o=i-1>>1,s=this.C[o];if(this.v(s,a)<=0)break;this.C[i]=s,i=o}this.C[i]=a}k(i,a){let o=this.C[i];for(;i0&&(s=l,c=this.C[l]),this.v(c,o)>=0)break;this.C[i]=c,i=s}this.C[i]=o}clear(){this.i=0,this.C.length=0}push(i){this.C.push(i),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let i=this.C[0],a=this.C.pop();return this.i-=1,this.i&&(this.C[0]=a,this.k(0,this.i>>1)),i}top(){return this.C[0]}find(i){return this.C.indexOf(i)>=0}remove(i){let a=this.C.indexOf(i);return a<0?!1:(a===0?this.pop():a===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(a,1,this.C.pop()),this.i-=1,this.m(a),this.k(a,this.i>>1)),!0)}updateItem(i){let a=this.C.indexOf(i);return a<0?!1:(this.m(a),this.k(a,this.i>>1),!0)}toArray(){return[...this.C]}},r=n;e.default=r}),VF=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=class extends t.Container{},r=n;e.default=r}),Hf=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=t;function t(){throw new RangeError("Iterator access denied!")}}),Sce=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var t=zf(),n=Hf(),r=class extends t.ContainerIterator{constructor(i,a){super(a),this.o=i,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,n.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,n.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,n.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,n.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(i){this.container.setElementByPos(this.o,i)}};e.RandomIterator=r}),p7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(VF()),n=Sce();function r(s){return s&&s.t?s:{default:s}}var i=class Cce extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new Cce(this.o,this.container,this.iteratorType)}},a=class extends t.default{constructor(s=[],l=!0){if(super(),Array.isArray(s))this.J=l?[...s]:s,this.i=s.length;else{this.J=[];let c=this;s.forEach(function(u){c.pushBack(u)})}}clear(){this.i=0,this.J.length=0}begin(){return new i(0,this)}end(){return new i(this.i,this)}rBegin(){return new i(this.i-1,this,1)}rEnd(){return new i(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J[s]}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J.splice(s,1),this.i-=1,this.i}eraseElementByValue(s){let l=0;for(let c=0;cthis.i-1)throw new RangeError;this.J[s]=l}insert(s,l,c=1){if(s<0||s>this.i)throw new RangeError;return this.J.splice(s,0,...new Array(c).fill(l)),this.i+=c,this.i}find(s){for(let l=0;l{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(VF()),n=zf(),r=Hf();function i(l){return l&&l.t?l:{default:l}}var a=class _ce extends n.ContainerIterator{constructor(c,u,f,p){super(p),this.o=c,this.h=u,this.container=f,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.l}set pointer(c){this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.l=c}copy(){return new _ce(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.default{constructor(l=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let c=this;l.forEach(function(u){c.pushBack(u)})}V(l){let{L:c,B:u}=l;c.B=u,u.L=c,l===this.p&&(this.p=u),l===this._&&(this._=c),this.i-=1}G(l,c){let u=c.B,f={l,L:c,B:u};c.B=f,u.L=f,c===this.h&&(this.p=f),u===this.h&&(this._=f),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new a(this.p,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this._,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return c.l}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return this.V(c),this.i}eraseElementByValue(l){let c=this.p;for(;c!==this.h;)c.l===l&&this.V(c),c=c.B;return this.i}eraseElementByIterator(l){let c=l.o;return c===this.h&&(0,r.throwIteratorAccessError)(),l=l.next(),this.V(c),l}pushBack(l){return this.G(l,this._),this.i}popBack(){if(this.i===0)return;let l=this._.l;return this.V(this._),l}pushFront(l){return this.G(l,this.h),this.i}popFront(){if(this.i===0)return;let l=this.p.l;return this.V(this.p),l}setElementByPos(l,c){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;u.l=c}insert(l,c,u=1){if(l<0||l>this.i)throw new RangeError;if(u<=0)return this.i;if(l===0)for(;u--;)this.pushFront(c);else if(l===this.i)for(;u--;)this.pushBack(c);else{let f=this.p;for(let h=1;h{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(VF()),n=Sce();function r(s){return s&&s.t?s:{default:s}}var i=class kce extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new kce(this.o,this.container,this.iteratorType)}},a=class extends t.default{constructor(s=[],l=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let c=(()=>{if(typeof s.length=="number")return s.length;if(typeof s.size=="number")return s.size;if(typeof s.size=="function")return s.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=l,this.P=Math.max(Math.ceil(c/this.F),1);for(let p=0;p>1)-(u>>1),this.D=this.N=this.F-c%this.F>>1;let f=this;s.forEach(function(p){f.pushBack(p)})}T(){let s=[],l=Math.max(this.P>>1,1);for(let c=0;c>1}begin(){return new i(0,this)}end(){return new i(this.i,this)}rBegin(){return new i(this.i-1,this,1)}rEnd(){return new i(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(s){return this.i&&(this.N0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,s}pushFront(s){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=s,this.i}popFront(){if(this.i===0)return;let s=this.A[this.j][this.D];return this.i!==1&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:l,curNodePointerIndex:c}=this.O(s);return this.A[l][c]}setElementByPos(s,l){if(s<0||s>this.i-1)throw new RangeError;let{curNodeBucketIndex:c,curNodePointerIndex:u}=this.O(s);this.A[c][u]=l}insert(s,l,c=1){if(s<0||s>this.i)throw new RangeError;if(s===0)for(;c--;)this.pushFront(l);else if(s===this.i)for(;c--;)this.pushBack(l);else{let u=[];for(let f=s;fthis.i-1)throw new RangeError;if(s===0)this.popFront();else if(s===this.i-1)this.popBack();else{let l=[];for(let u=s+1;us;)this.popBack();return this.i}sort(s){let l=[];for(let c=0;c{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.TreeNodeEnableIndex=e.TreeNode=void 0;var t=class{constructor(r,i){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=r,this.l=i}L(){let r=this;if(r.ee===1&&r.tt.tt===r)r=r.W;else if(r.U)for(r=r.U;r.W;)r=r.W;else{let i=r.tt;for(;i.U===r;)r=i,i=r.tt;r=i}return r}B(){let r=this;if(r.W){for(r=r.W;r.U;)r=r.U;return r}else{let i=r.tt;for(;i.W===r;)r=i,i=r.tt;return r.W!==i?i:r}}te(){let r=this.tt,i=this.W,a=i.U;return r.tt===this?r.tt=i:r.U===this?r.U=i:r.W=i,i.tt=r,i.U=this,this.tt=i,this.W=a,a&&(a.tt=this),i}se(){let r=this.tt,i=this.U,a=i.W;return r.tt===this?r.tt=i:r.U===this?r.U=i:r.W=i,i.tt=r,i.W=this,this.tt=i,this.U=a,a&&(a.tt=this),i}};e.TreeNode=t;var n=class extends t{constructor(){super(...arguments),this.rt=1}te(){let r=super.te();return this.ie(),r.ie(),r}se(){let r=super.se();return this.ie(),r.ie(),r}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};e.TreeNodeEnableIndex=n}),Ece=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=g7e(),n=zf(),r=Hf(),i=class extends n.Container{constructor(o=function(l,c){return lc?1:0},s=!1){super(),this.Y=void 0,this.v=o,s?(this.re=t.TreeNodeEnableIndex,this.M=function(l,c,u){let f=this.ne(l,c,u);if(f){let p=f.tt;for(;p!==this.h;)p.rt+=1,p=p.tt;let h=this.he(f);if(h){let{parentNode:m,grandParent:g,curNode:v}=h;m.ie(),g.ie(),v.ie()}}return this.i},this.V=function(l){let c=this.fe(l);for(;c!==this.h;)c.rt-=1,c=c.tt}):(this.re=t.TreeNode,this.M=function(l,c,u){let f=this.ne(l,c,u);return f&&this.he(f),this.i},this.V=this.fe),this.h=new this.re}X(o,s){let l=this.h;for(;o;){let c=this.v(o.u,s);if(c<0)o=o.W;else if(c>0)l=o,o=o.U;else return o}return l}Z(o,s){let l=this.h;for(;o;)this.v(o.u,s)<=0?o=o.W:(l=o,o=o.U);return l}$(o,s){let l=this.h;for(;o;){let c=this.v(o.u,s);if(c<0)l=o,o=o.W;else if(c>0)o=o.U;else return o}return l}rr(o,s){let l=this.h;for(;o;)this.v(o.u,s)<0?(l=o,o=o.W):o=o.U;return l}ue(o){for(;;){let s=o.tt;if(s===this.h)return;if(o.ee===1){o.ee=0;return}if(o===s.U){let l=s.W;if(l.ee===1)l.ee=0,s.ee=1,s===this.Y?this.Y=s.te():s.te();else if(l.W&&l.W.ee===1){l.ee=s.ee,s.ee=0,l.W.ee=0,s===this.Y?this.Y=s.te():s.te();return}else l.U&&l.U.ee===1?(l.ee=1,l.U.ee=0,l.se()):(l.ee=1,o=s)}else{let l=s.U;if(l.ee===1)l.ee=0,s.ee=1,s===this.Y?this.Y=s.se():s.se();else if(l.U&&l.U.ee===1){l.ee=s.ee,s.ee=0,l.U.ee=0,s===this.Y?this.Y=s.se():s.se();return}else l.W&&l.W.ee===1?(l.ee=1,l.W.ee=0,l.te()):(l.ee=1,o=s)}}}fe(o){if(this.i===1)return this.clear(),this.h;let s=o;for(;s.U||s.W;){if(s.W)for(s=s.W;s.U;)s=s.U;else s=s.U;[o.u,s.u]=[s.u,o.u],[o.l,s.l]=[s.l,o.l],o=s}this.h.U===s?this.h.U=s.tt:this.h.W===s&&(this.h.W=s.tt),this.ue(s);let l=s.tt;return s===l.U?l.U=void 0:l.W=void 0,this.i-=1,this.Y.ee=0,l}oe(o,s){return o===void 0?!1:this.oe(o.U,s)||s(o)?!0:this.oe(o.W,s)}he(o){for(;;){let s=o.tt;if(s.ee===0)return;let l=s.tt;if(s===l.U){let c=l.W;if(c&&c.ee===1){if(c.ee=s.ee=0,l===this.Y)return;l.ee=1,o=l;continue}else if(o===s.W){if(o.ee=0,o.U&&(o.U.tt=s),o.W&&(o.W.tt=l),s.W=o.U,l.U=o.W,o.U=s,o.W=l,l===this.Y)this.Y=o,this.h.tt=o;else{let u=l.tt;u.U===l?u.U=o:u.W=o}return o.tt=l.tt,s.tt=o,l.tt=o,l.ee=1,{parentNode:s,grandParent:l,curNode:o}}else s.ee=0,l===this.Y?this.Y=l.se():l.se(),l.ee=1}else{let c=l.U;if(c&&c.ee===1){if(c.ee=s.ee=0,l===this.Y)return;l.ee=1,o=l;continue}else if(o===s.U){if(o.ee=0,o.U&&(o.U.tt=l),o.W&&(o.W.tt=s),l.W=o.U,s.U=o.W,o.U=l,o.W=s,l===this.Y)this.Y=o,this.h.tt=o;else{let u=l.tt;u.U===l?u.U=o:u.W=o}return o.tt=l.tt,s.tt=o,l.tt=o,l.ee=1,{parentNode:s,grandParent:l,curNode:o}}else s.ee=0,l===this.Y?this.Y=l.te():l.te(),l.ee=1}return}}ne(o,s,l){if(this.Y===void 0){this.i+=1,this.Y=new this.re(o,s),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let c,u=this.h.U,f=this.v(u.u,o);if(f===0){u.l=s;return}else if(f>0)u.U=new this.re(o,s),u.U.tt=u,c=u.U,this.h.U=c;else{let p=this.h.W,h=this.v(p.u,o);if(h===0){p.l=s;return}else if(h<0)p.W=new this.re(o,s),p.W.tt=p,c=p.W,this.h.W=c;else{if(l!==void 0){let m=l.o;if(m!==this.h){let g=this.v(m.u,o);if(g===0){m.l=s;return}else if(g>0){let v=m.L(),y=this.v(v.u,o);if(y===0){v.l=s;return}else y<0&&(c=new this.re(o,s),v.W===void 0?(v.W=c,c.tt=v):(m.U=c,c.tt=m))}}}if(c===void 0)for(c=this.Y;;){let m=this.v(c.u,o);if(m>0){if(c.U===void 0){c.U=new this.re(o,s),c.U.tt=c,c=c.U;break}c=c.U}else if(m<0){if(c.W===void 0){c.W=new this.re(o,s),c.W.tt=c,c=c.W;break}c=c.W}else{c.l=s;return}}}}return this.i+=1,c}I(o,s){for(;o;){let l=this.v(o.u,s);if(l<0)o=o.W;else if(l>0)o=o.U;else return o}return o||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(o,s){let l=o.o;if(l===this.h&&(0,r.throwIteratorAccessError)(),this.i===1)return l.u=s,!0;if(l===this.h.U)return this.v(l.B().u,s)>0?(l.u=s,!0):!1;if(l===this.h.W)return this.v(l.L().u,s)<0?(l.u=s,!0):!1;let c=l.L().u;if(this.v(c,s)>=0)return!1;let u=l.B().u;return this.v(u,s)<=0?!1:(l.u=s,!0)}eraseElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let s=0,l=this;return this.oe(this.Y,function(c){return o===s?(l.V(c),!0):(s+=1,!1)}),this.i}eraseElementByKey(o){if(this.i===0)return!1;let s=this.I(this.Y,o);return s===this.h?!1:(this.V(s),!0)}eraseElementByIterator(o){let s=o.o;s===this.h&&(0,r.throwIteratorAccessError)();let l=s.W===void 0;return o.iteratorType===0?l&&o.next():(!l||s.U===void 0)&&o.next(),this.V(s),o}forEach(o){let s=0;for(let l of this)o(l,s++,this)}getElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let s,l=0;for(let c of this){if(l===o){s=c;break}l+=1}return s}getHeight(){if(this.i===0)return 0;let o=function(s){return s?Math.max(o(s.U),o(s.W))+1:0};return o(this.Y)}},a=i;e.default=a}),$ce=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=Hf(),r=class extends t.ContainerIterator{constructor(a,o,s){super(s),this.o=a,this.h=o,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let a=this.o,o=this.h.tt;if(a===this.h)return o?o.rt-1:0;let s=0;for(a.U&&(s+=a.U.rt);a!==o;){let l=a.tt;a===l.W&&(s+=1,l.U&&(s+=l.U.rt)),a=l}return s}},i=r;e.default=i}),v7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(Ece()),n=i($ce()),r=Hf();function i(l){return l&&l.t?l:{default:l}}var a=class Mce extends n.default{constructor(c,u,f,p){super(c,u,p),this.container=f}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new Mce(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.default{constructor(l=[],c,u){super(c,u);let f=this;l.forEach(function(p){f.insert(p)})}*K(l){l!==void 0&&(yield*this.K(l.U),yield l.u,yield*this.K(l.W))}begin(){return new a(this.h.U||this.h,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this.h.W||this.h,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(l,c){return this.M(l,void 0,c)}find(l){let c=this.I(this.Y,l);return new a(c,this.h,this)}lowerBound(l){let c=this.X(this.Y,l);return new a(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new a(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new a(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new a(c,this.h,this)}union(l){let c=this;return l.forEach(function(u){c.insert(u)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=o;e.default=s}),y7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(Ece()),n=i($ce()),r=Hf();function i(l){return l&&l.t?l:{default:l}}var a=class Tce extends n.default{constructor(c,u,f,p){super(c,u,p),this.container=f}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,f){if(f==="0")return c.o.u;if(f==="1")return c.o.l},set(u,f,p){if(f!=="1")throw new TypeError("props must be 1");return c.o.l=p,!0}})}copy(){return new Tce(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.default{constructor(l=[],c,u){super(c,u);let f=this;l.forEach(function(p){f.setElement(p[0],p[1])})}*K(l){l!==void 0&&(yield*this.K(l.U),yield[l.u,l.l],yield*this.K(l.W))}begin(){return new a(this.h.U||this.h,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this.h.W||this.h,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){if(this.i===0)return;let l=this.h.U;return[l.u,l.l]}back(){if(this.i===0)return;let l=this.h.W;return[l.u,l.l]}lowerBound(l){let c=this.X(this.Y,l);return new a(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new a(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new a(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new a(c,this.h,this)}setElement(l,c,u){return this.M(l,c,u)}find(l){let c=this.I(this.Y,l);return new a(c,this.h,this)}getElementByKey(l){return this.I(this.Y,l).l}union(l){let c=this;return l.forEach(function(u){c.setElement(u[0],u[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=o;e.default=s}),Pce=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=t;function t(n){let r=typeof n;return r==="object"&&n!==null||r==="function"}}),Oce=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var t=zf(),n=i(Pce()),r=Hf();function i(s){return s&&s.t?s:{default:s}}var a=class extends t.ContainerIterator{constructor(s,l,c){super(c),this.o=s,this.h=l,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this})}};e.HashContainerIterator=a;var o=class extends t.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(s){let{L:l,B:c}=s;l.B=c,c.L=l,s===this.p&&(this.p=c),s===this._&&(this._=l),this.i-=1}M(s,l,c){c===void 0&&(c=(0,n.default)(s));let u;if(c){let f=s[this.HASH_TAG];if(f!==void 0)return this.H[f].l=l,this.i;Object.defineProperty(s,this.HASH_TAG,{value:this.H.length,configurable:!0}),u={u:s,l,L:this._,B:this.h},this.H.push(u)}else{let f=this.g[s];if(f)return f.l=l,this.i;u={u:s,l,L:this._,B:this.h},this.g[s]=u}return this.i===0?(this.p=u,this.h.B=u):this._.B=u,this._=u,this.h.L=u,++this.i}I(s,l){if(l===void 0&&(l=(0,n.default)(s)),l){let c=s[this.HASH_TAG];return c===void 0?this.h:this.H[c]}else return this.g[s]||this.h}clear(){let s=this.HASH_TAG;this.H.forEach(function(l){delete l.u[s]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(s,l){let c;if(l===void 0&&(l=(0,n.default)(s)),l){let u=s[this.HASH_TAG];if(u===void 0)return!1;delete s[this.HASH_TAG],c=this.H[u],delete this.H[u]}else{if(c=this.g[s],c===void 0)return!1;delete this.g[s]}return this.V(c),!0}eraseElementByIterator(s){let l=s.o;return l===this.h&&(0,r.throwIteratorAccessError)(),this.V(l),s.next()}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let l=this.p;for(;s--;)l=l.B;return this.V(l),this.i}};e.HashContainer=o}),b7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Oce(),n=Hf(),r=class Rce extends t.HashContainerIterator{constructor(s,l,c,u){super(s,l,u),this.container=c}get pointer(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.u}copy(){return new Rce(this.o,this.h,this.container,this.iteratorType)}},i=class extends t.HashContainer{constructor(o=[]){super();let s=this;o.forEach(function(l){s.insert(l)})}begin(){return new r(this.p,this.h,this)}end(){return new r(this.h,this.h,this)}rBegin(){return new r(this._,this.h,this,1)}rEnd(){return new r(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(o,s){return this.M(o,void 0,s)}getElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let s=this.p;for(;o--;)s=s.B;return s.u}find(o,s){let l=this.I(o,s);return new r(l,this.h,this)}forEach(o){let s=0,l=this.p;for(;l!==this.h;)o(l.u,s++,this),l=l.B}[Symbol.iterator](){return(function*(){let o=this.p;for(;o!==this.h;)yield o.u,o=o.B}).bind(this)()}},a=i;e.default=a}),w7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Oce(),n=i(Pce()),r=Hf();function i(l){return l&&l.t?l:{default:l}}var a=class Ice extends t.HashContainerIterator{constructor(c,u,f,p){super(c,u,p),this.container=f}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,f){if(f==="0")return c.o.u;if(f==="1")return c.o.l},set(u,f,p){if(f!=="1")throw new TypeError("props must be 1");return c.o.l=p,!0}})}copy(){return new Ice(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.HashContainer{constructor(l=[]){super();let c=this;l.forEach(function(u){c.setElement(u[0],u[1])})}begin(){return new a(this.p,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this._,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(l,c,u){return this.M(l,c,u)}getElementByKey(l,c){if(c===void 0&&(c=(0,n.default)(l)),c){let f=l[this.HASH_TAG];return f!==void 0?this.H[f].l:void 0}let u=this.g[l];return u?u.l:void 0}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return[c.u,c.l]}find(l,c){let u=this.I(l,c);return new a(u,this.h,this)}forEach(l){let c=0,u=this.p;for(;u!==this.h;)l([u.u,u.l],c++,this),u=u.B}[Symbol.iterator](){return(function*(){let l=this.p;for(;l!==this.h;)yield[l.u,l.l],l=l.B}).bind(this)()}},s=o;e.default=s}),x7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),Object.defineProperty(e,"Deque",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"HashMap",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"HashSet",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"LinkList",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"OrderedMap",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"OrderedSet",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"PriorityQueue",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"Queue",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"Vector",{enumerable:!0,get:function(){return i.default}});var t=f(u7e()),n=f(d7e()),r=f(f7e()),i=f(p7e()),a=f(h7e()),o=f(m7e()),s=f(v7e()),l=f(y7e()),c=f(b7e()),u=f(w7e());function f(p){return p&&p.t?p:{default:p}}}),S7e=un((e,t)=>{Zt(),Jt(),Qt();var n=x7e().OrderedSet,r=Pf()("number-allocator:trace"),i=Pf()("number-allocator:error");function a(s,l){this.low=s,this.high=l}a.prototype.equals=function(s){return this.low===s.low&&this.high===s.high},a.prototype.compare=function(s){return this.lowc.compare(u)),r("Create"),this.clear()}o.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},o.prototype.alloc=function(){if(this.ss.size()===0)return r("alloc():empty"),null;let s=this.ss.begin(),l=s.pointer.low,c=s.pointer.high,u=l;return u+1<=c?this.ss.updateKeyByIterator(s,new a(l+1,c)):this.ss.eraseElementByPos(0),r("alloc():"+u),u},o.prototype.use=function(s){let l=new a(s,s),c=this.ss.lowerBound(l);if(!c.equals(this.ss.end())){let u=c.pointer.low,f=c.pointer.high;return c.pointer.equals(l)?(this.ss.eraseElementByIterator(c),r("use():"+s),!0):u>s?!1:u===s?(this.ss.updateKeyByIterator(c,new a(u+1,f)),r("use():"+s),!0):f===s?(this.ss.updateKeyByIterator(c,new a(u,f-1)),r("use():"+s),!0):(this.ss.updateKeyByIterator(c,new a(s+1,f)),this.ss.insert(new a(u,s-1)),r("use():"+s),!0)}return r("use():failed"),!1},o.prototype.free=function(s){if(sthis.max){i("free():"+s+" is out of range");return}let l=new a(s,s),c=this.ss.upperBound(l);if(c.equals(this.ss.end())){if(c.equals(this.ss.begin())){this.ss.insert(l);return}c.pre();let u=c.pointer.high;c.pointer.high+1===s?this.ss.updateKeyByIterator(c,new a(u,s)):this.ss.insert(l)}else if(c.equals(this.ss.begin()))if(s+1===c.pointer.low){let u=c.pointer.high;this.ss.updateKeyByIterator(c,new a(s,u))}else this.ss.insert(l);else{let u=c.pointer.low,f=c.pointer.high;c.pre();let p=c.pointer.low;c.pointer.high+1===s?s+1===u?(this.ss.eraseElementByIterator(c),this.ss.updateKeyByIterator(c,new a(p,f))):this.ss.updateKeyByIterator(c,new a(p,s)):s+1===u?(this.ss.eraseElementByIterator(c.next()),this.ss.insert(new a(s,f))):this.ss.insert(l)}r("free():"+s)},o.prototype.clear=function(){r("clear()"),this.ss.clear(),this.ss.insert(new a(this.min,this.max))},o.prototype.intervalCount=function(){return this.ss.size()},o.prototype.dump=function(){console.log("length:"+this.ss.size());for(let s of this.ss)console.log(s)},t.exports=o}),jce=un((e,t)=>{Zt(),Jt(),Qt();var n=S7e();t.exports.NumberAllocator=n}),C7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=c7e(),n=jce(),r=class{constructor(i){i>0&&(this.aliasToTopic=new t.LRUCache({max:i}),this.topicToAlias={},this.numberAllocator=new n.NumberAllocator(1,i),this.max=i,this.length=0)}put(i,a){if(a===0||a>this.max)return!1;let o=this.aliasToTopic.get(a);return o&&delete this.topicToAlias[o],this.aliasToTopic.set(a,i),this.topicToAlias[i]=a,this.numberAllocator.use(a),this.length=this.aliasToTopic.size,!0}getTopicByAlias(i){return this.aliasToTopic.get(i)}getAliasByTopic(i){let a=this.topicToAlias[i];return typeof a<"u"&&this.aliasToTopic.get(a),a}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};e.default=r}),_7e=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var n=gE(),r=t(C7e()),i=my(),a=(o,s)=>{o.log("_handleConnack");let{options:l}=o,c=l.protocolVersion===5?s.reasonCode:s.returnCode;if(clearTimeout(o.connackTimer),delete o.topicAliasSend,s.properties){if(s.properties.topicAliasMaximum){if(s.properties.topicAliasMaximum>65535){o.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}s.properties.topicAliasMaximum>0&&(o.topicAliasSend=new r.default(s.properties.topicAliasMaximum))}s.properties.serverKeepAlive&&l.keepalive&&(l.keepalive=s.properties.serverKeepAlive),s.properties.maximumPacketSize&&(l.properties||(l.properties={}),l.properties.maximumPacketSize=s.properties.maximumPacketSize)}if(c===0)o.reconnecting=!1,o._onConnect(s);else if(c>0){let u=new i.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[c]}`,c);o.emit("error",u),o.options.reconnectOnConnackError&&o._cleanUp(!0)}};e.default=a}),k7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(n,r,i)=>{n.log("handling pubrel packet");let a=typeof i<"u"?i:n.noop,{messageId:o}=r,s={cmd:"pubcomp",messageId:o};n.incomingStore.get(r,(l,c)=>{l?n._sendPacket(s,a):(n.emit("message",c.topic,c.payload,c),n.handleMessage(c,u=>{if(u)return a(u);n.incomingStore.del(c,n.noop),n._sendPacket(s,a)}))})};e.default=t}),E7e=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(o7e()),r=t(l7e()),i=t(_7e()),a=t(gE()),o=t(k7e()),s=(l,c,u)=>{let{options:f}=l;if(f.protocolVersion===5&&f.properties&&f.properties.maximumPacketSize&&f.properties.maximumPacketSize{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypedEventEmitter=void 0;var n=t((hy(),Si(Bg))),r=my(),i=class{};e.TypedEventEmitter=i,(0,r.applyMixin)(i,n.default)}),vE=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.isReactNativeBrowser=e.isWebWorker=void 0;var t=()=>{var a;return typeof window<"u"?typeof navigator<"u"&&((a=navigator.userAgent)===null||a===void 0?void 0:a.toLowerCase().indexOf(" electron/"))>-1&&li!=null&&li.versions?!Object.prototype.hasOwnProperty.call(li.versions,"electron"):typeof window.document<"u":!1},n=()=>{var a,o;return!!(typeof self=="object"&&!((o=(a=self==null?void 0:self.constructor)===null||a===void 0?void 0:a.name)===null||o===void 0)&&o.includes("WorkerGlobalScope"))},r=()=>typeof navigator<"u"&&navigator.product==="ReactNative",i=t()||n()||r();e.isWebWorker=n(),e.isReactNativeBrowser=r(),e.default=i}),M7e=un((e,t)=>{Zt(),Jt(),Qt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.fastUniqueNumbers={}))}(e,function(n){var r=function(h){return function(m){var g=h(m);return m.add(g),g}},i=function(h){return function(m,g){return h.set(m,g),g}},a=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,o=536870912,s=o*2,l=function(h,m){return function(g){var v=m.get(g),y=v===void 0?g.size:va)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;g.has(y);)y=Math.floor(Math.random()*a);return h(g,y)}},c=new WeakMap,u=i(c),f=l(u,c),p=r(f);n.addUniqueNumber=p,n.generateUniqueNumber=f})}),T7e=un((e,t)=>{Zt(),Jt(),Qt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,M7e()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.workerTimersBroker={},n.fastUniqueNumbers))}(e,function(n,r){var i=function(s){return s.method!==void 0&&s.method==="call"},a=function(s){return s.error===null&&typeof s.id=="number"},o=function(s){var l=new Map([[0,function(){}]]),c=new Map([[0,function(){}]]),u=new Map,f=new Worker(s);f.addEventListener("message",function(v){var y=v.data;if(i(y)){var w=y.params,b=w.timerId,C=w.timerType;if(C==="interval"){var k=l.get(b);if(typeof k=="number"){var S=u.get(k);if(S===void 0||S.timerId!==b||S.timerType!==C)throw new Error("The timer is in an undefined state.")}else if(typeof k<"u")k();else throw new Error("The timer is in an undefined state.")}else if(C==="timeout"){var _=c.get(b);if(typeof _=="number"){var E=u.get(_);if(E===void 0||E.timerId!==b||E.timerType!==C)throw new Error("The timer is in an undefined state.")}else if(typeof _<"u")_(),c.delete(b);else throw new Error("The timer is in an undefined state.")}}else if(a(y)){var $=y.id,M=u.get($);if(M===void 0)throw new Error("The timer is in an undefined state.");var P=M.timerId,R=M.timerType;u.delete($),R==="interval"?l.delete(P):c.delete(P)}else{var O=y.error.message;throw new Error(O)}});var p=function(v){var y=r.generateUniqueNumber(u);u.set(y,{timerId:v,timerType:"interval"}),l.set(v,y),f.postMessage({id:y,method:"clear",params:{timerId:v,timerType:"interval"}})},h=function(v){var y=r.generateUniqueNumber(u);u.set(y,{timerId:v,timerType:"timeout"}),c.set(v,y),f.postMessage({id:y,method:"clear",params:{timerId:v,timerType:"timeout"}})},m=function(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w=r.generateUniqueNumber(l);return l.set(w,function(){v(),typeof l.get(w)=="function"&&f.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:w,timerType:"interval"}})}),f.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:w,timerType:"interval"}}),w},g=function(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w=r.generateUniqueNumber(c);return c.set(w,v),f.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:w,timerType:"timeout"}}),w};return{clearInterval:p,clearTimeout:h,setInterval:m,setTimeout:g}};n.load=o})}),P7e=un((e,t)=>{Zt(),Jt(),Qt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,T7e()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.workerTimers={},n.workerTimersBroker))}(e,function(n,r){var i=function(f,p){var h=null;return function(){if(h!==null)return h;var m=new Blob([p],{type:"application/javascript; charset=utf-8"}),g=URL.createObjectURL(m);return h=f(g),setTimeout(function(){return URL.revokeObjectURL(g)}),h}},a=`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`,o=i(r.load,a),s=function(f){return o().clearInterval(f)},l=function(f){return o().clearTimeout(f)},c=function(){var f;return(f=o()).setInterval.apply(f,arguments)},u=function(){var f;return(f=o()).setTimeout.apply(f,arguments)};n.clearInterval=s,n.clearTimeout=l,n.setInterval=c,n.setTimeout=u})}),O7e=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__createBinding||(Object.create?function(c,u,f,p){p===void 0&&(p=f);var h=Object.getOwnPropertyDescriptor(u,f);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(c,p,h)}:function(c,u,f,p){p===void 0&&(p=f),c[p]=u[f]}),n=e&&e.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),r=e&&e.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var f in c)f!=="default"&&Object.prototype.hasOwnProperty.call(c,f)&&t(u,c,f);return n(u,c),u};Object.defineProperty(e,"__esModule",{value:!0});var i=r(vE()),a=P7e(),o={set:a.setInterval,clear:a.clearInterval},s={set:(c,u)=>setInterval(c,u),clear:c=>clearInterval(c)},l=c=>{switch(c){case"native":return s;case"worker":return o;case"auto":default:return i.default&&!i.isWebWorker&&!i.isReactNativeBrowser?o:s}};e.default=l}),Nce=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(O7e()),r=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(i,a){this.destroyed=!1,this.client=i,this.timer=typeof a=="object"&&"set"in a&&"clear"in a?a:(0,n.default)(a),this.setKeepalive(i.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(i){if(i*=1e3,isNaN(i)||i<=0||i>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${i}`);this._keepalive=i,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${i}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let i=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+i,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}};e.default=r}),MI=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__createBinding||(Object.create?function(k,S,_,E){E===void 0&&(E=_);var $=Object.getOwnPropertyDescriptor(S,_);(!$||("get"in $?!S.__esModule:$.writable||$.configurable))&&($={enumerable:!0,get:function(){return S[_]}}),Object.defineProperty(k,E,$)}:function(k,S,_,E){E===void 0&&(E=_),k[E]=S[_]}),n=e&&e.__setModuleDefault||(Object.create?function(k,S){Object.defineProperty(k,"default",{enumerable:!0,value:S})}:function(k,S){k.default=S}),r=e&&e.__importStar||function(k){if(k&&k.__esModule)return k;var S={};if(k!=null)for(var _ in k)_!=="default"&&Object.prototype.hasOwnProperty.call(k,_)&&t(S,k,_);return n(S,k),S},i=e&&e.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(e,"__esModule",{value:!0});var a=i(w$e()),o=i(n7e()),s=i(yce()),l=zg(),c=i(i7e()),u=r(a7e()),f=i(Pf()),p=i(bce()),h=i(E7e()),m=my(),g=$7e(),v=i(Nce()),y=r(vE()),w=globalThis.setImmediate||((...k)=>{let S=k.shift();(0,m.nextTick)(()=>{S(...k)})}),b={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},C=class TI extends g.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(S,_){super(),this.options=_||{};for(let E in b)typeof this.options[E]>"u"?this.options[E]=b[E]:this.options[E]=_[E];this.log=this.options.log||(0,f.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",TI.VERSION),y.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",y.default?"browser":"node"),this.log("MqttClient :: options.protocol",_.protocol),this.log("MqttClient :: options.protocolVersion",_.protocolVersion),this.log("MqttClient :: options.username",_.username),this.log("MqttClient :: options.keepalive",_.keepalive),this.log("MqttClient :: options.reconnectPeriod",_.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",_.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",_.properties?_.properties.topicAliasMaximum:void 0),this.options.clientId=typeof _.clientId=="string"?_.clientId:TI.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=_.protocolVersion===5&&_.customHandleAcks?_.customHandleAcks:(...E)=>{E[3](null,0)},this.options.writeCache||(o.default.writeToStream.cacheNumbers=!1),this.streamBuilder=S,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new s.default:this.options.messageIdProvider,this.outgoingStore=_.outgoingStore||new p.default,this.incomingStore=_.incomingStore||new p.default,this.queueQoSZero=_.queueQoSZero===void 0?!0:_.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,_.properties&&_.properties.topicAliasMaximum>0&&(_.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new a.default(_.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:E}=this,$=()=>{let M=E.shift();this.log("deliver :: entry %o",M);let P=null;if(!M){this._resubscribe();return}P=M.packet,this.log("deliver :: call _sendPacket for %o",P);let R=!0;P.messageId&&P.messageId!==0&&(this.messageIdProvider.register(P.messageId)||(R=!1)),R?this._sendPacket(P,O=>{M.cb&&M.cb(O),$()}):(this.log("messageId: %d has already used. The message is skipped and removed.",P.messageId),$())};this.log("connect :: sending queued packets"),$()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(S,_){_()}handleMessage(S,_){_()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var S;let _=new l.Writable,E=o.default.parser(this.options),$=null,M=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new p.default,this.outgoingStore=this.options.outgoingStore||new p.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),E.on("packet",I=>{this.log("parser :: on packet push to packets array."),M.push(I)});let P=()=>{this.log("work :: getting next packet in queue");let I=M.shift();if(I)this.log("work :: packet pulled from queue"),(0,h.default)(this,I,R);else{this.log("work :: no packets in queue");let A=$;$=null,this.log("work :: done flag is %s",!!A),A&&A()}},R=()=>{if(M.length)(0,m.nextTick)(P);else{let I=$;$=null,I()}};_._write=(I,A,N)=>{$=N,this.log("writable stream :: parsing buffer"),E.parse(I),P()};let O=I=>{this.log("streamErrorHandler :: error",I.message),I.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",I)):this.noop(I)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(_),this.stream.on("error",O),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let j={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(j.will=Object.assign(Object.assign({},this.options.will),{payload:(S=this.options.will)===null||S===void 0?void 0:S.payload})),this.topicAliasRecv&&(j.properties||(j.properties={}),this.topicAliasRecv&&(j.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(j),E.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){let I=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(I)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(S,_,E,$){this.log("publish :: message `%s` to topic `%s`",_,S);let{options:M}=this;typeof E=="function"&&($=E,E=null),E=E||{},E=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),E);let{qos:P,retain:R,dup:O,properties:j,cbStorePut:I}=E;if(this._checkDisconnecting($))return this;let A=()=>{let N=0;if((P===1||P===2)&&(N=this._nextId(),N===null))return this.log("No messageId left"),!1;let F={cmd:"publish",topic:S,payload:_,qos:P,retain:R,messageId:N,dup:O};switch(M.protocolVersion===5&&(F.properties=j),this.log("publish :: qos",P),P){case 1:case 2:this.outgoing[F.messageId]={volatile:!1,cb:$||this.noop},this.log("MqttClient:publish: packet cmd: %s",F.cmd),this._sendPacket(F,void 0,I);break;default:this.log("MqttClient:publish: packet cmd: %s",F.cmd),this._sendPacket(F,$,I);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!A())&&this._storeProcessingQueue.push({invoke:A,cbStorePut:E.cbStorePut,callback:$}),this}publishAsync(S,_,E){return new Promise(($,M)=>{this.publish(S,_,E,(P,R)=>{P?M(P):$(R)})})}subscribe(S,_,E){let $=this.options.protocolVersion;typeof _=="function"&&(E=_),E=E||this.noop;let M=!1,P=[];typeof S=="string"?(S=[S],P=S):Array.isArray(S)?P=S:typeof S=="object"&&(M=S.resubscribe,delete S.resubscribe,P=Object.keys(S));let R=u.validateTopics(P);if(R!==null)return w(E,new Error(`Invalid topic ${R}`)),this;if(this._checkDisconnecting(E))return this.log("subscribe: discconecting true"),this;let O={qos:0};$===5&&(O.nl=!1,O.rap=!1,O.rh=0),_=Object.assign(Object.assign({},O),_);let j=_.properties,I=[],A=(F,K)=>{if(K=K||_,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,F)||this._resubscribeTopics[F].qos{this.log("subscribe: array topic %s",F),A(F)}):Object.keys(S).forEach(F=>{this.log("subscribe: object topic %s, %o",F,S[F]),A(F,S[F])}),!I.length)return E(null,[]),this;let N=()=>{let F=this._nextId();if(F===null)return this.log("No messageId left"),!1;let K={cmd:"subscribe",subscriptions:I,messageId:F};if(j&&(K.properties=j),this.options.resubscribe){this.log("subscribe :: resubscribe true");let L=[];I.forEach(V=>{if(this.options.reconnectPeriod>0){let B={qos:V.qos};$===5&&(B.nl=V.nl||!1,B.rap=V.rap||!1,B.rh=V.rh||0,B.properties=V.properties),this._resubscribeTopics[V.topic]=B,L.push(V.topic)}}),this.messageIdToTopic[K.messageId]=L}return this.outgoing[K.messageId]={volatile:!0,cb(L,V){if(!L){let{granted:B}=V;for(let U=0;U0||!N())&&this._storeProcessingQueue.push({invoke:N,callback:E}),this}subscribeAsync(S,_){return new Promise((E,$)=>{this.subscribe(S,_,(M,P)=>{M?$(M):E(P)})})}unsubscribe(S,_,E){typeof S=="string"&&(S=[S]),typeof _=="function"&&(E=_),E=E||this.noop;let $=u.validateTopics(S);if($!==null)return w(E,new Error(`Invalid topic ${$}`)),this;if(this._checkDisconnecting(E))return this;let M=()=>{let P=this._nextId();if(P===null)return this.log("No messageId left"),!1;let R={cmd:"unsubscribe",messageId:P,unsubscriptions:[]};return typeof S=="string"?R.unsubscriptions=[S]:Array.isArray(S)&&(R.unsubscriptions=S),this.options.resubscribe&&R.unsubscriptions.forEach(O=>{delete this._resubscribeTopics[O]}),typeof _=="object"&&_.properties&&(R.properties=_.properties),this.outgoing[R.messageId]={volatile:!0,cb:E},this.log("unsubscribe: call _sendPacket"),this._sendPacket(R),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!M())&&this._storeProcessingQueue.push({invoke:M,callback:E}),this}unsubscribeAsync(S,_){return new Promise((E,$)=>{this.unsubscribe(S,_,(M,P)=>{M?$(M):E(P)})})}end(S,_,E){this.log("end :: (%s)",this.options.clientId),(S==null||typeof S!="boolean")&&(E=E||_,_=S,S=!1),typeof _!="object"&&(E=E||_,_=null),this.log("end :: cb? %s",!!E),(!E||typeof E!="function")&&(E=this.noop);let $=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(P=>{this.outgoingStore.close(R=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),E){let O=P||R;this.log("end :: closeStores: invoking callback with args"),E(O)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},M=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,S),this._cleanUp(S,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,m.nextTick)($)},_)};return this.disconnecting?(E(),this):(this._clearReconnect(),this.disconnecting=!0,!S&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,M,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),M()),this)}endAsync(S,_){return new Promise((E,$)=>{this.end(S,_,M=>{M?$(M):E()})})}removeOutgoingMessage(S){if(this.outgoing[S]){let{cb:_}=this.outgoing[S];this._removeOutgoingAndStoreMessage(S,()=>{_(new Error("Message removed"))})}return this}reconnect(S){this.log("client reconnect");let _=()=>{S?(this.options.incomingStore=S.incomingStore,this.options.outgoingStore=S.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new p.default,this.outgoingStore=this.options.outgoingStore||new p.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=_:_(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(S=>{this.outgoing[S].volatile&&typeof this.outgoing[S].cb=="function"&&(this.outgoing[S].cb(new Error("Connection closed")),delete this.outgoing[S])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(S=>{typeof this.outgoing[S].cb=="function"&&(this.outgoing[S].cb(new Error("Connection closed")),delete this.outgoing[S])}))}_removeTopicAliasAndRecoverTopicName(S){let _;S.properties&&(_=S.properties.topicAlias);let E=S.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",_,E),E.length===0){if(typeof _>"u")return new Error("Unregistered Topic Alias");if(E=this.topicAliasSend.getTopicByAlias(_),typeof E>"u")return new Error("Unregistered Topic Alias");S.topic=E}_&&delete S.properties.topicAlias}_checkDisconnecting(S){return this.disconnecting&&(S&&S!==this.noop?S(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(S,_,E={}){if(_&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",_)),this.log("_cleanUp :: forced? %s",S),S)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let $=Object.assign({cmd:"disconnect"},E);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket($,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),w(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),_&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",_),_())}_storeAndSend(S,_,E){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",S.cmd);let $=S,M;if($.cmd==="publish"&&($=(0,c.default)(S),M=this._removeTopicAliasAndRecoverTopicName($),M))return _&&_(M);this.outgoingStore.put($,P=>{if(P)return _&&_(P);E(),this._writePacket(S,_)})}_applyTopicAlias(S){if(this.options.protocolVersion===5&&S.cmd==="publish"){let _;S.properties&&(_=S.properties.topicAlias);let E=S.topic.toString();if(this.topicAliasSend)if(_){if(E.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",E,_),!this.topicAliasSend.put(E,_)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",E,_),new Error("Sending Topic Alias out of range")}else E.length!==0&&(this.options.autoAssignTopicAlias?(_=this.topicAliasSend.getAliasByTopic(E),_?(S.topic="",S.properties=Object.assign(Object.assign({},S.properties),{topicAlias:_}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",E,_)):(_=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(E,_),S.properties=Object.assign(Object.assign({},S.properties),{topicAlias:_}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",E,_))):this.options.autoUseTopicAlias&&(_=this.topicAliasSend.getAliasByTopic(E),_&&(S.topic="",S.properties=Object.assign(Object.assign({},S.properties),{topicAlias:_}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",E,_))));else if(_)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",E,_),new Error("Sending Topic Alias out of range")}}_noop(S){this.log("noop ::",S)}_writePacket(S,_){this.log("_writePacket :: packet: %O",S),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",S),this.log("_writePacket :: writing to stream");let E=o.default.writeToStream(S,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",E),!E&&_&&_!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",_)):_&&(this.log("_writePacket :: invoking cb"),_())}_sendPacket(S,_,E,$){this.log("_sendPacket :: (%s) :: start",this.options.clientId),E=E||this.noop,_=_||this.noop;let M=this._applyTopicAlias(S);if(M){_(M);return}if(!this.connected){if(S.cmd==="auth"){this._writePacket(S,_);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(S,_,E);return}if($){this._writePacket(S,_);return}switch(S.cmd){case"publish":break;case"pubrel":this._storeAndSend(S,_,E);return;default:this._writePacket(S,_);return}switch(S.qos){case 2:case 1:this._storeAndSend(S,_,E);break;case 0:default:this._writePacket(S,_);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(S,_,E){this.log("_storePacket :: packet: %o",S),this.log("_storePacket :: cb? %s",!!_),E=E||this.noop;let $=S;if($.cmd==="publish"){$=(0,c.default)(S);let P=this._removeTopicAliasAndRecoverTopicName($);if(P)return _&&_(P)}let M=$.qos||0;M===0&&this.queueQoSZero||$.cmd!=="publish"?this.queue.push({packet:$,cb:_}):M>0?(_=this.outgoing[$.messageId]?this.outgoing[$.messageId].cb:null,this.outgoingStore.put($,P=>{if(P)return _&&_(P);E()})):_&&_(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new v.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(S=!1){this.keepaliveManager&&this.options.keepalive&&(S||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let S=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&S.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let _=0;_{let E=this.outgoingStore.createStream(),$=()=>{E.destroy(),E=null,this._flushStoreProcessingQueue(),M()},M=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",$),E.on("error",R=>{M(),this._flushStoreProcessingQueue(),this.removeListener("close",$),this.emit("error",R)});let P=()=>{if(!E)return;let R=E.read(1),O;if(!R){E.once("readable",P);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[R.messageId]){P();return}!this.disconnecting&&!this.reconnectTimer?(O=this.outgoing[R.messageId]?this.outgoing[R.messageId].cb:null,this.outgoing[R.messageId]={volatile:!1,cb(j,I){O&&O(j,I),P()}},this._packetIdsDuringStoreProcessing[R.messageId]=!0,this.messageIdProvider.register(R.messageId)?this._sendPacket(R,void 0,void 0,!0):this.log("messageId: %d has already used.",R.messageId)):E.destroy&&E.destroy()};E.on("end",()=>{let R=!0;for(let O in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[O]){R=!1;break}this.removeListener("close",$),R?(M(),this._invokeAllStoreProcessingQueue(),this.emit("connect",S)):_()}),P()};_()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let S=this._storeProcessingQueue[0];if(S&&S.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let S of this._storeProcessingQueue)S.cbStorePut&&S.cbStorePut(new Error("Connection closed")),S.callback&&S.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(S,_){delete this.outgoing[S],this.outgoingStore.del({messageId:S},(E,$)=>{_(E,$),this.messageIdProvider.deallocate(S),this._invokeStoreProcessingQueue()})}};C.VERSION=m.MQTTJS_VERSION,e.default=C}),R7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=jce(),n=class{constructor(){this.numberAllocator=new t.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(r){return this.numberAllocator.use(r)}deallocate(r){this.numberAllocator.free(r)}clear(){this.numberAllocator.clear()}};e.default=n});function Vh(e){throw new RangeError(Dce[e])}function rK(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);let i=function(a,o){let s=[],l=a.length;for(;l--;)s[l]=o(a[l]);return s}((e=e.replace(Ace,".")).split("."),t).join(".");return r+i}function iK(e){let t=[],n=0,r=e.length;for(;n=55296&&i<=56319&&n{Zt(),Jt(),Qt(),aK=/^xn--/,oK=/[^\0-\x7E]/,Ace=/[\x2E\u3002\uFF0E\uFF61]/g,Dce={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Nc=Math.floor,eS=String.fromCharCode,YM=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},XM=function(e,t,n){let r=0;for(e=n?Nc(e/700):e>>1,e+=Nc(e/t);e>455;r+=36)e=Nc(e/35);return Nc(r+36*e/(e+38))},ZM=function(e){let t=[],n=e.length,r=0,i=128,a=72,o=e.lastIndexOf("-");o<0&&(o=0);for(let l=0;l=128&&Vh("not-basic"),t.push(e.charCodeAt(l));for(let l=o>0?o+1:0;l=n&&Vh("invalid-input");let h=(s=e.charCodeAt(l++))-48<10?s-22:s-65<26?s-65:s-97<26?s-97:36;(h>=36||h>Nc((2147483647-r)/f))&&Vh("overflow"),r+=h*f;let m=p<=a?1:p>=a+26?26:p-a;if(hNc(2147483647/g)&&Vh("overflow"),f*=g}let u=t.length+1;a=XM(r-c,u,c==0),Nc(r/u)>2147483647-i&&Vh("overflow"),i+=Nc(r/u),r%=u,t.splice(r++,0,i)}var s;return String.fromCodePoint(...t)},QM=function(e){let t=[],n=(e=iK(e)).length,r=128,i=0,a=72;for(let l of e)l<128&&t.push(eS(l));let o=t.length,s=o;for(o&&t.push("-");s=r&&uNc((2147483647-i)/c)&&Vh("overflow"),i+=(l-r)*c,r=l;for(let u of e)if(u2147483647&&Vh("overflow"),u==r){let f=i;for(let p=36;;p+=36){let h=p<=a?1:p>=a+26?26:p-a;if(fString.fromCodePoint(...e)},decode:ZM,encode:QM,toASCII:function(e){return rK(e,function(t){return oK.test(t)?"xn--"+QM(t):t})},toUnicode:function(e){return rK(e,function(t){return aK.test(t)?ZM(t.slice(4).toLowerCase()):t})}},mp.decode,mp.encode,mp.toASCII,mp.toUnicode,mp.ucs2,mp.version});function j7e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var sK,_1,lK,Bu,N7e=Co(()=>{Zt(),Jt(),Qt(),sK=function(e,t,n,r){t=t||"&",n=n||"=";var i={};if(typeof e!="string"||e.length===0)return i;var a=/\+/g;e=e.split(t);var o=1e3;r&&typeof r.maxKeys=="number"&&(o=r.maxKeys);var s=e.length;o>0&&s>o&&(s=o);for(var l=0;l=0?(c=h.substr(0,m),u=h.substr(m+1)):(c=h,u=""),f=decodeURIComponent(c),p=decodeURIComponent(u),j7e(i,f)?Array.isArray(i[f])?i[f].push(p):i[f]=[i[f],p]:i[f]=p}return i},_1=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},lK=function(e,t,n,r){return t=t||"&",n=n||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(i){var a=encodeURIComponent(_1(i))+n;return Array.isArray(e[i])?e[i].map(function(o){return a+encodeURIComponent(_1(o))}).join(t):a+encodeURIComponent(_1(e[i]))}).join(t):r?encodeURIComponent(_1(r))+n+encodeURIComponent(_1(e)):""},Bu={},Bu.decode=Bu.parse=sK,Bu.encode=Bu.stringify=lK,Bu.decode,Bu.encode,Bu.parse,Bu.stringify});function PI(){throw new Error("setTimeout has not been defined")}function OI(){throw new Error("clearTimeout has not been defined")}function Fce(e){if(ef===setTimeout)return setTimeout(e,0);if((ef===PI||!ef)&&setTimeout)return ef=setTimeout,setTimeout(e,0);try{return ef(e,0)}catch{try{return ef.call(null,e,0)}catch{return ef.call(this||zm,e,0)}}}function A7e(){Hm&&wm&&(Hm=!1,wm.length?nd=wm.concat(nd):H2=-1,nd.length&&Lce())}function Lce(){if(!Hm){var e=Fce(A7e);Hm=!0;for(var t=nd.length;t;){for(wm=nd,nd=[];++H2{Zt(),Jt(),Qt(),zm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,la=uK={},function(){try{ef=typeof setTimeout=="function"?setTimeout:PI}catch{ef=PI}try{tf=typeof clearTimeout=="function"?clearTimeout:OI}catch{tf=OI}}(),nd=[],Hm=!1,H2=-1,la.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n1)for(var y=1;y{Zt(),Jt(),Qt(),BC={},RI=!1,nm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Hi=F7e(),Hi.platform="browser",Hi.addListener,Hi.argv,Hi.binding,Hi.browser,Hi.chdir,Hi.cwd,Hi.emit,Hi.env,Hi.listeners,Hi.nextTick,Hi.off,Hi.on,Hi.once,Hi.prependListener,Hi.prependOnceListener,Hi.removeAllListeners,Hi.removeListener,Hi.title,Hi.umask,Hi.version,Hi.versions});function L7e(){if(II)return zC;II=!0;var e=Hi;function t(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function n(a,o){for(var s="",l=0,c=-1,u=0,f,p=0;p<=a.length;++p){if(p2){var h=s.lastIndexOf("/");if(h!==s.length-1){h===-1?(s="",l=0):(s=s.slice(0,h),l=s.length-1-s.lastIndexOf("/")),c=p,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=p,u=0;continue}}o&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+a.slice(c+1,p):s=a.slice(c+1,p),l=p-c-1;c=p,u=0}else f===46&&u!==-1?++u:u=-1}return s}function r(a,o){var s=o.dir||o.root,l=o.base||(o.name||"")+(o.ext||"");return s?s===o.root?s+l:s+a+l:l}var i={resolve:function(){for(var a="",o=!1,s,l=arguments.length-1;l>=-1&&!o;l--){var c;l>=0?c=arguments[l]:(s===void 0&&(s=e.cwd()),c=s),t(c),c.length!==0&&(a=c+"/"+a,o=c.charCodeAt(0)===47)}return a=n(a,!o),o?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(a){if(t(a),a.length===0)return".";var o=a.charCodeAt(0)===47,s=a.charCodeAt(a.length-1)===47;return a=n(a,!o),a.length===0&&!o&&(a="."),a.length>0&&s&&(a+="/"),o?"/"+a:a},isAbsolute:function(a){return t(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,o=0;o0&&(a===void 0?a=s:a+="/"+s)}return a===void 0?".":i.normalize(a)},relative:function(a,o){if(t(a),t(o),a===o||(a=i.resolve(a),o=i.resolve(o),a===o))return"";for(var s=1;sh){if(o.charCodeAt(u+g)===47)return o.slice(u+g+1);if(g===0)return o.slice(u+g)}else c>h&&(a.charCodeAt(s+g)===47?m=g:g===0&&(m=0));break}var v=a.charCodeAt(s+g),y=o.charCodeAt(u+g);if(v!==y)break;v===47&&(m=g)}var w="";for(g=s+m+1;g<=l;++g)(g===l||a.charCodeAt(g)===47)&&(w.length===0?w+="..":w+="/..");return w.length>0?w+o.slice(u+m):(u+=m,o.charCodeAt(u)===47&&++u,o.slice(u))},_makeLong:function(a){return a},dirname:function(a){if(t(a),a.length===0)return".";for(var o=a.charCodeAt(0),s=o===47,l=-1,c=!0,u=a.length-1;u>=1;--u)if(o=a.charCodeAt(u),o===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":a.slice(0,l)},basename:function(a,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');t(a);var s=0,l=-1,c=!0,u;if(o!==void 0&&o.length>0&&o.length<=a.length){if(o.length===a.length&&o===a)return"";var f=o.length-1,p=-1;for(u=a.length-1;u>=0;--u){var h=a.charCodeAt(u);if(h===47){if(!c){s=u+1;break}}else p===-1&&(c=!1,p=u+1),f>=0&&(h===o.charCodeAt(f)?--f===-1&&(l=u):(f=-1,l=p))}return s===l?l=p:l===-1&&(l=a.length),a.slice(s,l)}else{for(u=a.length-1;u>=0;--u)if(a.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":a.slice(s,l)}},extname:function(a){t(a);for(var o=-1,s=0,l=-1,c=!0,u=0,f=a.length-1;f>=0;--f){var p=a.charCodeAt(f);if(p===47){if(!c){s=f+1;break}continue}l===-1&&(c=!1,l=f+1),p===46?o===-1?o=f:u!==1&&(u=1):o!==-1&&(u=-1)}return o===-1||l===-1||u===0||u===1&&o===l-1&&o===s+1?"":a.slice(o,l)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return r("/",a)},parse:function(a){t(a);var o={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return o;var s=a.charCodeAt(0),l=s===47,c;l?(o.root="/",c=1):c=0;for(var u=-1,f=0,p=-1,h=!0,m=a.length-1,g=0;m>=c;--m){if(s=a.charCodeAt(m),s===47){if(!h){f=m+1;break}continue}p===-1&&(h=!1,p=m+1),s===46?u===-1?u=m:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||p===-1||g===0||g===1&&u===p-1&&u===f+1?p!==-1&&(f===0&&l?o.base=o.name=a.slice(1,p):o.base=o.name=a.slice(f,p)):(f===0&&l?(o.name=a.slice(1,u),o.base=a.slice(1,p)):(o.name=a.slice(f,u),o.base=a.slice(f,p)),o.ext=a.slice(u,p)),f>0?o.dir=a.slice(0,f-1):l&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,zC=i,zC}var zC,II,jI,B7e=Co(()=>{Zt(),Jt(),Qt(),Bce(),zC={},II=!1,jI=L7e()}),zce={};Fg(zce,{URL:()=>aue,Url:()=>eue,default:()=>hi,fileURLToPath:()=>Hce,format:()=>tue,parse:()=>iue,pathToFileURL:()=>Uce,resolve:()=>nue,resolveObject:()=>rue});function Xl(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function $b(e,t,n){if(e&&Fc.isObject(e)&&e instanceof Xl)return e;var r=new Xl;return r.parse(e,t,n),r}function z7e(){if(NI)return HC;NI=!0;var e=Qi;function t(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function n(a,o){for(var s="",l=0,c=-1,u=0,f,p=0;p<=a.length;++p){if(p2){var h=s.lastIndexOf("/");if(h!==s.length-1){h===-1?(s="",l=0):(s=s.slice(0,h),l=s.length-1-s.lastIndexOf("/")),c=p,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=p,u=0;continue}}o&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+a.slice(c+1,p):s=a.slice(c+1,p),l=p-c-1;c=p,u=0}else f===46&&u!==-1?++u:u=-1}return s}function r(a,o){var s=o.dir||o.root,l=o.base||(o.name||"")+(o.ext||"");return s?s===o.root?s+l:s+a+l:l}var i={resolve:function(){for(var a="",o=!1,s,l=arguments.length-1;l>=-1&&!o;l--){var c;l>=0?c=arguments[l]:(s===void 0&&(s=e.cwd()),c=s),t(c),c.length!==0&&(a=c+"/"+a,o=c.charCodeAt(0)===47)}return a=n(a,!o),o?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(a){if(t(a),a.length===0)return".";var o=a.charCodeAt(0)===47,s=a.charCodeAt(a.length-1)===47;return a=n(a,!o),a.length===0&&!o&&(a="."),a.length>0&&s&&(a+="/"),o?"/"+a:a},isAbsolute:function(a){return t(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,o=0;o0&&(a===void 0?a=s:a+="/"+s)}return a===void 0?".":i.normalize(a)},relative:function(a,o){if(t(a),t(o),a===o||(a=i.resolve(a),o=i.resolve(o),a===o))return"";for(var s=1;sh){if(o.charCodeAt(u+g)===47)return o.slice(u+g+1);if(g===0)return o.slice(u+g)}else c>h&&(a.charCodeAt(s+g)===47?m=g:g===0&&(m=0));break}var v=a.charCodeAt(s+g),y=o.charCodeAt(u+g);if(v!==y)break;v===47&&(m=g)}var w="";for(g=s+m+1;g<=l;++g)(g===l||a.charCodeAt(g)===47)&&(w.length===0?w+="..":w+="/..");return w.length>0?w+o.slice(u+m):(u+=m,o.charCodeAt(u)===47&&++u,o.slice(u))},_makeLong:function(a){return a},dirname:function(a){if(t(a),a.length===0)return".";for(var o=a.charCodeAt(0),s=o===47,l=-1,c=!0,u=a.length-1;u>=1;--u)if(o=a.charCodeAt(u),o===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":a.slice(0,l)},basename:function(a,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');t(a);var s=0,l=-1,c=!0,u;if(o!==void 0&&o.length>0&&o.length<=a.length){if(o.length===a.length&&o===a)return"";var f=o.length-1,p=-1;for(u=a.length-1;u>=0;--u){var h=a.charCodeAt(u);if(h===47){if(!c){s=u+1;break}}else p===-1&&(c=!1,p=u+1),f>=0&&(h===o.charCodeAt(f)?--f===-1&&(l=u):(f=-1,l=p))}return s===l?l=p:l===-1&&(l=a.length),a.slice(s,l)}else{for(u=a.length-1;u>=0;--u)if(a.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":a.slice(s,l)}},extname:function(a){t(a);for(var o=-1,s=0,l=-1,c=!0,u=0,f=a.length-1;f>=0;--f){var p=a.charCodeAt(f);if(p===47){if(!c){s=f+1;break}continue}l===-1&&(c=!1,l=f+1),p===46?o===-1?o=f:u!==1&&(u=1):o!==-1&&(u=-1)}return o===-1||l===-1||u===0||u===1&&o===l-1&&o===s+1?"":a.slice(o,l)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return r("/",a)},parse:function(a){t(a);var o={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return o;var s=a.charCodeAt(0),l=s===47,c;l?(o.root="/",c=1):c=0;for(var u=-1,f=0,p=-1,h=!0,m=a.length-1,g=0;m>=c;--m){if(s=a.charCodeAt(m),s===47){if(!h){f=m+1;break}continue}p===-1&&(h=!1,p=m+1),s===46?u===-1?u=m:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||p===-1||g===0||g===1&&u===p-1&&u===f+1?p!==-1&&(f===0&&l?o.base=o.name=a.slice(1,p):o.base=o.name=a.slice(f,p)):(f===0&&l?(o.name=a.slice(1,u),o.base=a.slice(1,p)):(o.name=a.slice(f,u),o.base=a.slice(f,p)),o.ext=a.slice(u,p)),f>0?o.dir=a.slice(0,f-1):l&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,HC=i,HC}function H7e(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return kk?U7e(e):W7e(e)}function U7e(e){let t=e.hostname,n=e.pathname;for(let r=0;rKce||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function W7e(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;ncue||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function K7e(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;n{Zt(),Jt(),Qt(),I7e(),N7e(),D7e(),B7e(),Bce(),hi={},dK=mp,Fc={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},hi.parse=$b,hi.resolve=function(e,t){return $b(e,!1,!0).resolve(t)},hi.resolveObject=function(e,t){return e?$b(e,!1,!0).resolveObject(t):t},hi.format=function(e){return Fc.isString(e)&&(e=$b(e)),e instanceof Xl?e.format():Xl.prototype.format.call(e)},hi.Url=Xl,fK=/^([a-z0-9.+-]+:)/i,pK=/:[0-9]*$/,hK=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,mK=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` +`," "]),tS=["'"].concat(mK),JM=["%","/","?",";","#"].concat(tS),e9=["/","?","#"],t9=/^[+a-z0-9A-Z_-]{0,63}$/,gK=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,vK={javascript:!0,"javascript:":!0},nS={javascript:!0,"javascript:":!0},qh={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},rS=Bu,Xl.prototype.parse=function(e,t,n){if(!Fc.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r127?C+="x":C+=b[k];if(!C.match(t9)){var _=y.slice(0,m),E=y.slice(m+1),$=b.match(gK);$&&(_.push($[1]),E.unshift($[2])),E.length&&(o="/"+E.join(".")+o),this.hostname=_.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=dK.toASCII(this.hostname));var M=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+M,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),o[0]!=="/"&&(o="/"+o))}if(!vK[c])for(m=0,w=tS.length;m0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift())),n.search=e.search,n.query=e.query,Fc.isNull(n.pathname)&&Fc.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!b.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=b.slice(-1)[0],S=(n.host||e.host||b.length>1)&&(k==="."||k==="..")||k==="",_=0,E=b.length;E>=0;E--)(k=b[E])==="."?b.splice(E,1):k===".."?(b.splice(E,1),_++):_&&(b.splice(E,1),_--);if(!y&&!w)for(;_--;_)b.unshift("..");!y||b[0]===""||b[0]&&b[0].charAt(0)==="/"||b.unshift(""),S&&b.join("/").substr(-1)!=="/"&&b.push("");var $,M=b[0]===""||b[0]&&b[0].charAt(0)==="/";return C&&(n.hostname=n.host=M?"":b.length?b.shift():"",($=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift())),(y=y||n.host&&b.length)&&!M&&b.unshift(""),b.length?n.pathname=b.join("/"):(n.pathname=null,n.path=null),Fc.isNull(n.pathname)&&Fc.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},Xl.prototype.parseHost=function(){var e=this.host,t=pK.exec(e);t&&((t=t[0])!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},hi.Url,hi.format,hi.resolve,hi.resolveObject,HC={},NI=!1,AI=z7e(),yK=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,hi.URL=typeof URL<"u"?URL:null,hi.pathToFileURL=V7e,hi.fileURLToPath=H7e,hi.Url,hi.format,hi.resolve,hi.resolveObject,hi.URL,Wce=92,Vce=47,qce=97,Kce=122,kk=yK==="win32",Gce=/\//g,Yce=/%/g,Xce=/\\/g,Zce=/\n/g,Qce=/\r/g,Jce=/\t/g,bK=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,hi.URL=typeof URL<"u"?URL:null,hi.pathToFileURL=Uce,hi.fileURLToPath=Hce,eue=hi.Url,tue=hi.format,nue=hi.resolve,rue=hi.resolveObject,iue=hi.parse,aue=hi.URL,oue=92,sue=47,lue=97,cue=122,Ek=bK==="win32",uue=/\//g,due=/%/g,fue=/\\/g,pue=/\n/g,hue=/\r/g,mue=/\t/g}),Y7e=un((e,t)=>{Zt(),Jt(),Qt(),t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),qF=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=e.writev=void 0;var t=zg(),n=(ko(),Si(_o));function r(a,o){let s=new Array(a.length);for(let l=0;l{this.destroyed||this.push(l)})}_read(a){this.proxy.read(a)}_write(a,o,s){this.isSocketOpen?this.writeToProxy(a,o,s):this.writeQueue.push({chunk:a,encoding:o,cb:s})}_final(a){this.writeQueue=[],this.proxy.end(a)}_destroy(a,o){this.writeQueue=[],this.proxy.destroy(),o(a)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(a,o,s){this.proxy.write(a,o)===!1?this.proxy.once("drain",s):s()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:a,encoding:o,cb:s}=this.writeQueue.shift();this.writeToProxy(a,o,s)}}};e.BufferedDuplex=i}),iS=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.streamBuilder=e.browserStreamBuilder=void 0;var n=(ko(),Si(_o)),r=t(Y7e()),i=t(Pf()),a=zg(),o=t(vE()),s=qF(),l=(0,i.default)("mqttjs:ws"),c=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function u(y,w){let b=`${y.protocol}://${y.hostname}:${y.port}${y.path}`;return typeof y.transformWsUrl=="function"&&(b=y.transformWsUrl(b,y,w)),b}function f(y){let w=y;return y.port||(y.protocol==="wss"?w.port=443:w.port=80),y.path||(w.path="/"),y.wsOptions||(w.wsOptions={}),!o.default&&!y.forceNativeWebSocket&&y.protocol==="wss"&&c.forEach(b=>{Object.prototype.hasOwnProperty.call(y,b)&&!Object.prototype.hasOwnProperty.call(y.wsOptions,b)&&(w.wsOptions[b]=y[b])}),w}function p(y){let w=f(y);if(w.hostname||(w.hostname=w.host),!w.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let b=new URL(document.URL);w.hostname=b.hostname,w.port||(w.port=Number(b.port))}return w.objectMode===void 0&&(w.objectMode=!(w.binary===!0||w.binary===void 0)),w}function h(y,w,b){l("createWebSocket"),l(`protocol: ${b.protocolId} ${b.protocolVersion}`);let C=b.protocolId==="MQIsdp"&&b.protocolVersion===3?"mqttv3.1":"mqtt";l(`creating new Websocket for url: ${w} and protocol: ${C}`);let k;return b.createWebsocket?k=b.createWebsocket(w,[C],b):k=new r.default(w,[C],b.wsOptions),k}function m(y,w){let b=w.protocolId==="MQIsdp"&&w.protocolVersion===3?"mqttv3.1":"mqtt",C=u(w,y),k;return w.createWebsocket?k=w.createWebsocket(C,[b],w):k=new WebSocket(C,[b]),k.binaryType="arraybuffer",k}var g=(y,w)=>{l("streamBuilder");let b=f(w);b.hostname=b.hostname||b.host||"localhost";let C=u(b,y),k=h(y,C,b),S=r.default.createWebSocketStream(k,b.wsOptions);return S.url=C,k.on("close",()=>{S.destroy()}),S};e.streamBuilder=g;var v=(y,w)=>{l("browserStreamBuilder");let b,C=p(w).browserBufferSize||1024*512,k=w.browserBufferTimeout||1e3,S=!w.objectMode,_=m(y,w),E=M(w,I,A);w.objectMode||(E._writev=s.writev.bind(E)),E.on("close",()=>{_.close()});let $=typeof _.addEventListener<"u";_.readyState===_.OPEN?(b=E,b.socket=_):(b=new s.BufferedDuplex(w,E,_),$?_.addEventListener("open",P):_.onopen=P),$?(_.addEventListener("close",R),_.addEventListener("error",O),_.addEventListener("message",j)):(_.onclose=R,_.onerror=O,_.onmessage=j);function M(N,F,K){let L=new a.Transform({objectMode:N.objectMode});return L._write=F,L._flush=K,L}function P(){l("WebSocket onOpen"),b instanceof s.BufferedDuplex&&b.socketReady()}function R(N){l("WebSocket onClose",N),b.end(),b.destroy()}function O(N){l("WebSocket onError",N);let F=new Error("WebSocket error");F.event=N,b.destroy(F)}async function j(N){let{data:F}=N;F instanceof ArrayBuffer?F=n.Buffer.from(F):F instanceof Blob?F=n.Buffer.from(await new Response(F).arrayBuffer()):F=n.Buffer.from(F,"utf8"),E&&!E.destroyed&&E.push(F)}function I(N,F,K){if(_.bufferedAmount>C){setTimeout(I,k,N,F,K);return}S&&typeof N=="string"&&(N=n.Buffer.from(N,"utf8"));try{_.send(N)}catch(L){return K(L)}K()}function A(N){_.close(),N()}return b};e.browserStreamBuilder=v}),KF={};Fg(KF,{Server:()=>Wi,Socket:()=>Wi,Stream:()=>Wi,_createServerHandle:()=>Wi,_normalizeArgs:()=>Wi,_setSimultaneousAccepts:()=>Wi,connect:()=>Wi,createConnection:()=>Wi,createServer:()=>Wi,default:()=>gue,isIP:()=>Wi,isIPv4:()=>Wi,isIPv6:()=>Wi});function Wi(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var gue,vue=Co(()=>{Zt(),Jt(),Qt(),gue={_createServerHandle:Wi,_normalizeArgs:Wi,_setSimultaneousAccepts:Wi,connect:Wi,createConnection:Wi,createServer:Wi,isIP:Wi,isIPv4:Wi,isIPv6:Wi,Server:Wi,Socket:Wi,Stream:Wi}}),wK=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((vue(),Si(KF))),r=t(Pf()),i=(0,r.default)("mqttjs:tcp"),a=(o,s)=>{s.port=s.port||1883,s.hostname=s.hostname||s.host||"localhost";let{port:l,path:c}=s,u=s.hostname;return i("port %d and host %s",l,u),n.default.createConnection({port:l,host:u,path:c})};e.default=a}),yue={};Fg(yue,{default:()=>bue});var bue,X7e=Co(()=>{Zt(),Jt(),Qt(),bue={}}),xK=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((X7e(),Si(yue))),r=t((vue(),Si(KF))),i=t(Pf()),a=(0,i.default)("mqttjs:tls"),o=(s,l)=>{l.port=l.port||8883,l.host=l.hostname||l.host||"localhost",r.default.isIP(l.host)===0&&(l.servername=l.host),l.rejectUnauthorized=l.rejectUnauthorized!==!1,delete l.path,a("port %d host %s rejectUnauthorized %b",l.port,l.host,l.rejectUnauthorized);let c=n.default.connect(l);c.on("secureConnect",()=>{l.rejectUnauthorized&&!c.authorized?c.emit("error",new Error("TLS not authorized")):c.removeListener("error",u)});function u(f){l.rejectUnauthorized&&s.emit("error",f),c.end()}return c.on("error",u),c};e.default=o}),SK=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ko(),Si(_o)),n=zg(),r=qF(),i,a,o;function s(){let p=new n.Transform;return p._write=(h,m,g)=>{i.send({data:h.buffer,success(){g()},fail(v){g(new Error(v))}})},p._flush=h=>{i.close({success(){h()}})},p}function l(p){p.hostname||(p.hostname="localhost"),p.path||(p.path="/"),p.wsOptions||(p.wsOptions={})}function c(p,h){let m=p.protocol==="wxs"?"wss":"ws",g=`${m}://${p.hostname}${p.path}`;return p.port&&p.port!==80&&p.port!==443&&(g=`${m}://${p.hostname}:${p.port}${p.path}`),typeof p.transformWsUrl=="function"&&(g=p.transformWsUrl(g,p,h)),g}function u(){i.onOpen(()=>{o.socketReady()}),i.onMessage(p=>{let{data:h}=p;h instanceof ArrayBuffer?h=t.Buffer.from(h):h=t.Buffer.from(h,"utf8"),a.push(h)}),i.onClose(()=>{o.emit("close"),o.end(),o.destroy()}),i.onError(p=>{let h=new Error(p.errMsg);o.destroy(h)})}var f=(p,h)=>{if(h.hostname=h.hostname||h.host,!h.hostname)throw new Error("Could not determine host. Specify host manually.");let m=h.protocolId==="MQIsdp"&&h.protocolVersion===3?"mqttv3.1":"mqtt";l(h);let g=c(h,p);i=wx.connectSocket({url:g,protocols:[m]}),a=s(),o=new r.BufferedDuplex(h,a,i),o._destroy=(y,w)=>{i.close({success(){w&&w(y)}})};let v=o.destroy;return o.destroy=(y,w)=>(o.destroy=v,setTimeout(()=>{i.close({fail(){o._destroy(y,w)}})},0),o),u(),o};e.default=f}),CK=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ko(),Si(_o)),n=zg(),r=qF(),i,a,o,s=!1;function l(){let h=new n.Transform;return h._write=(m,g,v)=>{i.sendSocketMessage({data:m.buffer,success(){v()},fail(){v(new Error)}})},h._flush=m=>{i.closeSocket({success(){m()}})},h}function c(h){h.hostname||(h.hostname="localhost"),h.path||(h.path="/"),h.wsOptions||(h.wsOptions={})}function u(h,m){let g=h.protocol==="alis"?"wss":"ws",v=`${g}://${h.hostname}${h.path}`;return h.port&&h.port!==80&&h.port!==443&&(v=`${g}://${h.hostname}:${h.port}${h.path}`),typeof h.transformWsUrl=="function"&&(v=h.transformWsUrl(v,h,m)),v}function f(){s||(s=!0,i.onSocketOpen(()=>{o.socketReady()}),i.onSocketMessage(h=>{if(typeof h.data=="string"){let m=t.Buffer.from(h.data,"base64");a.push(m)}else{let m=new FileReader;m.addEventListener("load",()=>{let g=m.result;g instanceof ArrayBuffer?g=t.Buffer.from(g):g=t.Buffer.from(g,"utf8"),a.push(g)}),m.readAsArrayBuffer(h.data)}}),i.onSocketClose(()=>{o.end(),o.destroy()}),i.onSocketError(h=>{o.destroy(h)}))}var p=(h,m)=>{if(m.hostname=m.hostname||m.host,!m.hostname)throw new Error("Could not determine host. Specify host manually.");let g=m.protocolId==="MQIsdp"&&m.protocolVersion===3?"mqttv3.1":"mqtt";c(m);let v=u(m,h);return i=m.my,i.connectSocket({url:v,protocols:g}),a=l(),o=new r.BufferedDuplex(m,a,i),f(),o};e.default=p}),Z7e=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.connectAsync=void 0;var n=t(Pf()),r=t((G7e(),Si(zce))),i=t(MI()),a=t(vE());typeof(li==null?void 0:li.nextTick)!="function"&&(li.nextTick=setImmediate);var o=(0,n.default)("mqttjs"),s=null;function l(f){let p;f.auth&&(p=f.auth.match(/^(.+):(.+)$/),p?(f.username=p[1],f.password=p[2]):f.username=f.auth)}function c(f,p){var h,m,g,v;if(o("connecting to an MQTT broker..."),typeof f=="object"&&!p&&(p=f,f=""),p=p||{},f&&typeof f=="string"){let b=r.default.parse(f,!0),C={};if(b.port!=null&&(C.port=Number(b.port)),C.host=b.hostname,C.query=b.query,C.auth=b.auth,C.protocol=b.protocol,C.path=b.path,C.protocol=(h=C.protocol)===null||h===void 0?void 0:h.replace(/:$/,""),p=Object.assign(Object.assign({},C),p),!p.protocol)throw new Error("Missing protocol")}if(p.unixSocket=p.unixSocket||((m=p.protocol)===null||m===void 0?void 0:m.includes("+unix")),p.unixSocket?p.protocol=p.protocol.replace("+unix",""):!(!((g=p.protocol)===null||g===void 0)&&g.startsWith("ws"))&&!(!((v=p.protocol)===null||v===void 0)&&v.startsWith("wx"))&&delete p.path,l(p),p.query&&typeof p.query.clientId=="string"&&(p.clientId=p.query.clientId),p.cert&&p.key)if(p.protocol){if(["mqtts","wss","wxs","alis"].indexOf(p.protocol)===-1)switch(p.protocol){case"mqtt":p.protocol="mqtts";break;case"ws":p.protocol="wss";break;case"wx":p.protocol="wxs";break;case"ali":p.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${p.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(s||(s={},!a.default&&!p.forceNativeWebSocket?(s.ws=iS().streamBuilder,s.wss=iS().streamBuilder,s.mqtt=wK().default,s.tcp=wK().default,s.ssl=xK().default,s.tls=s.ssl,s.mqtts=xK().default):(s.ws=iS().browserStreamBuilder,s.wss=iS().browserStreamBuilder,s.wx=SK().default,s.wxs=SK().default,s.ali=CK().default,s.alis=CK().default)),!s[p.protocol]){let b=["mqtts","wss"].indexOf(p.protocol)!==-1;p.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((C,k)=>b&&k%2===0?!1:typeof s[C]=="function")[0]}if(p.clean===!1&&!p.clientId)throw new Error("Missing clientId for unclean clients");p.protocol&&(p.defaultProtocol=p.protocol);function y(b){return p.servers&&((!b._reconnectCount||b._reconnectCount===p.servers.length)&&(b._reconnectCount=0),p.host=p.servers[b._reconnectCount].host,p.port=p.servers[b._reconnectCount].port,p.protocol=p.servers[b._reconnectCount].protocol?p.servers[b._reconnectCount].protocol:p.defaultProtocol,p.hostname=p.host,b._reconnectCount++),o("calling streambuilder for",p.protocol),s[p.protocol](b,p)}let w=new i.default(y,p);return w.on("error",()=>{}),w}function u(f,p,h=!0){return new Promise((m,g)=>{let v=c(f,p),y={connect:b=>{w(),m(v)},end:()=>{w(),m(v)},error:b=>{w(),v.end(),g(b)}};h===!1&&(y.close=()=>{y.error(new Error("Couldn't connect to server"))});function w(){Object.keys(y).forEach(b=>{v.off(b,y[b])})}Object.keys(y).forEach(b=>{v.on(b,y[b])})})}e.connectAsync=u,e.default=c}),_K=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__createBinding||(Object.create?function(h,m,g,v){v===void 0&&(v=g);var y=Object.getOwnPropertyDescriptor(m,g);(!y||("get"in y?!m.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return m[g]}}),Object.defineProperty(h,v,y)}:function(h,m,g,v){v===void 0&&(v=g),h[v]=m[g]}),n=e&&e.__setModuleDefault||(Object.create?function(h,m){Object.defineProperty(h,"default",{enumerable:!0,value:m})}:function(h,m){h.default=m}),r=e&&e.__importStar||function(h){if(h&&h.__esModule)return h;var m={};if(h!=null)for(var g in h)g!=="default"&&Object.prototype.hasOwnProperty.call(h,g)&&t(m,h,g);return n(m,h),m},i=e&&e.__exportStar||function(h,m){for(var g in h)g!=="default"&&!Object.prototype.hasOwnProperty.call(m,g)&&t(m,h,g)},a=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=e.KeepaliveManager=e.UniqueMessageIdProvider=e.DefaultMessageIdProvider=e.Store=e.MqttClient=e.connectAsync=e.connect=e.Client=void 0;var o=a(MI());e.MqttClient=o.default;var s=a(yce());e.DefaultMessageIdProvider=s.default;var l=a(R7e());e.UniqueMessageIdProvider=l.default;var c=a(bce());e.Store=c.default;var u=r(Z7e());e.connect=u.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return u.connectAsync}});var f=a(Nce());e.KeepaliveManager=f.default,e.Client=o.default,i(MI(),e),i(my(),e);var p=gE();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return p.ReasonCodes}})}),Q7e=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__createBinding||(Object.create?function(o,s,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(s,l);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(o,c,u)}:function(o,s,l,c){c===void 0&&(c=l),o[c]=s[l]}),n=e&&e.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),r=e&&e.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var l in o)l!=="default"&&Object.prototype.hasOwnProperty.call(o,l)&&t(s,o,l);return n(s,o),s},i=e&&e.__exportStar||function(o,s){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,o,l)};Object.defineProperty(e,"__esModule",{value:!0});var a=r(_K());e.default=a,i(_K(),e)});const J7e=Q7e();/*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) -*/var $n={};(function(e){var t=typeof Object.defineProperties=="function"?Object.defineProperty:function(T,L,J){T!=Array.prototype&&T!=Object.prototype&&(T[L]=J.value)},n=(typeof window<"u"&&window===oi||typeof oi<"u"&&oi!=null,oi);function r(T,L){if(L){var J=n;T=T.split(".");for(var ke=0;ke"u"||J.execScript("var "+T[0]);for(var ke;T.length&&(ke=T.shift());)T.length||L===void 0?J[ke]&&J[ke]!==Object.prototype[ke]?J=J[ke]:J=J[ke]={}:J[ke]=L}function h(T){var L=typeof T;if(L=="object")if(T){if(T instanceof Array)return"array";if(T instanceof Object)return L;var J=Object.prototype.toString.call(T);if(J=="[object Window]")return"object";if(J=="[object Array]"||typeof T.length=="number"&&typeof T.splice<"u"&&typeof T.propertyIsEnumerable<"u"&&!T.propertyIsEnumerable("splice"))return"array";if(J=="[object Function]"||typeof T.call<"u"&&typeof T.propertyIsEnumerable<"u"&&!T.propertyIsEnumerable("call"))return"function"}else return"null";else if(L=="function"&&typeof T.call>"u")return"object";return L}function m(T){var L=typeof T;return L=="object"&&T!=null||L=="function"}function g(T,L,J){p(T,L,J)}function v(T,L){function J(){}J.prototype=L.prototype,T.prototype=new J,T.prototype.constructor=T}var y="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function b(T,L){for(var J,ke,je=1;je=arguments.length?Array.prototype.slice.call(T,L):Array.prototype.slice.call(T,L,J)}function S(T,L,J,ke){var je="Assertion failed";if(J){je+=": "+J;var it=ke}else T&&(je+=": "+T,it=L);throw Error(je,it||[])}function C(T,L,J){for(var ke=[],je=2;je=T.length)return String.fromCharCode.apply(null,T);for(var L="",J=0;J>2;je=(je&3)<<4|Ft>>4,Ft=(Ft&15)<<2|Tn>>6,Tn&=63,an||(Tn=64,it||(Ft=64)),J.push(L[Er],L[je],L[Ft]||"",L[Tn]||"")}return J.join("")}function Z(T){var L=T.length,J=3*L/4;J%3?J=Math.floor(J):"=.".indexOf(T[L-1])!=-1&&(J="=.".indexOf(T[L-2])!=-1?J-2:J-1);var ke=new Uint8Array(J),je=0;return ee(T,function(it){ke[je++]=it}),ke.subarray(0,je)}function ee(T,L){function J(Tn){for(;ke>4),Ft!=64&&(L(it<<4&240|Ft>>2),an!=64&&L(Ft<<6&192|an))}}function ie(){if(!B){B={};for(var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),L=["+/=","+/","-_=","-_.","-_"],J=0;5>J;J++){var ke=T.concat(L[J].split(""));K[J]=ke;for(var je=0;je>>0;T=Math.floor((T-L)/4294967296)>>>0,Y=L,X=T}p("jspb.utils.splitUint64",ae,void 0);function oe(T){var L=0>T;T=Math.abs(T);var J=T>>>0;T=Math.floor((T-J)/4294967296),T>>>=0,L&&(T=~T>>>0,J=(~J>>>0)+1,4294967295T;T=2*Math.abs(T),ae(T),T=Y;var J=X;L&&(T==0?J==0?J=T=4294967295:(J--,T=4294967295):T--),Y=T,X=J}p("jspb.utils.splitZigzag64",le,void 0);function ce(T){var L=0>T?1:0;if(T=L?-T:T,T===0)0<1/T?Y=X=0:(X=0,Y=2147483648);else if(isNaN(T))X=0,Y=2147483647;else if(34028234663852886e22>>0;else if(11754943508222875e-54>T)T=Math.round(T/Math.pow(2,-149)),X=0,Y=(L<<31|T)>>>0;else{var J=Math.floor(Math.log(T)/Math.LN2);T*=Math.pow(2,-J),T=Math.round(8388608*T),16777216<=T&&++J,X=0,Y=(L<<31|J+127<<23|T&8388607)>>>0}}p("jspb.utils.splitFloat32",ce,void 0);function pe(T){var L=0>T?1:0;if(T=L?-T:T,T===0)X=0<1/T?0:2147483648,Y=0;else if(isNaN(T))X=2147483647,Y=4294967295;else if(17976931348623157e292>>0,Y=0;else if(22250738585072014e-324>T)T/=Math.pow(2,-1074),X=(L<<31|T/4294967296)>>>0,Y=T>>>0;else{var J=T,ke=0;if(2<=J)for(;2<=J&&1023>ke;)ke++,J/=2;else for(;1>J&&-1022>>0,Y=4503599627370496*T>>>0}}p("jspb.utils.splitFloat64",pe,void 0);function me(T){var L=T.charCodeAt(4),J=T.charCodeAt(5),ke=T.charCodeAt(6),je=T.charCodeAt(7);Y=T.charCodeAt(0)+(T.charCodeAt(1)<<8)+(T.charCodeAt(2)<<16)+(T.charCodeAt(3)<<24)>>>0,X=L+(J<<8)+(ke<<16)+(je<<24)>>>0}p("jspb.utils.splitHash64",me,void 0);function re(T,L){return 4294967296*L+(T>>>0)}p("jspb.utils.joinUint64",re,void 0);function fe(T,L){var J=L&2147483648;return J&&(T=~T+1>>>0,L=~L>>>0,T==0&&(L=L+1>>>0)),T=re(T,L),J?-T:T}p("jspb.utils.joinInt64",fe,void 0);function ve(T,L,J){var ke=L>>31;return J(T<<1^ke,(L<<1|T>>>31)^ke)}p("jspb.utils.toZigzag64",ve,void 0);function $e(T,L){return Ce(T,L,fe)}p("jspb.utils.joinZigzag64",$e,void 0);function Ce(T,L,J){var ke=-(T&1);return J((T>>>1|L<<31)^ke,L>>>1^ke)}p("jspb.utils.fromZigzag64",Ce,void 0);function be(T){var L=2*(T>>31)+1,J=T>>>23&255;return T&=8388607,J==255?T?NaN:1/0*L:J==0?L*Math.pow(2,-149)*T:L*Math.pow(2,J-150)*(T+Math.pow(2,23))}p("jspb.utils.joinFloat32",be,void 0);function Se(T,L){var J=2*(L>>31)+1,ke=L>>>20&2047;return T=4294967296*(L&1048575)+T,ke==2047?T?NaN:1/0*J:ke==0?J*Math.pow(2,-1074)*T:J*Math.pow(2,ke-1075)*(T+4503599627370496)}p("jspb.utils.joinFloat64",Se,void 0);function we(T,L){return String.fromCharCode(T>>>0&255,T>>>8&255,T>>>16&255,T>>>24&255,L>>>0&255,L>>>8&255,L>>>16&255,L>>>24&255)}p("jspb.utils.joinHash64",we,void 0),p("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);function se(T,L){function J(je,it){return je=je?String(je):"",it?"0000000".slice(je.length)+je:je}if(2097151>=L)return""+re(T,L);var ke=(T>>>24|L<<8)>>>0&16777215;return L=L>>16&65535,T=(T&16777215)+6777216*ke+6710656*L,ke+=8147497*L,L*=2,1e7<=T&&(ke+=Math.floor(T/1e7),T%=1e7),1e7<=ke&&(L+=Math.floor(ke/1e7),ke%=1e7),J(L,0)+J(ke,L)+J(T,1)}p("jspb.utils.joinUnsignedDecimalString",se,void 0);function ye(T,L){var J=L&2147483648;return J&&(T=~T+1>>>0,L=~L+(T==0?1:0)>>>0),T=se(T,L),J?"-"+T:T}p("jspb.utils.joinSignedDecimalString",ye,void 0);function Oe(T,L){me(T),T=Y;var J=X;return L?ye(T,J):se(T,J)}p("jspb.utils.hash64ToDecimalString",Oe,void 0),p("jspb.utils.hash64ArrayToDecimalStrings",function(T,L){for(var J=Array(T.length),ke=0;keTn&&(Ft!==1||0>>=8}function J(){for(var Ft=0;8>Ft;Ft++)je[Ft]=~je[Ft]&255}C(0T?48+T:87+T)}function G(T){return 97<=T?T-97+10:T-48}p("jspb.utils.hash64ToHexString",function(T){var L=Array(18);L[0]="0",L[1]="x";for(var J=0;8>J;J++){var ke=T.charCodeAt(7-J);L[2*J+2]=H(ke>>4),L[2*J+3]=H(ke&15)}return L.join("")},void 0),p("jspb.utils.hexStringToHash64",function(T){T=T.toLowerCase(),C(T.length==18),C(T[0]=="0"),C(T[1]=="x");for(var L="",J=0;8>J;J++)L=String.fromCharCode(16*G(T.charCodeAt(2*J+2))+G(T.charCodeAt(2*J+3)))+L;return L},void 0),p("jspb.utils.hash64ToNumber",function(T,L){me(T),T=Y;var J=X;return L?fe(T,J):re(T,J)},void 0),p("jspb.utils.numberToHash64",function(T){return oe(T),we(Y,X)},void 0),p("jspb.utils.countVarints",function(T,L,J){for(var ke=0,je=L;je>7;return J-L-ke},void 0),p("jspb.utils.countVarintFields",function(T,L,J,ke){var je=0;if(ke*=8,128>ke)for(;L>=7}if(T[L++]!=it)break;for(je++;it=T[L++],(it&128)!=0;);}return je},void 0);function de(T,L,J,ke,je){var it=0;if(128>ke)for(;L>=7}if(T[L++]!=Ft)break;it++,L+=je}return it}p("jspb.utils.countFixed32Fields",function(T,L,J,ke){return de(T,L,J,8*ke+5,4)},void 0),p("jspb.utils.countFixed64Fields",function(T,L,J,ke){return de(T,L,J,8*ke+1,8)},void 0),p("jspb.utils.countDelimitedFields",function(T,L,J,ke){var je=0;for(ke=8*ke+2;L>=7}if(T[L++]!=it)break;je++;for(var Ft=0,an=1;it=T[L++],Ft+=(it&127)*an,an*=128,(it&128)!=0;);L+=Ft}return je},void 0),p("jspb.utils.debugBytesToTextFormat",function(T){var L='"';if(T){T=xe(T);for(var J=0;JT[J]&&(L+="0"),L+=T[J].toString(16)}return L+'"'},void 0),p("jspb.utils.debugScalarToTextFormat",function(T){if(typeof T=="string"){T=String(T);for(var L=['"'],J=0;Jje||(je=ke,je in F?ke=F[je]:je in V?ke=F[je]=V[je]:(Ft=je.charCodeAt(0),31Ft?ke=je:(256>Ft?(ke="\\x",(16>Ft||256Ft&&(ke+="0")),ke+=Ft.toString(16).toUpperCase()),ke=F[je]=ke)),Ft=ke),L[it]=Ft}L.push('"'),T=L.join("")}else T=T.toString();return T},void 0),p("jspb.utils.stringToByteArray",function(T){for(var L=new Uint8Array(T.length),J=0;JUe.length&&Ue.push(this)},he.prototype.free=he.prototype.Ca,he.prototype.clone=function(){return We(this.b,this.h,this.c-this.h)},he.prototype.clone=he.prototype.clone,he.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},he.prototype.clear=he.prototype.clear,he.prototype.Y=function(){return this.b},he.prototype.getBuffer=he.prototype.Y,he.prototype.H=function(T,L,J){this.b=xe(T),this.h=L!==void 0?L:0,this.c=J!==void 0?this.h+J:this.b.length,this.a=this.h},he.prototype.setBlock=he.prototype.H,he.prototype.Db=function(){return this.c},he.prototype.getEnd=he.prototype.Db,he.prototype.setEnd=function(T){this.c=T},he.prototype.setEnd=he.prototype.setEnd,he.prototype.reset=function(){this.a=this.h},he.prototype.reset=he.prototype.reset,he.prototype.B=function(){return this.a},he.prototype.getCursor=he.prototype.B,he.prototype.Ma=function(T){this.a=T},he.prototype.setCursor=he.prototype.Ma,he.prototype.advance=function(T){this.a+=T,C(this.a<=this.c)},he.prototype.advance=he.prototype.advance,he.prototype.ya=function(){return this.a==this.c},he.prototype.atEnd=he.prototype.ya,he.prototype.Qb=function(){return this.a>this.c},he.prototype.pastEnd=he.prototype.Qb,he.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},he.prototype.getError=he.prototype.getError,he.prototype.w=function(T){for(var L=128,J=0,ke=0,je=0;4>je&&128<=L;je++)L=this.b[this.a++],J|=(L&127)<<7*je;if(128<=L&&(L=this.b[this.a++],J|=(L&127)<<28,ke|=(L&127)>>4),128<=L)for(je=0;5>je&&128<=L;je++)L=this.b[this.a++],ke|=(L&127)<<7*je+3;if(128>L)return T(J>>>0,ke>>>0);M("Failed to read varint, encoding is invalid."),this.v=!0},he.prototype.readSplitVarint64=he.prototype.w,he.prototype.ea=function(T){return this.w(function(L,J){return Ce(L,J,T)})},he.prototype.readSplitZigzagVarint64=he.prototype.ea,he.prototype.ta=function(T){var L=this.b,J=this.a;this.a+=8;for(var ke=0,je=0,it=J+7;it>=J;it--)ke=ke<<8|L[it],je=je<<8|L[it+4];return T(ke,je)},he.prototype.readSplitFixed64=he.prototype.ta,he.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++},he.prototype.skipVarint=he.prototype.kb,he.prototype.mb=function(T){for(;128>>=7;this.a--},he.prototype.unskipVarint=he.prototype.mb,he.prototype.o=function(){var T=this.b,L=T[this.a],J=L&127;return 128>L?(this.a+=1,C(this.a<=this.c),J):(L=T[this.a+1],J|=(L&127)<<7,128>L?(this.a+=2,C(this.a<=this.c),J):(L=T[this.a+2],J|=(L&127)<<14,128>L?(this.a+=3,C(this.a<=this.c),J):(L=T[this.a+3],J|=(L&127)<<21,128>L?(this.a+=4,C(this.a<=this.c),J):(L=T[this.a+4],J|=(L&15)<<28,128>L?(this.a+=5,C(this.a<=this.c),J>>>0):(this.a+=5,128<=T[this.a++]&&128<=T[this.a++]&&128<=T[this.a++]&&128<=T[this.a++]&&128<=T[this.a++]&&C(!1),C(this.a<=this.c),J)))))},he.prototype.readUnsignedVarint32=he.prototype.o,he.prototype.da=function(){return~~this.o()},he.prototype.readSignedVarint32=he.prototype.da,he.prototype.O=function(){return this.o().toString()},he.prototype.Ea=function(){return this.da().toString()},he.prototype.readSignedVarint32String=he.prototype.Ea,he.prototype.Ia=function(){var T=this.o();return T>>>1^-(T&1)},he.prototype.readZigzagVarint32=he.prototype.Ia,he.prototype.Ga=function(){return this.w(re)},he.prototype.readUnsignedVarint64=he.prototype.Ga,he.prototype.Ha=function(){return this.w(se)},he.prototype.readUnsignedVarint64String=he.prototype.Ha,he.prototype.sa=function(){return this.w(fe)},he.prototype.readSignedVarint64=he.prototype.sa,he.prototype.Fa=function(){return this.w(ye)},he.prototype.readSignedVarint64String=he.prototype.Fa,he.prototype.Ja=function(){return this.w($e)},he.prototype.readZigzagVarint64=he.prototype.Ja,he.prototype.fb=function(){return this.ea(we)},he.prototype.readZigzagVarintHash64=he.prototype.fb,he.prototype.Ka=function(){return this.ea(ye)},he.prototype.readZigzagVarint64String=he.prototype.Ka,he.prototype.Gc=function(){var T=this.b[this.a];return this.a+=1,C(this.a<=this.c),T},he.prototype.readUint8=he.prototype.Gc,he.prototype.Ec=function(){var T=this.b[this.a],L=this.b[this.a+1];return this.a+=2,C(this.a<=this.c),T<<0|L<<8},he.prototype.readUint16=he.prototype.Ec,he.prototype.m=function(){var T=this.b[this.a],L=this.b[this.a+1],J=this.b[this.a+2],ke=this.b[this.a+3];return this.a+=4,C(this.a<=this.c),(T<<0|L<<8|J<<16|ke<<24)>>>0},he.prototype.readUint32=he.prototype.m,he.prototype.ga=function(){var T=this.m(),L=this.m();return re(T,L)},he.prototype.readUint64=he.prototype.ga,he.prototype.ha=function(){var T=this.m(),L=this.m();return se(T,L)},he.prototype.readUint64String=he.prototype.ha,he.prototype.Xb=function(){var T=this.b[this.a];return this.a+=1,C(this.a<=this.c),T<<24>>24},he.prototype.readInt8=he.prototype.Xb,he.prototype.Vb=function(){var T=this.b[this.a],L=this.b[this.a+1];return this.a+=2,C(this.a<=this.c),(T<<0|L<<8)<<16>>16},he.prototype.readInt16=he.prototype.Vb,he.prototype.P=function(){var T=this.b[this.a],L=this.b[this.a+1],J=this.b[this.a+2],ke=this.b[this.a+3];return this.a+=4,C(this.a<=this.c),T<<0|L<<8|J<<16|ke<<24},he.prototype.readInt32=he.prototype.P,he.prototype.ba=function(){var T=this.m(),L=this.m();return fe(T,L)},he.prototype.readInt64=he.prototype.ba,he.prototype.ca=function(){var T=this.m(),L=this.m();return ye(T,L)},he.prototype.readInt64String=he.prototype.ca,he.prototype.aa=function(){var T=this.m();return be(T)},he.prototype.readFloat=he.prototype.aa,he.prototype.Z=function(){var T=this.m(),L=this.m();return Se(T,L)},he.prototype.readDouble=he.prototype.Z,he.prototype.pa=function(){return!!this.b[this.a++]},he.prototype.readBool=he.prototype.pa,he.prototype.ra=function(){return this.da()},he.prototype.readEnum=he.prototype.ra,he.prototype.fa=function(T){var L=this.b,J=this.a;T=J+T;for(var ke=[],je="";Jit)ke.push(it);else{if(192>it)continue;if(224>it){var Ft=L[J++];ke.push((it&31)<<6|Ft&63)}else if(240>it){Ft=L[J++];var an=L[J++];ke.push((it&15)<<12|(Ft&63)<<6|an&63)}else if(248>it){Ft=L[J++],an=L[J++];var Tn=L[J++];it=(it&7)<<18|(Ft&63)<<12|(an&63)<<6|Tn&63,it-=65536,ke.push((it>>10&1023)+55296,(it&1023)+56320)}}8192<=ke.length&&(je+=String.fromCharCode.apply(null,ke),ke.length=0)}return je+=D(ke),this.a=J,je},he.prototype.readString=he.prototype.fa,he.prototype.Dc=function(){var T=this.o();return this.fa(T)},he.prototype.readStringWithLength=he.prototype.Dc,he.prototype.qa=function(T){if(0>T||this.a+T>this.b.length)return this.v=!0,M("Invalid byte length!"),new Uint8Array(0);var L=this.b.subarray(this.a,this.a+T);return this.a+=T,C(this.a<=this.c),L},he.prototype.readBytes=he.prototype.qa,he.prototype.ia=function(){return this.w(we)},he.prototype.readVarintHash64=he.prototype.ia,he.prototype.$=function(){var T=this.b,L=this.a,J=T[L],ke=T[L+1],je=T[L+2],it=T[L+3],Ft=T[L+4],an=T[L+5],Tn=T[L+6];return T=T[L+7],this.a+=8,String.fromCharCode(J,ke,je,it,Ft,an,Tn,T)},he.prototype.readFixedHash64=he.prototype.$;function ge(T,L,J){this.a=We(T,L,J),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}p("jspb.BinaryReader",ge,void 0);var ze=[];ge.clearInstanceCache=function(){ze=[]},ge.getInstanceCacheLength=function(){return ze.length};function Ve(T,L,J){if(ze.length){var ke=ze.pop();return T&&ke.a.H(T,L,J),ke}return new ge(T,L,J)}ge.alloc=Ve,ge.prototype.zb=Ve,ge.prototype.alloc=ge.prototype.zb,ge.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>ze.length&&ze.push(this)},ge.prototype.free=ge.prototype.Ca,ge.prototype.Fb=function(){return this.O},ge.prototype.getFieldCursor=ge.prototype.Fb,ge.prototype.B=function(){return this.a.B()},ge.prototype.getCursor=ge.prototype.B,ge.prototype.Y=function(){return this.a.Y()},ge.prototype.getBuffer=ge.prototype.Y,ge.prototype.Hb=function(){return this.c},ge.prototype.getFieldNumber=ge.prototype.Hb,ge.prototype.Lb=function(){return this.b},ge.prototype.getWireType=ge.prototype.Lb,ge.prototype.Mb=function(){return this.b==2},ge.prototype.isDelimited=ge.prototype.Mb,ge.prototype.bb=function(){return this.b==4},ge.prototype.isEndGroup=ge.prototype.bb,ge.prototype.getError=function(){return this.h||this.a.getError()},ge.prototype.getError=ge.prototype.getError,ge.prototype.H=function(T,L,J){this.a.H(T,L,J),this.b=this.c=-1},ge.prototype.setBlock=ge.prototype.H,ge.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ge.prototype.reset=ge.prototype.reset,ge.prototype.advance=function(T){this.a.advance(T)},ge.prototype.advance=ge.prototype.advance,ge.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return M("Decoder hit an error"),!1;this.O=this.a.B();var T=this.a.o(),L=T>>>3;return T&=7,T!=0&&T!=5&&T!=1&&T!=2&&T!=3&&T!=4?(M("Invalid wire type: %s (at position %s)",T,this.O),this.h=!0,!1):(this.c=L,this.b=T,!0)},ge.prototype.nextField=ge.prototype.oa,ge.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ge.prototype.unskipHeader=ge.prototype.Oa,ge.prototype.Lc=function(){var T=this.c;for(this.Oa();this.oa()&&this.c==T;)this.C();this.a.ya()||this.Oa()},ge.prototype.skipMatchingFields=ge.prototype.Lc,ge.prototype.lb=function(){this.b!=0?(M("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ge.prototype.skipVarintField=ge.prototype.lb,ge.prototype.gb=function(){if(this.b!=2)M("Invalid wire type for skipDelimitedField"),this.C();else{var T=this.a.o();this.a.advance(T)}},ge.prototype.skipDelimitedField=ge.prototype.gb,ge.prototype.hb=function(){this.b!=5?(M("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ge.prototype.skipFixed32Field=ge.prototype.hb,ge.prototype.ib=function(){this.b!=1?(M("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ge.prototype.skipFixed64Field=ge.prototype.ib,ge.prototype.jb=function(){var T=this.c;do{if(!this.oa()){M("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=T&&(M("Unmatched end-group tag"),this.h=!0);break}this.C()}while(!0)},ge.prototype.skipGroup=ge.prototype.jb,ge.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:M("Invalid wire encoding for field.")}},ge.prototype.skipField=ge.prototype.C,ge.prototype.Hc=function(T,L){this.v===null&&(this.v={}),C(!this.v[T]),this.v[T]=L},ge.prototype.registerReadCallback=ge.prototype.Hc,ge.prototype.Ic=function(T){return C(this.v!==null),T=this.v[T],C(T),T(this)},ge.prototype.runReadCallback=ge.prototype.Ic,ge.prototype.Yb=function(T,L){C(this.b==2);var J=this.a.c,ke=this.a.o();ke=this.a.B()+ke,this.a.setEnd(ke),L(T,this),this.a.Ma(ke),this.a.setEnd(J)},ge.prototype.readMessage=ge.prototype.Yb,ge.prototype.Ub=function(T,L,J){C(this.b==3),C(this.c==T),J(L,this),this.h||this.b==4||(M("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ge.prototype.readGroup=ge.prototype.Ub,ge.prototype.Gb=function(){C(this.b==2);var T=this.a.o(),L=this.a.B(),J=L+T;return T=We(this.a.Y(),L,T),this.a.Ma(J),T},ge.prototype.getFieldDecoder=ge.prototype.Gb,ge.prototype.P=function(){return C(this.b==0),this.a.da()},ge.prototype.readInt32=ge.prototype.P,ge.prototype.Wb=function(){return C(this.b==0),this.a.Ea()},ge.prototype.readInt32String=ge.prototype.Wb,ge.prototype.ba=function(){return C(this.b==0),this.a.sa()},ge.prototype.readInt64=ge.prototype.ba,ge.prototype.ca=function(){return C(this.b==0),this.a.Fa()},ge.prototype.readInt64String=ge.prototype.ca,ge.prototype.m=function(){return C(this.b==0),this.a.o()},ge.prototype.readUint32=ge.prototype.m,ge.prototype.Fc=function(){return C(this.b==0),this.a.O()},ge.prototype.readUint32String=ge.prototype.Fc,ge.prototype.ga=function(){return C(this.b==0),this.a.Ga()},ge.prototype.readUint64=ge.prototype.ga,ge.prototype.ha=function(){return C(this.b==0),this.a.Ha()},ge.prototype.readUint64String=ge.prototype.ha,ge.prototype.zc=function(){return C(this.b==0),this.a.Ia()},ge.prototype.readSint32=ge.prototype.zc,ge.prototype.Ac=function(){return C(this.b==0),this.a.Ja()},ge.prototype.readSint64=ge.prototype.Ac,ge.prototype.Bc=function(){return C(this.b==0),this.a.Ka()},ge.prototype.readSint64String=ge.prototype.Bc,ge.prototype.Rb=function(){return C(this.b==5),this.a.m()},ge.prototype.readFixed32=ge.prototype.Rb,ge.prototype.Sb=function(){return C(this.b==1),this.a.ga()},ge.prototype.readFixed64=ge.prototype.Sb,ge.prototype.Tb=function(){return C(this.b==1),this.a.ha()},ge.prototype.readFixed64String=ge.prototype.Tb,ge.prototype.vc=function(){return C(this.b==5),this.a.P()},ge.prototype.readSfixed32=ge.prototype.vc,ge.prototype.wc=function(){return C(this.b==5),this.a.P().toString()},ge.prototype.readSfixed32String=ge.prototype.wc,ge.prototype.xc=function(){return C(this.b==1),this.a.ba()},ge.prototype.readSfixed64=ge.prototype.xc,ge.prototype.yc=function(){return C(this.b==1),this.a.ca()},ge.prototype.readSfixed64String=ge.prototype.yc,ge.prototype.aa=function(){return C(this.b==5),this.a.aa()},ge.prototype.readFloat=ge.prototype.aa,ge.prototype.Z=function(){return C(this.b==1),this.a.Z()},ge.prototype.readDouble=ge.prototype.Z,ge.prototype.pa=function(){return C(this.b==0),!!this.a.o()},ge.prototype.readBool=ge.prototype.pa,ge.prototype.ra=function(){return C(this.b==0),this.a.sa()},ge.prototype.readEnum=ge.prototype.ra,ge.prototype.fa=function(){C(this.b==2);var T=this.a.o();return this.a.fa(T)},ge.prototype.readString=ge.prototype.fa,ge.prototype.qa=function(){C(this.b==2);var T=this.a.o();return this.a.qa(T)},ge.prototype.readBytes=ge.prototype.qa,ge.prototype.ia=function(){return C(this.b==0),this.a.ia()},ge.prototype.readVarintHash64=ge.prototype.ia,ge.prototype.Cc=function(){return C(this.b==0),this.a.fb()},ge.prototype.readSintHash64=ge.prototype.Cc,ge.prototype.w=function(T){return C(this.b==0),this.a.w(T)},ge.prototype.readSplitVarint64=ge.prototype.w,ge.prototype.ea=function(T){return C(this.b==0),this.a.w(function(L,J){return Ce(L,J,T)})},ge.prototype.readSplitZigzagVarint64=ge.prototype.ea,ge.prototype.$=function(){return C(this.b==1),this.a.$()},ge.prototype.readFixedHash64=ge.prototype.$,ge.prototype.ta=function(T){return C(this.b==1),this.a.ta(T)},ge.prototype.readSplitFixed64=ge.prototype.ta;function Be(T,L){C(T.b==2);var J=T.a.o();J=T.a.B()+J;for(var ke=[];T.a.B()L.length?J.length:L.length;for(T.b&&(ke[0]=T.b,je=1);jeT),C(0<=L&&4294967296>L);0>>7|L<<25)>>>0,L>>>=7;this.a.push(T)},yt.prototype.writeSplitVarint64=yt.prototype.l,yt.prototype.A=function(T,L){C(T==Math.floor(T)),C(L==Math.floor(L)),C(0<=T&&4294967296>T),C(0<=L&&4294967296>L),this.s(T),this.s(L)},yt.prototype.writeSplitFixed64=yt.prototype.A,yt.prototype.j=function(T){for(C(T==Math.floor(T)),C(0<=T&&4294967296>T);127>>=7;this.a.push(T)},yt.prototype.writeUnsignedVarint32=yt.prototype.j,yt.prototype.M=function(T){if(C(T==Math.floor(T)),C(-2147483648<=T&&2147483648>T),0<=T)this.j(T);else{for(var L=0;9>L;L++)this.a.push(T&127|128),T>>=7;this.a.push(1)}},yt.prototype.writeSignedVarint32=yt.prototype.M,yt.prototype.va=function(T){C(T==Math.floor(T)),C(0<=T&&18446744073709552e3>T),oe(T),this.l(Y,X)},yt.prototype.writeUnsignedVarint64=yt.prototype.va,yt.prototype.ua=function(T){C(T==Math.floor(T)),C(-9223372036854776e3<=T&&9223372036854776e3>T),oe(T),this.l(Y,X)},yt.prototype.writeSignedVarint64=yt.prototype.ua,yt.prototype.wa=function(T){C(T==Math.floor(T)),C(-2147483648<=T&&2147483648>T),this.j((T<<1^T>>31)>>>0)},yt.prototype.writeZigzagVarint32=yt.prototype.wa,yt.prototype.xa=function(T){C(T==Math.floor(T)),C(-9223372036854776e3<=T&&9223372036854776e3>T),le(T),this.l(Y,X)},yt.prototype.writeZigzagVarint64=yt.prototype.xa,yt.prototype.Ta=function(T){this.W(z(T))},yt.prototype.writeZigzagVarint64String=yt.prototype.Ta,yt.prototype.W=function(T){var L=this;me(T),ve(Y,X,function(J,ke){L.l(J>>>0,ke>>>0)})},yt.prototype.writeZigzagVarintHash64=yt.prototype.W,yt.prototype.be=function(T){C(T==Math.floor(T)),C(0<=T&&256>T),this.a.push(T>>>0&255)},yt.prototype.writeUint8=yt.prototype.be,yt.prototype.ae=function(T){C(T==Math.floor(T)),C(0<=T&&65536>T),this.a.push(T>>>0&255),this.a.push(T>>>8&255)},yt.prototype.writeUint16=yt.prototype.ae,yt.prototype.s=function(T){C(T==Math.floor(T)),C(0<=T&&4294967296>T),this.a.push(T>>>0&255),this.a.push(T>>>8&255),this.a.push(T>>>16&255),this.a.push(T>>>24&255)},yt.prototype.writeUint32=yt.prototype.s,yt.prototype.V=function(T){C(T==Math.floor(T)),C(0<=T&&18446744073709552e3>T),ae(T),this.s(Y),this.s(X)},yt.prototype.writeUint64=yt.prototype.V,yt.prototype.Qc=function(T){C(T==Math.floor(T)),C(-128<=T&&128>T),this.a.push(T>>>0&255)},yt.prototype.writeInt8=yt.prototype.Qc,yt.prototype.Pc=function(T){C(T==Math.floor(T)),C(-32768<=T&&32768>T),this.a.push(T>>>0&255),this.a.push(T>>>8&255)},yt.prototype.writeInt16=yt.prototype.Pc,yt.prototype.S=function(T){C(T==Math.floor(T)),C(-2147483648<=T&&2147483648>T),this.a.push(T>>>0&255),this.a.push(T>>>8&255),this.a.push(T>>>16&255),this.a.push(T>>>24&255)},yt.prototype.writeInt32=yt.prototype.S,yt.prototype.T=function(T){C(T==Math.floor(T)),C(-9223372036854776e3<=T&&9223372036854776e3>T),oe(T),this.A(Y,X)},yt.prototype.writeInt64=yt.prototype.T,yt.prototype.ka=function(T){C(T==Math.floor(T)),C(-9223372036854776e3<=+T&&9223372036854776e3>+T),me(z(T)),this.A(Y,X)},yt.prototype.writeInt64String=yt.prototype.ka,yt.prototype.L=function(T){C(T===1/0||T===-1/0||isNaN(T)||-34028234663852886e22<=T&&34028234663852886e22>=T),ce(T),this.s(Y)},yt.prototype.writeFloat=yt.prototype.L,yt.prototype.J=function(T){C(T===1/0||T===-1/0||isNaN(T)||-17976931348623157e292<=T&&17976931348623157e292>=T),pe(T),this.s(Y),this.s(X)},yt.prototype.writeDouble=yt.prototype.J,yt.prototype.I=function(T){C(typeof T=="boolean"||typeof T=="number"),this.a.push(T?1:0)},yt.prototype.writeBool=yt.prototype.I,yt.prototype.R=function(T){C(T==Math.floor(T)),C(-2147483648<=T&&2147483648>T),this.M(T)},yt.prototype.writeEnum=yt.prototype.R,yt.prototype.ja=function(T){this.a.push.apply(this.a,T)},yt.prototype.writeBytes=yt.prototype.ja,yt.prototype.N=function(T){me(T),this.l(Y,X)},yt.prototype.writeVarintHash64=yt.prototype.N,yt.prototype.K=function(T){me(T),this.s(Y),this.s(X)},yt.prototype.writeFixedHash64=yt.prototype.K,yt.prototype.U=function(T){var L=this.a.length;E(T);for(var J=0;Jke)this.a.push(ke);else if(2048>ke)this.a.push(ke>>6|192),this.a.push(ke&63|128);else if(65536>ke)if(55296<=ke&&56319>=ke&&J+1=je&&(ke=1024*(ke-55296)+je-56320+65536,this.a.push(ke>>18|240),this.a.push(ke>>12&63|128),this.a.push(ke>>6&63|128),this.a.push(ke&63|128),J++)}else this.a.push(ke>>12|224),this.a.push(ke>>6&63|128),this.a.push(ke&63|128)}return this.a.length-L},yt.prototype.writeString=yt.prototype.U;function At(T,L){this.lo=T,this.hi=L}p("jspb.arith.UInt64",At,void 0),At.prototype.cmp=function(T){return this.hi>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},At.prototype.rightShift=At.prototype.La,At.prototype.Da=function(){return new At(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},At.prototype.leftShift=At.prototype.Da,At.prototype.cb=function(){return!!(this.hi&2147483648)},At.prototype.msb=At.prototype.cb,At.prototype.Ob=function(){return!!(this.lo&1)},At.prototype.lsb=At.prototype.Ob,At.prototype.Ua=function(){return this.lo==0&&this.hi==0},At.prototype.zero=At.prototype.Ua,At.prototype.add=function(T){return new At((this.lo+T.lo&4294967295)>>>0>>>0,((this.hi+T.hi&4294967295)>>>0)+(4294967296<=this.lo+T.lo?1:0)>>>0)},At.prototype.add=At.prototype.add,At.prototype.sub=function(T){return new At((this.lo-T.lo&4294967295)>>>0>>>0,((this.hi-T.hi&4294967295)>>>0)-(0>this.lo-T.lo?1:0)>>>0)},At.prototype.sub=At.prototype.sub;function ft(T,L){var J=T&65535;T>>>=16;var ke=L&65535,je=L>>>16;for(L=J*ke+65536*(J*je&65535)+65536*(T*ke&65535),J=T*je+(J*je>>>16)+(T*ke>>>16);4294967296<=L;)L-=4294967296,J+=1;return new At(L>>>0,J>>>0)}At.mul32x32=ft,At.prototype.eb=function(T){var L=ft(this.lo,T);return T=ft(this.hi,T),T.hi=T.lo,T.lo=0,L.add(T)},At.prototype.mul=At.prototype.eb,At.prototype.Xa=function(T){if(T==0)return[];var L=new At(0,0),J=new At(this.lo,this.hi);T=new At(T,0);for(var ke=new At(1,0);!T.cb();)T=T.Da(),ke=ke.Da();for(;!ke.Ua();)0>=T.cmp(J)&&(L=L.add(ke),J=J.sub(T)),T=T.La(),ke=ke.La();return[L,J]},At.prototype.div=At.prototype.Xa,At.prototype.toString=function(){for(var T="",L=this;!L.Ua();){L=L.Xa(10);var J=L[0];T=L[1].lo+T,L=J}return T==""&&(T="0"),T},At.prototype.toString=At.prototype.toString;function De(T){for(var L=new At(0,0),J=new At(0,0),ke=0;keT[ke]||"9">>0>>>0,((this.hi+T.hi&4294967295)>>>0)+(4294967296<=this.lo+T.lo?1:0)>>>0)},Ye.prototype.add=Ye.prototype.add,Ye.prototype.sub=function(T){return new Ye((this.lo-T.lo&4294967295)>>>0>>>0,((this.hi-T.hi&4294967295)>>>0)-(0>this.lo-T.lo?1:0)>>>0)},Ye.prototype.sub=Ye.prototype.sub,Ye.prototype.clone=function(){return new Ye(this.lo,this.hi)},Ye.prototype.clone=Ye.prototype.clone,Ye.prototype.toString=function(){var T=(this.hi&2147483648)!=0,L=new At(this.lo,this.hi);return T&&(L=new At(0,0).sub(L)),(T?"-":"")+L.toString()},Ye.prototype.toString=Ye.prototype.toString;function st(T){var L=0>>=7,T.b++;L.push(J),T.b++}Ie.prototype.pb=function(T,L,J){Rt(this,T.subarray(L,J))},Ie.prototype.writeSerializedMessage=Ie.prototype.pb,Ie.prototype.Pb=function(T,L,J){T!=null&&L!=null&&J!=null&&this.pb(T,L,J)},Ie.prototype.maybeWriteSerializedMessage=Ie.prototype.Pb,Ie.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Ie.prototype.reset=Ie.prototype.reset,Ie.prototype.ab=function(){C(this.h.length==0);for(var T=new Uint8Array(this.b+this.a.length()),L=this.c,J=L.length,ke=0,je=0;jeL),fn(this,T,L))},Ie.prototype.writeInt32=Ie.prototype.S,Ie.prototype.ob=function(T,L){L!=null&&(L=parseInt(L,10),C(-2147483648<=L&&2147483648>L),fn(this,T,L))},Ie.prototype.writeInt32String=Ie.prototype.ob,Ie.prototype.T=function(T,L){L!=null&&(C(-9223372036854776e3<=L&&9223372036854776e3>L),L!=null&&(Mt(this,T,0),this.a.ua(L)))},Ie.prototype.writeInt64=Ie.prototype.T,Ie.prototype.ka=function(T,L){L!=null&&(L=st(L),Mt(this,T,0),this.a.l(L.lo,L.hi))},Ie.prototype.writeInt64String=Ie.prototype.ka,Ie.prototype.s=function(T,L){L!=null&&(C(0<=L&&4294967296>L),cn(this,T,L))},Ie.prototype.writeUint32=Ie.prototype.s,Ie.prototype.ub=function(T,L){L!=null&&(L=parseInt(L,10),C(0<=L&&4294967296>L),cn(this,T,L))},Ie.prototype.writeUint32String=Ie.prototype.ub,Ie.prototype.V=function(T,L){L!=null&&(C(0<=L&&18446744073709552e3>L),L!=null&&(Mt(this,T,0),this.a.va(L)))},Ie.prototype.writeUint64=Ie.prototype.V,Ie.prototype.vb=function(T,L){L!=null&&(L=De(L),Mt(this,T,0),this.a.l(L.lo,L.hi))},Ie.prototype.writeUint64String=Ie.prototype.vb,Ie.prototype.rb=function(T,L){L!=null&&(C(-2147483648<=L&&2147483648>L),L!=null&&(Mt(this,T,0),this.a.wa(L)))},Ie.prototype.writeSint32=Ie.prototype.rb,Ie.prototype.sb=function(T,L){L!=null&&(C(-9223372036854776e3<=L&&9223372036854776e3>L),L!=null&&(Mt(this,T,0),this.a.xa(L)))},Ie.prototype.writeSint64=Ie.prototype.sb,Ie.prototype.$d=function(T,L){L!=null&&L!=null&&(Mt(this,T,0),this.a.W(L))},Ie.prototype.writeSintHash64=Ie.prototype.$d,Ie.prototype.Zd=function(T,L){L!=null&&L!=null&&(Mt(this,T,0),this.a.Ta(L))},Ie.prototype.writeSint64String=Ie.prototype.Zd,Ie.prototype.Pa=function(T,L){L!=null&&(C(0<=L&&4294967296>L),Mt(this,T,5),this.a.s(L))},Ie.prototype.writeFixed32=Ie.prototype.Pa,Ie.prototype.Qa=function(T,L){L!=null&&(C(0<=L&&18446744073709552e3>L),Mt(this,T,1),this.a.V(L))},Ie.prototype.writeFixed64=Ie.prototype.Qa,Ie.prototype.nb=function(T,L){L!=null&&(L=De(L),Mt(this,T,1),this.a.A(L.lo,L.hi))},Ie.prototype.writeFixed64String=Ie.prototype.nb,Ie.prototype.Ra=function(T,L){L!=null&&(C(-2147483648<=L&&2147483648>L),Mt(this,T,5),this.a.S(L))},Ie.prototype.writeSfixed32=Ie.prototype.Ra,Ie.prototype.Sa=function(T,L){L!=null&&(C(-9223372036854776e3<=L&&9223372036854776e3>L),Mt(this,T,1),this.a.T(L))},Ie.prototype.writeSfixed64=Ie.prototype.Sa,Ie.prototype.qb=function(T,L){L!=null&&(L=st(L),Mt(this,T,1),this.a.A(L.lo,L.hi))},Ie.prototype.writeSfixed64String=Ie.prototype.qb,Ie.prototype.L=function(T,L){L!=null&&(Mt(this,T,5),this.a.L(L))},Ie.prototype.writeFloat=Ie.prototype.L,Ie.prototype.J=function(T,L){L!=null&&(Mt(this,T,1),this.a.J(L))},Ie.prototype.writeDouble=Ie.prototype.J,Ie.prototype.I=function(T,L){L!=null&&(C(typeof L=="boolean"||typeof L=="number"),Mt(this,T,0),this.a.I(L))},Ie.prototype.writeBool=Ie.prototype.I,Ie.prototype.R=function(T,L){L!=null&&(C(-2147483648<=L&&2147483648>L),Mt(this,T,0),this.a.M(L))},Ie.prototype.writeEnum=Ie.prototype.R,Ie.prototype.U=function(T,L){L!=null&&(T=rt(this,T),this.a.U(L),$t(this,T))},Ie.prototype.writeString=Ie.prototype.U,Ie.prototype.ja=function(T,L){L!=null&&(L=xe(L),Mt(this,T,2),this.a.j(L.length),Rt(this,L))},Ie.prototype.writeBytes=Ie.prototype.ja,Ie.prototype.Rc=function(T,L,J){L!=null&&(T=rt(this,T),J(L,this),$t(this,T))},Ie.prototype.writeMessage=Ie.prototype.Rc,Ie.prototype.Sc=function(T,L,J){L!=null&&(Mt(this,1,3),Mt(this,2,0),this.a.M(T),T=rt(this,3),J(L,this),$t(this,T),Mt(this,1,4))},Ie.prototype.writeMessageSet=Ie.prototype.Sc,Ie.prototype.Oc=function(T,L,J){L!=null&&(Mt(this,T,3),J(L,this),Mt(this,T,4))},Ie.prototype.writeGroup=Ie.prototype.Oc,Ie.prototype.K=function(T,L){L!=null&&(C(L.length==8),Mt(this,T,1),this.a.K(L))},Ie.prototype.writeFixedHash64=Ie.prototype.K,Ie.prototype.N=function(T,L){L!=null&&(C(L.length==8),Mt(this,T,0),this.a.N(L))},Ie.prototype.writeVarintHash64=Ie.prototype.N,Ie.prototype.A=function(T,L,J){Mt(this,T,1),this.a.A(L,J)},Ie.prototype.writeSplitFixed64=Ie.prototype.A,Ie.prototype.l=function(T,L,J){Mt(this,T,0),this.a.l(L,J)},Ie.prototype.writeSplitVarint64=Ie.prototype.l,Ie.prototype.tb=function(T,L,J){Mt(this,T,0);var ke=this.a;ve(L,J,function(je,it){ke.l(je>>>0,it>>>0)})},Ie.prototype.writeSplitZigzagVarint64=Ie.prototype.tb,Ie.prototype.Ed=function(T,L){if(L!=null)for(var J=0;J>>0,an>>>0)});$t(this,T)}},Ie.prototype.writePackedSplitZigzagVarint64=Ie.prototype.od,Ie.prototype.dd=function(T,L){if(L!=null&&L.length){T=rt(this,T);for(var J=0;J0&&t.writeString(1,n),n=e.getNickname(),n.length>0&&t.writeString(2,n),n=e.getAvatar(),n.length>0&&t.writeString(3,n),n=e.getType(),n.length>0&&t.writeString(4,n),n=e.getExtra(),n.length>0&&t.writeString(5,n)};proto.User.prototype.getUid=function(){return $n.Message.getFieldWithDefault(this,1,"")};proto.User.prototype.setUid=function(e){return $n.Message.setProto3StringField(this,1,e)};proto.User.prototype.getNickname=function(){return $n.Message.getFieldWithDefault(this,2,"")};proto.User.prototype.setNickname=function(e){return $n.Message.setProto3StringField(this,2,e)};proto.User.prototype.getAvatar=function(){return $n.Message.getFieldWithDefault(this,3,"")};proto.User.prototype.setAvatar=function(e){return $n.Message.setProto3StringField(this,3,e)};proto.User.prototype.getType=function(){return $n.Message.getFieldWithDefault(this,4,"")};proto.User.prototype.setType=function(e){return $n.Message.setProto3StringField(this,4,e)};proto.User.prototype.getExtra=function(){return $n.Message.getFieldWithDefault(this,5,"")};proto.User.prototype.setExtra=function(e){return $n.Message.setProto3StringField(this,5,e)};const SK=proto;var GF=qF,NR=(function(){return this?this:typeof window<"u"?window:typeof NR<"u"?NR:typeof self<"u"?self:Function("return this")()}).call(null);GF.exportSymbol("proto.Thread",null,NR);proto.Thread=function(e){$n.Message.initialize(this,e,0,-1,null,null)};GF.inherits(proto.Thread,$n.Message);GF.DEBUG&&!COMPILED&&(proto.Thread.displayName="proto.Thread");$n.Message.GENERATE_TO_OBJECT&&(proto.Thread.prototype.toObject=function(e){return proto.Thread.toObject(e,this)},proto.Thread.toObject=function(e,t){var n,r={uid:$n.Message.getFieldWithDefault(t,1,""),topic:$n.Message.getFieldWithDefault(t,2,""),type:$n.Message.getFieldWithDefault(t,3,""),state:$n.Message.getFieldWithDefault(t,4,""),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:$n.Message.getFieldWithDefault(t,6,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Thread.deserializeBinary=function(e){var t=new $n.BinaryReader(e),n=new proto.Thread;return proto.Thread.deserializeBinaryFromReader(n,t)};proto.Thread.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setTopic(r);break;case 3:var r=t.readString();e.setType(r);break;case 4:var r=t.readString();e.setState(r);break;case 5:var r=new proto.User;t.readMessage(r,proto.User.deserializeBinaryFromReader),e.setUser(r);break;case 6:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Thread.prototype.serializeBinary=function(){var e=new $n.BinaryWriter;return proto.Thread.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Thread.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getTopic(),n.length>0&&t.writeString(2,n),n=e.getType(),n.length>0&&t.writeString(3,n),n=e.getState(),n.length>0&&t.writeString(4,n),n=e.getUser(),n!=null&&t.writeMessage(5,n,proto.User.serializeBinaryToWriter),n=e.getExtra(),n.length>0&&t.writeString(6,n)};proto.Thread.prototype.getUid=function(){return $n.Message.getFieldWithDefault(this,1,"")};proto.Thread.prototype.setUid=function(e){return $n.Message.setProto3StringField(this,1,e)};proto.Thread.prototype.getTopic=function(){return $n.Message.getFieldWithDefault(this,2,"")};proto.Thread.prototype.setTopic=function(e){return $n.Message.setProto3StringField(this,2,e)};proto.Thread.prototype.getType=function(){return $n.Message.getFieldWithDefault(this,3,"")};proto.Thread.prototype.setType=function(e){return $n.Message.setProto3StringField(this,3,e)};proto.Thread.prototype.getState=function(){return $n.Message.getFieldWithDefault(this,4,"")};proto.Thread.prototype.setState=function(e){return $n.Message.setProto3StringField(this,4,e)};proto.Thread.prototype.getUser=function(){return $n.Message.getWrapperField(this,proto.User,5)};proto.Thread.prototype.setUser=function(e){return $n.Message.setWrapperField(this,5,e)};proto.Thread.prototype.clearUser=function(){return this.setUser(void 0)};proto.Thread.prototype.hasUser=function(){return $n.Message.getField(this,5)!=null};proto.Thread.prototype.getExtra=function(){return $n.Message.getFieldWithDefault(this,6,"")};proto.Thread.prototype.setExtra=function(e){return $n.Message.setProto3StringField(this,6,e)};const eMe=proto;var YF=qF,AR=(function(){return this?this:typeof window<"u"?window:typeof AR<"u"?AR:typeof self<"u"?self:Function("return this")()}).call(null);YF.exportSymbol("proto.Message",null,AR);proto.Message=function(e){$n.Message.initialize(this,e,0,-1,null,null)};YF.inherits(proto.Message,$n.Message);YF.DEBUG&&!COMPILED&&(proto.Message.displayName="proto.Message");$n.Message.GENERATE_TO_OBJECT&&(proto.Message.prototype.toObject=function(e){return proto.Message.toObject(e,this)},proto.Message.toObject=function(e,t){var n,r={uid:$n.Message.getFieldWithDefault(t,1,""),type:$n.Message.getFieldWithDefault(t,2,""),content:$n.Message.getFieldWithDefault(t,3,""),status:$n.Message.getFieldWithDefault(t,4,""),createdat:$n.Message.getFieldWithDefault(t,5,""),client:$n.Message.getFieldWithDefault(t,6,""),thread:(n=t.getThread())&&proto.Thread.toObject(e,n),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:$n.Message.getFieldWithDefault(t,9,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Message.deserializeBinary=function(e){var t=new $n.BinaryReader(e),n=new proto.Message;return proto.Message.deserializeBinaryFromReader(n,t)};proto.Message.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setType(r);break;case 3:var r=t.readString();e.setContent(r);break;case 4:var r=t.readString();e.setStatus(r);break;case 5:var r=t.readString();e.setCreatedat(r);break;case 6:var r=t.readString();e.setClient(r);break;case 7:var r=new proto.Thread;t.readMessage(r,proto.Thread.deserializeBinaryFromReader),e.setThread(r);break;case 8:var r=new proto.User;t.readMessage(r,proto.User.deserializeBinaryFromReader),e.setUser(r);break;case 9:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Message.prototype.serializeBinary=function(){var e=new $n.BinaryWriter;return proto.Message.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Message.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getType(),n.length>0&&t.writeString(2,n),n=e.getContent(),n.length>0&&t.writeString(3,n),n=e.getStatus(),n.length>0&&t.writeString(4,n),n=e.getCreatedat(),n.length>0&&t.writeString(5,n),n=e.getClient(),n.length>0&&t.writeString(6,n),n=e.getThread(),n!=null&&t.writeMessage(7,n,proto.Thread.serializeBinaryToWriter),n=e.getUser(),n!=null&&t.writeMessage(8,n,proto.User.serializeBinaryToWriter),n=e.getExtra(),n.length>0&&t.writeString(9,n)};proto.Message.prototype.getUid=function(){return $n.Message.getFieldWithDefault(this,1,"")};proto.Message.prototype.setUid=function(e){return $n.Message.setProto3StringField(this,1,e)};proto.Message.prototype.getType=function(){return $n.Message.getFieldWithDefault(this,2,"")};proto.Message.prototype.setType=function(e){return $n.Message.setProto3StringField(this,2,e)};proto.Message.prototype.getContent=function(){return $n.Message.getFieldWithDefault(this,3,"")};proto.Message.prototype.setContent=function(e){return $n.Message.setProto3StringField(this,3,e)};proto.Message.prototype.getStatus=function(){return $n.Message.getFieldWithDefault(this,4,"")};proto.Message.prototype.setStatus=function(e){return $n.Message.setProto3StringField(this,4,e)};proto.Message.prototype.getCreatedat=function(){return $n.Message.getFieldWithDefault(this,5,"")};proto.Message.prototype.setCreatedat=function(e){return $n.Message.setProto3StringField(this,5,e)};proto.Message.prototype.getClient=function(){return $n.Message.getFieldWithDefault(this,6,"")};proto.Message.prototype.setClient=function(e){return $n.Message.setProto3StringField(this,6,e)};proto.Message.prototype.getThread=function(){return $n.Message.getWrapperField(this,proto.Thread,7)};proto.Message.prototype.setThread=function(e){return $n.Message.setWrapperField(this,7,e)};proto.Message.prototype.clearThread=function(){return this.setThread(void 0)};proto.Message.prototype.hasThread=function(){return $n.Message.getField(this,7)!=null};proto.Message.prototype.getUser=function(){return $n.Message.getWrapperField(this,proto.User,8)};proto.Message.prototype.setUser=function(e){return $n.Message.setWrapperField(this,8,e)};proto.Message.prototype.clearUser=function(){return this.setUser(void 0)};proto.Message.prototype.hasUser=function(){return $n.Message.getField(this,8)!=null};proto.Message.prototype.getExtra=function(){return $n.Message.getFieldWithDefault(this,9,"")};proto.Message.prototype.setExtra=function(e){return $n.Message.setProto3StringField(this,9,e)};const mue=proto,tMe="modulepreload",nMe=function(e){return"/agent/"+e},CK={},gue=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=nMe(l),l in CK)return;CK[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":tMe,c||(f.as="script"),f.crossOrigin="",f.href=l,s&&f.setAttribute("nonce",s),document.head.appendChild(f),c)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};//! moment.js +*/var Mn={};(function(e){var t=typeof Object.defineProperties=="function"?Object.defineProperty:function(T,D,J){T!=Array.prototype&&T!=Object.prototype&&(T[D]=J.value)},n=(typeof window<"u"&&window===oi||typeof oi<"u"&&oi!=null,oi);function r(T,D){if(D){var J=n;T=T.split(".");for(var ke=0;ke"u"||J.execScript("var "+T[0]);for(var ke;T.length&&(ke=T.shift());)T.length||D===void 0?J[ke]&&J[ke]!==Object.prototype[ke]?J=J[ke]:J=J[ke]={}:J[ke]=D}function h(T){var D=typeof T;if(D=="object")if(T){if(T instanceof Array)return"array";if(T instanceof Object)return D;var J=Object.prototype.toString.call(T);if(J=="[object Window]")return"object";if(J=="[object Array]"||typeof T.length=="number"&&typeof T.splice<"u"&&typeof T.propertyIsEnumerable<"u"&&!T.propertyIsEnumerable("splice"))return"array";if(J=="[object Function]"||typeof T.call<"u"&&typeof T.propertyIsEnumerable<"u"&&!T.propertyIsEnumerable("call"))return"function"}else return"null";else if(D=="function"&&typeof T.call>"u")return"object";return D}function m(T){var D=typeof T;return D=="object"&&T!=null||D=="function"}function g(T,D,J){p(T,D,J)}function v(T,D){function J(){}J.prototype=D.prototype,T.prototype=new J,T.prototype.constructor=T}var y="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function w(T,D){for(var J,ke,Ie=1;Ie=arguments.length?Array.prototype.slice.call(T,D):Array.prototype.slice.call(T,D,J)}function S(T,D,J,ke){var Ie="Assertion failed";if(J){Ie+=": "+J;var it=ke}else T&&(Ie+=": "+T,it=D);throw Error(Ie,it||[])}function _(T,D,J){for(var ke=[],Ie=2;Ie=T.length)return String.fromCharCode.apply(null,T);for(var D="",J=0;J>2;Ie=(Ie&3)<<4|Ft>>4,Ft=(Ft&15)<<2|On>>6,On&=63,rn||(On=64,it||(Ft=64)),J.push(D[Er],D[Ie],D[Ft]||"",D[On]||"")}return J.join("")}function Y(T){var D=T.length,J=3*D/4;J%3?J=Math.floor(J):"=.".indexOf(T[D-1])!=-1&&(J="=.".indexOf(T[D-2])!=-1?J-2:J-1);var ke=new Uint8Array(J),Ie=0;return ee(T,function(it){ke[Ie++]=it}),ke.subarray(0,Ie)}function ee(T,D){function J(On){for(;ke>4),Ft!=64&&(D(it<<4&240|Ft>>2),rn!=64&&D(Ft<<6&192|rn))}}function ie(){if(!B){B={};for(var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),D=["+/=","+/","-_=","-_.","-_"],J=0;5>J;J++){var ke=T.concat(D[J].split(""));V[J]=ke;for(var Ie=0;Ie>>0;T=Math.floor((T-D)/4294967296)>>>0,Z=D,X=T}p("jspb.utils.splitUint64",ae,void 0);function oe(T){var D=0>T;T=Math.abs(T);var J=T>>>0;T=Math.floor((T-J)/4294967296),T>>>=0,D&&(T=~T>>>0,J=(~J>>>0)+1,4294967295T;T=2*Math.abs(T),ae(T),T=Z;var J=X;D&&(T==0?J==0?J=T=4294967295:(J--,T=4294967295):T--),Z=T,X=J}p("jspb.utils.splitZigzag64",le,void 0);function ce(T){var D=0>T?1:0;if(T=D?-T:T,T===0)0<1/T?Z=X=0:(X=0,Z=2147483648);else if(isNaN(T))X=0,Z=2147483647;else if(34028234663852886e22>>0;else if(11754943508222875e-54>T)T=Math.round(T/Math.pow(2,-149)),X=0,Z=(D<<31|T)>>>0;else{var J=Math.floor(Math.log(T)/Math.LN2);T*=Math.pow(2,-J),T=Math.round(8388608*T),16777216<=T&&++J,X=0,Z=(D<<31|J+127<<23|T&8388607)>>>0}}p("jspb.utils.splitFloat32",ce,void 0);function pe(T){var D=0>T?1:0;if(T=D?-T:T,T===0)X=0<1/T?0:2147483648,Z=0;else if(isNaN(T))X=2147483647,Z=4294967295;else if(17976931348623157e292>>0,Z=0;else if(22250738585072014e-324>T)T/=Math.pow(2,-1074),X=(D<<31|T/4294967296)>>>0,Z=T>>>0;else{var J=T,ke=0;if(2<=J)for(;2<=J&&1023>ke;)ke++,J/=2;else for(;1>J&&-1022>>0,Z=4503599627370496*T>>>0}}p("jspb.utils.splitFloat64",pe,void 0);function me(T){var D=T.charCodeAt(4),J=T.charCodeAt(5),ke=T.charCodeAt(6),Ie=T.charCodeAt(7);Z=T.charCodeAt(0)+(T.charCodeAt(1)<<8)+(T.charCodeAt(2)<<16)+(T.charCodeAt(3)<<24)>>>0,X=D+(J<<8)+(ke<<16)+(Ie<<24)>>>0}p("jspb.utils.splitHash64",me,void 0);function re(T,D){return 4294967296*D+(T>>>0)}p("jspb.utils.joinUint64",re,void 0);function fe(T,D){var J=D&2147483648;return J&&(T=~T+1>>>0,D=~D>>>0,T==0&&(D=D+1>>>0)),T=re(T,D),J?-T:T}p("jspb.utils.joinInt64",fe,void 0);function ve(T,D,J){var ke=D>>31;return J(T<<1^ke,(D<<1|T>>>31)^ke)}p("jspb.utils.toZigzag64",ve,void 0);function $e(T,D){return Ce(T,D,fe)}p("jspb.utils.joinZigzag64",$e,void 0);function Ce(T,D,J){var ke=-(T&1);return J((T>>>1|D<<31)^ke,D>>>1^ke)}p("jspb.utils.fromZigzag64",Ce,void 0);function be(T){var D=2*(T>>31)+1,J=T>>>23&255;return T&=8388607,J==255?T?NaN:1/0*D:J==0?D*Math.pow(2,-149)*T:D*Math.pow(2,J-150)*(T+Math.pow(2,23))}p("jspb.utils.joinFloat32",be,void 0);function Se(T,D){var J=2*(D>>31)+1,ke=D>>>20&2047;return T=4294967296*(D&1048575)+T,ke==2047?T?NaN:1/0*J:ke==0?J*Math.pow(2,-1074)*T:J*Math.pow(2,ke-1075)*(T+4503599627370496)}p("jspb.utils.joinFloat64",Se,void 0);function we(T,D){return String.fromCharCode(T>>>0&255,T>>>8&255,T>>>16&255,T>>>24&255,D>>>0&255,D>>>8&255,D>>>16&255,D>>>24&255)}p("jspb.utils.joinHash64",we,void 0),p("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);function se(T,D){function J(Ie,it){return Ie=Ie?String(Ie):"",it?"0000000".slice(Ie.length)+Ie:Ie}if(2097151>=D)return""+re(T,D);var ke=(T>>>24|D<<8)>>>0&16777215;return D=D>>16&65535,T=(T&16777215)+6777216*ke+6710656*D,ke+=8147497*D,D*=2,1e7<=T&&(ke+=Math.floor(T/1e7),T%=1e7),1e7<=ke&&(D+=Math.floor(ke/1e7),ke%=1e7),J(D,0)+J(ke,D)+J(T,1)}p("jspb.utils.joinUnsignedDecimalString",se,void 0);function ye(T,D){var J=D&2147483648;return J&&(T=~T+1>>>0,D=~D+(T==0?1:0)>>>0),T=se(T,D),J?"-"+T:T}p("jspb.utils.joinSignedDecimalString",ye,void 0);function Oe(T,D){me(T),T=Z;var J=X;return D?ye(T,J):se(T,J)}p("jspb.utils.hash64ToDecimalString",Oe,void 0),p("jspb.utils.hash64ArrayToDecimalStrings",function(T,D){for(var J=Array(T.length),ke=0;keOn&&(Ft!==1||0>>=8}function J(){for(var Ft=0;8>Ft;Ft++)Ie[Ft]=~Ie[Ft]&255}_(0T?48+T:87+T)}function G(T){return 97<=T?T-97+10:T-48}p("jspb.utils.hash64ToHexString",function(T){var D=Array(18);D[0]="0",D[1]="x";for(var J=0;8>J;J++){var ke=T.charCodeAt(7-J);D[2*J+2]=H(ke>>4),D[2*J+3]=H(ke&15)}return D.join("")},void 0),p("jspb.utils.hexStringToHash64",function(T){T=T.toLowerCase(),_(T.length==18),_(T[0]=="0"),_(T[1]=="x");for(var D="",J=0;8>J;J++)D=String.fromCharCode(16*G(T.charCodeAt(2*J+2))+G(T.charCodeAt(2*J+3)))+D;return D},void 0),p("jspb.utils.hash64ToNumber",function(T,D){me(T),T=Z;var J=X;return D?fe(T,J):re(T,J)},void 0),p("jspb.utils.numberToHash64",function(T){return oe(T),we(Z,X)},void 0),p("jspb.utils.countVarints",function(T,D,J){for(var ke=0,Ie=D;Ie>7;return J-D-ke},void 0),p("jspb.utils.countVarintFields",function(T,D,J,ke){var Ie=0;if(ke*=8,128>ke)for(;D>=7}if(T[D++]!=it)break;for(Ie++;it=T[D++],(it&128)!=0;);}return Ie},void 0);function de(T,D,J,ke,Ie){var it=0;if(128>ke)for(;D>=7}if(T[D++]!=Ft)break;it++,D+=Ie}return it}p("jspb.utils.countFixed32Fields",function(T,D,J,ke){return de(T,D,J,8*ke+5,4)},void 0),p("jspb.utils.countFixed64Fields",function(T,D,J,ke){return de(T,D,J,8*ke+1,8)},void 0),p("jspb.utils.countDelimitedFields",function(T,D,J,ke){var Ie=0;for(ke=8*ke+2;D>=7}if(T[D++]!=it)break;Ie++;for(var Ft=0,rn=1;it=T[D++],Ft+=(it&127)*rn,rn*=128,(it&128)!=0;);D+=Ft}return Ie},void 0),p("jspb.utils.debugBytesToTextFormat",function(T){var D='"';if(T){T=xe(T);for(var J=0;JT[J]&&(D+="0"),D+=T[J].toString(16)}return D+'"'},void 0),p("jspb.utils.debugScalarToTextFormat",function(T){if(typeof T=="string"){T=String(T);for(var D=['"'],J=0;JIe||(Ie=ke,Ie in L?ke=L[Ie]:Ie in K?ke=L[Ie]=K[Ie]:(Ft=Ie.charCodeAt(0),31Ft?ke=Ie:(256>Ft?(ke="\\x",(16>Ft||256Ft&&(ke+="0")),ke+=Ft.toString(16).toUpperCase()),ke=L[Ie]=ke)),Ft=ke),D[it]=Ft}D.push('"'),T=D.join("")}else T=T.toString();return T},void 0),p("jspb.utils.stringToByteArray",function(T){for(var D=new Uint8Array(T.length),J=0;JUe.length&&Ue.push(this)},he.prototype.free=he.prototype.Ca,he.prototype.clone=function(){return We(this.b,this.h,this.c-this.h)},he.prototype.clone=he.prototype.clone,he.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},he.prototype.clear=he.prototype.clear,he.prototype.Y=function(){return this.b},he.prototype.getBuffer=he.prototype.Y,he.prototype.H=function(T,D,J){this.b=xe(T),this.h=D!==void 0?D:0,this.c=J!==void 0?this.h+J:this.b.length,this.a=this.h},he.prototype.setBlock=he.prototype.H,he.prototype.Db=function(){return this.c},he.prototype.getEnd=he.prototype.Db,he.prototype.setEnd=function(T){this.c=T},he.prototype.setEnd=he.prototype.setEnd,he.prototype.reset=function(){this.a=this.h},he.prototype.reset=he.prototype.reset,he.prototype.B=function(){return this.a},he.prototype.getCursor=he.prototype.B,he.prototype.Ma=function(T){this.a=T},he.prototype.setCursor=he.prototype.Ma,he.prototype.advance=function(T){this.a+=T,_(this.a<=this.c)},he.prototype.advance=he.prototype.advance,he.prototype.ya=function(){return this.a==this.c},he.prototype.atEnd=he.prototype.ya,he.prototype.Qb=function(){return this.a>this.c},he.prototype.pastEnd=he.prototype.Qb,he.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},he.prototype.getError=he.prototype.getError,he.prototype.w=function(T){for(var D=128,J=0,ke=0,Ie=0;4>Ie&&128<=D;Ie++)D=this.b[this.a++],J|=(D&127)<<7*Ie;if(128<=D&&(D=this.b[this.a++],J|=(D&127)<<28,ke|=(D&127)>>4),128<=D)for(Ie=0;5>Ie&&128<=D;Ie++)D=this.b[this.a++],ke|=(D&127)<<7*Ie+3;if(128>D)return T(J>>>0,ke>>>0);M("Failed to read varint, encoding is invalid."),this.v=!0},he.prototype.readSplitVarint64=he.prototype.w,he.prototype.ea=function(T){return this.w(function(D,J){return Ce(D,J,T)})},he.prototype.readSplitZigzagVarint64=he.prototype.ea,he.prototype.ta=function(T){var D=this.b,J=this.a;this.a+=8;for(var ke=0,Ie=0,it=J+7;it>=J;it--)ke=ke<<8|D[it],Ie=Ie<<8|D[it+4];return T(ke,Ie)},he.prototype.readSplitFixed64=he.prototype.ta,he.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++},he.prototype.skipVarint=he.prototype.kb,he.prototype.mb=function(T){for(;128>>=7;this.a--},he.prototype.unskipVarint=he.prototype.mb,he.prototype.o=function(){var T=this.b,D=T[this.a],J=D&127;return 128>D?(this.a+=1,_(this.a<=this.c),J):(D=T[this.a+1],J|=(D&127)<<7,128>D?(this.a+=2,_(this.a<=this.c),J):(D=T[this.a+2],J|=(D&127)<<14,128>D?(this.a+=3,_(this.a<=this.c),J):(D=T[this.a+3],J|=(D&127)<<21,128>D?(this.a+=4,_(this.a<=this.c),J):(D=T[this.a+4],J|=(D&15)<<28,128>D?(this.a+=5,_(this.a<=this.c),J>>>0):(this.a+=5,128<=T[this.a++]&&128<=T[this.a++]&&128<=T[this.a++]&&128<=T[this.a++]&&128<=T[this.a++]&&_(!1),_(this.a<=this.c),J)))))},he.prototype.readUnsignedVarint32=he.prototype.o,he.prototype.da=function(){return~~this.o()},he.prototype.readSignedVarint32=he.prototype.da,he.prototype.O=function(){return this.o().toString()},he.prototype.Ea=function(){return this.da().toString()},he.prototype.readSignedVarint32String=he.prototype.Ea,he.prototype.Ia=function(){var T=this.o();return T>>>1^-(T&1)},he.prototype.readZigzagVarint32=he.prototype.Ia,he.prototype.Ga=function(){return this.w(re)},he.prototype.readUnsignedVarint64=he.prototype.Ga,he.prototype.Ha=function(){return this.w(se)},he.prototype.readUnsignedVarint64String=he.prototype.Ha,he.prototype.sa=function(){return this.w(fe)},he.prototype.readSignedVarint64=he.prototype.sa,he.prototype.Fa=function(){return this.w(ye)},he.prototype.readSignedVarint64String=he.prototype.Fa,he.prototype.Ja=function(){return this.w($e)},he.prototype.readZigzagVarint64=he.prototype.Ja,he.prototype.fb=function(){return this.ea(we)},he.prototype.readZigzagVarintHash64=he.prototype.fb,he.prototype.Ka=function(){return this.ea(ye)},he.prototype.readZigzagVarint64String=he.prototype.Ka,he.prototype.Gc=function(){var T=this.b[this.a];return this.a+=1,_(this.a<=this.c),T},he.prototype.readUint8=he.prototype.Gc,he.prototype.Ec=function(){var T=this.b[this.a],D=this.b[this.a+1];return this.a+=2,_(this.a<=this.c),T<<0|D<<8},he.prototype.readUint16=he.prototype.Ec,he.prototype.m=function(){var T=this.b[this.a],D=this.b[this.a+1],J=this.b[this.a+2],ke=this.b[this.a+3];return this.a+=4,_(this.a<=this.c),(T<<0|D<<8|J<<16|ke<<24)>>>0},he.prototype.readUint32=he.prototype.m,he.prototype.ga=function(){var T=this.m(),D=this.m();return re(T,D)},he.prototype.readUint64=he.prototype.ga,he.prototype.ha=function(){var T=this.m(),D=this.m();return se(T,D)},he.prototype.readUint64String=he.prototype.ha,he.prototype.Xb=function(){var T=this.b[this.a];return this.a+=1,_(this.a<=this.c),T<<24>>24},he.prototype.readInt8=he.prototype.Xb,he.prototype.Vb=function(){var T=this.b[this.a],D=this.b[this.a+1];return this.a+=2,_(this.a<=this.c),(T<<0|D<<8)<<16>>16},he.prototype.readInt16=he.prototype.Vb,he.prototype.P=function(){var T=this.b[this.a],D=this.b[this.a+1],J=this.b[this.a+2],ke=this.b[this.a+3];return this.a+=4,_(this.a<=this.c),T<<0|D<<8|J<<16|ke<<24},he.prototype.readInt32=he.prototype.P,he.prototype.ba=function(){var T=this.m(),D=this.m();return fe(T,D)},he.prototype.readInt64=he.prototype.ba,he.prototype.ca=function(){var T=this.m(),D=this.m();return ye(T,D)},he.prototype.readInt64String=he.prototype.ca,he.prototype.aa=function(){var T=this.m();return be(T)},he.prototype.readFloat=he.prototype.aa,he.prototype.Z=function(){var T=this.m(),D=this.m();return Se(T,D)},he.prototype.readDouble=he.prototype.Z,he.prototype.pa=function(){return!!this.b[this.a++]},he.prototype.readBool=he.prototype.pa,he.prototype.ra=function(){return this.da()},he.prototype.readEnum=he.prototype.ra,he.prototype.fa=function(T){var D=this.b,J=this.a;T=J+T;for(var ke=[],Ie="";Jit)ke.push(it);else{if(192>it)continue;if(224>it){var Ft=D[J++];ke.push((it&31)<<6|Ft&63)}else if(240>it){Ft=D[J++];var rn=D[J++];ke.push((it&15)<<12|(Ft&63)<<6|rn&63)}else if(248>it){Ft=D[J++],rn=D[J++];var On=D[J++];it=(it&7)<<18|(Ft&63)<<12|(rn&63)<<6|On&63,it-=65536,ke.push((it>>10&1023)+55296,(it&1023)+56320)}}8192<=ke.length&&(Ie+=String.fromCharCode.apply(null,ke),ke.length=0)}return Ie+=F(ke),this.a=J,Ie},he.prototype.readString=he.prototype.fa,he.prototype.Dc=function(){var T=this.o();return this.fa(T)},he.prototype.readStringWithLength=he.prototype.Dc,he.prototype.qa=function(T){if(0>T||this.a+T>this.b.length)return this.v=!0,M("Invalid byte length!"),new Uint8Array(0);var D=this.b.subarray(this.a,this.a+T);return this.a+=T,_(this.a<=this.c),D},he.prototype.readBytes=he.prototype.qa,he.prototype.ia=function(){return this.w(we)},he.prototype.readVarintHash64=he.prototype.ia,he.prototype.$=function(){var T=this.b,D=this.a,J=T[D],ke=T[D+1],Ie=T[D+2],it=T[D+3],Ft=T[D+4],rn=T[D+5],On=T[D+6];return T=T[D+7],this.a+=8,String.fromCharCode(J,ke,Ie,it,Ft,rn,On,T)},he.prototype.readFixedHash64=he.prototype.$;function ge(T,D,J){this.a=We(T,D,J),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}p("jspb.BinaryReader",ge,void 0);var ze=[];ge.clearInstanceCache=function(){ze=[]},ge.getInstanceCacheLength=function(){return ze.length};function Ve(T,D,J){if(ze.length){var ke=ze.pop();return T&&ke.a.H(T,D,J),ke}return new ge(T,D,J)}ge.alloc=Ve,ge.prototype.zb=Ve,ge.prototype.alloc=ge.prototype.zb,ge.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>ze.length&&ze.push(this)},ge.prototype.free=ge.prototype.Ca,ge.prototype.Fb=function(){return this.O},ge.prototype.getFieldCursor=ge.prototype.Fb,ge.prototype.B=function(){return this.a.B()},ge.prototype.getCursor=ge.prototype.B,ge.prototype.Y=function(){return this.a.Y()},ge.prototype.getBuffer=ge.prototype.Y,ge.prototype.Hb=function(){return this.c},ge.prototype.getFieldNumber=ge.prototype.Hb,ge.prototype.Lb=function(){return this.b},ge.prototype.getWireType=ge.prototype.Lb,ge.prototype.Mb=function(){return this.b==2},ge.prototype.isDelimited=ge.prototype.Mb,ge.prototype.bb=function(){return this.b==4},ge.prototype.isEndGroup=ge.prototype.bb,ge.prototype.getError=function(){return this.h||this.a.getError()},ge.prototype.getError=ge.prototype.getError,ge.prototype.H=function(T,D,J){this.a.H(T,D,J),this.b=this.c=-1},ge.prototype.setBlock=ge.prototype.H,ge.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ge.prototype.reset=ge.prototype.reset,ge.prototype.advance=function(T){this.a.advance(T)},ge.prototype.advance=ge.prototype.advance,ge.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return M("Decoder hit an error"),!1;this.O=this.a.B();var T=this.a.o(),D=T>>>3;return T&=7,T!=0&&T!=5&&T!=1&&T!=2&&T!=3&&T!=4?(M("Invalid wire type: %s (at position %s)",T,this.O),this.h=!0,!1):(this.c=D,this.b=T,!0)},ge.prototype.nextField=ge.prototype.oa,ge.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ge.prototype.unskipHeader=ge.prototype.Oa,ge.prototype.Lc=function(){var T=this.c;for(this.Oa();this.oa()&&this.c==T;)this.C();this.a.ya()||this.Oa()},ge.prototype.skipMatchingFields=ge.prototype.Lc,ge.prototype.lb=function(){this.b!=0?(M("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ge.prototype.skipVarintField=ge.prototype.lb,ge.prototype.gb=function(){if(this.b!=2)M("Invalid wire type for skipDelimitedField"),this.C();else{var T=this.a.o();this.a.advance(T)}},ge.prototype.skipDelimitedField=ge.prototype.gb,ge.prototype.hb=function(){this.b!=5?(M("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ge.prototype.skipFixed32Field=ge.prototype.hb,ge.prototype.ib=function(){this.b!=1?(M("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ge.prototype.skipFixed64Field=ge.prototype.ib,ge.prototype.jb=function(){var T=this.c;do{if(!this.oa()){M("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=T&&(M("Unmatched end-group tag"),this.h=!0);break}this.C()}while(!0)},ge.prototype.skipGroup=ge.prototype.jb,ge.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:M("Invalid wire encoding for field.")}},ge.prototype.skipField=ge.prototype.C,ge.prototype.Hc=function(T,D){this.v===null&&(this.v={}),_(!this.v[T]),this.v[T]=D},ge.prototype.registerReadCallback=ge.prototype.Hc,ge.prototype.Ic=function(T){return _(this.v!==null),T=this.v[T],_(T),T(this)},ge.prototype.runReadCallback=ge.prototype.Ic,ge.prototype.Yb=function(T,D){_(this.b==2);var J=this.a.c,ke=this.a.o();ke=this.a.B()+ke,this.a.setEnd(ke),D(T,this),this.a.Ma(ke),this.a.setEnd(J)},ge.prototype.readMessage=ge.prototype.Yb,ge.prototype.Ub=function(T,D,J){_(this.b==3),_(this.c==T),J(D,this),this.h||this.b==4||(M("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ge.prototype.readGroup=ge.prototype.Ub,ge.prototype.Gb=function(){_(this.b==2);var T=this.a.o(),D=this.a.B(),J=D+T;return T=We(this.a.Y(),D,T),this.a.Ma(J),T},ge.prototype.getFieldDecoder=ge.prototype.Gb,ge.prototype.P=function(){return _(this.b==0),this.a.da()},ge.prototype.readInt32=ge.prototype.P,ge.prototype.Wb=function(){return _(this.b==0),this.a.Ea()},ge.prototype.readInt32String=ge.prototype.Wb,ge.prototype.ba=function(){return _(this.b==0),this.a.sa()},ge.prototype.readInt64=ge.prototype.ba,ge.prototype.ca=function(){return _(this.b==0),this.a.Fa()},ge.prototype.readInt64String=ge.prototype.ca,ge.prototype.m=function(){return _(this.b==0),this.a.o()},ge.prototype.readUint32=ge.prototype.m,ge.prototype.Fc=function(){return _(this.b==0),this.a.O()},ge.prototype.readUint32String=ge.prototype.Fc,ge.prototype.ga=function(){return _(this.b==0),this.a.Ga()},ge.prototype.readUint64=ge.prototype.ga,ge.prototype.ha=function(){return _(this.b==0),this.a.Ha()},ge.prototype.readUint64String=ge.prototype.ha,ge.prototype.zc=function(){return _(this.b==0),this.a.Ia()},ge.prototype.readSint32=ge.prototype.zc,ge.prototype.Ac=function(){return _(this.b==0),this.a.Ja()},ge.prototype.readSint64=ge.prototype.Ac,ge.prototype.Bc=function(){return _(this.b==0),this.a.Ka()},ge.prototype.readSint64String=ge.prototype.Bc,ge.prototype.Rb=function(){return _(this.b==5),this.a.m()},ge.prototype.readFixed32=ge.prototype.Rb,ge.prototype.Sb=function(){return _(this.b==1),this.a.ga()},ge.prototype.readFixed64=ge.prototype.Sb,ge.prototype.Tb=function(){return _(this.b==1),this.a.ha()},ge.prototype.readFixed64String=ge.prototype.Tb,ge.prototype.vc=function(){return _(this.b==5),this.a.P()},ge.prototype.readSfixed32=ge.prototype.vc,ge.prototype.wc=function(){return _(this.b==5),this.a.P().toString()},ge.prototype.readSfixed32String=ge.prototype.wc,ge.prototype.xc=function(){return _(this.b==1),this.a.ba()},ge.prototype.readSfixed64=ge.prototype.xc,ge.prototype.yc=function(){return _(this.b==1),this.a.ca()},ge.prototype.readSfixed64String=ge.prototype.yc,ge.prototype.aa=function(){return _(this.b==5),this.a.aa()},ge.prototype.readFloat=ge.prototype.aa,ge.prototype.Z=function(){return _(this.b==1),this.a.Z()},ge.prototype.readDouble=ge.prototype.Z,ge.prototype.pa=function(){return _(this.b==0),!!this.a.o()},ge.prototype.readBool=ge.prototype.pa,ge.prototype.ra=function(){return _(this.b==0),this.a.sa()},ge.prototype.readEnum=ge.prototype.ra,ge.prototype.fa=function(){_(this.b==2);var T=this.a.o();return this.a.fa(T)},ge.prototype.readString=ge.prototype.fa,ge.prototype.qa=function(){_(this.b==2);var T=this.a.o();return this.a.qa(T)},ge.prototype.readBytes=ge.prototype.qa,ge.prototype.ia=function(){return _(this.b==0),this.a.ia()},ge.prototype.readVarintHash64=ge.prototype.ia,ge.prototype.Cc=function(){return _(this.b==0),this.a.fb()},ge.prototype.readSintHash64=ge.prototype.Cc,ge.prototype.w=function(T){return _(this.b==0),this.a.w(T)},ge.prototype.readSplitVarint64=ge.prototype.w,ge.prototype.ea=function(T){return _(this.b==0),this.a.w(function(D,J){return Ce(D,J,T)})},ge.prototype.readSplitZigzagVarint64=ge.prototype.ea,ge.prototype.$=function(){return _(this.b==1),this.a.$()},ge.prototype.readFixedHash64=ge.prototype.$,ge.prototype.ta=function(T){return _(this.b==1),this.a.ta(T)},ge.prototype.readSplitFixed64=ge.prototype.ta;function Be(T,D){_(T.b==2);var J=T.a.o();J=T.a.B()+J;for(var ke=[];T.a.B()D.length?J.length:D.length;for(T.b&&(ke[0]=T.b,Ie=1);IeT),_(0<=D&&4294967296>D);0>>7|D<<25)>>>0,D>>>=7;this.a.push(T)},vt.prototype.writeSplitVarint64=vt.prototype.l,vt.prototype.A=function(T,D){_(T==Math.floor(T)),_(D==Math.floor(D)),_(0<=T&&4294967296>T),_(0<=D&&4294967296>D),this.s(T),this.s(D)},vt.prototype.writeSplitFixed64=vt.prototype.A,vt.prototype.j=function(T){for(_(T==Math.floor(T)),_(0<=T&&4294967296>T);127>>=7;this.a.push(T)},vt.prototype.writeUnsignedVarint32=vt.prototype.j,vt.prototype.M=function(T){if(_(T==Math.floor(T)),_(-2147483648<=T&&2147483648>T),0<=T)this.j(T);else{for(var D=0;9>D;D++)this.a.push(T&127|128),T>>=7;this.a.push(1)}},vt.prototype.writeSignedVarint32=vt.prototype.M,vt.prototype.va=function(T){_(T==Math.floor(T)),_(0<=T&&18446744073709552e3>T),oe(T),this.l(Z,X)},vt.prototype.writeUnsignedVarint64=vt.prototype.va,vt.prototype.ua=function(T){_(T==Math.floor(T)),_(-9223372036854776e3<=T&&9223372036854776e3>T),oe(T),this.l(Z,X)},vt.prototype.writeSignedVarint64=vt.prototype.ua,vt.prototype.wa=function(T){_(T==Math.floor(T)),_(-2147483648<=T&&2147483648>T),this.j((T<<1^T>>31)>>>0)},vt.prototype.writeZigzagVarint32=vt.prototype.wa,vt.prototype.xa=function(T){_(T==Math.floor(T)),_(-9223372036854776e3<=T&&9223372036854776e3>T),le(T),this.l(Z,X)},vt.prototype.writeZigzagVarint64=vt.prototype.xa,vt.prototype.Ta=function(T){this.W(z(T))},vt.prototype.writeZigzagVarint64String=vt.prototype.Ta,vt.prototype.W=function(T){var D=this;me(T),ve(Z,X,function(J,ke){D.l(J>>>0,ke>>>0)})},vt.prototype.writeZigzagVarintHash64=vt.prototype.W,vt.prototype.be=function(T){_(T==Math.floor(T)),_(0<=T&&256>T),this.a.push(T>>>0&255)},vt.prototype.writeUint8=vt.prototype.be,vt.prototype.ae=function(T){_(T==Math.floor(T)),_(0<=T&&65536>T),this.a.push(T>>>0&255),this.a.push(T>>>8&255)},vt.prototype.writeUint16=vt.prototype.ae,vt.prototype.s=function(T){_(T==Math.floor(T)),_(0<=T&&4294967296>T),this.a.push(T>>>0&255),this.a.push(T>>>8&255),this.a.push(T>>>16&255),this.a.push(T>>>24&255)},vt.prototype.writeUint32=vt.prototype.s,vt.prototype.V=function(T){_(T==Math.floor(T)),_(0<=T&&18446744073709552e3>T),ae(T),this.s(Z),this.s(X)},vt.prototype.writeUint64=vt.prototype.V,vt.prototype.Qc=function(T){_(T==Math.floor(T)),_(-128<=T&&128>T),this.a.push(T>>>0&255)},vt.prototype.writeInt8=vt.prototype.Qc,vt.prototype.Pc=function(T){_(T==Math.floor(T)),_(-32768<=T&&32768>T),this.a.push(T>>>0&255),this.a.push(T>>>8&255)},vt.prototype.writeInt16=vt.prototype.Pc,vt.prototype.S=function(T){_(T==Math.floor(T)),_(-2147483648<=T&&2147483648>T),this.a.push(T>>>0&255),this.a.push(T>>>8&255),this.a.push(T>>>16&255),this.a.push(T>>>24&255)},vt.prototype.writeInt32=vt.prototype.S,vt.prototype.T=function(T){_(T==Math.floor(T)),_(-9223372036854776e3<=T&&9223372036854776e3>T),oe(T),this.A(Z,X)},vt.prototype.writeInt64=vt.prototype.T,vt.prototype.ka=function(T){_(T==Math.floor(T)),_(-9223372036854776e3<=+T&&9223372036854776e3>+T),me(z(T)),this.A(Z,X)},vt.prototype.writeInt64String=vt.prototype.ka,vt.prototype.L=function(T){_(T===1/0||T===-1/0||isNaN(T)||-34028234663852886e22<=T&&34028234663852886e22>=T),ce(T),this.s(Z)},vt.prototype.writeFloat=vt.prototype.L,vt.prototype.J=function(T){_(T===1/0||T===-1/0||isNaN(T)||-17976931348623157e292<=T&&17976931348623157e292>=T),pe(T),this.s(Z),this.s(X)},vt.prototype.writeDouble=vt.prototype.J,vt.prototype.I=function(T){_(typeof T=="boolean"||typeof T=="number"),this.a.push(T?1:0)},vt.prototype.writeBool=vt.prototype.I,vt.prototype.R=function(T){_(T==Math.floor(T)),_(-2147483648<=T&&2147483648>T),this.M(T)},vt.prototype.writeEnum=vt.prototype.R,vt.prototype.ja=function(T){this.a.push.apply(this.a,T)},vt.prototype.writeBytes=vt.prototype.ja,vt.prototype.N=function(T){me(T),this.l(Z,X)},vt.prototype.writeVarintHash64=vt.prototype.N,vt.prototype.K=function(T){me(T),this.s(Z),this.s(X)},vt.prototype.writeFixedHash64=vt.prototype.K,vt.prototype.U=function(T){var D=this.a.length;E(T);for(var J=0;Jke)this.a.push(ke);else if(2048>ke)this.a.push(ke>>6|192),this.a.push(ke&63|128);else if(65536>ke)if(55296<=ke&&56319>=ke&&J+1=Ie&&(ke=1024*(ke-55296)+Ie-56320+65536,this.a.push(ke>>18|240),this.a.push(ke>>12&63|128),this.a.push(ke>>6&63|128),this.a.push(ke&63|128),J++)}else this.a.push(ke>>12|224),this.a.push(ke>>6&63|128),this.a.push(ke&63|128)}return this.a.length-D},vt.prototype.writeString=vt.prototype.U;function At(T,D){this.lo=T,this.hi=D}p("jspb.arith.UInt64",At,void 0),At.prototype.cmp=function(T){return this.hi>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},At.prototype.rightShift=At.prototype.La,At.prototype.Da=function(){return new At(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},At.prototype.leftShift=At.prototype.Da,At.prototype.cb=function(){return!!(this.hi&2147483648)},At.prototype.msb=At.prototype.cb,At.prototype.Ob=function(){return!!(this.lo&1)},At.prototype.lsb=At.prototype.Ob,At.prototype.Ua=function(){return this.lo==0&&this.hi==0},At.prototype.zero=At.prototype.Ua,At.prototype.add=function(T){return new At((this.lo+T.lo&4294967295)>>>0>>>0,((this.hi+T.hi&4294967295)>>>0)+(4294967296<=this.lo+T.lo?1:0)>>>0)},At.prototype.add=At.prototype.add,At.prototype.sub=function(T){return new At((this.lo-T.lo&4294967295)>>>0>>>0,((this.hi-T.hi&4294967295)>>>0)-(0>this.lo-T.lo?1:0)>>>0)},At.prototype.sub=At.prototype.sub;function dt(T,D){var J=T&65535;T>>>=16;var ke=D&65535,Ie=D>>>16;for(D=J*ke+65536*(J*Ie&65535)+65536*(T*ke&65535),J=T*Ie+(J*Ie>>>16)+(T*ke>>>16);4294967296<=D;)D-=4294967296,J+=1;return new At(D>>>0,J>>>0)}At.mul32x32=dt,At.prototype.eb=function(T){var D=dt(this.lo,T);return T=dt(this.hi,T),T.hi=T.lo,T.lo=0,D.add(T)},At.prototype.mul=At.prototype.eb,At.prototype.Xa=function(T){if(T==0)return[];var D=new At(0,0),J=new At(this.lo,this.hi);T=new At(T,0);for(var ke=new At(1,0);!T.cb();)T=T.Da(),ke=ke.Da();for(;!ke.Ua();)0>=T.cmp(J)&&(D=D.add(ke),J=J.sub(T)),T=T.La(),ke=ke.La();return[D,J]},At.prototype.div=At.prototype.Xa,At.prototype.toString=function(){for(var T="",D=this;!D.Ua();){D=D.Xa(10);var J=D[0];T=D[1].lo+T,D=J}return T==""&&(T="0"),T},At.prototype.toString=At.prototype.toString;function De(T){for(var D=new At(0,0),J=new At(0,0),ke=0;keT[ke]||"9">>0>>>0,((this.hi+T.hi&4294967295)>>>0)+(4294967296<=this.lo+T.lo?1:0)>>>0)},Ye.prototype.add=Ye.prototype.add,Ye.prototype.sub=function(T){return new Ye((this.lo-T.lo&4294967295)>>>0>>>0,((this.hi-T.hi&4294967295)>>>0)-(0>this.lo-T.lo?1:0)>>>0)},Ye.prototype.sub=Ye.prototype.sub,Ye.prototype.clone=function(){return new Ye(this.lo,this.hi)},Ye.prototype.clone=Ye.prototype.clone,Ye.prototype.toString=function(){var T=(this.hi&2147483648)!=0,D=new At(this.lo,this.hi);return T&&(D=new At(0,0).sub(D)),(T?"-":"")+D.toString()},Ye.prototype.toString=Ye.prototype.toString;function ot(T){var D=0>>=7,T.b++;D.push(J),T.b++}Re.prototype.pb=function(T,D,J){It(this,T.subarray(D,J))},Re.prototype.writeSerializedMessage=Re.prototype.pb,Re.prototype.Pb=function(T,D,J){T!=null&&D!=null&&J!=null&&this.pb(T,D,J)},Re.prototype.maybeWriteSerializedMessage=Re.prototype.Pb,Re.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Re.prototype.reset=Re.prototype.reset,Re.prototype.ab=function(){_(this.h.length==0);for(var T=new Uint8Array(this.b+this.a.length()),D=this.c,J=D.length,ke=0,Ie=0;IeD),pn(this,T,D))},Re.prototype.writeInt32=Re.prototype.S,Re.prototype.ob=function(T,D){D!=null&&(D=parseInt(D,10),_(-2147483648<=D&&2147483648>D),pn(this,T,D))},Re.prototype.writeInt32String=Re.prototype.ob,Re.prototype.T=function(T,D){D!=null&&(_(-9223372036854776e3<=D&&9223372036854776e3>D),D!=null&&(Mt(this,T,0),this.a.ua(D)))},Re.prototype.writeInt64=Re.prototype.T,Re.prototype.ka=function(T,D){D!=null&&(D=ot(D),Mt(this,T,0),this.a.l(D.lo,D.hi))},Re.prototype.writeInt64String=Re.prototype.ka,Re.prototype.s=function(T,D){D!=null&&(_(0<=D&&4294967296>D),dn(this,T,D))},Re.prototype.writeUint32=Re.prototype.s,Re.prototype.ub=function(T,D){D!=null&&(D=parseInt(D,10),_(0<=D&&4294967296>D),dn(this,T,D))},Re.prototype.writeUint32String=Re.prototype.ub,Re.prototype.V=function(T,D){D!=null&&(_(0<=D&&18446744073709552e3>D),D!=null&&(Mt(this,T,0),this.a.va(D)))},Re.prototype.writeUint64=Re.prototype.V,Re.prototype.vb=function(T,D){D!=null&&(D=De(D),Mt(this,T,0),this.a.l(D.lo,D.hi))},Re.prototype.writeUint64String=Re.prototype.vb,Re.prototype.rb=function(T,D){D!=null&&(_(-2147483648<=D&&2147483648>D),D!=null&&(Mt(this,T,0),this.a.wa(D)))},Re.prototype.writeSint32=Re.prototype.rb,Re.prototype.sb=function(T,D){D!=null&&(_(-9223372036854776e3<=D&&9223372036854776e3>D),D!=null&&(Mt(this,T,0),this.a.xa(D)))},Re.prototype.writeSint64=Re.prototype.sb,Re.prototype.$d=function(T,D){D!=null&&D!=null&&(Mt(this,T,0),this.a.W(D))},Re.prototype.writeSintHash64=Re.prototype.$d,Re.prototype.Zd=function(T,D){D!=null&&D!=null&&(Mt(this,T,0),this.a.Ta(D))},Re.prototype.writeSint64String=Re.prototype.Zd,Re.prototype.Pa=function(T,D){D!=null&&(_(0<=D&&4294967296>D),Mt(this,T,5),this.a.s(D))},Re.prototype.writeFixed32=Re.prototype.Pa,Re.prototype.Qa=function(T,D){D!=null&&(_(0<=D&&18446744073709552e3>D),Mt(this,T,1),this.a.V(D))},Re.prototype.writeFixed64=Re.prototype.Qa,Re.prototype.nb=function(T,D){D!=null&&(D=De(D),Mt(this,T,1),this.a.A(D.lo,D.hi))},Re.prototype.writeFixed64String=Re.prototype.nb,Re.prototype.Ra=function(T,D){D!=null&&(_(-2147483648<=D&&2147483648>D),Mt(this,T,5),this.a.S(D))},Re.prototype.writeSfixed32=Re.prototype.Ra,Re.prototype.Sa=function(T,D){D!=null&&(_(-9223372036854776e3<=D&&9223372036854776e3>D),Mt(this,T,1),this.a.T(D))},Re.prototype.writeSfixed64=Re.prototype.Sa,Re.prototype.qb=function(T,D){D!=null&&(D=ot(D),Mt(this,T,1),this.a.A(D.lo,D.hi))},Re.prototype.writeSfixed64String=Re.prototype.qb,Re.prototype.L=function(T,D){D!=null&&(Mt(this,T,5),this.a.L(D))},Re.prototype.writeFloat=Re.prototype.L,Re.prototype.J=function(T,D){D!=null&&(Mt(this,T,1),this.a.J(D))},Re.prototype.writeDouble=Re.prototype.J,Re.prototype.I=function(T,D){D!=null&&(_(typeof D=="boolean"||typeof D=="number"),Mt(this,T,0),this.a.I(D))},Re.prototype.writeBool=Re.prototype.I,Re.prototype.R=function(T,D){D!=null&&(_(-2147483648<=D&&2147483648>D),Mt(this,T,0),this.a.M(D))},Re.prototype.writeEnum=Re.prototype.R,Re.prototype.U=function(T,D){D!=null&&(T=rt(this,T),this.a.U(D),$t(this,T))},Re.prototype.writeString=Re.prototype.U,Re.prototype.ja=function(T,D){D!=null&&(D=xe(D),Mt(this,T,2),this.a.j(D.length),It(this,D))},Re.prototype.writeBytes=Re.prototype.ja,Re.prototype.Rc=function(T,D,J){D!=null&&(T=rt(this,T),J(D,this),$t(this,T))},Re.prototype.writeMessage=Re.prototype.Rc,Re.prototype.Sc=function(T,D,J){D!=null&&(Mt(this,1,3),Mt(this,2,0),this.a.M(T),T=rt(this,3),J(D,this),$t(this,T),Mt(this,1,4))},Re.prototype.writeMessageSet=Re.prototype.Sc,Re.prototype.Oc=function(T,D,J){D!=null&&(Mt(this,T,3),J(D,this),Mt(this,T,4))},Re.prototype.writeGroup=Re.prototype.Oc,Re.prototype.K=function(T,D){D!=null&&(_(D.length==8),Mt(this,T,1),this.a.K(D))},Re.prototype.writeFixedHash64=Re.prototype.K,Re.prototype.N=function(T,D){D!=null&&(_(D.length==8),Mt(this,T,0),this.a.N(D))},Re.prototype.writeVarintHash64=Re.prototype.N,Re.prototype.A=function(T,D,J){Mt(this,T,1),this.a.A(D,J)},Re.prototype.writeSplitFixed64=Re.prototype.A,Re.prototype.l=function(T,D,J){Mt(this,T,0),this.a.l(D,J)},Re.prototype.writeSplitVarint64=Re.prototype.l,Re.prototype.tb=function(T,D,J){Mt(this,T,0);var ke=this.a;ve(D,J,function(Ie,it){ke.l(Ie>>>0,it>>>0)})},Re.prototype.writeSplitZigzagVarint64=Re.prototype.tb,Re.prototype.Ed=function(T,D){if(D!=null)for(var J=0;J>>0,rn>>>0)});$t(this,T)}},Re.prototype.writePackedSplitZigzagVarint64=Re.prototype.od,Re.prototype.dd=function(T,D){if(D!=null&&D.length){T=rt(this,T);for(var J=0;J0&&t.writeString(1,n),n=e.getNickname(),n.length>0&&t.writeString(2,n),n=e.getAvatar(),n.length>0&&t.writeString(3,n),n=e.getType(),n.length>0&&t.writeString(4,n),n=e.getExtra(),n.length>0&&t.writeString(5,n)};proto.User.prototype.getUid=function(){return Mn.Message.getFieldWithDefault(this,1,"")};proto.User.prototype.setUid=function(e){return Mn.Message.setProto3StringField(this,1,e)};proto.User.prototype.getNickname=function(){return Mn.Message.getFieldWithDefault(this,2,"")};proto.User.prototype.setNickname=function(e){return Mn.Message.setProto3StringField(this,2,e)};proto.User.prototype.getAvatar=function(){return Mn.Message.getFieldWithDefault(this,3,"")};proto.User.prototype.setAvatar=function(e){return Mn.Message.setProto3StringField(this,3,e)};proto.User.prototype.getType=function(){return Mn.Message.getFieldWithDefault(this,4,"")};proto.User.prototype.setType=function(e){return Mn.Message.setProto3StringField(this,4,e)};proto.User.prototype.getExtra=function(){return Mn.Message.getFieldWithDefault(this,5,"")};proto.User.prototype.setExtra=function(e){return Mn.Message.setProto3StringField(this,5,e)};const kK=proto;var XF=GF,FI=(function(){return this?this:typeof window<"u"?window:typeof FI<"u"?FI:typeof self<"u"?self:Function("return this")()}).call(null);XF.exportSymbol("proto.Thread",null,FI);proto.Thread=function(e){Mn.Message.initialize(this,e,0,-1,null,null)};XF.inherits(proto.Thread,Mn.Message);XF.DEBUG&&!COMPILED&&(proto.Thread.displayName="proto.Thread");Mn.Message.GENERATE_TO_OBJECT&&(proto.Thread.prototype.toObject=function(e){return proto.Thread.toObject(e,this)},proto.Thread.toObject=function(e,t){var n,r={uid:Mn.Message.getFieldWithDefault(t,1,""),topic:Mn.Message.getFieldWithDefault(t,2,""),type:Mn.Message.getFieldWithDefault(t,3,""),state:Mn.Message.getFieldWithDefault(t,4,""),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:Mn.Message.getFieldWithDefault(t,6,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Thread.deserializeBinary=function(e){var t=new Mn.BinaryReader(e),n=new proto.Thread;return proto.Thread.deserializeBinaryFromReader(n,t)};proto.Thread.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setTopic(r);break;case 3:var r=t.readString();e.setType(r);break;case 4:var r=t.readString();e.setState(r);break;case 5:var r=new proto.User;t.readMessage(r,proto.User.deserializeBinaryFromReader),e.setUser(r);break;case 6:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Thread.prototype.serializeBinary=function(){var e=new Mn.BinaryWriter;return proto.Thread.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Thread.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getTopic(),n.length>0&&t.writeString(2,n),n=e.getType(),n.length>0&&t.writeString(3,n),n=e.getState(),n.length>0&&t.writeString(4,n),n=e.getUser(),n!=null&&t.writeMessage(5,n,proto.User.serializeBinaryToWriter),n=e.getExtra(),n.length>0&&t.writeString(6,n)};proto.Thread.prototype.getUid=function(){return Mn.Message.getFieldWithDefault(this,1,"")};proto.Thread.prototype.setUid=function(e){return Mn.Message.setProto3StringField(this,1,e)};proto.Thread.prototype.getTopic=function(){return Mn.Message.getFieldWithDefault(this,2,"")};proto.Thread.prototype.setTopic=function(e){return Mn.Message.setProto3StringField(this,2,e)};proto.Thread.prototype.getType=function(){return Mn.Message.getFieldWithDefault(this,3,"")};proto.Thread.prototype.setType=function(e){return Mn.Message.setProto3StringField(this,3,e)};proto.Thread.prototype.getState=function(){return Mn.Message.getFieldWithDefault(this,4,"")};proto.Thread.prototype.setState=function(e){return Mn.Message.setProto3StringField(this,4,e)};proto.Thread.prototype.getUser=function(){return Mn.Message.getWrapperField(this,proto.User,5)};proto.Thread.prototype.setUser=function(e){return Mn.Message.setWrapperField(this,5,e)};proto.Thread.prototype.clearUser=function(){return this.setUser(void 0)};proto.Thread.prototype.hasUser=function(){return Mn.Message.getField(this,5)!=null};proto.Thread.prototype.getExtra=function(){return Mn.Message.getFieldWithDefault(this,6,"")};proto.Thread.prototype.setExtra=function(e){return Mn.Message.setProto3StringField(this,6,e)};const tMe=proto;var ZF=GF,LI=(function(){return this?this:typeof window<"u"?window:typeof LI<"u"?LI:typeof self<"u"?self:Function("return this")()}).call(null);ZF.exportSymbol("proto.Message",null,LI);proto.Message=function(e){Mn.Message.initialize(this,e,0,-1,null,null)};ZF.inherits(proto.Message,Mn.Message);ZF.DEBUG&&!COMPILED&&(proto.Message.displayName="proto.Message");Mn.Message.GENERATE_TO_OBJECT&&(proto.Message.prototype.toObject=function(e){return proto.Message.toObject(e,this)},proto.Message.toObject=function(e,t){var n,r={uid:Mn.Message.getFieldWithDefault(t,1,""),type:Mn.Message.getFieldWithDefault(t,2,""),content:Mn.Message.getFieldWithDefault(t,3,""),status:Mn.Message.getFieldWithDefault(t,4,""),createdat:Mn.Message.getFieldWithDefault(t,5,""),client:Mn.Message.getFieldWithDefault(t,6,""),thread:(n=t.getThread())&&proto.Thread.toObject(e,n),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:Mn.Message.getFieldWithDefault(t,9,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Message.deserializeBinary=function(e){var t=new Mn.BinaryReader(e),n=new proto.Message;return proto.Message.deserializeBinaryFromReader(n,t)};proto.Message.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setType(r);break;case 3:var r=t.readString();e.setContent(r);break;case 4:var r=t.readString();e.setStatus(r);break;case 5:var r=t.readString();e.setCreatedat(r);break;case 6:var r=t.readString();e.setClient(r);break;case 7:var r=new proto.Thread;t.readMessage(r,proto.Thread.deserializeBinaryFromReader),e.setThread(r);break;case 8:var r=new proto.User;t.readMessage(r,proto.User.deserializeBinaryFromReader),e.setUser(r);break;case 9:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Message.prototype.serializeBinary=function(){var e=new Mn.BinaryWriter;return proto.Message.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Message.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getType(),n.length>0&&t.writeString(2,n),n=e.getContent(),n.length>0&&t.writeString(3,n),n=e.getStatus(),n.length>0&&t.writeString(4,n),n=e.getCreatedat(),n.length>0&&t.writeString(5,n),n=e.getClient(),n.length>0&&t.writeString(6,n),n=e.getThread(),n!=null&&t.writeMessage(7,n,proto.Thread.serializeBinaryToWriter),n=e.getUser(),n!=null&&t.writeMessage(8,n,proto.User.serializeBinaryToWriter),n=e.getExtra(),n.length>0&&t.writeString(9,n)};proto.Message.prototype.getUid=function(){return Mn.Message.getFieldWithDefault(this,1,"")};proto.Message.prototype.setUid=function(e){return Mn.Message.setProto3StringField(this,1,e)};proto.Message.prototype.getType=function(){return Mn.Message.getFieldWithDefault(this,2,"")};proto.Message.prototype.setType=function(e){return Mn.Message.setProto3StringField(this,2,e)};proto.Message.prototype.getContent=function(){return Mn.Message.getFieldWithDefault(this,3,"")};proto.Message.prototype.setContent=function(e){return Mn.Message.setProto3StringField(this,3,e)};proto.Message.prototype.getStatus=function(){return Mn.Message.getFieldWithDefault(this,4,"")};proto.Message.prototype.setStatus=function(e){return Mn.Message.setProto3StringField(this,4,e)};proto.Message.prototype.getCreatedat=function(){return Mn.Message.getFieldWithDefault(this,5,"")};proto.Message.prototype.setCreatedat=function(e){return Mn.Message.setProto3StringField(this,5,e)};proto.Message.prototype.getClient=function(){return Mn.Message.getFieldWithDefault(this,6,"")};proto.Message.prototype.setClient=function(e){return Mn.Message.setProto3StringField(this,6,e)};proto.Message.prototype.getThread=function(){return Mn.Message.getWrapperField(this,proto.Thread,7)};proto.Message.prototype.setThread=function(e){return Mn.Message.setWrapperField(this,7,e)};proto.Message.prototype.clearThread=function(){return this.setThread(void 0)};proto.Message.prototype.hasThread=function(){return Mn.Message.getField(this,7)!=null};proto.Message.prototype.getUser=function(){return Mn.Message.getWrapperField(this,proto.User,8)};proto.Message.prototype.setUser=function(e){return Mn.Message.setWrapperField(this,8,e)};proto.Message.prototype.clearUser=function(){return this.setUser(void 0)};proto.Message.prototype.hasUser=function(){return Mn.Message.getField(this,8)!=null};proto.Message.prototype.getExtra=function(){return Mn.Message.getFieldWithDefault(this,9,"")};proto.Message.prototype.setExtra=function(e){return Mn.Message.setProto3StringField(this,9,e)};const wue=proto,nMe="modulepreload",rMe=function(e){return"/agent/"+e},EK={},xue=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=rMe(l),l in EK)return;EK[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":nMe,c||(f.as="script"),f.crossOrigin="",f.href=l,s&&f.setAttribute("nonce",s),document.head.appendChild(f),c)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var vue;function tn(){return vue.apply(null,arguments)}function rMe(e){vue=e}function du(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Hm(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Jr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function XF(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Jr(e,t))return!1;return!0}function Ts(e){return e===void 0}function If(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function c4(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function yue(e,t){var n=[],r,i=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n>>0,r;for(r=0;r0)for(n=0;n=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var eL=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,rS=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,e9={},kv={};function er(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(kv[e]=i),t&&(kv[t[0]]=function(){return pd(i.apply(this,arguments),t[1],t[2])}),n&&(kv[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function lMe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function cMe(e){var t=e.match(eL),n,r;for(n=0,r=t.length;n=0&&rS.test(e);)e=e.replace(rS,r),rS.lastIndex=0,n-=1;return e}var uMe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function dMe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(eL).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var fMe="Invalid date";function pMe(){return this._invalidDate}var hMe="%d",mMe=/\d{1,2}/;function gMe(e){return this._ordinal.replace("%d",e)}var vMe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function yMe(e,t,n,r){var i=this._relativeTime[n];return kd(i)?i(e,t,n,r):i.replace(/%d/i,e)}function bMe(e,t){var n=this._relativeTime[e>0?"future":"past"];return kd(n)?n(t):n.replace(/%s/i,t)}var EK={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Sc(e){return typeof e=="string"?EK[e]||EK[e.toLowerCase()]:void 0}function tL(e){var t={},n,r;for(r in e)Jr(e,r)&&(n=Sc(r),n&&(t[n]=e[r]));return t}var wMe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function xMe(e){var t=[],n;for(n in e)Jr(e,n)&&t.push({unit:n,priority:wMe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Sue=/\d/,Bl=/\d\d/,Cue=/\d{3}/,nL=/\d{4}/,yE=/[+-]?\d{6}/,zi=/\d\d?/,_ue=/\d\d\d\d?/,kue=/\d\d\d\d\d\d?/,bE=/\d{1,3}/,rL=/\d{1,4}/,wE=/[+-]?\d{1,6}/,my=/\d+/,xE=/[+-]?\d+/,SMe=/Z|[+-]\d\d:?\d\d/gi,SE=/Z|[+-]\d\d(?::?\d\d)?/gi,CMe=/[+-]?\d+(\.\d{1,3})?/,d4=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,gy=/^[1-9]\d?/,iL=/^([1-9]\d|\d)/,$k;$k={};function Ln(e,t,n){$k[e]=kd(t)?t:function(r,i){return r&&n?n:t}}function _Me(e,t){return Jr($k,e)?$k[e](t._strict,t._locale):new RegExp(kMe(e))}function kMe(e){return gf(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function gf(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function rc(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Lr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=rc(t)),n}var BR={};function vi(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),If(t)&&(r=function(a,o){o[t]=Lr(a)}),i=e.length,n=0;n68?1900:2e3)};var Eue=vy("FullYear",!0);function TMe(){return CE(this.year())}function vy(e,t){return function(n){return n!=null?($ue(this,e,n),tn.updateOffset(this,t),this):Lw(this,e)}}function Lw(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function $ue(e,t,n){var r,i,a,o,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,o=e.month(),s=e.date(),s=s===29&&o===1&&!CE(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function PMe(e){return e=Sc(e),kd(this[e])?this[e]():this}function OMe(e,t){if(typeof e=="object"){e=tL(e);var n=xMe(e),r,i=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Bw(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Mk(e,t,n){var r=7+t-n,i=(7+Bw(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Rue(e,t,n,r,i){var a=(7+n-r)%7,o=Mk(e,r,i),s=1+7*(t-1)+a+o,l,c;return s<=0?(l=e-1,c=H2(l)+s):s>H2(e)?(l=e+1,c=s-H2(e)):(l=e,c=s),{year:l,dayOfYear:c}}function zw(e,t,n){var r=Mk(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+vf(o,t,n)):i>vf(e.year(),t,n)?(a=i-vf(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function vf(e,t,n){var r=Mk(e,t,n),i=Mk(e+1,t,n);return(H2(e)-r+i)/7}er("w",["ww",2],"wo","week");er("W",["WW",2],"Wo","isoWeek");Ln("w",zi,gy);Ln("ww",zi,Bl);Ln("W",zi,gy);Ln("WW",zi,Bl);f4(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Lr(e)});function WMe(e){return zw(e,this._week.dow,this._week.doy).week}var VMe={dow:0,doy:6};function qMe(){return this._week.dow}function KMe(){return this._week.doy}function GMe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function YMe(e){var t=zw(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}er("d",0,"do","day");er("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});er("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});er("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});er("e",0,0,"weekday");er("E",0,0,"isoWeekday");Ln("d",zi);Ln("e",zi);Ln("E",zi);Ln("dd",function(e,t){return t.weekdaysMinRegex(e)});Ln("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ln("dddd",function(e,t){return t.weekdaysRegex(e)});f4(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:kr(n).invalidWeekday=e});f4(["d","e","E"],function(e,t,n,r){t[r]=Lr(e)});function XMe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function ZMe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function oL(e,t){return e.slice(t,7).concat(e.slice(0,t))}var QMe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),JMe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),e9e=d4,t9e=d4,n9e=d4;function r9e(e,t){var n=du(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?oL(n,this._week.dow):e?n[e.day()]:n}function i9e(e){return e===!0?oL(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function a9e(e){return e===!0?oL(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function o9e(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=_d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=xa.call(this._weekdaysParse,o),i!==-1?i:null):t==="ddd"?(i=xa.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=xa.call(this._minWeekdaysParse,o),i!==-1?i:null):t==="dddd"?(i=xa.call(this._weekdaysParse,o),i!==-1||(i=xa.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=xa.call(this._minWeekdaysParse,o),i!==-1?i:null)):t==="ddd"?(i=xa.call(this._shortWeekdaysParse,o),i!==-1||(i=xa.call(this._weekdaysParse,o),i!==-1)?i:(i=xa.call(this._minWeekdaysParse,o),i!==-1?i:null)):(i=xa.call(this._minWeekdaysParse,o),i!==-1||(i=xa.call(this._weekdaysParse,o),i!==-1)?i:(i=xa.call(this._shortWeekdaysParse,o),i!==-1?i:null))}function s9e(e,t,n){var r,i,a;if(this._weekdaysParseExact)return o9e.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=_d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function l9e(e){if(!this.isValid())return e!=null?this:NaN;var t=Lw(this,"Day");return e!=null?(e=XMe(e,this.localeData()),this.add(e-t,"d")):t}function c9e(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function u9e(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=ZMe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function d9e(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||sL.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Jr(this,"_weekdaysRegex")||(this._weekdaysRegex=e9e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function f9e(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||sL.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Jr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=t9e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function p9e(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||sL.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Jr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=n9e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function sL(){function e(u,f){return f.length-u.length}var t=[],n=[],r=[],i=[],a,o,s,l,c;for(a=0;a<7;a++)o=_d([2e3,1]).day(a),s=gf(this.weekdaysMin(o,"")),l=gf(this.weekdaysShort(o,"")),c=gf(this.weekdays(o,"")),t.push(s),n.push(l),r.push(c),i.push(s),i.push(l),i.push(c);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function lL(){return this.hours()%12||12}function h9e(){return this.hours()||24}er("H",["HH",2],0,"hour");er("h",["hh",2],0,lL);er("k",["kk",2],0,h9e);er("hmm",0,0,function(){return""+lL.apply(this)+pd(this.minutes(),2)});er("hmmss",0,0,function(){return""+lL.apply(this)+pd(this.minutes(),2)+pd(this.seconds(),2)});er("Hmm",0,0,function(){return""+this.hours()+pd(this.minutes(),2)});er("Hmmss",0,0,function(){return""+this.hours()+pd(this.minutes(),2)+pd(this.seconds(),2)});function Nue(e,t){er(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Nue("a",!0);Nue("A",!1);function Aue(e,t){return t._meridiemParse}Ln("a",Aue);Ln("A",Aue);Ln("H",zi,iL);Ln("h",zi,gy);Ln("k",zi,gy);Ln("HH",zi,Bl);Ln("hh",zi,Bl);Ln("kk",zi,Bl);Ln("hmm",_ue);Ln("hmmss",kue);Ln("Hmm",_ue);Ln("Hmmss",kue);vi(["H","HH"],Va);vi(["k","kk"],function(e,t,n){var r=Lr(e);t[Va]=r===24?0:r});vi(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});vi(["h","hh"],function(e,t,n){t[Va]=Lr(e),kr(n).bigHour=!0});vi("hmm",function(e,t,n){var r=e.length-2;t[Va]=Lr(e.substr(0,r)),t[Xc]=Lr(e.substr(r)),kr(n).bigHour=!0});vi("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Va]=Lr(e.substr(0,r)),t[Xc]=Lr(e.substr(r,2)),t[pf]=Lr(e.substr(i)),kr(n).bigHour=!0});vi("Hmm",function(e,t,n){var r=e.length-2;t[Va]=Lr(e.substr(0,r)),t[Xc]=Lr(e.substr(r))});vi("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Va]=Lr(e.substr(0,r)),t[Xc]=Lr(e.substr(r,2)),t[pf]=Lr(e.substr(i))});function m9e(e){return(e+"").toLowerCase().charAt(0)==="p"}var g9e=/[ap]\.?m?\.?/i,v9e=vy("Hours",!0);function y9e(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Due={calendar:oMe,longDateFormat:uMe,invalidDate:fMe,ordinal:hMe,dayOfMonthOrdinalParse:mMe,relativeTime:vMe,months:RMe,monthsShort:Mue,week:VMe,weekdays:QMe,weekdaysMin:JMe,weekdaysShort:jue,meridiemParse:g9e},Vi={},$b={},Hw;function b9e(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=_E(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&b9e(a,r)>=n-1)break;n--}t++}return Hw}function x9e(e){return!!(e&&e.match("^[^/\\\\]*$"))}function _E(e){var t=null,n;if(Vi[e]===void 0&&typeof qo<"u"&&qo&&qo.exports&&x9e(e))try{t=Hw._abbr,n=require,n("./locale/"+e),eh(t)}catch{Vi[e]=null}return Vi[e]}function eh(e,t){var n;return e&&(Ts(t)?n=Uf(e):n=cL(e,t),n?Hw=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Hw._abbr}function cL(e,t){if(t!==null){var n,r=Due;if(t.abbr=e,Vi[e]!=null)wue("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Vi[e]._config;else if(t.parentLocale!=null)if(Vi[t.parentLocale]!=null)r=Vi[t.parentLocale]._config;else if(n=_E(t.parentLocale),n!=null)r=n._config;else return $b[t.parentLocale]||($b[t.parentLocale]=[]),$b[t.parentLocale].push({name:e,config:t}),null;return Vi[e]=new JF(FR(r,t)),$b[e]&&$b[e].forEach(function(i){cL(i.name,i.config)}),eh(e),Vi[e]}else return delete Vi[e],null}function S9e(e,t){if(t!=null){var n,r,i=Due;Vi[e]!=null&&Vi[e].parentLocale!=null?Vi[e].set(FR(Vi[e]._config,t)):(r=_E(e),r!=null&&(i=r._config),t=FR(i,t),r==null&&(t.abbr=e),n=new JF(t),n.parentLocale=Vi[e],Vi[e]=n),eh(e)}else Vi[e]!=null&&(Vi[e].parentLocale!=null?(Vi[e]=Vi[e].parentLocale,e===eh()&&eh(e)):Vi[e]!=null&&delete Vi[e]);return Vi[e]}function Uf(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Hw;if(!du(e)){if(t=_E(e),t)return t;e=[e]}return w9e(e)}function C9e(){return LR(Vi)}function uL(e){var t,n=e._a;return n&&kr(e).overflow===-2&&(t=n[ff]<0||n[ff]>11?ff:n[Xu]<1||n[Xu]>aL(n[Ko],n[ff])?Xu:n[Va]<0||n[Va]>24||n[Va]===24&&(n[Xc]!==0||n[pf]!==0||n[wm]!==0)?Va:n[Xc]<0||n[Xc]>59?Xc:n[pf]<0||n[pf]>59?pf:n[wm]<0||n[wm]>999?wm:-1,kr(e)._overflowDayOfYear&&(tXu)&&(t=Xu),kr(e)._overflowWeeks&&t===-1&&(t=$Me),kr(e)._overflowWeekday&&t===-1&&(t=MMe),kr(e).overflow=t),e}var _9e=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,k9e=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,E9e=/Z|[+-]\d\d(?::?\d\d)?/,iS=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],t9=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],$9e=/^\/?Date\((-?\d+)/i,M9e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,T9e={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Fue(e){var t,n,r=e._i,i=_9e.exec(r)||k9e.exec(r),a,o,s,l,c=iS.length,u=t9.length;if(i){for(kr(e).iso=!0,t=0,n=c;tH2(o)||e._dayOfYear===0)&&(kr(e)._overflowDayOfYear=!0),n=Bw(o,0,e._dayOfYear),e._a[ff]=n.getUTCMonth(),e._a[Xu]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Va]===24&&e._a[Xc]===0&&e._a[pf]===0&&e._a[wm]===0&&(e._nextDay=!0,e._a[Va]=0),e._d=(e._useUTC?Bw:UMe).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Va]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(kr(e).weekdayMismatch=!0)}}function D9e(e){var t,n,r,i,a,o,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,n=G1(t.GG,e._a[Ko],zw(Li(),1,4).year),r=G1(t.W,1),i=G1(t.E,1),(i<1||i>7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,c=zw(Li(),a,o),n=G1(t.gg,e._a[Ko],c.year),r=G1(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>vf(n,a,o)?kr(e)._overflowWeeks=!0:l!=null?kr(e)._overflowWeekday=!0:(s=Rue(n,r,i,a,o),e._a[Ko]=s.year,e._dayOfYear=s.dayOfYear)}tn.ISO_8601=function(){};tn.RFC_2822=function(){};function fL(e){if(e._f===tn.ISO_8601){Fue(e);return}if(e._f===tn.RFC_2822){Lue(e);return}e._a=[],kr(e).empty=!0;var t=""+e._i,n,r,i,a,o,s=t.length,l=0,c,u;for(i=xue(e._f,e._locale).match(eL)||[],u=i.length,n=0;n0&&kr(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),l+=r.length),kv[a]?(r?kr(e).empty=!1:kr(e).unusedTokens.push(a),EMe(a,r,e)):e._strict&&!r&&kr(e).unusedTokens.push(a);kr(e).charsLeftOver=s-l,t.length>0&&kr(e).unusedInput.push(t),e._a[Va]<=12&&kr(e).bigHour===!0&&e._a[Va]>0&&(kr(e).bigHour=void 0),kr(e).parsedDateParts=e._a.slice(0),kr(e).meridiem=e._meridiem,e._a[Va]=F9e(e._locale,e._a[Va],e._meridiem),c=kr(e).era,c!==null&&(e._a[Ko]=e._locale.erasConvertYear(c,e._a[Ko])),dL(e),uL(e)}function F9e(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function L9e(e){var t,n,r,i,a,o,s=!1,l=e._f.length;if(l===0){kr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:vE()});function Hue(e,t){var n,r;if(t.length===1&&du(t[0])&&(t=t[0]),!t.length)return Li();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function oTe(){if(!Ts(this._isDSTShifted))return this._isDSTShifted;var e={},t;return QF(e,this),e=Bue(e),e._a?(t=e._isUTC?_d(e._a):Li(e._a),this._isDSTShifted=this.isValid()&&Z9e(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function sTe(){return this.isValid()?!this._isUTC:!1}function lTe(){return this.isValid()?this._isUTC:!1}function Wue(){return this.isValid()?this._isUTC&&this._offset===0:!1}var cTe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,uTe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function xu(e,t){var n=e,r=null,i,a,o;return HC(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:If(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=cTe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Lr(r[Xu])*i,h:Lr(r[Va])*i,m:Lr(r[Xc])*i,s:Lr(r[pf])*i,ms:Lr(zR(r[wm]*1e3))*i}):(r=uTe.exec(e))?(i=r[1]==="-"?-1:1,n={y:Vh(r[2],i),M:Vh(r[3],i),w:Vh(r[4],i),d:Vh(r[5],i),h:Vh(r[6],i),m:Vh(r[7],i),s:Vh(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=dTe(Li(n.from),Li(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),a=new kE(n),HC(e)&&Jr(e,"_locale")&&(a._locale=e._locale),HC(e)&&Jr(e,"_isValid")&&(a._isValid=e._isValid),a}xu.fn=kE.prototype;xu.invalid=X9e;function Vh(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function MK(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function dTe(e,t){var n;return e.isValid()&&t.isValid()?(t=hL(t,e),e.isBefore(t)?n=MK(e,t):(n=MK(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Vue(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(wue(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=xu(n,r),que(this,i,e),this}}function que(e,t,n,r){var i=t._milliseconds,a=zR(t._days),o=zR(t._months);e.isValid()&&(r=r??!0,o&&Pue(e,Lw(e,"Month")+o*n),a&&$ue(e,"Date",Lw(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&tn.updateOffset(e,a||o))}var fTe=Vue(1,"add"),pTe=Vue(-1,"subtract");function Kue(e){return typeof e=="string"||e instanceof String}function hTe(e){return fu(e)||c4(e)||Kue(e)||If(e)||gTe(e)||mTe(e)||e===null||e===void 0}function mTe(e){var t=Hm(e)&&!XF(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,o=r.length;for(i=0;in.valueOf():n.valueOf()9999?zC(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):kd(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",zC(n,"Z")):zC(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function PTe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function OTe(e){e||(e=this.isUtc()?tn.defaultFormatUtc:tn.defaultFormat);var t=zC(this,e);return this.localeData().postformat(t)}function ITe(e,t){return this.isValid()&&(fu(e)&&e.isValid()||Li(e).isValid())?xu({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function RTe(e){return this.from(Li(),e)}function jTe(e,t){return this.isValid()&&(fu(e)&&e.isValid()||Li(e).isValid())?xu({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function NTe(e){return this.to(Li(),e)}function Gue(e){var t;return e===void 0?this._locale._abbr:(t=Uf(e),t!=null&&(this._locale=t),this)}var Yue=xc("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Xue(){return this._locale}var Tk=1e3,Ev=60*Tk,Pk=60*Ev,Zue=(365*400+97)*24*Pk;function $v(e,t){return(e%t+t)%t}function Que(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Zue:new Date(e,t,n).valueOf()}function Jue(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Zue:Date.UTC(e,t,n)}function ATe(e){var t,n;if(e=Sc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Jue:Que,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=$v(t+(this._isUTC?0:this.utcOffset()*Ev),Pk);break;case"minute":t=this._d.valueOf(),t-=$v(t,Ev);break;case"second":t=this._d.valueOf(),t-=$v(t,Tk);break}return this._d.setTime(t),tn.updateOffset(this,!0),this}function DTe(e){var t,n;if(e=Sc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Jue:Que,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Pk-$v(t+(this._isUTC?0:this.utcOffset()*Ev),Pk)-1;break;case"minute":t=this._d.valueOf(),t+=Ev-$v(t,Ev)-1;break;case"second":t=this._d.valueOf(),t+=Tk-$v(t,Tk)-1;break}return this._d.setTime(t),tn.updateOffset(this,!0),this}function FTe(){return this._d.valueOf()-(this._offset||0)*6e4}function LTe(){return Math.floor(this.valueOf()/1e3)}function BTe(){return new Date(this.valueOf())}function zTe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function HTe(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function UTe(){return this.isValid()?this.toISOString():null}function WTe(){return ZF(this)}function VTe(){return jp({},kr(this))}function qTe(){return kr(this).overflow}function KTe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}er("N",0,0,"eraAbbr");er("NN",0,0,"eraAbbr");er("NNN",0,0,"eraAbbr");er("NNNN",0,0,"eraName");er("NNNNN",0,0,"eraNarrow");er("y",["y",1],"yo","eraYear");er("y",["yy",2],0,"eraYear");er("y",["yyy",3],0,"eraYear");er("y",["yyyy",4],0,"eraYear");Ln("N",mL);Ln("NN",mL);Ln("NNN",mL);Ln("NNNN",iPe);Ln("NNNNN",aPe);vi(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?kr(n).era=i:kr(n).invalidEra=e});Ln("y",my);Ln("yy",my);Ln("yyy",my);Ln("yyyy",my);Ln("yo",oPe);vi(["y","yy","yyy","yyyy"],Ko);vi(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ko]=n._locale.eraYearOrdinalParse(e,i):t[Ko]=parseInt(e,10)});function GTe(e,t){var n,r,i,a=this._eras||Uf("en")._eras;for(n=0,r=a.length;n=0)return a[r]}function XTe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?tn(e.since).year():tn(e.since).year()+(t-e.offset)*n}function ZTe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ea&&(t=a),pPe.call(this,e,t,n,r,i))}function pPe(e,t,n,r,i){var a=Rue(e,t,n,r,i),o=Bw(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}er("Q",0,"Qo","quarter");Ln("Q",Sue);vi("Q",function(e,t){t[ff]=(Lr(e)-1)*3});function hPe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}er("D",["DD",2],"Do","date");Ln("D",zi,gy);Ln("DD",zi,Bl);Ln("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});vi(["D","DD"],Xu);vi("Do",function(e,t){t[Xu]=Lr(e.match(zi)[0])});var tde=vy("Date",!0);er("DDD",["DDDD",3],"DDDo","dayOfYear");Ln("DDD",bE);Ln("DDDD",Cue);vi(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Lr(e)});function mPe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}er("m",["mm",2],0,"minute");Ln("m",zi,iL);Ln("mm",zi,Bl);vi(["m","mm"],Xc);var gPe=vy("Minutes",!1);er("s",["ss",2],0,"second");Ln("s",zi,iL);Ln("ss",zi,Bl);vi(["s","ss"],pf);var vPe=vy("Seconds",!1);er("S",0,0,function(){return~~(this.millisecond()/100)});er(0,["SS",2],0,function(){return~~(this.millisecond()/10)});er(0,["SSS",3],0,"millisecond");er(0,["SSSS",4],0,function(){return this.millisecond()*10});er(0,["SSSSS",5],0,function(){return this.millisecond()*100});er(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});er(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});er(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});er(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ln("S",bE,Sue);Ln("SS",bE,Bl);Ln("SSS",bE,Cue);var Np,nde;for(Np="SSSS";Np.length<=9;Np+="S")Ln(Np,my);function yPe(e,t){t[wm]=Lr(("0."+e)*1e3)}for(Np="S";Np.length<=9;Np+="S")vi(Np,yPe);nde=vy("Milliseconds",!1);er("z",0,0,"zoneAbbr");er("zz",0,0,"zoneName");function bPe(){return this._isUTC?"UTC":""}function wPe(){return this._isUTC?"Coordinated Universal Time":""}var hn=u4.prototype;hn.add=fTe;hn.calendar=bTe;hn.clone=wTe;hn.diff=$Te;hn.endOf=DTe;hn.format=OTe;hn.from=ITe;hn.fromNow=RTe;hn.to=jTe;hn.toNow=NTe;hn.get=PMe;hn.invalidAt=qTe;hn.isAfter=xTe;hn.isBefore=STe;hn.isBetween=CTe;hn.isSame=_Te;hn.isSameOrAfter=kTe;hn.isSameOrBefore=ETe;hn.isValid=WTe;hn.lang=Yue;hn.locale=Gue;hn.localeData=Xue;hn.max=W9e;hn.min=U9e;hn.parsingFlags=VTe;hn.set=OMe;hn.startOf=ATe;hn.subtract=pTe;hn.toArray=zTe;hn.toObject=HTe;hn.toDate=BTe;hn.toISOString=TTe;hn.inspect=PTe;typeof Symbol<"u"&&Symbol.for!=null&&(hn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});hn.toJSON=UTe;hn.toString=MTe;hn.unix=LTe;hn.valueOf=FTe;hn.creationData=KTe;hn.eraName=ZTe;hn.eraNarrow=QTe;hn.eraAbbr=JTe;hn.eraYear=ePe;hn.year=Eue;hn.isLeapYear=TMe;hn.weekYear=sPe;hn.isoWeekYear=lPe;hn.quarter=hn.quarters=hPe;hn.month=Oue;hn.daysInMonth=BMe;hn.week=hn.weeks=GMe;hn.isoWeek=hn.isoWeeks=YMe;hn.weeksInYear=dPe;hn.weeksInWeekYear=fPe;hn.isoWeeksInYear=cPe;hn.isoWeeksInISOWeekYear=uPe;hn.date=tde;hn.day=hn.days=l9e;hn.weekday=c9e;hn.isoWeekday=u9e;hn.dayOfYear=mPe;hn.hour=hn.hours=v9e;hn.minute=hn.minutes=gPe;hn.second=hn.seconds=vPe;hn.millisecond=hn.milliseconds=nde;hn.utcOffset=J9e;hn.utc=tTe;hn.local=nTe;hn.parseZone=rTe;hn.hasAlignedHourOffset=iTe;hn.isDST=aTe;hn.isLocal=sTe;hn.isUtcOffset=lTe;hn.isUtc=Wue;hn.isUTC=Wue;hn.zoneAbbr=bPe;hn.zoneName=wPe;hn.dates=xc("dates accessor is deprecated. Use date instead.",tde);hn.months=xc("months accessor is deprecated. Use month instead",Oue);hn.years=xc("years accessor is deprecated. Use year instead",Eue);hn.zone=xc("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",eTe);hn.isDSTShifted=xc("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",oTe);function xPe(e){return Li(e*1e3)}function SPe(){return Li.apply(null,arguments).parseZone()}function rde(e){return e}var ti=JF.prototype;ti.calendar=sMe;ti.longDateFormat=dMe;ti.invalidDate=pMe;ti.ordinal=gMe;ti.preparse=rde;ti.postformat=rde;ti.relativeTime=yMe;ti.pastFuture=bMe;ti.set=aMe;ti.eras=GTe;ti.erasParse=YTe;ti.erasConvertYear=XTe;ti.erasAbbrRegex=nPe;ti.erasNameRegex=tPe;ti.erasNarrowRegex=rPe;ti.months=AMe;ti.monthsShort=DMe;ti.monthsParse=LMe;ti.monthsRegex=HMe;ti.monthsShortRegex=zMe;ti.week=WMe;ti.firstDayOfYear=KMe;ti.firstDayOfWeek=qMe;ti.weekdays=r9e;ti.weekdaysMin=a9e;ti.weekdaysShort=i9e;ti.weekdaysParse=s9e;ti.weekdaysRegex=d9e;ti.weekdaysShortRegex=f9e;ti.weekdaysMinRegex=p9e;ti.isPM=m9e;ti.meridiem=y9e;function Ok(e,t,n,r){var i=Uf(),a=_d().set(r,t);return i[n](a,e)}function ide(e,t,n){if(If(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ok(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Ok(e,r,n,"month");return i}function vL(e,t,n,r){typeof e=="boolean"?(If(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,If(t)&&(n=t,t=void 0),t=t||"");var i=Uf(),a=e?i._week.dow:0,o,s=[];if(n!=null)return Ok(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=Ok(t,(o+a)%7,r,"day");return s}function CPe(e,t){return ide(e,t,"months")}function _Pe(e,t){return ide(e,t,"monthsShort")}function kPe(e,t,n){return vL(e,t,n,"weekdays")}function EPe(e,t,n){return vL(e,t,n,"weekdaysShort")}function $Pe(e,t,n){return vL(e,t,n,"weekdaysMin")}eh("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Lr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});tn.lang=xc("moment.lang is deprecated. Use moment.locale instead.",eh);tn.langData=xc("moment.langData is deprecated. Use moment.localeData instead.",Uf);var Ld=Math.abs;function MPe(){var e=this._data;return this._milliseconds=Ld(this._milliseconds),this._days=Ld(this._days),this._months=Ld(this._months),e.milliseconds=Ld(e.milliseconds),e.seconds=Ld(e.seconds),e.minutes=Ld(e.minutes),e.hours=Ld(e.hours),e.months=Ld(e.months),e.years=Ld(e.years),this}function ade(e,t,n,r){var i=xu(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function TPe(e,t){return ade(this,e,t,1)}function PPe(e,t){return ade(this,e,t,-1)}function TK(e){return e<0?Math.floor(e):Math.ceil(e)}function OPe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,o,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=TK(UR(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=rc(e/1e3),r.seconds=i%60,a=rc(i/60),r.minutes=a%60,o=rc(a/60),r.hours=o%24,t+=rc(o/24),l=rc(ode(t)),n+=l,t-=TK(UR(l)),s=rc(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function ode(e){return e*4800/146097}function UR(e){return e*146097/4800}function IPe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Sc(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+ode(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(UR(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Wf(e){return function(){return this.as(e)}}var sde=Wf("ms"),RPe=Wf("s"),jPe=Wf("m"),NPe=Wf("h"),APe=Wf("d"),DPe=Wf("w"),FPe=Wf("M"),LPe=Wf("Q"),BPe=Wf("y"),zPe=sde;function HPe(){return xu(this)}function UPe(e){return e=Sc(e),this.isValid()?this[e+"s"]():NaN}function zg(e){return function(){return this.isValid()?this._data[e]:NaN}}var WPe=zg("milliseconds"),VPe=zg("seconds"),qPe=zg("minutes"),KPe=zg("hours"),GPe=zg("days"),YPe=zg("months"),XPe=zg("years");function ZPe(){return rc(this.days()/7)}var Jd=Math.round,pv={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function QPe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function JPe(e,t,n,r){var i=xu(e).abs(),a=Jd(i.as("s")),o=Jd(i.as("m")),s=Jd(i.as("h")),l=Jd(i.as("d")),c=Jd(i.as("M")),u=Jd(i.as("w")),f=Jd(i.as("y")),p=a<=n.ss&&["s",a]||a0,p[4]=r,QPe.apply(null,p)}function eOe(e){return e===void 0?Jd:typeof e=="function"?(Jd=e,!0):!1}function tOe(e,t){return pv[e]===void 0?!1:t===void 0?pv[e]:(pv[e]=t,e==="s"&&(pv.ss=t-1),!0)}function nOe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=pv,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},pv,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=JPe(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var n9=Math.abs;function _1(e){return(e>0)-(e<0)||+e}function $E(){if(!this.isValid())return this.localeData().invalidDate();var e=n9(this._milliseconds)/1e3,t=n9(this._days),n=n9(this._months),r,i,a,o,s=this.asSeconds(),l,c,u,f;return s?(r=rc(e/60),i=rc(r/60),e%=60,r%=60,a=rc(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=_1(this._months)!==_1(s)?"-":"",u=_1(this._days)!==_1(s)?"-":"",f=_1(this._milliseconds)!==_1(s)?"-":"",l+"P"+(a?c+a+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+o+"S":"")):"P0D"}var Kr=kE.prototype;Kr.isValid=Y9e;Kr.abs=MPe;Kr.add=TPe;Kr.subtract=PPe;Kr.as=IPe;Kr.asMilliseconds=sde;Kr.asSeconds=RPe;Kr.asMinutes=jPe;Kr.asHours=NPe;Kr.asDays=APe;Kr.asWeeks=DPe;Kr.asMonths=FPe;Kr.asQuarters=LPe;Kr.asYears=BPe;Kr.valueOf=zPe;Kr._bubble=OPe;Kr.clone=HPe;Kr.get=UPe;Kr.milliseconds=WPe;Kr.seconds=VPe;Kr.minutes=qPe;Kr.hours=KPe;Kr.days=GPe;Kr.weeks=ZPe;Kr.months=YPe;Kr.years=XPe;Kr.humanize=nOe;Kr.toISOString=$E;Kr.toString=$E;Kr.toJSON=$E;Kr.locale=Gue;Kr.localeData=Xue;Kr.toIsoString=xc("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$E);Kr.lang=Yue;er("X",0,0,"unix");er("x",0,0,"valueOf");Ln("x",xE);Ln("X",CMe);vi("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});vi("x",function(e,t,n){n._d=new Date(Lr(e))});//! moment.js -tn.version="2.30.1";rMe(Li);tn.fn=hn;tn.min=V9e;tn.max=q9e;tn.now=K9e;tn.utc=_d;tn.unix=xPe;tn.months=CPe;tn.isDate=c4;tn.locale=eh;tn.invalid=vE;tn.duration=xu;tn.isMoment=fu;tn.weekdays=kPe;tn.parseZone=SPe;tn.localeData=Uf;tn.isDuration=HC;tn.monthsShort=_Pe;tn.weekdaysMin=$Pe;tn.defineLocale=cL;tn.updateLocale=S9e;tn.locales=C9e;tn.weekdaysShort=EPe;tn.normalizeUnits=Sc;tn.relativeTimeRounding=eOe;tn.relativeTimeThreshold=tOe;tn.calendarFormat=yTe;tn.prototype=hn;tn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let aS;const rOe=new Uint8Array(16);function iOe(){if(!aS&&(aS=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!aS))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return aS(rOe)}const po=[];for(let e=0;e<256;++e)po.push((e+256).toString(16).slice(1));function aOe(e,t=0){return po[e[t+0]]+po[e[t+1]]+po[e[t+2]]+po[e[t+3]]+"-"+po[e[t+4]]+po[e[t+5]]+"-"+po[e[t+6]]+po[e[t+7]]+"-"+po[e[t+8]]+po[e[t+9]]+"-"+po[e[t+10]]+po[e[t+11]]+po[e[t+12]]+po[e[t+13]]+po[e[t+14]]+po[e[t+15]]}const oOe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),PK={randomUUID:oOe};function sOe(e,t,n){if(PK.randomUUID&&!t&&!e)return PK.randomUUID();e=e||{};const r=e.random||(e.rng||iOe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,aOe(r)}const lOe="1.0.4";function wt(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}function cOe(e){var t,n,r,i,a,o,s;const l=(t=e.meta)===null||t===void 0?void 0:t.title,c=(n=e.meta)===null||n===void 0?void 0:n.creator,u=(r=e.meta)===null||r===void 0?void 0:r.source,f=(a=(i=e.meta)===null||i===void 0?void 0:i.license)===null||a===void 0?void 0:a.url,p=lde(e);return!l&&!c&&!u&&!f&&!p?"":''+(l?`${wt(l)}`:"")+(c?`${wt(c)}`:"")+(u?`${wt((s=(o=e.meta)===null||o===void 0?void 0:o.source)!==null&&s!==void 0?s:"")}`:"")+(f?`${wt(f)}`:"")+(p?`${wt(p)}`:"")+""}function lde(e){var t,n,r,i,a,o,s,l,c,u,f,p,h,m,g;let v=!((t=e.meta)===null||t===void 0)&&t.title?`„${(n=e.meta)===null||n===void 0?void 0:n.title}”`:"Design",y=`„${(i=(r=e.meta)===null||r===void 0?void 0:r.creator)!==null&&i!==void 0?i:"Unknown"}”`;!((a=e.meta)===null||a===void 0)&&a.source&&(v+=` (${e.meta.source})`);let b="";return((s=(o=e.meta)===null||o===void 0?void 0:o.license)===null||s===void 0?void 0:s.name)!=="MIT"&&((l=e.meta)===null||l===void 0?void 0:l.creator)!=="DiceBear"&&(!((c=e.meta)===null||c===void 0)&&c.title)&&(b+="Remix of "),b+=`${v} by ${y}`,!((f=(u=e.meta)===null||u===void 0?void 0:u.license)===null||f===void 0)&&f.name&&(b+=`, licensed under „${(h=(p=e.meta)===null||p===void 0?void 0:p.license)===null||h===void 0?void 0:h.name}”`,!((g=(m=e.meta)===null||m===void 0?void 0:m.license)===null||g===void 0)&&g.url&&(b+=` (${e.meta.license.url})`)),b}function uOe(e){var t,n,r,i,a,o,s,l,c;const u=lde(e);return{"IPTC:ObjectName":(t=e.meta)===null||t===void 0?void 0:t.title,"XMP-dc:Title":(n=e.meta)===null||n===void 0?void 0:n.title,"IPTC:CopyrightNotice":u,"XMP-dc:Rights":u,"IPTC:By-line":(r=e.meta)===null||r===void 0?void 0:r.creator,"XMP-dc:Creator":(i=e.meta)===null||i===void 0?void 0:i.creator,"IPTC:Credit":(a=e.meta)===null||a===void 0?void 0:a.creator,"XMP-photoshop:Credit":(o=e.meta)===null||o===void 0?void 0:o.creator,"XMP-plus:LicensorURL":(s=e.meta)===null||s===void 0?void 0:s.source,"XMP-xmpRights:WebStatement":(c=(l=e.meta)===null||l===void 0?void 0:l.license)===null||c===void 0?void 0:c.url}}const OK=-2147483648,dOe=2147483647;function cde(e){return e^=e<<13,e^=e>>17,e^=e<<5,e}function fOe(e){let t=0;for(let n=0;nt=cde(t),r=(i,a)=>Math.floor((n()-OK)/(dOe-OK)*(a+1-i)+i);return{seed:e,next:n,bool(i=50){return r(1,100)<=i},integer(i,a){return r(i,a)},pick(i,a){var o;return i.length===0?(n(),a):(o=i[r(0,i.length-1)])!==null&&o!==void 0?o:a},shuffle(i){const a=Ik(n().toString()),o=[...i];for(let s=o.length-1;s>0;s--){const l=a.integer(0,s);[o[s],o[l]]=[o[l],o[s]]}return o},string(i,a="abcdefghijklmnopqrstuvwxyz1234567890"){const o=Ik(n().toString());let s="";for(let l=0;l`;switch(r){case"solid":return c+e.body;case"gradientLinear":return``+e.body}}function hOe(e,t){let{width:n,height:r,x:i,y:a}=yy(e),o=t?(t-100)/100:0,s=(n/2+i)*o*-1,l=(r/2+a)*o*-1;return`${e.body}`}function mOe(e,t,n){let r=yy(e),i=(r.width+r.x*2)*((t??0)/100),a=(r.height+r.y*2)*((n??0)/100);return`${e.body}`}function gOe(e,t){let{width:n,height:r,x:i,y:a}=yy(e);return`${e.body}`}function vOe(e){let{width:t,x:n}=yy(e);return`${e.body}`}function yOe(e,t){let{width:n,height:r,x:i,y:a}=yy(e),o=t?n*t/100:0,s=t?r*t/100:0;return`${e.body}`}function bOe(e){const t={xmlns:"http://www.w3.org/2000/svg",...e.attributes};return Object.keys(t).map(n=>`${wt(n)}="${wt(t[n])}"`).join(" ")}function wOe(e){const t=Ik(Math.random().toString()),n={};return e.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(r,i,a,o)=>(n[a]=n[a]||t.string(8),`${i}${n[a]}${o}`))}const xOe={type:"object",$schema:"http://json-schema.org/draft-07/schema#",properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1}}};function IK(e){var t;let n={},r=(t=e.properties)!==null&&t!==void 0?t:{};return Object.keys(r).forEach(i=>{let a=r[i];typeof a=="object"&&a.default!==void 0&&(Array.isArray(a.default)?n[i]=[...a.default]:typeof a.default=="object"?n[i]={...a.default}:n[i]=a.default)}),n}function SOe(e,t){var n;let r={...IK(xOe),...IK((n=e.schema)!==null&&n!==void 0?n:{}),...t};return JSON.parse(JSON.stringify(r))}function WR(e){switch(e){case"svg":return"image/svg+xml";case"png":case"jpeg":return`image/${e}`;default:throw new Error(`Unsupported format: ${e}`)}}function COe(e,t=512){let n=t;return e=e.replace(/]*)/,(r,i)=>{const a=i.match(/width="([^"]+)"/);return a&&(n=parseInt(a[1])),i.match(/width="([^"]+)"/)?i=i.replace(/width="([^"]+)"/,`width="${n}"`):i+=` width="${n}"`,i.match(/height="([^"]+)"/)?i=i.replace(/height="([^"]+)"/,`height="${n}"`):i+=` height="${n}"`,`yL(e,t,n),toFile:r=>EOe(r,e,t,n),toArrayBuffer:()=>kOe(e,t,n)}};async function yL(e,t,n){return t==="svg"?`data:${WR(t)};utf8,${encodeURIComponent(e)}`:(await ude(e,t,n)).toDataURL(WR(t))}async function kOe(e,t,n){if(t==="svg")return _Oe().encode(e);const r=await ude(e,t,n);return await new Promise((i,a)=>{r.toBlob(o=>{o?i(o.arrayBuffer()):a(new Error("Could not create blob"))},WR(t))})}async function EOe(e,t,n,r){const i=document.createElement("a");i.href=await yL(t,n,r),i.download=e,i.click(),i.remove()}async function ude(e,t,n){n&&console.warn("The `exif` option is not supported in the browser version of `@dicebear/converter`. \nPlease use the node version of `@dicebear/converter` to generate images with exif data.");let{svg:r,size:i}=COe(e);const a=document.createElement("canvas");a.width=i,a.height=i;const o=a.getContext("2d");if(o===null)throw new Error("Could not get canvas context");t==="jpeg"&&(o.fillStyle="white",o.fillRect(0,0,i,i));var s=document.createElement("img");return s.width=i,s.height=i,s.setAttribute("src",await yL(r,"svg")),new Promise((l,c)=>{s.onload=()=>{o.drawImage(s,0,0,i,i),l(a)},s.onerror=u=>c(u)})}function RK(e){return e==="transparent"?e:`#${e}`}function $Oe(e,t,n){var r;let i=e.shuffle(t);i.length<=1||t.length==2&&n=="gradientLinear"?(i=t,e.next()):i=e.shuffle(t),i.length===0&&(i=["transparent"]);const a=i[0],o=(r=i[1])!==null&&r!==void 0?r:i[0];return{primary:RK(a),secondary:RK(o)}}function MOe(e,t={}){var n,r,i,a,o;t=SOe(e,t);const s=Ik(t.seed),l=e.create({prng:s,options:t}),c=s.pick((n=t.backgroundType)!==null&&n!==void 0?n:[],"solid"),{primary:u,secondary:f}=$Oe(s,(r=t.backgroundColor)!==null&&r!==void 0?r:[],c),p=s.integer(!((i=t.backgroundRotation)===null||i===void 0)&&i.length?Math.min(...t.backgroundRotation):0,!((a=t.backgroundRotation)===null||a===void 0)&&a.length?Math.max(...t.backgroundRotation):0);t.size&&(l.attributes.width=t.size.toString(),l.attributes.height=t.size.toString()),t.scale!==void 0&&t.scale!==100&&(l.body=hOe(l,t.scale)),t.flip&&(l.body=vOe(l)),t.rotate&&(l.body=gOe(l,t.rotate)),(t.translateX||t.translateY)&&(l.body=mOe(l,t.translateX,t.translateY)),u!=="transparent"&&f!=="transparent"&&(l.body=pOe(l,u,f,c,p)),(t.radius||t.clip)&&(l.body=yOe(l,(o=t.radius)!==null&&o!==void 0?o:0)),t.randomizeIds&&(l.body=wOe(l));const h=bOe(l),m=cOe(e),g=uOe(e),v=`${m}${l.body}`;return{toString:()=>v,toJson:()=>{var y;return{svg:v,extra:{primaryBackgroundColor:u,secondaryBackgroundColor:f,backgroundType:c,backgroundRotation:p,...(y=l.extra)===null||y===void 0?void 0:y.call(l)}}},toDataUriSync:()=>`data:image/svg+xml;utf8,${encodeURIComponent(v)}`,...i9(v,"svg"),png:({includeExif:y=!1}={})=>i9(v,"png",y?g:void 0),jpeg:({includeExif:y=!1}={})=>i9(v,"jpeg",y?g:void 0)}}const TOe={variant48:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant47:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant46:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant45:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant44:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant43:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant42:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant41:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant40:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant39:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant38:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant37:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant36:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant35:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant34:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant33:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant32:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant31:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant30:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant29:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant28:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant27:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant26:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant25:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant24:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant23:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant22:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant21:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant20:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant19:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant18:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant17:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant16:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant15:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant14:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant13:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant12:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant11:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant10:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant09:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant08:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant07:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant06:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant05:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant04:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant03:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant02:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant01:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`}},POe={flowers:(e,t)=>``},OOe={variant04:(e,t)=>{var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y;return`${(r=(n=e.eyes)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}${(a=(i=e.eyebrows)===null||i===void 0?void 0:i.value(e,t))!==null&&a!==void 0?a:""}${(s=(o=e.earrings)===null||o===void 0?void 0:o.value(e,t))!==null&&s!==void 0?s:""}${(c=(l=e.freckles)===null||l===void 0?void 0:l.value(e,t))!==null&&c!==void 0?c:""}${(f=(u=e.nose)===null||u===void 0?void 0:u.value(e,t))!==null&&f!==void 0?f:""}${(h=(p=e.beard)===null||p===void 0?void 0:p.value(e,t))!==null&&h!==void 0?h:""}${(g=(m=e.mouth)===null||m===void 0?void 0:m.value(e,t))!==null&&g!==void 0?g:""}${(y=(v=e.glasses)===null||v===void 0?void 0:v.value(e,t))!==null&&y!==void 0?y:""}`},variant03:(e,t)=>{var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y;return`${(r=(n=e.eyes)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}${(a=(i=e.eyebrows)===null||i===void 0?void 0:i.value(e,t))!==null&&a!==void 0?a:""}${(s=(o=e.earrings)===null||o===void 0?void 0:o.value(e,t))!==null&&s!==void 0?s:""}${(c=(l=e.freckles)===null||l===void 0?void 0:l.value(e,t))!==null&&c!==void 0?c:""}${(f=(u=e.nose)===null||u===void 0?void 0:u.value(e,t))!==null&&f!==void 0?f:""}${(h=(p=e.beard)===null||p===void 0?void 0:p.value(e,t))!==null&&h!==void 0?h:""}${(g=(m=e.mouth)===null||m===void 0?void 0:m.value(e,t))!==null&&g!==void 0?g:""}${(y=(v=e.glasses)===null||v===void 0?void 0:v.value(e,t))!==null&&y!==void 0?y:""}`},variant02:(e,t)=>{var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y;return`${(r=(n=e.eyes)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}${(a=(i=e.eyebrows)===null||i===void 0?void 0:i.value(e,t))!==null&&a!==void 0?a:""}${(s=(o=e.earrings)===null||o===void 0?void 0:o.value(e,t))!==null&&s!==void 0?s:""}${(c=(l=e.freckles)===null||l===void 0?void 0:l.value(e,t))!==null&&c!==void 0?c:""}${(f=(u=e.nose)===null||u===void 0?void 0:u.value(e,t))!==null&&f!==void 0?f:""}${(h=(p=e.beard)===null||p===void 0?void 0:p.value(e,t))!==null&&h!==void 0?h:""}${(g=(m=e.mouth)===null||m===void 0?void 0:m.value(e,t))!==null&&g!==void 0?g:""}${(y=(v=e.glasses)===null||v===void 0?void 0:v.value(e,t))!==null&&y!==void 0?y:""}`},variant01:(e,t)=>{var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y;return`${(r=(n=e.eyes)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}${(a=(i=e.eyebrows)===null||i===void 0?void 0:i.value(e,t))!==null&&a!==void 0?a:""}${(s=(o=e.earrings)===null||o===void 0?void 0:o.value(e,t))!==null&&s!==void 0?s:""}${(c=(l=e.freckles)===null||l===void 0?void 0:l.value(e,t))!==null&&c!==void 0?c:""}${(f=(u=e.nose)===null||u===void 0?void 0:u.value(e,t))!==null&&f!==void 0?f:""}${(h=(p=e.beard)===null||p===void 0?void 0:p.value(e,t))!==null&&h!==void 0?h:""}${(g=(m=e.mouth)===null||m===void 0?void 0:m.value(e,t))!==null&&g!==void 0?g:""}${(y=(v=e.glasses)===null||v===void 0?void 0:v.value(e,t))!==null&&y!==void 0?y:""}`}},IOe={variant24:(e,t)=>``,variant23:(e,t)=>``,variant22:(e,t)=>``,variant21:(e,t)=>``,variant20:(e,t)=>``,variant19:(e,t)=>``,variant18:(e,t)=>``,variant17:(e,t)=>``,variant16:(e,t)=>``,variant15:(e,t)=>``,variant14:(e,t)=>``,variant13:(e,t)=>``,variant12:(e,t)=>``,variant11:(e,t)=>``,variant10:(e,t)=>``,variant09:(e,t)=>``,variant08:(e,t)=>``,variant07:(e,t)=>``,variant06:(e,t)=>``,variant05:(e,t)=>``,variant04:(e,t)=>``,variant03:(e,t)=>``,variant02:(e,t)=>``,variant01:(e,t)=>``},ROe={variant13:(e,t)=>``,variant12:(e,t)=>``,variant11:(e,t)=>``,variant10:(e,t)=>``,variant09:(e,t)=>``,variant08:(e,t)=>``,variant07:(e,t)=>``,variant06:(e,t)=>``,variant05:(e,t)=>``,variant04:(e,t)=>``,variant03:(e,t)=>``,variant02:(e,t)=>``,variant01:(e,t)=>``},jOe={variant01:(e,t)=>``,variant02:(e,t)=>``,variant03:(e,t)=>``},NOe={variant01:(e,t)=>``},AOe={variant01:(e,t)=>``,variant02:(e,t)=>``,variant03:(e,t)=>``,variant04:(e,t)=>``,variant05:(e,t)=>``,variant06:(e,t)=>``},DOe={variant01:(e,t)=>``,variant02:(e,t)=>``},FOe={happy01:(e,t)=>``,happy02:(e,t)=>``,happy03:(e,t)=>``,happy04:(e,t)=>``,happy05:(e,t)=>``,happy06:(e,t)=>``,happy07:(e,t)=>``,happy08:(e,t)=>``,happy18:(e,t)=>``,happy09:(e,t)=>``,happy10:(e,t)=>``,happy11:(e,t)=>``,happy12:(e,t)=>``,happy13:(e,t)=>``,happy14:(e,t)=>``,happy17:(e,t)=>``,happy15:(e,t)=>``,happy16:(e,t)=>``,sad01:(e,t)=>``,sad02:(e,t)=>``,sad03:(e,t)=>``,sad04:(e,t)=>``,sad05:(e,t)=>``,sad06:(e,t)=>``,sad07:(e,t)=>``,sad08:(e,t)=>``,sad09:(e,t)=>``},LOe={variant01:(e,t)=>``,variant02:(e,t)=>``,variant03:(e,t)=>``,variant04:(e,t)=>``,variant05:(e,t)=>``},BOe=Object.freeze(Object.defineProperty({__proto__:null,beard:DOe,earrings:jOe,eyebrows:ROe,eyes:IOe,freckles:NOe,glasses:LOe,hair:TOe,hairAccessories:POe,head:OOe,mouth:FOe,nose:AOe},Symbol.toStringTag,{value:"Module"}));function Rc({prng:e,group:t,values:n=[]}){const r=BOe,i=e.pick(n);if(i&&r[t][i])return{name:i,value:r[t][i]}}function zOe({prng:e,options:t}){const n=Rc({prng:e,group:"hair",values:t.hair}),r=Rc({prng:e,group:"hairAccessories",values:t.hairAccessories}),i=Rc({prng:e,group:"head",values:t.head}),a=Rc({prng:e,group:"eyes",values:t.eyes}),o=Rc({prng:e,group:"eyebrows",values:t.eyebrows}),s=Rc({prng:e,group:"earrings",values:t.earrings}),l=Rc({prng:e,group:"freckles",values:t.freckles}),c=Rc({prng:e,group:"nose",values:t.nose}),u=Rc({prng:e,group:"beard",values:t.beard}),f=Rc({prng:e,group:"mouth",values:t.mouth}),p=Rc({prng:e,group:"glasses",values:t.glasses});return{hair:n,hairAccessories:e.bool(t.hairAccessoriesProbability)?r:void 0,head:i,eyes:a,eyebrows:o,earrings:e.bool(t.earringsProbability)?s:void 0,freckles:e.bool(t.frecklesProbability)?l:void 0,nose:c,beard:e.bool(t.beardProbability)?u:void 0,mouth:f,glasses:e.bool(t.glassesProbability)?p:void 0}}function ju(e){return e==="transparent"?e:`#${e}`}function HOe({prng:e,options:t}){var n,r,i,a,o,s,l,c,u,f;return{hair:ju(e.pick((n=t.hairColor)!==null&&n!==void 0?n:[],"transparent")),skin:ju(e.pick((r=t.skinColor)!==null&&r!==void 0?r:[],"transparent")),earrings:ju(e.pick((i=t.earringsColor)!==null&&i!==void 0?i:[],"transparent")),eyebrows:ju(e.pick((a=t.eyebrowsColor)!==null&&a!==void 0?a:[],"transparent")),eyes:ju(e.pick((o=t.eyesColor)!==null&&o!==void 0?o:[],"transparent")),freckles:ju(e.pick((s=t.frecklesColor)!==null&&s!==void 0?s:[],"transparent")),glasses:ju(e.pick((l=t.glassesColor)!==null&&l!==void 0?l:[],"transparent")),mouth:ju(e.pick((c=t.mouthColor)!==null&&c!==void 0?c:[],"transparent")),nose:ju(e.pick((u=t.noseColor)!==null&&u!==void 0?u:[],"transparent")),hairAccessories:ju(e.pick((f=t.hairAccessoriesColor)!==null&&f!==void 0?f:[],"transparent"))}}function UOe({prng:e,options:t,components:n,colors:r}){n.beard&&r.hair===r.mouth&&(r.mouth="#ffffff")}const WOe={$schema:"http://json-schema.org/draft-07/schema#",properties:{beard:{type:"array",items:{type:"string",enum:["variant01","variant02"]},default:["variant01","variant02"]},beardProbability:{type:"integer",minimum:0,maximum:100,default:5},earrings:{type:"array",items:{type:"string",enum:["variant01","variant02","variant03"]},default:["variant01","variant02","variant03"]},earringsColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},earringsProbability:{type:"integer",minimum:0,maximum:100,default:10},eyebrows:{type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyebrowsColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},eyes:{type:"array",items:{type:"string",enum:["variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},freckles:{type:"array",items:{type:"string",enum:["variant01"]},default:["variant01"]},frecklesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},frecklesProbability:{type:"integer",minimum:0,maximum:100,default:5},glasses:{type:"array",items:{type:"string",enum:["variant01","variant02","variant03","variant04","variant05"]},default:["variant01","variant02","variant03","variant04","variant05"]},glassesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},glassesProbability:{type:"integer",minimum:0,maximum:100,default:10},hair:{type:"array",items:{type:"string",enum:["variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},hairAccessories:{type:"array",items:{type:"string",enum:["flowers"]},default:["flowers"]},hairAccessoriesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},hairAccessoriesProbability:{type:"integer",minimum:0,maximum:100,default:5},hairColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},head:{type:"array",items:{type:"string",enum:["variant04","variant03","variant02","variant01"]},default:["variant04","variant03","variant02","variant01"]},mouth:{type:"array",items:{type:"string",enum:["happy01","happy02","happy03","happy04","happy05","happy06","happy07","happy08","happy18","happy09","happy10","happy11","happy12","happy13","happy14","happy17","happy15","happy16","sad01","sad02","sad03","sad04","sad05","sad06","sad07","sad08","sad09"]},default:["happy01","happy02","happy03","happy04","happy05","happy06","happy07","happy08","happy18","happy09","happy10","happy11","happy12","happy13","happy14","happy17","happy15","happy16","sad01","sad02","sad03","sad04","sad05","sad06","sad07","sad08","sad09"]},mouthColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},nose:{type:"array",items:{type:"string",enum:["variant01","variant02","variant03","variant04","variant05","variant06"]},default:["variant01","variant02","variant03","variant04","variant05","variant06"]},noseColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},skinColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["ffffff"]}}},VOe={title:"Lorelei",creator:"Lisa Wischofsky",source:"https://www.figma.com/community/file/1198749693280469639",homepage:"https://www.instagram.com/lischi_art/",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},qOe=({prng:e,options:t})=>{var n,r,i,a;const o=zOe({prng:e,options:t}),s=HOe({prng:e,options:t});return UOe({prng:e,options:t,components:o,colors:s}),{attributes:{viewBox:"0 0 980 980",fill:"none","shape-rendering":"auto"},body:`${(r=(n=o.hair)===null||n===void 0?void 0:n.value(o,s))!==null&&r!==void 0?r:""}${(a=(i=o.hairAccessories)===null||i===void 0?void 0:i.value(o,s))!==null&&a!==void 0?a:""}`,extra:()=>({...Object.entries(o).reduce((l,[c,u])=>(l[c]=u==null?void 0:u.name,l),{}),...Object.entries(s).reduce((l,[c,u])=>(l[`${c}Color`]=u,l),{})})}},KOe=Object.freeze(Object.defineProperty({__proto__:null,create:qOe,meta:VOe,schema:WOe},Symbol.toStringTag,{value:"Module"}));function GOe(){return lOe}function YOe(){const e=localStorage.getItem(kC);(e===null||e==="true")&&new Audio(H6e).play()}function Uw(){return tn().format("YYYY-MM-DD HH:mm:ss")}function Ua(){return sOe().replaceAll(/-/g,"")}function Rk(e){return MOe(KOe,{seed:e,size:40}).toDataUriSync()}function k1(e){return e.endsWith("/")?e.slice(0,-1):e}const XOe=e=>{if(typeof e=="string"){const t=tn(),n=tn(e);return n.isSame(t,"day")?n.format("HH:mm"):n.format("MM-DD HH:mm")}else return e};function jk(e,t){return(e==null?void 0:e.length)>t?e.slice(0,t-3)+"...":e}function WC(e,t){const n=tn(new Date).format("YYYYMMDDHHmmss")+"_"+e.name,r=new FormData;r.append("file",e),r.append("file_name",n),r.append("file_type",e.type),r.append("is_avatar","false"),r.append("kb_type",xF),r.append("client",Sn),console.log("handleUpload formData",r),fetch(dy(),{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},body:r}).then(i=>i.json()).then(i=>{console.log("upload data:",i),t(i)})}const ZOe=e=>(e==null?void 0:e.type)===pF,Nk=e=>(e==null?void 0:e.type)===vse,Do=e=>(e==null?void 0:e.type)===yse,yf=e=>(e==null?void 0:e.type)===ay||(e==null?void 0:e.type)===oy,VR=e=>(e==null?void 0:e.type)===ay||(e==null?void 0:e.type)===oy||(e==null?void 0:e.type)===bse,QOe=e=>(e==null?void 0:e.type)===ay,JOe=e=>(e==null?void 0:e.type)===oy,U2=e=>(e==null?void 0:e.type)===bse,Ak=e=>(e==null?void 0:e.type)===pF,eIe=e=>(console.log("isDeviceThread",e),!1),tIe=e=>(console.log("isSystemThread",e),oIe(e==null?void 0:e.topic)),nIe=(e,t)=>{var n,r;return console.log("isThreadInvited",t==null?void 0:t.invites),((n=t==null?void 0:t.invites)==null?void 0:n.length)===0?!1:(r=t==null?void 0:t.invites)==null?void 0:r.every(i=>i.uid!==(e==null?void 0:e.uid))};function rIe(e){if(Uo===e||Sl===e||od===e||Aw===e||sg===e)return!0}function iIe(e){return e===p0||e===h0}function aIe(e){return e===p0||e===h0}function oIe(e){return e==null?void 0:e.startsWith(l5e)}function sIe(e){return e==null?void 0:e.startsWith(_se)}function lIe(e){const t=e==null?void 0:e.split("/");if(t.length!==4)throw new Error(`Invalid private topic: ${e}`);return[t[2],t[3]]=[t[3],t[2]],t.join("/")}function cIe(e){return e==null?void 0:e.startsWith(kse)}function uIe(e){return e==null?void 0:e.startsWith(Ese)}function dIe(e){return e==null?void 0:e.startsWith(c5e)}function fIe(e){return e==null?void 0:e.startsWith(u5e)}function dde(e){return(e==null?void 0:e.startsWith(d5e))||(e==null?void 0:e.startsWith(f5e))}function fde(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const pde=e=>e&&(e.includes("

")||e.includes("

")||e.includes("")||e.includes("
    "));function Ww(e){switch(e){case lg:return"blue";case q3:return"purple";case sy:return"green";case K3:return"orange";case G3:return"gold";case Y3:return"magenta";case X3:return"cyan";case Z3:return"default";case Q3:return"red";default:return"default"}}function Dk(e){switch(e){case SF:return"blue";case bk:return"purple";case CF:return"red";case _F:return"orange";case kF:return"default";default:return"default"}}const jK=(e,t)=>{var n;return((n=e==null?void 0:e.assignee)==null?void 0:n.uid)===(t==null?void 0:t.uid)},Fa=(e,t,n,r)=>{var i,a;return e?n==null?!1:((i=t==null?void 0:t.assignee)==null?void 0:i.uid)===(r==null?void 0:r.uid)||((a=t==null?void 0:t.reporter)==null?void 0:a.uid)===(r==null?void 0:r.uid):!0},W2=(e,t)=>e?(t==null?void 0:t.status)===sy||(t==null?void 0:t.status)===EF:!0,pIe=()=>{const e=navigator.language.toLowerCase();console.log("AppWrapper getBrowserLanguage browserLang: ",e);const t=["en","zh-cn","zh-tw","ja","ko"];if(e.startsWith("zh"))return e.includes("tw")?"zh-tw":"zh-cn";const n=e.split("-")[0];return t.includes(n)?n:"en"},bL=(e,t,n,r,i,a,o)=>{var u;let s;(n==null?void 0:n.uid)!=""&&((e==null?void 0:e.type)===ay||(e==null?void 0:e.type)===oy)?s={uid:n.uid,nickname:n.nickname,avatar:n.avatar,type:$f}:s={uid:t.uid,nickname:t.nickname,avatar:t.avatar,type:U5};const l={orgUid:(u=t==null?void 0:t.currentOrganization)==null?void 0:u.uid};return{uid:r,type:i,status:im,createdAt:o,client:Sn,content:a,extra:JSON.stringify(l),user:s,thread:e}},hde=(e,t,n,r,i,a,o)=>{let s;return(n==null?void 0:n.uid)!=""&&((e==null?void 0:e.type)===ay||(e==null?void 0:e.type)===oy)?s={uid:n.uid,nickname:n.nickname,avatar:n.avatar,type:$f}:s={uid:t.uid,nickname:t.nickname,avatar:t.avatar,type:U5},{uid:r,type:i,status:hk,createdAt:o,client:Sn,content:a,user:s,topic:e.topic}},Nr=So()(Ss(Cs(_s(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:y6e}))),fr=So()(Ss(Cs(_s((e,t)=>({threads:[],queuingThreads:[],invitedThreads:[],monitoringThreads:[],currentThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},currentQueuingThread:{uid:"",user:{uid:"",nickname:"",avatar:""}},currentTicketThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},threadResult:{data:{content:[],last:!0}},showQueueButton:!1,showQueueList:!1,showRightPanel:!1,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{},addThread(n){var i,a;if(n.state===NV)return t().addQueuingThread(n),0;if(t().threads.some(o=>o.uid===n.uid))if(((i=t().currentThread)==null?void 0:i.uid)===""||((a=t().currentThread)==null?void 0:a.uid)!==n.uid){for(let o=0;oo.uid!==n.uid)]}),n.unreadCount}else{const o=t().threads.map(s=>s.uid===n.uid?(n.top=s.top,n.mute=s.mute,n.unread=s.unread,n.agent=s.agent,n):s);return e({threads:o}),0}else return n.unreadCount=1,e({threads:[n,...t().threads]}),n.unreadCount},addThreadWithMessage(n,r){if(r.type===X6e)return t().addQueuingThread(n),0;const i=!iIe(r.type);aIe(r.type)&&(n.state=eI);const o="topic",s=t().threads.some(u=>u[o]===n[o]),l=t().currentThread[o]===n[o];if(!s)return i&&(n.unreadCount=1),e({threads:[n,...t().threads]}),n.unreadCount;if(!l){const u=t().threads.find(f=>f[o]===n[o]);return u&&(n=hIe(n,u,i)),e({threads:[n,...t().threads.filter(f=>f[o]!==n[o])]}),n.unreadCount}const c=t().threads.map(u=>u[o]===n[o]?mde(n,u):u);return e({threads:c}),0},addQueuingThread(n){t().queuingThreads.some(i=>i.uid===n.uid)||e({queuingThreads:[n,...t().queuingThreads]})},updateThreadContent(n,r){let i=null;const a=t().threads.map(o=>o.uid===n?(i={...o,unreadCount:o.unreadCount+1,content:r},i):o);return e({threads:a}),i},updateThreadStatus(n,r){let i=null;const a=t().threads.map(o=>o.uid===n?(i={...o,state:r},i):o);return e({threads:a}),i},removeThread(n){e({threads:[...t().threads.filter(r=>(r==null?void 0:r.uid)!==(n==null?void 0:n.uid))]})},removeThreadWithUid(n){e({threads:[...t().threads.filter(r=>(r==null?void 0:r.uid)!==n)]})},closeThread(n){const r=t().threads.map(i=>i.uid===n?{...i,state:eI}:i);e({threads:r})},addThreads(n){for(let r=0;ro.uid===i.uid))e({threads:[...t().threads,i]});else{const o=t().threads.map(s=>s.uid===i.uid?{...i,unreadCount:s.unreadCount}:s);e({threads:o})}}},setThreads(n){e(r=>{r.threads=n})},setQueuingThreads(n){e(r=>{r.queuingThreads=n})},setInvitedThreads(n){e(r=>{r.invitedThreads=n})},setMonitoringThreads(n){e(r=>{r.monitoringThreads=n})},setCurrentThread(n){e(a=>{a.showQueueList=!1});const r={...n,unreadCount:0},i=t().threads.map(a=>a.uid===r.uid?r:a);e(a=>{a.currentThread=r,a.threads=i})},setCurrentQueuingThread(n){e(r=>{r.currentQueuingThread=n})},setCurrentTicketThread(n){e(r=>{r.currentTicketThread=n})},setThreadResult(n){e(r=>{r.threadResult=n})},getUnreadCount(){return t().threads.reduce((n,r)=>{var i;return r.unreadCount>0&&r.uid!==((i=t().currentThread)==null?void 0:i.uid)?n+r.unreadCount:n},0)},setShowQueueButton(n){e(r=>{r.showQueueButton=n})},setShowQueueList(n){e(r=>{r.showQueueList=n,r.showRightPanel=!1})},setShowRightPanel(n){e(r=>{r.showRightPanel=n})},resetThreads(){e(n=>{n.threads=[],n.queuingThreads=[],n.currentThread={uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},n.currentQueuingThread={uid:"",user:{uid:"",nickname:"",avatar:""}},n.threadResult={data:{content:[],last:!0}},n.showQueueButton=!1,n.showQueueList=!1,n.showRightPanel=!1})},setLoading:n=>e({loading:n}),setError:n=>e({error:n}),setSearchText:n=>e({searchText:n}),setFilter:(n,r)=>e(i=>{i.filters[n]=r}),clearFilters:()=>e({filters:{}}),refreshThreads:async()=>{const{currentOrg:n}=Nr.getState();if(n!=null&&n.uid){const{threadService:r}=await gue(async()=>{const{threadService:i}=await Promise.resolve().then(()=>jWt);return{threadService:i}},void 0);await r.loadThreads()}},setPagination:n=>e({pagination:n})})),{name:k6e}))),mde=(e,t)=>(e.top=t.top,e.mute=t.mute,e.unread=t.unread,e.agent=t.agent,e),hIe=(e,t,n)=>(n&&(e.unreadCount=t.unreadCount+1),mde(e,t)),Ed=So()(Ss(Cs(_s((e,t)=>({messageList:[],addMessageProtobuf(n){var i;const r={...n,extra:JSON.parse(n==null?void 0:n.extra),topic:(i=n.thread)==null?void 0:i.topic};t().addMessage(r)},addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===Mf){const a=t().messageList.findIndex(o=>o.type===Mf&&o.uid===n.uid);if(a!==-1){const o=[...t().messageList];o[a].content+=n.content,e({messageList:o});return}}const i=t().messageList.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...t().messageList];a[i]=n,e({messageList:a})}}else{const i=t().messageList[t().messageList.length-1];if(i&&n.type===f0&&i.type===f0){const a=t().messageList.findIndex(s=>s.uid===i.uid),o=[...t().messageList];o[a]=n,e({messageList:o})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let a=0;al.uid===o.uid)||r.unshift(o)}const i=[...r,...t().messageList].sort((a,o)=>{const s=tn(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=tn(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",i),e({messageList:i})},updateMessageStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);if(i!==-1){const a=[...t().messageList];a[i].status=r,e({messageList:a})}},updateMessageTransferStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);if(i!==-1){const a=[...t().messageList],o=a[i],s=JSON.parse(o.content);s.status=r,a[i].content=JSON.stringify(s),e({messageList:a})}},updateMessageInviteStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);if(i!==-1){const a=[...t().messageList],o=a[i],s=JSON.parse(o.content);s.status=r,a[i].content=JSON.stringify(s),e({messageList:a})}},updateMessage(n){const r=t().messageList.findIndex(i=>i.uid===n.uid);if(r!==-1){const i=[...t().messageList];i[r].content=n.content,e({messageList:i})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i.splice(r,1),e({messageList:i})}},recallMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i[r].type=W5,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const a=tn(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),o=tn(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return a-o});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:x6e}))),aa=So()(Ss(Cs(_s((e,t)=>({userInfo:{uid:"",nickname:"",avatar:""},deviceUid:"",setUserInfo:n=>{e({userInfo:n})},setDeviceUid(n){e({deviceUid:n})},resetUserInfo(){e({userInfo:{uid:t().userInfo.uid,nickname:"",avatar:""}})}})),{name:C6e}))),Si=So()(Ss(Cs(_s((e,t)=>({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""},insertAgent(n){e(r=>{r.agentResult.data.content.unshift(n)})},updateAgent(n){e(r=>{const i=r.agentResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i[a]=n:console.warn(`Agent with uid ${n.uid} not found.`)})},deleteAgent(n){e(r=>{const i=r.agentResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i.splice(a,1):console.warn(`Agent with uid ${n.uid} not found.`)})},setAgentResult:n=>{e({agentResult:n})},setAgentInfo(n){e({agentInfo:n})},deleteAgentInfo(n){const r=t().agentResult.data.content,i=r.findIndex(a=>a.uid===n);i!==-1?e({agentResult:{...t().agentResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Agent not found in cache:",n),t().agentInfo.uid===n&&e({agentInfo:{uid:"",orgUid:""}})},resetAgentInfo(){e({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""}})}})),{name:$6e})));var gde={exports:{}};/*! +`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var MK={};function kue(e,t){en.deprecationHandler!=null&&en.deprecationHandler(e,t),MK[e]||(_ue(t),MK[e]=!0)}en.suppressDeprecationWarnings=!1;en.deprecationHandler=null;function Md(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function oMe(e){var t,n;for(n in e)Jr(e,n)&&(t=e[n],Md(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function zI(e,t){var n=Np({},e),r;for(r in t)Jr(t,r)&&(Um(e[r])&&Um(t[r])?(n[r]={},Np(n[r],e[r]),Np(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Jr(e,r)&&!Jr(t,r)&&Um(e[r])&&(n[r]=Np({},n[r]));return n}function tL(e){e!=null&&this.set(e)}var HI;Object.keys?HI=Object.keys:HI=function(e){var t,n=[];for(t in e)Jr(e,t)&&n.push(t);return n};var sMe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function lMe(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Md(r)?r.call(t,n):r}function gd(e,t,n){var r=""+Math.abs(e),i=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var nL=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,aS=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,r9={},$v={};function er(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&($v[e]=i),t&&($v[t[0]]=function(){return gd(i.apply(this,arguments),t[1],t[2])}),n&&($v[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function cMe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function uMe(e){var t=e.match(nL),n,r;for(n=0,r=t.length;n=0&&aS.test(e);)e=e.replace(aS,r),aS.lastIndex=0,n-=1;return e}var dMe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function fMe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(nL).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var pMe="Invalid date";function hMe(){return this._invalidDate}var mMe="%d",gMe=/\d{1,2}/;function vMe(e){return this._ordinal.replace("%d",e)}var yMe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function bMe(e,t,n,r){var i=this._relativeTime[n];return Md(i)?i(e,t,n,r):i.replace(/%d/i,e)}function wMe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Md(n)?n(t):n.replace(/%s/i,t)}var TK={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function kc(e){return typeof e=="string"?TK[e]||TK[e.toLowerCase()]:void 0}function rL(e){var t={},n,r;for(r in e)Jr(e,r)&&(n=kc(r),n&&(t[n]=e[r]));return t}var xMe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function SMe(e){var t=[],n;for(n in e)Jr(e,n)&&t.push({unit:n,priority:xMe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var $ue=/\d/,Hl=/\d\d/,Mue=/\d{3}/,iL=/\d{4}/,bE=/[+-]?\d{6}/,Li=/\d\d?/,Tue=/\d\d\d\d?/,Pue=/\d\d\d\d\d\d?/,wE=/\d{1,3}/,aL=/\d{1,4}/,xE=/[+-]?\d{1,6}/,gy=/\d+/,SE=/[+-]?\d+/,CMe=/Z|[+-]\d\d:?\d\d/gi,CE=/Z|[+-]\d\d(?::?\d\d)?/gi,_Me=/[+-]?\d+(\.\d{1,3})?/,p4=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,vy=/^[1-9]\d?/,oL=/^([1-9]\d|\d)/,$k;$k={};function Ln(e,t,n){$k[e]=Md(t)?t:function(r,i){return r&&n?n:t}}function kMe(e,t){return Jr($k,e)?$k[e](t._strict,t._locale):new RegExp(EMe(e))}function EMe(e){return vf(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function vf(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ac(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Fr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=ac(t)),n}var UI={};function vi(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Of(t)&&(r=function(a,o){o[t]=Fr(a)}),i=e.length,n=0;n68?1900:2e3)};var Oue=yy("FullYear",!0);function PMe(){return _E(this.year())}function yy(e,t){return function(n){return n!=null?(Rue(this,e,n),en.updateOffset(this,t),this):zw(this,e)}}function zw(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Rue(e,t,n){var r,i,a,o,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,o=e.month(),s=e.date(),s=s===29&&o===1&&!_E(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function OMe(e){return e=kc(e),Md(this[e])?this[e]():this}function RMe(e,t){if(typeof e=="object"){e=rL(e);var n=SMe(e),r,i=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Hw(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Mk(e,t,n){var r=7+t-n,i=(7+Hw(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Fue(e,t,n,r,i){var a=(7+n-r)%7,o=Mk(e,r,i),s=1+7*(t-1)+a+o,l,c;return s<=0?(l=e-1,c=U2(l)+s):s>U2(e)?(l=e+1,c=s-U2(e)):(l=e,c=s),{year:l,dayOfYear:c}}function Uw(e,t,n){var r=Mk(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+yf(o,t,n)):i>yf(e.year(),t,n)?(a=i-yf(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function yf(e,t,n){var r=Mk(e,t,n),i=Mk(e+1,t,n);return(U2(e)-r+i)/7}er("w",["ww",2],"wo","week");er("W",["WW",2],"Wo","isoWeek");Ln("w",Li,vy);Ln("ww",Li,Hl);Ln("W",Li,vy);Ln("WW",Li,Hl);h4(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Fr(e)});function VMe(e){return Uw(e,this._week.dow,this._week.doy).week}var qMe={dow:0,doy:6};function KMe(){return this._week.dow}function GMe(){return this._week.doy}function YMe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function XMe(e){var t=Uw(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}er("d",0,"do","day");er("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});er("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});er("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});er("e",0,0,"weekday");er("E",0,0,"isoWeekday");Ln("d",Li);Ln("e",Li);Ln("E",Li);Ln("dd",function(e,t){return t.weekdaysMinRegex(e)});Ln("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ln("dddd",function(e,t){return t.weekdaysRegex(e)});h4(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:kr(n).invalidWeekday=e});h4(["d","e","E"],function(e,t,n,r){t[r]=Fr(e)});function ZMe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function QMe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function lL(e,t){return e.slice(t,7).concat(e.slice(0,t))}var JMe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Lue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),e9e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),t9e=p4,n9e=p4,r9e=p4;function i9e(e,t){var n=mu(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?lL(n,this._week.dow):e?n[e.day()]:n}function a9e(e){return e===!0?lL(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function o9e(e){return e===!0?lL(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function s9e(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=$d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=wa.call(this._weekdaysParse,o),i!==-1?i:null):t==="ddd"?(i=wa.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=wa.call(this._minWeekdaysParse,o),i!==-1?i:null):t==="dddd"?(i=wa.call(this._weekdaysParse,o),i!==-1||(i=wa.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=wa.call(this._minWeekdaysParse,o),i!==-1?i:null)):t==="ddd"?(i=wa.call(this._shortWeekdaysParse,o),i!==-1||(i=wa.call(this._weekdaysParse,o),i!==-1)?i:(i=wa.call(this._minWeekdaysParse,o),i!==-1?i:null)):(i=wa.call(this._minWeekdaysParse,o),i!==-1||(i=wa.call(this._weekdaysParse,o),i!==-1)?i:(i=wa.call(this._shortWeekdaysParse,o),i!==-1?i:null))}function l9e(e,t,n){var r,i,a;if(this._weekdaysParseExact)return s9e.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=$d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function c9e(e){if(!this.isValid())return e!=null?this:NaN;var t=zw(this,"Day");return e!=null?(e=ZMe(e,this.localeData()),this.add(e-t,"d")):t}function u9e(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function d9e(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=QMe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function f9e(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||cL.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Jr(this,"_weekdaysRegex")||(this._weekdaysRegex=t9e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function p9e(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||cL.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Jr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=n9e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function h9e(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||cL.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Jr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=r9e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function cL(){function e(u,f){return f.length-u.length}var t=[],n=[],r=[],i=[],a,o,s,l,c;for(a=0;a<7;a++)o=$d([2e3,1]).day(a),s=vf(this.weekdaysMin(o,"")),l=vf(this.weekdaysShort(o,"")),c=vf(this.weekdays(o,"")),t.push(s),n.push(l),r.push(c),i.push(s),i.push(l),i.push(c);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function uL(){return this.hours()%12||12}function m9e(){return this.hours()||24}er("H",["HH",2],0,"hour");er("h",["hh",2],0,uL);er("k",["kk",2],0,m9e);er("hmm",0,0,function(){return""+uL.apply(this)+gd(this.minutes(),2)});er("hmmss",0,0,function(){return""+uL.apply(this)+gd(this.minutes(),2)+gd(this.seconds(),2)});er("Hmm",0,0,function(){return""+this.hours()+gd(this.minutes(),2)});er("Hmmss",0,0,function(){return""+this.hours()+gd(this.minutes(),2)+gd(this.seconds(),2)});function Bue(e,t){er(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Bue("a",!0);Bue("A",!1);function zue(e,t){return t._meridiemParse}Ln("a",zue);Ln("A",zue);Ln("H",Li,oL);Ln("h",Li,vy);Ln("k",Li,vy);Ln("HH",Li,Hl);Ln("hh",Li,Hl);Ln("kk",Li,Hl);Ln("hmm",Tue);Ln("hmmss",Pue);Ln("Hmm",Tue);Ln("Hmmss",Pue);vi(["H","HH"],Ua);vi(["k","kk"],function(e,t,n){var r=Fr(e);t[Ua]=r===24?0:r});vi(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});vi(["h","hh"],function(e,t,n){t[Ua]=Fr(e),kr(n).bigHour=!0});vi("hmm",function(e,t,n){var r=e.length-2;t[Ua]=Fr(e.substr(0,r)),t[eu]=Fr(e.substr(r)),kr(n).bigHour=!0});vi("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ua]=Fr(e.substr(0,r)),t[eu]=Fr(e.substr(r,2)),t[hf]=Fr(e.substr(i)),kr(n).bigHour=!0});vi("Hmm",function(e,t,n){var r=e.length-2;t[Ua]=Fr(e.substr(0,r)),t[eu]=Fr(e.substr(r))});vi("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ua]=Fr(e.substr(0,r)),t[eu]=Fr(e.substr(r,2)),t[hf]=Fr(e.substr(i))});function g9e(e){return(e+"").toLowerCase().charAt(0)==="p"}var v9e=/[ap]\.?m?\.?/i,y9e=yy("Hours",!0);function b9e(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Hue={calendar:sMe,longDateFormat:dMe,invalidDate:pMe,ordinal:mMe,dayOfMonthOrdinalParse:gMe,relativeTime:yMe,months:jMe,monthsShort:Iue,week:qMe,weekdays:JMe,weekdaysMin:e9e,weekdaysShort:Lue,meridiemParse:v9e},Ui={},Mb={},Ww;function w9e(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=kE(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&w9e(a,r)>=n-1)break;n--}t++}return Ww}function S9e(e){return!!(e&&e.match("^[^/\\\\]*$"))}function kE(e){var t=null,n;if(Ui[e]===void 0&&typeof qo<"u"&&qo&&qo.exports&&S9e(e))try{t=Ww._abbr,n=require,n("./locale/"+e),th(t)}catch{Ui[e]=null}return Ui[e]}function th(e,t){var n;return e&&(Ts(t)?n=Uf(e):n=dL(e,t),n?Ww=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ww._abbr}function dL(e,t){if(t!==null){var n,r=Hue;if(t.abbr=e,Ui[e]!=null)kue("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Ui[e]._config;else if(t.parentLocale!=null)if(Ui[t.parentLocale]!=null)r=Ui[t.parentLocale]._config;else if(n=kE(t.parentLocale),n!=null)r=n._config;else return Mb[t.parentLocale]||(Mb[t.parentLocale]=[]),Mb[t.parentLocale].push({name:e,config:t}),null;return Ui[e]=new tL(zI(r,t)),Mb[e]&&Mb[e].forEach(function(i){dL(i.name,i.config)}),th(e),Ui[e]}else return delete Ui[e],null}function C9e(e,t){if(t!=null){var n,r,i=Hue;Ui[e]!=null&&Ui[e].parentLocale!=null?Ui[e].set(zI(Ui[e]._config,t)):(r=kE(e),r!=null&&(i=r._config),t=zI(i,t),r==null&&(t.abbr=e),n=new tL(t),n.parentLocale=Ui[e],Ui[e]=n),th(e)}else Ui[e]!=null&&(Ui[e].parentLocale!=null?(Ui[e]=Ui[e].parentLocale,e===th()&&th(e)):Ui[e]!=null&&delete Ui[e]);return Ui[e]}function Uf(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ww;if(!mu(e)){if(t=kE(e),t)return t;e=[e]}return x9e(e)}function _9e(){return HI(Ui)}function fL(e){var t,n=e._a;return n&&kr(e).overflow===-2&&(t=n[pf]<0||n[pf]>11?pf:n[Ju]<1||n[Ju]>sL(n[Ko],n[pf])?Ju:n[Ua]<0||n[Ua]>24||n[Ua]===24&&(n[eu]!==0||n[hf]!==0||n[xm]!==0)?Ua:n[eu]<0||n[eu]>59?eu:n[hf]<0||n[hf]>59?hf:n[xm]<0||n[xm]>999?xm:-1,kr(e)._overflowDayOfYear&&(tJu)&&(t=Ju),kr(e)._overflowWeeks&&t===-1&&(t=MMe),kr(e)._overflowWeekday&&t===-1&&(t=TMe),kr(e).overflow=t),e}var k9e=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,E9e=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,$9e=/Z|[+-]\d\d(?::?\d\d)?/,oS=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],i9=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],M9e=/^\/?Date\((-?\d+)/i,T9e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,P9e={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Uue(e){var t,n,r=e._i,i=k9e.exec(r)||E9e.exec(r),a,o,s,l,c=oS.length,u=i9.length;if(i){for(kr(e).iso=!0,t=0,n=c;tU2(o)||e._dayOfYear===0)&&(kr(e)._overflowDayOfYear=!0),n=Hw(o,0,e._dayOfYear),e._a[pf]=n.getUTCMonth(),e._a[Ju]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Ua]===24&&e._a[eu]===0&&e._a[hf]===0&&e._a[xm]===0&&(e._nextDay=!0,e._a[Ua]=0),e._d=(e._useUTC?Hw:WMe).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ua]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(kr(e).weekdayMismatch=!0)}}function F9e(e){var t,n,r,i,a,o,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,n=Y1(t.GG,e._a[Ko],Uw(Di(),1,4).year),r=Y1(t.W,1),i=Y1(t.E,1),(i<1||i>7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,c=Uw(Di(),a,o),n=Y1(t.gg,e._a[Ko],c.year),r=Y1(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>yf(n,a,o)?kr(e)._overflowWeeks=!0:l!=null?kr(e)._overflowWeekday=!0:(s=Fue(n,r,i,a,o),e._a[Ko]=s.year,e._dayOfYear=s.dayOfYear)}en.ISO_8601=function(){};en.RFC_2822=function(){};function hL(e){if(e._f===en.ISO_8601){Uue(e);return}if(e._f===en.RFC_2822){Wue(e);return}e._a=[],kr(e).empty=!0;var t=""+e._i,n,r,i,a,o,s=t.length,l=0,c,u;for(i=Eue(e._f,e._locale).match(nL)||[],u=i.length,n=0;n0&&kr(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),l+=r.length),$v[a]?(r?kr(e).empty=!1:kr(e).unusedTokens.push(a),$Me(a,r,e)):e._strict&&!r&&kr(e).unusedTokens.push(a);kr(e).charsLeftOver=s-l,t.length>0&&kr(e).unusedInput.push(t),e._a[Ua]<=12&&kr(e).bigHour===!0&&e._a[Ua]>0&&(kr(e).bigHour=void 0),kr(e).parsedDateParts=e._a.slice(0),kr(e).meridiem=e._meridiem,e._a[Ua]=L9e(e._locale,e._a[Ua],e._meridiem),c=kr(e).era,c!==null&&(e._a[Ko]=e._locale.erasConvertYear(c,e._a[Ko])),pL(e),fL(e)}function L9e(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function B9e(e){var t,n,r,i,a,o,s=!1,l=e._f.length;if(l===0){kr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:yE()});function Kue(e,t){var n,r;if(t.length===1&&mu(t[0])&&(t=t[0]),!t.length)return Di();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function sTe(){if(!Ts(this._isDSTShifted))return this._isDSTShifted;var e={},t;return eL(e,this),e=Vue(e),e._a?(t=e._isUTC?$d(e._a):Di(e._a),this._isDSTShifted=this.isValid()&&Q9e(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function lTe(){return this.isValid()?!this._isUTC:!1}function cTe(){return this.isValid()?this._isUTC:!1}function Yue(){return this.isValid()?this._isUTC&&this._offset===0:!1}var uTe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,dTe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _u(e,t){var n=e,r=null,i,a,o;return WC(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Of(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=uTe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Fr(r[Ju])*i,h:Fr(r[Ua])*i,m:Fr(r[eu])*i,s:Fr(r[hf])*i,ms:Fr(WI(r[xm]*1e3))*i}):(r=dTe.exec(e))?(i=r[1]==="-"?-1:1,n={y:Kh(r[2],i),M:Kh(r[3],i),w:Kh(r[4],i),d:Kh(r[5],i),h:Kh(r[6],i),m:Kh(r[7],i),s:Kh(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=fTe(Di(n.from),Di(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),a=new EE(n),WC(e)&&Jr(e,"_locale")&&(a._locale=e._locale),WC(e)&&Jr(e,"_isValid")&&(a._isValid=e._isValid),a}_u.fn=EE.prototype;_u.invalid=Z9e;function Kh(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function OK(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function fTe(e,t){var n;return e.isValid()&&t.isValid()?(t=gL(t,e),e.isBefore(t)?n=OK(e,t):(n=OK(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Xue(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(kue(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=_u(n,r),Zue(this,i,e),this}}function Zue(e,t,n,r){var i=t._milliseconds,a=WI(t._days),o=WI(t._months);e.isValid()&&(r=r??!0,o&&Nue(e,zw(e,"Month")+o*n),a&&Rue(e,"Date",zw(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&en.updateOffset(e,a||o))}var pTe=Xue(1,"add"),hTe=Xue(-1,"subtract");function Que(e){return typeof e=="string"||e instanceof String}function mTe(e){return gu(e)||d4(e)||Que(e)||Of(e)||vTe(e)||gTe(e)||e===null||e===void 0}function gTe(e){var t=Um(e)&&!QF(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,o=r.length;for(i=0;in.valueOf():n.valueOf()9999?UC(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Md(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",UC(n,"Z")):UC(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function OTe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function RTe(e){e||(e=this.isUtc()?en.defaultFormatUtc:en.defaultFormat);var t=UC(this,e);return this.localeData().postformat(t)}function ITe(e,t){return this.isValid()&&(gu(e)&&e.isValid()||Di(e).isValid())?_u({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function jTe(e){return this.from(Di(),e)}function NTe(e,t){return this.isValid()&&(gu(e)&&e.isValid()||Di(e).isValid())?_u({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ATe(e){return this.to(Di(),e)}function Jue(e){var t;return e===void 0?this._locale._abbr:(t=Uf(e),t!=null&&(this._locale=t),this)}var ede=_c("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function tde(){return this._locale}var Tk=1e3,Mv=60*Tk,Pk=60*Mv,nde=(365*400+97)*24*Pk;function Tv(e,t){return(e%t+t)%t}function rde(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-nde:new Date(e,t,n).valueOf()}function ide(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-nde:Date.UTC(e,t,n)}function DTe(e){var t,n;if(e=kc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ide:rde,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Tv(t+(this._isUTC?0:this.utcOffset()*Mv),Pk);break;case"minute":t=this._d.valueOf(),t-=Tv(t,Mv);break;case"second":t=this._d.valueOf(),t-=Tv(t,Tk);break}return this._d.setTime(t),en.updateOffset(this,!0),this}function FTe(e){var t,n;if(e=kc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ide:rde,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Pk-Tv(t+(this._isUTC?0:this.utcOffset()*Mv),Pk)-1;break;case"minute":t=this._d.valueOf(),t+=Mv-Tv(t,Mv)-1;break;case"second":t=this._d.valueOf(),t+=Tk-Tv(t,Tk)-1;break}return this._d.setTime(t),en.updateOffset(this,!0),this}function LTe(){return this._d.valueOf()-(this._offset||0)*6e4}function BTe(){return Math.floor(this.valueOf()/1e3)}function zTe(){return new Date(this.valueOf())}function HTe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function UTe(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function WTe(){return this.isValid()?this.toISOString():null}function VTe(){return JF(this)}function qTe(){return Np({},kr(this))}function KTe(){return kr(this).overflow}function GTe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}er("N",0,0,"eraAbbr");er("NN",0,0,"eraAbbr");er("NNN",0,0,"eraAbbr");er("NNNN",0,0,"eraName");er("NNNNN",0,0,"eraNarrow");er("y",["y",1],"yo","eraYear");er("y",["yy",2],0,"eraYear");er("y",["yyy",3],0,"eraYear");er("y",["yyyy",4],0,"eraYear");Ln("N",vL);Ln("NN",vL);Ln("NNN",vL);Ln("NNNN",aPe);Ln("NNNNN",oPe);vi(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?kr(n).era=i:kr(n).invalidEra=e});Ln("y",gy);Ln("yy",gy);Ln("yyy",gy);Ln("yyyy",gy);Ln("yo",sPe);vi(["y","yy","yyy","yyyy"],Ko);vi(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ko]=n._locale.eraYearOrdinalParse(e,i):t[Ko]=parseInt(e,10)});function YTe(e,t){var n,r,i,a=this._eras||Uf("en")._eras;for(n=0,r=a.length;n=0)return a[r]}function ZTe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?en(e.since).year():en(e.since).year()+(t-e.offset)*n}function QTe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ea&&(t=a),hPe.call(this,e,t,n,r,i))}function hPe(e,t,n,r,i){var a=Fue(e,t,n,r,i),o=Hw(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}er("Q",0,"Qo","quarter");Ln("Q",$ue);vi("Q",function(e,t){t[pf]=(Fr(e)-1)*3});function mPe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}er("D",["DD",2],"Do","date");Ln("D",Li,vy);Ln("DD",Li,Hl);Ln("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});vi(["D","DD"],Ju);vi("Do",function(e,t){t[Ju]=Fr(e.match(Li)[0])});var ode=yy("Date",!0);er("DDD",["DDDD",3],"DDDo","dayOfYear");Ln("DDD",wE);Ln("DDDD",Mue);vi(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Fr(e)});function gPe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}er("m",["mm",2],0,"minute");Ln("m",Li,oL);Ln("mm",Li,Hl);vi(["m","mm"],eu);var vPe=yy("Minutes",!1);er("s",["ss",2],0,"second");Ln("s",Li,oL);Ln("ss",Li,Hl);vi(["s","ss"],hf);var yPe=yy("Seconds",!1);er("S",0,0,function(){return~~(this.millisecond()/100)});er(0,["SS",2],0,function(){return~~(this.millisecond()/10)});er(0,["SSS",3],0,"millisecond");er(0,["SSSS",4],0,function(){return this.millisecond()*10});er(0,["SSSSS",5],0,function(){return this.millisecond()*100});er(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});er(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});er(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});er(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ln("S",wE,$ue);Ln("SS",wE,Hl);Ln("SSS",wE,Mue);var Ap,sde;for(Ap="SSSS";Ap.length<=9;Ap+="S")Ln(Ap,gy);function bPe(e,t){t[xm]=Fr(("0."+e)*1e3)}for(Ap="S";Ap.length<=9;Ap+="S")vi(Ap,bPe);sde=yy("Milliseconds",!1);er("z",0,0,"zoneAbbr");er("zz",0,0,"zoneName");function wPe(){return this._isUTC?"UTC":""}function xPe(){return this._isUTC?"Coordinated Universal Time":""}var mn=f4.prototype;mn.add=pTe;mn.calendar=wTe;mn.clone=xTe;mn.diff=MTe;mn.endOf=FTe;mn.format=RTe;mn.from=ITe;mn.fromNow=jTe;mn.to=NTe;mn.toNow=ATe;mn.get=OMe;mn.invalidAt=KTe;mn.isAfter=STe;mn.isBefore=CTe;mn.isBetween=_Te;mn.isSame=kTe;mn.isSameOrAfter=ETe;mn.isSameOrBefore=$Te;mn.isValid=VTe;mn.lang=ede;mn.locale=Jue;mn.localeData=tde;mn.max=V9e;mn.min=W9e;mn.parsingFlags=qTe;mn.set=RMe;mn.startOf=DTe;mn.subtract=hTe;mn.toArray=HTe;mn.toObject=UTe;mn.toDate=zTe;mn.toISOString=PTe;mn.inspect=OTe;typeof Symbol<"u"&&Symbol.for!=null&&(mn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});mn.toJSON=WTe;mn.toString=TTe;mn.unix=BTe;mn.valueOf=LTe;mn.creationData=GTe;mn.eraName=QTe;mn.eraNarrow=JTe;mn.eraAbbr=ePe;mn.eraYear=tPe;mn.year=Oue;mn.isLeapYear=PMe;mn.weekYear=lPe;mn.isoWeekYear=cPe;mn.quarter=mn.quarters=mPe;mn.month=Aue;mn.daysInMonth=zMe;mn.week=mn.weeks=YMe;mn.isoWeek=mn.isoWeeks=XMe;mn.weeksInYear=fPe;mn.weeksInWeekYear=pPe;mn.isoWeeksInYear=uPe;mn.isoWeeksInISOWeekYear=dPe;mn.date=ode;mn.day=mn.days=c9e;mn.weekday=u9e;mn.isoWeekday=d9e;mn.dayOfYear=gPe;mn.hour=mn.hours=y9e;mn.minute=mn.minutes=vPe;mn.second=mn.seconds=yPe;mn.millisecond=mn.milliseconds=sde;mn.utcOffset=eTe;mn.utc=nTe;mn.local=rTe;mn.parseZone=iTe;mn.hasAlignedHourOffset=aTe;mn.isDST=oTe;mn.isLocal=lTe;mn.isUtcOffset=cTe;mn.isUtc=Yue;mn.isUTC=Yue;mn.zoneAbbr=wPe;mn.zoneName=xPe;mn.dates=_c("dates accessor is deprecated. Use date instead.",ode);mn.months=_c("months accessor is deprecated. Use month instead",Aue);mn.years=_c("years accessor is deprecated. Use year instead",Oue);mn.zone=_c("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",tTe);mn.isDSTShifted=_c("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",sTe);function SPe(e){return Di(e*1e3)}function CPe(){return Di.apply(null,arguments).parseZone()}function lde(e){return e}var ti=tL.prototype;ti.calendar=lMe;ti.longDateFormat=fMe;ti.invalidDate=hMe;ti.ordinal=vMe;ti.preparse=lde;ti.postformat=lde;ti.relativeTime=bMe;ti.pastFuture=wMe;ti.set=oMe;ti.eras=YTe;ti.erasParse=XTe;ti.erasConvertYear=ZTe;ti.erasAbbrRegex=rPe;ti.erasNameRegex=nPe;ti.erasNarrowRegex=iPe;ti.months=DMe;ti.monthsShort=FMe;ti.monthsParse=BMe;ti.monthsRegex=UMe;ti.monthsShortRegex=HMe;ti.week=VMe;ti.firstDayOfYear=GMe;ti.firstDayOfWeek=KMe;ti.weekdays=i9e;ti.weekdaysMin=o9e;ti.weekdaysShort=a9e;ti.weekdaysParse=l9e;ti.weekdaysRegex=f9e;ti.weekdaysShortRegex=p9e;ti.weekdaysMinRegex=h9e;ti.isPM=g9e;ti.meridiem=b9e;function Ok(e,t,n,r){var i=Uf(),a=$d().set(r,t);return i[n](a,e)}function cde(e,t,n){if(Of(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ok(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Ok(e,r,n,"month");return i}function bL(e,t,n,r){typeof e=="boolean"?(Of(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Of(t)&&(n=t,t=void 0),t=t||"");var i=Uf(),a=e?i._week.dow:0,o,s=[];if(n!=null)return Ok(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=Ok(t,(o+a)%7,r,"day");return s}function _Pe(e,t){return cde(e,t,"months")}function kPe(e,t){return cde(e,t,"monthsShort")}function EPe(e,t,n){return bL(e,t,n,"weekdays")}function $Pe(e,t,n){return bL(e,t,n,"weekdaysShort")}function MPe(e,t,n){return bL(e,t,n,"weekdaysMin")}th("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Fr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});en.lang=_c("moment.lang is deprecated. Use moment.locale instead.",th);en.langData=_c("moment.langData is deprecated. Use moment.localeData instead.",Uf);var Hd=Math.abs;function TPe(){var e=this._data;return this._milliseconds=Hd(this._milliseconds),this._days=Hd(this._days),this._months=Hd(this._months),e.milliseconds=Hd(e.milliseconds),e.seconds=Hd(e.seconds),e.minutes=Hd(e.minutes),e.hours=Hd(e.hours),e.months=Hd(e.months),e.years=Hd(e.years),this}function ude(e,t,n,r){var i=_u(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function PPe(e,t){return ude(this,e,t,1)}function OPe(e,t){return ude(this,e,t,-1)}function RK(e){return e<0?Math.floor(e):Math.ceil(e)}function RPe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,o,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=RK(qI(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=ac(e/1e3),r.seconds=i%60,a=ac(i/60),r.minutes=a%60,o=ac(a/60),r.hours=o%24,t+=ac(o/24),l=ac(dde(t)),n+=l,t-=RK(qI(l)),s=ac(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function dde(e){return e*4800/146097}function qI(e){return e*146097/4800}function IPe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=kc(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+dde(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(qI(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Wf(e){return function(){return this.as(e)}}var fde=Wf("ms"),jPe=Wf("s"),NPe=Wf("m"),APe=Wf("h"),DPe=Wf("d"),FPe=Wf("w"),LPe=Wf("M"),BPe=Wf("Q"),zPe=Wf("y"),HPe=fde;function UPe(){return _u(this)}function WPe(e){return e=kc(e),this.isValid()?this[e+"s"]():NaN}function Hg(e){return function(){return this.isValid()?this._data[e]:NaN}}var VPe=Hg("milliseconds"),qPe=Hg("seconds"),KPe=Hg("minutes"),GPe=Hg("hours"),YPe=Hg("days"),XPe=Hg("months"),ZPe=Hg("years");function QPe(){return ac(this.days()/7)}var nf=Math.round,mv={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function JPe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function eOe(e,t,n,r){var i=_u(e).abs(),a=nf(i.as("s")),o=nf(i.as("m")),s=nf(i.as("h")),l=nf(i.as("d")),c=nf(i.as("M")),u=nf(i.as("w")),f=nf(i.as("y")),p=a<=n.ss&&["s",a]||a0,p[4]=r,JPe.apply(null,p)}function tOe(e){return e===void 0?nf:typeof e=="function"?(nf=e,!0):!1}function nOe(e,t){return mv[e]===void 0?!1:t===void 0?mv[e]:(mv[e]=t,e==="s"&&(mv.ss=t-1),!0)}function rOe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=mv,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},mv,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=eOe(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var a9=Math.abs;function k1(e){return(e>0)-(e<0)||+e}function ME(){if(!this.isValid())return this.localeData().invalidDate();var e=a9(this._milliseconds)/1e3,t=a9(this._days),n=a9(this._months),r,i,a,o,s=this.asSeconds(),l,c,u,f;return s?(r=ac(e/60),i=ac(r/60),e%=60,r%=60,a=ac(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=k1(this._months)!==k1(s)?"-":"",u=k1(this._days)!==k1(s)?"-":"",f=k1(this._milliseconds)!==k1(s)?"-":"",l+"P"+(a?c+a+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+o+"S":"")):"P0D"}var Kr=EE.prototype;Kr.isValid=X9e;Kr.abs=TPe;Kr.add=PPe;Kr.subtract=OPe;Kr.as=IPe;Kr.asMilliseconds=fde;Kr.asSeconds=jPe;Kr.asMinutes=NPe;Kr.asHours=APe;Kr.asDays=DPe;Kr.asWeeks=FPe;Kr.asMonths=LPe;Kr.asQuarters=BPe;Kr.asYears=zPe;Kr.valueOf=HPe;Kr._bubble=RPe;Kr.clone=UPe;Kr.get=WPe;Kr.milliseconds=VPe;Kr.seconds=qPe;Kr.minutes=KPe;Kr.hours=GPe;Kr.days=YPe;Kr.weeks=QPe;Kr.months=XPe;Kr.years=ZPe;Kr.humanize=rOe;Kr.toISOString=ME;Kr.toString=ME;Kr.toJSON=ME;Kr.locale=Jue;Kr.localeData=tde;Kr.toIsoString=_c("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ME);Kr.lang=ede;er("X",0,0,"unix");er("x",0,0,"valueOf");Ln("x",SE);Ln("X",_Me);vi("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});vi("x",function(e,t,n){n._d=new Date(Fr(e))});//! moment.js +en.version="2.30.1";iMe(Di);en.fn=mn;en.min=q9e;en.max=K9e;en.now=G9e;en.utc=$d;en.unix=SPe;en.months=_Pe;en.isDate=d4;en.locale=th;en.invalid=yE;en.duration=_u;en.isMoment=gu;en.weekdays=EPe;en.parseZone=CPe;en.localeData=Uf;en.isDuration=WC;en.monthsShort=kPe;en.weekdaysMin=MPe;en.defineLocale=dL;en.updateLocale=C9e;en.locales=_9e;en.weekdaysShort=$Pe;en.normalizeUnits=kc;en.relativeTimeRounding=tOe;en.relativeTimeThreshold=nOe;en.calendarFormat=bTe;en.prototype=mn;en.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let sS;const iOe=new Uint8Array(16);function aOe(){if(!sS&&(sS=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!sS))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return sS(iOe)}const po=[];for(let e=0;e<256;++e)po.push((e+256).toString(16).slice(1));function oOe(e,t=0){return po[e[t+0]]+po[e[t+1]]+po[e[t+2]]+po[e[t+3]]+"-"+po[e[t+4]]+po[e[t+5]]+"-"+po[e[t+6]]+po[e[t+7]]+"-"+po[e[t+8]]+po[e[t+9]]+"-"+po[e[t+10]]+po[e[t+11]]+po[e[t+12]]+po[e[t+13]]+po[e[t+14]]+po[e[t+15]]}const sOe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),IK={randomUUID:sOe};function lOe(e,t,n){if(IK.randomUUID&&!t&&!e)return IK.randomUUID();e=e||{};const r=e.random||(e.rng||aOe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,oOe(r)}const cOe="1.0.4";function wt(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}function uOe(e){var t,n,r,i,a,o,s;const l=(t=e.meta)===null||t===void 0?void 0:t.title,c=(n=e.meta)===null||n===void 0?void 0:n.creator,u=(r=e.meta)===null||r===void 0?void 0:r.source,f=(a=(i=e.meta)===null||i===void 0?void 0:i.license)===null||a===void 0?void 0:a.url,p=pde(e);return!l&&!c&&!u&&!f&&!p?"":''+(l?`${wt(l)}`:"")+(c?`${wt(c)}`:"")+(u?`${wt((s=(o=e.meta)===null||o===void 0?void 0:o.source)!==null&&s!==void 0?s:"")}`:"")+(f?`${wt(f)}`:"")+(p?`${wt(p)}`:"")+""}function pde(e){var t,n,r,i,a,o,s,l,c,u,f,p,h,m,g;let v=!((t=e.meta)===null||t===void 0)&&t.title?`„${(n=e.meta)===null||n===void 0?void 0:n.title}”`:"Design",y=`„${(i=(r=e.meta)===null||r===void 0?void 0:r.creator)!==null&&i!==void 0?i:"Unknown"}”`;!((a=e.meta)===null||a===void 0)&&a.source&&(v+=` (${e.meta.source})`);let w="";return((s=(o=e.meta)===null||o===void 0?void 0:o.license)===null||s===void 0?void 0:s.name)!=="MIT"&&((l=e.meta)===null||l===void 0?void 0:l.creator)!=="DiceBear"&&(!((c=e.meta)===null||c===void 0)&&c.title)&&(w+="Remix of "),w+=`${v} by ${y}`,!((f=(u=e.meta)===null||u===void 0?void 0:u.license)===null||f===void 0)&&f.name&&(w+=`, licensed under „${(h=(p=e.meta)===null||p===void 0?void 0:p.license)===null||h===void 0?void 0:h.name}”`,!((g=(m=e.meta)===null||m===void 0?void 0:m.license)===null||g===void 0)&&g.url&&(w+=` (${e.meta.license.url})`)),w}function dOe(e){var t,n,r,i,a,o,s,l,c;const u=pde(e);return{"IPTC:ObjectName":(t=e.meta)===null||t===void 0?void 0:t.title,"XMP-dc:Title":(n=e.meta)===null||n===void 0?void 0:n.title,"IPTC:CopyrightNotice":u,"XMP-dc:Rights":u,"IPTC:By-line":(r=e.meta)===null||r===void 0?void 0:r.creator,"XMP-dc:Creator":(i=e.meta)===null||i===void 0?void 0:i.creator,"IPTC:Credit":(a=e.meta)===null||a===void 0?void 0:a.creator,"XMP-photoshop:Credit":(o=e.meta)===null||o===void 0?void 0:o.creator,"XMP-plus:LicensorURL":(s=e.meta)===null||s===void 0?void 0:s.source,"XMP-xmpRights:WebStatement":(c=(l=e.meta)===null||l===void 0?void 0:l.license)===null||c===void 0?void 0:c.url}}const jK=-2147483648,fOe=2147483647;function hde(e){return e^=e<<13,e^=e>>17,e^=e<<5,e}function pOe(e){let t=0;for(let n=0;nt=hde(t),r=(i,a)=>Math.floor((n()-jK)/(fOe-jK)*(a+1-i)+i);return{seed:e,next:n,bool(i=50){return r(1,100)<=i},integer(i,a){return r(i,a)},pick(i,a){var o;return i.length===0?(n(),a):(o=i[r(0,i.length-1)])!==null&&o!==void 0?o:a},shuffle(i){const a=Rk(n().toString()),o=[...i];for(let s=o.length-1;s>0;s--){const l=a.integer(0,s);[o[s],o[l]]=[o[l],o[s]]}return o},string(i,a="abcdefghijklmnopqrstuvwxyz1234567890"){const o=Rk(n().toString());let s="";for(let l=0;l`;switch(r){case"solid":return c+e.body;case"gradientLinear":return``+e.body}}function mOe(e,t){let{width:n,height:r,x:i,y:a}=by(e),o=t?(t-100)/100:0,s=(n/2+i)*o*-1,l=(r/2+a)*o*-1;return`${e.body}`}function gOe(e,t,n){let r=by(e),i=(r.width+r.x*2)*((t??0)/100),a=(r.height+r.y*2)*((n??0)/100);return`${e.body}`}function vOe(e,t){let{width:n,height:r,x:i,y:a}=by(e);return`${e.body}`}function yOe(e){let{width:t,x:n}=by(e);return`${e.body}`}function bOe(e,t){let{width:n,height:r,x:i,y:a}=by(e),o=t?n*t/100:0,s=t?r*t/100:0;return`${e.body}`}function wOe(e){const t={xmlns:"http://www.w3.org/2000/svg",...e.attributes};return Object.keys(t).map(n=>`${wt(n)}="${wt(t[n])}"`).join(" ")}function xOe(e){const t=Rk(Math.random().toString()),n={};return e.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(r,i,a,o)=>(n[a]=n[a]||t.string(8),`${i}${n[a]}${o}`))}const SOe={type:"object",$schema:"http://json-schema.org/draft-07/schema#",properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1}}};function NK(e){var t;let n={},r=(t=e.properties)!==null&&t!==void 0?t:{};return Object.keys(r).forEach(i=>{let a=r[i];typeof a=="object"&&a.default!==void 0&&(Array.isArray(a.default)?n[i]=[...a.default]:typeof a.default=="object"?n[i]={...a.default}:n[i]=a.default)}),n}function COe(e,t){var n;let r={...NK(SOe),...NK((n=e.schema)!==null&&n!==void 0?n:{}),...t};return JSON.parse(JSON.stringify(r))}function KI(e){switch(e){case"svg":return"image/svg+xml";case"png":case"jpeg":return`image/${e}`;default:throw new Error(`Unsupported format: ${e}`)}}function _Oe(e,t=512){let n=t;return e=e.replace(/]*)/,(r,i)=>{const a=i.match(/width="([^"]+)"/);return a&&(n=parseInt(a[1])),i.match(/width="([^"]+)"/)?i=i.replace(/width="([^"]+)"/,`width="${n}"`):i+=` width="${n}"`,i.match(/height="([^"]+)"/)?i=i.replace(/height="([^"]+)"/,`height="${n}"`):i+=` height="${n}"`,`wL(e,t,n),toFile:r=>$Oe(r,e,t,n),toArrayBuffer:()=>EOe(e,t,n)}};async function wL(e,t,n){return t==="svg"?`data:${KI(t)};utf8,${encodeURIComponent(e)}`:(await mde(e,t,n)).toDataURL(KI(t))}async function EOe(e,t,n){if(t==="svg")return kOe().encode(e);const r=await mde(e,t,n);return await new Promise((i,a)=>{r.toBlob(o=>{o?i(o.arrayBuffer()):a(new Error("Could not create blob"))},KI(t))})}async function $Oe(e,t,n,r){const i=document.createElement("a");i.href=await wL(t,n,r),i.download=e,i.click(),i.remove()}async function mde(e,t,n){n&&console.warn("The `exif` option is not supported in the browser version of `@dicebear/converter`. \nPlease use the node version of `@dicebear/converter` to generate images with exif data.");let{svg:r,size:i}=_Oe(e);const a=document.createElement("canvas");a.width=i,a.height=i;const o=a.getContext("2d");if(o===null)throw new Error("Could not get canvas context");t==="jpeg"&&(o.fillStyle="white",o.fillRect(0,0,i,i));var s=document.createElement("img");return s.width=i,s.height=i,s.setAttribute("src",await wL(r,"svg")),new Promise((l,c)=>{s.onload=()=>{o.drawImage(s,0,0,i,i),l(a)},s.onerror=u=>c(u)})}function AK(e){return e==="transparent"?e:`#${e}`}function MOe(e,t,n){var r;let i=e.shuffle(t);i.length<=1||t.length==2&&n=="gradientLinear"?(i=t,e.next()):i=e.shuffle(t),i.length===0&&(i=["transparent"]);const a=i[0],o=(r=i[1])!==null&&r!==void 0?r:i[0];return{primary:AK(a),secondary:AK(o)}}function TOe(e,t={}){var n,r,i,a,o;t=COe(e,t);const s=Rk(t.seed),l=e.create({prng:s,options:t}),c=s.pick((n=t.backgroundType)!==null&&n!==void 0?n:[],"solid"),{primary:u,secondary:f}=MOe(s,(r=t.backgroundColor)!==null&&r!==void 0?r:[],c),p=s.integer(!((i=t.backgroundRotation)===null||i===void 0)&&i.length?Math.min(...t.backgroundRotation):0,!((a=t.backgroundRotation)===null||a===void 0)&&a.length?Math.max(...t.backgroundRotation):0);t.size&&(l.attributes.width=t.size.toString(),l.attributes.height=t.size.toString()),t.scale!==void 0&&t.scale!==100&&(l.body=mOe(l,t.scale)),t.flip&&(l.body=yOe(l)),t.rotate&&(l.body=vOe(l,t.rotate)),(t.translateX||t.translateY)&&(l.body=gOe(l,t.translateX,t.translateY)),u!=="transparent"&&f!=="transparent"&&(l.body=hOe(l,u,f,c,p)),(t.radius||t.clip)&&(l.body=bOe(l,(o=t.radius)!==null&&o!==void 0?o:0)),t.randomizeIds&&(l.body=xOe(l));const h=wOe(l),m=uOe(e),g=dOe(e),v=`${m}${l.body}`;return{toString:()=>v,toJson:()=>{var y;return{svg:v,extra:{primaryBackgroundColor:u,secondaryBackgroundColor:f,backgroundType:c,backgroundRotation:p,...(y=l.extra)===null||y===void 0?void 0:y.call(l)}}},toDataUriSync:()=>`data:image/svg+xml;utf8,${encodeURIComponent(v)}`,...s9(v,"svg"),png:({includeExif:y=!1}={})=>s9(v,"png",y?g:void 0),jpeg:({includeExif:y=!1}={})=>s9(v,"jpeg",y?g:void 0)}}const POe={variant48:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant47:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant46:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant45:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant44:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant43:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant42:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant41:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant40:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant39:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant38:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant37:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant36:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant35:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant34:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant33:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant32:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant31:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant30:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant29:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant28:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant27:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant26:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant25:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant24:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant23:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant22:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant21:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant20:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant19:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant18:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant17:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant16:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant15:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant14:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant13:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant12:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant11:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant10:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant09:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant08:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant07:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant06:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant05:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant04:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant03:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant02:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant01:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`}},OOe={flowers:(e,t)=>``},ROe={variant04:(e,t)=>{var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y;return`${(r=(n=e.eyes)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}${(a=(i=e.eyebrows)===null||i===void 0?void 0:i.value(e,t))!==null&&a!==void 0?a:""}${(s=(o=e.earrings)===null||o===void 0?void 0:o.value(e,t))!==null&&s!==void 0?s:""}${(c=(l=e.freckles)===null||l===void 0?void 0:l.value(e,t))!==null&&c!==void 0?c:""}${(f=(u=e.nose)===null||u===void 0?void 0:u.value(e,t))!==null&&f!==void 0?f:""}${(h=(p=e.beard)===null||p===void 0?void 0:p.value(e,t))!==null&&h!==void 0?h:""}${(g=(m=e.mouth)===null||m===void 0?void 0:m.value(e,t))!==null&&g!==void 0?g:""}${(y=(v=e.glasses)===null||v===void 0?void 0:v.value(e,t))!==null&&y!==void 0?y:""}`},variant03:(e,t)=>{var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y;return`${(r=(n=e.eyes)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}${(a=(i=e.eyebrows)===null||i===void 0?void 0:i.value(e,t))!==null&&a!==void 0?a:""}${(s=(o=e.earrings)===null||o===void 0?void 0:o.value(e,t))!==null&&s!==void 0?s:""}${(c=(l=e.freckles)===null||l===void 0?void 0:l.value(e,t))!==null&&c!==void 0?c:""}${(f=(u=e.nose)===null||u===void 0?void 0:u.value(e,t))!==null&&f!==void 0?f:""}${(h=(p=e.beard)===null||p===void 0?void 0:p.value(e,t))!==null&&h!==void 0?h:""}${(g=(m=e.mouth)===null||m===void 0?void 0:m.value(e,t))!==null&&g!==void 0?g:""}${(y=(v=e.glasses)===null||v===void 0?void 0:v.value(e,t))!==null&&y!==void 0?y:""}`},variant02:(e,t)=>{var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y;return`${(r=(n=e.eyes)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}${(a=(i=e.eyebrows)===null||i===void 0?void 0:i.value(e,t))!==null&&a!==void 0?a:""}${(s=(o=e.earrings)===null||o===void 0?void 0:o.value(e,t))!==null&&s!==void 0?s:""}${(c=(l=e.freckles)===null||l===void 0?void 0:l.value(e,t))!==null&&c!==void 0?c:""}${(f=(u=e.nose)===null||u===void 0?void 0:u.value(e,t))!==null&&f!==void 0?f:""}${(h=(p=e.beard)===null||p===void 0?void 0:p.value(e,t))!==null&&h!==void 0?h:""}${(g=(m=e.mouth)===null||m===void 0?void 0:m.value(e,t))!==null&&g!==void 0?g:""}${(y=(v=e.glasses)===null||v===void 0?void 0:v.value(e,t))!==null&&y!==void 0?y:""}`},variant01:(e,t)=>{var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y;return`${(r=(n=e.eyes)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}${(a=(i=e.eyebrows)===null||i===void 0?void 0:i.value(e,t))!==null&&a!==void 0?a:""}${(s=(o=e.earrings)===null||o===void 0?void 0:o.value(e,t))!==null&&s!==void 0?s:""}${(c=(l=e.freckles)===null||l===void 0?void 0:l.value(e,t))!==null&&c!==void 0?c:""}${(f=(u=e.nose)===null||u===void 0?void 0:u.value(e,t))!==null&&f!==void 0?f:""}${(h=(p=e.beard)===null||p===void 0?void 0:p.value(e,t))!==null&&h!==void 0?h:""}${(g=(m=e.mouth)===null||m===void 0?void 0:m.value(e,t))!==null&&g!==void 0?g:""}${(y=(v=e.glasses)===null||v===void 0?void 0:v.value(e,t))!==null&&y!==void 0?y:""}`}},IOe={variant24:(e,t)=>``,variant23:(e,t)=>``,variant22:(e,t)=>``,variant21:(e,t)=>``,variant20:(e,t)=>``,variant19:(e,t)=>``,variant18:(e,t)=>``,variant17:(e,t)=>``,variant16:(e,t)=>``,variant15:(e,t)=>``,variant14:(e,t)=>``,variant13:(e,t)=>``,variant12:(e,t)=>``,variant11:(e,t)=>``,variant10:(e,t)=>``,variant09:(e,t)=>``,variant08:(e,t)=>``,variant07:(e,t)=>``,variant06:(e,t)=>``,variant05:(e,t)=>``,variant04:(e,t)=>``,variant03:(e,t)=>``,variant02:(e,t)=>``,variant01:(e,t)=>``},jOe={variant13:(e,t)=>``,variant12:(e,t)=>``,variant11:(e,t)=>``,variant10:(e,t)=>``,variant09:(e,t)=>``,variant08:(e,t)=>``,variant07:(e,t)=>``,variant06:(e,t)=>``,variant05:(e,t)=>``,variant04:(e,t)=>``,variant03:(e,t)=>``,variant02:(e,t)=>``,variant01:(e,t)=>``},NOe={variant01:(e,t)=>``,variant02:(e,t)=>``,variant03:(e,t)=>``},AOe={variant01:(e,t)=>``},DOe={variant01:(e,t)=>``,variant02:(e,t)=>``,variant03:(e,t)=>``,variant04:(e,t)=>``,variant05:(e,t)=>``,variant06:(e,t)=>``},FOe={variant01:(e,t)=>``,variant02:(e,t)=>``},LOe={happy01:(e,t)=>``,happy02:(e,t)=>``,happy03:(e,t)=>``,happy04:(e,t)=>``,happy05:(e,t)=>``,happy06:(e,t)=>``,happy07:(e,t)=>``,happy08:(e,t)=>``,happy18:(e,t)=>``,happy09:(e,t)=>``,happy10:(e,t)=>``,happy11:(e,t)=>``,happy12:(e,t)=>``,happy13:(e,t)=>``,happy14:(e,t)=>``,happy17:(e,t)=>``,happy15:(e,t)=>``,happy16:(e,t)=>``,sad01:(e,t)=>``,sad02:(e,t)=>``,sad03:(e,t)=>``,sad04:(e,t)=>``,sad05:(e,t)=>``,sad06:(e,t)=>``,sad07:(e,t)=>``,sad08:(e,t)=>``,sad09:(e,t)=>``},BOe={variant01:(e,t)=>``,variant02:(e,t)=>``,variant03:(e,t)=>``,variant04:(e,t)=>``,variant05:(e,t)=>``},zOe=Object.freeze(Object.defineProperty({__proto__:null,beard:FOe,earrings:NOe,eyebrows:jOe,eyes:IOe,freckles:AOe,glasses:BOe,hair:POe,hairAccessories:OOe,head:ROe,mouth:LOe,nose:DOe},Symbol.toStringTag,{value:"Module"}));function Ac({prng:e,group:t,values:n=[]}){const r=zOe,i=e.pick(n);if(i&&r[t][i])return{name:i,value:r[t][i]}}function HOe({prng:e,options:t}){const n=Ac({prng:e,group:"hair",values:t.hair}),r=Ac({prng:e,group:"hairAccessories",values:t.hairAccessories}),i=Ac({prng:e,group:"head",values:t.head}),a=Ac({prng:e,group:"eyes",values:t.eyes}),o=Ac({prng:e,group:"eyebrows",values:t.eyebrows}),s=Ac({prng:e,group:"earrings",values:t.earrings}),l=Ac({prng:e,group:"freckles",values:t.freckles}),c=Ac({prng:e,group:"nose",values:t.nose}),u=Ac({prng:e,group:"beard",values:t.beard}),f=Ac({prng:e,group:"mouth",values:t.mouth}),p=Ac({prng:e,group:"glasses",values:t.glasses});return{hair:n,hairAccessories:e.bool(t.hairAccessoriesProbability)?r:void 0,head:i,eyes:a,eyebrows:o,earrings:e.bool(t.earringsProbability)?s:void 0,freckles:e.bool(t.frecklesProbability)?l:void 0,nose:c,beard:e.bool(t.beardProbability)?u:void 0,mouth:f,glasses:e.bool(t.glassesProbability)?p:void 0}}function Du(e){return e==="transparent"?e:`#${e}`}function UOe({prng:e,options:t}){var n,r,i,a,o,s,l,c,u,f;return{hair:Du(e.pick((n=t.hairColor)!==null&&n!==void 0?n:[],"transparent")),skin:Du(e.pick((r=t.skinColor)!==null&&r!==void 0?r:[],"transparent")),earrings:Du(e.pick((i=t.earringsColor)!==null&&i!==void 0?i:[],"transparent")),eyebrows:Du(e.pick((a=t.eyebrowsColor)!==null&&a!==void 0?a:[],"transparent")),eyes:Du(e.pick((o=t.eyesColor)!==null&&o!==void 0?o:[],"transparent")),freckles:Du(e.pick((s=t.frecklesColor)!==null&&s!==void 0?s:[],"transparent")),glasses:Du(e.pick((l=t.glassesColor)!==null&&l!==void 0?l:[],"transparent")),mouth:Du(e.pick((c=t.mouthColor)!==null&&c!==void 0?c:[],"transparent")),nose:Du(e.pick((u=t.noseColor)!==null&&u!==void 0?u:[],"transparent")),hairAccessories:Du(e.pick((f=t.hairAccessoriesColor)!==null&&f!==void 0?f:[],"transparent"))}}function WOe({prng:e,options:t,components:n,colors:r}){n.beard&&r.hair===r.mouth&&(r.mouth="#ffffff")}const VOe={$schema:"http://json-schema.org/draft-07/schema#",properties:{beard:{type:"array",items:{type:"string",enum:["variant01","variant02"]},default:["variant01","variant02"]},beardProbability:{type:"integer",minimum:0,maximum:100,default:5},earrings:{type:"array",items:{type:"string",enum:["variant01","variant02","variant03"]},default:["variant01","variant02","variant03"]},earringsColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},earringsProbability:{type:"integer",minimum:0,maximum:100,default:10},eyebrows:{type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyebrowsColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},eyes:{type:"array",items:{type:"string",enum:["variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},freckles:{type:"array",items:{type:"string",enum:["variant01"]},default:["variant01"]},frecklesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},frecklesProbability:{type:"integer",minimum:0,maximum:100,default:5},glasses:{type:"array",items:{type:"string",enum:["variant01","variant02","variant03","variant04","variant05"]},default:["variant01","variant02","variant03","variant04","variant05"]},glassesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},glassesProbability:{type:"integer",minimum:0,maximum:100,default:10},hair:{type:"array",items:{type:"string",enum:["variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},hairAccessories:{type:"array",items:{type:"string",enum:["flowers"]},default:["flowers"]},hairAccessoriesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},hairAccessoriesProbability:{type:"integer",minimum:0,maximum:100,default:5},hairColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},head:{type:"array",items:{type:"string",enum:["variant04","variant03","variant02","variant01"]},default:["variant04","variant03","variant02","variant01"]},mouth:{type:"array",items:{type:"string",enum:["happy01","happy02","happy03","happy04","happy05","happy06","happy07","happy08","happy18","happy09","happy10","happy11","happy12","happy13","happy14","happy17","happy15","happy16","sad01","sad02","sad03","sad04","sad05","sad06","sad07","sad08","sad09"]},default:["happy01","happy02","happy03","happy04","happy05","happy06","happy07","happy08","happy18","happy09","happy10","happy11","happy12","happy13","happy14","happy17","happy15","happy16","sad01","sad02","sad03","sad04","sad05","sad06","sad07","sad08","sad09"]},mouthColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},nose:{type:"array",items:{type:"string",enum:["variant01","variant02","variant03","variant04","variant05","variant06"]},default:["variant01","variant02","variant03","variant04","variant05","variant06"]},noseColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},skinColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["ffffff"]}}},qOe={title:"Lorelei",creator:"Lisa Wischofsky",source:"https://www.figma.com/community/file/1198749693280469639",homepage:"https://www.instagram.com/lischi_art/",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},KOe=({prng:e,options:t})=>{var n,r,i,a;const o=HOe({prng:e,options:t}),s=UOe({prng:e,options:t});return WOe({prng:e,options:t,components:o,colors:s}),{attributes:{viewBox:"0 0 980 980",fill:"none","shape-rendering":"auto"},body:`${(r=(n=o.hair)===null||n===void 0?void 0:n.value(o,s))!==null&&r!==void 0?r:""}${(a=(i=o.hairAccessories)===null||i===void 0?void 0:i.value(o,s))!==null&&a!==void 0?a:""}`,extra:()=>({...Object.entries(o).reduce((l,[c,u])=>(l[c]=u==null?void 0:u.name,l),{}),...Object.entries(s).reduce((l,[c,u])=>(l[`${c}Color`]=u,l),{})})}},GOe=Object.freeze(Object.defineProperty({__proto__:null,create:KOe,meta:qOe,schema:VOe},Symbol.toStringTag,{value:"Module"}));function YOe(){return cOe}function XOe(){const e=localStorage.getItem($C);(e===null||e==="true")&&new Audio(V6e).play()}function Pv(){return en().format("YYYY-MM-DD HH:mm:ss")}function Ba(){return lOe().replaceAll(/-/g,"")}function Ik(e){return TOe(GOe,{seed:e,size:40}).toDataUriSync()}function E1(e){return e.endsWith("/")?e.slice(0,-1):e}const ZOe=e=>{if(typeof e=="string"){const t=en(),n=en(e);return n.isSame(t,"day")?n.format("HH:mm"):n.format("MM-DD HH:mm")}else return e};function jk(e,t){return(e==null?void 0:e.length)>t?e.slice(0,t-3)+"...":e}function qC(e,t){const n=en(new Date).format("YYYYMMDDHHmmss")+"_"+e.name,r=new FormData;r.append("file",e),r.append("file_name",n),r.append("file_type",e.type),r.append("is_avatar","false"),r.append("kb_type",_F),r.append("client",kn),console.log("handleUpload formData",r),fetch(fy(),{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},body:r}).then(i=>i.json()).then(i=>{console.log("upload data:",i),t(i)})}const QOe=e=>(e==null?void 0:e.type)===gF,Nk=e=>(e==null?void 0:e.type)===wse,Fo=e=>(e==null?void 0:e.type)===xse,Rf=e=>(e==null?void 0:e.type)===q3||(e==null?void 0:e.type)===K3,GI=e=>(e==null?void 0:e.type)===q3||(e==null?void 0:e.type)===K3||(e==null?void 0:e.type)===Sse,JOe=e=>(e==null?void 0:e.type)===q3,eRe=e=>(e==null?void 0:e.type)===K3,Ak=e=>(e==null?void 0:e.type)===Sse,Dk=e=>(e==null?void 0:e.type)===gF,tRe=e=>(console.log("isDeviceThread",e),!1),nRe=e=>sRe(e==null?void 0:e.topic),rRe=(e,t)=>{var n,r;return((n=t==null?void 0:t.invites)==null?void 0:n.length)===0?!1:(r=t==null?void 0:t.invites)==null?void 0:r.every(i=>i.uid!==(e==null?void 0:e.uid))};function iRe(e){if(vo===e||Cl===e||cd===e||Fw===e||lg===e)return!0}function aRe(e){return e===g0||e===v0}function oRe(e){return e===g0||e===v0}function sRe(e){return e==null?void 0:e.startsWith(d5e)}function lRe(e){return e==null?void 0:e.startsWith($se)}function cRe(e){const t=e==null?void 0:e.split("/");if(t.length!==4)throw new Error(`Invalid private topic: ${e}`);return[t[2],t[3]]=[t[3],t[2]],t.join("/")}function uRe(e){return e==null?void 0:e.startsWith(Mse)}function dRe(e){return e==null?void 0:e.startsWith(Tse)}function fRe(e){return e==null?void 0:e.startsWith(f5e)}function pRe(e){return e==null?void 0:e.startsWith(p5e)}function gde(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const vde=e=>e&&(e.includes("

    ")||e.includes("

    ")||e.includes("")||e.includes("
      "));function Vw(e){switch(e){case cg:return"blue";case G3:return"purple";case ly:return"green";case Y3:return"orange";case X3:return"gold";case Z3:return"magenta";case Q3:return"cyan";case J3:return"default";case e4:return"red";default:return"default"}}function Fk(e){switch(e){case kF:return"blue";case bk:return"purple";case EF:return"red";case $F:return"orange";case MF:return"default";default:return"default"}}const DK=(e,t)=>{var n;return((n=e==null?void 0:e.assignee)==null?void 0:n.uid)===(t==null?void 0:t.uid)},Ja=(e,t,n,r)=>{var i,a;return e?n==null?!1:((i=t==null?void 0:t.assignee)==null?void 0:i.uid)===(r==null?void 0:r.uid)||((a=t==null?void 0:t.reporter)==null?void 0:a.uid)===(r==null?void 0:r.uid):!0},W2=(e,t)=>e?(t==null?void 0:t.status)===ly||(t==null?void 0:t.status)===TF:!0,hRe=()=>{const e=navigator.language.toLowerCase();console.log("AppWrapper getBrowserLanguage browserLang: ",e);const t=["en","zh-cn","zh-tw","ja","ko"];if(e.startsWith("zh"))return e.includes("tw")?"zh-tw":"zh-cn";const n=e.split("-")[0];return t.includes(n)?n:"en"},xL=(e,t,n,r,i,a,o)=>{var u;let s;(n==null?void 0:n.uid)!=""&&((e==null?void 0:e.type)===q3||(e==null?void 0:e.type)===K3)?s={uid:n.uid,nickname:n.nickname,avatar:n.avatar,type:uh}:s={uid:t.uid,nickname:t.nickname,avatar:t.avatar,type:W5};const l={orgUid:(u=t==null?void 0:t.currentOrganization)==null?void 0:u.uid};return{uid:r,type:i,status:$p,createdAt:o,client:kn,content:a,extra:JSON.stringify(l),user:s,thread:e}},yde=(e,t,n,r,i,a,o)=>{let s;return(n==null?void 0:n.uid)!=""&&((e==null?void 0:e.type)===q3||(e==null?void 0:e.type)===K3)?s={uid:n.uid,nickname:n.nickname,avatar:n.avatar,type:uh}:s={uid:t.uid,nickname:t.nickname,avatar:t.avatar,type:W5},{uid:r,type:i,status:Dw,createdAt:o,client:kn,content:a,user:s,topic:e==null?void 0:e.topic}},mRe=(e,t,n,r,i,a,o)=>{var u;const s={uid:n==null?void 0:n.uid,nickname:n==null?void 0:n.nickname,avatar:n==null?void 0:n.avatar,type:mk},l={orgUid:(u=t==null?void 0:t.currentOrganization)==null?void 0:u.uid};return{uid:r,type:i,status:$p,createdAt:o,client:kn,content:a,extra:JSON.stringify(l),user:s,thread:e}},Vr=so()(es(ts(ns(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:w6e}))),fr=so()(es(ts(ns((e,t)=>({threads:[],queuingThreads:[],invitedThreads:[],monitoringThreads:[],currentThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},currentQueuingThread:{uid:"",user:{uid:"",nickname:"",avatar:""}},currentTicketThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},threadResult:{data:{content:[],last:!0}},showQueueButton:!1,showQueueList:!1,showRightPanel:!1,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{},addThread(n){var i,a;if(n.state===FV)return t().addQueuingThread(n),0;if(t().threads.some(o=>o.uid===n.uid))if(((i=t().currentThread)==null?void 0:i.uid)===""||((a=t().currentThread)==null?void 0:a.uid)!==n.uid){for(let o=0;oo.uid!==n.uid)]}),n.unreadCount}else{const o=t().threads.map(s=>s.uid===n.uid?(n.top=s.top,n.mute=s.mute,n.unread=s.unread,n.agent=s.agent,n):s);return e({threads:o}),0}else return n.unreadCount=1,e({threads:[n,...t().threads]}),n.unreadCount},addThreadWithMessage(n,r){if(r.type===J6e)return t().addQueuingThread(n),0;const i=!aRe(r.type);oRe(r.type)&&(n.state=nR);const o="topic",s=t().threads.some(u=>u[o]===n[o]),l=t().currentThread[o]===n[o];if(!s)return i&&(n.unreadCount=1),e({threads:[n,...t().threads]}),n.unreadCount;if(!l){const u=t().threads.find(f=>f[o]===n[o]);return u&&(n=gRe(n,u,i)),e({threads:[n,...t().threads.filter(f=>f[o]!==n[o])]}),n.unreadCount}const c=t().threads.map(u=>u[o]===n[o]?bde(n,u):u);return e({threads:c}),0},addQueuingThread(n){t().queuingThreads.some(i=>i.uid===n.uid)||e({queuingThreads:[n,...t().queuingThreads]})},updateThreadContent(n,r){let i=null;const a=t().threads.map(o=>o.uid===n?(i={...o,unreadCount:o.unreadCount+1,content:r},i):o);return e({threads:a}),i},updateThreadStatus(n,r){let i=null;const a=t().threads.map(o=>o.uid===n?(i={...o,state:r},i):o);return e({threads:a}),i},removeThread(n){e({threads:[...t().threads.filter(r=>(r==null?void 0:r.uid)!==(n==null?void 0:n.uid))]})},removeThreadWithUid(n){e({threads:[...t().threads.filter(r=>(r==null?void 0:r.uid)!==n)]})},closeThread(n){const r=t().threads.map(i=>i.uid===n?{...i,state:nR}:i);e({threads:r})},addThreads(n){for(let r=0;ro.uid===i.uid))e({threads:[...t().threads,i]});else{const o=t().threads.map(s=>s.uid===i.uid?{...i,unreadCount:s.unreadCount}:s);e({threads:o})}}},setThreads(n){e(r=>{r.threads=n})},setQueuingThreads(n){e(r=>{r.queuingThreads=n})},setInvitedThreads(n){e(r=>{r.invitedThreads=n})},setMonitoringThreads(n){e(r=>{r.monitoringThreads=n})},setCurrentThread(n){e(a=>{a.showQueueList=!1});const r={...n,unreadCount:0},i=t().threads.map(a=>a.uid===r.uid?r:a);e(a=>{a.currentThread=r,a.threads=i})},setCurrentQueuingThread(n){e(r=>{r.currentQueuingThread=n})},setCurrentTicketThread(n){e(r=>{r.currentTicketThread=n})},setThreadResult(n){e(r=>{r.threadResult=n})},getUnreadCount(){return t().threads.reduce((n,r)=>{var i;return r.unreadCount>0&&r.uid!==((i=t().currentThread)==null?void 0:i.uid)?n+r.unreadCount:n},0)},setShowQueueButton(n){e(r=>{r.showQueueButton=n})},setShowQueueList(n){e(r=>{r.showQueueList=n,r.showRightPanel=!1})},setShowRightPanel(n){e(r=>{r.showRightPanel=n})},resetThreads(){e(n=>{n.threads=[],n.queuingThreads=[],n.currentThread={uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},n.currentQueuingThread={uid:"",user:{uid:"",nickname:"",avatar:""}},n.threadResult={data:{content:[],last:!0}},n.showQueueButton=!1,n.showQueueList=!1,n.showRightPanel=!1})},setLoading:n=>e({loading:n}),setError:n=>e({error:n}),setSearchText:n=>e({searchText:n}),setFilter:(n,r)=>e(i=>{i.filters[n]=r}),clearFilters:()=>e({filters:{}}),refreshThreads:async()=>{const{currentOrg:n}=Vr.getState();if(n!=null&&n.uid){const{threadService:r}=await xue(async()=>{const{threadService:i}=await Promise.resolve().then(()=>IWt);return{threadService:i}},void 0);await r.loadThreads()}},setPagination:n=>e({pagination:n})})),{name:M6e}))),bde=(e,t)=>(e.top=t.top,e.mute=t.mute,e.unread=t.unread,e.agent=t.agent,e),gRe=(e,t,n)=>(n&&(e.unreadCount=t.unreadCount+1),bde(e,t)),Td=so()(es(ts(ns((e,t)=>({messageList:[],addMessageProtobuf(n){var i;const r={...n,extra:JSON.parse(n==null?void 0:n.extra),topic:(i=n.thread)==null?void 0:i.topic};t().addMessage(r)},addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===$f){const a=t().messageList.findIndex(o=>o.type===$f&&o.uid===n.uid);if(a!==-1){const o=[...t().messageList];o[a].content+=n.content,e({messageList:o});return}}const i=t().messageList.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...t().messageList];a[i]=n,e({messageList:a})}}else{const i=t().messageList[t().messageList.length-1];if(i&&n.type===m0&&i.type===m0){const a=t().messageList.findIndex(s=>s.uid===i.uid),o=[...t().messageList];o[a]=n,e({messageList:o})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let a=0;al.uid===o.uid)||r.unshift(o)}const i=[...r,...t().messageList].sort((a,o)=>{const s=en(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=en(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",i),e({messageList:i})},updateMessageStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);if(i!==-1){const a=[...t().messageList];a[i].status=r,e({messageList:a})}},updateMessageTransferStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);if(i!==-1){const a=[...t().messageList],o=a[i],s=JSON.parse(o.content);s.status=r,a[i].content=JSON.stringify(s),e({messageList:a})}},updateMessageInviteStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);if(i!==-1){const a=[...t().messageList],o=a[i],s=JSON.parse(o.content);s.status=r,a[i].content=JSON.stringify(s),e({messageList:a})}},updateMessage(n){const r=t().messageList.findIndex(i=>i.uid===n.uid);if(r!==-1){const i=[...t().messageList];i[r].content=n.content,e({messageList:i})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i.splice(r,1),e({messageList:i})}},recallMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i[r].type=V5,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const a=en(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),o=en(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return a-o});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:_6e}))),ia=so()(es(ts(ns((e,t)=>({userInfo:{uid:"",nickname:"",avatar:""},deviceUid:"",setUserInfo:n=>{e({userInfo:n})},setDeviceUid(n){e({deviceUid:n})},resetUserInfo(){e({userInfo:{uid:t().userInfo.uid,nickname:"",avatar:""}})}})),{name:E6e}))),Eo=so()(es(ts(ns((e,t)=>({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""},insertAgent(n){e(r=>{r.agentResult.data.content.unshift(n)})},updateAgent(n){e(r=>{const i=r.agentResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i[a]=n:console.warn(`Agent with uid ${n.uid} not found.`)})},deleteAgent(n){e(r=>{const i=r.agentResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i.splice(a,1):console.warn(`Agent with uid ${n.uid} not found.`)})},setAgentResult:n=>{e({agentResult:n})},setAgentInfo(n){e({agentInfo:n})},deleteAgentInfo(n){const r=t().agentResult.data.content,i=r.findIndex(a=>a.uid===n);i!==-1?e({agentResult:{...t().agentResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Agent not found in cache:",n),t().agentInfo.uid===n&&e({agentInfo:{uid:"",orgUid:""}})},resetAgentInfo(){e({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""}})}})),{name:P6e}))),Na=so()(es(ts(ns(e=>({currentMember:{uid:"",nickname:"",avatar:"",description:"",user:{uid:"",avatar:""}},memberInfo:{uid:"",nickname:"",avatar:"",description:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},setCurrentMember(t){e({currentMember:t})},setMemberInfo(t){e({memberInfo:t})},setMemberResult:t=>{e({memberResult:t})},resetMembers:()=>e({currentMember:{uid:"",nickname:"",avatar:"",description:"",user:{uid:"",avatar:""}},memberInfo:{uid:"",nickname:"",avatar:"",description:"",user:{uid:"",avatar:""}}})})),{name:S6e})));var wde={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o1&&arguments[1]!==void 0?arguments[1]:{},n=[];return te.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Zi(r)):vde(r)&&r.props?n=n.concat(Zi(r.props.children,t)):n.push(r))}),n}var qR={},yIe=function(t){};function bIe(e,t){}function wIe(e,t){}function xIe(){qR={}}function yde(e,t,n){!t&&!qR[n]&&(e(!1,n),qR[n]=!0)}function zr(e,t){yde(bIe,e,t)}function SIe(e,t){yde(wIe,e,t)}zr.preMessage=yIe;zr.resetWarned=xIe;zr.noteOnce=SIe;function CIe(e,t){if(Kt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Kt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bde(e){var t=CIe(e,"string");return Kt(t)=="symbol"?t:t+""}function ne(e,t,n){return(t=bde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},n=[];return te.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Xi(r)):xde(r)&&r.props?n=n.concat(Xi(r.props.children,t)):n.push(r))}),n}var YI={},wRe=function(t){};function xRe(e,t){}function SRe(e,t){}function CRe(){YI={}}function Sde(e,t,n){!t&&!YI[n]&&(e(!1,n),YI[n]=!0)}function Br(e,t){Sde(xRe,e,t)}function _Re(e,t){Sde(SRe,e,t)}Br.preMessage=wRe;Br.resetWarned=CRe;Br.noteOnce=_Re;function kRe(e,t){if(Kt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Kt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cde(e){var t=kRe(e,"string");return Kt(t)=="symbol"?t:t+""}function ne(e,t,n){return(t=Cde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t0},e.prototype.connect_=function(){!GR||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),RIe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!GR||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=IIe.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),_de=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof w0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new HIe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof w0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new UIe(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Ede=typeof WeakMap<"u"?new WeakMap:new Cde,$de=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=jIe.getInstance(),r=new WIe(t,n,this);Ede.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){$de.prototype[e]=function(){var t;return(t=Ede.get(this))[e].apply(t,arguments)}});var Mde=function(){return typeof Fk.ResizeObserver<"u"?Fk.ResizeObserver:$de}(),Ap=new Map;function VIe(e){e.forEach(function(t){var n,r=t.target;(n=Ap.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var Tde=new Mde(VIe);function qIe(e,t){Ap.has(e)||(Ap.set(e,new Set),Tde.observe(e)),Ap.get(e).add(t)}function KIe(e,t){Ap.has(e)&&(Ap.get(e).delete(t),Ap.get(e).size||(Tde.unobserve(e),Ap.delete(e)))}function Dr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DK(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;FK+=1;var r=FK;function i(a){if(a===0)jde(r),t();else{var o=Ide(function(){i(a-1)});_L.set(r,o)}}return i(n),r};rr.cancel=function(e){var t=_L.get(e);return jde(e),Rde(t)};function Nde(e){if(Array.isArray(e))return e}function tRe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Ade(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Te(e,t){return Nde(e)||tRe(e,t)||zE(e,t)||Ade()}function Kw(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function by(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function nRe(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var LK="data-rc-order",BK="data-rc-priority",rRe="rc-util-key",XR=new Map;function Dde(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):rRe}function HE(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function iRe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function kL(e){return Array.from((XR.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Fde(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!by())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=iRe(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(LK,o),s&&a&&l.setAttribute(BK,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=HE(t),u=c.firstChild;if(r){if(s){var f=(t.styles||kL(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(LK)))return!1;var h=Number(p.getAttribute(BK)||0);return a>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Lde(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=HE(t);return(t.styles||kL(n)).find(function(r){return r.getAttribute(Dde(t))===e})}function EL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Lde(e,t);if(n){var r=HE(t);r.removeChild(n)}}function aRe(e,t){var n=XR.get(e);if(!n||!nRe(document,n)){var r=Fde("",t),i=r.parentNode;XR.set(e,i),e.removeChild(r)}}function Mv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=HE(n),i=kL(r),a=q(q({},n),{},{styles:i});aRe(r,a);var o=Lde(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=Fde(e,a);return u.setAttribute(Dde(a),t),u}function oRe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Ut(e,t){if(e==null)return{};var n,r,i=oRe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(p4(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return n.forEach(function(s){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=o)!==null&&r!==void 0&&r.value&&a&&(o.value[1]=this.cacheCallTimes++),(i=o)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var f=Te(c,2),p=f[1];return i.internalGet(u)[1]0,void 0),HK+=1}return Fr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),o9=new ML;function fg(e){var t=Array.isArray(e)?e:[e];return o9.has(t)||o9.set(t,new TL(t)),o9.get(t)}var wRe=new WeakMap,s9={};function xRe(e,t){for(var n=wRe,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=q(q({},i),{},(r={},ne(r,x0,t),ne(r,nu,n),r)),s=Object.keys(o).map(function(l){var c=o[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"")}var K2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},_Re=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var a=Te(i,2),o=a[0],s=a[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},qde=function(t,n,r){var i={},a={};return Object.entries(t).forEach(function(o){var s,l,c=Te(o,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])a[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var p,h=K2(u,r==null?void 0:r.prefix);i[h]=typeof f=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[u])?"".concat(f,"px"):String(f),a[u]="var(".concat(h,")")}}),[a,_Re(i,n,{scope:r==null?void 0:r.scope})]},VK=by()?d.useLayoutEffect:d.useEffect,kRe=function(t,n){var r=d.useRef(!0);VK(function(){return t(r.current)},n),VK(function(){return r.current=!1,function(){r.current=!0}},[])},ERe=q({},Qm),qK=ERe.useInsertionEffect,$Re=function(t,n,r){d.useMemo(t,r),kRe(function(){return n(!0)},r)},MRe=qK?function(e,t,n){return qK(function(){return e(),t()},n)}:$Re,TRe=q({},Qm),PRe=TRe.useInsertionEffect,ORe=function(t){var n=[],r=!1;function i(a){r||n.push(a)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),i},IRe=function(){return function(t){t()}},RRe=typeof PRe<"u"?ORe:IRe;function PL(e,t,n,r,i){var a=d.useContext(S0),o=a.cache,s=[e].concat(ct(t)),l=QR(s),c=RRe([l]),u=function(m){o.opUpdate(l,function(g){var v=g||[void 0,void 0],y=Te(v,2),b=y[0],w=b===void 0?0:b,_=y[1],k=_,S=k||n(),C=[w,S];return m?m(C):C})};d.useMemo(function(){u()},[l]);var f=o.opGet(l),p=f[1];return MRe(function(){i==null||i(p)},function(h){return u(function(m){var g=Te(m,2),v=g[0],y=g[1];return h&&v===0&&(i==null||i(p)),[v+1,y]}),function(){o.opUpdate(l,function(m){var g=m||[],v=Te(g,2),y=v[0],b=y===void 0?0:y,w=v[1],_=b-1;return _===0?(c(function(){(h||!o.opGet(l))&&(r==null||r(w,!1))}),null):[b-1,w]})}},[l]),p}var jRe={},NRe="css",om=new Map;function ARe(e){om.set(e,(om.get(e)||0)+1)}function DRe(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(x0,'="').concat(e,'"]'));n.forEach(function(r){if(r[Dp]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var FRe=0;function LRe(e,t){om.set(e,(om.get(e)||0)-1);var n=Array.from(om.keys()),r=n.filter(function(i){var a=om.get(i)||0;return a<=0});n.length-r.length>FRe&&r.forEach(function(i){DRe(i,t),om.delete(i)})}var OL=function(t,n,r,i){var a=r.getDerivativeToken(t),o=q(q({},a),n);return i&&(o=i(o)),o},Kde="token";function IL(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d.useContext(S0),i=r.cache.instanceId,a=r.container,o=n.salt,s=o===void 0?"":o,l=n.override,c=l===void 0?jRe:l,u=n.formatToken,f=n.getComputedToken,p=n.cssVar,h=xRe(function(){return Object.assign.apply(Object,[{}].concat(ct(t)))},t),m=q2(h),g=q2(c),v=p?q2(p):"",y=PL(Kde,[s,e.id,m,g,v],function(){var b,w=f?f(h,c,e):OL(h,c,e,u),_=q({},w),k="";if(p){var S=qde(w,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),C=Te(S,2);w=C[0],k=C[1]}var E=WK(w,s);w._tokenKey=E,_._tokenKey=WK(_,s);var $=(b=p==null?void 0:p.key)!==null&&b!==void 0?b:E;w._themeKey=$,ARe($);var M="".concat(NRe,"-").concat(Kw(E));return w._hashId=M,[w,M,_,k,(p==null?void 0:p.key)||""]},function(b){LRe(b[0]._themeKey,i)},function(b){var w=Te(b,4),_=w[0],k=w[3];if(p&&k){var S=Mv(k,Kw("css-variables-".concat(_._themeKey)),{mark:nu,prepend:"queue",attachTo:a,priority:-999});S[Dp]=i,S.setAttribute(x0,_._themeKey)}});return y}var BRe=function(t,n,r){var i=Te(t,5),a=i[2],o=i[3],s=i[4],l=r||{},c=l.plain;if(!o)return null;var u=a._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},h=Gw(o,s,u,p,c);return[f,u,h]},Gde={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Yde="comm",Xde="rule",Zde="decl",zRe="@import",HRe="@keyframes",URe="@layer",Qde=Math.abs,RL=String.fromCharCode;function Jde(e){return e.trim()}function VC(e,t,n){return e.replace(t,n)}function WRe(e,t,n){return e.indexOf(t,n)}function Yw(e,t){return e.charCodeAt(t)|0}function _0(e,t,n){return e.slice(t,n)}function Hu(e){return e.length}function VRe(e){return e.length}function oS(e,t){return t.push(e),e}var UE=1,k0=1,efe=0,mc=0,Ra=0,wy="";function jL(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:UE,column:k0,length:o,return:"",siblings:s}}function qRe(){return Ra}function KRe(){return Ra=mc>0?Yw(wy,--mc):0,k0--,Ra===10&&(k0=1,UE--),Ra}function ru(){return Ra=mc2||Xw(Ra)>3?"":" "}function ZRe(e,t){for(;--t&&ru()&&!(Ra<48||Ra>102||Ra>57&&Ra<65||Ra>70&&Ra<97););return WE(e,qC()+(t<6&&Fp()==32&&ru()==32))}function ej(e){for(;ru();)switch(Ra){case e:return mc;case 34:case 39:e!==34&&e!==39&&ej(Ra);break;case 40:e===41&&ej(e);break;case 92:ru();break}return mc}function QRe(e,t){for(;ru()&&e+Ra!==57;)if(e+Ra===84&&Fp()===47)break;return"/*"+WE(t,mc-1)+"*"+RL(e===47?e:ru())}function JRe(e){for(;!Xw(Fp());)ru();return WE(e,mc)}function eje(e){return YRe(KC("",null,null,null,[""],e=GRe(e),0,[0],e))}function KC(e,t,n,r,i,a,o,s,l){for(var c=0,u=0,f=o,p=0,h=0,m=0,g=1,v=1,y=1,b=0,w="",_=i,k=a,S=r,C=w;v;)switch(m=b,b=ru()){case 40:if(m!=108&&Yw(C,f-1)==58){WRe(C+=VC(u9(b),"&","&\f"),"&\f",Qde(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:C+=u9(b);break;case 9:case 10:case 13:case 32:C+=XRe(m);break;case 92:C+=ZRe(qC()-1,7);continue;case 47:switch(Fp()){case 42:case 47:oS(tje(QRe(ru(),qC()),t,n,l),l),(Xw(m||1)==5||Xw(Fp()||1)==5)&&Hu(C)&&_0(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*g:s[c++]=Hu(C)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:y==-1&&(C=VC(C,/\f/g,"")),h>0&&(Hu(C)-f||g===0&&m===47)&&oS(h>32?GK(C+";",r,n,f-1,l):GK(VC(C," ","")+";",r,n,f-2,l),l);break;case 59:C+=";";default:if(oS(S=KK(C,t,n,c,u,i,s,w,_=[],k=[],f,a),a),b===123)if(u===0)KC(C,t,S,S,_,a,f,s,k);else switch(p===99&&Yw(C,3)===110?100:p){case 100:case 108:case 109:case 115:KC(e,S,S,r&&oS(KK(e,S,S,0,0,i,s,w,i,_=[],f,k),k),i,k,f,s,r?_:k);break;default:KC(C,S,S,S,[""],k,0,s,k)}}c=u=h=0,g=y=1,w=C="",f=o;break;case 58:f=1+Hu(C),h=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&KRe()==125)continue}switch(C+=RL(b),b*g){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Hu(C)-1)*y,y=1;break;case 64:Fp()===45&&(C+=u9(ru())),p=Fp(),u=f=Hu(w=C+=JRe(qC())),b++;break;case 45:m===45&&Hu(C)==2&&(g=0)}}return a}function KK(e,t,n,r,i,a,o,s,l,c,u,f){for(var p=i-1,h=i===0?a:[""],m=VRe(h),g=0,v=0,y=0;g0?h[b]+" "+w:VC(w,/&\f/g,h[b])))&&(l[y++]=_);return jL(e,t,n,i===0?Xde:s,l,c,u,f)}function tje(e,t,n,r){return jL(e,t,n,Yde,RL(qRe()),_0(e,2,-2),0,r)}function GK(e,t,n,r,i){return jL(e,t,n,Zde,_0(e,0,r),_0(e,r+1,-1),r,i)}function tj(e,t){for(var n="",r=0;r1}function ije(e){return e.parentSelectors.reduce(function(t,n){return t?n.includes("&")?n.replace(/&/g,t):"".concat(t," ").concat(n):n},"")}var aje=function(t,n,r){var i=ije(r),a=i.match(/:not\([^)]*\)/g)||[];a.length>0&&a.some(rje)&&xm("Concat ':not' selector not support in legacy browsers.",r)},oje=function(t,n,r){switch(t){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":xm("You seem to be using non-logical property '".concat(t,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof n=="string"){var i=n.split(" ").map(function(s){return s.trim()});i.length===4&&i[1]!==i[3]&&xm("You seem to be using '".concat(t,"' property with different left ").concat(t," and right ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return;case"clear":case"textAlign":(n==="left"||n==="right")&&xm("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"borderRadius":if(typeof n=="string"){var a=n.split("/").map(function(s){return s.trim()}),o=a.reduce(function(s,l){if(s)return s;var c=l.split(" ").map(function(u){return u.trim()});return c.length>=2&&c[0]!==c[1]||c.length===3&&c[1]!==c[2]||c.length===4&&c[2]!==c[3]?!0:s},!1);o&&xm("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return}},sje=function(t,n,r){(typeof n=="string"&&/NaN/g.test(n)||Number.isNaN(n))&&xm("Unexpected 'NaN' in property '".concat(t,": ").concat(n,"'."),r)},lje=function(t,n,r){r.parentSelectors.some(function(i){var a=i.split(",");return a.some(function(o){return o.split("&").length>2})})&&xm("Should not use more than one `&` in a selector.",r)},G2="data-ant-cssinjs-cache-path",tfe="_FILE_STYLE__";function cje(e){return Object.keys(e).map(function(t){var n=e[t];return"".concat(t,":").concat(n)}).join(";")}var Um,nfe=!0;function uje(){if(!Um&&(Um={},by())){var e=document.createElement("div");e.className=G2,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(i){var a=i.split(":"),o=Te(a,2),s=o[0],l=o[1];Um[s]=l});var n=document.querySelector("style[".concat(G2,"]"));if(n){var r;nfe=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function dje(e){return uje(),!!Um[e]}function fje(e){var t=Um[e],n=null;if(t&&by())if(nfe)n=tfe;else{var r=document.querySelector("style[".concat(nu,'="').concat(Um[e],'"]'));r?n=r.innerHTML:delete Um[e]}return[n,t]}var pje="_skip_check_",rfe="_multi_value_";function GC(e){var t=tj(eje(e),nje);return t.replace(/\{%%%\:[^;];}/g,";")}function hje(e){return Kt(e)==="object"&&e&&(pje in e||rfe in e)}function YK(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(o){var s,l=o.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(i).concat(c.slice(u.length)),[c].concat(ct(l.slice(1))).join(" ")});return a.join(",")}var mje=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,o=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var p="",h={};function m(y){var b=y.getName(s);if(!h[b]){var w=e(y.style,n,{root:!1,parentSelectors:o}),_=Te(w,1),k=_[0];h[b]="@keyframes ".concat(y.getName(s)).concat(k)}}function g(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(w){Array.isArray(w)?g(w,b):w&&b.push(w)}),b}var v=g(Array.isArray(t)?t:[t]);return v.forEach(function(y){var b=typeof y=="string"&&!i?{}:y;if(typeof b=="string")p+="".concat(b,` -`);else if(b._keyframe)m(b);else{var w=f.reduce(function(_,k){var S;return(k==null||(S=k.visit)===null||S===void 0?void 0:S.call(k,_))||_},b);Object.keys(w).forEach(function(_){var k=w[_];if(Kt(k)==="object"&&k&&(_!=="animationName"||!k._keyframe)&&!hje(k)){var S=!1,C=_.trim(),E=!1;(i||a)&&s?C.startsWith("@")?S=!0:C==="&"?C=YK("",s,c):C=YK(_,s,c):i&&!s&&(C==="&"||C==="")&&(C="",E=!0);var $=e(k,n,{root:E,injectHash:S,parentSelectors:[].concat(ct(o),[C])}),M=Te($,2),P=M[0],I=M[1];h=q(q({},h),I),p+="".concat(C).concat(P)}else{let R=function(j,N){var D=j.replace(/[A-Z]/g,function(F){return"-".concat(F.toLowerCase())}),V=N;!Gde[j]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),j==="animationName"&&N!==null&&N!==void 0&&N._keyframe&&(m(N),V=N.getName(s)),p+="".concat(D,":").concat(V,";")};var O,A=(O=k==null?void 0:k.value)!==null&&O!==void 0?O:k;Kt(k)==="object"&&k!==null&&k!==void 0&&k[rfe]&&Array.isArray(A)?A.forEach(function(j){R(_,j)}):R(_,A)}})}}),i?l&&(p="@layer ".concat(l.name," {").concat(p,"}"),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(l.name,";")}).join(` -`))):p="{".concat(p,"}"),[p,h]};function ife(e,t){return Kw("".concat(e.join("%")).concat(t))}function gje(){return null}var afe="style";function Zw(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,o=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(S0),f=u.autoClear;u.mock;var p=u.defaultCache,h=u.hashPriority,m=u.container,g=u.ssrInline,v=u.transformers,y=u.linters,b=u.cache,w=u.layer,_=n._tokenKey,k=[_];w&&k.push("layer"),k.push.apply(k,ct(r));var S=JR,C=PL(afe,k,function(){var I=k.join("|");if(dje(I)){var O=fje(I),A=Te(O,2),R=A[0],j=A[1];if(R)return[R,_,j,{},s,c]}var N=t(),D=mje(N,{hashId:i,hashPriority:h,layer:w?a:void 0,path:r.join("-"),transformers:v,linters:y}),V=Te(D,2),F=V[0],K=V[1],B=GC(F),U=ife(k,B);return[B,_,U,K,s,c]},function(I,O){var A=Te(I,3),R=A[2];(O||f)&&JR&&EL(R,{mark:nu})},function(I){var O=Te(I,4),A=O[0];O[1];var R=O[2],j=O[3];if(S&&A!==tfe){var N={mark:nu,prepend:w?!1:"queue",attachTo:m,priority:c},D=typeof o=="function"?o():o;D&&(N.csp={nonce:D});var V=[],F=[];Object.keys(j).forEach(function(B){B.startsWith("@layer")?V.push(B):F.push(B)}),V.forEach(function(B){Mv(GC(j[B]),"_layer-".concat(B),q(q({},N),{},{prepend:!0}))});var K=Mv(A,R,N);K[Dp]=b.instanceId,K.setAttribute(x0,_),F.forEach(function(B){Mv(GC(j[B]),"_effect-".concat(B),N)})}}),E=Te(C,3),$=E[0],M=E[1],P=E[2];return function(I){var O;if(!g||S||!p)O=d.createElement(gje,null);else{var A;O=d.createElement("style",tt({},(A={},ne(A,x0,M),ne(A,nu,P),A),{dangerouslySetInnerHTML:{__html:$}}))}return d.createElement(d.Fragment,null,O,I)}}var vje=function(t,n,r){var i=Te(t,6),a=i[0],o=i[1],s=i[2],l=i[3],c=i[4],u=i[5],f=r||{},p=f.plain;if(c)return null;var h=a,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return h=Gw(a,o,s,m,p),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var v=GC(l[g]),y=Gw(v,o,"_effect-".concat(g),m,p);g.startsWith("@layer")?h=y+h:h+=y}}),[u,s,h]},ofe="cssVar",sfe=function(t,n){var r=t.key,i=t.prefix,a=t.unitless,o=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=d.useContext(S0),f=u.cache.instanceId,p=u.container,h=s._tokenKey,m=[].concat(ct(t.path),[r,c,h]),g=PL(ofe,m,function(){var v=n(),y=qde(v,r,{prefix:i,unitless:a,ignore:o,scope:c}),b=Te(y,2),w=b[0],_=b[1],k=ife(m,_);return[w,_,k,r]},function(v){var y=Te(v,3),b=y[2];JR&&EL(b,{mark:nu})},function(v){var y=Te(v,3),b=y[1],w=y[2];if(b){var _=Mv(b,w,{mark:nu,prepend:"queue",attachTo:p,priority:-999});_[Dp]=f,_.setAttribute(x0,r)}});return g},yje=function(t,n,r){var i=Te(t,4),a=i[1],o=i[2],s=i[3],l=r||{},c=l.plain;if(!a)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},p=Gw(a,s,o,f,c);return[u,o,p]},Tb,bje=(Tb={},ne(Tb,afe,vje),ne(Tb,Kde,BRe),ne(Tb,ofe,yje),Tb);function wje(e){return e!==null}function xje(e,t){var n=typeof t=="boolean"?{plain:t}:t||{},r=n.plain,i=r===void 0?!1:r,a=n.types,o=a===void 0?["style","token","cssVar"]:a,s=new RegExp("^(".concat((typeof o=="string"?[o]:o).join("|"),")%")),l=Array.from(e.cache.keys()).filter(function(p){return s.test(p)}),c={},u={},f="";return l.map(function(p){var h=p.replace(s,"").replace(/%/g,"|"),m=p.split("%"),g=Te(m,1),v=g[0],y=bje[v],b=y(e.cache.get(p)[1],c,{plain:i});if(!b)return null;var w=Te(b,3),_=w[0],k=w[1],S=w[2];return p.startsWith("style")&&(u[h]=k),[_,S]}).filter(wje).sort(function(p,h){var m=Te(p,1),g=m[0],v=Te(h,1),y=v[0];return g-y}).forEach(function(p){var h=Te(p,2),m=h[1];f+=m}),f+=Gw(".".concat(G2,'{content:"').concat(cje(u),'";}'),void 0,void 0,ne({},G2,G2),i),f}var ir=function(){function e(t,n){Dr(this,e),ne(this,"name",void 0),ne(this,"style",void 0),ne(this,"_keyframe",!0),this.name=t,this.style=n}return Fr(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Sje(e){if(typeof e=="number")return[[e],!1];var t=String(e).trim(),n=t.match(/(.*)(!important)/),r=(n?n[1]:t).trim().split(/\s+/),i=[],a=0;return[r.reduce(function(o,s){if(s.includes("(")||s.includes(")")){var l=s.split("(").length-1,c=s.split(")").length-1;a+=l-c}return a>=0&&i.push(s),a===0&&(o.push(i.join(" ")),i=[]),o},[]),!!n]}function E1(e){return e.notSplit=!0,e}var Cje={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:E1(["borderTop","borderBottom"]),borderBlockStart:E1(["borderTop"]),borderBlockEnd:E1(["borderBottom"]),borderInline:E1(["borderLeft","borderRight"]),borderInlineStart:E1(["borderLeft"]),borderInlineEnd:E1(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function sS(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var _je={visit:function(t){var n={};return Object.keys(t).forEach(function(r){var i=t[r],a=Cje[r];if(a&&(typeof i=="number"||typeof i=="string")){var o=Sje(i),s=Te(o,2),l=s[0],c=s[1];a.length&&a.notSplit?a.forEach(function(u){n[u]=sS(i,c)}):a.length===1?n[a[0]]=sS(l[0],c):a.length===2?a.forEach(function(u,f){var p;n[u]=sS((p=l[f])!==null&&p!==void 0?p:l[0],c)}):a.length===4?a.forEach(function(u,f){var p,h;n[u]=sS((p=(h=l[f])!==null&&h!==void 0?h:l[f-2])!==null&&p!==void 0?p:l[0],c)}):n[r]=i}else n[r]=i}),n}},d9=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function kje(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}var Eje=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.rootValue,r=n===void 0?16:n,i=t.precision,a=i===void 0?5:i,o=t.mediaQuery,s=o===void 0?!1:o,l=function(f,p){if(!p)return f;var h=parseFloat(p);if(h<=1)return f;var m=kje(h/r,a);return"".concat(m,"rem")},c=function(f){var p=q({},f);return Object.entries(f).forEach(function(h){var m=Te(h,2),g=m[0],v=m[1];if(typeof v=="string"&&v.includes("px")){var y=v.replace(d9,l);p[g]=y}!Gde[g]&&typeof v=="number"&&v!==0&&(p[g]="".concat(v,"px").replace(d9,l));var b=g.trim();if(b.startsWith("@")&&b.includes("px")&&s){var w=g.replace(d9,l);p[w]=p[g],delete p[g]}}),p};return{visit:c}},$je={supportModernCSS:function(){return SRe()&&CRe()}};const Mje=Object.freeze(Object.defineProperty({__proto__:null,Keyframes:ir,NaNLinter:sje,StyleProvider:hRe,Theme:TL,_experimental:$je,createCache:$L,createTheme:fg,extractStyle:xje,genCalc:yRe,getComputedToken:OL,legacyLogicalPropertiesTransformer:_je,legacyNotSelectorLinter:aje,logicalPropertiesLinter:oje,parentSelectorLinter:lje,px2remTransformer:Eje,token2CSSVar:K2,unit:Me,useCSSVarRegister:sfe,useCacheToken:IL,useStyleRegister:Zw},Symbol.toStringTag,{value:"Module"}));var VE=d.createContext({});function NL(e){return Nde(e)||Ode(e)||zE(e)||Ade()}function Ds(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ds(e,t.slice(0,-1))?e:lfe(e,t,n,r)}function Tje(e){return Kt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function XK(e){return Array.isArray(e)?[]:{}}var Pje=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function hv(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=Oje,e},cfe=d.createContext(void 0);var ufe={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},dfe={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Rje=q(q({},dfe),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const ffe={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},zk={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Rje),timePickerLocale:Object.assign({},ffe)},rl="${label} is not a valid ${type}",Us={locale:"en",Pagination:ufe,DatePicker:zk,TimePicker:ffe,Calendar:zk,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:rl,method:rl,array:rl,object:rl,number:rl,date:rl,boolean:rl,integer:rl,float:rl,regexp:rl,email:rl,url:rl,hex:rl},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let YC=Object.assign({},Us.Modal),XC=[];const ZK=()=>XC.reduce((e,t)=>Object.assign(Object.assign({},e),t),Us.Modal);function jje(e){if(e){const t=Object.assign({},e);return XC.push(t),YC=ZK(),()=>{XC=XC.filter(n=>n!==t),YC=ZK()}}YC=Object.assign({},Us.Modal)}function pfe(){return YC}const AL=d.createContext(void 0),Xa=(e,t)=>{const n=d.useContext(AL),r=d.useMemo(()=>{var a;const o=t||Us[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),i=d.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Us.locale:a},[n]);return[r,i]},Nje="internalMark",Aje=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>jje(t==null?void 0:t.Modal),[t]);const i=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(AL.Provider,{value:i},n)},Qa=Math.round;function f9(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const QK=(e,t,n)=>n===0?e:e/100;function Pb(e,t){const n=t||255;return e>n?n:e<0?0:e}class dr{constructor(t){ne(this,"isValid",!0),ne(this,"r",0),ne(this,"g",0),ne(this,"b",0),ne(this,"a",1),ne(this,"_h",void 0),ne(this,"_s",void 0),ne(this,"_l",void 0),ne(this,"_v",void 0),ne(this,"_max",void 0),ne(this,"_min",void 0),ne(this,"_brightness",void 0);function n(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let a=function(o){return i.startsWith(o)};var r=a;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):a("rgb")?this.fromRgbString(i):a("hsl")?this.fromHslString(i):(a("hsv")||a("hsb"))&&this.fromHsvString(i)}else if(t instanceof dr)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Pb(t.r),this.g=Pb(t.g),this.b=Pb(t.b),this.a=typeof t.a=="number"?Pb(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Qa(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,a=s=>(r[s]-this[s])*i+this[s],o={r:Qa(a("r")),g:Qa(a("g")),b:Qa(a("b")),a:Qa(a("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=a=>Qa((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=Qa(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Qa(this.getSaturation()*100),r=Qa(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Pb(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const p=Qa(r*255);this.r=p,this.g=p,this.b=p}let a=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,o=u):l>=1&&l<2?(a=u,o=c):l>=2&&l<3?(o=c,s=u):l>=3&&l<4?(o=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const f=r-c/2;this.r=Qa((a+f)*255),this.g=Qa((o+f)*255),this.b=Qa((s+f)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=Qa(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=Qa(r*(1-n)*255),u=Qa(r*(1-n*l)*255),f=Qa(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=f9(t,QK);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=f9(t,QK);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=f9(t,(r,i)=>i.includes("%")?Qa(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const Dje=Object.freeze(Object.defineProperty({__proto__:null,FastColor:dr},Symbol.toStringTag,{value:"Module"}));var lS=2,JK=.16,Fje=.05,Lje=.05,Bje=.15,hfe=5,mfe=4,zje=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function eG(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-lS*t:Math.round(e.h)+lS*t:r=n?Math.round(e.h)+lS*t:Math.round(e.h)-lS*t,r<0?r+=360:r>=360&&(r-=360),r}function tG(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-JK*t:t===mfe?r=e.s+JK:r=e.s+Fje*t,r>1&&(r=1),n&&t===hfe&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function nG(e,t,n){var r;return n?r=e.v+Lje*t:r=e.v-Bje*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function ch(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new dr(e),i=r.toHsv(),a=hfe;a>0;a-=1){var o=new dr({h:eG(i,a,!0),s:tG(i,a,!0),v:nG(i,a,!0)});n.push(o)}n.push(r);for(var s=1;s<=mfe;s+=1){var l=new dr({h:eG(i,s),s:tG(i,s),v:nG(i,s)});n.push(l)}return t.theme==="dark"?zje.map(function(c){var u=c.index,f=c.amount;return new dr(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var Wm={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Hk=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Hk.primary=Hk[5];var Uk=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Uk.primary=Uk[5];var Wk=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Wk.primary=Wk[5];var Qw=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Qw.primary=Qw[5];var Vk=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Vk.primary=Vk[5];var qk=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];qk.primary=qk[5];var Kk=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Kk.primary=Kk[5];var Gk=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Gk.primary=Gk[5];var pg=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];pg.primary=pg[5];var Yk=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Yk.primary=Yk[5];var Xk=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Xk.primary=Xk[5];var Zk=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Zk.primary=Zk[5];var Jw=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Jw.primary=Jw[5];var Hje=Jw,ZC={red:Hk,volcano:Uk,orange:Wk,gold:Qw,yellow:Vk,lime:qk,green:Kk,cyan:Gk,blue:pg,geekblue:Yk,purple:Xk,magenta:Zk,grey:Jw},Qk=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Qk.primary=Qk[5];var Jk=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Jk.primary=Jk[5];var e6=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];e6.primary=e6[5];var t6=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];t6.primary=t6[5];var n6=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];n6.primary=n6[5];var r6=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];r6.primary=r6[5];var i6=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];i6.primary=i6[5];var a6=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];a6.primary=a6[5];var o6=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];o6.primary=o6[5];var s6=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];s6.primary=s6[5];var l6=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];l6.primary=l6[5];var c6=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];c6.primary=c6[5];var u6=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];u6.primary=u6[5];var Uje={red:Qk,volcano:Jk,orange:e6,gold:t6,yellow:n6,lime:r6,green:i6,cyan:a6,blue:o6,geekblue:s6,purple:l6,magenta:c6,grey:u6};const Wje=Object.freeze(Object.defineProperty({__proto__:null,blue:pg,blueDark:o6,cyan:Gk,cyanDark:a6,geekblue:Yk,geekblueDark:s6,generate:ch,gold:Qw,goldDark:t6,gray:Hje,green:Kk,greenDark:i6,grey:Jw,greyDark:u6,lime:qk,limeDark:r6,magenta:Zk,magentaDark:c6,orange:Wk,orangeDark:e6,presetDarkPalettes:Uje,presetPalettes:ZC,presetPrimaryColors:Wm,purple:Xk,purpleDark:l6,red:Hk,redDark:Qk,volcano:Uk,volcanoDark:Jk,yellow:Vk,yellowDark:n6},Symbol.toStringTag,{value:"Module"})),DL={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},E0=Object.assign(Object.assign({},DL),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + */var SL=Symbol.for("react.element"),CL=Symbol.for("react.portal"),PE=Symbol.for("react.fragment"),OE=Symbol.for("react.strict_mode"),RE=Symbol.for("react.profiler"),IE=Symbol.for("react.provider"),jE=Symbol.for("react.context"),ERe=Symbol.for("react.server_context"),NE=Symbol.for("react.forward_ref"),AE=Symbol.for("react.suspense"),DE=Symbol.for("react.suspense_list"),FE=Symbol.for("react.memo"),LE=Symbol.for("react.lazy"),$Re=Symbol.for("react.offscreen"),Ede;Ede=Symbol.for("react.module.reference");function Ec(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case SL:switch(e=e.type,e){case PE:case RE:case OE:case AE:case DE:return e;default:switch(e=e&&e.$$typeof,e){case ERe:case jE:case NE:case LE:case FE:case IE:return e;default:return t}}case CL:return t}}}di.ContextConsumer=jE;di.ContextProvider=IE;di.Element=SL;di.ForwardRef=NE;di.Fragment=PE;di.Lazy=LE;di.Memo=FE;di.Portal=CL;di.Profiler=RE;di.StrictMode=OE;di.Suspense=AE;di.SuspenseList=DE;di.isAsyncMode=function(){return!1};di.isConcurrentMode=function(){return!1};di.isContextConsumer=function(e){return Ec(e)===jE};di.isContextProvider=function(e){return Ec(e)===IE};di.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===SL};di.isForwardRef=function(e){return Ec(e)===NE};di.isFragment=function(e){return Ec(e)===PE};di.isLazy=function(e){return Ec(e)===LE};di.isMemo=function(e){return Ec(e)===FE};di.isPortal=function(e){return Ec(e)===CL};di.isProfiler=function(e){return Ec(e)===RE};di.isStrictMode=function(e){return Ec(e)===OE};di.isSuspense=function(e){return Ec(e)===AE};di.isSuspenseList=function(e){return Ec(e)===DE};di.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===PE||e===RE||e===OE||e===AE||e===DE||e===$Re||typeof e=="object"&&e!==null&&(e.$$typeof===LE||e.$$typeof===FE||e.$$typeof===IE||e.$$typeof===jE||e.$$typeof===NE||e.$$typeof===Ede||e.getModuleId!==void 0)};di.typeOf=Ec;kde.exports=di;var nh=kde.exports;function dg(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var _L=function(t,n){typeof t=="function"?t(n):Kt(t)==="object"&&t&&"current"in t&&(t.current=n)},ga=function(){for(var t=arguments.length,n=new Array(t),r=0;r0},e.prototype.connect_=function(){!ZI||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),NRe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ZI||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=jRe.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Mde=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof C0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new WRe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof C0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new VRe(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Pde=typeof WeakMap<"u"?new WeakMap:new $de,Ode=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ARe.getInstance(),r=new qRe(t,n,this);Pde.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Ode.prototype[e]=function(){var t;return(t=Pde.get(this))[e].apply(t,arguments)}});var Rde=function(){return typeof Lk.ResizeObserver<"u"?Lk.ResizeObserver:Ode}(),Dp=new Map;function KRe(e){e.forEach(function(t){var n,r=t.target;(n=Dp.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var Ide=new Rde(KRe);function GRe(e,t){Dp.has(e)||(Dp.set(e,new Set),Ide.observe(e)),Dp.get(e).add(t)}function YRe(e,t){Dp.has(e)&&(Dp.get(e).delete(t),Dp.get(e).size||(Ide.unobserve(e),Dp.delete(e)))}function Ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BK(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;zK+=1;var r=zK;function i(a){if(a===0)Fde(r),t();else{var o=Ade(function(){i(a-1)});EL.set(r,o)}}return i(n),r};rr.cancel=function(e){var t=EL.get(e);return Fde(e),Dde(t)};function Lde(e){if(Array.isArray(e))return e}function rIe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Bde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Te(e,t){return Lde(e)||rIe(e,t)||HE(e,t)||Bde()}function Gw(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function wy(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function iIe(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var HK="data-rc-order",UK="data-rc-priority",aIe="rc-util-key",JI=new Map;function zde(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):aIe}function UE(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function oIe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function $L(e){return Array.from((JI.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Hde(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!wy())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=oIe(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(HK,o),s&&a&&l.setAttribute(UK,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=UE(t),u=c.firstChild;if(r){if(s){var f=(t.styles||$L(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(HK)))return!1;var h=Number(p.getAttribute(UK)||0);return a>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Ude(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=UE(t);return(t.styles||$L(n)).find(function(r){return r.getAttribute(zde(t))===e})}function ML(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ude(e,t);if(n){var r=UE(t);r.removeChild(n)}}function sIe(e,t){var n=JI.get(e);if(!n||!iIe(document,n)){var r=Hde("",t),i=r.parentNode;JI.set(e,i),e.removeChild(r)}}function Ov(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=UE(n),i=$L(r),a=q(q({},n),{},{styles:i});sIe(r,a);var o=Ude(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=Hde(e,a);return u.setAttribute(zde(a),t),u}function lIe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Ht(e,t){if(e==null)return{};var n,r,i=lIe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(m4(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return n.forEach(function(s){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=o)!==null&&r!==void 0&&r.value&&a&&(o.value[1]=this.cacheCallTimes++),(i=o)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var f=Te(c,2),p=f[1];return i.internalGet(u)[1]0,void 0),VK+=1}return Dr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),c9=new PL;function pg(e){var t=Array.isArray(e)?e:[e];return c9.has(t)||c9.set(t,new OL(t)),c9.get(t)}var SIe=new WeakMap,u9={};function CIe(e,t){for(var n=SIe,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=q(q({},i),{},(r={},ne(r,_0,t),ne(r,ou,n),r)),s=Object.keys(o).map(function(l){var c=o[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"")}var K2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},EIe=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var a=Te(i,2),o=a[0],s=a[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},Xde=function(t,n,r){var i={},a={};return Object.entries(t).forEach(function(o){var s,l,c=Te(o,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])a[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var p,h=K2(u,r==null?void 0:r.prefix);i[h]=typeof f=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[u])?"".concat(f,"px"):String(f),a[u]="var(".concat(h,")")}}),[a,EIe(i,n,{scope:r==null?void 0:r.scope})]},GK=wy()?d.useLayoutEffect:d.useEffect,$Ie=function(t,n){var r=d.useRef(!0);GK(function(){return t(r.current)},n),GK(function(){return r.current=!1,function(){r.current=!0}},[])},MIe=q({},Jm),YK=MIe.useInsertionEffect,TIe=function(t,n,r){d.useMemo(t,r),$Ie(function(){return n(!0)},r)},PIe=YK?function(e,t,n){return YK(function(){return e(),t()},n)}:TIe,OIe=q({},Jm),RIe=OIe.useInsertionEffect,IIe=function(t){var n=[],r=!1;function i(a){r||n.push(a)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),i},jIe=function(){return function(t){t()}},NIe=typeof RIe<"u"?IIe:jIe;function RL(e,t,n,r,i){var a=d.useContext(k0),o=a.cache,s=[e].concat(lt(t)),l=tj(s),c=NIe([l]),u=function(m){o.opUpdate(l,function(g){var v=g||[void 0,void 0],y=Te(v,2),w=y[0],b=w===void 0?0:w,C=y[1],k=C,S=k||n(),_=[b,S];return m?m(_):_})};d.useMemo(function(){u()},[l]);var f=o.opGet(l),p=f[1];return PIe(function(){i==null||i(p)},function(h){return u(function(m){var g=Te(m,2),v=g[0],y=g[1];return h&&v===0&&(i==null||i(p)),[v+1,y]}),function(){o.opUpdate(l,function(m){var g=m||[],v=Te(g,2),y=v[0],w=y===void 0?0:y,b=v[1],C=w-1;return C===0?(c(function(){(h||!o.opGet(l))&&(r==null||r(b,!1))}),null):[w-1,b]})}},[l]),p}var AIe={},DIe="css",sm=new Map;function FIe(e){sm.set(e,(sm.get(e)||0)+1)}function LIe(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(_0,'="').concat(e,'"]'));n.forEach(function(r){if(r[Fp]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var BIe=0;function zIe(e,t){sm.set(e,(sm.get(e)||0)-1);var n=Array.from(sm.keys()),r=n.filter(function(i){var a=sm.get(i)||0;return a<=0});n.length-r.length>BIe&&r.forEach(function(i){LIe(i,t),sm.delete(i)})}var IL=function(t,n,r,i){var a=r.getDerivativeToken(t),o=q(q({},a),n);return i&&(o=i(o)),o},Zde="token";function jL(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d.useContext(k0),i=r.cache.instanceId,a=r.container,o=n.salt,s=o===void 0?"":o,l=n.override,c=l===void 0?AIe:l,u=n.formatToken,f=n.getComputedToken,p=n.cssVar,h=CIe(function(){return Object.assign.apply(Object,[{}].concat(lt(t)))},t),m=q2(h),g=q2(c),v=p?q2(p):"",y=RL(Zde,[s,e.id,m,g,v],function(){var w,b=f?f(h,c,e):IL(h,c,e,u),C=q({},b),k="";if(p){var S=Xde(b,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),_=Te(S,2);b=_[0],k=_[1]}var E=KK(b,s);b._tokenKey=E,C._tokenKey=KK(C,s);var $=(w=p==null?void 0:p.key)!==null&&w!==void 0?w:E;b._themeKey=$,FIe($);var M="".concat(DIe,"-").concat(Gw(E));return b._hashId=M,[b,M,C,k,(p==null?void 0:p.key)||""]},function(w){zIe(w[0]._themeKey,i)},function(w){var b=Te(w,4),C=b[0],k=b[3];if(p&&k){var S=Ov(k,Gw("css-variables-".concat(C._themeKey)),{mark:ou,prepend:"queue",attachTo:a,priority:-999});S[Fp]=i,S.setAttribute(_0,C._themeKey)}});return y}var HIe=function(t,n,r){var i=Te(t,5),a=i[2],o=i[3],s=i[4],l=r||{},c=l.plain;if(!o)return null;var u=a._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},h=Yw(o,s,u,p,c);return[f,u,h]},Qde={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Jde="comm",efe="rule",tfe="decl",UIe="@import",WIe="@keyframes",VIe="@layer",nfe=Math.abs,NL=String.fromCharCode;function rfe(e){return e.trim()}function KC(e,t,n){return e.replace(t,n)}function qIe(e,t,n){return e.indexOf(t,n)}function Xw(e,t){return e.charCodeAt(t)|0}function $0(e,t,n){return e.slice(t,n)}function Vu(e){return e.length}function KIe(e){return e.length}function lS(e,t){return t.push(e),e}var WE=1,M0=1,ife=0,vc=0,Oa=0,xy="";function AL(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:WE,column:M0,length:o,return:"",siblings:s}}function GIe(){return Oa}function YIe(){return Oa=vc>0?Xw(xy,--vc):0,M0--,Oa===10&&(M0=1,WE--),Oa}function su(){return Oa=vc2||Zw(Oa)>3?"":" "}function JIe(e,t){for(;--t&&su()&&!(Oa<48||Oa>102||Oa>57&&Oa<65||Oa>70&&Oa<97););return VE(e,GC()+(t<6&&Lp()==32&&su()==32))}function rj(e){for(;su();)switch(Oa){case e:return vc;case 34:case 39:e!==34&&e!==39&&rj(Oa);break;case 40:e===41&&rj(e);break;case 92:su();break}return vc}function eje(e,t){for(;su()&&e+Oa!==57;)if(e+Oa===84&&Lp()===47)break;return"/*"+VE(t,vc-1)+"*"+NL(e===47?e:su())}function tje(e){for(;!Zw(Lp());)su();return VE(e,vc)}function nje(e){return ZIe(YC("",null,null,null,[""],e=XIe(e),0,[0],e))}function YC(e,t,n,r,i,a,o,s,l){for(var c=0,u=0,f=o,p=0,h=0,m=0,g=1,v=1,y=1,w=0,b="",C=i,k=a,S=r,_=b;v;)switch(m=w,w=su()){case 40:if(m!=108&&Xw(_,f-1)==58){qIe(_+=KC(p9(w),"&","&\f"),"&\f",nfe(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:_+=p9(w);break;case 9:case 10:case 13:case 32:_+=QIe(m);break;case 92:_+=JIe(GC()-1,7);continue;case 47:switch(Lp()){case 42:case 47:lS(rje(eje(su(),GC()),t,n,l),l),(Zw(m||1)==5||Zw(Lp()||1)==5)&&Vu(_)&&$0(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*g:s[c++]=Vu(_)*y;case 125*g:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+u:y==-1&&(_=KC(_,/\f/g,"")),h>0&&(Vu(_)-f||g===0&&m===47)&&lS(h>32?ZK(_+";",r,n,f-1,l):ZK(KC(_," ","")+";",r,n,f-2,l),l);break;case 59:_+=";";default:if(lS(S=XK(_,t,n,c,u,i,s,b,C=[],k=[],f,a),a),w===123)if(u===0)YC(_,t,S,S,C,a,f,s,k);else switch(p===99&&Xw(_,3)===110?100:p){case 100:case 108:case 109:case 115:YC(e,S,S,r&&lS(XK(e,S,S,0,0,i,s,b,i,C=[],f,k),k),i,k,f,s,r?C:k);break;default:YC(_,S,S,S,[""],k,0,s,k)}}c=u=h=0,g=y=1,b=_="",f=o;break;case 58:f=1+Vu(_),h=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&YIe()==125)continue}switch(_+=NL(w),w*g){case 38:y=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Vu(_)-1)*y,y=1;break;case 64:Lp()===45&&(_+=p9(su())),p=Lp(),u=f=Vu(b=_+=tje(GC())),w++;break;case 45:m===45&&Vu(_)==2&&(g=0)}}return a}function XK(e,t,n,r,i,a,o,s,l,c,u,f){for(var p=i-1,h=i===0?a:[""],m=KIe(h),g=0,v=0,y=0;g0?h[w]+" "+b:KC(b,/&\f/g,h[w])))&&(l[y++]=C);return AL(e,t,n,i===0?efe:s,l,c,u,f)}function rje(e,t,n,r){return AL(e,t,n,Jde,NL(GIe()),$0(e,2,-2),0,r)}function ZK(e,t,n,r,i){return AL(e,t,n,tfe,$0(e,0,r),$0(e,r+1,-1),r,i)}function ij(e,t){for(var n="",r=0;r1}function oje(e){return e.parentSelectors.reduce(function(t,n){return t?n.includes("&")?n.replace(/&/g,t):"".concat(t," ").concat(n):n},"")}var sje=function(t,n,r){var i=oje(r),a=i.match(/:not\([^)]*\)/g)||[];a.length>0&&a.some(aje)&&Sm("Concat ':not' selector not support in legacy browsers.",r)},lje=function(t,n,r){switch(t){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":Sm("You seem to be using non-logical property '".concat(t,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof n=="string"){var i=n.split(" ").map(function(s){return s.trim()});i.length===4&&i[1]!==i[3]&&Sm("You seem to be using '".concat(t,"' property with different left ").concat(t," and right ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return;case"clear":case"textAlign":(n==="left"||n==="right")&&Sm("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"borderRadius":if(typeof n=="string"){var a=n.split("/").map(function(s){return s.trim()}),o=a.reduce(function(s,l){if(s)return s;var c=l.split(" ").map(function(u){return u.trim()});return c.length>=2&&c[0]!==c[1]||c.length===3&&c[1]!==c[2]||c.length===4&&c[2]!==c[3]?!0:s},!1);o&&Sm("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return}},cje=function(t,n,r){(typeof n=="string"&&/NaN/g.test(n)||Number.isNaN(n))&&Sm("Unexpected 'NaN' in property '".concat(t,": ").concat(n,"'."),r)},uje=function(t,n,r){r.parentSelectors.some(function(i){var a=i.split(",");return a.some(function(o){return o.split("&").length>2})})&&Sm("Should not use more than one `&` in a selector.",r)},G2="data-ant-cssinjs-cache-path",afe="_FILE_STYLE__";function dje(e){return Object.keys(e).map(function(t){var n=e[t];return"".concat(t,":").concat(n)}).join(";")}var Wm,ofe=!0;function fje(){if(!Wm&&(Wm={},wy())){var e=document.createElement("div");e.className=G2,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(i){var a=i.split(":"),o=Te(a,2),s=o[0],l=o[1];Wm[s]=l});var n=document.querySelector("style[".concat(G2,"]"));if(n){var r;ofe=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function pje(e){return fje(),!!Wm[e]}function hje(e){var t=Wm[e],n=null;if(t&&wy())if(ofe)n=afe;else{var r=document.querySelector("style[".concat(ou,'="').concat(Wm[e],'"]'));r?n=r.innerHTML:delete Wm[e]}return[n,t]}var mje="_skip_check_",sfe="_multi_value_";function XC(e){var t=ij(nje(e),ije);return t.replace(/\{%%%\:[^;];}/g,";")}function gje(e){return Kt(e)==="object"&&e&&(mje in e||sfe in e)}function QK(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(o){var s,l=o.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(i).concat(c.slice(u.length)),[c].concat(lt(l.slice(1))).join(" ")});return a.join(",")}var vje=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,o=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var p="",h={};function m(y){var w=y.getName(s);if(!h[w]){var b=e(y.style,n,{root:!1,parentSelectors:o}),C=Te(b,1),k=C[0];h[w]="@keyframes ".concat(y.getName(s)).concat(k)}}function g(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(b){Array.isArray(b)?g(b,w):b&&w.push(b)}),w}var v=g(Array.isArray(t)?t:[t]);return v.forEach(function(y){var w=typeof y=="string"&&!i?{}:y;if(typeof w=="string")p+="".concat(w,` +`);else if(w._keyframe)m(w);else{var b=f.reduce(function(C,k){var S;return(k==null||(S=k.visit)===null||S===void 0?void 0:S.call(k,C))||C},w);Object.keys(b).forEach(function(C){var k=b[C];if(Kt(k)==="object"&&k&&(C!=="animationName"||!k._keyframe)&&!gje(k)){var S=!1,_=C.trim(),E=!1;(i||a)&&s?_.startsWith("@")?S=!0:_==="&"?_=QK("",s,c):_=QK(C,s,c):i&&!s&&(_==="&"||_==="")&&(_="",E=!0);var $=e(k,n,{root:E,injectHash:S,parentSelectors:[].concat(lt(o),[_])}),M=Te($,2),P=M[0],R=M[1];h=q(q({},h),R),p+="".concat(_).concat(P)}else{let I=function(A,N){var F=A.replace(/[A-Z]/g,function(L){return"-".concat(L.toLowerCase())}),K=N;!Qde[A]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),A==="animationName"&&N!==null&&N!==void 0&&N._keyframe&&(m(N),K=N.getName(s)),p+="".concat(F,":").concat(K,";")};var O,j=(O=k==null?void 0:k.value)!==null&&O!==void 0?O:k;Kt(k)==="object"&&k!==null&&k!==void 0&&k[sfe]&&Array.isArray(j)?j.forEach(function(A){I(C,A)}):I(C,j)}})}}),i?l&&(p="@layer ".concat(l.name," {").concat(p,"}"),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(l.name,";")}).join(` +`))):p="{".concat(p,"}"),[p,h]};function lfe(e,t){return Gw("".concat(e.join("%")).concat(t))}function yje(){return null}var cfe="style";function Qw(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,o=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(k0),f=u.autoClear;u.mock;var p=u.defaultCache,h=u.hashPriority,m=u.container,g=u.ssrInline,v=u.transformers,y=u.linters,w=u.cache,b=u.layer,C=n._tokenKey,k=[C];b&&k.push("layer"),k.push.apply(k,lt(r));var S=nj,_=RL(cfe,k,function(){var R=k.join("|");if(pje(R)){var O=hje(R),j=Te(O,2),I=j[0],A=j[1];if(I)return[I,C,A,{},s,c]}var N=t(),F=vje(N,{hashId:i,hashPriority:h,layer:b?a:void 0,path:r.join("-"),transformers:v,linters:y}),K=Te(F,2),L=K[0],V=K[1],B=XC(L),U=lfe(k,B);return[B,C,U,V,s,c]},function(R,O){var j=Te(R,3),I=j[2];(O||f)&&nj&&ML(I,{mark:ou})},function(R){var O=Te(R,4),j=O[0];O[1];var I=O[2],A=O[3];if(S&&j!==afe){var N={mark:ou,prepend:b?!1:"queue",attachTo:m,priority:c},F=typeof o=="function"?o():o;F&&(N.csp={nonce:F});var K=[],L=[];Object.keys(A).forEach(function(B){B.startsWith("@layer")?K.push(B):L.push(B)}),K.forEach(function(B){Ov(XC(A[B]),"_layer-".concat(B),q(q({},N),{},{prepend:!0}))});var V=Ov(j,I,N);V[Fp]=w.instanceId,V.setAttribute(_0,C),L.forEach(function(B){Ov(XC(A[B]),"_effect-".concat(B),N)})}}),E=Te(_,3),$=E[0],M=E[1],P=E[2];return function(R){var O;if(!g||S||!p)O=d.createElement(yje,null);else{var j;O=d.createElement("style",tt({},(j={},ne(j,_0,M),ne(j,ou,P),j),{dangerouslySetInnerHTML:{__html:$}}))}return d.createElement(d.Fragment,null,O,R)}}var bje=function(t,n,r){var i=Te(t,6),a=i[0],o=i[1],s=i[2],l=i[3],c=i[4],u=i[5],f=r||{},p=f.plain;if(c)return null;var h=a,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return h=Yw(a,o,s,m,p),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var v=XC(l[g]),y=Yw(v,o,"_effect-".concat(g),m,p);g.startsWith("@layer")?h=y+h:h+=y}}),[u,s,h]},ufe="cssVar",dfe=function(t,n){var r=t.key,i=t.prefix,a=t.unitless,o=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=d.useContext(k0),f=u.cache.instanceId,p=u.container,h=s._tokenKey,m=[].concat(lt(t.path),[r,c,h]),g=RL(ufe,m,function(){var v=n(),y=Xde(v,r,{prefix:i,unitless:a,ignore:o,scope:c}),w=Te(y,2),b=w[0],C=w[1],k=lfe(m,C);return[b,C,k,r]},function(v){var y=Te(v,3),w=y[2];nj&&ML(w,{mark:ou})},function(v){var y=Te(v,3),w=y[1],b=y[2];if(w){var C=Ov(w,b,{mark:ou,prepend:"queue",attachTo:p,priority:-999});C[Fp]=f,C.setAttribute(_0,r)}});return g},wje=function(t,n,r){var i=Te(t,4),a=i[1],o=i[2],s=i[3],l=r||{},c=l.plain;if(!a)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},p=Yw(a,s,o,f,c);return[u,o,p]},Pb,xje=(Pb={},ne(Pb,cfe,bje),ne(Pb,Zde,HIe),ne(Pb,ufe,wje),Pb);function Sje(e){return e!==null}function Cje(e,t){var n=typeof t=="boolean"?{plain:t}:t||{},r=n.plain,i=r===void 0?!1:r,a=n.types,o=a===void 0?["style","token","cssVar"]:a,s=new RegExp("^(".concat((typeof o=="string"?[o]:o).join("|"),")%")),l=Array.from(e.cache.keys()).filter(function(p){return s.test(p)}),c={},u={},f="";return l.map(function(p){var h=p.replace(s,"").replace(/%/g,"|"),m=p.split("%"),g=Te(m,1),v=g[0],y=xje[v],w=y(e.cache.get(p)[1],c,{plain:i});if(!w)return null;var b=Te(w,3),C=b[0],k=b[1],S=b[2];return p.startsWith("style")&&(u[h]=k),[C,S]}).filter(Sje).sort(function(p,h){var m=Te(p,1),g=m[0],v=Te(h,1),y=v[0];return g-y}).forEach(function(p){var h=Te(p,2),m=h[1];f+=m}),f+=Yw(".".concat(G2,'{content:"').concat(dje(u),'";}'),void 0,void 0,ne({},G2,G2),i),f}var ir=function(){function e(t,n){Ar(this,e),ne(this,"name",void 0),ne(this,"style",void 0),ne(this,"_keyframe",!0),this.name=t,this.style=n}return Dr(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function _je(e){if(typeof e=="number")return[[e],!1];var t=String(e).trim(),n=t.match(/(.*)(!important)/),r=(n?n[1]:t).trim().split(/\s+/),i=[],a=0;return[r.reduce(function(o,s){if(s.includes("(")||s.includes(")")){var l=s.split("(").length-1,c=s.split(")").length-1;a+=l-c}return a>=0&&i.push(s),a===0&&(o.push(i.join(" ")),i=[]),o},[]),!!n]}function $1(e){return e.notSplit=!0,e}var kje={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:$1(["borderTop","borderBottom"]),borderBlockStart:$1(["borderTop"]),borderBlockEnd:$1(["borderBottom"]),borderInline:$1(["borderLeft","borderRight"]),borderInlineStart:$1(["borderLeft"]),borderInlineEnd:$1(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function cS(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var Eje={visit:function(t){var n={};return Object.keys(t).forEach(function(r){var i=t[r],a=kje[r];if(a&&(typeof i=="number"||typeof i=="string")){var o=_je(i),s=Te(o,2),l=s[0],c=s[1];a.length&&a.notSplit?a.forEach(function(u){n[u]=cS(i,c)}):a.length===1?n[a[0]]=cS(l[0],c):a.length===2?a.forEach(function(u,f){var p;n[u]=cS((p=l[f])!==null&&p!==void 0?p:l[0],c)}):a.length===4?a.forEach(function(u,f){var p,h;n[u]=cS((p=(h=l[f])!==null&&h!==void 0?h:l[f-2])!==null&&p!==void 0?p:l[0],c)}):n[r]=i}else n[r]=i}),n}},h9=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function $je(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}var Mje=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.rootValue,r=n===void 0?16:n,i=t.precision,a=i===void 0?5:i,o=t.mediaQuery,s=o===void 0?!1:o,l=function(f,p){if(!p)return f;var h=parseFloat(p);if(h<=1)return f;var m=$je(h/r,a);return"".concat(m,"rem")},c=function(f){var p=q({},f);return Object.entries(f).forEach(function(h){var m=Te(h,2),g=m[0],v=m[1];if(typeof v=="string"&&v.includes("px")){var y=v.replace(h9,l);p[g]=y}!Qde[g]&&typeof v=="number"&&v!==0&&(p[g]="".concat(v,"px").replace(h9,l));var w=g.trim();if(w.startsWith("@")&&w.includes("px")&&s){var b=g.replace(h9,l);p[b]=p[g],delete p[g]}}),p};return{visit:c}},Tje={supportModernCSS:function(){return _Ie()&&kIe()}};const Pje=Object.freeze(Object.defineProperty({__proto__:null,Keyframes:ir,NaNLinter:cje,StyleProvider:gIe,Theme:OL,_experimental:Tje,createCache:TL,createTheme:pg,extractStyle:Cje,genCalc:wIe,getComputedToken:IL,legacyLogicalPropertiesTransformer:Eje,legacyNotSelectorLinter:sje,logicalPropertiesLinter:lje,parentSelectorLinter:uje,px2remTransformer:Mje,token2CSSVar:K2,unit:Me,useCSSVarRegister:dfe,useCacheToken:jL,useStyleRegister:Qw},Symbol.toStringTag,{value:"Module"}));var qE=d.createContext({});function DL(e){return Lde(e)||Nde(e)||HE(e)||Bde()}function Ds(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ds(e,t.slice(0,-1))?e:ffe(e,t,n,r)}function Oje(e){return Kt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function JK(e){return Array.isArray(e)?[]:{}}var Rje=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function gv(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=Ije,e},pfe=d.createContext(void 0);var hfe={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},mfe={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Nje=q(q({},mfe),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const gfe={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Hk={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Nje),timePickerLocale:Object.assign({},gfe)},rl="${label} is not a valid ${type}",Us={locale:"en",Pagination:hfe,DatePicker:Hk,TimePicker:gfe,Calendar:Hk,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:rl,method:rl,array:rl,object:rl,number:rl,date:rl,boolean:rl,integer:rl,float:rl,regexp:rl,email:rl,url:rl,hex:rl},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let ZC=Object.assign({},Us.Modal),QC=[];const eG=()=>QC.reduce((e,t)=>Object.assign(Object.assign({},e),t),Us.Modal);function Aje(e){if(e){const t=Object.assign({},e);return QC.push(t),ZC=eG(),()=>{QC=QC.filter(n=>n!==t),ZC=eG()}}ZC=Object.assign({},Us.Modal)}function vfe(){return ZC}const FL=d.createContext(void 0),Ga=(e,t)=>{const n=d.useContext(FL),r=d.useMemo(()=>{var a;const o=t||Us[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),i=d.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Us.locale:a},[n]);return[r,i]},Dje="internalMark",Fje=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>Aje(t==null?void 0:t.Modal),[t]);const i=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(FL.Provider,{value:i},n)},Xa=Math.round;function m9(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const tG=(e,t,n)=>n===0?e:e/100;function Ob(e,t){const n=t||255;return e>n?n:e<0?0:e}class ur{constructor(t){ne(this,"isValid",!0),ne(this,"r",0),ne(this,"g",0),ne(this,"b",0),ne(this,"a",1),ne(this,"_h",void 0),ne(this,"_s",void 0),ne(this,"_l",void 0),ne(this,"_v",void 0),ne(this,"_max",void 0),ne(this,"_min",void 0),ne(this,"_brightness",void 0);function n(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let a=function(o){return i.startsWith(o)};var r=a;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):a("rgb")?this.fromRgbString(i):a("hsl")?this.fromHslString(i):(a("hsv")||a("hsb"))&&this.fromHsvString(i)}else if(t instanceof ur)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Ob(t.r),this.g=Ob(t.g),this.b=Ob(t.b),this.a=typeof t.a=="number"?Ob(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Xa(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,a=s=>(r[s]-this[s])*i+this[s],o={r:Xa(a("r")),g:Xa(a("g")),b:Xa(a("b")),a:Xa(a("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=a=>Xa((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=Xa(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Xa(this.getSaturation()*100),r=Xa(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Ob(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const p=Xa(r*255);this.r=p,this.g=p,this.b=p}let a=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,o=u):l>=1&&l<2?(a=u,o=c):l>=2&&l<3?(o=c,s=u):l>=3&&l<4?(o=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const f=r-c/2;this.r=Xa((a+f)*255),this.g=Xa((o+f)*255),this.b=Xa((s+f)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=Xa(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=Xa(r*(1-n)*255),u=Xa(r*(1-n*l)*255),f=Xa(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=m9(t,tG);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=m9(t,tG);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=m9(t,(r,i)=>i.includes("%")?Xa(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const Lje=Object.freeze(Object.defineProperty({__proto__:null,FastColor:ur},Symbol.toStringTag,{value:"Module"}));var uS=2,nG=.16,Bje=.05,zje=.05,Hje=.15,yfe=5,bfe=4,Uje=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function rG(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-uS*t:Math.round(e.h)+uS*t:r=n?Math.round(e.h)+uS*t:Math.round(e.h)-uS*t,r<0?r+=360:r>=360&&(r-=360),r}function iG(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-nG*t:t===bfe?r=e.s+nG:r=e.s+Bje*t,r>1&&(r=1),n&&t===yfe&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function aG(e,t,n){var r;return n?r=e.v+zje*t:r=e.v-Hje*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function dh(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new ur(e),i=r.toHsv(),a=yfe;a>0;a-=1){var o=new ur({h:rG(i,a,!0),s:iG(i,a,!0),v:aG(i,a,!0)});n.push(o)}n.push(r);for(var s=1;s<=bfe;s+=1){var l=new ur({h:rG(i,s),s:iG(i,s),v:aG(i,s)});n.push(l)}return t.theme==="dark"?Uje.map(function(c){var u=c.index,f=c.amount;return new ur(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var Vm={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Uk=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Uk.primary=Uk[5];var Wk=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Wk.primary=Wk[5];var Vk=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Vk.primary=Vk[5];var Jw=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Jw.primary=Jw[5];var qk=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];qk.primary=qk[5];var Kk=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Kk.primary=Kk[5];var Gk=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Gk.primary=Gk[5];var Yk=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Yk.primary=Yk[5];var hg=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];hg.primary=hg[5];var Xk=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Xk.primary=Xk[5];var Zk=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Zk.primary=Zk[5];var Qk=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Qk.primary=Qk[5];var e3=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];e3.primary=e3[5];var Wje=e3,JC={red:Uk,volcano:Wk,orange:Vk,gold:Jw,yellow:qk,lime:Kk,green:Gk,cyan:Yk,blue:hg,geekblue:Xk,purple:Zk,magenta:Qk,grey:e3},Jk=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Jk.primary=Jk[5];var e6=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];e6.primary=e6[5];var t6=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];t6.primary=t6[5];var n6=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];n6.primary=n6[5];var r6=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];r6.primary=r6[5];var i6=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];i6.primary=i6[5];var a6=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];a6.primary=a6[5];var o6=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];o6.primary=o6[5];var s6=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];s6.primary=s6[5];var l6=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];l6.primary=l6[5];var c6=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];c6.primary=c6[5];var u6=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];u6.primary=u6[5];var d6=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];d6.primary=d6[5];var Vje={red:Jk,volcano:e6,orange:t6,gold:n6,yellow:r6,lime:i6,green:a6,cyan:o6,blue:s6,geekblue:l6,purple:c6,magenta:u6,grey:d6};const qje=Object.freeze(Object.defineProperty({__proto__:null,blue:hg,blueDark:s6,cyan:Yk,cyanDark:o6,geekblue:Xk,geekblueDark:l6,generate:dh,gold:Jw,goldDark:n6,gray:Wje,green:Gk,greenDark:a6,grey:e3,greyDark:d6,lime:Kk,limeDark:i6,magenta:Qk,magentaDark:u6,orange:Vk,orangeDark:t6,presetDarkPalettes:Vje,presetPalettes:JC,presetPrimaryColors:Vm,purple:Zk,purpleDark:c6,red:Uk,redDark:Jk,volcano:Wk,volcanoDark:e6,yellow:qk,yellowDark:r6},Symbol.toStringTag,{value:"Module"})),LL={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},T0=Object.assign(Object.assign({},LL),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function gfe(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),p=n(i),h=n(a),m=n(o),g=n(s),v=r(c,u),y=e.colorLink||e.colorInfo,b=n(y),w=new dr(m[1]).mix(new dr(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:w,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new dr("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Vje=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function qje(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},Vje(r))}const vfe=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function QC(e){return(e+8)/e}function Kje(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:QC(n)}))}const yfe=e=>{const t=Kje(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Gje(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Wl=(e,t)=>new dr(e).setA(t).toRgbString(),Ob=(e,t)=>new dr(e).darken(t).toHexString(),Yje=e=>{const t=ch(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Xje=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Wl(r,.88),colorTextSecondary:Wl(r,.65),colorTextTertiary:Wl(r,.45),colorTextQuaternary:Wl(r,.25),colorFill:Wl(r,.15),colorFillSecondary:Wl(r,.06),colorFillTertiary:Wl(r,.04),colorFillQuaternary:Wl(r,.02),colorBgSolid:Wl(r,1),colorBgSolidHover:Wl(r,.75),colorBgSolidActive:Wl(r,.95),colorBgLayout:Ob(n,4),colorBgContainer:Ob(n,0),colorBgElevated:Ob(n,0),colorBgSpotlight:Wl(r,.85),colorBgBlur:"transparent",colorBorder:Ob(n,15),colorBorderSecondary:Ob(n,6)}};function h4(e){Wm.pink=Wm.magenta,ZC.pink=ZC.magenta;const t=Object.keys(DL).map(n=>{const r=e[n]===Wm[n]?ZC[n]:ch(e[n]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),gfe(e,{generateColorPalettes:Yje,generateNeutralColorPalettes:Xje})),yfe(e.fontSize)),Gje(e)),vfe(e)),qje(e))}const bfe=fg(h4),e3={token:E0,override:{override:E0},hashed:!0},FL=te.createContext(e3),t3="ant",qE="anticon",Zje=["outlined","borderless","filled"],Qje=(e,t)=>t||(e?`${t3}-${e}`:t3),Zt=d.createContext({getPrefixCls:Qje,iconPrefixCls:qE});function Ws(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function nj(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var rG="data-rc-order",iG="data-rc-priority",Jje="rc-util-key",rj=new Map;function wfe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Jje}function KE(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function eNe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function LL(e){return Array.from((rj.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function xfe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ws())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=eNe(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(rG,o),s&&a&&l.setAttribute(iG,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=KE(t),u=c.firstChild;if(r){if(s){var f=(t.styles||LL(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(rG)))return!1;var h=Number(p.getAttribute(iG)||0);return a>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Sfe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=KE(t);return(t.styles||LL(n)).find(function(r){return r.getAttribute(wfe(t))===e})}function ij(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Sfe(e,t);if(n){var r=KE(t);r.removeChild(n)}}function tNe(e,t){var n=rj.get(e);if(!n||!nj(document,n)){var r=xfe("",t),i=r.parentNode;rj.set(e,i),e.removeChild(r)}}function GE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=KE(n),i=LL(r),a=q(q({},n),{},{styles:i});tNe(r,a);var o=Sfe(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=xfe(e,a);return u.setAttribute(wfe(a),t),u}const nNe=`-ant-${Date.now()}-${Math.random()}`;function rNe(e,t){const n={},r=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(o,s)=>{const l=new dr(o),c=ch(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new dr(t.primaryColor),s=ch(o.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(o,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(o,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(o,c=>c.setA(c.a*.12));const l=new dr(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` +'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function wfe(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),p=n(i),h=n(a),m=n(o),g=n(s),v=r(c,u),y=e.colorLink||e.colorInfo,w=n(y),b=new ur(m[1]).mix(new ur(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:b,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new ur("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Kje=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function Gje(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},Kje(r))}const xfe=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function e_(e){return(e+8)/e}function Yje(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:e_(n)}))}const Sfe=e=>{const t=Yje(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Xje(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const ql=(e,t)=>new ur(e).setA(t).toRgbString(),Rb=(e,t)=>new ur(e).darken(t).toHexString(),Zje=e=>{const t=dh(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Qje=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ql(r,.88),colorTextSecondary:ql(r,.65),colorTextTertiary:ql(r,.45),colorTextQuaternary:ql(r,.25),colorFill:ql(r,.15),colorFillSecondary:ql(r,.06),colorFillTertiary:ql(r,.04),colorFillQuaternary:ql(r,.02),colorBgSolid:ql(r,1),colorBgSolidHover:ql(r,.75),colorBgSolidActive:ql(r,.95),colorBgLayout:Rb(n,4),colorBgContainer:Rb(n,0),colorBgElevated:Rb(n,0),colorBgSpotlight:ql(r,.85),colorBgBlur:"transparent",colorBorder:Rb(n,15),colorBorderSecondary:Rb(n,6)}};function g4(e){Vm.pink=Vm.magenta,JC.pink=JC.magenta;const t=Object.keys(LL).map(n=>{const r=e[n]===Vm[n]?JC[n]:dh(e[n]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),wfe(e,{generateColorPalettes:Zje,generateNeutralColorPalettes:Qje})),Sfe(e.fontSize)),Xje(e)),xfe(e)),Gje(e))}const Cfe=pg(g4),t3={token:T0,override:{override:T0},hashed:!0},BL=te.createContext(t3),n3="ant",KE="anticon",Jje=["outlined","borderless","filled"],eNe=(e,t)=>t||(e?`${n3}-${e}`:n3),Xt=d.createContext({getPrefixCls:eNe,iconPrefixCls:KE});function Ws(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function aj(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var oG="data-rc-order",sG="data-rc-priority",tNe="rc-util-key",oj=new Map;function _fe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):tNe}function GE(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function nNe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function zL(e){return Array.from((oj.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function kfe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ws())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=nNe(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(oG,o),s&&a&&l.setAttribute(sG,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=GE(t),u=c.firstChild;if(r){if(s){var f=(t.styles||zL(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(oG)))return!1;var h=Number(p.getAttribute(sG)||0);return a>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Efe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=GE(t);return(t.styles||zL(n)).find(function(r){return r.getAttribute(_fe(t))===e})}function sj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Efe(e,t);if(n){var r=GE(t);r.removeChild(n)}}function rNe(e,t){var n=oj.get(e);if(!n||!aj(document,n)){var r=kfe("",t),i=r.parentNode;oj.set(e,i),e.removeChild(r)}}function YE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=GE(n),i=zL(r),a=q(q({},n),{},{styles:i});rNe(r,a);var o=Efe(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=kfe(e,a);return u.setAttribute(_fe(a),t),u}const iNe=`-ant-${Date.now()}-${Math.random()}`;function aNe(e,t){const n={},r=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(o,s)=>{const l=new ur(o),c=dh(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new ur(t.primaryColor),s=dh(o.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(o,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(o,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(o,c=>c.setA(c.a*.12));const l=new ur(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` :root { ${Object.keys(n).map(o=>`--${e}-${o}: ${n[o]};`).join(` `)} } - `.trim()}function iNe(e,t){const n=rNe(e,t);Ws()&&GE(n,`${nNe}-dynamic-theme`)}const ga=d.createContext(!1),BL=e=>{let{children:t,disabled:n}=e;const r=d.useContext(ga);return d.createElement(ga.Provider,{value:n??r},t)},hg=d.createContext(void 0),aNe=e=>{let{children:t,size:n}=e;const r=d.useContext(hg);return d.createElement(hg.Provider,{value:n||r},t)};function oNe(){const e=d.useContext(ga),t=d.useContext(hg);return{componentDisabled:e,componentSize:t}}function mg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(zr(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var u=0;u1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,a){r-i>fNe&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),cG=new pNe;function hNe(e,t){return te.useMemo(function(){var n=cG.get(t);if(n)return n;var r=e();return cG.set(t,r),r},t)}var mNe=function(){return{}};function Mfe(e){var t=e.useCSP,n=t===void 0?mNe:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function l(p,h,m,g){var v=Array.isArray(p)?p[0]:p;function y(E){return"".concat(String(v)).concat(E.slice(0,1).toUpperCase()).concat(E.slice(1))}var b=(g==null?void 0:g.unitless)||{},w=typeof s=="function"?s(p):{},_=q(q({},w),{},ne({},y("zIndexPopup"),!0));Object.keys(b).forEach(function(E){_[y(E)]=b[E]});var k=q(q({},g),{},{unitless:_,prefixToken:y}),S=u(p,h,m,k),C=c(v,m,k);return function(E){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,M=S(E,$),P=Te(M,2),I=P[1],O=C($),A=Te(O,2),R=A[0],j=A[1];return[R,I,j]}}function c(p,h,m){var g=m.unitless,v=m.injectStyle,y=v===void 0?!0:v,b=m.prefixToken,w=m.ignore,_=function(C){var E=C.rootCls,$=C.cssVar,M=$===void 0?{}:$,P=r(),I=P.realToken;return sfe({path:[p],prefix:M.prefix,key:M.key,unitless:g,ignore:w,token:I,scope:E},function(){var O=lG(p,I,h),A=sG(p,I,O,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(O).forEach(function(R){A[b(R)]=A[R],delete A[R]}),A}),null},k=function(C){var E=r(),$=E.cssVar;return[function(M){return y&&$?te.createElement(te.Fragment,null,te.createElement(_,{rootCls:C,cssVar:$,component:p}),M):M},$==null?void 0:$.key]};return k}function u(p,h,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(p)?p:[p,p],y=Te(v,1),b=y[0],w=v.join("-"),_=e.layer||{name:"antd"};return function(k){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,C=r(),E=C.theme,$=C.realToken,M=C.hashId,P=C.token,I=C.cssVar,O=i(),A=O.rootPrefixCls,R=O.iconPrefixCls,j=n(),N=I?"css":"js",D=hNe(function(){var Z=new Set;return I&&Object.keys(g.unitless||{}).forEach(function(ee){Z.add(K2(ee,I.prefix)),Z.add(K2(ee,aG(b,I.prefix)))}),kfe(N,Z)},[N,b,I==null?void 0:I.prefix]),V=dNe(N),F=V.max,K=V.min,B={theme:E,token:P,hashId:M,nonce:function(){return j.nonce},clientOnly:g.clientOnly,layer:_,order:g.order||-999};typeof a=="function"&&Zw(q(q({},B),{},{clientOnly:!1,path:["Shared",A]}),function(){return a(P,{prefix:{rootPrefixCls:A,iconPrefixCls:R},csp:j})});var U=Zw(q(q({},B),{},{path:[w,k,R]}),function(){if(g.injectStyle===!1)return[];var Z=$fe(P),ee=Z.token,ie=Z.flush,Y=lG(b,$,m),X=".".concat(k),ae=sG(b,$,Y,{deprecatedTokens:g.deprecatedTokens});I&&Y&&Kt(Y)==="object"&&Object.keys(Y).forEach(function(pe){Y[pe]="var(".concat(K2(pe,aG(b,I.prefix)),")")});var oe=Hn(ee,{componentCls:X,prefixCls:k,iconCls:".".concat(R),antCls:".".concat(A),calc:D,max:F,min:K},I?Y:ae),le=h(oe,{hashId:M,prefixCls:k,rootPrefixCls:A,iconPrefixCls:R});ie(b,ae);var ce=typeof o=="function"?o(oe,k,S,g.resetFont):null;return[g.resetStyle===!1?null:ce,le]});return[U,M]}}function f(p,h,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(p,h,m,q({resetStyle:!1,order:-998},g)),y=function(w){var _=w.prefixCls,k=w.rootCls,S=k===void 0?_:k;return v(_,S),null};return y}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const gNe=Object.freeze(Object.defineProperty({__proto__:null,genCalc:kfe,genStyleUtils:Mfe,mergeToken:Hn,statistic:oj,statisticToken:$fe},Symbol.toStringTag,{value:"Module"})),vg=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Rf="5.23.2";function m9(e){return e>=0&&e<=255}function cS(e,t){const{r:n,g:r,b:i,a}=new dr(e).toRgb();if(a<1)return e;const{r:o,g:s,b:l}=new dr(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-o*(1-c))/c),f=Math.round((r-s*(1-c))/c),p=Math.round((i-l*(1-c))/c);if(m9(u)&&m9(f)&&m9(p))return new dr({r:u,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new dr({r:n,g:r,b:i,a:1}).toRgbString()}var vNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{delete r[p]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const p="0s";i.motionDurationFast=p,i.motionDurationMid=p,i.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:cS(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:cS(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:cS(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:cS(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` + `.trim()}function oNe(e,t){const n=aNe(e,t);Ws()&&YE(n,`${iNe}-dynamic-theme`)}const ma=d.createContext(!1),HL=e=>{let{children:t,disabled:n}=e;const r=d.useContext(ma);return d.createElement(ma.Provider,{value:n??r},t)},mg=d.createContext(void 0),sNe=e=>{let{children:t,size:n}=e;const r=d.useContext(mg);return d.createElement(mg.Provider,{value:n||r},t)};function lNe(){const e=d.useContext(ma),t=d.useContext(mg);return{componentDisabled:e,componentSize:t}}function gg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(Br(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var u=0;u1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,a){r-i>hNe&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),fG=new mNe;function gNe(e,t){return te.useMemo(function(){var n=fG.get(t);if(n)return n;var r=e();return fG.set(t,r),r},t)}var vNe=function(){return{}};function Rfe(e){var t=e.useCSP,n=t===void 0?vNe:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function l(p,h,m,g){var v=Array.isArray(p)?p[0]:p;function y(E){return"".concat(String(v)).concat(E.slice(0,1).toUpperCase()).concat(E.slice(1))}var w=(g==null?void 0:g.unitless)||{},b=typeof s=="function"?s(p):{},C=q(q({},b),{},ne({},y("zIndexPopup"),!0));Object.keys(w).forEach(function(E){C[y(E)]=w[E]});var k=q(q({},g),{},{unitless:C,prefixToken:y}),S=u(p,h,m,k),_=c(v,m,k);return function(E){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,M=S(E,$),P=Te(M,2),R=P[1],O=_($),j=Te(O,2),I=j[0],A=j[1];return[I,R,A]}}function c(p,h,m){var g=m.unitless,v=m.injectStyle,y=v===void 0?!0:v,w=m.prefixToken,b=m.ignore,C=function(_){var E=_.rootCls,$=_.cssVar,M=$===void 0?{}:$,P=r(),R=P.realToken;return dfe({path:[p],prefix:M.prefix,key:M.key,unitless:g,ignore:b,token:R,scope:E},function(){var O=dG(p,R,h),j=uG(p,R,O,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(O).forEach(function(I){j[w(I)]=j[I],delete j[I]}),j}),null},k=function(_){var E=r(),$=E.cssVar;return[function(M){return y&&$?te.createElement(te.Fragment,null,te.createElement(C,{rootCls:_,cssVar:$,component:p}),M):M},$==null?void 0:$.key]};return k}function u(p,h,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(p)?p:[p,p],y=Te(v,1),w=y[0],b=v.join("-"),C=e.layer||{name:"antd"};return function(k){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,_=r(),E=_.theme,$=_.realToken,M=_.hashId,P=_.token,R=_.cssVar,O=i(),j=O.rootPrefixCls,I=O.iconPrefixCls,A=n(),N=R?"css":"js",F=gNe(function(){var Y=new Set;return R&&Object.keys(g.unitless||{}).forEach(function(ee){Y.add(K2(ee,R.prefix)),Y.add(K2(ee,lG(w,R.prefix)))}),Tfe(N,Y)},[N,w,R==null?void 0:R.prefix]),K=pNe(N),L=K.max,V=K.min,B={theme:E,token:P,hashId:M,nonce:function(){return A.nonce},clientOnly:g.clientOnly,layer:C,order:g.order||-999};typeof a=="function"&&Qw(q(q({},B),{},{clientOnly:!1,path:["Shared",j]}),function(){return a(P,{prefix:{rootPrefixCls:j,iconPrefixCls:I},csp:A})});var U=Qw(q(q({},B),{},{path:[b,k,I]}),function(){if(g.injectStyle===!1)return[];var Y=Ofe(P),ee=Y.token,ie=Y.flush,Z=dG(w,$,m),X=".".concat(k),ae=uG(w,$,Z,{deprecatedTokens:g.deprecatedTokens});R&&Z&&Kt(Z)==="object"&&Object.keys(Z).forEach(function(pe){Z[pe]="var(".concat(K2(pe,lG(w,R.prefix)),")")});var oe=Hn(ee,{componentCls:X,prefixCls:k,iconCls:".".concat(I),antCls:".".concat(j),calc:F,max:L,min:V},R?Z:ae),le=h(oe,{hashId:M,prefixCls:k,rootPrefixCls:j,iconPrefixCls:I});ie(w,ae);var ce=typeof o=="function"?o(oe,k,S,g.resetFont):null;return[g.resetStyle===!1?null:ce,le]});return[U,M]}}function f(p,h,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(p,h,m,q({resetStyle:!1,order:-998},g)),y=function(b){var C=b.prefixCls,k=b.rootCls,S=k===void 0?C:k;return v(C,S),null};return y}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const yNe=Object.freeze(Object.defineProperty({__proto__:null,genCalc:Tfe,genStyleUtils:Rfe,mergeToken:Hn,statistic:cj,statisticToken:Ofe},Symbol.toStringTag,{value:"Module"})),yg=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],If="5.23.2";function y9(e){return e>=0&&e<=255}function dS(e,t){const{r:n,g:r,b:i,a}=new ur(e).toRgb();if(a<1)return e;const{r:o,g:s,b:l}=new ur(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-o*(1-c))/c),f=Math.round((r-s*(1-c))/c),p=Math.round((i-l*(1-c))/c);if(y9(u)&&y9(f)&&y9(p))return new ur({r:u,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new ur({r:n,g:r,b:i,a:1}).toRgbString()}var bNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{delete r[p]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const p="0s";i.motionDurationFast=p,i.motionDurationMid=p,i.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:dS(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:dS(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:dS(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:dS(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) @@ -115,9 +115,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,screenXS:a,screenXSMin:a,screenXSMax:o-1,screenSM:o,screenSMMin:o,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` - 0 1px 2px -2px ${new dr("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new dr("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new dr("rgba(0, 0, 0, 0.09)").toRgbString()} + 0 1px 2px -2px ${new ur("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new ur("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new ur("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), @@ -134,7 +134,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var uG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,a=uG(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=zL(o),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=uG(c,["theme"]);let p=f;u&&(p=Pfe(Object.assign(Object.assign({},o),f),{override:f},u)),o[l]=p}),o};function $a(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=te.useContext(FL),a=`${Rf}-${t||""}`,o=n||bfe,[s,l,c]=IL(o,[E0,e],{salt:a,override:r,getComputedToken:Pfe,formatToken:zL,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Tfe,ignore:yNe,preserve:bNe}});return[o,c,t?l:"",s,i]}const oo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ar=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},yh=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),hd=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),wNe=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),xNe=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}},gc=(e,t)=>({outline:`${Me(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Vs=(e,t)=>({"&:focus-visible":Object.assign({},gc(e,t))}),Ofe=e=>({[`.${e}`]:Object.assign(Object.assign({},yh()),{[`.${e} .${e}-icon`]:{display:"block"}})}),HL=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Vs(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Jn,genComponentStyleHook:Ife,genSubStyleComponent:xy}=Mfe({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(Zt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=$a();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=d.useContext(Zt);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":wNe(e)},Ofe((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:qE)]},getCommonStyle:xNe,getCompUnitless:()=>Tfe});function YE(e,t){return vg.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}const SNe=(e,t)=>{const[n,r]=$a();return Zw({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[Ofe(e)])},CNe=Object.assign({},Qm),{useId:dG}=CNe,_Ne=()=>"",kNe=typeof dG>"u"?_Ne:dG;function ENe(e,t,n){var r;Hg();const i=e||{},a=i.inherit===!1||!t?Object.assign(Object.assign({},e3),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:e3.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=kNe();return ug(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{c[p]=Object.assign(Object.assign({},c[p]),e.components[p])});const u=`css-var-${o.replace(/:/g,"")}`,f=((s=i.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),i),{token:Object.assign(Object.assign({},a.token),i.token),components:c,cssVar:f})},[i,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!mg(c,f,!0)}))}var $Ne=["children"],Rfe=d.createContext({});function jfe(e){var t=e.children,n=Ut(e,$Ne);return d.createElement(Rfe.Provider,{value:n},t)}var MNe=function(e){Eo(n,e);var t=ts(n);function n(){return Dr(this,n),t.apply(this,arguments)}return Fr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function TNe(e){var t=d.useReducer(function(s){return s+1},0),n=Te(t,2),r=n[1],i=d.useRef(e),a=Vn(function(){return i.current}),o=Vn(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[a,o]}var gp="none",uS="appear",dS="enter",fS="leave",fG="none",Vc="prepare",mv="start",gv="active",UL="end",Nfe="prepared";function pG(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function PNe(e,t){var n={animationend:pG("Animation","AnimationEnd"),transitionend:pG("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var ONe=PNe(Ws(),typeof window<"u"?window:{}),Afe={};if(Ws()){var INe=document.createElement("div");Afe=INe.style}var pS={};function Dfe(e){if(pS[e])return pS[e];var t=ONe[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var a=rr(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var NNe=[Vc,mv,gv,UL],ANe=[Vc,Nfe],Hfe=!1,DNe=!0;function Ufe(e){return e===gv||e===UL}const FNe=function(e,t,n){var r=gg(fG),i=Te(r,2),a=i[0],o=i[1],s=jNe(),l=Te(s,2),c=l[0],u=l[1];function f(){o(Vc,!0)}var p=t?ANe:NNe;return zfe(function(){if(a!==fG&&a!==UL){var h=p.indexOf(a),m=p[h+1],g=n(a);g===Hfe?o(m,!0):m&&c(function(v){function y(){v.isCanceled()||o(m,!0)}g===!0?y():Promise.resolve(g).then(y)})}},[e,a]),d.useEffect(function(){return function(){u()}},[]),[f,a]};function LNe(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,s=o===void 0?!0:o,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,h=r.onEnterPrepare,m=r.onLeavePrepare,g=r.onAppearStart,v=r.onEnterStart,y=r.onLeaveStart,b=r.onAppearActive,w=r.onEnterActive,_=r.onLeaveActive,k=r.onAppearEnd,S=r.onEnterEnd,C=r.onLeaveEnd,E=r.onVisibleChanged,$=gg(),M=Te($,2),P=M[0],I=M[1],O=TNe(gp),A=Te(O,2),R=A[0],j=A[1],N=gg(null),D=Te(N,2),V=D[0],F=D[1],K=R(),B=d.useRef(!1),U=d.useRef(null);function Z(){return n()}var ee=d.useRef(!1);function ie(){j(gp),F(null,!0)}var Y=Vn(function(Se){var we=R();if(we!==gp){var se=Z();if(!(Se&&!Se.deadline&&Se.target!==se)){var ye=ee.current,Oe;we===uS&&ye?Oe=k==null?void 0:k(se,Se):we===dS&&ye?Oe=S==null?void 0:S(se,Se):we===fS&&ye&&(Oe=C==null?void 0:C(se,Se)),ye&&Oe!==!1&&ie()}}}),X=RNe(Y),ae=Te(X,1),oe=ae[0],le=function(we){switch(we){case uS:return ne(ne(ne({},Vc,p),mv,g),gv,b);case dS:return ne(ne(ne({},Vc,h),mv,v),gv,w);case fS:return ne(ne(ne({},Vc,m),mv,y),gv,_);default:return{}}},ce=d.useMemo(function(){return le(K)},[K]),pe=FNe(K,!e,function(Se){if(Se===Vc){var we=ce[Vc];return we?we(Z()):Hfe}if(fe in ce){var se;F(((se=ce[fe])===null||se===void 0?void 0:se.call(ce,Z(),null))||null)}return fe===gv&&K!==gp&&(oe(Z()),u>0&&(clearTimeout(U.current),U.current=setTimeout(function(){Y({deadline:!0})},u))),fe===Nfe&&ie(),DNe}),me=Te(pe,2),re=me[0],fe=me[1],ve=Ufe(fe);ee.current=ve;var $e=d.useRef(null);zfe(function(){if(!(B.current&&$e.current===t)){I(t);var Se=B.current;B.current=!0;var we;!Se&&t&&s&&(we=uS),Se&&t&&a&&(we=dS),(Se&&!t&&c||!Se&&f&&!t&&c)&&(we=fS);var se=le(we);we&&(e||se[Vc])?(j(we),re()):j(gp),$e.current=t}},[t]),d.useEffect(function(){(K===uS&&!s||K===dS&&!a||K===fS&&!c)&&j(gp)},[s,a,c]),d.useEffect(function(){return function(){B.current=!1,clearTimeout(U.current)}},[]);var Ce=d.useRef(!1);d.useEffect(function(){P&&(Ce.current=!0),P!==void 0&&K===gp&&((Ce.current||P)&&(E==null||E(P)),Ce.current=!0)},[P,K]);var be=V;return ce[Vc]&&fe===mv&&(be=q({transition:"none"},be)),[K,fe,be,P??t]}function BNe(e){var t=e;Kt(e)==="object"&&(t=e.transitionSupport);function n(i,a){return!!(i.motionName&&t&&a!==!1)}var r=d.forwardRef(function(i,a){var o=i.visible,s=o===void 0?!0:o,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,f=i.children,p=i.motionName,h=i.leavedClassName,m=i.eventProps,g=d.useContext(Rfe),v=g.motion,y=n(i,v),b=d.useRef(),w=d.useRef();function _(){try{return b.current instanceof HTMLElement?b.current:V2(w.current)}catch{return null}}var k=LNe(y,s,_,i),S=Te(k,4),C=S[0],E=S[1],$=S[2],M=S[3],P=d.useRef(M);M&&(P.current=!0);var I=d.useCallback(function(D){b.current=D,SL(a,D)},[a]),O,A=q(q({},m),{},{visible:s});if(!f)O=null;else if(C===gp)M?O=f(q({},A),I):!c&&P.current&&h?O=f(q(q({},A),{},{className:h}),I):u||!c&&!h?O=f(q(q({},A),{},{style:{display:"none"}}),I):O=null;else{var R;E===Vc?R="prepare":Ufe(E)?R="active":E===mv&&(R="start");var j=gG(p,"".concat(C,"-").concat(R));O=f(q(q({},A),{},{className:Ee(gG(p,C),ne(ne({},j,j&&R),p,typeof p=="string")),style:$}),I)}if(d.isValidElement(O)&&Vf(O)){var N=vh(O);N||(O=d.cloneElement(O,{ref:I}))}return d.createElement(MNe,{ref:w},O)});return r.displayName="CSSMotion",r}const ka=BNe(Bfe);var sj="add",lj="keep",cj="remove",g9="removed";function zNe(e){var t;return e&&Kt(e)==="object"&&"key"in e?t=e:t={key:e},q(q({},t),{},{key:String(t.key)})}function uj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(zNe)}function HNe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=uj(e),o=uj(t);a.forEach(function(c){for(var u=!1,f=r;f1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,p=u.status;return f!==c||p!==cj}),n.forEach(function(u){u.key===c&&(u.status=lj)})}),n}var UNe=["component","children","onVisibleChanged","onAllRemoved"],WNe=["status"],VNe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function qNe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ka,n=function(r){Eo(a,r);var i=ts(a);function a(){var o;Dr(this,a);for(var s=arguments.length,l=new Array(s),c=0;cnull;var XNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it.endsWith("Color"))}const eAe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(d6=t),n!==void 0&&(Wfe=n),"holderRender"in e&&(qfe=i),r&&(JNe(r)?iNe(JC(),r):Vfe=r)},Kfe=()=>({getPrefixCls:(e,t)=>t||(e?`${JC()}-${e}`:JC()),getIconPrefixCls:QNe,getRootPrefixCls:()=>d6||JC(),getTheme:()=>Vfe,holderRender:qfe}),tAe=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:o,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:p,dropdownMatchSelectWidth:h,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:v,parentContext:y,iconPrefixCls:b,theme:w,componentDisabled:_,segmented:k,statistic:S,spin:C,calendar:E,carousel:$,cascader:M,collapse:P,typography:I,checkbox:O,descriptions:A,divider:R,drawer:j,skeleton:N,steps:D,image:V,layout:F,list:K,mentions:B,modal:U,progress:Z,result:ee,slider:ie,breadcrumb:Y,menu:X,pagination:ae,input:oe,textArea:le,empty:ce,badge:pe,radio:me,rate:re,switch:fe,transfer:ve,avatar:$e,message:Ce,tag:be,table:Se,card:we,tabs:se,timeline:ye,timePicker:Oe,upload:z,notification:H,tree:G,colorPicker:de,datePicker:xe,rangePicker:he,flex:Ue,wave:We,dropdown:ge,warning:ze,tour:Ve,tooltip:Be,popover:Xe,popconfirm:Ke,floatButtonGroup:qe,variant:Et,inputNumber:dt,treeSelect:vt}=e,Ze=d.useCallback((xt,Nt)=>{const{prefixCls:Ot}=e;if(Nt)return Nt;const Pt=Ot||y.getPrefixCls("");return xt?`${Pt}-${xt}`:Pt},[y.getPrefixCls,e.prefixCls]),nt=b||y.iconPrefixCls||qE,jt=n||y.csp;SNe(nt,jt);const Lt=ENe(w,y.theme,{prefixCls:Ze("")}),Bt={csp:jt,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:s||v,direction:c,space:u,splitter:f,virtual:p,popupMatchSelectWidth:m??h,popupOverflow:g,getPrefixCls:Ze,iconPrefixCls:nt,theme:Lt,segmented:k,statistic:S,spin:C,calendar:E,carousel:$,cascader:M,collapse:P,typography:I,checkbox:O,descriptions:A,divider:R,drawer:j,skeleton:N,steps:D,image:V,input:oe,textArea:le,layout:F,list:K,mentions:B,modal:U,progress:Z,result:ee,slider:ie,breadcrumb:Y,menu:X,pagination:ae,empty:ce,badge:pe,radio:me,rate:re,switch:fe,transfer:ve,avatar:$e,message:Ce,tag:be,table:Se,card:we,tabs:se,timeline:ye,timePicker:Oe,upload:z,notification:H,tree:G,colorPicker:de,datePicker:xe,rangePicker:he,flex:Ue,wave:We,dropdown:ge,warning:ze,tour:Ve,tooltip:Be,popover:Xe,popconfirm:Ke,floatButtonGroup:qe,variant:Et,inputNumber:dt,treeSelect:vt},Ht=Object.assign({},y);Object.keys(Bt).forEach(xt=>{Bt[xt]!==void 0&&(Ht[xt]=Bt[xt])}),ZNe.forEach(xt=>{const Nt=e[xt];Nt&&(Ht[xt]=Nt)}),typeof r<"u"&&(Ht.button=Object.assign({autoInsertSpace:r},Ht.button));const Ne=ug(()=>Ht,Ht,(xt,Nt)=>{const Ot=Object.keys(xt),Pt=Object.keys(Nt);return Ot.length!==Pt.length||Ot.some(lt=>xt[lt]!==Nt[lt])}),He=d.useMemo(()=>({prefixCls:nt,csp:jt}),[nt,jt]);let Le=d.createElement(d.Fragment,null,d.createElement(YNe,{dropdownMatchSelectWidth:h}),t);const Qe=d.useMemo(()=>{var xt,Nt,Ot,Pt;return hv(((xt=Us.Form)===null||xt===void 0?void 0:xt.defaultValidateMessages)||{},((Ot=(Nt=Ne.locale)===null||Nt===void 0?void 0:Nt.Form)===null||Ot===void 0?void 0:Ot.defaultValidateMessages)||{},((Pt=Ne.form)===null||Pt===void 0?void 0:Pt.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[Ne,o==null?void 0:o.validateMessages]);Object.keys(Qe).length>0&&(Le=d.createElement(cfe.Provider,{value:Qe},Le)),s&&(Le=d.createElement(Aje,{locale:s,_ANT_MARK__:Nje},Le)),(nt||jt)&&(Le=d.createElement(VE.Provider,{value:He},Le)),l&&(Le=d.createElement(aNe,{size:l},Le)),Le=d.createElement(GNe,null,Le);const ht=d.useMemo(()=>{const xt=Lt||{},{algorithm:Nt,token:Ot,components:Pt,cssVar:lt}=xt,Ct=XNe(xt,["algorithm","token","components","cssVar"]),kt=Nt&&(!Array.isArray(Nt)||Nt.length>0)?fg(Nt):bfe,qt={};Object.entries(Pt||{}).forEach(At=>{let[ft,De]=At;const Ye=Object.assign({},De);"algorithm"in Ye&&(Ye.algorithm===!0?Ye.theme=kt:(Array.isArray(Ye.algorithm)||typeof Ye.algorithm=="function")&&(Ye.theme=fg(Ye.algorithm)),delete Ye.algorithm),qt[ft]=Ye});const yt=Object.assign(Object.assign({},E0),Ot);return Object.assign(Object.assign({},Ct),{theme:kt,token:yt,components:qt,override:Object.assign({override:yt},qt),cssVar:lt})},[Lt]);return w&&(Le=d.createElement(FL.Provider,{value:ht},Le)),Ne.warning&&(Le=d.createElement(Ije.Provider,{value:Ne.warning},Le)),_!==void 0&&(Le=d.createElement(BL,{disabled:_},Le)),d.createElement(Zt.Provider,{value:Ne},Le)},zn=e=>{const t=d.useContext(Zt),n=d.useContext(AL);return d.createElement(tAe,Object.assign({parentContext:t,legacyLocale:n},e))};zn.ConfigContext=Zt;zn.SizeContext=hg;zn.config=eAe;zn.useConfig=oNe;Object.defineProperty(zn,"SizeContext",{get:()=>hg});var nAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Gfe(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function rAe(e){return Gfe(e)instanceof ShadowRoot}function f6(e){return rAe(e)?Gfe(e):null}function iAe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function dj(e,t){zr(e,"[@ant-design/icons] ".concat(t))}function vG(e){return Kt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Kt(e.icon)==="object"||typeof e.icon=="function")}function yG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[iAe(n)]=r}return t},{})}function fj(e,t,n){return n?te.createElement(e.tag,q(q({key:t},yG(e.attrs)),n),(e.children||[]).map(function(r,i){return fj(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):te.createElement(e.tag,q({key:t},yG(e.attrs)),(e.children||[]).map(function(r,i){return fj(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function Yfe(e){return ch(e)[0]}function Xfe(e){return e?Array.isArray(e)?e:[e]:[]}var aAe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},oAe=` + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var pG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,a=pG(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=UL(o),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=pG(c,["theme"]);let p=f;u&&(p=jfe(Object.assign(Object.assign({},o),f),{override:f},u)),o[l]=p}),o};function ka(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=te.useContext(BL),a=`${If}-${t||""}`,o=n||Cfe,[s,l,c]=jL(o,[T0,e],{salt:a,override:r,getComputedToken:jfe,formatToken:UL,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Ife,ignore:wNe,preserve:xNe}});return[o,c,t?l:"",s,i]}const ao={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ar=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},wh=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),vd=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),SNe=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),CNe=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}},yc=(e,t)=>({outline:`${Me(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Vs=(e,t)=>({"&:focus-visible":Object.assign({},yc(e,t))}),Nfe=e=>({[`.${e}`]:Object.assign(Object.assign({},wh()),{[`.${e} .${e}-icon`]:{display:"block"}})}),WL=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Vs(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Jn,genComponentStyleHook:Afe,genSubStyleComponent:Sy}=Rfe({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(Xt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=ka();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=d.useContext(Xt);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":SNe(e)},Nfe((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:KE)]},getCommonStyle:CNe,getCompUnitless:()=>Ife});function XE(e,t){return yg.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}const _Ne=(e,t)=>{const[n,r]=ka();return Qw({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[Nfe(e)])},kNe=Object.assign({},Jm),{useId:hG}=kNe,ENe=()=>"",$Ne=typeof hG>"u"?ENe:hG;function MNe(e,t,n){var r;Ug();const i=e||{},a=i.inherit===!1||!t?Object.assign(Object.assign({},t3),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:t3.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=$Ne();return dg(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{c[p]=Object.assign(Object.assign({},c[p]),e.components[p])});const u=`css-var-${o.replace(/:/g,"")}`,f=((s=i.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),i),{token:Object.assign(Object.assign({},a.token),i.token),components:c,cssVar:f})},[i,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!gg(c,f,!0)}))}var TNe=["children"],Dfe=d.createContext({});function Ffe(e){var t=e.children,n=Ht(e,TNe);return d.createElement(Dfe.Provider,{value:n},t)}var PNe=function(e){$o(n,e);var t=rs(n);function n(){return Ar(this,n),t.apply(this,arguments)}return Dr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function ONe(e){var t=d.useReducer(function(s){return s+1},0),n=Te(t,2),r=n[1],i=d.useRef(e),a=Vn(function(){return i.current}),o=Vn(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[a,o]}var gp="none",fS="appear",pS="enter",hS="leave",mG="none",Yc="prepare",vv="start",yv="active",VL="end",Lfe="prepared";function gG(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function RNe(e,t){var n={animationend:gG("Animation","AnimationEnd"),transitionend:gG("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var INe=RNe(Ws(),typeof window<"u"?window:{}),Bfe={};if(Ws()){var jNe=document.createElement("div");Bfe=jNe.style}var mS={};function zfe(e){if(mS[e])return mS[e];var t=INe[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var a=rr(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var DNe=[Yc,vv,yv,VL],FNe=[Yc,Lfe],qfe=!1,LNe=!0;function Kfe(e){return e===yv||e===VL}const BNe=function(e,t,n){var r=vg(mG),i=Te(r,2),a=i[0],o=i[1],s=ANe(),l=Te(s,2),c=l[0],u=l[1];function f(){o(Yc,!0)}var p=t?FNe:DNe;return Vfe(function(){if(a!==mG&&a!==VL){var h=p.indexOf(a),m=p[h+1],g=n(a);g===qfe?o(m,!0):m&&c(function(v){function y(){v.isCanceled()||o(m,!0)}g===!0?y():Promise.resolve(g).then(y)})}},[e,a]),d.useEffect(function(){return function(){u()}},[]),[f,a]};function zNe(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,s=o===void 0?!0:o,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,h=r.onEnterPrepare,m=r.onLeavePrepare,g=r.onAppearStart,v=r.onEnterStart,y=r.onLeaveStart,w=r.onAppearActive,b=r.onEnterActive,C=r.onLeaveActive,k=r.onAppearEnd,S=r.onEnterEnd,_=r.onLeaveEnd,E=r.onVisibleChanged,$=vg(),M=Te($,2),P=M[0],R=M[1],O=ONe(gp),j=Te(O,2),I=j[0],A=j[1],N=vg(null),F=Te(N,2),K=F[0],L=F[1],V=I(),B=d.useRef(!1),U=d.useRef(null);function Y(){return n()}var ee=d.useRef(!1);function ie(){A(gp),L(null,!0)}var Z=Vn(function(Se){var we=I();if(we!==gp){var se=Y();if(!(Se&&!Se.deadline&&Se.target!==se)){var ye=ee.current,Oe;we===fS&&ye?Oe=k==null?void 0:k(se,Se):we===pS&&ye?Oe=S==null?void 0:S(se,Se):we===hS&&ye&&(Oe=_==null?void 0:_(se,Se)),ye&&Oe!==!1&&ie()}}}),X=NNe(Z),ae=Te(X,1),oe=ae[0],le=function(we){switch(we){case fS:return ne(ne(ne({},Yc,p),vv,g),yv,w);case pS:return ne(ne(ne({},Yc,h),vv,v),yv,b);case hS:return ne(ne(ne({},Yc,m),vv,y),yv,C);default:return{}}},ce=d.useMemo(function(){return le(V)},[V]),pe=BNe(V,!e,function(Se){if(Se===Yc){var we=ce[Yc];return we?we(Y()):qfe}if(fe in ce){var se;L(((se=ce[fe])===null||se===void 0?void 0:se.call(ce,Y(),null))||null)}return fe===yv&&V!==gp&&(oe(Y()),u>0&&(clearTimeout(U.current),U.current=setTimeout(function(){Z({deadline:!0})},u))),fe===Lfe&&ie(),LNe}),me=Te(pe,2),re=me[0],fe=me[1],ve=Kfe(fe);ee.current=ve;var $e=d.useRef(null);Vfe(function(){if(!(B.current&&$e.current===t)){R(t);var Se=B.current;B.current=!0;var we;!Se&&t&&s&&(we=fS),Se&&t&&a&&(we=pS),(Se&&!t&&c||!Se&&f&&!t&&c)&&(we=hS);var se=le(we);we&&(e||se[Yc])?(A(we),re()):A(gp),$e.current=t}},[t]),d.useEffect(function(){(V===fS&&!s||V===pS&&!a||V===hS&&!c)&&A(gp)},[s,a,c]),d.useEffect(function(){return function(){B.current=!1,clearTimeout(U.current)}},[]);var Ce=d.useRef(!1);d.useEffect(function(){P&&(Ce.current=!0),P!==void 0&&V===gp&&((Ce.current||P)&&(E==null||E(P)),Ce.current=!0)},[P,V]);var be=K;return ce[Yc]&&fe===vv&&(be=q({transition:"none"},be)),[V,fe,be,P??t]}function HNe(e){var t=e;Kt(e)==="object"&&(t=e.transitionSupport);function n(i,a){return!!(i.motionName&&t&&a!==!1)}var r=d.forwardRef(function(i,a){var o=i.visible,s=o===void 0?!0:o,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,f=i.children,p=i.motionName,h=i.leavedClassName,m=i.eventProps,g=d.useContext(Dfe),v=g.motion,y=n(i,v),w=d.useRef(),b=d.useRef();function C(){try{return w.current instanceof HTMLElement?w.current:V2(b.current)}catch{return null}}var k=zNe(y,s,C,i),S=Te(k,4),_=S[0],E=S[1],$=S[2],M=S[3],P=d.useRef(M);M&&(P.current=!0);var R=d.useCallback(function(F){w.current=F,_L(a,F)},[a]),O,j=q(q({},m),{},{visible:s});if(!f)O=null;else if(_===gp)M?O=f(q({},j),R):!c&&P.current&&h?O=f(q(q({},j),{},{className:h}),R):u||!c&&!h?O=f(q(q({},j),{},{style:{display:"none"}}),R):O=null;else{var I;E===Yc?I="prepare":Kfe(E)?I="active":E===vv&&(I="start");var A=bG(p,"".concat(_,"-").concat(I));O=f(q(q({},j),{},{className:Ee(bG(p,_),ne(ne({},A,A&&I),p,typeof p=="string")),style:$}),R)}if(d.isValidElement(O)&&Vf(O)){var N=bh(O);N||(O=d.cloneElement(O,{ref:R}))}return d.createElement(PNe,{ref:b},O)});return r.displayName="CSSMotion",r}const Ca=HNe(Wfe);var uj="add",dj="keep",fj="remove",b9="removed";function UNe(e){var t;return e&&Kt(e)==="object"&&"key"in e?t=e:t={key:e},q(q({},t),{},{key:String(t.key)})}function pj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(UNe)}function WNe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=pj(e),o=pj(t);a.forEach(function(c){for(var u=!1,f=r;f1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,p=u.status;return f!==c||p!==fj}),n.forEach(function(u){u.key===c&&(u.status=dj)})}),n}var VNe=["component","children","onVisibleChanged","onAllRemoved"],qNe=["status"],KNe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function GNe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ca,n=function(r){$o(a,r);var i=rs(a);function a(){var o;Ar(this,a);for(var s=arguments.length,l=new Array(s),c=0;cnull;var QNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it.endsWith("Color"))}const nAe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(f6=t),n!==void 0&&(Gfe=n),"holderRender"in e&&(Xfe=i),r&&(tAe(r)?oNe(t_(),r):Yfe=r)},Zfe=()=>({getPrefixCls:(e,t)=>t||(e?`${t_()}-${e}`:t_()),getIconPrefixCls:eAe,getRootPrefixCls:()=>f6||t_(),getTheme:()=>Yfe,holderRender:Xfe}),rAe=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:o,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:p,dropdownMatchSelectWidth:h,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:v,parentContext:y,iconPrefixCls:w,theme:b,componentDisabled:C,segmented:k,statistic:S,spin:_,calendar:E,carousel:$,cascader:M,collapse:P,typography:R,checkbox:O,descriptions:j,divider:I,drawer:A,skeleton:N,steps:F,image:K,layout:L,list:V,mentions:B,modal:U,progress:Y,result:ee,slider:ie,breadcrumb:Z,menu:X,pagination:ae,input:oe,textArea:le,empty:ce,badge:pe,radio:me,rate:re,switch:fe,transfer:ve,avatar:$e,message:Ce,tag:be,table:Se,card:we,tabs:se,timeline:ye,timePicker:Oe,upload:z,notification:H,tree:G,colorPicker:de,datePicker:xe,rangePicker:he,flex:Ue,wave:We,dropdown:ge,warning:ze,tour:Ve,tooltip:Be,popover:Xe,popconfirm:Ke,floatButtonGroup:qe,variant:Et,inputNumber:ut,treeSelect:gt}=e,Ze=d.useCallback((xt,Nt)=>{const{prefixCls:Ot}=e;if(Nt)return Nt;const Pt=Ot||y.getPrefixCls("");return xt?`${Pt}-${xt}`:Pt},[y.getPrefixCls,e.prefixCls]),nt=w||y.iconPrefixCls||KE,jt=n||y.csp;_Ne(nt,jt);const Lt=MNe(b,y.theme,{prefixCls:Ze("")}),Bt={csp:jt,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:s||v,direction:c,space:u,splitter:f,virtual:p,popupMatchSelectWidth:m??h,popupOverflow:g,getPrefixCls:Ze,iconPrefixCls:nt,theme:Lt,segmented:k,statistic:S,spin:_,calendar:E,carousel:$,cascader:M,collapse:P,typography:R,checkbox:O,descriptions:j,divider:I,drawer:A,skeleton:N,steps:F,image:K,input:oe,textArea:le,layout:L,list:V,mentions:B,modal:U,progress:Y,result:ee,slider:ie,breadcrumb:Z,menu:X,pagination:ae,empty:ce,badge:pe,radio:me,rate:re,switch:fe,transfer:ve,avatar:$e,message:Ce,tag:be,table:Se,card:we,tabs:se,timeline:ye,timePicker:Oe,upload:z,notification:H,tree:G,colorPicker:de,datePicker:xe,rangePicker:he,flex:Ue,wave:We,dropdown:ge,warning:ze,tour:Ve,tooltip:Be,popover:Xe,popconfirm:Ke,floatButtonGroup:qe,variant:Et,inputNumber:ut,treeSelect:gt},Ut=Object.assign({},y);Object.keys(Bt).forEach(xt=>{Bt[xt]!==void 0&&(Ut[xt]=Bt[xt])}),JNe.forEach(xt=>{const Nt=e[xt];Nt&&(Ut[xt]=Nt)}),typeof r<"u"&&(Ut.button=Object.assign({autoInsertSpace:r},Ut.button));const Ne=dg(()=>Ut,Ut,(xt,Nt)=>{const Ot=Object.keys(xt),Pt=Object.keys(Nt);return Ot.length!==Pt.length||Ot.some(st=>xt[st]!==Nt[st])}),He=d.useMemo(()=>({prefixCls:nt,csp:jt}),[nt,jt]);let Le=d.createElement(d.Fragment,null,d.createElement(ZNe,{dropdownMatchSelectWidth:h}),t);const Qe=d.useMemo(()=>{var xt,Nt,Ot,Pt;return gv(((xt=Us.Form)===null||xt===void 0?void 0:xt.defaultValidateMessages)||{},((Ot=(Nt=Ne.locale)===null||Nt===void 0?void 0:Nt.Form)===null||Ot===void 0?void 0:Ot.defaultValidateMessages)||{},((Pt=Ne.form)===null||Pt===void 0?void 0:Pt.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[Ne,o==null?void 0:o.validateMessages]);Object.keys(Qe).length>0&&(Le=d.createElement(pfe.Provider,{value:Qe},Le)),s&&(Le=d.createElement(Fje,{locale:s,_ANT_MARK__:Dje},Le)),(nt||jt)&&(Le=d.createElement(qE.Provider,{value:He},Le)),l&&(Le=d.createElement(sNe,{size:l},Le)),Le=d.createElement(XNe,null,Le);const pt=d.useMemo(()=>{const xt=Lt||{},{algorithm:Nt,token:Ot,components:Pt,cssVar:st}=xt,Ct=QNe(xt,["algorithm","token","components","cssVar"]),kt=Nt&&(!Array.isArray(Nt)||Nt.length>0)?pg(Nt):Cfe,qt={};Object.entries(Pt||{}).forEach(At=>{let[dt,De]=At;const Ye=Object.assign({},De);"algorithm"in Ye&&(Ye.algorithm===!0?Ye.theme=kt:(Array.isArray(Ye.algorithm)||typeof Ye.algorithm=="function")&&(Ye.theme=pg(Ye.algorithm)),delete Ye.algorithm),qt[dt]=Ye});const vt=Object.assign(Object.assign({},T0),Ot);return Object.assign(Object.assign({},Ct),{theme:kt,token:vt,components:qt,override:Object.assign({override:vt},qt),cssVar:st})},[Lt]);return b&&(Le=d.createElement(BL.Provider,{value:pt},Le)),Ne.warning&&(Le=d.createElement(jje.Provider,{value:Ne.warning},Le)),C!==void 0&&(Le=d.createElement(HL,{disabled:C},Le)),d.createElement(Xt.Provider,{value:Ne},Le)},zn=e=>{const t=d.useContext(Xt),n=d.useContext(FL);return d.createElement(rAe,Object.assign({parentContext:t,legacyLocale:n},e))};zn.ConfigContext=Xt;zn.SizeContext=mg;zn.config=nAe;zn.useConfig=lNe;Object.defineProperty(zn,"SizeContext",{get:()=>mg});var iAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Qfe(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function aAe(e){return Qfe(e)instanceof ShadowRoot}function p6(e){return aAe(e)?Qfe(e):null}function oAe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function hj(e,t){Br(e,"[@ant-design/icons] ".concat(t))}function wG(e){return Kt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Kt(e.icon)==="object"||typeof e.icon=="function")}function xG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[oAe(n)]=r}return t},{})}function mj(e,t,n){return n?te.createElement(e.tag,q(q({key:t},xG(e.attrs)),n),(e.children||[]).map(function(r,i){return mj(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):te.createElement(e.tag,q({key:t},xG(e.attrs)),(e.children||[]).map(function(r,i){return mj(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function Jfe(e){return dh(e)[0]}function epe(e){return e?Array.isArray(e)?e:[e]:[]}var sAe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},lAe=` .anticon { display: inline-flex; align-items: center; @@ -189,9 +189,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,Zfe=function(t){var n=d.useContext(VE),r=n.csp,i=n.prefixCls,a=n.layer,o=oAe;i&&(o=o.replace(/anticon/g,i)),a&&(o="@layer ".concat(a,` { +`,tpe=function(t){var n=d.useContext(qE),r=n.csp,i=n.prefixCls,a=n.layer,o=lAe;i&&(o=o.replace(/anticon/g,i)),a&&(o="@layer ".concat(a,` { `).concat(o,` -}`)),d.useEffect(function(){var s=t.current,l=f6(s);GE(o,"@ant-design-icons",{prepend:!a,csp:r,attachTo:l})},[])},sAe=["icon","className","onClick","style","primaryColor","secondaryColor"],Y2={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function lAe(e){var t=e.primaryColor,n=e.secondaryColor;Y2.primaryColor=t,Y2.secondaryColor=n||Yfe(t),Y2.calculated=!!n}function cAe(){return q({},Y2)}var Sy=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,l=Ut(t,sAe),c=d.useRef(),u=Y2;if(o&&(u={primaryColor:o,secondaryColor:s||Yfe(o)}),Zfe(c),dj(vG(n),"icon should be icon definiton, but got ".concat(n)),!vG(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=q(q({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),fj(f.icon,"svg-".concat(f.name),q(q({className:r,onClick:i,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Sy.displayName="IconReact";Sy.getTwoToneColors=cAe;Sy.setTwoToneColors=lAe;function Qfe(e){var t=Xfe(e),n=Te(t,2),r=n[0],i=n[1];return Sy.setTwoToneColors({primaryColor:r,secondaryColor:i})}function uAe(){var e=Sy.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var dAe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Qfe(pg.primary);var jn=d.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Ut(e,dAe),u=d.useContext(VE),f=u.prefixCls,p=f===void 0?"anticon":f,h=u.rootClassName,m=Ee(h,p,ne(ne({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!i||r.name==="loading"),n),g=o;g===void 0&&s&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=Xfe(l),b=Te(y,2),w=b[0],_=b[1];return d.createElement("span",tt({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),d.createElement(Sy,{icon:r,primaryColor:w,secondaryColor:_,style:v}))});jn.displayName="AntdIcon";jn.getTwoToneColor=uAe;jn.setTwoToneColor=Qfe;var fAe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:nAe}))},Ug=d.forwardRef(fAe),pAe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},hAe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:pAe}))},$d=d.forwardRef(hAe),mAe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},gAe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:mAe}))},Cu=d.forwardRef(gAe),vAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},yAe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:vAe}))},qf=d.forwardRef(yAe),bAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},wAe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:bAe}))},ZE=d.forwardRef(wAe),xAe=`accept acceptCharset accessKey action allowFullScreen allowTransparency +}`)),d.useEffect(function(){var s=t.current,l=p6(s);YE(o,"@ant-design-icons",{prepend:!a,csp:r,attachTo:l})},[])},cAe=["icon","className","onClick","style","primaryColor","secondaryColor"],Y2={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function uAe(e){var t=e.primaryColor,n=e.secondaryColor;Y2.primaryColor=t,Y2.secondaryColor=n||Jfe(t),Y2.calculated=!!n}function dAe(){return q({},Y2)}var Cy=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,l=Ht(t,cAe),c=d.useRef(),u=Y2;if(o&&(u={primaryColor:o,secondaryColor:s||Jfe(o)}),tpe(c),hj(wG(n),"icon should be icon definiton, but got ".concat(n)),!wG(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=q(q({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),mj(f.icon,"svg-".concat(f.name),q(q({className:r,onClick:i,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Cy.displayName="IconReact";Cy.getTwoToneColors=dAe;Cy.setTwoToneColors=uAe;function npe(e){var t=epe(e),n=Te(t,2),r=n[0],i=n[1];return Cy.setTwoToneColors({primaryColor:r,secondaryColor:i})}function fAe(){var e=Cy.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var pAe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];npe(hg.primary);var Nn=d.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Ht(e,pAe),u=d.useContext(qE),f=u.prefixCls,p=f===void 0?"anticon":f,h=u.rootClassName,m=Ee(h,p,ne(ne({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!i||r.name==="loading"),n),g=o;g===void 0&&s&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=epe(l),w=Te(y,2),b=w[0],C=w[1];return d.createElement("span",tt({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),d.createElement(Cy,{icon:r,primaryColor:b,secondaryColor:C,style:v}))});Nn.displayName="AntdIcon";Nn.getTwoToneColor=fAe;Nn.setTwoToneColor=npe;var hAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:iAe}))},Wg=d.forwardRef(hAe),mAe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},gAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:mAe}))},Pd=d.forwardRef(gAe),vAe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},yAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:vAe}))},Eu=d.forwardRef(yAe),bAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},wAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:bAe}))},qf=d.forwardRef(wAe),xAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},SAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:xAe}))},QE=d.forwardRef(SAe),CAe=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable @@ -202,122 +202,122 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style - summary tabIndex target title type useMap value width wmode wrap`,SAe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + summary tabIndex target title type useMap value width wmode wrap`,_Ae=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,CAe="".concat(xAe," ").concat(SAe).split(/[\s\n]+/),_Ae="aria-",kAe="data-";function bG(e,t){return e.indexOf(t)===0}function Bi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=q({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||bG(i,_Ae))||n.data&&bG(i,kAe)||n.attr&&CAe.includes(i))&&(r[i]=e[i])}),r}function Jfe(e){return e&&te.isValidElement(e)&&e.type===te.Fragment}const WL=(e,t,n)=>te.isValidElement(e)?te.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function oa(e,t){return WL(e,e,t)}const hS=(e,t,n,r,i)=>({background:e,border:`${Me(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),EAe=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:o,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:f,colorTextHeading:p,withDescriptionPadding:h,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:s},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,kAe="".concat(CAe," ").concat(_Ae).split(/[\s\n]+/),EAe="aria-",$Ae="data-";function SG(e,t){return e.indexOf(t)===0}function Fi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=q({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||SG(i,EAe))||n.data&&SG(i,$Ae)||n.attr&&kAe.includes(i))&&(r[i]=e[i])}),r}function rpe(e){return e&&te.isValidElement(e)&&e.type===te.Fragment}const qL=(e,t,n)=>te.isValidElement(e)?te.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function aa(e,t){return qL(e,e,t)}const gS=(e,t,n,r,i)=>({background:e,border:`${Me(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),MAe=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:o,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:f,colorTextHeading:p,withDescriptionPadding:h,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:s},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, padding-top ${n} ${c}, padding-bottom ${n} ${c}, - margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:h,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:p,fontSize:o},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},$Ae=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:a,colorWarningBorder:o,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:f,colorInfoBorder:p,colorInfoBg:h}=e;return{[t]:{"&-success":hS(i,r,n,e,t),"&-info":hS(h,p,f,e,t),"&-warning":hS(s,o,a,e,t),"&-error":Object.assign(Object.assign({},hS(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},MAe=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:o,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:a,lineHeight:Me(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},TAe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),PAe=Jn("Alert",e=>[EAe(e),$Ae(e),MAe(e)],TAe);var wG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{icon:t,prefixCls:n,type:r}=e,i=OAe[r]||null;return t?WL(t,d.createElement("span",{className:`${n}-icon`},t),()=>({className:Ee(`${n}-icon`,t.props.className)})):d.createElement(i,{className:`${n}-icon`})},RAe=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:a}=e,o=r===!0||r===void 0?d.createElement(Cu,null):r;return t?d.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},a),o):null},epe=d.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,banner:a,className:o,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:u,onClick:f,afterClose:p,showIcon:h,closable:m,closeText:g,closeIcon:v,action:y,id:b}=e,w=wG(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[_,k]=d.useState(!1),S=d.useRef(null);d.useImperativeHandle(t,()=>({nativeElement:S.current}));const{getPrefixCls:C,direction:E,alert:$}=d.useContext(Zt),M=C("alert",r),[P,I,O]=PAe(M),A=B=>{var U;k(!0),(U=e.onClose)===null||U===void 0||U.call(e,B)},R=d.useMemo(()=>e.type!==void 0?e.type:a?"warning":"info",[e.type,a]),j=d.useMemo(()=>typeof m=="object"&&m.closeIcon||g?!0:typeof m=="boolean"?m:v!==!1&&v!==null&&v!==void 0?!0:!!($!=null&&$.closable),[g,v,m,$==null?void 0:$.closable]),N=a&&h===void 0?!0:h,D=Ee(M,`${M}-${R}`,{[`${M}-with-description`]:!!n,[`${M}-no-icon`]:!N,[`${M}-banner`]:!!a,[`${M}-rtl`]:E==="rtl"},$==null?void 0:$.className,o,s,O,I),V=Bi(w,{aria:!0,data:!0}),F=d.useMemo(()=>{var B,U;return typeof m=="object"&&m.closeIcon?m.closeIcon:g||(v!==void 0?v:typeof($==null?void 0:$.closable)=="object"&&(!((B=$==null?void 0:$.closable)===null||B===void 0)&&B.closeIcon)?(U=$==null?void 0:$.closable)===null||U===void 0?void 0:U.closeIcon:$==null?void 0:$.closeIcon)},[v,m,g,$==null?void 0:$.closeIcon]),K=d.useMemo(()=>{const B=m??($==null?void 0:$.closable);return typeof B=="object"?wG(B,["closeIcon"]):{}},[m,$==null?void 0:$.closable]);return P(d.createElement(ka,{visible:!_,motionName:`${M}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:B=>({maxHeight:B.offsetHeight}),onLeaveEnd:p},(B,U)=>{let{className:Z,style:ee}=B;return d.createElement("div",Object.assign({id:b,ref:va(S,U),"data-show":!_,className:Ee(D,Z),style:Object.assign(Object.assign(Object.assign({},$==null?void 0:$.style),l),ee),onMouseEnter:c,onMouseLeave:u,onClick:f,role:"alert"},V),N?d.createElement(IAe,{description:n,icon:e.icon,prefixCls:M,type:R}):null,d.createElement("div",{className:`${M}-content`},i?d.createElement("div",{className:`${M}-message`},i):null,n?d.createElement("div",{className:`${M}-description`},n):null),y?d.createElement("div",{className:`${M}-action`},y):null,d.createElement(RAe,{isClosable:j,prefixCls:M,closeIcon:F,handleClose:A,ariaProps:K}))}))});function jAe(e,t,n){return t=dg(t),Pde(e,BE()?Reflect.construct(t,n||[],dg(e).constructor):t.apply(e,n))}let NAe=function(e){function t(){var n;return Dr(this,t),n=jAe(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Eo(t,e),Fr(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,description:i,id:a,children:o}=this.props,{error:s,info:l}=this.state,c=(l==null?void 0:l.componentStack)||null,u=typeof r>"u"?(s||"").toString():r,f=typeof i>"u"?c:i;return s?d.createElement(epe,{id:a,type:"error",message:u,description:d.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):o}}])}(d.Component);const QE=epe;QE.ErrorBoundary=NAe;const xG=e=>typeof e=="object"&&e!=null&&e.nodeType===1,SG=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",v9=(e,t)=>{if(e.clientHeight{const i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,AAe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},CG=(e,t)=>{var n,r,i,a;if(typeof document>"u")return[];const{scrollMode:o,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:j=>j!==c;if(!xG(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let m=e;for(;xG(m)&&f(m);){if(m=AAe(m),m===p){h.push(m);break}m!=null&&m===document.body&&v9(m)&&!v9(document.documentElement)||m!=null&&v9(m,u)&&h.push(m)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,{scrollX:y,scrollY:b}=window,{height:w,width:_,top:k,right:S,bottom:C,left:E}=e.getBoundingClientRect(),{top:$,right:M,bottom:P,left:I}=(j=>{const N=window.getComputedStyle(j);return{top:parseFloat(N.scrollMarginTop)||0,right:parseFloat(N.scrollMarginRight)||0,bottom:parseFloat(N.scrollMarginBottom)||0,left:parseFloat(N.scrollMarginLeft)||0}})(e);let O=s==="start"||s==="nearest"?k-$:s==="end"?C+P:k+w/2-$+P,A=l==="center"?E+_/2-I+M:l==="end"?S+M:E-I;const R=[];for(let j=0;j=0&&E>=0&&C<=v&&S<=g&&k>=F&&C<=B&&E>=U&&S<=K)return R;const Z=getComputedStyle(N),ee=parseInt(Z.borderLeftWidth,10),ie=parseInt(Z.borderTopWidth,10),Y=parseInt(Z.borderRightWidth,10),X=parseInt(Z.borderBottomWidth,10);let ae=0,oe=0;const le="offsetWidth"in N?N.offsetWidth-N.clientWidth-ee-Y:0,ce="offsetHeight"in N?N.offsetHeight-N.clientHeight-ie-X:0,pe="offsetWidth"in N?N.offsetWidth===0?0:V/N.offsetWidth:0,me="offsetHeight"in N?N.offsetHeight===0?0:D/N.offsetHeight:0;if(p===N)ae=s==="start"?O:s==="end"?O-v:s==="nearest"?mS(b,b+v,v,ie,X,b+O,b+O+w,w):O-v/2,oe=l==="start"?A:l==="center"?A-g/2:l==="end"?A-g:mS(y,y+g,g,ee,Y,y+A,y+A+_,_),ae=Math.max(0,ae+b),oe=Math.max(0,oe+y);else{ae=s==="start"?O-F-ie:s==="end"?O-B+X+ce:s==="nearest"?mS(F,B,D,ie,X+ce,O,O+w,w):O-(F+D/2)+ce/2,oe=l==="start"?A-U-ee:l==="center"?A-(U+V/2)+le/2:l==="end"?A-K+Y+le:mS(U,K,V,ee,Y+le,A,A+_,_);const{scrollLeft:re,scrollTop:fe}=N;ae=me===0?0:Math.max(0,Math.min(fe+ae/me,N.scrollHeight-D/me+ce)),oe=pe===0?0:Math.max(0,Math.min(re+oe/pe,N.scrollWidth-V/pe+le)),O+=fe-ae,A+=re-oe}R.push({el:N,top:ae,left:oe})}return R},DAe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function FAe(e,t){if(!e.isConnected||!(i=>{let a=i;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(i=>{const a=window.getComputedStyle(i);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(CG(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:a,left:o}of CG(e,DAe(t))){const s=a-n.top+n.bottom,l=o-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}const qr=e=>{const[,,,,t]=$a();return t?`${e}-css-var`:""};var gt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=gt.F1&&n<=gt.F12)return!1;switch(n){case gt.ALT:case gt.CAPS_LOCK:case gt.CONTEXT_MENU:case gt.CTRL:case gt.DOWN:case gt.END:case gt.ESC:case gt.HOME:case gt.INSERT:case gt.LEFT:case gt.MAC_FF_META:case gt.META:case gt.NUMLOCK:case gt.NUM_CENTER:case gt.PAGE_DOWN:case gt.PAGE_UP:case gt.PAUSE:case gt.PRINT_SCREEN:case gt.RIGHT:case gt.SHIFT:case gt.UP:case gt.WIN_KEY:case gt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=gt.ZERO&&t<=gt.NINE||t>=gt.NUM_ZERO&&t<=gt.NUM_MULTIPLY||t>=gt.A&&t<=gt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case gt.SPACE:case gt.QUESTION_MARK:case gt.NUM_PLUS:case gt.NUM_MINUS:case gt.NUM_PERIOD:case gt.NUM_DIVISION:case gt.SEMICOLON:case gt.DASH:case gt.EQUALS:case gt.COMMA:case gt.PERIOD:case gt.SLASH:case gt.APOSTROPHE:case gt.SINGLE_QUOTE:case gt.OPEN_SQUARE_BRACKET:case gt.BACKSLASH:case gt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},tpe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,a=e.duration,o=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,p=e.closable,h=e.closeIcon,m=h===void 0?"x":h,g=e.props,v=e.onClick,y=e.onNoticeClose,b=e.times,w=e.hovering,_=d.useState(!1),k=Te(_,2),S=k[0],C=k[1],E=d.useState(0),$=Te(E,2),M=$[0],P=$[1],I=d.useState(0),O=Te(I,2),A=O[0],R=O[1],j=w||S,N=o>0&&s,D=function(){y(u)},V=function(ee){(ee.key==="Enter"||ee.code==="Enter"||ee.keyCode===gt.ENTER)&&D()};d.useEffect(function(){if(!j&&o>0){var Z=Date.now()-A,ee=setTimeout(function(){D()},o*1e3-A);return function(){c&&clearTimeout(ee),R(Date.now()-Z)}}},[o,j,b]),d.useEffect(function(){if(!j&&N&&(c||A===0)){var Z=performance.now(),ee,ie=function Y(){cancelAnimationFrame(ee),ee=requestAnimationFrame(function(X){var ae=X+A-Z,oe=Math.min(ae/(o*1e3),1);P(oe*100),oe<1&&Y()})};return ie(),function(){c&&cancelAnimationFrame(ee)}}},[o,A,j,N,b]);var F=d.useMemo(function(){return Kt(p)==="object"&&p!==null?p:p?{closeIcon:m}:{}},[p,m]),K=Bi(F,!0),B=100-(!M||M<0?0:M>100?100:M),U="".concat(n,"-notice");return d.createElement("div",tt({},g,{ref:t,className:Ee(U,i,ne({},"".concat(U,"-closable"),p)),style:r,onMouseEnter:function(ee){var ie;C(!0),g==null||(ie=g.onMouseEnter)===null||ie===void 0||ie.call(g,ee)},onMouseLeave:function(ee){var ie;C(!1),g==null||(ie=g.onMouseLeave)===null||ie===void 0||ie.call(g,ee)},onClick:v}),d.createElement("div",{className:"".concat(U,"-content")},f),p&&d.createElement("a",tt({tabIndex:0,className:"".concat(U,"-close"),onKeyDown:V,"aria-label":"Close"},K,{onClick:function(ee){ee.preventDefault(),ee.stopPropagation(),D()}}),F.closeIcon),N&&d.createElement("progress",{className:"".concat(U,"-progress"),max:"100",value:B},B+"%"))}),npe=te.createContext({}),rpe=function(t){var n=t.children,r=t.classNames;return te.createElement(npe.Provider,{value:{classNames:r}},n)},_G=8,kG=3,EG=16,LAe=function(t){var n={offset:_G,threshold:kG,gap:EG};if(t&&Kt(t)==="object"){var r,i,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:_G,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:kG,n.gap=(a=t.gap)!==null&&a!==void 0?a:EG}return[!!t,n]},BAe=["className","style","classNames","styles"],zAe=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,a=t.className,o=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=d.useContext(npe),p=f.classNames,h=d.useRef({}),m=d.useState(null),g=Te(m,2),v=g[0],y=g[1],b=d.useState([]),w=Te(b,2),_=w[0],k=w[1],S=n.map(function(j){return{config:j,key:String(j.key)}}),C=LAe(u),E=Te(C,2),$=E[0],M=E[1],P=M.offset,I=M.threshold,O=M.gap,A=$&&(_.length>0||S.length<=I),R=typeof s=="function"?s(r):s;return d.useEffect(function(){$&&_.length>1&&k(function(j){return j.filter(function(N){return S.some(function(D){var V=D.key;return N===V})})})},[_,S,$]),d.useEffect(function(){var j;if($&&h.current[(j=S[S.length-1])===null||j===void 0?void 0:j.key]){var N;y(h.current[(N=S[S.length-1])===null||N===void 0?void 0:N.key])}},[S,$]),te.createElement(XE,tt({key:r,className:Ee(i,"".concat(i,"-").concat(r),p==null?void 0:p.list,a,ne(ne({},"".concat(i,"-stack"),!!$),"".concat(i,"-stack-expanded"),A)),style:o,keys:S,motionAppear:!0},R,{onAllRemoved:function(){l(r)}}),function(j,N){var D=j.config,V=j.className,F=j.style,K=j.index,B=D,U=B.key,Z=B.times,ee=String(U),ie=D,Y=ie.className,X=ie.style,ae=ie.classNames,oe=ie.styles,le=Ut(ie,BAe),ce=S.findIndex(function(ye){return ye.key===ee}),pe={};if($){var me=S.length-1-(ce>-1?ce:K-1),re=r==="top"||r==="bottom"?"-50%":"0";if(me>0){var fe,ve,$e;pe.height=A?(fe=h.current[ee])===null||fe===void 0?void 0:fe.offsetHeight:v==null?void 0:v.offsetHeight;for(var Ce=0,be=0;be-1?h.current[ee]=Oe:delete h.current[ee]},prefixCls:i,classNames:ae,styles:oe,className:Ee(Y,p==null?void 0:p.notice),style:X,times:Z,key:U,eventKey:U,onNoticeClose:c,hovering:$&&_.length>0})))})},HAe=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,a=e.motion,o=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,p=d.useState([]),h=Te(p,2),m=h[0],g=h[1],v=function($){var M,P=m.find(function(I){return I.key===$});P==null||(M=P.onClose)===null||M===void 0||M.call(P),g(function(I){return I.filter(function(O){return O.key!==$})})};d.useImperativeHandle(t,function(){return{open:function($){g(function(M){var P=ct(M),I=P.findIndex(function(R){return R.key===$.key}),O=q({},$);if(I>=0){var A;O.times=(((A=M[I])===null||A===void 0?void 0:A.times)||0)+1,P[I]=O}else O.times=0,P.push(O);return o>0&&P.length>o&&(P=P.slice(-o)),P})},close:function($){v($)},destroy:function(){g([])}}});var y=d.useState({}),b=Te(y,2),w=b[0],_=b[1];d.useEffect(function(){var E={};m.forEach(function($){var M=$.placement,P=M===void 0?"topRight":M;P&&(E[P]=E[P]||[],E[P].push($))}),Object.keys(w).forEach(function($){E[$]=E[$]||[]}),_(E)},[m]);var k=function($){_(function(M){var P=q({},M),I=P[$]||[];return I.length||delete P[$],P})},S=d.useRef(!1);if(d.useEffect(function(){Object.keys(w).length>0?S.current=!0:S.current&&(c==null||c(),S.current=!1)},[w]),!i)return null;var C=Object.keys(w);return Ka.createPortal(d.createElement(d.Fragment,null,C.map(function(E){var $=w[E],M=d.createElement(zAe,{key:E,configList:$,placement:E,prefixCls:r,className:s==null?void 0:s(E),style:l==null?void 0:l(E),motion:a,onNoticeClose:v,onAllNoticeRemoved:k,stack:u});return f?f(M,{prefixCls:r,key:E}):M})),i)}),UAe=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],WAe=function(){return document.body},$G=0;function VAe(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?WAe:t,r=e.motion,i=e.prefixCls,a=e.maxCount,o=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=Ut(e,UAe),p=d.useState(),h=Te(p,2),m=h[0],g=h[1],v=d.useRef(),y=d.createElement(HAe,{container:m,ref:v,prefixCls:i,motion:r,maxCount:a,className:o,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),b=d.useState([]),w=Te(b,2),_=w[0],k=w[1],S=d.useMemo(function(){return{open:function(E){var $=VAe(f,E);($.key===null||$.key===void 0)&&($.key="rc-notification-".concat($G),$G+=1),k(function(M){return[].concat(ct(M),[{type:"open",config:$}])})},close:function(E){k(function($){return[].concat(ct($),[{type:"close",key:E}])})},destroy:function(){k(function(E){return[].concat(ct(E),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){g(n())}),d.useEffect(function(){v.current&&_.length&&(_.forEach(function(C){switch(C.type){case"open":v.current.open(C.config);break;case"close":v.current.close(C.key);break;case"destroy":v.current.destroy();break}}),k(function(C){return C.filter(function(E){return!_.includes(E)})}))},[_]),[S,y]}var qAe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},KAe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:qAe}))},pu=d.forwardRef(KAe);const m4=te.createContext(void 0),vp=100,GAe=10,VL=vp*GAe,ape={Modal:vp,Drawer:vp,Popover:vp,Popconfirm:vp,Tooltip:vp,Tour:vp,FloatButton:vp},YAe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function XAe(e){return e in ape}const _c=(e,t)=>{const[,n]=$a(),r=te.useContext(m4),i=XAe(e);let a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+ape[e]:o+=YAe[e],a=[r===void 0?t:o,o]}return a},ZAe=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:a,colorError:o,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:p,paddingXS:h,borderRadiusLG:m,zIndexPopup:g,contentPadding:v,contentBg:y}=e,b=`${t}-notice`,w=new ir("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),_=new ir("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),k={padding:h,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:c},[`${b}-content`]:{display:"inline-block",padding:v,background:y,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:o},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, + margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:h,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:p,fontSize:o},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},TAe=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:a,colorWarningBorder:o,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:f,colorInfoBorder:p,colorInfoBg:h}=e;return{[t]:{"&-success":gS(i,r,n,e,t),"&-info":gS(h,p,f,e,t),"&-warning":gS(s,o,a,e,t),"&-error":Object.assign(Object.assign({},gS(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},PAe=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:o,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:a,lineHeight:Me(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},OAe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),RAe=Jn("Alert",e=>[MAe(e),TAe(e),PAe(e)],OAe);var CG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{icon:t,prefixCls:n,type:r}=e,i=IAe[r]||null;return t?qL(t,d.createElement("span",{className:`${n}-icon`},t),()=>({className:Ee(`${n}-icon`,t.props.className)})):d.createElement(i,{className:`${n}-icon`})},NAe=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:a}=e,o=r===!0||r===void 0?d.createElement(Eu,null):r;return t?d.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},a),o):null},ipe=d.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,banner:a,className:o,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:u,onClick:f,afterClose:p,showIcon:h,closable:m,closeText:g,closeIcon:v,action:y,id:w}=e,b=CG(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[C,k]=d.useState(!1),S=d.useRef(null);d.useImperativeHandle(t,()=>({nativeElement:S.current}));const{getPrefixCls:_,direction:E,alert:$}=d.useContext(Xt),M=_("alert",r),[P,R,O]=RAe(M),j=B=>{var U;k(!0),(U=e.onClose)===null||U===void 0||U.call(e,B)},I=d.useMemo(()=>e.type!==void 0?e.type:a?"warning":"info",[e.type,a]),A=d.useMemo(()=>typeof m=="object"&&m.closeIcon||g?!0:typeof m=="boolean"?m:v!==!1&&v!==null&&v!==void 0?!0:!!($!=null&&$.closable),[g,v,m,$==null?void 0:$.closable]),N=a&&h===void 0?!0:h,F=Ee(M,`${M}-${I}`,{[`${M}-with-description`]:!!n,[`${M}-no-icon`]:!N,[`${M}-banner`]:!!a,[`${M}-rtl`]:E==="rtl"},$==null?void 0:$.className,o,s,O,R),K=Fi(b,{aria:!0,data:!0}),L=d.useMemo(()=>{var B,U;return typeof m=="object"&&m.closeIcon?m.closeIcon:g||(v!==void 0?v:typeof($==null?void 0:$.closable)=="object"&&(!((B=$==null?void 0:$.closable)===null||B===void 0)&&B.closeIcon)?(U=$==null?void 0:$.closable)===null||U===void 0?void 0:U.closeIcon:$==null?void 0:$.closeIcon)},[v,m,g,$==null?void 0:$.closeIcon]),V=d.useMemo(()=>{const B=m??($==null?void 0:$.closable);return typeof B=="object"?CG(B,["closeIcon"]):{}},[m,$==null?void 0:$.closable]);return P(d.createElement(Ca,{visible:!C,motionName:`${M}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:B=>({maxHeight:B.offsetHeight}),onLeaveEnd:p},(B,U)=>{let{className:Y,style:ee}=B;return d.createElement("div",Object.assign({id:w,ref:ga(S,U),"data-show":!C,className:Ee(F,Y),style:Object.assign(Object.assign(Object.assign({},$==null?void 0:$.style),l),ee),onMouseEnter:c,onMouseLeave:u,onClick:f,role:"alert"},K),N?d.createElement(jAe,{description:n,icon:e.icon,prefixCls:M,type:I}):null,d.createElement("div",{className:`${M}-content`},i?d.createElement("div",{className:`${M}-message`},i):null,n?d.createElement("div",{className:`${M}-description`},n):null),y?d.createElement("div",{className:`${M}-action`},y):null,d.createElement(NAe,{isClosable:A,prefixCls:M,closeIcon:L,handleClose:j,ariaProps:V}))}))});function AAe(e,t,n){return t=fg(t),jde(e,zE()?Reflect.construct(t,n||[],fg(e).constructor):t.apply(e,n))}let DAe=function(e){function t(){var n;return Ar(this,t),n=AAe(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return $o(t,e),Dr(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,description:i,id:a,children:o}=this.props,{error:s,info:l}=this.state,c=(l==null?void 0:l.componentStack)||null,u=typeof r>"u"?(s||"").toString():r,f=typeof i>"u"?c:i;return s?d.createElement(ipe,{id:a,type:"error",message:u,description:d.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):o}}])}(d.Component);const JE=ipe;JE.ErrorBoundary=DAe;const _G=e=>typeof e=="object"&&e!=null&&e.nodeType===1,kG=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",w9=(e,t)=>{if(e.clientHeight{const i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,FAe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},EG=(e,t)=>{var n,r,i,a;if(typeof document>"u")return[];const{scrollMode:o,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:A=>A!==c;if(!_G(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let m=e;for(;_G(m)&&f(m);){if(m=FAe(m),m===p){h.push(m);break}m!=null&&m===document.body&&w9(m)&&!w9(document.documentElement)||m!=null&&w9(m,u)&&h.push(m)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,{scrollX:y,scrollY:w}=window,{height:b,width:C,top:k,right:S,bottom:_,left:E}=e.getBoundingClientRect(),{top:$,right:M,bottom:P,left:R}=(A=>{const N=window.getComputedStyle(A);return{top:parseFloat(N.scrollMarginTop)||0,right:parseFloat(N.scrollMarginRight)||0,bottom:parseFloat(N.scrollMarginBottom)||0,left:parseFloat(N.scrollMarginLeft)||0}})(e);let O=s==="start"||s==="nearest"?k-$:s==="end"?_+P:k+b/2-$+P,j=l==="center"?E+C/2-R+M:l==="end"?S+M:E-R;const I=[];for(let A=0;A=0&&E>=0&&_<=v&&S<=g&&k>=L&&_<=B&&E>=U&&S<=V)return I;const Y=getComputedStyle(N),ee=parseInt(Y.borderLeftWidth,10),ie=parseInt(Y.borderTopWidth,10),Z=parseInt(Y.borderRightWidth,10),X=parseInt(Y.borderBottomWidth,10);let ae=0,oe=0;const le="offsetWidth"in N?N.offsetWidth-N.clientWidth-ee-Z:0,ce="offsetHeight"in N?N.offsetHeight-N.clientHeight-ie-X:0,pe="offsetWidth"in N?N.offsetWidth===0?0:K/N.offsetWidth:0,me="offsetHeight"in N?N.offsetHeight===0?0:F/N.offsetHeight:0;if(p===N)ae=s==="start"?O:s==="end"?O-v:s==="nearest"?vS(w,w+v,v,ie,X,w+O,w+O+b,b):O-v/2,oe=l==="start"?j:l==="center"?j-g/2:l==="end"?j-g:vS(y,y+g,g,ee,Z,y+j,y+j+C,C),ae=Math.max(0,ae+w),oe=Math.max(0,oe+y);else{ae=s==="start"?O-L-ie:s==="end"?O-B+X+ce:s==="nearest"?vS(L,B,F,ie,X+ce,O,O+b,b):O-(L+F/2)+ce/2,oe=l==="start"?j-U-ee:l==="center"?j-(U+K/2)+le/2:l==="end"?j-V+Z+le:vS(U,V,K,ee,Z+le,j,j+C,C);const{scrollLeft:re,scrollTop:fe}=N;ae=me===0?0:Math.max(0,Math.min(fe+ae/me,N.scrollHeight-F/me+ce)),oe=pe===0?0:Math.max(0,Math.min(re+oe/pe,N.scrollWidth-K/pe+le)),O+=fe-ae,j+=re-oe}I.push({el:N,top:ae,left:oe})}return I},LAe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function BAe(e,t){if(!e.isConnected||!(i=>{let a=i;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(i=>{const a=window.getComputedStyle(i);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(EG(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:a,left:o}of EG(e,LAe(t))){const s=a-n.top+n.bottom,l=o-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}const qr=e=>{const[,,,,t]=ka();return t?`${e}-css-var`:""};var mt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=mt.F1&&n<=mt.F12)return!1;switch(n){case mt.ALT:case mt.CAPS_LOCK:case mt.CONTEXT_MENU:case mt.CTRL:case mt.DOWN:case mt.END:case mt.ESC:case mt.HOME:case mt.INSERT:case mt.LEFT:case mt.MAC_FF_META:case mt.META:case mt.NUMLOCK:case mt.NUM_CENTER:case mt.PAGE_DOWN:case mt.PAGE_UP:case mt.PAUSE:case mt.PRINT_SCREEN:case mt.RIGHT:case mt.SHIFT:case mt.UP:case mt.WIN_KEY:case mt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=mt.ZERO&&t<=mt.NINE||t>=mt.NUM_ZERO&&t<=mt.NUM_MULTIPLY||t>=mt.A&&t<=mt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case mt.SPACE:case mt.QUESTION_MARK:case mt.NUM_PLUS:case mt.NUM_MINUS:case mt.NUM_PERIOD:case mt.NUM_DIVISION:case mt.SEMICOLON:case mt.DASH:case mt.EQUALS:case mt.COMMA:case mt.PERIOD:case mt.SLASH:case mt.APOSTROPHE:case mt.SINGLE_QUOTE:case mt.OPEN_SQUARE_BRACKET:case mt.BACKSLASH:case mt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ape=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,a=e.duration,o=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,p=e.closable,h=e.closeIcon,m=h===void 0?"x":h,g=e.props,v=e.onClick,y=e.onNoticeClose,w=e.times,b=e.hovering,C=d.useState(!1),k=Te(C,2),S=k[0],_=k[1],E=d.useState(0),$=Te(E,2),M=$[0],P=$[1],R=d.useState(0),O=Te(R,2),j=O[0],I=O[1],A=b||S,N=o>0&&s,F=function(){y(u)},K=function(ee){(ee.key==="Enter"||ee.code==="Enter"||ee.keyCode===mt.ENTER)&&F()};d.useEffect(function(){if(!A&&o>0){var Y=Date.now()-j,ee=setTimeout(function(){F()},o*1e3-j);return function(){c&&clearTimeout(ee),I(Date.now()-Y)}}},[o,A,w]),d.useEffect(function(){if(!A&&N&&(c||j===0)){var Y=performance.now(),ee,ie=function Z(){cancelAnimationFrame(ee),ee=requestAnimationFrame(function(X){var ae=X+j-Y,oe=Math.min(ae/(o*1e3),1);P(oe*100),oe<1&&Z()})};return ie(),function(){c&&cancelAnimationFrame(ee)}}},[o,j,A,N,w]);var L=d.useMemo(function(){return Kt(p)==="object"&&p!==null?p:p?{closeIcon:m}:{}},[p,m]),V=Fi(L,!0),B=100-(!M||M<0?0:M>100?100:M),U="".concat(n,"-notice");return d.createElement("div",tt({},g,{ref:t,className:Ee(U,i,ne({},"".concat(U,"-closable"),p)),style:r,onMouseEnter:function(ee){var ie;_(!0),g==null||(ie=g.onMouseEnter)===null||ie===void 0||ie.call(g,ee)},onMouseLeave:function(ee){var ie;_(!1),g==null||(ie=g.onMouseLeave)===null||ie===void 0||ie.call(g,ee)},onClick:v}),d.createElement("div",{className:"".concat(U,"-content")},f),p&&d.createElement("a",tt({tabIndex:0,className:"".concat(U,"-close"),onKeyDown:K,"aria-label":"Close"},V,{onClick:function(ee){ee.preventDefault(),ee.stopPropagation(),F()}}),L.closeIcon),N&&d.createElement("progress",{className:"".concat(U,"-progress"),max:"100",value:B},B+"%"))}),ope=te.createContext({}),spe=function(t){var n=t.children,r=t.classNames;return te.createElement(ope.Provider,{value:{classNames:r}},n)},$G=8,MG=3,TG=16,zAe=function(t){var n={offset:$G,threshold:MG,gap:TG};if(t&&Kt(t)==="object"){var r,i,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:$G,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:MG,n.gap=(a=t.gap)!==null&&a!==void 0?a:TG}return[!!t,n]},HAe=["className","style","classNames","styles"],UAe=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,a=t.className,o=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=d.useContext(ope),p=f.classNames,h=d.useRef({}),m=d.useState(null),g=Te(m,2),v=g[0],y=g[1],w=d.useState([]),b=Te(w,2),C=b[0],k=b[1],S=n.map(function(A){return{config:A,key:String(A.key)}}),_=zAe(u),E=Te(_,2),$=E[0],M=E[1],P=M.offset,R=M.threshold,O=M.gap,j=$&&(C.length>0||S.length<=R),I=typeof s=="function"?s(r):s;return d.useEffect(function(){$&&C.length>1&&k(function(A){return A.filter(function(N){return S.some(function(F){var K=F.key;return N===K})})})},[C,S,$]),d.useEffect(function(){var A;if($&&h.current[(A=S[S.length-1])===null||A===void 0?void 0:A.key]){var N;y(h.current[(N=S[S.length-1])===null||N===void 0?void 0:N.key])}},[S,$]),te.createElement(ZE,tt({key:r,className:Ee(i,"".concat(i,"-").concat(r),p==null?void 0:p.list,a,ne(ne({},"".concat(i,"-stack"),!!$),"".concat(i,"-stack-expanded"),j)),style:o,keys:S,motionAppear:!0},I,{onAllRemoved:function(){l(r)}}),function(A,N){var F=A.config,K=A.className,L=A.style,V=A.index,B=F,U=B.key,Y=B.times,ee=String(U),ie=F,Z=ie.className,X=ie.style,ae=ie.classNames,oe=ie.styles,le=Ht(ie,HAe),ce=S.findIndex(function(ye){return ye.key===ee}),pe={};if($){var me=S.length-1-(ce>-1?ce:V-1),re=r==="top"||r==="bottom"?"-50%":"0";if(me>0){var fe,ve,$e;pe.height=j?(fe=h.current[ee])===null||fe===void 0?void 0:fe.offsetHeight:v==null?void 0:v.offsetHeight;for(var Ce=0,be=0;be-1?h.current[ee]=Oe:delete h.current[ee]},prefixCls:i,classNames:ae,styles:oe,className:Ee(Z,p==null?void 0:p.notice),style:X,times:Y,key:U,eventKey:U,onNoticeClose:c,hovering:$&&C.length>0})))})},WAe=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,a=e.motion,o=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,p=d.useState([]),h=Te(p,2),m=h[0],g=h[1],v=function($){var M,P=m.find(function(R){return R.key===$});P==null||(M=P.onClose)===null||M===void 0||M.call(P),g(function(R){return R.filter(function(O){return O.key!==$})})};d.useImperativeHandle(t,function(){return{open:function($){g(function(M){var P=lt(M),R=P.findIndex(function(I){return I.key===$.key}),O=q({},$);if(R>=0){var j;O.times=(((j=M[R])===null||j===void 0?void 0:j.times)||0)+1,P[R]=O}else O.times=0,P.push(O);return o>0&&P.length>o&&(P=P.slice(-o)),P})},close:function($){v($)},destroy:function(){g([])}}});var y=d.useState({}),w=Te(y,2),b=w[0],C=w[1];d.useEffect(function(){var E={};m.forEach(function($){var M=$.placement,P=M===void 0?"topRight":M;P&&(E[P]=E[P]||[],E[P].push($))}),Object.keys(b).forEach(function($){E[$]=E[$]||[]}),C(E)},[m]);var k=function($){C(function(M){var P=q({},M),R=P[$]||[];return R.length||delete P[$],P})},S=d.useRef(!1);if(d.useEffect(function(){Object.keys(b).length>0?S.current=!0:S.current&&(c==null||c(),S.current=!1)},[b]),!i)return null;var _=Object.keys(b);return Va.createPortal(d.createElement(d.Fragment,null,_.map(function(E){var $=b[E],M=d.createElement(UAe,{key:E,configList:$,placement:E,prefixCls:r,className:s==null?void 0:s(E),style:l==null?void 0:l(E),motion:a,onNoticeClose:v,onAllNoticeRemoved:k,stack:u});return f?f(M,{prefixCls:r,key:E}):M})),i)}),VAe=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],qAe=function(){return document.body},PG=0;function KAe(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?qAe:t,r=e.motion,i=e.prefixCls,a=e.maxCount,o=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=Ht(e,VAe),p=d.useState(),h=Te(p,2),m=h[0],g=h[1],v=d.useRef(),y=d.createElement(WAe,{container:m,ref:v,prefixCls:i,motion:r,maxCount:a,className:o,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),w=d.useState([]),b=Te(w,2),C=b[0],k=b[1],S=d.useMemo(function(){return{open:function(E){var $=KAe(f,E);($.key===null||$.key===void 0)&&($.key="rc-notification-".concat(PG),PG+=1),k(function(M){return[].concat(lt(M),[{type:"open",config:$}])})},close:function(E){k(function($){return[].concat(lt($),[{type:"close",key:E}])})},destroy:function(){k(function(E){return[].concat(lt(E),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){g(n())}),d.useEffect(function(){v.current&&C.length&&(C.forEach(function(_){switch(_.type){case"open":v.current.open(_.config);break;case"close":v.current.close(_.key);break;case"destroy":v.current.destroy();break}}),k(function(_){return _.filter(function(E){return!C.includes(E)})}))},[C]),[S,y]}var GAe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},YAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:GAe}))},vu=d.forwardRef(YAe);const v4=te.createContext(void 0),vp=100,XAe=10,KL=vp*XAe,cpe={Modal:vp,Drawer:vp,Popover:vp,Popconfirm:vp,Tooltip:vp,Tour:vp,FloatButton:vp},ZAe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function QAe(e){return e in cpe}const $c=(e,t)=>{const[,n]=ka(),r=te.useContext(v4),i=QAe(e);let a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+cpe[e]:o+=ZAe[e],a=[r===void 0?t:o,o]}return a},JAe=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:a,colorError:o,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:p,paddingXS:h,borderRadiusLG:m,zIndexPopup:g,contentPadding:v,contentBg:y}=e,w=`${t}-notice`,b=new ir("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),C=new ir("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),k={padding:h,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:c},[`${w}-content`]:{display:"inline-block",padding:v,background:y,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:o},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},ar(e)),{color:i,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter - `]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[` + `]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[` ${t}-move-up-appear${t}-move-up-appear-active, ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:_,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},k)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},k),{padding:0,textAlign:"start"})}]},QAe=e=>({zIndexPopup:e.zIndexPopupBase+VL+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),ope=Jn("Message",e=>{const t=Hn(e,{height:150});return[ZAe(t)]},QAe);var JAe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,type:n,icon:r,children:i}=e;return d.createElement("div",{className:Ee(`${t}-custom-content`,`${t}-${n}`)},r||eDe[n],d.createElement("span",null,i))},tDe=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:a}=e,o=JAe(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(Zt),l=t||s("message"),c=qr(l),[u,f,p]=ope(l,c);return u(d.createElement(tpe,Object.assign({},o,{prefixCls:l,className:Ee(n,f,`${l}-notice-pure-panel`,p,c),eventKey:"pure",duration:null,content:d.createElement(spe,{prefixCls:l,type:r,icon:i},a)})))};function nDe(e,t){return{motionName:t??`${e}-move-up`}}function qL(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t==null||t()};return r.then=(i,a)=>n.then(i,a),r.promise=n,r}var rDe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{children:t,prefixCls:n}=e;const r=qr(n),[i,a,o]=ope(n,r);return i(d.createElement(rpe,{classNames:{list:Ee(a,o,r)}},t))},sDe=(e,t)=>{let{prefixCls:n,key:r}=t;return d.createElement(oDe,{prefixCls:n,key:r},e)},lDe=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=aDe,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:p,direction:h}=d.useContext(Zt),m=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??iDe}),v=()=>Ee({[`${m}-rtl`]:s??h==="rtl"}),y=()=>nDe(m,l),b=d.createElement("span",{className:`${m}-close-x`},d.createElement(Cu,{className:`${m}-close-icon`})),[w,_]=ipe({prefixCls:m,style:g,className:v,motion:y,closable:!1,closeIcon:b,duration:o,getContainer:()=>(i==null?void 0:i())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:sDe});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},w),{prefixCls:m,message:p})),_});let MG=0;function lpe(e){const t=d.useRef(null);return Hg(),[d.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},i=l=>{if(!t.current){const S=()=>{};return S.then=()=>{},S}const{open:c,prefixCls:u,message:f}=t.current,p=`${u}-notice`,{content:h,icon:m,type:g,key:v,className:y,style:b,onClose:w}=l,_=rDe(l,["content","icon","type","key","className","style","onClose"]);let k=v;return k==null&&(MG+=1,k=`antd-message-${MG}`),qL(S=>(c(Object.assign(Object.assign({},_),{key:k,content:d.createElement(spe,{prefixCls:u,type:g,icon:m},h),placement:"top",className:Ee(g&&`${p}-${g}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),onClose:()=>{w==null||w(),S()}})),()=>{r(k)}))},o={open:i,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,p)=>{let h;u&&typeof u=="object"&&"content"in u?h=u:h={content:u};let m,g;typeof f=="function"?g=f:(m=f,g=p);const v=Object.assign(Object.assign({onClose:g,duration:m},h),{type:l});return i(v)};o[l]=c}),o},[]),d.createElement(lDe,Object.assign({key:"message-holder"},e,{ref:t}))]}function cpe(e){return lpe(e)}function cDe(){const[e,t]=d.useState([]),n=d.useCallback(r=>(t(i=>[].concat(ct(i),[r])),()=>{t(i=>i.filter(a=>a!==r))}),[]);return[e,n]}function mr(){mr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(j,N,D){j[N]=D.value},a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(j,N,D){return Object.defineProperty(j,N,{value:D,enumerable:!0,configurable:!0,writable:!0}),j[N]}try{c({},"")}catch{c=function(D,V,F){return D[V]=F}}function u(j,N,D,V){var F=N&&N.prototype instanceof y?N:y,K=Object.create(F.prototype),B=new A(V||[]);return i(K,"_invoke",{value:M(j,D,B)}),K}function f(j,N,D){try{return{type:"normal",arg:j.call(N,D)}}catch(V){return{type:"throw",arg:V}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",m="executing",g="completed",v={};function y(){}function b(){}function w(){}var _={};c(_,o,function(){return this});var k=Object.getPrototypeOf,S=k&&k(k(R([])));S&&S!==n&&r.call(S,o)&&(_=S);var C=w.prototype=y.prototype=Object.create(_);function E(j){["next","throw","return"].forEach(function(N){c(j,N,function(D){return this._invoke(N,D)})})}function $(j,N){function D(F,K,B,U){var Z=f(j[F],j,K);if(Z.type!=="throw"){var ee=Z.arg,ie=ee.value;return ie&&Kt(ie)=="object"&&r.call(ie,"__await")?N.resolve(ie.__await).then(function(Y){D("next",Y,B,U)},function(Y){D("throw",Y,B,U)}):N.resolve(ie).then(function(Y){ee.value=Y,B(ee)},function(Y){return D("throw",Y,B,U)})}U(Z.arg)}var V;i(this,"_invoke",{value:function(K,B){function U(){return new N(function(Z,ee){D(K,B,Z,ee)})}return V=V?V.then(U,U):U()}})}function M(j,N,D){var V=p;return function(F,K){if(V===m)throw Error("Generator is already running");if(V===g){if(F==="throw")throw K;return{value:e,done:!0}}for(D.method=F,D.arg=K;;){var B=D.delegate;if(B){var U=P(B,D);if(U){if(U===v)continue;return U}}if(D.method==="next")D.sent=D._sent=D.arg;else if(D.method==="throw"){if(V===p)throw V=g,D.arg;D.dispatchException(D.arg)}else D.method==="return"&&D.abrupt("return",D.arg);V=m;var Z=f(j,N,D);if(Z.type==="normal"){if(V=D.done?g:h,Z.arg===v)continue;return{value:Z.arg,done:D.done}}Z.type==="throw"&&(V=g,D.method="throw",D.arg=Z.arg)}}}function P(j,N){var D=N.method,V=j.iterator[D];if(V===e)return N.delegate=null,D==="throw"&&j.iterator.return&&(N.method="return",N.arg=e,P(j,N),N.method==="throw")||D!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+D+"' method")),v;var F=f(V,j.iterator,N.arg);if(F.type==="throw")return N.method="throw",N.arg=F.arg,N.delegate=null,v;var K=F.arg;return K?K.done?(N[j.resultName]=K.value,N.next=j.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,v):K:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,v)}function I(j){var N={tryLoc:j[0]};1 in j&&(N.catchLoc=j[1]),2 in j&&(N.finallyLoc=j[2],N.afterLoc=j[3]),this.tryEntries.push(N)}function O(j){var N=j.completion||{};N.type="normal",delete N.arg,j.completion=N}function A(j){this.tryEntries=[{tryLoc:"root"}],j.forEach(I,this),this.reset(!0)}function R(j){if(j||j===""){var N=j[o];if(N)return N.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var D=-1,V=function F(){for(;++D=0;--F){var K=this.tryEntries[F],B=K.completion;if(K.tryLoc==="root")return V("end");if(K.tryLoc<=this.prev){var U=r.call(K,"catchLoc"),Z=r.call(K,"finallyLoc");if(U&&Z){if(this.prev=0;--V){var F=this.tryEntries[V];if(F.tryLoc<=this.prev&&r.call(F,"finallyLoc")&&this.prev=0;--D){var V=this.tryEntries[D];if(V.finallyLoc===N)return this.complete(V.completion,V.afterLoc),O(V),v}},catch:function(N){for(var D=this.tryEntries.length-1;D>=0;--D){var V=this.tryEntries[D];if(V.tryLoc===N){var F=V.completion;if(F.type==="throw"){var K=F.arg;O(V)}return K}}throw Error("illegal catch attempt")},delegateYield:function(N,D,V){return this.delegate={iterator:R(N),resultName:D,nextLoc:V},this.method==="next"&&(this.arg=e),v}},t}function TG(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function ha(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){TG(a,r,i,o,s,"next",l)}function s(l){TG(a,r,i,o,s,"throw",l)}o(void 0)})}}var g4=q({},Voe),uDe=g4.version,y9=g4.render,dDe=g4.unmountComponentAtNode,JE;try{var fDe=Number((uDe||"").split(".")[0]);fDe>=18&&(JE=g4.createRoot)}catch{}function PG(e){var t=g4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Kt(t)==="object"&&(t.usingClientEntryPoint=e)}var p6="__rc_react_root__";function pDe(e,t){PG(!0);var n=t[p6]||JE(t);PG(!1),n.render(e),t[p6]=n}function hDe(e,t){y9==null||y9(e,t)}function mDe(e,t){if(JE){pDe(e,t);return}hDe(e,t)}function gDe(e){return pj.apply(this,arguments)}function pj(){return pj=ha(mr().mark(function e(t){return mr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[p6])===null||i===void 0||i.unmount(),delete t[p6]}));case 1:case"end":return r.stop()}},e)})),pj.apply(this,arguments)}function vDe(e){dDe(e)}function yDe(e){return hj.apply(this,arguments)}function hj(){return hj=ha(mr().mark(function e(t){return mr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(JE===void 0){r.next=2;break}return r.abrupt("return",gDe(t));case 2:vDe(t);case 3:case"end":return r.stop()}},e)})),hj.apply(this,arguments)}const bDe=(e,t)=>(mDe(e,t),()=>yDe(t));let wDe=bDe;function KL(){return wDe}const b9=()=>({height:0,opacity:0}),OG=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},xDe=e=>({height:e?e.offsetHeight:0}),w9=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",$0=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:t3}-motion-collapse`,onAppearStart:b9,onEnterStart:b9,onAppearActive:OG,onEnterActive:OG,onLeaveStart:xDe,onLeaveActive:b9,onAppearEnd:w9,onEnterEnd:w9,onLeaveEnd:w9,motionDeadline:500}},so=(e,t,n)=>n!==void 0?n:`${e}-${t}`,v4=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},SDe=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},CDe=Ife("Wave",e=>[SDe(e)]),e8=`${t3}-wave-target`;function x9(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function _De(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return x9(t)?t:x9(n)?n:x9(r)?r:null}function S9(e){return Number.isNaN(e)?0:e}const kDe=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,a=d.useRef(null),o=d.useRef(null);d.useEffect(()=>{o.current=i()},[]);const[s,l]=d.useState(null),[c,u]=d.useState([]),[f,p]=d.useState(0),[h,m]=d.useState(0),[g,v]=d.useState(0),[y,b]=d.useState(0),[w,_]=d.useState(!1),k={left:f,top:h,width:g,height:y,borderRadius:c.map(E=>`${E}px`).join(" ")};s&&(k["--wave-color"]=s);function S(){const E=getComputedStyle(n);l(_De(n));const $=E.position==="static",{borderLeftWidth:M,borderTopWidth:P}=E;p($?n.offsetLeft:S9(-parseFloat(M))),m($?n.offsetTop:S9(-parseFloat(P))),v(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:O,borderBottomLeftRadius:A,borderBottomRightRadius:R}=E;u([I,O,R,A].map(j=>S9(parseFloat(j))))}if(d.useEffect(()=>{if(n){const E=rr(()=>{S(),_(!0)});let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(S),$.observe(n)),()=>{rr.cancel(E),$==null||$.disconnect()}}},[]),!w)return null;const C=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(e8));return d.createElement(ka,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,$)=>{var M,P;if($.deadline||$.propertyName==="opacity"){const I=(M=a.current)===null||M===void 0?void 0:M.parentElement;(P=o.current)===null||P===void 0||P.call(o).then(()=>{I==null||I.remove()})}return!1}},(E,$)=>{let{className:M}=E;return d.createElement("div",{ref:va(a,$),className:Ee(t,M,{"wave-quick":C}),style:k})})},EDe=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild);const a=KL();let o=null;function s(){return o}o=a(d.createElement(kDe,Object.assign({},t,{target:e,registerUnmount:s})),i)},$De=(e,t,n)=>{const{wave:r}=d.useContext(Zt),[,i,a]=$a(),o=Vn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${e8}`)||u,{showEffect:p}=r||{};(p||EDe)(f,{className:t,token:i,component:n,event:c,hashId:a})}),s=d.useRef(null);return c=>{rr.cancel(s.current),s.current=rr(()=>{o(c)})}},y4=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=d.useContext(Zt),a=d.useRef(null),o=i("wave"),[,s]=CDe(o),l=$De(a,Ee(o,s),r);if(te.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const f=p=>{!v4(p.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(p)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!te.isValidElement(t))return t??null;const c=Vf(t)?va(vh(t),a):a;return oa(t,{ref:c})},Hi=e=>{const t=te.useContext(hg);return te.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},MDe=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},TDe=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},PDe=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},upe=Jn("Space",e=>{const t=Hn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[TDe(t),PDe(t),MDe(t)]},()=>({}),{resetStyle:!1});var dpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=d.useContext(t8),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:a,isLastItem:o}=n,s=i==="vertical"?"-vertical-":"-";return Ee(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:o,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},ODe=e=>{let{children:t}=e;return d.createElement(t8.Provider,{value:null},t)},IDe=e=>{var{children:t}=e,n=dpe(e,["children"]);return d.createElement(t8.Provider,{value:n},t)},RDe=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Zt),{size:r,direction:i,block:a,prefixCls:o,className:s,rootClassName:l,children:c}=e,u=dpe(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Hi(w=>r??w),p=t("space-compact",o),[h,m]=upe(p),g=Ee(p,m,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:a,[`${p}-vertical`]:i==="vertical"},s,l),v=d.useContext(t8),y=Zi(c),b=d.useMemo(()=>y.map((w,_)=>{const k=(w==null?void 0:w.key)||`${p}-item-${_}`;return d.createElement(IDe,{key:k,compactSize:f,compactDirection:i,isFirstItem:_===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:_===y.length-1&&(!v||(v==null?void 0:v.isLastItem))},w)}),[r,y,v]);return y.length===0?null:h(d.createElement("div",Object.assign({className:g},u),b))};var jDe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n}=d.useContext(Zt),{prefixCls:r,size:i,className:a}=e,o=jDe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=$a();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=Ee(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return d.createElement(fpe.Provider,{value:i},d.createElement("div",Object.assign({},o,{className:u})))},IG=/^[\u4E00-\u9FA5]{2}$/,mj=IG.test.bind(IG);function GL(e){return e==="danger"?{danger:!0}:{type:e}}function RG(e){return typeof e=="string"}function C9(e){return e==="text"||e==="link"}function ADe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&RG(e.type)&&mj(e.props.children)?oa(e,{children:e.props.children.split("").join(n)}):RG(e)?mj(e)?te.createElement("span",null,e.split("").join(n)):te.createElement("span",null,e):Jfe(e)?te.createElement("span",null,e):e}function DDe(e,t){let n=!1;const r=[];return te.Children.forEach(e,i=>{const a=typeof i,o=a==="string"||a==="number";if(n&&o){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=o}),te.Children.map(r,i=>ADe(i,t))}["default","primary","danger"].concat(ct(vg));const gj=d.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:a}=e,o=Ee(`${a}-icon`,n);return te.createElement("span",{ref:t,className:o,style:r},i)}),jG=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=Ee(`${n}-loading-icon`,r);return te.createElement(gj,{prefixCls:n,className:o,style:i,ref:t},te.createElement(pu,{className:a}))}),_9=()=>({width:0,opacity:0,transform:"scale(0)"}),k9=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),FDe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?te.createElement(jG,{prefixCls:t,className:i,style:a}):te.createElement(ka,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:_9,onAppearActive:k9,onEnterStart:_9,onEnterActive:k9,onLeaveStart:k9,onLeaveActive:_9},(l,c)=>{let{className:u,style:f}=l;const p=Object.assign(Object.assign({},a),f);return te.createElement(jG,{prefixCls:t,className:Ee(i,u),style:p,ref:c})})},NG=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),LDe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},NG(`${t}-primary`,i),NG(`${t}-danger`,a)]}};var BDe=["b"],zDe=["v"],E9=function(t){return Math.round(Number(t||0))},HDe=function(t){if(t instanceof dr)return t;if(t&&Kt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=Ut(n,BDe);return q(q({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},hu=function(e){Eo(n,e);var t=ts(n);function n(r){return Dr(this,n),t.call(this,HDe(r))}return Fr(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),a=E9(i.s*100),o=E9(i.b*100),s=E9(i.h),l=i.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(o,"%)"),u="hsba(".concat(s,", ").concat(a,"%, ").concat(o,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var i=this.toHsv(),a=i.v,o=Ut(i,zDe);return q(q({},o),{},{b:a,a:this.a})}}]),n}(dr),UDe="rc-color-picker",Tv=function(t){return t instanceof hu?t:new hu(t)},WDe=Tv("#1677ff"),ppe=function(t){var n=t.offset,r=t.targetRef,i=t.containerRef,a=t.color,o=t.type,s=i.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),f=u.width,p=u.height,h=f/2,m=p/2,g=(n.x+h)/l,v=1-(n.y+m)/c,y=a.toHsb(),b=g,w=(n.x+h)/l*360;if(o)switch(o){case"hue":return Tv(q(q({},y),{},{h:w<=0?0:w}));case"alpha":return Tv(q(q({},y),{},{a:b<=0?0:b}))}return Tv({h:y.h,s:g<=0?0:g,b:v>=1?1:v,a:y.a})},hpe=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},YL=function(t){var n=t.color,r=t.prefixCls,i=t.className,a=t.style,o=t.onClick,s="".concat(r,"-color-block");return te.createElement("div",{className:Ee(s,i),style:a,onClick:o},te.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function VDe(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function mpe(e){var t=e.targetRef,n=e.containerRef,r=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,o=e.calculate,s=e.color,l=e.disabledDrag,c=d.useState({x:0,y:0}),u=Te(c,2),f=u[0],p=u[1],h=d.useRef(null),m=d.useRef(null);d.useEffect(function(){p(o())},[s]),d.useEffect(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",m.current),h.current=null,m.current=null}},[]);var g=function(_){var k=VDe(_),S=k.pageX,C=k.pageY,E=n.current.getBoundingClientRect(),$=E.x,M=E.y,P=E.width,I=E.height,O=t.current.getBoundingClientRect(),A=O.width,R=O.height,j=A/2,N=R/2,D=Math.max(0,Math.min(S-$,P))-j,V=Math.max(0,Math.min(C-M,I))-N,F={x:D,y:r==="x"?f.y:V};if(A===0&&R===0||A!==R)return!1;i==null||i(F)},v=function(_){_.preventDefault(),g(_)},y=function(_){_.preventDefault(),document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",m.current),h.current=null,m.current=null,a==null||a()},b=function(_){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),!l&&(g(_),document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),document.addEventListener("touchmove",v),document.addEventListener("touchend",y),h.current=v,m.current=y)};return[f,b]}var gpe=function(t){var n=t.size,r=n===void 0?"default":n,i=t.color,a=t.prefixCls;return te.createElement("div",{className:Ee("".concat(a,"-handler"),ne({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:i}})},vpe=function(t){var n=t.children,r=t.style,i=t.prefixCls;return te.createElement("div",{className:"".concat(i,"-palette"),style:q({position:"relative"},r)},n)},ype=d.forwardRef(function(e,t){var n=e.children,r=e.x,i=e.y;return te.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),qDe=function(t){var n=t.color,r=t.onChange,i=t.prefixCls,a=t.onChangeComplete,o=t.disabled,s=d.useRef(),l=d.useRef(),c=d.useRef(n),u=Vn(function(g){var v=ppe({offset:g,targetRef:l,containerRef:s,color:n});c.current=v,r(v)}),f=mpe({color:n,containerRef:s,targetRef:l,calculate:function(){return hpe(n)},onDragChange:u,onDragChangeComplete:function(){return a==null?void 0:a(c.current)},disabledDrag:o}),p=Te(f,2),h=p[0],m=p[1];return te.createElement("div",{ref:s,className:"".concat(i,"-select"),onMouseDown:m,onTouchStart:m},te.createElement(vpe,{prefixCls:i},te.createElement(ype,{x:h.x,y:h.y,ref:l},te.createElement(gpe,{color:n.toRgbString(),prefixCls:i})),te.createElement("div",{className:"".concat(i,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},KDe=function(t,n){var r=In(t,{value:n}),i=Te(r,2),a=i[0],o=i[1],s=d.useMemo(function(){return Tv(a)},[a]);return[s,o]},GDe=function(t){var n=t.colors,r=t.children,i=t.direction,a=i===void 0?"to right":i,o=t.type,s=t.prefixCls,l=d.useMemo(function(){return n.map(function(c,u){var f=Tv(c);return o==="alpha"&&u===n.length-1&&(f=new hu(f.setA(1))),f.toRgbString()}).join(",")},[n,o]);return te.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(l,")")}},r)},YDe=function(t){var n=t.prefixCls,r=t.colors,i=t.disabled,a=t.onChange,o=t.onChangeComplete,s=t.color,l=t.type,c=d.useRef(),u=d.useRef(),f=d.useRef(s),p=function(k){return l==="hue"?k.getHue():k.a*100},h=Vn(function(_){var k=ppe({offset:_,targetRef:u,containerRef:c,color:s,type:l});f.current=k,a(p(k))}),m=mpe({color:s,targetRef:u,containerRef:c,calculate:function(){return hpe(s,l)},onDragChange:h,onDragChangeComplete:function(){o(p(f.current))},direction:"x",disabledDrag:i}),g=Te(m,2),v=g[0],y=g[1],b=te.useMemo(function(){if(l==="hue"){var _=s.toHsb();_.s=1,_.b=1,_.a=1;var k=new hu(_);return k}return s},[s,l]),w=te.useMemo(function(){return r.map(function(_){return"".concat(_.color," ").concat(_.percent,"%")})},[r]);return te.createElement("div",{ref:c,className:Ee("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:y,onTouchStart:y},te.createElement(vpe,{prefixCls:n},te.createElement(ype,{x:v.x,y:v.y,ref:u},te.createElement(gpe,{size:"small",color:b.toHexString(),prefixCls:n})),te.createElement(GDe,{colors:w,type:l,prefixCls:n})))};function XDe(e){return d.useMemo(function(){var t=e||{},n=t.slider;return[n||YDe]},[e])}var ZDe=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],QDe=d.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,i=e.prefixCls,a=i===void 0?UDe:i,o=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,f=e.disabledAlpha,p=f===void 0?!1:f,h=e.disabled,m=h===void 0?!1:h,g=e.components,v=XDe(g),y=Te(v,1),b=y[0],w=KDe(r||WDe,n),_=Te(w,2),k=_[0],S=_[1],C=d.useMemo(function(){return k.setA(1).toRgbString()},[k]),E=function(V,F){n||S(V),o==null||o(V,F)},$=function(V){return new hu(k.setHue(V))},M=function(V){return new hu(k.setA(V/100))},P=function(V){E($(V),{type:"hue",value:V})},I=function(V){E(M(V),{type:"alpha",value:V})},O=function(V){s&&s($(V))},A=function(V){s&&s(M(V))},R=Ee("".concat(a,"-panel"),l,ne({},"".concat(a,"-panel-disabled"),m)),j={prefixCls:a,disabled:m,color:k},N=te.createElement(te.Fragment,null,te.createElement(qDe,tt({onChange:E},j,{onChangeComplete:s})),te.createElement("div",{className:"".concat(a,"-slider-container")},te.createElement("div",{className:Ee("".concat(a,"-slider-group"),ne({},"".concat(a,"-slider-group-disabled-alpha"),p))},te.createElement(b,tt({},j,{type:"hue",colors:ZDe,min:0,max:359,value:k.getHue(),onChange:P,onChangeComplete:O})),!p&&te.createElement(b,tt({},j,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:C}],min:0,max:100,value:k.a*100,onChange:I,onChangeComplete:A}))),te.createElement(YL,{color:k.toRgbString(),prefixCls:a})));return te.createElement("div",{className:R,style:c,ref:t},typeof u=="function"?u(N):N)});const y2=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",JDe=(e,t)=>e?y2(e,t):"";let Cl=function(){function e(t){Dr(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:a,percent:o}=i;return{color:new e(a),percent:o}}),this.metaColor=new hu(this.colors[0].color.metaColor)):this.metaColor=new hu(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Fr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return JDe(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const a=n.colors[i];return r.percent===a.percent&&r.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])}();var eFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},tFe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:eFe}))},vc=d.forwardRef(tFe),bpe=te.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,a=e.style,o=e.children,s=e.isActive,l=e.role,c=e.classNames,u=e.styles,f=te.useState(s||r),p=Te(f,2),h=p[0],m=p[1];return te.useEffect(function(){(r||s)&&m(!0)},[r,s]),h?te.createElement("div",{ref:t,className:Ee("".concat(n,"-content"),ne(ne({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:a,role:l},te.createElement("div",{className:Ee("".concat(n,"-content-box"),c==null?void 0:c.body),style:u==null?void 0:u.body},o)):null});bpe.displayName="PanelContent";var nFe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],wpe=te.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,i=e.headerClass,a=e.isActive,o=e.onItemClick,s=e.forceRender,l=e.className,c=e.classNames,u=c===void 0?{}:c,f=e.styles,p=f===void 0?{}:f,h=e.prefixCls,m=e.collapsible,g=e.accordion,v=e.panelKey,y=e.extra,b=e.header,w=e.expandIcon,_=e.openMotion,k=e.destroyInactivePanel,S=e.children,C=Ut(e,nFe),E=m==="disabled",$=y!=null&&typeof y!="boolean",M=ne(ne(ne({onClick:function(){o==null||o(v)},onKeyDown:function(N){(N.key==="Enter"||N.keyCode===gt.ENTER||N.which===gt.ENTER)&&(o==null||o(v))},role:g?"tab":"button"},"aria-expanded",a),"aria-disabled",E),"tabIndex",E?-1:0),P=typeof w=="function"?w(e):te.createElement("i",{className:"arrow"}),I=P&&te.createElement("div",tt({className:"".concat(h,"-expand-icon")},["header","icon"].includes(m)?M:{}),P),O=Ee("".concat(h,"-item"),ne(ne({},"".concat(h,"-item-active"),a),"".concat(h,"-item-disabled"),E),l),A=Ee(i,"".concat(h,"-header"),ne({},"".concat(h,"-collapsible-").concat(m),!!m),u.header),R=q({className:A,style:p.header},["header","icon"].includes(m)?{}:M);return te.createElement("div",tt({},C,{ref:t,className:O}),te.createElement("div",R,r&&I,te.createElement("span",tt({className:"".concat(h,"-header-text")},m==="header"?M:{}),b),$&&te.createElement("div",{className:"".concat(h,"-extra")},y)),te.createElement(ka,tt({visible:a,leavedClassName:"".concat(h,"-content-hidden")},_,{forceRender:s,removeOnLeave:k}),function(j,N){var D=j.className,V=j.style;return te.createElement(bpe,{ref:N,prefixCls:h,className:D,classNames:u,style:V,styles:p,isActive:a,forceRender:s,role:g?"tabpanel":void 0},S)}))}),rFe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],iFe=function(t,n){var r=n.prefixCls,i=n.accordion,a=n.collapsible,o=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(f,p){var h=f.children,m=f.label,g=f.key,v=f.collapsible,y=f.onItemClick,b=f.destroyInactivePanel,w=Ut(f,rFe),_=String(g??p),k=v??a,S=b??o,C=function(M){k!=="disabled"&&(s(M),y==null||y(M))},E=!1;return i?E=l[0]===_:E=l.indexOf(_)>-1,te.createElement(wpe,tt({},w,{prefixCls:r,key:_,panelKey:_,isActive:E,accordion:i,openMotion:c,expandIcon:u,header:m,collapsible:k,onItemClick:C,destroyInactivePanel:S}),h)})},aFe=function(t,n,r){if(!t)return null;var i=r.prefixCls,a=r.accordion,o=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,f=r.expandIcon,p=t.key||String(n),h=t.props,m=h.header,g=h.headerClass,v=h.destroyInactivePanel,y=h.collapsible,b=h.onItemClick,w=!1;a?w=c[0]===p:w=c.indexOf(p)>-1;var _=y??o,k=function(E){_!=="disabled"&&(l(E),b==null||b(E))},S={key:p,panelKey:p,header:m,headerClass:g,isActive:w,prefixCls:i,destroyInactivePanel:v??s,openMotion:u,accordion:a,children:t.props.children,onItemClick:k,expandIcon:f,collapsible:_};return typeof t.type=="string"?t:(Object.keys(S).forEach(function(C){typeof S[C]>"u"&&delete S[C]}),te.cloneElement(t,S))};function oFe(e,t,n){return Array.isArray(e)?iFe(e,n):Zi(t).map(function(r,i){return aFe(r,i,n)})}function sFe(e){var t=e;if(!Array.isArray(t)){var n=Kt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var lFe=te.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,i=e.destroyInactivePanel,a=i===void 0?!1:i,o=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,f=e.openMotion,p=e.expandIcon,h=e.activeKey,m=e.defaultActiveKey,g=e.onChange,v=e.items,y=Ee(r,l),b=In([],{value:h,onChange:function($){return g==null?void 0:g($)},defaultValue:m,postState:sFe}),w=Te(b,2),_=w[0],k=w[1],S=function($){return k(function(){if(s)return _[0]===$?[]:[$];var M=_.indexOf($),P=M>-1;return P?_.filter(function(I){return I!==$}):[].concat(ct(_),[$])})};zr(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var C=oFe(v,c,{prefixCls:r,accordion:s,openMotion:f,expandIcon:p,collapsible:u,destroyInactivePanel:a,onItemClick:S,activeKey:_});return te.createElement("div",tt({ref:t,className:y,style:o,role:s?"tablist":void 0},Bi(e,{aria:!0,data:!0})),C)});const XL=Object.assign(lFe,{Panel:wpe});XL.Panel;const cFe=d.forwardRef((e,t)=>{const{getPrefixCls:n}=d.useContext(Zt),{prefixCls:r,className:i,showArrow:a=!0}=e,o=n("collapse",r),s=Ee({[`${o}-no-arrow`]:!a},i);return d.createElement(XL.Panel,Object.assign({ref:t},e,{prefixCls:o,className:s}))}),b4=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${w}-wrapper`]:Object.assign({},k)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},k),{padding:0,textAlign:"start"})}]},eDe=e=>({zIndexPopup:e.zIndexPopupBase+KL+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),upe=Jn("Message",e=>{const t=Hn(e,{height:150});return[JAe(t)]},eDe);var tDe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,type:n,icon:r,children:i}=e;return d.createElement("div",{className:Ee(`${t}-custom-content`,`${t}-${n}`)},r||nDe[n],d.createElement("span",null,i))},rDe=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:a}=e,o=tDe(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(Xt),l=t||s("message"),c=qr(l),[u,f,p]=upe(l,c);return u(d.createElement(ape,Object.assign({},o,{prefixCls:l,className:Ee(n,f,`${l}-notice-pure-panel`,p,c),eventKey:"pure",duration:null,content:d.createElement(dpe,{prefixCls:l,type:r,icon:i},a)})))};function iDe(e,t){return{motionName:t??`${e}-move-up`}}function GL(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t==null||t()};return r.then=(i,a)=>n.then(i,a),r.promise=n,r}var aDe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{children:t,prefixCls:n}=e;const r=qr(n),[i,a,o]=upe(n,r);return i(d.createElement(spe,{classNames:{list:Ee(a,o,r)}},t))},cDe=(e,t)=>{let{prefixCls:n,key:r}=t;return d.createElement(lDe,{prefixCls:n,key:r},e)},uDe=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=sDe,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:p,direction:h}=d.useContext(Xt),m=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??oDe}),v=()=>Ee({[`${m}-rtl`]:s??h==="rtl"}),y=()=>iDe(m,l),w=d.createElement("span",{className:`${m}-close-x`},d.createElement(Eu,{className:`${m}-close-icon`})),[b,C]=lpe({prefixCls:m,style:g,className:v,motion:y,closable:!1,closeIcon:w,duration:o,getContainer:()=>(i==null?void 0:i())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:cDe});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:m,message:p})),C});let OG=0;function fpe(e){const t=d.useRef(null);return Ug(),[d.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},i=l=>{if(!t.current){const S=()=>{};return S.then=()=>{},S}const{open:c,prefixCls:u,message:f}=t.current,p=`${u}-notice`,{content:h,icon:m,type:g,key:v,className:y,style:w,onClose:b}=l,C=aDe(l,["content","icon","type","key","className","style","onClose"]);let k=v;return k==null&&(OG+=1,k=`antd-message-${OG}`),GL(S=>(c(Object.assign(Object.assign({},C),{key:k,content:d.createElement(dpe,{prefixCls:u,type:g,icon:m},h),placement:"top",className:Ee(g&&`${p}-${g}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),w),onClose:()=>{b==null||b(),S()}})),()=>{r(k)}))},o={open:i,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,p)=>{let h;u&&typeof u=="object"&&"content"in u?h=u:h={content:u};let m,g;typeof f=="function"?g=f:(m=f,g=p);const v=Object.assign(Object.assign({onClose:g,duration:m},h),{type:l});return i(v)};o[l]=c}),o},[]),d.createElement(uDe,Object.assign({key:"message-holder"},e,{ref:t}))]}function ppe(e){return fpe(e)}function dDe(){const[e,t]=d.useState([]),n=d.useCallback(r=>(t(i=>[].concat(lt(i),[r])),()=>{t(i=>i.filter(a=>a!==r))}),[]);return[e,n]}function hr(){hr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(A,N,F){A[N]=F.value},a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(A,N,F){return Object.defineProperty(A,N,{value:F,enumerable:!0,configurable:!0,writable:!0}),A[N]}try{c({},"")}catch{c=function(F,K,L){return F[K]=L}}function u(A,N,F,K){var L=N&&N.prototype instanceof y?N:y,V=Object.create(L.prototype),B=new j(K||[]);return i(V,"_invoke",{value:M(A,F,B)}),V}function f(A,N,F){try{return{type:"normal",arg:A.call(N,F)}}catch(K){return{type:"throw",arg:K}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",m="executing",g="completed",v={};function y(){}function w(){}function b(){}var C={};c(C,o,function(){return this});var k=Object.getPrototypeOf,S=k&&k(k(I([])));S&&S!==n&&r.call(S,o)&&(C=S);var _=b.prototype=y.prototype=Object.create(C);function E(A){["next","throw","return"].forEach(function(N){c(A,N,function(F){return this._invoke(N,F)})})}function $(A,N){function F(L,V,B,U){var Y=f(A[L],A,V);if(Y.type!=="throw"){var ee=Y.arg,ie=ee.value;return ie&&Kt(ie)=="object"&&r.call(ie,"__await")?N.resolve(ie.__await).then(function(Z){F("next",Z,B,U)},function(Z){F("throw",Z,B,U)}):N.resolve(ie).then(function(Z){ee.value=Z,B(ee)},function(Z){return F("throw",Z,B,U)})}U(Y.arg)}var K;i(this,"_invoke",{value:function(V,B){function U(){return new N(function(Y,ee){F(V,B,Y,ee)})}return K=K?K.then(U,U):U()}})}function M(A,N,F){var K=p;return function(L,V){if(K===m)throw Error("Generator is already running");if(K===g){if(L==="throw")throw V;return{value:e,done:!0}}for(F.method=L,F.arg=V;;){var B=F.delegate;if(B){var U=P(B,F);if(U){if(U===v)continue;return U}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(K===p)throw K=g,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);K=m;var Y=f(A,N,F);if(Y.type==="normal"){if(K=F.done?g:h,Y.arg===v)continue;return{value:Y.arg,done:F.done}}Y.type==="throw"&&(K=g,F.method="throw",F.arg=Y.arg)}}}function P(A,N){var F=N.method,K=A.iterator[F];if(K===e)return N.delegate=null,F==="throw"&&A.iterator.return&&(N.method="return",N.arg=e,P(A,N),N.method==="throw")||F!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+F+"' method")),v;var L=f(K,A.iterator,N.arg);if(L.type==="throw")return N.method="throw",N.arg=L.arg,N.delegate=null,v;var V=L.arg;return V?V.done?(N[A.resultName]=V.value,N.next=A.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,v):V:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,v)}function R(A){var N={tryLoc:A[0]};1 in A&&(N.catchLoc=A[1]),2 in A&&(N.finallyLoc=A[2],N.afterLoc=A[3]),this.tryEntries.push(N)}function O(A){var N=A.completion||{};N.type="normal",delete N.arg,A.completion=N}function j(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(R,this),this.reset(!0)}function I(A){if(A||A===""){var N=A[o];if(N)return N.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var F=-1,K=function L(){for(;++F=0;--L){var V=this.tryEntries[L],B=V.completion;if(V.tryLoc==="root")return K("end");if(V.tryLoc<=this.prev){var U=r.call(V,"catchLoc"),Y=r.call(V,"finallyLoc");if(U&&Y){if(this.prev=0;--K){var L=this.tryEntries[K];if(L.tryLoc<=this.prev&&r.call(L,"finallyLoc")&&this.prev=0;--F){var K=this.tryEntries[F];if(K.finallyLoc===N)return this.complete(K.completion,K.afterLoc),O(K),v}},catch:function(N){for(var F=this.tryEntries.length-1;F>=0;--F){var K=this.tryEntries[F];if(K.tryLoc===N){var L=K.completion;if(L.type==="throw"){var V=L.arg;O(K)}return V}}throw Error("illegal catch attempt")},delegateYield:function(N,F,K){return this.delegate={iterator:I(N),resultName:F,nextLoc:K},this.method==="next"&&(this.arg=e),v}},t}function RG(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function pa(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){RG(a,r,i,o,s,"next",l)}function s(l){RG(a,r,i,o,s,"throw",l)}o(void 0)})}}var y4=q({},Goe),fDe=y4.version,x9=y4.render,pDe=y4.unmountComponentAtNode,e8;try{var hDe=Number((fDe||"").split(".")[0]);hDe>=18&&(e8=y4.createRoot)}catch{}function IG(e){var t=y4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Kt(t)==="object"&&(t.usingClientEntryPoint=e)}var h6="__rc_react_root__";function mDe(e,t){IG(!0);var n=t[h6]||e8(t);IG(!1),n.render(e),t[h6]=n}function gDe(e,t){x9==null||x9(e,t)}function vDe(e,t){if(e8){mDe(e,t);return}gDe(e,t)}function yDe(e){return gj.apply(this,arguments)}function gj(){return gj=pa(hr().mark(function e(t){return hr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[h6])===null||i===void 0||i.unmount(),delete t[h6]}));case 1:case"end":return r.stop()}},e)})),gj.apply(this,arguments)}function bDe(e){pDe(e)}function wDe(e){return vj.apply(this,arguments)}function vj(){return vj=pa(hr().mark(function e(t){return hr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(e8===void 0){r.next=2;break}return r.abrupt("return",yDe(t));case 2:bDe(t);case 3:case"end":return r.stop()}},e)})),vj.apply(this,arguments)}const xDe=(e,t)=>(vDe(e,t),()=>wDe(t));let SDe=xDe;function YL(){return SDe}const S9=()=>({height:0,opacity:0}),jG=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},CDe=e=>({height:e?e.offsetHeight:0}),C9=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",P0=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:n3}-motion-collapse`,onAppearStart:S9,onEnterStart:S9,onAppearActive:jG,onEnterActive:jG,onLeaveStart:CDe,onLeaveActive:S9,onAppearEnd:C9,onEnterEnd:C9,onLeaveEnd:C9,motionDeadline:500}},oo=(e,t,n)=>n!==void 0?n:`${e}-${t}`,b4=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},_De=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},kDe=Afe("Wave",e=>[_De(e)]),t8=`${n3}-wave-target`;function _9(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function EDe(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return _9(t)?t:_9(n)?n:_9(r)?r:null}function k9(e){return Number.isNaN(e)?0:e}const $De=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,a=d.useRef(null),o=d.useRef(null);d.useEffect(()=>{o.current=i()},[]);const[s,l]=d.useState(null),[c,u]=d.useState([]),[f,p]=d.useState(0),[h,m]=d.useState(0),[g,v]=d.useState(0),[y,w]=d.useState(0),[b,C]=d.useState(!1),k={left:f,top:h,width:g,height:y,borderRadius:c.map(E=>`${E}px`).join(" ")};s&&(k["--wave-color"]=s);function S(){const E=getComputedStyle(n);l(EDe(n));const $=E.position==="static",{borderLeftWidth:M,borderTopWidth:P}=E;p($?n.offsetLeft:k9(-parseFloat(M))),m($?n.offsetTop:k9(-parseFloat(P))),v(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:R,borderTopRightRadius:O,borderBottomLeftRadius:j,borderBottomRightRadius:I}=E;u([R,O,I,j].map(A=>k9(parseFloat(A))))}if(d.useEffect(()=>{if(n){const E=rr(()=>{S(),C(!0)});let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(S),$.observe(n)),()=>{rr.cancel(E),$==null||$.disconnect()}}},[]),!b)return null;const _=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(t8));return d.createElement(Ca,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,$)=>{var M,P;if($.deadline||$.propertyName==="opacity"){const R=(M=a.current)===null||M===void 0?void 0:M.parentElement;(P=o.current)===null||P===void 0||P.call(o).then(()=>{R==null||R.remove()})}return!1}},(E,$)=>{let{className:M}=E;return d.createElement("div",{ref:ga(a,$),className:Ee(t,M,{"wave-quick":_}),style:k})})},MDe=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild);const a=YL();let o=null;function s(){return o}o=a(d.createElement($De,Object.assign({},t,{target:e,registerUnmount:s})),i)},TDe=(e,t,n)=>{const{wave:r}=d.useContext(Xt),[,i,a]=ka(),o=Vn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${t8}`)||u,{showEffect:p}=r||{};(p||MDe)(f,{className:t,token:i,component:n,event:c,hashId:a})}),s=d.useRef(null);return c=>{rr.cancel(s.current),s.current=rr(()=>{o(c)})}},w4=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=d.useContext(Xt),a=d.useRef(null),o=i("wave"),[,s]=kDe(o),l=TDe(a,Ee(o,s),r);if(te.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const f=p=>{!b4(p.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(p)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!te.isValidElement(t))return t??null;const c=Vf(t)?ga(bh(t),a):a;return aa(t,{ref:c})},Bi=e=>{const t=te.useContext(mg);return te.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},PDe=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},ODe=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},RDe=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},hpe=Jn("Space",e=>{const t=Hn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[ODe(t),RDe(t),PDe(t)]},()=>({}),{resetStyle:!1});var mpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=d.useContext(n8),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:a,isLastItem:o}=n,s=i==="vertical"?"-vertical-":"-";return Ee(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:o,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},IDe=e=>{let{children:t}=e;return d.createElement(n8.Provider,{value:null},t)},jDe=e=>{var{children:t}=e,n=mpe(e,["children"]);return d.createElement(n8.Provider,{value:n},t)},NDe=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Xt),{size:r,direction:i,block:a,prefixCls:o,className:s,rootClassName:l,children:c}=e,u=mpe(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Bi(b=>r??b),p=t("space-compact",o),[h,m]=hpe(p),g=Ee(p,m,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:a,[`${p}-vertical`]:i==="vertical"},s,l),v=d.useContext(n8),y=Xi(c),w=d.useMemo(()=>y.map((b,C)=>{const k=(b==null?void 0:b.key)||`${p}-item-${C}`;return d.createElement(jDe,{key:k,compactSize:f,compactDirection:i,isFirstItem:C===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:C===y.length-1&&(!v||(v==null?void 0:v.isLastItem))},b)}),[r,y,v]);return y.length===0?null:h(d.createElement("div",Object.assign({className:g},u),w))};var ADe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n}=d.useContext(Xt),{prefixCls:r,size:i,className:a}=e,o=ADe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=ka();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=Ee(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return d.createElement(gpe.Provider,{value:i},d.createElement("div",Object.assign({},o,{className:u})))},NG=/^[\u4E00-\u9FA5]{2}$/,yj=NG.test.bind(NG);function XL(e){return e==="danger"?{danger:!0}:{type:e}}function AG(e){return typeof e=="string"}function E9(e){return e==="text"||e==="link"}function FDe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&AG(e.type)&&yj(e.props.children)?aa(e,{children:e.props.children.split("").join(n)}):AG(e)?yj(e)?te.createElement("span",null,e.split("").join(n)):te.createElement("span",null,e):rpe(e)?te.createElement("span",null,e):e}function LDe(e,t){let n=!1;const r=[];return te.Children.forEach(e,i=>{const a=typeof i,o=a==="string"||a==="number";if(n&&o){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=o}),te.Children.map(r,i=>FDe(i,t))}["default","primary","danger"].concat(lt(yg));const bj=d.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:a}=e,o=Ee(`${a}-icon`,n);return te.createElement("span",{ref:t,className:o,style:r},i)}),DG=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=Ee(`${n}-loading-icon`,r);return te.createElement(bj,{prefixCls:n,className:o,style:i,ref:t},te.createElement(vu,{className:a}))}),$9=()=>({width:0,opacity:0,transform:"scale(0)"}),M9=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),BDe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?te.createElement(DG,{prefixCls:t,className:i,style:a}):te.createElement(Ca,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:$9,onAppearActive:M9,onEnterStart:$9,onEnterActive:M9,onLeaveStart:M9,onLeaveActive:$9},(l,c)=>{let{className:u,style:f}=l;const p=Object.assign(Object.assign({},a),f);return te.createElement(DG,{prefixCls:t,className:Ee(i,u),style:p,ref:c})})},FG=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),zDe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},FG(`${t}-primary`,i),FG(`${t}-danger`,a)]}};var HDe=["b"],UDe=["v"],T9=function(t){return Math.round(Number(t||0))},WDe=function(t){if(t instanceof ur)return t;if(t&&Kt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=Ht(n,HDe);return q(q({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},yu=function(e){$o(n,e);var t=rs(n);function n(r){return Ar(this,n),t.call(this,WDe(r))}return Dr(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),a=T9(i.s*100),o=T9(i.b*100),s=T9(i.h),l=i.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(o,"%)"),u="hsba(".concat(s,", ").concat(a,"%, ").concat(o,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var i=this.toHsv(),a=i.v,o=Ht(i,UDe);return q(q({},o),{},{b:a,a:this.a})}}]),n}(ur),VDe="rc-color-picker",Rv=function(t){return t instanceof yu?t:new yu(t)},qDe=Rv("#1677ff"),vpe=function(t){var n=t.offset,r=t.targetRef,i=t.containerRef,a=t.color,o=t.type,s=i.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),f=u.width,p=u.height,h=f/2,m=p/2,g=(n.x+h)/l,v=1-(n.y+m)/c,y=a.toHsb(),w=g,b=(n.x+h)/l*360;if(o)switch(o){case"hue":return Rv(q(q({},y),{},{h:b<=0?0:b}));case"alpha":return Rv(q(q({},y),{},{a:w<=0?0:w}))}return Rv({h:y.h,s:g<=0?0:g,b:v>=1?1:v,a:y.a})},ype=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},ZL=function(t){var n=t.color,r=t.prefixCls,i=t.className,a=t.style,o=t.onClick,s="".concat(r,"-color-block");return te.createElement("div",{className:Ee(s,i),style:a,onClick:o},te.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function KDe(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function bpe(e){var t=e.targetRef,n=e.containerRef,r=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,o=e.calculate,s=e.color,l=e.disabledDrag,c=d.useState({x:0,y:0}),u=Te(c,2),f=u[0],p=u[1],h=d.useRef(null),m=d.useRef(null);d.useEffect(function(){p(o())},[s]),d.useEffect(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",m.current),h.current=null,m.current=null}},[]);var g=function(C){var k=KDe(C),S=k.pageX,_=k.pageY,E=n.current.getBoundingClientRect(),$=E.x,M=E.y,P=E.width,R=E.height,O=t.current.getBoundingClientRect(),j=O.width,I=O.height,A=j/2,N=I/2,F=Math.max(0,Math.min(S-$,P))-A,K=Math.max(0,Math.min(_-M,R))-N,L={x:F,y:r==="x"?f.y:K};if(j===0&&I===0||j!==I)return!1;i==null||i(L)},v=function(C){C.preventDefault(),g(C)},y=function(C){C.preventDefault(),document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",m.current),h.current=null,m.current=null,a==null||a()},w=function(C){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),!l&&(g(C),document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),document.addEventListener("touchmove",v),document.addEventListener("touchend",y),h.current=v,m.current=y)};return[f,w]}var wpe=function(t){var n=t.size,r=n===void 0?"default":n,i=t.color,a=t.prefixCls;return te.createElement("div",{className:Ee("".concat(a,"-handler"),ne({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:i}})},xpe=function(t){var n=t.children,r=t.style,i=t.prefixCls;return te.createElement("div",{className:"".concat(i,"-palette"),style:q({position:"relative"},r)},n)},Spe=d.forwardRef(function(e,t){var n=e.children,r=e.x,i=e.y;return te.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),GDe=function(t){var n=t.color,r=t.onChange,i=t.prefixCls,a=t.onChangeComplete,o=t.disabled,s=d.useRef(),l=d.useRef(),c=d.useRef(n),u=Vn(function(g){var v=vpe({offset:g,targetRef:l,containerRef:s,color:n});c.current=v,r(v)}),f=bpe({color:n,containerRef:s,targetRef:l,calculate:function(){return ype(n)},onDragChange:u,onDragChangeComplete:function(){return a==null?void 0:a(c.current)},disabledDrag:o}),p=Te(f,2),h=p[0],m=p[1];return te.createElement("div",{ref:s,className:"".concat(i,"-select"),onMouseDown:m,onTouchStart:m},te.createElement(xpe,{prefixCls:i},te.createElement(Spe,{x:h.x,y:h.y,ref:l},te.createElement(wpe,{color:n.toRgbString(),prefixCls:i})),te.createElement("div",{className:"".concat(i,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},YDe=function(t,n){var r=jn(t,{value:n}),i=Te(r,2),a=i[0],o=i[1],s=d.useMemo(function(){return Rv(a)},[a]);return[s,o]},XDe=function(t){var n=t.colors,r=t.children,i=t.direction,a=i===void 0?"to right":i,o=t.type,s=t.prefixCls,l=d.useMemo(function(){return n.map(function(c,u){var f=Rv(c);return o==="alpha"&&u===n.length-1&&(f=new yu(f.setA(1))),f.toRgbString()}).join(",")},[n,o]);return te.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(l,")")}},r)},ZDe=function(t){var n=t.prefixCls,r=t.colors,i=t.disabled,a=t.onChange,o=t.onChangeComplete,s=t.color,l=t.type,c=d.useRef(),u=d.useRef(),f=d.useRef(s),p=function(k){return l==="hue"?k.getHue():k.a*100},h=Vn(function(C){var k=vpe({offset:C,targetRef:u,containerRef:c,color:s,type:l});f.current=k,a(p(k))}),m=bpe({color:s,targetRef:u,containerRef:c,calculate:function(){return ype(s,l)},onDragChange:h,onDragChangeComplete:function(){o(p(f.current))},direction:"x",disabledDrag:i}),g=Te(m,2),v=g[0],y=g[1],w=te.useMemo(function(){if(l==="hue"){var C=s.toHsb();C.s=1,C.b=1,C.a=1;var k=new yu(C);return k}return s},[s,l]),b=te.useMemo(function(){return r.map(function(C){return"".concat(C.color," ").concat(C.percent,"%")})},[r]);return te.createElement("div",{ref:c,className:Ee("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:y,onTouchStart:y},te.createElement(xpe,{prefixCls:n},te.createElement(Spe,{x:v.x,y:v.y,ref:u},te.createElement(wpe,{size:"small",color:w.toHexString(),prefixCls:n})),te.createElement(XDe,{colors:b,type:l,prefixCls:n})))};function QDe(e){return d.useMemo(function(){var t=e||{},n=t.slider;return[n||ZDe]},[e])}var JDe=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],eFe=d.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,i=e.prefixCls,a=i===void 0?VDe:i,o=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,f=e.disabledAlpha,p=f===void 0?!1:f,h=e.disabled,m=h===void 0?!1:h,g=e.components,v=QDe(g),y=Te(v,1),w=y[0],b=YDe(r||qDe,n),C=Te(b,2),k=C[0],S=C[1],_=d.useMemo(function(){return k.setA(1).toRgbString()},[k]),E=function(K,L){n||S(K),o==null||o(K,L)},$=function(K){return new yu(k.setHue(K))},M=function(K){return new yu(k.setA(K/100))},P=function(K){E($(K),{type:"hue",value:K})},R=function(K){E(M(K),{type:"alpha",value:K})},O=function(K){s&&s($(K))},j=function(K){s&&s(M(K))},I=Ee("".concat(a,"-panel"),l,ne({},"".concat(a,"-panel-disabled"),m)),A={prefixCls:a,disabled:m,color:k},N=te.createElement(te.Fragment,null,te.createElement(GDe,tt({onChange:E},A,{onChangeComplete:s})),te.createElement("div",{className:"".concat(a,"-slider-container")},te.createElement("div",{className:Ee("".concat(a,"-slider-group"),ne({},"".concat(a,"-slider-group-disabled-alpha"),p))},te.createElement(w,tt({},A,{type:"hue",colors:JDe,min:0,max:359,value:k.getHue(),onChange:P,onChangeComplete:O})),!p&&te.createElement(w,tt({},A,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:_}],min:0,max:100,value:k.a*100,onChange:R,onChangeComplete:j}))),te.createElement(ZL,{color:k.toRgbString(),prefixCls:a})));return te.createElement("div",{className:I,style:c,ref:t},typeof u=="function"?u(N):N)});const b2=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",tFe=(e,t)=>e?b2(e,t):"";let _l=function(){function e(t){Ar(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:a,percent:o}=i;return{color:new e(a),percent:o}}),this.metaColor=new yu(this.colors[0].color.metaColor)):this.metaColor=new yu(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Dr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return tFe(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const a=n.colors[i];return r.percent===a.percent&&r.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])}();var nFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},rFe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:nFe}))},bc=d.forwardRef(rFe),Cpe=te.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,a=e.style,o=e.children,s=e.isActive,l=e.role,c=e.classNames,u=e.styles,f=te.useState(s||r),p=Te(f,2),h=p[0],m=p[1];return te.useEffect(function(){(r||s)&&m(!0)},[r,s]),h?te.createElement("div",{ref:t,className:Ee("".concat(n,"-content"),ne(ne({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:a,role:l},te.createElement("div",{className:Ee("".concat(n,"-content-box"),c==null?void 0:c.body),style:u==null?void 0:u.body},o)):null});Cpe.displayName="PanelContent";var iFe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],_pe=te.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,i=e.headerClass,a=e.isActive,o=e.onItemClick,s=e.forceRender,l=e.className,c=e.classNames,u=c===void 0?{}:c,f=e.styles,p=f===void 0?{}:f,h=e.prefixCls,m=e.collapsible,g=e.accordion,v=e.panelKey,y=e.extra,w=e.header,b=e.expandIcon,C=e.openMotion,k=e.destroyInactivePanel,S=e.children,_=Ht(e,iFe),E=m==="disabled",$=y!=null&&typeof y!="boolean",M=ne(ne(ne({onClick:function(){o==null||o(v)},onKeyDown:function(N){(N.key==="Enter"||N.keyCode===mt.ENTER||N.which===mt.ENTER)&&(o==null||o(v))},role:g?"tab":"button"},"aria-expanded",a),"aria-disabled",E),"tabIndex",E?-1:0),P=typeof b=="function"?b(e):te.createElement("i",{className:"arrow"}),R=P&&te.createElement("div",tt({className:"".concat(h,"-expand-icon")},["header","icon"].includes(m)?M:{}),P),O=Ee("".concat(h,"-item"),ne(ne({},"".concat(h,"-item-active"),a),"".concat(h,"-item-disabled"),E),l),j=Ee(i,"".concat(h,"-header"),ne({},"".concat(h,"-collapsible-").concat(m),!!m),u.header),I=q({className:j,style:p.header},["header","icon"].includes(m)?{}:M);return te.createElement("div",tt({},_,{ref:t,className:O}),te.createElement("div",I,r&&R,te.createElement("span",tt({className:"".concat(h,"-header-text")},m==="header"?M:{}),w),$&&te.createElement("div",{className:"".concat(h,"-extra")},y)),te.createElement(Ca,tt({visible:a,leavedClassName:"".concat(h,"-content-hidden")},C,{forceRender:s,removeOnLeave:k}),function(A,N){var F=A.className,K=A.style;return te.createElement(Cpe,{ref:N,prefixCls:h,className:F,classNames:u,style:K,styles:p,isActive:a,forceRender:s,role:g?"tabpanel":void 0},S)}))}),aFe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],oFe=function(t,n){var r=n.prefixCls,i=n.accordion,a=n.collapsible,o=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(f,p){var h=f.children,m=f.label,g=f.key,v=f.collapsible,y=f.onItemClick,w=f.destroyInactivePanel,b=Ht(f,aFe),C=String(g??p),k=v??a,S=w??o,_=function(M){k!=="disabled"&&(s(M),y==null||y(M))},E=!1;return i?E=l[0]===C:E=l.indexOf(C)>-1,te.createElement(_pe,tt({},b,{prefixCls:r,key:C,panelKey:C,isActive:E,accordion:i,openMotion:c,expandIcon:u,header:m,collapsible:k,onItemClick:_,destroyInactivePanel:S}),h)})},sFe=function(t,n,r){if(!t)return null;var i=r.prefixCls,a=r.accordion,o=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,f=r.expandIcon,p=t.key||String(n),h=t.props,m=h.header,g=h.headerClass,v=h.destroyInactivePanel,y=h.collapsible,w=h.onItemClick,b=!1;a?b=c[0]===p:b=c.indexOf(p)>-1;var C=y??o,k=function(E){C!=="disabled"&&(l(E),w==null||w(E))},S={key:p,panelKey:p,header:m,headerClass:g,isActive:b,prefixCls:i,destroyInactivePanel:v??s,openMotion:u,accordion:a,children:t.props.children,onItemClick:k,expandIcon:f,collapsible:C};return typeof t.type=="string"?t:(Object.keys(S).forEach(function(_){typeof S[_]>"u"&&delete S[_]}),te.cloneElement(t,S))};function lFe(e,t,n){return Array.isArray(e)?oFe(e,n):Xi(t).map(function(r,i){return sFe(r,i,n)})}function cFe(e){var t=e;if(!Array.isArray(t)){var n=Kt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var uFe=te.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,i=e.destroyInactivePanel,a=i===void 0?!1:i,o=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,f=e.openMotion,p=e.expandIcon,h=e.activeKey,m=e.defaultActiveKey,g=e.onChange,v=e.items,y=Ee(r,l),w=jn([],{value:h,onChange:function($){return g==null?void 0:g($)},defaultValue:m,postState:cFe}),b=Te(w,2),C=b[0],k=b[1],S=function($){return k(function(){if(s)return C[0]===$?[]:[$];var M=C.indexOf($),P=M>-1;return P?C.filter(function(R){return R!==$}):[].concat(lt(C),[$])})};Br(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var _=lFe(v,c,{prefixCls:r,accordion:s,openMotion:f,expandIcon:p,collapsible:u,destroyInactivePanel:a,onItemClick:S,activeKey:C});return te.createElement("div",tt({ref:t,className:y,style:o,role:s?"tablist":void 0},Fi(e,{aria:!0,data:!0})),_)});const QL=Object.assign(uFe,{Panel:_pe});QL.Panel;const dFe=d.forwardRef((e,t)=>{const{getPrefixCls:n}=d.useContext(Xt),{prefixCls:r,className:i,showArrow:a=!0}=e,o=n("collapse",r),s=Ee({[`${o}-no-arrow`]:!a},i);return d.createElement(QL.Panel,Object.assign({ref:t},e,{prefixCls:o,className:s}))}),x4=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),uFe=e=>({animationDuration:e,animationFillMode:"both"}),dFe=e=>({animationDuration:e,animationFillMode:"both"}),n8=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),fFe=e=>({animationDuration:e,animationFillMode:"both"}),pFe=e=>({animationDuration:e,animationFillMode:"both"}),r8=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${a}${e}-enter, ${a}${e}-appear - `]:Object.assign(Object.assign({},uFe(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},dFe(r)),{animationPlayState:"paused"}),[` + `]:Object.assign(Object.assign({},fFe(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},pFe(r)),{animationPlayState:"paused"}),[` ${a}${e}-enter${e}-enter-active, ${a}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},fFe=new ir("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),pFe=new ir("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),ZL=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[n8(r,fFe,pFe,e.motionDurationMid,t),{[` + `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},hFe=new ir("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),mFe=new ir("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),JL=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[r8(r,hFe,mFe,e.motionDurationMid,t),{[` ${i}${r}-enter, ${i}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},hFe=new ir("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mFe=new ir("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),gFe=new ir("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vFe=new ir("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),yFe=new ir("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bFe=new ir("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),wFe=new ir("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xFe=new ir("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),SFe={"move-up":{inKeyframes:wFe,outKeyframes:xFe},"move-down":{inKeyframes:hFe,outKeyframes:mFe},"move-left":{inKeyframes:gFe,outKeyframes:vFe},"move-right":{inKeyframes:yFe,outKeyframes:bFe}},M0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=SFe[t];return[n8(r,i,a,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},gFe=new ir("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vFe=new ir("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),yFe=new ir("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bFe=new ir("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),wFe=new ir("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xFe=new ir("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),SFe=new ir("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),CFe=new ir("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),_Fe={"move-up":{inKeyframes:SFe,outKeyframes:CFe},"move-down":{inKeyframes:gFe,outKeyframes:vFe},"move-left":{inKeyframes:yFe,outKeyframes:bFe},"move-right":{inKeyframes:wFe,outKeyframes:xFe}},O0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=_Fe[t];return[r8(r,i,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},r8=new ir("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),i8=new ir("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),a8=new ir("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),o8=new ir("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),CFe=new ir("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),_Fe=new ir("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),kFe=new ir("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),EFe=new ir("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),$Fe={"slide-up":{inKeyframes:r8,outKeyframes:i8},"slide-down":{inKeyframes:a8,outKeyframes:o8},"slide-left":{inKeyframes:CFe,outKeyframes:_Fe},"slide-right":{inKeyframes:kFe,outKeyframes:EFe}},md=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=$Fe[t];return[n8(r,i,a,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},i8=new ir("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a8=new ir("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),o8=new ir("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),s8=new ir("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),kFe=new ir("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),EFe=new ir("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),$Fe=new ir("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),MFe=new ir("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),TFe={"slide-up":{inKeyframes:i8,outKeyframes:a8},"slide-down":{inKeyframes:o8,outKeyframes:s8},"slide-left":{inKeyframes:kFe,outKeyframes:EFe},"slide-right":{inKeyframes:$Fe,outKeyframes:MFe}},yd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=TFe[t];return[r8(r,i,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},QL=new ir("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),MFe=new ir("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),AG=new ir("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),DG=new ir("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),TFe=new ir("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),PFe=new ir("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),OFe=new ir("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),IFe=new ir("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),RFe=new ir("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),jFe=new ir("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),NFe=new ir("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),AFe=new ir("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),DFe={zoom:{inKeyframes:QL,outKeyframes:MFe},"zoom-big":{inKeyframes:AG,outKeyframes:DG},"zoom-big-fast":{inKeyframes:AG,outKeyframes:DG},"zoom-left":{inKeyframes:OFe,outKeyframes:IFe},"zoom-right":{inKeyframes:RFe,outKeyframes:jFe},"zoom-up":{inKeyframes:TFe,outKeyframes:PFe},"zoom-down":{inKeyframes:NFe,outKeyframes:AFe}},Cy=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=DFe[t];return[n8(r,i,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},eB=new ir("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),PFe=new ir("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),LG=new ir("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),BG=new ir("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),OFe=new ir("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),RFe=new ir("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),IFe=new ir("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),jFe=new ir("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),NFe=new ir("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),AFe=new ir("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),DFe=new ir("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),FFe=new ir("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),LFe={zoom:{inKeyframes:eB,outKeyframes:PFe},"zoom-big":{inKeyframes:LG,outKeyframes:BG},"zoom-big-fast":{inKeyframes:LG,outKeyframes:BG},"zoom-left":{inKeyframes:IFe,outKeyframes:jFe},"zoom-right":{inKeyframes:NFe,outKeyframes:AFe},"zoom-up":{inKeyframes:OFe,outKeyframes:RFe},"zoom-down":{inKeyframes:DFe,outKeyframes:FFe}},_y=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=LFe[t];return[r8(r,i,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},FFe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:a,collapseHeaderPaddingSM:o,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:f,colorText:p,colorTextHeading:h,colorTextDisabled:m,fontSizeLG:g,lineHeight:v,lineHeightLG:y,marginSM:b,paddingSM:w,paddingLG:_,paddingXS:k,motionDurationSlow:S,fontSizeIcon:C,contentPadding:E,fontHeight:$,fontHeightLG:M}=e,P=`${Me(c)} ${u} ${f}`;return{[t]:Object.assign(Object.assign({},ar(e)),{backgroundColor:i,border:P,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:P,"&:first-child":{[` + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},BFe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:a,collapseHeaderPaddingSM:o,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:f,colorText:p,colorTextHeading:h,colorTextDisabled:m,fontSizeLG:g,lineHeight:v,lineHeightLG:y,marginSM:w,paddingSM:b,paddingLG:C,paddingXS:k,motionDurationSlow:S,fontSizeIcon:_,contentPadding:E,fontHeight:$,fontHeightLG:M}=e,P=`${Me(c)} ${u} ${f}`;return{[t]:Object.assign(Object.assign({},ar(e)),{backgroundColor:i,border:P,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:P,"&:first-child":{[` &, & > ${t}-header`]:{borderRadius:`${Me(l)} ${Me(l)} 0 0`}},"&:last-child":{[` &, - & > ${t}-header`]:{borderRadius:`0 0 ${Me(l)} ${Me(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:h,lineHeight:v,cursor:"pointer",transition:`all ${S}, visibility 0s`},Vs(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:$,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},yh()),{fontSize:C,transition:`transform ${S}`,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:P,[`& > ${t}-content-box`]:{padding:E},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,paddingInlineStart:k,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(w).sub(k).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:y,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:M,marginInlineStart:e.calc(_).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:_}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Me(l)} ${Me(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},LFe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},BFe=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[` + & > ${t}-header`]:{borderRadius:`0 0 ${Me(l)} ${Me(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:h,lineHeight:v,cursor:"pointer",transition:`all ${S}, visibility 0s`},Vs(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:$,display:"flex",alignItems:"center",paddingInlineEnd:w},[`${t}-arrow`]:Object.assign(Object.assign({},wh()),{fontSize:_,transition:`transform ${S}`,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:P,[`& > ${t}-content-box`]:{padding:E},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,paddingInlineStart:k,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(b).sub(k).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:b}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:y,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:M,marginInlineStart:e.calc(C).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Me(l)} ${Me(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:w}}}}})}},zFe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},HFe=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},zFe=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},HFe=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),UFe=Jn("Collapse",e=>{const t=Hn(e,{collapseHeaderPaddingSM:`${Me(e.paddingXS)} ${Me(e.paddingSM)}`,collapseHeaderPaddingLG:`${Me(e.padding)} ${Me(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[FFe(t),BFe(t),zFe(t),LFe(t),b4(t)]},HFe),WFe=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=d.useContext(Zt),{prefixCls:a,className:o,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:f,expandIconPosition:p="start",children:h,expandIcon:m}=e,g=Hi(P=>{var I;return(I=f??P)!==null&&I!==void 0?I:"middle"}),v=n("collapse",a),y=n(),[b,w,_]=UFe(v),k=d.useMemo(()=>p==="left"?"start":p==="right"?"end":p,[p]),S=m??(i==null?void 0:i.expandIcon),C=d.useCallback(function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const I=typeof S=="function"?S(P):d.createElement(vc,{rotate:P.isActive?r==="rtl"?-90:90:void 0,"aria-label":P.isActive?"expanded":"collapsed"});return oa(I,()=>{var O;return{className:Ee((O=I==null?void 0:I.props)===null||O===void 0?void 0:O.className,`${v}-arrow`)}})},[S,v]),E=Ee(`${v}-icon-position-${k}`,{[`${v}-borderless`]:!c,[`${v}-rtl`]:r==="rtl",[`${v}-ghost`]:!!u,[`${v}-${g}`]:g!=="middle"},i==null?void 0:i.className,o,s,w,_),$=Object.assign(Object.assign({},$0(y)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),M=d.useMemo(()=>h?Zi(h).map((P,I)=>{var O,A;const R=P.props;if(R!=null&&R.disabled){const j=(O=P.key)!==null&&O!==void 0?O:String(I),N=Object.assign(Object.assign({},$r(P.props,["disabled"])),{key:j,collapsible:(A=R.collapsible)!==null&&A!==void 0?A:"disabled"});return oa(P,N)}return P}):null,[h]);return b(d.createElement(XL,Object.assign({ref:t,openMotion:$},$r(e,["rootClassName"]),{expandIcon:C,prefixCls:v,className:E,style:Object.assign(Object.assign({},i==null?void 0:i.style),l)}),M))}),s8=Object.assign(WFe,{Panel:cFe}),Zo=e=>e instanceof Cl?e:new Cl(e),e_=e=>Math.round(Number(e||0)),JL=e=>e_(e.toHsb().a*100),t_=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,Zo(r)}return n.a=1,Zo(n)},xpe=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(ct(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;re.map(t=>(t.colors=t.colors.map(Zo),t)),Spe=(e,t)=>{const{r:n,g:r,b:i,a}=e.toRgb(),o=new hu(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},FG=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},VFe=e=>{let{prefixCls:t,presets:n,value:r,onChange:i}=e;const[a]=Xa("ColorPicker"),[,o]=$a(),[s]=In($9(n),{value:$9(n),postState:$9}),l=`${t}-presets`,c=d.useMemo(()=>s.reduce((p,h,m)=>{const{defaultOpen:g=!0}=h;return g&&p.push(FG(h,m)),p},[]),[s]),u=p=>{i==null||i(p)},f=s.map((p,h)=>{var m;return{key:FG(p,h),label:te.createElement("div",{className:`${l}-label`},p==null?void 0:p.label),children:te.createElement("div",{className:`${l}-items`},Array.isArray(p==null?void 0:p.colors)&&((m=p.colors)===null||m===void 0?void 0:m.length)>0?p.colors.map((g,v)=>te.createElement(YL,{key:`preset-${v}-${g.toHexString()}`,color:Zo(g).toRgbString(),prefixCls:t,className:Ee(`${l}-color`,{[`${l}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:Spe(g,o.colorBgElevated)}),onClick:()=>u(g)})):te.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return te.createElement("div",{className:l},te.createElement(s8,{defaultActiveKey:c,ghost:!0,items:f}))},Cpe=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Hn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},_pe=e=>{var t,n,r,i,a,o;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(i=e.contentLineHeight)!==null&&i!==void 0?i:QC(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:QC(l),p=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:QC(c),h=Spe(new Cl(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:h,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)}},qFe=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Me(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:yh(),"> a":{color:"currentColor"},"&:not(:disabled)":Vs(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${o}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},kpe=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),KFe=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),GFe=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),YFe=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),eB=(e,t,n,r,i,a,o,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},kpe(e,Object.assign({background:t},o),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:a||void 0}})}),XFe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},YFe(e))}),ZFe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),l8=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?ZFe:XFe;return Object.assign(Object.assign({},a(e)),kpe(e.componentCls,t,n))},c8=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},l8(e,r,i))}),u8=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},l8(e,r,i))}),d8=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),f8=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},l8(e,n,r))}),uh=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},l8(e,r,i,n))}),QFe=e=>{const{componentCls:t}=e;return vg.reduce((n,r)=>{const i=e[`${r}6`],a=e[`${r}1`],o=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`],u=`0 ${Me(e.controlOutlineWidth)} 0 ${e[`${r}1`]}`;return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:u},c8(e,e.colorTextLightSolid,i,{background:o},{background:c})),u8(e,i,e.colorBgContainer,{color:o,borderColor:o,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),d8(e)),f8(e,a,{background:s},{background:l})),uh(e,i,"link",{color:o},{color:c})),uh(e,i,"text",{color:o,background:a},{color:c,background:l}))})},{})},JFe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},c8(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),d8(e)),f8(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),uh(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),eB(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),eLe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},u8(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),d8(e)),f8(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),uh(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),eB(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),tLe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},c8(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),u8(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),d8(e)),f8(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),uh(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),uh(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),eB(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),nLe=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:JFe(e),[`${t}-color-primary`]:eLe(e),[`${t}-color-dangerous`]:tLe(e)},QFe(e))},rLe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},u8(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),uh(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),c8(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),uh(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),tB=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:r,padding:`${Me(l)} ${Me(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:KFe(e)},{[`${n}${n}-round${t}`]:GFe(e)}]},iLe=e=>{const t=Hn(e,{fontSize:e.contentFontSize});return tB(t,e.componentCls)},aLe=e=>{const t=Hn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return tB(t,`${e.componentCls}-sm`)},oLe=e=>{const t=Hn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return tB(t,`${e.componentCls}-lg`)},sLe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},lLe=Jn("Button",e=>{const t=Cpe(e);return[qFe(t),iLe(t),aLe(t),oLe(t),sLe(t),nLe(t),rLe(t),LDe(t)]},_pe,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function cLe(e,t,n){const{focusElCls:r,focus:i,borderElCls:a}=n,o=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${o}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function uLe(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Wg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},cLe(e,r,t)),uLe(n,r,t))}}function dLe(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function fLe(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function pLe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},dLe(e,t)),fLe(e.componentCls,t))}}const hLe=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,a=i(r).mul(-1).equal(),o=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},o()),o(!0))},mLe=xy(["Button","compact"],e=>{const t=Cpe(e);return[Wg(t),pLe(t),hLe(t)]},_pe);var gLe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a;const{loading:o=!1,prefixCls:s,color:l,variant:c,type:u,danger:f=!1,shape:p="default",size:h,styles:m,disabled:g,className:v,rootClassName:y,children:b,icon:w,iconPosition:_="start",ghost:k=!1,block:S=!1,htmlType:C="button",classNames:E,style:$={},autoInsertSpace:M,autoFocus:P}=e,I=gLe(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),O=u||"default",[A,R]=d.useMemo(()=>{if(l&&c)return[l,c];const We=yLe[O]||[];return f?["danger",We[1]]:We},[u,l,c,f]),N=A==="danger"?"dangerous":A,{getPrefixCls:D,direction:V,button:F}=d.useContext(Zt),K=(n=M??(F==null?void 0:F.autoInsertSpace))!==null&&n!==void 0?n:!0,B=D("btn",s),[U,Z,ee]=lLe(B),ie=d.useContext(ga),Y=g??ie,X=d.useContext(fpe),ae=d.useMemo(()=>vLe(o),[o]),[oe,le]=d.useState(ae.loading),[ce,pe]=d.useState(!1),me=d.useRef(null),re=Su(t,me),fe=d.Children.count(b)===1&&!w&&!C9(R),ve=d.useRef(!0);te.useEffect(()=>(ve.current=!1,()=>{ve.current=!0}),[]),d.useEffect(()=>{let We=null;ae.delay>0?We=setTimeout(()=>{We=null,le(!0)},ae.delay):le(ae.loading);function ge(){We&&(clearTimeout(We),We=null)}return ge},[ae]),d.useEffect(()=>{if(!me.current||!K)return;const We=me.current.textContent||"";fe&&mj(We)?ce||pe(!0):ce&&pe(!1)}),d.useEffect(()=>{P&&me.current&&me.current.focus()},[]);const $e=te.useCallback(We=>{var ge;if(oe||Y){We.preventDefault();return}(ge=e.onClick)===null||ge===void 0||ge.call(e,We)},[e.onClick,oe,Y]),{compactSize:Ce,compactItemClassnames:be}=_u(B,V),Se={large:"lg",small:"sm",middle:void 0},we=Hi(We=>{var ge,ze;return(ze=(ge=h??Ce)!==null&&ge!==void 0?ge:X)!==null&&ze!==void 0?ze:We}),se=we&&(r=Se[we])!==null&&r!==void 0?r:"",ye=oe?"loading":w,Oe=$r(I,["navigate"]),z=Ee(B,Z,ee,{[`${B}-${p}`]:p!=="default"&&p,[`${B}-${O}`]:O,[`${B}-dangerous`]:f,[`${B}-color-${N}`]:N,[`${B}-variant-${R}`]:R,[`${B}-${se}`]:se,[`${B}-icon-only`]:!b&&b!==0&&!!ye,[`${B}-background-ghost`]:k&&!C9(R),[`${B}-loading`]:oe,[`${B}-two-chinese-chars`]:ce&&K&&!oe,[`${B}-block`]:S,[`${B}-rtl`]:V==="rtl",[`${B}-icon-end`]:_==="end"},be,v,y,F==null?void 0:F.className),H=Object.assign(Object.assign({},F==null?void 0:F.style),$),G=Ee(E==null?void 0:E.icon,(i=F==null?void 0:F.classNames)===null||i===void 0?void 0:i.icon),de=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),((a=F==null?void 0:F.styles)===null||a===void 0?void 0:a.icon)||{}),xe=w&&!oe?te.createElement(gj,{prefixCls:B,className:G,style:de},w):typeof o=="object"&&o.icon?te.createElement(gj,{prefixCls:B,className:G,style:de},o.icon):te.createElement(FDe,{existIcon:!!w,prefixCls:B,loading:oe,mount:ve.current}),he=b||b===0?DDe(b,fe&&K):null;if(Oe.href!==void 0)return U(te.createElement("a",Object.assign({},Oe,{className:Ee(z,{[`${B}-disabled`]:Y}),href:Y?void 0:Oe.href,style:H,onClick:$e,ref:re,tabIndex:Y?-1:0}),xe,he));let Ue=te.createElement("button",Object.assign({},I,{type:C,className:z,style:H,onClick:$e,disabled:Y,ref:re}),xe,he,be&&te.createElement(mLe,{prefixCls:B}));return C9(R)||(Ue=te.createElement(y4,{component:"Button",disabled:oe},Ue)),U(Ue)}),Yt=bLe;Yt.Group=NDe;Yt.__ANT_BUTTON=!0;function M9(e){return!!(e!=null&&e.then)}const nB=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,f=d.useRef(!1),p=d.useRef(null),[h,m]=gg(!1),g=function(){a==null||a.apply(void 0,arguments)};d.useEffect(()=>{let b=null;return o&&(b=setTimeout(()=>{var w;(w=p.current)===null||w===void 0||w.focus({preventScroll:!0})})),()=>{b&&clearTimeout(b)}},[]);const v=b=>{M9(b)&&(m(!0),b.then(function(){m(!1,!0),g.apply(void 0,arguments),f.current=!1},w=>{if(m(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(w)}))},y=b=>{if(f.current)return;if(f.current=!0,!u){g();return}let w;if(s){if(w=u(b),c&&!M9(w)){f.current=!1,g(b);return}}else if(u.length)w=u(a),f.current=!1;else if(w=u(),!M9(w)){g();return}v(w)};return d.createElement(Yt,Object.assign({},GL(t),{onClick:y,loading:h,prefixCls:r},i,{ref:p}),n)},w4=te.createContext({}),{Provider:Epe}=w4,LG=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:l}=d.useContext(w4);return i?te.createElement(nB,{isSilent:r,actionFn:s,close:function(){o==null||o.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},BG=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:l}=d.useContext(w4);return te.createElement(nB,{isSilent:n,type:o||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},a)};var $pe=d.createContext(null),zG=[];function wLe(e,t){var n=d.useState(function(){if(!Ws())return null;var m=document.createElement("div");return m}),r=Te(n,1),i=r[0],a=d.useRef(!1),o=d.useContext($pe),s=d.useState(zG),l=Te(s,2),c=l[0],u=l[1],f=o||(a.current?void 0:function(m){u(function(g){var v=[m].concat(ct(g));return v})});function p(){i.parentElement||document.body.appendChild(i),a.current=!0}function h(){var m;(m=i.parentElement)===null||m===void 0||m.removeChild(i),a.current=!1}return nr(function(){return e?o?o(p):p():h(),h},[e]),nr(function(){c.length&&(c.forEach(function(m){return m()}),u(zG))},[c]),[i,f]}function xLe(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,a;if(e){var o=getComputedStyle(e);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";GE(` + `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},UFe=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},WFe=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),VFe=Jn("Collapse",e=>{const t=Hn(e,{collapseHeaderPaddingSM:`${Me(e.paddingXS)} ${Me(e.paddingSM)}`,collapseHeaderPaddingLG:`${Me(e.padding)} ${Me(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[BFe(t),HFe(t),UFe(t),zFe(t),x4(t)]},WFe),qFe=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=d.useContext(Xt),{prefixCls:a,className:o,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:f,expandIconPosition:p="start",children:h,expandIcon:m}=e,g=Bi(P=>{var R;return(R=f??P)!==null&&R!==void 0?R:"middle"}),v=n("collapse",a),y=n(),[w,b,C]=VFe(v),k=d.useMemo(()=>p==="left"?"start":p==="right"?"end":p,[p]),S=m??(i==null?void 0:i.expandIcon),_=d.useCallback(function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const R=typeof S=="function"?S(P):d.createElement(bc,{rotate:P.isActive?r==="rtl"?-90:90:void 0,"aria-label":P.isActive?"expanded":"collapsed"});return aa(R,()=>{var O;return{className:Ee((O=R==null?void 0:R.props)===null||O===void 0?void 0:O.className,`${v}-arrow`)}})},[S,v]),E=Ee(`${v}-icon-position-${k}`,{[`${v}-borderless`]:!c,[`${v}-rtl`]:r==="rtl",[`${v}-ghost`]:!!u,[`${v}-${g}`]:g!=="middle"},i==null?void 0:i.className,o,s,b,C),$=Object.assign(Object.assign({},P0(y)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),M=d.useMemo(()=>h?Xi(h).map((P,R)=>{var O,j;const I=P.props;if(I!=null&&I.disabled){const A=(O=P.key)!==null&&O!==void 0?O:String(R),N=Object.assign(Object.assign({},$r(P.props,["disabled"])),{key:A,collapsible:(j=I.collapsible)!==null&&j!==void 0?j:"disabled"});return aa(P,N)}return P}):null,[h]);return w(d.createElement(QL,Object.assign({ref:t,openMotion:$},$r(e,["rootClassName"]),{expandIcon:_,prefixCls:v,className:E,style:Object.assign(Object.assign({},i==null?void 0:i.style),l)}),M))}),l8=Object.assign(qFe,{Panel:dFe}),Xo=e=>e instanceof _l?e:new _l(e),n_=e=>Math.round(Number(e||0)),tB=e=>n_(e.toHsb().a*100),r_=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,Xo(r)}return n.a=1,Xo(n)},kpe=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(lt(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;re.map(t=>(t.colors=t.colors.map(Xo),t)),Epe=(e,t)=>{const{r:n,g:r,b:i,a}=e.toRgb(),o=new yu(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},zG=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},KFe=e=>{let{prefixCls:t,presets:n,value:r,onChange:i}=e;const[a]=Ga("ColorPicker"),[,o]=ka(),[s]=jn(P9(n),{value:P9(n),postState:P9}),l=`${t}-presets`,c=d.useMemo(()=>s.reduce((p,h,m)=>{const{defaultOpen:g=!0}=h;return g&&p.push(zG(h,m)),p},[]),[s]),u=p=>{i==null||i(p)},f=s.map((p,h)=>{var m;return{key:zG(p,h),label:te.createElement("div",{className:`${l}-label`},p==null?void 0:p.label),children:te.createElement("div",{className:`${l}-items`},Array.isArray(p==null?void 0:p.colors)&&((m=p.colors)===null||m===void 0?void 0:m.length)>0?p.colors.map((g,v)=>te.createElement(ZL,{key:`preset-${v}-${g.toHexString()}`,color:Xo(g).toRgbString(),prefixCls:t,className:Ee(`${l}-color`,{[`${l}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:Epe(g,o.colorBgElevated)}),onClick:()=>u(g)})):te.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return te.createElement("div",{className:l},te.createElement(l8,{defaultActiveKey:c,ghost:!0,items:f}))},$pe=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Hn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Mpe=e=>{var t,n,r,i,a,o;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(i=e.contentLineHeight)!==null&&i!==void 0?i:e_(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:e_(l),p=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:e_(c),h=Epe(new _l(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:h,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)}},GFe=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Me(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:wh(),"> a":{color:"currentColor"},"&:not(:disabled)":Vs(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${o}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},Tpe=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),YFe=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),XFe=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),ZFe=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),nB=(e,t,n,r,i,a,o,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Tpe(e,Object.assign({background:t},o),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:a||void 0}})}),QFe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},ZFe(e))}),JFe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),c8=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?JFe:QFe;return Object.assign(Object.assign({},a(e)),Tpe(e.componentCls,t,n))},u8=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},c8(e,r,i))}),d8=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},c8(e,r,i))}),f8=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),p8=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},c8(e,n,r))}),fh=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},c8(e,r,i,n))}),eLe=e=>{const{componentCls:t}=e;return yg.reduce((n,r)=>{const i=e[`${r}6`],a=e[`${r}1`],o=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`],u=`0 ${Me(e.controlOutlineWidth)} 0 ${e[`${r}1`]}`;return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:u},u8(e,e.colorTextLightSolid,i,{background:o},{background:c})),d8(e,i,e.colorBgContainer,{color:o,borderColor:o,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),f8(e)),p8(e,a,{background:s},{background:l})),fh(e,i,"link",{color:o},{color:c})),fh(e,i,"text",{color:o,background:a},{color:c,background:l}))})},{})},tLe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},u8(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),f8(e)),p8(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),fh(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),nB(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),nLe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},d8(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),f8(e)),p8(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),fh(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),nB(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),rLe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},u8(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),d8(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),f8(e)),p8(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),fh(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),fh(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),nB(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),iLe=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:tLe(e),[`${t}-color-primary`]:nLe(e),[`${t}-color-dangerous`]:rLe(e)},eLe(e))},aLe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},d8(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),fh(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),u8(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),fh(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),rB=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:r,padding:`${Me(l)} ${Me(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:YFe(e)},{[`${n}${n}-round${t}`]:XFe(e)}]},oLe=e=>{const t=Hn(e,{fontSize:e.contentFontSize});return rB(t,e.componentCls)},sLe=e=>{const t=Hn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return rB(t,`${e.componentCls}-sm`)},lLe=e=>{const t=Hn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return rB(t,`${e.componentCls}-lg`)},cLe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},uLe=Jn("Button",e=>{const t=$pe(e);return[GFe(t),oLe(t),sLe(t),lLe(t),cLe(t),iLe(t),aLe(t),zDe(t)]},Mpe,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function dLe(e,t,n){const{focusElCls:r,focus:i,borderElCls:a}=n,o=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${o}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function fLe(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Vg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},dLe(e,r,t)),fLe(n,r,t))}}function pLe(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function hLe(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function mLe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},pLe(e,t)),hLe(e.componentCls,t))}}const gLe=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,a=i(r).mul(-1).equal(),o=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},o()),o(!0))},vLe=Sy(["Button","compact"],e=>{const t=$pe(e);return[Vg(t),mLe(t),gLe(t)]},Mpe);var yLe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a;const{loading:o=!1,prefixCls:s,color:l,variant:c,type:u,danger:f=!1,shape:p="default",size:h,styles:m,disabled:g,className:v,rootClassName:y,children:w,icon:b,iconPosition:C="start",ghost:k=!1,block:S=!1,htmlType:_="button",classNames:E,style:$={},autoInsertSpace:M,autoFocus:P}=e,R=yLe(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),O=u||"default",[j,I]=d.useMemo(()=>{if(l&&c)return[l,c];const We=wLe[O]||[];return f?["danger",We[1]]:We},[u,l,c,f]),N=j==="danger"?"dangerous":j,{getPrefixCls:F,direction:K,button:L}=d.useContext(Xt),V=(n=M??(L==null?void 0:L.autoInsertSpace))!==null&&n!==void 0?n:!0,B=F("btn",s),[U,Y,ee]=uLe(B),ie=d.useContext(ma),Z=g??ie,X=d.useContext(gpe),ae=d.useMemo(()=>bLe(o),[o]),[oe,le]=d.useState(ae.loading),[ce,pe]=d.useState(!1),me=d.useRef(null),re=ku(t,me),fe=d.Children.count(w)===1&&!b&&!E9(I),ve=d.useRef(!0);te.useEffect(()=>(ve.current=!1,()=>{ve.current=!0}),[]),d.useEffect(()=>{let We=null;ae.delay>0?We=setTimeout(()=>{We=null,le(!0)},ae.delay):le(ae.loading);function ge(){We&&(clearTimeout(We),We=null)}return ge},[ae]),d.useEffect(()=>{if(!me.current||!V)return;const We=me.current.textContent||"";fe&&yj(We)?ce||pe(!0):ce&&pe(!1)}),d.useEffect(()=>{P&&me.current&&me.current.focus()},[]);const $e=te.useCallback(We=>{var ge;if(oe||Z){We.preventDefault();return}(ge=e.onClick)===null||ge===void 0||ge.call(e,We)},[e.onClick,oe,Z]),{compactSize:Ce,compactItemClassnames:be}=$u(B,K),Se={large:"lg",small:"sm",middle:void 0},we=Bi(We=>{var ge,ze;return(ze=(ge=h??Ce)!==null&&ge!==void 0?ge:X)!==null&&ze!==void 0?ze:We}),se=we&&(r=Se[we])!==null&&r!==void 0?r:"",ye=oe?"loading":b,Oe=$r(R,["navigate"]),z=Ee(B,Y,ee,{[`${B}-${p}`]:p!=="default"&&p,[`${B}-${O}`]:O,[`${B}-dangerous`]:f,[`${B}-color-${N}`]:N,[`${B}-variant-${I}`]:I,[`${B}-${se}`]:se,[`${B}-icon-only`]:!w&&w!==0&&!!ye,[`${B}-background-ghost`]:k&&!E9(I),[`${B}-loading`]:oe,[`${B}-two-chinese-chars`]:ce&&V&&!oe,[`${B}-block`]:S,[`${B}-rtl`]:K==="rtl",[`${B}-icon-end`]:C==="end"},be,v,y,L==null?void 0:L.className),H=Object.assign(Object.assign({},L==null?void 0:L.style),$),G=Ee(E==null?void 0:E.icon,(i=L==null?void 0:L.classNames)===null||i===void 0?void 0:i.icon),de=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),((a=L==null?void 0:L.styles)===null||a===void 0?void 0:a.icon)||{}),xe=b&&!oe?te.createElement(bj,{prefixCls:B,className:G,style:de},b):typeof o=="object"&&o.icon?te.createElement(bj,{prefixCls:B,className:G,style:de},o.icon):te.createElement(BDe,{existIcon:!!b,prefixCls:B,loading:oe,mount:ve.current}),he=w||w===0?LDe(w,fe&&V):null;if(Oe.href!==void 0)return U(te.createElement("a",Object.assign({},Oe,{className:Ee(z,{[`${B}-disabled`]:Z}),href:Z?void 0:Oe.href,style:H,onClick:$e,ref:re,tabIndex:Z?-1:0}),xe,he));let Ue=te.createElement("button",Object.assign({},R,{type:_,className:z,style:H,onClick:$e,disabled:Z,ref:re}),xe,he,be&&te.createElement(vLe,{prefixCls:B}));return E9(I)||(Ue=te.createElement(w4,{component:"Button",disabled:oe},Ue)),U(Ue)}),Yt=xLe;Yt.Group=DDe;Yt.__ANT_BUTTON=!0;function O9(e){return!!(e!=null&&e.then)}const iB=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,f=d.useRef(!1),p=d.useRef(null),[h,m]=vg(!1),g=function(){a==null||a.apply(void 0,arguments)};d.useEffect(()=>{let w=null;return o&&(w=setTimeout(()=>{var b;(b=p.current)===null||b===void 0||b.focus({preventScroll:!0})})),()=>{w&&clearTimeout(w)}},[]);const v=w=>{O9(w)&&(m(!0),w.then(function(){m(!1,!0),g.apply(void 0,arguments),f.current=!1},b=>{if(m(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(b)}))},y=w=>{if(f.current)return;if(f.current=!0,!u){g();return}let b;if(s){if(b=u(w),c&&!O9(b)){f.current=!1,g(w);return}}else if(u.length)b=u(a),f.current=!1;else if(b=u(),!O9(b)){g();return}v(b)};return d.createElement(Yt,Object.assign({},XL(t),{onClick:y,loading:h,prefixCls:r},i,{ref:p}),n)},S4=te.createContext({}),{Provider:Ppe}=S4,HG=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:l}=d.useContext(S4);return i?te.createElement(iB,{isSilent:r,actionFn:s,close:function(){o==null||o.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},UG=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:l}=d.useContext(S4);return te.createElement(iB,{isSilent:n,type:o||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},a)};var Ope=d.createContext(null),WG=[];function SLe(e,t){var n=d.useState(function(){if(!Ws())return null;var m=document.createElement("div");return m}),r=Te(n,1),i=r[0],a=d.useRef(!1),o=d.useContext(Ope),s=d.useState(WG),l=Te(s,2),c=l[0],u=l[1],f=o||(a.current?void 0:function(m){u(function(g){var v=[m].concat(lt(g));return v})});function p(){i.parentElement||document.body.appendChild(i),a.current=!0}function h(){var m;(m=i.parentElement)===null||m===void 0||m.removeChild(i),a.current=!1}return nr(function(){return e?o?o(p):p():h(),h},[e]),nr(function(){c.length&&(c.forEach(function(m){return m()}),u(WG))},[c]),[i,f]}function CLe(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,a;if(e){var o=getComputedStyle(e);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";YE(` #`.concat(t,`::-webkit-scrollbar { `).concat(u,` `).concat(f,` -}`),t)}catch(m){console.error(m),i=l,a=c}}document.body.appendChild(n);var p=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,h=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),ij(t),{width:p,height:h}}function SLe(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:xLe(e)}function CLe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var _Le="rc-util-locker-".concat(Date.now()),HG=0;function kLe(e){var t=!!e,n=d.useState(function(){return HG+=1,"".concat(_Le,"_").concat(HG)}),r=Te(n,1),i=r[0];nr(function(){if(t){var a=SLe(document.body).width,o=CLe();GE(` +}`),t)}catch(m){console.error(m),i=l,a=c}}document.body.appendChild(n);var p=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,h=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),sj(t),{width:p,height:h}}function _Le(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:CLe(e)}function kLe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var ELe="rc-util-locker-".concat(Date.now()),VG=0;function $Le(e){var t=!!e,n=d.useState(function(){return VG+=1,"".concat(ELe,"_").concat(VG)}),r=Te(n,1),i=r[0];nr(function(){if(t){var a=_Le(document.body).width,o=kLe();YE(` html body { overflow-y: hidden; `.concat(o?"width: calc(100% - ".concat(a,"px);"):"",` -}`),i)}else ij(i);return function(){ij(i)}},[t,i])}var ELe=!1;function $Le(e){return ELe}var UG=function(t){return t===!1?!1:!Ws()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},x4=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var a=e.autoDestroy,o=a===void 0?!0:a,s=e.children,l=d.useState(n),c=Te(l,2),u=c[0],f=c[1],p=u||n;d.useEffect(function(){(o||n)&&f(n)},[n,o]);var h=d.useState(function(){return UG(i)}),m=Te(h,2),g=m[0],v=m[1];d.useEffect(function(){var P=UG(i);v(P??null)});var y=wLe(p&&!g),b=Te(y,2),w=b[0],_=b[1],k=g??w;kLe(r&&n&&Ws()&&(k===w||k===document.body));var S=null;if(s&&Vf(s)&&t){var C=s;S=C.ref}var E=Su(S,t);if(!p||!Ws()||g===void 0)return null;var $=k===!1||$Le(),M=s;return t&&(M=d.cloneElement(s,{ref:E})),d.createElement($pe.Provider,{value:_},$?M:Ka.createPortal(M,k))}),Mpe=d.createContext({});function MLe(){var e=q({},Qm);return e.useId}var WG=0,VG=MLe();const p8=VG?function(t){var n=VG();return t||n}:function(t){var n=d.useState("ssr-id"),r=Te(n,2),i=r[0],a=r[1];return d.useEffect(function(){var o=WG;WG+=1,a("rc_unique_".concat(o))},[]),t||i};function qG(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function KG(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function TLe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=KG(i),n.top+=KG(i,!0),n}const PLe=d.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var OLe={width:0,height:0,overflow:"hidden",outline:"none"},ILe={outline:"none"},Tpe=te.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.title,o=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,p=e.bodyStyle,h=e.bodyProps,m=e.modalRender,g=e.onMouseDown,v=e.onMouseUp,y=e.holderRef,b=e.visible,w=e.forceRender,_=e.width,k=e.height,S=e.classNames,C=e.styles,E=te.useContext(Mpe),$=E.panel,M=Su(y,$),P=d.useRef(),I=d.useRef();te.useImperativeHandle(t,function(){return{focus:function(){var B;(B=P.current)===null||B===void 0||B.focus({preventScroll:!0})},changeActive:function(B){var U=document,Z=U.activeElement;B&&Z===I.current?P.current.focus({preventScroll:!0}):!B&&Z===P.current&&I.current.focus({preventScroll:!0})}}});var O={};_!==void 0&&(O.width=_),k!==void 0&&(O.height=k);var A=s?te.createElement("div",{className:Ee("".concat(n,"-footer"),S==null?void 0:S.footer),style:q({},C==null?void 0:C.footer)},s):null,R=a?te.createElement("div",{className:Ee("".concat(n,"-header"),S==null?void 0:S.header),style:q({},C==null?void 0:C.header)},te.createElement("div",{className:"".concat(n,"-title"),id:o},a)):null,j=d.useMemo(function(){return Kt(l)==="object"&&l!==null?l:l?{closeIcon:c??te.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),N=Bi(j,!0),D=Kt(l)==="object"&&l.disabled,V=l?te.createElement("button",tt({type:"button",onClick:u,"aria-label":"Close"},N,{className:"".concat(n,"-close"),disabled:D}),j.closeIcon):null,F=te.createElement("div",{className:Ee("".concat(n,"-content"),S==null?void 0:S.content),style:C==null?void 0:C.content},V,R,te.createElement("div",tt({className:Ee("".concat(n,"-body"),S==null?void 0:S.body),style:q(q({},p),C==null?void 0:C.body)},h),f),A);return te.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?o:null,"aria-modal":"true",ref:M,style:q(q({},i),O),className:Ee(n,r),onMouseDown:g,onMouseUp:v},te.createElement("div",{ref:P,tabIndex:0,style:ILe},te.createElement(PLe,{shouldUpdate:b||w},m?m(F):F)),te.createElement("div",{tabIndex:0,ref:I,style:OLe}))}),Ppe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,a=e.className,o=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,h=d.useRef(),m=d.useState(),g=Te(m,2),v=g[0],y=g[1],b={};v&&(b.transformOrigin=v);function w(){var _=TLe(h.current);y(p&&(p.x||p.y)?"".concat(p.x-_.left,"px ").concat(p.y-_.top,"px"):"")}return d.createElement(ka,{visible:o,onVisibleChanged:f,onAppearPrepare:w,onEnterPrepare:w,forceRender:s,motionName:c,removeOnLeave:l,ref:h},function(_,k){var S=_.className,C=_.style;return d.createElement(Tpe,tt({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:k,style:q(q(q({},C),i),b),className:Ee(a,S)}))})});Ppe.displayName="Content";var RLe=function(t){var n=t.prefixCls,r=t.style,i=t.visible,a=t.maskProps,o=t.motionName,s=t.className;return d.createElement(ka,{key:"mask",visible:i,motionName:o,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return d.createElement("div",tt({ref:c,style:q(q({},f),r),className:Ee("".concat(n,"-mask"),u,s)},a))})},jLe=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,i=t.zIndex,a=t.visible,o=a===void 0?!1:a,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,p=t.wrapClassName,h=t.wrapProps,m=t.onClose,g=t.afterOpenChange,v=t.afterClose,y=t.transitionName,b=t.animation,w=t.closable,_=w===void 0?!0:w,k=t.mask,S=k===void 0?!0:k,C=t.maskTransitionName,E=t.maskAnimation,$=t.maskClosable,M=$===void 0?!0:$,P=t.maskStyle,I=t.maskProps,O=t.rootClassName,A=t.classNames,R=t.styles,j=d.useRef(),N=d.useRef(),D=d.useRef(),V=d.useState(o),F=Te(V,2),K=F[0],B=F[1],U=p8();function Z(){nj(N.current,document.activeElement)||(j.current=document.activeElement)}function ee(){if(!nj(N.current,document.activeElement)){var re;(re=D.current)===null||re===void 0||re.focus()}}function ie(re){if(re)ee();else{if(B(!1),S&&j.current&&u){try{j.current.focus({preventScroll:!0})}catch{}j.current=null}K&&(v==null||v())}g==null||g(re)}function Y(re){m==null||m(re)}var X=d.useRef(!1),ae=d.useRef(),oe=function(){clearTimeout(ae.current),X.current=!0},le=function(){ae.current=setTimeout(function(){X.current=!1})},ce=null;M&&(ce=function(fe){X.current?X.current=!1:N.current===fe.target&&Y(fe)});function pe(re){if(l&&re.keyCode===gt.ESC){re.stopPropagation(),Y(re);return}o&&re.keyCode===gt.TAB&&D.current.changeActive(!re.shiftKey)}d.useEffect(function(){o&&(B(!0),Z())},[o]),d.useEffect(function(){return function(){clearTimeout(ae.current)}},[]);var me=q(q(q({zIndex:i},f),R==null?void 0:R.wrapper),{},{display:K?null:"none"});return d.createElement("div",tt({className:Ee("".concat(r,"-root"),O)},Bi(t,{data:!0})),d.createElement(RLe,{prefixCls:r,visible:S&&o,motionName:qG(r,C,E),style:q(q({zIndex:i},P),R==null?void 0:R.mask),maskProps:I,className:A==null?void 0:A.mask}),d.createElement("div",tt({tabIndex:-1,onKeyDown:pe,className:Ee("".concat(r,"-wrap"),p,A==null?void 0:A.wrapper),ref:N,onClick:ce,style:me},h),d.createElement(Ppe,tt({},t,{onMouseDown:oe,onMouseUp:le,ref:D,closable:_,ariaId:U,prefixCls:r,visible:o&&K,onClose:Y,onVisibleChanged:ie,motionName:qG(r,y,b)}))))},rB=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,a=t.destroyOnClose,o=a===void 0?!1:a,s=t.afterClose,l=t.panelRef,c=d.useState(n),u=Te(c,2),f=u[0],p=u[1],h=d.useMemo(function(){return{panel:l}},[l]);return d.useEffect(function(){n&&p(!0)},[n]),!i&&o&&!f?null:d.createElement(Mpe.Provider,{value:h},d.createElement(x4,{open:n||i||f,autoDestroy:!1,getContainer:r,autoLock:n||f},d.createElement(jLe,tt({},t,{destroyOnClose:o,afterClose:function(){s==null||s(),p(!1)}}))))};rB.displayName="Dialog";var Sm="RC_FORM_INTERNAL_HOOKS",pi=function(){zr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},dh=d.createContext({getFieldValue:pi,getFieldsValue:pi,getFieldError:pi,getFieldWarning:pi,getFieldsError:pi,isFieldsTouched:pi,isFieldTouched:pi,isFieldValidating:pi,isFieldsValidating:pi,resetFields:pi,setFields:pi,setFieldValue:pi,setFieldsValue:pi,validateFields:pi,submit:pi,getInternalHooks:function(){return pi(),{dispatch:pi,initEntityValue:pi,registerField:pi,useSubscribe:pi,setInitialValues:pi,destroyForm:pi,setCallbacks:pi,registerWatch:pi,getFields:pi,setValidateMessages:pi,setPreserve:pi,getInitialValue:pi}}}),n3=d.createContext(null);function vj(e){return e==null?[]:Array.isArray(e)?e:[e]}function NLe(e){return e&&!!e._init}function yj(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var bj=yj();function ALe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function DLe(e,t,n){if(BE())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&qw(i,n.prototype),i}function wj(e){var t=typeof Map=="function"?new Map:void 0;return wj=function(r){if(r===null||!ALe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return DLe(r,arguments,dg(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),qw(i,r)},wj(e)}var FLe=/%[sdj%]/g,LLe=function(){};function xj(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function _l(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function BLe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ya(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||BLe(t)&&typeof e=="string"&&!e)}function zLe(e,t,n){var r=[],i=0,a=e.length;function o(s){r.push.apply(r,ct(s||[])),i++,i===a&&n(r)}e.forEach(function(s){t(s,o)})}function GG(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r=r+1,st.max?i.push(_l(a.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&i.push(_l(a.messages[f].range,t.fullField,t.min,t.max))},Ope=function(t,n,r,i,a,o){t.required&&(!r.hasOwnProperty(t.field)||Ya(n,o||t.type))&&i.push(_l(a.messages.required,t.fullField))},gS;const YLe=function(){if(gS)return gS;var e="[a-fA-F\\d:]",t=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(i.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(o,"$")),u=function(S){return S&&S.exact?s:new RegExp("(?:".concat(t(S)).concat(n).concat(t(S),")|(?:").concat(t(S)).concat(o).concat(t(S),")"),"g")};u.v4=function(k){return k&&k.exact?l:new RegExp("".concat(t(k)).concat(n).concat(t(k)),"g")},u.v6=function(k){return k&&k.exact?c:new RegExp("".concat(t(k)).concat(o).concat(t(k)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",h=u.v4().source,m=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',_="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(h,"|").concat(m,"|").concat(g).concat(v).concat(y,")").concat(b).concat(w);return gS=new RegExp("(?:^".concat(_,"$)"),"i"),gS};var QG={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},b2={integer:function(t){return b2.number(t)&&parseInt(t,10)===t},float:function(t){return b2.number(t)&&!b2.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Kt(t)==="object"&&!b2.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(QG.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(YLe())},hex:function(t){return typeof t=="string"&&!!t.match(QG.hex)}},XLe=function(t,n,r,i,a){if(t.required&&n===void 0){Ope(t,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?b2[s](n)||i.push(_l(a.messages.types[s],t.fullField,t.type)):s&&Kt(n)!==t.type&&i.push(_l(a.messages.types[s],t.fullField,t.type))},ZLe=function(t,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(_l(a.messages.whitespace,t.fullField))};const Br={required:Ope,whitespace:ZLe,type:XLe,range:GLe,enum:qLe,pattern:KLe};var QLe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ya(n)&&!t.required)return r();Br.required(t,n,i,o,a)}r(o)},JLe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Br.required(t,n,i,o,a,"array"),n!=null&&(Br.type(t,n,i,o,a),Br.range(t,n,i,o,a))}r(o)},eBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ya(n)&&!t.required)return r();Br.required(t,n,i,o,a),n!==void 0&&Br.type(t,n,i,o,a)}r(o)},tBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ya(n,"date")&&!t.required)return r();if(Br.required(t,n,i,o,a),!Ya(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Br.type(t,l,i,o,a),l&&Br.range(t,l.getTime(),i,o,a)}}r(o)},nBe="enum",rBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ya(n)&&!t.required)return r();Br.required(t,n,i,o,a),n!==void 0&&Br[nBe](t,n,i,o,a)}r(o)},iBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ya(n)&&!t.required)return r();Br.required(t,n,i,o,a),n!==void 0&&(Br.type(t,n,i,o,a),Br.range(t,n,i,o,a))}r(o)},aBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ya(n)&&!t.required)return r();Br.required(t,n,i,o,a),n!==void 0&&(Br.type(t,n,i,o,a),Br.range(t,n,i,o,a))}r(o)},oBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ya(n)&&!t.required)return r();Br.required(t,n,i,o,a),n!==void 0&&Br.type(t,n,i,o,a)}r(o)},sBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Ya(n)&&!t.required)return r();Br.required(t,n,i,o,a),n!==void 0&&(Br.type(t,n,i,o,a),Br.range(t,n,i,o,a))}r(o)},lBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ya(n)&&!t.required)return r();Br.required(t,n,i,o,a),n!==void 0&&Br.type(t,n,i,o,a)}r(o)},cBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ya(n,"string")&&!t.required)return r();Br.required(t,n,i,o,a),Ya(n,"string")||Br.pattern(t,n,i,o,a)}r(o)},uBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ya(n)&&!t.required)return r();Br.required(t,n,i,o,a),Ya(n)||Br.type(t,n,i,o,a)}r(o)},dBe=function(t,n,r,i,a){var o=[],s=Array.isArray(n)?"array":Kt(n);Br.required(t,n,i,o,a,s),r(o)},fBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ya(n,"string")&&!t.required)return r();Br.required(t,n,i,o,a,"string"),Ya(n,"string")||(Br.type(t,n,i,o,a),Br.range(t,n,i,o,a),Br.pattern(t,n,i,o,a),t.whitespace===!0&&Br.whitespace(t,n,i,o,a))}r(o)},T9=function(t,n,r,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ya(n,o)&&!t.required)return r();Br.required(t,n,i,s,a,o),Ya(n,o)||Br.type(t,n,i,s,a)}r(s)};const X2={string:fBe,method:oBe,number:sBe,boolean:eBe,regexp:uBe,integer:aBe,float:iBe,array:JLe,object:lBe,enum:rBe,pattern:cBe,date:tBe,url:T9,hex:T9,email:T9,required:dBe,any:QLe};var S4=function(){function e(t){Dr(this,e),ne(this,"rules",null),ne(this,"_messages",bj),this.define(t)}return Fr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Kt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var a=n[i];r.rules[i]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=ZG(yj(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=n,s=i,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function c(m){var g=[],v={};function y(w){if(Array.isArray(w)){var _;g=(_=g).concat.apply(_,ct(w))}else g.push(w)}for(var b=0;b0&&arguments[0]!==void 0?arguments[0]:[],E=Array.isArray(C)?C:[C];!s.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&v.message!==void 0&&(E=[].concat(v.message));var $=E.map(XG(v,o));if(s.first&&$.length)return h[v.field]=1,g($);if(!y)g($);else{if(v.required&&!m.value)return v.message!==void 0?$=[].concat(v.message).map(XG(v,o)):s.error&&($=[s.error(v,_l(s.messages.required,v.field))]),g($);var M={};v.defaultField&&Object.keys(m.value).map(function(O){M[O]=v.defaultField}),M=q(q({},M),m.rule.fields);var P={};Object.keys(M).forEach(function(O){var A=M[O],R=Array.isArray(A)?A:[A];P[O]=R.map(b.bind(null,O))});var I=new e(P);I.messages(s.messages),m.rule.options&&(m.rule.options.messages=s.messages,m.rule.options.error=s.error),I.validate(m.value,m.rule.options||s,function(O){var A=[];$&&$.length&&A.push.apply(A,ct($)),O&&O.length&&A.push.apply(A,ct(O)),g(A.length?A:null)})}}var _;if(v.asyncValidator)_=v.asyncValidator(v,m.value,w,m.source,s);else if(v.validator){try{_=v.validator(v,m.value,w,m.source,s)}catch(C){var k,S;(k=(S=console).error)===null||k===void 0||k.call(S,C),s.suppressValidatorError||setTimeout(function(){throw C},0),w(C.message)}_===!0?w():_===!1?w(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):_ instanceof Array?w(_):_ instanceof Error&&w(_.message)}_&&_.then&&_.then(function(){return w()},function(C){return w(C)})},function(m){c(m)},o)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!X2.hasOwnProperty(n.type))throw new Error(_l("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?X2.required:X2[this.getType(n)]||void 0}}]),e}();ne(S4,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");X2[t]=n});ne(S4,"warning",LLe);ne(S4,"messages",bj);ne(S4,"validators",X2);var il="'${name}' is not a valid ${type}",Ipe={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:il,method:il,array:il,object:il,number:il,date:il,boolean:il,integer:il,float:il,regexp:il,email:il,url:il,hex:il},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},JG=S4;function pBe(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var eY="CODE_LOGIC_ERROR";function Sj(e,t,n,r,i){return Cj.apply(this,arguments)}function Cj(){return Cj=ha(mr().mark(function e(t,n,r,i,a){var o,s,l,c,u,f,p,h,m;return mr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return o=q({},r),delete o.ruleIndex,JG.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(eY)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),c=new JG(ne({},t,[o])),u=hv(Ipe,i.validateMessages),c.messages(u),f=[],v.prev=10,v.next=13,Promise.resolve(c.validate(ne({},t,n),q({},i)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(y,b){var w=y.message,_=w===eY?u.default:w;return d.isValidElement(_)?d.cloneElement(_,{key:"error_".concat(b)}):_}));case 18:if(!(!f.length&&l)){v.next=23;break}return v.next=21,Promise.all(n.map(function(y,b){return Sj("".concat(t,".").concat(b),y,l,i,a)}));case 21:return p=v.sent,v.abrupt("return",p.reduce(function(y,b){return[].concat(ct(y),ct(b))},[]));case 23:return h=q(q({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),m=f.map(function(y){return typeof y=="string"?pBe(y,h):y}),v.abrupt("return",m);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),Cj.apply(this,arguments)}function hBe(e,t,n,r,i,a){var o=e.join("."),s=n.map(function(u,f){var p=u.validator,h=q(q({},u),{},{ruleIndex:f});return p&&(h.validator=function(m,g,v){var y=!1,b=function(){for(var k=arguments.length,S=new Array(k),C=0;C2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Rpe(t,r,n)})}function Rpe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function vBe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Kt(e)!=="object"||Kt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return ct(i).every(function(a){var o=e[a],s=t[a];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function yBe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Kt(t.target)==="object"&&e in t.target?t.target[e]:t}function nY(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(ct(e.slice(0,n)),[i],ct(e.slice(n,t)),ct(e.slice(t+1,r))):a<0?[].concat(ct(e.slice(0,t)),ct(e.slice(t+1,n+1)),[i],ct(e.slice(n+1,r))):e}var bBe=["name"],Vl=[];function P9(e,t,n,r,i,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==i}var iB=function(e){Eo(n,e);var t=ts(n);function n(r){var i;if(Dr(this,n),i=t.call(this,r),ne(un(i),"state",{resetCount:0}),ne(un(i),"cancelRegisterFunc",null),ne(un(i),"mounted",!1),ne(un(i),"touched",!1),ne(un(i),"dirty",!1),ne(un(i),"validatePromise",void 0),ne(un(i),"prevValidating",void 0),ne(un(i),"errors",Vl),ne(un(i),"warnings",Vl),ne(un(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,wa(f)),i.cancelRegisterFunc=null}),ne(un(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,f=u.prefixName,p=f===void 0?[]:f;return c!==void 0?[].concat(ct(p),ct(c)):[]}),ne(un(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(p){return typeof p=="function"?p(f):p})}),ne(un(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),ne(un(i),"metaCache",null),ne(un(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=q(q({},i.getMeta()),{},{destroy:l});mg(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),ne(un(i),"onStoreChange",function(l,c,u){var f=i.props,p=f.shouldUpdate,h=f.dependencies,m=h===void 0?[]:h,g=f.onReset,v=u.store,y=i.getNamePath(),b=i.getValue(l),w=i.getValue(v),_=c&&Pv(c,y);switch(u.type==="valueUpdate"&&u.source==="external"&&!mg(b,w)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Vl,i.warnings=Vl,i.triggerMetaEvent()),u.type){case"reset":if(!c||_){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Vl,i.warnings=Vl,i.triggerMetaEvent(),g==null||g(),i.refresh();return}break;case"remove":{if(p&&P9(p,l,v,b,w,u)){i.reRender();return}break}case"setField":{var k=u.data;if(_){"touched"in k&&(i.touched=k.touched),"validating"in k&&!("originRCField"in k)&&(i.validatePromise=k.validating?Promise.resolve([]):null),"errors"in k&&(i.errors=k.errors||Vl),"warnings"in k&&(i.warnings=k.warnings||Vl),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in k&&Pv(c,y,!0)){i.reRender();return}if(p&&!y.length&&P9(p,l,v,b,w,u)){i.reRender();return}break}case"dependenciesUpdate":{var S=m.map(wa);if(S.some(function(C){return Pv(u.relatedFields,C)})){i.reRender();return}break}default:if(_||(!m.length||y.length||p)&&P9(p,l,v,b,w,u)){i.reRender();return}break}p===!0&&i.reRender()}),ne(un(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),f=l||{},p=f.triggerName,h=f.validateOnly,m=h===void 0?!1:h,g=Promise.resolve().then(ha(mr().mark(function v(){var y,b,w,_,k,S,C;return mr().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(i.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(y=i.props,b=y.validateFirst,w=b===void 0?!1:b,_=y.messageVariables,k=y.validateDebounce,S=i.getRules(),p&&(S=S.filter(function(M){return M}).filter(function(M){var P=M.validateTrigger;if(!P)return!0;var I=vj(P);return I.includes(p)})),!(k&&p)){$.next=10;break}return $.next=8,new Promise(function(M){setTimeout(M,k)});case 8:if(i.validatePromise===g){$.next=10;break}return $.abrupt("return",[]);case 10:return C=hBe(c,u,S,l,w,_),C.catch(function(M){return M}).then(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vl;if(i.validatePromise===g){var P;i.validatePromise=null;var I=[],O=[];(P=M.forEach)===null||P===void 0||P.call(M,function(A){var R=A.rule.warningOnly,j=A.errors,N=j===void 0?Vl:j;R?O.push.apply(O,ct(N)):I.push.apply(I,ct(N))}),i.errors=I,i.warnings=O,i.triggerMetaEvent(),i.reRender()}}),$.abrupt("return",C);case 13:case"end":return $.stop()}},v)})));return m||(i.validatePromise=g,i.dirty=!0,i.errors=Vl,i.warnings=Vl,i.triggerMetaEvent(),i.reRender()),g}),ne(un(i),"isFieldValidating",function(){return!!i.validatePromise}),ne(un(i),"isFieldTouched",function(){return i.touched}),ne(un(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(Sm),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),ne(un(i),"getErrors",function(){return i.errors}),ne(un(i),"getWarnings",function(){return i.warnings}),ne(un(i),"isListField",function(){return i.props.isListField}),ne(un(i),"isList",function(){return i.props.isList}),ne(un(i),"isPreserve",function(){return i.props.preserve}),ne(un(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),ne(un(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return q(q({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=Zi(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),ne(un(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return Ds(l||c(!0),u)}),ne(un(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,f=c.trigger,p=c.validateTrigger,h=c.getValueFromEvent,m=c.normalize,g=c.valuePropName,v=c.getValueProps,y=c.fieldContext,b=p!==void 0?p:y.validateTrigger,w=i.getNamePath(),_=y.getInternalHooks,k=y.getFieldsValue,S=_(Sm),C=S.dispatch,E=i.getValue(),$=v||function(A){return ne({},g,A)},M=l[f],P=u!==void 0?$(E):{},I=q(q({},l),P);I[f]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var A,R=arguments.length,j=new Array(R),N=0;N=0&&M<=P.length?(u.keys=[].concat(ct(u.keys.slice(0,M)),[u.id],ct(u.keys.slice(M))),w([].concat(ct(P.slice(0,M)),[$],ct(P.slice(M))))):(u.keys=[].concat(ct(u.keys),[u.id]),w([].concat(ct(P),[$]))),u.id+=1},remove:function($){var M=k(),P=new Set(Array.isArray($)?$:[$]);P.size<=0||(u.keys=u.keys.filter(function(I,O){return!P.has(O)}),w(M.filter(function(I,O){return!P.has(O)})))},move:function($,M){if($!==M){var P=k();$<0||$>=P.length||M<0||M>=P.length||(u.keys=nY(u.keys,$,M),w(nY(P,$,M)))}}},C=b||[];return Array.isArray(C)||(C=[]),r(C.map(function(E,$){var M=u.keys[$];return M===void 0&&(u.keys[$]=u.id,M=u.keys[$],u.id+=1),{name:$,key:M,isListField:!0}}),S,v)})))}function wBe(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var Npe="__@field_split__";function O9(e){return e.map(function(t){return"".concat(Kt(t),":").concat(t)}).join(Npe)}var M1=function(){function e(){Dr(this,e),ne(this,"kvs",new Map)}return Fr(e,[{key:"set",value:function(n,r){this.kvs.set(O9(n),r)}},{key:"get",value:function(n){return this.kvs.get(O9(n))}},{key:"update",value:function(n,r){var i=this.get(n),a=r(i);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(O9(n))}},{key:"map",value:function(n){return ct(this.kvs.entries()).map(function(r){var i=Te(r,2),a=i[0],o=i[1],s=a.split(Npe);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Te(c,3),f=u[1],p=u[2];return f==="number"?Number(p):p}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,a=r.value;return n[i.join(".")]=a,null}),n}}]),e}(),xBe=["name"],SBe=Fr(function e(t){var n=this;Dr(this,e),ne(this,"formHooked",!1),ne(this,"forceRootUpdate",void 0),ne(this,"subscribable",!0),ne(this,"store",{}),ne(this,"fieldEntities",[]),ne(this,"initialValues",{}),ne(this,"callbacks",{}),ne(this,"validateMessages",null),ne(this,"preserve",null),ne(this,"lastValidatePromise",null),ne(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),ne(this,"getInternalHooks",function(r){return r===Sm?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(zr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ne(this,"useSubscribe",function(r){n.subscribable=r}),ne(this,"prevWithoutPreserves",null),ne(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var a,o=hv(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;o=ds(o,l,Ds(r,l))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),ne(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new M1;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||i.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),ne(this,"getInitialValue",function(r){var i=Ds(n.initialValues,r);return r.length?hv(i):i}),ne(this,"setCallbacks",function(r){n.callbacks=r}),ne(this,"setValidateMessages",function(r){n.validateMessages=r}),ne(this,"setPreserve",function(r){n.preserve=r}),ne(this,"watchList",[]),ne(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),ne(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(i,a,r)})}}),ne(this,"timeoutId",null),ne(this,"warningUnhooked",function(){}),ne(this,"updateStore",function(r){n.store=r}),ne(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),ne(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new M1;return n.getFieldEntities(r).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i}),ne(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(a){var o=wa(a);return i.get(o)||{INVALIDATE_NAME_PATH:wa(a)}})}),ne(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,o,s;if(r===!0||Array.isArray(r)?(a=r,o=i):r&&Kt(r)==="object"&&(s=r.strict,o=r.filter),a===!0&&!o)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var f,p,h="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var m,g;if((m=(g=u).isList)!==null&&m!==void 0&&m.call(g))return}else if(!a&&(f=(p=u).isListField)!==null&&f!==void 0&&f.call(p))return;if(!o)c.push(h);else{var v="getMeta"in u?u.getMeta():null;o(v)&&c.push(h)}}),tY(n.store,c.map(wa))}),ne(this,"getFieldValue",function(r){n.warningUnhooked();var i=wa(r);return Ds(n.store,i)}),ne(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:wa(r[o]),errors:[],warnings:[]}})}),ne(this,"getFieldError",function(r){n.warningUnhooked();var i=wa(r),a=n.getFieldsError([i])[0];return a.errors}),ne(this,"getFieldWarning",function(r){n.warningUnhooked();var i=wa(r),a=n.getFieldsError([i])[0];return a.warnings}),ne(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},i=new M1,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=i.get(u)||new Set;f.add({entity:l,value:c}),i.set(u,f)}});var o=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var p=u.getNamePath(),h=n.getInitialValue(p);if(h!==void 0)zr(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var m=i.get(p);if(m&&m.size>1)zr(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var g=n.getFieldValue(p),v=u.isListField();!v&&(!r.skipExist||g===void 0)&&n.updateStore(ds(n.store,p,ct(m)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,ct(ct(c).map(function(f){return f.entity})))}})):s=a,o(s)}),ne(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(hv(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(wa);a.forEach(function(o){var s=n.getInitialValue(o);n.updateStore(ds(n.store,o,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(i,a,{type:"reset"}),n.notifyWatch(a)}),ne(this,"setFields",function(r){n.warningUnhooked();var i=n.store,a=[];r.forEach(function(o){var s=o.name,l=Ut(o,xBe),c=wa(s);a.push(c),"value"in l&&n.updateStore(ds(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:o})}),n.notifyWatch(a)}),ne(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(a){var o=a.getNamePath(),s=a.getMeta(),l=q(q({},s),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),ne(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),o=Ds(n.store,a);o===void 0&&n.updateStore(ds(n.store,a,i))}}),ne(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),ne(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!o||l.length>1)){var c=o?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(f){return!Rpe(f.getNamePath(),i)})){var u=n.store;n.updateStore(ds(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),ne(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,a=r.value;n.updateValue(i,a);break}case"validateField":{var o=r.namePath,s=r.triggerName;n.validateFields([o],{triggerName:s});break}}}),ne(this,"notifyObservers",function(r,i,a){if(n.subscribable){var o=q(q({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,o)})}else n.forceRootUpdate()}),ne(this,"triggerDependenciesUpdate",function(r,i){var a=n.getDependencyChildrenFields(i);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[i].concat(ct(a))}),a}),ne(this,"updateValue",function(r,i){var a=wa(r),o=n.store;n.updateStore(ds(n.store,a,i)),n.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(o,a),l=n.callbacks.onValuesChange;if(l){var c=tY(n.store,[a]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(ct(s)))}),ne(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=hv(n.store,r);n.updateStore(a)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ne(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),ne(this,"getDependencyChildrenFields",function(r){var i=new Set,a=[],o=new M1;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=wa(u);o.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(l),p})})});var s=function l(c){var u=o.get(c)||new Set;u.forEach(function(f){if(!i.has(f)){i.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(a.push(p),l(p))}})};return s(r),a}),ne(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var o=n.getFields();if(i){var s=new M1;i.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=o.filter(function(c){var u=c.name;return Pv(r,u)});l.length&&a(l,o)}}),ne(this,"validateFields",function(r,i){n.warningUnhooked();var a,o;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(a=r,o=i):o=r;var s=!!a,l=s?a.map(wa):[],c=[],u=String(Date.now()),f=new Set,p=o||{},h=p.recursive,m=p.dirty;n.getFieldEntities(!0).forEach(function(b){if(s||l.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(m&&!b.isFieldDirty())){var w=b.getNamePath();if(f.add(w.join(u)),!s||Pv(l,w,h)){var _=b.validateRules(q({validateMessages:q(q({},Ipe),n.validateMessages)},o));c.push(_.then(function(){return{name:w,errors:[],warnings:[]}}).catch(function(k){var S,C=[],E=[];return(S=k.forEach)===null||S===void 0||S.call(k,function($){var M=$.rule.warningOnly,P=$.errors;M?E.push.apply(E,ct(P)):C.push.apply(C,ct(P))}),C.length?Promise.reject({name:w,errors:C,warnings:E}):{name:w,errors:C,warnings:E}}))}}});var g=wBe(c);n.lastValidatePromise=g,g.catch(function(b){return b}).then(function(b){var w=b.map(function(_){var k=_.name;return k});n.notifyObservers(n.store,w,{type:"validateFinish"}),n.triggerOnFieldsChange(w,b)});var v=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(b){var w=b.filter(function(_){return _&&_.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:w,outOfDate:n.lastValidatePromise!==g})});v.catch(function(b){return b});var y=l.filter(function(b){return f.has(b.join(u))});return n.triggerOnFieldsChange(y),v}),ne(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(a){console.error(a)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function oB(e){var t=d.useRef(),n=d.useState({}),r=Te(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},o=new SBe(a);t.current=o.getForm()}return[t.current]}var Ej=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Ape=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,a=t.children,o=d.useContext(Ej),s=d.useRef({});return d.createElement(Ej.Provider,{value:q(q({},o),{},{validateMessages:q(q({},o.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),o.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),o.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=q(q({},s.current),{},ne({},c,u))),o.registerForm(c,u)},unregisterForm:function(c){var u=q({},s.current);delete u[c],s.current=u,o.unregisterForm(c)}})},a)},CBe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],_Be=function(t,n){var r=t.name,i=t.initialValues,a=t.fields,o=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,p=t.validateTrigger,h=p===void 0?"onChange":p,m=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,y=t.onFinishFailed,b=t.clearOnDestroy,w=Ut(t,CBe),_=d.useRef(null),k=d.useContext(Ej),S=oB(o),C=Te(S,1),E=C[0],$=E.getInternalHooks(Sm),M=$.useSubscribe,P=$.setInitialValues,I=$.setCallbacks,O=$.setValidateMessages,A=$.setPreserve,R=$.destroyForm;d.useImperativeHandle(n,function(){return q(q({},E),{},{nativeElement:_.current})}),d.useEffect(function(){return k.registerForm(r,E),function(){k.unregisterForm(r)}},[k,E,r]),O(q(q({},k.validateMessages),f)),I({onValuesChange:m,onFieldsChange:function(Z){if(k.triggerFormChange(r,Z),g){for(var ee=arguments.length,ie=new Array(ee>1?ee-1:0),Y=1;Y{}}),Fpe=d.createContext(null),Lpe=e=>{const t=$r(e,["prefixCls"]);return d.createElement(Ape,Object.assign({},t))},sB=d.createContext({prefixCls:""}),sa=d.createContext({}),EBe=e=>{let{children:t,status:n,override:r}=e;const i=d.useContext(sa),a=d.useMemo(()=>{const o=Object.assign({},i);return r&&delete o.isFormItemInput,n&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[n,r,i]);return d.createElement(sa.Provider,{value:a},t)},Bpe=d.createContext(void 0),mu=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=te.createElement(EBe,{override:!0,status:!0},i)),t&&(i=te.createElement(ODe,null,i)),i};function T0(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function iY(e){const{closable:t,closeIcon:n}=e||{};return te.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function aY(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{i&&Object.keys(i).forEach(a=>{i[a]!==void 0&&(e[a]=i[a])})}),e}const $Be={};function lB(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$Be;const r=iY(e),i=iY(t),a=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,o=te.useMemo(()=>Object.assign({closeIcon:te.createElement(Cu,null)},n),[n]),s=te.useMemo(()=>r===!1?!1:r?aY(o,i,r):i===!1?!1:i?aY(o,i):o.closable?o:!1,[r,i,o]);return te.useMemo(()=>{if(s===!1)return[!1,null,a];const{closeIconRender:l}=o,{closeIcon:c}=s;let u=c;if(u!=null){l&&(u=l(c));const f=Bi(s,!0);Object.keys(f).length&&(u=te.isValidElement(u)?te.cloneElement(u,f):te.createElement("span",Object.assign({},f),u))}return[!0,u,a]},[s,o])}var zpe=function(t){if(Ws()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},MBe=function(t,n){if(!zpe(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function oY(e,t){return!Array.isArray(e)&&t!==void 0?MBe(e,t):zpe(e)}const TBe=()=>Ws()&&window.document.documentElement,h8=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=Ee({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=Ee({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),l=d.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return d.createElement("span",{className:Ee(t,o,s,n),style:Object.assign(Object.assign({},l),r)})},PBe=new ir("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),m8=e=>({height:e,lineHeight:Me(e)}),Ov=e=>Object.assign({width:e},m8(e)),OBe=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:PBe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),I9=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},m8(e)),IBe=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Ov(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Ov(i)),[`${t}${t}-sm`]:Object.assign({},Ov(a))}},RBe=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:n},I9(t,s)),[`${r}-lg`]:Object.assign({},I9(i,s)),[`${r}-sm`]:Object.assign({},I9(a,s))}},sY=e=>Object.assign({width:e},m8(e)),jBe=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},sY(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},sY(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},R9=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},j9=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},m8(e)),NBe=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},j9(r,s))},R9(e,r,n)),{[`${n}-lg`]:Object.assign({},j9(i,s))}),R9(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},j9(a,s))}),R9(e,a,`${n}-sm`))},ABe=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:p,marginSM:h,borderRadius:m,titleHeight:g,blockRadius:v,paragraphLiHeight:y,controlHeightXS:b,paragraphMarginTop:w}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Ov(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Ov(c)),[`${n}-sm`]:Object.assign({},Ov(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:f,borderRadius:v,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:f,borderRadius:v,"+ li":{marginBlockStart:b}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:h,[`+ ${i}`]:{marginBlockStart:w}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},NBe(e)),IBe(e)),RBe(e)),jBe(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[o]:{width:"100%"}},[`${t}${t}-active`]:{[` +}`),i)}else sj(i);return function(){sj(i)}},[t,i])}var MLe=!1;function TLe(e){return MLe}var qG=function(t){return t===!1?!1:!Ws()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},C4=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var a=e.autoDestroy,o=a===void 0?!0:a,s=e.children,l=d.useState(n),c=Te(l,2),u=c[0],f=c[1],p=u||n;d.useEffect(function(){(o||n)&&f(n)},[n,o]);var h=d.useState(function(){return qG(i)}),m=Te(h,2),g=m[0],v=m[1];d.useEffect(function(){var P=qG(i);v(P??null)});var y=SLe(p&&!g),w=Te(y,2),b=w[0],C=w[1],k=g??b;$Le(r&&n&&Ws()&&(k===b||k===document.body));var S=null;if(s&&Vf(s)&&t){var _=s;S=_.ref}var E=ku(S,t);if(!p||!Ws()||g===void 0)return null;var $=k===!1||TLe(),M=s;return t&&(M=d.cloneElement(s,{ref:E})),d.createElement(Ope.Provider,{value:C},$?M:Va.createPortal(M,k))}),Rpe=d.createContext({});function PLe(){var e=q({},Jm);return e.useId}var KG=0,GG=PLe();const h8=GG?function(t){var n=GG();return t||n}:function(t){var n=d.useState("ssr-id"),r=Te(n,2),i=r[0],a=r[1];return d.useEffect(function(){var o=KG;KG+=1,a("rc_unique_".concat(o))},[]),t||i};function YG(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function XG(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function OLe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=XG(i),n.top+=XG(i,!0),n}const RLe=d.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var ILe={width:0,height:0,overflow:"hidden",outline:"none"},jLe={outline:"none"},Ipe=te.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.title,o=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,p=e.bodyStyle,h=e.bodyProps,m=e.modalRender,g=e.onMouseDown,v=e.onMouseUp,y=e.holderRef,w=e.visible,b=e.forceRender,C=e.width,k=e.height,S=e.classNames,_=e.styles,E=te.useContext(Rpe),$=E.panel,M=ku(y,$),P=d.useRef(),R=d.useRef();te.useImperativeHandle(t,function(){return{focus:function(){var B;(B=P.current)===null||B===void 0||B.focus({preventScroll:!0})},changeActive:function(B){var U=document,Y=U.activeElement;B&&Y===R.current?P.current.focus({preventScroll:!0}):!B&&Y===P.current&&R.current.focus({preventScroll:!0})}}});var O={};C!==void 0&&(O.width=C),k!==void 0&&(O.height=k);var j=s?te.createElement("div",{className:Ee("".concat(n,"-footer"),S==null?void 0:S.footer),style:q({},_==null?void 0:_.footer)},s):null,I=a?te.createElement("div",{className:Ee("".concat(n,"-header"),S==null?void 0:S.header),style:q({},_==null?void 0:_.header)},te.createElement("div",{className:"".concat(n,"-title"),id:o},a)):null,A=d.useMemo(function(){return Kt(l)==="object"&&l!==null?l:l?{closeIcon:c??te.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),N=Fi(A,!0),F=Kt(l)==="object"&&l.disabled,K=l?te.createElement("button",tt({type:"button",onClick:u,"aria-label":"Close"},N,{className:"".concat(n,"-close"),disabled:F}),A.closeIcon):null,L=te.createElement("div",{className:Ee("".concat(n,"-content"),S==null?void 0:S.content),style:_==null?void 0:_.content},K,I,te.createElement("div",tt({className:Ee("".concat(n,"-body"),S==null?void 0:S.body),style:q(q({},p),_==null?void 0:_.body)},h),f),j);return te.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?o:null,"aria-modal":"true",ref:M,style:q(q({},i),O),className:Ee(n,r),onMouseDown:g,onMouseUp:v},te.createElement("div",{ref:P,tabIndex:0,style:jLe},te.createElement(RLe,{shouldUpdate:w||b},m?m(L):L)),te.createElement("div",{tabIndex:0,ref:R,style:ILe}))}),jpe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,a=e.className,o=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,h=d.useRef(),m=d.useState(),g=Te(m,2),v=g[0],y=g[1],w={};v&&(w.transformOrigin=v);function b(){var C=OLe(h.current);y(p&&(p.x||p.y)?"".concat(p.x-C.left,"px ").concat(p.y-C.top,"px"):"")}return d.createElement(Ca,{visible:o,onVisibleChanged:f,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:c,removeOnLeave:l,ref:h},function(C,k){var S=C.className,_=C.style;return d.createElement(Ipe,tt({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:k,style:q(q(q({},_),i),w),className:Ee(a,S)}))})});jpe.displayName="Content";var NLe=function(t){var n=t.prefixCls,r=t.style,i=t.visible,a=t.maskProps,o=t.motionName,s=t.className;return d.createElement(Ca,{key:"mask",visible:i,motionName:o,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return d.createElement("div",tt({ref:c,style:q(q({},f),r),className:Ee("".concat(n,"-mask"),u,s)},a))})},ALe=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,i=t.zIndex,a=t.visible,o=a===void 0?!1:a,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,p=t.wrapClassName,h=t.wrapProps,m=t.onClose,g=t.afterOpenChange,v=t.afterClose,y=t.transitionName,w=t.animation,b=t.closable,C=b===void 0?!0:b,k=t.mask,S=k===void 0?!0:k,_=t.maskTransitionName,E=t.maskAnimation,$=t.maskClosable,M=$===void 0?!0:$,P=t.maskStyle,R=t.maskProps,O=t.rootClassName,j=t.classNames,I=t.styles,A=d.useRef(),N=d.useRef(),F=d.useRef(),K=d.useState(o),L=Te(K,2),V=L[0],B=L[1],U=h8();function Y(){aj(N.current,document.activeElement)||(A.current=document.activeElement)}function ee(){if(!aj(N.current,document.activeElement)){var re;(re=F.current)===null||re===void 0||re.focus()}}function ie(re){if(re)ee();else{if(B(!1),S&&A.current&&u){try{A.current.focus({preventScroll:!0})}catch{}A.current=null}V&&(v==null||v())}g==null||g(re)}function Z(re){m==null||m(re)}var X=d.useRef(!1),ae=d.useRef(),oe=function(){clearTimeout(ae.current),X.current=!0},le=function(){ae.current=setTimeout(function(){X.current=!1})},ce=null;M&&(ce=function(fe){X.current?X.current=!1:N.current===fe.target&&Z(fe)});function pe(re){if(l&&re.keyCode===mt.ESC){re.stopPropagation(),Z(re);return}o&&re.keyCode===mt.TAB&&F.current.changeActive(!re.shiftKey)}d.useEffect(function(){o&&(B(!0),Y())},[o]),d.useEffect(function(){return function(){clearTimeout(ae.current)}},[]);var me=q(q(q({zIndex:i},f),I==null?void 0:I.wrapper),{},{display:V?null:"none"});return d.createElement("div",tt({className:Ee("".concat(r,"-root"),O)},Fi(t,{data:!0})),d.createElement(NLe,{prefixCls:r,visible:S&&o,motionName:YG(r,_,E),style:q(q({zIndex:i},P),I==null?void 0:I.mask),maskProps:R,className:j==null?void 0:j.mask}),d.createElement("div",tt({tabIndex:-1,onKeyDown:pe,className:Ee("".concat(r,"-wrap"),p,j==null?void 0:j.wrapper),ref:N,onClick:ce,style:me},h),d.createElement(jpe,tt({},t,{onMouseDown:oe,onMouseUp:le,ref:F,closable:C,ariaId:U,prefixCls:r,visible:o&&V,onClose:Z,onVisibleChanged:ie,motionName:YG(r,y,w)}))))},aB=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,a=t.destroyOnClose,o=a===void 0?!1:a,s=t.afterClose,l=t.panelRef,c=d.useState(n),u=Te(c,2),f=u[0],p=u[1],h=d.useMemo(function(){return{panel:l}},[l]);return d.useEffect(function(){n&&p(!0)},[n]),!i&&o&&!f?null:d.createElement(Rpe.Provider,{value:h},d.createElement(C4,{open:n||i||f,autoDestroy:!1,getContainer:r,autoLock:n||f},d.createElement(ALe,tt({},t,{destroyOnClose:o,afterClose:function(){s==null||s(),p(!1)}}))))};aB.displayName="Dialog";var Cm="RC_FORM_INTERNAL_HOOKS",pi=function(){Br(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ph=d.createContext({getFieldValue:pi,getFieldsValue:pi,getFieldError:pi,getFieldWarning:pi,getFieldsError:pi,isFieldsTouched:pi,isFieldTouched:pi,isFieldValidating:pi,isFieldsValidating:pi,resetFields:pi,setFields:pi,setFieldValue:pi,setFieldsValue:pi,validateFields:pi,submit:pi,getInternalHooks:function(){return pi(),{dispatch:pi,initEntityValue:pi,registerField:pi,useSubscribe:pi,setInitialValues:pi,destroyForm:pi,setCallbacks:pi,registerWatch:pi,getFields:pi,setValidateMessages:pi,setPreserve:pi,getInitialValue:pi}}}),r3=d.createContext(null);function wj(e){return e==null?[]:Array.isArray(e)?e:[e]}function DLe(e){return e&&!!e._init}function xj(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Sj=xj();function FLe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function LLe(e,t,n){if(zE())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Kw(i,n.prototype),i}function Cj(e){var t=typeof Map=="function"?new Map:void 0;return Cj=function(r){if(r===null||!FLe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return LLe(r,arguments,fg(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Kw(i,r)},Cj(e)}var BLe=/%[sdj%]/g,zLe=function(){};function _j(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function kl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function HLe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ka(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||HLe(t)&&typeof e=="string"&&!e)}function ULe(e,t,n){var r=[],i=0,a=e.length;function o(s){r.push.apply(r,lt(s||[])),i++,i===a&&n(r)}e.forEach(function(s){t(s,o)})}function ZG(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r=r+1,st.max?i.push(kl(a.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&i.push(kl(a.messages[f].range,t.fullField,t.min,t.max))},Npe=function(t,n,r,i,a,o){t.required&&(!r.hasOwnProperty(t.field)||Ka(n,o||t.type))&&i.push(kl(a.messages.required,t.fullField))},yS;const ZLe=function(){if(yS)return yS;var e="[a-fA-F\\d:]",t=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(i.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(o,"$")),u=function(S){return S&&S.exact?s:new RegExp("(?:".concat(t(S)).concat(n).concat(t(S),")|(?:").concat(t(S)).concat(o).concat(t(S),")"),"g")};u.v4=function(k){return k&&k.exact?l:new RegExp("".concat(t(k)).concat(n).concat(t(k)),"g")},u.v6=function(k){return k&&k.exact?c:new RegExp("".concat(t(k)).concat(o).concat(t(k)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",h=u.v4().source,m=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",w="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(h,"|").concat(m,"|").concat(g).concat(v).concat(y,")").concat(w).concat(b);return yS=new RegExp("(?:^".concat(C,"$)"),"i"),yS};var tY={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},w2={integer:function(t){return w2.number(t)&&parseInt(t,10)===t},float:function(t){return w2.number(t)&&!w2.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Kt(t)==="object"&&!w2.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(tY.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ZLe())},hex:function(t){return typeof t=="string"&&!!t.match(tY.hex)}},QLe=function(t,n,r,i,a){if(t.required&&n===void 0){Npe(t,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?w2[s](n)||i.push(kl(a.messages.types[s],t.fullField,t.type)):s&&Kt(n)!==t.type&&i.push(kl(a.messages.types[s],t.fullField,t.type))},JLe=function(t,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(kl(a.messages.whitespace,t.fullField))};const Lr={required:Npe,whitespace:JLe,type:QLe,range:XLe,enum:GLe,pattern:YLe};var eBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a)}r(o)},tBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Lr.required(t,n,i,o,a,"array"),n!=null&&(Lr.type(t,n,i,o,a),Lr.range(t,n,i,o,a))}r(o)},nBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&Lr.type(t,n,i,o,a)}r(o)},rBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n,"date")&&!t.required)return r();if(Lr.required(t,n,i,o,a),!Ka(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Lr.type(t,l,i,o,a),l&&Lr.range(t,l.getTime(),i,o,a)}}r(o)},iBe="enum",aBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&Lr[iBe](t,n,i,o,a)}r(o)},oBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&(Lr.type(t,n,i,o,a),Lr.range(t,n,i,o,a))}r(o)},sBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&(Lr.type(t,n,i,o,a),Lr.range(t,n,i,o,a))}r(o)},lBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&Lr.type(t,n,i,o,a)}r(o)},cBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&(Lr.type(t,n,i,o,a),Lr.range(t,n,i,o,a))}r(o)},uBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&Lr.type(t,n,i,o,a)}r(o)},dBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n,"string")&&!t.required)return r();Lr.required(t,n,i,o,a),Ka(n,"string")||Lr.pattern(t,n,i,o,a)}r(o)},fBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),Ka(n)||Lr.type(t,n,i,o,a)}r(o)},pBe=function(t,n,r,i,a){var o=[],s=Array.isArray(n)?"array":Kt(n);Lr.required(t,n,i,o,a,s),r(o)},hBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n,"string")&&!t.required)return r();Lr.required(t,n,i,o,a,"string"),Ka(n,"string")||(Lr.type(t,n,i,o,a),Lr.range(t,n,i,o,a),Lr.pattern(t,n,i,o,a),t.whitespace===!0&&Lr.whitespace(t,n,i,o,a))}r(o)},R9=function(t,n,r,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ka(n,o)&&!t.required)return r();Lr.required(t,n,i,s,a,o),Ka(n,o)||Lr.type(t,n,i,s,a)}r(s)};const X2={string:hBe,method:lBe,number:cBe,boolean:nBe,regexp:fBe,integer:sBe,float:oBe,array:tBe,object:uBe,enum:aBe,pattern:dBe,date:rBe,url:R9,hex:R9,email:R9,required:pBe,any:eBe};var _4=function(){function e(t){Ar(this,e),ne(this,"rules",null),ne(this,"_messages",Sj),this.define(t)}return Dr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Kt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var a=n[i];r.rules[i]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=eY(xj(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=n,s=i,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function c(m){var g=[],v={};function y(b){if(Array.isArray(b)){var C;g=(C=g).concat.apply(C,lt(b))}else g.push(b)}for(var w=0;w0&&arguments[0]!==void 0?arguments[0]:[],E=Array.isArray(_)?_:[_];!s.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&v.message!==void 0&&(E=[].concat(v.message));var $=E.map(JG(v,o));if(s.first&&$.length)return h[v.field]=1,g($);if(!y)g($);else{if(v.required&&!m.value)return v.message!==void 0?$=[].concat(v.message).map(JG(v,o)):s.error&&($=[s.error(v,kl(s.messages.required,v.field))]),g($);var M={};v.defaultField&&Object.keys(m.value).map(function(O){M[O]=v.defaultField}),M=q(q({},M),m.rule.fields);var P={};Object.keys(M).forEach(function(O){var j=M[O],I=Array.isArray(j)?j:[j];P[O]=I.map(w.bind(null,O))});var R=new e(P);R.messages(s.messages),m.rule.options&&(m.rule.options.messages=s.messages,m.rule.options.error=s.error),R.validate(m.value,m.rule.options||s,function(O){var j=[];$&&$.length&&j.push.apply(j,lt($)),O&&O.length&&j.push.apply(j,lt(O)),g(j.length?j:null)})}}var C;if(v.asyncValidator)C=v.asyncValidator(v,m.value,b,m.source,s);else if(v.validator){try{C=v.validator(v,m.value,b,m.source,s)}catch(_){var k,S;(k=(S=console).error)===null||k===void 0||k.call(S,_),s.suppressValidatorError||setTimeout(function(){throw _},0),b(_.message)}C===!0?b():C===!1?b(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):C instanceof Array?b(C):C instanceof Error&&b(C.message)}C&&C.then&&C.then(function(){return b()},function(_){return b(_)})},function(m){c(m)},o)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!X2.hasOwnProperty(n.type))throw new Error(kl("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?X2.required:X2[this.getType(n)]||void 0}}]),e}();ne(_4,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");X2[t]=n});ne(_4,"warning",zLe);ne(_4,"messages",Sj);ne(_4,"validators",X2);var il="'${name}' is not a valid ${type}",Ape={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:il,method:il,array:il,object:il,number:il,date:il,boolean:il,integer:il,float:il,regexp:il,email:il,url:il,hex:il},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},nY=_4;function mBe(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var rY="CODE_LOGIC_ERROR";function kj(e,t,n,r,i){return Ej.apply(this,arguments)}function Ej(){return Ej=pa(hr().mark(function e(t,n,r,i,a){var o,s,l,c,u,f,p,h,m;return hr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return o=q({},r),delete o.ruleIndex,nY.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(rY)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),c=new nY(ne({},t,[o])),u=gv(Ape,i.validateMessages),c.messages(u),f=[],v.prev=10,v.next=13,Promise.resolve(c.validate(ne({},t,n),q({},i)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(y,w){var b=y.message,C=b===rY?u.default:b;return d.isValidElement(C)?d.cloneElement(C,{key:"error_".concat(w)}):C}));case 18:if(!(!f.length&&l)){v.next=23;break}return v.next=21,Promise.all(n.map(function(y,w){return kj("".concat(t,".").concat(w),y,l,i,a)}));case 21:return p=v.sent,v.abrupt("return",p.reduce(function(y,w){return[].concat(lt(y),lt(w))},[]));case 23:return h=q(q({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),m=f.map(function(y){return typeof y=="string"?mBe(y,h):y}),v.abrupt("return",m);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),Ej.apply(this,arguments)}function gBe(e,t,n,r,i,a){var o=e.join("."),s=n.map(function(u,f){var p=u.validator,h=q(q({},u),{},{ruleIndex:f});return p&&(h.validator=function(m,g,v){var y=!1,w=function(){for(var k=arguments.length,S=new Array(k),_=0;_2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Dpe(t,r,n)})}function Dpe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function bBe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Kt(e)!=="object"||Kt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return lt(i).every(function(a){var o=e[a],s=t[a];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function wBe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Kt(t.target)==="object"&&e in t.target?t.target[e]:t}function aY(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(lt(e.slice(0,n)),[i],lt(e.slice(n,t)),lt(e.slice(t+1,r))):a<0?[].concat(lt(e.slice(0,t)),lt(e.slice(t+1,n+1)),[i],lt(e.slice(n+1,r))):e}var xBe=["name"],Kl=[];function I9(e,t,n,r,i,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==i}var oB=function(e){$o(n,e);var t=rs(n);function n(r){var i;if(Ar(this,n),i=t.call(this,r),ne(fn(i),"state",{resetCount:0}),ne(fn(i),"cancelRegisterFunc",null),ne(fn(i),"mounted",!1),ne(fn(i),"touched",!1),ne(fn(i),"dirty",!1),ne(fn(i),"validatePromise",void 0),ne(fn(i),"prevValidating",void 0),ne(fn(i),"errors",Kl),ne(fn(i),"warnings",Kl),ne(fn(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,ba(f)),i.cancelRegisterFunc=null}),ne(fn(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,f=u.prefixName,p=f===void 0?[]:f;return c!==void 0?[].concat(lt(p),lt(c)):[]}),ne(fn(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(p){return typeof p=="function"?p(f):p})}),ne(fn(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),ne(fn(i),"metaCache",null),ne(fn(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=q(q({},i.getMeta()),{},{destroy:l});gg(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),ne(fn(i),"onStoreChange",function(l,c,u){var f=i.props,p=f.shouldUpdate,h=f.dependencies,m=h===void 0?[]:h,g=f.onReset,v=u.store,y=i.getNamePath(),w=i.getValue(l),b=i.getValue(v),C=c&&Iv(c,y);switch(u.type==="valueUpdate"&&u.source==="external"&&!gg(w,b)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Kl,i.warnings=Kl,i.triggerMetaEvent()),u.type){case"reset":if(!c||C){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Kl,i.warnings=Kl,i.triggerMetaEvent(),g==null||g(),i.refresh();return}break;case"remove":{if(p&&I9(p,l,v,w,b,u)){i.reRender();return}break}case"setField":{var k=u.data;if(C){"touched"in k&&(i.touched=k.touched),"validating"in k&&!("originRCField"in k)&&(i.validatePromise=k.validating?Promise.resolve([]):null),"errors"in k&&(i.errors=k.errors||Kl),"warnings"in k&&(i.warnings=k.warnings||Kl),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in k&&Iv(c,y,!0)){i.reRender();return}if(p&&!y.length&&I9(p,l,v,w,b,u)){i.reRender();return}break}case"dependenciesUpdate":{var S=m.map(ba);if(S.some(function(_){return Iv(u.relatedFields,_)})){i.reRender();return}break}default:if(C||(!m.length||y.length||p)&&I9(p,l,v,w,b,u)){i.reRender();return}break}p===!0&&i.reRender()}),ne(fn(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),f=l||{},p=f.triggerName,h=f.validateOnly,m=h===void 0?!1:h,g=Promise.resolve().then(pa(hr().mark(function v(){var y,w,b,C,k,S,_;return hr().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(i.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(y=i.props,w=y.validateFirst,b=w===void 0?!1:w,C=y.messageVariables,k=y.validateDebounce,S=i.getRules(),p&&(S=S.filter(function(M){return M}).filter(function(M){var P=M.validateTrigger;if(!P)return!0;var R=wj(P);return R.includes(p)})),!(k&&p)){$.next=10;break}return $.next=8,new Promise(function(M){setTimeout(M,k)});case 8:if(i.validatePromise===g){$.next=10;break}return $.abrupt("return",[]);case 10:return _=gBe(c,u,S,l,b,C),_.catch(function(M){return M}).then(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Kl;if(i.validatePromise===g){var P;i.validatePromise=null;var R=[],O=[];(P=M.forEach)===null||P===void 0||P.call(M,function(j){var I=j.rule.warningOnly,A=j.errors,N=A===void 0?Kl:A;I?O.push.apply(O,lt(N)):R.push.apply(R,lt(N))}),i.errors=R,i.warnings=O,i.triggerMetaEvent(),i.reRender()}}),$.abrupt("return",_);case 13:case"end":return $.stop()}},v)})));return m||(i.validatePromise=g,i.dirty=!0,i.errors=Kl,i.warnings=Kl,i.triggerMetaEvent(),i.reRender()),g}),ne(fn(i),"isFieldValidating",function(){return!!i.validatePromise}),ne(fn(i),"isFieldTouched",function(){return i.touched}),ne(fn(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(Cm),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),ne(fn(i),"getErrors",function(){return i.errors}),ne(fn(i),"getWarnings",function(){return i.warnings}),ne(fn(i),"isListField",function(){return i.props.isListField}),ne(fn(i),"isList",function(){return i.props.isList}),ne(fn(i),"isPreserve",function(){return i.props.preserve}),ne(fn(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),ne(fn(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return q(q({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=Xi(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),ne(fn(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return Ds(l||c(!0),u)}),ne(fn(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,f=c.trigger,p=c.validateTrigger,h=c.getValueFromEvent,m=c.normalize,g=c.valuePropName,v=c.getValueProps,y=c.fieldContext,w=p!==void 0?p:y.validateTrigger,b=i.getNamePath(),C=y.getInternalHooks,k=y.getFieldsValue,S=C(Cm),_=S.dispatch,E=i.getValue(),$=v||function(j){return ne({},g,j)},M=l[f],P=u!==void 0?$(E):{},R=q(q({},l),P);R[f]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var j,I=arguments.length,A=new Array(I),N=0;N=0&&M<=P.length?(u.keys=[].concat(lt(u.keys.slice(0,M)),[u.id],lt(u.keys.slice(M))),b([].concat(lt(P.slice(0,M)),[$],lt(P.slice(M))))):(u.keys=[].concat(lt(u.keys),[u.id]),b([].concat(lt(P),[$]))),u.id+=1},remove:function($){var M=k(),P=new Set(Array.isArray($)?$:[$]);P.size<=0||(u.keys=u.keys.filter(function(R,O){return!P.has(O)}),b(M.filter(function(R,O){return!P.has(O)})))},move:function($,M){if($!==M){var P=k();$<0||$>=P.length||M<0||M>=P.length||(u.keys=aY(u.keys,$,M),b(aY(P,$,M)))}}},_=w||[];return Array.isArray(_)||(_=[]),r(_.map(function(E,$){var M=u.keys[$];return M===void 0&&(u.keys[$]=u.id,M=u.keys[$],u.id+=1),{name:$,key:M,isListField:!0}}),S,v)})))}function SBe(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var Lpe="__@field_split__";function j9(e){return e.map(function(t){return"".concat(Kt(t),":").concat(t)}).join(Lpe)}var T1=function(){function e(){Ar(this,e),ne(this,"kvs",new Map)}return Dr(e,[{key:"set",value:function(n,r){this.kvs.set(j9(n),r)}},{key:"get",value:function(n){return this.kvs.get(j9(n))}},{key:"update",value:function(n,r){var i=this.get(n),a=r(i);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(j9(n))}},{key:"map",value:function(n){return lt(this.kvs.entries()).map(function(r){var i=Te(r,2),a=i[0],o=i[1],s=a.split(Lpe);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Te(c,3),f=u[1],p=u[2];return f==="number"?Number(p):p}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,a=r.value;return n[i.join(".")]=a,null}),n}}]),e}(),CBe=["name"],_Be=Dr(function e(t){var n=this;Ar(this,e),ne(this,"formHooked",!1),ne(this,"forceRootUpdate",void 0),ne(this,"subscribable",!0),ne(this,"store",{}),ne(this,"fieldEntities",[]),ne(this,"initialValues",{}),ne(this,"callbacks",{}),ne(this,"validateMessages",null),ne(this,"preserve",null),ne(this,"lastValidatePromise",null),ne(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),ne(this,"getInternalHooks",function(r){return r===Cm?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Br(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ne(this,"useSubscribe",function(r){n.subscribable=r}),ne(this,"prevWithoutPreserves",null),ne(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var a,o=gv(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;o=hs(o,l,Ds(r,l))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),ne(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new T1;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||i.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),ne(this,"getInitialValue",function(r){var i=Ds(n.initialValues,r);return r.length?gv(i):i}),ne(this,"setCallbacks",function(r){n.callbacks=r}),ne(this,"setValidateMessages",function(r){n.validateMessages=r}),ne(this,"setPreserve",function(r){n.preserve=r}),ne(this,"watchList",[]),ne(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),ne(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(i,a,r)})}}),ne(this,"timeoutId",null),ne(this,"warningUnhooked",function(){}),ne(this,"updateStore",function(r){n.store=r}),ne(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),ne(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new T1;return n.getFieldEntities(r).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i}),ne(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(a){var o=ba(a);return i.get(o)||{INVALIDATE_NAME_PATH:ba(a)}})}),ne(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,o,s;if(r===!0||Array.isArray(r)?(a=r,o=i):r&&Kt(r)==="object"&&(s=r.strict,o=r.filter),a===!0&&!o)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var f,p,h="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var m,g;if((m=(g=u).isList)!==null&&m!==void 0&&m.call(g))return}else if(!a&&(f=(p=u).isListField)!==null&&f!==void 0&&f.call(p))return;if(!o)c.push(h);else{var v="getMeta"in u?u.getMeta():null;o(v)&&c.push(h)}}),iY(n.store,c.map(ba))}),ne(this,"getFieldValue",function(r){n.warningUnhooked();var i=ba(r);return Ds(n.store,i)}),ne(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:ba(r[o]),errors:[],warnings:[]}})}),ne(this,"getFieldError",function(r){n.warningUnhooked();var i=ba(r),a=n.getFieldsError([i])[0];return a.errors}),ne(this,"getFieldWarning",function(r){n.warningUnhooked();var i=ba(r),a=n.getFieldsError([i])[0];return a.warnings}),ne(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},i=new T1,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=i.get(u)||new Set;f.add({entity:l,value:c}),i.set(u,f)}});var o=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var p=u.getNamePath(),h=n.getInitialValue(p);if(h!==void 0)Br(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var m=i.get(p);if(m&&m.size>1)Br(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var g=n.getFieldValue(p),v=u.isListField();!v&&(!r.skipExist||g===void 0)&&n.updateStore(hs(n.store,p,lt(m)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,lt(lt(c).map(function(f){return f.entity})))}})):s=a,o(s)}),ne(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(gv(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(ba);a.forEach(function(o){var s=n.getInitialValue(o);n.updateStore(hs(n.store,o,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(i,a,{type:"reset"}),n.notifyWatch(a)}),ne(this,"setFields",function(r){n.warningUnhooked();var i=n.store,a=[];r.forEach(function(o){var s=o.name,l=Ht(o,CBe),c=ba(s);a.push(c),"value"in l&&n.updateStore(hs(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:o})}),n.notifyWatch(a)}),ne(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(a){var o=a.getNamePath(),s=a.getMeta(),l=q(q({},s),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),ne(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),o=Ds(n.store,a);o===void 0&&n.updateStore(hs(n.store,a,i))}}),ne(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),ne(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!o||l.length>1)){var c=o?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(f){return!Dpe(f.getNamePath(),i)})){var u=n.store;n.updateStore(hs(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),ne(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,a=r.value;n.updateValue(i,a);break}case"validateField":{var o=r.namePath,s=r.triggerName;n.validateFields([o],{triggerName:s});break}}}),ne(this,"notifyObservers",function(r,i,a){if(n.subscribable){var o=q(q({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,o)})}else n.forceRootUpdate()}),ne(this,"triggerDependenciesUpdate",function(r,i){var a=n.getDependencyChildrenFields(i);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[i].concat(lt(a))}),a}),ne(this,"updateValue",function(r,i){var a=ba(r),o=n.store;n.updateStore(hs(n.store,a,i)),n.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(o,a),l=n.callbacks.onValuesChange;if(l){var c=iY(n.store,[a]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(lt(s)))}),ne(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=gv(n.store,r);n.updateStore(a)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ne(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),ne(this,"getDependencyChildrenFields",function(r){var i=new Set,a=[],o=new T1;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=ba(u);o.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(l),p})})});var s=function l(c){var u=o.get(c)||new Set;u.forEach(function(f){if(!i.has(f)){i.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(a.push(p),l(p))}})};return s(r),a}),ne(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var o=n.getFields();if(i){var s=new T1;i.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=o.filter(function(c){var u=c.name;return Iv(r,u)});l.length&&a(l,o)}}),ne(this,"validateFields",function(r,i){n.warningUnhooked();var a,o;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(a=r,o=i):o=r;var s=!!a,l=s?a.map(ba):[],c=[],u=String(Date.now()),f=new Set,p=o||{},h=p.recursive,m=p.dirty;n.getFieldEntities(!0).forEach(function(w){if(s||l.push(w.getNamePath()),!(!w.props.rules||!w.props.rules.length)&&!(m&&!w.isFieldDirty())){var b=w.getNamePath();if(f.add(b.join(u)),!s||Iv(l,b,h)){var C=w.validateRules(q({validateMessages:q(q({},Ape),n.validateMessages)},o));c.push(C.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(k){var S,_=[],E=[];return(S=k.forEach)===null||S===void 0||S.call(k,function($){var M=$.rule.warningOnly,P=$.errors;M?E.push.apply(E,lt(P)):_.push.apply(_,lt(P))}),_.length?Promise.reject({name:b,errors:_,warnings:E}):{name:b,errors:_,warnings:E}}))}}});var g=SBe(c);n.lastValidatePromise=g,g.catch(function(w){return w}).then(function(w){var b=w.map(function(C){var k=C.name;return k});n.notifyObservers(n.store,b,{type:"validateFinish"}),n.triggerOnFieldsChange(b,w)});var v=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(w){var b=w.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:b,outOfDate:n.lastValidatePromise!==g})});v.catch(function(w){return w});var y=l.filter(function(w){return f.has(w.join(u))});return n.triggerOnFieldsChange(y),v}),ne(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(a){console.error(a)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function lB(e){var t=d.useRef(),n=d.useState({}),r=Te(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},o=new _Be(a);t.current=o.getForm()}return[t.current]}var Tj=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Bpe=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,a=t.children,o=d.useContext(Tj),s=d.useRef({});return d.createElement(Tj.Provider,{value:q(q({},o),{},{validateMessages:q(q({},o.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),o.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),o.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=q(q({},s.current),{},ne({},c,u))),o.registerForm(c,u)},unregisterForm:function(c){var u=q({},s.current);delete u[c],s.current=u,o.unregisterForm(c)}})},a)},kBe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],EBe=function(t,n){var r=t.name,i=t.initialValues,a=t.fields,o=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,p=t.validateTrigger,h=p===void 0?"onChange":p,m=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,y=t.onFinishFailed,w=t.clearOnDestroy,b=Ht(t,kBe),C=d.useRef(null),k=d.useContext(Tj),S=lB(o),_=Te(S,1),E=_[0],$=E.getInternalHooks(Cm),M=$.useSubscribe,P=$.setInitialValues,R=$.setCallbacks,O=$.setValidateMessages,j=$.setPreserve,I=$.destroyForm;d.useImperativeHandle(n,function(){return q(q({},E),{},{nativeElement:C.current})}),d.useEffect(function(){return k.registerForm(r,E),function(){k.unregisterForm(r)}},[k,E,r]),O(q(q({},k.validateMessages),f)),R({onValuesChange:m,onFieldsChange:function(Y){if(k.triggerFormChange(r,Y),g){for(var ee=arguments.length,ie=new Array(ee>1?ee-1:0),Z=1;Z{}}),Hpe=d.createContext(null),Upe=e=>{const t=$r(e,["prefixCls"]);return d.createElement(Bpe,Object.assign({},t))},cB=d.createContext({prefixCls:""}),oa=d.createContext({}),MBe=e=>{let{children:t,status:n,override:r}=e;const i=d.useContext(oa),a=d.useMemo(()=>{const o=Object.assign({},i);return r&&delete o.isFormItemInput,n&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[n,r,i]);return d.createElement(oa.Provider,{value:a},t)},Wpe=d.createContext(void 0),bu=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=te.createElement(MBe,{override:!0,status:!0},i)),t&&(i=te.createElement(IDe,null,i)),i};function R0(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function sY(e){const{closable:t,closeIcon:n}=e||{};return te.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function lY(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{i&&Object.keys(i).forEach(a=>{i[a]!==void 0&&(e[a]=i[a])})}),e}const TBe={};function uB(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:TBe;const r=sY(e),i=sY(t),a=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,o=te.useMemo(()=>Object.assign({closeIcon:te.createElement(Eu,null)},n),[n]),s=te.useMemo(()=>r===!1?!1:r?lY(o,i,r):i===!1?!1:i?lY(o,i):o.closable?o:!1,[r,i,o]);return te.useMemo(()=>{if(s===!1)return[!1,null,a];const{closeIconRender:l}=o,{closeIcon:c}=s;let u=c;if(u!=null){l&&(u=l(c));const f=Fi(s,!0);Object.keys(f).length&&(u=te.isValidElement(u)?te.cloneElement(u,f):te.createElement("span",Object.assign({},f),u))}return[!0,u,a]},[s,o])}var Vpe=function(t){if(Ws()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},PBe=function(t,n){if(!Vpe(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function cY(e,t){return!Array.isArray(e)&&t!==void 0?PBe(e,t):Vpe(e)}const OBe=()=>Ws()&&window.document.documentElement,m8=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=Ee({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=Ee({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),l=d.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return d.createElement("span",{className:Ee(t,o,s,n),style:Object.assign(Object.assign({},l),r)})},RBe=new ir("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),g8=e=>({height:e,lineHeight:Me(e)}),jv=e=>Object.assign({width:e},g8(e)),IBe=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:RBe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),N9=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},g8(e)),jBe=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},jv(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},jv(i)),[`${t}${t}-sm`]:Object.assign({},jv(a))}},NBe=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:n},N9(t,s)),[`${r}-lg`]:Object.assign({},N9(i,s)),[`${r}-sm`]:Object.assign({},N9(a,s))}},uY=e=>Object.assign({width:e},g8(e)),ABe=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},uY(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},uY(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},A9=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},D9=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},g8(e)),DBe=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},D9(r,s))},A9(e,r,n)),{[`${n}-lg`]:Object.assign({},D9(i,s))}),A9(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},D9(a,s))}),A9(e,a,`${n}-sm`))},FBe=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:p,marginSM:h,borderRadius:m,titleHeight:g,blockRadius:v,paragraphLiHeight:y,controlHeightXS:w,paragraphMarginTop:b}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},jv(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},jv(c)),[`${n}-sm`]:Object.assign({},jv(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:f,borderRadius:v,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:f,borderRadius:v,"+ li":{marginBlockStart:w}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:h,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},DBe(e)),jBe(e)),NBe(e)),ABe(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[o]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${i} > li, ${n}, ${a}, ${o}, ${s} - `]:Object.assign({},OBe(e))}}},DBe=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},ky=Jn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Hn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ABe(r)]},DBe,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),FBe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:o="default"}=e,{getPrefixCls:s}=d.useContext(Zt),l=s("skeleton",t),[c,u,f]=ky(l),p=$r(e,["prefixCls","className"]),h=Ee(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,f);return c(d.createElement("div",{className:h},d.createElement(h8,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:o},p))))},LBe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:o="default"}=e,{getPrefixCls:s}=d.useContext(Zt),l=s("skeleton",t),[c,u,f]=ky(l),p=$r(e,["prefixCls"]),h=Ee(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,u,f);return c(d.createElement("div",{className:h},d.createElement(h8,Object.assign({prefixCls:`${l}-button`,size:o},p))))},BBe="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",zBe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:o}=d.useContext(Zt),s=o("skeleton",t),[l,c,u]=ky(s),f=Ee(s,`${s}-element`,{[`${s}-active`]:a},n,r,c,u);return l(d.createElement("div",{className:f},d.createElement("div",{className:Ee(`${s}-image`,n),style:i},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},d.createElement("title",null,"Image placeholder"),d.createElement("path",{d:BBe,className:`${s}-image-path`})))))},HBe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:o="default"}=e,{getPrefixCls:s}=d.useContext(Zt),l=s("skeleton",t),[c,u,f]=ky(l),p=$r(e,["prefixCls"]),h=Ee(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,u,f);return c(d.createElement("div",{className:h},d.createElement(h8,Object.assign({prefixCls:`${l}-input`,size:o},p))))},UBe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:o}=e,{getPrefixCls:s}=d.useContext(Zt),l=s("skeleton",t),[c,u,f]=ky(l),p=Ee(l,`${l}-element`,{[`${l}-active`]:a},u,n,r,f);return c(d.createElement("div",{className:p},d.createElement("div",{className:Ee(`${l}-image`,n),style:i},o)))},WBe=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},VBe=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,a=ct(new Array(i)).map((o,s)=>d.createElement("li",{key:s,style:{width:WBe(s,e)}}));return d.createElement("ul",{className:Ee(t,n),style:r},a)},qBe=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return d.createElement("h3",{className:Ee(t,n),style:Object.assign({width:r},i)})};function N9(e){return e&&typeof e=="object"?e:{}}function KBe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function GBe(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function YBe(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Kf=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:a,children:o,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:p,direction:h,skeleton:m}=d.useContext(Zt),g=p("skeleton",t),[v,y,b]=ky(g);if(n||!("loading"in e)){const w=!!s,_=!!l,k=!!c;let S;if(w){const $=Object.assign(Object.assign({prefixCls:`${g}-avatar`},KBe(_,k)),N9(s));S=d.createElement("div",{className:`${g}-header`},d.createElement(h8,Object.assign({},$)))}let C;if(_||k){let $;if(_){const P=Object.assign(Object.assign({prefixCls:`${g}-title`},GBe(w,k)),N9(l));$=d.createElement(qBe,Object.assign({},P))}let M;if(k){const P=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},YBe(w,_)),N9(c));M=d.createElement(VBe,Object.assign({},P))}C=d.createElement("div",{className:`${g}-content`},$,M)}const E=Ee(g,{[`${g}-with-avatar`]:w,[`${g}-active`]:u,[`${g}-rtl`]:h==="rtl",[`${g}-round`]:f},m==null?void 0:m.className,r,i,y,b);return v(d.createElement("div",{className:E,style:Object.assign(Object.assign({},m==null?void 0:m.style),a)},S,C))}return o??null};Kf.Button=LBe;Kf.Avatar=FBe;Kf.Input=HBe;Kf.Image=zBe;Kf.Node=UBe;function lY(){}const XBe=d.createContext({add:lY,remove:lY});function Hpe(e){const t=d.useContext(XBe),n=d.useRef(null);return Vn(i=>{if(i){const a=e?i.querySelector(e):i;t.add(a),n.current=a}else t.remove(n.current)})}const cY=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=d.useContext(w4);return te.createElement(Yt,Object.assign({onClick:n},e),t)},uY=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=d.useContext(w4);return te.createElement(Yt,Object.assign({},GL(n),{loading:e,onClick:i},t),r)};function Upe(e,t){return te.createElement("span",{className:`${e}-close-x`},t||te.createElement(Cu,{className:`${e}-close-icon`}))}const Wpe=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Xa("Modal",pfe()),f=t||(u==null?void 0:u.okText),p=r||(u==null?void 0:u.cancelText),h={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:p,okType:n,onOk:a,onCancel:o},m=te.useMemo(()=>h,ct(Object.values(h)));let g;return typeof c=="function"||typeof c>"u"?(g=te.createElement(te.Fragment,null,te.createElement(cY,null),te.createElement(uY,null)),typeof c=="function"&&(g=c(g,{OkBtn:uY,CancelBtn:cY})),g=te.createElement(Epe,{value:m},g)):g=c,te.createElement(BL,{disabled:!1},g)},ZBe=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},QBe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},JBe=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,a={};for(let o=i;o>=0;o--)o===0?(a[`${r}${t}-${o}`]={display:"none"},a[`${r}-push-${o}`]={insetInlineStart:"auto"},a[`${r}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${o}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${o}`]={marginInlineStart:0},a[`${r}${t}-order-${o}`]={order:0}):(a[`${r}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/i*100}%`,maxWidth:`${o/i*100}%`}],a[`${r}${t}-push-${o}`]={insetInlineStart:`${o/i*100}%`},a[`${r}${t}-pull-${o}`]={insetInlineEnd:`${o/i*100}%`},a[`${r}${t}-offset-${o}`]={marginInlineStart:`${o/i*100}%`},a[`${r}${t}-order-${o}`]={order:o});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},$j=(e,t)=>JBe(e,t),eze=(e,t,n)=>({[`@media (min-width: ${Me(t)})`]:Object.assign({},$j(e,n))}),tze=()=>({}),nze=()=>({}),rze=Jn("Grid",ZBe,tze),Vpe=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),ize=Jn("Grid",e=>{const t=Hn(e,{gridColumns:24}),n=Vpe(t);return delete n.xs,[QBe(t),$j(t,""),$j(t,"-xs"),Object.keys(n).map(r=>eze(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},nze);function dY(e){return{position:e,inset:0}}const qpe=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},dY("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},dY("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:ZL(e)}]},aze=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Me(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},ar(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Me(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Me(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Vs(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Me(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + `]:Object.assign({},IBe(e))}}},LBe=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Ey=Jn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Hn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[FBe(r)]},LBe,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),BBe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:o="default"}=e,{getPrefixCls:s}=d.useContext(Xt),l=s("skeleton",t),[c,u,f]=Ey(l),p=$r(e,["prefixCls","className"]),h=Ee(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,f);return c(d.createElement("div",{className:h},d.createElement(m8,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:o},p))))},zBe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:o="default"}=e,{getPrefixCls:s}=d.useContext(Xt),l=s("skeleton",t),[c,u,f]=Ey(l),p=$r(e,["prefixCls"]),h=Ee(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,u,f);return c(d.createElement("div",{className:h},d.createElement(m8,Object.assign({prefixCls:`${l}-button`,size:o},p))))},HBe="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",UBe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:o}=d.useContext(Xt),s=o("skeleton",t),[l,c,u]=Ey(s),f=Ee(s,`${s}-element`,{[`${s}-active`]:a},n,r,c,u);return l(d.createElement("div",{className:f},d.createElement("div",{className:Ee(`${s}-image`,n),style:i},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},d.createElement("title",null,"Image placeholder"),d.createElement("path",{d:HBe,className:`${s}-image-path`})))))},WBe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:o="default"}=e,{getPrefixCls:s}=d.useContext(Xt),l=s("skeleton",t),[c,u,f]=Ey(l),p=$r(e,["prefixCls"]),h=Ee(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,u,f);return c(d.createElement("div",{className:h},d.createElement(m8,Object.assign({prefixCls:`${l}-input`,size:o},p))))},VBe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:o}=e,{getPrefixCls:s}=d.useContext(Xt),l=s("skeleton",t),[c,u,f]=Ey(l),p=Ee(l,`${l}-element`,{[`${l}-active`]:a},u,n,r,f);return c(d.createElement("div",{className:p},d.createElement("div",{className:Ee(`${l}-image`,n),style:i},o)))},qBe=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},KBe=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,a=lt(new Array(i)).map((o,s)=>d.createElement("li",{key:s,style:{width:qBe(s,e)}}));return d.createElement("ul",{className:Ee(t,n),style:r},a)},GBe=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return d.createElement("h3",{className:Ee(t,n),style:Object.assign({width:r},i)})};function F9(e){return e&&typeof e=="object"?e:{}}function YBe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function XBe(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function ZBe(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Kf=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:a,children:o,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:p,direction:h,skeleton:m}=d.useContext(Xt),g=p("skeleton",t),[v,y,w]=Ey(g);if(n||!("loading"in e)){const b=!!s,C=!!l,k=!!c;let S;if(b){const $=Object.assign(Object.assign({prefixCls:`${g}-avatar`},YBe(C,k)),F9(s));S=d.createElement("div",{className:`${g}-header`},d.createElement(m8,Object.assign({},$)))}let _;if(C||k){let $;if(C){const P=Object.assign(Object.assign({prefixCls:`${g}-title`},XBe(b,k)),F9(l));$=d.createElement(GBe,Object.assign({},P))}let M;if(k){const P=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},ZBe(b,C)),F9(c));M=d.createElement(KBe,Object.assign({},P))}_=d.createElement("div",{className:`${g}-content`},$,M)}const E=Ee(g,{[`${g}-with-avatar`]:b,[`${g}-active`]:u,[`${g}-rtl`]:h==="rtl",[`${g}-round`]:f},m==null?void 0:m.className,r,i,y,w);return v(d.createElement("div",{className:E,style:Object.assign(Object.assign({},m==null?void 0:m.style),a)},S,_))}return o??null};Kf.Button=zBe;Kf.Avatar=BBe;Kf.Input=WBe;Kf.Image=UBe;Kf.Node=VBe;function dY(){}const QBe=d.createContext({add:dY,remove:dY});function qpe(e){const t=d.useContext(QBe),n=d.useRef(null);return Vn(i=>{if(i){const a=e?i.querySelector(e):i;t.add(a),n.current=a}else t.remove(n.current)})}const fY=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=d.useContext(S4);return te.createElement(Yt,Object.assign({onClick:n},e),t)},pY=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=d.useContext(S4);return te.createElement(Yt,Object.assign({},XL(n),{loading:e,onClick:i},t),r)};function Kpe(e,t){return te.createElement("span",{className:`${e}-close-x`},t||te.createElement(Eu,{className:`${e}-close-icon`}))}const Gpe=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Ga("Modal",vfe()),f=t||(u==null?void 0:u.okText),p=r||(u==null?void 0:u.cancelText),h={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:p,okType:n,onOk:a,onCancel:o},m=te.useMemo(()=>h,lt(Object.values(h)));let g;return typeof c=="function"||typeof c>"u"?(g=te.createElement(te.Fragment,null,te.createElement(fY,null),te.createElement(pY,null)),typeof c=="function"&&(g=c(g,{OkBtn:pY,CancelBtn:fY})),g=te.createElement(Ppe,{value:m},g)):g=c,te.createElement(HL,{disabled:!1},g)},JBe=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},eze=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},tze=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,a={};for(let o=i;o>=0;o--)o===0?(a[`${r}${t}-${o}`]={display:"none"},a[`${r}-push-${o}`]={insetInlineStart:"auto"},a[`${r}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${o}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${o}`]={marginInlineStart:0},a[`${r}${t}-order-${o}`]={order:0}):(a[`${r}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/i*100}%`,maxWidth:`${o/i*100}%`}],a[`${r}${t}-push-${o}`]={insetInlineStart:`${o/i*100}%`},a[`${r}${t}-pull-${o}`]={insetInlineEnd:`${o/i*100}%`},a[`${r}${t}-offset-${o}`]={marginInlineStart:`${o/i*100}%`},a[`${r}${t}-order-${o}`]={order:o});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},Pj=(e,t)=>tze(e,t),nze=(e,t,n)=>({[`@media (min-width: ${Me(t)})`]:Object.assign({},Pj(e,n))}),rze=()=>({}),ize=()=>({}),aze=Jn("Grid",JBe,rze),Ype=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),oze=Jn("Grid",e=>{const t=Hn(e,{gridColumns:24}),n=Ype(t);return delete n.xs,[eze(t),Pj(t,""),Pj(t,"-xs"),Object.keys(n).map(r=>nze(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},ize);function hY(e){return{position:e,inset:0}}const Xpe=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},hY("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},hY("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:JL(e)}]},sze=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Me(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},ar(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Me(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Me(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Vs(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Me(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},oze=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},sze=e=>{const{componentCls:t}=e,n=Vpe(e);delete n.xs;const r=Object.keys(n).map(i=>({[`@media (min-width: ${Me(n[i])})`]:{width:`var(--${t.replace(".","")}-${i}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(ct(r))}}},Kpe=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Hn(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Gpe=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Me(e.paddingMD)} ${Me(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Me(e.padding)} ${Me(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Me(e.paddingXS)} ${Me(e.padding)}`:0,footerBorderTop:e.wireframe?`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Me(e.padding*2)} ${Me(e.padding*2)} ${Me(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Ype=Jn("Modal",e=>{const t=Kpe(e);return[aze(t),oze(t),qpe(t),Cy(t,"zoom"),sze(t)]},Gpe,{unitless:{titleLineHeight:!0}});var lze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{Mj={x:e.pageX,y:e.pageY},setTimeout(()=>{Mj=null},100)};TBe()&&document.documentElement.addEventListener("click",cze,!0);const Xpe=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:a}=d.useContext(Zt),o=ie=>{const{onCancel:Y}=e;Y==null||Y(ie)},s=ie=>{const{onOk:Y}=e;Y==null||Y(ie)},{prefixCls:l,className:c,rootClassName:u,open:f,wrapClassName:p,centered:h,getContainer:m,focusTriggerAfterClose:g=!0,style:v,visible:y,width:b=520,footer:w,classNames:_,styles:k,children:S,loading:C}=e,E=lze(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),$=r("modal",l),M=r(),P=qr($),[I,O,A]=Ype($,P),R=Ee(p,{[`${$}-centered`]:!!h,[`${$}-wrap-rtl`]:i==="rtl"}),j=w!==null&&!C?d.createElement(Wpe,Object.assign({},e,{onOk:s,onCancel:o})):null,[N,D,V]=lB(T0(e),T0(a),{closable:!0,closeIcon:d.createElement(Cu,{className:`${$}-close-icon`}),closeIconRender:ie=>Upe($,ie)}),F=Hpe(`.${$}-content`),[K,B]=_c("Modal",E.zIndex),[U,Z]=d.useMemo(()=>b&&typeof b=="object"?[void 0,b]:[b,void 0],[b]),ee=d.useMemo(()=>{const ie={};return Z&&Object.keys(Z).forEach(Y=>{const X=Z[Y];X!==void 0&&(ie[`--${$}-${Y}-width`]=typeof X=="number"?`${X}px`:X)}),ie},[Z]);return I(d.createElement(mu,{form:!0,space:!0},d.createElement(m4.Provider,{value:B},d.createElement(rB,Object.assign({width:U},E,{zIndex:K,getContainer:m===void 0?n:m,prefixCls:$,rootClassName:Ee(O,u,A,P),footer:j,visible:f??y,mousePosition:(t=E.mousePosition)!==null&&t!==void 0?t:Mj,onClose:o,closable:N&&{disabled:V,closeIcon:D},closeIcon:D,focusTriggerAfterClose:g,transitionName:so(M,"zoom",e.transitionName),maskTransitionName:so(M,"fade",e.maskTransitionName),className:Ee(O,c,a==null?void 0:a.className),style:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.style),v),ee),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),_),{wrapper:Ee(R,_==null?void 0:_.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),k),panelRef:F}),C?d.createElement(Kf,{active:!0,title:!1,paragraph:{rows:4},className:`${$}-body-skeleton`}):S))))},uze=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},hd()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${Me(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Me(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, - ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},dze=xy(["Modal","confirm"],e=>{const t=Kpe(e);return[uze(t)]},Gpe,{order:-1e3});var fze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);ib,ct(Object.values(b))),_=d.createElement(d.Fragment,null,d.createElement(LG,null),d.createElement(BG,null)),k=e.title!==void 0&&e.title!==null,S=`${a}-body`;return d.createElement("div",{className:`${a}-body-wrapper`},d.createElement("div",{className:Ee(S,{[`${S}-has-title`]:k})},f,d.createElement("div",{className:`${a}-paragraph`},k&&d.createElement("span",{className:`${a}-title`},e.title),d.createElement("div",{className:`${a}-content`},e.content))),l===void 0||typeof l=="function"?d.createElement(Epe,{value:w},d.createElement("div",{className:`${a}-btns`},typeof l=="function"?l(_,{OkBtn:BG,CancelBtn:LG}):_)):l,d.createElement(dze,{prefixCls:t}))}const pze=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:a,wrapClassName:o,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:f}=e,p=`${a}-confirm`,h=e.width||416,m=e.style||{},g=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,y=Ee(p,`${p}-${e.type}`,{[`${p}-rtl`]:i==="rtl"},e.className),[,b]=$a(),w=d.useMemo(()=>n!==void 0?n:b.zIndexPopupBase+VL,[n,b]);return d.createElement(Xpe,Object.assign({},e,{className:y,wrapClassName:Ee({[`${p}-centered`]:!!e.centered},o),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:"",footer:null,transitionName:so(s||"","zoom",e.transitionName),maskTransitionName:so(s||"","fade",e.maskTransitionName),mask:g,maskClosable:v,style:m,styles:Object.assign({body:l,mask:r},f),width:h,zIndex:w,closable:c}),d.createElement(Zpe,Object.assign({},e,{confirmPrefixCls:p})))},Qpe=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return d.createElement(zn,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},d.createElement(pze,Object.assign({},e)))},Cm=[];let Jpe="";function ehe(){return Jpe}const hze=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:a}=e,o=pfe(),s=d.useContext(Zt),l=ehe()||s.getPrefixCls(),c=r||`${l}-modal`;let u=i;return u===!1&&(u=void 0),te.createElement(Qpe,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:o,getContainer:u}))};function C4(e){const t=Kfe(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),i,a;function o(){for(var u,f=arguments.length,p=new Array(f),h=0;hv==null?void 0:v.triggerCancel)){var g;(u=e.onCancel)===null||u===void 0||(g=u).call.apply(g,[e,()=>{}].concat(ct(p.slice(1))))}for(let v=0;v{const f=t.getPrefixCls(void 0,ehe()),p=t.getIconPrefixCls(),h=t.getTheme(),m=te.createElement(hze,Object.assign({},u));a=KL()(te.createElement(zn,{prefixCls:f,iconPrefixCls:p,theme:h},t.holderRender?t.holderRender(m):m),n)})}function l(){for(var u=arguments.length,f=new Array(u),p=0;p{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,f)}}),r.visible&&delete r.visible,s(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),s(r)}return s(r),Cm.push(l),{destroy:l,update:c}}function the(e){return Object.assign(Object.assign({},e),{type:"warning"})}function nhe(e){return Object.assign(Object.assign({},e),{type:"info"})}function rhe(e){return Object.assign(Object.assign({},e),{type:"success"})}function ihe(e){return Object.assign(Object.assign({},e),{type:"error"})}function ahe(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function mze(e){let{rootPrefixCls:t}=e;Jpe=t}var gze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,{afterClose:r,config:i}=e,a=gze(e,["afterClose","config"]);const[o,s]=d.useState(!0),[l,c]=d.useState(i),{direction:u,getPrefixCls:f}=d.useContext(Zt),p=f("modal"),h=f(),m=()=>{var b;r(),(b=l.afterClose)===null||b===void 0||b.call(l)},g=function(){var b;s(!1);for(var w=arguments.length,_=new Array(w),k=0;kE==null?void 0:E.triggerCancel)){var C;(b=l.onCancel)===null||b===void 0||(C=b).call.apply(C,[l,()=>{}].concat(ct(_.slice(1))))}};d.useImperativeHandle(t,()=>({destroy:g,update:b=>{c(w=>Object.assign(Object.assign({},w),b))}}));const v=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[y]=Xa("Modal",Us.Modal);return d.createElement(Qpe,Object.assign({prefixCls:p,rootPrefixCls:h},l,{close:g,open:o,afterClose:m,okText:l.okText||(v?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:l.direction||u,cancelText:l.cancelText||(y==null?void 0:y.cancelText)},a))},yze=d.forwardRef(vze);let fY=0;const bze=d.memo(d.forwardRef((e,t)=>{const[n,r]=cDe();return d.useImperativeHandle(t,()=>({patchElement:r}),[]),d.createElement(d.Fragment,null,n)}));function ohe(){const e=d.useRef(null),[t,n]=d.useState([]);d.useEffect(()=>{t.length&&(ct(t).forEach(o=>{o()}),n([]))},[t]);const r=d.useCallback(a=>function(s){var l;fY+=1;const c=d.createRef();let u;const f=new Promise(v=>{u=v});let p=!1,h;const m=d.createElement(yze,{key:`modal-${fY}`,config:a(s),ref:c,afterClose:()=>{h==null||h()},isSilent:()=>p,onConfirm:v=>{u(v)}});return h=(l=e.current)===null||l===void 0?void 0:l.patchElement(m),h&&Cm.push(h),{destroy:()=>{function v(){var y;(y=c.current)===null||y===void 0||y.destroy()}c.current?v():n(y=>[].concat(ct(y),[v]))},update:v=>{function y(){var b;(b=c.current)===null||b===void 0||b.update(v)}c.current?y():n(b=>[].concat(ct(b),[y]))},then:v=>(p=!0,f.then(v))}},[]);return[d.useMemo(()=>({info:r(nhe),success:r(rhe),error:r(ihe),warning:r(the),confirm:r(ahe)}),[]),d.createElement(bze,{key:"modal-holder",ref:e})]}const wze=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,a=new ir("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),o=new ir("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new ir("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new ir("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},xze=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Sze={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Cze=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Sze[t]]:{value:0,_skip_check_:!0}}}}},_ze=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},kze=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},_ze(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},kze(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},xze.map(n=>Cze(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},$ze=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:o,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:p,notificationPadding:h,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:v,fontSize:y,lineHeight:b,width:w,notificationIconSize:_,colorText:k}=e,S=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:p,borderRadius:o,boxShadow:r,[S]:{padding:h,width:w,maxWidth:`calc(100vw - ${Me(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${S}-message`]:{marginBottom:e.marginXS,color:f,fontSize:i,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:y,color:k},[`${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(_).equal(),fontSize:i},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.calc(e.marginSM).add(_).equal(),fontSize:y},[`${S}-icon`]:{position:"absolute",fontSize:_,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${S}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Vs(e)),[`${S}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${Me(o)} * 2)`,left:{_skip_check_:!0,value:o},right:{_skip_check_:!0,value:o},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:o,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:o,background:g}},[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},Mze=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:a}=e,o=`${t}-notice`,s=new ir("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},ar(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:i,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${o}-btn`]:{float:"left"}}})},{[t]:{[`${o}-wrapper`]:Object.assign({},$ze(e))}}]},Tze=e=>({zIndexPopup:e.zIndexPopupBase+VL+50,width:384}),Pze=e=>{const t=e.paddingMD,n=e.paddingLG;return Hn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Me(e.paddingMD)} ${Me(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Oze=Jn("Notification",e=>{const t=Pze(e);return[Mze(t),wze(t),Eze(t)]},Tze);function she(e,t){return t===null||t===!1?null:t||d.createElement(Cu,{className:`${e}-close-icon`})}const Ize={success:Ug,info:ZE,error:$d,warning:qf},Rze=e=>{const{prefixCls:t,icon:n,type:r,message:i,description:a,btn:o,role:s="alert"}=e;let l=null;return n?l=d.createElement("span",{className:`${t}-icon`},n):r&&(l=d.createElement(Ize[r]||null,{className:Ee(`${t}-icon`,`${t}-icon-${r}`)})),d.createElement("div",{className:Ee({[`${t}-with-icon`]:l}),role:s},l,d.createElement("div",{className:`${t}-message`},i),d.createElement("div",{className:`${t}-description`},a),o&&d.createElement("div",{className:`${t}-btn`},o))};function jze(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function Nze(e){return{motionName:`${e}-fade`}}var Aze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{children:t,prefixCls:n}=e;const r=qr(n),[i,a,o]=Oze(n,r);return i(te.createElement(rpe,{classNames:{list:Ee(a,o,r)}},t))},Bze=(e,t)=>{let{prefixCls:n,key:r}=t;return te.createElement(Lze,{prefixCls:n,key:r},e)},zze=te.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:o,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:f=!0,showProgress:p}=e,{getPrefixCls:h,getPopupContainer:m,notification:g,direction:v}=d.useContext(Zt),[,y]=$a(),b=i||h("notification"),w=E=>jze(E,n??pY,r??pY),_=()=>Ee({[`${b}-rtl`]:s??v==="rtl"}),k=()=>Nze(b),[S,C]=ipe({prefixCls:b,style:w,className:_,motion:k,closable:!0,closeIcon:she(b),duration:u??Dze,getContainer:()=>(a==null?void 0:a())||(m==null?void 0:m())||document.body,maxCount:o,pauseOnHover:f,showProgress:p,onAllRemoved:l,renderNotifications:Bze,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:y.margin}});return te.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:b,notification:g})),C});function Hze(e){const t=te.useRef(null);return Hg(),[te.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:f}=t.current,p=`${u}-notice`,{message:h,description:m,icon:g,type:v,btn:y,className:b,style:w,role:_="alert",closeIcon:k,closable:S}=s,C=Aze(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),E=she(p,typeof k<"u"?k:f==null?void 0:f.closeIcon);return c(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:Fze},C),{content:te.createElement(Rze,{prefixCls:p,icon:g,type:v,message:h,description:m,btn:y,role:_}),className:Ee(v&&`${p}-${v}`,b,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),w),closeIcon:E,closable:S??!!E}))},a={open:r,destroy:s=>{var l,c;s!==void 0?(l=t.current)===null||l===void 0||l.close(s):(c=t.current)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(s=>{a[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),a},[]),te.createElement(zze,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Uze(e){return Hze(e)}const Tj=te.createContext({}),lhe=te.createContext({message:{},notification:{},modal:{}}),Wze=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:a,[`&${t}-rtl`]:{direction:"rtl"}}}},Vze=()=>({}),qze=Jn("App",Wze,Vze),Kze=()=>te.useContext(lhe),g8=e=>{const{prefixCls:t,children:n,className:r,rootClassName:i,message:a,notification:o,style:s,component:l="div"}=e,{direction:c,getPrefixCls:u}=d.useContext(Zt),f=u("app",t),[p,h,m]=qze(f),g=Ee(h,f,r,i,m,{[`${f}-rtl`]:c==="rtl"}),v=d.useContext(Tj),y=te.useMemo(()=>({message:Object.assign(Object.assign({},v.message),a),notification:Object.assign(Object.assign({},v.notification),o)}),[a,o,v.message,v.notification]),[b,w]=cpe(y.message),[_,k]=Uze(y.notification),[S,C]=ohe(),E=te.useMemo(()=>({message:b,notification:_,modal:S}),[b,_,S]);Hg()(!(m&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const $=l===!1?te.Fragment:l,M={className:g,style:s};return p(te.createElement(lhe.Provider,{value:E},te.createElement(Tj.Provider,{value:y},te.createElement($,Object.assign({},l===!1?void 0:M),C,w,k,n))))};g8.useApp=Kze;function che(e){return t=>d.createElement(zn,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const Gf=(e,t,n,r,i)=>che(o=>{const{prefixCls:s,style:l}=o,c=d.useRef(null),[u,f]=d.useState(0),[p,h]=d.useState(0),[m,g]=In(!1,{value:o.open}),{getPrefixCls:v}=d.useContext(Zt),y=v(r||"select",s);d.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const _=new ResizeObserver(S=>{const C=S[0].target;f(C.offsetHeight+8),h(C.offsetWidth)}),k=setInterval(()=>{var S;const C=i?`.${i(y)}`:`.${y}-dropdown`,E=(S=c.current)===null||S===void 0?void 0:S.querySelector(C);E&&(clearInterval(k),_.observe(E))},10);return()=>{clearInterval(k),_.disconnect()}}},[]);let b=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},l),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});n&&(b=n(b)),t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const w={paddingBottom:u,position:"relative",minWidth:p};return d.createElement("div",{ref:c,style:w},d.createElement(e,Object.assign({},b)))}),v8=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var y8=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,a=t.children,o=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(i):r;return d.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),o==null||o(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:d.createElement("span",{className:Ee(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},a))},Gze=function(t,n,r,i,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=te.useMemo(function(){if(Kt(i)==="object")return i.clearIcon;if(a)return a},[i,a]),u=te.useMemo(function(){return!!(!o&&i&&(r.length||s)&&!(l==="combobox"&&s===""))},[i,o,r.length,s,l]);return{allowClear:u,clearIcon:te.createElement(y8,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},uhe=d.createContext(null);function cB(){return d.useContext(uhe)}function Yze(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=Te(t,2),r=n[0],i=n[1],a=d.useRef(null),o=function(){window.clearTimeout(a.current)};d.useEffect(function(){return o},[]);var s=function(c,u){o(),a.current=window.setTimeout(function(){i(c),u&&u()},e)};return[r,s,o]}function dhe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Xze(e,t,n,r){var i=d.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function a(o){var s;if(!((s=i.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),i.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function Zze(e){return e&&![gt.ESC,gt.SHIFT,gt.BACKSPACE,gt.TAB,gt.WIN_KEY,gt.ALT,gt.META,gt.WIN_KEY_RIGHT,gt.CTRL,gt.SEMICOLON,gt.EQUALS,gt.CAPS_LOCK,gt.CONTEXT_MENU,gt.F1,gt.F2,gt.F3,gt.F4,gt.F5,gt.F6,gt.F7,gt.F8,gt.F9,gt.F10,gt.F11,gt.F12].includes(e)}var Qze=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],T1=void 0;function Jze(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,p=e.children,h=e.display,m=e.order,g=e.component,v=g===void 0?"div":g,y=Ut(e,Qze),b=o&&!h;function w(E){l(c,E)}d.useEffect(function(){return function(){w(null)}},[]);var _=a&&i!==T1?a(i):p,k;r||(k={opacity:b?0:1,height:b?0:T1,overflowY:b?"hidden":T1,order:o?m:T1,pointerEvents:b?"none":T1,position:b?"absolute":T1});var S={};b&&(S["aria-hidden"]=!0);var C=d.createElement(v,tt({className:Ee(!r&&n,u),style:q(q({},k),f)},S,y,{ref:t}),_);return o&&(C=d.createElement(Go,{onResize:function($){var M=$.offsetWidth;w(M)},disabled:s},C)),C}var Z2=d.forwardRef(Jze);Z2.displayName="Item";function eHe(e){if(typeof MessageChannel>"u")rr(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function tHe(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],eHe(function(){Ka.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function Ib(e,t){var n=d.useState(t),r=Te(n,2),i=r[0],a=r[1],o=Vn(function(s){e(function(){a(s)})});return[i,o]}var h6=te.createContext(null),nHe=["component"],rHe=["className"],iHe=["className"],aHe=function(t,n){var r=d.useContext(h6);if(!r){var i=t.component,a=i===void 0?"div":i,o=Ut(t,nHe);return d.createElement(a,tt({},o,{ref:n}))}var s=r.className,l=Ut(r,rHe),c=t.className,u=Ut(t,iHe);return d.createElement(h6.Provider,{value:null},d.createElement(Z2,tt({ref:n,className:Ee(s,c)},l,u)))},fhe=d.forwardRef(aHe);fhe.displayName="RawItem";var oHe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],phe="responsive",hhe="invalidate";function sHe(e){return"+ ".concat(e.length," ...")}function lHe(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,a=i===void 0?[]:i,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,p=e.style,h=e.className,m=e.maxCount,g=e.renderRest,v=e.renderRawRest,y=e.suffix,b=e.component,w=b===void 0?"div":b,_=e.itemComponent,k=e.onVisibleChange,S=Ut(e,oHe),C=f==="full",E=tHe(),$=Ib(E,null),M=Te($,2),P=M[0],I=M[1],O=P||0,A=Ib(E,new Map),R=Te(A,2),j=R[0],N=R[1],D=Ib(E,0),V=Te(D,2),F=V[0],K=V[1],B=Ib(E,0),U=Te(B,2),Z=U[0],ee=U[1],ie=Ib(E,0),Y=Te(ie,2),X=Y[0],ae=Y[1],oe=d.useState(null),le=Te(oe,2),ce=le[0],pe=le[1],me=d.useState(null),re=Te(me,2),fe=re[0],ve=re[1],$e=d.useMemo(function(){return fe===null&&C?Number.MAX_SAFE_INTEGER:fe||0},[fe,P]),Ce=d.useState(!1),be=Te(Ce,2),Se=be[0],we=be[1],se="".concat(r,"-item"),ye=Math.max(F,Z),Oe=m===phe,z=a.length&&Oe,H=m===hhe,G=z||typeof m=="number"&&a.length>m,de=d.useMemo(function(){var Lt=a;return z?P===null&&C?Lt=a:Lt=a.slice(0,Math.min(a.length,O/u)):typeof m=="number"&&(Lt=a.slice(0,m)),Lt},[a,u,P,m,z]),xe=d.useMemo(function(){return z?a.slice($e+1):a.slice(de.length)},[a,de,z,$e]),he=d.useCallback(function(Lt,Bt){var Ht;return typeof l=="function"?l(Lt):(Ht=l&&(Lt==null?void 0:Lt[l]))!==null&&Ht!==void 0?Ht:Bt},[l]),Ue=d.useCallback(o||function(Lt){return Lt},[o]);function We(Lt,Bt,Ht){fe===Lt&&(Bt===void 0||Bt===ce)||(ve(Lt),Ht||(we(LtO){We(Ne-1,Lt-He-X+Z);break}}y&&Xe(0)+X>O&&pe(null)}},[O,j,Z,X,he,de]);var Ke=Se&&!!xe.length,qe={};ce!==null&&z&&(qe={position:"absolute",left:ce,top:0});var Et={prefixCls:se,responsive:z,component:_,invalidate:H},dt=s?function(Lt,Bt){var Ht=he(Lt,Bt);return d.createElement(h6.Provider,{key:Ht,value:q(q({},Et),{},{order:Bt,item:Lt,itemKey:Ht,registerSize:ze,display:Bt<=$e})},s(Lt,Bt))}:function(Lt,Bt){var Ht=he(Lt,Bt);return d.createElement(Z2,tt({},Et,{order:Bt,key:Ht,item:Lt,renderItem:Ue,itemKey:Ht,registerSize:ze,display:Bt<=$e}))},vt,Ze={order:Ke?$e:Number.MAX_SAFE_INTEGER,className:"".concat(se,"-rest"),registerSize:Ve,display:Ke};if(v)v&&(vt=d.createElement(h6.Provider,{value:q(q({},Et),Ze)},v(xe)));else{var nt=g||sHe;vt=d.createElement(Z2,tt({},Et,Ze),typeof nt=="function"?nt(xe):nt)}var jt=d.createElement(w,tt({className:Ee(!H&&r,h),style:p,ref:t},S),de.map(dt),G?vt:null,y&&d.createElement(Z2,tt({},Et,{responsive:Oe,responsiveDisabled:!z,order:$e,className:"".concat(se,"-suffix"),registerSize:Be,display:!0,style:qe}),y));return Oe&&(jt=d.createElement(Go,{onResize:ge,disabled:!z},jt)),jt}var iu=d.forwardRef(lHe);iu.displayName="Overflow";iu.Item=fhe;iu.RESPONSIVE=phe;iu.INVALIDATE=hhe;var cHe=function(t,n){var r,i=t.prefixCls,a=t.id,o=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,f=t.editable,p=t.activeDescendantId,h=t.value,m=t.maxLength,g=t.onKeyDown,v=t.onMouseDown,y=t.onChange,b=t.onPaste,w=t.onCompositionStart,_=t.onCompositionEnd,k=t.onBlur,S=t.open,C=t.attrs,E=o||d.createElement("input",null),$=E,M=$.ref,P=$.props,I=P.onKeyDown,O=P.onChange,A=P.onMouseDown,R=P.onCompositionStart,j=P.onCompositionEnd,N=P.onBlur,D=P.style;return"maxLength"in E.props,E=d.cloneElement(E,q(q(q({type:"search"},P),{},{id:a,ref:va(n,M),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:Ee("".concat(i,"-selection-search-input"),(r=E)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":S?p:void 0},C),{},{value:f?h:"",maxLength:m,readOnly:!f,unselectable:f?null:"on",style:q(q({},D),{},{opacity:f?null:0}),onKeyDown:function(F){g(F),I&&I(F)},onMouseDown:function(F){v(F),A&&A(F)},onChange:function(F){y(F),O&&O(F)},onCompositionStart:function(F){w(F),R&&R(F)},onCompositionEnd:function(F){_(F),j&&j(F)},onPaste:b,onBlur:function(F){k(F),N&&N(F)}})),E},mhe=d.forwardRef(cHe);function ghe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var uHe=typeof window<"u"&&window.document&&window.document.documentElement,dHe=uHe;function fHe(e){return e!=null}function pHe(e){return!e&&e!==0}function hY(e){return["string","number"].includes(Kt(e))}function vhe(e){var t=void 0;return e&&(hY(e.title)?t=e.title.toString():hY(e.label)&&(t=e.label.toString())),t}function hHe(e,t){dHe?d.useLayoutEffect(e,t):d.useEffect(e,t)}function mHe(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var mY=function(t){t.preventDefault(),t.stopPropagation()},gHe=function(t){var n=t.id,r=t.prefixCls,i=t.values,a=t.open,o=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,f=t.mode,p=t.showSearch,h=t.autoFocus,m=t.autoComplete,g=t.activeDescendantId,v=t.tabIndex,y=t.removeIcon,b=t.maxTagCount,w=t.maxTagTextLength,_=t.maxTagPlaceholder,k=_===void 0?function(me){return"+ ".concat(me.length," ...")}:_,S=t.tagRender,C=t.onToggleOpen,E=t.onRemove,$=t.onInputChange,M=t.onInputPaste,P=t.onInputKeyDown,I=t.onInputMouseDown,O=t.onInputCompositionStart,A=t.onInputCompositionEnd,R=t.onInputBlur,j=d.useRef(null),N=d.useState(0),D=Te(N,2),V=D[0],F=D[1],K=d.useState(!1),B=Te(K,2),U=B[0],Z=B[1],ee="".concat(r,"-selection"),ie=a||f==="multiple"&&s===!1||f==="tags"?o:"",Y=f==="tags"||f==="multiple"&&s===!1||p&&(a||U);hHe(function(){F(j.current.scrollWidth)},[ie]);var X=function(re,fe,ve,$e,Ce){return d.createElement("span",{title:vhe(re),className:Ee("".concat(ee,"-item"),ne({},"".concat(ee,"-item-disabled"),ve))},d.createElement("span",{className:"".concat(ee,"-item-content")},fe),$e&&d.createElement(y8,{className:"".concat(ee,"-item-remove"),onMouseDown:mY,onClick:Ce,customizeIcon:y},"×"))},ae=function(re,fe,ve,$e,Ce,be){var Se=function(se){mY(se),C(!a)};return d.createElement("span",{onMouseDown:Se},S({label:fe,value:re,disabled:ve,closable:$e,onClose:Ce,isMaxTag:!!be}))},oe=function(re){var fe=re.disabled,ve=re.label,$e=re.value,Ce=!u&&!fe,be=ve;if(typeof w=="number"&&(typeof ve=="string"||typeof ve=="number")){var Se=String(be);Se.length>w&&(be="".concat(Se.slice(0,w),"..."))}var we=function(ye){ye&&ye.stopPropagation(),E(re)};return typeof S=="function"?ae($e,be,fe,Ce,we):X(re,be,fe,Ce,we)},le=function(re){if(!i.length)return null;var fe=typeof k=="function"?k(re):k;return typeof S=="function"?ae(void 0,fe,!1,!1,void 0,!0):X({title:fe},fe,!1)},ce=d.createElement("div",{className:"".concat(ee,"-search"),style:{width:V},onFocus:function(){Z(!0)},onBlur:function(){Z(!1)}},d.createElement(mhe,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:m,editable:Y,activeDescendantId:g,value:ie,onKeyDown:P,onMouseDown:I,onChange:$,onPaste:M,onCompositionStart:O,onCompositionEnd:A,onBlur:R,tabIndex:v,attrs:Bi(t,!0)}),d.createElement("span",{ref:j,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},ie," ")),pe=d.createElement(iu,{prefixCls:"".concat(ee,"-overflow"),data:i,renderItem:oe,renderRest:le,suffix:ce,itemKey:mHe,maxCount:b});return d.createElement("span",{className:"".concat(ee,"-wrap")},pe,!i.length&&!ie&&d.createElement("span",{className:"".concat(ee,"-placeholder")},c))},vHe=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,a=t.inputRef,o=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,p=t.values,h=t.placeholder,m=t.tabIndex,g=t.showSearch,v=t.searchValue,y=t.activeValue,b=t.maxLength,w=t.onInputKeyDown,_=t.onInputMouseDown,k=t.onInputChange,S=t.onInputPaste,C=t.onInputCompositionStart,E=t.onInputCompositionEnd,$=t.onInputBlur,M=t.title,P=d.useState(!1),I=Te(P,2),O=I[0],A=I[1],R=u==="combobox",j=R||g,N=p[0],D=v||"";R&&y&&!O&&(D=y),d.useEffect(function(){R&&A(!1)},[R,y]);var V=u!=="combobox"&&!f&&!g?!1:!!D,F=M===void 0?vhe(N):M,K=d.useMemo(function(){return N?null:d.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:V?{visibility:"hidden"}:void 0},h)},[N,V,h,r]);return d.createElement("span",{className:"".concat(r,"-selection-wrap")},d.createElement("span",{className:"".concat(r,"-selection-search")},d.createElement(mhe,{ref:a,prefixCls:r,id:i,open:f,inputElement:n,disabled:o,autoFocus:s,autoComplete:l,editable:j,activeDescendantId:c,value:D,onKeyDown:w,onMouseDown:_,onChange:function(U){A(!0),k(U)},onPaste:S,onCompositionStart:C,onCompositionEnd:E,onBlur:$,tabIndex:m,attrs:Bi(t,!0),maxLength:R?b:void 0})),!R&&N?d.createElement("span",{className:"".concat(r,"-selection-item"),title:F,style:V?{visibility:"hidden"}:void 0},N.label):null,K)},yHe=function(t,n){var r=d.useRef(null),i=d.useRef(!1),a=t.prefixCls,o=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,p=t.autoClearSearchValue,h=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,y=t.onInputBlur,b=t.domRef;d.useImperativeHandle(n,function(){return{focus:function(F){r.current.focus(F)},blur:function(){r.current.blur()}}});var w=dhe(0),_=Te(w,2),k=_[0],S=_[1],C=function(F){var K=F.which,B=r.current instanceof HTMLTextAreaElement;!B&&o&&(K===gt.UP||K===gt.DOWN)&&F.preventDefault(),v&&v(F),K===gt.ENTER&&s==="tags"&&!i.current&&!o&&(m==null||m(F.target.value)),!(B&&!o&&~[gt.UP,gt.DOWN,gt.LEFT,gt.RIGHT].indexOf(K))&&Zze(K)&&g(!0)},E=function(){S(!0)},$=d.useRef(null),M=function(F){h(F,!0,i.current)!==!1&&g(!0)},P=function(){i.current=!0},I=function(F){i.current=!1,s!=="combobox"&&M(F.target.value)},O=function(F){var K=F.target.value;if(c&&$.current&&/[\r\n]/.test($.current)){var B=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");K=K.replace(B,$.current)}$.current=null,M(K)},A=function(F){var K=F.clipboardData,B=K==null?void 0:K.getData("text");$.current=B||""},R=function(F){var K=F.target;if(K!==r.current){var B=document.body.style.msTouchAction!==void 0;B?setTimeout(function(){r.current.focus()}):r.current.focus()}},j=function(F){var K=k();F.target!==r.current&&!K&&!(s==="combobox"&&u)&&F.preventDefault(),(s!=="combobox"&&(!l||!K)||!o)&&(o&&p!==!1&&h("",!0,!1),g())},N={inputRef:r,onInputKeyDown:C,onInputMouseDown:E,onInputChange:O,onInputPaste:A,onInputCompositionStart:P,onInputCompositionEnd:I,onInputBlur:y},D=s==="multiple"||s==="tags"?d.createElement(gHe,tt({},t,N)):d.createElement(vHe,tt({},t,N));return d.createElement("div",{ref:b,className:"".concat(a,"-selector"),onClick:R,onMouseDown:j},f&&d.createElement("div",{className:"".concat(a,"-prefix")},f),D)},bHe=d.forwardRef(yHe);function wHe(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},o=a.className,s=a.content,l=i.x,c=l===void 0?0:l,u=i.y,f=u===void 0?0:u,p=d.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var m=n.points[0],g=n.points[1],v=m[0],y=m[1],b=g[0],w=g[1];v===b||!["t","b"].includes(v)?h.top=f:v==="t"?h.top=0:h.bottom=0,y===w||!["l","r"].includes(y)?h.left=c:y==="l"?h.left=0:h.right=0}return d.createElement("div",{ref:p,className:Ee("".concat(t,"-arrow"),o),style:h},s)}function xHe(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?d.createElement(ka,tt({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var s=o.className;return d.createElement("div",{style:{zIndex:r},className:Ee("".concat(t,"-mask"),s)})}):null}var SHe=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),CHe=d.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,o=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,p=e.mask,h=e.arrow,m=e.arrowPos,g=e.align,v=e.motion,y=e.maskMotion,b=e.forceRender,w=e.getPopupContainer,_=e.autoDestroy,k=e.portal,S=e.zIndex,C=e.onMouseEnter,E=e.onMouseLeave,$=e.onPointerEnter,M=e.onPointerDownCapture,P=e.ready,I=e.offsetX,O=e.offsetY,A=e.offsetR,R=e.offsetB,j=e.onAlign,N=e.onPrepare,D=e.stretch,V=e.targetWidth,F=e.targetHeight,K=typeof n=="function"?n():n,B=l||c,U=(w==null?void 0:w.length)>0,Z=d.useState(!w||!U),ee=Te(Z,2),ie=ee[0],Y=ee[1];if(nr(function(){!ie&&U&&o&&Y(!0)},[ie,U,o]),!ie)return null;var X="auto",ae={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(P||!l){var oe,le=g.points,ce=g.dynamicInset||((oe=g._experimental)===null||oe===void 0?void 0:oe.dynamicInset),pe=ce&&le[0][1]==="r",me=ce&&le[0][0]==="b";pe?(ae.right=A,ae.left=X):(ae.left=I,ae.right=X),me?(ae.bottom=R,ae.top=X):(ae.top=O,ae.bottom=X)}var re={};return D&&(D.includes("height")&&F?re.height=F:D.includes("minHeight")&&F&&(re.minHeight=F),D.includes("width")&&V?re.width=V:D.includes("minWidth")&&V&&(re.minWidth=V)),l||(re.pointerEvents="none"),d.createElement(k,{open:b||B,getContainer:w&&function(){return w(o)},autoDestroy:_},d.createElement(xHe,{prefixCls:i,open:l,zIndex:S,mask:p,motion:y}),d.createElement(Go,{onResize:j,disabled:!l},function(fe){return d.createElement(ka,tt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function($e){var Ce;v==null||(Ce=v.onVisibleChanged)===null||Ce===void 0||Ce.call(v,$e),s($e)}}),function(ve,$e){var Ce=ve.className,be=ve.style,Se=Ee(i,Ce,r);return d.createElement("div",{ref:va(fe,t,$e),className:Se,style:q(q(q(q({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},ae),re),be),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:C,onMouseLeave:E,onPointerEnter:$,onClick:f,onPointerDownCapture:M},h&&d.createElement(wHe,{prefixCls:i,arrow:h,arrowPos:m,align:g}),d.createElement(SHe,{cache:!l&&!u},K))})}))}),_He=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Vf(n),a=d.useCallback(function(s){SL(t,r?r(s):s)},[r]),o=Su(a,vh(n));return i?d.cloneElement(n,{ref:o}):n}),gY=d.createContext(null);function vY(e){return e?Array.isArray(e)?e:[e]:[]}function kHe(e,t,n,r){return d.useMemo(function(){var i=vY(n??t),a=vY(r??t),o=new Set(i),s=new Set(a);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[e,t,n,r])}function EHe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function $He(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Rb(e){return r3(parseFloat(e),0)}function bY(e,t){var n=q({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=_4(r).getComputedStyle(r),a=i.overflow,o=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,h=r.clientHeight,m=r.offsetWidth,g=r.clientWidth,v=Rb(s),y=Rb(l),b=Rb(c),w=Rb(u),_=r3(Math.round(f.width/m*1e3)/1e3),k=r3(Math.round(f.height/p*1e3)/1e3),S=(m-g-b-w)*_,C=(p-h-v-y)*k,E=v*k,$=y*k,M=b*_,P=w*_,I=0,O=0;if(a==="clip"){var A=Rb(o);I=A*_,O=A*k}var R=f.x+M-I,j=f.y+E-O,N=R+f.width+2*I-M-P-S,D=j+f.height+2*O-E-$-C;n.left=Math.max(n.left,R),n.top=Math.max(n.top,j),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,D)}}),n}function wY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function xY(e,t){var n=t||[],r=Te(n,2),i=r[0],a=r[1];return[wY(e.width,i),wY(e.height,a)]}function SY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function P1(e,t){var n=t[0],r=t[1],i,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function op(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function MHe(e,t,n,r,i,a,o){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=Te(s,2),c=l[0],u=l[1],f=d.useRef(0),p=d.useMemo(function(){return t?Pj(t):[]},[t]),h=d.useRef({}),m=function(){h.current={}};e||m();var g=Vn(function(){if(t&&n&&e){let wr=function(Rd,yi){var uo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ye,Tu=Z.x+Rd,Pu=Z.y+yi,Rh=Tu+pe,On=Pu+ce,cr=Math.max(Tu,uo.left),Hr=Math.max(Pu,uo.top),Ii=Math.min(Rh,uo.right),bi=Math.min(On,uo.bottom);return Math.max(0,(Ii-cr)*(bi-Hr))},Pc=function(){qt=Z.y+Ht,yt=qt+ce,At=Z.x+Bt,ft=At+pe};var sr=wr,_r=Pc,b,w,_,k,S=t,C=S.ownerDocument,E=_4(S),$=E.getComputedStyle(S),M=$.width,P=$.height,I=$.position,O=S.style.left,A=S.style.top,R=S.style.right,j=S.style.bottom,N=S.style.overflow,D=q(q({},i[r]),a),V=C.createElement("div");(b=S.parentElement)===null||b===void 0||b.appendChild(V),V.style.left="".concat(S.offsetLeft,"px"),V.style.top="".concat(S.offsetTop,"px"),V.style.position=I,V.style.height="".concat(S.offsetHeight,"px"),V.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var F;if(Array.isArray(n))F={x:n[0],y:n[1],width:0,height:0};else{var K,B,U=n.getBoundingClientRect();U.x=(K=U.x)!==null&&K!==void 0?K:U.left,U.y=(B=U.y)!==null&&B!==void 0?B:U.top,F={x:U.x,y:U.y,width:U.width,height:U.height}}var Z=S.getBoundingClientRect();Z.x=(w=Z.x)!==null&&w!==void 0?w:Z.left,Z.y=(_=Z.y)!==null&&_!==void 0?_:Z.top;var ee=C.documentElement,ie=ee.clientWidth,Y=ee.clientHeight,X=ee.scrollWidth,ae=ee.scrollHeight,oe=ee.scrollTop,le=ee.scrollLeft,ce=Z.height,pe=Z.width,me=F.height,re=F.width,fe={left:0,top:0,right:ie,bottom:Y},ve={left:-le,top:-oe,right:X-le,bottom:ae-oe},$e=D.htmlRegion,Ce="visible",be="visibleFirst";$e!=="scroll"&&$e!==be&&($e=Ce);var Se=$e===be,we=bY(ve,p),se=bY(fe,p),ye=$e===Ce?se:we,Oe=Se?se:ye;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var z=S.getBoundingClientRect();S.style.left=O,S.style.top=A,S.style.right=R,S.style.bottom=j,S.style.overflow=N,(k=S.parentElement)===null||k===void 0||k.removeChild(V);var H=r3(Math.round(pe/parseFloat(M)*1e3)/1e3),G=r3(Math.round(ce/parseFloat(P)*1e3)/1e3);if(H===0||G===0||Vw(n)&&!v4(n))return;var de=D.offset,xe=D.targetOffset,he=xY(Z,de),Ue=Te(he,2),We=Ue[0],ge=Ue[1],ze=xY(F,xe),Ve=Te(ze,2),Be=Ve[0],Xe=Ve[1];F.x-=Be,F.y-=Xe;var Ke=D.points||[],qe=Te(Ke,2),Et=qe[0],dt=qe[1],vt=SY(dt),Ze=SY(Et),nt=P1(F,vt),jt=P1(Z,Ze),Lt=q({},D),Bt=nt.x-jt.x+We,Ht=nt.y-jt.y+ge,Ne=wr(Bt,Ht),He=wr(Bt,Ht,se),Le=P1(F,["t","l"]),Qe=P1(Z,["t","l"]),ht=P1(F,["b","r"]),xt=P1(Z,["b","r"]),Nt=D.overflow||{},Ot=Nt.adjustX,Pt=Nt.adjustY,lt=Nt.shiftX,Ct=Nt.shiftY,kt=function(yi){return typeof yi=="boolean"?yi:yi>=0},qt,yt,At,ft;Pc();var De=kt(Pt),Ye=Ze[0]===vt[0];if(De&&Ze[0]==="t"&&(yt>Oe.bottom||h.current.bt)){var st=Ht;Ye?st-=ce-me:st=Le.y-xt.y-ge;var Ie=wr(Bt,st),Rt=wr(Bt,st,se);Ie>Ne||Ie===Ne&&(!Se||Rt>=He)?(h.current.bt=!0,Ht=st,ge=-ge,Lt.points=[op(Ze,0),op(vt,0)]):h.current.bt=!1}if(De&&Ze[0]==="b"&&(qtNe||$t===Ne&&(!Se||Mt>=He)?(h.current.tb=!0,Ht=rt,ge=-ge,Lt.points=[op(Ze,0),op(vt,0)]):h.current.tb=!1}var cn=kt(Ot),fn=Ze[1]===vt[1];if(cn&&Ze[1]==="l"&&(ft>Oe.right||h.current.rl)){var T=Bt;fn?T-=pe-re:T=Le.x-xt.x-We;var L=wr(T,Ht),J=wr(T,Ht,se);L>Ne||L===Ne&&(!Se||J>=He)?(h.current.rl=!0,Bt=T,We=-We,Lt.points=[op(Ze,1),op(vt,1)]):h.current.rl=!1}if(cn&&Ze[1]==="r"&&(AtNe||je===Ne&&(!Se||it>=He)?(h.current.lr=!0,Bt=ke,We=-We,Lt.points=[op(Ze,1),op(vt,1)]):h.current.lr=!1}Pc();var Ft=lt===!0?0:lt;typeof Ft=="number"&&(Atse.right&&(Bt-=ft-se.right-We,F.x>se.right-Ft&&(Bt+=F.x-se.right+Ft)));var an=Ct===!0?0:Ct;typeof an=="number"&&(qtse.bottom&&(Ht-=yt-se.bottom-ge,F.y>se.bottom-an&&(Ht+=F.y-se.bottom+an)));var Tn=Z.x+Bt,Er=Tn+pe,or=Z.y+Ht,ri=or+ce,hr=F.x,sn=hr+re,bn=F.y,gr=bn+me,Je=Math.max(Tn,hr),ot=Math.min(Er,sn),Xt=(Je+ot)/2,xn=Xt-Tn,Rn=Math.max(or,bn),An=Math.min(ri,gr),kn=(Rn+An)/2,Or=kn-or;o==null||o(t,Lt);var tr=z.right-Z.x-(Bt+Z.width),Yn=z.bottom-Z.y-(Ht+Z.height);H===1&&(Bt=Math.round(Bt),tr=Math.round(tr)),G===1&&(Ht=Math.round(Ht),Yn=Math.round(Yn));var Dn={ready:!0,offsetX:Bt/H,offsetY:Ht/G,offsetR:tr/H,offsetB:Yn/G,arrowX:xn/H,arrowY:Or/G,scaleX:H,scaleY:G,align:Lt};u(Dn)}}),v=function(){f.current+=1;var w=f.current;Promise.resolve().then(function(){f.current===w&&g()})},y=function(){u(function(w){return q(q({},w),{},{ready:!1})})};return nr(y,[r]),nr(function(){e||y()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function THe(e,t,n,r,i){nr(function(){if(e&&t&&n){let p=function(){r(),i()};var f=p,a=t,o=n,s=Pj(a),l=Pj(o),c=_4(o),u=new Set([c].concat(ct(s),ct(l)));return u.forEach(function(h){h.addEventListener("scroll",p,{passive:!0})}),c.addEventListener("resize",p,{passive:!0}),r(),function(){u.forEach(function(h){h.removeEventListener("scroll",p),c.removeEventListener("resize",p)})}}},[e,t,n])}function PHe(e,t,n,r,i,a,o,s){var l=d.useRef(e);l.current=e;var c=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!i||a)){var f=function(){c.current=!1},p=function(v){var y;l.current&&!o(((y=v.composedPath)===null||y===void 0||(y=y.call(v))===null||y===void 0?void 0:y[0])||v.target)&&!c.current&&s(!1)},h=_4(r);h.addEventListener("pointerdown",f,!0),h.addEventListener("mousedown",p,!0),h.addEventListener("contextmenu",p,!0);var m=f6(n);return m&&(m.addEventListener("mousedown",p,!0),m.addEventListener("contextmenu",p,!0)),function(){h.removeEventListener("pointerdown",f,!0),h.removeEventListener("mousedown",p,!0),h.removeEventListener("contextmenu",p,!0),m&&(m.removeEventListener("mousedown",p,!0),m.removeEventListener("contextmenu",p,!0))}}},[t,n,r,i,a]);function u(){c.current=!0}return u}var OHe=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function IHe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x4,t=d.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,h=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,y=v===void 0?.1:v,b=n.focusDelay,w=n.blurDelay,_=n.mask,k=n.maskClosable,S=k===void 0?!0:k,C=n.getPopupContainer,E=n.forceRender,$=n.autoDestroy,M=n.destroyPopupOnHide,P=n.popup,I=n.popupClassName,O=n.popupStyle,A=n.popupPlacement,R=n.builtinPlacements,j=R===void 0?{}:R,N=n.popupAlign,D=n.zIndex,V=n.stretch,F=n.getPopupClassNameFromAlign,K=n.fresh,B=n.alignPoint,U=n.onPopupClick,Z=n.onPopupAlign,ee=n.arrow,ie=n.popupMotion,Y=n.maskMotion,X=n.popupTransitionName,ae=n.popupAnimation,oe=n.maskTransitionName,le=n.maskAnimation,ce=n.className,pe=n.getTriggerDOMNode,me=Ut(n,OHe),re=$||M||!1,fe=d.useState(!1),ve=Te(fe,2),$e=ve[0],Ce=ve[1];nr(function(){Ce(v8())},[]);var be=d.useRef({}),Se=d.useContext(gY),we=d.useMemo(function(){return{registerSubPopup:function(cr,Hr){be.current[cr]=Hr,Se==null||Se.registerSubPopup(cr,Hr)}}},[Se]),se=p8(),ye=d.useState(null),Oe=Te(ye,2),z=Oe[0],H=Oe[1],G=d.useRef(null),de=Vn(function(On){G.current=On,Vw(On)&&z!==On&&H(On),Se==null||Se.registerSubPopup(se,On)}),xe=d.useState(null),he=Te(xe,2),Ue=he[0],We=he[1],ge=d.useRef(null),ze=Vn(function(On){Vw(On)&&Ue!==On&&(We(On),ge.current=On)}),Ve=d.Children.only(o),Be=(Ve==null?void 0:Ve.props)||{},Xe={},Ke=Vn(function(On){var cr,Hr,Ii=Ue;return(Ii==null?void 0:Ii.contains(On))||((cr=f6(Ii))===null||cr===void 0?void 0:cr.host)===On||On===Ii||(z==null?void 0:z.contains(On))||((Hr=f6(z))===null||Hr===void 0?void 0:Hr.host)===On||On===z||Object.values(be.current).some(function(bi){return(bi==null?void 0:bi.contains(On))||On===bi})}),qe=yY(a,ie,ae,X),Et=yY(a,Y,le,oe),dt=d.useState(p||!1),vt=Te(dt,2),Ze=vt[0],nt=vt[1],jt=f??Ze,Lt=Vn(function(On){f===void 0&&nt(On)});nr(function(){nt(f||!1)},[f]);var Bt=d.useRef(jt);Bt.current=jt;var Ht=d.useRef([]);Ht.current=[];var Ne=Vn(function(On){var cr;Lt(On),((cr=Ht.current[Ht.current.length-1])!==null&&cr!==void 0?cr:jt)!==On&&(Ht.current.push(On),h==null||h(On))}),He=d.useRef(),Le=function(){clearTimeout(He.current)},Qe=function(cr){var Hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Le(),Hr===0?Ne(cr):He.current=setTimeout(function(){Ne(cr)},Hr*1e3)};d.useEffect(function(){return Le},[]);var ht=d.useState(!1),xt=Te(ht,2),Nt=xt[0],Ot=xt[1];nr(function(On){(!On||jt)&&Ot(!0)},[jt]);var Pt=d.useState(null),lt=Te(Pt,2),Ct=lt[0],kt=lt[1],qt=d.useState(null),yt=Te(qt,2),At=yt[0],ft=yt[1],De=function(cr){ft([cr.clientX,cr.clientY])},Ye=MHe(jt,z,B&&At!==null?At:Ue,A,j,N,Z),st=Te(Ye,11),Ie=st[0],Rt=st[1],rt=st[2],$t=st[3],Mt=st[4],cn=st[5],fn=st[6],T=st[7],L=st[8],J=st[9],ke=st[10],je=kHe($e,l,c,u),it=Te(je,2),Ft=it[0],an=it[1],Tn=Ft.has("click"),Er=an.has("click")||an.has("contextMenu"),or=Vn(function(){Nt||ke()}),ri=function(){Bt.current&&B&&Er&&Qe(!1)};THe(jt,Ue,z,or,ri),nr(function(){or()},[At,A]),nr(function(){jt&&!(j!=null&&j[A])&&or()},[JSON.stringify(N)]);var hr=d.useMemo(function(){var On=$He(j,a,J,B);return Ee(On,F==null?void 0:F(J))},[J,F,j,a,B]);d.useImperativeHandle(r,function(){return{nativeElement:ge.current,popupElement:G.current,forceAlign:or}});var sn=d.useState(0),bn=Te(sn,2),gr=bn[0],Je=bn[1],ot=d.useState(0),Xt=Te(ot,2),xn=Xt[0],Rn=Xt[1],An=function(){if(V&&Ue){var cr=Ue.getBoundingClientRect();Je(cr.width),Rn(cr.height)}},kn=function(){An(),or()},Or=function(cr){Ot(!1),ke(),m==null||m(cr)},tr=function(){return new Promise(function(cr){An(),kt(function(){return cr})})};nr(function(){Ct&&(ke(),Ct(),kt(null))},[Ct]);function Yn(On,cr,Hr,Ii){Xe[On]=function(bi){var rp;Ii==null||Ii(bi),Qe(cr,Hr);for(var jd=arguments.length,w1=new Array(jd>1?jd-1:0),jh=1;jh1?Hr-1:0),bi=1;bi1?Hr-1:0),bi=1;bi1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],a=yhe(n,!1),o=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(f,p){Array.isArray(f)&&f.forEach(function(h){if(p||!(l in h)){var m=h[s];i.push({key:CY(h,i.length),groupOption:p,data:h,label:h[o],value:m})}else{var g=h[c];g===void 0&&r&&(g=h.label),i.push({key:CY(h,i.length),group:!0,data:h,label:g}),u(h[l],!0)}})}return u(e,!1),i}function Ij(e){var t=q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return zr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var FHe=function(t,n,r){if(!n||!n.length)return null;var i=!1,a=function s(l,c){var u=NL(c),f=u[0],p=u.slice(1);if(!f)return[l];var h=l.split(f);return i=i||h.length>1,h.reduce(function(m,g){return[].concat(ct(m),ct(s(g,p)))},[]).filter(Boolean)},o=a(t,n);return i?typeof r<"u"?o.slice(0,r):o:null},uB=d.createContext(null);function LHe(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var a=i.label,o=i.value;return["number","string"].includes(Kt(a))?a:o}).join(", ")),n.length>r?", ...":null)}var BHe=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],zHe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Rj=function(t){return t==="tags"||t==="multiple"},dB=d.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,a=e.className,o=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,h=e.notFoundContent,m=h===void 0?"Not Found":h,g=e.onClear,v=e.mode,y=e.disabled,b=e.loading,w=e.getInputElement,_=e.getRawInputElement,k=e.open,S=e.defaultOpen,C=e.onDropdownVisibleChange,E=e.activeValue,$=e.onActiveValueChange,M=e.activeDescendantId,P=e.searchValue,I=e.autoClearSearchValue,O=e.onSearch,A=e.onSearchSplit,R=e.tokenSeparators,j=e.allowClear,N=e.prefix,D=e.suffixIcon,V=e.clearIcon,F=e.OptionList,K=e.animation,B=e.transitionName,U=e.dropdownStyle,Z=e.dropdownClassName,ee=e.dropdownMatchSelectWidth,ie=e.dropdownRender,Y=e.dropdownAlign,X=e.placement,ae=e.builtinPlacements,oe=e.getPopupContainer,le=e.showAction,ce=le===void 0?[]:le,pe=e.onFocus,me=e.onBlur,re=e.onKeyUp,fe=e.onKeyDown,ve=e.onMouseDown,$e=Ut(e,BHe),Ce=Rj(v),be=(o!==void 0?o:Ce)||v==="combobox",Se=q({},$e);zHe.forEach(function(sn){delete Se[sn]}),c==null||c.forEach(function(sn){delete Se[sn]});var we=d.useState(!1),se=Te(we,2),ye=se[0],Oe=se[1];d.useEffect(function(){Oe(v8())},[]);var z=d.useRef(null),H=d.useRef(null),G=d.useRef(null),de=d.useRef(null),xe=d.useRef(null),he=d.useRef(!1),Ue=Yze(),We=Te(Ue,3),ge=We[0],ze=We[1],Ve=We[2];d.useImperativeHandle(t,function(){var sn,bn;return{focus:(sn=de.current)===null||sn===void 0?void 0:sn.focus,blur:(bn=de.current)===null||bn===void 0?void 0:bn.blur,scrollTo:function(Je){var ot;return(ot=xe.current)===null||ot===void 0?void 0:ot.scrollTo(Je)},nativeElement:z.current||H.current}});var Be=d.useMemo(function(){var sn;if(v!=="combobox")return P;var bn=(sn=u[0])===null||sn===void 0?void 0:sn.value;return typeof bn=="string"||typeof bn=="number"?String(bn):""},[P,v,u]),Xe=v==="combobox"&&typeof w=="function"&&w()||null,Ke=typeof _=="function"&&_(),qe=Su(H,Ke==null||(n=Ke.props)===null||n===void 0?void 0:n.ref),Et=d.useState(!1),dt=Te(Et,2),vt=dt[0],Ze=dt[1];nr(function(){Ze(!0)},[]);var nt=In(!1,{defaultValue:S,value:k}),jt=Te(nt,2),Lt=jt[0],Bt=jt[1],Ht=vt?Lt:!1,Ne=!m&&p;(y||Ne&&Ht&&v==="combobox")&&(Ht=!1);var He=Ne?!1:Ht,Le=d.useCallback(function(sn){var bn=sn!==void 0?sn:!Ht;y||(Bt(bn),Ht!==bn&&(C==null||C(bn)))},[y,Ht,Bt,C]),Qe=d.useMemo(function(){return(R||[]).some(function(sn){return[` + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},lze=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},cze=e=>{const{componentCls:t}=e,n=Ype(e);delete n.xs;const r=Object.keys(n).map(i=>({[`@media (min-width: ${Me(n[i])})`]:{width:`var(--${t.replace(".","")}-${i}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(lt(r))}}},Zpe=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Hn(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Qpe=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Me(e.paddingMD)} ${Me(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Me(e.padding)} ${Me(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Me(e.paddingXS)} ${Me(e.padding)}`:0,footerBorderTop:e.wireframe?`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Me(e.padding*2)} ${Me(e.padding*2)} ${Me(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Jpe=Jn("Modal",e=>{const t=Zpe(e);return[sze(t),lze(t),Xpe(t),_y(t,"zoom"),cze(t)]},Qpe,{unitless:{titleLineHeight:!0}});var uze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{Oj={x:e.pageX,y:e.pageY},setTimeout(()=>{Oj=null},100)};OBe()&&document.documentElement.addEventListener("click",dze,!0);const ehe=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:a}=d.useContext(Xt),o=ie=>{const{onCancel:Z}=e;Z==null||Z(ie)},s=ie=>{const{onOk:Z}=e;Z==null||Z(ie)},{prefixCls:l,className:c,rootClassName:u,open:f,wrapClassName:p,centered:h,getContainer:m,focusTriggerAfterClose:g=!0,style:v,visible:y,width:w=520,footer:b,classNames:C,styles:k,children:S,loading:_}=e,E=uze(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),$=r("modal",l),M=r(),P=qr($),[R,O,j]=Jpe($,P),I=Ee(p,{[`${$}-centered`]:!!h,[`${$}-wrap-rtl`]:i==="rtl"}),A=b!==null&&!_?d.createElement(Gpe,Object.assign({},e,{onOk:s,onCancel:o})):null,[N,F,K]=uB(R0(e),R0(a),{closable:!0,closeIcon:d.createElement(Eu,{className:`${$}-close-icon`}),closeIconRender:ie=>Kpe($,ie)}),L=qpe(`.${$}-content`),[V,B]=$c("Modal",E.zIndex),[U,Y]=d.useMemo(()=>w&&typeof w=="object"?[void 0,w]:[w,void 0],[w]),ee=d.useMemo(()=>{const ie={};return Y&&Object.keys(Y).forEach(Z=>{const X=Y[Z];X!==void 0&&(ie[`--${$}-${Z}-width`]=typeof X=="number"?`${X}px`:X)}),ie},[Y]);return R(d.createElement(bu,{form:!0,space:!0},d.createElement(v4.Provider,{value:B},d.createElement(aB,Object.assign({width:U},E,{zIndex:V,getContainer:m===void 0?n:m,prefixCls:$,rootClassName:Ee(O,u,j,P),footer:A,visible:f??y,mousePosition:(t=E.mousePosition)!==null&&t!==void 0?t:Oj,onClose:o,closable:N&&{disabled:K,closeIcon:F},closeIcon:F,focusTriggerAfterClose:g,transitionName:oo(M,"zoom",e.transitionName),maskTransitionName:oo(M,"fade",e.maskTransitionName),className:Ee(O,c,a==null?void 0:a.className),style:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.style),v),ee),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),C),{wrapper:Ee(I,C==null?void 0:C.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),k),panelRef:L}),_?d.createElement(Kf,{active:!0,title:!1,paragraph:{rows:4},className:`${$}-body-skeleton`}):S))))},fze=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},vd()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${Me(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Me(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, + ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},pze=Sy(["Modal","confirm"],e=>{const t=Zpe(e);return[fze(t)]},Qpe,{order:-1e3});var hze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iw,lt(Object.values(w))),C=d.createElement(d.Fragment,null,d.createElement(HG,null),d.createElement(UG,null)),k=e.title!==void 0&&e.title!==null,S=`${a}-body`;return d.createElement("div",{className:`${a}-body-wrapper`},d.createElement("div",{className:Ee(S,{[`${S}-has-title`]:k})},f,d.createElement("div",{className:`${a}-paragraph`},k&&d.createElement("span",{className:`${a}-title`},e.title),d.createElement("div",{className:`${a}-content`},e.content))),l===void 0||typeof l=="function"?d.createElement(Ppe,{value:b},d.createElement("div",{className:`${a}-btns`},typeof l=="function"?l(C,{OkBtn:UG,CancelBtn:HG}):C)):l,d.createElement(pze,{prefixCls:t}))}const mze=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:a,wrapClassName:o,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:f}=e,p=`${a}-confirm`,h=e.width||416,m=e.style||{},g=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,y=Ee(p,`${p}-${e.type}`,{[`${p}-rtl`]:i==="rtl"},e.className),[,w]=ka(),b=d.useMemo(()=>n!==void 0?n:w.zIndexPopupBase+KL,[n,w]);return d.createElement(ehe,Object.assign({},e,{className:y,wrapClassName:Ee({[`${p}-centered`]:!!e.centered},o),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:"",footer:null,transitionName:oo(s||"","zoom",e.transitionName),maskTransitionName:oo(s||"","fade",e.maskTransitionName),mask:g,maskClosable:v,style:m,styles:Object.assign({body:l,mask:r},f),width:h,zIndex:b,closable:c}),d.createElement(the,Object.assign({},e,{confirmPrefixCls:p})))},nhe=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return d.createElement(zn,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},d.createElement(mze,Object.assign({},e)))},_m=[];let rhe="";function ihe(){return rhe}const gze=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:a}=e,o=vfe(),s=d.useContext(Xt),l=ihe()||s.getPrefixCls(),c=r||`${l}-modal`;let u=i;return u===!1&&(u=void 0),te.createElement(nhe,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:o,getContainer:u}))};function k4(e){const t=Zfe(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),i,a;function o(){for(var u,f=arguments.length,p=new Array(f),h=0;hv==null?void 0:v.triggerCancel)){var g;(u=e.onCancel)===null||u===void 0||(g=u).call.apply(g,[e,()=>{}].concat(lt(p.slice(1))))}for(let v=0;v<_m.length;v++)if(_m[v]===l){_m.splice(v,1);break}a()}function s(u){clearTimeout(i),i=setTimeout(()=>{const f=t.getPrefixCls(void 0,ihe()),p=t.getIconPrefixCls(),h=t.getTheme(),m=te.createElement(gze,Object.assign({},u));a=YL()(te.createElement(zn,{prefixCls:f,iconPrefixCls:p,theme:h},t.holderRender?t.holderRender(m):m),n)})}function l(){for(var u=arguments.length,f=new Array(u),p=0;p{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,f)}}),r.visible&&delete r.visible,s(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),s(r)}return s(r),_m.push(l),{destroy:l,update:c}}function ahe(e){return Object.assign(Object.assign({},e),{type:"warning"})}function ohe(e){return Object.assign(Object.assign({},e),{type:"info"})}function she(e){return Object.assign(Object.assign({},e),{type:"success"})}function lhe(e){return Object.assign(Object.assign({},e),{type:"error"})}function che(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function vze(e){let{rootPrefixCls:t}=e;rhe=t}var yze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,{afterClose:r,config:i}=e,a=yze(e,["afterClose","config"]);const[o,s]=d.useState(!0),[l,c]=d.useState(i),{direction:u,getPrefixCls:f}=d.useContext(Xt),p=f("modal"),h=f(),m=()=>{var w;r(),(w=l.afterClose)===null||w===void 0||w.call(l)},g=function(){var w;s(!1);for(var b=arguments.length,C=new Array(b),k=0;kE==null?void 0:E.triggerCancel)){var _;(w=l.onCancel)===null||w===void 0||(_=w).call.apply(_,[l,()=>{}].concat(lt(C.slice(1))))}};d.useImperativeHandle(t,()=>({destroy:g,update:w=>{c(b=>Object.assign(Object.assign({},b),w))}}));const v=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[y]=Ga("Modal",Us.Modal);return d.createElement(nhe,Object.assign({prefixCls:p,rootPrefixCls:h},l,{close:g,open:o,afterClose:m,okText:l.okText||(v?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:l.direction||u,cancelText:l.cancelText||(y==null?void 0:y.cancelText)},a))},wze=d.forwardRef(bze);let mY=0;const xze=d.memo(d.forwardRef((e,t)=>{const[n,r]=dDe();return d.useImperativeHandle(t,()=>({patchElement:r}),[]),d.createElement(d.Fragment,null,n)}));function uhe(){const e=d.useRef(null),[t,n]=d.useState([]);d.useEffect(()=>{t.length&&(lt(t).forEach(o=>{o()}),n([]))},[t]);const r=d.useCallback(a=>function(s){var l;mY+=1;const c=d.createRef();let u;const f=new Promise(v=>{u=v});let p=!1,h;const m=d.createElement(wze,{key:`modal-${mY}`,config:a(s),ref:c,afterClose:()=>{h==null||h()},isSilent:()=>p,onConfirm:v=>{u(v)}});return h=(l=e.current)===null||l===void 0?void 0:l.patchElement(m),h&&_m.push(h),{destroy:()=>{function v(){var y;(y=c.current)===null||y===void 0||y.destroy()}c.current?v():n(y=>[].concat(lt(y),[v]))},update:v=>{function y(){var w;(w=c.current)===null||w===void 0||w.update(v)}c.current?y():n(w=>[].concat(lt(w),[y]))},then:v=>(p=!0,f.then(v))}},[]);return[d.useMemo(()=>({info:r(ohe),success:r(she),error:r(lhe),warning:r(ahe),confirm:r(che)}),[]),d.createElement(xze,{key:"modal-holder",ref:e})]}const Sze=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,a=new ir("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),o=new ir("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new ir("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new ir("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},Cze=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],_ze={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},kze=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[_ze[t]]:{value:0,_skip_check_:!0}}}}},Eze=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},$ze=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},Eze(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},$ze(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},Cze.map(n=>kze(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},Tze=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:o,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:p,notificationPadding:h,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:v,fontSize:y,lineHeight:w,width:b,notificationIconSize:C,colorText:k}=e,S=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:p,borderRadius:o,boxShadow:r,[S]:{padding:h,width:b,maxWidth:`calc(100vw - ${Me(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:w,wordWrap:"break-word"},[`${S}-message`]:{marginBottom:e.marginXS,color:f,fontSize:i,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:y,color:k},[`${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:i},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:y},[`${S}-icon`]:{position:"absolute",fontSize:C,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${S}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Vs(e)),[`${S}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${Me(o)} * 2)`,left:{_skip_check_:!0,value:o},right:{_skip_check_:!0,value:o},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:o,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:o,background:g}},[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},Pze=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:a}=e,o=`${t}-notice`,s=new ir("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},ar(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:i,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${o}-btn`]:{float:"left"}}})},{[t]:{[`${o}-wrapper`]:Object.assign({},Tze(e))}}]},Oze=e=>({zIndexPopup:e.zIndexPopupBase+KL+50,width:384}),Rze=e=>{const t=e.paddingMD,n=e.paddingLG;return Hn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Me(e.paddingMD)} ${Me(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Ize=Jn("Notification",e=>{const t=Rze(e);return[Pze(t),Sze(t),Mze(t)]},Oze);function dhe(e,t){return t===null||t===!1?null:t||d.createElement(Eu,{className:`${e}-close-icon`})}const jze={success:Wg,info:QE,error:Pd,warning:qf},Nze=e=>{const{prefixCls:t,icon:n,type:r,message:i,description:a,btn:o,role:s="alert"}=e;let l=null;return n?l=d.createElement("span",{className:`${t}-icon`},n):r&&(l=d.createElement(jze[r]||null,{className:Ee(`${t}-icon`,`${t}-icon-${r}`)})),d.createElement("div",{className:Ee({[`${t}-with-icon`]:l}),role:s},l,d.createElement("div",{className:`${t}-message`},i),d.createElement("div",{className:`${t}-description`},a),o&&d.createElement("div",{className:`${t}-btn`},o))};function Aze(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function Dze(e){return{motionName:`${e}-fade`}}var Fze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{children:t,prefixCls:n}=e;const r=qr(n),[i,a,o]=Ize(n,r);return i(te.createElement(spe,{classNames:{list:Ee(a,o,r)}},t))},Hze=(e,t)=>{let{prefixCls:n,key:r}=t;return te.createElement(zze,{prefixCls:n,key:r},e)},Uze=te.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:o,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:f=!0,showProgress:p}=e,{getPrefixCls:h,getPopupContainer:m,notification:g,direction:v}=d.useContext(Xt),[,y]=ka(),w=i||h("notification"),b=E=>Aze(E,n??gY,r??gY),C=()=>Ee({[`${w}-rtl`]:s??v==="rtl"}),k=()=>Dze(w),[S,_]=lpe({prefixCls:w,style:b,className:C,motion:k,closable:!0,closeIcon:dhe(w),duration:u??Lze,getContainer:()=>(a==null?void 0:a())||(m==null?void 0:m())||document.body,maxCount:o,pauseOnHover:f,showProgress:p,onAllRemoved:l,renderNotifications:Hze,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:y.margin}});return te.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:w,notification:g})),_});function Wze(e){const t=te.useRef(null);return Ug(),[te.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:f}=t.current,p=`${u}-notice`,{message:h,description:m,icon:g,type:v,btn:y,className:w,style:b,role:C="alert",closeIcon:k,closable:S}=s,_=Fze(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),E=dhe(p,typeof k<"u"?k:f==null?void 0:f.closeIcon);return c(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:Bze},_),{content:te.createElement(Nze,{prefixCls:p,icon:g,type:v,message:h,description:m,btn:y,role:C}),className:Ee(v&&`${p}-${v}`,w,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),closeIcon:E,closable:S??!!E}))},a={open:r,destroy:s=>{var l,c;s!==void 0?(l=t.current)===null||l===void 0||l.close(s):(c=t.current)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(s=>{a[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),a},[]),te.createElement(Uze,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Vze(e){return Wze(e)}const Rj=te.createContext({}),fhe=te.createContext({message:{},notification:{},modal:{}}),qze=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:a,[`&${t}-rtl`]:{direction:"rtl"}}}},Kze=()=>({}),Gze=Jn("App",qze,Kze),Yze=()=>te.useContext(fhe),v8=e=>{const{prefixCls:t,children:n,className:r,rootClassName:i,message:a,notification:o,style:s,component:l="div"}=e,{direction:c,getPrefixCls:u}=d.useContext(Xt),f=u("app",t),[p,h,m]=Gze(f),g=Ee(h,f,r,i,m,{[`${f}-rtl`]:c==="rtl"}),v=d.useContext(Rj),y=te.useMemo(()=>({message:Object.assign(Object.assign({},v.message),a),notification:Object.assign(Object.assign({},v.notification),o)}),[a,o,v.message,v.notification]),[w,b]=ppe(y.message),[C,k]=Vze(y.notification),[S,_]=uhe(),E=te.useMemo(()=>({message:w,notification:C,modal:S}),[w,C,S]);Ug()(!(m&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const $=l===!1?te.Fragment:l,M={className:g,style:s};return p(te.createElement(fhe.Provider,{value:E},te.createElement(Rj.Provider,{value:y},te.createElement($,Object.assign({},l===!1?void 0:M),_,b,k,n))))};v8.useApp=Yze;function phe(e){return t=>d.createElement(zn,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const Gf=(e,t,n,r,i)=>phe(o=>{const{prefixCls:s,style:l}=o,c=d.useRef(null),[u,f]=d.useState(0),[p,h]=d.useState(0),[m,g]=jn(!1,{value:o.open}),{getPrefixCls:v}=d.useContext(Xt),y=v(r||"select",s);d.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const C=new ResizeObserver(S=>{const _=S[0].target;f(_.offsetHeight+8),h(_.offsetWidth)}),k=setInterval(()=>{var S;const _=i?`.${i(y)}`:`.${y}-dropdown`,E=(S=c.current)===null||S===void 0?void 0:S.querySelector(_);E&&(clearInterval(k),C.observe(E))},10);return()=>{clearInterval(k),C.disconnect()}}},[]);let w=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},l),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});n&&(w=n(w)),t&&Object.assign(w,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:u,position:"relative",minWidth:p};return d.createElement("div",{ref:c,style:b},d.createElement(e,Object.assign({},w)))}),y8=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var b8=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,a=t.children,o=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(i):r;return d.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),o==null||o(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:d.createElement("span",{className:Ee(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},a))},Xze=function(t,n,r,i,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=te.useMemo(function(){if(Kt(i)==="object")return i.clearIcon;if(a)return a},[i,a]),u=te.useMemo(function(){return!!(!o&&i&&(r.length||s)&&!(l==="combobox"&&s===""))},[i,o,r.length,s,l]);return{allowClear:u,clearIcon:te.createElement(b8,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},hhe=d.createContext(null);function dB(){return d.useContext(hhe)}function Zze(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=Te(t,2),r=n[0],i=n[1],a=d.useRef(null),o=function(){window.clearTimeout(a.current)};d.useEffect(function(){return o},[]);var s=function(c,u){o(),a.current=window.setTimeout(function(){i(c),u&&u()},e)};return[r,s,o]}function mhe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Qze(e,t,n,r){var i=d.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function a(o){var s;if(!((s=i.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),i.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function Jze(e){return e&&![mt.ESC,mt.SHIFT,mt.BACKSPACE,mt.TAB,mt.WIN_KEY,mt.ALT,mt.META,mt.WIN_KEY_RIGHT,mt.CTRL,mt.SEMICOLON,mt.EQUALS,mt.CAPS_LOCK,mt.CONTEXT_MENU,mt.F1,mt.F2,mt.F3,mt.F4,mt.F5,mt.F6,mt.F7,mt.F8,mt.F9,mt.F10,mt.F11,mt.F12].includes(e)}var eHe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],P1=void 0;function tHe(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,p=e.children,h=e.display,m=e.order,g=e.component,v=g===void 0?"div":g,y=Ht(e,eHe),w=o&&!h;function b(E){l(c,E)}d.useEffect(function(){return function(){b(null)}},[]);var C=a&&i!==P1?a(i):p,k;r||(k={opacity:w?0:1,height:w?0:P1,overflowY:w?"hidden":P1,order:o?m:P1,pointerEvents:w?"none":P1,position:w?"absolute":P1});var S={};w&&(S["aria-hidden"]=!0);var _=d.createElement(v,tt({className:Ee(!r&&n,u),style:q(q({},k),f)},S,y,{ref:t}),C);return o&&(_=d.createElement(Go,{onResize:function($){var M=$.offsetWidth;b(M)},disabled:s},_)),_}var Z2=d.forwardRef(tHe);Z2.displayName="Item";function nHe(e){if(typeof MessageChannel>"u")rr(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function rHe(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],nHe(function(){Va.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function Ib(e,t){var n=d.useState(t),r=Te(n,2),i=r[0],a=r[1],o=Vn(function(s){e(function(){a(s)})});return[i,o]}var m6=te.createContext(null),iHe=["component"],aHe=["className"],oHe=["className"],sHe=function(t,n){var r=d.useContext(m6);if(!r){var i=t.component,a=i===void 0?"div":i,o=Ht(t,iHe);return d.createElement(a,tt({},o,{ref:n}))}var s=r.className,l=Ht(r,aHe),c=t.className,u=Ht(t,oHe);return d.createElement(m6.Provider,{value:null},d.createElement(Z2,tt({ref:n,className:Ee(s,c)},l,u)))},ghe=d.forwardRef(sHe);ghe.displayName="RawItem";var lHe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],vhe="responsive",yhe="invalidate";function cHe(e){return"+ ".concat(e.length," ...")}function uHe(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,a=i===void 0?[]:i,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,p=e.style,h=e.className,m=e.maxCount,g=e.renderRest,v=e.renderRawRest,y=e.suffix,w=e.component,b=w===void 0?"div":w,C=e.itemComponent,k=e.onVisibleChange,S=Ht(e,lHe),_=f==="full",E=rHe(),$=Ib(E,null),M=Te($,2),P=M[0],R=M[1],O=P||0,j=Ib(E,new Map),I=Te(j,2),A=I[0],N=I[1],F=Ib(E,0),K=Te(F,2),L=K[0],V=K[1],B=Ib(E,0),U=Te(B,2),Y=U[0],ee=U[1],ie=Ib(E,0),Z=Te(ie,2),X=Z[0],ae=Z[1],oe=d.useState(null),le=Te(oe,2),ce=le[0],pe=le[1],me=d.useState(null),re=Te(me,2),fe=re[0],ve=re[1],$e=d.useMemo(function(){return fe===null&&_?Number.MAX_SAFE_INTEGER:fe||0},[fe,P]),Ce=d.useState(!1),be=Te(Ce,2),Se=be[0],we=be[1],se="".concat(r,"-item"),ye=Math.max(L,Y),Oe=m===vhe,z=a.length&&Oe,H=m===yhe,G=z||typeof m=="number"&&a.length>m,de=d.useMemo(function(){var Lt=a;return z?P===null&&_?Lt=a:Lt=a.slice(0,Math.min(a.length,O/u)):typeof m=="number"&&(Lt=a.slice(0,m)),Lt},[a,u,P,m,z]),xe=d.useMemo(function(){return z?a.slice($e+1):a.slice(de.length)},[a,de,z,$e]),he=d.useCallback(function(Lt,Bt){var Ut;return typeof l=="function"?l(Lt):(Ut=l&&(Lt==null?void 0:Lt[l]))!==null&&Ut!==void 0?Ut:Bt},[l]),Ue=d.useCallback(o||function(Lt){return Lt},[o]);function We(Lt,Bt,Ut){fe===Lt&&(Bt===void 0||Bt===ce)||(ve(Lt),Ut||(we(LtO){We(Ne-1,Lt-He-X+Y);break}}y&&Xe(0)+X>O&&pe(null)}},[O,A,Y,X,he,de]);var Ke=Se&&!!xe.length,qe={};ce!==null&&z&&(qe={position:"absolute",left:ce,top:0});var Et={prefixCls:se,responsive:z,component:C,invalidate:H},ut=s?function(Lt,Bt){var Ut=he(Lt,Bt);return d.createElement(m6.Provider,{key:Ut,value:q(q({},Et),{},{order:Bt,item:Lt,itemKey:Ut,registerSize:ze,display:Bt<=$e})},s(Lt,Bt))}:function(Lt,Bt){var Ut=he(Lt,Bt);return d.createElement(Z2,tt({},Et,{order:Bt,key:Ut,item:Lt,renderItem:Ue,itemKey:Ut,registerSize:ze,display:Bt<=$e}))},gt,Ze={order:Ke?$e:Number.MAX_SAFE_INTEGER,className:"".concat(se,"-rest"),registerSize:Ve,display:Ke};if(v)v&&(gt=d.createElement(m6.Provider,{value:q(q({},Et),Ze)},v(xe)));else{var nt=g||cHe;gt=d.createElement(Z2,tt({},Et,Ze),typeof nt=="function"?nt(xe):nt)}var jt=d.createElement(b,tt({className:Ee(!H&&r,h),style:p,ref:t},S),de.map(ut),G?gt:null,y&&d.createElement(Z2,tt({},Et,{responsive:Oe,responsiveDisabled:!z,order:$e,className:"".concat(se,"-suffix"),registerSize:Be,display:!0,style:qe}),y));return Oe&&(jt=d.createElement(Go,{onResize:ge,disabled:!z},jt)),jt}var lu=d.forwardRef(uHe);lu.displayName="Overflow";lu.Item=ghe;lu.RESPONSIVE=vhe;lu.INVALIDATE=yhe;var dHe=function(t,n){var r,i=t.prefixCls,a=t.id,o=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,f=t.editable,p=t.activeDescendantId,h=t.value,m=t.maxLength,g=t.onKeyDown,v=t.onMouseDown,y=t.onChange,w=t.onPaste,b=t.onCompositionStart,C=t.onCompositionEnd,k=t.onBlur,S=t.open,_=t.attrs,E=o||d.createElement("input",null),$=E,M=$.ref,P=$.props,R=P.onKeyDown,O=P.onChange,j=P.onMouseDown,I=P.onCompositionStart,A=P.onCompositionEnd,N=P.onBlur,F=P.style;return"maxLength"in E.props,E=d.cloneElement(E,q(q(q({type:"search"},P),{},{id:a,ref:ga(n,M),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:Ee("".concat(i,"-selection-search-input"),(r=E)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":S?p:void 0},_),{},{value:f?h:"",maxLength:m,readOnly:!f,unselectable:f?null:"on",style:q(q({},F),{},{opacity:f?null:0}),onKeyDown:function(L){g(L),R&&R(L)},onMouseDown:function(L){v(L),j&&j(L)},onChange:function(L){y(L),O&&O(L)},onCompositionStart:function(L){b(L),I&&I(L)},onCompositionEnd:function(L){C(L),A&&A(L)},onPaste:w,onBlur:function(L){k(L),N&&N(L)}})),E},bhe=d.forwardRef(dHe);function whe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var fHe=typeof window<"u"&&window.document&&window.document.documentElement,pHe=fHe;function hHe(e){return e!=null}function mHe(e){return!e&&e!==0}function vY(e){return["string","number"].includes(Kt(e))}function xhe(e){var t=void 0;return e&&(vY(e.title)?t=e.title.toString():vY(e.label)&&(t=e.label.toString())),t}function gHe(e,t){pHe?d.useLayoutEffect(e,t):d.useEffect(e,t)}function vHe(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var yY=function(t){t.preventDefault(),t.stopPropagation()},yHe=function(t){var n=t.id,r=t.prefixCls,i=t.values,a=t.open,o=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,f=t.mode,p=t.showSearch,h=t.autoFocus,m=t.autoComplete,g=t.activeDescendantId,v=t.tabIndex,y=t.removeIcon,w=t.maxTagCount,b=t.maxTagTextLength,C=t.maxTagPlaceholder,k=C===void 0?function(me){return"+ ".concat(me.length," ...")}:C,S=t.tagRender,_=t.onToggleOpen,E=t.onRemove,$=t.onInputChange,M=t.onInputPaste,P=t.onInputKeyDown,R=t.onInputMouseDown,O=t.onInputCompositionStart,j=t.onInputCompositionEnd,I=t.onInputBlur,A=d.useRef(null),N=d.useState(0),F=Te(N,2),K=F[0],L=F[1],V=d.useState(!1),B=Te(V,2),U=B[0],Y=B[1],ee="".concat(r,"-selection"),ie=a||f==="multiple"&&s===!1||f==="tags"?o:"",Z=f==="tags"||f==="multiple"&&s===!1||p&&(a||U);gHe(function(){L(A.current.scrollWidth)},[ie]);var X=function(re,fe,ve,$e,Ce){return d.createElement("span",{title:xhe(re),className:Ee("".concat(ee,"-item"),ne({},"".concat(ee,"-item-disabled"),ve))},d.createElement("span",{className:"".concat(ee,"-item-content")},fe),$e&&d.createElement(b8,{className:"".concat(ee,"-item-remove"),onMouseDown:yY,onClick:Ce,customizeIcon:y},"×"))},ae=function(re,fe,ve,$e,Ce,be){var Se=function(se){yY(se),_(!a)};return d.createElement("span",{onMouseDown:Se},S({label:fe,value:re,disabled:ve,closable:$e,onClose:Ce,isMaxTag:!!be}))},oe=function(re){var fe=re.disabled,ve=re.label,$e=re.value,Ce=!u&&!fe,be=ve;if(typeof b=="number"&&(typeof ve=="string"||typeof ve=="number")){var Se=String(be);Se.length>b&&(be="".concat(Se.slice(0,b),"..."))}var we=function(ye){ye&&ye.stopPropagation(),E(re)};return typeof S=="function"?ae($e,be,fe,Ce,we):X(re,be,fe,Ce,we)},le=function(re){if(!i.length)return null;var fe=typeof k=="function"?k(re):k;return typeof S=="function"?ae(void 0,fe,!1,!1,void 0,!0):X({title:fe},fe,!1)},ce=d.createElement("div",{className:"".concat(ee,"-search"),style:{width:K},onFocus:function(){Y(!0)},onBlur:function(){Y(!1)}},d.createElement(bhe,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:m,editable:Z,activeDescendantId:g,value:ie,onKeyDown:P,onMouseDown:R,onChange:$,onPaste:M,onCompositionStart:O,onCompositionEnd:j,onBlur:I,tabIndex:v,attrs:Fi(t,!0)}),d.createElement("span",{ref:A,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},ie," ")),pe=d.createElement(lu,{prefixCls:"".concat(ee,"-overflow"),data:i,renderItem:oe,renderRest:le,suffix:ce,itemKey:vHe,maxCount:w});return d.createElement("span",{className:"".concat(ee,"-wrap")},pe,!i.length&&!ie&&d.createElement("span",{className:"".concat(ee,"-placeholder")},c))},bHe=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,a=t.inputRef,o=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,p=t.values,h=t.placeholder,m=t.tabIndex,g=t.showSearch,v=t.searchValue,y=t.activeValue,w=t.maxLength,b=t.onInputKeyDown,C=t.onInputMouseDown,k=t.onInputChange,S=t.onInputPaste,_=t.onInputCompositionStart,E=t.onInputCompositionEnd,$=t.onInputBlur,M=t.title,P=d.useState(!1),R=Te(P,2),O=R[0],j=R[1],I=u==="combobox",A=I||g,N=p[0],F=v||"";I&&y&&!O&&(F=y),d.useEffect(function(){I&&j(!1)},[I,y]);var K=u!=="combobox"&&!f&&!g?!1:!!F,L=M===void 0?xhe(N):M,V=d.useMemo(function(){return N?null:d.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:K?{visibility:"hidden"}:void 0},h)},[N,K,h,r]);return d.createElement("span",{className:"".concat(r,"-selection-wrap")},d.createElement("span",{className:"".concat(r,"-selection-search")},d.createElement(bhe,{ref:a,prefixCls:r,id:i,open:f,inputElement:n,disabled:o,autoFocus:s,autoComplete:l,editable:A,activeDescendantId:c,value:F,onKeyDown:b,onMouseDown:C,onChange:function(U){j(!0),k(U)},onPaste:S,onCompositionStart:_,onCompositionEnd:E,onBlur:$,tabIndex:m,attrs:Fi(t,!0),maxLength:I?w:void 0})),!I&&N?d.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:K?{visibility:"hidden"}:void 0},N.label):null,V)},wHe=function(t,n){var r=d.useRef(null),i=d.useRef(!1),a=t.prefixCls,o=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,p=t.autoClearSearchValue,h=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,y=t.onInputBlur,w=t.domRef;d.useImperativeHandle(n,function(){return{focus:function(L){r.current.focus(L)},blur:function(){r.current.blur()}}});var b=mhe(0),C=Te(b,2),k=C[0],S=C[1],_=function(L){var V=L.which,B=r.current instanceof HTMLTextAreaElement;!B&&o&&(V===mt.UP||V===mt.DOWN)&&L.preventDefault(),v&&v(L),V===mt.ENTER&&s==="tags"&&!i.current&&!o&&(m==null||m(L.target.value)),!(B&&!o&&~[mt.UP,mt.DOWN,mt.LEFT,mt.RIGHT].indexOf(V))&&Jze(V)&&g(!0)},E=function(){S(!0)},$=d.useRef(null),M=function(L){h(L,!0,i.current)!==!1&&g(!0)},P=function(){i.current=!0},R=function(L){i.current=!1,s!=="combobox"&&M(L.target.value)},O=function(L){var V=L.target.value;if(c&&$.current&&/[\r\n]/.test($.current)){var B=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");V=V.replace(B,$.current)}$.current=null,M(V)},j=function(L){var V=L.clipboardData,B=V==null?void 0:V.getData("text");$.current=B||""},I=function(L){var V=L.target;if(V!==r.current){var B=document.body.style.msTouchAction!==void 0;B?setTimeout(function(){r.current.focus()}):r.current.focus()}},A=function(L){var V=k();L.target!==r.current&&!V&&!(s==="combobox"&&u)&&L.preventDefault(),(s!=="combobox"&&(!l||!V)||!o)&&(o&&p!==!1&&h("",!0,!1),g())},N={inputRef:r,onInputKeyDown:_,onInputMouseDown:E,onInputChange:O,onInputPaste:j,onInputCompositionStart:P,onInputCompositionEnd:R,onInputBlur:y},F=s==="multiple"||s==="tags"?d.createElement(yHe,tt({},t,N)):d.createElement(bHe,tt({},t,N));return d.createElement("div",{ref:w,className:"".concat(a,"-selector"),onClick:I,onMouseDown:A},f&&d.createElement("div",{className:"".concat(a,"-prefix")},f),F)},xHe=d.forwardRef(wHe);function SHe(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},o=a.className,s=a.content,l=i.x,c=l===void 0?0:l,u=i.y,f=u===void 0?0:u,p=d.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var m=n.points[0],g=n.points[1],v=m[0],y=m[1],w=g[0],b=g[1];v===w||!["t","b"].includes(v)?h.top=f:v==="t"?h.top=0:h.bottom=0,y===b||!["l","r"].includes(y)?h.left=c:y==="l"?h.left=0:h.right=0}return d.createElement("div",{ref:p,className:Ee("".concat(t,"-arrow"),o),style:h},s)}function CHe(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?d.createElement(Ca,tt({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var s=o.className;return d.createElement("div",{style:{zIndex:r},className:Ee("".concat(t,"-mask"),s)})}):null}var _He=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),kHe=d.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,o=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,p=e.mask,h=e.arrow,m=e.arrowPos,g=e.align,v=e.motion,y=e.maskMotion,w=e.forceRender,b=e.getPopupContainer,C=e.autoDestroy,k=e.portal,S=e.zIndex,_=e.onMouseEnter,E=e.onMouseLeave,$=e.onPointerEnter,M=e.onPointerDownCapture,P=e.ready,R=e.offsetX,O=e.offsetY,j=e.offsetR,I=e.offsetB,A=e.onAlign,N=e.onPrepare,F=e.stretch,K=e.targetWidth,L=e.targetHeight,V=typeof n=="function"?n():n,B=l||c,U=(b==null?void 0:b.length)>0,Y=d.useState(!b||!U),ee=Te(Y,2),ie=ee[0],Z=ee[1];if(nr(function(){!ie&&U&&o&&Z(!0)},[ie,U,o]),!ie)return null;var X="auto",ae={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(P||!l){var oe,le=g.points,ce=g.dynamicInset||((oe=g._experimental)===null||oe===void 0?void 0:oe.dynamicInset),pe=ce&&le[0][1]==="r",me=ce&&le[0][0]==="b";pe?(ae.right=j,ae.left=X):(ae.left=R,ae.right=X),me?(ae.bottom=I,ae.top=X):(ae.top=O,ae.bottom=X)}var re={};return F&&(F.includes("height")&&L?re.height=L:F.includes("minHeight")&&L&&(re.minHeight=L),F.includes("width")&&K?re.width=K:F.includes("minWidth")&&K&&(re.minWidth=K)),l||(re.pointerEvents="none"),d.createElement(k,{open:w||B,getContainer:b&&function(){return b(o)},autoDestroy:C},d.createElement(CHe,{prefixCls:i,open:l,zIndex:S,mask:p,motion:y}),d.createElement(Go,{onResize:A,disabled:!l},function(fe){return d.createElement(Ca,tt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function($e){var Ce;v==null||(Ce=v.onVisibleChanged)===null||Ce===void 0||Ce.call(v,$e),s($e)}}),function(ve,$e){var Ce=ve.className,be=ve.style,Se=Ee(i,Ce,r);return d.createElement("div",{ref:ga(fe,t,$e),className:Se,style:q(q(q(q({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},ae),re),be),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:_,onMouseLeave:E,onPointerEnter:$,onClick:f,onPointerDownCapture:M},h&&d.createElement(SHe,{prefixCls:i,arrow:h,arrowPos:m,align:g}),d.createElement(_He,{cache:!l&&!u},V))})}))}),EHe=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Vf(n),a=d.useCallback(function(s){_L(t,r?r(s):s)},[r]),o=ku(a,bh(n));return i?d.cloneElement(n,{ref:o}):n}),bY=d.createContext(null);function wY(e){return e?Array.isArray(e)?e:[e]:[]}function $He(e,t,n,r){return d.useMemo(function(){var i=wY(n??t),a=wY(r??t),o=new Set(i),s=new Set(a);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[e,t,n,r])}function MHe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function THe(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function jb(e){return i3(parseFloat(e),0)}function SY(e,t){var n=q({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=E4(r).getComputedStyle(r),a=i.overflow,o=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,h=r.clientHeight,m=r.offsetWidth,g=r.clientWidth,v=jb(s),y=jb(l),w=jb(c),b=jb(u),C=i3(Math.round(f.width/m*1e3)/1e3),k=i3(Math.round(f.height/p*1e3)/1e3),S=(m-g-w-b)*C,_=(p-h-v-y)*k,E=v*k,$=y*k,M=w*C,P=b*C,R=0,O=0;if(a==="clip"){var j=jb(o);R=j*C,O=j*k}var I=f.x+M-R,A=f.y+E-O,N=I+f.width+2*R-M-P-S,F=A+f.height+2*O-E-$-_;n.left=Math.max(n.left,I),n.top=Math.max(n.top,A),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,F)}}),n}function CY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function _Y(e,t){var n=t||[],r=Te(n,2),i=r[0],a=r[1];return[CY(e.width,i),CY(e.height,a)]}function kY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function O1(e,t){var n=t[0],r=t[1],i,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function op(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function PHe(e,t,n,r,i,a,o){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=Te(s,2),c=l[0],u=l[1],f=d.useRef(0),p=d.useMemo(function(){return t?Ij(t):[]},[t]),h=d.useRef({}),m=function(){h.current={}};e||m();var g=Vn(function(){if(t&&n&&e){let xr=function(Ad,yi){var uo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ye,Ru=Y.x+Ad,Iu=Y.y+yi,Nh=Ru+pe,In=Iu+ce,lr=Math.max(Ru,uo.left),zr=Math.max(Iu,uo.top),Oi=Math.min(Nh,uo.right),bi=Math.min(In,uo.bottom);return Math.max(0,(Oi-lr)*(bi-zr))},Ic=function(){qt=Y.y+Ut,vt=qt+ce,At=Y.x+Bt,dt=At+pe};var tr=xr,wr=Ic,w,b,C,k,S=t,_=S.ownerDocument,E=E4(S),$=E.getComputedStyle(S),M=$.width,P=$.height,R=$.position,O=S.style.left,j=S.style.top,I=S.style.right,A=S.style.bottom,N=S.style.overflow,F=q(q({},i[r]),a),K=_.createElement("div");(w=S.parentElement)===null||w===void 0||w.appendChild(K),K.style.left="".concat(S.offsetLeft,"px"),K.style.top="".concat(S.offsetTop,"px"),K.style.position=R,K.style.height="".concat(S.offsetHeight,"px"),K.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var L;if(Array.isArray(n))L={x:n[0],y:n[1],width:0,height:0};else{var V,B,U=n.getBoundingClientRect();U.x=(V=U.x)!==null&&V!==void 0?V:U.left,U.y=(B=U.y)!==null&&B!==void 0?B:U.top,L={x:U.x,y:U.y,width:U.width,height:U.height}}var Y=S.getBoundingClientRect();Y.x=(b=Y.x)!==null&&b!==void 0?b:Y.left,Y.y=(C=Y.y)!==null&&C!==void 0?C:Y.top;var ee=_.documentElement,ie=ee.clientWidth,Z=ee.clientHeight,X=ee.scrollWidth,ae=ee.scrollHeight,oe=ee.scrollTop,le=ee.scrollLeft,ce=Y.height,pe=Y.width,me=L.height,re=L.width,fe={left:0,top:0,right:ie,bottom:Z},ve={left:-le,top:-oe,right:X-le,bottom:ae-oe},$e=F.htmlRegion,Ce="visible",be="visibleFirst";$e!=="scroll"&&$e!==be&&($e=Ce);var Se=$e===be,we=SY(ve,p),se=SY(fe,p),ye=$e===Ce?se:we,Oe=Se?se:ye;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var z=S.getBoundingClientRect();S.style.left=O,S.style.top=j,S.style.right=I,S.style.bottom=A,S.style.overflow=N,(k=S.parentElement)===null||k===void 0||k.removeChild(K);var H=i3(Math.round(pe/parseFloat(M)*1e3)/1e3),G=i3(Math.round(ce/parseFloat(P)*1e3)/1e3);if(H===0||G===0||qw(n)&&!b4(n))return;var de=F.offset,xe=F.targetOffset,he=_Y(Y,de),Ue=Te(he,2),We=Ue[0],ge=Ue[1],ze=_Y(L,xe),Ve=Te(ze,2),Be=Ve[0],Xe=Ve[1];L.x-=Be,L.y-=Xe;var Ke=F.points||[],qe=Te(Ke,2),Et=qe[0],ut=qe[1],gt=kY(ut),Ze=kY(Et),nt=O1(L,gt),jt=O1(Y,Ze),Lt=q({},F),Bt=nt.x-jt.x+We,Ut=nt.y-jt.y+ge,Ne=xr(Bt,Ut),He=xr(Bt,Ut,se),Le=O1(L,["t","l"]),Qe=O1(Y,["t","l"]),pt=O1(L,["b","r"]),xt=O1(Y,["b","r"]),Nt=F.overflow||{},Ot=Nt.adjustX,Pt=Nt.adjustY,st=Nt.shiftX,Ct=Nt.shiftY,kt=function(yi){return typeof yi=="boolean"?yi:yi>=0},qt,vt,At,dt;Ic();var De=kt(Pt),Ye=Ze[0]===gt[0];if(De&&Ze[0]==="t"&&(vt>Oe.bottom||h.current.bt)){var ot=Ut;Ye?ot-=ce-me:ot=Le.y-xt.y-ge;var Re=xr(Bt,ot),It=xr(Bt,ot,se);Re>Ne||Re===Ne&&(!Se||It>=He)?(h.current.bt=!0,Ut=ot,ge=-ge,Lt.points=[op(Ze,0),op(gt,0)]):h.current.bt=!1}if(De&&Ze[0]==="b"&&(qtNe||$t===Ne&&(!Se||Mt>=He)?(h.current.tb=!0,Ut=rt,ge=-ge,Lt.points=[op(Ze,0),op(gt,0)]):h.current.tb=!1}var dn=kt(Ot),pn=Ze[1]===gt[1];if(dn&&Ze[1]==="l"&&(dt>Oe.right||h.current.rl)){var T=Bt;pn?T-=pe-re:T=Le.x-xt.x-We;var D=xr(T,Ut),J=xr(T,Ut,se);D>Ne||D===Ne&&(!Se||J>=He)?(h.current.rl=!0,Bt=T,We=-We,Lt.points=[op(Ze,1),op(gt,1)]):h.current.rl=!1}if(dn&&Ze[1]==="r"&&(AtNe||Ie===Ne&&(!Se||it>=He)?(h.current.lr=!0,Bt=ke,We=-We,Lt.points=[op(Ze,1),op(gt,1)]):h.current.lr=!1}Ic();var Ft=st===!0?0:st;typeof Ft=="number"&&(Atse.right&&(Bt-=dt-se.right-We,L.x>se.right-Ft&&(Bt+=L.x-se.right+Ft)));var rn=Ct===!0?0:Ct;typeof rn=="number"&&(qtse.bottom&&(Ut-=vt-se.bottom-ge,L.y>se.bottom-rn&&(Ut+=L.y-se.bottom+rn)));var On=Y.x+Bt,Er=On+pe,Mr=Y.y+Ut,mr=Mr+ce,pr=L.x,cn=pr+re,Sn=L.y,gr=Sn+me,on=Math.max(On,pr),Je=Math.min(Er,cn),bt=(on+Je)/2,sn=bt-On,Pn=Math.max(Mr,Sn),qn=Math.min(mr,gr),ln=(Pn+qn)/2,or=ln-Mr;o==null||o(t,Lt);var ri=z.right-Y.x-(Bt+Y.width),wn=z.bottom-Y.y-(Ut+Y.height);H===1&&(Bt=Math.round(Bt),ri=Math.round(ri)),G===1&&(Ut=Math.round(Ut),wn=Math.round(wn));var An={ready:!0,offsetX:Bt/H,offsetY:Ut/G,offsetR:ri/H,offsetB:wn/G,arrowX:sn/H,arrowY:or/G,scaleX:H,scaleY:G,align:Lt};u(An)}}),v=function(){f.current+=1;var b=f.current;Promise.resolve().then(function(){f.current===b&&g()})},y=function(){u(function(b){return q(q({},b),{},{ready:!1})})};return nr(y,[r]),nr(function(){e||y()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function OHe(e,t,n,r,i){nr(function(){if(e&&t&&n){let p=function(){r(),i()};var f=p,a=t,o=n,s=Ij(a),l=Ij(o),c=E4(o),u=new Set([c].concat(lt(s),lt(l)));return u.forEach(function(h){h.addEventListener("scroll",p,{passive:!0})}),c.addEventListener("resize",p,{passive:!0}),r(),function(){u.forEach(function(h){h.removeEventListener("scroll",p),c.removeEventListener("resize",p)})}}},[e,t,n])}function RHe(e,t,n,r,i,a,o,s){var l=d.useRef(e);l.current=e;var c=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!i||a)){var f=function(){c.current=!1},p=function(v){var y;l.current&&!o(((y=v.composedPath)===null||y===void 0||(y=y.call(v))===null||y===void 0?void 0:y[0])||v.target)&&!c.current&&s(!1)},h=E4(r);h.addEventListener("pointerdown",f,!0),h.addEventListener("mousedown",p,!0),h.addEventListener("contextmenu",p,!0);var m=p6(n);return m&&(m.addEventListener("mousedown",p,!0),m.addEventListener("contextmenu",p,!0)),function(){h.removeEventListener("pointerdown",f,!0),h.removeEventListener("mousedown",p,!0),h.removeEventListener("contextmenu",p,!0),m&&(m.removeEventListener("mousedown",p,!0),m.removeEventListener("contextmenu",p,!0))}}},[t,n,r,i,a]);function u(){c.current=!0}return u}var IHe=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function jHe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C4,t=d.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,h=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,y=v===void 0?.1:v,w=n.focusDelay,b=n.blurDelay,C=n.mask,k=n.maskClosable,S=k===void 0?!0:k,_=n.getPopupContainer,E=n.forceRender,$=n.autoDestroy,M=n.destroyPopupOnHide,P=n.popup,R=n.popupClassName,O=n.popupStyle,j=n.popupPlacement,I=n.builtinPlacements,A=I===void 0?{}:I,N=n.popupAlign,F=n.zIndex,K=n.stretch,L=n.getPopupClassNameFromAlign,V=n.fresh,B=n.alignPoint,U=n.onPopupClick,Y=n.onPopupAlign,ee=n.arrow,ie=n.popupMotion,Z=n.maskMotion,X=n.popupTransitionName,ae=n.popupAnimation,oe=n.maskTransitionName,le=n.maskAnimation,ce=n.className,pe=n.getTriggerDOMNode,me=Ht(n,IHe),re=$||M||!1,fe=d.useState(!1),ve=Te(fe,2),$e=ve[0],Ce=ve[1];nr(function(){Ce(y8())},[]);var be=d.useRef({}),Se=d.useContext(bY),we=d.useMemo(function(){return{registerSubPopup:function(lr,zr){be.current[lr]=zr,Se==null||Se.registerSubPopup(lr,zr)}}},[Se]),se=h8(),ye=d.useState(null),Oe=Te(ye,2),z=Oe[0],H=Oe[1],G=d.useRef(null),de=Vn(function(In){G.current=In,qw(In)&&z!==In&&H(In),Se==null||Se.registerSubPopup(se,In)}),xe=d.useState(null),he=Te(xe,2),Ue=he[0],We=he[1],ge=d.useRef(null),ze=Vn(function(In){qw(In)&&Ue!==In&&(We(In),ge.current=In)}),Ve=d.Children.only(o),Be=(Ve==null?void 0:Ve.props)||{},Xe={},Ke=Vn(function(In){var lr,zr,Oi=Ue;return(Oi==null?void 0:Oi.contains(In))||((lr=p6(Oi))===null||lr===void 0?void 0:lr.host)===In||In===Oi||(z==null?void 0:z.contains(In))||((zr=p6(z))===null||zr===void 0?void 0:zr.host)===In||In===z||Object.values(be.current).some(function(bi){return(bi==null?void 0:bi.contains(In))||In===bi})}),qe=xY(a,ie,ae,X),Et=xY(a,Z,le,oe),ut=d.useState(p||!1),gt=Te(ut,2),Ze=gt[0],nt=gt[1],jt=f??Ze,Lt=Vn(function(In){f===void 0&&nt(In)});nr(function(){nt(f||!1)},[f]);var Bt=d.useRef(jt);Bt.current=jt;var Ut=d.useRef([]);Ut.current=[];var Ne=Vn(function(In){var lr;Lt(In),((lr=Ut.current[Ut.current.length-1])!==null&&lr!==void 0?lr:jt)!==In&&(Ut.current.push(In),h==null||h(In))}),He=d.useRef(),Le=function(){clearTimeout(He.current)},Qe=function(lr){var zr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Le(),zr===0?Ne(lr):He.current=setTimeout(function(){Ne(lr)},zr*1e3)};d.useEffect(function(){return Le},[]);var pt=d.useState(!1),xt=Te(pt,2),Nt=xt[0],Ot=xt[1];nr(function(In){(!In||jt)&&Ot(!0)},[jt]);var Pt=d.useState(null),st=Te(Pt,2),Ct=st[0],kt=st[1],qt=d.useState(null),vt=Te(qt,2),At=vt[0],dt=vt[1],De=function(lr){dt([lr.clientX,lr.clientY])},Ye=PHe(jt,z,B&&At!==null?At:Ue,j,A,N,Y),ot=Te(Ye,11),Re=ot[0],It=ot[1],rt=ot[2],$t=ot[3],Mt=ot[4],dn=ot[5],pn=ot[6],T=ot[7],D=ot[8],J=ot[9],ke=ot[10],Ie=$He($e,l,c,u),it=Te(Ie,2),Ft=it[0],rn=it[1],On=Ft.has("click"),Er=rn.has("click")||rn.has("contextMenu"),Mr=Vn(function(){Nt||ke()}),mr=function(){Bt.current&&B&&Er&&Qe(!1)};OHe(jt,Ue,z,Mr,mr),nr(function(){Mr()},[At,j]),nr(function(){jt&&!(A!=null&&A[j])&&Mr()},[JSON.stringify(N)]);var pr=d.useMemo(function(){var In=THe(A,a,J,B);return Ee(In,L==null?void 0:L(J))},[J,L,A,a,B]);d.useImperativeHandle(r,function(){return{nativeElement:ge.current,popupElement:G.current,forceAlign:Mr}});var cn=d.useState(0),Sn=Te(cn,2),gr=Sn[0],on=Sn[1],Je=d.useState(0),bt=Te(Je,2),sn=bt[0],Pn=bt[1],qn=function(){if(K&&Ue){var lr=Ue.getBoundingClientRect();on(lr.width),Pn(lr.height)}},ln=function(){qn(),Mr()},or=function(lr){Ot(!1),ke(),m==null||m(lr)},ri=function(){return new Promise(function(lr){qn(),kt(function(){return lr})})};nr(function(){Ct&&(ke(),Ct(),kt(null))},[Ct]);function wn(In,lr,zr,Oi){Xe[In]=function(bi){var rp;Oi==null||Oi(bi),Qe(lr,zr);for(var Dd=arguments.length,x1=new Array(Dd>1?Dd-1:0),Ah=1;Ah1?zr-1:0),bi=1;bi1?zr-1:0),bi=1;bi1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],a=She(n,!1),o=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(f,p){Array.isArray(f)&&f.forEach(function(h){if(p||!(l in h)){var m=h[s];i.push({key:EY(h,i.length),groupOption:p,data:h,label:h[o],value:m})}else{var g=h[c];g===void 0&&r&&(g=h.label),i.push({key:EY(h,i.length),group:!0,data:h,label:g}),u(h[l],!0)}})}return u(e,!1),i}function Nj(e){var t=q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Br(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var BHe=function(t,n,r){if(!n||!n.length)return null;var i=!1,a=function s(l,c){var u=DL(c),f=u[0],p=u.slice(1);if(!f)return[l];var h=l.split(f);return i=i||h.length>1,h.reduce(function(m,g){return[].concat(lt(m),lt(s(g,p)))},[]).filter(Boolean)},o=a(t,n);return i?typeof r<"u"?o.slice(0,r):o:null},fB=d.createContext(null);function zHe(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var a=i.label,o=i.value;return["number","string"].includes(Kt(a))?a:o}).join(", ")),n.length>r?", ...":null)}var HHe=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],UHe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Aj=function(t){return t==="tags"||t==="multiple"},pB=d.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,a=e.className,o=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,h=e.notFoundContent,m=h===void 0?"Not Found":h,g=e.onClear,v=e.mode,y=e.disabled,w=e.loading,b=e.getInputElement,C=e.getRawInputElement,k=e.open,S=e.defaultOpen,_=e.onDropdownVisibleChange,E=e.activeValue,$=e.onActiveValueChange,M=e.activeDescendantId,P=e.searchValue,R=e.autoClearSearchValue,O=e.onSearch,j=e.onSearchSplit,I=e.tokenSeparators,A=e.allowClear,N=e.prefix,F=e.suffixIcon,K=e.clearIcon,L=e.OptionList,V=e.animation,B=e.transitionName,U=e.dropdownStyle,Y=e.dropdownClassName,ee=e.dropdownMatchSelectWidth,ie=e.dropdownRender,Z=e.dropdownAlign,X=e.placement,ae=e.builtinPlacements,oe=e.getPopupContainer,le=e.showAction,ce=le===void 0?[]:le,pe=e.onFocus,me=e.onBlur,re=e.onKeyUp,fe=e.onKeyDown,ve=e.onMouseDown,$e=Ht(e,HHe),Ce=Aj(v),be=(o!==void 0?o:Ce)||v==="combobox",Se=q({},$e);UHe.forEach(function(cn){delete Se[cn]}),c==null||c.forEach(function(cn){delete Se[cn]});var we=d.useState(!1),se=Te(we,2),ye=se[0],Oe=se[1];d.useEffect(function(){Oe(y8())},[]);var z=d.useRef(null),H=d.useRef(null),G=d.useRef(null),de=d.useRef(null),xe=d.useRef(null),he=d.useRef(!1),Ue=Zze(),We=Te(Ue,3),ge=We[0],ze=We[1],Ve=We[2];d.useImperativeHandle(t,function(){var cn,Sn;return{focus:(cn=de.current)===null||cn===void 0?void 0:cn.focus,blur:(Sn=de.current)===null||Sn===void 0?void 0:Sn.blur,scrollTo:function(on){var Je;return(Je=xe.current)===null||Je===void 0?void 0:Je.scrollTo(on)},nativeElement:z.current||H.current}});var Be=d.useMemo(function(){var cn;if(v!=="combobox")return P;var Sn=(cn=u[0])===null||cn===void 0?void 0:cn.value;return typeof Sn=="string"||typeof Sn=="number"?String(Sn):""},[P,v,u]),Xe=v==="combobox"&&typeof b=="function"&&b()||null,Ke=typeof C=="function"&&C(),qe=ku(H,Ke==null||(n=Ke.props)===null||n===void 0?void 0:n.ref),Et=d.useState(!1),ut=Te(Et,2),gt=ut[0],Ze=ut[1];nr(function(){Ze(!0)},[]);var nt=jn(!1,{defaultValue:S,value:k}),jt=Te(nt,2),Lt=jt[0],Bt=jt[1],Ut=gt?Lt:!1,Ne=!m&&p;(y||Ne&&Ut&&v==="combobox")&&(Ut=!1);var He=Ne?!1:Ut,Le=d.useCallback(function(cn){var Sn=cn!==void 0?cn:!Ut;y||(Bt(Sn),Ut!==Sn&&(_==null||_(Sn)))},[y,Ut,Bt,_]),Qe=d.useMemo(function(){return(I||[]).some(function(cn){return[` `,`\r -`].includes(sn)})},[R]),ht=d.useContext(uB)||{},xt=ht.maxCount,Nt=ht.rawValues,Ot=function(bn,gr,Je){if(!(Ce&&Oj(xt)&&(Nt==null?void 0:Nt.size)>=xt)){var ot=!0,Xt=bn;$==null||$(null);var xn=FHe(bn,R,Oj(xt)?xt-Nt.size:void 0),Rn=Je?null:xn;return v!=="combobox"&&Rn&&(Xt="",A==null||A(Rn),Le(!1),ot=!1),O&&Be!==Xt&&O(Xt,{source:gr?"typing":"effect"}),ot}},Pt=function(bn){!bn||!bn.trim()||O(bn,{source:"submit"})};d.useEffect(function(){!Ht&&!Ce&&v!=="combobox"&&Ot("",!1,!1)},[Ht]),d.useEffect(function(){Lt&&y&&Bt(!1),y&&!he.current&&ze(!1)},[y]);var lt=dhe(),Ct=Te(lt,2),kt=Ct[0],qt=Ct[1],yt=d.useRef(!1),At=function(bn){var gr=kt(),Je=bn.key,ot=Je==="Enter";if(ot&&(v!=="combobox"&&bn.preventDefault(),Ht||Le(!0)),qt(!!Be),Je==="Backspace"&&!gr&&Ce&&!Be&&u.length){for(var Xt=ct(u),xn=null,Rn=Xt.length-1;Rn>=0;Rn-=1){var An=Xt[Rn];if(!An.disabled){Xt.splice(Rn,1),xn=An;break}}xn&&f(Xt,{type:"remove",values:[xn]})}for(var kn=arguments.length,Or=new Array(kn>1?kn-1:0),tr=1;tr1?gr-1:0),ot=1;ot1?xn-1:0),An=1;An"u"?"undefined":Kt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const whe=function(e,t,n,r){var i=d.useRef(!1),a=d.useRef(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(function(){i.current=!1},50)}var s=d.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(a.current),i.current=!1):(!f||i.current)&&o(),!i.current&&f}};function qHe(e,t,n,r,i,a,o){var s=d.useRef(0),l=d.useRef(null),c=d.useRef(null),u=d.useRef(!1),f=whe(t,n,r,i);function p(b,w){if(rr.cancel(l.current),!f(!1,w)){var _=b;if(!_._virtualHandled)_._virtualHandled=!0;else return;s.current+=w,c.current=w,_Y||_.preventDefault(),l.current=rr(function(){var k=u.current?10:1;o(s.current*k,!1),s.current=0})}}function h(b,w){o(w,!0),_Y||b.preventDefault()}var m=d.useRef(null),g=d.useRef(null);function v(b){if(e){rr.cancel(g.current),g.current=rr(function(){m.current=null},2);var w=b.deltaX,_=b.deltaY,k=b.shiftKey,S=w,C=_;(m.current==="sx"||!m.current&&k&&_&&!w)&&(S=_,C=0,m.current="sx");var E=Math.abs(S),$=Math.abs(C);m.current===null&&(m.current=a&&E>$?"x":"y"),m.current==="y"?p(b,C):h(b,S)}}function y(b){e&&(u.current=b.detail===c.current)}return[v,y]}function KHe(e,t,n,r){var i=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=Te(i,2),o=a[0],s=a[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,p=o.get(u),h=o.get(f);if(p===void 0||h===void 0)for(var m=e.length,g=s.length;g0&&arguments[0]!==void 0?arguments[0]:!1;u();var m=function(){s.current.forEach(function(v,y){if(v&&v.offsetParent){var b=V2(v),w=b.offsetHeight,_=getComputedStyle(b),k=_.marginTop,S=_.marginBottom,C=kY(k),E=kY(S),$=w+C+E;l.current.get(y)!==$&&l.current.set(y,$)}}),o(function(v){return v+1})};h?m():c.current=rr(m)}function p(h,m){var g=e(h);s.current.get(g),m?(s.current.set(g,m),f()):s.current.delete(g)}return d.useEffect(function(){return u},[]),[p,f,l.current,a]}var EY=14/15;function XHe(e,t,n){var r=d.useRef(!1),i=d.useRef(0),a=d.useRef(0),o=d.useRef(null),s=d.useRef(null),l,c=function(h){if(r.current){var m=Math.ceil(h.touches[0].pageX),g=Math.ceil(h.touches[0].pageY),v=i.current-m,y=a.current-g,b=Math.abs(v)>Math.abs(y);b?i.current=m:a.current=g;var w=n(b,b?v:y,!1,h);w&&h.preventDefault(),clearInterval(s.current),w&&(s.current=setInterval(function(){b?v*=EY:y*=EY;var _=Math.floor(b?v:y);(!n(b,_,!0)||Math.abs(_)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},f=function(h){l(),h.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(h.touches[0].pageX),a.current=Math.ceil(h.touches[0].pageY),o.current=h.target,o.current.addEventListener("touchmove",c,{passive:!1}),o.current.addEventListener("touchend",u,{passive:!0}))};l=function(){o.current&&(o.current.removeEventListener("touchmove",c),o.current.removeEventListener("touchend",u))},nr(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var ZHe=10;function QHe(e,t,n,r,i,a,o,s){var l=d.useRef(),c=d.useState(null),u=Te(c,2),f=u[0],p=u[1];return nr(function(){if(f&&f.times=0;A-=1){var R=i(t[A]),j=n.get(R);if(j===void 0){b=!0;break}if(O-=j,O<=0)break}switch(k){case"top":_=C-v;break;case"bottom":_=E-y+v;break;default:{var N=e.current.scrollTop,D=N+y;CD&&(w="bottom")}}_!==null&&o(_),_!==f.lastTop&&(b=!0)}b&&p(q(q({},f),{},{times:f.times+1,targetAlign:w,lastTop:_}))}},[f,e.current]),function(h){if(h==null){s();return}if(rr.cancel(l.current),typeof h=="number")o(h);else if(h&&Kt(h)==="object"){var m,g=h.align;"index"in h?m=h.index:m=t.findIndex(function(b){return i(b)===h.key});var v=h.offset,y=v===void 0?0:v;p({times:0,index:m,offset:y,originAlign:g})}}}function $Y(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var MY=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,a=e.scrollRange,o=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,p=e.style,h=e.thumbStyle,m=d.useState(!1),g=Te(m,2),v=g[0],y=g[1],b=d.useState(null),w=Te(b,2),_=w[0],k=w[1],S=d.useState(null),C=Te(S,2),E=C[0],$=C[1],M=!r,P=d.useRef(),I=d.useRef(),O=d.useState(!1),A=Te(O,2),R=A[0],j=A[1],N=d.useRef(),D=function(){clearTimeout(N.current),j(!0),N.current=setTimeout(function(){j(!1)},3e3)},V=a-f||0,F=f-u||0,K=d.useMemo(function(){if(i===0||V===0)return 0;var oe=i/V;return oe*F},[i,V,F]),B=function(le){le.stopPropagation(),le.preventDefault()},U=d.useRef({top:K,dragging:v,pageY:_,startTop:E});U.current={top:K,dragging:v,pageY:_,startTop:E};var Z=function(le){y(!0),k($Y(le,c)),$(U.current.top),o(),le.stopPropagation(),le.preventDefault()};d.useEffect(function(){var oe=function(me){me.preventDefault()},le=P.current,ce=I.current;return le.addEventListener("touchstart",oe,{passive:!1}),ce.addEventListener("touchstart",Z,{passive:!1}),function(){le.removeEventListener("touchstart",oe),ce.removeEventListener("touchstart",Z)}},[]);var ee=d.useRef();ee.current=V;var ie=d.useRef();ie.current=F,d.useEffect(function(){if(v){var oe,le=function(me){var re=U.current,fe=re.dragging,ve=re.pageY,$e=re.startTop;rr.cancel(oe);var Ce=P.current.getBoundingClientRect(),be=f/(c?Ce.width:Ce.height);if(fe){var Se=($Y(me,c)-ve)*be,we=$e;!M&&c?we-=Se:we+=Se;var se=ee.current,ye=ie.current,Oe=ye?we/ye:0,z=Math.ceil(Oe*se);z=Math.max(z,0),z=Math.min(z,se),oe=rr(function(){l(z,c)})}},ce=function(){y(!1),s()};return window.addEventListener("mousemove",le,{passive:!0}),window.addEventListener("touchmove",le,{passive:!0}),window.addEventListener("mouseup",ce,{passive:!0}),window.addEventListener("touchend",ce,{passive:!0}),function(){window.removeEventListener("mousemove",le),window.removeEventListener("touchmove",le),window.removeEventListener("mouseup",ce),window.removeEventListener("touchend",ce),rr.cancel(oe)}}},[v]),d.useEffect(function(){return D(),function(){clearTimeout(N.current)}},[i]),d.useImperativeHandle(t,function(){return{delayHidden:D}});var Y="".concat(n,"-scrollbar"),X={position:"absolute",visibility:R?null:"hidden"},ae={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(X.height=8,X.left=0,X.right=0,X.bottom=0,ae.height="100%",ae.width=u,M?ae.left=K:ae.right=K):(X.width=8,X.top=0,X.bottom=0,M?X.right=0:X.left=0,ae.width="100%",ae.height=u,ae.top=K),d.createElement("div",{ref:P,className:Ee(Y,ne(ne(ne({},"".concat(Y,"-horizontal"),c),"".concat(Y,"-vertical"),!c),"".concat(Y,"-visible"),R)),style:q(q({},X),p),onMouseDown:B,onMouseMove:D},d.createElement("div",{ref:I,className:Ee("".concat(Y,"-thumb"),ne({},"".concat(Y,"-thumb-moving"),v)),style:q(q({},ae),h),onMouseDown:Z}))}),JHe=20;function TY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,JHe),Math.floor(n)}var eUe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],tUe=[],nUe={overflowY:"auto",overflowAnchor:"none"};function rUe(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,a=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,p=e.itemKey,h=e.virtual,m=e.direction,g=e.scrollWidth,v=e.component,y=v===void 0?"div":v,b=e.onScroll,w=e.onVirtualScroll,_=e.onVisibleChange,k=e.innerProps,S=e.extraRender,C=e.styles,E=Ut(e,eUe),$=d.useCallback(function(De){return typeof p=="function"?p(De):De==null?void 0:De[p]},[p]),M=YHe($),P=Te(M,4),I=P[0],O=P[1],A=P[2],R=P[3],j=!!(h!==!1&&a&&o),N=d.useMemo(function(){return Object.values(A.maps).reduce(function(De,Ye){return De+Ye},0)},[A.id,A.maps]),D=j&&u&&(Math.max(o*u.length,N)>a||!!g),V=m==="rtl",F=Ee(r,ne({},"".concat(r,"-rtl"),V),i),K=u||tUe,B=d.useRef(),U=d.useRef(),Z=d.useRef(),ee=d.useState(0),ie=Te(ee,2),Y=ie[0],X=ie[1],ae=d.useState(0),oe=Te(ae,2),le=oe[0],ce=oe[1],pe=d.useState(!1),me=Te(pe,2),re=me[0],fe=me[1],ve=function(){fe(!0)},$e=function(){fe(!1)},Ce={getKey:$};function be(De){X(function(Ye){var st;typeof De=="function"?st=De(Ye):st=De;var Ie=dt(st);return B.current.scrollTop=Ie,Ie})}var Se=d.useRef({start:0,end:K.length}),we=d.useRef(),se=VHe(K,$),ye=Te(se,1),Oe=ye[0];we.current=Oe;var z=d.useMemo(function(){if(!j)return{scrollHeight:void 0,start:0,end:K.length-1,offset:void 0};if(!D){var De;return{scrollHeight:((De=U.current)===null||De===void 0?void 0:De.offsetHeight)||0,start:0,end:K.length-1,offset:void 0}}for(var Ye=0,st,Ie,Rt,rt=K.length,$t=0;$t=Y&&st===void 0&&(st=$t,Ie=Ye),T>Y+a&&Rt===void 0&&(Rt=$t),Ye=T}return st===void 0&&(st=0,Ie=0,Rt=Math.ceil(a/o)),Rt===void 0&&(Rt=K.length-1),Rt=Math.min(Rt+1,K.length-1),{scrollHeight:Ye,start:st,end:Rt,offset:Ie}},[D,j,Y,K,R,a]),H=z.scrollHeight,G=z.start,de=z.end,xe=z.offset;Se.current.start=G,Se.current.end=de;var he=d.useState({width:0,height:a}),Ue=Te(he,2),We=Ue[0],ge=Ue[1],ze=function(Ye){ge({width:Ye.offsetWidth,height:Ye.offsetHeight})},Ve=d.useRef(),Be=d.useRef(),Xe=d.useMemo(function(){return TY(We.width,g)},[We.width,g]),Ke=d.useMemo(function(){return TY(We.height,H)},[We.height,H]),qe=H-a,Et=d.useRef(qe);Et.current=qe;function dt(De){var Ye=De;return Number.isNaN(Et.current)||(Ye=Math.min(Ye,Et.current)),Ye=Math.max(Ye,0),Ye}var vt=Y<=0,Ze=Y>=qe,nt=le<=0,jt=le>=g,Lt=whe(vt,Ze,nt,jt),Bt=function(){return{x:V?-le:le,y:Y}},Ht=d.useRef(Bt()),Ne=Vn(function(De){if(w){var Ye=q(q({},Bt()),De);(Ht.current.x!==Ye.x||Ht.current.y!==Ye.y)&&(w(Ye),Ht.current=Ye)}});function He(De,Ye){var st=De;Ye?(Ka.flushSync(function(){ce(st)}),Ne()):be(st)}function Le(De){var Ye=De.currentTarget.scrollTop;Ye!==Y&&be(Ye),b==null||b(De),Ne()}var Qe=function(Ye){var st=Ye,Ie=g?g-We.width:0;return st=Math.max(st,0),st=Math.min(st,Ie),st},ht=Vn(function(De,Ye){Ye?(Ka.flushSync(function(){ce(function(st){var Ie=st+(V?-De:De);return Qe(Ie)})}),Ne()):be(function(st){var Ie=st+De;return Ie})}),xt=qHe(j,vt,Ze,nt,jt,!!g,ht),Nt=Te(xt,2),Ot=Nt[0],Pt=Nt[1];XHe(j,B,function(De,Ye,st,Ie){var Rt=Ie;return Lt(De,Ye,st)?!1:!Rt||!Rt._virtualHandled?(Rt&&(Rt._virtualHandled=!0),Ot({preventDefault:function(){},deltaX:De?Ye:0,deltaY:De?0:Ye}),!0):!1}),nr(function(){function De(st){var Ie=vt&&st.detail<0,Rt=Ze&&st.detail>0;j&&!Ie&&!Rt&&st.preventDefault()}var Ye=B.current;return Ye.addEventListener("wheel",Ot,{passive:!1}),Ye.addEventListener("DOMMouseScroll",Pt,{passive:!0}),Ye.addEventListener("MozMousePixelScroll",De,{passive:!1}),function(){Ye.removeEventListener("wheel",Ot),Ye.removeEventListener("DOMMouseScroll",Pt),Ye.removeEventListener("MozMousePixelScroll",De)}},[j,vt,Ze]),nr(function(){if(g){var De=Qe(le);ce(De),Ne({x:De})}},[We.width,g]);var lt=function(){var Ye,st;(Ye=Ve.current)===null||Ye===void 0||Ye.delayHidden(),(st=Be.current)===null||st===void 0||st.delayHidden()},Ct=QHe(B,K,A,o,$,function(){return O(!0)},be,lt);d.useImperativeHandle(t,function(){return{nativeElement:Z.current,getScrollInfo:Bt,scrollTo:function(Ye){function st(Ie){return Ie&&Kt(Ie)==="object"&&("left"in Ie||"top"in Ie)}st(Ye)?(Ye.left!==void 0&&ce(Qe(Ye.left)),Ct(Ye.top)):Ct(Ye)}}}),nr(function(){if(_){var De=K.slice(G,de+1);_(De,K)}},[G,de,K]);var kt=KHe(K,$,A,o),qt=S==null?void 0:S({start:G,end:de,virtual:D,offsetX:le,offsetY:xe,rtl:V,getSize:kt}),yt=UHe(K,G,de,g,le,I,f,Ce),At=null;a&&(At=q(ne({},l?"height":"maxHeight",a),nUe),j&&(At.overflowY="hidden",g&&(At.overflowX="hidden"),re&&(At.pointerEvents="none")));var ft={};return V&&(ft.dir="rtl"),d.createElement("div",tt({ref:Z,style:q(q({},c),{},{position:"relative"}),className:F},ft,E),d.createElement(Go,{onResize:ze},d.createElement(y,{className:"".concat(r,"-holder"),style:At,ref:B,onScroll:Le,onMouseEnter:lt},d.createElement(bhe,{prefixCls:r,height:H,offsetX:le,offsetY:xe,scrollWidth:g,onInnerResize:O,ref:U,innerProps:k,rtl:V,extra:qt},yt))),D&&H>a&&d.createElement(MY,{ref:Ve,prefixCls:r,scrollOffset:Y,scrollRange:H,rtl:V,onScroll:He,onStartMove:ve,onStopMove:$e,spinSize:Ke,containerSize:We.height,style:C==null?void 0:C.verticalScrollBar,thumbStyle:C==null?void 0:C.verticalScrollBarThumb}),D&&g>We.width&&d.createElement(MY,{ref:Be,prefixCls:r,scrollOffset:le,scrollRange:g,rtl:V,onScroll:He,onStartMove:ve,onStopMove:$e,spinSize:Xe,containerSize:We.width,horizontal:!0,style:C==null?void 0:C.horizontalScrollBar,thumbStyle:C==null?void 0:C.horizontalScrollBarThumb}))}var hB=d.forwardRef(rUe);hB.displayName="List";function iUe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var aUe=["disabled","title","children","style","className"];function PY(e){return typeof e=="string"||typeof e=="number"}var oUe=function(t,n){var r=cB(),i=r.prefixCls,a=r.id,o=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,f=r.notFoundContent,p=r.onPopupScroll,h=d.useContext(uB),m=h.maxCount,g=h.flattenOptions,v=h.onActiveValue,y=h.defaultActiveFirstOption,b=h.onSelect,w=h.menuItemSelectedIcon,_=h.rawValues,k=h.fieldNames,S=h.virtual,C=h.direction,E=h.listHeight,$=h.listItemHeight,M=h.optionRender,P="".concat(i,"-item"),I=ug(function(){return g},[o,g],function(le,ce){return ce[0]&&le[1]!==ce[1]}),O=d.useRef(null),A=d.useMemo(function(){return s&&Oj(m)&&(_==null?void 0:_.size)>=m},[s,m,_==null?void 0:_.size]),R=function(ce){ce.preventDefault()},j=function(ce){var pe;(pe=O.current)===null||pe===void 0||pe.scrollTo(typeof ce=="number"?{index:ce}:ce)},N=d.useCallback(function(le){return l==="combobox"?!1:_.has(le)},[l,ct(_).toString(),_.size]),D=function(ce){for(var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,me=I.length,re=0;re1&&arguments[1]!==void 0?arguments[1]:!1;B(ce);var me={source:pe?"keyboard":"mouse"},re=I[ce];if(!re){v(null,-1,me);return}v(re.value,ce,me)};d.useEffect(function(){U(y!==!1?D(0):-1)},[I.length,c]);var Z=d.useCallback(function(le){return l==="combobox"?String(le).toLowerCase()===c.toLowerCase():_.has(le)},[l,c,ct(_).toString(),_.size]);d.useEffect(function(){var le=setTimeout(function(){if(!s&&o&&_.size===1){var pe=Array.from(_)[0],me=I.findIndex(function(re){var fe=re.data;return fe.value===pe});me!==-1&&(U(me),j(me))}});if(o){var ce;(ce=O.current)===null||ce===void 0||ce.scrollTo(void 0)}return function(){return clearTimeout(le)}},[o,c]);var ee=function(ce){ce!==void 0&&b(ce,{selected:!_.has(ce)}),s||u(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(ce){var pe=ce.which,me=ce.ctrlKey;switch(pe){case gt.N:case gt.P:case gt.UP:case gt.DOWN:{var re=0;if(pe===gt.UP?re=-1:pe===gt.DOWN?re=1:iUe()&&me&&(pe===gt.N?re=1:pe===gt.P&&(re=-1)),re!==0){var fe=D(K+re,re);j(fe),U(fe,!0)}break}case gt.TAB:case gt.ENTER:{var ve,$e=I[K];$e&&!($e!=null&&(ve=$e.data)!==null&&ve!==void 0&&ve.disabled)&&!A?ee($e.value):ee(void 0),o&&ce.preventDefault();break}case gt.ESC:u(!1),o&&ce.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ce){j(ce)}}}),I.length===0)return d.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(P,"-empty"),onMouseDown:R},f);var ie=Object.keys(k).map(function(le){return k[le]}),Y=function(ce){return ce.label};function X(le,ce){var pe=le.group;return{role:pe?"presentation":"option",id:"".concat(a,"_list_").concat(ce)}}var ae=function(ce){var pe=I[ce];if(!pe)return null;var me=pe.data||{},re=me.value,fe=pe.group,ve=Bi(me,!0),$e=Y(pe);return pe?d.createElement("div",tt({"aria-label":typeof $e=="string"&&!fe?$e:null},ve,{key:ce},X(pe,ce),{"aria-selected":Z(re)}),re):null},oe={role:"listbox",id:"".concat(a,"_list")};return d.createElement(d.Fragment,null,S&&d.createElement("div",tt({},oe,{style:{height:0,width:0,overflow:"hidden"}}),ae(K-1),ae(K),ae(K+1)),d.createElement(hB,{itemKey:"key",ref:O,data:I,height:E,itemHeight:$,fullHeight:!1,onMouseDown:R,onScroll:p,virtual:S,direction:C,innerProps:S?null:oe},function(le,ce){var pe=le.group,me=le.groupOption,re=le.data,fe=le.label,ve=le.value,$e=re.key;if(pe){var Ce,be=(Ce=re.title)!==null&&Ce!==void 0?Ce:PY(fe)?fe.toString():void 0;return d.createElement("div",{className:Ee(P,"".concat(P,"-group"),re.className),title:be},fe!==void 0?fe:$e)}var Se=re.disabled,we=re.title;re.children;var se=re.style,ye=re.className,Oe=Ut(re,aUe),z=$r(Oe,ie),H=N(ve),G=Se||!H&&A,de="".concat(P,"-option"),xe=Ee(P,de,ye,ne(ne(ne(ne({},"".concat(de,"-grouped"),me),"".concat(de,"-active"),K===ce&&!G),"".concat(de,"-disabled"),G),"".concat(de,"-selected"),H)),he=Y(le),Ue=!w||typeof w=="function"||H,We=typeof he=="number"?he:he||ve,ge=PY(We)?We.toString():void 0;return we!==void 0&&(ge=we),d.createElement("div",tt({},Bi(z),S?{}:X(le,ce),{"aria-selected":Z(ve),className:xe,title:ge,onMouseMove:function(){K===ce||G||U(ce)},onClick:function(){G||ee(ve)},style:se}),d.createElement("div",{className:"".concat(de,"-content")},typeof M=="function"?M(le,{index:ce}):We),d.isValidElement(w)||H,Ue&&d.createElement(y8,{className:"".concat(P,"-option-state"),customizeIcon:w,customizeIconProps:{value:ve,disabled:G,isSelected:H}},H?"✓":null))}))},sUe=d.forwardRef(oUe);const lUe=function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var a=n.current,o=a.values,s=a.options,l=e.map(function(f){if(f.label===void 0){var p;return q(q({},f),{},{label:(p=o.get(f.value))===null||p===void 0?void 0:p.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=c,n.current.options=u,l},[e,t]),i=d.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,i]};function A9(e,t){return ghe(e).join("").toUpperCase().includes(t)}const cUe=function(e,t,n,r,i){return d.useMemo(function(){if(!n||r===!1)return e;var a=t.options,o=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:function(h,m){return i?A9(m[i],u):m[a]?A9(m[o!=="children"?o:"label"],u):A9(m[s],u)},p=c?function(h){return Ij(h)}:function(h){return h};return e.forEach(function(h){if(h[a]){var m=f(n,p(h));if(m)l.push(h);else{var g=h[a].filter(function(v){return f(n,p(v))});g.length&&l.push(q(q({},h),{},ne({},a,g)))}return}f(n,p(h))&&l.push(h)}),l},[e,r,i,n,t])};var OY=0,uUe=Ws();function dUe(){var e;return uUe?(e=OY,OY+=1):e="TEST_OR_SSR",e}function mB(e){var t=d.useState(),n=Te(t,2),r=n[0],i=n[1];return d.useEffect(function(){i("rc_select_".concat(dUe()))},[]),e||r}var fUe=["children","value"],pUe=["children"];function hUe(e){var t=e,n=t.key,r=t.props,i=r.children,a=r.value,o=Ut(r,fUe);return q({key:n,value:a!==void 0?a:n,children:i},o)}function xhe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Zi(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var i=n,a=i.type.isSelectOptGroup,o=i.key,s=i.props,l=s.children,c=Ut(s,pUe);return t||!a?hUe(n):q(q({key:"__RC_SELECT_GRP__".concat(o===null?r:o,"__"),label:o},c),{},{options:xhe(l)})}).filter(function(n){return n})}var mUe=function(t,n,r,i,a){return d.useMemo(function(){var o=t,s=!t;s&&(o=xhe(n));var l=new Map,c=new Map,u=function(h,m,g){g&&typeof g=="string"&&h.set(m[g],m)},f=function p(h){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g0?Le(xt.options):xt.options}):xt})},We=d.useMemo(function(){return b?Ue(he):he},[he,b,oe]),ge=d.useMemo(function(){return DHe(We,{fieldNames:Y,childrenAsData:ee})},[We,Y,ee]),ze=function(Qe){var ht=fe(Qe);if(be(ht),F&&(ht.length!==ye.length||ht.some(function(Ot,Pt){var lt;return((lt=ye[Pt])===null||lt===void 0?void 0:lt.value)!==(Ot==null?void 0:Ot.value)}))){var xt=V?ht:ht.map(function(Ot){return Ot.value}),Nt=ht.map(function(Ot){return Ij(Oe(Ot.value))});F(Z?xt:xt[0],Z?Nt:Nt[0])}},Ve=d.useState(null),Be=Te(Ve,2),Xe=Be[0],Ke=Be[1],qe=d.useState(0),Et=Te(qe,2),dt=Et[0],vt=Et[1],Ze=E!==void 0?E:r!=="combobox",nt=d.useCallback(function(Le,Qe){var ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},xt=ht.source,Nt=xt===void 0?"keyboard":xt;vt(Qe),o&&r==="combobox"&&Le!==null&&Nt==="keyboard"&&Ke(String(Le))},[o,r]),jt=function(Qe,ht,xt){var Nt=function(){var De,Ye=Oe(Qe);return[V?{label:Ye==null?void 0:Ye[Y.label],value:Qe,key:(De=Ye==null?void 0:Ye.key)!==null&&De!==void 0?De:Qe}:Qe,Ij(Ye)]};if(ht&&h){var Ot=Nt(),Pt=Te(Ot,2),lt=Pt[0],Ct=Pt[1];h(lt,Ct)}else if(!ht&&m&&xt!=="clear"){var kt=Nt(),qt=Te(kt,2),yt=qt[0],At=qt[1];m(yt,At)}},Lt=IY(function(Le,Qe){var ht,xt=Z?Qe.selected:!0;xt?ht=Z?[].concat(ct(ye),[Le]):[Le]:ht=ye.filter(function(Nt){return Nt.value!==Le}),ze(ht),jt(Le,xt),r==="combobox"?Ke(""):(!Rj||p)&&(le(""),Ke(""))}),Bt=function(Qe,ht){ze(Qe);var xt=ht.type,Nt=ht.values;(xt==="remove"||xt==="clear")&&Nt.forEach(function(Ot){jt(Ot.value,!1,xt)})},Ht=function(Qe,ht){if(le(Qe),Ke(null),ht.source==="submit"){var xt=(Qe||"").trim();if(xt){var Nt=Array.from(new Set([].concat(ct(H),[xt])));ze(Nt),jt(xt,!0),le("")}return}ht.source!=="blur"&&(r==="combobox"&&ze(Qe),u==null||u(Qe))},Ne=function(Qe){var ht=Qe;r!=="tags"&&(ht=Qe.map(function(Nt){var Ot=me.get(Nt);return Ot==null?void 0:Ot.value}).filter(function(Nt){return Nt!==void 0}));var xt=Array.from(new Set([].concat(ct(H),ct(ht))));ze(xt),xt.forEach(function(Nt){jt(Nt,!0)})},He=d.useMemo(function(){var Le=M!==!1&&v!==!1;return q(q({},ce),{},{flattenOptions:ge,onActiveValue:nt,defaultActiveFirstOption:Ze,onSelect:Lt,menuItemSelectedIcon:$,rawValues:H,fieldNames:Y,virtual:Le,direction:P,listHeight:O,listItemHeight:R,childrenAsData:ee,maxCount:K,optionRender:S})},[K,ce,ge,nt,Ze,Lt,$,H,Y,M,v,P,O,R,ee,S]);return d.createElement(uB.Provider,{value:He},d.createElement(dB,tt({},B,{id:U,prefixCls:a,ref:t,omitDomProps:vUe,mode:r,displayValues:z,onDisplayValuesChange:Bt,direction:P,searchValue:oe,onSearch:Ht,autoClearSearchValue:p,onSearchSplit:Ne,dropdownMatchSelectWidth:v,OptionList:sUe,emptyOptions:!ge.length,activeValue:Xe,activeDescendantId:"".concat(U,"_list_").concat(dt)})))}),gB=bUe;gB.Option=pB;gB.OptGroup=fB;function jl(e,t,n){return Ee({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const ku=(e,t)=>t||e,wUe=()=>{const[,e]=$a(),[t]=Xa("Empty"),r=new dr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),d.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),d.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),d.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),d.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},xUe=()=>{const[,e]=$a(),[t]=Xa("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:l}=d.useMemo(()=>({borderColor:new dr(n).onBackground(a).toHexString(),shadowColor:new dr(r).onBackground(a).toHexString(),contentColor:new dr(i).onBackground(a).toHexString()}),[n,r,i,a]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:o},d.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),d.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},SUe=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},CUe=Jn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=Hn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[SUe(i)]});var _Ue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l;const{className:c,rootClassName:u,prefixCls:f,image:p=She,description:h,children:m,imageStyle:g,style:v,classNames:y,styles:b}=e,w=_Ue(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:_,direction:k,empty:S}=d.useContext(Zt),C=_("empty",f),[E,$,M]=CUe(C),[P]=Xa("Empty"),I=typeof h<"u"?h:P==null?void 0:P.description,O=typeof I=="string"?I:"empty";let A=null;return typeof p=="string"?A=d.createElement("img",{alt:O,src:p}):A=p,E(d.createElement("div",Object.assign({className:Ee($,M,C,S==null?void 0:S.className,{[`${C}-normal`]:p===Che,[`${C}-rtl`]:k==="rtl"},c,u,(t=S==null?void 0:S.classNames)===null||t===void 0?void 0:t.root,y==null?void 0:y.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=S==null?void 0:S.styles)===null||n===void 0?void 0:n.root),S==null?void 0:S.style),b==null?void 0:b.root),v)},w),d.createElement("div",{className:Ee(`${C}-image`,(r=S==null?void 0:S.classNames)===null||r===void 0?void 0:r.image,y==null?void 0:y.image),style:Object.assign(Object.assign(Object.assign({},g),(i=S==null?void 0:S.styles)===null||i===void 0?void 0:i.image),b==null?void 0:b.image)},A),I&&d.createElement("div",{className:Ee(`${C}-description`,(a=S==null?void 0:S.classNames)===null||a===void 0?void 0:a.description,y==null?void 0:y.description),style:Object.assign(Object.assign({},(o=S==null?void 0:S.styles)===null||o===void 0?void 0:o.description),b==null?void 0:b.description)},I),m&&d.createElement("div",{className:Ee(`${C}-footer`,(s=S==null?void 0:S.classNames)===null||s===void 0?void 0:s.footer,y==null?void 0:y.footer),style:Object.assign(Object.assign({},(l=S==null?void 0:S.styles)===null||l===void 0?void 0:l.footer),b==null?void 0:b.footer)},m)))};Ca.PRESENTED_IMAGE_DEFAULT=She;Ca.PRESENTED_IMAGE_SIMPLE=Che;const Vg=e=>{const{componentName:t}=e,{getPrefixCls:n}=d.useContext(Zt),r=n("empty");switch(t){case"Table":case"List":return te.createElement(Ca,{image:Ca.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return te.createElement(Ca,{image:Ca.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return te.createElement(Ca,null)}},Md=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:a,[e]:o}=d.useContext(Zt),s=d.useContext(Bpe),l=o==null?void 0:o.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=s??l)!==null&&r!==void 0?r:a)!==null&&i!==void 0?i:"outlined";const u=Zje.includes(c);return[c,u]},kUe=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function vB(e,t){return e||kUe(t)}const RY=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},EUe=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},ar(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` +`].includes(cn)})},[I]),pt=d.useContext(fB)||{},xt=pt.maxCount,Nt=pt.rawValues,Ot=function(Sn,gr,on){if(!(Ce&&jj(xt)&&(Nt==null?void 0:Nt.size)>=xt)){var Je=!0,bt=Sn;$==null||$(null);var sn=BHe(Sn,I,jj(xt)?xt-Nt.size:void 0),Pn=on?null:sn;return v!=="combobox"&&Pn&&(bt="",j==null||j(Pn),Le(!1),Je=!1),O&&Be!==bt&&O(bt,{source:gr?"typing":"effect"}),Je}},Pt=function(Sn){!Sn||!Sn.trim()||O(Sn,{source:"submit"})};d.useEffect(function(){!Ut&&!Ce&&v!=="combobox"&&Ot("",!1,!1)},[Ut]),d.useEffect(function(){Lt&&y&&Bt(!1),y&&!he.current&&ze(!1)},[y]);var st=mhe(),Ct=Te(st,2),kt=Ct[0],qt=Ct[1],vt=d.useRef(!1),At=function(Sn){var gr=kt(),on=Sn.key,Je=on==="Enter";if(Je&&(v!=="combobox"&&Sn.preventDefault(),Ut||Le(!0)),qt(!!Be),on==="Backspace"&&!gr&&Ce&&!Be&&u.length){for(var bt=lt(u),sn=null,Pn=bt.length-1;Pn>=0;Pn-=1){var qn=bt[Pn];if(!qn.disabled){bt.splice(Pn,1),sn=qn;break}}sn&&f(bt,{type:"remove",values:[sn]})}for(var ln=arguments.length,or=new Array(ln>1?ln-1:0),ri=1;ri1?gr-1:0),Je=1;Je1?sn-1:0),qn=1;qn"u"?"undefined":Kt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const _he=function(e,t,n,r){var i=d.useRef(!1),a=d.useRef(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(function(){i.current=!1},50)}var s=d.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(a.current),i.current=!1):(!f||i.current)&&o(),!i.current&&f}};function GHe(e,t,n,r,i,a,o){var s=d.useRef(0),l=d.useRef(null),c=d.useRef(null),u=d.useRef(!1),f=_he(t,n,r,i);function p(w,b){if(rr.cancel(l.current),!f(!1,b)){var C=w;if(!C._virtualHandled)C._virtualHandled=!0;else return;s.current+=b,c.current=b,$Y||C.preventDefault(),l.current=rr(function(){var k=u.current?10:1;o(s.current*k,!1),s.current=0})}}function h(w,b){o(b,!0),$Y||w.preventDefault()}var m=d.useRef(null),g=d.useRef(null);function v(w){if(e){rr.cancel(g.current),g.current=rr(function(){m.current=null},2);var b=w.deltaX,C=w.deltaY,k=w.shiftKey,S=b,_=C;(m.current==="sx"||!m.current&&k&&C&&!b)&&(S=C,_=0,m.current="sx");var E=Math.abs(S),$=Math.abs(_);m.current===null&&(m.current=a&&E>$?"x":"y"),m.current==="y"?p(w,_):h(w,S)}}function y(w){e&&(u.current=w.detail===c.current)}return[v,y]}function YHe(e,t,n,r){var i=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=Te(i,2),o=a[0],s=a[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,p=o.get(u),h=o.get(f);if(p===void 0||h===void 0)for(var m=e.length,g=s.length;g0&&arguments[0]!==void 0?arguments[0]:!1;u();var m=function(){s.current.forEach(function(v,y){if(v&&v.offsetParent){var w=V2(v),b=w.offsetHeight,C=getComputedStyle(w),k=C.marginTop,S=C.marginBottom,_=MY(k),E=MY(S),$=b+_+E;l.current.get(y)!==$&&l.current.set(y,$)}}),o(function(v){return v+1})};h?m():c.current=rr(m)}function p(h,m){var g=e(h);s.current.get(g),m?(s.current.set(g,m),f()):s.current.delete(g)}return d.useEffect(function(){return u},[]),[p,f,l.current,a]}var TY=14/15;function QHe(e,t,n){var r=d.useRef(!1),i=d.useRef(0),a=d.useRef(0),o=d.useRef(null),s=d.useRef(null),l,c=function(h){if(r.current){var m=Math.ceil(h.touches[0].pageX),g=Math.ceil(h.touches[0].pageY),v=i.current-m,y=a.current-g,w=Math.abs(v)>Math.abs(y);w?i.current=m:a.current=g;var b=n(w,w?v:y,!1,h);b&&h.preventDefault(),clearInterval(s.current),b&&(s.current=setInterval(function(){w?v*=TY:y*=TY;var C=Math.floor(w?v:y);(!n(w,C,!0)||Math.abs(C)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},f=function(h){l(),h.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(h.touches[0].pageX),a.current=Math.ceil(h.touches[0].pageY),o.current=h.target,o.current.addEventListener("touchmove",c,{passive:!1}),o.current.addEventListener("touchend",u,{passive:!0}))};l=function(){o.current&&(o.current.removeEventListener("touchmove",c),o.current.removeEventListener("touchend",u))},nr(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var JHe=10;function eUe(e,t,n,r,i,a,o,s){var l=d.useRef(),c=d.useState(null),u=Te(c,2),f=u[0],p=u[1];return nr(function(){if(f&&f.times=0;j-=1){var I=i(t[j]),A=n.get(I);if(A===void 0){w=!0;break}if(O-=A,O<=0)break}switch(k){case"top":C=_-v;break;case"bottom":C=E-y+v;break;default:{var N=e.current.scrollTop,F=N+y;_F&&(b="bottom")}}C!==null&&o(C),C!==f.lastTop&&(w=!0)}w&&p(q(q({},f),{},{times:f.times+1,targetAlign:b,lastTop:C}))}},[f,e.current]),function(h){if(h==null){s();return}if(rr.cancel(l.current),typeof h=="number")o(h);else if(h&&Kt(h)==="object"){var m,g=h.align;"index"in h?m=h.index:m=t.findIndex(function(w){return i(w)===h.key});var v=h.offset,y=v===void 0?0:v;p({times:0,index:m,offset:y,originAlign:g})}}}function PY(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var OY=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,a=e.scrollRange,o=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,p=e.style,h=e.thumbStyle,m=d.useState(!1),g=Te(m,2),v=g[0],y=g[1],w=d.useState(null),b=Te(w,2),C=b[0],k=b[1],S=d.useState(null),_=Te(S,2),E=_[0],$=_[1],M=!r,P=d.useRef(),R=d.useRef(),O=d.useState(!1),j=Te(O,2),I=j[0],A=j[1],N=d.useRef(),F=function(){clearTimeout(N.current),A(!0),N.current=setTimeout(function(){A(!1)},3e3)},K=a-f||0,L=f-u||0,V=d.useMemo(function(){if(i===0||K===0)return 0;var oe=i/K;return oe*L},[i,K,L]),B=function(le){le.stopPropagation(),le.preventDefault()},U=d.useRef({top:V,dragging:v,pageY:C,startTop:E});U.current={top:V,dragging:v,pageY:C,startTop:E};var Y=function(le){y(!0),k(PY(le,c)),$(U.current.top),o(),le.stopPropagation(),le.preventDefault()};d.useEffect(function(){var oe=function(me){me.preventDefault()},le=P.current,ce=R.current;return le.addEventListener("touchstart",oe,{passive:!1}),ce.addEventListener("touchstart",Y,{passive:!1}),function(){le.removeEventListener("touchstart",oe),ce.removeEventListener("touchstart",Y)}},[]);var ee=d.useRef();ee.current=K;var ie=d.useRef();ie.current=L,d.useEffect(function(){if(v){var oe,le=function(me){var re=U.current,fe=re.dragging,ve=re.pageY,$e=re.startTop;rr.cancel(oe);var Ce=P.current.getBoundingClientRect(),be=f/(c?Ce.width:Ce.height);if(fe){var Se=(PY(me,c)-ve)*be,we=$e;!M&&c?we-=Se:we+=Se;var se=ee.current,ye=ie.current,Oe=ye?we/ye:0,z=Math.ceil(Oe*se);z=Math.max(z,0),z=Math.min(z,se),oe=rr(function(){l(z,c)})}},ce=function(){y(!1),s()};return window.addEventListener("mousemove",le,{passive:!0}),window.addEventListener("touchmove",le,{passive:!0}),window.addEventListener("mouseup",ce,{passive:!0}),window.addEventListener("touchend",ce,{passive:!0}),function(){window.removeEventListener("mousemove",le),window.removeEventListener("touchmove",le),window.removeEventListener("mouseup",ce),window.removeEventListener("touchend",ce),rr.cancel(oe)}}},[v]),d.useEffect(function(){return F(),function(){clearTimeout(N.current)}},[i]),d.useImperativeHandle(t,function(){return{delayHidden:F}});var Z="".concat(n,"-scrollbar"),X={position:"absolute",visibility:I?null:"hidden"},ae={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(X.height=8,X.left=0,X.right=0,X.bottom=0,ae.height="100%",ae.width=u,M?ae.left=V:ae.right=V):(X.width=8,X.top=0,X.bottom=0,M?X.right=0:X.left=0,ae.width="100%",ae.height=u,ae.top=V),d.createElement("div",{ref:P,className:Ee(Z,ne(ne(ne({},"".concat(Z,"-horizontal"),c),"".concat(Z,"-vertical"),!c),"".concat(Z,"-visible"),I)),style:q(q({},X),p),onMouseDown:B,onMouseMove:F},d.createElement("div",{ref:R,className:Ee("".concat(Z,"-thumb"),ne({},"".concat(Z,"-thumb-moving"),v)),style:q(q({},ae),h),onMouseDown:Y}))}),tUe=20;function RY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,tUe),Math.floor(n)}var nUe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],rUe=[],iUe={overflowY:"auto",overflowAnchor:"none"};function aUe(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,a=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,p=e.itemKey,h=e.virtual,m=e.direction,g=e.scrollWidth,v=e.component,y=v===void 0?"div":v,w=e.onScroll,b=e.onVirtualScroll,C=e.onVisibleChange,k=e.innerProps,S=e.extraRender,_=e.styles,E=Ht(e,nUe),$=d.useCallback(function(De){return typeof p=="function"?p(De):De==null?void 0:De[p]},[p]),M=ZHe($),P=Te(M,4),R=P[0],O=P[1],j=P[2],I=P[3],A=!!(h!==!1&&a&&o),N=d.useMemo(function(){return Object.values(j.maps).reduce(function(De,Ye){return De+Ye},0)},[j.id,j.maps]),F=A&&u&&(Math.max(o*u.length,N)>a||!!g),K=m==="rtl",L=Ee(r,ne({},"".concat(r,"-rtl"),K),i),V=u||rUe,B=d.useRef(),U=d.useRef(),Y=d.useRef(),ee=d.useState(0),ie=Te(ee,2),Z=ie[0],X=ie[1],ae=d.useState(0),oe=Te(ae,2),le=oe[0],ce=oe[1],pe=d.useState(!1),me=Te(pe,2),re=me[0],fe=me[1],ve=function(){fe(!0)},$e=function(){fe(!1)},Ce={getKey:$};function be(De){X(function(Ye){var ot;typeof De=="function"?ot=De(Ye):ot=De;var Re=ut(ot);return B.current.scrollTop=Re,Re})}var Se=d.useRef({start:0,end:V.length}),we=d.useRef(),se=KHe(V,$),ye=Te(se,1),Oe=ye[0];we.current=Oe;var z=d.useMemo(function(){if(!A)return{scrollHeight:void 0,start:0,end:V.length-1,offset:void 0};if(!F){var De;return{scrollHeight:((De=U.current)===null||De===void 0?void 0:De.offsetHeight)||0,start:0,end:V.length-1,offset:void 0}}for(var Ye=0,ot,Re,It,rt=V.length,$t=0;$t=Z&&ot===void 0&&(ot=$t,Re=Ye),T>Z+a&&It===void 0&&(It=$t),Ye=T}return ot===void 0&&(ot=0,Re=0,It=Math.ceil(a/o)),It===void 0&&(It=V.length-1),It=Math.min(It+1,V.length-1),{scrollHeight:Ye,start:ot,end:It,offset:Re}},[F,A,Z,V,I,a]),H=z.scrollHeight,G=z.start,de=z.end,xe=z.offset;Se.current.start=G,Se.current.end=de;var he=d.useState({width:0,height:a}),Ue=Te(he,2),We=Ue[0],ge=Ue[1],ze=function(Ye){ge({width:Ye.offsetWidth,height:Ye.offsetHeight})},Ve=d.useRef(),Be=d.useRef(),Xe=d.useMemo(function(){return RY(We.width,g)},[We.width,g]),Ke=d.useMemo(function(){return RY(We.height,H)},[We.height,H]),qe=H-a,Et=d.useRef(qe);Et.current=qe;function ut(De){var Ye=De;return Number.isNaN(Et.current)||(Ye=Math.min(Ye,Et.current)),Ye=Math.max(Ye,0),Ye}var gt=Z<=0,Ze=Z>=qe,nt=le<=0,jt=le>=g,Lt=_he(gt,Ze,nt,jt),Bt=function(){return{x:K?-le:le,y:Z}},Ut=d.useRef(Bt()),Ne=Vn(function(De){if(b){var Ye=q(q({},Bt()),De);(Ut.current.x!==Ye.x||Ut.current.y!==Ye.y)&&(b(Ye),Ut.current=Ye)}});function He(De,Ye){var ot=De;Ye?(Va.flushSync(function(){ce(ot)}),Ne()):be(ot)}function Le(De){var Ye=De.currentTarget.scrollTop;Ye!==Z&&be(Ye),w==null||w(De),Ne()}var Qe=function(Ye){var ot=Ye,Re=g?g-We.width:0;return ot=Math.max(ot,0),ot=Math.min(ot,Re),ot},pt=Vn(function(De,Ye){Ye?(Va.flushSync(function(){ce(function(ot){var Re=ot+(K?-De:De);return Qe(Re)})}),Ne()):be(function(ot){var Re=ot+De;return Re})}),xt=GHe(A,gt,Ze,nt,jt,!!g,pt),Nt=Te(xt,2),Ot=Nt[0],Pt=Nt[1];QHe(A,B,function(De,Ye,ot,Re){var It=Re;return Lt(De,Ye,ot)?!1:!It||!It._virtualHandled?(It&&(It._virtualHandled=!0),Ot({preventDefault:function(){},deltaX:De?Ye:0,deltaY:De?0:Ye}),!0):!1}),nr(function(){function De(ot){var Re=gt&&ot.detail<0,It=Ze&&ot.detail>0;A&&!Re&&!It&&ot.preventDefault()}var Ye=B.current;return Ye.addEventListener("wheel",Ot,{passive:!1}),Ye.addEventListener("DOMMouseScroll",Pt,{passive:!0}),Ye.addEventListener("MozMousePixelScroll",De,{passive:!1}),function(){Ye.removeEventListener("wheel",Ot),Ye.removeEventListener("DOMMouseScroll",Pt),Ye.removeEventListener("MozMousePixelScroll",De)}},[A,gt,Ze]),nr(function(){if(g){var De=Qe(le);ce(De),Ne({x:De})}},[We.width,g]);var st=function(){var Ye,ot;(Ye=Ve.current)===null||Ye===void 0||Ye.delayHidden(),(ot=Be.current)===null||ot===void 0||ot.delayHidden()},Ct=eUe(B,V,j,o,$,function(){return O(!0)},be,st);d.useImperativeHandle(t,function(){return{nativeElement:Y.current,getScrollInfo:Bt,scrollTo:function(Ye){function ot(Re){return Re&&Kt(Re)==="object"&&("left"in Re||"top"in Re)}ot(Ye)?(Ye.left!==void 0&&ce(Qe(Ye.left)),Ct(Ye.top)):Ct(Ye)}}}),nr(function(){if(C){var De=V.slice(G,de+1);C(De,V)}},[G,de,V]);var kt=YHe(V,$,j,o),qt=S==null?void 0:S({start:G,end:de,virtual:F,offsetX:le,offsetY:xe,rtl:K,getSize:kt}),vt=VHe(V,G,de,g,le,R,f,Ce),At=null;a&&(At=q(ne({},l?"height":"maxHeight",a),iUe),A&&(At.overflowY="hidden",g&&(At.overflowX="hidden"),re&&(At.pointerEvents="none")));var dt={};return K&&(dt.dir="rtl"),d.createElement("div",tt({ref:Y,style:q(q({},c),{},{position:"relative"}),className:L},dt,E),d.createElement(Go,{onResize:ze},d.createElement(y,{className:"".concat(r,"-holder"),style:At,ref:B,onScroll:Le,onMouseEnter:st},d.createElement(Che,{prefixCls:r,height:H,offsetX:le,offsetY:xe,scrollWidth:g,onInnerResize:O,ref:U,innerProps:k,rtl:K,extra:qt},vt))),F&&H>a&&d.createElement(OY,{ref:Ve,prefixCls:r,scrollOffset:Z,scrollRange:H,rtl:K,onScroll:He,onStartMove:ve,onStopMove:$e,spinSize:Ke,containerSize:We.height,style:_==null?void 0:_.verticalScrollBar,thumbStyle:_==null?void 0:_.verticalScrollBarThumb}),F&&g>We.width&&d.createElement(OY,{ref:Be,prefixCls:r,scrollOffset:le,scrollRange:g,rtl:K,onScroll:He,onStartMove:ve,onStopMove:$e,spinSize:Xe,containerSize:We.width,horizontal:!0,style:_==null?void 0:_.horizontalScrollBar,thumbStyle:_==null?void 0:_.horizontalScrollBarThumb}))}var gB=d.forwardRef(aUe);gB.displayName="List";function oUe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var sUe=["disabled","title","children","style","className"];function IY(e){return typeof e=="string"||typeof e=="number"}var lUe=function(t,n){var r=dB(),i=r.prefixCls,a=r.id,o=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,f=r.notFoundContent,p=r.onPopupScroll,h=d.useContext(fB),m=h.maxCount,g=h.flattenOptions,v=h.onActiveValue,y=h.defaultActiveFirstOption,w=h.onSelect,b=h.menuItemSelectedIcon,C=h.rawValues,k=h.fieldNames,S=h.virtual,_=h.direction,E=h.listHeight,$=h.listItemHeight,M=h.optionRender,P="".concat(i,"-item"),R=dg(function(){return g},[o,g],function(le,ce){return ce[0]&&le[1]!==ce[1]}),O=d.useRef(null),j=d.useMemo(function(){return s&&jj(m)&&(C==null?void 0:C.size)>=m},[s,m,C==null?void 0:C.size]),I=function(ce){ce.preventDefault()},A=function(ce){var pe;(pe=O.current)===null||pe===void 0||pe.scrollTo(typeof ce=="number"?{index:ce}:ce)},N=d.useCallback(function(le){return l==="combobox"?!1:C.has(le)},[l,lt(C).toString(),C.size]),F=function(ce){for(var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,me=R.length,re=0;re1&&arguments[1]!==void 0?arguments[1]:!1;B(ce);var me={source:pe?"keyboard":"mouse"},re=R[ce];if(!re){v(null,-1,me);return}v(re.value,ce,me)};d.useEffect(function(){U(y!==!1?F(0):-1)},[R.length,c]);var Y=d.useCallback(function(le){return l==="combobox"?String(le).toLowerCase()===c.toLowerCase():C.has(le)},[l,c,lt(C).toString(),C.size]);d.useEffect(function(){var le=setTimeout(function(){if(!s&&o&&C.size===1){var pe=Array.from(C)[0],me=R.findIndex(function(re){var fe=re.data;return fe.value===pe});me!==-1&&(U(me),A(me))}});if(o){var ce;(ce=O.current)===null||ce===void 0||ce.scrollTo(void 0)}return function(){return clearTimeout(le)}},[o,c]);var ee=function(ce){ce!==void 0&&w(ce,{selected:!C.has(ce)}),s||u(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(ce){var pe=ce.which,me=ce.ctrlKey;switch(pe){case mt.N:case mt.P:case mt.UP:case mt.DOWN:{var re=0;if(pe===mt.UP?re=-1:pe===mt.DOWN?re=1:oUe()&&me&&(pe===mt.N?re=1:pe===mt.P&&(re=-1)),re!==0){var fe=F(V+re,re);A(fe),U(fe,!0)}break}case mt.TAB:case mt.ENTER:{var ve,$e=R[V];$e&&!($e!=null&&(ve=$e.data)!==null&&ve!==void 0&&ve.disabled)&&!j?ee($e.value):ee(void 0),o&&ce.preventDefault();break}case mt.ESC:u(!1),o&&ce.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ce){A(ce)}}}),R.length===0)return d.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(P,"-empty"),onMouseDown:I},f);var ie=Object.keys(k).map(function(le){return k[le]}),Z=function(ce){return ce.label};function X(le,ce){var pe=le.group;return{role:pe?"presentation":"option",id:"".concat(a,"_list_").concat(ce)}}var ae=function(ce){var pe=R[ce];if(!pe)return null;var me=pe.data||{},re=me.value,fe=pe.group,ve=Fi(me,!0),$e=Z(pe);return pe?d.createElement("div",tt({"aria-label":typeof $e=="string"&&!fe?$e:null},ve,{key:ce},X(pe,ce),{"aria-selected":Y(re)}),re):null},oe={role:"listbox",id:"".concat(a,"_list")};return d.createElement(d.Fragment,null,S&&d.createElement("div",tt({},oe,{style:{height:0,width:0,overflow:"hidden"}}),ae(V-1),ae(V),ae(V+1)),d.createElement(gB,{itemKey:"key",ref:O,data:R,height:E,itemHeight:$,fullHeight:!1,onMouseDown:I,onScroll:p,virtual:S,direction:_,innerProps:S?null:oe},function(le,ce){var pe=le.group,me=le.groupOption,re=le.data,fe=le.label,ve=le.value,$e=re.key;if(pe){var Ce,be=(Ce=re.title)!==null&&Ce!==void 0?Ce:IY(fe)?fe.toString():void 0;return d.createElement("div",{className:Ee(P,"".concat(P,"-group"),re.className),title:be},fe!==void 0?fe:$e)}var Se=re.disabled,we=re.title;re.children;var se=re.style,ye=re.className,Oe=Ht(re,sUe),z=$r(Oe,ie),H=N(ve),G=Se||!H&&j,de="".concat(P,"-option"),xe=Ee(P,de,ye,ne(ne(ne(ne({},"".concat(de,"-grouped"),me),"".concat(de,"-active"),V===ce&&!G),"".concat(de,"-disabled"),G),"".concat(de,"-selected"),H)),he=Z(le),Ue=!b||typeof b=="function"||H,We=typeof he=="number"?he:he||ve,ge=IY(We)?We.toString():void 0;return we!==void 0&&(ge=we),d.createElement("div",tt({},Fi(z),S?{}:X(le,ce),{"aria-selected":Y(ve),className:xe,title:ge,onMouseMove:function(){V===ce||G||U(ce)},onClick:function(){G||ee(ve)},style:se}),d.createElement("div",{className:"".concat(de,"-content")},typeof M=="function"?M(le,{index:ce}):We),d.isValidElement(b)||H,Ue&&d.createElement(b8,{className:"".concat(P,"-option-state"),customizeIcon:b,customizeIconProps:{value:ve,disabled:G,isSelected:H}},H?"✓":null))}))},cUe=d.forwardRef(lUe);const uUe=function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var a=n.current,o=a.values,s=a.options,l=e.map(function(f){if(f.label===void 0){var p;return q(q({},f),{},{label:(p=o.get(f.value))===null||p===void 0?void 0:p.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=c,n.current.options=u,l},[e,t]),i=d.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,i]};function L9(e,t){return whe(e).join("").toUpperCase().includes(t)}const dUe=function(e,t,n,r,i){return d.useMemo(function(){if(!n||r===!1)return e;var a=t.options,o=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:function(h,m){return i?L9(m[i],u):m[a]?L9(m[o!=="children"?o:"label"],u):L9(m[s],u)},p=c?function(h){return Nj(h)}:function(h){return h};return e.forEach(function(h){if(h[a]){var m=f(n,p(h));if(m)l.push(h);else{var g=h[a].filter(function(v){return f(n,p(v))});g.length&&l.push(q(q({},h),{},ne({},a,g)))}return}f(n,p(h))&&l.push(h)}),l},[e,r,i,n,t])};var jY=0,fUe=Ws();function pUe(){var e;return fUe?(e=jY,jY+=1):e="TEST_OR_SSR",e}function vB(e){var t=d.useState(),n=Te(t,2),r=n[0],i=n[1];return d.useEffect(function(){i("rc_select_".concat(pUe()))},[]),e||r}var hUe=["children","value"],mUe=["children"];function gUe(e){var t=e,n=t.key,r=t.props,i=r.children,a=r.value,o=Ht(r,hUe);return q({key:n,value:a!==void 0?a:n,children:i},o)}function khe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Xi(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var i=n,a=i.type.isSelectOptGroup,o=i.key,s=i.props,l=s.children,c=Ht(s,mUe);return t||!a?gUe(n):q(q({key:"__RC_SELECT_GRP__".concat(o===null?r:o,"__"),label:o},c),{},{options:khe(l)})}).filter(function(n){return n})}var vUe=function(t,n,r,i,a){return d.useMemo(function(){var o=t,s=!t;s&&(o=khe(n));var l=new Map,c=new Map,u=function(h,m,g){g&&typeof g=="string"&&h.set(m[g],m)},f=function p(h){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g0?Le(xt.options):xt.options}):xt})},We=d.useMemo(function(){return w?Ue(he):he},[he,w,oe]),ge=d.useMemo(function(){return LHe(We,{fieldNames:Z,childrenAsData:ee})},[We,Z,ee]),ze=function(Qe){var pt=fe(Qe);if(be(pt),L&&(pt.length!==ye.length||pt.some(function(Ot,Pt){var st;return((st=ye[Pt])===null||st===void 0?void 0:st.value)!==(Ot==null?void 0:Ot.value)}))){var xt=K?pt:pt.map(function(Ot){return Ot.value}),Nt=pt.map(function(Ot){return Nj(Oe(Ot.value))});L(Y?xt:xt[0],Y?Nt:Nt[0])}},Ve=d.useState(null),Be=Te(Ve,2),Xe=Be[0],Ke=Be[1],qe=d.useState(0),Et=Te(qe,2),ut=Et[0],gt=Et[1],Ze=E!==void 0?E:r!=="combobox",nt=d.useCallback(function(Le,Qe){var pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},xt=pt.source,Nt=xt===void 0?"keyboard":xt;gt(Qe),o&&r==="combobox"&&Le!==null&&Nt==="keyboard"&&Ke(String(Le))},[o,r]),jt=function(Qe,pt,xt){var Nt=function(){var De,Ye=Oe(Qe);return[K?{label:Ye==null?void 0:Ye[Z.label],value:Qe,key:(De=Ye==null?void 0:Ye.key)!==null&&De!==void 0?De:Qe}:Qe,Nj(Ye)]};if(pt&&h){var Ot=Nt(),Pt=Te(Ot,2),st=Pt[0],Ct=Pt[1];h(st,Ct)}else if(!pt&&m&&xt!=="clear"){var kt=Nt(),qt=Te(kt,2),vt=qt[0],At=qt[1];m(vt,At)}},Lt=NY(function(Le,Qe){var pt,xt=Y?Qe.selected:!0;xt?pt=Y?[].concat(lt(ye),[Le]):[Le]:pt=ye.filter(function(Nt){return Nt.value!==Le}),ze(pt),jt(Le,xt),r==="combobox"?Ke(""):(!Aj||p)&&(le(""),Ke(""))}),Bt=function(Qe,pt){ze(Qe);var xt=pt.type,Nt=pt.values;(xt==="remove"||xt==="clear")&&Nt.forEach(function(Ot){jt(Ot.value,!1,xt)})},Ut=function(Qe,pt){if(le(Qe),Ke(null),pt.source==="submit"){var xt=(Qe||"").trim();if(xt){var Nt=Array.from(new Set([].concat(lt(H),[xt])));ze(Nt),jt(xt,!0),le("")}return}pt.source!=="blur"&&(r==="combobox"&&ze(Qe),u==null||u(Qe))},Ne=function(Qe){var pt=Qe;r!=="tags"&&(pt=Qe.map(function(Nt){var Ot=me.get(Nt);return Ot==null?void 0:Ot.value}).filter(function(Nt){return Nt!==void 0}));var xt=Array.from(new Set([].concat(lt(H),lt(pt))));ze(xt),xt.forEach(function(Nt){jt(Nt,!0)})},He=d.useMemo(function(){var Le=M!==!1&&v!==!1;return q(q({},ce),{},{flattenOptions:ge,onActiveValue:nt,defaultActiveFirstOption:Ze,onSelect:Lt,menuItemSelectedIcon:$,rawValues:H,fieldNames:Z,virtual:Le,direction:P,listHeight:O,listItemHeight:I,childrenAsData:ee,maxCount:V,optionRender:S})},[V,ce,ge,nt,Ze,Lt,$,H,Z,M,v,P,O,I,ee,S]);return d.createElement(fB.Provider,{value:He},d.createElement(pB,tt({},B,{id:U,prefixCls:a,ref:t,omitDomProps:bUe,mode:r,displayValues:z,onDisplayValuesChange:Bt,direction:P,searchValue:oe,onSearch:Ut,autoClearSearchValue:p,onSearchSplit:Ne,dropdownMatchSelectWidth:v,OptionList:cUe,emptyOptions:!ge.length,activeValue:Xe,activeDescendantId:"".concat(U,"_list_").concat(ut)})))}),yB=xUe;yB.Option=mB;yB.OptGroup=hB;function Al(e,t,n){return Ee({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Mu=(e,t)=>t||e,SUe=()=>{const[,e]=ka(),[t]=Ga("Empty"),r=new ur(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),d.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),d.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),d.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),d.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},CUe=()=>{const[,e]=ka(),[t]=Ga("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:l}=d.useMemo(()=>({borderColor:new ur(n).onBackground(a).toHexString(),shadowColor:new ur(r).onBackground(a).toHexString(),contentColor:new ur(i).onBackground(a).toHexString()}),[n,r,i,a]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:o},d.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),d.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},_Ue=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},kUe=Jn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=Hn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[_Ue(i)]});var EUe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l;const{className:c,rootClassName:u,prefixCls:f,image:p=Ehe,description:h,children:m,imageStyle:g,style:v,classNames:y,styles:w}=e,b=EUe(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:C,direction:k,empty:S}=d.useContext(Xt),_=C("empty",f),[E,$,M]=kUe(_),[P]=Ga("Empty"),R=typeof h<"u"?h:P==null?void 0:P.description,O=typeof R=="string"?R:"empty";let j=null;return typeof p=="string"?j=d.createElement("img",{alt:O,src:p}):j=p,E(d.createElement("div",Object.assign({className:Ee($,M,_,S==null?void 0:S.className,{[`${_}-normal`]:p===$he,[`${_}-rtl`]:k==="rtl"},c,u,(t=S==null?void 0:S.classNames)===null||t===void 0?void 0:t.root,y==null?void 0:y.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=S==null?void 0:S.styles)===null||n===void 0?void 0:n.root),S==null?void 0:S.style),w==null?void 0:w.root),v)},b),d.createElement("div",{className:Ee(`${_}-image`,(r=S==null?void 0:S.classNames)===null||r===void 0?void 0:r.image,y==null?void 0:y.image),style:Object.assign(Object.assign(Object.assign({},g),(i=S==null?void 0:S.styles)===null||i===void 0?void 0:i.image),w==null?void 0:w.image)},j),R&&d.createElement("div",{className:Ee(`${_}-description`,(a=S==null?void 0:S.classNames)===null||a===void 0?void 0:a.description,y==null?void 0:y.description),style:Object.assign(Object.assign({},(o=S==null?void 0:S.styles)===null||o===void 0?void 0:o.description),w==null?void 0:w.description)},R),m&&d.createElement("div",{className:Ee(`${_}-footer`,(s=S==null?void 0:S.classNames)===null||s===void 0?void 0:s.footer,y==null?void 0:y.footer),style:Object.assign(Object.assign({},(l=S==null?void 0:S.styles)===null||l===void 0?void 0:l.footer),w==null?void 0:w.footer)},m)))};za.PRESENTED_IMAGE_DEFAULT=Ehe;za.PRESENTED_IMAGE_SIMPLE=$he;const qg=e=>{const{componentName:t}=e,{getPrefixCls:n}=d.useContext(Xt),r=n("empty");switch(t){case"Table":case"List":return te.createElement(za,{image:za.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return te.createElement(za,{image:za.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return te.createElement(za,null)}},Od=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:a,[e]:o}=d.useContext(Xt),s=d.useContext(Wpe),l=o==null?void 0:o.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=s??l)!==null&&r!==void 0?r:a)!==null&&i!==void 0?i:"outlined";const u=Jje.includes(c);return[c,u]},$Ue=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function bB(e,t){return e||$Ue(t)}const AY=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},MUe=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},ar(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` ${i}${s}bottomLeft, ${a}${s}bottomLeft - `]:{animationName:r8},[` + `]:{animationName:i8},[` ${i}${s}topLeft, ${a}${s}topLeft, ${i}${s}topRight, ${a}${s}topRight - `]:{animationName:a8},[`${o}${s}bottomLeft`]:{animationName:i8},[` + `]:{animationName:o8},[`${o}${s}bottomLeft`]:{animationName:a8},[` ${o}${s}topLeft, ${o}${s}topRight - `]:{animationName:o8},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},RY(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},oo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},RY(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},md(e,"slide-up"),md(e,"slide-down"),M0(e,"move-up"),M0(e,"move-down")]},_he=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0),o=e.max(e.calc(a).sub(i).equal(),0);return{basePadding:a,containerPadding:o,itemHeight:Me(t),itemLineHeight:Me(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},$Ue=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},khe=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},yh()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},MUe=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,o=$Ue(e),s=t?`${n}-${t}`:"",l=_he(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},khe(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Me(r)} 0`,lineHeight:Me(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Me(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Me(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item, + `]:{animationName:s8},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},AY(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ao),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},AY(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},yd(e,"slide-up"),yd(e,"slide-down"),O0(e,"move-up"),O0(e,"move-down")]},Mhe=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0),o=e.max(e.calc(a).sub(i).equal(),0);return{basePadding:a,containerPadding:o,itemHeight:Me(t),itemLineHeight:Me(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},TUe=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},The=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},wh()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},PUe=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,o=TUe(e),s=t?`${n}-${t}`:"",l=Mhe(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},The(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Me(r)} 0`,lineHeight:Me(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Me(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Me(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item, ${n}-prefix + ${n}-selection-wrap - `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:Me(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function D9(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` + `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:Me(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function B9(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[MUe(e,t),i]}const TUe=e=>{const{componentCls:t}=e,n=Hn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Hn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[D9(e),D9(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},D9(r,"lg")]};function F9(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),o=t?`${n}-${t}`:"";return{[`${n}-single${o}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},ar(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[PUe(e,t),i]}const OUe=e=>{const{componentCls:t}=e,n=Hn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Hn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[B9(e),B9(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},B9(r,"lg")]};function z9(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),o=t?`${n}-${t}`:"";return{[`${n}-single${o}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},ar(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{display:"block",padding:0,lineHeight:Me(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-search, &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Me(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:Me(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Me(r)}`,"&:after":{display:"none"}}}}}}}function PUe(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[F9(e),F9(Hn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Me(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Me(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:Me(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Me(r)}`,"&:after":{display:"none"}}}}}}}function RUe(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[z9(e),z9(Hn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Me(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},F9(Hn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const OUe=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:h,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:b,colorPrimary:w,controlOutline:_}=e,k=s*2,S=r*2,C=Math.min(i-k,i-S),E=Math.min(a-k,a-S),$=Math.min(o-k,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:h,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:E,multipleItemHeightLG:$,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:b,activeBorderColor:w,activeOutlineColor:_,selectAffixPadding:s}},Ehe=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Me(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Me(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},jY=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ehe(e,t))}),IUe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ehe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),jY(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),jY(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),$he=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Me(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},NY=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},$he(e,t))}),RUe=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},$he(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),NY(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),NY(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),jUe=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Me(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),NUe=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},IUe(e)),RUe(e)),jUe(e))}),AUe=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},DUe=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},FUe=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},AUe(e)),DUe(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},oo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},oo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},yh()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},LUe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},FUe(e),PUe(e),TUe(e),EUe(e),{[`${t}-rtl`]:{direction:"rtl"}},Wg(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},yB=Jn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Hn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[LUe(r),NUe(r)]},OUe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var BUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},zUe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:BUe}))},sd=d.forwardRef(zUe),HUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},UUe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:HUe}))},$y=d.forwardRef(UUe),WUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},VUe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:WUe}))},My=d.forwardRef(VUe);function b8(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:o,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:p}=e;const h=n??d.createElement($d,null),m=b=>t===null&&!s&&!f?null:d.createElement(d.Fragment,null,c!==!1&&b,s&&u);let g=null;if(t!==void 0)g=m(t);else if(a)g=m(d.createElement(pu,{spin:!0}));else{const b=`${l}-suffix`;g=w=>{let{open:_,showSearch:k}=w;return m(_&&k?d.createElement(My,{className:b}):d.createElement($y,{className:b}))}}let v=null;r!==void 0?v=r:o?v=d.createElement(sd,null):v=null;let y=null;return i!==void 0?y=i:y=d.createElement(Cu,null),{clearIcon:h,suffixIcon:g,itemIcon:v,removeIcon:y}}function bB(e,t){return t!==void 0?t:e!==null}var qUe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i,className:a,rootClassName:o,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:f,listItemHeight:p,size:h,disabled:m,notFoundContent:g,status:v,builtinPlacements:y,dropdownMatchSelectWidth:b,popupMatchSelectWidth:w,direction:_,style:k,allowClear:S,variant:C,dropdownStyle:E,transitionName:$,tagRender:M,maxCount:P,prefix:I}=e,O=qUe(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:A,getPrefixCls:R,renderEmpty:j,direction:N,virtual:D,popupMatchSelectWidth:V,popupOverflow:F,select:K}=d.useContext(Zt),[,B]=$a(),U=p??(B==null?void 0:B.controlHeight),Z=R("select",r),ee=R(),ie=_??N,{compactSize:Y,compactItemClassnames:X}=_u(Z,ie),[ae,oe]=Md("select",C,i),le=qr(Z),[ce,pe,me]=yB(Z,le),re=d.useMemo(()=>{const{mode:Xe}=e;if(Xe!=="combobox")return Xe===Mhe?"combobox":Xe},[e.mode]),fe=re==="multiple"||re==="tags",ve=bB(e.suffixIcon,e.showArrow),$e=(n=w??b)!==null&&n!==void 0?n:V,{status:Ce,hasFeedback:be,isFormItemInput:Se,feedbackIcon:we}=d.useContext(sa),se=ku(Ce,v);let ye;g!==void 0?ye=g:re==="combobox"?ye=null:ye=(j==null?void 0:j("Select"))||d.createElement(Vg,{componentName:"Select"});const{suffixIcon:Oe,itemIcon:z,removeIcon:H,clearIcon:G}=b8(Object.assign(Object.assign({},O),{multiple:fe,hasFeedback:be,feedbackIcon:we,showSuffixIcon:ve,prefixCls:Z,componentName:"Select"})),de=S===!0?{clearIcon:G}:S,xe=$r(O,["suffixIcon","itemIcon"]),he=Ee(l||c,{[`${Z}-dropdown-${ie}`]:ie==="rtl"},o,me,le,pe),Ue=Hi(Xe=>{var Ke;return(Ke=h??Y)!==null&&Ke!==void 0?Ke:Xe}),We=d.useContext(ga),ge=m??We,ze=Ee({[`${Z}-lg`]:Ue==="large",[`${Z}-sm`]:Ue==="small",[`${Z}-rtl`]:ie==="rtl",[`${Z}-${ae}`]:oe,[`${Z}-in-form-item`]:Se},jl(Z,se,be),X,K==null?void 0:K.className,a,o,me,le,pe),Ve=d.useMemo(()=>f!==void 0?f:ie==="rtl"?"bottomRight":"bottomLeft",[f,ie]),[Be]=_c("SelectLike",E==null?void 0:E.zIndex);return ce(d.createElement(gB,Object.assign({ref:t,virtual:D,showSearch:K==null?void 0:K.showSearch},xe,{style:Object.assign(Object.assign({},K==null?void 0:K.style),k),dropdownMatchSelectWidth:$e,transitionName:so(ee,"slide-up",$),builtinPlacements:vB(y,F),listHeight:u,listItemHeight:U,mode:re,prefixCls:Z,placement:Ve,direction:ie,prefix:I,suffixIcon:Oe,menuItemSelectedIcon:z,removeIcon:H,allowClear:de,notFoundContent:ye,className:ze,getPopupContainer:s||A,dropdownClassName:he,disabled:ge,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:Be}),maxCount:fe?P:void 0,tagRender:fe?M:void 0})))},Yf=d.forwardRef(KUe),GUe=Gf(Yf,"dropdownAlign");Yf.SECRET_COMBOBOX_MODE_DO_NOT_USE=Mhe;Yf.Option=pB;Yf.OptGroup=fB;Yf._InternalPanelDoNotUseOrYouWillBeFired=GUe;const gd=["xxl","xl","lg","md","sm","xs"],YUe=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),XUe=e=>{const t=e,n=[].concat(gd).reverse();return n.forEach((r,i)=>{const a=r.toUpperCase(),o=`screen${a}Min`,s=`screen${a}`;if(!(t[o]<=t[s]))throw new Error(`${o}<=${s} fails : !(${t[o]}<=${t[s]})`);if(i{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(a){return i=a,n.forEach(o=>o(i)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(i),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const o=t[a],s=this.matchHandlers[o];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const o=t[a],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[a]:u}))},l=window.matchMedia(o);l.addListener(s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}const Phe=(e,t)=>{if(t&&typeof t=="object")for(let n=0;nt+1,0);return e}function k4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=d.useRef({}),n=Ohe(),r=The();return nr(()=>{const i=r.subscribe(a=>{t.current=a,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const jj=d.createContext({}),ZUe=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:a,containerSize:o,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:f,borderRadius:p,borderRadiusLG:h,borderRadiusSM:m,lineWidth:g,lineType:v}=e,y=(b,w,_)=>({width:b,height:b,borderRadius:"50%",[`&${n}-square`]:{borderRadius:_},[`&${n}-icon`]:{fontSize:w,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${Me(g)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(o,c,p)),{"&-lg":Object.assign({},y(s,u,h)),"&-sm":Object.assign({},y(l,f,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},QUe=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},JUe=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:a,fontSizeXL:o,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+o)/2),textFontSizeLG:s,textFontSizeSM:i,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},Ihe=Jn("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Hn(e,{avatarBg:n,avatarColor:t});return[ZUe(r),QUe(r)]},JUe);var eWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const[n,r]=d.useState(1),[i,a]=d.useState(!1),[o,s]=d.useState(!0),l=d.useRef(null),c=d.useRef(null),u=va(t,l),{getPrefixCls:f,avatar:p}=d.useContext(Zt),h=d.useContext(jj),m=()=>{if(!c.current||!l.current)return;const X=c.current.offsetWidth,ae=l.current.offsetWidth;if(X!==0&&ae!==0){const{gap:oe=4}=e;oe*2{a(!0)},[]),d.useEffect(()=>{s(!0),r(1)},[e.src]),d.useEffect(m,[e.gap]);const g=()=>{const{onError:X}=e;(X==null?void 0:X())!==!1&&s(!1)},{prefixCls:v,shape:y,size:b,src:w,srcSet:_,icon:k,className:S,rootClassName:C,alt:E,draggable:$,children:M,crossOrigin:P}=e,I=eWe(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),O=Hi(X=>{var ae,oe;return(oe=(ae=b??(h==null?void 0:h.size))!==null&&ae!==void 0?ae:X)!==null&&oe!==void 0?oe:"default"}),A=Object.keys(typeof O=="object"?O||{}:{}).some(X=>["xs","sm","md","lg","xl","xxl"].includes(X)),R=k4(A),j=d.useMemo(()=>{if(typeof O!="object")return{};const X=gd.find(oe=>R[oe]),ae=O[X];return ae?{width:ae,height:ae,fontSize:ae&&(k||M)?ae/2:18}:{}},[R,O]),N=f("avatar",v),D=qr(N),[V,F,K]=Ihe(N,D),B=Ee({[`${N}-lg`]:O==="large",[`${N}-sm`]:O==="small"}),U=d.isValidElement(w),Z=y||(h==null?void 0:h.shape)||"circle",ee=Ee(N,B,p==null?void 0:p.className,`${N}-${Z}`,{[`${N}-image`]:U||w&&o,[`${N}-icon`]:!!k},K,D,S,C,F),ie=typeof O=="number"?{width:O,height:O,fontSize:k?O/2:18}:{};let Y;if(typeof w=="string"&&o)Y=d.createElement("img",{src:w,draggable:$,srcSet:_,onError:g,alt:E,crossOrigin:P});else if(U)Y=w;else if(k)Y=k;else if(i||n!==1){const X=`scale(${n})`,ae={msTransform:X,WebkitTransform:X,transform:X};Y=d.createElement(Go,{onResize:m},d.createElement("span",{className:`${N}-string`,ref:c,style:Object.assign({},ae)},M))}else Y=d.createElement("span",{className:`${N}-string`,style:{opacity:0},ref:c},M);return delete I.onError,delete I.gap,V(d.createElement("span",Object.assign({},I,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ie),j),p==null?void 0:p.style),I.style),className:ee,ref:u}),Y))},Rhe=d.forwardRef(tWe),P0=e=>e?typeof e=="function"?e():e:null;function wB(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.bodyClassName,o=e.className,s=e.style;return d.createElement("div",{className:Ee("".concat(n,"-content"),o),style:s},d.createElement("div",{className:Ee("".concat(n,"-inner"),a),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var O1={shiftX:64,adjustY:1},I1={adjustX:1,shiftY:!0},ql=[0,0],nWe={left:{points:["cr","cl"],overflow:I1,offset:[-4,0],targetOffset:ql},right:{points:["cl","cr"],overflow:I1,offset:[4,0],targetOffset:ql},top:{points:["bc","tc"],overflow:O1,offset:[0,-4],targetOffset:ql},bottom:{points:["tc","bc"],overflow:O1,offset:[0,4],targetOffset:ql},topLeft:{points:["bl","tl"],overflow:O1,offset:[0,-4],targetOffset:ql},leftTop:{points:["tr","tl"],overflow:I1,offset:[-4,0],targetOffset:ql},topRight:{points:["br","tr"],overflow:O1,offset:[0,-4],targetOffset:ql},rightTop:{points:["tl","tr"],overflow:I1,offset:[4,0],targetOffset:ql},bottomRight:{points:["tr","br"],overflow:O1,offset:[0,4],targetOffset:ql},rightBottom:{points:["bl","br"],overflow:I1,offset:[4,0],targetOffset:ql},bottomLeft:{points:["tl","bl"],overflow:O1,offset:[0,4],targetOffset:ql},leftBottom:{points:["br","bl"],overflow:I1,offset:[-4,0],targetOffset:ql}},rWe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],iWe=function(t,n){var r=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,p=f===void 0?"rc-tooltip":f,h=t.children,m=t.onVisibleChange,g=t.afterVisibleChange,v=t.transitionName,y=t.animation,b=t.motion,w=t.placement,_=w===void 0?"right":w,k=t.align,S=k===void 0?{}:k,C=t.destroyTooltipOnHide,E=C===void 0?!1:C,$=t.defaultVisible,M=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var I=t.overlay,O=t.id,A=t.showArrow,R=A===void 0?!0:A,j=t.classNames,N=t.styles,D=Ut(t,rWe),V=d.useRef(null);d.useImperativeHandle(n,function(){return V.current});var F=q({},D);"visible"in t&&(F.popupVisible=t.visible);var K=function(){return d.createElement(wB,{key:"content",prefixCls:p,id:O,bodyClassName:j==null?void 0:j.body,overlayInnerStyle:q(q({},P),N==null?void 0:N.body)},I)};return d.createElement(Ey,tt({popupClassName:Ee(r,j==null?void 0:j.root),prefixCls:p,popup:K,action:a,builtinPlacements:nWe,popupPlacement:_,ref:V,popupAlign:S,getPopupContainer:M,onPopupVisibleChange:m,afterPopupVisibleChange:g,popupTransitionName:v,popupAnimation:y,popupMotion:b,defaultPopupVisible:$,autoDestroy:E,mouseLeaveDelay:c,popupStyle:q(q({},u),N==null?void 0:N.root),mouseEnterDelay:s,arrow:R},F),h)};const aWe=d.forwardRef(iWe);function w8(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=0,o=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,p=u,h=2*i-s,m=l,g=2*i-a,v=o,y=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),w=`polygon(${b}px 100%, 50% ${b}px, ${2*i-b}px 100%, ${b}px 100%)`,_=`path('M ${a} ${o} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${p} L ${h} ${m} A ${r} ${r} 0 0 0 ${g} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:_,arrowPolygon:w}}const jhe=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Me(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Nhe=8;function x8(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Nhe:r}}function vS(e,t){return e?t:{}}function xB(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},jhe(e,t,i)),{"&:before":{background:t}})]},vS(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Me(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),vS(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Me(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),vS(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),vS(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function oWe(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const AY={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},sWe={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},lWe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ahe(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,l={};return Object.keys(AY).forEach(c=>{const u=r&&sWe[c]||AY[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,lWe.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+i;break}const p=x8({contentRadius:a,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-p.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=p.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-p.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=p.arrowOffsetHorizontal*2-s;break}f.overflow=oWe(c,p,t,n),o&&(f.htmlRegion="visibleFirst")}),l}const cWe=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:p,sizePopupArrow:h}=e,m=t(o).add(h).add(p).equal(),g=t(o).mul(2).add(h).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${Me(e.calc(u).div(2).equal())} ${Me(f)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(o,Nhe)}},[`${n}-content`]:{position:"relative"}}),YE(e,(v,y)=>{let{darkColor:b}=y;return{[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:b},[`${n}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},xB(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},uWe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},x8({contentRadius:e.borderRadius,limitVerticalRadius:!0})),w8(Hn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Dhe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Jn("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=r,s=Hn(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[cWe(s),Cy(r,"zoom-big-fast")]},uWe,{resetStyle:!1,injectStyle:t})(e)},dWe=vg.map(e=>`${e}-inverse`),fWe=["success","processing","error","default","warning"];function S8(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ct(dWe),ct(vg)).includes(e):vg.includes(e)}function pWe(e){return fWe.includes(e)}function Fhe(e,t){const n=S8(t),r=Ee({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}const hWe=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:o}=e,{getPrefixCls:s}=d.useContext(Zt),l=s("tooltip",t),[c,u,f]=Dhe(l),p=Fhe(l,a),h=p.arrowStyle,m=Object.assign(Object.assign({},o),p.overlayStyle),g=Ee(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,p.className);return c(d.createElement("div",{className:g,style:h},d.createElement("div",{className:`${l}-arrow`}),d.createElement(wB,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:m}),i)))};var mWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o,s;const{prefixCls:l,openClassName:c,getTooltipContainer:u,color:f,overlayInnerStyle:p,children:h,afterOpenChange:m,afterVisibleChange:g,destroyTooltipOnHide:v,arrow:y=!0,title:b,overlay:w,builtinPlacements:_,arrowPointAtCenter:k=!1,autoAdjustOverflow:S=!0}=e,C=!!y,[,E]=$a(),{getPopupContainer:$,getPrefixCls:M,direction:P,tooltip:I}=d.useContext(Zt),O=Hg(),A=d.useRef(null),R=()=>{var xe;(xe=A.current)===null||xe===void 0||xe.forceAlign()};d.useImperativeHandle(t,()=>{var xe;return{forceAlign:R,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),R()},nativeElement:(xe=A.current)===null||xe===void 0?void 0:xe.nativeElement}});const[j,N]=In(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),D=!b&&!w&&b!==0,V=xe=>{var he,Ue;N(D?!1:xe),D||((he=e.onOpenChange)===null||he===void 0||he.call(e,xe),(Ue=e.onVisibleChange)===null||Ue===void 0||Ue.call(e,xe))},F=d.useMemo(()=>{var xe,he;let Ue=k;return typeof y=="object"&&(Ue=(he=(xe=y.pointAtCenter)!==null&&xe!==void 0?xe:y.arrowPointAtCenter)!==null&&he!==void 0?he:k),_||Ahe({arrowPointAtCenter:Ue,autoAdjustOverflow:S,arrowWidth:C?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})},[k,y,_,E]),K=d.useMemo(()=>b===0?b:w||b||"",[w,b]),B=d.createElement(mu,{space:!0},typeof K=="function"?K():K),{getPopupContainer:U,placement:Z="top",mouseEnterDelay:ee=.1,mouseLeaveDelay:ie=.1,overlayStyle:Y,rootClassName:X,overlayClassName:ae,styles:oe,classNames:le}=e,ce=mWe(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),pe=M("tooltip",l),me=M(),re=e["data-popover-inject"];let fe=j;!("open"in e)&&!("visible"in e)&&D&&(fe=!1);const ve=d.isValidElement(h)&&!Jfe(h)?h:d.createElement("span",null,h),$e=ve.props,Ce=!$e.className||typeof $e.className=="string"?Ee($e.className,c||`${pe}-open`):$e.className,[be,Se,we]=Dhe(pe,!re),se=Fhe(pe,f),ye=se.arrowStyle,Oe=Ee(ae,{[`${pe}-rtl`]:P==="rtl"},se.className,X,Se,we,I==null?void 0:I.className,(i=I==null?void 0:I.classNames)===null||i===void 0?void 0:i.root,le==null?void 0:le.root),z=Ee((a=I==null?void 0:I.classNames)===null||a===void 0?void 0:a.body,le==null?void 0:le.body),[H,G]=_c("Tooltip",ce.zIndex),de=d.createElement(aWe,Object.assign({},ce,{zIndex:H,showArrow:C,placement:Z,mouseEnterDelay:ee,mouseLeaveDelay:ie,prefixCls:pe,classNames:{root:Oe,body:z},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ye),(o=I==null?void 0:I.styles)===null||o===void 0?void 0:o.root),I==null?void 0:I.style),Y),oe==null?void 0:oe.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(s=I==null?void 0:I.styles)===null||s===void 0?void 0:s.body),p),oe==null?void 0:oe.body),se.overlayStyle)},getTooltipContainer:U||u||$,ref:A,builtinPlacements:F,overlay:B,visible:fe,onVisibleChange:V,afterVisibleChange:m??g,arrowContent:d.createElement("span",{className:`${pe}-arrow-content`}),motion:{motionName:so(me,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),fe?oa(ve,{className:Ce}):ve);return be(d.createElement(m4.Provider,{value:G},de))}),Ea=gWe;Ea._InternalPanelDoNotUseOrYouWillBeFired=hWe;const vWe=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:p,titleBorderBottom:h,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},ar(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:l,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:h,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},xB(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},yWe=e=>{const{componentCls:t}=e;return{[t]:vg.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},bWe=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:f}=e,p=n-r,h=p/2,m=p/2-t,g=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:o+30},w8(e)),x8({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:l,titlePadding:a?`${h}px ${g}px ${m}px`:0,titleBorderBottom:a?`${t}px ${c} ${u}`:"none",innerContentPadding:a?`${f}px ${g}px`:0})},Lhe=Jn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Hn(e,{popoverBg:t,popoverColor:n});return[vWe(r),yWe(r),Cy(r,"zoom-big")]},bWe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var wWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:d.createElement(d.Fragment,null,t&&d.createElement("div",{className:`${r}-title`},t),n&&d.createElement("div",{className:`${r}-inner-content`},n))},xWe=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:a="top",title:o,content:s,children:l}=e,c=P0(o),u=P0(s),f=Ee(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return d.createElement("div",{className:f,style:i},d.createElement("div",{className:`${n}-arrow`}),d.createElement(wB,Object.assign({},e,{className:t,prefixCls:n}),l||d.createElement(Bhe,{prefixCls:n,title:c,content:u})))},zhe=e=>{const{prefixCls:t,className:n}=e,r=wWe(e,["prefixCls","className"]),{getPrefixCls:i}=d.useContext(Zt),a=i("popover",t),[o,s,l]=Lhe(a);return o(d.createElement(xWe,Object.assign({},r,{prefixCls:a,hashId:s,className:Ee(n,l)})))};var SWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o,s;const{prefixCls:l,title:c,content:u,overlayClassName:f,placement:p="top",trigger:h="hover",children:m,mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,onOpenChange:y,overlayStyle:b={},styles:w,classNames:_}=e,k=SWe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:S,getPrefixCls:C}=d.useContext(Zt),E=C("popover",l),[$,M,P]=Lhe(E),I=C(),O=Ee(f,M,P,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.root,_==null?void 0:_.root),A=Ee((r=S==null?void 0:S.classNames)===null||r===void 0?void 0:r.body,_==null?void 0:_.body),[R,j]=In(!1,{value:(i=e.open)!==null&&i!==void 0?i:e.visible,defaultValue:(a=e.defaultOpen)!==null&&a!==void 0?a:e.defaultVisible}),N=(B,U)=>{j(B,!0),y==null||y(B,U)},D=B=>{B.keyCode===gt.ESC&&N(!1,B)},V=B=>{N(B)},F=P0(c),K=P0(u);return $(d.createElement(Ea,Object.assign({placement:p,trigger:h,mouseEnterDelay:g,mouseLeaveDelay:v},k,{prefixCls:E,classNames:{root:O,body:A},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(o=S==null?void 0:S.styles)===null||o===void 0?void 0:o.root),S==null?void 0:S.style),b),w==null?void 0:w.root),body:Object.assign(Object.assign({},(s=S==null?void 0:S.styles)===null||s===void 0?void 0:s.body),w==null?void 0:w.body)},ref:t,open:R,onOpenChange:V,overlay:F||K?d.createElement(Bhe,{prefixCls:E,title:F,content:K}):null,transitionName:so(I,"zoom-big",k.transitionName),"data-popover-inject":!0}),oa(m,{onKeyDown:B=>{var U,Z;d.isValidElement(m)&&((Z=m==null?void 0:(U=m.props).onKeyDown)===null||Z===void 0||Z.call(U,B)),D(B)}})))}),yc=CWe;yc._InternalPanelDoNotUseOrYouWillBeFired=zhe;const DY=e=>{const{size:t,shape:n}=d.useContext(jj),r=d.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return d.createElement(jj.Provider,{value:r},e.children)},_We=e=>{var t,n,r,i;const{getPrefixCls:a,direction:o}=d.useContext(Zt),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:f,maxStyle:p,size:h,shape:m,maxPopoverPlacement:g,maxPopoverTrigger:v,children:y,max:b}=e,w=a("avatar",s),_=`${w}-group`,k=qr(w),[S,C,E]=Ihe(w,k),$=Ee(_,{[`${_}-rtl`]:o==="rtl"},E,k,l,c,C),M=Zi(y).map((O,A)=>oa(O,{key:`avatar-key-${A}`})),P=(b==null?void 0:b.count)||f,I=M.length;if(P&&P{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:a,textFontSizeSM:o,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:f,marginXS:p,calc:h}=e,m=`${r}-scroll-number`,g=YE(e,(v,y)=>{let{darkColor:b}=y;return{[`&${t} ${t}-color-${v}`]:{background:b,[`&:not(${t}-count)`]:{color:b},"a:hover &":{background:b}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:a,lineHeight:Me(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(u).div(2).equal(),boxShadow:`0 0 0 ${Me(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:o,lineHeight:Me(f),borderRadius:h(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Me(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Me(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:RWe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:MWe,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:TWe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:PWe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:OWe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:IWe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[m]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${m}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Hhe=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,a=t,o=n,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return Hn(e,{badgeFontHeight:a,badgeShadowSize:o,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Uhe=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},NWe=Jn("Badge",e=>{const t=Hhe(e);return jWe(t)},Uhe),AWe=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:a}=e,o=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=YE(e,(c,u)=>{let{darkColor:f}=u;return{[`&${o}-color-${c}`]:{background:f,color:f}}});return{[s]:{position:"relative"},[o]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"absolute",top:r,padding:`0 ${Me(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Me(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${o}-text`]:{color:e.badgeTextColor},[`${o}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${Me(a(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${o}-placement-end`]:{insetInlineEnd:a(i).mul(-1).equal(),borderEndEndRadius:0,[`${o}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${o}-placement-start`]:{insetInlineStart:a(i).mul(-1).equal(),borderEndStartRadius:0,[`${o}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},DWe=Jn(["Badge","Ribbon"],e=>{const t=Hhe(e);return AWe(t)},Uhe),FWe=e=>{const{className:t,prefixCls:n,style:r,color:i,children:a,text:o,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=d.useContext(Zt),f=c("ribbon",n),p=`${f}-wrapper`,[h,m,g]=DWe(f,p),v=S8(i,!1),y=Ee(f,`${f}-placement-${s}`,{[`${f}-rtl`]:u==="rtl",[`${f}-color-${i}`]:v},t),b={},w={};return i&&!v&&(b.background=i,w.color=i),h(d.createElement("div",{className:Ee(p,l,m,g)},a,d.createElement("div",{className:Ee(y,m),style:Object.assign(Object.assign({},b),r)},d.createElement("span",{className:`${f}-text`},o),d.createElement("div",{className:`${f}-corner`,style:w}))))},FY=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),d.createElement("span",{style:a,className:Ee(`${t}-only-unit`,{current:r})},n)};function LWe(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const BWe=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),a=Math.abs(n),[o,s]=d.useState(i),[l,c]=d.useState(a),u=()=>{s(i),c(a)};d.useEffect(()=>{const h=setTimeout(u,1e3);return()=>clearTimeout(h)},[i]);let f,p;if(o===i||Number.isNaN(i)||Number.isNaN(o))f=[d.createElement(FY,Object.assign({},e,{key:i,current:!0}))],p={transition:"none"};else{f=[];const h=i+10,m=[];for(let b=i;b<=h;b+=1)m.push(b);const g=lb%10===o);f=(g<0?m.slice(0,v+1):m.slice(v)).map((b,w)=>{const _=b%10;return d.createElement(FY,Object.assign({},e,{key:b,value:_,offset:g<0?w-v:w,current:w===v}))}),p={transform:`translateY(${-LWe(o,i,g)}00%)`}}return d.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:u},f)};var zWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,count:r,className:i,motionClassName:a,style:o,title:s,show:l,component:c="sup",children:u}=e,f=zWe(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=d.useContext(Zt),h=p("scroll-number",n),m=Object.assign(Object.assign({},f),{"data-show":l,style:o,className:Ee(h,i,a),title:s});let g=r;if(r&&Number(r)%1===0){const v=String(r).split("");g=d.createElement("bdi",null,v.map((y,b)=>d.createElement(BWe,{prefixCls:h,count:Number(r),value:y,key:v.length-b})))}return o!=null&&o.borderColor&&(m.style=Object.assign(Object.assign({},o),{boxShadow:`0 0 0 1px ${o.borderColor} inset`})),u?oa(u,v=>({className:Ee(`${h}-custom-component`,v==null?void 0:v.className,a)})):d.createElement(c,Object.assign({},m,{ref:t}),g)});var UWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:f,color:p,count:h=null,overflowCount:m=99,dot:g=!1,size:v="default",title:y,offset:b,style:w,className:_,rootClassName:k,classNames:S,styles:C,showZero:E=!1}=e,$=UWe(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:M,direction:P,badge:I}=d.useContext(Zt),O=M("badge",s),[A,R,j]=NWe(O),N=h>m?`${m}+`:h,D=N==="0"||N===0,V=h===null||D&&!E,F=(u!=null||p!=null)&&V,K=g&&!D,B=K?"":N,U=d.useMemo(()=>(B==null||B===""||D&&!E)&&!K,[B,D,E,K]),Z=d.useRef(h);U||(Z.current=h);const ee=Z.current,ie=d.useRef(B);U||(ie.current=B);const Y=ie.current,X=d.useRef(K);U||(X.current=K);const ae=d.useMemo(()=>{if(!b)return Object.assign(Object.assign({},I==null?void 0:I.style),w);const ve={marginTop:b[1]};return P==="rtl"?ve.left=parseInt(b[0],10):ve.right=-parseInt(b[0],10),Object.assign(Object.assign(Object.assign({},ve),I==null?void 0:I.style),w)},[P,b,w,I==null?void 0:I.style]),oe=y??(typeof ee=="string"||typeof ee=="number"?ee:void 0),le=U||!f?null:d.createElement("span",{className:`${O}-status-text`},f),ce=!ee||typeof ee!="object"?void 0:oa(ee,ve=>({style:Object.assign(Object.assign({},ae),ve.style)})),pe=S8(p,!1),me=Ee(S==null?void 0:S.indicator,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.indicator,{[`${O}-status-dot`]:F,[`${O}-status-${u}`]:!!u,[`${O}-color-${p}`]:pe}),re={};p&&!pe&&(re.color=p,re.background=p);const fe=Ee(O,{[`${O}-status`]:F,[`${O}-not-a-wrapper`]:!c,[`${O}-rtl`]:P==="rtl"},_,k,I==null?void 0:I.className,(r=I==null?void 0:I.classNames)===null||r===void 0?void 0:r.root,S==null?void 0:S.root,R,j);if(!c&&F){const ve=ae.color;return A(d.createElement("span",Object.assign({},$,{className:fe,style:Object.assign(Object.assign(Object.assign({},C==null?void 0:C.root),(i=I==null?void 0:I.styles)===null||i===void 0?void 0:i.root),ae)}),d.createElement("span",{className:me,style:Object.assign(Object.assign(Object.assign({},C==null?void 0:C.indicator),(a=I==null?void 0:I.styles)===null||a===void 0?void 0:a.indicator),re)}),f&&d.createElement("span",{style:{color:ve},className:`${O}-status-text`},f)))}return A(d.createElement("span",Object.assign({ref:t},$,{className:fe,style:Object.assign(Object.assign({},(o=I==null?void 0:I.styles)===null||o===void 0?void 0:o.root),C==null?void 0:C.root)}),c,d.createElement(ka,{visible:!U,motionName:`${O}-zoom`,motionAppear:!1,motionDeadline:1e3},ve=>{let{className:$e}=ve;var Ce,be;const Se=M("scroll-number",l),we=X.current,se=Ee(S==null?void 0:S.indicator,(Ce=I==null?void 0:I.classNames)===null||Ce===void 0?void 0:Ce.indicator,{[`${O}-dot`]:we,[`${O}-count`]:!we,[`${O}-count-sm`]:v==="small",[`${O}-multiple-words`]:!we&&Y&&Y.toString().length>1,[`${O}-status-${u}`]:!!u,[`${O}-color-${p}`]:pe});let ye=Object.assign(Object.assign(Object.assign({},C==null?void 0:C.indicator),(be=I==null?void 0:I.styles)===null||be===void 0?void 0:be.indicator),ae);return p&&!pe&&(ye=ye||{},ye.background=p),d.createElement(HWe,{prefixCls:Se,show:!U,motionClassName:$e,className:se,count:Y,title:oe,style:ye,key:"scrollNumber"},ce)}),le))}),Fo=WWe;Fo.Ribbon=FWe;var VWe=gt.ESC,qWe=gt.TAB;function KWe(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,o=d.useRef(!1),s=function(){if(t){var f,p;(f=n.current)===null||f===void 0||(p=f.focus)===null||p===void 0||p.call(f),r==null||r(!1)}},l=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),o.current=!0,!0):!1},c=function(f){switch(f.keyCode){case VWe:s();break;case qWe:{var p=!1;o.current||(p=l()),p?f.preventDefault():s();break}}};d.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&rr(l,3),function(){window.removeEventListener("keydown",c),o.current=!1}):function(){o.current=!1}},[t])}var GWe=d.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,a=d.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),o=va(t,vh(a));return te.createElement(te.Fragment,null,r&&te.createElement("div",{className:"".concat(i,"-arrow")}),te.cloneElement(a,{ref:Vf(a)?o:void 0}))}),R1={adjustX:1,adjustY:1},j1=[0,0],YWe={topLeft:{points:["bl","tl"],overflow:R1,offset:[0,-4],targetOffset:j1},top:{points:["bc","tc"],overflow:R1,offset:[0,-4],targetOffset:j1},topRight:{points:["br","tr"],overflow:R1,offset:[0,-4],targetOffset:j1},bottomLeft:{points:["tl","bl"],overflow:R1,offset:[0,4],targetOffset:j1},bottom:{points:["tc","bc"],overflow:R1,offset:[0,4],targetOffset:j1},bottomRight:{points:["tr","br"],overflow:R1,offset:[0,4],targetOffset:j1}},XWe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ZWe(e,t){var n,r=e.arrow,i=r===void 0?!1:r,a=e.prefixCls,o=a===void 0?"rc-dropdown":a,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,p=e.placements,h=p===void 0?YWe:p,m=e.getPopupContainer,g=e.showAction,v=e.hideAction,y=e.overlayClassName,b=e.overlayStyle,w=e.visible,_=e.trigger,k=_===void 0?["hover"]:_,S=e.autoFocus,C=e.overlay,E=e.children,$=e.onVisibleChange,M=Ut(e,XWe),P=te.useState(),I=Te(P,2),O=I[0],A=I[1],R="visible"in e?w:O,j=te.useRef(null),N=te.useRef(null),D=te.useRef(null);te.useImperativeHandle(t,function(){return j.current});var V=function(X){A(X),$==null||$(X)};KWe({visible:R,triggerRef:D,onVisibleChange:V,autoFocus:S,overlayRef:N});var F=function(X){var ae=e.onOverlayClick;A(!1),ae&&ae(X)},K=function(){return te.createElement(GWe,{ref:N,overlay:C,prefixCls:o,arrow:i})},B=function(){return typeof C=="function"?K:K()},U=function(){var X=e.minOverlayWidthMatchTrigger,ae=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?X:!ae},Z=function(){var X=e.openClassName;return X!==void 0?X:"".concat(o,"-open")},ee=te.cloneElement(E,{className:Ee((n=E.props)===null||n===void 0?void 0:n.className,R&&Z()),ref:Vf(E)?va(D,vh(E)):void 0}),ie=v;return!ie&&k.indexOf("contextMenu")!==-1&&(ie=["click"]),te.createElement(Ey,tt({builtinPlacements:h},M,{prefixCls:o,ref:j,popupClassName:Ee(y,ne({},"".concat(o,"-show-arrow"),i)),popupStyle:b,action:k,showAction:g,hideAction:ie,popupPlacement:f,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:R,stretch:U()?"minWidth":"",popup:B(),onPopupVisibleChange:V,onPopupClick:F,getPopupContainer:m}),ee)}const Whe=te.forwardRef(ZWe),QWe=e=>typeof e!="object"&&typeof e!="function"||e===null;var Vhe=d.createContext(null);function qhe(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Khe(e){var t=d.useContext(Vhe);return qhe(t,e)}var JWe=["children","locked"],gu=d.createContext(null);function eVe(e,t){var n=q({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function i3(e){var t=e.children,n=e.locked,r=Ut(e,JWe),i=d.useContext(gu),a=ug(function(){return eVe(i,r)},[i,r],function(o,s){return!n&&(o[0]!==s[0]||!mg(o[1],s[1],!0))});return d.createElement(gu.Provider,{value:a},t)}var tVe=[],Ghe=d.createContext(null);function C8(){return d.useContext(Ghe)}var Yhe=d.createContext(tVe);function Ty(e){var t=d.useContext(Yhe);return d.useMemo(function(){return e!==void 0?[].concat(ct(t),[e]):t},[t,e])}var Xhe=d.createContext(null),SB=d.createContext({});function LY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(v4(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function nVe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ct(e.querySelectorAll("*")).filter(function(r){return LY(r,t)});return LY(e,t)&&n.unshift(e),n}var Nj=gt.LEFT,Aj=gt.RIGHT,Dj=gt.UP,n_=gt.DOWN,r_=gt.ENTER,Zhe=gt.ESC,jb=gt.HOME,Nb=gt.END,BY=[Dj,n_,Nj,Aj];function rVe(e,t,n,r){var i,a="prev",o="next",s="children",l="parent";if(e==="inline"&&r===r_)return{inlineTrigger:!0};var c=ne(ne({},Dj,a),n_,o),u=ne(ne(ne(ne({},Nj,n?o:a),Aj,n?a:o),n_,s),r_,s),f=ne(ne(ne(ne(ne(ne({},Dj,a),n_,o),r_,s),Zhe,l),Nj,n?s:l),Aj,n?l:s),p={inline:c,horizontal:u,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},h=(i=p["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(h){case a:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function iVe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function aVe(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function CB(e,t){var n=nVe(e,!0);return n.filter(function(r){return t.has(r)})}function zY(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=CB(e,t),a=i.length,o=i.findIndex(function(s){return n===s});return r<0?o===-1?o=a-1:o-=1:r>0&&(o+=1),o=(o+a)%a,i[o]}var Fj=function(t,n){var r=new Set,i=new Map,a=new Map;return t.forEach(function(o){var s=document.querySelector("[data-menu-id='".concat(qhe(n,o),"']"));s&&(r.add(s),a.set(s,o),i.set(o,s))}),{elements:r,key2element:i,element2key:a}};function oVe(e,t,n,r,i,a,o,s,l,c){var u=d.useRef(),f=d.useRef();f.current=t;var p=function(){rr.cancel(u.current)};return d.useEffect(function(){return function(){p()}},[]),function(h){var m=h.which;if([].concat(BY,[r_,Zhe,jb,Nb]).includes(m)){var g=a(),v=Fj(g,r),y=v,b=y.elements,w=y.key2element,_=y.element2key,k=w.get(t),S=aVe(k,b),C=_.get(S),E=rVe(e,o(C,!0).length===1,n,m);if(!E&&m!==jb&&m!==Nb)return;(BY.includes(m)||[jb,Nb].includes(m))&&h.preventDefault();var $=function(N){if(N){var D=N,V=N.querySelector("a");V!=null&&V.getAttribute("href")&&(D=V);var F=_.get(N);s(F),p(),u.current=rr(function(){f.current===F&&D.focus()})}};if([jb,Nb].includes(m)||E.sibling||!S){var M;!S||e==="inline"?M=i.current:M=iVe(S);var P,I=CB(M,b);m===jb?P=I[0]:m===Nb?P=I[I.length-1]:P=zY(M,b,S,E.offset),$(P)}else if(E.inlineTrigger)l(C);else if(E.offset>0)l(C,!0),p(),u.current=rr(function(){v=Fj(g,r);var j=S.getAttribute("aria-controls"),N=document.getElementById(j),D=zY(N,v.elements);$(D)},5);else if(E.offset<0){var O=o(C,!0),A=O[O.length-2],R=w.get(A);l(A,!1),$(R)}}c==null||c(h)}}function sVe(e){Promise.resolve().then(e)}var _B="__RC_UTIL_PATH_SPLIT__",HY=function(t){return t.join(_B)},lVe=function(t){return t.split(_B)},Lj="rc-menu-more";function cVe(){var e=d.useState({}),t=Te(e,2),n=t[1],r=d.useRef(new Map),i=d.useRef(new Map),a=d.useState([]),o=Te(a,2),s=o[0],l=o[1],c=d.useRef(0),u=d.useRef(!1),f=function(){u.current||n({})},p=d.useCallback(function(w,_){var k=HY(_);i.current.set(k,w),r.current.set(w,k),c.current+=1;var S=c.current;sVe(function(){S===c.current&&f()})},[]),h=d.useCallback(function(w,_){var k=HY(_);i.current.delete(k),r.current.delete(w)},[]),m=d.useCallback(function(w){l(w)},[]),g=d.useCallback(function(w,_){var k=r.current.get(w)||"",S=lVe(k);return _&&s.includes(S[0])&&S.unshift(Lj),S},[s]),v=d.useCallback(function(w,_){return w.filter(function(k){return k!==void 0}).some(function(k){var S=g(k,!0);return S.includes(_)})},[g]),y=function(){var _=ct(r.current.keys());return s.length&&_.push(Lj),_},b=d.useCallback(function(w){var _="".concat(r.current.get(w)).concat(_B),k=new Set;return ct(i.current.keys()).forEach(function(S){S.startsWith(_)&&k.add(i.current.get(S))}),k},[]);return d.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:p,unregisterPath:h,refreshOverflowKeys:m,isSubPathKey:v,getKeyPath:g,getKeys:y,getSubPathKeys:b}}function w2(e){var t=d.useRef(e);t.current=e;var n=d.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o1&&(b.motionAppear=!1);var w=b.onVisibleChanged;return b.onVisibleChanged=function(_){return!p.current&&!_&&v(!0),w==null?void 0:w(_)},g?null:d.createElement(i3,{mode:a,locked:!p.current},d.createElement(ka,tt({visible:y},b,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(_){var k=_.className,S=_.style;return d.createElement(kB,{id:t,className:k,style:S},i)}))}var EVe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],$Ve=["active"],MVe=d.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,a=e.eventKey;e.warnKey;var o=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,f=e.popupClassName,p=e.popupOffset,h=e.popupStyle,m=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,y=e.onTitleClick,b=e.onTitleMouseEnter,w=e.onTitleMouseLeave,_=Ut(e,EVe),k=Khe(a),S=d.useContext(gu),C=S.prefixCls,E=S.mode,$=S.openKeys,M=S.disabled,P=S.overflowDisabled,I=S.activeKey,O=S.selectedKeys,A=S.itemIcon,R=S.expandIcon,j=S.onItemClick,N=S.onOpenChange,D=S.onActive,V=d.useContext(SB),F=V._internalRenderSubMenuItem,K=d.useContext(Xhe),B=K.isSubPathKey,U=Ty(),Z="".concat(C,"-submenu"),ee=M||o,ie=d.useRef(),Y=d.useRef(),X=c??A,ae=u??R,oe=$.includes(a),le=!P&&oe,ce=B(O,a),pe=Qhe(a,ee,b,w),me=pe.active,re=Ut(pe,$Ve),fe=d.useState(!1),ve=Te(fe,2),$e=ve[0],Ce=ve[1],be=function(ze){ee||Ce(ze)},Se=function(ze){be(!0),g==null||g({key:a,domEvent:ze})},we=function(ze){be(!1),v==null||v({key:a,domEvent:ze})},se=d.useMemo(function(){return me||(E!=="inline"?$e||B([I],a):!1)},[E,me,I,$e,a,B]),ye=Jhe(U.length),Oe=function(ze){ee||(y==null||y({key:a,domEvent:ze}),E==="inline"&&N(a,!oe))},z=w2(function(ge){m==null||m(m6(ge)),j(ge)}),H=function(ze){E!=="inline"&&N(a,ze)},G=function(){D(a)},de=k&&"".concat(k,"-popup"),xe=d.createElement("div",tt({role:"menuitem",style:ye,className:"".concat(Z,"-title"),tabIndex:ee?null:-1,ref:ie,title:typeof i=="string"?i:null,"data-menu-id":P&&k?null:k,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":ee,onClick:Oe,onFocus:G},re),i,d.createElement(eme,{icon:E!=="horizontal"?ae:void 0,props:q(q({},e),{},{isOpen:le,isSubMenu:!0})},d.createElement("i",{className:"".concat(Z,"-arrow")}))),he=d.useRef(E);if(E!=="inline"&&U.length>1?he.current="vertical":he.current=E,!P){var Ue=he.current;xe=d.createElement(_Ve,{mode:Ue,prefixCls:Z,visible:!s&&le&&E!=="inline",popupClassName:f,popupOffset:p,popupStyle:h,popup:d.createElement(i3,{mode:Ue==="horizontal"?"vertical":Ue},d.createElement(kB,{id:de,ref:Y},l)),disabled:ee,onVisibleChange:H},xe)}var We=d.createElement(iu.Item,tt({ref:t,role:"none"},_,{component:"li",style:n,className:Ee(Z,"".concat(Z,"-").concat(E),r,ne(ne(ne(ne({},"".concat(Z,"-open"),le),"".concat(Z,"-active"),se),"".concat(Z,"-selected"),ce),"".concat(Z,"-disabled"),ee)),onMouseEnter:Se,onMouseLeave:we}),xe,!P&&d.createElement(kVe,{id:de,open:le,keyPath:U},l));return F&&(We=F(We,e,{selected:ce,active:se,open:le,disabled:ee})),d.createElement(i3,{onItemClick:z,mode:E==="horizontal"?"vertical":E,itemIcon:X,expandIcon:ae},We)}),_8=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Ty(n),a=EB(r,i),o=C8();d.useEffect(function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}},[i]);var s;return o?s=a:s=d.createElement(MVe,tt({ref:t},e),a),d.createElement(Yhe.Provider,{value:i},s)});function $B(e){var t=e.className,n=e.style,r=d.useContext(gu),i=r.prefixCls,a=C8();return a?null:d.createElement("li",{role:"separator",className:Ee("".concat(i,"-item-divider"),t),style:n})}var TVe=["className","title","eventKey","children"],PVe=d.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,a=Ut(e,TVe),o=d.useContext(gu),s=o.prefixCls,l="".concat(s,"-item-group");return d.createElement("li",tt({ref:t,role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:Ee(l,n)}),d.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),MB=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Ty(n),a=EB(r,i),o=C8();return o?a:d.createElement(PVe,tt({ref:t},$r(e,["warnKey"])),a)}),OVe=["label","children","key","type","extra"];function Bj(e,t,n){var r=t.item,i=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(s,l){if(s&&Kt(s)==="object"){var c=s,u=c.label,f=c.children,p=c.key,h=c.type,m=c.extra,g=Ut(c,OVe),v=p??"tmp-".concat(l);return f||h==="group"?h==="group"?d.createElement(i,tt({key:v},g,{title:u}),Bj(f,t,n)):d.createElement(a,tt({key:v},g,{title:u}),Bj(f,t,n)):h==="divider"?d.createElement(o,tt({key:v},g)):d.createElement(r,tt({key:v},g,{extra:m}),u,(!!m||m===0)&&d.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null}).filter(function(s){return s})}function WY(e,t,n,r,i){var a=e,o=q({divider:$B,item:yg,group:MB,submenu:_8},r);return t&&(a=Bj(t,o,i)),EB(a,n)}var IVe=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],qh=[],RVe=d.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,a=i===void 0?"rc-menu":i,o=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,f=r.items,p=r.children,h=r.direction,m=r.id,g=r.mode,v=g===void 0?"vertical":g,y=r.inlineCollapsed,b=r.disabled,w=r.disabledOverflow,_=r.subMenuOpenDelay,k=_===void 0?.1:_,S=r.subMenuCloseDelay,C=S===void 0?.1:S,E=r.forceSubMenuRender,$=r.defaultOpenKeys,M=r.openKeys,P=r.activeKey,I=r.defaultActiveFirst,O=r.selectable,A=O===void 0?!0:O,R=r.multiple,j=R===void 0?!1:R,N=r.defaultSelectedKeys,D=r.selectedKeys,V=r.onSelect,F=r.onDeselect,K=r.inlineIndent,B=K===void 0?24:K,U=r.motion,Z=r.defaultMotions,ee=r.triggerSubMenuAction,ie=ee===void 0?"hover":ee,Y=r.builtinPlacements,X=r.itemIcon,ae=r.expandIcon,oe=r.overflowedIndicator,le=oe===void 0?"...":oe,ce=r.overflowedIndicatorPopupClassName,pe=r.getPopupContainer,me=r.onClick,re=r.onOpenChange,fe=r.onKeyDown;r.openAnimation,r.openTransitionName;var ve=r._internalRenderMenuItem,$e=r._internalRenderSubMenuItem,Ce=r._internalComponents,be=Ut(r,IVe),Se=d.useMemo(function(){return[WY(p,f,qh,Ce,a),WY(p,f,qh,{},a)]},[p,f,Ce]),we=Te(Se,2),se=we[0],ye=we[1],Oe=d.useState(!1),z=Te(Oe,2),H=z[0],G=z[1],de=d.useRef(),xe=dVe(m),he=h==="rtl",Ue=In($,{value:M,postState:function(sn){return sn||qh}}),We=Te(Ue,2),ge=We[0],ze=We[1],Ve=function(sn){var bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function gr(){ze(sn),re==null||re(sn)}bn?Ka.flushSync(gr):gr()},Be=d.useState(ge),Xe=Te(Be,2),Ke=Xe[0],qe=Xe[1],Et=d.useRef(!1),dt=d.useMemo(function(){return(v==="inline"||v==="vertical")&&y?["vertical",y]:[v,!1]},[v,y]),vt=Te(dt,2),Ze=vt[0],nt=vt[1],jt=Ze==="inline",Lt=d.useState(Ze),Bt=Te(Lt,2),Ht=Bt[0],Ne=Bt[1],He=d.useState(nt),Le=Te(He,2),Qe=Le[0],ht=Le[1];d.useEffect(function(){Ne(Ze),ht(nt),Et.current&&(jt?ze(Ke):Ve(qh))},[Ze,nt]);var xt=d.useState(0),Nt=Te(xt,2),Ot=Nt[0],Pt=Nt[1],lt=Ot>=se.length-1||Ht!=="horizontal"||w;d.useEffect(function(){jt&&qe(ge)},[ge]),d.useEffect(function(){return Et.current=!0,function(){Et.current=!1}},[]);var Ct=cVe(),kt=Ct.registerPath,qt=Ct.unregisterPath,yt=Ct.refreshOverflowKeys,At=Ct.isSubPathKey,ft=Ct.getKeyPath,De=Ct.getKeys,Ye=Ct.getSubPathKeys,st=d.useMemo(function(){return{registerPath:kt,unregisterPath:qt}},[kt,qt]),Ie=d.useMemo(function(){return{isSubPathKey:At}},[At]);d.useEffect(function(){yt(lt?qh:se.slice(Ot+1).map(function(hr){return hr.key}))},[Ot,lt]);var Rt=In(P||I&&((n=se[0])===null||n===void 0?void 0:n.key),{value:P}),rt=Te(Rt,2),$t=rt[0],Mt=rt[1],cn=w2(function(hr){Mt(hr)}),fn=w2(function(){Mt(void 0)});d.useImperativeHandle(t,function(){return{list:de.current,focus:function(sn){var bn,gr=De(),Je=Fj(gr,xe),ot=Je.elements,Xt=Je.key2element,xn=Je.element2key,Rn=CB(de.current,ot),An=$t??(Rn[0]?xn.get(Rn[0]):(bn=se.find(function(tr){return!tr.props.disabled}))===null||bn===void 0?void 0:bn.key),kn=Xt.get(An);if(An&&kn){var Or;kn==null||(Or=kn.focus)===null||Or===void 0||Or.call(kn,sn)}}}});var T=In(N||[],{value:D,postState:function(sn){return Array.isArray(sn)?sn:sn==null?qh:[sn]}}),L=Te(T,2),J=L[0],ke=L[1],je=function(sn){if(A){var bn=sn.key,gr=J.includes(bn),Je;j?gr?Je=J.filter(function(Xt){return Xt!==bn}):Je=[].concat(ct(J),[bn]):Je=[bn],ke(Je);var ot=q(q({},sn),{},{selectedKeys:Je});gr?F==null||F(ot):V==null||V(ot)}!j&&ge.length&&Ht!=="inline"&&Ve(qh)},it=w2(function(hr){me==null||me(m6(hr)),je(hr)}),Ft=w2(function(hr,sn){var bn=ge.filter(function(Je){return Je!==hr});if(sn)bn.push(hr);else if(Ht!=="inline"){var gr=Ye(hr);bn=bn.filter(function(Je){return!gr.has(Je)})}mg(ge,bn,!0)||Ve(bn,!0)}),an=function(sn,bn){var gr=bn??!ge.includes(sn);Ft(sn,gr)},Tn=oVe(Ht,$t,he,xe,de,De,ft,Mt,an,fe);d.useEffect(function(){G(!0)},[]);var Er=d.useMemo(function(){return{_internalRenderMenuItem:ve,_internalRenderSubMenuItem:$e}},[ve,$e]),or=Ht!=="horizontal"||w?se:se.map(function(hr,sn){return d.createElement(i3,{key:hr.key,overflowDisabled:sn>Ot},hr)}),ri=d.createElement(iu,tt({id:m,ref:de,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:yg,className:Ee(a,"".concat(a,"-root"),"".concat(a,"-").concat(Ht),l,ne(ne({},"".concat(a,"-inline-collapsed"),Qe),"".concat(a,"-rtl"),he),o),dir:h,style:s,role:"menu",tabIndex:u,data:or,renderRawItem:function(sn){return sn},renderRawRest:function(sn){var bn=sn.length,gr=bn?se.slice(-bn):null;return d.createElement(_8,{eventKey:Lj,title:le,disabled:lt,internalPopupClose:bn===0,popupClassName:ce},gr)},maxCount:Ht!=="horizontal"||w?iu.INVALIDATE:iu.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(sn){Pt(sn)},onKeyDown:Tn},be));return d.createElement(SB.Provider,{value:Er},d.createElement(Vhe.Provider,{value:xe},d.createElement(i3,{prefixCls:a,rootClassName:o,mode:Ht,openKeys:ge,rtl:he,disabled:b,motion:H?U:null,defaultMotions:H?Z:null,activeKey:$t,onActive:cn,onInactive:fn,selectedKeys:J,inlineIndent:B,subMenuOpenDelay:k,subMenuCloseDelay:C,forceSubMenuRender:E,builtinPlacements:Y,triggerSubMenuAction:ie,getPopupContainer:pe,itemIcon:X,expandIcon:ae,onItemClick:it,onOpenChange:Ft},d.createElement(Xhe.Provider,{value:Ie},ri),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(Ghe.Provider,{value:st},ye)))))}),qg=RVe;qg.Item=yg;qg.SubMenu=_8;qg.ItemGroup=MB;qg.Divider=$B;var jVe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},NVe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:jVe}))},AVe=d.forwardRef(NVe),DVe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},FVe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:DVe}))},Nf=d.forwardRef(FVe);const nme=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),LVe=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:Me(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},rme=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${a}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},ime=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],ame=Jn("Layout",e=>[LVe(e)],rme,{deprecatedTokens:ime}),BVe=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:p,lightSiderBg:h,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:o,color:s,lineHeight:Me(o),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${Me(p)} ${Me(p)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${Me(p)} 0 0 ${Me(p)}`}}},"&-light":{background:h,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}},zVe=Jn(["Layout","Sider"],e=>[BVe(e)],rme,{deprecatedTokens:ime});var HVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i!Number.isNaN(Number.parseFloat(e))&&isFinite(e),k8=d.createContext({}),WVe=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),ome=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=HVe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=d.useContext(nme),[w,_]=d.useState("collapsed"in e?e.collapsed:o),[k,S]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&_(e.collapsed)},[e.collapsed]);const C=(X,ae)=>{"collapsed"in e||_(X),g==null||g(X,ae)},{getPrefixCls:E,direction:$}=d.useContext(Zt),M=E("layout-sider",n),[P,I,O]=zVe(M),A=d.useRef(null);A.current=X=>{S(X.matches),v==null||v(X.matches),w!==X.matches&&C(X.matches,"responsive")},d.useEffect(()=>{function X(oe){return A.current(oe)}let ae;if(typeof window<"u"){const{matchMedia:oe}=window;if(oe&&m&&m in VY){ae=oe(`screen and (max-width: ${VY[m]})`);try{ae.addEventListener("change",X)}catch{ae.addListener(X)}X(ae)}}return()=>{try{ae==null||ae.removeEventListener("change",X)}catch{ae==null||ae.removeListener(X)}}},[m]),d.useEffect(()=>{const X=WVe("ant-sider-");return b.addSider(X),()=>b.removeSider(X)},[]);const R=()=>{C(!w,"clickTrigger")},j=$r(y,["collapsed"]),N=w?p:f,D=UVe(N)?`${N}px`:String(N),V=parseFloat(String(p||0))===0?d.createElement("span",{onClick:R,className:Ee(`${M}-zero-width-trigger`,`${M}-zero-width-trigger-${u?"right":"left"}`),style:h},i||d.createElement(AVe,null)):null,F=$==="rtl"==!u,U={expanded:F?d.createElement(vc,null):d.createElement(Nf,null),collapsed:F?d.createElement(Nf,null):d.createElement(vc,null)}[w?"collapsed":"expanded"],Z=i!==null?V||d.createElement("div",{className:`${M}-trigger`,onClick:R,style:{width:D}},i||U):null,ee=Object.assign(Object.assign({},l),{flex:`0 0 ${D}`,maxWidth:D,minWidth:D,width:D}),ie=Ee(M,`${M}-${s}`,{[`${M}-collapsed`]:!!w,[`${M}-has-trigger`]:c&&i!==null&&!V,[`${M}-below`]:!!k,[`${M}-zero-width`]:parseFloat(D)===0},r,I,O),Y=d.useMemo(()=>({siderCollapsed:w}),[w]);return P(d.createElement(k8.Provider,{value:Y},d.createElement("aside",Object.assign({className:ie},j,{style:ee,ref:t}),d.createElement("div",{className:`${M}-children`},a),c||k&&V?Z:null)))});var VVe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},qVe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:VVe}))},TB=d.forwardRef(qVe);const g6=d.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var KVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,dashed:r}=e,i=KVe(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=d.useContext(Zt),o=a("menu",t),s=Ee({[`${o}-item-divider-dashed`]:!!r},n);return d.createElement($B,Object.assign({className:s},i))},lme=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:o,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:f,inlineCollapsed:p}=d.useContext(g6),h=w=>{const _=r==null?void 0:r[0],k=d.createElement("span",{className:Ee(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!i||d.isValidElement(r)&&r.type==="span")&&r&&w&&c&&typeof _=="string"?d.createElement("div",{className:`${l}-inline-collapsed-noicon`},_.charAt(0)):k},{siderCollapsed:m}=d.useContext(k8);let g=a;typeof a>"u"?g=c?r:"":a===!1&&(g="");const v={title:g};!m&&!p&&(v.title=null,v.open=!1);const y=Zi(r).length;let b=d.createElement(yg,Object.assign({},$r(e,["title","icon","danger"]),{className:Ee({[`${l}-item-danger`]:o,[`${l}-item-only-child`]:(i?y+1:y)===1},n),title:typeof a=="string"?a:void 0}),oa(i,{className:Ee(d.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h(p));return f||(b=d.createElement(Ea,Object.assign({},v,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),b)),b};var GVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{children:n}=e,r=GVe(e,["children"]),i=d.useContext(v6),a=d.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=EIe(n),s=Su(t,o?vh(n):null);return d.createElement(v6.Provider,{value:a},d.createElement(mu,{space:!0},o?d.cloneElement(n,{ref:s}):n))}),XVe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Me(a)} ${o} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},z9(Hn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const IUe=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:h,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:w,colorPrimary:b,controlOutline:C}=e,k=s*2,S=r*2,_=Math.min(i-k,i-S),E=Math.min(a-k,a-S),$=Math.min(o-k,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:h,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:_,multipleItemHeightSM:E,multipleItemHeightLG:$,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:w,activeBorderColor:b,activeOutlineColor:C,selectAffixPadding:s}},Phe=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Me(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Me(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},DY=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Phe(e,t))}),jUe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Phe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),DY(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),DY(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Ohe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Me(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},FY=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ohe(e,t))}),NUe=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Ohe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),FY(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),FY(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),AUe=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Me(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),DUe=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},jUe(e)),NUe(e)),AUe(e))}),FUe=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},LUe=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},BUe=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},FUe(e)),LUe(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ao),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ao),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},wh()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},zUe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},BUe(e),RUe(e),OUe(e),MUe(e),{[`${t}-rtl`]:{direction:"rtl"}},Vg(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},wB=Jn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Hn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[zUe(r),DUe(r)]},IUe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var HUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},UUe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:HUe}))},ud=d.forwardRef(UUe),WUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},VUe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:WUe}))},My=d.forwardRef(VUe),qUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},KUe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:qUe}))},Ty=d.forwardRef(KUe);function w8(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:o,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:p}=e;const h=n??d.createElement(Pd,null),m=w=>t===null&&!s&&!f?null:d.createElement(d.Fragment,null,c!==!1&&w,s&&u);let g=null;if(t!==void 0)g=m(t);else if(a)g=m(d.createElement(vu,{spin:!0}));else{const w=`${l}-suffix`;g=b=>{let{open:C,showSearch:k}=b;return m(C&&k?d.createElement(Ty,{className:w}):d.createElement(My,{className:w}))}}let v=null;r!==void 0?v=r:o?v=d.createElement(ud,null):v=null;let y=null;return i!==void 0?y=i:y=d.createElement(Eu,null),{clearIcon:h,suffixIcon:g,itemIcon:v,removeIcon:y}}function xB(e,t){return t!==void 0?t:e!==null}var GUe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i,className:a,rootClassName:o,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:f,listItemHeight:p,size:h,disabled:m,notFoundContent:g,status:v,builtinPlacements:y,dropdownMatchSelectWidth:w,popupMatchSelectWidth:b,direction:C,style:k,allowClear:S,variant:_,dropdownStyle:E,transitionName:$,tagRender:M,maxCount:P,prefix:R}=e,O=GUe(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:j,getPrefixCls:I,renderEmpty:A,direction:N,virtual:F,popupMatchSelectWidth:K,popupOverflow:L,select:V}=d.useContext(Xt),[,B]=ka(),U=p??(B==null?void 0:B.controlHeight),Y=I("select",r),ee=I(),ie=C??N,{compactSize:Z,compactItemClassnames:X}=$u(Y,ie),[ae,oe]=Od("select",_,i),le=qr(Y),[ce,pe,me]=wB(Y,le),re=d.useMemo(()=>{const{mode:Xe}=e;if(Xe!=="combobox")return Xe===Rhe?"combobox":Xe},[e.mode]),fe=re==="multiple"||re==="tags",ve=xB(e.suffixIcon,e.showArrow),$e=(n=b??w)!==null&&n!==void 0?n:K,{status:Ce,hasFeedback:be,isFormItemInput:Se,feedbackIcon:we}=d.useContext(oa),se=Mu(Ce,v);let ye;g!==void 0?ye=g:re==="combobox"?ye=null:ye=(A==null?void 0:A("Select"))||d.createElement(qg,{componentName:"Select"});const{suffixIcon:Oe,itemIcon:z,removeIcon:H,clearIcon:G}=w8(Object.assign(Object.assign({},O),{multiple:fe,hasFeedback:be,feedbackIcon:we,showSuffixIcon:ve,prefixCls:Y,componentName:"Select"})),de=S===!0?{clearIcon:G}:S,xe=$r(O,["suffixIcon","itemIcon"]),he=Ee(l||c,{[`${Y}-dropdown-${ie}`]:ie==="rtl"},o,me,le,pe),Ue=Bi(Xe=>{var Ke;return(Ke=h??Z)!==null&&Ke!==void 0?Ke:Xe}),We=d.useContext(ma),ge=m??We,ze=Ee({[`${Y}-lg`]:Ue==="large",[`${Y}-sm`]:Ue==="small",[`${Y}-rtl`]:ie==="rtl",[`${Y}-${ae}`]:oe,[`${Y}-in-form-item`]:Se},Al(Y,se,be),X,V==null?void 0:V.className,a,o,me,le,pe),Ve=d.useMemo(()=>f!==void 0?f:ie==="rtl"?"bottomRight":"bottomLeft",[f,ie]),[Be]=$c("SelectLike",E==null?void 0:E.zIndex);return ce(d.createElement(yB,Object.assign({ref:t,virtual:F,showSearch:V==null?void 0:V.showSearch},xe,{style:Object.assign(Object.assign({},V==null?void 0:V.style),k),dropdownMatchSelectWidth:$e,transitionName:oo(ee,"slide-up",$),builtinPlacements:bB(y,L),listHeight:u,listItemHeight:U,mode:re,prefixCls:Y,placement:Ve,direction:ie,prefix:R,suffixIcon:Oe,menuItemSelectedIcon:z,removeIcon:H,allowClear:de,notFoundContent:ye,className:ze,getPopupContainer:s||j,dropdownClassName:he,disabled:ge,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:Be}),maxCount:fe?P:void 0,tagRender:fe?M:void 0})))},Yf=d.forwardRef(YUe),XUe=Gf(Yf,"dropdownAlign");Yf.SECRET_COMBOBOX_MODE_DO_NOT_USE=Rhe;Yf.Option=mB;Yf.OptGroup=hB;Yf._InternalPanelDoNotUseOrYouWillBeFired=XUe;const bd=["xxl","xl","lg","md","sm","xs"],ZUe=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),QUe=e=>{const t=e,n=[].concat(bd).reverse();return n.forEach((r,i)=>{const a=r.toUpperCase(),o=`screen${a}Min`,s=`screen${a}`;if(!(t[o]<=t[s]))throw new Error(`${o}<=${s} fails : !(${t[o]}<=${t[s]})`);if(i{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(a){return i=a,n.forEach(o=>o(i)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(i),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const o=t[a],s=this.matchHandlers[o];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const o=t[a],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[a]:u}))},l=window.matchMedia(o);l.addListener(s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}const jhe=(e,t)=>{if(t&&typeof t=="object")for(let n=0;nt+1,0);return e}function $4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=d.useRef({}),n=Nhe(),r=Ihe();return nr(()=>{const i=r.subscribe(a=>{t.current=a,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const Dj=d.createContext({}),JUe=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:a,containerSize:o,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:f,borderRadius:p,borderRadiusLG:h,borderRadiusSM:m,lineWidth:g,lineType:v}=e,y=(w,b,C)=>({width:w,height:w,borderRadius:"50%",[`&${n}-square`]:{borderRadius:C},[`&${n}-icon`]:{fontSize:b,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${Me(g)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(o,c,p)),{"&-lg":Object.assign({},y(s,u,h)),"&-sm":Object.assign({},y(l,f,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},eWe=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},tWe=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:a,fontSizeXL:o,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+o)/2),textFontSizeLG:s,textFontSizeSM:i,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},Ahe=Jn("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Hn(e,{avatarBg:n,avatarColor:t});return[JUe(r),eWe(r)]},tWe);var nWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const[n,r]=d.useState(1),[i,a]=d.useState(!1),[o,s]=d.useState(!0),l=d.useRef(null),c=d.useRef(null),u=ga(t,l),{getPrefixCls:f,avatar:p}=d.useContext(Xt),h=d.useContext(Dj),m=()=>{if(!c.current||!l.current)return;const X=c.current.offsetWidth,ae=l.current.offsetWidth;if(X!==0&&ae!==0){const{gap:oe=4}=e;oe*2{a(!0)},[]),d.useEffect(()=>{s(!0),r(1)},[e.src]),d.useEffect(m,[e.gap]);const g=()=>{const{onError:X}=e;(X==null?void 0:X())!==!1&&s(!1)},{prefixCls:v,shape:y,size:w,src:b,srcSet:C,icon:k,className:S,rootClassName:_,alt:E,draggable:$,children:M,crossOrigin:P}=e,R=nWe(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),O=Bi(X=>{var ae,oe;return(oe=(ae=w??(h==null?void 0:h.size))!==null&&ae!==void 0?ae:X)!==null&&oe!==void 0?oe:"default"}),j=Object.keys(typeof O=="object"?O||{}:{}).some(X=>["xs","sm","md","lg","xl","xxl"].includes(X)),I=$4(j),A=d.useMemo(()=>{if(typeof O!="object")return{};const X=bd.find(oe=>I[oe]),ae=O[X];return ae?{width:ae,height:ae,fontSize:ae&&(k||M)?ae/2:18}:{}},[I,O]),N=f("avatar",v),F=qr(N),[K,L,V]=Ahe(N,F),B=Ee({[`${N}-lg`]:O==="large",[`${N}-sm`]:O==="small"}),U=d.isValidElement(b),Y=y||(h==null?void 0:h.shape)||"circle",ee=Ee(N,B,p==null?void 0:p.className,`${N}-${Y}`,{[`${N}-image`]:U||b&&o,[`${N}-icon`]:!!k},V,F,S,_,L),ie=typeof O=="number"?{width:O,height:O,fontSize:k?O/2:18}:{};let Z;if(typeof b=="string"&&o)Z=d.createElement("img",{src:b,draggable:$,srcSet:C,onError:g,alt:E,crossOrigin:P});else if(U)Z=b;else if(k)Z=k;else if(i||n!==1){const X=`scale(${n})`,ae={msTransform:X,WebkitTransform:X,transform:X};Z=d.createElement(Go,{onResize:m},d.createElement("span",{className:`${N}-string`,ref:c,style:Object.assign({},ae)},M))}else Z=d.createElement("span",{className:`${N}-string`,style:{opacity:0},ref:c},M);return delete R.onError,delete R.gap,K(d.createElement("span",Object.assign({},R,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ie),A),p==null?void 0:p.style),R.style),className:ee,ref:u}),Z))},Dhe=d.forwardRef(rWe),I0=e=>e?typeof e=="function"?e():e:null;function SB(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.bodyClassName,o=e.className,s=e.style;return d.createElement("div",{className:Ee("".concat(n,"-content"),o),style:s},d.createElement("div",{className:Ee("".concat(n,"-inner"),a),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var R1={shiftX:64,adjustY:1},I1={adjustX:1,shiftY:!0},Gl=[0,0],iWe={left:{points:["cr","cl"],overflow:I1,offset:[-4,0],targetOffset:Gl},right:{points:["cl","cr"],overflow:I1,offset:[4,0],targetOffset:Gl},top:{points:["bc","tc"],overflow:R1,offset:[0,-4],targetOffset:Gl},bottom:{points:["tc","bc"],overflow:R1,offset:[0,4],targetOffset:Gl},topLeft:{points:["bl","tl"],overflow:R1,offset:[0,-4],targetOffset:Gl},leftTop:{points:["tr","tl"],overflow:I1,offset:[-4,0],targetOffset:Gl},topRight:{points:["br","tr"],overflow:R1,offset:[0,-4],targetOffset:Gl},rightTop:{points:["tl","tr"],overflow:I1,offset:[4,0],targetOffset:Gl},bottomRight:{points:["tr","br"],overflow:R1,offset:[0,4],targetOffset:Gl},rightBottom:{points:["bl","br"],overflow:I1,offset:[4,0],targetOffset:Gl},bottomLeft:{points:["tl","bl"],overflow:R1,offset:[0,4],targetOffset:Gl},leftBottom:{points:["br","bl"],overflow:I1,offset:[-4,0],targetOffset:Gl}},aWe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],oWe=function(t,n){var r=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,p=f===void 0?"rc-tooltip":f,h=t.children,m=t.onVisibleChange,g=t.afterVisibleChange,v=t.transitionName,y=t.animation,w=t.motion,b=t.placement,C=b===void 0?"right":b,k=t.align,S=k===void 0?{}:k,_=t.destroyTooltipOnHide,E=_===void 0?!1:_,$=t.defaultVisible,M=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var R=t.overlay,O=t.id,j=t.showArrow,I=j===void 0?!0:j,A=t.classNames,N=t.styles,F=Ht(t,aWe),K=d.useRef(null);d.useImperativeHandle(n,function(){return K.current});var L=q({},F);"visible"in t&&(L.popupVisible=t.visible);var V=function(){return d.createElement(SB,{key:"content",prefixCls:p,id:O,bodyClassName:A==null?void 0:A.body,overlayInnerStyle:q(q({},P),N==null?void 0:N.body)},R)};return d.createElement($y,tt({popupClassName:Ee(r,A==null?void 0:A.root),prefixCls:p,popup:V,action:a,builtinPlacements:iWe,popupPlacement:C,ref:K,popupAlign:S,getPopupContainer:M,onPopupVisibleChange:m,afterPopupVisibleChange:g,popupTransitionName:v,popupAnimation:y,popupMotion:w,defaultPopupVisible:$,autoDestroy:E,mouseLeaveDelay:c,popupStyle:q(q({},u),N==null?void 0:N.root),mouseEnterDelay:s,arrow:I},L),h)};const sWe=d.forwardRef(oWe);function x8(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=0,o=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,p=u,h=2*i-s,m=l,g=2*i-a,v=o,y=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),w=r*(Math.sqrt(2)-1),b=`polygon(${w}px 100%, 50% ${w}px, ${2*i-w}px 100%, ${w}px 100%)`,C=`path('M ${a} ${o} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${p} L ${h} ${m} A ${r} ${r} 0 0 0 ${g} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:C,arrowPolygon:b}}const Fhe=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Me(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Lhe=8;function S8(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Lhe:r}}function bS(e,t){return e?t:{}}function CB(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Fhe(e,t,i)),{"&:before":{background:t}})]},bS(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Me(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),bS(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Me(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),bS(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),bS(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function lWe(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const LY={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},cWe={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},uWe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Bhe(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,l={};return Object.keys(LY).forEach(c=>{const u=r&&cWe[c]||LY[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,uWe.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+i;break}const p=S8({contentRadius:a,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-p.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=p.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-p.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=p.arrowOffsetHorizontal*2-s;break}f.overflow=lWe(c,p,t,n),o&&(f.htmlRegion="visibleFirst")}),l}const dWe=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:p,sizePopupArrow:h}=e,m=t(o).add(h).add(p).equal(),g=t(o).mul(2).add(h).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${Me(e.calc(u).div(2).equal())} ${Me(f)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(o,Lhe)}},[`${n}-content`]:{position:"relative"}}),XE(e,(v,y)=>{let{darkColor:w}=y;return{[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:w},[`${n}-arrow`]:{"--antd-arrow-background-color":w}}}})),{"&-rtl":{direction:"rtl"}})},CB(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},fWe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},S8({contentRadius:e.borderRadius,limitVerticalRadius:!0})),x8(Hn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),zhe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Jn("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=r,s=Hn(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[dWe(s),_y(r,"zoom-big-fast")]},fWe,{resetStyle:!1,injectStyle:t})(e)},pWe=yg.map(e=>`${e}-inverse`),hWe=["success","processing","error","default","warning"];function C8(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(lt(pWe),lt(yg)).includes(e):yg.includes(e)}function mWe(e){return hWe.includes(e)}function Hhe(e,t){const n=C8(t),r=Ee({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}const gWe=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:o}=e,{getPrefixCls:s}=d.useContext(Xt),l=s("tooltip",t),[c,u,f]=zhe(l),p=Hhe(l,a),h=p.arrowStyle,m=Object.assign(Object.assign({},o),p.overlayStyle),g=Ee(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,p.className);return c(d.createElement("div",{className:g,style:h},d.createElement("div",{className:`${l}-arrow`}),d.createElement(SB,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:m}),i)))};var vWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o,s;const{prefixCls:l,openClassName:c,getTooltipContainer:u,color:f,overlayInnerStyle:p,children:h,afterOpenChange:m,afterVisibleChange:g,destroyTooltipOnHide:v,arrow:y=!0,title:w,overlay:b,builtinPlacements:C,arrowPointAtCenter:k=!1,autoAdjustOverflow:S=!0}=e,_=!!y,[,E]=ka(),{getPopupContainer:$,getPrefixCls:M,direction:P,tooltip:R}=d.useContext(Xt),O=Ug(),j=d.useRef(null),I=()=>{var xe;(xe=j.current)===null||xe===void 0||xe.forceAlign()};d.useImperativeHandle(t,()=>{var xe;return{forceAlign:I,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),I()},nativeElement:(xe=j.current)===null||xe===void 0?void 0:xe.nativeElement}});const[A,N]=jn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),F=!w&&!b&&w!==0,K=xe=>{var he,Ue;N(F?!1:xe),F||((he=e.onOpenChange)===null||he===void 0||he.call(e,xe),(Ue=e.onVisibleChange)===null||Ue===void 0||Ue.call(e,xe))},L=d.useMemo(()=>{var xe,he;let Ue=k;return typeof y=="object"&&(Ue=(he=(xe=y.pointAtCenter)!==null&&xe!==void 0?xe:y.arrowPointAtCenter)!==null&&he!==void 0?he:k),C||Bhe({arrowPointAtCenter:Ue,autoAdjustOverflow:S,arrowWidth:_?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})},[k,y,C,E]),V=d.useMemo(()=>w===0?w:b||w||"",[b,w]),B=d.createElement(bu,{space:!0},typeof V=="function"?V():V),{getPopupContainer:U,placement:Y="top",mouseEnterDelay:ee=.1,mouseLeaveDelay:ie=.1,overlayStyle:Z,rootClassName:X,overlayClassName:ae,styles:oe,classNames:le}=e,ce=vWe(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),pe=M("tooltip",l),me=M(),re=e["data-popover-inject"];let fe=A;!("open"in e)&&!("visible"in e)&&F&&(fe=!1);const ve=d.isValidElement(h)&&!rpe(h)?h:d.createElement("span",null,h),$e=ve.props,Ce=!$e.className||typeof $e.className=="string"?Ee($e.className,c||`${pe}-open`):$e.className,[be,Se,we]=zhe(pe,!re),se=Hhe(pe,f),ye=se.arrowStyle,Oe=Ee(ae,{[`${pe}-rtl`]:P==="rtl"},se.className,X,Se,we,R==null?void 0:R.className,(i=R==null?void 0:R.classNames)===null||i===void 0?void 0:i.root,le==null?void 0:le.root),z=Ee((a=R==null?void 0:R.classNames)===null||a===void 0?void 0:a.body,le==null?void 0:le.body),[H,G]=$c("Tooltip",ce.zIndex),de=d.createElement(sWe,Object.assign({},ce,{zIndex:H,showArrow:_,placement:Y,mouseEnterDelay:ee,mouseLeaveDelay:ie,prefixCls:pe,classNames:{root:Oe,body:z},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ye),(o=R==null?void 0:R.styles)===null||o===void 0?void 0:o.root),R==null?void 0:R.style),Z),oe==null?void 0:oe.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(s=R==null?void 0:R.styles)===null||s===void 0?void 0:s.body),p),oe==null?void 0:oe.body),se.overlayStyle)},getTooltipContainer:U||u||$,ref:j,builtinPlacements:L,overlay:B,visible:fe,onVisibleChange:K,afterVisibleChange:m??g,arrowContent:d.createElement("span",{className:`${pe}-arrow-content`}),motion:{motionName:oo(me,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),fe?aa(ve,{className:Ce}):ve);return be(d.createElement(v4.Provider,{value:G},de))}),_a=yWe;_a._InternalPanelDoNotUseOrYouWillBeFired=gWe;const bWe=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:p,titleBorderBottom:h,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},ar(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:l,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:h,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},CB(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},wWe=e=>{const{componentCls:t}=e;return{[t]:yg.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},xWe=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:f}=e,p=n-r,h=p/2,m=p/2-t,g=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:o+30},x8(e)),S8({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:l,titlePadding:a?`${h}px ${g}px ${m}px`:0,titleBorderBottom:a?`${t}px ${c} ${u}`:"none",innerContentPadding:a?`${f}px ${g}px`:0})},Uhe=Jn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Hn(e,{popoverBg:t,popoverColor:n});return[bWe(r),wWe(r),_y(r,"zoom-big")]},xWe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var SWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:d.createElement(d.Fragment,null,t&&d.createElement("div",{className:`${r}-title`},t),n&&d.createElement("div",{className:`${r}-inner-content`},n))},CWe=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:a="top",title:o,content:s,children:l}=e,c=I0(o),u=I0(s),f=Ee(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return d.createElement("div",{className:f,style:i},d.createElement("div",{className:`${n}-arrow`}),d.createElement(SB,Object.assign({},e,{className:t,prefixCls:n}),l||d.createElement(Whe,{prefixCls:n,title:c,content:u})))},Vhe=e=>{const{prefixCls:t,className:n}=e,r=SWe(e,["prefixCls","className"]),{getPrefixCls:i}=d.useContext(Xt),a=i("popover",t),[o,s,l]=Uhe(a);return o(d.createElement(CWe,Object.assign({},r,{prefixCls:a,hashId:s,className:Ee(n,l)})))};var _We=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o,s;const{prefixCls:l,title:c,content:u,overlayClassName:f,placement:p="top",trigger:h="hover",children:m,mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,onOpenChange:y,overlayStyle:w={},styles:b,classNames:C}=e,k=_We(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:S,getPrefixCls:_}=d.useContext(Xt),E=_("popover",l),[$,M,P]=Uhe(E),R=_(),O=Ee(f,M,P,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.root,C==null?void 0:C.root),j=Ee((r=S==null?void 0:S.classNames)===null||r===void 0?void 0:r.body,C==null?void 0:C.body),[I,A]=jn(!1,{value:(i=e.open)!==null&&i!==void 0?i:e.visible,defaultValue:(a=e.defaultOpen)!==null&&a!==void 0?a:e.defaultVisible}),N=(B,U)=>{A(B,!0),y==null||y(B,U)},F=B=>{B.keyCode===mt.ESC&&N(!1,B)},K=B=>{N(B)},L=I0(c),V=I0(u);return $(d.createElement(_a,Object.assign({placement:p,trigger:h,mouseEnterDelay:g,mouseLeaveDelay:v},k,{prefixCls:E,classNames:{root:O,body:j},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(o=S==null?void 0:S.styles)===null||o===void 0?void 0:o.root),S==null?void 0:S.style),w),b==null?void 0:b.root),body:Object.assign(Object.assign({},(s=S==null?void 0:S.styles)===null||s===void 0?void 0:s.body),b==null?void 0:b.body)},ref:t,open:I,onOpenChange:K,overlay:L||V?d.createElement(Whe,{prefixCls:E,title:L,content:V}):null,transitionName:oo(R,"zoom-big",k.transitionName),"data-popover-inject":!0}),aa(m,{onKeyDown:B=>{var U,Y;d.isValidElement(m)&&((Y=m==null?void 0:(U=m.props).onKeyDown)===null||Y===void 0||Y.call(U,B)),F(B)}})))}),wc=kWe;wc._InternalPanelDoNotUseOrYouWillBeFired=Vhe;const BY=e=>{const{size:t,shape:n}=d.useContext(Dj),r=d.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return d.createElement(Dj.Provider,{value:r},e.children)},EWe=e=>{var t,n,r,i;const{getPrefixCls:a,direction:o}=d.useContext(Xt),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:f,maxStyle:p,size:h,shape:m,maxPopoverPlacement:g,maxPopoverTrigger:v,children:y,max:w}=e,b=a("avatar",s),C=`${b}-group`,k=qr(b),[S,_,E]=Ahe(b,k),$=Ee(C,{[`${C}-rtl`]:o==="rtl"},E,k,l,c,_),M=Xi(y).map((O,j)=>aa(O,{key:`avatar-key-${j}`})),P=(w==null?void 0:w.count)||f,R=M.length;if(P&&P{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:a,textFontSizeSM:o,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:f,marginXS:p,calc:h}=e,m=`${r}-scroll-number`,g=XE(e,(v,y)=>{let{darkColor:w}=y;return{[`&${t} ${t}-color-${v}`]:{background:w,[`&:not(${t}-count)`]:{color:w},"a:hover &":{background:w}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:a,lineHeight:Me(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(u).div(2).equal(),boxShadow:`0 0 0 ${Me(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:o,lineHeight:Me(f),borderRadius:h(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Me(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Me(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:NWe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:PWe,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:OWe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:RWe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:IWe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:jWe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[m]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${m}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},qhe=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,a=t,o=n,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return Hn(e,{badgeFontHeight:a,badgeShadowSize:o,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Khe=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},DWe=Jn("Badge",e=>{const t=qhe(e);return AWe(t)},Khe),FWe=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:a}=e,o=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=XE(e,(c,u)=>{let{darkColor:f}=u;return{[`&${o}-color-${c}`]:{background:f,color:f}}});return{[s]:{position:"relative"},[o]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"absolute",top:r,padding:`0 ${Me(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Me(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${o}-text`]:{color:e.badgeTextColor},[`${o}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${Me(a(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${o}-placement-end`]:{insetInlineEnd:a(i).mul(-1).equal(),borderEndEndRadius:0,[`${o}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${o}-placement-start`]:{insetInlineStart:a(i).mul(-1).equal(),borderEndStartRadius:0,[`${o}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},LWe=Jn(["Badge","Ribbon"],e=>{const t=qhe(e);return FWe(t)},Khe),BWe=e=>{const{className:t,prefixCls:n,style:r,color:i,children:a,text:o,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=d.useContext(Xt),f=c("ribbon",n),p=`${f}-wrapper`,[h,m,g]=LWe(f,p),v=C8(i,!1),y=Ee(f,`${f}-placement-${s}`,{[`${f}-rtl`]:u==="rtl",[`${f}-color-${i}`]:v},t),w={},b={};return i&&!v&&(w.background=i,b.color=i),h(d.createElement("div",{className:Ee(p,l,m,g)},a,d.createElement("div",{className:Ee(y,m),style:Object.assign(Object.assign({},w),r)},d.createElement("span",{className:`${f}-text`},o),d.createElement("div",{className:`${f}-corner`,style:b}))))},zY=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),d.createElement("span",{style:a,className:Ee(`${t}-only-unit`,{current:r})},n)};function zWe(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const HWe=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),a=Math.abs(n),[o,s]=d.useState(i),[l,c]=d.useState(a),u=()=>{s(i),c(a)};d.useEffect(()=>{const h=setTimeout(u,1e3);return()=>clearTimeout(h)},[i]);let f,p;if(o===i||Number.isNaN(i)||Number.isNaN(o))f=[d.createElement(zY,Object.assign({},e,{key:i,current:!0}))],p={transition:"none"};else{f=[];const h=i+10,m=[];for(let w=i;w<=h;w+=1)m.push(w);const g=lw%10===o);f=(g<0?m.slice(0,v+1):m.slice(v)).map((w,b)=>{const C=w%10;return d.createElement(zY,Object.assign({},e,{key:w,value:C,offset:g<0?b-v:b,current:b===v}))}),p={transform:`translateY(${-zWe(o,i,g)}00%)`}}return d.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:u},f)};var UWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,count:r,className:i,motionClassName:a,style:o,title:s,show:l,component:c="sup",children:u}=e,f=UWe(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=d.useContext(Xt),h=p("scroll-number",n),m=Object.assign(Object.assign({},f),{"data-show":l,style:o,className:Ee(h,i,a),title:s});let g=r;if(r&&Number(r)%1===0){const v=String(r).split("");g=d.createElement("bdi",null,v.map((y,w)=>d.createElement(HWe,{prefixCls:h,count:Number(r),value:y,key:v.length-w})))}return o!=null&&o.borderColor&&(m.style=Object.assign(Object.assign({},o),{boxShadow:`0 0 0 1px ${o.borderColor} inset`})),u?aa(u,v=>({className:Ee(`${h}-custom-component`,v==null?void 0:v.className,a)})):d.createElement(c,Object.assign({},m,{ref:t}),g)});var VWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:f,color:p,count:h=null,overflowCount:m=99,dot:g=!1,size:v="default",title:y,offset:w,style:b,className:C,rootClassName:k,classNames:S,styles:_,showZero:E=!1}=e,$=VWe(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:M,direction:P,badge:R}=d.useContext(Xt),O=M("badge",s),[j,I,A]=DWe(O),N=h>m?`${m}+`:h,F=N==="0"||N===0,K=h===null||F&&!E,L=(u!=null||p!=null)&&K,V=g&&!F,B=V?"":N,U=d.useMemo(()=>(B==null||B===""||F&&!E)&&!V,[B,F,E,V]),Y=d.useRef(h);U||(Y.current=h);const ee=Y.current,ie=d.useRef(B);U||(ie.current=B);const Z=ie.current,X=d.useRef(V);U||(X.current=V);const ae=d.useMemo(()=>{if(!w)return Object.assign(Object.assign({},R==null?void 0:R.style),b);const ve={marginTop:w[1]};return P==="rtl"?ve.left=parseInt(w[0],10):ve.right=-parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},ve),R==null?void 0:R.style),b)},[P,w,b,R==null?void 0:R.style]),oe=y??(typeof ee=="string"||typeof ee=="number"?ee:void 0),le=U||!f?null:d.createElement("span",{className:`${O}-status-text`},f),ce=!ee||typeof ee!="object"?void 0:aa(ee,ve=>({style:Object.assign(Object.assign({},ae),ve.style)})),pe=C8(p,!1),me=Ee(S==null?void 0:S.indicator,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.indicator,{[`${O}-status-dot`]:L,[`${O}-status-${u}`]:!!u,[`${O}-color-${p}`]:pe}),re={};p&&!pe&&(re.color=p,re.background=p);const fe=Ee(O,{[`${O}-status`]:L,[`${O}-not-a-wrapper`]:!c,[`${O}-rtl`]:P==="rtl"},C,k,R==null?void 0:R.className,(r=R==null?void 0:R.classNames)===null||r===void 0?void 0:r.root,S==null?void 0:S.root,I,A);if(!c&&L){const ve=ae.color;return j(d.createElement("span",Object.assign({},$,{className:fe,style:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.root),(i=R==null?void 0:R.styles)===null||i===void 0?void 0:i.root),ae)}),d.createElement("span",{className:me,style:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.indicator),(a=R==null?void 0:R.styles)===null||a===void 0?void 0:a.indicator),re)}),f&&d.createElement("span",{style:{color:ve},className:`${O}-status-text`},f)))}return j(d.createElement("span",Object.assign({ref:t},$,{className:fe,style:Object.assign(Object.assign({},(o=R==null?void 0:R.styles)===null||o===void 0?void 0:o.root),_==null?void 0:_.root)}),c,d.createElement(Ca,{visible:!U,motionName:`${O}-zoom`,motionAppear:!1,motionDeadline:1e3},ve=>{let{className:$e}=ve;var Ce,be;const Se=M("scroll-number",l),we=X.current,se=Ee(S==null?void 0:S.indicator,(Ce=R==null?void 0:R.classNames)===null||Ce===void 0?void 0:Ce.indicator,{[`${O}-dot`]:we,[`${O}-count`]:!we,[`${O}-count-sm`]:v==="small",[`${O}-multiple-words`]:!we&&Z&&Z.toString().length>1,[`${O}-status-${u}`]:!!u,[`${O}-color-${p}`]:pe});let ye=Object.assign(Object.assign(Object.assign({},_==null?void 0:_.indicator),(be=R==null?void 0:R.styles)===null||be===void 0?void 0:be.indicator),ae);return p&&!pe&&(ye=ye||{},ye.background=p),d.createElement(WWe,{prefixCls:Se,show:!U,motionClassName:$e,className:se,count:Z,title:oe,style:ye,key:"scrollNumber"},ce)}),le))}),Lo=qWe;Lo.Ribbon=BWe;var KWe=mt.ESC,GWe=mt.TAB;function YWe(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,o=d.useRef(!1),s=function(){if(t){var f,p;(f=n.current)===null||f===void 0||(p=f.focus)===null||p===void 0||p.call(f),r==null||r(!1)}},l=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),o.current=!0,!0):!1},c=function(f){switch(f.keyCode){case KWe:s();break;case GWe:{var p=!1;o.current||(p=l()),p?f.preventDefault():s();break}}};d.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&rr(l,3),function(){window.removeEventListener("keydown",c),o.current=!1}):function(){o.current=!1}},[t])}var XWe=d.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,a=d.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),o=ga(t,bh(a));return te.createElement(te.Fragment,null,r&&te.createElement("div",{className:"".concat(i,"-arrow")}),te.cloneElement(a,{ref:Vf(a)?o:void 0}))}),j1={adjustX:1,adjustY:1},N1=[0,0],ZWe={topLeft:{points:["bl","tl"],overflow:j1,offset:[0,-4],targetOffset:N1},top:{points:["bc","tc"],overflow:j1,offset:[0,-4],targetOffset:N1},topRight:{points:["br","tr"],overflow:j1,offset:[0,-4],targetOffset:N1},bottomLeft:{points:["tl","bl"],overflow:j1,offset:[0,4],targetOffset:N1},bottom:{points:["tc","bc"],overflow:j1,offset:[0,4],targetOffset:N1},bottomRight:{points:["tr","br"],overflow:j1,offset:[0,4],targetOffset:N1}},QWe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function JWe(e,t){var n,r=e.arrow,i=r===void 0?!1:r,a=e.prefixCls,o=a===void 0?"rc-dropdown":a,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,p=e.placements,h=p===void 0?ZWe:p,m=e.getPopupContainer,g=e.showAction,v=e.hideAction,y=e.overlayClassName,w=e.overlayStyle,b=e.visible,C=e.trigger,k=C===void 0?["hover"]:C,S=e.autoFocus,_=e.overlay,E=e.children,$=e.onVisibleChange,M=Ht(e,QWe),P=te.useState(),R=Te(P,2),O=R[0],j=R[1],I="visible"in e?b:O,A=te.useRef(null),N=te.useRef(null),F=te.useRef(null);te.useImperativeHandle(t,function(){return A.current});var K=function(X){j(X),$==null||$(X)};YWe({visible:I,triggerRef:F,onVisibleChange:K,autoFocus:S,overlayRef:N});var L=function(X){var ae=e.onOverlayClick;j(!1),ae&&ae(X)},V=function(){return te.createElement(XWe,{ref:N,overlay:_,prefixCls:o,arrow:i})},B=function(){return typeof _=="function"?V:V()},U=function(){var X=e.minOverlayWidthMatchTrigger,ae=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?X:!ae},Y=function(){var X=e.openClassName;return X!==void 0?X:"".concat(o,"-open")},ee=te.cloneElement(E,{className:Ee((n=E.props)===null||n===void 0?void 0:n.className,I&&Y()),ref:Vf(E)?ga(F,bh(E)):void 0}),ie=v;return!ie&&k.indexOf("contextMenu")!==-1&&(ie=["click"]),te.createElement($y,tt({builtinPlacements:h},M,{prefixCls:o,ref:A,popupClassName:Ee(y,ne({},"".concat(o,"-show-arrow"),i)),popupStyle:w,action:k,showAction:g,hideAction:ie,popupPlacement:f,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:I,stretch:U()?"minWidth":"",popup:B(),onPopupVisibleChange:K,onPopupClick:L,getPopupContainer:m}),ee)}const Ghe=te.forwardRef(JWe),eVe=e=>typeof e!="object"&&typeof e!="function"||e===null;var Yhe=d.createContext(null);function Xhe(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Zhe(e){var t=d.useContext(Yhe);return Xhe(t,e)}var tVe=["children","locked"],wu=d.createContext(null);function nVe(e,t){var n=q({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function a3(e){var t=e.children,n=e.locked,r=Ht(e,tVe),i=d.useContext(wu),a=dg(function(){return nVe(i,r)},[i,r],function(o,s){return!n&&(o[0]!==s[0]||!gg(o[1],s[1],!0))});return d.createElement(wu.Provider,{value:a},t)}var rVe=[],Qhe=d.createContext(null);function _8(){return d.useContext(Qhe)}var Jhe=d.createContext(rVe);function Py(e){var t=d.useContext(Jhe);return d.useMemo(function(){return e!==void 0?[].concat(lt(t),[e]):t},[t,e])}var eme=d.createContext(null),_B=d.createContext({});function HY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(b4(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function iVe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=lt(e.querySelectorAll("*")).filter(function(r){return HY(r,t)});return HY(e,t)&&n.unshift(e),n}var Fj=mt.LEFT,Lj=mt.RIGHT,Bj=mt.UP,i_=mt.DOWN,a_=mt.ENTER,tme=mt.ESC,Nb=mt.HOME,Ab=mt.END,UY=[Bj,i_,Fj,Lj];function aVe(e,t,n,r){var i,a="prev",o="next",s="children",l="parent";if(e==="inline"&&r===a_)return{inlineTrigger:!0};var c=ne(ne({},Bj,a),i_,o),u=ne(ne(ne(ne({},Fj,n?o:a),Lj,n?a:o),i_,s),a_,s),f=ne(ne(ne(ne(ne(ne({},Bj,a),i_,o),a_,s),tme,l),Fj,n?s:l),Lj,n?l:s),p={inline:c,horizontal:u,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},h=(i=p["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(h){case a:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function oVe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function sVe(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function kB(e,t){var n=iVe(e,!0);return n.filter(function(r){return t.has(r)})}function WY(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=kB(e,t),a=i.length,o=i.findIndex(function(s){return n===s});return r<0?o===-1?o=a-1:o-=1:r>0&&(o+=1),o=(o+a)%a,i[o]}var zj=function(t,n){var r=new Set,i=new Map,a=new Map;return t.forEach(function(o){var s=document.querySelector("[data-menu-id='".concat(Xhe(n,o),"']"));s&&(r.add(s),a.set(s,o),i.set(o,s))}),{elements:r,key2element:i,element2key:a}};function lVe(e,t,n,r,i,a,o,s,l,c){var u=d.useRef(),f=d.useRef();f.current=t;var p=function(){rr.cancel(u.current)};return d.useEffect(function(){return function(){p()}},[]),function(h){var m=h.which;if([].concat(UY,[a_,tme,Nb,Ab]).includes(m)){var g=a(),v=zj(g,r),y=v,w=y.elements,b=y.key2element,C=y.element2key,k=b.get(t),S=sVe(k,w),_=C.get(S),E=aVe(e,o(_,!0).length===1,n,m);if(!E&&m!==Nb&&m!==Ab)return;(UY.includes(m)||[Nb,Ab].includes(m))&&h.preventDefault();var $=function(N){if(N){var F=N,K=N.querySelector("a");K!=null&&K.getAttribute("href")&&(F=K);var L=C.get(N);s(L),p(),u.current=rr(function(){f.current===L&&F.focus()})}};if([Nb,Ab].includes(m)||E.sibling||!S){var M;!S||e==="inline"?M=i.current:M=oVe(S);var P,R=kB(M,w);m===Nb?P=R[0]:m===Ab?P=R[R.length-1]:P=WY(M,w,S,E.offset),$(P)}else if(E.inlineTrigger)l(_);else if(E.offset>0)l(_,!0),p(),u.current=rr(function(){v=zj(g,r);var A=S.getAttribute("aria-controls"),N=document.getElementById(A),F=WY(N,v.elements);$(F)},5);else if(E.offset<0){var O=o(_,!0),j=O[O.length-2],I=b.get(j);l(j,!1),$(I)}}c==null||c(h)}}function cVe(e){Promise.resolve().then(e)}var EB="__RC_UTIL_PATH_SPLIT__",VY=function(t){return t.join(EB)},uVe=function(t){return t.split(EB)},Hj="rc-menu-more";function dVe(){var e=d.useState({}),t=Te(e,2),n=t[1],r=d.useRef(new Map),i=d.useRef(new Map),a=d.useState([]),o=Te(a,2),s=o[0],l=o[1],c=d.useRef(0),u=d.useRef(!1),f=function(){u.current||n({})},p=d.useCallback(function(b,C){var k=VY(C);i.current.set(k,b),r.current.set(b,k),c.current+=1;var S=c.current;cVe(function(){S===c.current&&f()})},[]),h=d.useCallback(function(b,C){var k=VY(C);i.current.delete(k),r.current.delete(b)},[]),m=d.useCallback(function(b){l(b)},[]),g=d.useCallback(function(b,C){var k=r.current.get(b)||"",S=uVe(k);return C&&s.includes(S[0])&&S.unshift(Hj),S},[s]),v=d.useCallback(function(b,C){return b.filter(function(k){return k!==void 0}).some(function(k){var S=g(k,!0);return S.includes(C)})},[g]),y=function(){var C=lt(r.current.keys());return s.length&&C.push(Hj),C},w=d.useCallback(function(b){var C="".concat(r.current.get(b)).concat(EB),k=new Set;return lt(i.current.keys()).forEach(function(S){S.startsWith(C)&&k.add(i.current.get(S))}),k},[]);return d.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:p,unregisterPath:h,refreshOverflowKeys:m,isSubPathKey:v,getKeyPath:g,getKeys:y,getSubPathKeys:w}}function x2(e){var t=d.useRef(e);t.current=e;var n=d.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o1&&(w.motionAppear=!1);var b=w.onVisibleChanged;return w.onVisibleChanged=function(C){return!p.current&&!C&&v(!0),b==null?void 0:b(C)},g?null:d.createElement(a3,{mode:a,locked:!p.current},d.createElement(Ca,tt({visible:y},w,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(C){var k=C.className,S=C.style;return d.createElement($B,{id:t,className:k,style:S},i)}))}var MVe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],TVe=["active"],PVe=d.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,a=e.eventKey;e.warnKey;var o=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,f=e.popupClassName,p=e.popupOffset,h=e.popupStyle,m=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,y=e.onTitleClick,w=e.onTitleMouseEnter,b=e.onTitleMouseLeave,C=Ht(e,MVe),k=Zhe(a),S=d.useContext(wu),_=S.prefixCls,E=S.mode,$=S.openKeys,M=S.disabled,P=S.overflowDisabled,R=S.activeKey,O=S.selectedKeys,j=S.itemIcon,I=S.expandIcon,A=S.onItemClick,N=S.onOpenChange,F=S.onActive,K=d.useContext(_B),L=K._internalRenderSubMenuItem,V=d.useContext(eme),B=V.isSubPathKey,U=Py(),Y="".concat(_,"-submenu"),ee=M||o,ie=d.useRef(),Z=d.useRef(),X=c??j,ae=u??I,oe=$.includes(a),le=!P&&oe,ce=B(O,a),pe=nme(a,ee,w,b),me=pe.active,re=Ht(pe,TVe),fe=d.useState(!1),ve=Te(fe,2),$e=ve[0],Ce=ve[1],be=function(ze){ee||Ce(ze)},Se=function(ze){be(!0),g==null||g({key:a,domEvent:ze})},we=function(ze){be(!1),v==null||v({key:a,domEvent:ze})},se=d.useMemo(function(){return me||(E!=="inline"?$e||B([R],a):!1)},[E,me,R,$e,a,B]),ye=rme(U.length),Oe=function(ze){ee||(y==null||y({key:a,domEvent:ze}),E==="inline"&&N(a,!oe))},z=x2(function(ge){m==null||m(g6(ge)),A(ge)}),H=function(ze){E!=="inline"&&N(a,ze)},G=function(){F(a)},de=k&&"".concat(k,"-popup"),xe=d.createElement("div",tt({role:"menuitem",style:ye,className:"".concat(Y,"-title"),tabIndex:ee?null:-1,ref:ie,title:typeof i=="string"?i:null,"data-menu-id":P&&k?null:k,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":ee,onClick:Oe,onFocus:G},re),i,d.createElement(ime,{icon:E!=="horizontal"?ae:void 0,props:q(q({},e),{},{isOpen:le,isSubMenu:!0})},d.createElement("i",{className:"".concat(Y,"-arrow")}))),he=d.useRef(E);if(E!=="inline"&&U.length>1?he.current="vertical":he.current=E,!P){var Ue=he.current;xe=d.createElement(EVe,{mode:Ue,prefixCls:Y,visible:!s&&le&&E!=="inline",popupClassName:f,popupOffset:p,popupStyle:h,popup:d.createElement(a3,{mode:Ue==="horizontal"?"vertical":Ue},d.createElement($B,{id:de,ref:Z},l)),disabled:ee,onVisibleChange:H},xe)}var We=d.createElement(lu.Item,tt({ref:t,role:"none"},C,{component:"li",style:n,className:Ee(Y,"".concat(Y,"-").concat(E),r,ne(ne(ne(ne({},"".concat(Y,"-open"),le),"".concat(Y,"-active"),se),"".concat(Y,"-selected"),ce),"".concat(Y,"-disabled"),ee)),onMouseEnter:Se,onMouseLeave:we}),xe,!P&&d.createElement($Ve,{id:de,open:le,keyPath:U},l));return L&&(We=L(We,e,{selected:ce,active:se,open:le,disabled:ee})),d.createElement(a3,{onItemClick:z,mode:E==="horizontal"?"vertical":E,itemIcon:X,expandIcon:ae},We)}),k8=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Py(n),a=MB(r,i),o=_8();d.useEffect(function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}},[i]);var s;return o?s=a:s=d.createElement(PVe,tt({ref:t},e),a),d.createElement(Jhe.Provider,{value:i},s)});function TB(e){var t=e.className,n=e.style,r=d.useContext(wu),i=r.prefixCls,a=_8();return a?null:d.createElement("li",{role:"separator",className:Ee("".concat(i,"-item-divider"),t),style:n})}var OVe=["className","title","eventKey","children"],RVe=d.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,a=Ht(e,OVe),o=d.useContext(wu),s=o.prefixCls,l="".concat(s,"-item-group");return d.createElement("li",tt({ref:t,role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:Ee(l,n)}),d.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),PB=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Py(n),a=MB(r,i),o=_8();return o?a:d.createElement(RVe,tt({ref:t},$r(e,["warnKey"])),a)}),IVe=["label","children","key","type","extra"];function Uj(e,t,n){var r=t.item,i=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(s,l){if(s&&Kt(s)==="object"){var c=s,u=c.label,f=c.children,p=c.key,h=c.type,m=c.extra,g=Ht(c,IVe),v=p??"tmp-".concat(l);return f||h==="group"?h==="group"?d.createElement(i,tt({key:v},g,{title:u}),Uj(f,t,n)):d.createElement(a,tt({key:v},g,{title:u}),Uj(f,t,n)):h==="divider"?d.createElement(o,tt({key:v},g)):d.createElement(r,tt({key:v},g,{extra:m}),u,(!!m||m===0)&&d.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null}).filter(function(s){return s})}function KY(e,t,n,r,i){var a=e,o=q({divider:TB,item:bg,group:PB,submenu:k8},r);return t&&(a=Uj(t,o,i)),MB(a,n)}var jVe=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Gh=[],NVe=d.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,a=i===void 0?"rc-menu":i,o=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,f=r.items,p=r.children,h=r.direction,m=r.id,g=r.mode,v=g===void 0?"vertical":g,y=r.inlineCollapsed,w=r.disabled,b=r.disabledOverflow,C=r.subMenuOpenDelay,k=C===void 0?.1:C,S=r.subMenuCloseDelay,_=S===void 0?.1:S,E=r.forceSubMenuRender,$=r.defaultOpenKeys,M=r.openKeys,P=r.activeKey,R=r.defaultActiveFirst,O=r.selectable,j=O===void 0?!0:O,I=r.multiple,A=I===void 0?!1:I,N=r.defaultSelectedKeys,F=r.selectedKeys,K=r.onSelect,L=r.onDeselect,V=r.inlineIndent,B=V===void 0?24:V,U=r.motion,Y=r.defaultMotions,ee=r.triggerSubMenuAction,ie=ee===void 0?"hover":ee,Z=r.builtinPlacements,X=r.itemIcon,ae=r.expandIcon,oe=r.overflowedIndicator,le=oe===void 0?"...":oe,ce=r.overflowedIndicatorPopupClassName,pe=r.getPopupContainer,me=r.onClick,re=r.onOpenChange,fe=r.onKeyDown;r.openAnimation,r.openTransitionName;var ve=r._internalRenderMenuItem,$e=r._internalRenderSubMenuItem,Ce=r._internalComponents,be=Ht(r,jVe),Se=d.useMemo(function(){return[KY(p,f,Gh,Ce,a),KY(p,f,Gh,{},a)]},[p,f,Ce]),we=Te(Se,2),se=we[0],ye=we[1],Oe=d.useState(!1),z=Te(Oe,2),H=z[0],G=z[1],de=d.useRef(),xe=pVe(m),he=h==="rtl",Ue=jn($,{value:M,postState:function(cn){return cn||Gh}}),We=Te(Ue,2),ge=We[0],ze=We[1],Ve=function(cn){var Sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function gr(){ze(cn),re==null||re(cn)}Sn?Va.flushSync(gr):gr()},Be=d.useState(ge),Xe=Te(Be,2),Ke=Xe[0],qe=Xe[1],Et=d.useRef(!1),ut=d.useMemo(function(){return(v==="inline"||v==="vertical")&&y?["vertical",y]:[v,!1]},[v,y]),gt=Te(ut,2),Ze=gt[0],nt=gt[1],jt=Ze==="inline",Lt=d.useState(Ze),Bt=Te(Lt,2),Ut=Bt[0],Ne=Bt[1],He=d.useState(nt),Le=Te(He,2),Qe=Le[0],pt=Le[1];d.useEffect(function(){Ne(Ze),pt(nt),Et.current&&(jt?ze(Ke):Ve(Gh))},[Ze,nt]);var xt=d.useState(0),Nt=Te(xt,2),Ot=Nt[0],Pt=Nt[1],st=Ot>=se.length-1||Ut!=="horizontal"||b;d.useEffect(function(){jt&&qe(ge)},[ge]),d.useEffect(function(){return Et.current=!0,function(){Et.current=!1}},[]);var Ct=dVe(),kt=Ct.registerPath,qt=Ct.unregisterPath,vt=Ct.refreshOverflowKeys,At=Ct.isSubPathKey,dt=Ct.getKeyPath,De=Ct.getKeys,Ye=Ct.getSubPathKeys,ot=d.useMemo(function(){return{registerPath:kt,unregisterPath:qt}},[kt,qt]),Re=d.useMemo(function(){return{isSubPathKey:At}},[At]);d.useEffect(function(){vt(st?Gh:se.slice(Ot+1).map(function(pr){return pr.key}))},[Ot,st]);var It=jn(P||R&&((n=se[0])===null||n===void 0?void 0:n.key),{value:P}),rt=Te(It,2),$t=rt[0],Mt=rt[1],dn=x2(function(pr){Mt(pr)}),pn=x2(function(){Mt(void 0)});d.useImperativeHandle(t,function(){return{list:de.current,focus:function(cn){var Sn,gr=De(),on=zj(gr,xe),Je=on.elements,bt=on.key2element,sn=on.element2key,Pn=kB(de.current,Je),qn=$t??(Pn[0]?sn.get(Pn[0]):(Sn=se.find(function(ri){return!ri.props.disabled}))===null||Sn===void 0?void 0:Sn.key),ln=bt.get(qn);if(qn&&ln){var or;ln==null||(or=ln.focus)===null||or===void 0||or.call(ln,cn)}}}});var T=jn(N||[],{value:F,postState:function(cn){return Array.isArray(cn)?cn:cn==null?Gh:[cn]}}),D=Te(T,2),J=D[0],ke=D[1],Ie=function(cn){if(j){var Sn=cn.key,gr=J.includes(Sn),on;A?gr?on=J.filter(function(bt){return bt!==Sn}):on=[].concat(lt(J),[Sn]):on=[Sn],ke(on);var Je=q(q({},cn),{},{selectedKeys:on});gr?L==null||L(Je):K==null||K(Je)}!A&&ge.length&&Ut!=="inline"&&Ve(Gh)},it=x2(function(pr){me==null||me(g6(pr)),Ie(pr)}),Ft=x2(function(pr,cn){var Sn=ge.filter(function(on){return on!==pr});if(cn)Sn.push(pr);else if(Ut!=="inline"){var gr=Ye(pr);Sn=Sn.filter(function(on){return!gr.has(on)})}gg(ge,Sn,!0)||Ve(Sn,!0)}),rn=function(cn,Sn){var gr=Sn??!ge.includes(cn);Ft(cn,gr)},On=lVe(Ut,$t,he,xe,de,De,dt,Mt,rn,fe);d.useEffect(function(){G(!0)},[]);var Er=d.useMemo(function(){return{_internalRenderMenuItem:ve,_internalRenderSubMenuItem:$e}},[ve,$e]),Mr=Ut!=="horizontal"||b?se:se.map(function(pr,cn){return d.createElement(a3,{key:pr.key,overflowDisabled:cn>Ot},pr)}),mr=d.createElement(lu,tt({id:m,ref:de,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:bg,className:Ee(a,"".concat(a,"-root"),"".concat(a,"-").concat(Ut),l,ne(ne({},"".concat(a,"-inline-collapsed"),Qe),"".concat(a,"-rtl"),he),o),dir:h,style:s,role:"menu",tabIndex:u,data:Mr,renderRawItem:function(cn){return cn},renderRawRest:function(cn){var Sn=cn.length,gr=Sn?se.slice(-Sn):null;return d.createElement(k8,{eventKey:Hj,title:le,disabled:st,internalPopupClose:Sn===0,popupClassName:ce},gr)},maxCount:Ut!=="horizontal"||b?lu.INVALIDATE:lu.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(cn){Pt(cn)},onKeyDown:On},be));return d.createElement(_B.Provider,{value:Er},d.createElement(Yhe.Provider,{value:xe},d.createElement(a3,{prefixCls:a,rootClassName:o,mode:Ut,openKeys:ge,rtl:he,disabled:w,motion:H?U:null,defaultMotions:H?Y:null,activeKey:$t,onActive:dn,onInactive:pn,selectedKeys:J,inlineIndent:B,subMenuOpenDelay:k,subMenuCloseDelay:_,forceSubMenuRender:E,builtinPlacements:Z,triggerSubMenuAction:ie,getPopupContainer:pe,itemIcon:X,expandIcon:ae,onItemClick:it,onOpenChange:Ft},d.createElement(eme.Provider,{value:Re},mr),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(Qhe.Provider,{value:ot},ye)))))}),Kg=NVe;Kg.Item=bg;Kg.SubMenu=k8;Kg.ItemGroup=PB;Kg.Divider=TB;var AVe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},DVe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:AVe}))},FVe=d.forwardRef(DVe),LVe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},BVe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:LVe}))},Nf=d.forwardRef(BVe);const ome=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),zVe=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:Me(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},sme=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${a}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},lme=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],cme=Jn("Layout",e=>[zVe(e)],sme,{deprecatedTokens:lme}),HVe=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:p,lightSiderBg:h,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:o,color:s,lineHeight:Me(o),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${Me(p)} ${Me(p)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${Me(p)} 0 0 ${Me(p)}`}}},"&-light":{background:h,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}},UVe=Jn(["Layout","Sider"],e=>[HVe(e)],sme,{deprecatedTokens:lme});var WVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i!Number.isNaN(Number.parseFloat(e))&&isFinite(e),E8=d.createContext({}),qVe=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),ume=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=WVe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=d.useContext(ome),[b,C]=d.useState("collapsed"in e?e.collapsed:o),[k,S]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const _=(X,ae)=>{"collapsed"in e||C(X),g==null||g(X,ae)},{getPrefixCls:E,direction:$}=d.useContext(Xt),M=E("layout-sider",n),[P,R,O]=UVe(M),j=d.useRef(null);j.current=X=>{S(X.matches),v==null||v(X.matches),b!==X.matches&&_(X.matches,"responsive")},d.useEffect(()=>{function X(oe){return j.current(oe)}let ae;if(typeof window<"u"){const{matchMedia:oe}=window;if(oe&&m&&m in GY){ae=oe(`screen and (max-width: ${GY[m]})`);try{ae.addEventListener("change",X)}catch{ae.addListener(X)}X(ae)}}return()=>{try{ae==null||ae.removeEventListener("change",X)}catch{ae==null||ae.removeListener(X)}}},[m]),d.useEffect(()=>{const X=qVe("ant-sider-");return w.addSider(X),()=>w.removeSider(X)},[]);const I=()=>{_(!b,"clickTrigger")},A=$r(y,["collapsed"]),N=b?p:f,F=VVe(N)?`${N}px`:String(N),K=parseFloat(String(p||0))===0?d.createElement("span",{onClick:I,className:Ee(`${M}-zero-width-trigger`,`${M}-zero-width-trigger-${u?"right":"left"}`),style:h},i||d.createElement(FVe,null)):null,L=$==="rtl"==!u,U={expanded:L?d.createElement(bc,null):d.createElement(Nf,null),collapsed:L?d.createElement(Nf,null):d.createElement(bc,null)}[b?"collapsed":"expanded"],Y=i!==null?K||d.createElement("div",{className:`${M}-trigger`,onClick:I,style:{width:F}},i||U):null,ee=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),ie=Ee(M,`${M}-${s}`,{[`${M}-collapsed`]:!!b,[`${M}-has-trigger`]:c&&i!==null&&!K,[`${M}-below`]:!!k,[`${M}-zero-width`]:parseFloat(F)===0},r,R,O),Z=d.useMemo(()=>({siderCollapsed:b}),[b]);return P(d.createElement(E8.Provider,{value:Z},d.createElement("aside",Object.assign({className:ie},A,{style:ee,ref:t}),d.createElement("div",{className:`${M}-children`},a),c||k&&K?Y:null)))});var KVe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},GVe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:KVe}))},OB=d.forwardRef(GVe);const v6=d.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var YVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,dashed:r}=e,i=YVe(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=d.useContext(Xt),o=a("menu",t),s=Ee({[`${o}-item-divider-dashed`]:!!r},n);return d.createElement(TB,Object.assign({className:s},i))},fme=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:o,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:f,inlineCollapsed:p}=d.useContext(v6),h=b=>{const C=r==null?void 0:r[0],k=d.createElement("span",{className:Ee(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!i||d.isValidElement(r)&&r.type==="span")&&r&&b&&c&&typeof C=="string"?d.createElement("div",{className:`${l}-inline-collapsed-noicon`},C.charAt(0)):k},{siderCollapsed:m}=d.useContext(E8);let g=a;typeof a>"u"?g=c?r:"":a===!1&&(g="");const v={title:g};!m&&!p&&(v.title=null,v.open=!1);const y=Xi(r).length;let w=d.createElement(bg,Object.assign({},$r(e,["title","icon","danger"]),{className:Ee({[`${l}-item-danger`]:o,[`${l}-item-only-child`]:(i?y+1:y)===1},n),title:typeof a=="string"?a:void 0}),aa(i,{className:Ee(d.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h(p));return f||(w=d.createElement(_a,Object.assign({},v,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),w)),w};var XVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{children:n}=e,r=XVe(e,["children"]),i=d.useContext(y6),a=d.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=MRe(n),s=ku(t,o?bh(n):null);return d.createElement(y6.Provider,{value:a},d.createElement(bu,{space:!0},o?d.cloneElement(n,{ref:s}):n))}),QVe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Me(a)} ${o} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, > ${t}-item-active, - > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},ZVe=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, - ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Me(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Me(n)})`}}}}},qY=e=>Object.assign({},gc(e)),KY=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:f,activeBarBorderWidth:p,motionDurationSlow:h,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:y,itemHoverColor:b,lineType:w,colorSplit:_,itemDisabledColor:k,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:E,dangerItemActiveBg:$,dangerItemSelectedBg:M,popupBg:P,itemHoverBg:I,itemActiveBg:O,menuSubMenuBg:A,horizontalItemSelectedColor:R,horizontalItemSelectedBg:j,horizontalItemBorderRadius:N,horizontalItemHoverBg:D}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},qY(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},qY(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${k} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:O}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:O}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:M}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${Me(u)} solid transparent`,transition:`border-color ${h} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:D,"&::after":{borderBottomWidth:u,borderBottomColor:R}},"&-selected":{color:R,backgroundColor:j,"&:hover":{backgroundColor:j},"&::after":{borderBottomWidth:u,borderBottomColor:R}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Me(p)} ${w} ${_}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Me(f)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${g}`,`opacity ${y} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${m}`,`opacity ${y} ${m}`].join(",")}}}}}},GY=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Me(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item, + > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},JVe=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, + ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Me(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Me(n)})`}}}}},YY=e=>Object.assign({},yc(e)),XY=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:f,activeBarBorderWidth:p,motionDurationSlow:h,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:y,itemHoverColor:w,lineType:b,colorSplit:C,itemDisabledColor:k,dangerItemColor:S,dangerItemHoverColor:_,dangerItemSelectedColor:E,dangerItemActiveBg:$,dangerItemSelectedBg:M,popupBg:P,itemHoverBg:R,itemActiveBg:O,menuSubMenuBg:j,horizontalItemSelectedColor:I,horizontalItemSelectedBg:A,horizontalItemBorderRadius:N,horizontalItemHoverBg:F}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},YY(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},YY(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${k} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:w}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:O}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:O}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:_}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:M}},[`&${n}-submenu > ${n}`]:{backgroundColor:j},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${Me(u)} solid transparent`,transition:`border-color ${h} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:u,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:A,"&:hover":{backgroundColor:A},"&::after":{borderBottomWidth:u,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Me(p)} ${b} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Me(f)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${g}`,`opacity ${y} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${m}`,`opacity ${y} ${m}`].join(",")}}}}}},ZY=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Me(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Me(n)},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:u}}},QVe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:f,motionDurationSlow:p,paddingXS:h,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:v}=e,y={height:r,lineHeight:Me(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},GY(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},GY(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${Me(e.calc(o).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${f} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item, + ${t}-submenu-title`]:{paddingInlineEnd:u}}},eqe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:f,motionDurationSlow:p,paddingXS:h,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:v}=e,y={height:r,lineHeight:Me(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},ZY(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},ZY(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${Me(e.calc(o).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${f} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Me(e.calc(v).div(2).equal())} - ${Me(c)})`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:Me(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},oo),{paddingInline:h})}}]},YY=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},yh()),[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},XY=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Me(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Me(o)})`}}}}},JVe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:f,borderRadiusLG:p,subMenuItemBorderRadius:h,menuArrowSize:m,menuArrowOffset:g,lineType:v,groupTitleLineHeight:y,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},hd()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),hd()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Me(s)} ${Me(l)}`,fontSize:b,lineHeight:y,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`,`padding ${a} ${o}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${o}`,`padding ${i} ${o}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),YY(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Me(e.calc(r).mul(2).equal())} ${Me(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},YY(e)),XY(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),XY(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Me(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Me(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Me(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Me(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Me(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},eqe=e=>{var t,n,r;const{colorPrimary:i,colorError:a,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:f,colorFillContent:p,lineWidth:h,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:y,lineHeight:b,colorBgElevated:w,marginXXS:_,padding:k,fontSize:S,controlHeightSM:C,fontSizeLG:E,colorTextLightSolid:$,colorErrorHover:M}=e,P=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,I=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:h,O=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,A=new dr($).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:p,itemActiveBg:g,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:h,activeBarBorderWidth:I,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:O,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:b,collapsedWidth:y*2,popupBg:w,itemMarginBlock:_,itemPaddingInline:k,horizontalLineHeight:`${y*1.15}px`,iconSize:S,iconMarginInlineEnd:C-S,collapsedIconSize:E,groupTitleFontSize:S,darkItemDisabledColor:new dr($).setA(.25).toRgbString(),darkItemColor:A,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:i,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:A,darkItemHoverColor:$,darkDangerItemHoverColor:M,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:a,itemWidth:P?`calc(100% + ${I}px)`:`calc(100% - ${O*2}px)`}},tqe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Jn("Menu",i=>{const{colorBgElevated:a,controlHeightLG:o,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:f,darkItemSelectedColor:p,darkItemSelectedBg:h,darkDangerItemSelectedBg:m,darkItemHoverBg:g,darkGroupTitleColor:v,darkItemHoverColor:y,darkItemDisabledColor:b,darkDangerItemHoverColor:w,darkDangerItemSelectedColor:_,darkDangerItemActiveBg:k,popupBg:S,darkPopupBg:C}=i,E=i.calc(s).div(7).mul(5).equal(),$=Hn(i,{menuArrowSize:E,menuHorizontalHeight:i.calc(o).mul(1.15).equal(),menuArrowOffset:i.calc(E).mul(.25).equal(),menuSubMenuBg:a,calc:i.calc,popupBg:S}),M=Hn($,{itemColor:l,itemHoverColor:y,groupTitleColor:v,itemSelectedColor:p,itemBg:u,popupBg:C,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:b,dangerItemColor:c,dangerItemHoverColor:w,dangerItemSelectedColor:_,dangerItemActiveBg:k,dangerItemSelectedBg:m,menuSubMenuBg:f,horizontalItemSelectedColor:p,horizontalItemSelectedBg:h});return[JVe($),XVe($),QVe($),KY($,"light"),KY(M,"dark"),ZVe($),b4($),md($,"slide-up"),md($,"slide-down"),Cy($,"zoom-big")]},eqe,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},cme=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,o=d.useContext(g6),{prefixCls:s,inlineCollapsed:l,theme:c}=o,u=Ty();let f;if(!r)f=l&&!u.length&&i&&typeof i=="string"?d.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):d.createElement("span",{className:`${s}-title-content`},i);else{const m=d.isValidElement(i)&&i.type==="span";f=d.createElement(d.Fragment,null,oa(r,{className:Ee(d.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m?i:d.createElement("span",{className:`${s}-title-content`},i))}const p=d.useMemo(()=>Object.assign(Object.assign({},o),{firstLevel:!1}),[o]),[h]=_c("Menu");return d.createElement(g6.Provider,{value:p},d.createElement(_8,Object.assign({},$r(e,["icon"]),{title:f,popupClassName:Ee(s,n,`${s}-${a||c}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))};var nqe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const r=d.useContext(v6),i=r||{},{getPrefixCls:a,getPopupContainer:o,direction:s,menu:l}=d.useContext(Zt),c=a(),{prefixCls:u,className:f,style:p,theme:h="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:y,rootClassName:b,mode:w,selectable:_,onClick:k,overflowedIndicatorPopupClassName:S}=e,C=nqe(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),E=$r(C,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:w});const $=Vn(function(){var B;k==null||k.apply(void 0,arguments),(B=i.onClick)===null||B===void 0||B.call(i)}),M=i.mode||w,P=_??i.selectable,I=v??y,O={horizontal:{motionName:`${c}-slide-up`},inline:$0(c),other:{motionName:`${c}-zoom-big`}},A=a("menu",u||i.prefixCls),R=qr(A),[j,N,D]=tqe(A,R,!r),V=Ee(`${A}-${h}`,l==null?void 0:l.className,f),F=d.useMemo(()=>{var B,U;if(typeof m=="function"||L9(m))return m||null;if(typeof i.expandIcon=="function"||L9(i.expandIcon))return i.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||L9(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const Z=(B=m??(i==null?void 0:i.expandIcon))!==null&&B!==void 0?B:l==null?void 0:l.expandIcon;return oa(Z,{className:Ee(`${A}-submenu-expand-icon`,d.isValidElement(Z)?(U=Z.props)===null||U===void 0?void 0:U.className:void 0)})},[m,i==null?void 0:i.expandIcon,l==null?void 0:l.expandIcon,A]),K=d.useMemo(()=>({prefixCls:A,inlineCollapsed:I||!1,direction:s,firstLevel:!0,theme:h,mode:M,disableMenuItemTitleTooltip:g}),[A,I,s,g,h]);return j(d.createElement(v6.Provider,{value:null},d.createElement(g6.Provider,{value:K},d.createElement(qg,Object.assign({getPopupContainer:o,overflowedIndicator:d.createElement(TB,null),overflowedIndicatorPopupClassName:Ee(A,`${A}-${h}`,S),mode:M,selectable:P,onClick:$},E,{inlineCollapsed:I,style:Object.assign(Object.assign({},l==null?void 0:l.style),p),className:V,prefixCls:A,direction:s,defaultMotions:O,expandIcon:F,ref:t,rootClassName:Ee(b,N,i.rootClassName,D,R),_internalComponents:rqe})))))}),ks=d.forwardRef((e,t)=>{const n=d.useRef(null),r=d.useContext(k8);return d.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var a;(a=n.current)===null||a===void 0||a.focus(i)}})),d.createElement(iqe,Object.assign({ref:n},e,r))});ks.Item=lme;ks.SubMenu=cme;ks.Divider=sme;ks.ItemGroup=MB;const aqe=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},oqe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:f,colorTextDisabled:p,fontSizeIcon:h,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${o}-btn > ${s}-down`]:{fontSize:h},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:Me(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ao),{paddingInline:h})}}]},QY=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},wh()),[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},JY=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Me(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Me(o)})`}}}}},tqe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:f,borderRadiusLG:p,subMenuItemBorderRadius:h,menuArrowSize:m,menuArrowOffset:g,lineType:v,groupTitleLineHeight:y,groupTitleFontSize:w}=e;return[{"":{[n]:Object.assign(Object.assign({},vd()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),vd()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Me(s)} ${Me(l)}`,fontSize:w,lineHeight:y,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`,`padding ${a} ${o}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${o}`,`padding ${i} ${o}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),QY(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Me(e.calc(r).mul(2).equal())} ${Me(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},QY(e)),JY(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),JY(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Me(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Me(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Me(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Me(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Me(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},nqe=e=>{var t,n,r;const{colorPrimary:i,colorError:a,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:f,colorFillContent:p,lineWidth:h,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:y,lineHeight:w,colorBgElevated:b,marginXXS:C,padding:k,fontSize:S,controlHeightSM:_,fontSizeLG:E,colorTextLightSolid:$,colorErrorHover:M}=e,P=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,R=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:h,O=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,j=new ur($).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:p,itemActiveBg:g,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:h,activeBarBorderWidth:R,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:O,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:w,collapsedWidth:y*2,popupBg:b,itemMarginBlock:C,itemPaddingInline:k,horizontalLineHeight:`${y*1.15}px`,iconSize:S,iconMarginInlineEnd:_-S,collapsedIconSize:E,groupTitleFontSize:S,darkItemDisabledColor:new ur($).setA(.25).toRgbString(),darkItemColor:j,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:i,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:j,darkItemHoverColor:$,darkDangerItemHoverColor:M,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:a,itemWidth:P?`calc(100% + ${R}px)`:`calc(100% - ${O*2}px)`}},rqe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Jn("Menu",i=>{const{colorBgElevated:a,controlHeightLG:o,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:f,darkItemSelectedColor:p,darkItemSelectedBg:h,darkDangerItemSelectedBg:m,darkItemHoverBg:g,darkGroupTitleColor:v,darkItemHoverColor:y,darkItemDisabledColor:w,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:k,popupBg:S,darkPopupBg:_}=i,E=i.calc(s).div(7).mul(5).equal(),$=Hn(i,{menuArrowSize:E,menuHorizontalHeight:i.calc(o).mul(1.15).equal(),menuArrowOffset:i.calc(E).mul(.25).equal(),menuSubMenuBg:a,calc:i.calc,popupBg:S}),M=Hn($,{itemColor:l,itemHoverColor:y,groupTitleColor:v,itemSelectedColor:p,itemBg:u,popupBg:_,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:w,dangerItemColor:c,dangerItemHoverColor:b,dangerItemSelectedColor:C,dangerItemActiveBg:k,dangerItemSelectedBg:m,menuSubMenuBg:f,horizontalItemSelectedColor:p,horizontalItemSelectedBg:h});return[tqe($),QVe($),eqe($),XY($,"light"),XY(M,"dark"),JVe($),x4($),yd($,"slide-up"),yd($,"slide-down"),_y($,"zoom-big")]},nqe,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},pme=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,o=d.useContext(v6),{prefixCls:s,inlineCollapsed:l,theme:c}=o,u=Py();let f;if(!r)f=l&&!u.length&&i&&typeof i=="string"?d.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):d.createElement("span",{className:`${s}-title-content`},i);else{const m=d.isValidElement(i)&&i.type==="span";f=d.createElement(d.Fragment,null,aa(r,{className:Ee(d.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m?i:d.createElement("span",{className:`${s}-title-content`},i))}const p=d.useMemo(()=>Object.assign(Object.assign({},o),{firstLevel:!1}),[o]),[h]=$c("Menu");return d.createElement(v6.Provider,{value:p},d.createElement(k8,Object.assign({},$r(e,["icon"]),{title:f,popupClassName:Ee(s,n,`${s}-${a||c}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))};var iqe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const r=d.useContext(y6),i=r||{},{getPrefixCls:a,getPopupContainer:o,direction:s,menu:l}=d.useContext(Xt),c=a(),{prefixCls:u,className:f,style:p,theme:h="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:y,rootClassName:w,mode:b,selectable:C,onClick:k,overflowedIndicatorPopupClassName:S}=e,_=iqe(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),E=$r(_,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:b});const $=Vn(function(){var B;k==null||k.apply(void 0,arguments),(B=i.onClick)===null||B===void 0||B.call(i)}),M=i.mode||b,P=C??i.selectable,R=v??y,O={horizontal:{motionName:`${c}-slide-up`},inline:P0(c),other:{motionName:`${c}-zoom-big`}},j=a("menu",u||i.prefixCls),I=qr(j),[A,N,F]=rqe(j,I,!r),K=Ee(`${j}-${h}`,l==null?void 0:l.className,f),L=d.useMemo(()=>{var B,U;if(typeof m=="function"||H9(m))return m||null;if(typeof i.expandIcon=="function"||H9(i.expandIcon))return i.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||H9(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const Y=(B=m??(i==null?void 0:i.expandIcon))!==null&&B!==void 0?B:l==null?void 0:l.expandIcon;return aa(Y,{className:Ee(`${j}-submenu-expand-icon`,d.isValidElement(Y)?(U=Y.props)===null||U===void 0?void 0:U.className:void 0)})},[m,i==null?void 0:i.expandIcon,l==null?void 0:l.expandIcon,j]),V=d.useMemo(()=>({prefixCls:j,inlineCollapsed:R||!1,direction:s,firstLevel:!0,theme:h,mode:M,disableMenuItemTitleTooltip:g}),[j,R,s,g,h]);return A(d.createElement(y6.Provider,{value:null},d.createElement(v6.Provider,{value:V},d.createElement(Kg,Object.assign({getPopupContainer:o,overflowedIndicator:d.createElement(OB,null),overflowedIndicatorPopupClassName:Ee(j,`${j}-${h}`,S),mode:M,selectable:P,onClick:$},E,{inlineCollapsed:R,style:Object.assign(Object.assign({},l==null?void 0:l.style),p),className:K,prefixCls:j,direction:s,defaultMotions:O,expandIcon:L,ref:t,rootClassName:Ee(w,N,i.rootClassName,F,I),_internalComponents:aqe})))))}),ks=d.forwardRef((e,t)=>{const n=d.useRef(null),r=d.useContext(E8);return d.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var a;(a=n.current)===null||a===void 0||a.focus(i)}})),d.createElement(oqe,Object.assign({ref:n},e,r))});ks.Item=fme;ks.SubMenu=pme;ks.Divider=dme;ks.ItemGroup=PB;const sqe=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},lqe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:f,colorTextDisabled:p,fontSizeIcon:h,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${o}-btn > ${s}-down`]:{fontSize:h},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft, &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom, &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom, &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight, - &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:r8},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:i8},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft, &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft, &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top, &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top, &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight, - &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:a8},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:o8},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft, &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom, - &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:i8},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft, + &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:a8},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft, &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top, - &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:o8}}},xB(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},ar(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Vs(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Me(c)} ${Me(m)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Me(c)} ${Me(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Vs(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Me(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Me(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[md(e,"slide-up"),md(e,"slide-down"),M0(e,"move-up"),M0(e,"move-down"),Cy(e,"zoom-big")]]},sqe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},x8({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),w8(e)),lqe=Jn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=Hn(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[oqe(a),aqe(a)]},sqe,{resetStyle:!1}),E8=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:f,overlayStyle:p,open:h,onOpenChange:m,visible:g,onVisibleChange:v,mouseEnterDelay:y=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:w=!0,placement:_="",overlay:k,transitionName:S}=e,{getPopupContainer:C,getPrefixCls:E,direction:$,dropdown:M}=d.useContext(Zt);Hg();const P=d.useMemo(()=>{const pe=E();return S!==void 0?S:_.includes("top")?`${pe}-slide-down`:`${pe}-slide-up`},[E,_,S]),I=d.useMemo(()=>_?_.includes("Center")?_.slice(0,_.indexOf("Center")):_:$==="rtl"?"bottomRight":"bottomLeft",[_,$]),O=E("dropdown",i),A=qr(O),[R,j,N]=lqe(O,A),[,D]=$a(),V=d.Children.only(QWe(a)?d.createElement("span",null,a):a),F=oa(V,{className:Ee(`${O}-trigger`,{[`${O}-rtl`]:$==="rtl"},V.props.className),disabled:(t=V.props.disabled)!==null&&t!==void 0?t:s}),K=s?[]:o,B=!!(K!=null&&K.includes("contextMenu")),[U,Z]=In(!1,{value:h??g}),ee=Vn(pe=>{m==null||m(pe,{source:"trigger"}),v==null||v(pe),Z(pe)}),ie=Ee(u,f,j,N,A,M==null?void 0:M.className,{[`${O}-rtl`]:$==="rtl"}),Y=Ahe({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:w,offset:D.marginXXS,arrowWidth:r?D.sizePopupArrow:0,borderRadius:D.borderRadius}),X=d.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(m==null||m(!1,{source:"menu"}),Z(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),ae=()=>{let pe;return n!=null&&n.items?pe=d.createElement(ks,Object.assign({},n)):typeof k=="function"?pe=k():pe=k,l&&(pe=l(pe)),pe=d.Children.only(typeof pe=="string"?d.createElement("span",null,pe):pe),d.createElement(YVe,{prefixCls:`${O}-menu`,rootClassName:Ee(N,A),expandIcon:d.createElement("span",{className:`${O}-menu-submenu-arrow`},d.createElement(vc,{className:`${O}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:me=>{}},pe)},[oe,le]=_c("Dropdown",p==null?void 0:p.zIndex);let ce=d.createElement(Whe,Object.assign({alignPoint:B},$r(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:b,visible:U,builtinPlacements:Y,arrow:!!r,overlayClassName:ie,prefixCls:O,getPopupContainer:c||C,transitionName:P,trigger:K,overlay:ae,placement:I,onVisibleChange:ee,overlayStyle:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.style),p),{zIndex:oe})}),F);return oe&&(ce=d.createElement(m4.Provider,{value:le},ce)),R(ce)},cqe=Gf(E8,"align",void 0,"dropdown",e=>e),uqe=e=>d.createElement(cqe,Object.assign({},e),d.createElement("span",null));E8._InternalPanelDoNotUseOrYouWillBeFired=uqe;var ume={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",u="week",f="month",p="quarter",h="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var R=["th","st","nd","rd"],j=A%100;return"["+A+(R[(j-20)%10]||R[j]||R[0])+"]"}},w=function(A,R,j){var N=String(A);return!N||N.length>=R?A:""+Array(R+1-N.length).join(j)+A},_={s:w,z:function(A){var R=-A.utcOffset(),j=Math.abs(R),N=Math.floor(j/60),D=j%60;return(R<=0?"+":"-")+w(N,2,"0")+":"+w(D,2,"0")},m:function A(R,j){if(R.date()1)return A(F[0])}else{var K=R.name;S[K]=R,D=K}return!N&&D&&(k=D),D||!N&&k},M=function(A,R){if(E(A))return A.clone();var j=typeof R=="object"?R:{};return j.date=A,j.args=arguments,new I(j)},P=_;P.l=$,P.i=E,P.w=function(A,R){return M(A,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var I=function(){function A(j){this.$L=$(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[C]=!0}var R=A.prototype;return R.parse=function(j){this.$d=function(N){var D=N.date,V=N.utc;if(D===null)return new Date(NaN);if(P.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var F=D.match(v);if(F){var K=F[2]-1||0,B=(F[7]||"0").substring(0,3);return V?new Date(Date.UTC(F[1],K,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)):new Date(F[1],K,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)}}return new Date(D)}(j),this.init()},R.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},R.$utils=function(){return P},R.isValid=function(){return this.$d.toString()!==g},R.isSame=function(j,N){var D=M(j);return this.startOf(N)<=D&&D<=this.endOf(N)},R.isAfter=function(j,N){return M(j)25){var u=o(this).startOf(r).add(1,r).date(c),f=o(this).endOf(n);if(u.isBefore(f))return 1}var p=o(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),h=this.diff(p,n,!0);return h<0?o(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(gme);var pqe=gme.exports;const PB=ei(pqe);var vme={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),a=this.week(),o=this.year();return a===1&&i===11?o+1:i===0&&a>=52?o-1:o}}})})(vme);var hqe=vme.exports;const mqe=ei(hqe);var yme={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return a.bind(this)(o);var c=this.$utils(),u=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return a.bind(this)(u)}}})})(yme);var gqe=yme.exports;const bme=ei(gqe);var wme={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(y){this[v]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),w=60*b[1]+(+b[2]||0);return w===0?0:b[0]==="+"?-w:w}(v)}],p=function(v){var y=l[v];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(v,y){var b,w=l.meridiem;if(w){for(var _=1;_<=24;_+=1)if(v.indexOf(w(_,0,y))>-1){b=_>12;break}}else b=v===(y?"pm":"PM");return b},m={A:[s,function(v){this.afternoon=h(v,!1)}],a:[s,function(v){this.afternoon=h(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[a,u("day")],Do:[s,function(v){var y=l.ordinal,b=v.match(/\d+/);if(this.day=b[0],y)for(var w=1;w<=31;w+=1)y(w).replace(/\[|\]/g,"")===v&&(this.day=w)}],w:[o,u("week")],ww:[a,u("week")],M:[o,u("month")],MM:[a,u("month")],MMM:[s,function(v){var y=p("months"),b=(p("monthsShort")||y.map(function(w){return w.slice(0,3)})).indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[s,function(v){var y=p("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(v){var y,b;y=v,b=l&&l.formats;for(var w=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,P,I){var O=I&&I.toUpperCase();return P||b[I]||n[I]||b[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,R,j){return R||j.slice(1)})})).match(r),_=w.length,k=0;k<_;k+=1){var S=w[k],C=m[S],E=C&&C[0],$=C&&C[1];w[k]=$?{regex:E,parser:$}:S.replace(/^\[|\]$/g,"")}return function(M){for(var P={},I=0,O=0;I<_;I+=1){var A=w[I];if(typeof A=="string")O+=A.length;else{var R=A.regex,j=A.parser,N=M.slice(O),D=R.exec(N)[0];j.call(P,D),M=M.replace(D,"")}}return function(V){var F=V.afternoon;if(F!==void 0){var K=V.hours;F?K<12&&(V.hours+=12):K===12&&(V.hours=0),delete V.afternoon}}(P),P}}return function(v,y,b){b.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(c=v.parseTwoDigitYear);var w=y.prototype,_=w.parse;w.parse=function(k){var S=k.date,C=k.utc,E=k.args;this.$u=C;var $=E[1];if(typeof $=="string"){var M=E[2]===!0,P=E[3]===!0,I=M||P,O=E[2];P&&(O=E[2]),l=this.$locale(),!M&&O&&(l=b.Ls[O]),this.$d=function(N,D,V,F){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*N);var K=g(D)(N),B=K.year,U=K.month,Z=K.day,ee=K.hours,ie=K.minutes,Y=K.seconds,X=K.milliseconds,ae=K.zone,oe=K.week,le=new Date,ce=Z||(B||U?1:le.getDate()),pe=B||le.getFullYear(),me=0;B&&!U||(me=U>0?U-1:le.getMonth());var re,fe=ee||0,ve=ie||0,$e=Y||0,Ce=X||0;return ae?new Date(Date.UTC(pe,me,ce,fe,ve,$e,Ce+60*ae.offset*1e3)):V?new Date(Date.UTC(pe,me,ce,fe,ve,$e,Ce)):(re=new Date(pe,me,ce,fe,ve,$e,Ce),oe&&(re=F(re).week(oe).toDate()),re)}catch{return new Date("")}}(S,$,C,b),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),I&&S!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var A=$.length,R=1;R<=A;R+=1){E[1]=$[R-1];var j=b.apply(this,E);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}R===A&&(this.$d=new Date(""))}else _.call(this,k)}}})})(wme);var vqe=wme.exports;const xme=ei(vqe);ur.extend(xme);ur.extend(bme);ur.extend(pme);ur.extend(mme);ur.extend(PB);ur.extend(mqe);ur.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(a){var o=(a||"").replace("Wo","wo");return r.bind(this)(o)}});var yqe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Kh=function(t){var n=yqe[t];return n||t.split("_")[0]},bqe={getNow:function(){var t=ur();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return ur(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return ur().locale(Kh(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Kh(t)).weekday(0)},getWeek:function(t,n){return n.locale(Kh(t)).week()},getShortWeekDays:function(t){return ur().locale(Kh(t)).localeData().weekdaysMin()},getShortMonths:function(t){return ur().locale(Kh(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Kh(t)).format(r)},parse:function(t,n,r){for(var i=Kh(t),a=0;a2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=d.useState([!1,!1]),i=Te(r,2),a=i[0],o=i[1],s=function(u,f){o(function(p){return Q2(p,f,u)})},l=d.useMemo(function(){return a.map(function(c,u){if(c)return!0;var f=e[u];return f?!!(!n[u]&&!f||f&&t(f,{activeIndex:u})):!1})},[e,a,t,n]);return[l,s]}function Mme(e,t,n,r,i){var a="",o=[];return e&&o.push(i?"hh":"HH"),t&&o.push("mm"),n&&o.push("ss"),a=o.join(":"),r&&(a+=".SSS"),i&&(a+=" A"),a}function xqe(e,t,n,r,i,a){var o=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,h=e.yearFormat,m=e.cellYearFormat,g=e.cellQuarterFormat,v=e.dayFormat,y=e.cellDateFormat,b=Mme(t,n,r,i,a);return q(q({},e),{},{fieldDateTimeFormat:o||"YYYY-MM-DD ".concat(b),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||b,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:y||v||"D"})}function Tme(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,a=t.showMillisecond,o=t.use12Hours;return te.useMemo(function(){return xqe(e,n,r,i,a,o)},[e,n,r,i,a,o])}function Ab(e,t,n){return n??t.some(function(r){return e.includes(r)})}var Sqe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Cqe(e){var t=M8(e,Sqe),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=Kt(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function _qe(e){return e&&typeof e=="string"}function Pme(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function Ome(e,t,n,r,i){var a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){var l,c,u,f=[a,o,s].some(function(m){return m===!1}),p=[a,o,s].some(function(m){return m===!0}),h=f?!0:!p;a=(l=a)!==null&&l!==void 0?l:h,o=(c=o)!==null&&c!==void 0?c:h,s=(u=s)!==null&&u!==void 0?u:h}return[a,o,s,i]}function Ime(e){var t=e.showTime,n=Cqe(e),r=Te(n,2),i=r[0],a=r[1],o=t&&Kt(t)==="object"?t:{},s=q(q({defaultOpenValue:o.defaultOpenValue||o.defaultValue},i),o),l=s.showMillisecond,c=s.showHour,u=s.showMinute,f=s.showSecond,p=Pme(c,u,f,l),h=Ome(p,c,u,f,l),m=Te(h,3);return c=m[0],u=m[1],f=m[2],[s,q(q({},s),{},{showHour:c,showMinute:u,showSecond:f,showMillisecond:l}),s.format,a]}function Rme(e,t,n,r,i){var a=e==="time";if(e==="datetime"||a){for(var o=r,s=_me(e,i,null),l=s,c=[t,n],u=0;u1&&(o=t.addDate(o,-7)),o}function qa(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function y6(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(o,s){n?r=e[o](r,e[i[s]](n)):r=e[o](r,0)}),r}function Mqe(e,t,n,r,i){var a=Vn(function(o,s){return!!(n&&n(o,s)||r&&e.isAfter(r,o)&&!Vo(e,t,r,o,s.type)||i&&e.isAfter(o,i)&&!Vo(e,t,i,o,s.type))});return a}function Tqe(e,t,n){return d.useMemo(function(){var r=_me(e,t,n),i=Kg(r),a=i[0],o=Kt(a)==="object"&&a.type==="mask"?a.format:null;return[i.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),o]},[e,t,n])}function Pqe(e,t,n){return typeof e[0]=="function"||n?!0:t}function Oqe(e,t,n,r){var i=Vn(function(a,o){var s=q({type:t},o);if(delete s.activeIndex,!e.isValidate(a)||n&&n(a,s))return!0;if((t==="date"||t==="time")&&r){var l,c=o&&o.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,a,c,{from:s.from}))||{},f=u.disabledHours,p=u.disabledMinutes,h=u.disabledSeconds,m=u.disabledMilliseconds,g=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,b=f||g,w=p||v,_=h||y,k=e.getHour(a),S=e.getMinute(a),C=e.getSecond(a),E=e.getMillisecond(a);if(b&&b().includes(k)||w&&w(k).includes(S)||_&&_(k,S).includes(C)||m&&m(k,S,C).includes(E))return!0}return!1});return i}function bS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=d.useMemo(function(){var r=e&&Kg(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function Ame(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,a=i===void 0?"date":i,o=e.prefixCls,s=o===void 0?"rc-picker":o,l=e.styles,c=l===void 0?{}:l,u=e.classNames,f=u===void 0?{}:u,p=e.order,h=p===void 0?!0:p,m=e.components,g=m===void 0?{}:m,v=e.inputRender,y=e.allowClear,b=e.clearIcon,w=e.needConfirm,_=e.multiple,k=e.format,S=e.inputReadOnly,C=e.disabledDate,E=e.minDate,$=e.maxDate,M=e.showTime,P=e.value,I=e.defaultValue,O=e.pickerValue,A=e.defaultPickerValue,R=bS(P),j=bS(I),N=bS(O),D=bS(A),V=a==="date"&&M?"datetime":a,F=V==="time"||V==="datetime",K=F||_,B=w??F,U=Ime(e),Z=Te(U,4),ee=Z[0],ie=Z[1],Y=Z[2],X=Z[3],ae=Tme(r,ie),oe=d.useMemo(function(){return Rme(V,Y,X,ee,ae)},[V,Y,X,ee,ae]),le=d.useMemo(function(){return q(q({},e),{},{prefixCls:s,locale:ae,picker:a,styles:c,classNames:f,order:h,components:q({input:v},g),clearIcon:kqe(s,y,b),showTime:oe,value:R,defaultValue:j,pickerValue:N,defaultPickerValue:D},t==null?void 0:t())},[e]),ce=Tqe(V,ae,k),pe=Te(ce,2),me=pe[0],re=pe[1],fe=Pqe(me,S,_),ve=Mqe(n,r,C,E,$),$e=Oqe(n,a,ve,oe),Ce=d.useMemo(function(){return q(q({},le),{},{needConfirm:B,inputReadOnly:fe,disabledDate:ve})},[le,B,fe,ve]);return[Ce,V,K,me,re,$e]}function Iqe(e,t,n){var r=In(t,{value:e}),i=Te(r,2),a=i[0],o=i[1],s=te.useRef(e),l=te.useRef(),c=function(){rr.cancel(l.current)},u=Vn(function(){o(s.current),n&&a!==s.current&&n(s.current)}),f=Vn(function(p,h){c(),s.current=p,p||h?u():l.current=rr(u)});return te.useEffect(function(){return c},[]),[a,f]}function Dme(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(u){return u})?!1:e,a=Iqe(i,t||!1,r),o=Te(a,2),s=o[0],l=o[1];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(u,f.force)}return[s,c]}function Fme(e){var t=d.useRef();return d.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(i){var a;(a=t.current)===null||a===void 0||a.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function Lme(e,t){return d.useMemo(function(){return e||(t?(zr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=Te(n,2),i=r[0],a=r[1];return{label:i,value:a}})):[])},[e,t])}function NB(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=d.useRef(t);r.current=t,Vm(function(){if(e)r.current(e);else{var i=rr(function(){r.current(e)},n);return function(){rr.cancel(i)}}},[e])}function Bme(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=d.useState(0),i=Te(r,2),a=i[0],o=i[1],s=d.useState(!1),l=Te(s,2),c=l[0],u=l[1],f=d.useRef([]),p=d.useRef(null),h=d.useRef(null),m=function(_){p.current=_},g=function(_){return p.current===_},v=function(_){u(_)},y=function(_){return _&&(h.current=_),h.current},b=function(_){var k=f.current,S=new Set(k.filter(function(E){return _[E]||t[E]})),C=k[k.length-1]===0?1:0;return S.size>=2||e[C]?null:C};return NB(c||n,function(){c||(f.current=[],m(null))}),d.useEffect(function(){c&&f.current.push(a)},[c,a]),[c,v,y,a,o,b,f.current,m,g]}function Rqe(e,t,n,r,i,a){var o=n[n.length-1],s=function(c,u){var f=Te(e,2),p=f[0],h=f[1],m=q(q({},u),{},{from:kme(e,n)});return o===1&&t[0]&&p&&!Vo(r,i,p,c,m.type)&&r.isAfter(p,c)||o===0&&t[1]&&h&&!Vo(r,i,h,c,m.type)&&r.isAfter(c,h)?!0:a==null?void 0:a(c,m)};return s}function S2(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var z9=[];function zme(e,t,n,r,i,a,o,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:z9,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:z9,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:z9,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,m=o==="time",g=a||0,v=function(N){var D=e.getNow();return m&&(D=y6(e,D)),l[N]||n[N]||D},y=Te(c,2),b=y[0],w=y[1],_=In(function(){return v(0)},{value:b}),k=Te(_,2),S=k[0],C=k[1],E=In(function(){return v(1)},{value:w}),$=Te(E,2),M=$[0],P=$[1],I=d.useMemo(function(){var j=[S,M][g];return m?j:y6(e,j,u[g])},[m,S,M,g,e,u]),O=function(N){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",V=[C,P][g];V(N);var F=[S,M];F[g]=N,f&&(!Vo(e,t,S,F[0],o)||!Vo(e,t,M,F[1],o))&&f(F,{source:D,range:g===1?"end":"start",mode:r})},A=function(N,D){if(s){var V={date:"month",week:"month",month:"year",quarter:"year"},F=V[o];if(F&&!Vo(e,t,N,D,F))return S2(e,o,D,-1);if(o==="year"&&N){var K=Math.floor(e.getYear(N)/10),B=Math.floor(e.getYear(D)/10);if(K!==B)return S2(e,o,D,-1)}}return D},R=d.useRef(null);return nr(function(){if(i&&!l[g]){var j=m?null:e.getNow();if(R.current!==null&&R.current!==g?j=[S,M][g^1]:n[g]?j=g===0?n[0]:A(n[0],n[1]):n[g^1]&&(j=n[g^1]),j){p&&e.isAfter(p,j)&&(j=p);var N=s?S2(e,o,j,1):j;h&&e.isAfter(N,h)&&(j=s?S2(e,o,h,-1):h),O(j,"reset")}}},[i,g,n[g]]),d.useEffect(function(){i?R.current=g:R.current=null},[i,g]),nr(function(){i&&l&&l[g]&&O(l[g],"reset")},[i,g]),[I,O]}function Hme(e,t){var n=d.useRef(e),r=d.useState({}),i=Te(r,2),a=i[1],o=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,a({})};return[o,s,o(!0)]}var jqe=[];function Ume(e,t,n){var r=function(o){return o.map(function(s){return qa(s,{generateConfig:e,locale:t,format:n[0]})})},i=function(o,s){for(var l=Math.max(o.length,s.length),c=-1,u=0;u2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=i.includes(l);(!c||!r)&&o.push({label:OB(l,a),value:l,disabled:c})}return o}function AB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,a=r.hourStep,o=a===void 0?1:a,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,f=r.millisecondStep,p=f===void 0?100:f,h=r.hideDisabledOptions,m=r.disabledTime,g=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,b=d.useMemo(function(){return n||e.getNow()},[n,e]),w=d.useCallback(function(D){var V=(m==null?void 0:m(D))||{};return[V.disabledHours||g||wS,V.disabledMinutes||v||wS,V.disabledSeconds||y||wS,V.disabledMilliseconds||wS]},[m,g,v,y]),_=d.useMemo(function(){return w(b)},[b,w]),k=Te(_,4),S=k[0],C=k[1],E=k[2],$=k[3],M=d.useCallback(function(D,V,F,K){var B=xS(0,23,o,h,D()),U=i?B.map(function(Y){return q(q({},Y),{},{label:OB(Y.value%12||12,2)})}):B,Z=function(X){return xS(0,59,l,h,V(X))},ee=function(X,ae){return xS(0,59,u,h,F(X,ae))},ie=function(X,ae,oe){return xS(0,999,p,h,K(X,ae,oe),3)};return[U,Z,ee,ie]},[h,o,i,p,l,u]),P=d.useMemo(function(){return M(S,C,E,$)},[M,S,C,E,$]),I=Te(P,4),O=I[0],A=I[1],R=I[2],j=I[3],N=function(V,F){var K=function(){return O},B=A,U=R,Z=j;if(F){var ee=w(F),ie=Te(ee,4),Y=ie[0],X=ie[1],ae=ie[2],oe=ie[3],le=M(Y,X,ae,oe),ce=Te(le,4),pe=ce[0],me=ce[1],re=ce[2],fe=ce[3];K=function(){return pe},B=me,U=re,Z=fe}var ve=Aqe(V,K,B,U,Z,e);return ve};return[N,O,A,R,j]}function Dqe(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,a=e.showTime,o=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,f=e.disabledDate,p=d.useContext(Eu),h=p.prefixCls,m=p.locale,g=p.button,v=g===void 0?"button":g,y=u.getNow(),b=AB(u,a,y),w=Te(b,1),_=w[0],k=r==null?void 0:r(t),S=f(y,{type:t}),C=function(){if(!S){var A=_(y);s(A)}},E="".concat(h,"-now"),$="".concat(E,"-btn"),M=i&&d.createElement("li",{className:E},d.createElement("a",{className:Ee($,S&&"".concat($,"-disabled")),"aria-disabled":S,onClick:C},n==="date"?m.today:m.now)),P=c&&d.createElement("li",{className:"".concat(h,"-ok")},d.createElement(v,{disabled:l,onClick:o},m.ok)),I=(M||P)&&d.createElement("ul",{className:"".concat(h,"-ranges")},M,P);return!k&&!I?null:d.createElement("div",{className:"".concat(h,"-footer")},k&&d.createElement("div",{className:"".concat(h,"-footer-extra")},k),I)}function Gme(e,t,n){function r(i,a){var o=i.findIndex(function(l){return Vo(e,t,l,a,n)});if(o===-1)return[].concat(ct(i),[a]);var s=ct(i);return s.splice(o,1),s}return r}var Gg=d.createContext(null);function P8(){return d.useContext(Gg)}function Py(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,a=e.disabledDate,o=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,p=e.values,h=e.pickerValue,m=e.onSelect,g=e.prevIcon,v=e.nextIcon,y=e.superPrevIcon,b=e.superNextIcon,w=r.getNow(),_={now:w,values:p,pickerValue:h,prefixCls:n,disabledDate:a,minDate:o,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:v,superPrevIcon:y,superNextIcon:b};return[_,w]}var nh=d.createContext({});function E4(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,a=e.prefixColumn,o=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,f=e.cellSelection,p=f===void 0?!0:f,h=e.disabledDate,m=P8(),g=m.prefixCls,v=m.panelType,y=m.now,b=m.disabledDate,w=m.cellRender,_=m.onHover,k=m.hoverValue,S=m.hoverRangeValue,C=m.generateConfig,E=m.values,$=m.locale,M=m.onSelect,P=h||b,I="".concat(g,"-cell"),O=d.useContext(nh),A=O.onCellDblClick,R=function(U){return E.some(function(Z){return Z&&Vo(C,$,U,Z,v)})},j=[],N=0;N1&&arguments[1]!==void 0?arguments[1]:!1;we(ze),v==null||v(ze),Ve&&se(ze)},Oe=function(ze,Ve){ae(ze),Ve&&ye(Ve),se(Ve,ze)},z=function(ze){if($e(ze),ye(ze),X!==_){var Ve=["decade","year"],Be=[].concat(Ve,["month"]),Xe={quarter:[].concat(Ve,["quarter"]),week:[].concat(ct(Be),["week"]),date:[].concat(ct(Be),["date"])},Ke=Xe[_]||Be,qe=Ke.indexOf(X),Et=Ke[qe+1];Et&&Oe(Et,ze)}},H=d.useMemo(function(){var ge,ze;if(Array.isArray(C)){var Ve=Te(C,2);ge=Ve[0],ze=Ve[1]}else ge=C;return!ge&&!ze?null:(ge=ge||ze,ze=ze||ge,i.isAfter(ge,ze)?[ze,ge]:[ge,ze])},[C,i]),G=IB(E,$,M),de=I[oe]||Yqe[oe]||O8,xe=d.useContext(nh),he=d.useMemo(function(){return q(q({},xe),{},{hideHeader:O})},[xe,O]),Ue="".concat(A,"-panel"),We=M8(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return d.createElement(nh.Provider,{value:he},d.createElement("div",{ref:R,tabIndex:l,className:Ee(Ue,ne({},"".concat(Ue,"-rtl"),a==="rtl"))},d.createElement(de,tt({},We,{showTime:Z,prefixCls:A,locale:B,generateConfig:i,onModeChange:Oe,pickerValue:Se,onPickerValueChange:function(ze){ye(ze,!0)},value:fe[0],onSelect:z,values:fe,cellRender:G,hoverRangeValue:H,hoverValue:S}))))}var H9=d.memo(d.forwardRef(Xqe));function Zqe(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,o=e.onSubmit,s=e.range,l=e.hoverValue,c=d.useContext(Eu),u=c.prefixCls,f=c.generateConfig,p=d.useCallback(function(b,w){return S2(f,t,b,w)},[f,t]),h=d.useMemo(function(){return p(r,1)},[r,p]),m=function(w){i(p(w,-1))},g={onCellDblClick:function(){a&&o()}},v=t==="time",y=q(q({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return s?y.hoverRangeValue=l:y.hoverValue=l,n?d.createElement("div",{className:"".concat(u,"-panels")},d.createElement(nh.Provider,{value:q(q({},g),{},{hideNext:!0})},d.createElement(H9,y)),d.createElement(nh.Provider,{value:q(q({},g),{},{hidePrev:!0})},d.createElement(H9,tt({},y,{pickerValue:h,onPickerValueChange:m})))):d.createElement(nh.Provider,{value:q({},g)},d.createElement(H9,y))}function QY(e){return typeof e=="function"?e():e}function Qqe(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?d.createElement("div",{className:"".concat(t,"-presets")},d.createElement("ul",null,n.map(function(a,o){var s=a.label,l=a.value;return d.createElement("li",{key:o,onClick:function(){r(QY(l))},onMouseEnter:function(){i(QY(l))},onMouseLeave:function(){i(null)}},s)}))):null}function Xme(e){var t=e.panelRender,n=e.internalMode,r=e.picker,i=e.showNow,a=e.range,o=e.multiple,s=e.activeOffset,l=s===void 0?0:s,c=e.placement,u=e.presets,f=e.onPresetHover,p=e.onPresetSubmit,h=e.onFocus,m=e.onBlur,g=e.onPanelMouseDown,v=e.direction,y=e.value,b=e.onSelect,w=e.isInvalid,_=e.defaultOpenValue,k=e.onOk,S=e.onSubmit,C=d.useContext(Eu),E=C.prefixCls,$="".concat(E,"-panel"),M=v==="rtl",P=d.useRef(null),I=d.useRef(null),O=d.useState(0),A=Te(O,2),R=A[0],j=A[1],N=d.useState(0),D=Te(N,2),V=D[0],F=D[1],K=function(ve){ve.offsetWidth&&j(ve.offsetWidth)};d.useEffect(function(){if(a){var fe,ve=((fe=P.current)===null||fe===void 0?void 0:fe.offsetWidth)||0,$e=R-ve;l<=$e?F(0):F(l+ve-R)}},[R,l,a]);function B(fe){return fe.filter(function(ve){return ve})}var U=d.useMemo(function(){return B(Kg(y))},[y]),Z=r==="time"&&!U.length,ee=d.useMemo(function(){return Z?B([_]):U},[Z,U,_]),ie=Z?_:U,Y=d.useMemo(function(){return ee.length?ee.some(function(fe){return w(fe)}):!0},[ee,w]),X=function(){Z&&b(_),k(),S()},ae=d.createElement("div",{className:"".concat(E,"-panel-layout")},d.createElement(Qqe,{prefixCls:E,presets:u,onClick:p,onHover:f}),d.createElement("div",null,d.createElement(Zqe,tt({},e,{value:ie})),d.createElement(Dqe,tt({},e,{showNow:o?!1:i,invalid:Y,onSubmit:X}))));t&&(ae=t(ae));var oe="".concat($,"-container"),le="marginLeft",ce="marginRight",pe=d.createElement("div",{onMouseDown:g,tabIndex:-1,className:Ee(oe,"".concat(E,"-").concat(n,"-panel-container")),style:ne(ne({},M?ce:le,V),M?le:ce,"auto"),onFocus:h,onBlur:m},ae);if(a){var me=$8(c,M),re=Sme(me,M);pe=d.createElement("div",{onMouseDown:g,ref:I,className:Ee("".concat(E,"-range-wrapper"),"".concat(E,"-").concat(r,"-range-wrapper"))},d.createElement("div",{ref:P,className:"".concat(E,"-range-arrow"),style:ne({},re,l)}),d.createElement(Go,{onResize:K},pe))}return pe}function Zme(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,a=e.locale,o=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,f=e.onFocus,p=e.onBlur,h=e.onInputChange,m=e.onInvalid,g=e.open,v=e.onOpenChange,y=e.onKeyDown,b=e.onChange,w=e.activeHelp,_=e.name,k=e.autoComplete,S=e.id,C=e.value,E=e.invalid,$=e.placeholder,M=e.disabled,P=e.activeIndex,I=e.allHelp,O=e.picker,A=function(B,U){var Z=i.locale.parse(a.locale,B,[U]);return Z&&i.isValidate(Z)?Z:null},R=n[0],j=d.useCallback(function(K){return qa(K,{locale:a,format:R,generateConfig:i})},[a,i,R]),N=d.useMemo(function(){return C.map(j)},[C,j]),D=d.useMemo(function(){var K=O==="time"?8:10,B=typeof R=="function"?R(i.getNow()).length:R.length;return Math.max(K,B)+2},[R,O,i]),V=function(B){for(var U=0;U=s&&n<=l)return a;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c0?Lt:Bt));var Le=He+Ze,Qe=Bt-Lt+1;return String(Lt+(Qe+Le-Lt)%Qe)};switch(ze){case"Backspace":case"Delete":Ve="",Be=Ke;break;case"ArrowLeft":Ve="",qe(-1);break;case"ArrowRight":Ve="",qe(1);break;case"ArrowUp":Ve="",Be=Et(1);break;case"ArrowDown":Ve="",Be=Et(-1);break;default:isNaN(Number(ze))||(Ve=K+ze,Be=Ve);break}if(Ve!==null&&(B(Ve),Ve.length>=Xe&&(qe(1),B(""))),Be!==null){var dt=le.slice(0,ve)+OB(Be,Xe)+le.slice($e);be(dt.slice(0,o.length))}oe({})},he=d.useRef();nr(function(){if(!(!O||!o||se.current)){if(!me.match(le)){be(o);return}return pe.current.setSelectionRange(ve,$e),he.current=rr(function(){pe.current.setSelectionRange(ve,$e)}),function(){rr.cancel(he.current)}}},[me,o,O,le,ee,ve,$e,ae,be]);var Ue=o?{onFocus:z,onBlur:G,onKeyDown:xe,onMouseDown:ye,onMouseUp:Oe,onPaste:we}:{};return d.createElement("div",{ref:ce,className:Ee(M,ne(ne({},"".concat(M,"-active"),n&&i),"".concat(M,"-placeholder"),c))},d.createElement($,tt({ref:pe,"aria-invalid":g,autoComplete:"off"},y,{onKeyDown:de,onBlur:H},Ue,{value:le,onChange:Se})),d.createElement(I8,{type:"suffix",icon:a}),v)}),aKe=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],oKe=["index"],sKe=["insetInlineStart","insetInlineEnd"];function lKe(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,a=e.suffixIcon,o=e.separator,s=o===void 0?"~":o,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,f=e.className,p=e.style,h=e.onClick,m=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,y=e.invalid;e.inputReadOnly;var b=e.direction;e.onOpenChange;var w=e.onActiveOffset,_=e.placement,k=e.onMouseDown;e.required,e["aria-required"];var S=e.autoFocus,C=e.tabIndex,E=Ut(e,aKe),$=b==="rtl",M=d.useContext(Eu),P=M.prefixCls,I=d.useMemo(function(){if(typeof n=="string")return[n];var pe=n||{};return[pe.start,pe.end]},[n]),O=d.useRef(),A=d.useRef(),R=d.useRef(),j=function(me){var re;return(re=[A,R][me])===null||re===void 0?void 0:re.current};d.useImperativeHandle(t,function(){return{nativeElement:O.current,focus:function(me){if(Kt(me)==="object"){var re,fe=me||{},ve=fe.index,$e=ve===void 0?0:ve,Ce=Ut(fe,oKe);(re=j($e))===null||re===void 0||re.focus(Ce)}else{var be;(be=j(me??0))===null||be===void 0||be.focus()}},blur:function(){var me,re;(me=j(0))===null||me===void 0||me.blur(),(re=j(1))===null||re===void 0||re.blur()}}});var N=Qme(E),D=d.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),V=Zme(q(q({},e),{},{id:I,placeholder:D})),F=Te(V,1),K=F[0],B=$8(_,$),U=Sme(B,$),Z=B==null?void 0:B.toLowerCase().endsWith("right"),ee=d.useState({position:"absolute",width:0}),ie=Te(ee,2),Y=ie[0],X=ie[1],ae=Vn(function(){var pe=j(l);if(pe){var me=pe.nativeElement,re=me.offsetWidth,fe=me.offsetLeft,ve=me.offsetParent,$e=(ve==null?void 0:ve.offsetWidth)||0,Ce=Z?$e-re-fe:fe;X(function(be){be.insetInlineStart,be.insetInlineEnd;var Se=Ut(be,sKe);return q(q({},Se),{},ne({width:re},U,Ce))}),w(Ce)}});d.useEffect(function(){ae()},[l]);var oe=i&&(g[0]&&!v[0]||g[1]&&!v[1]),le=S&&!v[0],ce=S&&!le&&!v[1];return d.createElement(Go,{onResize:ae},d.createElement("div",tt({},N,{className:Ee(P,"".concat(P,"-range"),ne(ne(ne(ne({},"".concat(P,"-focused"),c),"".concat(P,"-disabled"),v.every(function(pe){return pe})),"".concat(P,"-invalid"),y.some(function(pe){return pe})),"".concat(P,"-rtl"),$),f),style:p,ref:O,onClick:h,onMouseDown:function(me){var re=me.target;re!==A.current.inputElement&&re!==R.current.inputElement&&me.preventDefault(),k==null||k(me)}}),r&&d.createElement("div",{className:"".concat(P,"-prefix")},r),d.createElement(Uj,tt({ref:A},K(0),{autoFocus:le,tabIndex:C,"date-range":"start"})),d.createElement("div",{className:"".concat(P,"-range-separator")},s),d.createElement(Uj,tt({ref:R},K(1),{autoFocus:ce,tabIndex:C,"date-range":"end"})),d.createElement("div",{className:"".concat(P,"-active-bar"),style:Y}),d.createElement(I8,{type:"suffix",icon:a}),oe&&d.createElement(Hj,{icon:i,onClear:m})))}var cKe=d.forwardRef(lKe);function eX(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function CS(e){return e===1?"end":"start"}function uKe(e,t){var n=Ame(e,function(){var Yn=e.disabled,Dn=e.allowEmpty,sr=eX(Yn,!1),_r=eX(Dn,!1);return{disabled:sr,allowEmpty:_r}}),r=Te(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=i.prefixCls,f=i.styles,p=i.classNames,h=i.placement,m=i.defaultValue,g=i.value,v=i.needConfirm,y=i.onKeyDown,b=i.disabled,w=i.allowEmpty,_=i.disabledDate,k=i.minDate,S=i.maxDate,C=i.defaultOpen,E=i.open,$=i.onOpenChange,M=i.locale,P=i.generateConfig,I=i.picker,O=i.showNow,A=i.showToday,R=i.showTime,j=i.mode,N=i.onPanelChange,D=i.onCalendarChange,V=i.onOk,F=i.defaultPickerValue,K=i.pickerValue,B=i.onPickerValueChange,U=i.inputReadOnly,Z=i.suffixIcon,ee=i.onFocus,ie=i.onBlur,Y=i.presets,X=i.ranges,ae=i.components,oe=i.cellRender,le=i.dateRender,ce=i.monthCellRender,pe=i.onClick,me=Fme(t),re=Dme(E,C,b,$),fe=Te(re,2),ve=fe[0],$e=fe[1],Ce=function(Dn,sr){(b.some(function(_r){return!_r})||!Dn)&&$e(Dn,sr)},be=Vme(P,M,s,!0,!1,m,g,D,V),Se=Te(be,5),we=Se[0],se=Se[1],ye=Se[2],Oe=Se[3],z=Se[4],H=ye(),G=Bme(b,w,ve),de=Te(G,9),xe=de[0],he=de[1],Ue=de[2],We=de[3],ge=de[4],ze=de[5],Ve=de[6],Be=de[7],Xe=de[8],Ke=function(Dn,sr){he(!0),ee==null||ee(Dn,{range:CS(sr??We)})},qe=function(Dn,sr){he(!1),ie==null||ie(Dn,{range:CS(sr??We)})},Et=d.useMemo(function(){if(!R)return null;var Yn=R.disabledTime,Dn=Yn?function(sr){var _r=CS(We),wr=kme(H,Ve,We);return Yn(sr,_r,{from:wr})}:void 0;return q(q({},R),{},{disabledTime:Dn})},[R,We,H,Ve]),dt=In([I,I],{value:j}),vt=Te(dt,2),Ze=vt[0],nt=vt[1],jt=Ze[We]||I,Lt=jt==="date"&&Et?"datetime":jt,Bt=Lt===I&&Lt!=="time",Ht=Kme(I,jt,O,A,!0),Ne=qme(i,we,se,ye,Oe,b,s,xe,ve,c),He=Te(Ne,2),Le=He[0],Qe=He[1],ht=Rqe(H,b,Ve,P,M,_),xt=$me(H,c,w),Nt=Te(xt,2),Ot=Nt[0],Pt=Nt[1],lt=zme(P,M,H,Ze,ve,We,a,Bt,F,K,Et==null?void 0:Et.defaultOpenValue,B,k,S),Ct=Te(lt,2),kt=Ct[0],qt=Ct[1],yt=Vn(function(Yn,Dn,sr){var _r=Q2(Ze,We,Dn);if((_r[0]!==Ze[0]||_r[1]!==Ze[1])&&nt(_r),N&&sr!==!1){var wr=ct(H);Yn&&(wr[We]=Yn),N(wr,_r)}}),At=function(Dn,sr){return Q2(H,sr,Dn)},ft=function(Dn,sr){var _r=H;Dn&&(_r=At(Dn,We)),Be(We);var wr=ze(_r);Oe(_r),Le(We,wr===null),wr===null?Ce(!1,{force:!0}):sr||me.current.focus({index:wr})},De=function(Dn){var sr,_r=Dn.target.getRootNode();if(!me.current.nativeElement.contains((sr=_r.activeElement)!==null&&sr!==void 0?sr:document.activeElement)){var wr=b.findIndex(function(Pc){return!Pc});wr>=0&&me.current.focus({index:wr})}Ce(!0),pe==null||pe(Dn)},Ye=function(){Qe(null),Ce(!1,{force:!0})},st=d.useState(null),Ie=Te(st,2),Rt=Ie[0],rt=Ie[1],$t=d.useState(null),Mt=Te($t,2),cn=Mt[0],fn=Mt[1],T=d.useMemo(function(){return cn||H},[H,cn]);d.useEffect(function(){ve||fn(null)},[ve]);var L=d.useState(0),J=Te(L,2),ke=J[0],je=J[1],it=Lme(Y,X),Ft=function(Dn){fn(Dn),rt("preset")},an=function(Dn){var sr=Qe(Dn);sr&&Ce(!1,{force:!0})},Tn=function(Dn){ft(Dn)},Er=function(Dn){fn(Dn?At(Dn,We):null),rt("cell")},or=function(Dn){Ce(!0),Ke(Dn)},ri=function(){Ue("panel")},hr=function(Dn){var sr=Q2(H,We,Dn);Oe(sr),!v&&!o&&a===Lt&&ft(Dn)},sn=function(){Ce(!1)},bn=IB(oe,le,ce,CS(We)),gr=H[We]||null,Je=Vn(function(Yn){return c(Yn,{activeIndex:We})}),ot=d.useMemo(function(){var Yn=Bi(i,!1),Dn=$r(i,[].concat(ct(Object.keys(Yn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Dn},[i]),Xt=d.createElement(Xme,tt({},ot,{showNow:Ht,showTime:Et,range:!0,multiplePanel:Bt,activeOffset:ke,placement:h,disabledDate:ht,onFocus:or,onBlur:qe,onPanelMouseDown:ri,picker:I,mode:jt,internalMode:Lt,onPanelChange:yt,format:l,value:gr,isInvalid:Je,onChange:null,onSelect:hr,pickerValue:kt,defaultOpenValue:Kg(R==null?void 0:R.defaultOpenValue)[We],onPickerValueChange:qt,hoverValue:T,onHover:Er,needConfirm:v,onSubmit:ft,onOk:z,presets:it,onPresetHover:Ft,onPresetSubmit:an,onNow:Tn,cellRender:bn})),xn=function(Dn,sr){var _r=At(Dn,sr);Oe(_r)},Rn=function(){Ue("input")},An=function(Dn,sr){var _r=Ve.length,wr=Ve[_r-1];if(_r&&wr!==sr&&v&&!w[wr]&&!Xe(wr)&&H[wr]){me.current.focus({index:wr});return}Ue("input"),Ce(!0,{inherit:!0}),We!==sr&&ve&&!v&&o&&ft(null,!0),ge(sr),Ke(Dn,sr)},kn=function(Dn,sr){if(Ce(!1),!v&&Ue()==="input"){var _r=ze(H);Le(We,_r===null)}qe(Dn,sr)},Or=function(Dn,sr){Dn.key==="Tab"&&ft(null,!0),y==null||y(Dn,sr)},tr=d.useMemo(function(){return{prefixCls:u,locale:M,generateConfig:P,button:ae.button,input:ae.input}},[u,M,P,ae.button,ae.input]);return nr(function(){ve&&We!==void 0&&yt(null,I,!1)},[ve,We,I]),nr(function(){var Yn=Ue();!ve&&Yn==="input"&&(Ce(!1),ft(null,!0)),!ve&&o&&!v&&Yn==="panel"&&(Ce(!0),ft())},[ve]),d.createElement(Eu.Provider,{value:tr},d.createElement(Cme,tt({},Eme(i),{popupElement:Xt,popupStyle:f.popup,popupClassName:p.popup,visible:ve,onClose:sn,range:!0}),d.createElement(cKe,tt({},i,{ref:me,suffixIcon:Z,activeIndex:xe||ve?We:null,activeHelp:!!cn,allHelp:!!cn&&Rt==="preset",focused:xe,onFocus:An,onBlur:kn,onKeyDown:Or,onSubmit:ft,value:T,maskFormat:l,onChange:xn,onInputChange:Rn,format:s,inputReadOnly:U,disabled:b,open:ve,onOpenChange:Ce,onClick:De,onClear:Ye,invalid:Ot,onInvalid:Pt,onActiveOffset:je}))))}var dKe=d.forwardRef(uKe);function fKe(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,a=i===void 0?"×":i,o=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),f="".concat(t,"-selection"),p="".concat(f,"-overflow");function h(v,y){return d.createElement("span",{className:Ee("".concat(f,"-item")),title:typeof v=="string"?v:null},d.createElement("span",{className:"".concat(f,"-item-content")},v),!s&&y&&d.createElement("span",{onMouseDown:function(w){w.preventDefault()},onClick:y,className:"".concat(f,"-item-remove")},a))}function m(v){var y=o(v),b=function(_){_&&_.stopPropagation(),r(v)};return h(y,b)}function g(v){var y="+ ".concat(v.length," ...");return h(y)}return d.createElement("div",{className:u},d.createElement(iu,{prefixCls:p,data:n,renderItem:m,renderRest:g,itemKey:function(y){return o(y)},maxCount:l}),!n.length&&d.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var pKe=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function hKe(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,f=e.style,p=e.onClick,h=e.onClear,m=e.internalPicker,g=e.value,v=e.onChange,y=e.onSubmit;e.onInputChange;var b=e.multiple,w=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var _=e.disabled,k=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var C=e.onMouseDown;e.required,e["aria-required"];var E=e.autoFocus,$=e.tabIndex,M=e.removeIcon,P=Ut(e,pKe),I=S==="rtl",O=d.useContext(Eu),A=O.prefixCls,R=d.useRef(),j=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:R.current,focus:function(Y){var X;(X=j.current)===null||X===void 0||X.focus(Y)},blur:function(){var Y;(Y=j.current)===null||Y===void 0||Y.blur()}}});var N=Qme(P),D=function(Y){v([Y])},V=function(Y){var X=g.filter(function(ae){return ae&&!Vo(l,s,ae,Y,m)});v(X),n||y()},F=Zme(q(q({},e),{},{onChange:D}),function(ie){var Y=ie.valueTexts;return{value:Y[0]||"",active:o}}),K=Te(F,2),B=K[0],U=K[1],Z=!!(i&&g.length&&!_),ee=b?d.createElement(d.Fragment,null,d.createElement(fKe,{prefixCls:A,value:g,onRemove:V,formatDate:U,maxTagCount:w,disabled:_,removeIcon:M,placeholder:c}),d.createElement("input",{className:"".concat(A,"-multiple-input"),value:g.map(U).join(","),ref:j,readOnly:!0,autoFocus:E,tabIndex:$}),d.createElement(I8,{type:"suffix",icon:a}),Z&&d.createElement(Hj,{icon:i,onClear:h})):d.createElement(Uj,tt({ref:j},B(),{autoFocus:E,tabIndex:$,suffixIcon:a,clearIcon:Z&&d.createElement(Hj,{icon:i,onClear:h}),showActiveCls:!1}));return d.createElement("div",tt({},N,{className:Ee(A,ne(ne(ne(ne(ne({},"".concat(A,"-multiple"),b),"".concat(A,"-focused"),o),"".concat(A,"-disabled"),_),"".concat(A,"-invalid"),k),"".concat(A,"-rtl"),I),u),style:f,ref:R,onClick:p,onMouseDown:function(Y){var X,ae=Y.target;ae!==((X=j.current)===null||X===void 0?void 0:X.inputElement)&&Y.preventDefault(),C==null||C(Y)}}),r&&d.createElement("div",{className:"".concat(A,"-prefix")},r),ee)}var mKe=d.forwardRef(hKe);function gKe(e,t){var n=Ame(e),r=Te(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=i,f=u.prefixCls,p=u.styles,h=u.classNames,m=u.order,g=u.defaultValue,v=u.value,y=u.needConfirm,b=u.onChange,w=u.onKeyDown,_=u.disabled,k=u.disabledDate,S=u.minDate,C=u.maxDate,E=u.defaultOpen,$=u.open,M=u.onOpenChange,P=u.locale,I=u.generateConfig,O=u.picker,A=u.showNow,R=u.showToday,j=u.showTime,N=u.mode,D=u.onPanelChange,V=u.onCalendarChange,F=u.onOk,K=u.multiple,B=u.defaultPickerValue,U=u.pickerValue,Z=u.onPickerValueChange,ee=u.inputReadOnly,ie=u.suffixIcon,Y=u.removeIcon,X=u.onFocus,ae=u.onBlur,oe=u.presets,le=u.components,ce=u.cellRender,pe=u.dateRender,me=u.monthCellRender,re=u.onClick,fe=Fme(t);function ve(Je){return Je===null?null:K?Je:Je[0]}var $e=Gme(I,P,a),Ce=Dme($,E,[_],M),be=Te(Ce,2),Se=be[0],we=be[1],se=function(ot,Xt,xn){if(V){var Rn=q({},xn);delete Rn.range,V(ve(ot),ve(Xt),Rn)}},ye=function(ot){F==null||F(ve(ot))},Oe=Vme(I,P,s,!1,m,g,v,se,ye),z=Te(Oe,5),H=z[0],G=z[1],de=z[2],xe=z[3],he=z[4],Ue=de(),We=Bme([_]),ge=Te(We,4),ze=ge[0],Ve=ge[1],Be=ge[2],Xe=ge[3],Ke=function(ot){Ve(!0),X==null||X(ot,{})},qe=function(ot){Ve(!1),ae==null||ae(ot,{})},Et=In(O,{value:N}),dt=Te(Et,2),vt=dt[0],Ze=dt[1],nt=vt==="date"&&j?"datetime":vt,jt=Kme(O,vt,A,R),Lt=b&&function(Je,ot){b(ve(Je),ve(ot))},Bt=qme(q(q({},i),{},{onChange:Lt}),H,G,de,xe,[],s,ze,Se,c),Ht=Te(Bt,2),Ne=Ht[1],He=$me(Ue,c),Le=Te(He,2),Qe=Le[0],ht=Le[1],xt=d.useMemo(function(){return Qe.some(function(Je){return Je})},[Qe]),Nt=function(ot,Xt){if(Z){var xn=q(q({},Xt),{},{mode:Xt.mode[0]});delete xn.range,Z(ot[0],xn)}},Ot=zme(I,P,Ue,[vt],Se,Xe,a,!1,B,U,Kg(j==null?void 0:j.defaultOpenValue),Nt,S,C),Pt=Te(Ot,2),lt=Pt[0],Ct=Pt[1],kt=Vn(function(Je,ot,Xt){if(Ze(ot),D&&Xt!==!1){var xn=Je||Ue[Ue.length-1];D(xn,ot)}}),qt=function(){Ne(de()),we(!1,{force:!0})},yt=function(ot){!_&&!fe.current.nativeElement.contains(document.activeElement)&&fe.current.focus(),we(!0),re==null||re(ot)},At=function(){Ne(null),we(!1,{force:!0})},ft=d.useState(null),De=Te(ft,2),Ye=De[0],st=De[1],Ie=d.useState(null),Rt=Te(Ie,2),rt=Rt[0],$t=Rt[1],Mt=d.useMemo(function(){var Je=[rt].concat(ct(Ue)).filter(function(ot){return ot});return K?Je:Je.slice(0,1)},[Ue,rt,K]),cn=d.useMemo(function(){return!K&&rt?[rt]:Ue.filter(function(Je){return Je})},[Ue,rt,K]);d.useEffect(function(){Se||$t(null)},[Se]);var fn=Lme(oe),T=function(ot){$t(ot),st("preset")},L=function(ot){var Xt=K?$e(de(),ot):[ot],xn=Ne(Xt);xn&&!K&&we(!1,{force:!0})},J=function(ot){L(ot)},ke=function(ot){$t(ot),st("cell")},je=function(ot){we(!0),Ke(ot)},it=function(ot){if(Be("panel"),!(K&&nt!==O)){var Xt=K?$e(de(),ot):[ot];xe(Xt),!y&&!o&&a===nt&&qt()}},Ft=function(){we(!1)},an=IB(ce,pe,me),Tn=d.useMemo(function(){var Je=Bi(i,!1),ot=$r(i,[].concat(ct(Object.keys(Je)),["onChange","onCalendarChange","style","className","onPanelChange"]));return q(q({},ot),{},{multiple:i.multiple})},[i]),Er=d.createElement(Xme,tt({},Tn,{showNow:jt,showTime:j,disabledDate:k,onFocus:je,onBlur:qe,picker:O,mode:vt,internalMode:nt,onPanelChange:kt,format:l,value:Ue,isInvalid:c,onChange:null,onSelect:it,pickerValue:lt,defaultOpenValue:j==null?void 0:j.defaultOpenValue,onPickerValueChange:Ct,hoverValue:Mt,onHover:ke,needConfirm:y,onSubmit:qt,onOk:he,presets:fn,onPresetHover:T,onPresetSubmit:L,onNow:J,cellRender:an})),or=function(ot){xe(ot)},ri=function(){Be("input")},hr=function(ot){Be("input"),we(!0,{inherit:!0}),Ke(ot)},sn=function(ot){we(!1),qe(ot)},bn=function(ot,Xt){ot.key==="Tab"&&qt(),w==null||w(ot,Xt)},gr=d.useMemo(function(){return{prefixCls:f,locale:P,generateConfig:I,button:le.button,input:le.input}},[f,P,I,le.button,le.input]);return nr(function(){Se&&Xe!==void 0&&kt(null,O,!1)},[Se,Xe,O]),nr(function(){var Je=Be();!Se&&Je==="input"&&(we(!1),qt()),!Se&&o&&!y&&Je==="panel"&&(we(!0),qt())},[Se]),d.createElement(Eu.Provider,{value:gr},d.createElement(Cme,tt({},Eme(i),{popupElement:Er,popupStyle:p.popup,popupClassName:h.popup,visible:Se,onClose:Ft}),d.createElement(mKe,tt({},i,{ref:fe,suffixIcon:ie,removeIcon:Y,activeHelp:!!rt,allHelp:!!rt&&Ye==="preset",focused:ze,onFocus:hr,onBlur:sn,onKeyDown:bn,onSubmit:qt,value:cn,maskFormat:l,onChange:or,onInputChange:ri,internalPicker:a,format:s,inputReadOnly:ee,disabled:_,open:Se,onOpenChange:we,onClick:yt,onClear:At,invalid:xt,onInvalid:function(ot){ht(ot,0)}}))))}var vKe=d.forwardRef(gKe);const Jme=d.createContext(null),yKe=Jme.Provider,ege=d.createContext(null),bKe=ege.Provider;var wKe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],tge=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,a=e.style,o=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,p=e.title,h=e.onChange,m=Ut(e,wKe),g=d.useRef(null),v=d.useRef(null),y=In(c,{value:o}),b=Te(y,2),w=b[0],_=b[1];d.useImperativeHandle(t,function(){return{focus:function(E){var $;($=g.current)===null||$===void 0||$.focus(E)},blur:function(){var E;(E=g.current)===null||E===void 0||E.blur()},input:g.current,nativeElement:v.current}});var k=Ee(r,i,ne(ne({},"".concat(r,"-checked"),w),"".concat(r,"-disabled"),s)),S=function(E){s||("checked"in e||_(E.target.checked),h==null||h({target:q(q({},e),{},{type:f,checked:E.target.checked}),stopPropagation:function(){E.stopPropagation()},preventDefault:function(){E.preventDefault()},nativeEvent:E.nativeEvent}))};return d.createElement("span",{className:k,title:p,style:a,ref:v},d.createElement("input",tt({},m,{className:"".concat(r,"-input"),ref:g,onChange:S,disabled:s,checked:!!w,type:f})),d.createElement("span",{className:"".concat(r,"-inner")}))});function nge(e){const t=te.useRef(null),n=()=>{rr.cancel(t.current),t.current=null};return[()=>{n(),t.current=rr(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),n()),e==null||e(a)}]}const xKe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},ar(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},SKe=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:a,motionDurationMid:o,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:h,dotColorDisabled:m,lineType:g,radioColor:v,radioBgColor:y,calc:b}=e,w=`${t}-inner`,k=b(i).sub(b(4).mul(2)),S=b(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},ar(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Me(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, - &:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:Object.assign({},gc(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:S,height:S,marginBlockStart:b(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:S,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:S,height:S,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:r,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${b(k).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},CKe=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:f,fontSizeLG:p,controlHeightLG:h,controlHeightSM:m,paddingXS:g,borderRadius:v,borderRadiusSM:y,borderRadiusLG:b,buttonCheckedBg:w,buttonSolidCheckedColor:_,colorTextDisabled:k,colorBgContainerDisabled:S,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:E,colorPrimary:$,colorPrimaryHover:M,colorPrimaryActive:P,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:A,calc:R}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:Me(R(n).sub(R(i).mul(2)).equal()),background:f,border:`${Me(i)} ${a} ${o}`,borderBlockStartWidth:R(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:R(i).mul(-1).equal(),insetInlineStart:R(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:o,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${Me(i)} ${a} ${o}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:h,fontSize:p,lineHeight:Me(R(h).sub(R(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:m,paddingInline:R(g).sub(i).equal(),paddingBlock:0,lineHeight:Me(R(m).sub(R(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},gc(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:w,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:M,borderColor:M,"&::before":{backgroundColor:M}},"&:active":{color:P,borderColor:P,"&::before":{backgroundColor:P}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:_,background:I,borderColor:I,"&:hover":{color:_,background:O,borderColor:O},"&:active":{color:_,background:A,borderColor:A}},"&-disabled":{color:k,backgroundColor:S,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:k,backgroundColor:S,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:C,borderColor:o,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},_Ke=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:p,colorPrimaryActive:h,colorWhite:m}=e,g=4,v=a,y=t?v-g*2:v-(g+i)*2;return{radioSize:v,dotSize:y,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?f:m,radioBgColor:t?s:f}},rge=Jn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Me(n)} ${t}`,a=Hn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[xKe(a),SKe(a),CKe(a)]},_Ke,{unitless:{radioSize:!0,dotSize:!0}});var kKe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const i=d.useContext(Jme),a=d.useContext(ege),{getPrefixCls:o,direction:s,radio:l}=d.useContext(Zt),c=d.useRef(null),u=va(t,c),{isFormItemInput:f}=d.useContext(sa),p=j=>{var N,D;(N=e.onChange)===null||N===void 0||N.call(e,j),(D=i==null?void 0:i.onChange)===null||D===void 0||D.call(i,j)},{prefixCls:h,className:m,rootClassName:g,children:v,style:y,title:b}=e,w=kKe(e,["prefixCls","className","rootClassName","children","style","title"]),_=o("radio",h),k=((i==null?void 0:i.optionType)||a)==="button",S=k?`${_}-button`:_,C=qr(_),[E,$,M]=rge(_,C),P=Object.assign({},w),I=d.useContext(ga);i&&(P.name=i.name,P.onChange=p,P.checked=e.value===i.value,P.disabled=(n=P.disabled)!==null&&n!==void 0?n:i.disabled),P.disabled=(r=P.disabled)!==null&&r!==void 0?r:I;const O=Ee(`${S}-wrapper`,{[`${S}-wrapper-checked`]:P.checked,[`${S}-wrapper-disabled`]:P.disabled,[`${S}-wrapper-rtl`]:s==="rtl",[`${S}-wrapper-in-form-item`]:f,[`${S}-wrapper-block`]:!!(i!=null&&i.block)},l==null?void 0:l.className,m,g,$,M,C),[A,R]=nge(P.onClick);return E(d.createElement(y4,{component:"Radio",disabled:P.disabled},d.createElement("label",{className:O,style:Object.assign(Object.assign({},l==null?void 0:l.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b,onClick:A},d.createElement(tge,Object.assign({},P,{className:Ee(P.className,{[e8]:!k}),type:"radio",prefixCls:S,ref:u,onClick:R})),v!==void 0?d.createElement("span",null,v):null)))},b6=d.forwardRef(EKe),$Ke=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Zt),i=p8(),{prefixCls:a,className:o,rootClassName:s,options:l,buttonStyle:c="outline",disabled:u,children:f,size:p,style:h,id:m,optionType:g,name:v=i,defaultValue:y,value:b,block:w=!1,onChange:_,onMouseEnter:k,onMouseLeave:S,onFocus:C,onBlur:E}=e,[$,M]=In(y,{value:b}),P=d.useCallback(B=>{const U=$,Z=B.target.value;"value"in e||M(Z),Z!==U&&(_==null||_(B))},[$,M,_]),I=n("radio",a),O=`${I}-group`,A=qr(I),[R,j,N]=rge(I,A);let D=f;l&&l.length>0&&(D=l.map(B=>typeof B=="string"||typeof B=="number"?d.createElement(b6,{key:B.toString(),prefixCls:I,disabled:u,value:B,checked:$===B},B):d.createElement(b6,{key:`radio-group-value-options-${B.value}`,prefixCls:I,disabled:B.disabled||u,value:B.value,checked:$===B.value,title:B.title,style:B.style,id:B.id,required:B.required},B.label)));const V=Hi(p),F=Ee(O,`${O}-${c}`,{[`${O}-${V}`]:V,[`${O}-rtl`]:r==="rtl",[`${O}-block`]:w},o,s,j,N,A),K=d.useMemo(()=>({onChange:P,value:$,disabled:u,name:v,optionType:g,block:w}),[P,$,u,v,g,w]);return R(d.createElement("div",Object.assign({},Bi(e,{aria:!0,data:!0}),{className:F,style:h,onMouseEnter:k,onMouseLeave:S,onFocus:C,onBlur:E,id:m,ref:t}),d.createElement(yKe,{value:K},D)))}),MKe=d.memo($Ke);var TKe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n}=d.useContext(Zt),{prefixCls:r}=e,i=TKe(e,["prefixCls"]),a=n("radio",r);return d.createElement(bKe,{value:"button"},d.createElement(b6,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},OKe=d.forwardRef(PKe),ss=b6;ss.Button=OKe;ss.Group=MKe;ss.__ANT_RADIO=!0;function Iy(e){return Hn(e,{inputAffixPadding:e.paddingXXS})}const Ry=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:h,colorPrimary:m,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:y,colorWarningOutline:b,colorBgContainer:w}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((o-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:f-i,addonBg:p,activeBorderColor:m,hoverBorderColor:h,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${y}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:w,activeBg:w,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},IKe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),$4=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},IKe(Hn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),DB=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),tX=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},DB(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),R8=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},DB(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},$4(e))}),tX(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),tX(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),nX=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),ige=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},nX(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),nX(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},$4(e))}})}),j8=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},age=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),rX=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},age(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),N8=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},age(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},$4(e))}),rX(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),rX(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),iX=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),oge=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},iX(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),iX(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),A8=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),sge=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Me(t)} ${Me(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},FB=e=>({padding:`${Me(e.paddingBlockSM)} ${Me(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),wg=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Me(e.paddingBlock)} ${Me(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},A8(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},sge(e)),"&-sm":Object.assign({},FB(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),lge=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},sge(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},FB(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Me(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Me(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Me(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Me(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Me(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},hd()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` + &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:s8}}},CB(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},ar(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Vs(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Me(c)} ${Me(m)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Me(c)} ${Me(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Vs(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Me(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Me(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[yd(e,"slide-up"),yd(e,"slide-down"),O0(e,"move-up"),O0(e,"move-down"),_y(e,"zoom-big")]]},cqe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},S8({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),x8(e)),uqe=Jn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=Hn(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[lqe(a),sqe(a)]},cqe,{resetStyle:!1}),$8=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:f,overlayStyle:p,open:h,onOpenChange:m,visible:g,onVisibleChange:v,mouseEnterDelay:y=.15,mouseLeaveDelay:w=.1,autoAdjustOverflow:b=!0,placement:C="",overlay:k,transitionName:S}=e,{getPopupContainer:_,getPrefixCls:E,direction:$,dropdown:M}=d.useContext(Xt);Ug();const P=d.useMemo(()=>{const pe=E();return S!==void 0?S:C.includes("top")?`${pe}-slide-down`:`${pe}-slide-up`},[E,C,S]),R=d.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:$==="rtl"?"bottomRight":"bottomLeft",[C,$]),O=E("dropdown",i),j=qr(O),[I,A,N]=uqe(O,j),[,F]=ka(),K=d.Children.only(eVe(a)?d.createElement("span",null,a):a),L=aa(K,{className:Ee(`${O}-trigger`,{[`${O}-rtl`]:$==="rtl"},K.props.className),disabled:(t=K.props.disabled)!==null&&t!==void 0?t:s}),V=s?[]:o,B=!!(V!=null&&V.includes("contextMenu")),[U,Y]=jn(!1,{value:h??g}),ee=Vn(pe=>{m==null||m(pe,{source:"trigger"}),v==null||v(pe),Y(pe)}),ie=Ee(u,f,A,N,j,M==null?void 0:M.className,{[`${O}-rtl`]:$==="rtl"}),Z=Bhe({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:b,offset:F.marginXXS,arrowWidth:r?F.sizePopupArrow:0,borderRadius:F.borderRadius}),X=d.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(m==null||m(!1,{source:"menu"}),Y(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),ae=()=>{let pe;return n!=null&&n.items?pe=d.createElement(ks,Object.assign({},n)):typeof k=="function"?pe=k():pe=k,l&&(pe=l(pe)),pe=d.Children.only(typeof pe=="string"?d.createElement("span",null,pe):pe),d.createElement(ZVe,{prefixCls:`${O}-menu`,rootClassName:Ee(N,j),expandIcon:d.createElement("span",{className:`${O}-menu-submenu-arrow`},d.createElement(bc,{className:`${O}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:me=>{}},pe)},[oe,le]=$c("Dropdown",p==null?void 0:p.zIndex);let ce=d.createElement(Ghe,Object.assign({alignPoint:B},$r(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:w,visible:U,builtinPlacements:Z,arrow:!!r,overlayClassName:ie,prefixCls:O,getPopupContainer:c||_,transitionName:P,trigger:V,overlay:ae,placement:R,onVisibleChange:ee,overlayStyle:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.style),p),{zIndex:oe})}),L);return oe&&(ce=d.createElement(v4.Provider,{value:le},ce)),I(ce)},dqe=Gf($8,"align",void 0,"dropdown",e=>e),fqe=e=>d.createElement(dqe,Object.assign({},e),d.createElement("span",null));$8._InternalPanelDoNotUseOrYouWillBeFired=fqe;var hme={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",u="week",f="month",p="quarter",h="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var I=["th","st","nd","rd"],A=j%100;return"["+j+(I[(A-20)%10]||I[A]||I[0])+"]"}},b=function(j,I,A){var N=String(j);return!N||N.length>=I?j:""+Array(I+1-N.length).join(A)+j},C={s:b,z:function(j){var I=-j.utcOffset(),A=Math.abs(I),N=Math.floor(A/60),F=A%60;return(I<=0?"+":"-")+b(N,2,"0")+":"+b(F,2,"0")},m:function j(I,A){if(I.date()1)return j(L[0])}else{var V=I.name;S[V]=I,F=V}return!N&&F&&(k=F),F||!N&&k},M=function(j,I){if(E(j))return j.clone();var A=typeof I=="object"?I:{};return A.date=j,A.args=arguments,new R(A)},P=C;P.l=$,P.i=E,P.w=function(j,I){return M(j,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var R=function(){function j(A){this.$L=$(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[_]=!0}var I=j.prototype;return I.parse=function(A){this.$d=function(N){var F=N.date,K=N.utc;if(F===null)return new Date(NaN);if(P.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var L=F.match(v);if(L){var V=L[2]-1||0,B=(L[7]||"0").substring(0,3);return K?new Date(Date.UTC(L[1],V,L[3]||1,L[4]||0,L[5]||0,L[6]||0,B)):new Date(L[1],V,L[3]||1,L[4]||0,L[5]||0,L[6]||0,B)}}return new Date(F)}(A),this.init()},I.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},I.$utils=function(){return P},I.isValid=function(){return this.$d.toString()!==g},I.isSame=function(A,N){var F=M(A);return this.startOf(N)<=F&&F<=this.endOf(N)},I.isAfter=function(A,N){return M(A)25){var u=o(this).startOf(r).add(1,r).date(c),f=o(this).endOf(n);if(u.isBefore(f))return 1}var p=o(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),h=this.diff(p,n,!0);return h<0?o(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(wme);var mqe=wme.exports;const RB=ei(mqe);var xme={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),a=this.week(),o=this.year();return a===1&&i===11?o+1:i===0&&a>=52?o-1:o}}})})(xme);var gqe=xme.exports;const vqe=ei(gqe);var Sme={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return a.bind(this)(o);var c=this.$utils(),u=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return a.bind(this)(u)}}})})(Sme);var yqe=Sme.exports;const Cme=ei(yqe);var _me={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(y){this[v]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var w=y.match(/([+-]|\d\d)/g),b=60*w[1]+(+w[2]||0);return b===0?0:w[0]==="+"?-b:b}(v)}],p=function(v){var y=l[v];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(v,y){var w,b=l.meridiem;if(b){for(var C=1;C<=24;C+=1)if(v.indexOf(b(C,0,y))>-1){w=C>12;break}}else w=v===(y?"pm":"PM");return w},m={A:[s,function(v){this.afternoon=h(v,!1)}],a:[s,function(v){this.afternoon=h(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[a,u("day")],Do:[s,function(v){var y=l.ordinal,w=v.match(/\d+/);if(this.day=w[0],y)for(var b=1;b<=31;b+=1)y(b).replace(/\[|\]/g,"")===v&&(this.day=b)}],w:[o,u("week")],ww:[a,u("week")],M:[o,u("month")],MM:[a,u("month")],MMM:[s,function(v){var y=p("months"),w=(p("monthsShort")||y.map(function(b){return b.slice(0,3)})).indexOf(v)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[s,function(v){var y=p("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(v){var y,w;y=v,w=l&&l.formats;for(var b=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,P,R){var O=R&&R.toUpperCase();return P||w[R]||n[R]||w[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(j,I,A){return I||A.slice(1)})})).match(r),C=b.length,k=0;k-1)return new Date((F==="X"?1e3:1)*N);var V=g(F)(N),B=V.year,U=V.month,Y=V.day,ee=V.hours,ie=V.minutes,Z=V.seconds,X=V.milliseconds,ae=V.zone,oe=V.week,le=new Date,ce=Y||(B||U?1:le.getDate()),pe=B||le.getFullYear(),me=0;B&&!U||(me=U>0?U-1:le.getMonth());var re,fe=ee||0,ve=ie||0,$e=Z||0,Ce=X||0;return ae?new Date(Date.UTC(pe,me,ce,fe,ve,$e,Ce+60*ae.offset*1e3)):K?new Date(Date.UTC(pe,me,ce,fe,ve,$e,Ce)):(re=new Date(pe,me,ce,fe,ve,$e,Ce),oe&&(re=L(re).week(oe).toDate()),re)}catch{return new Date("")}}(S,$,_,w),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),R&&S!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var j=$.length,I=1;I<=j;I+=1){E[1]=$[I-1];var A=w.apply(this,E);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}I===j&&(this.$d=new Date(""))}else C.call(this,k)}}})})(_me);var bqe=_me.exports;const kme=ei(bqe);cr.extend(kme);cr.extend(Cme);cr.extend(vme);cr.extend(bme);cr.extend(RB);cr.extend(vqe);cr.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(a){var o=(a||"").replace("Wo","wo");return r.bind(this)(o)}});var wqe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Yh=function(t){var n=wqe[t];return n||t.split("_")[0]},xqe={getNow:function(){var t=cr();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return cr(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return cr().locale(Yh(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Yh(t)).weekday(0)},getWeek:function(t,n){return n.locale(Yh(t)).week()},getShortWeekDays:function(t){return cr().locale(Yh(t)).localeData().weekdaysMin()},getShortMonths:function(t){return cr().locale(Yh(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Yh(t)).format(r)},parse:function(t,n,r){for(var i=Yh(t),a=0;a2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=d.useState([!1,!1]),i=Te(r,2),a=i[0],o=i[1],s=function(u,f){o(function(p){return Q2(p,f,u)})},l=d.useMemo(function(){return a.map(function(c,u){if(c)return!0;var f=e[u];return f?!!(!n[u]&&!f||f&&t(f,{activeIndex:u})):!1})},[e,a,t,n]);return[l,s]}function Rme(e,t,n,r,i){var a="",o=[];return e&&o.push(i?"hh":"HH"),t&&o.push("mm"),n&&o.push("ss"),a=o.join(":"),r&&(a+=".SSS"),i&&(a+=" A"),a}function Cqe(e,t,n,r,i,a){var o=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,h=e.yearFormat,m=e.cellYearFormat,g=e.cellQuarterFormat,v=e.dayFormat,y=e.cellDateFormat,w=Rme(t,n,r,i,a);return q(q({},e),{},{fieldDateTimeFormat:o||"YYYY-MM-DD ".concat(w),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||w,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:y||v||"D"})}function Ime(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,a=t.showMillisecond,o=t.use12Hours;return te.useMemo(function(){return Cqe(e,n,r,i,a,o)},[e,n,r,i,a,o])}function Db(e,t,n){return n??t.some(function(r){return e.includes(r)})}var _qe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function kqe(e){var t=T8(e,_qe),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=Kt(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function Eqe(e){return e&&typeof e=="string"}function jme(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function Nme(e,t,n,r,i){var a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){var l,c,u,f=[a,o,s].some(function(m){return m===!1}),p=[a,o,s].some(function(m){return m===!0}),h=f?!0:!p;a=(l=a)!==null&&l!==void 0?l:h,o=(c=o)!==null&&c!==void 0?c:h,s=(u=s)!==null&&u!==void 0?u:h}return[a,o,s,i]}function Ame(e){var t=e.showTime,n=kqe(e),r=Te(n,2),i=r[0],a=r[1],o=t&&Kt(t)==="object"?t:{},s=q(q({defaultOpenValue:o.defaultOpenValue||o.defaultValue},i),o),l=s.showMillisecond,c=s.showHour,u=s.showMinute,f=s.showSecond,p=jme(c,u,f,l),h=Nme(p,c,u,f,l),m=Te(h,3);return c=m[0],u=m[1],f=m[2],[s,q(q({},s),{},{showHour:c,showMinute:u,showSecond:f,showMillisecond:l}),s.format,a]}function Dme(e,t,n,r,i){var a=e==="time";if(e==="datetime"||a){for(var o=r,s=Mme(e,i,null),l=s,c=[t,n],u=0;u1&&(o=t.addDate(o,-7)),o}function Wa(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function b6(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(o,s){n?r=e[o](r,e[i[s]](n)):r=e[o](r,0)}),r}function Pqe(e,t,n,r,i){var a=Vn(function(o,s){return!!(n&&n(o,s)||r&&e.isAfter(r,o)&&!Vo(e,t,r,o,s.type)||i&&e.isAfter(o,i)&&!Vo(e,t,i,o,s.type))});return a}function Oqe(e,t,n){return d.useMemo(function(){var r=Mme(e,t,n),i=Gg(r),a=i[0],o=Kt(a)==="object"&&a.type==="mask"?a.format:null;return[i.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),o]},[e,t,n])}function Rqe(e,t,n){return typeof e[0]=="function"||n?!0:t}function Iqe(e,t,n,r){var i=Vn(function(a,o){var s=q({type:t},o);if(delete s.activeIndex,!e.isValidate(a)||n&&n(a,s))return!0;if((t==="date"||t==="time")&&r){var l,c=o&&o.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,a,c,{from:s.from}))||{},f=u.disabledHours,p=u.disabledMinutes,h=u.disabledSeconds,m=u.disabledMilliseconds,g=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,w=f||g,b=p||v,C=h||y,k=e.getHour(a),S=e.getMinute(a),_=e.getSecond(a),E=e.getMillisecond(a);if(w&&w().includes(k)||b&&b(k).includes(S)||C&&C(k,S).includes(_)||m&&m(k,S,_).includes(E))return!0}return!1});return i}function xS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=d.useMemo(function(){var r=e&&Gg(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function Bme(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,a=i===void 0?"date":i,o=e.prefixCls,s=o===void 0?"rc-picker":o,l=e.styles,c=l===void 0?{}:l,u=e.classNames,f=u===void 0?{}:u,p=e.order,h=p===void 0?!0:p,m=e.components,g=m===void 0?{}:m,v=e.inputRender,y=e.allowClear,w=e.clearIcon,b=e.needConfirm,C=e.multiple,k=e.format,S=e.inputReadOnly,_=e.disabledDate,E=e.minDate,$=e.maxDate,M=e.showTime,P=e.value,R=e.defaultValue,O=e.pickerValue,j=e.defaultPickerValue,I=xS(P),A=xS(R),N=xS(O),F=xS(j),K=a==="date"&&M?"datetime":a,L=K==="time"||K==="datetime",V=L||C,B=b??L,U=Ame(e),Y=Te(U,4),ee=Y[0],ie=Y[1],Z=Y[2],X=Y[3],ae=Ime(r,ie),oe=d.useMemo(function(){return Dme(K,Z,X,ee,ae)},[K,Z,X,ee,ae]),le=d.useMemo(function(){return q(q({},e),{},{prefixCls:s,locale:ae,picker:a,styles:c,classNames:f,order:h,components:q({input:v},g),clearIcon:$qe(s,y,w),showTime:oe,value:I,defaultValue:A,pickerValue:N,defaultPickerValue:F},t==null?void 0:t())},[e]),ce=Oqe(K,ae,k),pe=Te(ce,2),me=pe[0],re=pe[1],fe=Rqe(me,S,C),ve=Pqe(n,r,_,E,$),$e=Iqe(n,a,ve,oe),Ce=d.useMemo(function(){return q(q({},le),{},{needConfirm:B,inputReadOnly:fe,disabledDate:ve})},[le,B,fe,ve]);return[Ce,K,V,me,re,$e]}function jqe(e,t,n){var r=jn(t,{value:e}),i=Te(r,2),a=i[0],o=i[1],s=te.useRef(e),l=te.useRef(),c=function(){rr.cancel(l.current)},u=Vn(function(){o(s.current),n&&a!==s.current&&n(s.current)}),f=Vn(function(p,h){c(),s.current=p,p||h?u():l.current=rr(u)});return te.useEffect(function(){return c},[]),[a,f]}function zme(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(u){return u})?!1:e,a=jqe(i,t||!1,r),o=Te(a,2),s=o[0],l=o[1];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(u,f.force)}return[s,c]}function Hme(e){var t=d.useRef();return d.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(i){var a;(a=t.current)===null||a===void 0||a.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function Ume(e,t){return d.useMemo(function(){return e||(t?(Br(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=Te(n,2),i=r[0],a=r[1];return{label:i,value:a}})):[])},[e,t])}function DB(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=d.useRef(t);r.current=t,qm(function(){if(e)r.current(e);else{var i=rr(function(){r.current(e)},n);return function(){rr.cancel(i)}}},[e])}function Wme(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=d.useState(0),i=Te(r,2),a=i[0],o=i[1],s=d.useState(!1),l=Te(s,2),c=l[0],u=l[1],f=d.useRef([]),p=d.useRef(null),h=d.useRef(null),m=function(C){p.current=C},g=function(C){return p.current===C},v=function(C){u(C)},y=function(C){return C&&(h.current=C),h.current},w=function(C){var k=f.current,S=new Set(k.filter(function(E){return C[E]||t[E]})),_=k[k.length-1]===0?1:0;return S.size>=2||e[_]?null:_};return DB(c||n,function(){c||(f.current=[],m(null))}),d.useEffect(function(){c&&f.current.push(a)},[c,a]),[c,v,y,a,o,w,f.current,m,g]}function Nqe(e,t,n,r,i,a){var o=n[n.length-1],s=function(c,u){var f=Te(e,2),p=f[0],h=f[1],m=q(q({},u),{},{from:Tme(e,n)});return o===1&&t[0]&&p&&!Vo(r,i,p,c,m.type)&&r.isAfter(p,c)||o===0&&t[1]&&h&&!Vo(r,i,h,c,m.type)&&r.isAfter(c,h)?!0:a==null?void 0:a(c,m)};return s}function C2(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var W9=[];function Vme(e,t,n,r,i,a,o,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:W9,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:W9,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:W9,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,m=o==="time",g=a||0,v=function(N){var F=e.getNow();return m&&(F=b6(e,F)),l[N]||n[N]||F},y=Te(c,2),w=y[0],b=y[1],C=jn(function(){return v(0)},{value:w}),k=Te(C,2),S=k[0],_=k[1],E=jn(function(){return v(1)},{value:b}),$=Te(E,2),M=$[0],P=$[1],R=d.useMemo(function(){var A=[S,M][g];return m?A:b6(e,A,u[g])},[m,S,M,g,e,u]),O=function(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",K=[_,P][g];K(N);var L=[S,M];L[g]=N,f&&(!Vo(e,t,S,L[0],o)||!Vo(e,t,M,L[1],o))&&f(L,{source:F,range:g===1?"end":"start",mode:r})},j=function(N,F){if(s){var K={date:"month",week:"month",month:"year",quarter:"year"},L=K[o];if(L&&!Vo(e,t,N,F,L))return C2(e,o,F,-1);if(o==="year"&&N){var V=Math.floor(e.getYear(N)/10),B=Math.floor(e.getYear(F)/10);if(V!==B)return C2(e,o,F,-1)}}return F},I=d.useRef(null);return nr(function(){if(i&&!l[g]){var A=m?null:e.getNow();if(I.current!==null&&I.current!==g?A=[S,M][g^1]:n[g]?A=g===0?n[0]:j(n[0],n[1]):n[g^1]&&(A=n[g^1]),A){p&&e.isAfter(p,A)&&(A=p);var N=s?C2(e,o,A,1):A;h&&e.isAfter(N,h)&&(A=s?C2(e,o,h,-1):h),O(A,"reset")}}},[i,g,n[g]]),d.useEffect(function(){i?I.current=g:I.current=null},[i,g]),nr(function(){i&&l&&l[g]&&O(l[g],"reset")},[i,g]),[R,O]}function qme(e,t){var n=d.useRef(e),r=d.useState({}),i=Te(r,2),a=i[1],o=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,a({})};return[o,s,o(!0)]}var Aqe=[];function Kme(e,t,n){var r=function(o){return o.map(function(s){return Wa(s,{generateConfig:e,locale:t,format:n[0]})})},i=function(o,s){for(var l=Math.max(o.length,s.length),c=-1,u=0;u2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=i.includes(l);(!c||!r)&&o.push({label:IB(l,a),value:l,disabled:c})}return o}function FB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,a=r.hourStep,o=a===void 0?1:a,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,f=r.millisecondStep,p=f===void 0?100:f,h=r.hideDisabledOptions,m=r.disabledTime,g=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,w=d.useMemo(function(){return n||e.getNow()},[n,e]),b=d.useCallback(function(F){var K=(m==null?void 0:m(F))||{};return[K.disabledHours||g||SS,K.disabledMinutes||v||SS,K.disabledSeconds||y||SS,K.disabledMilliseconds||SS]},[m,g,v,y]),C=d.useMemo(function(){return b(w)},[w,b]),k=Te(C,4),S=k[0],_=k[1],E=k[2],$=k[3],M=d.useCallback(function(F,K,L,V){var B=CS(0,23,o,h,F()),U=i?B.map(function(Z){return q(q({},Z),{},{label:IB(Z.value%12||12,2)})}):B,Y=function(X){return CS(0,59,l,h,K(X))},ee=function(X,ae){return CS(0,59,u,h,L(X,ae))},ie=function(X,ae,oe){return CS(0,999,p,h,V(X,ae,oe),3)};return[U,Y,ee,ie]},[h,o,i,p,l,u]),P=d.useMemo(function(){return M(S,_,E,$)},[M,S,_,E,$]),R=Te(P,4),O=R[0],j=R[1],I=R[2],A=R[3],N=function(K,L){var V=function(){return O},B=j,U=I,Y=A;if(L){var ee=b(L),ie=Te(ee,4),Z=ie[0],X=ie[1],ae=ie[2],oe=ie[3],le=M(Z,X,ae,oe),ce=Te(le,4),pe=ce[0],me=ce[1],re=ce[2],fe=ce[3];V=function(){return pe},B=me,U=re,Y=fe}var ve=Fqe(K,V,B,U,Y,e);return ve};return[N,O,j,I,A]}function Lqe(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,a=e.showTime,o=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,f=e.disabledDate,p=d.useContext(Tu),h=p.prefixCls,m=p.locale,g=p.button,v=g===void 0?"button":g,y=u.getNow(),w=FB(u,a,y),b=Te(w,1),C=b[0],k=r==null?void 0:r(t),S=f(y,{type:t}),_=function(){if(!S){var j=C(y);s(j)}},E="".concat(h,"-now"),$="".concat(E,"-btn"),M=i&&d.createElement("li",{className:E},d.createElement("a",{className:Ee($,S&&"".concat($,"-disabled")),"aria-disabled":S,onClick:_},n==="date"?m.today:m.now)),P=c&&d.createElement("li",{className:"".concat(h,"-ok")},d.createElement(v,{disabled:l,onClick:o},m.ok)),R=(M||P)&&d.createElement("ul",{className:"".concat(h,"-ranges")},M,P);return!k&&!R?null:d.createElement("div",{className:"".concat(h,"-footer")},k&&d.createElement("div",{className:"".concat(h,"-footer-extra")},k),R)}function Qme(e,t,n){function r(i,a){var o=i.findIndex(function(l){return Vo(e,t,l,a,n)});if(o===-1)return[].concat(lt(i),[a]);var s=lt(i);return s.splice(o,1),s}return r}var Yg=d.createContext(null);function O8(){return d.useContext(Yg)}function Oy(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,a=e.disabledDate,o=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,p=e.values,h=e.pickerValue,m=e.onSelect,g=e.prevIcon,v=e.nextIcon,y=e.superPrevIcon,w=e.superNextIcon,b=r.getNow(),C={now:b,values:p,pickerValue:h,prefixCls:n,disabledDate:a,minDate:o,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:v,superPrevIcon:y,superNextIcon:w};return[C,b]}var rh=d.createContext({});function M4(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,a=e.prefixColumn,o=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,f=e.cellSelection,p=f===void 0?!0:f,h=e.disabledDate,m=O8(),g=m.prefixCls,v=m.panelType,y=m.now,w=m.disabledDate,b=m.cellRender,C=m.onHover,k=m.hoverValue,S=m.hoverRangeValue,_=m.generateConfig,E=m.values,$=m.locale,M=m.onSelect,P=h||w,R="".concat(g,"-cell"),O=d.useContext(rh),j=O.onCellDblClick,I=function(U){return E.some(function(Y){return Y&&Vo(_,$,U,Y,v)})},A=[],N=0;N1&&arguments[1]!==void 0?arguments[1]:!1;we(ze),v==null||v(ze),Ve&&se(ze)},Oe=function(ze,Ve){ae(ze),Ve&&ye(Ve),se(Ve,ze)},z=function(ze){if($e(ze),ye(ze),X!==C){var Ve=["decade","year"],Be=[].concat(Ve,["month"]),Xe={quarter:[].concat(Ve,["quarter"]),week:[].concat(lt(Be),["week"]),date:[].concat(lt(Be),["date"])},Ke=Xe[C]||Be,qe=Ke.indexOf(X),Et=Ke[qe+1];Et&&Oe(Et,ze)}},H=d.useMemo(function(){var ge,ze;if(Array.isArray(_)){var Ve=Te(_,2);ge=Ve[0],ze=Ve[1]}else ge=_;return!ge&&!ze?null:(ge=ge||ze,ze=ze||ge,i.isAfter(ge,ze)?[ze,ge]:[ge,ze])},[_,i]),G=jB(E,$,M),de=R[oe]||Zqe[oe]||R8,xe=d.useContext(rh),he=d.useMemo(function(){return q(q({},xe),{},{hideHeader:O})},[xe,O]),Ue="".concat(j,"-panel"),We=T8(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return d.createElement(rh.Provider,{value:he},d.createElement("div",{ref:I,tabIndex:l,className:Ee(Ue,ne({},"".concat(Ue,"-rtl"),a==="rtl"))},d.createElement(de,tt({},We,{showTime:Y,prefixCls:j,locale:B,generateConfig:i,onModeChange:Oe,pickerValue:Se,onPickerValueChange:function(ze){ye(ze,!0)},value:fe[0],onSelect:z,values:fe,cellRender:G,hoverRangeValue:H,hoverValue:S}))))}var V9=d.memo(d.forwardRef(Qqe));function Jqe(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,o=e.onSubmit,s=e.range,l=e.hoverValue,c=d.useContext(Tu),u=c.prefixCls,f=c.generateConfig,p=d.useCallback(function(w,b){return C2(f,t,w,b)},[f,t]),h=d.useMemo(function(){return p(r,1)},[r,p]),m=function(b){i(p(b,-1))},g={onCellDblClick:function(){a&&o()}},v=t==="time",y=q(q({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return s?y.hoverRangeValue=l:y.hoverValue=l,n?d.createElement("div",{className:"".concat(u,"-panels")},d.createElement(rh.Provider,{value:q(q({},g),{},{hideNext:!0})},d.createElement(V9,y)),d.createElement(rh.Provider,{value:q(q({},g),{},{hidePrev:!0})},d.createElement(V9,tt({},y,{pickerValue:h,onPickerValueChange:m})))):d.createElement(rh.Provider,{value:q({},g)},d.createElement(V9,y))}function tX(e){return typeof e=="function"?e():e}function eKe(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?d.createElement("div",{className:"".concat(t,"-presets")},d.createElement("ul",null,n.map(function(a,o){var s=a.label,l=a.value;return d.createElement("li",{key:o,onClick:function(){r(tX(l))},onMouseEnter:function(){i(tX(l))},onMouseLeave:function(){i(null)}},s)}))):null}function ege(e){var t=e.panelRender,n=e.internalMode,r=e.picker,i=e.showNow,a=e.range,o=e.multiple,s=e.activeOffset,l=s===void 0?0:s,c=e.placement,u=e.presets,f=e.onPresetHover,p=e.onPresetSubmit,h=e.onFocus,m=e.onBlur,g=e.onPanelMouseDown,v=e.direction,y=e.value,w=e.onSelect,b=e.isInvalid,C=e.defaultOpenValue,k=e.onOk,S=e.onSubmit,_=d.useContext(Tu),E=_.prefixCls,$="".concat(E,"-panel"),M=v==="rtl",P=d.useRef(null),R=d.useRef(null),O=d.useState(0),j=Te(O,2),I=j[0],A=j[1],N=d.useState(0),F=Te(N,2),K=F[0],L=F[1],V=function(ve){ve.offsetWidth&&A(ve.offsetWidth)};d.useEffect(function(){if(a){var fe,ve=((fe=P.current)===null||fe===void 0?void 0:fe.offsetWidth)||0,$e=I-ve;l<=$e?L(0):L(l+ve-I)}},[I,l,a]);function B(fe){return fe.filter(function(ve){return ve})}var U=d.useMemo(function(){return B(Gg(y))},[y]),Y=r==="time"&&!U.length,ee=d.useMemo(function(){return Y?B([C]):U},[Y,U,C]),ie=Y?C:U,Z=d.useMemo(function(){return ee.length?ee.some(function(fe){return b(fe)}):!0},[ee,b]),X=function(){Y&&w(C),k(),S()},ae=d.createElement("div",{className:"".concat(E,"-panel-layout")},d.createElement(eKe,{prefixCls:E,presets:u,onClick:p,onHover:f}),d.createElement("div",null,d.createElement(Jqe,tt({},e,{value:ie})),d.createElement(Lqe,tt({},e,{showNow:o?!1:i,invalid:Z,onSubmit:X}))));t&&(ae=t(ae));var oe="".concat($,"-container"),le="marginLeft",ce="marginRight",pe=d.createElement("div",{onMouseDown:g,tabIndex:-1,className:Ee(oe,"".concat(E,"-").concat(n,"-panel-container")),style:ne(ne({},M?ce:le,K),M?le:ce,"auto"),onFocus:h,onBlur:m},ae);if(a){var me=M8(c,M),re=Eme(me,M);pe=d.createElement("div",{onMouseDown:g,ref:R,className:Ee("".concat(E,"-range-wrapper"),"".concat(E,"-").concat(r,"-range-wrapper"))},d.createElement("div",{ref:P,className:"".concat(E,"-range-arrow"),style:ne({},re,l)}),d.createElement(Go,{onResize:V},pe))}return pe}function tge(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,a=e.locale,o=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,f=e.onFocus,p=e.onBlur,h=e.onInputChange,m=e.onInvalid,g=e.open,v=e.onOpenChange,y=e.onKeyDown,w=e.onChange,b=e.activeHelp,C=e.name,k=e.autoComplete,S=e.id,_=e.value,E=e.invalid,$=e.placeholder,M=e.disabled,P=e.activeIndex,R=e.allHelp,O=e.picker,j=function(B,U){var Y=i.locale.parse(a.locale,B,[U]);return Y&&i.isValidate(Y)?Y:null},I=n[0],A=d.useCallback(function(V){return Wa(V,{locale:a,format:I,generateConfig:i})},[a,i,I]),N=d.useMemo(function(){return _.map(A)},[_,A]),F=d.useMemo(function(){var V=O==="time"?8:10,B=typeof I=="function"?I(i.getNow()).length:I.length;return Math.max(V,B)+2},[I,O,i]),K=function(B){for(var U=0;U=s&&n<=l)return a;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c0?Lt:Bt));var Le=He+Ze,Qe=Bt-Lt+1;return String(Lt+(Qe+Le-Lt)%Qe)};switch(ze){case"Backspace":case"Delete":Ve="",Be=Ke;break;case"ArrowLeft":Ve="",qe(-1);break;case"ArrowRight":Ve="",qe(1);break;case"ArrowUp":Ve="",Be=Et(1);break;case"ArrowDown":Ve="",Be=Et(-1);break;default:isNaN(Number(ze))||(Ve=V+ze,Be=Ve);break}if(Ve!==null&&(B(Ve),Ve.length>=Xe&&(qe(1),B(""))),Be!==null){var ut=le.slice(0,ve)+IB(Be,Xe)+le.slice($e);be(ut.slice(0,o.length))}oe({})},he=d.useRef();nr(function(){if(!(!O||!o||se.current)){if(!me.match(le)){be(o);return}return pe.current.setSelectionRange(ve,$e),he.current=rr(function(){pe.current.setSelectionRange(ve,$e)}),function(){rr.cancel(he.current)}}},[me,o,O,le,ee,ve,$e,ae,be]);var Ue=o?{onFocus:z,onBlur:G,onKeyDown:xe,onMouseDown:ye,onMouseUp:Oe,onPaste:we}:{};return d.createElement("div",{ref:ce,className:Ee(M,ne(ne({},"".concat(M,"-active"),n&&i),"".concat(M,"-placeholder"),c))},d.createElement($,tt({ref:pe,"aria-invalid":g,autoComplete:"off"},y,{onKeyDown:de,onBlur:H},Ue,{value:le,onChange:Se})),d.createElement(I8,{type:"suffix",icon:a}),v)}),sKe=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],lKe=["index"],cKe=["insetInlineStart","insetInlineEnd"];function uKe(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,a=e.suffixIcon,o=e.separator,s=o===void 0?"~":o,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,f=e.className,p=e.style,h=e.onClick,m=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,y=e.invalid;e.inputReadOnly;var w=e.direction;e.onOpenChange;var b=e.onActiveOffset,C=e.placement,k=e.onMouseDown;e.required,e["aria-required"];var S=e.autoFocus,_=e.tabIndex,E=Ht(e,sKe),$=w==="rtl",M=d.useContext(Tu),P=M.prefixCls,R=d.useMemo(function(){if(typeof n=="string")return[n];var pe=n||{};return[pe.start,pe.end]},[n]),O=d.useRef(),j=d.useRef(),I=d.useRef(),A=function(me){var re;return(re=[j,I][me])===null||re===void 0?void 0:re.current};d.useImperativeHandle(t,function(){return{nativeElement:O.current,focus:function(me){if(Kt(me)==="object"){var re,fe=me||{},ve=fe.index,$e=ve===void 0?0:ve,Ce=Ht(fe,lKe);(re=A($e))===null||re===void 0||re.focus(Ce)}else{var be;(be=A(me??0))===null||be===void 0||be.focus()}},blur:function(){var me,re;(me=A(0))===null||me===void 0||me.blur(),(re=A(1))===null||re===void 0||re.blur()}}});var N=nge(E),F=d.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),K=tge(q(q({},e),{},{id:R,placeholder:F})),L=Te(K,1),V=L[0],B=M8(C,$),U=Eme(B,$),Y=B==null?void 0:B.toLowerCase().endsWith("right"),ee=d.useState({position:"absolute",width:0}),ie=Te(ee,2),Z=ie[0],X=ie[1],ae=Vn(function(){var pe=A(l);if(pe){var me=pe.nativeElement,re=me.offsetWidth,fe=me.offsetLeft,ve=me.offsetParent,$e=(ve==null?void 0:ve.offsetWidth)||0,Ce=Y?$e-re-fe:fe;X(function(be){be.insetInlineStart,be.insetInlineEnd;var Se=Ht(be,cKe);return q(q({},Se),{},ne({width:re},U,Ce))}),b(Ce)}});d.useEffect(function(){ae()},[l]);var oe=i&&(g[0]&&!v[0]||g[1]&&!v[1]),le=S&&!v[0],ce=S&&!le&&!v[1];return d.createElement(Go,{onResize:ae},d.createElement("div",tt({},N,{className:Ee(P,"".concat(P,"-range"),ne(ne(ne(ne({},"".concat(P,"-focused"),c),"".concat(P,"-disabled"),v.every(function(pe){return pe})),"".concat(P,"-invalid"),y.some(function(pe){return pe})),"".concat(P,"-rtl"),$),f),style:p,ref:O,onClick:h,onMouseDown:function(me){var re=me.target;re!==j.current.inputElement&&re!==I.current.inputElement&&me.preventDefault(),k==null||k(me)}}),r&&d.createElement("div",{className:"".concat(P,"-prefix")},r),d.createElement(qj,tt({ref:j},V(0),{autoFocus:le,tabIndex:_,"date-range":"start"})),d.createElement("div",{className:"".concat(P,"-range-separator")},s),d.createElement(qj,tt({ref:I},V(1),{autoFocus:ce,tabIndex:_,"date-range":"end"})),d.createElement("div",{className:"".concat(P,"-active-bar"),style:Z}),d.createElement(I8,{type:"suffix",icon:a}),oe&&d.createElement(Vj,{icon:i,onClear:m})))}var dKe=d.forwardRef(uKe);function rX(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function kS(e){return e===1?"end":"start"}function fKe(e,t){var n=Bme(e,function(){var wn=e.disabled,An=e.allowEmpty,tr=rX(wn,!1),wr=rX(An,!1);return{disabled:tr,allowEmpty:wr}}),r=Te(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=i.prefixCls,f=i.styles,p=i.classNames,h=i.placement,m=i.defaultValue,g=i.value,v=i.needConfirm,y=i.onKeyDown,w=i.disabled,b=i.allowEmpty,C=i.disabledDate,k=i.minDate,S=i.maxDate,_=i.defaultOpen,E=i.open,$=i.onOpenChange,M=i.locale,P=i.generateConfig,R=i.picker,O=i.showNow,j=i.showToday,I=i.showTime,A=i.mode,N=i.onPanelChange,F=i.onCalendarChange,K=i.onOk,L=i.defaultPickerValue,V=i.pickerValue,B=i.onPickerValueChange,U=i.inputReadOnly,Y=i.suffixIcon,ee=i.onFocus,ie=i.onBlur,Z=i.presets,X=i.ranges,ae=i.components,oe=i.cellRender,le=i.dateRender,ce=i.monthCellRender,pe=i.onClick,me=Hme(t),re=zme(E,_,w,$),fe=Te(re,2),ve=fe[0],$e=fe[1],Ce=function(An,tr){(w.some(function(wr){return!wr})||!An)&&$e(An,tr)},be=Yme(P,M,s,!0,!1,m,g,F,K),Se=Te(be,5),we=Se[0],se=Se[1],ye=Se[2],Oe=Se[3],z=Se[4],H=ye(),G=Wme(w,b,ve),de=Te(G,9),xe=de[0],he=de[1],Ue=de[2],We=de[3],ge=de[4],ze=de[5],Ve=de[6],Be=de[7],Xe=de[8],Ke=function(An,tr){he(!0),ee==null||ee(An,{range:kS(tr??We)})},qe=function(An,tr){he(!1),ie==null||ie(An,{range:kS(tr??We)})},Et=d.useMemo(function(){if(!I)return null;var wn=I.disabledTime,An=wn?function(tr){var wr=kS(We),xr=Tme(H,Ve,We);return wn(tr,wr,{from:xr})}:void 0;return q(q({},I),{},{disabledTime:An})},[I,We,H,Ve]),ut=jn([R,R],{value:A}),gt=Te(ut,2),Ze=gt[0],nt=gt[1],jt=Ze[We]||R,Lt=jt==="date"&&Et?"datetime":jt,Bt=Lt===R&&Lt!=="time",Ut=Zme(R,jt,O,j,!0),Ne=Xme(i,we,se,ye,Oe,w,s,xe,ve,c),He=Te(Ne,2),Le=He[0],Qe=He[1],pt=Nqe(H,w,Ve,P,M,C),xt=Ome(H,c,b),Nt=Te(xt,2),Ot=Nt[0],Pt=Nt[1],st=Vme(P,M,H,Ze,ve,We,a,Bt,L,V,Et==null?void 0:Et.defaultOpenValue,B,k,S),Ct=Te(st,2),kt=Ct[0],qt=Ct[1],vt=Vn(function(wn,An,tr){var wr=Q2(Ze,We,An);if((wr[0]!==Ze[0]||wr[1]!==Ze[1])&&nt(wr),N&&tr!==!1){var xr=lt(H);wn&&(xr[We]=wn),N(xr,wr)}}),At=function(An,tr){return Q2(H,tr,An)},dt=function(An,tr){var wr=H;An&&(wr=At(An,We)),Be(We);var xr=ze(wr);Oe(wr),Le(We,xr===null),xr===null?Ce(!1,{force:!0}):tr||me.current.focus({index:xr})},De=function(An){var tr,wr=An.target.getRootNode();if(!me.current.nativeElement.contains((tr=wr.activeElement)!==null&&tr!==void 0?tr:document.activeElement)){var xr=w.findIndex(function(Ic){return!Ic});xr>=0&&me.current.focus({index:xr})}Ce(!0),pe==null||pe(An)},Ye=function(){Qe(null),Ce(!1,{force:!0})},ot=d.useState(null),Re=Te(ot,2),It=Re[0],rt=Re[1],$t=d.useState(null),Mt=Te($t,2),dn=Mt[0],pn=Mt[1],T=d.useMemo(function(){return dn||H},[H,dn]);d.useEffect(function(){ve||pn(null)},[ve]);var D=d.useState(0),J=Te(D,2),ke=J[0],Ie=J[1],it=Ume(Z,X),Ft=function(An){pn(An),rt("preset")},rn=function(An){var tr=Qe(An);tr&&Ce(!1,{force:!0})},On=function(An){dt(An)},Er=function(An){pn(An?At(An,We):null),rt("cell")},Mr=function(An){Ce(!0),Ke(An)},mr=function(){Ue("panel")},pr=function(An){var tr=Q2(H,We,An);Oe(tr),!v&&!o&&a===Lt&&dt(An)},cn=function(){Ce(!1)},Sn=jB(oe,le,ce,kS(We)),gr=H[We]||null,on=Vn(function(wn){return c(wn,{activeIndex:We})}),Je=d.useMemo(function(){var wn=Fi(i,!1),An=$r(i,[].concat(lt(Object.keys(wn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return An},[i]),bt=d.createElement(ege,tt({},Je,{showNow:Ut,showTime:Et,range:!0,multiplePanel:Bt,activeOffset:ke,placement:h,disabledDate:pt,onFocus:Mr,onBlur:qe,onPanelMouseDown:mr,picker:R,mode:jt,internalMode:Lt,onPanelChange:vt,format:l,value:gr,isInvalid:on,onChange:null,onSelect:pr,pickerValue:kt,defaultOpenValue:Gg(I==null?void 0:I.defaultOpenValue)[We],onPickerValueChange:qt,hoverValue:T,onHover:Er,needConfirm:v,onSubmit:dt,onOk:z,presets:it,onPresetHover:Ft,onPresetSubmit:rn,onNow:On,cellRender:Sn})),sn=function(An,tr){var wr=At(An,tr);Oe(wr)},Pn=function(){Ue("input")},qn=function(An,tr){var wr=Ve.length,xr=Ve[wr-1];if(wr&&xr!==tr&&v&&!b[xr]&&!Xe(xr)&&H[xr]){me.current.focus({index:xr});return}Ue("input"),Ce(!0,{inherit:!0}),We!==tr&&ve&&!v&&o&&dt(null,!0),ge(tr),Ke(An,tr)},ln=function(An,tr){if(Ce(!1),!v&&Ue()==="input"){var wr=ze(H);Le(We,wr===null)}qe(An,tr)},or=function(An,tr){An.key==="Tab"&&dt(null,!0),y==null||y(An,tr)},ri=d.useMemo(function(){return{prefixCls:u,locale:M,generateConfig:P,button:ae.button,input:ae.input}},[u,M,P,ae.button,ae.input]);return nr(function(){ve&&We!==void 0&&vt(null,R,!1)},[ve,We,R]),nr(function(){var wn=Ue();!ve&&wn==="input"&&(Ce(!1),dt(null,!0)),!ve&&o&&!v&&wn==="panel"&&(Ce(!0),dt())},[ve]),d.createElement(Tu.Provider,{value:ri},d.createElement($me,tt({},Pme(i),{popupElement:bt,popupStyle:f.popup,popupClassName:p.popup,visible:ve,onClose:cn,range:!0}),d.createElement(dKe,tt({},i,{ref:me,suffixIcon:Y,activeIndex:xe||ve?We:null,activeHelp:!!dn,allHelp:!!dn&&It==="preset",focused:xe,onFocus:qn,onBlur:ln,onKeyDown:or,onSubmit:dt,value:T,maskFormat:l,onChange:sn,onInputChange:Pn,format:s,inputReadOnly:U,disabled:w,open:ve,onOpenChange:Ce,onClick:De,onClear:Ye,invalid:Ot,onInvalid:Pt,onActiveOffset:Ie}))))}var pKe=d.forwardRef(fKe);function hKe(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,a=i===void 0?"×":i,o=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),f="".concat(t,"-selection"),p="".concat(f,"-overflow");function h(v,y){return d.createElement("span",{className:Ee("".concat(f,"-item")),title:typeof v=="string"?v:null},d.createElement("span",{className:"".concat(f,"-item-content")},v),!s&&y&&d.createElement("span",{onMouseDown:function(b){b.preventDefault()},onClick:y,className:"".concat(f,"-item-remove")},a))}function m(v){var y=o(v),w=function(C){C&&C.stopPropagation(),r(v)};return h(y,w)}function g(v){var y="+ ".concat(v.length," ...");return h(y)}return d.createElement("div",{className:u},d.createElement(lu,{prefixCls:p,data:n,renderItem:m,renderRest:g,itemKey:function(y){return o(y)},maxCount:l}),!n.length&&d.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var mKe=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function gKe(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,f=e.style,p=e.onClick,h=e.onClear,m=e.internalPicker,g=e.value,v=e.onChange,y=e.onSubmit;e.onInputChange;var w=e.multiple,b=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var C=e.disabled,k=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var _=e.onMouseDown;e.required,e["aria-required"];var E=e.autoFocus,$=e.tabIndex,M=e.removeIcon,P=Ht(e,mKe),R=S==="rtl",O=d.useContext(Tu),j=O.prefixCls,I=d.useRef(),A=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:I.current,focus:function(Z){var X;(X=A.current)===null||X===void 0||X.focus(Z)},blur:function(){var Z;(Z=A.current)===null||Z===void 0||Z.blur()}}});var N=nge(P),F=function(Z){v([Z])},K=function(Z){var X=g.filter(function(ae){return ae&&!Vo(l,s,ae,Z,m)});v(X),n||y()},L=tge(q(q({},e),{},{onChange:F}),function(ie){var Z=ie.valueTexts;return{value:Z[0]||"",active:o}}),V=Te(L,2),B=V[0],U=V[1],Y=!!(i&&g.length&&!C),ee=w?d.createElement(d.Fragment,null,d.createElement(hKe,{prefixCls:j,value:g,onRemove:K,formatDate:U,maxTagCount:b,disabled:C,removeIcon:M,placeholder:c}),d.createElement("input",{className:"".concat(j,"-multiple-input"),value:g.map(U).join(","),ref:A,readOnly:!0,autoFocus:E,tabIndex:$}),d.createElement(I8,{type:"suffix",icon:a}),Y&&d.createElement(Vj,{icon:i,onClear:h})):d.createElement(qj,tt({ref:A},B(),{autoFocus:E,tabIndex:$,suffixIcon:a,clearIcon:Y&&d.createElement(Vj,{icon:i,onClear:h}),showActiveCls:!1}));return d.createElement("div",tt({},N,{className:Ee(j,ne(ne(ne(ne(ne({},"".concat(j,"-multiple"),w),"".concat(j,"-focused"),o),"".concat(j,"-disabled"),C),"".concat(j,"-invalid"),k),"".concat(j,"-rtl"),R),u),style:f,ref:I,onClick:p,onMouseDown:function(Z){var X,ae=Z.target;ae!==((X=A.current)===null||X===void 0?void 0:X.inputElement)&&Z.preventDefault(),_==null||_(Z)}}),r&&d.createElement("div",{className:"".concat(j,"-prefix")},r),ee)}var vKe=d.forwardRef(gKe);function yKe(e,t){var n=Bme(e),r=Te(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=i,f=u.prefixCls,p=u.styles,h=u.classNames,m=u.order,g=u.defaultValue,v=u.value,y=u.needConfirm,w=u.onChange,b=u.onKeyDown,C=u.disabled,k=u.disabledDate,S=u.minDate,_=u.maxDate,E=u.defaultOpen,$=u.open,M=u.onOpenChange,P=u.locale,R=u.generateConfig,O=u.picker,j=u.showNow,I=u.showToday,A=u.showTime,N=u.mode,F=u.onPanelChange,K=u.onCalendarChange,L=u.onOk,V=u.multiple,B=u.defaultPickerValue,U=u.pickerValue,Y=u.onPickerValueChange,ee=u.inputReadOnly,ie=u.suffixIcon,Z=u.removeIcon,X=u.onFocus,ae=u.onBlur,oe=u.presets,le=u.components,ce=u.cellRender,pe=u.dateRender,me=u.monthCellRender,re=u.onClick,fe=Hme(t);function ve(on){return on===null?null:V?on:on[0]}var $e=Qme(R,P,a),Ce=zme($,E,[C],M),be=Te(Ce,2),Se=be[0],we=be[1],se=function(Je,bt,sn){if(K){var Pn=q({},sn);delete Pn.range,K(ve(Je),ve(bt),Pn)}},ye=function(Je){L==null||L(ve(Je))},Oe=Yme(R,P,s,!1,m,g,v,se,ye),z=Te(Oe,5),H=z[0],G=z[1],de=z[2],xe=z[3],he=z[4],Ue=de(),We=Wme([C]),ge=Te(We,4),ze=ge[0],Ve=ge[1],Be=ge[2],Xe=ge[3],Ke=function(Je){Ve(!0),X==null||X(Je,{})},qe=function(Je){Ve(!1),ae==null||ae(Je,{})},Et=jn(O,{value:N}),ut=Te(Et,2),gt=ut[0],Ze=ut[1],nt=gt==="date"&&A?"datetime":gt,jt=Zme(O,gt,j,I),Lt=w&&function(on,Je){w(ve(on),ve(Je))},Bt=Xme(q(q({},i),{},{onChange:Lt}),H,G,de,xe,[],s,ze,Se,c),Ut=Te(Bt,2),Ne=Ut[1],He=Ome(Ue,c),Le=Te(He,2),Qe=Le[0],pt=Le[1],xt=d.useMemo(function(){return Qe.some(function(on){return on})},[Qe]),Nt=function(Je,bt){if(Y){var sn=q(q({},bt),{},{mode:bt.mode[0]});delete sn.range,Y(Je[0],sn)}},Ot=Vme(R,P,Ue,[gt],Se,Xe,a,!1,B,U,Gg(A==null?void 0:A.defaultOpenValue),Nt,S,_),Pt=Te(Ot,2),st=Pt[0],Ct=Pt[1],kt=Vn(function(on,Je,bt){if(Ze(Je),F&&bt!==!1){var sn=on||Ue[Ue.length-1];F(sn,Je)}}),qt=function(){Ne(de()),we(!1,{force:!0})},vt=function(Je){!C&&!fe.current.nativeElement.contains(document.activeElement)&&fe.current.focus(),we(!0),re==null||re(Je)},At=function(){Ne(null),we(!1,{force:!0})},dt=d.useState(null),De=Te(dt,2),Ye=De[0],ot=De[1],Re=d.useState(null),It=Te(Re,2),rt=It[0],$t=It[1],Mt=d.useMemo(function(){var on=[rt].concat(lt(Ue)).filter(function(Je){return Je});return V?on:on.slice(0,1)},[Ue,rt,V]),dn=d.useMemo(function(){return!V&&rt?[rt]:Ue.filter(function(on){return on})},[Ue,rt,V]);d.useEffect(function(){Se||$t(null)},[Se]);var pn=Ume(oe),T=function(Je){$t(Je),ot("preset")},D=function(Je){var bt=V?$e(de(),Je):[Je],sn=Ne(bt);sn&&!V&&we(!1,{force:!0})},J=function(Je){D(Je)},ke=function(Je){$t(Je),ot("cell")},Ie=function(Je){we(!0),Ke(Je)},it=function(Je){if(Be("panel"),!(V&&nt!==O)){var bt=V?$e(de(),Je):[Je];xe(bt),!y&&!o&&a===nt&&qt()}},Ft=function(){we(!1)},rn=jB(ce,pe,me),On=d.useMemo(function(){var on=Fi(i,!1),Je=$r(i,[].concat(lt(Object.keys(on)),["onChange","onCalendarChange","style","className","onPanelChange"]));return q(q({},Je),{},{multiple:i.multiple})},[i]),Er=d.createElement(ege,tt({},On,{showNow:jt,showTime:A,disabledDate:k,onFocus:Ie,onBlur:qe,picker:O,mode:gt,internalMode:nt,onPanelChange:kt,format:l,value:Ue,isInvalid:c,onChange:null,onSelect:it,pickerValue:st,defaultOpenValue:A==null?void 0:A.defaultOpenValue,onPickerValueChange:Ct,hoverValue:Mt,onHover:ke,needConfirm:y,onSubmit:qt,onOk:he,presets:pn,onPresetHover:T,onPresetSubmit:D,onNow:J,cellRender:rn})),Mr=function(Je){xe(Je)},mr=function(){Be("input")},pr=function(Je){Be("input"),we(!0,{inherit:!0}),Ke(Je)},cn=function(Je){we(!1),qe(Je)},Sn=function(Je,bt){Je.key==="Tab"&&qt(),b==null||b(Je,bt)},gr=d.useMemo(function(){return{prefixCls:f,locale:P,generateConfig:R,button:le.button,input:le.input}},[f,P,R,le.button,le.input]);return nr(function(){Se&&Xe!==void 0&&kt(null,O,!1)},[Se,Xe,O]),nr(function(){var on=Be();!Se&&on==="input"&&(we(!1),qt()),!Se&&o&&!y&&on==="panel"&&(we(!0),qt())},[Se]),d.createElement(Tu.Provider,{value:gr},d.createElement($me,tt({},Pme(i),{popupElement:Er,popupStyle:p.popup,popupClassName:h.popup,visible:Se,onClose:Ft}),d.createElement(vKe,tt({},i,{ref:fe,suffixIcon:ie,removeIcon:Z,activeHelp:!!rt,allHelp:!!rt&&Ye==="preset",focused:ze,onFocus:pr,onBlur:cn,onKeyDown:Sn,onSubmit:qt,value:dn,maskFormat:l,onChange:Mr,onInputChange:mr,internalPicker:a,format:s,inputReadOnly:ee,disabled:C,open:Se,onOpenChange:we,onClick:vt,onClear:At,invalid:xt,onInvalid:function(Je){pt(Je,0)}}))))}var bKe=d.forwardRef(yKe);const rge=d.createContext(null),wKe=rge.Provider,ige=d.createContext(null),xKe=ige.Provider;var SKe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],age=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,a=e.style,o=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,p=e.title,h=e.onChange,m=Ht(e,SKe),g=d.useRef(null),v=d.useRef(null),y=jn(c,{value:o}),w=Te(y,2),b=w[0],C=w[1];d.useImperativeHandle(t,function(){return{focus:function(E){var $;($=g.current)===null||$===void 0||$.focus(E)},blur:function(){var E;(E=g.current)===null||E===void 0||E.blur()},input:g.current,nativeElement:v.current}});var k=Ee(r,i,ne(ne({},"".concat(r,"-checked"),b),"".concat(r,"-disabled"),s)),S=function(E){s||("checked"in e||C(E.target.checked),h==null||h({target:q(q({},e),{},{type:f,checked:E.target.checked}),stopPropagation:function(){E.stopPropagation()},preventDefault:function(){E.preventDefault()},nativeEvent:E.nativeEvent}))};return d.createElement("span",{className:k,title:p,style:a,ref:v},d.createElement("input",tt({},m,{className:"".concat(r,"-input"),ref:g,onChange:S,disabled:s,checked:!!b,type:f})),d.createElement("span",{className:"".concat(r,"-inner")}))});function oge(e){const t=te.useRef(null),n=()=>{rr.cancel(t.current),t.current=null};return[()=>{n(),t.current=rr(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),n()),e==null||e(a)}]}const CKe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},ar(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},_Ke=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:a,motionDurationMid:o,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:h,dotColorDisabled:m,lineType:g,radioColor:v,radioBgColor:y,calc:w}=e,b=`${t}-inner`,k=w(i).sub(w(4).mul(2)),S=w(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},ar(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Me(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:Object.assign({},yc(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:S,height:S,marginBlockStart:w(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:w(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:S,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:S,height:S,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${w(k).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},kKe=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:f,fontSizeLG:p,controlHeightLG:h,controlHeightSM:m,paddingXS:g,borderRadius:v,borderRadiusSM:y,borderRadiusLG:w,buttonCheckedBg:b,buttonSolidCheckedColor:C,colorTextDisabled:k,colorBgContainerDisabled:S,buttonCheckedBgDisabled:_,buttonCheckedColorDisabled:E,colorPrimary:$,colorPrimaryHover:M,colorPrimaryActive:P,buttonSolidCheckedBg:R,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:j,calc:I}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:Me(I(n).sub(I(i).mul(2)).equal()),background:f,border:`${Me(i)} ${a} ${o}`,borderBlockStartWidth:I(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:I(i).mul(-1).equal(),insetInlineStart:I(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:o,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${Me(i)} ${a} ${o}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:h,fontSize:p,lineHeight:Me(I(h).sub(I(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${r}-group-small &`]:{height:m,paddingInline:I(g).sub(i).equal(),paddingBlock:0,lineHeight:Me(I(m).sub(I(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},yc(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:b,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:M,borderColor:M,"&::before":{backgroundColor:M}},"&:active":{color:P,borderColor:P,"&::before":{backgroundColor:P}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:R,borderColor:R,"&:hover":{color:C,background:O,borderColor:O},"&:active":{color:C,background:j,borderColor:j}},"&-disabled":{color:k,backgroundColor:S,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:k,backgroundColor:S,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:_,borderColor:o,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},EKe=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:p,colorPrimaryActive:h,colorWhite:m}=e,g=4,v=a,y=t?v-g*2:v-(g+i)*2;return{radioSize:v,dotSize:y,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?f:m,radioBgColor:t?s:f}},sge=Jn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Me(n)} ${t}`,a=Hn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[CKe(a),_Ke(a),kKe(a)]},EKe,{unitless:{radioSize:!0,dotSize:!0}});var $Ke=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const i=d.useContext(rge),a=d.useContext(ige),{getPrefixCls:o,direction:s,radio:l}=d.useContext(Xt),c=d.useRef(null),u=ga(t,c),{isFormItemInput:f}=d.useContext(oa),p=A=>{var N,F;(N=e.onChange)===null||N===void 0||N.call(e,A),(F=i==null?void 0:i.onChange)===null||F===void 0||F.call(i,A)},{prefixCls:h,className:m,rootClassName:g,children:v,style:y,title:w}=e,b=$Ke(e,["prefixCls","className","rootClassName","children","style","title"]),C=o("radio",h),k=((i==null?void 0:i.optionType)||a)==="button",S=k?`${C}-button`:C,_=qr(C),[E,$,M]=sge(C,_),P=Object.assign({},b),R=d.useContext(ma);i&&(P.name=i.name,P.onChange=p,P.checked=e.value===i.value,P.disabled=(n=P.disabled)!==null&&n!==void 0?n:i.disabled),P.disabled=(r=P.disabled)!==null&&r!==void 0?r:R;const O=Ee(`${S}-wrapper`,{[`${S}-wrapper-checked`]:P.checked,[`${S}-wrapper-disabled`]:P.disabled,[`${S}-wrapper-rtl`]:s==="rtl",[`${S}-wrapper-in-form-item`]:f,[`${S}-wrapper-block`]:!!(i!=null&&i.block)},l==null?void 0:l.className,m,g,$,M,_),[j,I]=oge(P.onClick);return E(d.createElement(w4,{component:"Radio",disabled:P.disabled},d.createElement("label",{className:O,style:Object.assign(Object.assign({},l==null?void 0:l.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:w,onClick:j},d.createElement(age,Object.assign({},P,{className:Ee(P.className,{[t8]:!k}),type:"radio",prefixCls:S,ref:u,onClick:I})),v!==void 0?d.createElement("span",null,v):null)))},w6=d.forwardRef(MKe),TKe=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Xt),i=h8(),{prefixCls:a,className:o,rootClassName:s,options:l,buttonStyle:c="outline",disabled:u,children:f,size:p,style:h,id:m,optionType:g,name:v=i,defaultValue:y,value:w,block:b=!1,onChange:C,onMouseEnter:k,onMouseLeave:S,onFocus:_,onBlur:E}=e,[$,M]=jn(y,{value:w}),P=d.useCallback(B=>{const U=$,Y=B.target.value;"value"in e||M(Y),Y!==U&&(C==null||C(B))},[$,M,C]),R=n("radio",a),O=`${R}-group`,j=qr(R),[I,A,N]=sge(R,j);let F=f;l&&l.length>0&&(F=l.map(B=>typeof B=="string"||typeof B=="number"?d.createElement(w6,{key:B.toString(),prefixCls:R,disabled:u,value:B,checked:$===B},B):d.createElement(w6,{key:`radio-group-value-options-${B.value}`,prefixCls:R,disabled:B.disabled||u,value:B.value,checked:$===B.value,title:B.title,style:B.style,id:B.id,required:B.required},B.label)));const K=Bi(p),L=Ee(O,`${O}-${c}`,{[`${O}-${K}`]:K,[`${O}-rtl`]:r==="rtl",[`${O}-block`]:b},o,s,A,N,j),V=d.useMemo(()=>({onChange:P,value:$,disabled:u,name:v,optionType:g,block:b}),[P,$,u,v,g,b]);return I(d.createElement("div",Object.assign({},Fi(e,{aria:!0,data:!0}),{className:L,style:h,onMouseEnter:k,onMouseLeave:S,onFocus:_,onBlur:E,id:m,ref:t}),d.createElement(wKe,{value:V},F)))}),PKe=d.memo(TKe);var OKe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n}=d.useContext(Xt),{prefixCls:r}=e,i=OKe(e,["prefixCls"]),a=n("radio",r);return d.createElement(xKe,{value:"button"},d.createElement(w6,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},IKe=d.forwardRef(RKe),us=w6;us.Button=IKe;us.Group=PKe;us.__ANT_RADIO=!0;function Iy(e){return Hn(e,{inputAffixPadding:e.paddingXXS})}const jy=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:h,colorPrimary:m,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:y,colorWarningOutline:w,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((o-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:f-i,addonBg:p,activeBorderColor:m,hoverBorderColor:h,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${y}`,warningActiveShadow:`0 0 0 ${g}px ${w}`,hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},jKe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),T4=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},jKe(Hn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),LB=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),iX=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},LB(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),j8=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},LB(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},T4(e))}),iX(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),iX(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),aX=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),lge=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},aX(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),aX(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},T4(e))}})}),N8=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},cge=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),oX=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},cge(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),A8=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cge(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},T4(e))}),oX(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),oX(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),sX=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),uge=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},sX(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),sX(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),D8=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),dge=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Me(t)} ${Me(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},BB=e=>({padding:`${Me(e.paddingBlockSM)} ${Me(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),xg=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Me(e.paddingBlock)} ${Me(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},D8(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},dge(e)),"&-sm":Object.assign({},BB(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),fge=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},dge(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},BB(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Me(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Me(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Me(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Me(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Me(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},vd()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${n}-picker-range @@ -330,65 +330,65 @@ html body { & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},RKe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,o=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),wg(e)),R8(e)),N8(e)),j8(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},jKe=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Me(e.inputAffixPadding)}`}}}},NKe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},wg(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),jKe(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:o}}}),[c]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},AKe=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},ar(e)),lge(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},ige(e)),oge(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},DKe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},NKe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,o=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),xg(e)),j8(e)),A8(e)),N8(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},AKe=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Me(e.inputAffixPadding)}`}}}},DKe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},xg(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),AKe(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:o}}}),[c]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},FKe=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},ar(e)),fge(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},lge(e)),uge(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},LKe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, > ${t}, - ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},FKe=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` + ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},BKe=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${t}, &-affix-wrapper${r}-has-feedback ${t} - `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},LKe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},LB=Jn("Input",e=>{const t=Hn(e,Iy(e));return[RKe(t),FKe(t),NKe(t),AKe(t),DKe(t),LKe(t),Wg(t)]},Ry,{resetFont:!1}),W9=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",a=_he(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:Me(a.itemLineHeight)}}}]},BKe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=Hn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=Hn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[W9(i,"small"),W9(e),W9(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},khe(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},zKe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,colorTextDisabled:p,cellBgDisabled:h,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:Me(r),borderRadius:i,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), + `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},zKe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},zB=Jn("Input",e=>{const t=Hn(e,Iy(e));return[NKe(t),BKe(t),DKe(t),FKe(t),LKe(t),zKe(t),Vg(t)]},jy,{resetFont:!1}),K9=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",a=Mhe(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:Me(a.itemLineHeight)}}}]},HKe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=Hn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=Hn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[K9(i,"small"),K9(e),K9(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},The(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},UKe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,colorTextDisabled:p,cellBgDisabled:h,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:Me(r),borderRadius:i,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Me(s)} ${l} ${c}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range, &-in-view${t}-range-start, &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected, &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:c},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},HKe=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:p,borderRadiusLG:h,colorPrimary:m,colorTextHeading:g,colorSplit:v,pickerControlIconBorderWidth:y,colorIcon:b,textHeight:w,motionDurationMid:_,colorIconHover:k,fontWeightStrong:S,cellHeight:C,pickerCellPaddingVertical:E,colorTextDisabled:$,colorText:M,fontSize:P,motionDurationSlow:I,withoutTimeCellHeight:O,pickerQuarterPanelContentHeight:A,borderRadiusSM:R,colorTextLightSolid:j,cellHoverBg:N,timeColumnHeight:D,timeColumnWidth:V,timeCellHeight:F,controlItemBgActive:K,marginXXS:B,pickerDatePanelPaddingHorizontal:U,pickerControlIconMargin:Z}=e,ee=e.calc(o).mul(7).add(e.calc(U).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:h,outline:"none","&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon, + &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:c},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},WKe=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:p,borderRadiusLG:h,colorPrimary:m,colorTextHeading:g,colorSplit:v,pickerControlIconBorderWidth:y,colorIcon:w,textHeight:b,motionDurationMid:C,colorIconHover:k,fontWeightStrong:S,cellHeight:_,pickerCellPaddingVertical:E,colorTextDisabled:$,colorText:M,fontSize:P,motionDurationSlow:R,withoutTimeCellHeight:O,pickerQuarterPanelContentHeight:j,borderRadiusSM:I,colorTextLightSolid:A,cellHoverBg:N,timeColumnHeight:F,timeColumnWidth:K,timeCellHeight:L,controlItemBgActive:V,marginXXS:B,pickerDatePanelPaddingHorizontal:U,pickerControlIconMargin:Y}=e,ee=e.calc(o).mul(7).add(e.calc(U).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:h,outline:"none","&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon, ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:ee},"&-header":{display:"flex",padding:`0 ${Me(l)}`,color:g,borderBottom:`${Me(f)} ${p} ${v}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:Me(w),background:"transparent",border:0,cursor:"pointer",transition:`color ${_}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:P,"&:hover":{color:k},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:Me(w),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:m}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${Me(y)} 0`,borderInlineWidth:`${Me(y)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Z,insetInlineStart:Z,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${Me(y)} 0`,borderInlineWidth:`${Me(y)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:C,fontWeight:"normal"},th:{height:e.calc(C).add(e.calc(E).mul(2)).equal(),color:M,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Me(E)} 0`,color:$,cursor:"pointer","&-in-view":{color:M}},zKe(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(O).mul(4).equal()},[r]:{padding:`0 ${Me(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:A}},"&-decade-panel":{[r]:{padding:`0 ${Me(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${Me(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${Me(l)} ${Me(U)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, + ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:ee},"&-header":{display:"flex",padding:`0 ${Me(l)}`,color:g,borderBottom:`${Me(f)} ${p} ${v}`,"> *":{flex:"none"},button:{padding:0,color:w,lineHeight:Me(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${C}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:P,"&:hover":{color:k},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:Me(b),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:m}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${Me(y)} 0`,borderInlineWidth:`${Me(y)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Y,insetInlineStart:Y,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${Me(y)} 0`,borderInlineWidth:`${Me(y)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:_,fontWeight:"normal"},th:{height:e.calc(_).add(e.calc(E).mul(2)).equal(),color:M,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Me(E)} 0`,color:$,cursor:"pointer","&-in-view":{color:M}},UKe(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(O).mul(4).equal()},[r]:{padding:`0 ${Me(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:j}},"&-decade-panel":{[r]:{padding:`0 ${Me(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${Me(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${Me(l)} ${Me(U)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, &-selected ${r}, - ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${_}`},"&:first-child:before":{borderStartStartRadius:R,borderEndStartRadius:R},"&:last-child:before":{borderStartEndRadius:R,borderEndEndRadius:R}},"&:hover td:before":{background:N},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new dr(j).setA(.5).toHexString()},[r]:{color:j}}},"&-range-hover td:before":{background:K}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Me(l)} ${Me(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${Me(f)} ${p} ${v}`},[`${t}-date-panel, - ${t}-time-panel`]:{transition:`opacity ${I}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:D},"&-column":{flex:"1 0 auto",width:V,margin:`${Me(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${_}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${Me(F)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Me(f)} ${p} ${v}`},"&-active":{background:new dr(K).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:B,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(V).sub(e.calc(B).mul(2)).equal(),height:F,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(V).sub(F).div(2).equal(),color:M,lineHeight:Me(F),borderRadius:R,cursor:"pointer",transition:`background ${_}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:K}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:$,background:"transparent",cursor:"not-allowed"}}}}}}}}},UKe=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Me(r)} ${c} ${u}`,"&-extra":{padding:`0 ${Me(i)}`,lineHeight:Me(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Me(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:Me(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Me(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},WKe=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},VKe=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,l=o*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),f=Math.min(i-s,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new dr(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new dr(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},qKe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Ry(e)),VKe(e)),w8(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),KKe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},R8(e)),N8(e)),j8(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},V9=(e,t,n,r)=>{const i=e.calc(n).add(2).equal(),a=e.max(e.calc(t).sub(i).div(2).equal(),0),o=e.max(e.calc(t).sub(i).sub(a).equal(),0);return{padding:`${Me(a)} ${Me(r)} ${Me(o)}`}},GKe=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},YKe=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:i,lineWidth:a,lineType:o,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:f,controlHeightLG:p,fontSizeLG:h,controlHeightSM:m,paddingInlineSM:g,paddingXS:v,marginXS:y,colorTextDescription:b,lineWidthBold:w,colorPrimary:_,motionDurationSlow:k,zIndexPopup:S,paddingXXS:C,sizePopupArrow:E,colorBgElevated:$,borderRadiusLG:M,boxShadowSecondary:P,borderRadiusSM:I,colorSplit:O,cellHoverBg:A,presetsWidth:R,presetsMaxWidth:j,boxShadowPopoverArrow:N,fontHeight:D,fontHeightLG:V,lineHeightLG:F}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},ar(e)),V9(e,r,D,i)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},A8(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},V9(e,p,V,i)),{[`${t}-input > input`]:{fontSize:h,lineHeight:F}}),"&-small":Object.assign({},V9(e,m,D,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(v).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:h,color:u,fontSize:h,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:w,background:_,opacity:0,transition:`all ${k} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${Me(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:i},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},ar(e)),HKe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, + ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${C}`},"&:first-child:before":{borderStartStartRadius:I,borderEndStartRadius:I},"&:last-child:before":{borderStartEndRadius:I,borderEndEndRadius:I}},"&:hover td:before":{background:N},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new ur(A).setA(.5).toHexString()},[r]:{color:A}}},"&-range-hover td:before":{background:V}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Me(l)} ${Me(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${Me(f)} ${p} ${v}`},[`${t}-date-panel, + ${t}-time-panel`]:{transition:`opacity ${R}`},"&-active":{[`${t}-date-panel, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:F},"&-column":{flex:"1 0 auto",width:K,margin:`${Me(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${C}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${Me(L)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Me(f)} ${p} ${v}`},"&-active":{background:new ur(V).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:B,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(K).sub(e.calc(B).mul(2)).equal(),height:L,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(K).sub(L).div(2).equal(),color:M,lineHeight:Me(L),borderRadius:I,cursor:"pointer",transition:`background ${C}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:V}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:$,background:"transparent",cursor:"not-allowed"}}}}}}}}},VKe=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Me(r)} ${c} ${u}`,"&-extra":{padding:`0 ${Me(i)}`,lineHeight:Me(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Me(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:Me(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Me(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},qKe=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},KKe=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,l=o*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),f=Math.min(i-s,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new ur(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new ur(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},GKe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},jy(e)),KKe(e)),x8(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),YKe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},j8(e)),A8(e)),N8(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},G9=(e,t,n,r)=>{const i=e.calc(n).add(2).equal(),a=e.max(e.calc(t).sub(i).div(2).equal(),0),o=e.max(e.calc(t).sub(i).sub(a).equal(),0);return{padding:`${Me(a)} ${Me(r)} ${Me(o)}`}},XKe=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},ZKe=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:i,lineWidth:a,lineType:o,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:f,controlHeightLG:p,fontSizeLG:h,controlHeightSM:m,paddingInlineSM:g,paddingXS:v,marginXS:y,colorTextDescription:w,lineWidthBold:b,colorPrimary:C,motionDurationSlow:k,zIndexPopup:S,paddingXXS:_,sizePopupArrow:E,colorBgElevated:$,borderRadiusLG:M,boxShadowSecondary:P,borderRadiusSM:R,colorSplit:O,cellHoverBg:j,presetsWidth:I,presetsMaxWidth:A,boxShadowPopoverArrow:N,fontHeight:F,fontHeightLG:K,lineHeightLG:L}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},ar(e)),G9(e,r,F,i)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},D8(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},G9(e,p,K,i)),{[`${t}-input > input`]:{fontSize:h,lineHeight:L}}),"&-small":Object.assign({},G9(e,m,F,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(v).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:w}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:h,color:u,fontSize:h,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:w},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:b,background:C,opacity:0,transition:`all ${k} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${Me(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:i},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},ar(e)),WKe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft, &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:a8},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:o8},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:r8},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:o8},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:i8},[`${t}-panel > ${t}-time-panel`]:{paddingTop:C},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(i).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${k} ease-out`},jhe(e,$,N)),{"&:before":{insetInlineStart:e.calc(i).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:$,borderRadius:M,boxShadow:P,transition:`margin ${k}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:R,maxWidth:j,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:v,borderInlineEnd:`${Me(a)} ${o} ${O}`,li:Object.assign(Object.assign({},oo),{borderRadius:I,paddingInline:v,paddingBlock:e.calc(m).sub(D).div(2).equal(),cursor:"pointer",transition:`all ${k}`,"+ li":{marginTop:y},"&:hover":{background:A}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${Me(e.calc(E).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},md(e,"slide-up"),md(e,"slide-down"),M0(e,"move-up"),M0(e,"move-down")]},cge=Jn("DatePicker",e=>{const t=Hn(Iy(e),WKe(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[UKe(t),YKe(t),KKe(t),GKe(t),BKe(t),Wg(e,{focusElCls:`${e.componentCls}-focused`})]},qKe);var XKe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},ZKe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:XKe}))},jy=d.forwardRef(ZKe);const D8=d.createContext(null);var QKe=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,a=t.indicator,o=a===void 0?{}:a,s=o.size,l=o.align,c=l===void 0?"center":l,u=d.useState(),f=Te(u,2),p=f[0],h=f[1],m=d.useRef(),g=te.useCallback(function(y){return typeof s=="function"?s(y):typeof s=="number"?s:y},[s]);function v(){rr.cancel(m.current)}return d.useEffect(function(){var y={};if(n)if(r){y.width=g(n.width);var b=i?"right":"left";c==="start"&&(y[b]=n[b]),c==="center"&&(y[b]=n[b]+n.width/2,y.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[b]=n[b]+n.width,y.transform="translateX(-100%)")}else y.height=g(n.height),c==="start"&&(y.top=n.top),c==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),c==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return v(),m.current=rr(function(){h(y)}),v},[n,r,i,c,g]),{style:p}},aX={width:0,height:0,left:0,top:0};function JKe(e,t,n){return d.useMemo(function(){for(var r,i=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||aX,o=a.left+a.width,s=0;sA?(I=M,S.current="x"):(I=P,S.current="y"),t(-I,-I)&&$.preventDefault()}var E=d.useRef(null);E.current={onTouchStart:w,onTouchMove:_,onTouchEnd:k,onWheel:C},d.useEffect(function(){function $(O){E.current.onTouchStart(O)}function M(O){E.current.onTouchMove(O)}function P(O){E.current.onTouchEnd(O)}function I(O){E.current.onWheel(O)}return document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",P,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",I,{passive:!1}),function(){document.removeEventListener("touchmove",M),document.removeEventListener("touchend",P)}},[])}function uge(e){var t=d.useState(0),n=Te(t,2),r=n[0],i=n[1],a=d.useRef(0),o=d.useRef();return o.current=e,Vm(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}function nGe(e){var t=d.useRef([]),n=d.useState({}),r=Te(n,2),i=r[1],a=d.useRef(typeof e=="function"?e():e),o=uge(function(){var l=a.current;t.current.forEach(function(c){l=c(l)}),t.current=[],a.current=l,i({})});function s(l){t.current.push(l),o()}return[a.current,s]}var cX={width:0,height:0,left:0,top:0,right:0};function rGe(e,t,n,r,i,a,o){var s=o.tabs,l=o.tabPosition,c=o.rtl,u,f,p;return["top","bottom"].includes(l)?(u="width",f=c?"right":"left",p=Math.abs(n)):(u="height",f="top",p=-n),d.useMemo(function(){if(!s.length)return[0,0];for(var h=s.length,m=h,g=0;gMath.floor(p+t)){m=g-1;break}}for(var y=0,b=h-1;b>=0;b-=1){var w=e.get(s[b].key)||cX;if(w[f]=m?[0,0]:[y,m]},[e,t,r,i,a,p,l,s.map(function(h){return h.key}).join("_"),c])}function uX(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var iGe="TABS_DQ";function dge(e){return String(e).replace(/"/g,iGe)}function BB(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var fge=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return!r||r.showAdd===!1?null:d.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),dX=d.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var a,o={};return Kt(i)==="object"&&!d.isValidElement(i)?o=i:o.right=i,n==="right"&&(a=o.right),n==="left"&&(a=o.left),a?d.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),aGe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,o=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,f=e.editable,p=e.tabBarGutter,h=e.rtl,m=e.removeAriaLabel,g=e.onTabClick,v=e.getPopupContainer,y=e.popupClassName,b=d.useState(!1),w=Te(b,2),_=w[0],k=w[1],S=d.useState(null),C=Te(S,2),E=C[0],$=C[1],M=l.icon,P=M===void 0?"More":M,I="".concat(r,"-more-popup"),O="".concat(n,"-dropdown"),A=E!==null?"".concat(I,"-").concat(E):null,R=a==null?void 0:a.dropdownAriaLabel;function j(U,Z){U.preventDefault(),U.stopPropagation(),f.onEdit("remove",{key:Z,event:U})}var N=d.createElement(qg,{onClick:function(Z){var ee=Z.key,ie=Z.domEvent;g(ee,ie),k(!1)},prefixCls:"".concat(O,"-menu"),id:I,tabIndex:-1,role:"listbox","aria-activedescendant":A,selectedKeys:[E],"aria-label":R!==void 0?R:"expanded dropdown"},i.map(function(U){var Z=U.closable,ee=U.disabled,ie=U.closeIcon,Y=U.key,X=U.label,ae=BB(Z,ie,f,ee);return d.createElement(yg,{key:Y,id:"".concat(I,"-").concat(Y),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Y),disabled:ee},d.createElement("span",null,X),ae&&d.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(O,"-menu-item-remove"),onClick:function(le){le.stopPropagation(),j(le,Y)}},ie||f.removeIcon||"×"))}));function D(U){for(var Z=i.filter(function(ae){return!ae.disabled}),ee=Z.findIndex(function(ae){return ae.key===E})||0,ie=Z.length,Y=0;Yrt?"left":"right"})}),O=Te(I,2),A=O[0],R=O[1],j=oX(0,function(Rt,rt){!P&&g&&g({direction:Rt>rt?"top":"bottom"})}),N=Te(j,2),D=N[0],V=N[1],F=d.useState([0,0]),K=Te(F,2),B=K[0],U=K[1],Z=d.useState([0,0]),ee=Te(Z,2),ie=ee[0],Y=ee[1],X=d.useState([0,0]),ae=Te(X,2),oe=ae[0],le=ae[1],ce=d.useState([0,0]),pe=Te(ce,2),me=pe[0],re=pe[1],fe=nGe(new Map),ve=Te(fe,2),$e=ve[0],Ce=ve[1],be=JKe(w,$e,ie[0]),Se=_S(B,P),we=_S(ie,P),se=_S(oe,P),ye=_S(me,P),Oe=Math.floor(Se)de?de:Rt}var he=d.useRef(null),Ue=d.useState(),We=Te(Ue,2),ge=We[0],ze=We[1];function Ve(){ze(Date.now())}function Be(){he.current&&clearTimeout(he.current)}tGe(C,function(Rt,rt){function $t(Mt,cn){Mt(function(fn){var T=xe(fn+cn);return T})}return Oe?(P?$t(R,Rt):$t(V,rt),Be(),Ve(),!0):!1}),d.useEffect(function(){return Be(),ge&&(he.current=setTimeout(function(){ze(0)},100)),Be},[ge]);var Xe=rGe(be,z,P?A:D,we,se,ye,q(q({},e),{},{tabs:w})),Ke=Te(Xe,2),qe=Ke[0],Et=Ke[1],dt=Vn(function(){var Rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,rt=be.get(Rt)||{width:0,height:0,left:0,right:0,top:0};if(P){var $t=A;s?rt.rightA+z&&($t=rt.right+rt.width-z):rt.left<-A?$t=-rt.left:rt.left+rt.width>-A+z&&($t=-(rt.left+rt.width-z)),V(0),R(xe($t))}else{var Mt=D;rt.top<-D?Mt=-rt.top:rt.top+rt.height>-D+z&&(Mt=-(rt.top+rt.height-z)),R(0),V(xe(Mt))}}),vt=d.useState(),Ze=Te(vt,2),nt=Ze[0],jt=Ze[1],Lt=d.useState(!1),Bt=Te(Lt,2),Ht=Bt[0],Ne=Bt[1],He=w.filter(function(Rt){return!Rt.disabled}).map(function(Rt){return Rt.key}),Le=function(rt){var $t=He.indexOf(nt||o),Mt=He.length,cn=($t+rt+Mt)%Mt,fn=He[cn];jt(fn)},Qe=function(rt){var $t=rt.code,Mt=s&&P,cn=He[0],fn=He[He.length-1];switch($t){case"ArrowLeft":{P&&Le(Mt?1:-1);break}case"ArrowRight":{P&&Le(Mt?-1:1);break}case"ArrowUp":{rt.preventDefault(),P||Le(-1);break}case"ArrowDown":{rt.preventDefault(),P||Le(1);break}case"Home":{rt.preventDefault(),jt(cn);break}case"End":{rt.preventDefault(),jt(fn);break}case"Enter":case"Space":{rt.preventDefault(),m(nt,rt);break}case"Backspace":case"Delete":{var T=He.indexOf(nt),L=w.find(function(ke){return ke.key===nt}),J=BB(L==null?void 0:L.closable,L==null?void 0:L.closeIcon,c,L==null?void 0:L.disabled);J&&(rt.preventDefault(),rt.stopPropagation(),c.onEdit("remove",{key:nt,event:rt}),T===He.length-1?Le(-1):Le(1));break}}},ht={};P?ht[s?"marginRight":"marginLeft"]=p:ht.marginTop=p;var xt=w.map(function(Rt,rt){var $t=Rt.key;return d.createElement(sGe,{id:i,prefixCls:b,key:$t,tab:Rt,style:rt===0?void 0:ht,closable:Rt.closable,editable:c,active:$t===o,focus:$t===nt,renderWrapper:h,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:He.length,currentPosition:rt+1,onClick:function(cn){m($t,cn)},onKeyDown:Qe,onFocus:function(){Ht||jt($t),dt($t),Ve(),C.current&&(s||(C.current.scrollLeft=0),C.current.scrollTop=0)},onBlur:function(){jt(void 0)},onMouseDown:function(){Ne(!0)},onMouseUp:function(){Ne(!1)}})}),Nt=function(){return Ce(function(){var rt,$t=new Map,Mt=(rt=E.current)===null||rt===void 0?void 0:rt.getBoundingClientRect();return w.forEach(function(cn){var fn,T=cn.key,L=(fn=E.current)===null||fn===void 0?void 0:fn.querySelector('[data-node-key="'.concat(dge(T),'"]'));if(L){var J=lGe(L,Mt),ke=Te(J,4),je=ke[0],it=ke[1],Ft=ke[2],an=ke[3];$t.set(T,{width:je,height:it,left:Ft,top:an})}}),$t})};d.useEffect(function(){Nt()},[w.map(function(Rt){return Rt.key}).join("_")]);var Ot=uge(function(){var Rt=N1(_),rt=N1(k),$t=N1(S);U([Rt[0]-rt[0]-$t[0],Rt[1]-rt[1]-$t[1]]);var Mt=N1(M);le(Mt);var cn=N1($);re(cn);var fn=N1(E);Y([fn[0]-Mt[0],fn[1]-Mt[1]]),Nt()}),Pt=w.slice(0,qe),lt=w.slice(Et+1),Ct=[].concat(ct(Pt),ct(lt)),kt=be.get(o),qt=QKe({activeTabOffset:kt,horizontal:P,indicator:v,rtl:s}),yt=qt.style;d.useEffect(function(){dt()},[o,G,de,uX(kt),uX(be),P]),d.useEffect(function(){Ot()},[s]);var At=!!Ct.length,ft="".concat(b,"-nav-wrap"),De,Ye,st,Ie;return P?s?(Ye=A>0,De=A!==de):(De=A<0,Ye=A!==G):(st=D<0,Ie=D!==G),d.createElement(Go,{onResize:Ot},d.createElement("div",{ref:Su(t,_),role:"tablist","aria-orientation":P?"horizontal":"vertical",className:Ee("".concat(b,"-nav"),n),style:r,onKeyDown:function(){Ve()}},d.createElement(dX,{ref:k,position:"left",extra:l,prefixCls:b}),d.createElement(Go,{onResize:Ot},d.createElement("div",{className:Ee(ft,ne(ne(ne(ne({},"".concat(ft,"-ping-left"),De),"".concat(ft,"-ping-right"),Ye),"".concat(ft,"-ping-top"),st),"".concat(ft,"-ping-bottom"),Ie)),ref:C},d.createElement(Go,{onResize:Ot},d.createElement("div",{ref:E,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(A,"px, ").concat(D,"px)"),transition:ge?"none":void 0}},xt,d.createElement(fge,{ref:M,prefixCls:b,locale:u,editable:c,style:q(q({},xt.length===0?void 0:ht),{},{visibility:At?"hidden":null})}),d.createElement("div",{className:Ee("".concat(b,"-ink-bar"),ne({},"".concat(b,"-ink-bar-animated"),a.inkBar)),style:yt}))))),d.createElement(oGe,tt({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:$,prefixCls:b,tabs:Ct,className:!At&&H,tabMoving:!!ge})),d.createElement(dX,{ref:S,position:"right",extra:l,prefixCls:b})))}),pge=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,o=e.active,s=e.tabKey,l=e.children;return d.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!o,style:i,className:Ee(n,o&&"".concat(n,"-active"),r),ref:t},l)}),cGe=["renderTabBar"],uGe=["label","key"],dGe=function(t){var n=t.renderTabBar,r=Ut(t,cGe),i=d.useContext(D8),a=i.tabs;if(n){var o=q(q({},r),{},{panes:a.map(function(s){var l=s.label,c=s.key,u=Ut(s,uGe);return d.createElement(pge,tt({tab:l,key:c,tabKey:c},u))})});return n(o,fX)}return d.createElement(fX,r)},fGe=["key","forceRender","style","className","destroyInactiveTabPane"],pGe=function(t){var n=t.id,r=t.activeKey,i=t.animated,a=t.tabPosition,o=t.destroyInactiveTabPane,s=d.useContext(D8),l=s.prefixCls,c=s.tabs,u=i.tabPane,f="".concat(l,"-tabpane");return d.createElement("div",{className:Ee("".concat(l,"-content-holder"))},d.createElement("div",{className:Ee("".concat(l,"-content"),"".concat(l,"-content-").concat(a),ne({},"".concat(l,"-content-animated"),u))},c.map(function(p){var h=p.key,m=p.forceRender,g=p.style,v=p.className,y=p.destroyInactiveTabPane,b=Ut(p,fGe),w=h===r;return d.createElement(ka,tt({key:h,visible:w,forceRender:m,removeOnLeave:!!(o||y),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(_,k){var S=_.style,C=_.className;return d.createElement(pge,tt({},b,{prefixCls:f,id:n,tabKey:h,animated:u,active:w,style:q(q({},g),S),className:Ee(v,C),ref:k}))})})))};function hGe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=q({inkBar:!0},Kt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var mGe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],pX=0,gGe=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,a=e.className,o=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,p=e.tabPosition,h=p===void 0?"top":p,m=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,y=e.locale,b=e.more,w=e.destroyInactiveTabPane,_=e.renderTabBar,k=e.onChange,S=e.onTabClick,C=e.onTabScroll,E=e.getPopupContainer,$=e.popupClassName,M=e.indicator,P=Ut(e,mGe),I=d.useMemo(function(){return(o||[]).filter(function(me){return me&&Kt(me)==="object"&&"key"in me})},[o]),O=s==="rtl",A=hGe(f),R=d.useState(!1),j=Te(R,2),N=j[0],D=j[1];d.useEffect(function(){D(v8())},[]);var V=In(function(){var me;return(me=I[0])===null||me===void 0?void 0:me.key},{value:l,defaultValue:c}),F=Te(V,2),K=F[0],B=F[1],U=d.useState(function(){return I.findIndex(function(me){return me.key===K})}),Z=Te(U,2),ee=Z[0],ie=Z[1];d.useEffect(function(){var me=I.findIndex(function(fe){return fe.key===K});if(me===-1){var re;me=Math.max(0,Math.min(ee,I.length-1)),B((re=I[me])===null||re===void 0?void 0:re.key)}ie(me)},[I.map(function(me){return me.key}).join("_"),K,ee]);var Y=In(null,{value:n}),X=Te(Y,2),ae=X[0],oe=X[1];d.useEffect(function(){n||(oe("rc-tabs-".concat(pX)),pX+=1)},[]);function le(me,re){S==null||S(me,re);var fe=me!==K;B(me),fe&&(k==null||k(me))}var ce={id:ae,activeKey:K,animated:A,tabPosition:h,rtl:O,mobile:N},pe=q(q({},ce),{},{editable:u,locale:y,more:b,tabBarGutter:m,onTabClick:le,onTabScroll:C,extra:v,style:g,panes:null,getPopupContainer:E,popupClassName:$,indicator:M});return d.createElement(D8.Provider,{value:{tabs:I,prefixCls:i}},d.createElement("div",tt({ref:t,id:n,className:Ee(i,"".concat(i,"-").concat(h),ne(ne(ne({},"".concat(i,"-mobile"),N),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),O),a)},P),d.createElement(dGe,tt({},pe,{renderTabBar:_})),d.createElement(pGe,tt({destroyInactiveTabPane:w},ce,{animated:A}))))});const vGe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function yGe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},vGe),{motionName:so(e,"switch")})),n}var bGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it)}function xGe(e,t){if(e)return e;const n=Zi(t).map(r=>{if(d.isValidElement(r)){const{key:i,props:a}=r,o=a||{},{tab:s}=o,l=bGe(o,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return wGe(n)}const SGe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[md(e,"slide-up"),md(e,"slide-down")]]},CGe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Me(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},gc(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Me(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Me(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Me(e.borderRadiusLG)} 0 0 ${Me(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},_Ge=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},ar(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Me(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},oo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Me(e.paddingXXS)} ${Me(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},kGe=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:i8},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:s8},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:a8},[`${t}-panel > ${t}-time-panel`]:{paddingTop:_},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(i).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${k} ease-out`},Fhe(e,$,N)),{"&:before":{insetInlineStart:e.calc(i).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:$,borderRadius:M,boxShadow:P,transition:`margin ${k}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:I,maxWidth:A,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:v,borderInlineEnd:`${Me(a)} ${o} ${O}`,li:Object.assign(Object.assign({},ao),{borderRadius:R,paddingInline:v,paddingBlock:e.calc(m).sub(F).div(2).equal(),cursor:"pointer",transition:`all ${k}`,"+ li":{marginTop:y},"&:hover":{background:j}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${Me(e.calc(E).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},yd(e,"slide-up"),yd(e,"slide-down"),O0(e,"move-up"),O0(e,"move-down")]},pge=Jn("DatePicker",e=>{const t=Hn(Iy(e),qKe(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[VKe(t),ZKe(t),YKe(t),XKe(t),HKe(t),Vg(e,{focusElCls:`${e.componentCls}-focused`})]},GKe);var QKe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},JKe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:QKe}))},Ny=d.forwardRef(JKe);const F8=d.createContext(null);var eGe=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,a=t.indicator,o=a===void 0?{}:a,s=o.size,l=o.align,c=l===void 0?"center":l,u=d.useState(),f=Te(u,2),p=f[0],h=f[1],m=d.useRef(),g=te.useCallback(function(y){return typeof s=="function"?s(y):typeof s=="number"?s:y},[s]);function v(){rr.cancel(m.current)}return d.useEffect(function(){var y={};if(n)if(r){y.width=g(n.width);var w=i?"right":"left";c==="start"&&(y[w]=n[w]),c==="center"&&(y[w]=n[w]+n.width/2,y.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[w]=n[w]+n.width,y.transform="translateX(-100%)")}else y.height=g(n.height),c==="start"&&(y.top=n.top),c==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),c==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return v(),m.current=rr(function(){h(y)}),v},[n,r,i,c,g]),{style:p}},lX={width:0,height:0,left:0,top:0};function tGe(e,t,n){return d.useMemo(function(){for(var r,i=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||lX,o=a.left+a.width,s=0;sj?(R=M,S.current="x"):(R=P,S.current="y"),t(-R,-R)&&$.preventDefault()}var E=d.useRef(null);E.current={onTouchStart:b,onTouchMove:C,onTouchEnd:k,onWheel:_},d.useEffect(function(){function $(O){E.current.onTouchStart(O)}function M(O){E.current.onTouchMove(O)}function P(O){E.current.onTouchEnd(O)}function R(O){E.current.onWheel(O)}return document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",P,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",R,{passive:!1}),function(){document.removeEventListener("touchmove",M),document.removeEventListener("touchend",P)}},[])}function hge(e){var t=d.useState(0),n=Te(t,2),r=n[0],i=n[1],a=d.useRef(0),o=d.useRef();return o.current=e,qm(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}function iGe(e){var t=d.useRef([]),n=d.useState({}),r=Te(n,2),i=r[1],a=d.useRef(typeof e=="function"?e():e),o=hge(function(){var l=a.current;t.current.forEach(function(c){l=c(l)}),t.current=[],a.current=l,i({})});function s(l){t.current.push(l),o()}return[a.current,s]}var fX={width:0,height:0,left:0,top:0,right:0};function aGe(e,t,n,r,i,a,o){var s=o.tabs,l=o.tabPosition,c=o.rtl,u,f,p;return["top","bottom"].includes(l)?(u="width",f=c?"right":"left",p=Math.abs(n)):(u="height",f="top",p=-n),d.useMemo(function(){if(!s.length)return[0,0];for(var h=s.length,m=h,g=0;gMath.floor(p+t)){m=g-1;break}}for(var y=0,w=h-1;w>=0;w-=1){var b=e.get(s[w].key)||fX;if(b[f]=m?[0,0]:[y,m]},[e,t,r,i,a,p,l,s.map(function(h){return h.key}).join("_"),c])}function pX(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var oGe="TABS_DQ";function mge(e){return String(e).replace(/"/g,oGe)}function HB(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var gge=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return!r||r.showAdd===!1?null:d.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),hX=d.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var a,o={};return Kt(i)==="object"&&!d.isValidElement(i)?o=i:o.right=i,n==="right"&&(a=o.right),n==="left"&&(a=o.left),a?d.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),sGe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,o=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,f=e.editable,p=e.tabBarGutter,h=e.rtl,m=e.removeAriaLabel,g=e.onTabClick,v=e.getPopupContainer,y=e.popupClassName,w=d.useState(!1),b=Te(w,2),C=b[0],k=b[1],S=d.useState(null),_=Te(S,2),E=_[0],$=_[1],M=l.icon,P=M===void 0?"More":M,R="".concat(r,"-more-popup"),O="".concat(n,"-dropdown"),j=E!==null?"".concat(R,"-").concat(E):null,I=a==null?void 0:a.dropdownAriaLabel;function A(U,Y){U.preventDefault(),U.stopPropagation(),f.onEdit("remove",{key:Y,event:U})}var N=d.createElement(Kg,{onClick:function(Y){var ee=Y.key,ie=Y.domEvent;g(ee,ie),k(!1)},prefixCls:"".concat(O,"-menu"),id:R,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[E],"aria-label":I!==void 0?I:"expanded dropdown"},i.map(function(U){var Y=U.closable,ee=U.disabled,ie=U.closeIcon,Z=U.key,X=U.label,ae=HB(Y,ie,f,ee);return d.createElement(bg,{key:Z,id:"".concat(R,"-").concat(Z),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Z),disabled:ee},d.createElement("span",null,X),ae&&d.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(O,"-menu-item-remove"),onClick:function(le){le.stopPropagation(),A(le,Z)}},ie||f.removeIcon||"×"))}));function F(U){for(var Y=i.filter(function(ae){return!ae.disabled}),ee=Y.findIndex(function(ae){return ae.key===E})||0,ie=Y.length,Z=0;Zrt?"left":"right"})}),O=Te(R,2),j=O[0],I=O[1],A=cX(0,function(It,rt){!P&&g&&g({direction:It>rt?"top":"bottom"})}),N=Te(A,2),F=N[0],K=N[1],L=d.useState([0,0]),V=Te(L,2),B=V[0],U=V[1],Y=d.useState([0,0]),ee=Te(Y,2),ie=ee[0],Z=ee[1],X=d.useState([0,0]),ae=Te(X,2),oe=ae[0],le=ae[1],ce=d.useState([0,0]),pe=Te(ce,2),me=pe[0],re=pe[1],fe=iGe(new Map),ve=Te(fe,2),$e=ve[0],Ce=ve[1],be=tGe(b,$e,ie[0]),Se=ES(B,P),we=ES(ie,P),se=ES(oe,P),ye=ES(me,P),Oe=Math.floor(Se)de?de:It}var he=d.useRef(null),Ue=d.useState(),We=Te(Ue,2),ge=We[0],ze=We[1];function Ve(){ze(Date.now())}function Be(){he.current&&clearTimeout(he.current)}rGe(_,function(It,rt){function $t(Mt,dn){Mt(function(pn){var T=xe(pn+dn);return T})}return Oe?(P?$t(I,It):$t(K,rt),Be(),Ve(),!0):!1}),d.useEffect(function(){return Be(),ge&&(he.current=setTimeout(function(){ze(0)},100)),Be},[ge]);var Xe=aGe(be,z,P?j:F,we,se,ye,q(q({},e),{},{tabs:b})),Ke=Te(Xe,2),qe=Ke[0],Et=Ke[1],ut=Vn(function(){var It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,rt=be.get(It)||{width:0,height:0,left:0,right:0,top:0};if(P){var $t=j;s?rt.rightj+z&&($t=rt.right+rt.width-z):rt.left<-j?$t=-rt.left:rt.left+rt.width>-j+z&&($t=-(rt.left+rt.width-z)),K(0),I(xe($t))}else{var Mt=F;rt.top<-F?Mt=-rt.top:rt.top+rt.height>-F+z&&(Mt=-(rt.top+rt.height-z)),I(0),K(xe(Mt))}}),gt=d.useState(),Ze=Te(gt,2),nt=Ze[0],jt=Ze[1],Lt=d.useState(!1),Bt=Te(Lt,2),Ut=Bt[0],Ne=Bt[1],He=b.filter(function(It){return!It.disabled}).map(function(It){return It.key}),Le=function(rt){var $t=He.indexOf(nt||o),Mt=He.length,dn=($t+rt+Mt)%Mt,pn=He[dn];jt(pn)},Qe=function(rt){var $t=rt.code,Mt=s&&P,dn=He[0],pn=He[He.length-1];switch($t){case"ArrowLeft":{P&&Le(Mt?1:-1);break}case"ArrowRight":{P&&Le(Mt?-1:1);break}case"ArrowUp":{rt.preventDefault(),P||Le(-1);break}case"ArrowDown":{rt.preventDefault(),P||Le(1);break}case"Home":{rt.preventDefault(),jt(dn);break}case"End":{rt.preventDefault(),jt(pn);break}case"Enter":case"Space":{rt.preventDefault(),m(nt,rt);break}case"Backspace":case"Delete":{var T=He.indexOf(nt),D=b.find(function(ke){return ke.key===nt}),J=HB(D==null?void 0:D.closable,D==null?void 0:D.closeIcon,c,D==null?void 0:D.disabled);J&&(rt.preventDefault(),rt.stopPropagation(),c.onEdit("remove",{key:nt,event:rt}),T===He.length-1?Le(-1):Le(1));break}}},pt={};P?pt[s?"marginRight":"marginLeft"]=p:pt.marginTop=p;var xt=b.map(function(It,rt){var $t=It.key;return d.createElement(cGe,{id:i,prefixCls:w,key:$t,tab:It,style:rt===0?void 0:pt,closable:It.closable,editable:c,active:$t===o,focus:$t===nt,renderWrapper:h,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:He.length,currentPosition:rt+1,onClick:function(dn){m($t,dn)},onKeyDown:Qe,onFocus:function(){Ut||jt($t),ut($t),Ve(),_.current&&(s||(_.current.scrollLeft=0),_.current.scrollTop=0)},onBlur:function(){jt(void 0)},onMouseDown:function(){Ne(!0)},onMouseUp:function(){Ne(!1)}})}),Nt=function(){return Ce(function(){var rt,$t=new Map,Mt=(rt=E.current)===null||rt===void 0?void 0:rt.getBoundingClientRect();return b.forEach(function(dn){var pn,T=dn.key,D=(pn=E.current)===null||pn===void 0?void 0:pn.querySelector('[data-node-key="'.concat(mge(T),'"]'));if(D){var J=uGe(D,Mt),ke=Te(J,4),Ie=ke[0],it=ke[1],Ft=ke[2],rn=ke[3];$t.set(T,{width:Ie,height:it,left:Ft,top:rn})}}),$t})};d.useEffect(function(){Nt()},[b.map(function(It){return It.key}).join("_")]);var Ot=hge(function(){var It=A1(C),rt=A1(k),$t=A1(S);U([It[0]-rt[0]-$t[0],It[1]-rt[1]-$t[1]]);var Mt=A1(M);le(Mt);var dn=A1($);re(dn);var pn=A1(E);Z([pn[0]-Mt[0],pn[1]-Mt[1]]),Nt()}),Pt=b.slice(0,qe),st=b.slice(Et+1),Ct=[].concat(lt(Pt),lt(st)),kt=be.get(o),qt=eGe({activeTabOffset:kt,horizontal:P,indicator:v,rtl:s}),vt=qt.style;d.useEffect(function(){ut()},[o,G,de,pX(kt),pX(be),P]),d.useEffect(function(){Ot()},[s]);var At=!!Ct.length,dt="".concat(w,"-nav-wrap"),De,Ye,ot,Re;return P?s?(Ye=j>0,De=j!==de):(De=j<0,Ye=j!==G):(ot=F<0,Re=F!==G),d.createElement(Go,{onResize:Ot},d.createElement("div",{ref:ku(t,C),role:"tablist","aria-orientation":P?"horizontal":"vertical",className:Ee("".concat(w,"-nav"),n),style:r,onKeyDown:function(){Ve()}},d.createElement(hX,{ref:k,position:"left",extra:l,prefixCls:w}),d.createElement(Go,{onResize:Ot},d.createElement("div",{className:Ee(dt,ne(ne(ne(ne({},"".concat(dt,"-ping-left"),De),"".concat(dt,"-ping-right"),Ye),"".concat(dt,"-ping-top"),ot),"".concat(dt,"-ping-bottom"),Re)),ref:_},d.createElement(Go,{onResize:Ot},d.createElement("div",{ref:E,className:"".concat(w,"-nav-list"),style:{transform:"translate(".concat(j,"px, ").concat(F,"px)"),transition:ge?"none":void 0}},xt,d.createElement(gge,{ref:M,prefixCls:w,locale:u,editable:c,style:q(q({},xt.length===0?void 0:pt),{},{visibility:At?"hidden":null})}),d.createElement("div",{className:Ee("".concat(w,"-ink-bar"),ne({},"".concat(w,"-ink-bar-animated"),a.inkBar)),style:vt}))))),d.createElement(lGe,tt({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:$,prefixCls:w,tabs:Ct,className:!At&&H,tabMoving:!!ge})),d.createElement(hX,{ref:S,position:"right",extra:l,prefixCls:w})))}),vge=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,o=e.active,s=e.tabKey,l=e.children;return d.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!o,style:i,className:Ee(n,o&&"".concat(n,"-active"),r),ref:t},l)}),dGe=["renderTabBar"],fGe=["label","key"],pGe=function(t){var n=t.renderTabBar,r=Ht(t,dGe),i=d.useContext(F8),a=i.tabs;if(n){var o=q(q({},r),{},{panes:a.map(function(s){var l=s.label,c=s.key,u=Ht(s,fGe);return d.createElement(vge,tt({tab:l,key:c,tabKey:c},u))})});return n(o,mX)}return d.createElement(mX,r)},hGe=["key","forceRender","style","className","destroyInactiveTabPane"],mGe=function(t){var n=t.id,r=t.activeKey,i=t.animated,a=t.tabPosition,o=t.destroyInactiveTabPane,s=d.useContext(F8),l=s.prefixCls,c=s.tabs,u=i.tabPane,f="".concat(l,"-tabpane");return d.createElement("div",{className:Ee("".concat(l,"-content-holder"))},d.createElement("div",{className:Ee("".concat(l,"-content"),"".concat(l,"-content-").concat(a),ne({},"".concat(l,"-content-animated"),u))},c.map(function(p){var h=p.key,m=p.forceRender,g=p.style,v=p.className,y=p.destroyInactiveTabPane,w=Ht(p,hGe),b=h===r;return d.createElement(Ca,tt({key:h,visible:b,forceRender:m,removeOnLeave:!!(o||y),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(C,k){var S=C.style,_=C.className;return d.createElement(vge,tt({},w,{prefixCls:f,id:n,tabKey:h,animated:u,active:b,style:q(q({},g),S),className:Ee(v,_),ref:k}))})})))};function gGe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=q({inkBar:!0},Kt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var vGe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],gX=0,yGe=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,a=e.className,o=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,p=e.tabPosition,h=p===void 0?"top":p,m=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,y=e.locale,w=e.more,b=e.destroyInactiveTabPane,C=e.renderTabBar,k=e.onChange,S=e.onTabClick,_=e.onTabScroll,E=e.getPopupContainer,$=e.popupClassName,M=e.indicator,P=Ht(e,vGe),R=d.useMemo(function(){return(o||[]).filter(function(me){return me&&Kt(me)==="object"&&"key"in me})},[o]),O=s==="rtl",j=gGe(f),I=d.useState(!1),A=Te(I,2),N=A[0],F=A[1];d.useEffect(function(){F(y8())},[]);var K=jn(function(){var me;return(me=R[0])===null||me===void 0?void 0:me.key},{value:l,defaultValue:c}),L=Te(K,2),V=L[0],B=L[1],U=d.useState(function(){return R.findIndex(function(me){return me.key===V})}),Y=Te(U,2),ee=Y[0],ie=Y[1];d.useEffect(function(){var me=R.findIndex(function(fe){return fe.key===V});if(me===-1){var re;me=Math.max(0,Math.min(ee,R.length-1)),B((re=R[me])===null||re===void 0?void 0:re.key)}ie(me)},[R.map(function(me){return me.key}).join("_"),V,ee]);var Z=jn(null,{value:n}),X=Te(Z,2),ae=X[0],oe=X[1];d.useEffect(function(){n||(oe("rc-tabs-".concat(gX)),gX+=1)},[]);function le(me,re){S==null||S(me,re);var fe=me!==V;B(me),fe&&(k==null||k(me))}var ce={id:ae,activeKey:V,animated:j,tabPosition:h,rtl:O,mobile:N},pe=q(q({},ce),{},{editable:u,locale:y,more:w,tabBarGutter:m,onTabClick:le,onTabScroll:_,extra:v,style:g,panes:null,getPopupContainer:E,popupClassName:$,indicator:M});return d.createElement(F8.Provider,{value:{tabs:R,prefixCls:i}},d.createElement("div",tt({ref:t,id:n,className:Ee(i,"".concat(i,"-").concat(h),ne(ne(ne({},"".concat(i,"-mobile"),N),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),O),a)},P),d.createElement(pGe,tt({},pe,{renderTabBar:C})),d.createElement(mGe,tt({destroyInactiveTabPane:b},ce,{animated:j}))))});const bGe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function wGe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},bGe),{motionName:oo(e,"switch")})),n}var xGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it)}function CGe(e,t){if(e)return e;const n=Xi(t).map(r=>{if(d.isValidElement(r)){const{key:i,props:a}=r,o=a||{},{tab:s}=o,l=xGe(o,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return SGe(n)}const _Ge=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[yd(e,"slide-up"),yd(e,"slide-down")]]},kGe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Me(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},yc(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Me(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Me(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Me(e.borderRadiusLG)} 0 0 ${Me(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},EGe=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},ar(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Me(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ao),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Me(e.paddingXXS)} ${Me(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},$Ge=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Me(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},EGe=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Me(e.borderRadius)} ${Me(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Me(e.borderRadius)} ${Me(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Me(e.borderRadius)} ${Me(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Me(e.borderRadius)} 0 0 ${Me(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},$Ge=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:o,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Vs(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},gc(e)),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},MGe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Me(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Me(e.marginXS)},marginLeft:{_skip_check_:!0,value:Me(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},TGe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:i},padding:Me(e.paddingXS),background:"transparent",border:`${Me(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o}},Vs(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),$Ge(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Vs(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},PGe=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},OGe=Jn("Tabs",e=>{const t=Hn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Me(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Me(e.horizontalItemGutter)}`});return[EGe(t),MGe(t),kGe(t),_Ge(t),CGe(t),TGe(t),SGe(t)]},PGe),IGe=()=>null;var RGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l,c,u,f;const{type:p,className:h,rootClassName:m,size:g,onEdit:v,hideAdd:y,centered:b,addIcon:w,removeIcon:_,moreIcon:k,more:S,popupClassName:C,children:E,items:$,animated:M,style:P,indicatorSize:I,indicator:O}=e,A=RGe(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:R}=A,{direction:j,tabs:N,getPrefixCls:D,getPopupContainer:V}=d.useContext(Zt),F=D("tabs",R),K=qr(F),[B,U,Z]=OGe(F,K);let ee;p==="editable-card"&&(ee={onEdit:(ce,pe)=>{let{key:me,event:re}=pe;v==null||v(ce==="add"?re:me,ce)},removeIcon:(t=_??(N==null?void 0:N.removeIcon))!==null&&t!==void 0?t:d.createElement(Cu,null),addIcon:(w??(N==null?void 0:N.addIcon))||d.createElement(jy,null),showAdd:y!==!0});const ie=D(),Y=Hi(g),X=xGe($,E),ae=yGe(F,M),oe=Object.assign(Object.assign({},N==null?void 0:N.style),P),le={align:(n=O==null?void 0:O.align)!==null&&n!==void 0?n:(r=N==null?void 0:N.indicator)===null||r===void 0?void 0:r.align,size:(s=(a=(i=O==null?void 0:O.size)!==null&&i!==void 0?i:I)!==null&&a!==void 0?a:(o=N==null?void 0:N.indicator)===null||o===void 0?void 0:o.size)!==null&&s!==void 0?s:N==null?void 0:N.indicatorSize};return B(d.createElement(gGe,Object.assign({direction:j,getPopupContainer:V},A,{items:X,className:Ee({[`${F}-${Y}`]:Y,[`${F}-card`]:["card","editable-card"].includes(p),[`${F}-editable-card`]:p==="editable-card",[`${F}-centered`]:b},N==null?void 0:N.className,h,m,U,Z,K),popupClassName:Ee(C,U,Z,K),style:oe,editable:ee,more:Object.assign({icon:(f=(u=(c=(l=N==null?void 0:N.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:N==null?void 0:N.moreIcon)!==null&&u!==void 0?u:k)!==null&&f!==void 0?f:d.createElement(TB,null),transitionName:`${ie}-slide-up`},S),prefixCls:F,animated:ae,indicator:le})))};wh.TabPane=IGe;var jGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=jGe(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=d.useContext(Zt),o=a("card",t),s=Ee(`${o}-grid`,n,{[`${o}-grid-hoverable`]:r});return d.createElement("div",Object.assign({},i,{className:s}))},NGe=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Me(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`},hd()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},oo),{[` + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Me(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},MGe=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Me(e.borderRadius)} ${Me(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Me(e.borderRadius)} ${Me(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Me(e.borderRadius)} ${Me(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Me(e.borderRadius)} 0 0 ${Me(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},TGe=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:o,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Vs(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},yc(e)),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},PGe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Me(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Me(e.marginXS)},marginLeft:{_skip_check_:!0,value:Me(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},OGe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:i},padding:Me(e.paddingXS),background:"transparent",border:`${Me(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o}},Vs(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),TGe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Vs(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},RGe=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},IGe=Jn("Tabs",e=>{const t=Hn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Me(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Me(e.horizontalItemGutter)}`});return[MGe(t),PGe(t),$Ge(t),EGe(t),kGe(t),OGe(t),_Ge(t)]},RGe),jGe=()=>null;var NGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l,c,u,f;const{type:p,className:h,rootClassName:m,size:g,onEdit:v,hideAdd:y,centered:w,addIcon:b,removeIcon:C,moreIcon:k,more:S,popupClassName:_,children:E,items:$,animated:M,style:P,indicatorSize:R,indicator:O}=e,j=NGe(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:I}=j,{direction:A,tabs:N,getPrefixCls:F,getPopupContainer:K}=d.useContext(Xt),L=F("tabs",I),V=qr(L),[B,U,Y]=IGe(L,V);let ee;p==="editable-card"&&(ee={onEdit:(ce,pe)=>{let{key:me,event:re}=pe;v==null||v(ce==="add"?re:me,ce)},removeIcon:(t=C??(N==null?void 0:N.removeIcon))!==null&&t!==void 0?t:d.createElement(Eu,null),addIcon:(b??(N==null?void 0:N.addIcon))||d.createElement(Ny,null),showAdd:y!==!0});const ie=F(),Z=Bi(g),X=CGe($,E),ae=wGe(L,M),oe=Object.assign(Object.assign({},N==null?void 0:N.style),P),le={align:(n=O==null?void 0:O.align)!==null&&n!==void 0?n:(r=N==null?void 0:N.indicator)===null||r===void 0?void 0:r.align,size:(s=(a=(i=O==null?void 0:O.size)!==null&&i!==void 0?i:R)!==null&&a!==void 0?a:(o=N==null?void 0:N.indicator)===null||o===void 0?void 0:o.size)!==null&&s!==void 0?s:N==null?void 0:N.indicatorSize};return B(d.createElement(yGe,Object.assign({direction:A,getPopupContainer:K},j,{items:X,className:Ee({[`${L}-${Z}`]:Z,[`${L}-card`]:["card","editable-card"].includes(p),[`${L}-editable-card`]:p==="editable-card",[`${L}-centered`]:w},N==null?void 0:N.className,h,m,U,Y,V),popupClassName:Ee(_,U,Y,V),style:oe,editable:ee,more:Object.assign({icon:(f=(u=(c=(l=N==null?void 0:N.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:N==null?void 0:N.moreIcon)!==null&&u!==void 0?u:k)!==null&&f!==void 0?f:d.createElement(OB,null),transitionName:`${ie}-slide-up`},S),prefixCls:L,animated:ae,indicator:le})))};Sh.TabPane=jGe;var AGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=AGe(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=d.useContext(Xt),o=a("card",t),s=Ee(`${o}-grid`,n,{[`${o}-grid-hoverable`]:r});return d.createElement("div",Object.assign({},i,{className:s}))},DGe=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Me(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`},vd()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ao),{[` > ${n}-typography, > ${n}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},AGe=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},FGe=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` ${Me(i)} 0 0 0 ${n}, 0 ${Me(i)} 0 0 ${n}, ${Me(i)} ${Me(i)} 0 0 ${n}, ${Me(i)} 0 0 0 ${n} inset, 0 ${Me(i)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},DGe=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:o,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)}`},hd()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Me(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Me(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${a}`}}})},FGe=e=>Object.assign(Object.assign({margin:`${Me(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},hd()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},oo),"&-description":{color:e.colorTextDescription}}),LGe=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Me(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Me(e.padding)} ${Me(i)}`}}},BGe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},zGe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:NGe(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:o,borderRadius:`0 0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)}`},hd()),[`${t}-grid`]:AGe(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:DGe(e),[`${t}-meta`]:FGe(e)}),[`${t}-bordered`]:{border:`${Me(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:LGe(e),[`${t}-loading`]:BGe(e),[`${t}-rtl`]:{direction:"rtl"}}},HGe=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Me(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},UGe=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},WGe=Jn("Card",e=>{const t=Hn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[zGe(t),HGe(t)]},UGe);var hX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return d.createElement("ul",{className:t,style:r},n.map((i,a)=>{const o=`action-${a}`;return d.createElement("li",{style:{width:`${100/n.length}%`},key:o},d.createElement("span",null,i))}))},qGe=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:f=!0,size:p,type:h,cover:m,actions:g,tabList:v,children:y,activeTabKey:b,defaultActiveTabKey:w,tabBarExtraContent:_,hoverable:k,tabProps:S={},classNames:C,styles:E}=e,$=hX(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:M,direction:P,card:I}=d.useContext(Zt),O=$e=>{var Ce;(Ce=e.onTabChange)===null||Ce===void 0||Ce.call(e,$e)},A=$e=>{var Ce;return Ee((Ce=I==null?void 0:I.classNames)===null||Ce===void 0?void 0:Ce[$e],C==null?void 0:C[$e])},R=$e=>{var Ce;return Object.assign(Object.assign({},(Ce=I==null?void 0:I.styles)===null||Ce===void 0?void 0:Ce[$e]),E==null?void 0:E[$e])},j=d.useMemo(()=>{let $e=!1;return d.Children.forEach(y,Ce=>{(Ce==null?void 0:Ce.type)===hge&&($e=!0)}),$e},[y]),N=M("card",n),[D,V,F]=WGe(N),K=d.createElement(Kf,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),B=b!==void 0,U=Object.assign(Object.assign({},S),{[B?"activeKey":"defaultActiveKey"]:B?b:w,tabBarExtraContent:_});let Z;const ee=Hi(p),ie=!ee||ee==="default"?"large":ee,Y=v?d.createElement(wh,Object.assign({size:ie},U,{className:`${N}-head-tabs`,onChange:O,items:v.map($e=>{var{tab:Ce}=$e,be=hX($e,["tab"]);return Object.assign({label:Ce},be)})})):null;if(c||o||Y){const $e=Ee(`${N}-head`,A("header")),Ce=Ee(`${N}-head-title`,A("title")),be=Ee(`${N}-extra`,A("extra")),Se=Object.assign(Object.assign({},s),R("header"));Z=d.createElement("div",{className:$e,style:Se},d.createElement("div",{className:`${N}-head-wrapper`},c&&d.createElement("div",{className:Ce,style:R("title")},c),o&&d.createElement("div",{className:be,style:R("extra")},o)),Y)}const X=Ee(`${N}-cover`,A("cover")),ae=m?d.createElement("div",{className:X,style:R("cover")},m):null,oe=Ee(`${N}-body`,A("body")),le=Object.assign(Object.assign({},l),R("body")),ce=d.createElement("div",{className:oe,style:le},u?K:y),pe=Ee(`${N}-actions`,A("actions")),me=g!=null&&g.length?d.createElement(VGe,{actionClasses:pe,actionStyle:R("actions"),actions:g}):null,re=$r($,["onTabChange"]),fe=Ee(N,I==null?void 0:I.className,{[`${N}-loading`]:u,[`${N}-bordered`]:f,[`${N}-hoverable`]:k,[`${N}-contain-grid`]:j,[`${N}-contain-tabs`]:v==null?void 0:v.length,[`${N}-${ee}`]:ee,[`${N}-type-${h}`]:!!h,[`${N}-rtl`]:P==="rtl"},r,i,V,F),ve=Object.assign(Object.assign({},I==null?void 0:I.style),a);return D(d.createElement("div",Object.assign({ref:t},re,{className:fe,style:ve}),Z,ae,ce,me))});var KGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,o=KGe(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=d.useContext(Zt),l=s("card",t),c=Ee(`${l}-meta`,n),u=r?d.createElement("div",{className:`${l}-meta-avatar`},r):null,f=i?d.createElement("div",{className:`${l}-meta-title`},i):null,p=a?d.createElement("div",{className:`${l}-meta-description`},a):null,h=f||p?d.createElement("div",{className:`${l}-meta-detail`},f,p):null;return d.createElement("div",Object.assign({},o,{className:c}),u,h)},zB=qGe;zB.Grid=hge;zB.Meta=GGe;function YGe(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,l=r.debounceMode,c=l===void 0?void 0:l,u,f=!1,p=0;function h(){u&&clearTimeout(u)}function m(v){var y=v||{},b=y.upcomingOnly,w=b===void 0?!1:b;h(),f=!w}function g(){for(var v=arguments.length,y=new Array(v),b=0;be?s?(p=Date.now(),a||(u=setTimeout(c?S:k,e))):k():a!==!0&&(u=setTimeout(c?S:k,c===void 0?e-_:e))}return g.cancel=m,g}function XGe(e,t,n){var r={},i=r.atBegin,a=i===void 0?!1:i;return YGe(e,t,{debounceMode:a!==!1})}var Ny=d.createContext({}),Iv="__rc_cascader_search_mark__",ZGe=function(t,n,r){var i=r.label,a=i===void 0?"":i;return n.some(function(o){return String(o[a]).toLowerCase().includes(t.toLowerCase())})},QGe=function(t,n,r,i){return n.map(function(a){return a[i.label]}).join(" / ")},JGe=function(t,n,r,i,a,o){var s=a.filter,l=s===void 0?ZGe:s,c=a.render,u=c===void 0?QGe:c,f=a.limit,p=f===void 0?50:f,h=a.sort;return d.useMemo(function(){var m=[];if(!t)return[];function g(v,y){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;v.forEach(function(w){if(!(!h&&p!==!1&&p>0&&m.length>=p)){var _=[].concat(ct(y),[w]),k=w[r.children],S=b||w.disabled;if((!k||k.length===0||o)&&l(t,_,{label:r.label})){var C;m.push(q(q({},w),{},(C={disabled:S},ne(C,r.label,u(t,_,i,r)),ne(C,Iv,_),ne(C,r.children,void 0),C)))}k&&g(w[r.children],_,S)}})}return g(n,[]),h&&m.sort(function(v,y){return h(v[Iv],y[Iv],t,r)}),p!==!1&&p>0?m.slice(0,p):m},[t,n,r,i,u,o,l,h,p])},HB="__RC_CASCADER_SPLIT__",mge="SHOW_PARENT",gge="SHOW_CHILD";function au(e){return e.join(HB)}function O0(e){return e.map(au)}function eYe(e){return e.split(HB)}function vge(e){var t=e||{},n=t.label,r=t.value,i=t.children,a=r||"value";return{label:n||"label",value:a,key:a,children:i||"children"}}function C2(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function tYe(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function yge(e,t){return e.map(function(n){var r;return(r=n[Iv])===null||r===void 0?void 0:r.map(function(i){return i[t.value]})})}function nYe(e){return Array.isArray(e)&&Array.isArray(e[0])}function w6(e){return e?nYe(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function bge(e,t,n){var r=new Set(e),i=t();return e.filter(function(a){var o=i[a],s=o?o.parent:null,l=o?o.children:null;return o&&o.node.disabled?!0:n===gge?!(l&&l.some(function(c){return c.key&&r.has(c.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function I0(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=t,a=[],o=function(){var c,u,f,p=e[s],h=(c=i)===null||c===void 0?void 0:c.findIndex(function(g){var v=g[n.value];return r?String(v)===String(p):v===p}),m=h!==-1?(u=i)===null||u===void 0?void 0:u[h]:null;a.push({value:(f=m==null?void 0:m[n.value])!==null&&f!==void 0?f:p,index:h,option:m}),i=m==null?void 0:m[n.children]},s=0;s1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(p,h){for(var m=xge(f?f.pos:"0",h),g=M4(p[a],m),v,y=0;y1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,a=t.externalGetKey,o=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=a||l,u={},f={},p={posEntities:u,keyEntities:f};return n&&(p=n(p)||p),oYe(e,function(h){var m=h.node,g=h.index,v=h.pos,y=h.key,b=h.parentPos,w=h.level,_=h.nodes,k={node:m,nodes:_,index:g,key:y,pos:v,level:w},S=M4(y,v);u[v]=k,f[S]=k,k.parent=u[b],k.parent&&(k.parent.children=k.parent.children||[],k.parent.children.push(k)),r&&r(k,p)},{externalGetKey:c,childrenPropName:o,fieldNames:s}),i&&i(p),p}function J2(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,a=t.loadingKeys,o=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,f=Ns(u,e),p={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:i.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return p}function Ia(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,a=e.loaded,o=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,p=e.active,h=e.eventKey,m=q(q({},t),{},{expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:p,key:h});return"props"in m||Object.defineProperty(m,"props",{get:function(){return zr(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}const sYe=function(e,t){var n=d.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=d.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=F8(e,{fieldNames:t,initWrapper:function(a){return q(q({},a),{},{pathKeyEntities:{}})},processEntity:function(a,o){var s=a.nodes.map(function(l){return l[t.value]}).join(HB);o.pathKeyEntities[s]=a,a.key=s}})),n.current.info.pathKeyEntities},[t,e]);return r};function Cge(e,t){var n=d.useMemo(function(){return t||[]},[t]),r=sYe(n,e),i=d.useCallback(function(a){var o=r();return a.map(function(s){var l=o[s].nodes;return l.map(function(c){return c[e.value]})})},[r,e]);return[n,r,i]}function lYe(e){return d.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&Kt(e)==="object"&&(t=q(q({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function _ge(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function cYe(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function uYe(e,t,n,r){for(var i=new Set(e),a=new Set,o=0;o<=n;o+=1){var s=t.get(o)||new Set;s.forEach(function(f){var p=f.key,h=f.node,m=f.children,g=m===void 0?[]:m;i.has(p)&&!r(h)&&g.filter(function(v){return!r(v.node)}).forEach(function(v){i.add(v.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(f){var p=f.parent,h=f.node;if(!(r(h)||!f.parent||l.has(f.parent.key))){if(r(f.parent.node)){l.add(p.key);return}var m=!0,g=!1;(p.children||[]).filter(function(v){return!r(v.node)}).forEach(function(v){var y=v.key,b=i.has(y);m&&!b&&(m=!1),!g&&(b||a.has(y))&&(g=!0)}),m&&i.add(p.key),g&&a.add(p.key),l.add(p.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(_ge(a,i))}}function dYe(e,t,n,r,i){for(var a=new Set(e),o=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(p){var h=p.key,m=p.node,g=p.children,v=g===void 0?[]:g;!a.has(h)&&!o.has(h)&&!i(m)&&v.filter(function(y){return!i(y.node)}).forEach(function(y){a.delete(y.key)})})}o=new Set;for(var c=new Set,u=r;u>=0;u-=1){var f=n.get(u)||new Set;f.forEach(function(p){var h=p.parent,m=p.node;if(!(i(m)||!p.parent||c.has(p.parent.key))){if(i(p.parent.node)){c.add(h.key);return}var g=!0,v=!1;(h.children||[]).filter(function(y){return!i(y.node)}).forEach(function(y){var b=y.key,w=a.has(b);g&&!w&&(g=!1),!v&&(w||o.has(b))&&(v=!0)}),g||a.delete(h.key),v&&o.add(h.key),c.add(h.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(_ge(o,a))}}function bf(e,t,n,r){var i=[],a;a=cYe;var o=new Set(e.filter(function(u){var f=!!Ns(n,u);return f||i.push(u),f})),s=new Map,l=0;Object.keys(n).forEach(function(u){var f=n[u],p=f.level,h=s.get(p);h||(h=new Set,s.set(p,h)),h.add(f),l=Math.max(l,p)}),zr(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=uYe(o,s,l,a):c=dYe(o,t.halfCheckedKeys,s,l,a),c}function kge(e,t,n,r,i,a,o,s){return function(l){if(!e)t(l);else{var c=au(l),u=O0(n),f=O0(r),p=u.includes(c),h=i.some(function(S){return au(S)===c}),m=n,g=i;if(h&&!p)g=i.filter(function(S){return au(S)!==c});else{var v=p?u.filter(function(S){return S!==c}):[].concat(ct(u),[c]),y=a(),b;if(p){var w=bf(v,{checked:!1,halfCheckedKeys:f},y);b=w.checkedKeys}else{var _=bf(v,!0,y);b=_.checkedKeys}var k=bge(b,a,s);m=o(k)}t([].concat(ct(g),ct(m)))}}}function Ege(e,t,n,r,i){return d.useMemo(function(){var a=i(t),o=Te(a,2),s=o[0],l=o[1];if(!e||!t.length)return[s,[],l];var c=O0(s),u=n(),f=bf(c,!0,u),p=f.checkedKeys,h=f.halfCheckedKeys;return[r(p),r(h),l]},[e,t,n,r,i])}var fYe=d.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function pYe(e){var t,n=e.prefixCls,r=e.checked,i=e.halfChecked,a=e.disabled,o=e.onClick,s=e.disableCheckbox,l=d.useContext(Ny),c=l.checkable,u=typeof c!="boolean"?c:null;return d.createElement("span",{className:Ee("".concat(n),(t={},ne(t,"".concat(n,"-checked"),r),ne(t,"".concat(n,"-indeterminate"),!r&&i),ne(t,"".concat(n,"-disabled"),a||s),t)),onClick:o},u)}var $ge="__cascader_fix_label__";function hYe(e){var t=e.prefixCls,n=e.multiple,r=e.options,i=e.activeValue,a=e.prevValuePath,o=e.onToggleOpen,s=e.onSelect,l=e.onActive,c=e.checkedSet,u=e.halfCheckedSet,f=e.loadingKeys,p=e.isSelectable,h=e.disabled,m="".concat(t,"-menu"),g="".concat(t,"-menu-item"),v=d.useContext(Ny),y=v.fieldNames,b=v.changeOnSelect,w=v.expandTrigger,_=v.expandIcon,k=v.loadingIcon,S=v.dropdownMenuColumnStyle,C=v.optionRender,E=w==="hover",$=function(I){return h||I},M=d.useMemo(function(){return r.map(function(P){var I,O=P.disabled,A=P.disableCheckbox,R=P[Iv],j=(I=P[$ge])!==null&&I!==void 0?I:P[y.label],N=P[y.value],D=C2(P,y),V=R?R.map(function(Z){return Z[y.value]}):[].concat(ct(a),[N]),F=au(V),K=f.includes(F),B=c.has(F),U=u.has(F);return{disabled:O,label:j,value:N,isLeaf:D,isLoading:K,checked:B,halfChecked:U,option:P,disableCheckbox:A,fullPath:V,fullPathKey:F}})},[r,c,y,u,f,a]);return d.createElement("ul",{className:m,role:"menu"},M.map(function(P){var I,O=P.disabled,A=P.label,R=P.value,j=P.isLeaf,N=P.isLoading,D=P.checked,V=P.halfChecked,F=P.option,K=P.fullPath,B=P.fullPathKey,U=P.disableCheckbox,Z=function(){if(!$(O)){var X=ct(K);E&&j&&X.pop(),l(X)}},ee=function(){p(F)&&!$(O)&&s(K,j)},ie;return typeof F.title=="string"?ie=F.title:typeof A=="string"&&(ie=A),d.createElement("li",{key:B,className:Ee(g,(I={},ne(I,"".concat(g,"-expand"),!j),ne(I,"".concat(g,"-active"),i===R||i===B),ne(I,"".concat(g,"-disabled"),$(O)),ne(I,"".concat(g,"-loading"),N),I)),style:S,role:"menuitemcheckbox",title:ie,"aria-checked":D,"data-path-key":B,onClick:function(){Z(),!U&&(!n||j)&&ee()},onDoubleClick:function(){b&&o(!1)},onMouseEnter:function(){E&&Z()},onMouseDown:function(X){X.preventDefault()}},n&&d.createElement(pYe,{prefixCls:"".concat(t,"-checkbox"),checked:D,halfChecked:V,disabled:$(O)||U,disableCheckbox:U,onClick:function(X){U||(X.stopPropagation(),ee())}}),d.createElement("div",{className:"".concat(g,"-content")},C?C(F):A),!N&&_&&!j&&d.createElement("div",{className:"".concat(g,"-expand-icon")},_),N&&k&&d.createElement("div",{className:"".concat(g,"-loading-icon")},k))}))}var mYe=function(t,n){var r=d.useContext(Ny),i=r.values,a=i[0],o=d.useState([]),s=Te(o,2),l=s[0],c=s[1];return d.useEffect(function(){t||c(a||[])},[n,a]),[l,c]};const gYe=function(e,t,n,r,i,a,o){var s=o.direction,l=o.searchValue,c=o.toggleOpen,u=o.open,f=s==="rtl",p=d.useMemo(function(){for(var S=-1,C=t,E=[],$=[],M=r.length,P=yge(t,n),I=function(N){var D=C.findIndex(function(V,F){return(P[F]?au(P[F]):V[n.value])===r[N]});if(D===-1)return 1;S=D,E.push(S),$.push(r[N]),C=C[S][n.children]},O=0;O1){var C=m.slice(0,-1);b(C)}else c(!1)},k=function(){var C,E=((C=v[g])===null||C===void 0?void 0:C[n.children])||[],$=E.find(function(P){return!P.disabled});if($){var M=[].concat(ct(m),[$[n.value]]);b(M)}};d.useImperativeHandle(e,function(){return{onKeyDown:function(C){var E=C.which;switch(E){case gt.UP:case gt.DOWN:{var $=0;E===gt.UP?$=-1:E===gt.DOWN&&($=1),$!==0&&w($);break}case gt.LEFT:{if(l)break;f?k():_();break}case gt.RIGHT:{if(l)break;f?_():k();break}case gt.BACKSPACE:{l||_();break}case gt.ENTER:{if(m.length){var M=v[g],P=(M==null?void 0:M[Iv])||[];P.length?a(P.map(function(I){return I[n.value]}),P[P.length-1]):a(m,v[g])}break}case gt.ESC:c(!1),u&&C.stopPropagation()}},onKeyUp:function(){}}})};var Mge=d.forwardRef(function(e,t){var n,r,i,a=e.prefixCls,o=e.multiple,s=e.searchValue,l=e.toggleOpen,c=e.notFoundContent,u=e.direction,f=e.open,p=e.disabled,h=d.useRef(null),m=u==="rtl",g=d.useContext(Ny),v=g.options,y=g.values,b=g.halfValues,w=g.fieldNames,_=g.changeOnSelect,k=g.onSelect,S=g.searchOptions,C=g.dropdownPrefixCls,E=g.loadData,$=g.expandTrigger,M=C||a,P=d.useState([]),I=Te(P,2),O=I[0],A=I[1],R=function(me){if(!(!E||s)){var re=I0(me,v,w),fe=re.map(function(Ce){var be=Ce.option;return be}),ve=fe[fe.length-1];if(ve&&!C2(ve,w)){var $e=au(me);A(function(Ce){return[].concat(ct(Ce),[$e])}),E(fe)}}};d.useEffect(function(){O.length&&O.forEach(function(pe){var me=eYe(pe),re=I0(me,v,w,!0).map(function(ve){var $e=ve.option;return $e}),fe=re[re.length-1];(!fe||fe[w.children]||C2(fe,w))&&A(function(ve){return ve.filter(function($e){return $e!==pe})})})},[v,O,w]);var j=d.useMemo(function(){return new Set(O0(y))},[y]),N=d.useMemo(function(){return new Set(O0(b))},[b]),D=mYe(o,f),V=Te(D,2),F=V[0],K=V[1],B=function(me){K(me),R(me)},U=function(me){if(p)return!1;var re=me.disabled,fe=C2(me,w);return!re&&(fe||_||o)},Z=function(me,re){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;k(me),!o&&(re||_&&($==="hover"||fe))&&l(!1)},ee=d.useMemo(function(){return s?S:v},[s,S,v]),ie=d.useMemo(function(){for(var pe=[{options:ee}],me=ee,re=yge(me,w),fe=function(){var Ce=F[ve],be=me.find(function(we,se){return(re[se]?au(re[se]):we[w.value])===Ce}),Se=be==null?void 0:be[w.children];if(!(Se!=null&&Se.length))return 1;me=Se,pe.push({options:Se})},ve=0;ve":y,w=n.loadingIcon,_=n.direction,k=n.notFoundContent,S=k===void 0?"Not Found":k,C=n.disabled,E=!!l,$=In(c,{value:u,postState:w6}),M=Te($,2),P=M[0],I=M[1],O=d.useMemo(function(){return vge(f)},[JSON.stringify(f)]),A=Cge(O,s),R=Te(A,3),j=R[0],N=R[1],D=R[2],V=wge(j,O),F=Ege(E,P,N,D,V),K=Te(F,3),B=K[0],U=K[1],Z=K[2],ee=Vn(function(le){if(I(le),h){var ce=w6(le),pe=ce.map(function(fe){return I0(fe,j,O).map(function(ve){return ve.option})}),me=E?ce:ce[0],re=E?pe:pe[0];h(me,re)}}),ie=kge(E,ee,B,U,Z,N,D,m),Y=Vn(function(le){ie(le)}),X=d.useMemo(function(){return{options:j,fieldNames:O,values:B,halfValues:U,changeOnSelect:p,onSelect:Y,checkable:l,searchOptions:[],dropdownPrefixCls:void 0,loadData:g,expandTrigger:v,expandIcon:b,loadingIcon:w,dropdownMenuColumnStyle:void 0}},[j,O,B,U,p,Y,l,g,v,b,w]),ae="".concat(i,"-panel"),oe=!j.length;return d.createElement(Ny.Provider,{value:X},d.createElement("div",{className:Ee(ae,(t={},ne(t,"".concat(ae,"-rtl"),_==="rtl"),ne(t,"".concat(ae,"-empty"),oe),t),o),style:a},oe?S:d.createElement(Mge,{prefixCls:i,searchValue:"",multiple:E,toggleOpen:yYe,open:!0,direction:_,disabled:C})))}var bYe=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],T4=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-cascader":r,a=e.fieldNames,o=e.defaultValue,s=e.value,l=e.changeOnSelect,c=e.onChange,u=e.displayRender,f=e.checkable,p=e.autoClearSearchValue,h=p===void 0?!0:p,m=e.searchValue,g=e.onSearch,v=e.showSearch,y=e.expandTrigger,b=e.options,w=e.dropdownPrefixCls,_=e.loadData,k=e.popupVisible,S=e.open,C=e.popupClassName,E=e.dropdownClassName,$=e.dropdownMenuColumnStyle,M=e.dropdownStyle,P=e.popupPlacement,I=e.placement,O=e.onDropdownVisibleChange,A=e.onPopupVisibleChange,R=e.expandIcon,j=R===void 0?">":R,N=e.loadingIcon,D=e.children,V=e.dropdownMatchSelectWidth,F=V===void 0?!1:V,K=e.showCheckedStrategy,B=K===void 0?mge:K,U=e.optionRender,Z=Ut(e,bYe),ee=mB(n),ie=!!f,Y=In(o,{value:s,postState:w6}),X=Te(Y,2),ae=X[0],oe=X[1],le=d.useMemo(function(){return vge(a)},[JSON.stringify(a)]),ce=Cge(le,b),pe=Te(ce,3),me=pe[0],re=pe[1],fe=pe[2],ve=In("",{value:m,postState:function(Lt){return Lt||""}}),$e=Te(ve,2),Ce=$e[0],be=$e[1],Se=function(Lt,Bt){be(Lt),Bt.source!=="blur"&&g&&g(Lt)},we=lYe(v),se=Te(we,2),ye=se[0],Oe=se[1],z=JGe(Ce,me,le,w||i,Oe,l||ie),H=wge(me,le),G=Ege(ie,ae,re,fe,H),de=Te(G,3),xe=de[0],he=de[1],Ue=de[2],We=d.useMemo(function(){var jt=O0(xe),Lt=bge(jt,re,B);return[].concat(ct(Ue),ct(fe(Lt)))},[xe,re,fe,Ue,B]),ge=rYe(We,me,le,ie,u),ze=Vn(function(jt){if(oe(jt),c){var Lt=w6(jt),Bt=Lt.map(function(He){return I0(He,me,le).map(function(Le){return Le.option})}),Ht=ie?Lt:Lt[0],Ne=ie?Bt:Bt[0];c(Ht,Ne)}}),Ve=kge(ie,ze,xe,he,Ue,re,fe,B),Be=Vn(function(jt){(!ie||h)&&be(""),Ve(jt)}),Xe=function(Lt,Bt){if(Bt.type==="clear"){ze([]);return}var Ht=Bt.values[0],Ne=Ht.valueCells;Be(Ne)},Ke=S!==void 0?S:k,qe=E||C,Et=I||P,dt=function(Lt){O==null||O(Lt),A==null||A(Lt)},vt=d.useMemo(function(){return{options:me,fieldNames:le,values:xe,halfValues:he,changeOnSelect:l,onSelect:Be,checkable:f,searchOptions:z,dropdownPrefixCls:w,loadData:_,expandTrigger:y,expandIcon:j,loadingIcon:N,dropdownMenuColumnStyle:$,optionRender:U}},[me,le,xe,he,l,Be,f,z,w,_,y,j,N,$,U]),Ze=!(Ce?z:me).length,nt=Ce&&Oe.matchInputWidth||Ze?{}:{minWidth:"auto"};return d.createElement(Ny.Provider,{value:vt},d.createElement(dB,tt({},Z,{ref:t,id:ee,prefixCls:i,autoClearSearchValue:h,dropdownMatchSelectWidth:F,dropdownStyle:q(q({},nt),M),displayValues:ge,onDisplayValuesChange:Xe,mode:ie?"multiple":void 0,searchValue:Ce,onSearch:Se,showSearch:ye,OptionList:vYe,emptyOptions:Ze,open:Ke,dropdownClassName:qe,placement:Et,onDropdownVisibleChange:dt,getRawInputElement:function(){return D}})))});T4.SHOW_PARENT=mge;T4.SHOW_CHILD=gge;T4.Panel=Tge;function Pge(e,t){const{getPrefixCls:n,direction:r,renderEmpty:i}=d.useContext(Zt),a=t||r,o=n("select",e),s=n("cascader",e);return[o,s,a,i]}function Oge(e,t){return d.useMemo(()=>t?d.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}const Ige=(e,t,n)=>{let r=n;n||(r=t?d.createElement(Nf,null):d.createElement(vc,null));const i=d.createElement("span",{className:`${e}-menu-item-loading-icon`},d.createElement(pu,{spin:!0}));return d.useMemo(()=>[r,i],[r])},wYe=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},ar(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},ar(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},gc(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Me(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},LGe=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:o,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)}`},vd()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Me(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Me(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${a}`}}})},BGe=e=>Object.assign(Object.assign({margin:`${Me(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},vd()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},ao),"&-description":{color:e.colorTextDescription}}),zGe=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Me(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Me(e.padding)} ${Me(i)}`}}},HGe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},UGe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:DGe(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:o,borderRadius:`0 0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)}`},vd()),[`${t}-grid`]:FGe(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:LGe(e),[`${t}-meta`]:BGe(e)}),[`${t}-bordered`]:{border:`${Me(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:zGe(e),[`${t}-loading`]:HGe(e),[`${t}-rtl`]:{direction:"rtl"}}},WGe=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Me(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},VGe=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},qGe=Jn("Card",e=>{const t=Hn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[UGe(t),WGe(t)]},VGe);var vX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return d.createElement("ul",{className:t,style:r},n.map((i,a)=>{const o=`action-${a}`;return d.createElement("li",{style:{width:`${100/n.length}%`},key:o},d.createElement("span",null,i))}))},GGe=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:f=!0,size:p,type:h,cover:m,actions:g,tabList:v,children:y,activeTabKey:w,defaultActiveTabKey:b,tabBarExtraContent:C,hoverable:k,tabProps:S={},classNames:_,styles:E}=e,$=vX(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:M,direction:P,card:R}=d.useContext(Xt),O=$e=>{var Ce;(Ce=e.onTabChange)===null||Ce===void 0||Ce.call(e,$e)},j=$e=>{var Ce;return Ee((Ce=R==null?void 0:R.classNames)===null||Ce===void 0?void 0:Ce[$e],_==null?void 0:_[$e])},I=$e=>{var Ce;return Object.assign(Object.assign({},(Ce=R==null?void 0:R.styles)===null||Ce===void 0?void 0:Ce[$e]),E==null?void 0:E[$e])},A=d.useMemo(()=>{let $e=!1;return d.Children.forEach(y,Ce=>{(Ce==null?void 0:Ce.type)===yge&&($e=!0)}),$e},[y]),N=M("card",n),[F,K,L]=qGe(N),V=d.createElement(Kf,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),B=w!==void 0,U=Object.assign(Object.assign({},S),{[B?"activeKey":"defaultActiveKey"]:B?w:b,tabBarExtraContent:C});let Y;const ee=Bi(p),ie=!ee||ee==="default"?"large":ee,Z=v?d.createElement(Sh,Object.assign({size:ie},U,{className:`${N}-head-tabs`,onChange:O,items:v.map($e=>{var{tab:Ce}=$e,be=vX($e,["tab"]);return Object.assign({label:Ce},be)})})):null;if(c||o||Z){const $e=Ee(`${N}-head`,j("header")),Ce=Ee(`${N}-head-title`,j("title")),be=Ee(`${N}-extra`,j("extra")),Se=Object.assign(Object.assign({},s),I("header"));Y=d.createElement("div",{className:$e,style:Se},d.createElement("div",{className:`${N}-head-wrapper`},c&&d.createElement("div",{className:Ce,style:I("title")},c),o&&d.createElement("div",{className:be,style:I("extra")},o)),Z)}const X=Ee(`${N}-cover`,j("cover")),ae=m?d.createElement("div",{className:X,style:I("cover")},m):null,oe=Ee(`${N}-body`,j("body")),le=Object.assign(Object.assign({},l),I("body")),ce=d.createElement("div",{className:oe,style:le},u?V:y),pe=Ee(`${N}-actions`,j("actions")),me=g!=null&&g.length?d.createElement(KGe,{actionClasses:pe,actionStyle:I("actions"),actions:g}):null,re=$r($,["onTabChange"]),fe=Ee(N,R==null?void 0:R.className,{[`${N}-loading`]:u,[`${N}-bordered`]:f,[`${N}-hoverable`]:k,[`${N}-contain-grid`]:A,[`${N}-contain-tabs`]:v==null?void 0:v.length,[`${N}-${ee}`]:ee,[`${N}-type-${h}`]:!!h,[`${N}-rtl`]:P==="rtl"},r,i,K,L),ve=Object.assign(Object.assign({},R==null?void 0:R.style),a);return F(d.createElement("div",Object.assign({ref:t},re,{className:fe,style:ve}),Y,ae,ce,me))});var YGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,o=YGe(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=d.useContext(Xt),l=s("card",t),c=Ee(`${l}-meta`,n),u=r?d.createElement("div",{className:`${l}-meta-avatar`},r):null,f=i?d.createElement("div",{className:`${l}-meta-title`},i):null,p=a?d.createElement("div",{className:`${l}-meta-description`},a):null,h=f||p?d.createElement("div",{className:`${l}-meta-detail`},f,p):null;return d.createElement("div",Object.assign({},o,{className:c}),u,h)},UB=GGe;UB.Grid=yge;UB.Meta=XGe;function ZGe(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,l=r.debounceMode,c=l===void 0?void 0:l,u,f=!1,p=0;function h(){u&&clearTimeout(u)}function m(v){var y=v||{},w=y.upcomingOnly,b=w===void 0?!1:w;h(),f=!b}function g(){for(var v=arguments.length,y=new Array(v),w=0;we?s?(p=Date.now(),a||(u=setTimeout(c?S:k,e))):k():a!==!0&&(u=setTimeout(c?S:k,c===void 0?e-C:e))}return g.cancel=m,g}function QGe(e,t,n){var r={},i=r.atBegin,a=i===void 0?!1:i;return ZGe(e,t,{debounceMode:a!==!1})}var Ay=d.createContext({}),Nv="__rc_cascader_search_mark__",JGe=function(t,n,r){var i=r.label,a=i===void 0?"":i;return n.some(function(o){return String(o[a]).toLowerCase().includes(t.toLowerCase())})},eYe=function(t,n,r,i){return n.map(function(a){return a[i.label]}).join(" / ")},tYe=function(t,n,r,i,a,o){var s=a.filter,l=s===void 0?JGe:s,c=a.render,u=c===void 0?eYe:c,f=a.limit,p=f===void 0?50:f,h=a.sort;return d.useMemo(function(){var m=[];if(!t)return[];function g(v,y){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;v.forEach(function(b){if(!(!h&&p!==!1&&p>0&&m.length>=p)){var C=[].concat(lt(y),[b]),k=b[r.children],S=w||b.disabled;if((!k||k.length===0||o)&&l(t,C,{label:r.label})){var _;m.push(q(q({},b),{},(_={disabled:S},ne(_,r.label,u(t,C,i,r)),ne(_,Nv,C),ne(_,r.children,void 0),_)))}k&&g(b[r.children],C,S)}})}return g(n,[]),h&&m.sort(function(v,y){return h(v[Nv],y[Nv],t,r)}),p!==!1&&p>0?m.slice(0,p):m},[t,n,r,i,u,o,l,h,p])},WB="__RC_CASCADER_SPLIT__",bge="SHOW_PARENT",wge="SHOW_CHILD";function cu(e){return e.join(WB)}function j0(e){return e.map(cu)}function nYe(e){return e.split(WB)}function xge(e){var t=e||{},n=t.label,r=t.value,i=t.children,a=r||"value";return{label:n||"label",value:a,key:a,children:i||"children"}}function _2(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function rYe(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function Sge(e,t){return e.map(function(n){var r;return(r=n[Nv])===null||r===void 0?void 0:r.map(function(i){return i[t.value]})})}function iYe(e){return Array.isArray(e)&&Array.isArray(e[0])}function x6(e){return e?iYe(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function Cge(e,t,n){var r=new Set(e),i=t();return e.filter(function(a){var o=i[a],s=o?o.parent:null,l=o?o.children:null;return o&&o.node.disabled?!0:n===wge?!(l&&l.some(function(c){return c.key&&r.has(c.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function N0(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=t,a=[],o=function(){var c,u,f,p=e[s],h=(c=i)===null||c===void 0?void 0:c.findIndex(function(g){var v=g[n.value];return r?String(v)===String(p):v===p}),m=h!==-1?(u=i)===null||u===void 0?void 0:u[h]:null;a.push({value:(f=m==null?void 0:m[n.value])!==null&&f!==void 0?f:p,index:h,option:m}),i=m==null?void 0:m[n.children]},s=0;s1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(p,h){for(var m=kge(f?f.pos:"0",h),g=P4(p[a],m),v,y=0;y1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,a=t.externalGetKey,o=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=a||l,u={},f={},p={posEntities:u,keyEntities:f};return n&&(p=n(p)||p),lYe(e,function(h){var m=h.node,g=h.index,v=h.pos,y=h.key,w=h.parentPos,b=h.level,C=h.nodes,k={node:m,nodes:C,index:g,key:y,pos:v,level:b},S=P4(y,v);u[v]=k,f[S]=k,k.parent=u[w],k.parent&&(k.parent.children=k.parent.children||[],k.parent.children.push(k)),r&&r(k,p)},{externalGetKey:c,childrenPropName:o,fieldNames:s}),i&&i(p),p}function J2(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,a=t.loadingKeys,o=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,f=Ns(u,e),p={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:i.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return p}function Pa(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,a=e.loaded,o=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,p=e.active,h=e.eventKey,m=q(q({},t),{},{expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:p,key:h});return"props"in m||Object.defineProperty(m,"props",{get:function(){return Br(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}const cYe=function(e,t){var n=d.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=d.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=L8(e,{fieldNames:t,initWrapper:function(a){return q(q({},a),{},{pathKeyEntities:{}})},processEntity:function(a,o){var s=a.nodes.map(function(l){return l[t.value]}).join(WB);o.pathKeyEntities[s]=a,a.key=s}})),n.current.info.pathKeyEntities},[t,e]);return r};function $ge(e,t){var n=d.useMemo(function(){return t||[]},[t]),r=cYe(n,e),i=d.useCallback(function(a){var o=r();return a.map(function(s){var l=o[s].nodes;return l.map(function(c){return c[e.value]})})},[r,e]);return[n,r,i]}function uYe(e){return d.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&Kt(e)==="object"&&(t=q(q({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function Mge(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function dYe(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function fYe(e,t,n,r){for(var i=new Set(e),a=new Set,o=0;o<=n;o+=1){var s=t.get(o)||new Set;s.forEach(function(f){var p=f.key,h=f.node,m=f.children,g=m===void 0?[]:m;i.has(p)&&!r(h)&&g.filter(function(v){return!r(v.node)}).forEach(function(v){i.add(v.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(f){var p=f.parent,h=f.node;if(!(r(h)||!f.parent||l.has(f.parent.key))){if(r(f.parent.node)){l.add(p.key);return}var m=!0,g=!1;(p.children||[]).filter(function(v){return!r(v.node)}).forEach(function(v){var y=v.key,w=i.has(y);m&&!w&&(m=!1),!g&&(w||a.has(y))&&(g=!0)}),m&&i.add(p.key),g&&a.add(p.key),l.add(p.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Mge(a,i))}}function pYe(e,t,n,r,i){for(var a=new Set(e),o=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(p){var h=p.key,m=p.node,g=p.children,v=g===void 0?[]:g;!a.has(h)&&!o.has(h)&&!i(m)&&v.filter(function(y){return!i(y.node)}).forEach(function(y){a.delete(y.key)})})}o=new Set;for(var c=new Set,u=r;u>=0;u-=1){var f=n.get(u)||new Set;f.forEach(function(p){var h=p.parent,m=p.node;if(!(i(m)||!p.parent||c.has(p.parent.key))){if(i(p.parent.node)){c.add(h.key);return}var g=!0,v=!1;(h.children||[]).filter(function(y){return!i(y.node)}).forEach(function(y){var w=y.key,b=a.has(w);g&&!b&&(g=!1),!v&&(b||o.has(w))&&(v=!0)}),g||a.delete(h.key),v&&o.add(h.key),c.add(h.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(Mge(o,a))}}function bf(e,t,n,r){var i=[],a;a=dYe;var o=new Set(e.filter(function(u){var f=!!Ns(n,u);return f||i.push(u),f})),s=new Map,l=0;Object.keys(n).forEach(function(u){var f=n[u],p=f.level,h=s.get(p);h||(h=new Set,s.set(p,h)),h.add(f),l=Math.max(l,p)}),Br(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=fYe(o,s,l,a):c=pYe(o,t.halfCheckedKeys,s,l,a),c}function Tge(e,t,n,r,i,a,o,s){return function(l){if(!e)t(l);else{var c=cu(l),u=j0(n),f=j0(r),p=u.includes(c),h=i.some(function(S){return cu(S)===c}),m=n,g=i;if(h&&!p)g=i.filter(function(S){return cu(S)!==c});else{var v=p?u.filter(function(S){return S!==c}):[].concat(lt(u),[c]),y=a(),w;if(p){var b=bf(v,{checked:!1,halfCheckedKeys:f},y);w=b.checkedKeys}else{var C=bf(v,!0,y);w=C.checkedKeys}var k=Cge(w,a,s);m=o(k)}t([].concat(lt(g),lt(m)))}}}function Pge(e,t,n,r,i){return d.useMemo(function(){var a=i(t),o=Te(a,2),s=o[0],l=o[1];if(!e||!t.length)return[s,[],l];var c=j0(s),u=n(),f=bf(c,!0,u),p=f.checkedKeys,h=f.halfCheckedKeys;return[r(p),r(h),l]},[e,t,n,r,i])}var hYe=d.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function mYe(e){var t,n=e.prefixCls,r=e.checked,i=e.halfChecked,a=e.disabled,o=e.onClick,s=e.disableCheckbox,l=d.useContext(Ay),c=l.checkable,u=typeof c!="boolean"?c:null;return d.createElement("span",{className:Ee("".concat(n),(t={},ne(t,"".concat(n,"-checked"),r),ne(t,"".concat(n,"-indeterminate"),!r&&i),ne(t,"".concat(n,"-disabled"),a||s),t)),onClick:o},u)}var Oge="__cascader_fix_label__";function gYe(e){var t=e.prefixCls,n=e.multiple,r=e.options,i=e.activeValue,a=e.prevValuePath,o=e.onToggleOpen,s=e.onSelect,l=e.onActive,c=e.checkedSet,u=e.halfCheckedSet,f=e.loadingKeys,p=e.isSelectable,h=e.disabled,m="".concat(t,"-menu"),g="".concat(t,"-menu-item"),v=d.useContext(Ay),y=v.fieldNames,w=v.changeOnSelect,b=v.expandTrigger,C=v.expandIcon,k=v.loadingIcon,S=v.dropdownMenuColumnStyle,_=v.optionRender,E=b==="hover",$=function(R){return h||R},M=d.useMemo(function(){return r.map(function(P){var R,O=P.disabled,j=P.disableCheckbox,I=P[Nv],A=(R=P[Oge])!==null&&R!==void 0?R:P[y.label],N=P[y.value],F=_2(P,y),K=I?I.map(function(Y){return Y[y.value]}):[].concat(lt(a),[N]),L=cu(K),V=f.includes(L),B=c.has(L),U=u.has(L);return{disabled:O,label:A,value:N,isLeaf:F,isLoading:V,checked:B,halfChecked:U,option:P,disableCheckbox:j,fullPath:K,fullPathKey:L}})},[r,c,y,u,f,a]);return d.createElement("ul",{className:m,role:"menu"},M.map(function(P){var R,O=P.disabled,j=P.label,I=P.value,A=P.isLeaf,N=P.isLoading,F=P.checked,K=P.halfChecked,L=P.option,V=P.fullPath,B=P.fullPathKey,U=P.disableCheckbox,Y=function(){if(!$(O)){var X=lt(V);E&&A&&X.pop(),l(X)}},ee=function(){p(L)&&!$(O)&&s(V,A)},ie;return typeof L.title=="string"?ie=L.title:typeof j=="string"&&(ie=j),d.createElement("li",{key:B,className:Ee(g,(R={},ne(R,"".concat(g,"-expand"),!A),ne(R,"".concat(g,"-active"),i===I||i===B),ne(R,"".concat(g,"-disabled"),$(O)),ne(R,"".concat(g,"-loading"),N),R)),style:S,role:"menuitemcheckbox",title:ie,"aria-checked":F,"data-path-key":B,onClick:function(){Y(),!U&&(!n||A)&&ee()},onDoubleClick:function(){w&&o(!1)},onMouseEnter:function(){E&&Y()},onMouseDown:function(X){X.preventDefault()}},n&&d.createElement(mYe,{prefixCls:"".concat(t,"-checkbox"),checked:F,halfChecked:K,disabled:$(O)||U,disableCheckbox:U,onClick:function(X){U||(X.stopPropagation(),ee())}}),d.createElement("div",{className:"".concat(g,"-content")},_?_(L):j),!N&&C&&!A&&d.createElement("div",{className:"".concat(g,"-expand-icon")},C),N&&k&&d.createElement("div",{className:"".concat(g,"-loading-icon")},k))}))}var vYe=function(t,n){var r=d.useContext(Ay),i=r.values,a=i[0],o=d.useState([]),s=Te(o,2),l=s[0],c=s[1];return d.useEffect(function(){t||c(a||[])},[n,a]),[l,c]};const yYe=function(e,t,n,r,i,a,o){var s=o.direction,l=o.searchValue,c=o.toggleOpen,u=o.open,f=s==="rtl",p=d.useMemo(function(){for(var S=-1,_=t,E=[],$=[],M=r.length,P=Sge(t,n),R=function(N){var F=_.findIndex(function(K,L){return(P[L]?cu(P[L]):K[n.value])===r[N]});if(F===-1)return 1;S=F,E.push(S),$.push(r[N]),_=_[S][n.children]},O=0;O1){var _=m.slice(0,-1);w(_)}else c(!1)},k=function(){var _,E=((_=v[g])===null||_===void 0?void 0:_[n.children])||[],$=E.find(function(P){return!P.disabled});if($){var M=[].concat(lt(m),[$[n.value]]);w(M)}};d.useImperativeHandle(e,function(){return{onKeyDown:function(_){var E=_.which;switch(E){case mt.UP:case mt.DOWN:{var $=0;E===mt.UP?$=-1:E===mt.DOWN&&($=1),$!==0&&b($);break}case mt.LEFT:{if(l)break;f?k():C();break}case mt.RIGHT:{if(l)break;f?C():k();break}case mt.BACKSPACE:{l||C();break}case mt.ENTER:{if(m.length){var M=v[g],P=(M==null?void 0:M[Nv])||[];P.length?a(P.map(function(R){return R[n.value]}),P[P.length-1]):a(m,v[g])}break}case mt.ESC:c(!1),u&&_.stopPropagation()}},onKeyUp:function(){}}})};var Rge=d.forwardRef(function(e,t){var n,r,i,a=e.prefixCls,o=e.multiple,s=e.searchValue,l=e.toggleOpen,c=e.notFoundContent,u=e.direction,f=e.open,p=e.disabled,h=d.useRef(null),m=u==="rtl",g=d.useContext(Ay),v=g.options,y=g.values,w=g.halfValues,b=g.fieldNames,C=g.changeOnSelect,k=g.onSelect,S=g.searchOptions,_=g.dropdownPrefixCls,E=g.loadData,$=g.expandTrigger,M=_||a,P=d.useState([]),R=Te(P,2),O=R[0],j=R[1],I=function(me){if(!(!E||s)){var re=N0(me,v,b),fe=re.map(function(Ce){var be=Ce.option;return be}),ve=fe[fe.length-1];if(ve&&!_2(ve,b)){var $e=cu(me);j(function(Ce){return[].concat(lt(Ce),[$e])}),E(fe)}}};d.useEffect(function(){O.length&&O.forEach(function(pe){var me=nYe(pe),re=N0(me,v,b,!0).map(function(ve){var $e=ve.option;return $e}),fe=re[re.length-1];(!fe||fe[b.children]||_2(fe,b))&&j(function(ve){return ve.filter(function($e){return $e!==pe})})})},[v,O,b]);var A=d.useMemo(function(){return new Set(j0(y))},[y]),N=d.useMemo(function(){return new Set(j0(w))},[w]),F=vYe(o,f),K=Te(F,2),L=K[0],V=K[1],B=function(me){V(me),I(me)},U=function(me){if(p)return!1;var re=me.disabled,fe=_2(me,b);return!re&&(fe||C||o)},Y=function(me,re){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;k(me),!o&&(re||C&&($==="hover"||fe))&&l(!1)},ee=d.useMemo(function(){return s?S:v},[s,S,v]),ie=d.useMemo(function(){for(var pe=[{options:ee}],me=ee,re=Sge(me,b),fe=function(){var Ce=L[ve],be=me.find(function(we,se){return(re[se]?cu(re[se]):we[b.value])===Ce}),Se=be==null?void 0:be[b.children];if(!(Se!=null&&Se.length))return 1;me=Se,pe.push({options:Se})},ve=0;ve":y,b=n.loadingIcon,C=n.direction,k=n.notFoundContent,S=k===void 0?"Not Found":k,_=n.disabled,E=!!l,$=jn(c,{value:u,postState:x6}),M=Te($,2),P=M[0],R=M[1],O=d.useMemo(function(){return xge(f)},[JSON.stringify(f)]),j=$ge(O,s),I=Te(j,3),A=I[0],N=I[1],F=I[2],K=_ge(A,O),L=Pge(E,P,N,F,K),V=Te(L,3),B=V[0],U=V[1],Y=V[2],ee=Vn(function(le){if(R(le),h){var ce=x6(le),pe=ce.map(function(fe){return N0(fe,A,O).map(function(ve){return ve.option})}),me=E?ce:ce[0],re=E?pe:pe[0];h(me,re)}}),ie=Tge(E,ee,B,U,Y,N,F,m),Z=Vn(function(le){ie(le)}),X=d.useMemo(function(){return{options:A,fieldNames:O,values:B,halfValues:U,changeOnSelect:p,onSelect:Z,checkable:l,searchOptions:[],dropdownPrefixCls:void 0,loadData:g,expandTrigger:v,expandIcon:w,loadingIcon:b,dropdownMenuColumnStyle:void 0}},[A,O,B,U,p,Z,l,g,v,w,b]),ae="".concat(i,"-panel"),oe=!A.length;return d.createElement(Ay.Provider,{value:X},d.createElement("div",{className:Ee(ae,(t={},ne(t,"".concat(ae,"-rtl"),C==="rtl"),ne(t,"".concat(ae,"-empty"),oe),t),o),style:a},oe?S:d.createElement(Rge,{prefixCls:i,searchValue:"",multiple:E,toggleOpen:wYe,open:!0,direction:C,disabled:_})))}var xYe=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],O4=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-cascader":r,a=e.fieldNames,o=e.defaultValue,s=e.value,l=e.changeOnSelect,c=e.onChange,u=e.displayRender,f=e.checkable,p=e.autoClearSearchValue,h=p===void 0?!0:p,m=e.searchValue,g=e.onSearch,v=e.showSearch,y=e.expandTrigger,w=e.options,b=e.dropdownPrefixCls,C=e.loadData,k=e.popupVisible,S=e.open,_=e.popupClassName,E=e.dropdownClassName,$=e.dropdownMenuColumnStyle,M=e.dropdownStyle,P=e.popupPlacement,R=e.placement,O=e.onDropdownVisibleChange,j=e.onPopupVisibleChange,I=e.expandIcon,A=I===void 0?">":I,N=e.loadingIcon,F=e.children,K=e.dropdownMatchSelectWidth,L=K===void 0?!1:K,V=e.showCheckedStrategy,B=V===void 0?bge:V,U=e.optionRender,Y=Ht(e,xYe),ee=vB(n),ie=!!f,Z=jn(o,{value:s,postState:x6}),X=Te(Z,2),ae=X[0],oe=X[1],le=d.useMemo(function(){return xge(a)},[JSON.stringify(a)]),ce=$ge(le,w),pe=Te(ce,3),me=pe[0],re=pe[1],fe=pe[2],ve=jn("",{value:m,postState:function(Lt){return Lt||""}}),$e=Te(ve,2),Ce=$e[0],be=$e[1],Se=function(Lt,Bt){be(Lt),Bt.source!=="blur"&&g&&g(Lt)},we=uYe(v),se=Te(we,2),ye=se[0],Oe=se[1],z=tYe(Ce,me,le,b||i,Oe,l||ie),H=_ge(me,le),G=Pge(ie,ae,re,fe,H),de=Te(G,3),xe=de[0],he=de[1],Ue=de[2],We=d.useMemo(function(){var jt=j0(xe),Lt=Cge(jt,re,B);return[].concat(lt(Ue),lt(fe(Lt)))},[xe,re,fe,Ue,B]),ge=aYe(We,me,le,ie,u),ze=Vn(function(jt){if(oe(jt),c){var Lt=x6(jt),Bt=Lt.map(function(He){return N0(He,me,le).map(function(Le){return Le.option})}),Ut=ie?Lt:Lt[0],Ne=ie?Bt:Bt[0];c(Ut,Ne)}}),Ve=Tge(ie,ze,xe,he,Ue,re,fe,B),Be=Vn(function(jt){(!ie||h)&&be(""),Ve(jt)}),Xe=function(Lt,Bt){if(Bt.type==="clear"){ze([]);return}var Ut=Bt.values[0],Ne=Ut.valueCells;Be(Ne)},Ke=S!==void 0?S:k,qe=E||_,Et=R||P,ut=function(Lt){O==null||O(Lt),j==null||j(Lt)},gt=d.useMemo(function(){return{options:me,fieldNames:le,values:xe,halfValues:he,changeOnSelect:l,onSelect:Be,checkable:f,searchOptions:z,dropdownPrefixCls:b,loadData:C,expandTrigger:y,expandIcon:A,loadingIcon:N,dropdownMenuColumnStyle:$,optionRender:U}},[me,le,xe,he,l,Be,f,z,b,C,y,A,N,$,U]),Ze=!(Ce?z:me).length,nt=Ce&&Oe.matchInputWidth||Ze?{}:{minWidth:"auto"};return d.createElement(Ay.Provider,{value:gt},d.createElement(pB,tt({},Y,{ref:t,id:ee,prefixCls:i,autoClearSearchValue:h,dropdownMatchSelectWidth:L,dropdownStyle:q(q({},nt),M),displayValues:ge,onDisplayValuesChange:Xe,mode:ie?"multiple":void 0,searchValue:Ce,onSearch:Se,showSearch:ye,OptionList:bYe,emptyOptions:Ze,open:Ke,dropdownClassName:qe,placement:Et,onDropdownVisibleChange:ut,getRawInputElement:function(){return F}})))});O4.SHOW_PARENT=bge;O4.SHOW_CHILD=wge;O4.Panel=Ige;function jge(e,t){const{getPrefixCls:n,direction:r,renderEmpty:i}=d.useContext(Xt),a=t||r,o=n("select",e),s=n("cascader",e);return[o,s,a,i]}function Nge(e,t){return d.useMemo(()=>t?d.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}const Age=(e,t,n)=>{let r=n;n||(r=t?d.createElement(Nf,null):d.createElement(bc,null));const i=d.createElement("span",{className:`${e}-menu-item-loading-icon`},d.createElement(vu,{spin:!0}));return d.useMemo(()=>[r,i],[r])},SYe=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},ar(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},ar(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},yc(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Me(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function L8(e,t){const n=Hn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[wYe(n)]}const Rge=Jn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[L8(n,e)]}),jge=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=` + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function B8(e,t){const n=Hn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[SYe(n)]}const Dge=Jn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[B8(n,e)]}),Fge=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=` &${r}-expand ${r}-expand-icon, ${r}-loading-icon -`;return[L8(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},oo),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},xYe=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},jge(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Wg(e)]},Nge=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},Age=Jn("Cascader",e=>[xYe(e)],Nge),SYe=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[jge(e),{display:"inline-flex",border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},CYe=Ife(["Cascader","Panel"],e=>SYe(e),Nge);function _Ye(e){const{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:a,direction:o,expandIcon:s,disabled:l}=e,c=d.useContext(ga),u=l??c,[f,p,h,m]=Pge(t,o),g=qr(p),[v,y,b]=Age(p,g);CYe(p);const w=h==="rtl",[_,k]=Ige(f,w,s),S=a||(m==null?void 0:m("Cascader"))||d.createElement(Vg,{componentName:"Cascader"}),C=Oge(p,r);return v(d.createElement(Tge,Object.assign({},e,{checkable:C,prefixCls:p,className:Ee(n,y,i,b,g),notFoundContent:S,direction:h,expandIcon:_,loadingIcon:k,disabled:u})))}var kYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);il===0?[s]:[].concat(ct(o),[t,s]),[]),i=[];let a=0;return r.forEach((o,s)=>{const l=a+o.length;let c=e.slice(a,l);a=l,s%2===1&&(c=d.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},c)),i.push(c)}),i}const TYe=(e,t,n,r)=>{const i=[],a=e.toLowerCase();return t.forEach((o,s)=>{s!==0&&i.push(" / ");let l=o[r.label];const c=typeof l;(c==="string"||c==="number")&&(l=MYe(String(l),a,n)),i.push(l)}),i},Ay=d.forwardRef((e,t)=>{var n;const{prefixCls:r,size:i,disabled:a,className:o,rootClassName:s,multiple:l,bordered:c=!0,transitionName:u,choiceTransitionName:f="",popupClassName:p,dropdownClassName:h,expandIcon:m,placement:g,showSearch:v,allowClear:y=!0,notFoundContent:b,direction:w,getPopupContainer:_,status:k,showArrow:S,builtinPlacements:C,style:E,variant:$}=e,M=kYe(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),P=$r(M,["suffixIcon"]),{getPopupContainer:I,getPrefixCls:O,popupOverflow:A,cascader:R}=d.useContext(Zt),{status:j,hasFeedback:N,isFormItemInput:D,feedbackIcon:V}=d.useContext(sa),F=ku(j,k),[K,B,U,Z]=Pge(r,w),ee=U==="rtl",ie=O(),Y=qr(K),[X,ae,oe]=yB(K,Y),le=qr(B),[ce]=Age(B,le),{compactSize:pe,compactItemClassnames:me}=_u(K,w),[re,fe]=Md("cascader",$,c),ve=b||(Z==null?void 0:Z("Cascader"))||d.createElement(Vg,{componentName:"Cascader"}),$e=Ee(p||h,`${B}-dropdown`,{[`${B}-dropdown-rtl`]:U==="rtl"},s,Y,le,ae,oe),Ce=d.useMemo(()=>{if(!v)return v;let ge={render:TYe};return typeof v=="object"&&(ge=Object.assign(Object.assign({},ge),v)),ge},[v]),be=Hi(ge=>{var ze;return(ze=i??pe)!==null&&ze!==void 0?ze:ge}),Se=d.useContext(ga),we=a??Se,[se,ye]=Ige(K,ee,m),Oe=Oge(B,l),z=bB(e.suffixIcon,S),{suffixIcon:H,removeIcon:G,clearIcon:de}=b8(Object.assign(Object.assign({},e),{hasFeedback:N,feedbackIcon:V,showSuffixIcon:z,multiple:l,prefixCls:K,componentName:"Cascader"})),xe=d.useMemo(()=>g!==void 0?g:ee?"bottomRight":"bottomLeft",[g,ee]),he=y===!0?{clearIcon:de}:y,[Ue]=_c("SelectLike",(n=P.dropdownStyle)===null||n===void 0?void 0:n.zIndex),We=d.createElement(T4,Object.assign({prefixCls:K,className:Ee(!r&&B,{[`${K}-lg`]:be==="large",[`${K}-sm`]:be==="small",[`${K}-rtl`]:ee,[`${K}-${re}`]:fe,[`${K}-in-form-item`]:D},jl(K,F,N),me,R==null?void 0:R.className,o,s,Y,le,ae,oe),disabled:we,style:Object.assign(Object.assign({},R==null?void 0:R.style),E)},P,{builtinPlacements:vB(C,A),direction:U,placement:xe,notFoundContent:ve,allowClear:he,showSearch:Ce,expandIcon:se,suffixIcon:H,removeIcon:G,loadingIcon:ye,checkable:Oe,dropdownClassName:$e,dropdownPrefixCls:r||B,dropdownStyle:Object.assign(Object.assign({},P.dropdownStyle),{zIndex:Ue}),choiceTransitionName:so(ie,"",f),transitionName:so(ie,"slide-up",u),getPopupContainer:_||I,ref:t}));return ce(X(We))}),PYe=Gf(Ay,"dropdownAlign",e=>$r(e,["visible"]));Ay.SHOW_PARENT=$Ye;Ay.SHOW_CHILD=EYe;Ay.Panel=_Ye;Ay._InternalPanelDoNotUseOrYouWillBeFired=PYe;const Dge=te.createContext(null);var OYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,className:i,rootClassName:a,children:o,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:p}=e,h=OYe(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:g,checkbox:v}=d.useContext(Zt),y=d.useContext(Dge),{isFormItemInput:b}=d.useContext(sa),w=d.useContext(ga),_=(n=(y==null?void 0:y.disabled)||p)!==null&&n!==void 0?n:w,k=d.useRef(h.value),S=d.useRef(null),C=va(t,S);d.useEffect(()=>{y==null||y.registerValue(h.value)},[]),d.useEffect(()=>{if(!f)return h.value!==k.current&&(y==null||y.cancelValue(k.current),y==null||y.registerValue(h.value),k.current=h.value),()=>y==null?void 0:y.cancelValue(h.value)},[h.value]),d.useEffect(()=>{var D;!((D=S.current)===null||D===void 0)&&D.input&&(S.current.input.indeterminate=s)},[s]);const E=m("checkbox",r),$=qr(E),[M,P,I]=Rge(E,$),O=Object.assign({},h);y&&!f&&(O.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),y.toggleOption&&y.toggleOption({label:o,value:h.value})},O.name=y.name,O.checked=y.value.includes(h.value));const A=Ee(`${E}-wrapper`,{[`${E}-rtl`]:g==="rtl",[`${E}-wrapper-checked`]:O.checked,[`${E}-wrapper-disabled`]:_,[`${E}-wrapper-in-form-item`]:b},v==null?void 0:v.className,i,a,I,$,P),R=Ee({[`${E}-indeterminate`]:s},e8,P),[j,N]=nge(O.onClick);return M(d.createElement(y4,{component:"Checkbox",disabled:_},d.createElement("label",{className:A,style:Object.assign(Object.assign({},v==null?void 0:v.style),l),onMouseEnter:c,onMouseLeave:u,onClick:j},d.createElement(tge,Object.assign({},O,{onClick:N,prefixCls:E,className:R,disabled:_,ref:C})),o!==void 0&&d.createElement("span",null,o))))},Fge=d.forwardRef(IYe);var RYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:l,onChange:c}=e,u=RYe(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=d.useContext(Zt),[h,m]=d.useState(u.value||n||[]),[g,v]=d.useState([]);d.useEffect(()=>{"value"in u&&m(u.value||[])},[u.value]);const y=d.useMemo(()=>i.map(R=>typeof R=="string"||typeof R=="number"?{label:R,value:R}:R),[i]),b=R=>{v(j=>j.filter(N=>N!==R))},w=R=>{v(j=>[].concat(ct(j),[R]))},_=R=>{const j=h.indexOf(R.value),N=ct(h);j===-1?N.push(R.value):N.splice(j,1),"value"in u||m(N),c==null||c(N.filter(D=>g.includes(D)).sort((D,V)=>{const F=y.findIndex(B=>B.value===D),K=y.findIndex(B=>B.value===V);return F-K}))},k=f("checkbox",a),S=`${k}-group`,C=qr(k),[E,$,M]=Rge(k,C),P=$r(u,["value","disabled"]),I=i.length?y.map(R=>d.createElement(Fge,{prefixCls:k,key:R.value.toString(),disabled:"disabled"in R?R.disabled:u.disabled,value:R.value,checked:h.includes(R.value),onChange:R.onChange,className:`${S}-item`,style:R.style,title:R.title,id:R.id,required:R.required},R.label)):r,O={toggleOption:_,value:h,disabled:u.disabled,name:u.name,registerValue:w,cancelValue:b},A=Ee(S,{[`${S}-rtl`]:p==="rtl"},o,s,M,C,$);return E(d.createElement("div",Object.assign({className:A,style:l},P,{ref:t}),d.createElement(Dge.Provider,{value:O},I)))}),us=Fge;us.Group=jYe;us.__ANT_CHECKBOX=!0;const Lge=d.createContext({});var NYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=d.useContext(Zt),{gutter:i,wrap:a}=d.useContext(Lge),{prefixCls:o,span:s,order:l,offset:c,push:u,pull:f,className:p,children:h,flex:m,style:g}=e,v=NYe(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",o),[b,w,_]=ize(y),k={};let S={};AYe.forEach($=>{let M={};const P=e[$];typeof P=="number"?M.span=P:typeof P=="object"&&(M=P||{}),delete v[$],S=Object.assign(Object.assign({},S),{[`${y}-${$}-${M.span}`]:M.span!==void 0,[`${y}-${$}-order-${M.order}`]:M.order||M.order===0,[`${y}-${$}-offset-${M.offset}`]:M.offset||M.offset===0,[`${y}-${$}-push-${M.push}`]:M.push||M.push===0,[`${y}-${$}-pull-${M.pull}`]:M.pull||M.pull===0,[`${y}-rtl`]:r==="rtl"}),M.flex&&(S[`${y}-${$}-flex`]=!0,k[`--${y}-${$}-flex`]=mX(M.flex))});const C=Ee(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${f}`]:f},p,S,w,_),E={};if(i&&i[0]>0){const $=i[0]/2;E.paddingLeft=$,E.paddingRight=$}return m&&(E.flex=mX(m),a===!1&&!E.minWidth&&(E.minWidth=0)),b(d.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),g),k),className:C,ref:t}),h))});var DYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a{i()},[JSON.stringify(e),t]),n}const B8=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:l=0,wrap:c}=e,u=DYe(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=d.useContext(Zt),[h,m]=d.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,v]=d.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=gX(i,g),b=gX(r,g),w=d.useRef(l),_=The();d.useEffect(()=>{const N=_.subscribe(D=>{v(D);const V=w.current||0;(!Array.isArray(V)&&typeof V=="object"||Array.isArray(V)&&(typeof V[0]=="object"||typeof V[1]=="object"))&&m(D)});return()=>_.unsubscribe(N)},[]);const k=()=>{const N=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((V,F)=>{if(typeof V=="object")for(let K=0;K0?M[0]/-2:void 0;O&&(I.marginLeft=O,I.marginRight=O);const[A,R]=M;I.rowGap=R;const j=d.useMemo(()=>({gutter:[A,R],wrap:c}),[A,R,c]);return C(d.createElement(Lge.Provider,{value:j},d.createElement("div",Object.assign({},u,{className:P,style:Object.assign(Object.assign({},I),o),ref:t}),s)))}),FYe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:a,orientationMargin:o,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{borderBlockStart:`${Me(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Me(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Me(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Me(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Me(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${o} * 100%)`},"&::after":{width:`calc(100% - ${o} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${o} * 100%)`},"&::after":{width:`calc(${o} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Me(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${Me(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},LYe=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),BYe=Jn("Divider",e=>{const t=Hn(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[FYe(t)]},LYe,{unitless:{orientationMargin:!0}});var zYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n,divider:r}=d.useContext(Zt),{prefixCls:i,type:a="horizontal",orientation:o="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:f,variant:p="solid",plain:h,style:m}=e,g=zYe(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),v=t("divider",i),[y,b,w]=BYe(v),_=!!u,k=o==="left"&&s!=null,S=o==="right"&&s!=null,C=Ee(v,r==null?void 0:r.className,b,w,`${v}-${a}`,{[`${v}-with-text`]:_,[`${v}-with-text-${o}`]:_,[`${v}-dashed`]:!!f,[`${v}-${p}`]:p!=="solid",[`${v}-plain`]:!!h,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:k,[`${v}-no-default-orientation-margin-right`]:S},l,c),E=d.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),$=Object.assign(Object.assign({},k&&{marginLeft:E}),S&&{marginRight:E});return y(d.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},r==null?void 0:r.style),m)},g,{role:"separator"}),u&&a!=="vertical"&&d.createElement("span",{className:`${v}-inner-text`,style:$},u)))};var vX=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},Nu=function(t){return t!==void 0?"".concat(t,"px"):void 0};function UYe(e){var t=e.prefixCls,n=e.containerRef,r=e.value,i=e.getValueIndex,a=e.motionName,o=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=e.vertical,u=c===void 0?!1:c,f=d.useRef(null),p=d.useState(r),h=Te(p,2),m=h[0],g=h[1],v=function(R){var j,N=i(R),D=(j=n.current)===null||j===void 0?void 0:j.querySelectorAll(".".concat(t,"-item"))[N];return(D==null?void 0:D.offsetParent)&&D},y=d.useState(null),b=Te(y,2),w=b[0],_=b[1],k=d.useState(null),S=Te(k,2),C=S[0],E=S[1];nr(function(){if(m!==r){var A=v(m),R=v(r),j=vX(A,u),N=vX(R,u);g(r),_(j),E(N),A&&R?o():s()}},[r]);var $=d.useMemo(function(){if(u){var A;return Nu((A=w==null?void 0:w.top)!==null&&A!==void 0?A:0)}return Nu(l==="rtl"?-(w==null?void 0:w.right):w==null?void 0:w.left)},[u,l,w]),M=d.useMemo(function(){if(u){var A;return Nu((A=C==null?void 0:C.top)!==null&&A!==void 0?A:0)}return Nu(l==="rtl"?-(C==null?void 0:C.right):C==null?void 0:C.left)},[u,l,C]),P=function(){return u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},I=function(){return u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},O=function(){_(null),E(null),s()};return!w||!C?null:d.createElement(ka,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:P,onAppearActive:I,onVisibleChanged:O},function(A,R){var j=A.className,N=A.style,D=q(q({},N),{},{"--thumb-start-left":$,"--thumb-start-width":Nu(w==null?void 0:w.width),"--thumb-active-left":M,"--thumb-active-width":Nu(C==null?void 0:C.width),"--thumb-start-top":$,"--thumb-start-height":Nu(w==null?void 0:w.height),"--thumb-active-top":M,"--thumb-active-height":Nu(C==null?void 0:C.height)}),V={ref:va(f,R),style:D,className:Ee("".concat(t,"-thumb"),j)};return d.createElement("div",V)})}var WYe=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function VYe(e){if(typeof e.title<"u")return e.title;if(Kt(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function qYe(e){return e.map(function(t){if(Kt(t)==="object"&&t!==null){var n=VYe(t);return q(q({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var KYe=function(t){var n=t.prefixCls,r=t.className,i=t.disabled,a=t.checked,o=t.label,s=t.title,l=t.value,c=t.name,u=t.onChange,f=t.onFocus,p=t.onBlur,h=t.onKeyDown,m=t.onKeyUp,g=t.onMouseDown,v=function(b){i||u(b,l)};return d.createElement("label",{className:Ee(r,ne({},"".concat(n,"-item-disabled"),i)),onMouseDown:g},d.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:i,checked:a,onChange:v,onFocus:f,onBlur:p,onKeyDown:h,onKeyUp:m}),d.createElement("div",{className:"".concat(n,"-item-label"),title:s,"aria-selected":a},o))},GYe=d.forwardRef(function(e,t){var n,r,i=e.prefixCls,a=i===void 0?"rc-segmented":i,o=e.direction,s=e.vertical,l=e.options,c=l===void 0?[]:l,u=e.disabled,f=e.defaultValue,p=e.value,h=e.name,m=e.onChange,g=e.className,v=g===void 0?"":g,y=e.motionName,b=y===void 0?"thumb-motion":y,w=Ut(e,WYe),_=d.useRef(null),k=d.useMemo(function(){return va(_,t)},[_,t]),S=d.useMemo(function(){return qYe(c)},[c]),C=In((n=S[0])===null||n===void 0?void 0:n.value,{value:p,defaultValue:f}),E=Te(C,2),$=E[0],M=E[1],P=d.useState(!1),I=Te(P,2),O=I[0],A=I[1],R=function(ce,pe){M(pe),m==null||m(pe)},j=$r(w,["children"]),N=d.useState(!1),D=Te(N,2),V=D[0],F=D[1],K=d.useState(!1),B=Te(K,2),U=B[0],Z=B[1],ee=function(){Z(!0)},ie=function(){Z(!1)},Y=function(){F(!1)},X=function(ce){ce.key==="Tab"&&F(!0)},ae=function(ce){var pe=S.findIndex(function(ve){return ve.value===$}),me=S.length,re=(pe+ce+me)%me,fe=S[re];fe&&(M(fe.value),m==null||m(fe.value))},oe=function(ce){switch(ce.key){case"ArrowLeft":case"ArrowUp":ae(-1);break;case"ArrowRight":case"ArrowDown":ae(1);break}};return d.createElement("div",tt({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0},j,{className:Ee(a,(r={},ne(r,"".concat(a,"-rtl"),o==="rtl"),ne(r,"".concat(a,"-disabled"),u),ne(r,"".concat(a,"-vertical"),s),r),v),ref:k}),d.createElement("div",{className:"".concat(a,"-group")},d.createElement(UYe,{vertical:s,prefixCls:a,value:$,containerRef:_,motionName:"".concat(a,"-").concat(b),direction:o,getValueIndex:function(ce){return S.findIndex(function(pe){return pe.value===ce})},onMotionStart:function(){A(!0)},onMotionEnd:function(){A(!1)}}),S.map(function(le){var ce;return d.createElement(KYe,tt({},le,{name:h,key:le.value,prefixCls:a,className:Ee(le.className,"".concat(a,"-item"),(ce={},ne(ce,"".concat(a,"-item-selected"),le.value===$&&!O),ne(ce,"".concat(a,"-item-focused"),U&&V&&le.value===$),ce)),checked:le.value===$,onChange:R,onFocus:ee,onBlur:ie,onKeyDown:oe,onKeyUp:X,onMouseDown:Y,disabled:!!u||!!le.disabled}))})))}),YYe=GYe;function yX(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function bX(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const XYe=Object.assign({overflow:"hidden"},oo),ZYe=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),Vs(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${Me(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},bX(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},gc(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:Me(n),padding:`0 ${Me(e.segmentedPaddingHorizontal)}`},XYe),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},bX(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${Me(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:Me(r),padding:`0 ${Me(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:i,lineHeight:Me(i),padding:`0 ${Me(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),yX(`&-disabled ${t}-item`,e)),yX(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},QYe=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}},JYe=Jn("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Hn(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[ZYe(r)]},QYe);var wX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=p8(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:l="middle",style:c,vertical:u,name:f=n}=e,p=wX(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","name"]),{getPrefixCls:h,direction:m,segmented:g}=d.useContext(Zt),v=h("segmented",r),[y,b,w]=JYe(v),_=Hi(l),k=d.useMemo(()=>s.map(E=>{if(eXe(E)){const{icon:$,label:M}=E,P=wX(E,["icon","label"]);return Object.assign(Object.assign({},P),{label:d.createElement(d.Fragment,null,d.createElement("span",{className:`${v}-item-icon`},$),M&&d.createElement("span",null,M))})}return E}),[s,v]),S=Ee(i,a,g==null?void 0:g.className,{[`${v}-block`]:o,[`${v}-sm`]:_==="small",[`${v}-lg`]:_==="large",[`${v}-vertical`]:u},b,w),C=Object.assign(Object.assign({},g==null?void 0:g.style),c);return y(d.createElement(YYe,Object.assign({},p,{name:f,className:S,style:C,options:k,ref:t,prefixCls:v,direction:m,vertical:u})))}),Bge=tXe,zge=te.createContext({}),Hge=te.createContext({}),Uge=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=()=>{if(r&&n&&!n.cleared){const a=n.toHsb();a.a=0;const o=Zo(a);o.cleared=!0,r(o)}};return te.createElement("div",{className:`${t}-clear`,onClick:i})};var rh;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(rh||(rh={}));var nXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},rXe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:nXe}))},Wge=d.forwardRef(rXe);function Wj(){return typeof BigInt=="function"}function Vge(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function qm(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),a=i[0]||"0",o=i[1]||"0";a==="0"&&o==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:"".concat(s).concat(r)}}function UB(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function _m(e){var t=String(e);if(UB(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&WB(t)?t.length-t.indexOf(".")-1:0}function z8(e){var t=String(e);if(UB(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Wj()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":qm("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),aXe=function(){function e(t){if(Dr(this,e),ne(this,"origin",""),ne(this,"number",void 0),ne(this,"empty",void 0),Vge(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Fr(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":z8(this.number):this.origin}}]),e}();function Fc(e){return Wj()?new iXe(e):new aXe(e)}function a_(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=qm(e),a=i.negativeStr,o=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(o);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=Fc(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return a_(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function oXe(e){return!!(e.addonBefore||e.addonAfter)}function sXe(e){return!!(e.prefix||e.suffix||e.allowClear)}function xX(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function x6(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=xX(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=xX(t,e,r),n(i);return}n(i)}}function VB(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var H8=te.forwardRef(function(e,t){var n,r,i,a=e.inputElement,o=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,p=e.className,h=e.style,m=e.disabled,g=e.readOnly,v=e.focused,y=e.triggerFocus,b=e.allowClear,w=e.value,_=e.handleReset,k=e.hidden,S=e.classes,C=e.classNames,E=e.dataAttrs,$=e.styles,M=e.components,P=e.onClear,I=o??a,O=(M==null?void 0:M.affixWrapper)||"span",A=(M==null?void 0:M.groupWrapper)||"span",R=(M==null?void 0:M.wrapper)||"span",j=(M==null?void 0:M.groupAddon)||"span",N=d.useRef(null),D=function(re){var fe;(fe=N.current)!==null&&fe!==void 0&&fe.contains(re.target)&&(y==null||y())},V=sXe(e),F=d.cloneElement(I,{value:w,className:Ee((n=I.props)===null||n===void 0?void 0:n.className,!V&&(C==null?void 0:C.variant))||null}),K=d.useRef(null);if(te.useImperativeHandle(t,function(){return{nativeElement:K.current||N.current}}),V){var B=null;if(b){var U=!m&&!g&&w,Z="".concat(s,"-clear-icon"),ee=Kt(b)==="object"&&b!==null&&b!==void 0&&b.clearIcon?b.clearIcon:"✖";B=te.createElement("button",{type:"button",onClick:function(re){_==null||_(re),P==null||P()},onMouseDown:function(re){return re.preventDefault()},className:Ee(Z,ne(ne({},"".concat(Z,"-hidden"),!U),"".concat(Z,"-has-suffix"),!!c))},ee)}var ie="".concat(s,"-affix-wrapper"),Y=Ee(ie,ne(ne(ne(ne(ne({},"".concat(s,"-disabled"),m),"".concat(ie,"-disabled"),m),"".concat(ie,"-focused"),v),"".concat(ie,"-readonly"),g),"".concat(ie,"-input-with-clear-btn"),c&&b&&w),S==null?void 0:S.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),X=(c||b)&&te.createElement("span",{className:Ee("".concat(s,"-suffix"),C==null?void 0:C.suffix),style:$==null?void 0:$.suffix},B,c);F=te.createElement(O,tt({className:Y,style:$==null?void 0:$.affixWrapper,onClick:D},E==null?void 0:E.affixWrapper,{ref:N}),l&&te.createElement("span",{className:Ee("".concat(s,"-prefix"),C==null?void 0:C.prefix),style:$==null?void 0:$.prefix},l),F,X)}if(oXe(e)){var ae="".concat(s,"-group"),oe="".concat(ae,"-addon"),le="".concat(ae,"-wrapper"),ce=Ee("".concat(s,"-wrapper"),ae,S==null?void 0:S.wrapper,C==null?void 0:C.wrapper),pe=Ee(le,ne({},"".concat(le,"-disabled"),m),S==null?void 0:S.group,C==null?void 0:C.groupWrapper);F=te.createElement(A,{className:pe,ref:K},te.createElement(R,{className:ce},u&&te.createElement(j,{className:oe},u),F,f&&te.createElement(j,{className:oe},f)))}return te.cloneElement(F,{className:Ee((r=F.props)===null||r===void 0?void 0:r.className,p)||null,style:q(q({},(i=F.props)===null||i===void 0?void 0:i.style),h),hidden:k})}),lXe=["show"];function qge(e,t){return d.useMemo(function(){var n={};t&&(n.show=Kt(t)==="object"&&t.formatter?t.formatter:!!t),n=q(q({},n),e);var r=n,i=r.show,a=Ut(r,lXe);return q(q({},a),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:a.strategy||function(o){return o.length}})},[e,t])}var cXe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],uXe=d.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,a=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,p=e.htmlSize,h=e.className,m=e.maxLength,g=e.suffix,v=e.showCount,y=e.count,b=e.type,w=b===void 0?"text":b,_=e.classes,k=e.classNames,S=e.styles,C=e.onCompositionStart,E=e.onCompositionEnd,$=Ut(e,cXe),M=d.useState(!1),P=Te(M,2),I=P[0],O=P[1],A=d.useRef(!1),R=d.useRef(!1),j=d.useRef(null),N=d.useRef(null),D=function(ye){j.current&&VB(j.current,ye)},V=In(e.defaultValue,{value:e.value}),F=Te(V,2),K=F[0],B=F[1],U=K==null?"":String(K),Z=d.useState(null),ee=Te(Z,2),ie=ee[0],Y=ee[1],X=qge(y,v),ae=X.max||m,oe=X.strategy(U),le=!!ae&&oe>ae;d.useImperativeHandle(t,function(){var se;return{focus:D,blur:function(){var Oe;(Oe=j.current)===null||Oe===void 0||Oe.blur()},setSelectionRange:function(Oe,z,H){var G;(G=j.current)===null||G===void 0||G.setSelectionRange(Oe,z,H)},select:function(){var Oe;(Oe=j.current)===null||Oe===void 0||Oe.select()},input:j.current,nativeElement:((se=N.current)===null||se===void 0?void 0:se.nativeElement)||j.current}}),d.useEffect(function(){R.current&&(R.current=!1),O(function(se){return se&&f?!1:se})},[f]);var ce=function(ye,Oe,z){var H=Oe;if(!A.current&&X.exceedFormatter&&X.max&&X.strategy(Oe)>X.max){if(H=X.exceedFormatter(Oe,{max:X.max}),Oe!==H){var G,de;Y([((G=j.current)===null||G===void 0?void 0:G.selectionStart)||0,((de=j.current)===null||de===void 0?void 0:de.selectionEnd)||0])}}else if(z.source==="compositionEnd")return;B(H),j.current&&x6(j.current,ye,r,H)};d.useEffect(function(){if(ie){var se;(se=j.current)===null||se===void 0||se.setSelectionRange.apply(se,ct(ie))}},[ie]);var pe=function(ye){ce(ye,ye.target.value,{source:"change"})},me=function(ye){A.current=!1,ce(ye,ye.currentTarget.value,{source:"compositionEnd"}),E==null||E(ye)},re=function(ye){o&&ye.key==="Enter"&&!R.current&&(R.current=!0,o(ye)),s==null||s(ye)},fe=function(ye){ye.key==="Enter"&&(R.current=!1),l==null||l(ye)},ve=function(ye){O(!0),i==null||i(ye)},$e=function(ye){R.current&&(R.current=!1),O(!1),a==null||a(ye)},Ce=function(ye){B(""),D(),j.current&&x6(j.current,ye,r)},be=le&&"".concat(u,"-out-of-range"),Se=function(){var ye=$r(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return te.createElement("input",tt({autoComplete:n},ye,{onChange:pe,onFocus:ve,onBlur:$e,onKeyDown:re,onKeyUp:fe,className:Ee(u,ne({},"".concat(u,"-disabled"),f),k==null?void 0:k.input),style:S==null?void 0:S.input,ref:j,size:p,type:w,onCompositionStart:function(z){A.current=!0,C==null||C(z)},onCompositionEnd:me}))},we=function(){var ye=Number(ae)>0;if(g||X.show){var Oe=X.showFormatter?X.showFormatter({value:U,count:oe,maxLength:ae}):"".concat(oe).concat(ye?" / ".concat(ae):"");return te.createElement(te.Fragment,null,X.show&&te.createElement("span",{className:Ee("".concat(u,"-show-count-suffix"),ne({},"".concat(u,"-show-count-has-suffix"),!!g),k==null?void 0:k.count),style:q({},S==null?void 0:S.count)},Oe),g)}return null};return te.createElement(H8,tt({},$,{prefixCls:u,className:Ee(h,be),handleReset:Ce,value:U,focused:I,triggerFocus:D,suffix:we(),disabled:f,classes:_,classNames:k,styles:S}),Se())});function dXe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var a=r[i];return typeof a=="function"?a.bind(r):a}}):e}function fXe(e,t){var n=d.useRef(null);function r(){try{var a=e.selectionStart,o=e.selectionEnd,s=e.value,l=s.substring(0,a),c=s.substring(o);n.current={start:a,end:o,value:s,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&n.current&&t)try{var a=e.value,o=n.current,s=o.beforeTxt,l=o.afterTxt,c=o.start,u=a.length;if(a.startsWith(s))u=s.length;else if(a.endsWith(l))u=a.length-n.current.afterTxt.length;else{var f=s[c-1],p=a.indexOf(f,c-1);p!==-1&&(u=p+1)}e.setSelectionRange(u,u)}catch(h){zr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[r,i]}var pXe=function(){var t=d.useState(!1),n=Te(t,2),r=n[0],i=n[1];return nr(function(){i(v8())},[]),r},hXe=200,mXe=600;function gXe(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,a=e.downDisabled,o=e.onStep,s=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=o;var u=function(){clearTimeout(s.current)},f=function(w,_){w.preventDefault(),u(),c.current(_);function k(){c.current(_),s.current=setTimeout(k,hXe)}s.current=setTimeout(k,mXe)};d.useEffect(function(){return function(){u(),l.current.forEach(function(b){return rr.cancel(b)})}},[]);var p=pXe();if(p)return null;var h="".concat(t,"-handler"),m=Ee(h,"".concat(h,"-up"),ne({},"".concat(h,"-up-disabled"),i)),g=Ee(h,"".concat(h,"-down"),ne({},"".concat(h,"-down-disabled"),a)),v=function(){return l.current.push(rr(u))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return d.createElement("div",{className:"".concat(h,"-wrap")},d.createElement("span",tt({},y,{onMouseDown:function(w){f(w,!0)},"aria-label":"Increase Value","aria-disabled":i,className:m}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",tt({},y,{onMouseDown:function(w){f(w,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:g}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function SX(e){var t=typeof e=="number"?z8(e):qm(e).fullStr,n=t.includes(".");return n?qm(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const vXe=function(){var e=d.useRef(0),t=function(){rr.cancel(e.current)};return d.useEffect(function(){return t},[]),function(n){t(),e.current=rr(function(){n()})}};var yXe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],bXe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],CX=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},_X=function(t){var n=Fc(t);return n.isInvalidate()?null:n},wXe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.min,o=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,p=e.readOnly,h=e.upHandler,m=e.downHandler,g=e.keyboard,v=e.changeOnWheel,y=v===void 0?!1:v,b=e.controls,w=b===void 0?!0:b;e.classNames;var _=e.stringMode,k=e.parser,S=e.formatter,C=e.precision,E=e.decimalSeparator,$=e.onChange,M=e.onInput,P=e.onPressEnter,I=e.onStep,O=e.changeOnBlur,A=O===void 0?!0:O,R=e.domRef,j=Ut(e,yXe),N="".concat(n,"-input"),D=d.useRef(null),V=d.useState(!1),F=Te(V,2),K=F[0],B=F[1],U=d.useRef(!1),Z=d.useRef(!1),ee=d.useRef(!1),ie=d.useState(function(){return Fc(u??c)}),Y=Te(ie,2),X=Y[0],ae=Y[1];function oe(dt){u===void 0&&ae(dt)}var le=d.useCallback(function(dt,vt){if(!vt)return C>=0?C:Math.max(_m(dt),_m(l))},[C,l]),ce=d.useCallback(function(dt){var vt=String(dt);if(k)return k(vt);var Ze=vt;return E&&(Ze=Ze.replace(E,".")),Ze.replace(/[^\w.-]+/g,"")},[k,E]),pe=d.useRef(""),me=d.useCallback(function(dt,vt){if(S)return S(dt,{userTyping:vt,input:String(pe.current)});var Ze=typeof dt=="number"?z8(dt):dt;if(!vt){var nt=le(Ze,vt);if(WB(Ze)&&(E||nt>=0)){var jt=E||".";Ze=a_(Ze,jt,nt)}}return Ze},[S,le,E]),re=d.useState(function(){var dt=c??u;return X.isInvalidate()&&["string","number"].includes(Kt(dt))?Number.isNaN(dt)?"":dt:me(X.toString(),!1)}),fe=Te(re,2),ve=fe[0],$e=fe[1];pe.current=ve;function Ce(dt,vt){$e(me(dt.isInvalidate()?dt.toString(!1):dt.toString(!vt),vt))}var be=d.useMemo(function(){return _X(o)},[o,C]),Se=d.useMemo(function(){return _X(a)},[a,C]),we=d.useMemo(function(){return!be||!X||X.isInvalidate()?!1:be.lessEquals(X)},[be,X]),se=d.useMemo(function(){return!Se||!X||X.isInvalidate()?!1:X.lessEquals(Se)},[Se,X]),ye=fXe(D.current,K),Oe=Te(ye,2),z=Oe[0],H=Oe[1],G=function(vt){return be&&!vt.lessEquals(be)?be:Se&&!Se.lessEquals(vt)?Se:null},de=function(vt){return!G(vt)},xe=function(vt,Ze){var nt=vt,jt=de(nt)||nt.isEmpty();if(!nt.isEmpty()&&!Ze&&(nt=G(nt)||nt,jt=!0),!p&&!f&&jt){var Lt=nt.toString(),Bt=le(Lt,Ze);return Bt>=0&&(nt=Fc(a_(Lt,".",Bt)),de(nt)||(nt=Fc(a_(Lt,".",Bt,!0)))),nt.equals(X)||(oe(nt),$==null||$(nt.isEmpty()?null:CX(_,nt)),u===void 0&&Ce(nt,Ze)),nt}return X},he=vXe(),Ue=function dt(vt){if(z(),pe.current=vt,$e(vt),!Z.current){var Ze=ce(vt),nt=Fc(Ze);nt.isNaN()||xe(nt,!0)}M==null||M(vt),he(function(){var jt=vt;k||(jt=vt.replace(/。/g,".")),jt!==vt&&dt(jt)})},We=function(){Z.current=!0},ge=function(){Z.current=!1,Ue(D.current.value)},ze=function(vt){Ue(vt.target.value)},Ve=function(vt){var Ze;if(!(vt&&we||!vt&&se)){U.current=!1;var nt=Fc(ee.current?SX(l):l);vt||(nt=nt.negate());var jt=(X||Fc(0)).add(nt.toString()),Lt=xe(jt,!1);I==null||I(CX(_,Lt),{offset:ee.current?SX(l):l,type:vt?"up":"down"}),(Ze=D.current)===null||Ze===void 0||Ze.focus()}},Be=function(vt){var Ze=Fc(ce(ve)),nt;Ze.isNaN()?nt=xe(X,vt):nt=xe(Ze,vt),u!==void 0?Ce(X,!1):nt.isNaN()||Ce(nt,!1)},Xe=function(){U.current=!0},Ke=function(vt){var Ze=vt.key,nt=vt.shiftKey;U.current=!0,ee.current=nt,Ze==="Enter"&&(Z.current||(U.current=!1),Be(!1),P==null||P(vt)),g!==!1&&!Z.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ze)&&(Ve(Ze==="Up"||Ze==="ArrowUp"),vt.preventDefault())},qe=function(){U.current=!1,ee.current=!1};d.useEffect(function(){if(y&&K){var dt=function(nt){Ve(nt.deltaY<0),nt.preventDefault()},vt=D.current;if(vt)return vt.addEventListener("wheel",dt,{passive:!1}),function(){return vt.removeEventListener("wheel",dt)}}});var Et=function(){A&&Be(!1),B(!1),U.current=!1};return Vm(function(){X.isInvalidate()||Ce(X,!1)},[C,S]),Vm(function(){var dt=Fc(u);ae(dt);var vt=Fc(ce(ve));(!dt.equals(vt)||!U.current||S)&&Ce(dt,U.current)},[u]),Vm(function(){S&&H()},[ve]),d.createElement("div",{ref:R,className:Ee(n,r,ne(ne(ne(ne(ne({},"".concat(n,"-focused"),K),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),X.isNaN()),"".concat(n,"-out-of-range"),!X.isInvalidate()&&!de(X))),style:i,onFocus:function(){B(!0)},onBlur:Et,onKeyDown:Ke,onKeyUp:qe,onCompositionStart:We,onCompositionEnd:ge,onBeforeInput:Xe},w&&d.createElement(gXe,{prefixCls:n,upNode:h,downNode:m,upDisabled:we,downDisabled:se,onStep:Ve}),d.createElement("div",{className:"".concat(N,"-wrap")},d.createElement("input",tt({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:l},j,{ref:va(D,t),className:N,value:ve,onChange:ze,disabled:f,readOnly:p}))))}),xXe=d.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,a=i===void 0?"rc-input-number":i,o=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,p=e.classNames,h=Ut(e,bXe),m=d.useRef(null),g=d.useRef(null),v=d.useRef(null),y=function(w){v.current&&VB(v.current,w)};return d.useImperativeHandle(t,function(){return dXe(v.current,{focus:y,nativeElement:m.current.nativeElement||g.current})}),d.createElement(H8,{className:f,triggerFocus:y,prefixCls:a,value:o,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:m},d.createElement(wXe,tt({prefixCls:a,disabled:n,ref:v,domRef:g,className:p==null?void 0:p.input},h)))});const SXe=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},Ry(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new dr(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},kX=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const a=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},CXe=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:o,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:h,colorTextDescription:m,motionDurationMid:g,handleHoverColor:v,handleOpacity:y,paddingInline:b,paddingBlock:w,handleBg:_,handleActiveBg:k,colorTextDisabled:S,borderRadiusSM:C,borderRadiusLG:E,controlWidth:$,handleBorderColor:M,filledHandleBg:P,lineHeightLG:I,calc:O}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),wg(e)),{display:"inline-block",width:$,margin:0,padding:0,borderRadius:i}),R8(e,{[`${t}-handler-wrap`]:{background:_,[`${t}-handler-down`]:{borderBlockStart:`${Me(n)} ${r} ${M}`}}})),N8(e,{[`${t}-handler-wrap`]:{background:P,[`${t}-handler-down`]:{borderBlockStart:`${Me(n)} ${r} ${M}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:_}}})),j8(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,lineHeight:I,borderRadius:E,[`input${t}-input`]:{height:O(s).sub(O(n).mul(2)).equal(),padding:`${Me(p)} ${Me(h)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:C,[`input${t}-input`]:{height:O(l).sub(O(n).mul(2)).equal(),padding:`${Me(f)} ${Me(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},ar(e)),lge(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:E,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},ige(e)),oge(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{width:"100%",padding:`${Me(w)} ${Me(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),A8(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:y,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` +`;return[B8(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},ao),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},CYe=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},Fge(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Vg(e)]},Lge=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},Bge=Jn("Cascader",e=>[CYe(e)],Lge),_Ye=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[Fge(e),{display:"inline-flex",border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},kYe=Afe(["Cascader","Panel"],e=>_Ye(e),Lge);function EYe(e){const{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:a,direction:o,expandIcon:s,disabled:l}=e,c=d.useContext(ma),u=l??c,[f,p,h,m]=jge(t,o),g=qr(p),[v,y,w]=Bge(p,g);kYe(p);const b=h==="rtl",[C,k]=Age(f,b,s),S=a||(m==null?void 0:m("Cascader"))||d.createElement(qg,{componentName:"Cascader"}),_=Nge(p,r);return v(d.createElement(Ige,Object.assign({},e,{checkable:_,prefixCls:p,className:Ee(n,y,i,w,g),notFoundContent:S,direction:h,expandIcon:C,loadingIcon:k,disabled:u})))}var $Ye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);il===0?[s]:[].concat(lt(o),[t,s]),[]),i=[];let a=0;return r.forEach((o,s)=>{const l=a+o.length;let c=e.slice(a,l);a=l,s%2===1&&(c=d.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},c)),i.push(c)}),i}const OYe=(e,t,n,r)=>{const i=[],a=e.toLowerCase();return t.forEach((o,s)=>{s!==0&&i.push(" / ");let l=o[r.label];const c=typeof l;(c==="string"||c==="number")&&(l=PYe(String(l),a,n)),i.push(l)}),i},Dy=d.forwardRef((e,t)=>{var n;const{prefixCls:r,size:i,disabled:a,className:o,rootClassName:s,multiple:l,bordered:c=!0,transitionName:u,choiceTransitionName:f="",popupClassName:p,dropdownClassName:h,expandIcon:m,placement:g,showSearch:v,allowClear:y=!0,notFoundContent:w,direction:b,getPopupContainer:C,status:k,showArrow:S,builtinPlacements:_,style:E,variant:$}=e,M=$Ye(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),P=$r(M,["suffixIcon"]),{getPopupContainer:R,getPrefixCls:O,popupOverflow:j,cascader:I}=d.useContext(Xt),{status:A,hasFeedback:N,isFormItemInput:F,feedbackIcon:K}=d.useContext(oa),L=Mu(A,k),[V,B,U,Y]=jge(r,b),ee=U==="rtl",ie=O(),Z=qr(V),[X,ae,oe]=wB(V,Z),le=qr(B),[ce]=Bge(B,le),{compactSize:pe,compactItemClassnames:me}=$u(V,b),[re,fe]=Od("cascader",$,c),ve=w||(Y==null?void 0:Y("Cascader"))||d.createElement(qg,{componentName:"Cascader"}),$e=Ee(p||h,`${B}-dropdown`,{[`${B}-dropdown-rtl`]:U==="rtl"},s,Z,le,ae,oe),Ce=d.useMemo(()=>{if(!v)return v;let ge={render:OYe};return typeof v=="object"&&(ge=Object.assign(Object.assign({},ge),v)),ge},[v]),be=Bi(ge=>{var ze;return(ze=i??pe)!==null&&ze!==void 0?ze:ge}),Se=d.useContext(ma),we=a??Se,[se,ye]=Age(V,ee,m),Oe=Nge(B,l),z=xB(e.suffixIcon,S),{suffixIcon:H,removeIcon:G,clearIcon:de}=w8(Object.assign(Object.assign({},e),{hasFeedback:N,feedbackIcon:K,showSuffixIcon:z,multiple:l,prefixCls:V,componentName:"Cascader"})),xe=d.useMemo(()=>g!==void 0?g:ee?"bottomRight":"bottomLeft",[g,ee]),he=y===!0?{clearIcon:de}:y,[Ue]=$c("SelectLike",(n=P.dropdownStyle)===null||n===void 0?void 0:n.zIndex),We=d.createElement(O4,Object.assign({prefixCls:V,className:Ee(!r&&B,{[`${V}-lg`]:be==="large",[`${V}-sm`]:be==="small",[`${V}-rtl`]:ee,[`${V}-${re}`]:fe,[`${V}-in-form-item`]:F},Al(V,L,N),me,I==null?void 0:I.className,o,s,Z,le,ae,oe),disabled:we,style:Object.assign(Object.assign({},I==null?void 0:I.style),E)},P,{builtinPlacements:bB(_,j),direction:U,placement:xe,notFoundContent:ve,allowClear:he,showSearch:Ce,expandIcon:se,suffixIcon:H,removeIcon:G,loadingIcon:ye,checkable:Oe,dropdownClassName:$e,dropdownPrefixCls:r||B,dropdownStyle:Object.assign(Object.assign({},P.dropdownStyle),{zIndex:Ue}),choiceTransitionName:oo(ie,"",f),transitionName:oo(ie,"slide-up",u),getPopupContainer:C||R,ref:t}));return ce(X(We))}),RYe=Gf(Dy,"dropdownAlign",e=>$r(e,["visible"]));Dy.SHOW_PARENT=TYe;Dy.SHOW_CHILD=MYe;Dy.Panel=EYe;Dy._InternalPanelDoNotUseOrYouWillBeFired=RYe;const zge=te.createContext(null);var IYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,className:i,rootClassName:a,children:o,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:p}=e,h=IYe(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:g,checkbox:v}=d.useContext(Xt),y=d.useContext(zge),{isFormItemInput:w}=d.useContext(oa),b=d.useContext(ma),C=(n=(y==null?void 0:y.disabled)||p)!==null&&n!==void 0?n:b,k=d.useRef(h.value),S=d.useRef(null),_=ga(t,S);d.useEffect(()=>{y==null||y.registerValue(h.value)},[]),d.useEffect(()=>{if(!f)return h.value!==k.current&&(y==null||y.cancelValue(k.current),y==null||y.registerValue(h.value),k.current=h.value),()=>y==null?void 0:y.cancelValue(h.value)},[h.value]),d.useEffect(()=>{var F;!((F=S.current)===null||F===void 0)&&F.input&&(S.current.input.indeterminate=s)},[s]);const E=m("checkbox",r),$=qr(E),[M,P,R]=Dge(E,$),O=Object.assign({},h);y&&!f&&(O.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),y.toggleOption&&y.toggleOption({label:o,value:h.value})},O.name=y.name,O.checked=y.value.includes(h.value));const j=Ee(`${E}-wrapper`,{[`${E}-rtl`]:g==="rtl",[`${E}-wrapper-checked`]:O.checked,[`${E}-wrapper-disabled`]:C,[`${E}-wrapper-in-form-item`]:w},v==null?void 0:v.className,i,a,R,$,P),I=Ee({[`${E}-indeterminate`]:s},t8,P),[A,N]=oge(O.onClick);return M(d.createElement(w4,{component:"Checkbox",disabled:C},d.createElement("label",{className:j,style:Object.assign(Object.assign({},v==null?void 0:v.style),l),onMouseEnter:c,onMouseLeave:u,onClick:A},d.createElement(age,Object.assign({},O,{onClick:N,prefixCls:E,className:I,disabled:C,ref:_})),o!==void 0&&d.createElement("span",null,o))))},Hge=d.forwardRef(jYe);var NYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:l,onChange:c}=e,u=NYe(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=d.useContext(Xt),[h,m]=d.useState(u.value||n||[]),[g,v]=d.useState([]);d.useEffect(()=>{"value"in u&&m(u.value||[])},[u.value]);const y=d.useMemo(()=>i.map(I=>typeof I=="string"||typeof I=="number"?{label:I,value:I}:I),[i]),w=I=>{v(A=>A.filter(N=>N!==I))},b=I=>{v(A=>[].concat(lt(A),[I]))},C=I=>{const A=h.indexOf(I.value),N=lt(h);A===-1?N.push(I.value):N.splice(A,1),"value"in u||m(N),c==null||c(N.filter(F=>g.includes(F)).sort((F,K)=>{const L=y.findIndex(B=>B.value===F),V=y.findIndex(B=>B.value===K);return L-V}))},k=f("checkbox",a),S=`${k}-group`,_=qr(k),[E,$,M]=Dge(k,_),P=$r(u,["value","disabled"]),R=i.length?y.map(I=>d.createElement(Hge,{prefixCls:k,key:I.value.toString(),disabled:"disabled"in I?I.disabled:u.disabled,value:I.value,checked:h.includes(I.value),onChange:I.onChange,className:`${S}-item`,style:I.style,title:I.title,id:I.id,required:I.required},I.label)):r,O={toggleOption:C,value:h,disabled:u.disabled,name:u.name,registerValue:b,cancelValue:w},j=Ee(S,{[`${S}-rtl`]:p==="rtl"},o,s,M,_,$);return E(d.createElement("div",Object.assign({className:j,style:l},P,{ref:t}),d.createElement(zge.Provider,{value:O},R)))}),ps=Hge;ps.Group=AYe;ps.__ANT_CHECKBOX=!0;const Uge=d.createContext({});var DYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=d.useContext(Xt),{gutter:i,wrap:a}=d.useContext(Uge),{prefixCls:o,span:s,order:l,offset:c,push:u,pull:f,className:p,children:h,flex:m,style:g}=e,v=DYe(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",o),[w,b,C]=oze(y),k={};let S={};FYe.forEach($=>{let M={};const P=e[$];typeof P=="number"?M.span=P:typeof P=="object"&&(M=P||{}),delete v[$],S=Object.assign(Object.assign({},S),{[`${y}-${$}-${M.span}`]:M.span!==void 0,[`${y}-${$}-order-${M.order}`]:M.order||M.order===0,[`${y}-${$}-offset-${M.offset}`]:M.offset||M.offset===0,[`${y}-${$}-push-${M.push}`]:M.push||M.push===0,[`${y}-${$}-pull-${M.pull}`]:M.pull||M.pull===0,[`${y}-rtl`]:r==="rtl"}),M.flex&&(S[`${y}-${$}-flex`]=!0,k[`--${y}-${$}-flex`]=yX(M.flex))});const _=Ee(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${f}`]:f},p,S,b,C),E={};if(i&&i[0]>0){const $=i[0]/2;E.paddingLeft=$,E.paddingRight=$}return m&&(E.flex=yX(m),a===!1&&!E.minWidth&&(E.minWidth=0)),w(d.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),g),k),className:_,ref:t}),h))});var LYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a{i()},[JSON.stringify(e),t]),n}const z8=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:l=0,wrap:c}=e,u=LYe(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=d.useContext(Xt),[h,m]=d.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,v]=d.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=bX(i,g),w=bX(r,g),b=d.useRef(l),C=Ihe();d.useEffect(()=>{const N=C.subscribe(F=>{v(F);const K=b.current||0;(!Array.isArray(K)&&typeof K=="object"||Array.isArray(K)&&(typeof K[0]=="object"||typeof K[1]=="object"))&&m(F)});return()=>C.unsubscribe(N)},[]);const k=()=>{const N=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((K,L)=>{if(typeof K=="object")for(let V=0;V0?M[0]/-2:void 0;O&&(R.marginLeft=O,R.marginRight=O);const[j,I]=M;R.rowGap=I;const A=d.useMemo(()=>({gutter:[j,I],wrap:c}),[j,I,c]);return _(d.createElement(Uge.Provider,{value:A},d.createElement("div",Object.assign({},u,{className:P,style:Object.assign(Object.assign({},R),o),ref:t}),s)))}),BYe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:a,orientationMargin:o,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{borderBlockStart:`${Me(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Me(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Me(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Me(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Me(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${o} * 100%)`},"&::after":{width:`calc(100% - ${o} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${o} * 100%)`},"&::after":{width:`calc(${o} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Me(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${Me(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},zYe=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),HYe=Jn("Divider",e=>{const t=Hn(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[BYe(t)]},zYe,{unitless:{orientationMargin:!0}});var UYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n,divider:r}=d.useContext(Xt),{prefixCls:i,type:a="horizontal",orientation:o="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:f,variant:p="solid",plain:h,style:m}=e,g=UYe(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),v=t("divider",i),[y,w,b]=HYe(v),C=!!u,k=o==="left"&&s!=null,S=o==="right"&&s!=null,_=Ee(v,r==null?void 0:r.className,w,b,`${v}-${a}`,{[`${v}-with-text`]:C,[`${v}-with-text-${o}`]:C,[`${v}-dashed`]:!!f,[`${v}-${p}`]:p!=="solid",[`${v}-plain`]:!!h,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:k,[`${v}-no-default-orientation-margin-right`]:S},l,c),E=d.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),$=Object.assign(Object.assign({},k&&{marginLeft:E}),S&&{marginRight:E});return y(d.createElement("div",Object.assign({className:_,style:Object.assign(Object.assign({},r==null?void 0:r.style),m)},g,{role:"separator"}),u&&a!=="vertical"&&d.createElement("span",{className:`${v}-inner-text`,style:$},u)))};var wX=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},Fu=function(t){return t!==void 0?"".concat(t,"px"):void 0};function VYe(e){var t=e.prefixCls,n=e.containerRef,r=e.value,i=e.getValueIndex,a=e.motionName,o=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=e.vertical,u=c===void 0?!1:c,f=d.useRef(null),p=d.useState(r),h=Te(p,2),m=h[0],g=h[1],v=function(I){var A,N=i(I),F=(A=n.current)===null||A===void 0?void 0:A.querySelectorAll(".".concat(t,"-item"))[N];return(F==null?void 0:F.offsetParent)&&F},y=d.useState(null),w=Te(y,2),b=w[0],C=w[1],k=d.useState(null),S=Te(k,2),_=S[0],E=S[1];nr(function(){if(m!==r){var j=v(m),I=v(r),A=wX(j,u),N=wX(I,u);g(r),C(A),E(N),j&&I?o():s()}},[r]);var $=d.useMemo(function(){if(u){var j;return Fu((j=b==null?void 0:b.top)!==null&&j!==void 0?j:0)}return Fu(l==="rtl"?-(b==null?void 0:b.right):b==null?void 0:b.left)},[u,l,b]),M=d.useMemo(function(){if(u){var j;return Fu((j=_==null?void 0:_.top)!==null&&j!==void 0?j:0)}return Fu(l==="rtl"?-(_==null?void 0:_.right):_==null?void 0:_.left)},[u,l,_]),P=function(){return u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},R=function(){return u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},O=function(){C(null),E(null),s()};return!b||!_?null:d.createElement(Ca,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:P,onAppearActive:R,onVisibleChanged:O},function(j,I){var A=j.className,N=j.style,F=q(q({},N),{},{"--thumb-start-left":$,"--thumb-start-width":Fu(b==null?void 0:b.width),"--thumb-active-left":M,"--thumb-active-width":Fu(_==null?void 0:_.width),"--thumb-start-top":$,"--thumb-start-height":Fu(b==null?void 0:b.height),"--thumb-active-top":M,"--thumb-active-height":Fu(_==null?void 0:_.height)}),K={ref:ga(f,I),style:F,className:Ee("".concat(t,"-thumb"),A)};return d.createElement("div",K)})}var qYe=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function KYe(e){if(typeof e.title<"u")return e.title;if(Kt(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function GYe(e){return e.map(function(t){if(Kt(t)==="object"&&t!==null){var n=KYe(t);return q(q({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var YYe=function(t){var n=t.prefixCls,r=t.className,i=t.disabled,a=t.checked,o=t.label,s=t.title,l=t.value,c=t.name,u=t.onChange,f=t.onFocus,p=t.onBlur,h=t.onKeyDown,m=t.onKeyUp,g=t.onMouseDown,v=function(w){i||u(w,l)};return d.createElement("label",{className:Ee(r,ne({},"".concat(n,"-item-disabled"),i)),onMouseDown:g},d.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:i,checked:a,onChange:v,onFocus:f,onBlur:p,onKeyDown:h,onKeyUp:m}),d.createElement("div",{className:"".concat(n,"-item-label"),title:s,"aria-selected":a},o))},XYe=d.forwardRef(function(e,t){var n,r,i=e.prefixCls,a=i===void 0?"rc-segmented":i,o=e.direction,s=e.vertical,l=e.options,c=l===void 0?[]:l,u=e.disabled,f=e.defaultValue,p=e.value,h=e.name,m=e.onChange,g=e.className,v=g===void 0?"":g,y=e.motionName,w=y===void 0?"thumb-motion":y,b=Ht(e,qYe),C=d.useRef(null),k=d.useMemo(function(){return ga(C,t)},[C,t]),S=d.useMemo(function(){return GYe(c)},[c]),_=jn((n=S[0])===null||n===void 0?void 0:n.value,{value:p,defaultValue:f}),E=Te(_,2),$=E[0],M=E[1],P=d.useState(!1),R=Te(P,2),O=R[0],j=R[1],I=function(ce,pe){M(pe),m==null||m(pe)},A=$r(b,["children"]),N=d.useState(!1),F=Te(N,2),K=F[0],L=F[1],V=d.useState(!1),B=Te(V,2),U=B[0],Y=B[1],ee=function(){Y(!0)},ie=function(){Y(!1)},Z=function(){L(!1)},X=function(ce){ce.key==="Tab"&&L(!0)},ae=function(ce){var pe=S.findIndex(function(ve){return ve.value===$}),me=S.length,re=(pe+ce+me)%me,fe=S[re];fe&&(M(fe.value),m==null||m(fe.value))},oe=function(ce){switch(ce.key){case"ArrowLeft":case"ArrowUp":ae(-1);break;case"ArrowRight":case"ArrowDown":ae(1);break}};return d.createElement("div",tt({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0},A,{className:Ee(a,(r={},ne(r,"".concat(a,"-rtl"),o==="rtl"),ne(r,"".concat(a,"-disabled"),u),ne(r,"".concat(a,"-vertical"),s),r),v),ref:k}),d.createElement("div",{className:"".concat(a,"-group")},d.createElement(VYe,{vertical:s,prefixCls:a,value:$,containerRef:C,motionName:"".concat(a,"-").concat(w),direction:o,getValueIndex:function(ce){return S.findIndex(function(pe){return pe.value===ce})},onMotionStart:function(){j(!0)},onMotionEnd:function(){j(!1)}}),S.map(function(le){var ce;return d.createElement(YYe,tt({},le,{name:h,key:le.value,prefixCls:a,className:Ee(le.className,"".concat(a,"-item"),(ce={},ne(ce,"".concat(a,"-item-selected"),le.value===$&&!O),ne(ce,"".concat(a,"-item-focused"),U&&K&&le.value===$),ce)),checked:le.value===$,onChange:I,onFocus:ee,onBlur:ie,onKeyDown:oe,onKeyUp:X,onMouseDown:Z,disabled:!!u||!!le.disabled}))})))}),ZYe=XYe;function xX(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function SX(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const QYe=Object.assign({overflow:"hidden"},ao),JYe=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),Vs(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${Me(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},SX(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},yc(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:Me(n),padding:`0 ${Me(e.segmentedPaddingHorizontal)}`},QYe),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},SX(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${Me(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:Me(r),padding:`0 ${Me(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:i,lineHeight:Me(i),padding:`0 ${Me(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),xX(`&-disabled ${t}-item`,e)),xX(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},eXe=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}},tXe=Jn("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Hn(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[JYe(r)]},eXe);var CX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=h8(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:l="middle",style:c,vertical:u,name:f=n}=e,p=CX(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","name"]),{getPrefixCls:h,direction:m,segmented:g}=d.useContext(Xt),v=h("segmented",r),[y,w,b]=tXe(v),C=Bi(l),k=d.useMemo(()=>s.map(E=>{if(nXe(E)){const{icon:$,label:M}=E,P=CX(E,["icon","label"]);return Object.assign(Object.assign({},P),{label:d.createElement(d.Fragment,null,d.createElement("span",{className:`${v}-item-icon`},$),M&&d.createElement("span",null,M))})}return E}),[s,v]),S=Ee(i,a,g==null?void 0:g.className,{[`${v}-block`]:o,[`${v}-sm`]:C==="small",[`${v}-lg`]:C==="large",[`${v}-vertical`]:u},w,b),_=Object.assign(Object.assign({},g==null?void 0:g.style),c);return y(d.createElement(ZYe,Object.assign({},p,{name:f,className:S,style:_,options:k,ref:t,prefixCls:v,direction:m,vertical:u})))}),Wge=rXe,Vge=te.createContext({}),qge=te.createContext({}),Kge=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=()=>{if(r&&n&&!n.cleared){const a=n.toHsb();a.a=0;const o=Xo(a);o.cleared=!0,r(o)}};return te.createElement("div",{className:`${t}-clear`,onClick:i})};var ih;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(ih||(ih={}));var iXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},aXe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:iXe}))},Gge=d.forwardRef(aXe);function Kj(){return typeof BigInt=="function"}function Yge(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Km(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),a=i[0]||"0",o=i[1]||"0";a==="0"&&o==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:"".concat(s).concat(r)}}function VB(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function km(e){var t=String(e);if(VB(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&qB(t)?t.length-t.indexOf(".")-1:0}function H8(e){var t=String(e);if(VB(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Kj()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Km("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),sXe=function(){function e(t){if(Ar(this,e),ne(this,"origin",""),ne(this,"number",void 0),ne(this,"empty",void 0),Yge(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Dr(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":H8(this.number):this.origin}}]),e}();function zc(e){return Kj()?new oXe(e):new sXe(e)}function s_(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=Km(e),a=i.negativeStr,o=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(o);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=zc(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return s_(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function lXe(e){return!!(e.addonBefore||e.addonAfter)}function cXe(e){return!!(e.prefix||e.suffix||e.allowClear)}function _X(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function S6(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=_X(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=_X(t,e,r),n(i);return}n(i)}}function KB(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var U8=te.forwardRef(function(e,t){var n,r,i,a=e.inputElement,o=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,p=e.className,h=e.style,m=e.disabled,g=e.readOnly,v=e.focused,y=e.triggerFocus,w=e.allowClear,b=e.value,C=e.handleReset,k=e.hidden,S=e.classes,_=e.classNames,E=e.dataAttrs,$=e.styles,M=e.components,P=e.onClear,R=o??a,O=(M==null?void 0:M.affixWrapper)||"span",j=(M==null?void 0:M.groupWrapper)||"span",I=(M==null?void 0:M.wrapper)||"span",A=(M==null?void 0:M.groupAddon)||"span",N=d.useRef(null),F=function(re){var fe;(fe=N.current)!==null&&fe!==void 0&&fe.contains(re.target)&&(y==null||y())},K=cXe(e),L=d.cloneElement(R,{value:b,className:Ee((n=R.props)===null||n===void 0?void 0:n.className,!K&&(_==null?void 0:_.variant))||null}),V=d.useRef(null);if(te.useImperativeHandle(t,function(){return{nativeElement:V.current||N.current}}),K){var B=null;if(w){var U=!m&&!g&&b,Y="".concat(s,"-clear-icon"),ee=Kt(w)==="object"&&w!==null&&w!==void 0&&w.clearIcon?w.clearIcon:"✖";B=te.createElement("button",{type:"button",onClick:function(re){C==null||C(re),P==null||P()},onMouseDown:function(re){return re.preventDefault()},className:Ee(Y,ne(ne({},"".concat(Y,"-hidden"),!U),"".concat(Y,"-has-suffix"),!!c))},ee)}var ie="".concat(s,"-affix-wrapper"),Z=Ee(ie,ne(ne(ne(ne(ne({},"".concat(s,"-disabled"),m),"".concat(ie,"-disabled"),m),"".concat(ie,"-focused"),v),"".concat(ie,"-readonly"),g),"".concat(ie,"-input-with-clear-btn"),c&&w&&b),S==null?void 0:S.affixWrapper,_==null?void 0:_.affixWrapper,_==null?void 0:_.variant),X=(c||w)&&te.createElement("span",{className:Ee("".concat(s,"-suffix"),_==null?void 0:_.suffix),style:$==null?void 0:$.suffix},B,c);L=te.createElement(O,tt({className:Z,style:$==null?void 0:$.affixWrapper,onClick:F},E==null?void 0:E.affixWrapper,{ref:N}),l&&te.createElement("span",{className:Ee("".concat(s,"-prefix"),_==null?void 0:_.prefix),style:$==null?void 0:$.prefix},l),L,X)}if(lXe(e)){var ae="".concat(s,"-group"),oe="".concat(ae,"-addon"),le="".concat(ae,"-wrapper"),ce=Ee("".concat(s,"-wrapper"),ae,S==null?void 0:S.wrapper,_==null?void 0:_.wrapper),pe=Ee(le,ne({},"".concat(le,"-disabled"),m),S==null?void 0:S.group,_==null?void 0:_.groupWrapper);L=te.createElement(j,{className:pe,ref:V},te.createElement(I,{className:ce},u&&te.createElement(A,{className:oe},u),L,f&&te.createElement(A,{className:oe},f)))}return te.cloneElement(L,{className:Ee((r=L.props)===null||r===void 0?void 0:r.className,p)||null,style:q(q({},(i=L.props)===null||i===void 0?void 0:i.style),h),hidden:k})}),uXe=["show"];function Xge(e,t){return d.useMemo(function(){var n={};t&&(n.show=Kt(t)==="object"&&t.formatter?t.formatter:!!t),n=q(q({},n),e);var r=n,i=r.show,a=Ht(r,uXe);return q(q({},a),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:a.strategy||function(o){return o.length}})},[e,t])}var dXe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],fXe=d.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,a=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,p=e.htmlSize,h=e.className,m=e.maxLength,g=e.suffix,v=e.showCount,y=e.count,w=e.type,b=w===void 0?"text":w,C=e.classes,k=e.classNames,S=e.styles,_=e.onCompositionStart,E=e.onCompositionEnd,$=Ht(e,dXe),M=d.useState(!1),P=Te(M,2),R=P[0],O=P[1],j=d.useRef(!1),I=d.useRef(!1),A=d.useRef(null),N=d.useRef(null),F=function(ye){A.current&&KB(A.current,ye)},K=jn(e.defaultValue,{value:e.value}),L=Te(K,2),V=L[0],B=L[1],U=V==null?"":String(V),Y=d.useState(null),ee=Te(Y,2),ie=ee[0],Z=ee[1],X=Xge(y,v),ae=X.max||m,oe=X.strategy(U),le=!!ae&&oe>ae;d.useImperativeHandle(t,function(){var se;return{focus:F,blur:function(){var Oe;(Oe=A.current)===null||Oe===void 0||Oe.blur()},setSelectionRange:function(Oe,z,H){var G;(G=A.current)===null||G===void 0||G.setSelectionRange(Oe,z,H)},select:function(){var Oe;(Oe=A.current)===null||Oe===void 0||Oe.select()},input:A.current,nativeElement:((se=N.current)===null||se===void 0?void 0:se.nativeElement)||A.current}}),d.useEffect(function(){I.current&&(I.current=!1),O(function(se){return se&&f?!1:se})},[f]);var ce=function(ye,Oe,z){var H=Oe;if(!j.current&&X.exceedFormatter&&X.max&&X.strategy(Oe)>X.max){if(H=X.exceedFormatter(Oe,{max:X.max}),Oe!==H){var G,de;Z([((G=A.current)===null||G===void 0?void 0:G.selectionStart)||0,((de=A.current)===null||de===void 0?void 0:de.selectionEnd)||0])}}else if(z.source==="compositionEnd")return;B(H),A.current&&S6(A.current,ye,r,H)};d.useEffect(function(){if(ie){var se;(se=A.current)===null||se===void 0||se.setSelectionRange.apply(se,lt(ie))}},[ie]);var pe=function(ye){ce(ye,ye.target.value,{source:"change"})},me=function(ye){j.current=!1,ce(ye,ye.currentTarget.value,{source:"compositionEnd"}),E==null||E(ye)},re=function(ye){o&&ye.key==="Enter"&&!I.current&&(I.current=!0,o(ye)),s==null||s(ye)},fe=function(ye){ye.key==="Enter"&&(I.current=!1),l==null||l(ye)},ve=function(ye){O(!0),i==null||i(ye)},$e=function(ye){I.current&&(I.current=!1),O(!1),a==null||a(ye)},Ce=function(ye){B(""),F(),A.current&&S6(A.current,ye,r)},be=le&&"".concat(u,"-out-of-range"),Se=function(){var ye=$r(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return te.createElement("input",tt({autoComplete:n},ye,{onChange:pe,onFocus:ve,onBlur:$e,onKeyDown:re,onKeyUp:fe,className:Ee(u,ne({},"".concat(u,"-disabled"),f),k==null?void 0:k.input),style:S==null?void 0:S.input,ref:A,size:p,type:b,onCompositionStart:function(z){j.current=!0,_==null||_(z)},onCompositionEnd:me}))},we=function(){var ye=Number(ae)>0;if(g||X.show){var Oe=X.showFormatter?X.showFormatter({value:U,count:oe,maxLength:ae}):"".concat(oe).concat(ye?" / ".concat(ae):"");return te.createElement(te.Fragment,null,X.show&&te.createElement("span",{className:Ee("".concat(u,"-show-count-suffix"),ne({},"".concat(u,"-show-count-has-suffix"),!!g),k==null?void 0:k.count),style:q({},S==null?void 0:S.count)},Oe),g)}return null};return te.createElement(U8,tt({},$,{prefixCls:u,className:Ee(h,be),handleReset:Ce,value:U,focused:R,triggerFocus:F,suffix:we(),disabled:f,classes:C,classNames:k,styles:S}),Se())});function pXe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var a=r[i];return typeof a=="function"?a.bind(r):a}}):e}function hXe(e,t){var n=d.useRef(null);function r(){try{var a=e.selectionStart,o=e.selectionEnd,s=e.value,l=s.substring(0,a),c=s.substring(o);n.current={start:a,end:o,value:s,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&n.current&&t)try{var a=e.value,o=n.current,s=o.beforeTxt,l=o.afterTxt,c=o.start,u=a.length;if(a.startsWith(s))u=s.length;else if(a.endsWith(l))u=a.length-n.current.afterTxt.length;else{var f=s[c-1],p=a.indexOf(f,c-1);p!==-1&&(u=p+1)}e.setSelectionRange(u,u)}catch(h){Br(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[r,i]}var mXe=function(){var t=d.useState(!1),n=Te(t,2),r=n[0],i=n[1];return nr(function(){i(y8())},[]),r},gXe=200,vXe=600;function yXe(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,a=e.downDisabled,o=e.onStep,s=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=o;var u=function(){clearTimeout(s.current)},f=function(b,C){b.preventDefault(),u(),c.current(C);function k(){c.current(C),s.current=setTimeout(k,gXe)}s.current=setTimeout(k,vXe)};d.useEffect(function(){return function(){u(),l.current.forEach(function(w){return rr.cancel(w)})}},[]);var p=mXe();if(p)return null;var h="".concat(t,"-handler"),m=Ee(h,"".concat(h,"-up"),ne({},"".concat(h,"-up-disabled"),i)),g=Ee(h,"".concat(h,"-down"),ne({},"".concat(h,"-down-disabled"),a)),v=function(){return l.current.push(rr(u))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return d.createElement("div",{className:"".concat(h,"-wrap")},d.createElement("span",tt({},y,{onMouseDown:function(b){f(b,!0)},"aria-label":"Increase Value","aria-disabled":i,className:m}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",tt({},y,{onMouseDown:function(b){f(b,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:g}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function kX(e){var t=typeof e=="number"?H8(e):Km(e).fullStr,n=t.includes(".");return n?Km(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const bXe=function(){var e=d.useRef(0),t=function(){rr.cancel(e.current)};return d.useEffect(function(){return t},[]),function(n){t(),e.current=rr(function(){n()})}};var wXe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],xXe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],EX=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},$X=function(t){var n=zc(t);return n.isInvalidate()?null:n},SXe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.min,o=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,p=e.readOnly,h=e.upHandler,m=e.downHandler,g=e.keyboard,v=e.changeOnWheel,y=v===void 0?!1:v,w=e.controls,b=w===void 0?!0:w;e.classNames;var C=e.stringMode,k=e.parser,S=e.formatter,_=e.precision,E=e.decimalSeparator,$=e.onChange,M=e.onInput,P=e.onPressEnter,R=e.onStep,O=e.changeOnBlur,j=O===void 0?!0:O,I=e.domRef,A=Ht(e,wXe),N="".concat(n,"-input"),F=d.useRef(null),K=d.useState(!1),L=Te(K,2),V=L[0],B=L[1],U=d.useRef(!1),Y=d.useRef(!1),ee=d.useRef(!1),ie=d.useState(function(){return zc(u??c)}),Z=Te(ie,2),X=Z[0],ae=Z[1];function oe(ut){u===void 0&&ae(ut)}var le=d.useCallback(function(ut,gt){if(!gt)return _>=0?_:Math.max(km(ut),km(l))},[_,l]),ce=d.useCallback(function(ut){var gt=String(ut);if(k)return k(gt);var Ze=gt;return E&&(Ze=Ze.replace(E,".")),Ze.replace(/[^\w.-]+/g,"")},[k,E]),pe=d.useRef(""),me=d.useCallback(function(ut,gt){if(S)return S(ut,{userTyping:gt,input:String(pe.current)});var Ze=typeof ut=="number"?H8(ut):ut;if(!gt){var nt=le(Ze,gt);if(qB(Ze)&&(E||nt>=0)){var jt=E||".";Ze=s_(Ze,jt,nt)}}return Ze},[S,le,E]),re=d.useState(function(){var ut=c??u;return X.isInvalidate()&&["string","number"].includes(Kt(ut))?Number.isNaN(ut)?"":ut:me(X.toString(),!1)}),fe=Te(re,2),ve=fe[0],$e=fe[1];pe.current=ve;function Ce(ut,gt){$e(me(ut.isInvalidate()?ut.toString(!1):ut.toString(!gt),gt))}var be=d.useMemo(function(){return $X(o)},[o,_]),Se=d.useMemo(function(){return $X(a)},[a,_]),we=d.useMemo(function(){return!be||!X||X.isInvalidate()?!1:be.lessEquals(X)},[be,X]),se=d.useMemo(function(){return!Se||!X||X.isInvalidate()?!1:X.lessEquals(Se)},[Se,X]),ye=hXe(F.current,V),Oe=Te(ye,2),z=Oe[0],H=Oe[1],G=function(gt){return be&&!gt.lessEquals(be)?be:Se&&!Se.lessEquals(gt)?Se:null},de=function(gt){return!G(gt)},xe=function(gt,Ze){var nt=gt,jt=de(nt)||nt.isEmpty();if(!nt.isEmpty()&&!Ze&&(nt=G(nt)||nt,jt=!0),!p&&!f&&jt){var Lt=nt.toString(),Bt=le(Lt,Ze);return Bt>=0&&(nt=zc(s_(Lt,".",Bt)),de(nt)||(nt=zc(s_(Lt,".",Bt,!0)))),nt.equals(X)||(oe(nt),$==null||$(nt.isEmpty()?null:EX(C,nt)),u===void 0&&Ce(nt,Ze)),nt}return X},he=bXe(),Ue=function ut(gt){if(z(),pe.current=gt,$e(gt),!Y.current){var Ze=ce(gt),nt=zc(Ze);nt.isNaN()||xe(nt,!0)}M==null||M(gt),he(function(){var jt=gt;k||(jt=gt.replace(/。/g,".")),jt!==gt&&ut(jt)})},We=function(){Y.current=!0},ge=function(){Y.current=!1,Ue(F.current.value)},ze=function(gt){Ue(gt.target.value)},Ve=function(gt){var Ze;if(!(gt&&we||!gt&&se)){U.current=!1;var nt=zc(ee.current?kX(l):l);gt||(nt=nt.negate());var jt=(X||zc(0)).add(nt.toString()),Lt=xe(jt,!1);R==null||R(EX(C,Lt),{offset:ee.current?kX(l):l,type:gt?"up":"down"}),(Ze=F.current)===null||Ze===void 0||Ze.focus()}},Be=function(gt){var Ze=zc(ce(ve)),nt;Ze.isNaN()?nt=xe(X,gt):nt=xe(Ze,gt),u!==void 0?Ce(X,!1):nt.isNaN()||Ce(nt,!1)},Xe=function(){U.current=!0},Ke=function(gt){var Ze=gt.key,nt=gt.shiftKey;U.current=!0,ee.current=nt,Ze==="Enter"&&(Y.current||(U.current=!1),Be(!1),P==null||P(gt)),g!==!1&&!Y.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ze)&&(Ve(Ze==="Up"||Ze==="ArrowUp"),gt.preventDefault())},qe=function(){U.current=!1,ee.current=!1};d.useEffect(function(){if(y&&V){var ut=function(nt){Ve(nt.deltaY<0),nt.preventDefault()},gt=F.current;if(gt)return gt.addEventListener("wheel",ut,{passive:!1}),function(){return gt.removeEventListener("wheel",ut)}}});var Et=function(){j&&Be(!1),B(!1),U.current=!1};return qm(function(){X.isInvalidate()||Ce(X,!1)},[_,S]),qm(function(){var ut=zc(u);ae(ut);var gt=zc(ce(ve));(!ut.equals(gt)||!U.current||S)&&Ce(ut,U.current)},[u]),qm(function(){S&&H()},[ve]),d.createElement("div",{ref:I,className:Ee(n,r,ne(ne(ne(ne(ne({},"".concat(n,"-focused"),V),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),X.isNaN()),"".concat(n,"-out-of-range"),!X.isInvalidate()&&!de(X))),style:i,onFocus:function(){B(!0)},onBlur:Et,onKeyDown:Ke,onKeyUp:qe,onCompositionStart:We,onCompositionEnd:ge,onBeforeInput:Xe},b&&d.createElement(yXe,{prefixCls:n,upNode:h,downNode:m,upDisabled:we,downDisabled:se,onStep:Ve}),d.createElement("div",{className:"".concat(N,"-wrap")},d.createElement("input",tt({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:l},A,{ref:ga(F,t),className:N,value:ve,onChange:ze,disabled:f,readOnly:p}))))}),CXe=d.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,a=i===void 0?"rc-input-number":i,o=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,p=e.classNames,h=Ht(e,xXe),m=d.useRef(null),g=d.useRef(null),v=d.useRef(null),y=function(b){v.current&&KB(v.current,b)};return d.useImperativeHandle(t,function(){return pXe(v.current,{focus:y,nativeElement:m.current.nativeElement||g.current})}),d.createElement(U8,{className:f,triggerFocus:y,prefixCls:a,value:o,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:m},d.createElement(SXe,tt({prefixCls:a,disabled:n,ref:v,domRef:g,className:p==null?void 0:p.input},h)))});const _Xe=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},jy(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new ur(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},MX=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const a=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},kXe=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:o,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:h,colorTextDescription:m,motionDurationMid:g,handleHoverColor:v,handleOpacity:y,paddingInline:w,paddingBlock:b,handleBg:C,handleActiveBg:k,colorTextDisabled:S,borderRadiusSM:_,borderRadiusLG:E,controlWidth:$,handleBorderColor:M,filledHandleBg:P,lineHeightLG:R,calc:O}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),xg(e)),{display:"inline-block",width:$,margin:0,padding:0,borderRadius:i}),j8(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${Me(n)} ${r} ${M}`}}})),A8(e,{[`${t}-handler-wrap`]:{background:P,[`${t}-handler-down`]:{borderBlockStart:`${Me(n)} ${r} ${M}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),N8(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,lineHeight:R,borderRadius:E,[`input${t}-input`]:{height:O(s).sub(O(n).mul(2)).equal(),padding:`${Me(p)} ${Me(h)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:_,[`input${t}-input`]:{height:O(l).sub(O(n).mul(2)).equal(),padding:`${Me(f)} ${Me(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},ar(e)),fge(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:E,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:_}}},lge(e)),uge(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{width:"100%",padding:`${Me(b)} ${Me(w)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),D8(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:y,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:m,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Me(n)} ${r} ${M}`,transition:`all ${g} linear`,"&:active":{background:k},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner - `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},yh()),{color:m,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},kX(e,"lg")),kX(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},wh()),{color:m,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},MX(e,"lg")),MX(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:S}})}]},_Xe=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:a,borderRadiusLG:o,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Me(n)} 0`}},wg(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:o,paddingInlineStart:l,[`input${t}-input`]:{padding:`${Me(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Me(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},kXe=Jn("InputNumber",e=>{const t=Hn(e,Iy(e));return[CXe(t),_Xe(t),Wg(t)]},SXe,{unitless:{handleOpacity:!0}});var EXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=d.useContext(Zt),i=d.useRef(null);d.useImperativeHandle(t,()=>i.current);const{className:a,rootClassName:o,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:p,suffix:h,bordered:m,readOnly:g,status:v,controls:y,variant:b}=e,w=EXe(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),_=n("input-number",c),k=qr(_),[S,C,E]=kXe(_,k),{compactSize:$,compactItemClassnames:M}=_u(_,r);let P=d.createElement(Wge,{className:`${_}-handler-up-inner`}),I=d.createElement($y,{className:`${_}-handler-down-inner`});const O=typeof y=="boolean"?y:void 0;typeof y=="object"&&(P=typeof y.upIcon>"u"?P:d.createElement("span",{className:`${_}-handler-up-inner`},y.upIcon),I=typeof y.downIcon>"u"?I:d.createElement("span",{className:`${_}-handler-down-inner`},y.downIcon));const{hasFeedback:A,status:R,isFormItemInput:j,feedbackIcon:N}=d.useContext(sa),D=ku(R,v),V=Hi(X=>{var ae;return(ae=s??$)!==null&&ae!==void 0?ae:X}),F=d.useContext(ga),K=l??F,[B,U]=Md("inputNumber",b,m),Z=A&&d.createElement(d.Fragment,null,N),ee=Ee({[`${_}-lg`]:V==="large",[`${_}-sm`]:V==="small",[`${_}-rtl`]:r==="rtl",[`${_}-in-form-item`]:j},C),ie=`${_}-group`,Y=d.createElement(xXe,Object.assign({ref:i,disabled:K,className:Ee(E,k,a,o,M),upHandler:P,downHandler:I,prefixCls:_,readOnly:g,controls:O,prefix:p,suffix:Z||h,addonBefore:u&&d.createElement(mu,{form:!0,space:!0},u),addonAfter:f&&d.createElement(mu,{form:!0,space:!0},f),classNames:{input:ee,variant:Ee({[`${_}-${B}`]:U},jl(_,D,A)),affixWrapper:Ee({[`${_}-affix-wrapper-sm`]:V==="small",[`${_}-affix-wrapper-lg`]:V==="large",[`${_}-affix-wrapper-rtl`]:r==="rtl",[`${_}-affix-wrapper-without-controls`]:y===!1},C),wrapper:Ee({[`${ie}-rtl`]:r==="rtl"},C),groupWrapper:Ee({[`${_}-group-wrapper-sm`]:V==="small",[`${_}-group-wrapper-lg`]:V==="large",[`${_}-group-wrapper-rtl`]:r==="rtl",[`${_}-group-wrapper-${B}`]:U},jl(`${_}-group-wrapper`,D,A),C)}},w));return S(Y)}),Af=Kge,$Xe=e=>d.createElement(zn,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(Kge,Object.assign({},e)));Af._InternalPanelDoNotUseOrYouWillBeFired=$Xe;const Km=e=>{let{prefixCls:t,min:n=0,max:r=100,value:i,onChange:a,className:o,formatter:s}=e;const l=`${t}-steppers`,[c,u]=d.useState(i);return d.useEffect(()=>{Number.isNaN(i)||u(i)},[i]),te.createElement(Af,{className:Ee(l,o),min:n,max:r,value:c,formatter:s,size:"small",onChange:f=>{i||u(f||0),a==null||a(f)}})},MXe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-alpha-input`,[a,o]=d.useState(Zo(n||"#000"));d.useEffect(()=>{n&&o(n)},[n]);const s=l=>{const c=a.toHsb();c.a=(l||0)/100;const u=Zo(c);n||o(u),r==null||r(u)};return te.createElement(Km,{value:JL(a),prefixCls:t,formatter:l=>`${l}%`,className:i,onChange:s})},TXe=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Zt),{prefixCls:r,className:i}=e,a=t("input-group",r),o=t("input"),[s,l]=LB(o),c=Ee(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,i),u=d.useContext(sa),f=d.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(d.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(sa.Provider,{value:f},e.children)))},qB=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:te.createElement($d,null)}),t};function Gge(e,t){const n=d.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,a,o,s;!((i=e.current)===null||i===void 0)&&i.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return d.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function PXe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var OXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i=!0,status:a,size:o,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:f,addonAfter:p,addonBefore:h,className:m,style:g,styles:v,rootClassName:y,onChange:b,classNames:w,variant:_}=e,k=OXe(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:C,input:E}=te.useContext(Zt),$=S("input",r),M=d.useRef(null),P=qr($),[I,O,A]=LB($,P),{compactSize:R,compactItemClassnames:j}=_u($,C),N=Hi(pe=>{var me;return(me=o??R)!==null&&me!==void 0?me:pe}),D=te.useContext(ga),V=s??D,{status:F,hasFeedback:K,feedbackIcon:B}=d.useContext(sa),U=ku(F,a),Z=PXe(e)||!!K;d.useRef(Z);const ee=Gge(M,!0),ie=pe=>{ee(),l==null||l(pe)},Y=pe=>{ee(),c==null||c(pe)},X=pe=>{ee(),b==null||b(pe)},ae=(K||u)&&te.createElement(te.Fragment,null,u,K&&B),oe=qB(f??(E==null?void 0:E.allowClear)),[le,ce]=Md("input",_,i);return I(te.createElement(uXe,Object.assign({ref:va(t,M),prefixCls:$,autoComplete:E==null?void 0:E.autoComplete},k,{disabled:V,onBlur:ie,onFocus:Y,style:Object.assign(Object.assign({},E==null?void 0:E.style),g),styles:Object.assign(Object.assign({},E==null?void 0:E.styles),v),suffix:ae,allowClear:oe,className:Ee(m,y,A,P,j,E==null?void 0:E.className),onChange:X,addonBefore:h&&te.createElement(mu,{form:!0,space:!0},h),addonAfter:p&&te.createElement(mu,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},w),E==null?void 0:E.classNames),{input:Ee({[`${$}-sm`]:N==="small",[`${$}-lg`]:N==="large",[`${$}-rtl`]:C==="rtl"},w==null?void 0:w.input,(n=E==null?void 0:E.classNames)===null||n===void 0?void 0:n.input,O),variant:Ee({[`${$}-${le}`]:ce},jl($,U)),affixWrapper:Ee({[`${$}-affix-wrapper-sm`]:N==="small",[`${$}-affix-wrapper-lg`]:N==="large",[`${$}-affix-wrapper-rtl`]:C==="rtl"},O),wrapper:Ee({[`${$}-group-rtl`]:C==="rtl"},O),groupWrapper:Ee({[`${$}-group-wrapper-sm`]:N==="small",[`${$}-group-wrapper-lg`]:N==="large",[`${$}-group-wrapper-rtl`]:C==="rtl",[`${$}-group-wrapper-${le}`]:ce},jl(`${$}-group-wrapper`,U,K),O)})})))}),IXe=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},RXe=Jn(["Input","OTP"],e=>{const t=Hn(e,Iy(e));return[IXe(t)]},Ry);var jXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{value:n,onChange:r,onActiveChange:i,index:a,mask:o}=e,s=jXe(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof o=="string"?o:n,c=m=>{r(a,m.target.value)},u=d.useRef(null);d.useImperativeHandle(t,()=>u.current);const f=()=>{rr(()=>{var m;const g=(m=u.current)===null||m===void 0?void 0:m.input;document.activeElement===g&&g&&g.select()})},p=m=>{const{key:g,ctrlKey:v,metaKey:y}=m;g==="ArrowLeft"?i(a-1):g==="ArrowRight"?i(a+1):g==="z"&&(v||y)&&m.preventDefault(),f()},h=m=>{m.key==="Backspace"&&!n&&i(a-1),f()};return d.createElement(U8,Object.assign({type:o===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:f,onKeyDown:p,onKeyUp:h,onMouseDown:f,onMouseUp:f}))});var AXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:l,variant:c,disabled:u,status:f,autoFocus:p,mask:h,type:m,onInput:g,inputMode:v}=e,y=AXe(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:b,direction:w}=d.useContext(Zt),_=b("otp",n),k=Bi(y,{aria:!0,data:!0,attr:!0}),S=qr(_),[C,E,$]=RXe(_,S),M=Hi(Z=>i??Z),P=d.useContext(sa),I=ku(P.status,f),O=d.useMemo(()=>Object.assign(Object.assign({},P),{status:I,hasFeedback:!1,feedbackIcon:null}),[P,I]),A=d.useRef(null),R=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var Z;(Z=R.current[0])===null||Z===void 0||Z.focus()},blur:()=>{var Z;for(let ee=0;eel?l(Z):Z,[N,D]=d.useState(kS(j(a||"")));d.useEffect(()=>{o!==void 0&&D(kS(o))},[o]);const V=Vn(Z=>{D(Z),g&&g(Z),s&&Z.length===r&&Z.every(ee=>ee)&&Z.some((ee,ie)=>N[ie]!==ee)&&s(Z.join(""))}),F=Vn((Z,ee)=>{let ie=ct(N);for(let X=0;X=0&&!ie[X];X-=1)ie.pop();const Y=j(ie.map(X=>X||" ").join(""));return ie=kS(Y).map((X,ae)=>X===" "&&!ie[ae]?ie[ae]:X),ie}),K=(Z,ee)=>{var ie;const Y=F(Z,ee),X=Math.min(Z+ee.length,r-1);X!==Z&&Y[Z]!==void 0&&((ie=R.current[X])===null||ie===void 0||ie.focus()),V(Y)},B=Z=>{var ee;(ee=R.current[Z])===null||ee===void 0||ee.focus()},U={variant:c,disabled:u,status:I,mask:h,type:m,inputMode:v};return C(d.createElement("div",Object.assign({},k,{ref:A,className:Ee(_,{[`${_}-sm`]:M==="small",[`${_}-lg`]:M==="large",[`${_}-rtl`]:w==="rtl"},$,E)}),d.createElement(sa.Provider,{value:O},Array.from({length:r}).map((Z,ee)=>{const ie=`otp-${ee}`,Y=N[ee]||"";return d.createElement(NXe,Object.assign({ref:X=>{R.current[ee]=X},key:ie,index:ee,size:M,htmlSize:1,className:`${_}-input`,onChange:K,value:Y,onActiveChange:B,autoFocus:ee===0&&p},U))}))))});var FXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},LXe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:FXe}))},Yge=d.forwardRef(LXe),BXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},zXe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:BXe}))},W8=d.forwardRef(zXe),HXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);ie?d.createElement(W8,null):d.createElement(Yge,null),WXe={click:"onClick",hover:"onMouseOver"},VXe=d.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:a=UXe}=e,o=d.useContext(ga),s=n??o,l=typeof i=="object"&&i.visible!==void 0,[c,u]=d.useState(()=>l?i.visible:!1),f=d.useRef(null);d.useEffect(()=>{l&&u(i.visible)},[l,i]);const p=Gge(f),h=()=>{var M;if(s)return;c&&p();const P=!c;u(P),typeof i=="object"&&((M=i.onVisibleChange)===null||M===void 0||M.call(i,P))},m=M=>{const P=WXe[r]||"",I=a(c),O={[P]:h,className:`${M}-icon`,key:"passwordIcon",onMouseDown:A=>{A.preventDefault()},onMouseUp:A=>{A.preventDefault()}};return d.cloneElement(d.isValidElement(I)?I:d.createElement("span",null,I),O)},{className:g,prefixCls:v,inputPrefixCls:y,size:b}=e,w=HXe(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:_}=d.useContext(Zt),k=_("input",y),S=_("input-password",v),C=i&&m(S),E=Ee(S,g,{[`${S}-${b}`]:!!b}),$=Object.assign(Object.assign({},$r(w,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:E,prefixCls:k,suffix:C});return b&&($.size=b),d.createElement(U8,Object.assign({ref:va(t,f)},$))});var qXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:o,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:p,onCompositionStart:h,onCompositionEnd:m}=e,g=qXe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:y}=d.useContext(Zt),b=d.useRef(!1),w=v("input-search",n),_=v("input",r),{compactSize:k}=_u(w,y),S=Hi(K=>{var B;return(B=a??k)!==null&&B!==void 0?B:K}),C=d.useRef(null),E=K=>{K!=null&&K.target&&K.type==="click"&&f&&f(K.target.value,K,{source:"clear"}),p==null||p(K)},$=K=>{var B;document.activeElement===((B=C.current)===null||B===void 0?void 0:B.input)&&K.preventDefault()},M=K=>{var B,U;f&&f((U=(B=C.current)===null||B===void 0?void 0:B.input)===null||U===void 0?void 0:U.value,K,{source:"input"})},P=K=>{b.current||c||M(K)},I=typeof s=="boolean"?d.createElement(My,null):null,O=`${w}-button`;let A;const R=s||{},j=R.type&&R.type.__ANT_BUTTON===!0;j||R.type==="button"?A=oa(R,Object.assign({onMouseDown:$,onClick:K=>{var B,U;(U=(B=R==null?void 0:R.props)===null||B===void 0?void 0:B.onClick)===null||U===void 0||U.call(B,K),M(K)},key:"enterButton"},j?{className:O,size:S}:{})):A=d.createElement(Yt,{className:O,type:s?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:$,onClick:M,loading:c,icon:I},s),l&&(A=[A,oa(l,{key:"addonAfter"})]);const N=Ee(w,{[`${w}-rtl`]:y==="rtl",[`${w}-${S}`]:!!S,[`${w}-with-button`]:!!s},i),D=Object.assign(Object.assign({},g),{className:N,prefixCls:_,type:"search"}),V=K=>{b.current=!0,h==null||h(K)},F=K=>{b.current=!1,m==null||m(K)};return d.createElement(U8,Object.assign({ref:va(C,t),onPressEnter:P},D,{size:S,onCompositionStart:V,onCompositionEnd:F,addonAfter:A,suffix:o,onChange:E,disabled:u}))});var GXe=` + `]:{color:S}})}]},EXe=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:a,borderRadiusLG:o,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Me(n)} 0`}},xg(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:o,paddingInlineStart:l,[`input${t}-input`]:{padding:`${Me(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Me(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},$Xe=Jn("InputNumber",e=>{const t=Hn(e,Iy(e));return[kXe(t),EXe(t),Vg(t)]},_Xe,{unitless:{handleOpacity:!0}});var MXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=d.useContext(Xt),i=d.useRef(null);d.useImperativeHandle(t,()=>i.current);const{className:a,rootClassName:o,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:p,suffix:h,bordered:m,readOnly:g,status:v,controls:y,variant:w}=e,b=MXe(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),C=n("input-number",c),k=qr(C),[S,_,E]=$Xe(C,k),{compactSize:$,compactItemClassnames:M}=$u(C,r);let P=d.createElement(Gge,{className:`${C}-handler-up-inner`}),R=d.createElement(My,{className:`${C}-handler-down-inner`});const O=typeof y=="boolean"?y:void 0;typeof y=="object"&&(P=typeof y.upIcon>"u"?P:d.createElement("span",{className:`${C}-handler-up-inner`},y.upIcon),R=typeof y.downIcon>"u"?R:d.createElement("span",{className:`${C}-handler-down-inner`},y.downIcon));const{hasFeedback:j,status:I,isFormItemInput:A,feedbackIcon:N}=d.useContext(oa),F=Mu(I,v),K=Bi(X=>{var ae;return(ae=s??$)!==null&&ae!==void 0?ae:X}),L=d.useContext(ma),V=l??L,[B,U]=Od("inputNumber",w,m),Y=j&&d.createElement(d.Fragment,null,N),ee=Ee({[`${C}-lg`]:K==="large",[`${C}-sm`]:K==="small",[`${C}-rtl`]:r==="rtl",[`${C}-in-form-item`]:A},_),ie=`${C}-group`,Z=d.createElement(CXe,Object.assign({ref:i,disabled:V,className:Ee(E,k,a,o,M),upHandler:P,downHandler:R,prefixCls:C,readOnly:g,controls:O,prefix:p,suffix:Y||h,addonBefore:u&&d.createElement(bu,{form:!0,space:!0},u),addonAfter:f&&d.createElement(bu,{form:!0,space:!0},f),classNames:{input:ee,variant:Ee({[`${C}-${B}`]:U},Al(C,F,j)),affixWrapper:Ee({[`${C}-affix-wrapper-sm`]:K==="small",[`${C}-affix-wrapper-lg`]:K==="large",[`${C}-affix-wrapper-rtl`]:r==="rtl",[`${C}-affix-wrapper-without-controls`]:y===!1},_),wrapper:Ee({[`${ie}-rtl`]:r==="rtl"},_),groupWrapper:Ee({[`${C}-group-wrapper-sm`]:K==="small",[`${C}-group-wrapper-lg`]:K==="large",[`${C}-group-wrapper-rtl`]:r==="rtl",[`${C}-group-wrapper-${B}`]:U},Al(`${C}-group-wrapper`,F,j),_)}},b));return S(Z)}),Af=Zge,TXe=e=>d.createElement(zn,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(Zge,Object.assign({},e)));Af._InternalPanelDoNotUseOrYouWillBeFired=TXe;const Gm=e=>{let{prefixCls:t,min:n=0,max:r=100,value:i,onChange:a,className:o,formatter:s}=e;const l=`${t}-steppers`,[c,u]=d.useState(i);return d.useEffect(()=>{Number.isNaN(i)||u(i)},[i]),te.createElement(Af,{className:Ee(l,o),min:n,max:r,value:c,formatter:s,size:"small",onChange:f=>{i||u(f||0),a==null||a(f)}})},PXe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-alpha-input`,[a,o]=d.useState(Xo(n||"#000"));d.useEffect(()=>{n&&o(n)},[n]);const s=l=>{const c=a.toHsb();c.a=(l||0)/100;const u=Xo(c);n||o(u),r==null||r(u)};return te.createElement(Gm,{value:tB(a),prefixCls:t,formatter:l=>`${l}%`,className:i,onChange:s})},OXe=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Xt),{prefixCls:r,className:i}=e,a=t("input-group",r),o=t("input"),[s,l]=zB(o),c=Ee(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,i),u=d.useContext(oa),f=d.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(d.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(oa.Provider,{value:f},e.children)))},GB=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:te.createElement(Pd,null)}),t};function Qge(e,t){const n=d.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,a,o,s;!((i=e.current)===null||i===void 0)&&i.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return d.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function RXe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var IXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i=!0,status:a,size:o,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:f,addonAfter:p,addonBefore:h,className:m,style:g,styles:v,rootClassName:y,onChange:w,classNames:b,variant:C}=e,k=IXe(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:_,input:E}=te.useContext(Xt),$=S("input",r),M=d.useRef(null),P=qr($),[R,O,j]=zB($,P),{compactSize:I,compactItemClassnames:A}=$u($,_),N=Bi(pe=>{var me;return(me=o??I)!==null&&me!==void 0?me:pe}),F=te.useContext(ma),K=s??F,{status:L,hasFeedback:V,feedbackIcon:B}=d.useContext(oa),U=Mu(L,a),Y=RXe(e)||!!V;d.useRef(Y);const ee=Qge(M,!0),ie=pe=>{ee(),l==null||l(pe)},Z=pe=>{ee(),c==null||c(pe)},X=pe=>{ee(),w==null||w(pe)},ae=(V||u)&&te.createElement(te.Fragment,null,u,V&&B),oe=GB(f??(E==null?void 0:E.allowClear)),[le,ce]=Od("input",C,i);return R(te.createElement(fXe,Object.assign({ref:ga(t,M),prefixCls:$,autoComplete:E==null?void 0:E.autoComplete},k,{disabled:K,onBlur:ie,onFocus:Z,style:Object.assign(Object.assign({},E==null?void 0:E.style),g),styles:Object.assign(Object.assign({},E==null?void 0:E.styles),v),suffix:ae,allowClear:oe,className:Ee(m,y,j,P,A,E==null?void 0:E.className),onChange:X,addonBefore:h&&te.createElement(bu,{form:!0,space:!0},h),addonAfter:p&&te.createElement(bu,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},b),E==null?void 0:E.classNames),{input:Ee({[`${$}-sm`]:N==="small",[`${$}-lg`]:N==="large",[`${$}-rtl`]:_==="rtl"},b==null?void 0:b.input,(n=E==null?void 0:E.classNames)===null||n===void 0?void 0:n.input,O),variant:Ee({[`${$}-${le}`]:ce},Al($,U)),affixWrapper:Ee({[`${$}-affix-wrapper-sm`]:N==="small",[`${$}-affix-wrapper-lg`]:N==="large",[`${$}-affix-wrapper-rtl`]:_==="rtl"},O),wrapper:Ee({[`${$}-group-rtl`]:_==="rtl"},O),groupWrapper:Ee({[`${$}-group-wrapper-sm`]:N==="small",[`${$}-group-wrapper-lg`]:N==="large",[`${$}-group-wrapper-rtl`]:_==="rtl",[`${$}-group-wrapper-${le}`]:ce},Al(`${$}-group-wrapper`,U,V),O)})})))}),jXe=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},NXe=Jn(["Input","OTP"],e=>{const t=Hn(e,Iy(e));return[jXe(t)]},jy);var AXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{value:n,onChange:r,onActiveChange:i,index:a,mask:o}=e,s=AXe(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof o=="string"?o:n,c=m=>{r(a,m.target.value)},u=d.useRef(null);d.useImperativeHandle(t,()=>u.current);const f=()=>{rr(()=>{var m;const g=(m=u.current)===null||m===void 0?void 0:m.input;document.activeElement===g&&g&&g.select()})},p=m=>{const{key:g,ctrlKey:v,metaKey:y}=m;g==="ArrowLeft"?i(a-1):g==="ArrowRight"?i(a+1):g==="z"&&(v||y)&&m.preventDefault(),f()},h=m=>{m.key==="Backspace"&&!n&&i(a-1),f()};return d.createElement(W8,Object.assign({type:o===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:f,onKeyDown:p,onKeyUp:h,onMouseDown:f,onMouseUp:f}))});var FXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:l,variant:c,disabled:u,status:f,autoFocus:p,mask:h,type:m,onInput:g,inputMode:v}=e,y=FXe(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:w,direction:b}=d.useContext(Xt),C=w("otp",n),k=Fi(y,{aria:!0,data:!0,attr:!0}),S=qr(C),[_,E,$]=NXe(C,S),M=Bi(Y=>i??Y),P=d.useContext(oa),R=Mu(P.status,f),O=d.useMemo(()=>Object.assign(Object.assign({},P),{status:R,hasFeedback:!1,feedbackIcon:null}),[P,R]),j=d.useRef(null),I=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var Y;(Y=I.current[0])===null||Y===void 0||Y.focus()},blur:()=>{var Y;for(let ee=0;eel?l(Y):Y,[N,F]=d.useState($S(A(a||"")));d.useEffect(()=>{o!==void 0&&F($S(o))},[o]);const K=Vn(Y=>{F(Y),g&&g(Y),s&&Y.length===r&&Y.every(ee=>ee)&&Y.some((ee,ie)=>N[ie]!==ee)&&s(Y.join(""))}),L=Vn((Y,ee)=>{let ie=lt(N);for(let X=0;X=0&&!ie[X];X-=1)ie.pop();const Z=A(ie.map(X=>X||" ").join(""));return ie=$S(Z).map((X,ae)=>X===" "&&!ie[ae]?ie[ae]:X),ie}),V=(Y,ee)=>{var ie;const Z=L(Y,ee),X=Math.min(Y+ee.length,r-1);X!==Y&&Z[Y]!==void 0&&((ie=I.current[X])===null||ie===void 0||ie.focus()),K(Z)},B=Y=>{var ee;(ee=I.current[Y])===null||ee===void 0||ee.focus()},U={variant:c,disabled:u,status:R,mask:h,type:m,inputMode:v};return _(d.createElement("div",Object.assign({},k,{ref:j,className:Ee(C,{[`${C}-sm`]:M==="small",[`${C}-lg`]:M==="large",[`${C}-rtl`]:b==="rtl"},$,E)}),d.createElement(oa.Provider,{value:O},Array.from({length:r}).map((Y,ee)=>{const ie=`otp-${ee}`,Z=N[ee]||"";return d.createElement(DXe,Object.assign({ref:X=>{I.current[ee]=X},key:ie,index:ee,size:M,htmlSize:1,className:`${C}-input`,onChange:V,value:Z,onActiveChange:B,autoFocus:ee===0&&p},U))}))))});var BXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},zXe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:BXe}))},Jge=d.forwardRef(zXe),HXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},UXe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:HXe}))},V8=d.forwardRef(UXe),WXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);ie?d.createElement(V8,null):d.createElement(Jge,null),qXe={click:"onClick",hover:"onMouseOver"},KXe=d.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:a=VXe}=e,o=d.useContext(ma),s=n??o,l=typeof i=="object"&&i.visible!==void 0,[c,u]=d.useState(()=>l?i.visible:!1),f=d.useRef(null);d.useEffect(()=>{l&&u(i.visible)},[l,i]);const p=Qge(f),h=()=>{var M;if(s)return;c&&p();const P=!c;u(P),typeof i=="object"&&((M=i.onVisibleChange)===null||M===void 0||M.call(i,P))},m=M=>{const P=qXe[r]||"",R=a(c),O={[P]:h,className:`${M}-icon`,key:"passwordIcon",onMouseDown:j=>{j.preventDefault()},onMouseUp:j=>{j.preventDefault()}};return d.cloneElement(d.isValidElement(R)?R:d.createElement("span",null,R),O)},{className:g,prefixCls:v,inputPrefixCls:y,size:w}=e,b=WXe(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=d.useContext(Xt),k=C("input",y),S=C("input-password",v),_=i&&m(S),E=Ee(S,g,{[`${S}-${w}`]:!!w}),$=Object.assign(Object.assign({},$r(b,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:E,prefixCls:k,suffix:_});return w&&($.size=w),d.createElement(W8,Object.assign({ref:ga(t,f)},$))});var GXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:o,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:p,onCompositionStart:h,onCompositionEnd:m}=e,g=GXe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:y}=d.useContext(Xt),w=d.useRef(!1),b=v("input-search",n),C=v("input",r),{compactSize:k}=$u(b,y),S=Bi(V=>{var B;return(B=a??k)!==null&&B!==void 0?B:V}),_=d.useRef(null),E=V=>{V!=null&&V.target&&V.type==="click"&&f&&f(V.target.value,V,{source:"clear"}),p==null||p(V)},$=V=>{var B;document.activeElement===((B=_.current)===null||B===void 0?void 0:B.input)&&V.preventDefault()},M=V=>{var B,U;f&&f((U=(B=_.current)===null||B===void 0?void 0:B.input)===null||U===void 0?void 0:U.value,V,{source:"input"})},P=V=>{w.current||c||M(V)},R=typeof s=="boolean"?d.createElement(Ty,null):null,O=`${b}-button`;let j;const I=s||{},A=I.type&&I.type.__ANT_BUTTON===!0;A||I.type==="button"?j=aa(I,Object.assign({onMouseDown:$,onClick:V=>{var B,U;(U=(B=I==null?void 0:I.props)===null||B===void 0?void 0:B.onClick)===null||U===void 0||U.call(B,V),M(V)},key:"enterButton"},A?{className:O,size:S}:{})):j=d.createElement(Yt,{className:O,type:s?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:$,onClick:M,loading:c,icon:R},s),l&&(j=[j,aa(l,{key:"addonAfter"})]);const N=Ee(b,{[`${b}-rtl`]:y==="rtl",[`${b}-${S}`]:!!S,[`${b}-with-button`]:!!s},i),F=Object.assign(Object.assign({},g),{className:N,prefixCls:C,type:"search"}),K=V=>{w.current=!0,h==null||h(V)},L=V=>{w.current=!1,m==null||m(V)};return d.createElement(W8,Object.assign({ref:ga(_,t),onPressEnter:P},F,{size:S,onCompositionStart:K,onCompositionEnd:L,addonAfter:j,suffix:o,onChange:E,disabled:u}))});var XXe=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -399,7 +399,7 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,YXe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],K9={},al;function XXe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&K9[n])return K9[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=YXe.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(K9[n]=l),l}function ZXe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;al||(al=document.createElement("textarea"),al.setAttribute("tab-index","-1"),al.setAttribute("aria-hidden","true"),al.setAttribute("name","hiddenTextarea"),document.body.appendChild(al)),e.getAttribute("wrap")?al.setAttribute("wrap",e.getAttribute("wrap")):al.removeAttribute("wrap");var i=XXe(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,l=i.sizingStyle;al.setAttribute("style","".concat(l,";").concat(GXe)),al.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,p=al.scrollHeight;if(s==="border-box"?p+=o:s==="content-box"&&(p-=a),n!==null||r!==null){al.value=" ";var h=al.scrollHeight-a;n!==null&&(c=h*n,s==="border-box"&&(c=c+a+o),p=Math.max(c,p)),r!==null&&(u=h*r,s==="border-box"&&(u=u+a+o),f=p>u?"":"hidden",p=Math.min(u,p))}var m={height:p,overflowY:f,resize:"none"};return c&&(m.minHeight=c),u&&(m.maxHeight=u),m}var QXe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],G9=0,Y9=1,X9=2,JXe=d.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,o=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=Ut(n,QXe),h=In(i,{value:a,postState:function(Z){return Z??""}}),m=Te(h,2),g=m[0],v=m[1],y=function(Z){v(Z.target.value),f==null||f(Z)},b=d.useRef();d.useImperativeHandle(t,function(){return{textArea:b.current}});var w=d.useMemo(function(){return o&&Kt(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),_=Te(w,2),k=_[0],S=_[1],C=!!o,E=function(){try{if(document.activeElement===b.current){var Z=b.current,ee=Z.selectionStart,ie=Z.selectionEnd,Y=Z.scrollTop;b.current.setSelectionRange(ee,ie),b.current.scrollTop=Y}}catch{}},$=d.useState(X9),M=Te($,2),P=M[0],I=M[1],O=d.useState(),A=Te(O,2),R=A[0],j=A[1],N=function(){I(G9)};nr(function(){C&&N()},[a,k,S,C]),nr(function(){if(P===G9)I(Y9);else if(P===Y9){var U=ZXe(b.current,!1,k,S);I(X9),j(U)}else E()},[P]);var D=d.useRef(),V=function(){rr.cancel(D.current)},F=function(Z){P===X9&&(s==null||s(Z),o&&(V(),D.current=rr(function(){N()})))};d.useEffect(function(){return V},[]);var K=C?R:null,B=q(q({},c),K);return(P===G9||P===Y9)&&(B.overflowY="hidden",B.overflowX="hidden"),d.createElement(Go,{onResize:F,disabled:!(o||s)},d.createElement("textarea",tt({},p,{ref:b,style:B,className:Ee(r,l,ne({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:y})))}),eZe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Xge=te.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,a=e.onFocus,o=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,m=h===void 0?"rc-textarea":h,g=e.showCount,v=e.count,y=e.className,b=e.style,w=e.disabled,_=e.hidden,k=e.classNames,S=e.styles,C=e.onResize,E=e.onClear,$=e.onPressEnter,M=e.readOnly,P=e.autoSize,I=e.onKeyDown,O=Ut(e,eZe),A=In(r,{value:i,defaultValue:r}),R=Te(A,2),j=R[0],N=R[1],D=j==null?"":String(j),V=te.useState(!1),F=Te(V,2),K=F[0],B=F[1],U=te.useRef(!1),Z=te.useState(null),ee=Te(Z,2),ie=ee[0],Y=ee[1],X=d.useRef(null),ae=d.useRef(null),oe=function(){var ge;return(ge=ae.current)===null||ge===void 0?void 0:ge.textArea},le=function(){oe().focus()};d.useImperativeHandle(t,function(){var We;return{resizableTextArea:ae.current,focus:le,blur:function(){oe().blur()},nativeElement:((We=X.current)===null||We===void 0?void 0:We.nativeElement)||oe()}}),d.useEffect(function(){B(function(We){return!w&&We})},[w]);var ce=te.useState(null),pe=Te(ce,2),me=pe[0],re=pe[1];te.useEffect(function(){if(me){var We;(We=oe()).setSelectionRange.apply(We,ct(me))}},[me]);var fe=qge(v,g),ve=(n=fe.max)!==null&&n!==void 0?n:c,$e=Number(ve)>0,Ce=fe.strategy(D),be=!!ve&&Ce>ve,Se=function(ge,ze){var Ve=ze;!U.current&&fe.exceedFormatter&&fe.max&&fe.strategy(ze)>fe.max&&(Ve=fe.exceedFormatter(ze,{max:fe.max}),ze!==Ve&&re([oe().selectionStart||0,oe().selectionEnd||0])),N(Ve),x6(ge.currentTarget,ge,s,Ve)},we=function(ge){U.current=!0,u==null||u(ge)},se=function(ge){U.current=!1,Se(ge,ge.currentTarget.value),f==null||f(ge)},ye=function(ge){Se(ge,ge.target.value)},Oe=function(ge){ge.key==="Enter"&&$&&$(ge),I==null||I(ge)},z=function(ge){B(!0),a==null||a(ge)},H=function(ge){B(!1),o==null||o(ge)},G=function(ge){N(""),le(),x6(oe(),ge,s)},de=p,xe;fe.show&&(fe.showFormatter?xe=fe.showFormatter({value:D,count:Ce,maxLength:ve}):xe="".concat(Ce).concat($e?" / ".concat(ve):""),de=te.createElement(te.Fragment,null,de,te.createElement("span",{className:Ee("".concat(m,"-data-count"),k==null?void 0:k.count),style:S==null?void 0:S.count},xe)));var he=function(ge){var ze;C==null||C(ge),(ze=oe())!==null&&ze!==void 0&&ze.style.height&&Y(!0)},Ue=!P&&!g&&!l;return te.createElement(H8,{ref:X,value:D,allowClear:l,handleReset:G,suffix:de,prefixCls:m,classNames:q(q({},k),{},{affixWrapper:Ee(k==null?void 0:k.affixWrapper,ne(ne({},"".concat(m,"-show-count"),g),"".concat(m,"-textarea-allow-clear"),l))}),disabled:w,focused:K,className:Ee(y,be&&"".concat(m,"-out-of-range")),style:q(q({},b),ie&&!Ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof xe=="string"?xe:void 0}},hidden:_,readOnly:M,onClear:E},te.createElement(JXe,tt({},O,{autoSize:P,maxLength:c,onKeyDown:Oe,onChange:ye,onFocus:z,onBlur:H,onCompositionStart:we,onCompositionEnd:se,className:Ee(k==null?void 0:k.textarea),style:q(q({},S==null?void 0:S.textarea),{},{resize:b==null?void 0:b.resize}),disabled:w,prefixCls:m,onResize:he,ref:ae,readOnly:M})))}),tZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,bordered:a=!0,size:o,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:f,className:p,style:h,styles:m,variant:g}=e,v=tZe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:y,direction:b,textArea:w}=d.useContext(Zt),_=Hi(o),k=d.useContext(ga),S=s??k,{status:C,hasFeedback:E,feedbackIcon:$}=d.useContext(sa),M=ku(C,l),P=d.useRef(null);d.useImperativeHandle(t,()=>{var F;return{resizableTextArea:(F=P.current)===null||F===void 0?void 0:F.resizableTextArea,focus:K=>{var B,U;VB((U=(B=P.current)===null||B===void 0?void 0:B.resizableTextArea)===null||U===void 0?void 0:U.textArea,K)},blur:()=>{var K;return(K=P.current)===null||K===void 0?void 0:K.blur()}}});const I=y("input",i),O=qr(I),[A,R,j]=LB(I,O),[N,D]=Md("textArea",g,a),V=qB(c??(w==null?void 0:w.allowClear));return A(d.createElement(Xge,Object.assign({autoComplete:w==null?void 0:w.autoComplete},v,{style:Object.assign(Object.assign({},w==null?void 0:w.style),h),styles:Object.assign(Object.assign({},w==null?void 0:w.styles),m),disabled:S,allowClear:V,className:Ee(j,O,p,f,w==null?void 0:w.className),classNames:Object.assign(Object.assign(Object.assign({},u),w==null?void 0:w.classNames),{textarea:Ee({[`${I}-sm`]:_==="small",[`${I}-lg`]:_==="large"},R,u==null?void 0:u.textarea,(n=w==null?void 0:w.classNames)===null||n===void 0?void 0:n.textarea),variant:Ee({[`${I}-${N}`]:D},jl(I,M)),affixWrapper:Ee(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:b==="rtl",[`${I}-affix-wrapper-sm`]:_==="small",[`${I}-affix-wrapper-lg`]:_==="large",[`${I}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},R)}),prefixCls:I,suffix:E&&d.createElement("span",{className:`${I}-textarea-suffix`},$),ref:P})))}),Wr=U8;Wr.Group=TXe;Wr.Search=KXe;Wr.TextArea=Zge;Wr.Password=VXe;Wr.OTP=DXe;const nZe=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,rZe=e=>nZe.test(`#${e}`),iZe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hex-input`,[a,o]=d.useState(()=>n?y2(n.toHexString()):void 0);d.useEffect(()=>{n&&o(y2(n.toHexString()))},[n]);const s=l=>{const c=l.target.value;o(y2(c)),rZe(y2(c,!0))&&(r==null||r(Zo(c)))};return te.createElement(Wr,{className:i,value:a,prefix:"#",onChange:s,size:"small"})},aZe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hsb-input`,[a,o]=d.useState(Zo(n||"#000"));d.useEffect(()=>{n&&o(n)},[n]);const s=(l,c)=>{const u=a.toHsb();u[c]=c==="h"?l:(l||0)/100;const f=Zo(u);n||o(f),r==null||r(f)};return te.createElement("div",{className:i},te.createElement(Km,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:i,formatter:l=>e_(l||0).toString(),onChange:l=>s(Number(l),"h")}),te.createElement(Km,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:i,formatter:l=>`${e_(l||0)}%`,onChange:l=>s(Number(l),"s")}),te.createElement(Km,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:i,formatter:l=>`${e_(l||0)}%`,onChange:l=>s(Number(l),"b")}))},oZe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-rgb-input`,[a,o]=d.useState(Zo(n||"#000"));d.useEffect(()=>{n&&o(n)},[n]);const s=(l,c)=>{const u=a.toRgb();u[c]=l||0;const f=Zo(u);n||o(f),r==null||r(f)};return te.createElement("div",{className:i},te.createElement(Km,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:i,onChange:l=>s(Number(l),"r")}),te.createElement(Km,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:i,onChange:l=>s(Number(l),"g")}),te.createElement(Km,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:i,onChange:l=>s(Number(l),"b")}))},sZe=[rh.hex,rh.hsb,rh.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),lZe=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:i,onFormatChange:a,onChange:o,disabledFormat:s}=e,[l,c]=In(rh.hex,{value:n,onChange:a}),u=`${t}-input`,f=h=>{c(h)},p=d.useMemo(()=>{const h={value:r,prefixCls:t,onChange:o};switch(l){case rh.hsb:return te.createElement(aZe,Object.assign({},h));case rh.rgb:return te.createElement(oZe,Object.assign({},h));default:return te.createElement(iZe,Object.assign({},h))}},[l,t,r,o]);return te.createElement("div",{className:`${u}-container`},!s&&te.createElement(Yf,{value:l,variant:"borderless",getPopupContainer:h=>h,popupMatchSelectWidth:68,placement:"bottomRight",onChange:f,className:`${t}-format-select`,size:"small",options:sZe}),te.createElement("div",{className:u},p),!i&&te.createElement(MXe,{prefixCls:t,value:r,onChange:o}))};function Vj(e,t,n){return(e-t)/(n-t)}function KB(e,t,n,r){var i=Vj(t,n,r),a={};switch(e){case"rtl":a.right="".concat(i*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(i*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(i*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(i*100,"%"),a.transform="translateX(-50%)";break}return a}function sm(e,t){return Array.isArray(e)?e[t]:e}var Yg=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),Qge=d.createContext({}),cZe=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],EX=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,a=e.onStartMove,o=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,h=e.onFocus,m=e.onMouseEnter,g=Ut(e,cZe),v=d.useContext(Yg),y=v.min,b=v.max,w=v.direction,_=v.disabled,k=v.keyboard,S=v.range,C=v.tabIndex,E=v.ariaLabelForHandle,$=v.ariaLabelledByForHandle,M=v.ariaRequired,P=v.ariaValueTextFormatterForHandle,I=v.styles,O=v.classNames,A="".concat(n,"-handle"),R=function(ee){_||a(ee,i)},j=function(ee){h==null||h(ee,i)},N=function(ee){m(ee,i)},D=function(ee){if(!_&&k){var ie=null;switch(ee.which||ee.keyCode){case gt.LEFT:ie=w==="ltr"||w==="btt"?-1:1;break;case gt.RIGHT:ie=w==="ltr"||w==="btt"?1:-1;break;case gt.UP:ie=w!=="ttb"?1:-1;break;case gt.DOWN:ie=w!=="ttb"?-1:1;break;case gt.HOME:ie="min";break;case gt.END:ie="max";break;case gt.PAGE_UP:ie=2;break;case gt.PAGE_DOWN:ie=-2;break;case gt.BACKSPACE:case gt.DELETE:o(i);break}ie!==null&&(ee.preventDefault(),f(ie,i))}},V=function(ee){switch(ee.which||ee.keyCode){case gt.LEFT:case gt.RIGHT:case gt.UP:case gt.DOWN:case gt.HOME:case gt.END:case gt.PAGE_UP:case gt.PAGE_DOWN:p==null||p();break}},F=KB(w,r,y,b),K={};if(i!==null){var B;K={tabIndex:_?null:sm(C,i),role:"slider","aria-valuemin":y,"aria-valuemax":b,"aria-valuenow":r,"aria-disabled":_,"aria-label":sm(E,i),"aria-labelledby":sm($,i),"aria-required":sm(M,i),"aria-valuetext":(B=sm(P,i))===null||B===void 0?void 0:B(r),"aria-orientation":w==="ltr"||w==="rtl"?"horizontal":"vertical",onMouseDown:R,onTouchStart:R,onFocus:j,onMouseEnter:N,onKeyDown:D,onKeyUp:V}}var U=d.createElement("div",tt({ref:t,className:Ee(A,ne(ne(ne({},"".concat(A,"-").concat(i+1),i!==null&&S),"".concat(A,"-dragging"),c),"".concat(A,"-dragging-delete"),u),O.handle),style:q(q(q({},F),s),I.handle)},K,g));return l&&(U=l(U,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),U}),uZe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],dZe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,a=e.onOffsetChange,o=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,p=Ut(e,uZe),h=d.useRef({}),m=d.useState(!1),g=Te(m,2),v=g[0],y=g[1],b=d.useState(-1),w=Te(b,2),_=w[0],k=w[1],S=function(P){k(P),y(!0)},C=function(P,I){S(I),f==null||f(P)},E=function(P,I){S(I)};d.useImperativeHandle(t,function(){return{focus:function(P){var I;(I=h.current[P])===null||I===void 0||I.focus()},hideHelp:function(){Ka.flushSync(function(){y(!1)})}}});var $=q({prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:C,onMouseEnter:E},p);return d.createElement(d.Fragment,null,o.map(function(M,P){var I=c===P;return d.createElement(EX,tt({ref:function(A){A?h.current[P]=A:delete h.current[P]},dragging:I,draggingDelete:I&&u,style:sm(r,P),key:P,value:M,valueIndex:P},$))}),l&&v&&d.createElement(EX,tt({key:"a11y"},$,{value:o[_],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),fZe=function(t){var n=t.prefixCls,r=t.style,i=t.children,a=t.value,o=t.onClick,s=d.useContext(Yg),l=s.min,c=s.max,u=s.direction,f=s.includedStart,p=s.includedEnd,h=s.included,m="".concat(n,"-text"),g=KB(u,a,l,c);return d.createElement("span",{className:Ee(m,ne({},"".concat(m,"-active"),h&&f<=a&&a<=p)),style:q(q({},g),r),onMouseDown:function(y){y.stopPropagation()},onClick:function(){o(a)}},i)},pZe=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,a="".concat(n,"-mark");return r.length?d.createElement("div",{className:a},r.map(function(o){var s=o.value,l=o.style,c=o.label;return d.createElement(fZe,{key:s,prefixCls:a,style:l,value:s,onClick:i},c)})):null},hZe=function(t){var n=t.prefixCls,r=t.value,i=t.style,a=t.activeStyle,o=d.useContext(Yg),s=o.min,l=o.max,c=o.direction,u=o.included,f=o.includedStart,p=o.includedEnd,h="".concat(n,"-dot"),m=u&&f<=r&&r<=p,g=q(q({},KB(c,r,s,l)),typeof i=="function"?i(r):i);return m&&(g=q(q({},g),typeof a=="function"?a(r):a)),d.createElement("span",{className:Ee(h,ne({},"".concat(h,"-active"),m)),style:g})},mZe=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,a=t.style,o=t.activeStyle,s=d.useContext(Yg),l=s.min,c=s.max,u=s.step,f=d.useMemo(function(){var p=new Set;if(r.forEach(function(m){p.add(m.value)}),i&&u!==null)for(var h=l;h<=c;)p.add(h),h+=u;return Array.from(p)},[l,c,u,i,r]);return d.createElement("div",{className:"".concat(n,"-step")},f.map(function(p){return d.createElement(hZe,{prefixCls:n,key:p,value:p,style:a,activeStyle:o})}))},$X=function(t){var n=t.prefixCls,r=t.style,i=t.start,a=t.end,o=t.index,s=t.onStartMove,l=t.replaceCls,c=d.useContext(Yg),u=c.direction,f=c.min,p=c.max,h=c.disabled,m=c.range,g=c.classNames,v="".concat(n,"-track"),y=Vj(i,f,p),b=Vj(a,f,p),w=function(C){!h&&s&&s(C,-1)},_={};switch(u){case"rtl":_.right="".concat(y*100,"%"),_.width="".concat(b*100-y*100,"%");break;case"btt":_.bottom="".concat(y*100,"%"),_.height="".concat(b*100-y*100,"%");break;case"ttb":_.top="".concat(y*100,"%"),_.height="".concat(b*100-y*100,"%");break;default:_.left="".concat(y*100,"%"),_.width="".concat(b*100-y*100,"%")}var k=l||Ee(v,ne(ne({},"".concat(v,"-").concat(o+1),o!==null&&m),"".concat(n,"-track-draggable"),s),g.track);return d.createElement("div",{className:k,style:q(q({},_),r),onMouseDown:w,onTouchStart:w})},gZe=function(t){var n=t.prefixCls,r=t.style,i=t.values,a=t.startPoint,o=t.onStartMove,s=d.useContext(Yg),l=s.included,c=s.range,u=s.min,f=s.styles,p=s.classNames,h=d.useMemo(function(){if(!c){if(i.length===0)return[];var g=a??u,v=i[0];return[{start:Math.min(g,v),end:Math.max(g,v)}]}for(var y=[],b=0;bvZe&&u<$.length:!1,S(me),B(Y,H,me)},fe=function ve($e){$e.preventDefault(),document.removeEventListener("mouseup",ve),document.removeEventListener("mousemove",re),N.current&&(N.current.removeEventListener("touchmove",R.current),N.current.removeEventListener("touchend",j.current)),R.current=null,j.current=null,N.current=null,s(me),b(-1),S(!1)};document.addEventListener("mouseup",fe),document.addEventListener("mousemove",re),ie.currentTarget.addEventListener("touchend",fe),ie.currentTarget.addEventListener("touchmove",re),R.current=re,j.current=fe,N.current=ie.currentTarget},Z=d.useMemo(function(){var ee=ct(n).sort(function(oe,le){return oe-le}),ie=ct($).sort(function(oe,le){return oe-le}),Y={};ie.forEach(function(oe){Y[oe]=(Y[oe]||0)+1}),ee.forEach(function(oe){Y[oe]=(Y[oe]||0)-1});var X=c?1:0,ae=Object.values(Y).reduce(function(oe,le){return oe+Math.abs(le)},0);return ae<=X?$:n},[n,$,c]);return[y,h,k,Z,U]}function bZe(e,t,n,r,i,a){var o=d.useCallback(function(h){return Math.max(e,Math.min(t,h))},[e,t]),s=d.useCallback(function(h){if(n!==null){var m=e+Math.round((o(h)-e)/n)*n,g=function(w){return(String(w).split(".")[1]||"").length},v=Math.max(g(n),g(t),g(e)),y=Number(m.toFixed(v));return e<=y&&y<=t?y:null}return null},[n,e,t,o]),l=d.useCallback(function(h){var m=o(h),g=r.map(function(b){return b.value});n!==null&&g.push(s(h)),g.push(e,t);var v=g[0],y=t-e;return g.forEach(function(b){var w=Math.abs(m-b);w<=y&&(v=b,y=w)}),v},[e,t,r,n,o,s]),c=function h(m,g,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var b,w=m[v],_=w+g,k=[];r.forEach(function(M){k.push(M.value)}),k.push(e,t),k.push(s(w));var S=g>0?1:-1;y==="unit"?k.push(s(w+S*n)):k.push(s(_)),k=k.filter(function(M){return M!==null}).filter(function(M){return g<0?M<=w:M>=w}),y==="unit"&&(k=k.filter(function(M){return M!==w}));var C=y==="unit"?w:_;b=k[0];var E=Math.abs(b-C);if(k.forEach(function(M){var P=Math.abs(M-C);P1){var $=ct(m);return $[v]=b,h($,g-S,v,y)}return b}else{if(g==="min")return e;if(g==="max")return t}},u=function(m,g,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=m[v],w=c(m,g,v,y);return{value:w,changed:w!==b}},f=function(m){return a===null&&m===0||typeof a=="number"&&m3&&arguments[3]!==void 0?arguments[3]:"unit",b=m.map(l),w=b[v],_=c(b,g,v,y);if(b[v]=_,i===!1){var k=a||0;v>0&&b[v-1]!==w&&(b[v]=Math.max(b[v],b[v-1]+k)),v0;$-=1)for(var M=!0;f(b[$]-b[$-1])&&M;){var P=u(b,-1,$-1);b[$-1]=P.value,M=P.changed}for(var I=b.length-1;I>0;I-=1)for(var O=!0;f(b[I]-b[I-1])&&O;){var A=u(b,-1,I-1);b[I-1]=A.value,O=A.changed}for(var R=0;R=0?N:!1},[N,he]),We=d.useMemo(function(){return Object.keys(X||{}).map(function(Rt){var rt=X[Rt],$t={value:Number(Rt)};return rt&&Kt(rt)==="object"&&!d.isValidElement(rt)&&("label"in rt||"style"in rt)?($t.style=rt.style,$t.label=rt.label):$t.label=rt,$t}).filter(function(Rt){var rt=Rt.label;return rt||typeof rt=="number"}).sort(function(Rt,rt){return Rt.value-rt.value})},[X]),ge=bZe(de,xe,he,We,R,Ue),ze=Te(ge,2),Ve=ze[0],Be=ze[1],Xe=In(C,{value:S}),Ke=Te(Xe,2),qe=Ke[0],Et=Ke[1],dt=d.useMemo(function(){var Rt=qe==null?[]:Array.isArray(qe)?qe:[qe],rt=Te(Rt,1),$t=rt[0],Mt=$t===void 0?de:$t,cn=qe===null?[]:[Mt];if(ye){if(cn=ct(Rt),$||qe===void 0){var fn=$>=0?$+1:2;for(cn=cn.slice(0,fn);cn.length=0&&Ce.current.focus(Rt)}lt(null)},[Pt]);var kt=d.useMemo(function(){return z&&he===null?!1:z},[z,he]),qt=Vn(function(Rt,rt){Qe(Rt,rt),P==null||P(vt(dt))}),yt=Ht!==-1;d.useEffect(function(){if(!yt){var Rt=dt.lastIndexOf(Ne);Ce.current.focus(Rt)}},[yt]);var At=d.useMemo(function(){return ct(Le).sort(function(Rt,rt){return Rt-rt})},[Le]),ft=d.useMemo(function(){return ye?[At[0],At[At.length-1]]:[de,At[0]]},[At,ye,de]),De=Te(ft,2),Ye=De[0],st=De[1];d.useImperativeHandle(t,function(){return{focus:function(){Ce.current.focus(0)},blur:function(){var rt,$t=document,Mt=$t.activeElement;(rt=be.current)!==null&&rt!==void 0&&rt.contains(Mt)&&(Mt==null||Mt.blur())}}}),d.useEffect(function(){h&&Ce.current.focus(0)},[]);var Ie=d.useMemo(function(){return{min:de,max:xe,direction:Se,disabled:u,keyboard:p,step:he,included:K,includedStart:Ye,includedEnd:st,range:ye,tabIndex:me,ariaLabelForHandle:re,ariaLabelledByForHandle:fe,ariaRequired:ve,ariaValueTextFormatterForHandle:$e,styles:s||{},classNames:o||{}}},[de,xe,Se,u,p,he,K,Ye,st,ye,me,re,fe,ve,$e,s,o]);return d.createElement(Yg.Provider,{value:Ie},d.createElement("div",{ref:be,className:Ee(r,i,ne(ne(ne(ne({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),V),"".concat(r,"-horizontal"),!V),"".concat(r,"-with-marks"),We.length)),style:a,onMouseDown:xt,id:l},d.createElement("div",{className:Ee("".concat(r,"-rail"),o==null?void 0:o.rail),style:q(q({},ee),s==null?void 0:s.rail)}),ce!==!1&&d.createElement(gZe,{prefixCls:r,style:U,values:dt,startPoint:B,onStartMove:kt?qt:void 0}),d.createElement(mZe,{prefixCls:r,marks:We,dots:ae,style:ie,activeStyle:Y}),d.createElement(dZe,{ref:Ce,prefixCls:r,style:Z,values:Le,draggingIndex:Ht,draggingDelete:He,onStartMove:qt,onOffsetChange:Ct,onFocus:m,onBlur:g,handleRender:oe,activeHandleRender:le,onChangeComplete:nt,onDelete:Oe?jt:void 0}),d.createElement(pZe,{prefixCls:r,marks:We,onClick:ht})))});const Jge=d.createContext({}),TX=d.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=d.useRef(null),a=n&&!r,o=d.useRef(null);function s(){rr.cancel(o.current),o.current=null}function l(){o.current=rr(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),o.current=null})}return d.useEffect(()=>(a?l():s(),s),[a,e.title]),d.createElement(Ea,Object.assign({ref:va(i,t)},e,{open:a}))}),SZe=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:a,marginPart:o,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:h,handleLineWidth:m,handleLineWidthHover:g,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",height:r,margin:`${Me(o)} ${Me(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Me(a)} ${Me(o)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${Me(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(m).mul(-1).equal(),insetBlockStart:c(m).mul(-1).equal(),width:c(u).add(c(m).mul(2)).equal(),height:c(u).add(c(m).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Me(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` +`,ZXe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],X9={},al;function QXe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&X9[n])return X9[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=ZXe.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(X9[n]=l),l}function JXe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;al||(al=document.createElement("textarea"),al.setAttribute("tab-index","-1"),al.setAttribute("aria-hidden","true"),al.setAttribute("name","hiddenTextarea"),document.body.appendChild(al)),e.getAttribute("wrap")?al.setAttribute("wrap",e.getAttribute("wrap")):al.removeAttribute("wrap");var i=QXe(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,l=i.sizingStyle;al.setAttribute("style","".concat(l,";").concat(XXe)),al.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,p=al.scrollHeight;if(s==="border-box"?p+=o:s==="content-box"&&(p-=a),n!==null||r!==null){al.value=" ";var h=al.scrollHeight-a;n!==null&&(c=h*n,s==="border-box"&&(c=c+a+o),p=Math.max(c,p)),r!==null&&(u=h*r,s==="border-box"&&(u=u+a+o),f=p>u?"":"hidden",p=Math.min(u,p))}var m={height:p,overflowY:f,resize:"none"};return c&&(m.minHeight=c),u&&(m.maxHeight=u),m}var eZe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Z9=0,Q9=1,J9=2,tZe=d.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,o=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=Ht(n,eZe),h=jn(i,{value:a,postState:function(Y){return Y??""}}),m=Te(h,2),g=m[0],v=m[1],y=function(Y){v(Y.target.value),f==null||f(Y)},w=d.useRef();d.useImperativeHandle(t,function(){return{textArea:w.current}});var b=d.useMemo(function(){return o&&Kt(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),C=Te(b,2),k=C[0],S=C[1],_=!!o,E=function(){try{if(document.activeElement===w.current){var Y=w.current,ee=Y.selectionStart,ie=Y.selectionEnd,Z=Y.scrollTop;w.current.setSelectionRange(ee,ie),w.current.scrollTop=Z}}catch{}},$=d.useState(J9),M=Te($,2),P=M[0],R=M[1],O=d.useState(),j=Te(O,2),I=j[0],A=j[1],N=function(){R(Z9)};nr(function(){_&&N()},[a,k,S,_]),nr(function(){if(P===Z9)R(Q9);else if(P===Q9){var U=JXe(w.current,!1,k,S);R(J9),A(U)}else E()},[P]);var F=d.useRef(),K=function(){rr.cancel(F.current)},L=function(Y){P===J9&&(s==null||s(Y),o&&(K(),F.current=rr(function(){N()})))};d.useEffect(function(){return K},[]);var V=_?I:null,B=q(q({},c),V);return(P===Z9||P===Q9)&&(B.overflowY="hidden",B.overflowX="hidden"),d.createElement(Go,{onResize:L,disabled:!(o||s)},d.createElement("textarea",tt({},p,{ref:w,style:B,className:Ee(r,l,ne({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:y})))}),nZe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],e1e=te.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,a=e.onFocus,o=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,m=h===void 0?"rc-textarea":h,g=e.showCount,v=e.count,y=e.className,w=e.style,b=e.disabled,C=e.hidden,k=e.classNames,S=e.styles,_=e.onResize,E=e.onClear,$=e.onPressEnter,M=e.readOnly,P=e.autoSize,R=e.onKeyDown,O=Ht(e,nZe),j=jn(r,{value:i,defaultValue:r}),I=Te(j,2),A=I[0],N=I[1],F=A==null?"":String(A),K=te.useState(!1),L=Te(K,2),V=L[0],B=L[1],U=te.useRef(!1),Y=te.useState(null),ee=Te(Y,2),ie=ee[0],Z=ee[1],X=d.useRef(null),ae=d.useRef(null),oe=function(){var ge;return(ge=ae.current)===null||ge===void 0?void 0:ge.textArea},le=function(){oe().focus()};d.useImperativeHandle(t,function(){var We;return{resizableTextArea:ae.current,focus:le,blur:function(){oe().blur()},nativeElement:((We=X.current)===null||We===void 0?void 0:We.nativeElement)||oe()}}),d.useEffect(function(){B(function(We){return!b&&We})},[b]);var ce=te.useState(null),pe=Te(ce,2),me=pe[0],re=pe[1];te.useEffect(function(){if(me){var We;(We=oe()).setSelectionRange.apply(We,lt(me))}},[me]);var fe=Xge(v,g),ve=(n=fe.max)!==null&&n!==void 0?n:c,$e=Number(ve)>0,Ce=fe.strategy(F),be=!!ve&&Ce>ve,Se=function(ge,ze){var Ve=ze;!U.current&&fe.exceedFormatter&&fe.max&&fe.strategy(ze)>fe.max&&(Ve=fe.exceedFormatter(ze,{max:fe.max}),ze!==Ve&&re([oe().selectionStart||0,oe().selectionEnd||0])),N(Ve),S6(ge.currentTarget,ge,s,Ve)},we=function(ge){U.current=!0,u==null||u(ge)},se=function(ge){U.current=!1,Se(ge,ge.currentTarget.value),f==null||f(ge)},ye=function(ge){Se(ge,ge.target.value)},Oe=function(ge){ge.key==="Enter"&&$&&$(ge),R==null||R(ge)},z=function(ge){B(!0),a==null||a(ge)},H=function(ge){B(!1),o==null||o(ge)},G=function(ge){N(""),le(),S6(oe(),ge,s)},de=p,xe;fe.show&&(fe.showFormatter?xe=fe.showFormatter({value:F,count:Ce,maxLength:ve}):xe="".concat(Ce).concat($e?" / ".concat(ve):""),de=te.createElement(te.Fragment,null,de,te.createElement("span",{className:Ee("".concat(m,"-data-count"),k==null?void 0:k.count),style:S==null?void 0:S.count},xe)));var he=function(ge){var ze;_==null||_(ge),(ze=oe())!==null&&ze!==void 0&&ze.style.height&&Z(!0)},Ue=!P&&!g&&!l;return te.createElement(U8,{ref:X,value:F,allowClear:l,handleReset:G,suffix:de,prefixCls:m,classNames:q(q({},k),{},{affixWrapper:Ee(k==null?void 0:k.affixWrapper,ne(ne({},"".concat(m,"-show-count"),g),"".concat(m,"-textarea-allow-clear"),l))}),disabled:b,focused:V,className:Ee(y,be&&"".concat(m,"-out-of-range")),style:q(q({},w),ie&&!Ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof xe=="string"?xe:void 0}},hidden:C,readOnly:M,onClear:E},te.createElement(tZe,tt({},O,{autoSize:P,maxLength:c,onKeyDown:Oe,onChange:ye,onFocus:z,onBlur:H,onCompositionStart:we,onCompositionEnd:se,className:Ee(k==null?void 0:k.textarea),style:q(q({},S==null?void 0:S.textarea),{},{resize:w==null?void 0:w.resize}),disabled:b,prefixCls:m,onResize:he,ref:ae,readOnly:M})))}),rZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,bordered:a=!0,size:o,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:f,className:p,style:h,styles:m,variant:g}=e,v=rZe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:y,direction:w,textArea:b}=d.useContext(Xt),C=Bi(o),k=d.useContext(ma),S=s??k,{status:_,hasFeedback:E,feedbackIcon:$}=d.useContext(oa),M=Mu(_,l),P=d.useRef(null);d.useImperativeHandle(t,()=>{var L;return{resizableTextArea:(L=P.current)===null||L===void 0?void 0:L.resizableTextArea,focus:V=>{var B,U;KB((U=(B=P.current)===null||B===void 0?void 0:B.resizableTextArea)===null||U===void 0?void 0:U.textArea,V)},blur:()=>{var V;return(V=P.current)===null||V===void 0?void 0:V.blur()}}});const R=y("input",i),O=qr(R),[j,I,A]=zB(R,O),[N,F]=Od("textArea",g,a),K=GB(c??(b==null?void 0:b.allowClear));return j(d.createElement(e1e,Object.assign({autoComplete:b==null?void 0:b.autoComplete},v,{style:Object.assign(Object.assign({},b==null?void 0:b.style),h),styles:Object.assign(Object.assign({},b==null?void 0:b.styles),m),disabled:S,allowClear:K,className:Ee(A,O,p,f,b==null?void 0:b.className),classNames:Object.assign(Object.assign(Object.assign({},u),b==null?void 0:b.classNames),{textarea:Ee({[`${R}-sm`]:C==="small",[`${R}-lg`]:C==="large"},I,u==null?void 0:u.textarea,(n=b==null?void 0:b.classNames)===null||n===void 0?void 0:n.textarea),variant:Ee({[`${R}-${N}`]:F},Al(R,M)),affixWrapper:Ee(`${R}-textarea-affix-wrapper`,{[`${R}-affix-wrapper-rtl`]:w==="rtl",[`${R}-affix-wrapper-sm`]:C==="small",[`${R}-affix-wrapper-lg`]:C==="large",[`${R}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},I)}),prefixCls:R,suffix:E&&d.createElement("span",{className:`${R}-textarea-suffix`},$),ref:P})))}),Ur=W8;Ur.Group=OXe;Ur.Search=YXe;Ur.TextArea=t1e;Ur.Password=KXe;Ur.OTP=LXe;const iZe=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,aZe=e=>iZe.test(`#${e}`),oZe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hex-input`,[a,o]=d.useState(()=>n?b2(n.toHexString()):void 0);d.useEffect(()=>{n&&o(b2(n.toHexString()))},[n]);const s=l=>{const c=l.target.value;o(b2(c)),aZe(b2(c,!0))&&(r==null||r(Xo(c)))};return te.createElement(Ur,{className:i,value:a,prefix:"#",onChange:s,size:"small"})},sZe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hsb-input`,[a,o]=d.useState(Xo(n||"#000"));d.useEffect(()=>{n&&o(n)},[n]);const s=(l,c)=>{const u=a.toHsb();u[c]=c==="h"?l:(l||0)/100;const f=Xo(u);n||o(f),r==null||r(f)};return te.createElement("div",{className:i},te.createElement(Gm,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:i,formatter:l=>n_(l||0).toString(),onChange:l=>s(Number(l),"h")}),te.createElement(Gm,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:i,formatter:l=>`${n_(l||0)}%`,onChange:l=>s(Number(l),"s")}),te.createElement(Gm,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:i,formatter:l=>`${n_(l||0)}%`,onChange:l=>s(Number(l),"b")}))},lZe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-rgb-input`,[a,o]=d.useState(Xo(n||"#000"));d.useEffect(()=>{n&&o(n)},[n]);const s=(l,c)=>{const u=a.toRgb();u[c]=l||0;const f=Xo(u);n||o(f),r==null||r(f)};return te.createElement("div",{className:i},te.createElement(Gm,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:i,onChange:l=>s(Number(l),"r")}),te.createElement(Gm,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:i,onChange:l=>s(Number(l),"g")}),te.createElement(Gm,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:i,onChange:l=>s(Number(l),"b")}))},cZe=[ih.hex,ih.hsb,ih.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),uZe=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:i,onFormatChange:a,onChange:o,disabledFormat:s}=e,[l,c]=jn(ih.hex,{value:n,onChange:a}),u=`${t}-input`,f=h=>{c(h)},p=d.useMemo(()=>{const h={value:r,prefixCls:t,onChange:o};switch(l){case ih.hsb:return te.createElement(sZe,Object.assign({},h));case ih.rgb:return te.createElement(lZe,Object.assign({},h));default:return te.createElement(oZe,Object.assign({},h))}},[l,t,r,o]);return te.createElement("div",{className:`${u}-container`},!s&&te.createElement(Yf,{value:l,variant:"borderless",getPopupContainer:h=>h,popupMatchSelectWidth:68,placement:"bottomRight",onChange:f,className:`${t}-format-select`,size:"small",options:cZe}),te.createElement("div",{className:u},p),!i&&te.createElement(PXe,{prefixCls:t,value:r,onChange:o}))};function Gj(e,t,n){return(e-t)/(n-t)}function YB(e,t,n,r){var i=Gj(t,n,r),a={};switch(e){case"rtl":a.right="".concat(i*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(i*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(i*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(i*100,"%"),a.transform="translateX(-50%)";break}return a}function lm(e,t){return Array.isArray(e)?e[t]:e}var Xg=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),n1e=d.createContext({}),dZe=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],TX=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,a=e.onStartMove,o=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,h=e.onFocus,m=e.onMouseEnter,g=Ht(e,dZe),v=d.useContext(Xg),y=v.min,w=v.max,b=v.direction,C=v.disabled,k=v.keyboard,S=v.range,_=v.tabIndex,E=v.ariaLabelForHandle,$=v.ariaLabelledByForHandle,M=v.ariaRequired,P=v.ariaValueTextFormatterForHandle,R=v.styles,O=v.classNames,j="".concat(n,"-handle"),I=function(ee){C||a(ee,i)},A=function(ee){h==null||h(ee,i)},N=function(ee){m(ee,i)},F=function(ee){if(!C&&k){var ie=null;switch(ee.which||ee.keyCode){case mt.LEFT:ie=b==="ltr"||b==="btt"?-1:1;break;case mt.RIGHT:ie=b==="ltr"||b==="btt"?1:-1;break;case mt.UP:ie=b!=="ttb"?1:-1;break;case mt.DOWN:ie=b!=="ttb"?-1:1;break;case mt.HOME:ie="min";break;case mt.END:ie="max";break;case mt.PAGE_UP:ie=2;break;case mt.PAGE_DOWN:ie=-2;break;case mt.BACKSPACE:case mt.DELETE:o(i);break}ie!==null&&(ee.preventDefault(),f(ie,i))}},K=function(ee){switch(ee.which||ee.keyCode){case mt.LEFT:case mt.RIGHT:case mt.UP:case mt.DOWN:case mt.HOME:case mt.END:case mt.PAGE_UP:case mt.PAGE_DOWN:p==null||p();break}},L=YB(b,r,y,w),V={};if(i!==null){var B;V={tabIndex:C?null:lm(_,i),role:"slider","aria-valuemin":y,"aria-valuemax":w,"aria-valuenow":r,"aria-disabled":C,"aria-label":lm(E,i),"aria-labelledby":lm($,i),"aria-required":lm(M,i),"aria-valuetext":(B=lm(P,i))===null||B===void 0?void 0:B(r),"aria-orientation":b==="ltr"||b==="rtl"?"horizontal":"vertical",onMouseDown:I,onTouchStart:I,onFocus:A,onMouseEnter:N,onKeyDown:F,onKeyUp:K}}var U=d.createElement("div",tt({ref:t,className:Ee(j,ne(ne(ne({},"".concat(j,"-").concat(i+1),i!==null&&S),"".concat(j,"-dragging"),c),"".concat(j,"-dragging-delete"),u),O.handle),style:q(q(q({},L),s),R.handle)},V,g));return l&&(U=l(U,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),U}),fZe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],pZe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,a=e.onOffsetChange,o=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,p=Ht(e,fZe),h=d.useRef({}),m=d.useState(!1),g=Te(m,2),v=g[0],y=g[1],w=d.useState(-1),b=Te(w,2),C=b[0],k=b[1],S=function(P){k(P),y(!0)},_=function(P,R){S(R),f==null||f(P)},E=function(P,R){S(R)};d.useImperativeHandle(t,function(){return{focus:function(P){var R;(R=h.current[P])===null||R===void 0||R.focus()},hideHelp:function(){Va.flushSync(function(){y(!1)})}}});var $=q({prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:_,onMouseEnter:E},p);return d.createElement(d.Fragment,null,o.map(function(M,P){var R=c===P;return d.createElement(TX,tt({ref:function(j){j?h.current[P]=j:delete h.current[P]},dragging:R,draggingDelete:R&&u,style:lm(r,P),key:P,value:M,valueIndex:P},$))}),l&&v&&d.createElement(TX,tt({key:"a11y"},$,{value:o[C],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),hZe=function(t){var n=t.prefixCls,r=t.style,i=t.children,a=t.value,o=t.onClick,s=d.useContext(Xg),l=s.min,c=s.max,u=s.direction,f=s.includedStart,p=s.includedEnd,h=s.included,m="".concat(n,"-text"),g=YB(u,a,l,c);return d.createElement("span",{className:Ee(m,ne({},"".concat(m,"-active"),h&&f<=a&&a<=p)),style:q(q({},g),r),onMouseDown:function(y){y.stopPropagation()},onClick:function(){o(a)}},i)},mZe=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,a="".concat(n,"-mark");return r.length?d.createElement("div",{className:a},r.map(function(o){var s=o.value,l=o.style,c=o.label;return d.createElement(hZe,{key:s,prefixCls:a,style:l,value:s,onClick:i},c)})):null},gZe=function(t){var n=t.prefixCls,r=t.value,i=t.style,a=t.activeStyle,o=d.useContext(Xg),s=o.min,l=o.max,c=o.direction,u=o.included,f=o.includedStart,p=o.includedEnd,h="".concat(n,"-dot"),m=u&&f<=r&&r<=p,g=q(q({},YB(c,r,s,l)),typeof i=="function"?i(r):i);return m&&(g=q(q({},g),typeof a=="function"?a(r):a)),d.createElement("span",{className:Ee(h,ne({},"".concat(h,"-active"),m)),style:g})},vZe=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,a=t.style,o=t.activeStyle,s=d.useContext(Xg),l=s.min,c=s.max,u=s.step,f=d.useMemo(function(){var p=new Set;if(r.forEach(function(m){p.add(m.value)}),i&&u!==null)for(var h=l;h<=c;)p.add(h),h+=u;return Array.from(p)},[l,c,u,i,r]);return d.createElement("div",{className:"".concat(n,"-step")},f.map(function(p){return d.createElement(gZe,{prefixCls:n,key:p,value:p,style:a,activeStyle:o})}))},PX=function(t){var n=t.prefixCls,r=t.style,i=t.start,a=t.end,o=t.index,s=t.onStartMove,l=t.replaceCls,c=d.useContext(Xg),u=c.direction,f=c.min,p=c.max,h=c.disabled,m=c.range,g=c.classNames,v="".concat(n,"-track"),y=Gj(i,f,p),w=Gj(a,f,p),b=function(_){!h&&s&&s(_,-1)},C={};switch(u){case"rtl":C.right="".concat(y*100,"%"),C.width="".concat(w*100-y*100,"%");break;case"btt":C.bottom="".concat(y*100,"%"),C.height="".concat(w*100-y*100,"%");break;case"ttb":C.top="".concat(y*100,"%"),C.height="".concat(w*100-y*100,"%");break;default:C.left="".concat(y*100,"%"),C.width="".concat(w*100-y*100,"%")}var k=l||Ee(v,ne(ne({},"".concat(v,"-").concat(o+1),o!==null&&m),"".concat(n,"-track-draggable"),s),g.track);return d.createElement("div",{className:k,style:q(q({},C),r),onMouseDown:b,onTouchStart:b})},yZe=function(t){var n=t.prefixCls,r=t.style,i=t.values,a=t.startPoint,o=t.onStartMove,s=d.useContext(Xg),l=s.included,c=s.range,u=s.min,f=s.styles,p=s.classNames,h=d.useMemo(function(){if(!c){if(i.length===0)return[];var g=a??u,v=i[0];return[{start:Math.min(g,v),end:Math.max(g,v)}]}for(var y=[],w=0;wbZe&&u<$.length:!1,S(me),B(Z,H,me)},fe=function ve($e){$e.preventDefault(),document.removeEventListener("mouseup",ve),document.removeEventListener("mousemove",re),N.current&&(N.current.removeEventListener("touchmove",I.current),N.current.removeEventListener("touchend",A.current)),I.current=null,A.current=null,N.current=null,s(me),w(-1),S(!1)};document.addEventListener("mouseup",fe),document.addEventListener("mousemove",re),ie.currentTarget.addEventListener("touchend",fe),ie.currentTarget.addEventListener("touchmove",re),I.current=re,A.current=fe,N.current=ie.currentTarget},Y=d.useMemo(function(){var ee=lt(n).sort(function(oe,le){return oe-le}),ie=lt($).sort(function(oe,le){return oe-le}),Z={};ie.forEach(function(oe){Z[oe]=(Z[oe]||0)+1}),ee.forEach(function(oe){Z[oe]=(Z[oe]||0)-1});var X=c?1:0,ae=Object.values(Z).reduce(function(oe,le){return oe+Math.abs(le)},0);return ae<=X?$:n},[n,$,c]);return[y,h,k,Y,U]}function xZe(e,t,n,r,i,a){var o=d.useCallback(function(h){return Math.max(e,Math.min(t,h))},[e,t]),s=d.useCallback(function(h){if(n!==null){var m=e+Math.round((o(h)-e)/n)*n,g=function(b){return(String(b).split(".")[1]||"").length},v=Math.max(g(n),g(t),g(e)),y=Number(m.toFixed(v));return e<=y&&y<=t?y:null}return null},[n,e,t,o]),l=d.useCallback(function(h){var m=o(h),g=r.map(function(w){return w.value});n!==null&&g.push(s(h)),g.push(e,t);var v=g[0],y=t-e;return g.forEach(function(w){var b=Math.abs(m-w);b<=y&&(v=w,y=b)}),v},[e,t,r,n,o,s]),c=function h(m,g,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var w,b=m[v],C=b+g,k=[];r.forEach(function(M){k.push(M.value)}),k.push(e,t),k.push(s(b));var S=g>0?1:-1;y==="unit"?k.push(s(b+S*n)):k.push(s(C)),k=k.filter(function(M){return M!==null}).filter(function(M){return g<0?M<=b:M>=b}),y==="unit"&&(k=k.filter(function(M){return M!==b}));var _=y==="unit"?b:C;w=k[0];var E=Math.abs(w-_);if(k.forEach(function(M){var P=Math.abs(M-_);P1){var $=lt(m);return $[v]=w,h($,g-S,v,y)}return w}else{if(g==="min")return e;if(g==="max")return t}},u=function(m,g,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",w=m[v],b=c(m,g,v,y);return{value:b,changed:b!==w}},f=function(m){return a===null&&m===0||typeof a=="number"&&m3&&arguments[3]!==void 0?arguments[3]:"unit",w=m.map(l),b=w[v],C=c(w,g,v,y);if(w[v]=C,i===!1){var k=a||0;v>0&&w[v-1]!==b&&(w[v]=Math.max(w[v],w[v-1]+k)),v0;$-=1)for(var M=!0;f(w[$]-w[$-1])&&M;){var P=u(w,-1,$-1);w[$-1]=P.value,M=P.changed}for(var R=w.length-1;R>0;R-=1)for(var O=!0;f(w[R]-w[R-1])&&O;){var j=u(w,-1,R-1);w[R-1]=j.value,O=j.changed}for(var I=0;I=0?N:!1},[N,he]),We=d.useMemo(function(){return Object.keys(X||{}).map(function(It){var rt=X[It],$t={value:Number(It)};return rt&&Kt(rt)==="object"&&!d.isValidElement(rt)&&("label"in rt||"style"in rt)?($t.style=rt.style,$t.label=rt.label):$t.label=rt,$t}).filter(function(It){var rt=It.label;return rt||typeof rt=="number"}).sort(function(It,rt){return It.value-rt.value})},[X]),ge=xZe(de,xe,he,We,I,Ue),ze=Te(ge,2),Ve=ze[0],Be=ze[1],Xe=jn(_,{value:S}),Ke=Te(Xe,2),qe=Ke[0],Et=Ke[1],ut=d.useMemo(function(){var It=qe==null?[]:Array.isArray(qe)?qe:[qe],rt=Te(It,1),$t=rt[0],Mt=$t===void 0?de:$t,dn=qe===null?[]:[Mt];if(ye){if(dn=lt(It),$||qe===void 0){var pn=$>=0?$+1:2;for(dn=dn.slice(0,pn);dn.length=0&&Ce.current.focus(It)}st(null)},[Pt]);var kt=d.useMemo(function(){return z&&he===null?!1:z},[z,he]),qt=Vn(function(It,rt){Qe(It,rt),P==null||P(gt(ut))}),vt=Ut!==-1;d.useEffect(function(){if(!vt){var It=ut.lastIndexOf(Ne);Ce.current.focus(It)}},[vt]);var At=d.useMemo(function(){return lt(Le).sort(function(It,rt){return It-rt})},[Le]),dt=d.useMemo(function(){return ye?[At[0],At[At.length-1]]:[de,At[0]]},[At,ye,de]),De=Te(dt,2),Ye=De[0],ot=De[1];d.useImperativeHandle(t,function(){return{focus:function(){Ce.current.focus(0)},blur:function(){var rt,$t=document,Mt=$t.activeElement;(rt=be.current)!==null&&rt!==void 0&&rt.contains(Mt)&&(Mt==null||Mt.blur())}}}),d.useEffect(function(){h&&Ce.current.focus(0)},[]);var Re=d.useMemo(function(){return{min:de,max:xe,direction:Se,disabled:u,keyboard:p,step:he,included:V,includedStart:Ye,includedEnd:ot,range:ye,tabIndex:me,ariaLabelForHandle:re,ariaLabelledByForHandle:fe,ariaRequired:ve,ariaValueTextFormatterForHandle:$e,styles:s||{},classNames:o||{}}},[de,xe,Se,u,p,he,V,Ye,ot,ye,me,re,fe,ve,$e,s,o]);return d.createElement(Xg.Provider,{value:Re},d.createElement("div",{ref:be,className:Ee(r,i,ne(ne(ne(ne({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),K),"".concat(r,"-horizontal"),!K),"".concat(r,"-with-marks"),We.length)),style:a,onMouseDown:xt,id:l},d.createElement("div",{className:Ee("".concat(r,"-rail"),o==null?void 0:o.rail),style:q(q({},ee),s==null?void 0:s.rail)}),ce!==!1&&d.createElement(yZe,{prefixCls:r,style:U,values:ut,startPoint:B,onStartMove:kt?qt:void 0}),d.createElement(vZe,{prefixCls:r,marks:We,dots:ae,style:ie,activeStyle:Z}),d.createElement(pZe,{ref:Ce,prefixCls:r,style:Y,values:Le,draggingIndex:Ut,draggingDelete:He,onStartMove:qt,onOffsetChange:Ct,onFocus:m,onBlur:g,handleRender:oe,activeHandleRender:le,onChangeComplete:nt,onDelete:Oe?jt:void 0}),d.createElement(mZe,{prefixCls:r,marks:We,onClick:pt})))});const r1e=d.createContext({}),RX=d.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=d.useRef(null),a=n&&!r,o=d.useRef(null);function s(){rr.cancel(o.current),o.current=null}function l(){o.current=rr(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),o.current=null})}return d.useEffect(()=>(a?l():s(),s),[a,e.title]),d.createElement(_a,Object.assign({ref:ga(i,t)},e,{open:a}))}),_Ze=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:a,marginPart:o,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:h,handleLineWidth:m,handleLineWidthHover:g,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",height:r,margin:`${Me(o)} ${Me(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Me(a)} ${Me(o)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${Me(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(m).mul(-1).equal(),insetBlockStart:c(m).mul(-1).equal(),width:c(u).add(c(m).mul(2)).equal(),height:c(u).add(c(m).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Me(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${v}, inset-block-start ${v}, width ${v}, @@ -411,21 +411,21 @@ html body { `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${Me(m)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},e1e=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:a,marginFull:o,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",h=s(r).mul(3).sub(i).div(2).equal(),m=s(i).sub(r).div(2).equal(),g=t?{borderWidth:`${Me(m)} 0`,transform:`translateY(${Me(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${Me(m)}`,transform:`translateX(${Me(e.calc(m).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[f]:h},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:s(r).mul(3).add(t?0:o).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(a).div(2).equal()}}},CZe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},e1e(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},_Ze=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},e1e(e,!1)),{height:"100%"})}},kZe=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,a=e.lineWidth+1*1.5,o=e.colorPrimary,s=new dr(o).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:o,handleActiveOutlineColor:s,handleColorDisabled:new dr(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},EZe=Jn("Slider",e=>{const t=Hn(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[SZe(t),CZe(t),_Ze(t)]},kZe);function Z9(){const[e,t]=d.useState(!1),n=d.useRef(null),r=()=>{rr.cancel(n.current)},i=a=>{r(),a?t(a):n.current=rr(()=>{t(a)})};return d.useEffect(()=>r,[]),[e,i]}var $Ze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);itypeof n=="number"?n.toString():""}const t1e=te.forwardRef((e,t)=>{var n,r,i,a,o,s,l,c,u,f;const{prefixCls:p,range:h,className:m,rootClassName:g,style:v,disabled:y,tooltipPrefixCls:b,tipFormatter:w,tooltipVisible:_,getTooltipPopupContainer:k,tooltipPlacement:S,tooltip:C={},onChangeComplete:E,classNames:$,styles:M}=e,P=$Ze(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:I}=e,{direction:O,slider:A,getPrefixCls:R,getPopupContainer:j}=te.useContext(Zt),N=te.useContext(ga),D=y??N,{handleRender:V,direction:F}=te.useContext(Jge),B=(F||O)==="rtl",[U,Z]=Z9(),[ee,ie]=Z9(),Y=Object.assign({},C),{open:X,placement:ae,getPopupContainer:oe,prefixCls:le,formatter:ce}=Y,pe=X??_,me=(U||ee)&&pe!==!1,re=MZe(ce,w),[fe,ve]=Z9(),$e=he=>{E==null||E(he),ve(!1)},Ce=(he,Ue)=>he||(Ue?B?"left":"right":"top"),be=R("slider",p),[Se,we,se]=EZe(be),ye=Ee(m,A==null?void 0:A.className,(n=A==null?void 0:A.classNames)===null||n===void 0?void 0:n.root,$==null?void 0:$.root,g,{[`${be}-rtl`]:B,[`${be}-lock`]:fe},we,se);B&&!P.vertical&&(P.reverse=!P.reverse),te.useEffect(()=>{const he=()=>{rr(()=>{ie(!1)},1)};return document.addEventListener("mouseup",he),()=>{document.removeEventListener("mouseup",he)}},[]);const Oe=h&&!pe,z=V||((he,Ue)=>{const{index:We}=Ue,ge=he.props;function ze(Ke,qe,Et){var dt,vt,Ze,nt;Et&&((vt=(dt=P)[Ke])===null||vt===void 0||vt.call(dt,qe)),(nt=(Ze=ge)[Ke])===null||nt===void 0||nt.call(Ze,qe)}const Ve=Object.assign(Object.assign({},ge),{onMouseEnter:Ke=>{Z(!0),ze("onMouseEnter",Ke)},onMouseLeave:Ke=>{Z(!1),ze("onMouseLeave",Ke)},onMouseDown:Ke=>{ie(!0),ve(!0),ze("onMouseDown",Ke)},onFocus:Ke=>{var qe;ie(!0),(qe=P.onFocus)===null||qe===void 0||qe.call(P,Ke),ze("onFocus",Ke,!0)},onBlur:Ke=>{var qe;ie(!1),(qe=P.onBlur)===null||qe===void 0||qe.call(P,Ke),ze("onBlur",Ke,!0)}}),Be=te.cloneElement(he,Ve),Xe=(!!pe||me)&&re!==null;return Oe?Be:te.createElement(TX,Object.assign({},Y,{prefixCls:R("tooltip",le??b),title:re?re(Ue.value):"",open:Xe,placement:Ce(ae??S,I),key:We,classNames:{root:`${be}-tooltip`},getPopupContainer:oe||k||j}),Be)}),H=Oe?(he,Ue)=>{const We=te.cloneElement(he,{style:Object.assign(Object.assign({},he.props.style),{visibility:"hidden"})});return te.createElement(TX,Object.assign({},Y,{prefixCls:R("tooltip",le??b),title:re?re(Ue.value):"",open:re!==null&&me,placement:Ce(ae??S,I),key:"tooltip",classNames:{root:`${be}-tooltip`},getPopupContainer:oe||k||j,draggingDelete:Ue.draggingDelete}),We)}:void 0,G=Object.assign(Object.assign(Object.assign(Object.assign({},(r=A==null?void 0:A.styles)===null||r===void 0?void 0:r.root),A==null?void 0:A.style),M==null?void 0:M.root),v),de=Object.assign(Object.assign({},(i=A==null?void 0:A.styles)===null||i===void 0?void 0:i.tracks),M==null?void 0:M.tracks),xe=Ee((a=A==null?void 0:A.classNames)===null||a===void 0?void 0:a.tracks,$==null?void 0:$.tracks);return Se(te.createElement(xZe,Object.assign({},P,{classNames:Object.assign({handle:Ee((o=A==null?void 0:A.classNames)===null||o===void 0?void 0:o.handle,$==null?void 0:$.handle),rail:Ee((s=A==null?void 0:A.classNames)===null||s===void 0?void 0:s.rail,$==null?void 0:$.rail),track:Ee((l=A==null?void 0:A.classNames)===null||l===void 0?void 0:l.track,$==null?void 0:$.track)},xe?{tracks:xe}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},(c=A==null?void 0:A.styles)===null||c===void 0?void 0:c.handle),M==null?void 0:M.handle),rail:Object.assign(Object.assign({},(u=A==null?void 0:A.styles)===null||u===void 0?void 0:u.rail),M==null?void 0:M.rail),track:Object.assign(Object.assign({},(f=A==null?void 0:A.styles)===null||f===void 0?void 0:f.track),M==null?void 0:M.track)},Object.keys(de).length?{tracks:de}:{}),step:P.step,range:h,className:ye,style:G,disabled:D,ref:t,prefixCls:be,handleRender:z,activeHandleRender:H,onChangeComplete:$e})))});var TZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,colors:n,type:r,color:i,range:a=!1,className:o,activeIndex:s,onActive:l,onDragStart:c,onDragChange:u,onKeyDelete:f}=e,p=TZe(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),h=Object.assign(Object.assign({},p),{track:!1}),m=d.useMemo(()=>`linear-gradient(90deg, ${n.map(S=>`${S.color} ${S.percent}%`).join(", ")})`,[n]),g=d.useMemo(()=>!i||!r?null:r==="alpha"?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`,[i,r]),v=Vn(c),y=Vn(u),b=d.useMemo(()=>({onDragStart:v,onDragChange:y}),[]),w=Vn((k,S)=>{const{onFocus:C,style:E,className:$,onKeyDown:M}=k.props,P=Object.assign({},E);return r==="gradient"&&(P.background=xpe(n,S.value)),d.cloneElement(k,{onFocus:I=>{l==null||l(S.index),C==null||C(I)},style:P,className:Ee($,{[`${t}-slider-handle-active`]:s===S.index}),onKeyDown:I=>{(I.key==="Delete"||I.key==="Backspace")&&f&&f(S.index),M==null||M(I)}})}),_=d.useMemo(()=>({direction:"ltr",handleRender:w}),[]);return d.createElement(Jge.Provider,{value:_},d.createElement(Qge.Provider,{value:b},d.createElement(t1e,Object.assign({},h,{className:Ee(o,`${t}-slider`),tooltip:{open:!1},range:{editable:a,minCount:2},styles:{rail:{background:m},handle:g?{background:g}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},PZe=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,i=o=>n(o[0]),a=o=>r(o[0]);return d.createElement(n1e,Object.assign({},e,{value:[t],onChange:i,onChangeComplete:a}))};function PX(e){return ct(e).sort((t,n)=>t.percent-n.percent)}const OZe=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:i,onActive:a,activeIndex:o,onGradientDragging:s,colors:l}=e,c=n==="gradient",u=d.useMemo(()=>l.map(y=>({percent:y.percent,color:y.color.toRgbString()})),[l]),f=d.useMemo(()=>u.map(y=>y.percent),[u]),p=d.useRef(u),h=y=>{let{rawValues:b,draggingIndex:w,draggingValue:_}=y;if(b.length>u.length){const k=xpe(u,_),S=ct(u);S.splice(w,0,{percent:_,color:k}),p.current=S}else p.current=u;s(!0),r(new Cl(PX(p.current)),!0)},m=y=>{let{deleteIndex:b,draggingIndex:w,draggingValue:_}=y,k=ct(p.current);b!==-1?k.splice(b,1):(k[w]=Object.assign(Object.assign({},k[w]),{percent:_}),k=PX(k)),r(new Cl(k),!0)},g=y=>{const b=ct(u);b.splice(y,1);const w=new Cl(b);r(w),i(w)},v=y=>{i(new Cl(u)),o>=y.length&&a(y.length-1),s(!1)};return c?d.createElement(n1e,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:f,range:!0,onChangeComplete:v,disabled:!1,type:"gradient",activeIndex:o,onActive:a,onDragStart:h,onDragChange:m,onKeyDelete:g}):null},IZe=d.memo(OZe);var RZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const e=d.useContext(zge),{mode:t,onModeChange:n,modeOptions:r,prefixCls:i,allowClear:a,value:o,disabledAlpha:s,onChange:l,onClear:c,onChangeComplete:u,activeIndex:f,gradientDragging:p}=e,h=RZe(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),m=te.useMemo(()=>o.cleared?[{percent:0,color:new Cl("")},{percent:100,color:new Cl("")}]:o.getColors(),[o]),g=!o.isGradient(),[v,y]=te.useState(o);nr(()=>{var A;g||y((A=m[f])===null||A===void 0?void 0:A.color)},[p,f]);const b=te.useMemo(()=>{var A;return g?o:p?v:(A=m[f])===null||A===void 0?void 0:A.color},[o,f,g,v,p]),[w,_]=te.useState(b),[k,S]=te.useState(0),C=w!=null&&w.equals(b)?b:w;nr(()=>{_(b)},[k,b==null?void 0:b.toHexString()]);const E=(A,R)=>{let j=Zo(A);if(o.cleared){const D=j.toRgb();if(!D.r&&!D.g&&!D.b&&R){const{type:V,value:F=0}=R;j=new Cl({h:V==="hue"?F:0,s:1,b:1,a:V==="alpha"?F/100:1})}else j=t_(j)}if(t==="single")return j;const N=ct(m);return N[f]=Object.assign(Object.assign({},N[f]),{color:j}),new Cl(N)},$=(A,R,j)=>{const N=E(A,j);_(N.isGradient()?N.getColors()[f].color:N),l(N,R)},M=(A,R)=>{u(E(A,R)),S(j=>j+1)},P=A=>{l(E(A))};let I=null;const O=r.length>1;return(a||O)&&(I=te.createElement("div",{className:`${i}-operation`},O&&te.createElement(Bge,{size:"small",options:r,value:t,onChange:n}),te.createElement(Uge,Object.assign({prefixCls:i,value:o,onChange:A=>{l(A),c==null||c()}},h)))),te.createElement(te.Fragment,null,I,te.createElement(IZe,Object.assign({},e,{colors:m})),te.createElement(QDe,{prefixCls:i,value:C==null?void 0:C.toHsb(),disabledAlpha:s,onChange:(A,R)=>{$(A,!0,R)},onChangeComplete:(A,R)=>{M(A,R)},components:jZe}),te.createElement(lZe,Object.assign({value:b,onChange:P,prefixCls:i,disabledAlpha:s},h)))},IX=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=d.useContext(Hge);return Array.isArray(n)?te.createElement(VFe,{value:t,presets:n,prefixCls:e,onChange:r}):null},NZe=e=>{const{prefixCls:t,presets:n,panelRender:r,value:i,onChange:a,onClear:o,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:f,onChangeComplete:p,activeIndex:h,onActive:m,format:g,onFormatChange:v,gradientDragging:y,onGradientDragging:b,disabledFormat:w}=e,_=`${t}-inner`,k=te.useMemo(()=>({prefixCls:t,value:i,onChange:a,onClear:o,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:f,onChangeComplete:p,activeIndex:h,onActive:m,format:g,onFormatChange:v,gradientDragging:y,onGradientDragging:b,disabledFormat:w}),[t,i,a,o,s,l,c,u,f,p,h,m,g,v,y,b,w]),S=te.useMemo(()=>({prefixCls:t,value:i,presets:n,onChange:a}),[t,i,n,a]),C=te.createElement("div",{className:`${_}-content`},te.createElement(OX,null),Array.isArray(n)&&te.createElement(HYe,null),te.createElement(IX,null));return te.createElement(zge.Provider,{value:k},te.createElement(Hge.Provider,{value:S},te.createElement("div",{className:_},typeof r=="function"?r(C,{components:{Picker:OX,Presets:IX}}):C)))};var AZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{color:n,prefixCls:r,open:i,disabled:a,format:o,className:s,showText:l,activeIndex:c}=e,u=AZe(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${r}-trigger`,p=`${f}-text`,h=`${p}-cell`,[m]=Xa("ColorPicker"),g=te.useMemo(()=>{if(!l)return"";if(typeof l=="function")return l(n);if(n.cleared)return m.transparent;if(n.isGradient())return n.getColors().map((w,_)=>{const k=c!==-1&&c!==_;return te.createElement("span",{key:_,className:Ee(h,k&&`${h}-inactive`)},w.color.toRgbString()," ",w.percent,"%")});const y=n.toHexString().toUpperCase(),b=JL(n);switch(o){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return b<100?`${y.slice(0,7)},${b}%`:y}},[n,o,l,c]),v=d.useMemo(()=>n.cleared?te.createElement(Uge,{prefixCls:r}):te.createElement(YL,{prefixCls:r,color:n.toCssString()}),[n,r]);return te.createElement("div",Object.assign({ref:t,className:Ee(f,s,{[`${f}-active`]:i,[`${f}-disabled`]:a})},Bi(u)),v,l&&te.createElement("div",{className:p},g))});function FZe(e,t,n){const[r]=Xa("ColorPicker"),[i,a]=In(e,{value:t}),[o,s]=d.useState("single"),[l,c]=d.useMemo(()=>{const g=(Array.isArray(n)?n:[n]).filter(w=>w);g.length||g.push("single");const v=new Set(g),y=[],b=(w,_)=>{v.has(w)&&y.push({label:_,value:w})};return b("single",r.singleColor),b("gradient",r.gradientColor),[y,v]},[n]),[u,f]=d.useState(null),p=Vn(g=>{f(g),a(g)}),h=d.useMemo(()=>{const g=Zo(i||"");return g.equals(u)?u:g},[i,u]),m=d.useMemo(()=>{var g;return c.has(o)?o:(g=l[0])===null||g===void 0?void 0:g.value},[c,o,l]);return d.useEffect(()=>{s(h.isGradient()?"gradient":"single")},[h]),[h,p,m,s,l]}const r1e=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),RX=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:i,lineWidth:a,colorFillSecondary:o}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:i,flex:"none"},r1e("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${Me(a)} ${o}`,borderRadius:"inherit"}})}},LZe=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:i,colorPickerAlphaInputWidth:a,marginXXS:o,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:f,colorTextPlaceholder:p,colorPickerInputNumberHandleWidth:h,lineWidth:m}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:i,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:h}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${Me(a)}`,marginInlineStart:o},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(o).equal(),fontSize:r,lineHeight:Me(l)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:i},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:o,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:o,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${Me(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:Me(e.calc(l).sub(e.calc(m).mul(2)).equal())},[`${n}-input-prefix`]:{color:p}}}}}},BZe=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:i,marginSM:a,colorBgElevated:o,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:i,inset:0},marginBottom:a},[`${t}-handler`]:{width:c,height:c,border:`${Me(l)} solid ${o}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${i}, 0 0 0 1px ${s}`}}},zZe=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:i,colorPickerPresetColorSize:a,fontSizeSM:o,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:f,colorWhite:p,marginXXS:h,paddingXS:m,fontHeightSM:g}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:g,color:r,paddingInlineEnd:i}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${Me(m)} 0`},"&-label":{fontSize:o,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(h).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:e.calc(a).add(e.calc(c).mul(4)).equal(),height:e.calc(a).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:u,border:`${Me(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(a).div(13).mul(5).equal(),height:e.calc(a).div(13).mul(8).equal(),border:`${Me(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:p,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:o,color:r}}}},HZe=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:i,lineWidthBold:a,colorPickerHandlerSizeSM:o,colorPickerSliderHeight:s,marginSM:l,marginXS:c}=e,u=e.calc(o).sub(e.calc(a).mul(2).equal()).equal(),f=e.calc(o).add(e.calc(a).mul(2).equal()).equal(),p={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[r1e(Me(s),e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:f,height:f,borderRadius:"100%"},"&:after":{width:o,height:o,border:`${Me(a)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${i}`,outline:"none",insetInlineStart:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":p}}],[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":p}}}},qj=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${Me(e.controlOutlineWidth)} ${n}`,outline:0}),UZe=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},jX=(e,t,n)=>{const{componentCls:r,borderRadiusSM:i,lineWidth:a,colorSplit:o,colorBorder:s,red6:l}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:i,border:`${Me(a)} solid ${o}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}})}},WZe=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:i,colorWarningHover:a,colorErrorOutline:o,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},qj(e,n,o))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},qj(e,r,s))}}},VZe=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:i,controlHeightXS:a,borderRadius:o,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:o},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:Me(a)}}}},qZe=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:i,motionDurationMid:a,colorBgElevated:o,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:c,borderRadius:u,marginXS:f,marginSM:p,controlHeight:h,controlHeightSM:m,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:y,lineWidth:b,colorBorder:w,paddingXXS:_,fontSize:k,colorPrimaryHover:S,controlOutline:C}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${Me(p)} 0 ${Me(f)}`}},[`${n}-panel`]:Object.assign({},BZe(e))},HZe(e)),RX(e,y)),LZe(e)),zZe(e)),jX(e,v,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:h,minHeight:h,borderRadius:u,border:`${Me(b)} solid ${w}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${a}`,background:o,padding:e.calc(_).sub(b).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(_).sub(b)).equal(),fontSize:k,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:S},[`&${n}-trigger-active`]:Object.assign({},qj(e,i,C)),"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:g},[`${n}-trigger-text`]:{color:s}}},jX(e,m)),RX(e,m)),WZe(e)),VZe(e))},UZe(e))},Wg(e,{focusElCls:`${n}-trigger-active`})]},KZe=Jn("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,i=Hn(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return[qZe(i)]});var GZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{mode:t,value:n,defaultValue:r,format:i,defaultFormat:a,allowClear:o=!1,presets:s,children:l,trigger:c="click",open:u,disabled:f,placement:p="bottomLeft",arrow:h=!0,panelRender:m,showText:g,style:v,className:y,size:b,rootClassName:w,prefixCls:_,styles:k,disabledAlpha:S=!1,onFormatChange:C,onChange:E,onClear:$,onOpenChange:M,onChangeComplete:P,getPopupContainer:I,autoAdjustOverflow:O=!0,destroyTooltipOnHide:A,disabledFormat:R}=e,j=GZe(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","disabledFormat"]),{getPrefixCls:N,direction:D,colorPicker:V}=d.useContext(Zt),F=d.useContext(ga),K=f??F,[B,U]=In(!1,{value:u,postState:Ve=>!K&&Ve,onChange:M}),[Z,ee]=In(i,{value:i,defaultValue:a,onChange:C}),ie=N("color-picker",_),[Y,X,ae,oe,le]=FZe(r,n,t),ce=d.useMemo(()=>JL(Y)<100,[Y]),[pe,me]=te.useState(null),re=Ve=>{if(P){let Be=Zo(Ve);S&&ce&&(Be=t_(Ve)),P(Be)}},fe=(Ve,Be)=>{let Xe=Zo(Ve);S&&ce&&(Xe=t_(Xe)),X(Xe),me(null),E&&E(Xe,Xe.toCssString()),Be||re(Xe)},[ve,$e]=te.useState(0),[Ce,be]=te.useState(!1),Se=Ve=>{if(oe(Ve),Ve==="single"&&Y.isGradient())$e(0),fe(new Cl(Y.getColors()[0].color)),me(Y);else if(Ve==="gradient"&&!Y.isGradient()){const Be=ce?t_(Y):Y;fe(new Cl(pe||[{percent:0,color:Be},{percent:100,color:Be}]))}},{status:we}=te.useContext(sa),{compactSize:se,compactItemClassnames:ye}=_u(ie,D),Oe=Hi(Ve=>{var Be;return(Be=b??se)!==null&&Be!==void 0?Be:Ve}),z=qr(ie),[H,G,de]=KZe(ie,z),xe={[`${ie}-rtl`]:D},he=Ee(w,de,z,xe),Ue=Ee(jl(ie,we),{[`${ie}-sm`]:Oe==="small",[`${ie}-lg`]:Oe==="large"},ye,V==null?void 0:V.className,he,y,G),We=Ee(ie,he),ge={open:B,trigger:c,placement:p,arrow:h,rootClassName:w,getPopupContainer:I,autoAdjustOverflow:O,destroyTooltipOnHide:A},ze=Object.assign(Object.assign({},V==null?void 0:V.style),v);return H(te.createElement(yc,Object.assign({style:k==null?void 0:k.popup,styles:{body:k==null?void 0:k.popupOverlayInner},onOpenChange:Ve=>{(!Ve||!K)&&U(Ve)},content:te.createElement(mu,{form:!0},te.createElement(NZe,{mode:ae,onModeChange:Se,modeOptions:le,prefixCls:ie,value:Y,allowClear:o,disabled:K,disabledAlpha:S,presets:s,panelRender:m,format:Z,onFormatChange:ee,onChange:fe,onChangeComplete:re,onClear:$,activeIndex:ve,onActive:$e,gradientDragging:Ce,onGradientDragging:be,disabledFormat:R})),classNames:{root:We}},ge),l||te.createElement(DZe,Object.assign({activeIndex:B?ve:-1,open:B,className:Ue,style:ze,prefixCls:ie,disabled:K,showText:g,format:Z},j,{color:Y}))))},YZe=Gf(GB,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);GB._InternalPanelDoNotUseOrYouWillBeFired=YZe;var XZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},ZZe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:XZe}))},i1e=d.forwardRef(ZZe),QZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},JZe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:QZe}))},a1e=d.forwardRef(JZe),eQe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},tQe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:eQe}))},nQe=d.forwardRef(tQe);function rQe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function iQe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function o1e(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=b8(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[d.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),i]}const[aQe,oQe]=["week","WeekPicker"],[sQe,lQe]=["month","MonthPicker"],[cQe,uQe]=["year","YearPicker"],[dQe,fQe]=["quarter","QuarterPicker"],[s1e,NX]=["time","TimePicker"],pQe=e=>d.createElement(Yt,Object.assign({size:"small",type:"primary"},e));function l1e(e){return d.useMemo(()=>Object.assign({button:pQe},e),[e])}var hQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);id.forwardRef((n,r)=>{var i;const{prefixCls:a,getPopupContainer:o,components:s,className:l,style:c,placement:u,size:f,disabled:p,bordered:h=!0,placeholder:m,popupClassName:g,dropdownClassName:v,status:y,rootClassName:b,variant:w,picker:_}=n,k=hQe(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),S=d.useRef(null),{getPrefixCls:C,direction:E,getPopupContainer:$,rangePicker:M}=d.useContext(Zt),P=C("picker",a),{compactSize:I,compactItemClassnames:O}=_u(P,E),A=C(),[R,j]=Md("rangePicker",w,h),N=qr(P),[D,V,F]=cge(P,N),[K]=o1e(n,P),B=l1e(s),U=Hi(me=>{var re;return(re=f??I)!==null&&re!==void 0?re:me}),Z=d.useContext(ga),ee=p??Z,ie=d.useContext(sa),{hasFeedback:Y,status:X,feedbackIcon:ae}=ie,oe=d.createElement(d.Fragment,null,_===s1e?d.createElement(a1e,null):d.createElement(i1e,null),Y&&ae);d.useImperativeHandle(r,()=>S.current);const[le]=Xa("Calendar",zk),ce=Object.assign(Object.assign({},le),n.locale),[pe]=_c("DatePicker",(i=n.popupStyle)===null||i===void 0?void 0:i.zIndex);return D(d.createElement(mu,{space:!0},d.createElement(dKe,Object.assign({separator:d.createElement("span",{"aria-label":"to",className:`${P}-separator`},d.createElement(nQe,null)),disabled:ee,ref:S,placement:u,placeholder:iQe(ce,_,m),suffixIcon:oe,prevIcon:d.createElement("span",{className:`${P}-prev-icon`}),nextIcon:d.createElement("span",{className:`${P}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${P}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${P}-super-next-icon`}),transitionName:`${A}-slide-up`,picker:_},k,{className:Ee({[`${P}-${U}`]:U,[`${P}-${R}`]:j},jl(P,ku(X,y),Y),V,O,l,M==null?void 0:M.className,F,N,b),style:Object.assign(Object.assign({},M==null?void 0:M.style),c),locale:ce.lang,prefixCls:P,getPopupContainer:o||$,generateConfig:e,components:B,direction:E,classNames:{popup:Ee(V,g||v,F,N,b)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:pe})},allowClear:K}))))});var gQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const t=(l,c)=>{const u=c===NX?"timePicker":"datePicker";return d.forwardRef((p,h)=>{var m;const{prefixCls:g,getPopupContainer:v,components:y,style:b,className:w,rootClassName:_,size:k,bordered:S,placement:C,placeholder:E,popupClassName:$,dropdownClassName:M,disabled:P,status:I,variant:O,onCalendarChange:A}=p,R=gQe(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:j,direction:N,getPopupContainer:D,[u]:V}=d.useContext(Zt),F=j("picker",g),{compactSize:K,compactItemClassnames:B}=_u(F,N),U=d.useRef(null),[Z,ee]=Md("datePicker",O,S),ie=qr(F),[Y,X,ae]=cge(F,ie);d.useImperativeHandle(h,()=>U.current);const oe={showToday:!0},le=l||p.picker,ce=j(),{onSelect:pe,multiple:me}=R,re=pe&&l==="time"&&!me,fe=(he,Ue,We)=>{A==null||A(he,Ue,We),re&&pe(he)},[ve,$e]=o1e(p,F),Ce=l1e(y),be=Hi(he=>{var Ue;return(Ue=k??K)!==null&&Ue!==void 0?Ue:he}),Se=d.useContext(ga),we=P??Se,se=d.useContext(sa),{hasFeedback:ye,status:Oe,feedbackIcon:z}=se,H=d.createElement(d.Fragment,null,le==="time"?d.createElement(a1e,null):d.createElement(i1e,null),ye&&z),[G]=Xa("DatePicker",zk),de=Object.assign(Object.assign({},G),p.locale),[xe]=_c("DatePicker",(m=p.popupStyle)===null||m===void 0?void 0:m.zIndex);return Y(d.createElement(mu,{space:!0},d.createElement(vKe,Object.assign({ref:U,placeholder:rQe(de,le,E),suffixIcon:H,placement:C,prevIcon:d.createElement("span",{className:`${F}-prev-icon`}),nextIcon:d.createElement("span",{className:`${F}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${F}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${F}-super-next-icon`}),transitionName:`${ce}-slide-up`,picker:l,onCalendarChange:fe},oe,R,{locale:de.lang,className:Ee({[`${F}-${be}`]:be,[`${F}-${Z}`]:ee},jl(F,ku(Oe,I),ye),X,B,V==null?void 0:V.className,w,ae,ie,_),style:Object.assign(Object.assign({},V==null?void 0:V.style),b),prefixCls:F,getPopupContainer:v||D,generateConfig:e,components:Ce,direction:N,disabled:we,classNames:{popup:Ee(X,ae,ie,_,$||M)},styles:{popup:Object.assign(Object.assign({},p.popupStyle),{zIndex:xe})},allowClear:ve,removeIcon:$e}))))})},n=t(),r=t(aQe,oQe),i=t(sQe,lQe),a=t(cQe,uQe),o=t(dQe,fQe),s=t(s1e,NX);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:s,QuarterPicker:o}},c1e=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=vQe(e),s=mQe(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=s,l.TimePicker=a,l.QuarterPicker=o,l},bc=c1e(bqe),yQe=Gf(bc,"popupAlign",void 0,"picker");bc._InternalPanelDoNotUseOrYouWillBeFired=yQe;const bQe=Gf(bc.RangePicker,"popupAlign",void 0,"picker");bc._InternalRangePanelDoNotUseOrYouWillBeFired=bQe;bc.generatePicker=c1e;const wQe={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},YB=te.createContext({});var xQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iZi(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function CQe(e,t,n){const r=d.useMemo(()=>t||SQe(n),[t,n]);return d.useMemo(()=>r.map(a=>{var{span:o}=a,s=xQe(a,["span"]);return o==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof o=="number"?o:Phe(e,o)})}),[r,e])}var _Qe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);io).forEach(o=>{const{filled:s}=o,l=_Qe(o,["filled"]);if(s){r.push(l),n.push(r),r=[],a=0;return}const c=t-a;a+=o.span||1,a>=t?(a>t?(i=!0,r.push(Object.assign(Object.assign({},l),{span:c}))):r.push(l),n.push(r),r=[],a=0):r.push(l)}),r.length>0&&n.push(r),n=n.map(o=>{const s=o.reduce((l,c)=>l+(c.span||1),0);if(s{const[n,r]=d.useMemo(()=>kQe(t,e),[t,e]);return n},$Qe=e=>{let{children:t}=e;return t};function AX(e){return e!=null}const Q9=e=>{const{itemPrefixCls:t,component:n,span:r,className:i,style:a,labelStyle:o,contentStyle:s,bordered:l,label:c,content:u,colon:f,type:p,styles:h}=e,m=n,g=d.useContext(YB),{classNames:v}=g;return l?d.createElement(m,{className:Ee({[`${t}-item-label`]:p==="label",[`${t}-item-content`]:p==="content",[`${v==null?void 0:v.label}`]:p==="label",[`${v==null?void 0:v.content}`]:p==="content"},i),style:a,colSpan:r},AX(c)&&d.createElement("span",{style:Object.assign(Object.assign({},o),h==null?void 0:h.label)},c),AX(u)&&d.createElement("span",{style:Object.assign(Object.assign({},o),h==null?void 0:h.content)},u)):d.createElement(m,{className:Ee(`${t}-item`,i),style:a,colSpan:r},d.createElement("div",{className:`${t}-item-container`},(c||c===0)&&d.createElement("span",{className:Ee(`${t}-item-label`,v==null?void 0:v.label,{[`${t}-item-no-colon`]:!f}),style:Object.assign(Object.assign({},o),h==null?void 0:h.label)},c),(u||u===0)&&d.createElement("span",{className:Ee(`${t}-item-content`,v==null?void 0:v.content),style:Object.assign(Object.assign({},s),h==null?void 0:h.content)},u)))};function J9(e,t,n){let{colon:r,prefixCls:i,bordered:a}=t,{component:o,type:s,showLabel:l,showContent:c,labelStyle:u,contentStyle:f,styles:p}=n;return e.map((h,m)=>{let{label:g,children:v,prefixCls:y=i,className:b,style:w,labelStyle:_,contentStyle:k,span:S=1,key:C,styles:E}=h;return typeof o=="string"?d.createElement(Q9,{key:`${s}-${C||m}`,className:b,style:w,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},u),p==null?void 0:p.label),_),E==null?void 0:E.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},f),p==null?void 0:p.content),k),E==null?void 0:E.content)},span:S,colon:r,component:o,itemPrefixCls:y,bordered:a,label:l?g:null,content:c?v:null,type:s}):[d.createElement(Q9,{key:`label-${C||m}`,className:b,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),p==null?void 0:p.label),w),_),E==null?void 0:E.label),span:1,colon:r,component:o[0],itemPrefixCls:y,bordered:a,label:g,type:"label"}),d.createElement(Q9,{key:`content-${C||m}`,className:b,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f),p==null?void 0:p.content),w),k),E==null?void 0:E.content),span:S*2-1,component:o[1],itemPrefixCls:y,bordered:a,content:v,type:"content"})]})}const MQe=e=>{const t=d.useContext(YB),{prefixCls:n,vertical:r,row:i,index:a,bordered:o}=e;return r?d.createElement(d.Fragment,null,d.createElement("tr",{key:`label-${a}`,className:`${n}-row`},J9(i,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),d.createElement("tr",{key:`content-${a}`,className:`${n}-row`},J9(i,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):d.createElement("tr",{key:a,className:`${n}-row`},J9(i,e,Object.assign({component:o?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},TQe=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Me(e.padding)} ${Me(e.paddingLG)}`,borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Me(e.paddingSM)} ${Me(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Me(e.paddingXS)} ${Me(e.padding)}`}}}}}},PQe=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:i,colonMarginRight:a,colonMarginLeft:o,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},ar(e)),TQe(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},oo),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:i},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${Me(o)} ${Me(a)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},OQe=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),IQe=Jn("Descriptions",e=>{const t=Hn(e,{});return PQe(t)},OQe);var RQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l;const{prefixCls:c,title:u,extra:f,column:p,colon:h=!0,bordered:m,layout:g,children:v,className:y,rootClassName:b,style:w,size:_,labelStyle:k,contentStyle:S,styles:C,items:E,classNames:$}=e,M=RQe(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:P,direction:I,descriptions:O}=d.useContext(Zt),A=P("descriptions",c),R=k4(),j=d.useMemo(()=>{var Z;return typeof p=="number"?p:(Z=Phe(R,Object.assign(Object.assign({},wQe),p)))!==null&&Z!==void 0?Z:3},[R,p]),N=CQe(R,E,v),D=Hi(_),V=EQe(j,N),[F,K,B]=IQe(A),U=d.useMemo(()=>{var Z,ee,ie,Y;return{labelStyle:k,contentStyle:S,styles:{content:Object.assign(Object.assign({},(Z=O==null?void 0:O.styles)===null||Z===void 0?void 0:Z.content),C==null?void 0:C.content),label:Object.assign(Object.assign({},(ee=O==null?void 0:O.styles)===null||ee===void 0?void 0:ee.label),C==null?void 0:C.label)},classNames:{label:Ee((ie=O==null?void 0:O.classNames)===null||ie===void 0?void 0:ie.label,$==null?void 0:$.label),content:Ee((Y=O==null?void 0:O.classNames)===null||Y===void 0?void 0:Y.content,$==null?void 0:$.content)}}},[k,S,C,$,O]);return F(d.createElement(YB.Provider,{value:U},d.createElement("div",Object.assign({className:Ee(A,O==null?void 0:O.className,(t=O==null?void 0:O.classNames)===null||t===void 0?void 0:t.root,$==null?void 0:$.root,{[`${A}-${D}`]:D&&D!=="default",[`${A}-bordered`]:!!m,[`${A}-rtl`]:I==="rtl"},y,b,K,B),style:Object.assign(Object.assign(Object.assign(Object.assign({},O==null?void 0:O.style),(n=O==null?void 0:O.styles)===null||n===void 0?void 0:n.root),C==null?void 0:C.root),w)},M),(u||f)&&d.createElement("div",{className:Ee(`${A}-header`,(r=O==null?void 0:O.classNames)===null||r===void 0?void 0:r.header,$==null?void 0:$.header),style:Object.assign(Object.assign({},(i=O==null?void 0:O.styles)===null||i===void 0?void 0:i.header),C==null?void 0:C.header)},u&&d.createElement("div",{className:Ee(`${A}-title`,(a=O==null?void 0:O.classNames)===null||a===void 0?void 0:a.title,$==null?void 0:$.title),style:Object.assign(Object.assign({},(o=O==null?void 0:O.styles)===null||o===void 0?void 0:o.title),C==null?void 0:C.title)},u),f&&d.createElement("div",{className:Ee(`${A}-extra`,(s=O==null?void 0:O.classNames)===null||s===void 0?void 0:s.extra,$==null?void 0:$.extra),style:Object.assign(Object.assign({},(l=O==null?void 0:O.styles)===null||l===void 0?void 0:l.extra),C==null?void 0:C.extra)},f)),d.createElement("div",{className:`${A}-view`},d.createElement("table",null,d.createElement("tbody",null,V.map((Z,ee)=>d.createElement(MQe,{key:ee,index:ee,colon:h,prefixCls:A,vertical:g==="vertical",bordered:m,row:Z}))))))))};Ja.Item=$Qe;var DX=d.createContext(null),u1e=d.createContext({}),jQe=["prefixCls","className","containerRef"],NQe=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,a=Ut(t,jQe),o=d.useContext(u1e),s=o.panel,l=Su(s,i);return d.createElement("div",tt({className:Ee("".concat(n,"-content"),r),role:"dialog",ref:l},Bi(t,{aria:!0}),{"aria-modal":"true"},a))};function FX(e){return typeof e=="string"&&String(Number(e))===e?(zr(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var LX={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function AQe(e,t){var n,r,i,a=e.prefixCls,o=e.open,s=e.placement,l=e.inline,c=e.push,u=e.forceRender,f=e.autoFocus,p=e.keyboard,h=e.classNames,m=e.rootClassName,g=e.rootStyle,v=e.zIndex,y=e.className,b=e.id,w=e.style,_=e.motion,k=e.width,S=e.height,C=e.children,E=e.mask,$=e.maskClosable,M=e.maskMotion,P=e.maskClassName,I=e.maskStyle,O=e.afterOpenChange,A=e.onClose,R=e.onMouseEnter,j=e.onMouseOver,N=e.onMouseLeave,D=e.onClick,V=e.onKeyDown,F=e.onKeyUp,K=e.styles,B=e.drawerRender,U=d.useRef(),Z=d.useRef(),ee=d.useRef();d.useImperativeHandle(t,function(){return U.current});var ie=function(we){var se=we.keyCode,ye=we.shiftKey;switch(se){case gt.TAB:{if(se===gt.TAB){if(!ye&&document.activeElement===ee.current){var Oe;(Oe=Z.current)===null||Oe===void 0||Oe.focus({preventScroll:!0})}else if(ye&&document.activeElement===Z.current){var z;(z=ee.current)===null||z===void 0||z.focus({preventScroll:!0})}}break}case gt.ESC:{A&&p&&(we.stopPropagation(),A(we));break}}};d.useEffect(function(){if(o&&f){var Se;(Se=U.current)===null||Se===void 0||Se.focus({preventScroll:!0})}},[o]);var Y=d.useState(!1),X=Te(Y,2),ae=X[0],oe=X[1],le=d.useContext(DX),ce;typeof c=="boolean"?ce=c?{}:{distance:0}:ce=c||{};var pe=(n=(r=(i=ce)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:le==null?void 0:le.pushDistance)!==null&&n!==void 0?n:180,me=d.useMemo(function(){return{pushDistance:pe,push:function(){oe(!0)},pull:function(){oe(!1)}}},[pe]);d.useEffect(function(){if(o){var Se;le==null||(Se=le.push)===null||Se===void 0||Se.call(le)}else{var we;le==null||(we=le.pull)===null||we===void 0||we.call(le)}},[o]),d.useEffect(function(){return function(){var Se;le==null||(Se=le.pull)===null||Se===void 0||Se.call(le)}},[]);var re=E&&d.createElement(ka,tt({key:"mask"},M,{visible:o}),function(Se,we){var se=Se.className,ye=Se.style;return d.createElement("div",{className:Ee("".concat(a,"-mask"),se,h==null?void 0:h.mask,P),style:q(q(q({},ye),I),K==null?void 0:K.mask),onClick:$&&o?A:void 0,ref:we})}),fe=typeof _=="function"?_(s):_,ve={};if(ae&&pe)switch(s){case"top":ve.transform="translateY(".concat(pe,"px)");break;case"bottom":ve.transform="translateY(".concat(-pe,"px)");break;case"left":ve.transform="translateX(".concat(pe,"px)");break;default:ve.transform="translateX(".concat(-pe,"px)");break}s==="left"||s==="right"?ve.width=FX(k):ve.height=FX(S);var $e={onMouseEnter:R,onMouseOver:j,onMouseLeave:N,onClick:D,onKeyDown:V,onKeyUp:F},Ce=d.createElement(ka,tt({key:"panel"},fe,{visible:o,forceRender:u,onVisibleChanged:function(we){O==null||O(we)},removeOnLeave:!1,leavedClassName:"".concat(a,"-content-wrapper-hidden")}),function(Se,we){var se=Se.className,ye=Se.style,Oe=d.createElement(NQe,tt({id:b,containerRef:we,prefixCls:a,className:Ee(y,h==null?void 0:h.content),style:q(q({},w),K==null?void 0:K.content)},Bi(e,{aria:!0}),$e),C);return d.createElement("div",tt({className:Ee("".concat(a,"-content-wrapper"),h==null?void 0:h.wrapper,se),style:q(q(q({},ve),ye),K==null?void 0:K.wrapper)},Bi(e,{data:!0})),B?B(Oe):Oe)}),be=q({},g);return v&&(be.zIndex=v),d.createElement(DX.Provider,{value:me},d.createElement("div",{className:Ee(a,"".concat(a,"-").concat(s),m,ne(ne({},"".concat(a,"-open"),o),"".concat(a,"-inline"),l)),style:be,tabIndex:-1,ref:U,onKeyDown:ie},re,d.createElement("div",{tabIndex:0,ref:Z,style:LX,"aria-hidden":"true","data-sentinel":"start"}),Ce,d.createElement("div",{tabIndex:0,ref:ee,style:LX,"aria-hidden":"true","data-sentinel":"end"})))}var DQe=d.forwardRef(AQe),FQe=function(t){var n=t.open,r=n===void 0?!1:n,i=t.prefixCls,a=i===void 0?"rc-drawer":i,o=t.placement,s=o===void 0?"right":o,l=t.autoFocus,c=l===void 0?!0:l,u=t.keyboard,f=u===void 0?!0:u,p=t.width,h=p===void 0?378:p,m=t.mask,g=m===void 0?!0:m,v=t.maskClosable,y=v===void 0?!0:v,b=t.getContainer,w=t.forceRender,_=t.afterOpenChange,k=t.destroyOnClose,S=t.onMouseEnter,C=t.onMouseOver,E=t.onMouseLeave,$=t.onClick,M=t.onKeyDown,P=t.onKeyUp,I=t.panelRef,O=d.useState(!1),A=Te(O,2),R=A[0],j=A[1],N=d.useState(!1),D=Te(N,2),V=D[0],F=D[1];nr(function(){F(!0)},[]);var K=V?r:!1,B=d.useRef(),U=d.useRef();nr(function(){K&&(U.current=document.activeElement)},[K]);var Z=function(ae){var oe;if(j(ae),_==null||_(ae),!ae&&U.current&&!((oe=B.current)!==null&&oe!==void 0&&oe.contains(U.current))){var le;(le=U.current)===null||le===void 0||le.focus({preventScroll:!0})}},ee=d.useMemo(function(){return{panel:I}},[I]);if(!w&&!R&&!K&&k)return null;var ie={onMouseEnter:S,onMouseOver:C,onMouseLeave:E,onClick:$,onKeyDown:M,onKeyUp:P},Y=q(q({},t),{},{open:K,prefixCls:a,placement:s,autoFocus:c,keyboard:f,width:h,mask:g,maskClosable:y,inline:b===!1,afterOpenChange:Z,ref:B},ie);return d.createElement(u1e.Provider,{value:ee},d.createElement(x4,{open:K||w||R,autoDestroy:!1,getContainer:b,autoLock:g&&(K||R)},d.createElement(DQe,Y)))};const d1e=e=>{var t,n;const{prefixCls:r,title:i,footer:a,extra:o,loading:s,onClose:l,headerStyle:c,bodyStyle:u,footerStyle:f,children:p,classNames:h,styles:m}=e,{drawer:g}=d.useContext(Zt),v=d.useCallback(k=>d.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${r}-close`},k),[l]),[y,b]=lB(T0(e),T0(g),{closable:!0,closeIconRender:v}),w=d.useMemo(()=>{var k,S;return!i&&!y?null:d.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(k=g==null?void 0:g.styles)===null||k===void 0?void 0:k.header),c),m==null?void 0:m.header),className:Ee(`${r}-header`,{[`${r}-header-close-only`]:y&&!i&&!o},(S=g==null?void 0:g.classNames)===null||S===void 0?void 0:S.header,h==null?void 0:h.header)},d.createElement("div",{className:`${r}-header-title`},b,i&&d.createElement("div",{className:`${r}-title`},i)),o&&d.createElement("div",{className:`${r}-extra`},o))},[y,b,o,c,r,i]),_=d.useMemo(()=>{var k,S;if(!a)return null;const C=`${r}-footer`;return d.createElement("div",{className:Ee(C,(k=g==null?void 0:g.classNames)===null||k===void 0?void 0:k.footer,h==null?void 0:h.footer),style:Object.assign(Object.assign(Object.assign({},(S=g==null?void 0:g.styles)===null||S===void 0?void 0:S.footer),f),m==null?void 0:m.footer)},a)},[a,f,r]);return d.createElement(d.Fragment,null,w,d.createElement("div",{className:Ee(`${r}-body`,h==null?void 0:h.body,(t=g==null?void 0:g.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=g==null?void 0:g.styles)===null||n===void 0?void 0:n.body),u),m==null?void 0:m.body)},s?d.createElement(Kf,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):p),_)},LQe=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},f1e=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),p1e=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},f1e({opacity:e},{opacity:1})),BQe=(e,t)=>[p1e(.7,t),f1e({transform:LQe(e)},{transform:"none"})],zQe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:p1e(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:BQe(i,n)}),{})}}},HQe=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:a,motionDurationSlow:o,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:f,lineHeightLG:p,lineWidth:h,lineType:m,colorSplit:g,marginXS:v,colorIcon:y,colorIconHover:b,colorBgTextHover:w,colorBgTextActive:_,colorText:k,fontWeightStrong:S,footerPaddingBlock:C,footerPaddingInline:E,calc:$}=e,M=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:k,"&-pure":{position:"relative",background:a,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:i,pointerEvents:"auto"},[M]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${M}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${M}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${M}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${M}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Me(c)} ${Me(u)}`,fontSize:f,lineHeight:p,borderBottom:`${Me(h)} ${m} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:$(f).add(l).equal(),height:$(f).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:y,fontWeight:S,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:b,backgroundColor:w,textDecoration:"none"},"&:active":{backgroundColor:_}},Vs(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:p},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${Me(C)} ${Me(E)}`,borderTop:`${Me(h)} ${m} ${g}`},"&-rtl":{direction:"rtl"}}}},UQe=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),h1e=Jn("Drawer",e=>{const t=Hn(e,{});return[HQe(t),zQe(t)]},UQe);var m1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{rootClassName:t,width:n,height:r,size:i="default",mask:a=!0,push:o=WQe,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:f,style:p,className:h,visible:m,afterVisibleChange:g,maskStyle:v,drawerStyle:y,contentWrapperStyle:b}=e,w=m1e(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:_,getPrefixCls:k,direction:S,drawer:C}=d.useContext(Zt),E=k("drawer",u),[$,M,P]=h1e(E),I=f===void 0&&_?()=>_(document.body):f,O=Ee({"no-mask":!a,[`${E}-rtl`]:S==="rtl"},t,M,P),A=d.useMemo(()=>n??(i==="large"?736:378),[n,i]),R=d.useMemo(()=>r??(i==="large"?736:378),[r,i]),j={motionName:so(E,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},N=ee=>({motionName:so(E,`panel-motion-${ee}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),D=Hpe(),[V,F]=_c("Drawer",w.zIndex),{classNames:K={},styles:B={}}=w,{classNames:U={},styles:Z={}}=C||{};return $(d.createElement(mu,{form:!0,space:!0},d.createElement(m4.Provider,{value:F},d.createElement(FQe,Object.assign({prefixCls:E,onClose:c,maskMotion:j,motion:N},w,{classNames:{mask:Ee(K.mask,U.mask),content:Ee(K.content,U.content),wrapper:Ee(K.wrapper,U.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},B.mask),v),Z.mask),content:Object.assign(Object.assign(Object.assign({},B.content),y),Z.content),wrapper:Object.assign(Object.assign(Object.assign({},B.wrapper),b),Z.wrapper)},open:s??m,mask:a,push:o,width:A,height:R,style:Object.assign(Object.assign({},C==null?void 0:C.style),p),className:Ee(C==null?void 0:C.className,h),rootClassName:O,getContainer:I,afterOpenChange:l??g,panelRef:D,zIndex:V}),d.createElement(d1e,Object.assign({prefixCls:E},w,{onClose:c}))))))},VQe=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,a=m1e(e,["prefixCls","style","className","placement"]),{getPrefixCls:o}=d.useContext(Zt),s=o("drawer",t),[l,c,u]=h1e(s),f=Ee(s,`${s}-pure`,`${s}-${i}`,c,u,r);return l(d.createElement("div",{className:f,style:n},d.createElement(d1e,Object.assign({prefixCls:s},a))))};xh._InternalPanelDoNotUseOrYouWillBeFired=VQe;function S6(e){return["small","middle","large"].includes(e)}function BX(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const g1e=te.createContext({latestIndex:0}),qQe=g1e.Provider,KQe=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:o}=d.useContext(g1e);return r==null?null:d.createElement(d.Fragment,null,d.createElement("div",{className:t,style:a},r),n{var n,r,i;const{getPrefixCls:a,space:o,direction:s}=d.useContext(Zt),{size:l=(n=o==null?void 0:o.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:f,children:p,direction:h="horizontal",prefixCls:m,split:g,style:v,wrap:y=!1,classNames:b,styles:w}=e,_=GQe(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[k,S]=Array.isArray(l)?l:[l,l],C=S6(S),E=S6(k),$=BX(S),M=BX(k),P=Zi(p,{keepEmpty:!0}),I=c===void 0&&h==="horizontal"?"center":c,O=a("space",m),[A,R,j]=upe(O),N=Ee(O,o==null?void 0:o.className,R,`${O}-${h}`,{[`${O}-rtl`]:s==="rtl",[`${O}-align-${I}`]:I,[`${O}-gap-row-${S}`]:C,[`${O}-gap-col-${k}`]:E},u,f,j),D=Ee(`${O}-item`,(r=b==null?void 0:b.item)!==null&&r!==void 0?r:(i=o==null?void 0:o.classNames)===null||i===void 0?void 0:i.item);let V=0;const F=P.map((U,Z)=>{var ee,ie;U!=null&&(V=Z);const Y=(U==null?void 0:U.key)||`${D}-${Z}`;return d.createElement(KQe,{className:D,key:Y,index:Z,split:g,style:(ee=w==null?void 0:w.item)!==null&&ee!==void 0?ee:(ie=o==null?void 0:o.styles)===null||ie===void 0?void 0:ie.item},U)}),K=d.useMemo(()=>({latestIndex:V}),[V]);if(P.length===0)return null;const B={};return y&&(B.flexWrap="wrap"),!E&&M&&(B.columnGap=k),!C&&$&&(B.rowGap=S),A(d.createElement("div",Object.assign({ref:t,className:N,style:Object.assign(Object.assign(Object.assign({},B),o==null?void 0:o.style),v)},_),d.createElement(qQe,{value:K},F)))}),Zr=YQe;Zr.Compact=RDe;var XQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPopupContainer:t,getPrefixCls:n,direction:r}=d.useContext(Zt),{prefixCls:i,type:a="default",danger:o,disabled:s,loading:l,onClick:c,htmlType:u,children:f,className:p,menu:h,arrow:m,autoFocus:g,overlay:v,trigger:y,align:b,open:w,onOpenChange:_,placement:k,getPopupContainer:S,href:C,icon:E=d.createElement(TB,null),title:$,buttonsRender:M=X=>X,mouseEnterDelay:P,mouseLeaveDelay:I,overlayClassName:O,overlayStyle:A,destroyPopupOnHide:R,dropdownRender:j}=e,N=XQe(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),D=n("dropdown",i),V=`${D}-button`,F={menu:h,arrow:m,autoFocus:g,align:b,disabled:s,trigger:s?[]:y,onOpenChange:_,getPopupContainer:S||t,mouseEnterDelay:P,mouseLeaveDelay:I,overlayClassName:O,overlayStyle:A,destroyPopupOnHide:R,dropdownRender:j},{compactSize:K,compactItemClassnames:B}=_u(D,r),U=Ee(V,B,p);"overlay"in e&&(F.overlay=v),"open"in e&&(F.open=w),"placement"in e?F.placement=k:F.placement=r==="rtl"?"bottomLeft":"bottomRight";const Z=d.createElement(Yt,{type:a,danger:o,disabled:s,loading:l,onClick:c,htmlType:u,href:C,title:$},f),ee=d.createElement(Yt,{type:a,danger:o,icon:E}),[ie,Y]=M([Z,ee]);return d.createElement(Zr.Compact,Object.assign({className:U,size:K,block:!0},N),ie,d.createElement(E8,Object.assign({},F),Y))};v1e.__ANT_BUTTON=!0;const C6=E8;C6.Button=v1e;const y1e=["wrap","nowrap","wrap-reverse"],b1e=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],w1e=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],ZQe=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&y1e.includes(n)}},QQe=(e,t)=>{const n={};return w1e.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},JQe=(e,t)=>{const n={};return b1e.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function eJe(e,t){return Ee(Object.assign(Object.assign(Object.assign({},ZQe(e,t)),QQe(e,t)),JQe(e,t)))}const tJe=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},nJe=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},rJe=e=>{const{componentCls:t}=e,n={};return y1e.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},iJe=e=>{const{componentCls:t}=e,n={};return w1e.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},aJe=e=>{const{componentCls:t}=e,n={};return b1e.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},oJe=()=>({}),sJe=Jn("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,i=Hn(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[tJe(i),nJe(i),rJe(i),iJe(i),aJe(i)]},oJe,{resetStyle:!1});var lJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,rootClassName:r,className:i,style:a,flex:o,gap:s,children:l,vertical:c=!1,component:u="div"}=e,f=lJe(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:p,direction:h,getPrefixCls:m}=te.useContext(Zt),g=m("flex",n),[v,y,b]=sJe(g),w=c??(p==null?void 0:p.vertical),_=Ee(i,r,p==null?void 0:p.className,g,y,b,eJe(g,e),{[`${g}-rtl`]:h==="rtl",[`${g}-gap-${s}`]:S6(s),[`${g}-vertical`]:w}),k=Object.assign(Object.assign({},p==null?void 0:p.style),a);return o&&(k.flex=o),s&&!S6(s)&&(k.gap=s),v(te.createElement(u,Object.assign({ref:t,className:_,style:k},$r(f,["justify","wrap","align"])),l))});function _6(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const cJe=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut}, + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},i1e=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:a,marginFull:o,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",h=s(r).mul(3).sub(i).div(2).equal(),m=s(i).sub(r).div(2).equal(),g=t?{borderWidth:`${Me(m)} 0`,transform:`translateY(${Me(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${Me(m)}`,transform:`translateX(${Me(e.calc(m).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[f]:h},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:s(r).mul(3).add(t?0:o).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(a).div(2).equal()}}},kZe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},i1e(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},EZe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},i1e(e,!1)),{height:"100%"})}},$Ze=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,a=e.lineWidth+1*1.5,o=e.colorPrimary,s=new ur(o).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:o,handleActiveOutlineColor:s,handleColorDisabled:new ur(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},MZe=Jn("Slider",e=>{const t=Hn(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[_Ze(t),kZe(t),EZe(t)]},$Ze);function eT(){const[e,t]=d.useState(!1),n=d.useRef(null),r=()=>{rr.cancel(n.current)},i=a=>{r(),a?t(a):n.current=rr(()=>{t(a)})};return d.useEffect(()=>r,[]),[e,i]}var TZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);itypeof n=="number"?n.toString():""}const a1e=te.forwardRef((e,t)=>{var n,r,i,a,o,s,l,c,u,f;const{prefixCls:p,range:h,className:m,rootClassName:g,style:v,disabled:y,tooltipPrefixCls:w,tipFormatter:b,tooltipVisible:C,getTooltipPopupContainer:k,tooltipPlacement:S,tooltip:_={},onChangeComplete:E,classNames:$,styles:M}=e,P=TZe(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:R}=e,{direction:O,slider:j,getPrefixCls:I,getPopupContainer:A}=te.useContext(Xt),N=te.useContext(ma),F=y??N,{handleRender:K,direction:L}=te.useContext(r1e),B=(L||O)==="rtl",[U,Y]=eT(),[ee,ie]=eT(),Z=Object.assign({},_),{open:X,placement:ae,getPopupContainer:oe,prefixCls:le,formatter:ce}=Z,pe=X??C,me=(U||ee)&&pe!==!1,re=PZe(ce,b),[fe,ve]=eT(),$e=he=>{E==null||E(he),ve(!1)},Ce=(he,Ue)=>he||(Ue?B?"left":"right":"top"),be=I("slider",p),[Se,we,se]=MZe(be),ye=Ee(m,j==null?void 0:j.className,(n=j==null?void 0:j.classNames)===null||n===void 0?void 0:n.root,$==null?void 0:$.root,g,{[`${be}-rtl`]:B,[`${be}-lock`]:fe},we,se);B&&!P.vertical&&(P.reverse=!P.reverse),te.useEffect(()=>{const he=()=>{rr(()=>{ie(!1)},1)};return document.addEventListener("mouseup",he),()=>{document.removeEventListener("mouseup",he)}},[]);const Oe=h&&!pe,z=K||((he,Ue)=>{const{index:We}=Ue,ge=he.props;function ze(Ke,qe,Et){var ut,gt,Ze,nt;Et&&((gt=(ut=P)[Ke])===null||gt===void 0||gt.call(ut,qe)),(nt=(Ze=ge)[Ke])===null||nt===void 0||nt.call(Ze,qe)}const Ve=Object.assign(Object.assign({},ge),{onMouseEnter:Ke=>{Y(!0),ze("onMouseEnter",Ke)},onMouseLeave:Ke=>{Y(!1),ze("onMouseLeave",Ke)},onMouseDown:Ke=>{ie(!0),ve(!0),ze("onMouseDown",Ke)},onFocus:Ke=>{var qe;ie(!0),(qe=P.onFocus)===null||qe===void 0||qe.call(P,Ke),ze("onFocus",Ke,!0)},onBlur:Ke=>{var qe;ie(!1),(qe=P.onBlur)===null||qe===void 0||qe.call(P,Ke),ze("onBlur",Ke,!0)}}),Be=te.cloneElement(he,Ve),Xe=(!!pe||me)&&re!==null;return Oe?Be:te.createElement(RX,Object.assign({},Z,{prefixCls:I("tooltip",le??w),title:re?re(Ue.value):"",open:Xe,placement:Ce(ae??S,R),key:We,classNames:{root:`${be}-tooltip`},getPopupContainer:oe||k||A}),Be)}),H=Oe?(he,Ue)=>{const We=te.cloneElement(he,{style:Object.assign(Object.assign({},he.props.style),{visibility:"hidden"})});return te.createElement(RX,Object.assign({},Z,{prefixCls:I("tooltip",le??w),title:re?re(Ue.value):"",open:re!==null&&me,placement:Ce(ae??S,R),key:"tooltip",classNames:{root:`${be}-tooltip`},getPopupContainer:oe||k||A,draggingDelete:Ue.draggingDelete}),We)}:void 0,G=Object.assign(Object.assign(Object.assign(Object.assign({},(r=j==null?void 0:j.styles)===null||r===void 0?void 0:r.root),j==null?void 0:j.style),M==null?void 0:M.root),v),de=Object.assign(Object.assign({},(i=j==null?void 0:j.styles)===null||i===void 0?void 0:i.tracks),M==null?void 0:M.tracks),xe=Ee((a=j==null?void 0:j.classNames)===null||a===void 0?void 0:a.tracks,$==null?void 0:$.tracks);return Se(te.createElement(CZe,Object.assign({},P,{classNames:Object.assign({handle:Ee((o=j==null?void 0:j.classNames)===null||o===void 0?void 0:o.handle,$==null?void 0:$.handle),rail:Ee((s=j==null?void 0:j.classNames)===null||s===void 0?void 0:s.rail,$==null?void 0:$.rail),track:Ee((l=j==null?void 0:j.classNames)===null||l===void 0?void 0:l.track,$==null?void 0:$.track)},xe?{tracks:xe}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},(c=j==null?void 0:j.styles)===null||c===void 0?void 0:c.handle),M==null?void 0:M.handle),rail:Object.assign(Object.assign({},(u=j==null?void 0:j.styles)===null||u===void 0?void 0:u.rail),M==null?void 0:M.rail),track:Object.assign(Object.assign({},(f=j==null?void 0:j.styles)===null||f===void 0?void 0:f.track),M==null?void 0:M.track)},Object.keys(de).length?{tracks:de}:{}),step:P.step,range:h,className:ye,style:G,disabled:F,ref:t,prefixCls:be,handleRender:z,activeHandleRender:H,onChangeComplete:$e})))});var OZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,colors:n,type:r,color:i,range:a=!1,className:o,activeIndex:s,onActive:l,onDragStart:c,onDragChange:u,onKeyDelete:f}=e,p=OZe(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),h=Object.assign(Object.assign({},p),{track:!1}),m=d.useMemo(()=>`linear-gradient(90deg, ${n.map(S=>`${S.color} ${S.percent}%`).join(", ")})`,[n]),g=d.useMemo(()=>!i||!r?null:r==="alpha"?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`,[i,r]),v=Vn(c),y=Vn(u),w=d.useMemo(()=>({onDragStart:v,onDragChange:y}),[]),b=Vn((k,S)=>{const{onFocus:_,style:E,className:$,onKeyDown:M}=k.props,P=Object.assign({},E);return r==="gradient"&&(P.background=kpe(n,S.value)),d.cloneElement(k,{onFocus:R=>{l==null||l(S.index),_==null||_(R)},style:P,className:Ee($,{[`${t}-slider-handle-active`]:s===S.index}),onKeyDown:R=>{(R.key==="Delete"||R.key==="Backspace")&&f&&f(S.index),M==null||M(R)}})}),C=d.useMemo(()=>({direction:"ltr",handleRender:b}),[]);return d.createElement(r1e.Provider,{value:C},d.createElement(n1e.Provider,{value:w},d.createElement(a1e,Object.assign({},h,{className:Ee(o,`${t}-slider`),tooltip:{open:!1},range:{editable:a,minCount:2},styles:{rail:{background:m},handle:g?{background:g}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},RZe=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,i=o=>n(o[0]),a=o=>r(o[0]);return d.createElement(o1e,Object.assign({},e,{value:[t],onChange:i,onChangeComplete:a}))};function IX(e){return lt(e).sort((t,n)=>t.percent-n.percent)}const IZe=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:i,onActive:a,activeIndex:o,onGradientDragging:s,colors:l}=e,c=n==="gradient",u=d.useMemo(()=>l.map(y=>({percent:y.percent,color:y.color.toRgbString()})),[l]),f=d.useMemo(()=>u.map(y=>y.percent),[u]),p=d.useRef(u),h=y=>{let{rawValues:w,draggingIndex:b,draggingValue:C}=y;if(w.length>u.length){const k=kpe(u,C),S=lt(u);S.splice(b,0,{percent:C,color:k}),p.current=S}else p.current=u;s(!0),r(new _l(IX(p.current)),!0)},m=y=>{let{deleteIndex:w,draggingIndex:b,draggingValue:C}=y,k=lt(p.current);w!==-1?k.splice(w,1):(k[b]=Object.assign(Object.assign({},k[b]),{percent:C}),k=IX(k)),r(new _l(k),!0)},g=y=>{const w=lt(u);w.splice(y,1);const b=new _l(w);r(b),i(b)},v=y=>{i(new _l(u)),o>=y.length&&a(y.length-1),s(!1)};return c?d.createElement(o1e,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:f,range:!0,onChangeComplete:v,disabled:!1,type:"gradient",activeIndex:o,onActive:a,onDragStart:h,onDragChange:m,onKeyDelete:g}):null},jZe=d.memo(IZe);var NZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const e=d.useContext(Vge),{mode:t,onModeChange:n,modeOptions:r,prefixCls:i,allowClear:a,value:o,disabledAlpha:s,onChange:l,onClear:c,onChangeComplete:u,activeIndex:f,gradientDragging:p}=e,h=NZe(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),m=te.useMemo(()=>o.cleared?[{percent:0,color:new _l("")},{percent:100,color:new _l("")}]:o.getColors(),[o]),g=!o.isGradient(),[v,y]=te.useState(o);nr(()=>{var j;g||y((j=m[f])===null||j===void 0?void 0:j.color)},[p,f]);const w=te.useMemo(()=>{var j;return g?o:p?v:(j=m[f])===null||j===void 0?void 0:j.color},[o,f,g,v,p]),[b,C]=te.useState(w),[k,S]=te.useState(0),_=b!=null&&b.equals(w)?w:b;nr(()=>{C(w)},[k,w==null?void 0:w.toHexString()]);const E=(j,I)=>{let A=Xo(j);if(o.cleared){const F=A.toRgb();if(!F.r&&!F.g&&!F.b&&I){const{type:K,value:L=0}=I;A=new _l({h:K==="hue"?L:0,s:1,b:1,a:K==="alpha"?L/100:1})}else A=r_(A)}if(t==="single")return A;const N=lt(m);return N[f]=Object.assign(Object.assign({},N[f]),{color:A}),new _l(N)},$=(j,I,A)=>{const N=E(j,A);C(N.isGradient()?N.getColors()[f].color:N),l(N,I)},M=(j,I)=>{u(E(j,I)),S(A=>A+1)},P=j=>{l(E(j))};let R=null;const O=r.length>1;return(a||O)&&(R=te.createElement("div",{className:`${i}-operation`},O&&te.createElement(Wge,{size:"small",options:r,value:t,onChange:n}),te.createElement(Kge,Object.assign({prefixCls:i,value:o,onChange:j=>{l(j),c==null||c()}},h)))),te.createElement(te.Fragment,null,R,te.createElement(jZe,Object.assign({},e,{colors:m})),te.createElement(eFe,{prefixCls:i,value:_==null?void 0:_.toHsb(),disabledAlpha:s,onChange:(j,I)=>{$(j,!0,I)},onChangeComplete:(j,I)=>{M(j,I)},components:AZe}),te.createElement(uZe,Object.assign({value:w,onChange:P,prefixCls:i,disabledAlpha:s},h)))},NX=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=d.useContext(qge);return Array.isArray(n)?te.createElement(KFe,{value:t,presets:n,prefixCls:e,onChange:r}):null},DZe=e=>{const{prefixCls:t,presets:n,panelRender:r,value:i,onChange:a,onClear:o,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:f,onChangeComplete:p,activeIndex:h,onActive:m,format:g,onFormatChange:v,gradientDragging:y,onGradientDragging:w,disabledFormat:b}=e,C=`${t}-inner`,k=te.useMemo(()=>({prefixCls:t,value:i,onChange:a,onClear:o,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:f,onChangeComplete:p,activeIndex:h,onActive:m,format:g,onFormatChange:v,gradientDragging:y,onGradientDragging:w,disabledFormat:b}),[t,i,a,o,s,l,c,u,f,p,h,m,g,v,y,w,b]),S=te.useMemo(()=>({prefixCls:t,value:i,presets:n,onChange:a}),[t,i,n,a]),_=te.createElement("div",{className:`${C}-content`},te.createElement(jX,null),Array.isArray(n)&&te.createElement(WYe,null),te.createElement(NX,null));return te.createElement(Vge.Provider,{value:k},te.createElement(qge.Provider,{value:S},te.createElement("div",{className:C},typeof r=="function"?r(_,{components:{Picker:jX,Presets:NX}}):_)))};var FZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{color:n,prefixCls:r,open:i,disabled:a,format:o,className:s,showText:l,activeIndex:c}=e,u=FZe(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${r}-trigger`,p=`${f}-text`,h=`${p}-cell`,[m]=Ga("ColorPicker"),g=te.useMemo(()=>{if(!l)return"";if(typeof l=="function")return l(n);if(n.cleared)return m.transparent;if(n.isGradient())return n.getColors().map((b,C)=>{const k=c!==-1&&c!==C;return te.createElement("span",{key:C,className:Ee(h,k&&`${h}-inactive`)},b.color.toRgbString()," ",b.percent,"%")});const y=n.toHexString().toUpperCase(),w=tB(n);switch(o){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return w<100?`${y.slice(0,7)},${w}%`:y}},[n,o,l,c]),v=d.useMemo(()=>n.cleared?te.createElement(Kge,{prefixCls:r}):te.createElement(ZL,{prefixCls:r,color:n.toCssString()}),[n,r]);return te.createElement("div",Object.assign({ref:t,className:Ee(f,s,{[`${f}-active`]:i,[`${f}-disabled`]:a})},Fi(u)),v,l&&te.createElement("div",{className:p},g))});function BZe(e,t,n){const[r]=Ga("ColorPicker"),[i,a]=jn(e,{value:t}),[o,s]=d.useState("single"),[l,c]=d.useMemo(()=>{const g=(Array.isArray(n)?n:[n]).filter(b=>b);g.length||g.push("single");const v=new Set(g),y=[],w=(b,C)=>{v.has(b)&&y.push({label:C,value:b})};return w("single",r.singleColor),w("gradient",r.gradientColor),[y,v]},[n]),[u,f]=d.useState(null),p=Vn(g=>{f(g),a(g)}),h=d.useMemo(()=>{const g=Xo(i||"");return g.equals(u)?u:g},[i,u]),m=d.useMemo(()=>{var g;return c.has(o)?o:(g=l[0])===null||g===void 0?void 0:g.value},[c,o,l]);return d.useEffect(()=>{s(h.isGradient()?"gradient":"single")},[h]),[h,p,m,s,l]}const s1e=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),AX=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:i,lineWidth:a,colorFillSecondary:o}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:i,flex:"none"},s1e("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${Me(a)} ${o}`,borderRadius:"inherit"}})}},zZe=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:i,colorPickerAlphaInputWidth:a,marginXXS:o,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:f,colorTextPlaceholder:p,colorPickerInputNumberHandleWidth:h,lineWidth:m}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:i,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:h}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${Me(a)}`,marginInlineStart:o},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(o).equal(),fontSize:r,lineHeight:Me(l)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:i},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:o,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:o,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${Me(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:Me(e.calc(l).sub(e.calc(m).mul(2)).equal())},[`${n}-input-prefix`]:{color:p}}}}}},HZe=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:i,marginSM:a,colorBgElevated:o,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:i,inset:0},marginBottom:a},[`${t}-handler`]:{width:c,height:c,border:`${Me(l)} solid ${o}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${i}, 0 0 0 1px ${s}`}}},UZe=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:i,colorPickerPresetColorSize:a,fontSizeSM:o,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:f,colorWhite:p,marginXXS:h,paddingXS:m,fontHeightSM:g}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:g,color:r,paddingInlineEnd:i}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${Me(m)} 0`},"&-label":{fontSize:o,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(h).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:e.calc(a).add(e.calc(c).mul(4)).equal(),height:e.calc(a).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:u,border:`${Me(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(a).div(13).mul(5).equal(),height:e.calc(a).div(13).mul(8).equal(),border:`${Me(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:p,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:o,color:r}}}},WZe=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:i,lineWidthBold:a,colorPickerHandlerSizeSM:o,colorPickerSliderHeight:s,marginSM:l,marginXS:c}=e,u=e.calc(o).sub(e.calc(a).mul(2).equal()).equal(),f=e.calc(o).add(e.calc(a).mul(2).equal()).equal(),p={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[s1e(Me(s),e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:f,height:f,borderRadius:"100%"},"&:after":{width:o,height:o,border:`${Me(a)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${i}`,outline:"none",insetInlineStart:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":p}}],[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":p}}}},Yj=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${Me(e.controlOutlineWidth)} ${n}`,outline:0}),VZe=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},DX=(e,t,n)=>{const{componentCls:r,borderRadiusSM:i,lineWidth:a,colorSplit:o,colorBorder:s,red6:l}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:i,border:`${Me(a)} solid ${o}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}})}},qZe=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:i,colorWarningHover:a,colorErrorOutline:o,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},Yj(e,n,o))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},Yj(e,r,s))}}},KZe=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:i,controlHeightXS:a,borderRadius:o,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:o},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:Me(a)}}}},GZe=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:i,motionDurationMid:a,colorBgElevated:o,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:c,borderRadius:u,marginXS:f,marginSM:p,controlHeight:h,controlHeightSM:m,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:y,lineWidth:w,colorBorder:b,paddingXXS:C,fontSize:k,colorPrimaryHover:S,controlOutline:_}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${Me(p)} 0 ${Me(f)}`}},[`${n}-panel`]:Object.assign({},HZe(e))},WZe(e)),AX(e,y)),zZe(e)),UZe(e)),DX(e,v,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:h,minHeight:h,borderRadius:u,border:`${Me(w)} solid ${b}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${a}`,background:o,padding:e.calc(C).sub(w).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(C).sub(w)).equal(),fontSize:k,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:S},[`&${n}-trigger-active`]:Object.assign({},Yj(e,i,_)),"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:g},[`${n}-trigger-text`]:{color:s}}},DX(e,m)),AX(e,m)),qZe(e)),KZe(e))},VZe(e))},Vg(e,{focusElCls:`${n}-trigger-active`})]},YZe=Jn("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,i=Hn(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return[GZe(i)]});var XZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{mode:t,value:n,defaultValue:r,format:i,defaultFormat:a,allowClear:o=!1,presets:s,children:l,trigger:c="click",open:u,disabled:f,placement:p="bottomLeft",arrow:h=!0,panelRender:m,showText:g,style:v,className:y,size:w,rootClassName:b,prefixCls:C,styles:k,disabledAlpha:S=!1,onFormatChange:_,onChange:E,onClear:$,onOpenChange:M,onChangeComplete:P,getPopupContainer:R,autoAdjustOverflow:O=!0,destroyTooltipOnHide:j,disabledFormat:I}=e,A=XZe(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","disabledFormat"]),{getPrefixCls:N,direction:F,colorPicker:K}=d.useContext(Xt),L=d.useContext(ma),V=f??L,[B,U]=jn(!1,{value:u,postState:Ve=>!V&&Ve,onChange:M}),[Y,ee]=jn(i,{value:i,defaultValue:a,onChange:_}),ie=N("color-picker",C),[Z,X,ae,oe,le]=BZe(r,n,t),ce=d.useMemo(()=>tB(Z)<100,[Z]),[pe,me]=te.useState(null),re=Ve=>{if(P){let Be=Xo(Ve);S&&ce&&(Be=r_(Ve)),P(Be)}},fe=(Ve,Be)=>{let Xe=Xo(Ve);S&&ce&&(Xe=r_(Xe)),X(Xe),me(null),E&&E(Xe,Xe.toCssString()),Be||re(Xe)},[ve,$e]=te.useState(0),[Ce,be]=te.useState(!1),Se=Ve=>{if(oe(Ve),Ve==="single"&&Z.isGradient())$e(0),fe(new _l(Z.getColors()[0].color)),me(Z);else if(Ve==="gradient"&&!Z.isGradient()){const Be=ce?r_(Z):Z;fe(new _l(pe||[{percent:0,color:Be},{percent:100,color:Be}]))}},{status:we}=te.useContext(oa),{compactSize:se,compactItemClassnames:ye}=$u(ie,F),Oe=Bi(Ve=>{var Be;return(Be=w??se)!==null&&Be!==void 0?Be:Ve}),z=qr(ie),[H,G,de]=YZe(ie,z),xe={[`${ie}-rtl`]:F},he=Ee(b,de,z,xe),Ue=Ee(Al(ie,we),{[`${ie}-sm`]:Oe==="small",[`${ie}-lg`]:Oe==="large"},ye,K==null?void 0:K.className,he,y,G),We=Ee(ie,he),ge={open:B,trigger:c,placement:p,arrow:h,rootClassName:b,getPopupContainer:R,autoAdjustOverflow:O,destroyTooltipOnHide:j},ze=Object.assign(Object.assign({},K==null?void 0:K.style),v);return H(te.createElement(wc,Object.assign({style:k==null?void 0:k.popup,styles:{body:k==null?void 0:k.popupOverlayInner},onOpenChange:Ve=>{(!Ve||!V)&&U(Ve)},content:te.createElement(bu,{form:!0},te.createElement(DZe,{mode:ae,onModeChange:Se,modeOptions:le,prefixCls:ie,value:Z,allowClear:o,disabled:V,disabledAlpha:S,presets:s,panelRender:m,format:Y,onFormatChange:ee,onChange:fe,onChangeComplete:re,onClear:$,activeIndex:ve,onActive:$e,gradientDragging:Ce,onGradientDragging:be,disabledFormat:I})),classNames:{root:We}},ge),l||te.createElement(LZe,Object.assign({activeIndex:B?ve:-1,open:B,className:Ue,style:ze,prefixCls:ie,disabled:V,showText:g,format:Y},A,{color:Z}))))},ZZe=Gf(XB,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);XB._InternalPanelDoNotUseOrYouWillBeFired=ZZe;var QZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},JZe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:QZe}))},l1e=d.forwardRef(JZe),eQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},tQe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:eQe}))},c1e=d.forwardRef(tQe),nQe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},rQe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:nQe}))},iQe=d.forwardRef(rQe);function aQe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function oQe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function u1e(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=w8(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[d.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),i]}const[sQe,lQe]=["week","WeekPicker"],[cQe,uQe]=["month","MonthPicker"],[dQe,fQe]=["year","YearPicker"],[pQe,hQe]=["quarter","QuarterPicker"],[d1e,FX]=["time","TimePicker"],mQe=e=>d.createElement(Yt,Object.assign({size:"small",type:"primary"},e));function f1e(e){return d.useMemo(()=>Object.assign({button:mQe},e),[e])}var gQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);id.forwardRef((n,r)=>{var i;const{prefixCls:a,getPopupContainer:o,components:s,className:l,style:c,placement:u,size:f,disabled:p,bordered:h=!0,placeholder:m,popupClassName:g,dropdownClassName:v,status:y,rootClassName:w,variant:b,picker:C}=n,k=gQe(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),S=d.useRef(null),{getPrefixCls:_,direction:E,getPopupContainer:$,rangePicker:M}=d.useContext(Xt),P=_("picker",a),{compactSize:R,compactItemClassnames:O}=$u(P,E),j=_(),[I,A]=Od("rangePicker",b,h),N=qr(P),[F,K,L]=pge(P,N),[V]=u1e(n,P),B=f1e(s),U=Bi(me=>{var re;return(re=f??R)!==null&&re!==void 0?re:me}),Y=d.useContext(ma),ee=p??Y,ie=d.useContext(oa),{hasFeedback:Z,status:X,feedbackIcon:ae}=ie,oe=d.createElement(d.Fragment,null,C===d1e?d.createElement(c1e,null):d.createElement(l1e,null),Z&&ae);d.useImperativeHandle(r,()=>S.current);const[le]=Ga("Calendar",Hk),ce=Object.assign(Object.assign({},le),n.locale),[pe]=$c("DatePicker",(i=n.popupStyle)===null||i===void 0?void 0:i.zIndex);return F(d.createElement(bu,{space:!0},d.createElement(pKe,Object.assign({separator:d.createElement("span",{"aria-label":"to",className:`${P}-separator`},d.createElement(iQe,null)),disabled:ee,ref:S,placement:u,placeholder:oQe(ce,C,m),suffixIcon:oe,prevIcon:d.createElement("span",{className:`${P}-prev-icon`}),nextIcon:d.createElement("span",{className:`${P}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${P}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${P}-super-next-icon`}),transitionName:`${j}-slide-up`,picker:C},k,{className:Ee({[`${P}-${U}`]:U,[`${P}-${I}`]:A},Al(P,Mu(X,y),Z),K,O,l,M==null?void 0:M.className,L,N,w),style:Object.assign(Object.assign({},M==null?void 0:M.style),c),locale:ce.lang,prefixCls:P,getPopupContainer:o||$,generateConfig:e,components:B,direction:E,classNames:{popup:Ee(K,g||v,L,N,w)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:pe})},allowClear:V}))))});var yQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const t=(l,c)=>{const u=c===FX?"timePicker":"datePicker";return d.forwardRef((p,h)=>{var m;const{prefixCls:g,getPopupContainer:v,components:y,style:w,className:b,rootClassName:C,size:k,bordered:S,placement:_,placeholder:E,popupClassName:$,dropdownClassName:M,disabled:P,status:R,variant:O,onCalendarChange:j}=p,I=yQe(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:A,direction:N,getPopupContainer:F,[u]:K}=d.useContext(Xt),L=A("picker",g),{compactSize:V,compactItemClassnames:B}=$u(L,N),U=d.useRef(null),[Y,ee]=Od("datePicker",O,S),ie=qr(L),[Z,X,ae]=pge(L,ie);d.useImperativeHandle(h,()=>U.current);const oe={showToday:!0},le=l||p.picker,ce=A(),{onSelect:pe,multiple:me}=I,re=pe&&l==="time"&&!me,fe=(he,Ue,We)=>{j==null||j(he,Ue,We),re&&pe(he)},[ve,$e]=u1e(p,L),Ce=f1e(y),be=Bi(he=>{var Ue;return(Ue=k??V)!==null&&Ue!==void 0?Ue:he}),Se=d.useContext(ma),we=P??Se,se=d.useContext(oa),{hasFeedback:ye,status:Oe,feedbackIcon:z}=se,H=d.createElement(d.Fragment,null,le==="time"?d.createElement(c1e,null):d.createElement(l1e,null),ye&&z),[G]=Ga("DatePicker",Hk),de=Object.assign(Object.assign({},G),p.locale),[xe]=$c("DatePicker",(m=p.popupStyle)===null||m===void 0?void 0:m.zIndex);return Z(d.createElement(bu,{space:!0},d.createElement(bKe,Object.assign({ref:U,placeholder:aQe(de,le,E),suffixIcon:H,placement:_,prevIcon:d.createElement("span",{className:`${L}-prev-icon`}),nextIcon:d.createElement("span",{className:`${L}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${L}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${L}-super-next-icon`}),transitionName:`${ce}-slide-up`,picker:l,onCalendarChange:fe},oe,I,{locale:de.lang,className:Ee({[`${L}-${be}`]:be,[`${L}-${Y}`]:ee},Al(L,Mu(Oe,R),ye),X,B,K==null?void 0:K.className,b,ae,ie,C),style:Object.assign(Object.assign({},K==null?void 0:K.style),w),prefixCls:L,getPopupContainer:v||F,generateConfig:e,components:Ce,direction:N,disabled:we,classNames:{popup:Ee(X,ae,ie,C,$||M)},styles:{popup:Object.assign(Object.assign({},p.popupStyle),{zIndex:xe})},allowClear:ve,removeIcon:$e}))))})},n=t(),r=t(sQe,lQe),i=t(cQe,uQe),a=t(dQe,fQe),o=t(pQe,hQe),s=t(d1e,FX);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:s,QuarterPicker:o}},p1e=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=bQe(e),s=vQe(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=s,l.TimePicker=a,l.QuarterPicker=o,l},xc=p1e(xqe),wQe=Gf(xc,"popupAlign",void 0,"picker");xc._InternalPanelDoNotUseOrYouWillBeFired=wQe;const xQe=Gf(xc.RangePicker,"popupAlign",void 0,"picker");xc._InternalRangePanelDoNotUseOrYouWillBeFired=xQe;xc.generatePicker=p1e;const SQe={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},ZB=te.createContext({});var CQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iXi(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function kQe(e,t,n){const r=d.useMemo(()=>t||_Qe(n),[t,n]);return d.useMemo(()=>r.map(a=>{var{span:o}=a,s=CQe(a,["span"]);return o==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof o=="number"?o:jhe(e,o)})}),[r,e])}var EQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);io).forEach(o=>{const{filled:s}=o,l=EQe(o,["filled"]);if(s){r.push(l),n.push(r),r=[],a=0;return}const c=t-a;a+=o.span||1,a>=t?(a>t?(i=!0,r.push(Object.assign(Object.assign({},l),{span:c}))):r.push(l),n.push(r),r=[],a=0):r.push(l)}),r.length>0&&n.push(r),n=n.map(o=>{const s=o.reduce((l,c)=>l+(c.span||1),0);if(s{const[n,r]=d.useMemo(()=>$Qe(t,e),[t,e]);return n},TQe=e=>{let{children:t}=e;return t};function LX(e){return e!=null}const tT=e=>{const{itemPrefixCls:t,component:n,span:r,className:i,style:a,labelStyle:o,contentStyle:s,bordered:l,label:c,content:u,colon:f,type:p,styles:h}=e,m=n,g=d.useContext(ZB),{classNames:v}=g;return l?d.createElement(m,{className:Ee({[`${t}-item-label`]:p==="label",[`${t}-item-content`]:p==="content",[`${v==null?void 0:v.label}`]:p==="label",[`${v==null?void 0:v.content}`]:p==="content"},i),style:a,colSpan:r},LX(c)&&d.createElement("span",{style:Object.assign(Object.assign({},o),h==null?void 0:h.label)},c),LX(u)&&d.createElement("span",{style:Object.assign(Object.assign({},o),h==null?void 0:h.content)},u)):d.createElement(m,{className:Ee(`${t}-item`,i),style:a,colSpan:r},d.createElement("div",{className:`${t}-item-container`},(c||c===0)&&d.createElement("span",{className:Ee(`${t}-item-label`,v==null?void 0:v.label,{[`${t}-item-no-colon`]:!f}),style:Object.assign(Object.assign({},o),h==null?void 0:h.label)},c),(u||u===0)&&d.createElement("span",{className:Ee(`${t}-item-content`,v==null?void 0:v.content),style:Object.assign(Object.assign({},s),h==null?void 0:h.content)},u)))};function nT(e,t,n){let{colon:r,prefixCls:i,bordered:a}=t,{component:o,type:s,showLabel:l,showContent:c,labelStyle:u,contentStyle:f,styles:p}=n;return e.map((h,m)=>{let{label:g,children:v,prefixCls:y=i,className:w,style:b,labelStyle:C,contentStyle:k,span:S=1,key:_,styles:E}=h;return typeof o=="string"?d.createElement(tT,{key:`${s}-${_||m}`,className:w,style:b,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},u),p==null?void 0:p.label),C),E==null?void 0:E.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},f),p==null?void 0:p.content),k),E==null?void 0:E.content)},span:S,colon:r,component:o,itemPrefixCls:y,bordered:a,label:l?g:null,content:c?v:null,type:s}):[d.createElement(tT,{key:`label-${_||m}`,className:w,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),p==null?void 0:p.label),b),C),E==null?void 0:E.label),span:1,colon:r,component:o[0],itemPrefixCls:y,bordered:a,label:g,type:"label"}),d.createElement(tT,{key:`content-${_||m}`,className:w,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f),p==null?void 0:p.content),b),k),E==null?void 0:E.content),span:S*2-1,component:o[1],itemPrefixCls:y,bordered:a,content:v,type:"content"})]})}const PQe=e=>{const t=d.useContext(ZB),{prefixCls:n,vertical:r,row:i,index:a,bordered:o}=e;return r?d.createElement(d.Fragment,null,d.createElement("tr",{key:`label-${a}`,className:`${n}-row`},nT(i,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),d.createElement("tr",{key:`content-${a}`,className:`${n}-row`},nT(i,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):d.createElement("tr",{key:a,className:`${n}-row`},nT(i,e,Object.assign({component:o?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},OQe=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Me(e.padding)} ${Me(e.paddingLG)}`,borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Me(e.paddingSM)} ${Me(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Me(e.paddingXS)} ${Me(e.padding)}`}}}}}},RQe=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:i,colonMarginRight:a,colonMarginLeft:o,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},ar(e)),OQe(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},ao),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:i},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${Me(o)} ${Me(a)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},IQe=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),jQe=Jn("Descriptions",e=>{const t=Hn(e,{});return RQe(t)},IQe);var NQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l;const{prefixCls:c,title:u,extra:f,column:p,colon:h=!0,bordered:m,layout:g,children:v,className:y,rootClassName:w,style:b,size:C,labelStyle:k,contentStyle:S,styles:_,items:E,classNames:$}=e,M=NQe(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:P,direction:R,descriptions:O}=d.useContext(Xt),j=P("descriptions",c),I=$4(),A=d.useMemo(()=>{var Y;return typeof p=="number"?p:(Y=jhe(I,Object.assign(Object.assign({},SQe),p)))!==null&&Y!==void 0?Y:3},[I,p]),N=kQe(I,E,v),F=Bi(C),K=MQe(A,N),[L,V,B]=jQe(j),U=d.useMemo(()=>{var Y,ee,ie,Z;return{labelStyle:k,contentStyle:S,styles:{content:Object.assign(Object.assign({},(Y=O==null?void 0:O.styles)===null||Y===void 0?void 0:Y.content),_==null?void 0:_.content),label:Object.assign(Object.assign({},(ee=O==null?void 0:O.styles)===null||ee===void 0?void 0:ee.label),_==null?void 0:_.label)},classNames:{label:Ee((ie=O==null?void 0:O.classNames)===null||ie===void 0?void 0:ie.label,$==null?void 0:$.label),content:Ee((Z=O==null?void 0:O.classNames)===null||Z===void 0?void 0:Z.content,$==null?void 0:$.content)}}},[k,S,_,$,O]);return L(d.createElement(ZB.Provider,{value:U},d.createElement("div",Object.assign({className:Ee(j,O==null?void 0:O.className,(t=O==null?void 0:O.classNames)===null||t===void 0?void 0:t.root,$==null?void 0:$.root,{[`${j}-${F}`]:F&&F!=="default",[`${j}-bordered`]:!!m,[`${j}-rtl`]:R==="rtl"},y,w,V,B),style:Object.assign(Object.assign(Object.assign(Object.assign({},O==null?void 0:O.style),(n=O==null?void 0:O.styles)===null||n===void 0?void 0:n.root),_==null?void 0:_.root),b)},M),(u||f)&&d.createElement("div",{className:Ee(`${j}-header`,(r=O==null?void 0:O.classNames)===null||r===void 0?void 0:r.header,$==null?void 0:$.header),style:Object.assign(Object.assign({},(i=O==null?void 0:O.styles)===null||i===void 0?void 0:i.header),_==null?void 0:_.header)},u&&d.createElement("div",{className:Ee(`${j}-title`,(a=O==null?void 0:O.classNames)===null||a===void 0?void 0:a.title,$==null?void 0:$.title),style:Object.assign(Object.assign({},(o=O==null?void 0:O.styles)===null||o===void 0?void 0:o.title),_==null?void 0:_.title)},u),f&&d.createElement("div",{className:Ee(`${j}-extra`,(s=O==null?void 0:O.classNames)===null||s===void 0?void 0:s.extra,$==null?void 0:$.extra),style:Object.assign(Object.assign({},(l=O==null?void 0:O.styles)===null||l===void 0?void 0:l.extra),_==null?void 0:_.extra)},f)),d.createElement("div",{className:`${j}-view`},d.createElement("table",null,d.createElement("tbody",null,K.map((Y,ee)=>d.createElement(PQe,{key:ee,index:ee,colon:h,prefixCls:j,vertical:g==="vertical",bordered:m,row:Y}))))))))};ls.Item=TQe;var BX=d.createContext(null),h1e=d.createContext({}),AQe=["prefixCls","className","containerRef"],DQe=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,a=Ht(t,AQe),o=d.useContext(h1e),s=o.panel,l=ku(s,i);return d.createElement("div",tt({className:Ee("".concat(n,"-content"),r),role:"dialog",ref:l},Fi(t,{aria:!0}),{"aria-modal":"true"},a))};function zX(e){return typeof e=="string"&&String(Number(e))===e?(Br(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var HX={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function FQe(e,t){var n,r,i,a=e.prefixCls,o=e.open,s=e.placement,l=e.inline,c=e.push,u=e.forceRender,f=e.autoFocus,p=e.keyboard,h=e.classNames,m=e.rootClassName,g=e.rootStyle,v=e.zIndex,y=e.className,w=e.id,b=e.style,C=e.motion,k=e.width,S=e.height,_=e.children,E=e.mask,$=e.maskClosable,M=e.maskMotion,P=e.maskClassName,R=e.maskStyle,O=e.afterOpenChange,j=e.onClose,I=e.onMouseEnter,A=e.onMouseOver,N=e.onMouseLeave,F=e.onClick,K=e.onKeyDown,L=e.onKeyUp,V=e.styles,B=e.drawerRender,U=d.useRef(),Y=d.useRef(),ee=d.useRef();d.useImperativeHandle(t,function(){return U.current});var ie=function(we){var se=we.keyCode,ye=we.shiftKey;switch(se){case mt.TAB:{if(se===mt.TAB){if(!ye&&document.activeElement===ee.current){var Oe;(Oe=Y.current)===null||Oe===void 0||Oe.focus({preventScroll:!0})}else if(ye&&document.activeElement===Y.current){var z;(z=ee.current)===null||z===void 0||z.focus({preventScroll:!0})}}break}case mt.ESC:{j&&p&&(we.stopPropagation(),j(we));break}}};d.useEffect(function(){if(o&&f){var Se;(Se=U.current)===null||Se===void 0||Se.focus({preventScroll:!0})}},[o]);var Z=d.useState(!1),X=Te(Z,2),ae=X[0],oe=X[1],le=d.useContext(BX),ce;typeof c=="boolean"?ce=c?{}:{distance:0}:ce=c||{};var pe=(n=(r=(i=ce)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:le==null?void 0:le.pushDistance)!==null&&n!==void 0?n:180,me=d.useMemo(function(){return{pushDistance:pe,push:function(){oe(!0)},pull:function(){oe(!1)}}},[pe]);d.useEffect(function(){if(o){var Se;le==null||(Se=le.push)===null||Se===void 0||Se.call(le)}else{var we;le==null||(we=le.pull)===null||we===void 0||we.call(le)}},[o]),d.useEffect(function(){return function(){var Se;le==null||(Se=le.pull)===null||Se===void 0||Se.call(le)}},[]);var re=E&&d.createElement(Ca,tt({key:"mask"},M,{visible:o}),function(Se,we){var se=Se.className,ye=Se.style;return d.createElement("div",{className:Ee("".concat(a,"-mask"),se,h==null?void 0:h.mask,P),style:q(q(q({},ye),R),V==null?void 0:V.mask),onClick:$&&o?j:void 0,ref:we})}),fe=typeof C=="function"?C(s):C,ve={};if(ae&&pe)switch(s){case"top":ve.transform="translateY(".concat(pe,"px)");break;case"bottom":ve.transform="translateY(".concat(-pe,"px)");break;case"left":ve.transform="translateX(".concat(pe,"px)");break;default:ve.transform="translateX(".concat(-pe,"px)");break}s==="left"||s==="right"?ve.width=zX(k):ve.height=zX(S);var $e={onMouseEnter:I,onMouseOver:A,onMouseLeave:N,onClick:F,onKeyDown:K,onKeyUp:L},Ce=d.createElement(Ca,tt({key:"panel"},fe,{visible:o,forceRender:u,onVisibleChanged:function(we){O==null||O(we)},removeOnLeave:!1,leavedClassName:"".concat(a,"-content-wrapper-hidden")}),function(Se,we){var se=Se.className,ye=Se.style,Oe=d.createElement(DQe,tt({id:w,containerRef:we,prefixCls:a,className:Ee(y,h==null?void 0:h.content),style:q(q({},b),V==null?void 0:V.content)},Fi(e,{aria:!0}),$e),_);return d.createElement("div",tt({className:Ee("".concat(a,"-content-wrapper"),h==null?void 0:h.wrapper,se),style:q(q(q({},ve),ye),V==null?void 0:V.wrapper)},Fi(e,{data:!0})),B?B(Oe):Oe)}),be=q({},g);return v&&(be.zIndex=v),d.createElement(BX.Provider,{value:me},d.createElement("div",{className:Ee(a,"".concat(a,"-").concat(s),m,ne(ne({},"".concat(a,"-open"),o),"".concat(a,"-inline"),l)),style:be,tabIndex:-1,ref:U,onKeyDown:ie},re,d.createElement("div",{tabIndex:0,ref:Y,style:HX,"aria-hidden":"true","data-sentinel":"start"}),Ce,d.createElement("div",{tabIndex:0,ref:ee,style:HX,"aria-hidden":"true","data-sentinel":"end"})))}var LQe=d.forwardRef(FQe),BQe=function(t){var n=t.open,r=n===void 0?!1:n,i=t.prefixCls,a=i===void 0?"rc-drawer":i,o=t.placement,s=o===void 0?"right":o,l=t.autoFocus,c=l===void 0?!0:l,u=t.keyboard,f=u===void 0?!0:u,p=t.width,h=p===void 0?378:p,m=t.mask,g=m===void 0?!0:m,v=t.maskClosable,y=v===void 0?!0:v,w=t.getContainer,b=t.forceRender,C=t.afterOpenChange,k=t.destroyOnClose,S=t.onMouseEnter,_=t.onMouseOver,E=t.onMouseLeave,$=t.onClick,M=t.onKeyDown,P=t.onKeyUp,R=t.panelRef,O=d.useState(!1),j=Te(O,2),I=j[0],A=j[1],N=d.useState(!1),F=Te(N,2),K=F[0],L=F[1];nr(function(){L(!0)},[]);var V=K?r:!1,B=d.useRef(),U=d.useRef();nr(function(){V&&(U.current=document.activeElement)},[V]);var Y=function(ae){var oe;if(A(ae),C==null||C(ae),!ae&&U.current&&!((oe=B.current)!==null&&oe!==void 0&&oe.contains(U.current))){var le;(le=U.current)===null||le===void 0||le.focus({preventScroll:!0})}},ee=d.useMemo(function(){return{panel:R}},[R]);if(!b&&!I&&!V&&k)return null;var ie={onMouseEnter:S,onMouseOver:_,onMouseLeave:E,onClick:$,onKeyDown:M,onKeyUp:P},Z=q(q({},t),{},{open:V,prefixCls:a,placement:s,autoFocus:c,keyboard:f,width:h,mask:g,maskClosable:y,inline:w===!1,afterOpenChange:Y,ref:B},ie);return d.createElement(h1e.Provider,{value:ee},d.createElement(C4,{open:V||b||I,autoDestroy:!1,getContainer:w,autoLock:g&&(V||I)},d.createElement(LQe,Z)))};const m1e=e=>{var t,n;const{prefixCls:r,title:i,footer:a,extra:o,loading:s,onClose:l,headerStyle:c,bodyStyle:u,footerStyle:f,children:p,classNames:h,styles:m}=e,{drawer:g}=d.useContext(Xt),v=d.useCallback(k=>d.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${r}-close`},k),[l]),[y,w]=uB(R0(e),R0(g),{closable:!0,closeIconRender:v}),b=d.useMemo(()=>{var k,S;return!i&&!y?null:d.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(k=g==null?void 0:g.styles)===null||k===void 0?void 0:k.header),c),m==null?void 0:m.header),className:Ee(`${r}-header`,{[`${r}-header-close-only`]:y&&!i&&!o},(S=g==null?void 0:g.classNames)===null||S===void 0?void 0:S.header,h==null?void 0:h.header)},d.createElement("div",{className:`${r}-header-title`},w,i&&d.createElement("div",{className:`${r}-title`},i)),o&&d.createElement("div",{className:`${r}-extra`},o))},[y,w,o,c,r,i]),C=d.useMemo(()=>{var k,S;if(!a)return null;const _=`${r}-footer`;return d.createElement("div",{className:Ee(_,(k=g==null?void 0:g.classNames)===null||k===void 0?void 0:k.footer,h==null?void 0:h.footer),style:Object.assign(Object.assign(Object.assign({},(S=g==null?void 0:g.styles)===null||S===void 0?void 0:S.footer),f),m==null?void 0:m.footer)},a)},[a,f,r]);return d.createElement(d.Fragment,null,b,d.createElement("div",{className:Ee(`${r}-body`,h==null?void 0:h.body,(t=g==null?void 0:g.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=g==null?void 0:g.styles)===null||n===void 0?void 0:n.body),u),m==null?void 0:m.body)},s?d.createElement(Kf,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):p),C)},zQe=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},g1e=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),v1e=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},g1e({opacity:e},{opacity:1})),HQe=(e,t)=>[v1e(.7,t),g1e({transform:zQe(e)},{transform:"none"})],UQe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:v1e(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:HQe(i,n)}),{})}}},WQe=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:a,motionDurationSlow:o,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:f,lineHeightLG:p,lineWidth:h,lineType:m,colorSplit:g,marginXS:v,colorIcon:y,colorIconHover:w,colorBgTextHover:b,colorBgTextActive:C,colorText:k,fontWeightStrong:S,footerPaddingBlock:_,footerPaddingInline:E,calc:$}=e,M=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:k,"&-pure":{position:"relative",background:a,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:i,pointerEvents:"auto"},[M]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${M}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${M}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${M}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${M}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Me(c)} ${Me(u)}`,fontSize:f,lineHeight:p,borderBottom:`${Me(h)} ${m} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:$(f).add(l).equal(),height:$(f).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:y,fontWeight:S,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:w,backgroundColor:b,textDecoration:"none"},"&:active":{backgroundColor:C}},Vs(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:p},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${Me(_)} ${Me(E)}`,borderTop:`${Me(h)} ${m} ${g}`},"&-rtl":{direction:"rtl"}}}},VQe=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),y1e=Jn("Drawer",e=>{const t=Hn(e,{});return[WQe(t),UQe(t)]},VQe);var b1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{rootClassName:t,width:n,height:r,size:i="default",mask:a=!0,push:o=qQe,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:f,style:p,className:h,visible:m,afterVisibleChange:g,maskStyle:v,drawerStyle:y,contentWrapperStyle:w}=e,b=b1e(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:C,getPrefixCls:k,direction:S,drawer:_}=d.useContext(Xt),E=k("drawer",u),[$,M,P]=y1e(E),R=f===void 0&&C?()=>C(document.body):f,O=Ee({"no-mask":!a,[`${E}-rtl`]:S==="rtl"},t,M,P),j=d.useMemo(()=>n??(i==="large"?736:378),[n,i]),I=d.useMemo(()=>r??(i==="large"?736:378),[r,i]),A={motionName:oo(E,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},N=ee=>({motionName:oo(E,`panel-motion-${ee}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),F=qpe(),[K,L]=$c("Drawer",b.zIndex),{classNames:V={},styles:B={}}=b,{classNames:U={},styles:Y={}}=_||{};return $(d.createElement(bu,{form:!0,space:!0},d.createElement(v4.Provider,{value:L},d.createElement(BQe,Object.assign({prefixCls:E,onClose:c,maskMotion:A,motion:N},b,{classNames:{mask:Ee(V.mask,U.mask),content:Ee(V.content,U.content),wrapper:Ee(V.wrapper,U.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},B.mask),v),Y.mask),content:Object.assign(Object.assign(Object.assign({},B.content),y),Y.content),wrapper:Object.assign(Object.assign(Object.assign({},B.wrapper),w),Y.wrapper)},open:s??m,mask:a,push:o,width:j,height:I,style:Object.assign(Object.assign({},_==null?void 0:_.style),p),className:Ee(_==null?void 0:_.className,h),rootClassName:O,getContainer:R,afterOpenChange:l??g,panelRef:F,zIndex:K}),d.createElement(m1e,Object.assign({prefixCls:E},b,{onClose:c}))))))},KQe=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,a=b1e(e,["prefixCls","style","className","placement"]),{getPrefixCls:o}=d.useContext(Xt),s=o("drawer",t),[l,c,u]=y1e(s),f=Ee(s,`${s}-pure`,`${s}-${i}`,c,u,r);return l(d.createElement("div",{className:f,style:n},d.createElement(m1e,Object.assign({prefixCls:s},a))))};Ch._InternalPanelDoNotUseOrYouWillBeFired=KQe;function C6(e){return["small","middle","large"].includes(e)}function UX(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const w1e=te.createContext({latestIndex:0}),GQe=w1e.Provider,YQe=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:o}=d.useContext(w1e);return r==null?null:d.createElement(d.Fragment,null,d.createElement("div",{className:t,style:a},r),n{var n,r,i;const{getPrefixCls:a,space:o,direction:s}=d.useContext(Xt),{size:l=(n=o==null?void 0:o.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:f,children:p,direction:h="horizontal",prefixCls:m,split:g,style:v,wrap:y=!1,classNames:w,styles:b}=e,C=XQe(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[k,S]=Array.isArray(l)?l:[l,l],_=C6(S),E=C6(k),$=UX(S),M=UX(k),P=Xi(p,{keepEmpty:!0}),R=c===void 0&&h==="horizontal"?"center":c,O=a("space",m),[j,I,A]=hpe(O),N=Ee(O,o==null?void 0:o.className,I,`${O}-${h}`,{[`${O}-rtl`]:s==="rtl",[`${O}-align-${R}`]:R,[`${O}-gap-row-${S}`]:_,[`${O}-gap-col-${k}`]:E},u,f,A),F=Ee(`${O}-item`,(r=w==null?void 0:w.item)!==null&&r!==void 0?r:(i=o==null?void 0:o.classNames)===null||i===void 0?void 0:i.item);let K=0;const L=P.map((U,Y)=>{var ee,ie;U!=null&&(K=Y);const Z=(U==null?void 0:U.key)||`${F}-${Y}`;return d.createElement(YQe,{className:F,key:Z,index:Y,split:g,style:(ee=b==null?void 0:b.item)!==null&&ee!==void 0?ee:(ie=o==null?void 0:o.styles)===null||ie===void 0?void 0:ie.item},U)}),V=d.useMemo(()=>({latestIndex:K}),[K]);if(P.length===0)return null;const B={};return y&&(B.flexWrap="wrap"),!E&&M&&(B.columnGap=k),!_&&$&&(B.rowGap=S),j(d.createElement("div",Object.assign({ref:t,className:N,style:Object.assign(Object.assign(Object.assign({},B),o==null?void 0:o.style),v)},C),d.createElement(GQe,{value:V},L)))}),Xr=ZQe;Xr.Compact=NDe;var QQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPopupContainer:t,getPrefixCls:n,direction:r}=d.useContext(Xt),{prefixCls:i,type:a="default",danger:o,disabled:s,loading:l,onClick:c,htmlType:u,children:f,className:p,menu:h,arrow:m,autoFocus:g,overlay:v,trigger:y,align:w,open:b,onOpenChange:C,placement:k,getPopupContainer:S,href:_,icon:E=d.createElement(OB,null),title:$,buttonsRender:M=X=>X,mouseEnterDelay:P,mouseLeaveDelay:R,overlayClassName:O,overlayStyle:j,destroyPopupOnHide:I,dropdownRender:A}=e,N=QQe(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),F=n("dropdown",i),K=`${F}-button`,L={menu:h,arrow:m,autoFocus:g,align:w,disabled:s,trigger:s?[]:y,onOpenChange:C,getPopupContainer:S||t,mouseEnterDelay:P,mouseLeaveDelay:R,overlayClassName:O,overlayStyle:j,destroyPopupOnHide:I,dropdownRender:A},{compactSize:V,compactItemClassnames:B}=$u(F,r),U=Ee(K,B,p);"overlay"in e&&(L.overlay=v),"open"in e&&(L.open=b),"placement"in e?L.placement=k:L.placement=r==="rtl"?"bottomLeft":"bottomRight";const Y=d.createElement(Yt,{type:a,danger:o,disabled:s,loading:l,onClick:c,htmlType:u,href:_,title:$},f),ee=d.createElement(Yt,{type:a,danger:o,icon:E}),[ie,Z]=M([Y,ee]);return d.createElement(Xr.Compact,Object.assign({className:U,size:V,block:!0},N),ie,d.createElement($8,Object.assign({},L),Z))};x1e.__ANT_BUTTON=!0;const _6=$8;_6.Button=x1e;const S1e=["wrap","nowrap","wrap-reverse"],C1e=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],_1e=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],JQe=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&S1e.includes(n)}},eJe=(e,t)=>{const n={};return _1e.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},tJe=(e,t)=>{const n={};return C1e.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function nJe(e,t){return Ee(Object.assign(Object.assign(Object.assign({},JQe(e,t)),eJe(e,t)),tJe(e,t)))}const rJe=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},iJe=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},aJe=e=>{const{componentCls:t}=e,n={};return S1e.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},oJe=e=>{const{componentCls:t}=e,n={};return _1e.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},sJe=e=>{const{componentCls:t}=e,n={};return C1e.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},lJe=()=>({}),cJe=Jn("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,i=Hn(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[rJe(i),iJe(i),aJe(i),oJe(i),sJe(i)]},lJe,{resetStyle:!1});var uJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,rootClassName:r,className:i,style:a,flex:o,gap:s,children:l,vertical:c=!1,component:u="div"}=e,f=uJe(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:p,direction:h,getPrefixCls:m}=te.useContext(Xt),g=m("flex",n),[v,y,w]=cJe(g),b=c??(p==null?void 0:p.vertical),C=Ee(i,r,p==null?void 0:p.className,g,y,w,nJe(g,e),{[`${g}-rtl`]:h==="rtl",[`${g}-gap-${s}`]:C6(s),[`${g}-vertical`]:b}),k=Object.assign(Object.assign({},p==null?void 0:p.style),a);return o&&(k.flex=o),s&&!C6(s)&&(k.gap=s),v(te.createElement(u,Object.assign({ref:t,className:C,style:k},$r(f,["justify","wrap","align"])),l))});function k6(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const dJe=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut}, opacity ${e.motionDurationFast} ${e.motionEaseInOut}, - transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},uJe=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Me(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),zX=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},dJe=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},ar(e)),uJe(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},zX(e,e.controlHeightSM)),"&-large":Object.assign({},zX(e,e.controlHeightLG))})}},fJe=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:a,labelRequiredMarkColor:o,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:p}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:QL,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},HX=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},pJe=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, - > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Yc=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),x1e=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Yc(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},hJe=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, + transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},fJe=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Me(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),WX=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},pJe=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},ar(e)),fJe(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},WX(e,e.controlHeightSM)),"&-large":Object.assign({},WX(e,e.controlHeightLG))})}},hJe=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:a,labelRequiredMarkColor:o,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:p}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:eB,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},VX=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},mJe=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, + > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Jc=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),k1e=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Jc(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},gJe=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, ${r}-col-24${n}-label, - ${r}-col-xl-24${n}-label`]:Yc(e)}},[`@media (max-width: ${Me(e.screenXSMax)})`]:[x1e(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Yc(e)}}}],[`@media (max-width: ${Me(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Yc(e)}}},[`@media (max-width: ${Me(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Yc(e)}}},[`@media (max-width: ${Me(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Yc(e)}}}}},mJe=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, + ${r}-col-xl-24${n}-label`]:Jc(e)}},[`@media (max-width: ${Me(e.screenXSMax)})`]:[k1e(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Jc(e)}}}],[`@media (max-width: ${Me(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Jc(e)}}},[`@media (max-width: ${Me(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Jc(e)}}},[`@media (max-width: ${Me(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Jc(e)}}}}},vJe=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, ${n}-col-24${t}-label, - ${n}-col-xl-24${t}-label`]:Yc(e),[`@media (max-width: ${Me(e.screenXSMax)})`]:[x1e(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Yc(e)}}],[`@media (max-width: ${Me(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Yc(e)}},[`@media (max-width: ${Me(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Yc(e)}},[`@media (max-width: ${Me(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Yc(e)}}}},gJe=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),S1e=(e,t)=>Hn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),XB=Jn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=S1e(e,n);return[dJe(r),fJe(r),cJe(r),HX(r,r.componentCls),HX(r,r.formItemCls),pJe(r),hJe(r),mJe(r),b4(r),QL]},gJe,{order:-1e3}),UX=[];function eT(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const C1e=e=>{let{help:t,helpStatus:n,errors:r=UX,warnings:i=UX,className:a,fieldId:o,onVisibleChanged:s}=e;const{prefixCls:l}=d.useContext(sB),c=`${l}-item-explain`,u=qr(l),[f,p,h]=XB(l,u),m=d.useMemo(()=>$0(l),[l]),g=_6(r),v=_6(i),y=d.useMemo(()=>t!=null?[eT(t,"help",n)]:[].concat(ct(g.map((_,k)=>eT(_,"error","error",k))),ct(v.map((_,k)=>eT(_,"warning","warning",k)))),[t,n,g,v]),b=d.useMemo(()=>{const _={};return y.forEach(k=>{let{key:S}=k;_[S]=(_[S]||0)+1}),y.map((k,S)=>Object.assign(Object.assign({},k),{key:_[k.key]>1?`${k.key}-fallback-${S}`:k.key}))},[y]),w={};return o&&(w.id=`${o}_help`),f(d.createElement(ka,{motionDeadline:m.motionDeadline,motionName:`${l}-show-help`,visible:!!b.length,onVisibleChanged:s},_=>{const{className:k,style:S}=_;return d.createElement("div",Object.assign({},w,{className:Ee(c,k,h,u,a,p),style:S,role:"alert"}),d.createElement(XE,Object.assign({keys:b},$0(l),{motionName:`${l}-show-help-item`,component:!1}),C=>{const{key:E,error:$,errorStatus:M,className:P,style:I}=C;return d.createElement("div",{key:E,className:Ee(P,{[`${c}-${M}`]:M}),style:I},$)}))}))},vJe=["parentNode"],yJe="form_item";function ew(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function _1e(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:vJe.includes(n)?`${yJe}_${n}`:n}function k1e(e,t,n,r,i,a){let o=r;return a!==void 0?o=a:n.validating?o="validating":e.length?o="error":t.length?o="warning":(n.touched||i&&n.validated)&&(o="success"),o}function WX(e){return ew(e).join("_")}function VX(e,t){const n=t.getFieldInstance(e),r=wde(n);if(r)return r;const i=_1e(ew(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function E1e(e){const[t]=oB(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>a=>{const o=WX(i);a?n.current[o]=a:delete n.current[o]}},scrollToField:function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=VX(i,r);o&&FAe(o,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},focusField:i=>{var a;const o=VX(i,r);o&&((a=o.focus)===null||a===void 0||a.call(o))},getFieldInstance:i=>{const a=WX(i);return n.current[a]}}),[e,t]);return[r]}var bJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=d.useContext(ga),{getPrefixCls:r,direction:i,form:a}=d.useContext(Zt),{prefixCls:o,className:s,rootClassName:l,size:c,disabled:u=n,form:f,colon:p,labelAlign:h,labelWrap:m,labelCol:g,wrapperCol:v,hideRequiredMark:y,layout:b="horizontal",scrollToFirstError:w,requiredMark:_,onFinishFailed:k,name:S,style:C,feedbackIcons:E,variant:$}=e,M=bJe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),P=Hi(c),I=d.useContext(cfe),O=d.useMemo(()=>_!==void 0?_:y?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[y,_,a]),A=p??(a==null?void 0:a.colon),R=r("form",o),j=qr(R),[N,D,V]=XB(R,j),F=Ee(R,`${R}-${b}`,{[`${R}-hide-required-mark`]:O===!1,[`${R}-rtl`]:i==="rtl",[`${R}-${P}`]:P},V,j,D,a==null?void 0:a.className,s,l),[K]=E1e(f),{__INTERNAL__:B}=K;B.name=S;const U=d.useMemo(()=>({name:S,labelAlign:h,labelCol:g,labelWrap:m,wrapperCol:v,vertical:b==="vertical",colon:A,requiredMark:O,itemRef:B.itemRef,form:K,feedbackIcons:E}),[S,h,g,v,b,A,O,K,E]),Z=d.useRef(null);d.useImperativeHandle(t,()=>{var Y;return Object.assign(Object.assign({},K),{nativeElement:(Y=Z.current)===null||Y===void 0?void 0:Y.nativeElement})});const ee=(Y,X)=>{if(Y){let ae={block:"nearest"};typeof Y=="object"&&(ae=Object.assign(Object.assign({},ae),Y)),K.scrollToField(X,ae),ae.focus&&K.focusField(X)}},ie=Y=>{if(k==null||k(Y),Y.errorFields.length){const X=Y.errorFields[0].name;if(w!==void 0){ee(w,X);return}a&&a.scrollToFirstError!==void 0&&ee(a.scrollToFirstError,X)}};return N(d.createElement(Bpe.Provider,{value:$},d.createElement(BL,{disabled:u},d.createElement(hg.Provider,{value:P},d.createElement(Lpe,{validateMessages:I},d.createElement(jf.Provider,{value:U},d.createElement(_y,Object.assign({id:S},M,{name:S,onFinishFailed:ie,form:K,ref:Z,style:Object.assign(Object.assign({},a==null?void 0:a.style),C),className:F}))))))))},xJe=d.forwardRef(wJe);function SJe(e){if(typeof e=="function")return e;const t=Zi(e);return t.length<=1?t[0]:t}const $1e=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(sa);return{status:e,errors:t,warnings:n}};$1e.Context=sa;function CJe(e){const[t,n]=d.useState(e),r=d.useRef(null),i=d.useRef([]),a=d.useRef(!1);d.useEffect(()=>(a.current=!1,()=>{a.current=!0,rr.cancel(r.current),r.current=null}),[]);function o(s){a.current||(r.current===null&&(i.current=[],r.current=rr(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,o]}function _Je(){const{itemRef:e}=d.useContext(jf),t=d.useRef({});function n(r,i){const a=i&&typeof i=="object"&&vh(i),o=r.join("_");return(t.current.name!==o||t.current.originRef!==a)&&(t.current.name=o,t.current.originRef=a,t.current.ref=va(e(r),a)),t.current.ref}return n}const kJe=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},EJe=xy(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=S1e(e,n);return[kJe(r)]});var $Je=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:p,onErrorVisibleChanged:h,label:m}=e,g=`${t}-item`,v=d.useContext(jf),y=d.useMemo(()=>{let A=Object.assign({},i||v.wrapperCol||{});return m===null&&!r&&!i&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(j=>{const N=j?[j]:[],D=Ds(v.labelCol,N),V=typeof D=="object"?D:{},F=Ds(A,N),K=typeof F=="object"?F:{};"span"in V&&!("offset"in K)&&V.span$Je(v,["labelCol","wrapperCol"]),[v]),_=d.useRef(null),[k,S]=d.useState(0);nr(()=>{c&&_.current?S(_.current.clientHeight):S(0)},[c]);const C=d.createElement("div",{className:`${g}-control-input`},d.createElement("div",{className:`${g}-control-input-content`},a)),E=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),$=p!==null||o.length||s.length?d.createElement(sB.Provider,{value:E},d.createElement(C1e,{fieldId:f,errors:o,warnings:s,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:h})):null,M={};f&&(M.id=`${f}_extra`);const P=c?d.createElement("div",Object.assign({},M,{className:`${g}-extra`,ref:_}),c):null,I=$||P?d.createElement("div",{className:`${g}-additional`,style:p?{minHeight:p+k}:{}},$,P):null,O=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:C,errorList:$,extra:P}):d.createElement(d.Fragment,null,C,I);return d.createElement(jf.Provider,{value:w},d.createElement(j0,Object.assign({},y,{className:b}),O),d.createElement(EJe,{prefixCls:t}))};var PJe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},OJe=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:PJe}))},IJe=d.forwardRef(OJe),RJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:a,colon:o,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var f;const[p]=Xa("Form"),{labelAlign:h,labelCol:m,labelWrap:g,colon:v}=d.useContext(jf);if(!n)return null;const y=i||m||{},b=a||h,w=`${t}-item-label`,_=Ee(w,b==="left"&&`${w}-left`,y.className,{[`${w}-wrap`]:!!g});let k=n;const S=o===!0||v!==!1&&o!==!1;S&&!u&&typeof n=="string"&&n.trim()&&(k=n.replace(/[:|:]\s*$/,""));const E=jJe(c);if(E){const{icon:I=d.createElement(IJe,null)}=E,O=RJe(E,["icon"]),A=d.createElement(Ea,Object.assign({},O),d.cloneElement(I,{className:`${t}-item-tooltip`,title:"",onClick:R=>{R.preventDefault()},tabIndex:null}));k=d.createElement(d.Fragment,null,k,A)}const $=l==="optional",M=typeof l=="function";M?k=l(k,{required:!!s}):$&&!s&&(k=d.createElement(d.Fragment,null,k,d.createElement("span",{className:`${t}-item-optional`,title:""},(p==null?void 0:p.optional)||((f=Us.Form)===null||f===void 0?void 0:f.optional))));const P=Ee({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:$||M,[`${t}-item-no-colon`]:!S});return d.createElement(j0,Object.assign({},y,{className:_}),d.createElement("label",{htmlFor:r,className:P,title:typeof n=="string"?n:""},k))},AJe={success:Ug,warning:qf,error:$d,validating:pu};function M1e(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:a,prefixCls:o,meta:s,noStyle:l}=e;const c=`${o}-item`,{feedbackIcons:u}=d.useContext(jf),f=k1e(n,r,s,null,!!i,a),{isFormItemInput:p,status:h,hasFeedback:m,feedbackIcon:g}=d.useContext(sa),v=d.useMemo(()=>{var y;let b;if(i){const _=i!==!0&&i.icons||u,k=f&&((y=_==null?void 0:_({status:f,errors:n,warnings:r}))===null||y===void 0?void 0:y[f]),S=f&&AJe[f];b=k!==!1&&S?d.createElement("span",{className:Ee(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},k||d.createElement(S,null)):null}const w={status:f||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:b,isFormItemInput:!0};return l&&(w.status=(f??h)||"",w.isFormItemInput=p,w.hasFeedback=!!(i??m),w.feedbackIcon=i!==void 0?w.feedbackIcon:g),w},[f,i,l,p,h]);return d.createElement(sa.Provider,{value:v},t)}var DJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(P&&C.current){const V=getComputedStyle(C.current);A(parseInt(V.marginBottom,10))}},[P,I]);const R=V=>{V||A(null)},N=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const F=V?E:c.errors,K=V?$:c.warnings;return k1e(F,K,c,"",!!u,l)}(),D=Ee(w,n,r,{[`${w}-with-help`]:M||E.length||$.length,[`${w}-has-feedback`]:N&&u,[`${w}-has-success`]:N==="success",[`${w}-has-warning`]:N==="warning",[`${w}-has-error`]:N==="error",[`${w}-is-validating`]:N==="validating",[`${w}-hidden`]:f,[`${w}-${y}`]:y});return d.createElement("div",{className:D,style:i,ref:C},d.createElement(B8,Object.assign({className:`${w}-row`},$r(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),d.createElement(NJe,Object.assign({htmlFor:h},e,{requiredMark:_,required:m??g,prefixCls:t,vertical:S})),d.createElement(TJe,Object.assign({},e,c,{errors:E,warnings:$,prefixCls:t,status:N,help:a,marginBottom:O,onErrorVisibleChanged:R}),d.createElement(Fpe.Provider,{value:v},d.createElement(M1e,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:N},p)))),!!O&&d.createElement("div",{className:`${w}-margin-offset`,style:{marginBottom:-O}}))}const LJe="__SPLIT__";function BJe(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const a=e[i],o=t[i];return a===o||typeof a=="function"||typeof o=="function"})}const zJe=d.memo(e=>{let{children:t}=e;return t},(e,t)=>BJe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function qX(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function HJe(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:p="onChange",validateTrigger:h,hidden:m,help:g,layout:v}=e,{getPrefixCls:y}=d.useContext(Zt),{name:b}=d.useContext(jf),w=SJe(l),_=typeof w=="function",k=d.useContext(Fpe),{validateTrigger:S}=d.useContext(dh),C=h!==void 0?h:S,E=t!=null,$=y("form",a),M=qr($),[P,I,O]=XB($,M);Hg();const A=d.useContext(n3),R=d.useRef(null),[j,N]=CJe({}),[D,V]=gg(()=>qX()),F=Y=>{const X=A==null?void 0:A.getKey(Y.name);if(V(Y.destroy?qX():Y,!0),n&&g!==!1&&k){let ae=Y.name;if(Y.destroy)ae=R.current||ae;else if(X!==void 0){const[oe,le]=X;ae=[oe].concat(ct(le)),R.current=ae}k(Y,ae)}},K=(Y,X)=>{N(ae=>{const oe=Object.assign({},ae),ce=[].concat(ct(Y.name.slice(0,-1)),ct(X)).join(LJe);return Y.destroy?delete oe[ce]:oe[ce]=Y,oe})},[B,U]=d.useMemo(()=>{const Y=ct(D.errors),X=ct(D.warnings);return Object.values(j).forEach(ae=>{Y.push.apply(Y,ct(ae.errors||[])),X.push.apply(X,ct(ae.warnings||[]))}),[Y,X]},[j,D.errors,D.warnings]),Z=_Je();function ee(Y,X,ae){return n&&!m?d.createElement(M1e,{prefixCls:$,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:D,errors:B,warnings:U,noStyle:!0},Y):d.createElement(FJe,Object.assign({key:"row"},e,{className:Ee(r,O,M,I),prefixCls:$,fieldId:X,isRequired:ae,errors:B,warnings:U,meta:D,onSubItemMetaChange:K,layout:v}),Y)}if(!E&&!_&&!i)return P(ee(w));let ie={};return typeof u=="string"?ie.label=u:t&&(ie.label=String(t)),f&&(ie=Object.assign(Object.assign({},ie),f)),P(d.createElement(aB,Object.assign({},e,{messageVariables:ie,trigger:p,validateTrigger:C,onMetaChange:F}),(Y,X,ae)=>{const oe=ew(t).length&&X?X.name:[],le=_1e(oe,b),ce=c!==void 0?c:!!(s!=null&&s.some(re=>{if(re&&typeof re=="object"&&re.required&&!re.warningOnly)return!0;if(typeof re=="function"){const fe=re(ae);return(fe==null?void 0:fe.required)&&!(fe!=null&&fe.warningOnly)}return!1})),pe=Object.assign({},Y);let me=null;if(Array.isArray(w)&&E)me=w;else if(!(_&&(!(o||i)||E))){if(!(i&&!_&&!E))if(d.isValidElement(w)){const re=Object.assign(Object.assign({},w.props),pe);if(re.id||(re.id=le),g||B.length>0||U.length>0||e.extra){const $e=[];(g||B.length>0)&&$e.push(`${le}_help`),e.extra&&$e.push(`${le}_extra`),re["aria-describedby"]=$e.join(" ")}B.length>0&&(re["aria-invalid"]="true"),ce&&(re["aria-required"]="true"),Vf(w)&&(re.ref=Z(oe,w)),new Set([].concat(ct(ew(p)),ct(ew(C)))).forEach($e=>{re[$e]=function(){for(var Ce,be,Se,we,se,ye=arguments.length,Oe=new Array(ye),z=0;z{var{prefixCls:t,children:n}=e,r=UJe(e,["prefixCls","children"]);const{getPrefixCls:i}=d.useContext(Zt),a=i("form",t),o=d.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return d.createElement(jpe,Object.assign({},r),(s,l,c)=>d.createElement(sB.Provider,{value:o},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function VJe(){const{form:e}=d.useContext(jf);return e}const Qi=xJe;Qi.Item=T1e;Qi.List=WJe;Qi.ErrorList=C1e;Qi.useForm=E1e;Qi.useFormInstance=VJe;Qi.useWatch=Dpe;Qi.Provider=Lpe;Qi.create=()=>{};function P1e(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function qJe(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function vv(e,t,n,r){var i=ig.unstable_batchedUpdates?function(o){ig.unstable_batchedUpdates(n,o)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var P4=d.createContext(null),KJe=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,a=t.prefixCls,o=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,f=t.current,p=t.transform,h=t.count,m=t.scale,g=t.minScale,v=t.maxScale,y=t.closeIcon,b=t.onActive,w=t.onClose,_=t.onZoomIn,k=t.onZoomOut,S=t.onRotateRight,C=t.onRotateLeft,E=t.onFlipX,$=t.onFlipY,M=t.onReset,P=t.toolbarRender,I=t.zIndex,O=t.image,A=d.useContext(P4),R=s.rotateLeft,j=s.rotateRight,N=s.zoomIn,D=s.zoomOut,V=s.close,F=s.left,K=s.right,B=s.flipX,U=s.flipY,Z="".concat(a,"-operations-operation");d.useEffect(function(){var fe=function($e){$e.keyCode===gt.ESC&&w()};return n&&window.addEventListener("keydown",fe),function(){window.removeEventListener("keydown",fe)}},[n]);var ee=function(ve,$e){ve.preventDefault(),ve.stopPropagation(),b($e)},ie=d.useCallback(function(fe){var ve=fe.type,$e=fe.disabled,Ce=fe.onClick,be=fe.icon;return d.createElement("div",{key:ve,className:Ee(Z,"".concat(a,"-operations-operation-").concat(ve),ne({},"".concat(a,"-operations-operation-disabled"),!!$e)),onClick:Ce},be)},[Z,a]),Y=c?ie({icon:F,onClick:function(ve){return ee(ve,-1)},type:"prev",disabled:f===0}):void 0,X=c?ie({icon:K,onClick:function(ve){return ee(ve,1)},type:"next",disabled:f===h-1}):void 0,ae=ie({icon:U,onClick:$,type:"flipY"}),oe=ie({icon:B,onClick:E,type:"flipX"}),le=ie({icon:R,onClick:C,type:"rotateLeft"}),ce=ie({icon:j,onClick:S,type:"rotateRight"}),pe=ie({icon:D,onClick:k,type:"zoomOut",disabled:m<=g}),me=ie({icon:N,onClick:_,type:"zoomIn",disabled:m===v}),re=d.createElement("div",{className:"".concat(a,"-operations")},ae,oe,le,ce,pe,me);return d.createElement(ka,{visible:n,motionName:r},function(fe){var ve=fe.className,$e=fe.style;return d.createElement(x4,{open:!0,getContainer:i??document.body},d.createElement("div",{className:Ee("".concat(a,"-operations-wrapper"),ve,o),style:q(q({},$e),{},{zIndex:I})},y===null?null:d.createElement("button",{className:"".concat(a,"-close"),onClick:w},y||V),c&&d.createElement(d.Fragment,null,d.createElement("div",{className:Ee("".concat(a,"-switch-left"),ne({},"".concat(a,"-switch-left-disabled"),f===0)),onClick:function(be){return ee(be,-1)}},F),d.createElement("div",{className:Ee("".concat(a,"-switch-right"),ne({},"".concat(a,"-switch-right-disabled"),f===h-1)),onClick:function(be){return ee(be,1)}},K)),d.createElement("div",{className:"".concat(a,"-footer")},u&&d.createElement("div",{className:"".concat(a,"-progress")},l?l(f+1,h):"".concat(f+1," / ").concat(h)),P?P(re,q(q({icons:{prevIcon:Y,nextIcon:X,flipYIcon:ae,flipXIcon:oe,rotateLeftIcon:le,rotateRightIcon:ce,zoomOutIcon:pe,zoomInIcon:me},actions:{onActive:b,onFlipY:$,onFlipX:E,onRotateLeft:C,onRotateRight:S,onZoomOut:k,onZoomIn:_,onReset:M,onClose:w},transform:p},A?{current:f,total:h}:{}),{},{image:O})):re)))})},ES={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function GJe(e,t,n,r){var i=d.useRef(null),a=d.useRef([]),o=d.useState(ES),s=Te(o,2),l=s[0],c=s[1],u=function(m){c(ES),mg(ES,l)||r==null||r({transform:ES,action:m})},f=function(m,g){i.current===null&&(a.current=[],i.current=rr(function(){c(function(v){var y=v;return a.current.forEach(function(b){y=q(q({},y),b)}),i.current=null,r==null||r({transform:y,action:g}),y})})),a.current.push(q(q({},l),m))},p=function(m,g,v,y,b){var w=e.current,_=w.width,k=w.height,S=w.offsetWidth,C=w.offsetHeight,E=w.offsetLeft,$=w.offsetTop,M=m,P=l.scale*m;P>n?(P=n,M=n/l.scale):Pr){if(t>0)return ne({},e,a);if(t<0&&ir)return ne({},e,t<0?a:-a);return{}}function O1e(e,t,n,r){var i=P1e(),a=i.width,o=i.height,s=null;return e<=a&&t<=o?s={x:0,y:0}:(e>a||t>o)&&(s=q(q({},KX("x",n,e,a)),KX("y",r,t,o))),s}var yv=1,YJe=1;function XJe(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,c=i.x,u=i.y,f=d.useState(!1),p=Te(f,2),h=p[0],m=p[1],g=d.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(k){!t||k.button!==0||(k.preventDefault(),k.stopPropagation(),g.current={diffX:k.pageX-c,diffY:k.pageY-u,transformX:c,transformY:u},m(!0))},y=function(k){n&&h&&a({x:k.pageX-g.current.diffX,y:k.pageY-g.current.diffY},"move")},b=function(){if(n&&h){m(!1);var k=g.current,S=k.transformX,C=k.transformY,E=c!==S&&u!==C;if(!E)return;var $=e.current.offsetWidth*l,M=e.current.offsetHeight*l,P=e.current.getBoundingClientRect(),I=P.left,O=P.top,A=s%180!==0,R=O1e(A?M:$,A?$:M,I,O);R&&a(q({},R),"dragRebound")}},w=function(k){if(!(!n||k.deltaY==0)){var S=Math.abs(k.deltaY/100),C=Math.min(S,YJe),E=yv+C*r;k.deltaY>0&&(E=yv/E),o(E,"wheel",k.clientX,k.clientY)}};return d.useEffect(function(){var _,k,S,C;if(t){S=vv(window,"mouseup",b,!1),C=vv(window,"mousemove",y,!1);try{window.top!==window.self&&(_=vv(window.top,"mouseup",b,!1),k=vv(window.top,"mousemove",y,!1))}catch{}}return function(){var E,$,M,P;(E=S)===null||E===void 0||E.remove(),($=C)===null||$===void 0||$.remove(),(M=_)===null||M===void 0||M.remove(),(P=k)===null||P===void 0||P.remove()}},[n,h,c,u,s,t]),{isMoving:h,onMouseDown:v,onMouseMove:y,onMouseUp:b,onWheel:w}}function ZJe(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function I1e(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=d.useState(n?"loading":"normal"),a=Te(i,2),o=a[0],s=a[1],l=d.useRef(!1),c=o==="error";d.useEffect(function(){var h=!0;return ZJe(t).then(function(m){!m&&h&&s("error")}),function(){h=!1}},[t]),d.useEffect(function(){n&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},f=function(m){l.current=!1,o==="loading"&&m!==null&&m!==void 0&&m.complete&&(m.naturalWidth||m.naturalHeight)&&(l.current=!0,u())},p=c&&r?{src:r}:{onLoad:u,src:t};return[f,p,o]}function k6(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function QJe(e,t,n,r){var i=k6(e,n),a=k6(t,r);if(i===0&&a===0)return[e.x,e.y];var o=i/(i+a),s=e.x+o*(t.x-e.x),l=e.y+o*(t.y-e.y);return[s,l]}function JJe(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,c=i.x,u=i.y,f=d.useState(!1),p=Te(f,2),h=p[0],m=p[1],g=d.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),v=function(k){g.current=q(q({},g.current),k)},y=function(k){if(t){k.stopPropagation(),m(!0);var S=k.touches,C=S===void 0?[]:S;C.length>1?v({point1:{x:C[0].clientX,y:C[0].clientY},point2:{x:C[1].clientX,y:C[1].clientY},eventType:"touchZoom"}):v({point1:{x:C[0].clientX-c,y:C[0].clientY-u},eventType:"move"})}},b=function(k){var S=k.touches,C=S===void 0?[]:S,E=g.current,$=E.point1,M=E.point2,P=E.eventType;if(C.length>1&&P==="touchZoom"){var I={x:C[0].clientX,y:C[0].clientY},O={x:C[1].clientX,y:C[1].clientY},A=QJe($,M,I,O),R=Te(A,2),j=R[0],N=R[1],D=k6(I,O)/k6($,M);o(D,"touchZoom",j,N,!0),v({point1:I,point2:O,eventType:"touchZoom"})}else P==="move"&&(a({x:C[0].clientX-$.x,y:C[0].clientY-$.y},"move"),v({eventType:"move"}))},w=function(){if(n){if(h&&m(!1),v({eventType:"none"}),r>l)return a({x:0,y:0,scale:r},"touchZoom");var k=e.current.offsetWidth*l,S=e.current.offsetHeight*l,C=e.current.getBoundingClientRect(),E=C.left,$=C.top,M=s%180!==0,P=O1e(M?S:k,M?k:S,E,$);P&&a(q({},P),"dragRebound")}};return d.useEffect(function(){var _;return n&&t&&(_=vv(window,"touchmove",function(k){return k.preventDefault()},{passive:!1})),function(){var k;(k=_)===null||k===void 0||k.remove()}},[n,t]),{isTouching:h,onTouchStart:y,onTouchMove:b,onTouchEnd:w}}var eet=["fallback","src","imgRef"],tet=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],net=function(t){var n=t.fallback,r=t.src,i=t.imgRef,a=Ut(t,eet),o=I1e({src:r,fallback:n}),s=Te(o,2),l=s[0],c=s[1];return te.createElement("img",tt({ref:function(f){i.current=f,l(f)}},a,c))},R1e=function(t){var n=t.prefixCls,r=t.src,i=t.alt,a=t.imageInfo,o=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,f=t.icons,p=f===void 0?{}:f,h=t.rootClassName,m=t.closeIcon,g=t.getContainer,v=t.current,y=v===void 0?0:v,b=t.count,w=b===void 0?1:b,_=t.countRender,k=t.scaleStep,S=k===void 0?.5:k,C=t.minScale,E=C===void 0?1:C,$=t.maxScale,M=$===void 0?50:$,P=t.transitionName,I=P===void 0?"zoom":P,O=t.maskTransitionName,A=O===void 0?"fade":O,R=t.imageRender,j=t.imgCommonProps,N=t.toolbarRender,D=t.onTransform,V=t.onChange,F=Ut(t,tet),K=d.useRef(),B=d.useContext(P4),U=B&&w>1,Z=B&&w>=1,ee=d.useState(!0),ie=Te(ee,2),Y=ie[0],X=ie[1],ae=GJe(K,E,M,D),oe=ae.transform,le=ae.resetTransform,ce=ae.updateTransform,pe=ae.dispatchZoomChange,me=XJe(K,l,u,S,oe,ce,pe),re=me.isMoving,fe=me.onMouseDown,ve=me.onWheel,$e=JJe(K,l,u,E,oe,ce,pe),Ce=$e.isTouching,be=$e.onTouchStart,Se=$e.onTouchMove,we=$e.onTouchEnd,se=oe.rotate,ye=oe.scale,Oe=Ee(ne({},"".concat(n,"-moving"),re));d.useEffect(function(){Y||X(!0)},[Y]);var z=function(){le("close")},H=function(){pe(yv+S,"zoomIn")},G=function(){pe(yv/(yv+S),"zoomOut")},de=function(){ce({rotate:se+90},"rotateRight")},xe=function(){ce({rotate:se-90},"rotateLeft")},he=function(){ce({flipX:!oe.flipX},"flipX")},Ue=function(){ce({flipY:!oe.flipY},"flipY")},We=function(){le("reset")},ge=function(qe){var Et=y+qe;!Number.isInteger(Et)||Et<0||Et>w-1||(X(!1),le(qe<0?"prev":"next"),V==null||V(Et,y))},ze=function(qe){!u||!U||(qe.keyCode===gt.LEFT?ge(-1):qe.keyCode===gt.RIGHT&&ge(1))},Ve=function(qe){u&&(ye!==1?ce({x:0,y:0,scale:1},"doubleClick"):pe(yv+S,"doubleClick",qe.clientX,qe.clientY))};d.useEffect(function(){var Ke=vv(window,"keydown",ze,!1);return function(){Ke.remove()}},[u,U,y]);var Be=te.createElement(net,tt({},j,{width:t.width,height:t.height,imgRef:K,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(oe.x,"px, ").concat(oe.y,"px, 0) scale3d(").concat(oe.flipX?"-":"").concat(ye,", ").concat(oe.flipY?"-":"").concat(ye,", 1) rotate(").concat(se,"deg)"),transitionDuration:(!Y||Ce)&&"0s"},fallback:o,src:r,onWheel:ve,onMouseDown:fe,onDoubleClick:Ve,onTouchStart:be,onTouchMove:Se,onTouchEnd:we,onTouchCancel:we})),Xe=q({url:r,alt:i},a);return te.createElement(te.Fragment,null,te.createElement(rB,tt({transitionName:I,maskTransitionName:A,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:Oe},rootClassName:h,getContainer:g},F,{afterClose:z}),te.createElement("div",{className:"".concat(n,"-img-wrapper")},R?R(Be,q({transform:oe,image:Xe},B?{current:y}:{})):Be)),te.createElement(KJe,{visible:u,transform:oe,maskTransitionName:A,closeIcon:m,getContainer:g,prefixCls:n,rootClassName:h,icons:p,countRender:_,showSwitch:U,showProgress:Z,current:y,count:w,scale:ye,minScale:E,maxScale:M,toolbarRender:N,onActive:ge,onZoomIn:H,onZoomOut:G,onRotateRight:de,onRotateLeft:xe,onFlipX:he,onFlipY:Ue,onClose:c,onReset:We,zIndex:F.zIndex!==void 0?F.zIndex+1:void 0,image:Xe}))},Kj=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function ret(e){var t=d.useState({}),n=Te(t,2),r=n[0],i=n[1],a=d.useCallback(function(s,l){return i(function(c){return q(q({},c),{},ne({},s,l))}),function(){i(function(c){var u=q({},c);return delete u[s],u})}},[]),o=d.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(ct(Kj)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(r).reduce(function(s,l){var c=r[l],u=c.canPreview,f=c.data;return u&&s.push({data:f,id:l}),s},[])},[e,r]);return[o,a,!!e]}var iet=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],aet=["src"],oet=function(t){var n,r=t.previewPrefixCls,i=r===void 0?"rc-image-preview":r,a=t.children,o=t.icons,s=o===void 0?{}:o,l=t.items,c=t.preview,u=t.fallback,f=Kt(c)==="object"?c:{},p=f.visible,h=f.onVisibleChange,m=f.getContainer,g=f.current,v=f.movable,y=f.minScale,b=f.maxScale,w=f.countRender,_=f.closeIcon,k=f.onChange,S=f.onTransform,C=f.toolbarRender,E=f.imageRender,$=Ut(f,iet),M=ret(l),P=Te(M,3),I=P[0],O=P[1],A=P[2],R=In(0,{value:g}),j=Te(R,2),N=j[0],D=j[1],V=d.useState(!1),F=Te(V,2),K=F[0],B=F[1],U=((n=I[N])===null||n===void 0?void 0:n.data)||{},Z=U.src,ee=Ut(U,aet),ie=In(!!p,{value:p,onChange:function(Ce,be){h==null||h(Ce,be,N)}}),Y=Te(ie,2),X=Y[0],ae=Y[1],oe=d.useState(null),le=Te(oe,2),ce=le[0],pe=le[1],me=d.useCallback(function($e,Ce,be,Se){var we=A?I.findIndex(function(se){return se.data.src===Ce}):I.findIndex(function(se){return se.id===$e});D(we<0?0:we),ae(!0),pe({x:be,y:Se}),B(!0)},[I,A]);d.useEffect(function(){X?K||D(0):B(!1)},[X]);var re=function(Ce,be){D(Ce),k==null||k(Ce,be)},fe=function(){ae(!1),pe(null)},ve=d.useMemo(function(){return{register:O,onPreview:me}},[O,me]);return d.createElement(P4.Provider,{value:ve},a,d.createElement(R1e,tt({"aria-hidden":!X,movable:v,visible:X,prefixCls:i,closeIcon:_,onClose:fe,mousePosition:ce,imgCommonProps:ee,src:Z,fallback:u,icons:s,minScale:y,maxScale:b,getContainer:m,current:N,count:I.length,countRender:w,onTransform:S,toolbarRender:C,imageRender:E,onChange:re},$)))},GX=0;function set(e,t){var n=d.useState(function(){return GX+=1,String(GX)}),r=Te(n,1),i=r[0],a=d.useContext(P4),o={data:t,canPreview:e};return d.useEffect(function(){if(a)return a.register(i,o)},[]),d.useEffect(function(){a&&a.register(i,o)},[e,t]),i}var cet=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],uet=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],ZB=function(t){var n=t.src,r=t.alt,i=t.onPreviewClose,a=t.prefixCls,o=a===void 0?"rc-image":a,s=t.previewPrefixCls,l=s===void 0?"".concat(o,"-preview"):s,c=t.placeholder,u=t.fallback,f=t.width,p=t.height,h=t.style,m=t.preview,g=m===void 0?!0:m,v=t.className,y=t.onClick,b=t.onError,w=t.wrapperClassName,_=t.wrapperStyle,k=t.rootClassName,S=Ut(t,cet),C=c&&c!==!0,E=Kt(g)==="object"?g:{},$=E.src,M=E.visible,P=M===void 0?void 0:M,I=E.onVisibleChange,O=I===void 0?i:I,A=E.getContainer,R=A===void 0?void 0:A,j=E.mask,N=E.maskClassName,D=E.movable,V=E.icons,F=E.scaleStep,K=E.minScale,B=E.maxScale,U=E.imageRender,Z=E.toolbarRender,ee=Ut(E,uet),ie=$??n,Y=In(!!P,{value:P,onChange:O}),X=Te(Y,2),ae=X[0],oe=X[1],le=I1e({src:n,isCustomPlaceholder:C,fallback:u}),ce=Te(le,3),pe=ce[0],me=ce[1],re=ce[2],fe=d.useState(null),ve=Te(fe,2),$e=ve[0],Ce=ve[1],be=d.useContext(P4),Se=!!g,we=function(){oe(!1),Ce(null)},se=Ee(o,w,k,ne({},"".concat(o,"-error"),re==="error")),ye=d.useMemo(function(){var G={};return Kj.forEach(function(de){t[de]!==void 0&&(G[de]=t[de])}),G},Kj.map(function(G){return t[G]})),Oe=d.useMemo(function(){return q(q({},ye),{},{src:ie})},[ie,ye]),z=set(Se,Oe),H=function(de){var xe=qJe(de.target),he=xe.left,Ue=xe.top;be?be.onPreview(z,ie,he,Ue):(Ce({x:he,y:Ue}),oe(!0)),y==null||y(de)};return d.createElement(d.Fragment,null,d.createElement("div",tt({},S,{className:se,onClick:Se?H:y,style:q({width:f,height:p},_)}),d.createElement("img",tt({},ye,{className:Ee("".concat(o,"-img"),ne({},"".concat(o,"-img-placeholder"),c===!0),v),style:q({height:p},h),ref:pe},me,{width:f,height:p,onError:b})),re==="loading"&&d.createElement("div",{"aria-hidden":"true",className:"".concat(o,"-placeholder")},c),j&&Se&&d.createElement("div",{className:Ee("".concat(o,"-mask"),N),style:{display:(h==null?void 0:h.display)==="none"?"none":void 0}},j)),!be&&Se&&d.createElement(R1e,tt({"aria-hidden":!ae,visible:ae,prefixCls:l,onClose:we,mousePosition:$e,src:ie,alt:r,imageInfo:{width:f,height:p},fallback:u,getContainer:R,icons:V,movable:D,scaleStep:F,minScale:K,maxScale:B,rootClassName:k,imageRender:U,imgCommonProps:ye,toolbarRender:Z},ee)))};ZB.PreviewGroup=oet;var det={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},fet=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:det}))},pet=d.forwardRef(fet),het={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},met=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:het}))},get=d.forwardRef(met),vet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},yet=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:vet}))},YX=d.forwardRef(yet),bet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},wet=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:bet}))},xet=d.forwardRef(wet),Cet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},_et=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Cet}))},ket=d.forwardRef(_et);const Gj=e=>({position:e||"absolute",inset:0}),Eet=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:a,colorTextLightSolid:o}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:o,background:new dr("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},oo),{padding:`0 ${Me(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},$et=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:a,paddingLG:o,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:f}=e,p=new dr(n).setA(.1),h=p.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:a},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:f,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Me(o)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},Met=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:a,motionDurationSlow:o}=e,s=new dr(t).setA(.1),l=s.clone().setA(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(a).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},Tet=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},Gj()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Gj()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[$et(e),Met(e)]}]},Pet=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},Eet(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Gj())}}},Oet=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Cy(e,"zoom"),"&":ZL(e,!0)}},Iet=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new dr(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new dr(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new dr(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),j1e=Jn("Image",e=>{const t=`${e.componentCls}-preview`,n=Hn(e,{previewCls:t,modalMaskBg:new dr("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Pet(n),Tet(n),qpe(Hn(n,{componentCls:t})),Oet(n)]},Iet);var Ret=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{previewPrefixCls:t,preview:n}=e,r=Ret(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=d.useContext(Zt),a=i("image",t),o=`${a}-preview`,s=i(),l=qr(a),[c,u,f]=j1e(a,l),[p]=_c("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=d.useMemo(()=>{var m;if(n===!1)return n;const g=typeof n=="object"?n:{},v=Ee(u,f,l,(m=g.rootClassName)!==null&&m!==void 0?m:"");return Object.assign(Object.assign({},g),{transitionName:so(s,"zoom",g.transitionName),maskTransitionName:so(s,"fade",g.maskTransitionName),rootClassName:v,zIndex:p})},[n]);return c(d.createElement(ZB.PreviewGroup,Object.assign({preview:h,previewPrefixCls:o,icons:N1e},r)))};var XX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,preview:r,className:i,rootClassName:a,style:o}=e,s=XX(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=Us,getPopupContainer:u,image:f}=d.useContext(Zt),p=l("image",n),h=l(),m=c.Image||Us.Image,g=qr(p),[v,y,b]=j1e(p,g),w=Ee(a,y,b,g),_=Ee(i,y,f==null?void 0:f.className),[k]=_c("ImagePreview",typeof r=="object"?r.zIndex:void 0),S=d.useMemo(()=>{var E;if(r===!1)return r;const $=typeof r=="object"?r:{},{getContainer:M,closeIcon:P,rootClassName:I}=$,O=XX($,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:d.createElement("div",{className:`${p}-mask-info`},d.createElement(W8,null),m==null?void 0:m.preview),icons:N1e},O),{rootClassName:Ee(w,I),getContainer:M??u,transitionName:so(h,"zoom",$.transitionName),maskTransitionName:so(h,"fade",$.maskTransitionName),zIndex:k,closeIcon:P??((E=f==null?void 0:f.preview)===null||E===void 0?void 0:E.closeIcon)})},[r,m,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),C=Object.assign(Object.assign({},f==null?void 0:f.style),o);return v(d.createElement(ZB,Object.assign({prefixCls:p,preview:S,rootClassName:w,className:_,style:C},s)))};A1e.PreviewGroup=jet;function Net(e,t,n){return typeof n=="boolean"?n:e.length?!0:Zi(t).some(i=>i.type===ome)}var D1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);id.forwardRef((o,s)=>d.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},o)))}const QB=d.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,o=D1e(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=d.useContext(Zt),l=s("layout",n),[c,u,f]=ame(l),p=r?`${l}-${r}`:l;return c(d.createElement(a,Object.assign({className:Ee(n||p,i,u,f),ref:t},o)))}),Aet=d.forwardRef((e,t)=>{const{direction:n}=d.useContext(Zt),[r,i]=d.useState([]),{prefixCls:a,className:o,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,p=D1e(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=$r(p,["suffixCls"]),{getPrefixCls:m,layout:g}=d.useContext(Zt),v=m("layout",a),y=Net(r,l,c),[b,w,_]=ame(v),k=Ee(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,o,s,w,_),S=d.useMemo(()=>({siderHook:{addSider:C=>{i(E=>[].concat(ct(E),[C]))},removeSider:C=>{i(E=>E.filter($=>$!==C))}}}),[]);return b(d.createElement(nme.Provider,{value:S},d.createElement(u,Object.assign({ref:t,className:k,style:Object.assign(Object.assign({},g==null?void 0:g.style),f)},h),l)))}),Det=V8({tagName:"div",displayName:"Layout"})(Aet),xg=V8({suffixCls:"header",tagName:"header",displayName:"Header"})(QB),Fet=V8({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(QB),Let=V8({suffixCls:"content",tagName:"main",displayName:"Content"})(QB),Qn=Det;Qn.Header=xg;Qn.Footer=Fet;Qn.Content=Let;Qn.Sider=ome;Qn._InternalSiderContext=k8;const Bet=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const i=n[r];i!==void 0&&(e[r]=i)})}return e};var zet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Het=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:zet}))},ZX=d.forwardRef(Het),Uet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Wet=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Uet}))},QX=d.forwardRef(Wet),F1e={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},Vet=[10,20,50,100],qet=function(t){var n=t.pageSizeOptions,r=n===void 0?Vet:n,i=t.locale,a=t.changeSize,o=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.disabled,f=t.buildOptionText,p=t.showSizeChanger,h=t.sizeChangerRender,m=te.useState(""),g=Te(m,2),v=g[0],y=g[1],b=function(){return!v||Number.isNaN(v)?void 0:Number(v)},w=typeof f=="function"?f:function(I){return"".concat(I," ").concat(i.items_per_page)},_=function(O){y(O.target.value)},k=function(O){s||v===""||(y(""),!(O.relatedTarget&&(O.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||O.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(b())))},S=function(O){v!==""&&(O.keyCode===gt.ENTER||O.type==="click")&&(y(""),l==null||l(b()))},C=function(){return r.some(function(O){return O.toString()===o.toString()})?r:r.concat([o]).sort(function(O,A){var R=Number.isNaN(Number(O))?0:Number(O),j=Number.isNaN(Number(A))?0:Number(A);return R-j})},E="".concat(c,"-options");if(!p&&!l)return null;var $=null,M=null,P=null;return p&&h&&($=h({disabled:u,size:o,onSizeChange:function(O){a==null||a(Number(O))},"aria-label":i.page_size,className:"".concat(E,"-size-changer"),options:C().map(function(I){return{label:w(I),value:I}})})),l&&(s&&(P=typeof s=="boolean"?te.createElement("button",{type:"button",onClick:S,onKeyUp:S,disabled:u,className:"".concat(E,"-quick-jumper-button")},i.jump_to_confirm):te.createElement("span",{onClick:S,onKeyUp:S},s)),M=te.createElement("div",{className:"".concat(E,"-quick-jumper")},i.jump_to,te.createElement("input",{disabled:u,type:"text",value:v,onChange:_,onKeyUp:S,onBlur:k,"aria-label":i.page}),i.page,P)),te.createElement("li",{className:E},$,M)},Fb=function(t){var n,r=t.rootPrefixCls,i=t.page,a=t.active,o=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,f="".concat(r,"-item"),p=Ee(f,"".concat(f,"-").concat(i),(n={},ne(n,"".concat(f,"-active"),a),ne(n,"".concat(f,"-disabled"),!i),n),o),h=function(){l(i)},m=function(y){c(y,l,i)},g=u(i,"page",te.createElement("a",{rel:"nofollow"},i));return g?te.createElement("li",{title:s?String(i):null,className:p,onClick:h,onKeyDown:m,tabIndex:0},g):null},Ket=function(t,n,r){return r};function JX(){}function eZ(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Gh(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var Get=function(t){var n,r=t.prefixCls,i=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,s=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,f=t.total,p=f===void 0?0:f,h=t.pageSize,m=t.defaultPageSize,g=m===void 0?10:m,v=t.onChange,y=v===void 0?JX:v,b=t.hideOnSinglePage,w=t.align,_=t.showPrevNextJumpers,k=_===void 0?!0:_,S=t.showQuickJumper,C=t.showLessItems,E=t.showTitle,$=E===void 0?!0:E,M=t.onShowSizeChange,P=M===void 0?JX:M,I=t.locale,O=I===void 0?F1e:I,A=t.style,R=t.totalBoundaryShowSizeChanger,j=R===void 0?50:R,N=t.disabled,D=t.simple,V=t.showTotal,F=t.showSizeChanger,K=F===void 0?p>j:F,B=t.sizeChangerRender,U=t.pageSizeOptions,Z=t.itemRender,ee=Z===void 0?Ket:Z,ie=t.jumpPrevIcon,Y=t.jumpNextIcon,X=t.prevIcon,ae=t.nextIcon,oe=te.useRef(null),le=In(10,{value:h,defaultValue:g}),ce=Te(le,2),pe=ce[0],me=ce[1],re=In(1,{value:l,defaultValue:u,postState:function(J){return Math.max(1,Math.min(J,Gh(void 0,pe,p)))}}),fe=Te(re,2),ve=fe[0],$e=fe[1],Ce=te.useState(ve),be=Te(Ce,2),Se=be[0],we=be[1];d.useEffect(function(){we(ve)},[ve]);var se=Math.max(1,ve-(C?3:5)),ye=Math.min(Gh(void 0,pe,p),ve+(C?3:5));function Oe(L,J){var ke=L||te.createElement("button",{type:"button","aria-label":J,className:"".concat(i,"-item-link")});return typeof L=="function"&&(ke=te.createElement(L,q({},t))),ke}function z(L){var J=L.target.value,ke=Gh(void 0,pe,p),je;return J===""?je=J:Number.isNaN(Number(J))?je=Se:J>=ke?je=ke:je=Number(J),je}function H(L){return eZ(L)&&L!==ve&&eZ(p)&&p>0}var G=p>pe?S:!1;function de(L){(L.keyCode===gt.UP||L.keyCode===gt.DOWN)&&L.preventDefault()}function xe(L){var J=z(L);switch(J!==Se&&we(J),L.keyCode){case gt.ENTER:We(J);break;case gt.UP:We(J-1);break;case gt.DOWN:We(J+1);break}}function he(L){We(z(L))}function Ue(L){var J=Gh(L,pe,p),ke=ve>J&&J!==0?J:ve;me(L),we(ke),P==null||P(ve,L),$e(ke),y==null||y(ke,L)}function We(L){if(H(L)&&!N){var J=Gh(void 0,pe,p),ke=L;return L>J?ke=J:L<1&&(ke=1),ke!==Se&&we(ke),$e(ke),y==null||y(ke,pe),ke}return ve}var ge=ve>1,ze=ve2?ke-2:0),it=2;itp?p:ve*pe])),He=null,Le=Gh(void 0,pe,p);if(b&&p<=pe)return null;var Qe=[],ht={rootPrefixCls:i,onClick:We,onKeyPress:qe,showTitle:$,itemRender:ee,page:-1},xt=ve-1>0?ve-1:0,Nt=ve+1=kt*2&&ve!==3&&(Qe[0]=te.cloneElement(Qe[0],{className:Ee("".concat(i,"-item-after-jump-prev"),Qe[0].props.className)}),Qe.unshift(Bt)),Le-ve>=kt*2&&ve!==Le-2){var Rt=Qe[Qe.length-1];Qe[Qe.length-1]=te.cloneElement(Rt,{className:Ee("".concat(i,"-item-before-jump-next"),Rt.props.className)}),Qe.push(He)}Ye!==1&&Qe.unshift(te.createElement(Fb,tt({},ht,{key:1,page:1}))),st!==Le&&Qe.push(te.createElement(Fb,tt({},ht,{key:Le,page:Le})))}var rt=nt(xt);if(rt){var $t=!ge||!Le;rt=te.createElement("li",{title:$?O.prev_page:null,onClick:Ve,tabIndex:$t?null:0,onKeyDown:Et,className:Ee("".concat(i,"-prev"),ne({},"".concat(i,"-disabled"),$t)),"aria-disabled":$t},rt)}var Mt=jt(Nt);if(Mt){var cn,fn;D?(cn=!ze,fn=ge?0:null):(cn=!ze||!Le,fn=cn?null:0),Mt=te.createElement("li",{title:$?O.next_page:null,onClick:Be,tabIndex:fn,onKeyDown:dt,className:Ee("".concat(i,"-next"),ne({},"".concat(i,"-disabled"),cn)),"aria-disabled":cn},Mt)}var T=Ee(i,s,(n={},ne(n,"".concat(i,"-start"),w==="start"),ne(n,"".concat(i,"-center"),w==="center"),ne(n,"".concat(i,"-end"),w==="end"),ne(n,"".concat(i,"-simple"),D),ne(n,"".concat(i,"-disabled"),N),n));return te.createElement("ul",tt({className:T,style:A,ref:oe},Ht),Ne,rt,D?Ct:Qe,Mt,te.createElement(qet,{locale:O,rootPrefixCls:i,disabled:N,selectPrefixCls:o,changeSize:Ue,pageSize:pe,pageSizeOptions:U,quickGo:G?We:null,goButton:lt,showSizeChanger:K,sizeChangerRender:B}))};const Yet=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Xet=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Me(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Me(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + ${n}-col-xl-24${t}-label`]:Jc(e),[`@media (max-width: ${Me(e.screenXSMax)})`]:[k1e(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Jc(e)}}],[`@media (max-width: ${Me(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Jc(e)}},[`@media (max-width: ${Me(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Jc(e)}},[`@media (max-width: ${Me(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Jc(e)}}}},yJe=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),E1e=(e,t)=>Hn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),QB=Jn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=E1e(e,n);return[pJe(r),hJe(r),dJe(r),VX(r,r.componentCls),VX(r,r.formItemCls),mJe(r),gJe(r),vJe(r),x4(r),eB]},yJe,{order:-1e3}),qX=[];function rT(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const $1e=e=>{let{help:t,helpStatus:n,errors:r=qX,warnings:i=qX,className:a,fieldId:o,onVisibleChanged:s}=e;const{prefixCls:l}=d.useContext(cB),c=`${l}-item-explain`,u=qr(l),[f,p,h]=QB(l,u),m=d.useMemo(()=>P0(l),[l]),g=k6(r),v=k6(i),y=d.useMemo(()=>t!=null?[rT(t,"help",n)]:[].concat(lt(g.map((C,k)=>rT(C,"error","error",k))),lt(v.map((C,k)=>rT(C,"warning","warning",k)))),[t,n,g,v]),w=d.useMemo(()=>{const C={};return y.forEach(k=>{let{key:S}=k;C[S]=(C[S]||0)+1}),y.map((k,S)=>Object.assign(Object.assign({},k),{key:C[k.key]>1?`${k.key}-fallback-${S}`:k.key}))},[y]),b={};return o&&(b.id=`${o}_help`),f(d.createElement(Ca,{motionDeadline:m.motionDeadline,motionName:`${l}-show-help`,visible:!!w.length,onVisibleChanged:s},C=>{const{className:k,style:S}=C;return d.createElement("div",Object.assign({},b,{className:Ee(c,k,h,u,a,p),style:S,role:"alert"}),d.createElement(ZE,Object.assign({keys:w},P0(l),{motionName:`${l}-show-help-item`,component:!1}),_=>{const{key:E,error:$,errorStatus:M,className:P,style:R}=_;return d.createElement("div",{key:E,className:Ee(P,{[`${c}-${M}`]:M}),style:R},$)}))}))},bJe=["parentNode"],wJe="form_item";function ew(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function M1e(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:bJe.includes(n)?`${wJe}_${n}`:n}function T1e(e,t,n,r,i,a){let o=r;return a!==void 0?o=a:n.validating?o="validating":e.length?o="error":t.length?o="warning":(n.touched||i&&n.validated)&&(o="success"),o}function KX(e){return ew(e).join("_")}function GX(e,t){const n=t.getFieldInstance(e),r=_de(n);if(r)return r;const i=M1e(ew(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function P1e(e){const[t]=lB(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>a=>{const o=KX(i);a?n.current[o]=a:delete n.current[o]}},scrollToField:function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=GX(i,r);o&&BAe(o,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},focusField:i=>{var a;const o=GX(i,r);o&&((a=o.focus)===null||a===void 0||a.call(o))},getFieldInstance:i=>{const a=KX(i);return n.current[a]}}),[e,t]);return[r]}var xJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=d.useContext(ma),{getPrefixCls:r,direction:i,form:a}=d.useContext(Xt),{prefixCls:o,className:s,rootClassName:l,size:c,disabled:u=n,form:f,colon:p,labelAlign:h,labelWrap:m,labelCol:g,wrapperCol:v,hideRequiredMark:y,layout:w="horizontal",scrollToFirstError:b,requiredMark:C,onFinishFailed:k,name:S,style:_,feedbackIcons:E,variant:$}=e,M=xJe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),P=Bi(c),R=d.useContext(pfe),O=d.useMemo(()=>C!==void 0?C:y?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[y,C,a]),j=p??(a==null?void 0:a.colon),I=r("form",o),A=qr(I),[N,F,K]=QB(I,A),L=Ee(I,`${I}-${w}`,{[`${I}-hide-required-mark`]:O===!1,[`${I}-rtl`]:i==="rtl",[`${I}-${P}`]:P},K,A,F,a==null?void 0:a.className,s,l),[V]=P1e(f),{__INTERNAL__:B}=V;B.name=S;const U=d.useMemo(()=>({name:S,labelAlign:h,labelCol:g,labelWrap:m,wrapperCol:v,vertical:w==="vertical",colon:j,requiredMark:O,itemRef:B.itemRef,form:V,feedbackIcons:E}),[S,h,g,v,w,j,O,V,E]),Y=d.useRef(null);d.useImperativeHandle(t,()=>{var Z;return Object.assign(Object.assign({},V),{nativeElement:(Z=Y.current)===null||Z===void 0?void 0:Z.nativeElement})});const ee=(Z,X)=>{if(Z){let ae={block:"nearest"};typeof Z=="object"&&(ae=Object.assign(Object.assign({},ae),Z)),V.scrollToField(X,ae),ae.focus&&V.focusField(X)}},ie=Z=>{if(k==null||k(Z),Z.errorFields.length){const X=Z.errorFields[0].name;if(b!==void 0){ee(b,X);return}a&&a.scrollToFirstError!==void 0&&ee(a.scrollToFirstError,X)}};return N(d.createElement(Wpe.Provider,{value:$},d.createElement(HL,{disabled:u},d.createElement(mg.Provider,{value:P},d.createElement(Upe,{validateMessages:R},d.createElement(jf.Provider,{value:U},d.createElement(ky,Object.assign({id:S},M,{name:S,onFinishFailed:ie,form:V,ref:Y,style:Object.assign(Object.assign({},a==null?void 0:a.style),_),className:L}))))))))},CJe=d.forwardRef(SJe);function _Je(e){if(typeof e=="function")return e;const t=Xi(e);return t.length<=1?t[0]:t}const O1e=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(oa);return{status:e,errors:t,warnings:n}};O1e.Context=oa;function kJe(e){const[t,n]=d.useState(e),r=d.useRef(null),i=d.useRef([]),a=d.useRef(!1);d.useEffect(()=>(a.current=!1,()=>{a.current=!0,rr.cancel(r.current),r.current=null}),[]);function o(s){a.current||(r.current===null&&(i.current=[],r.current=rr(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,o]}function EJe(){const{itemRef:e}=d.useContext(jf),t=d.useRef({});function n(r,i){const a=i&&typeof i=="object"&&bh(i),o=r.join("_");return(t.current.name!==o||t.current.originRef!==a)&&(t.current.name=o,t.current.originRef=a,t.current.ref=ga(e(r),a)),t.current.ref}return n}const $Je=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},MJe=Sy(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=E1e(e,n);return[$Je(r)]});var TJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:p,onErrorVisibleChanged:h,label:m}=e,g=`${t}-item`,v=d.useContext(jf),y=d.useMemo(()=>{let j=Object.assign({},i||v.wrapperCol||{});return m===null&&!r&&!i&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(A=>{const N=A?[A]:[],F=Ds(v.labelCol,N),K=typeof F=="object"?F:{},L=Ds(j,N),V=typeof L=="object"?L:{};"span"in K&&!("offset"in V)&&K.spanTJe(v,["labelCol","wrapperCol"]),[v]),C=d.useRef(null),[k,S]=d.useState(0);nr(()=>{c&&C.current?S(C.current.clientHeight):S(0)},[c]);const _=d.createElement("div",{className:`${g}-control-input`},d.createElement("div",{className:`${g}-control-input-content`},a)),E=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),$=p!==null||o.length||s.length?d.createElement(cB.Provider,{value:E},d.createElement($1e,{fieldId:f,errors:o,warnings:s,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:h})):null,M={};f&&(M.id=`${f}_extra`);const P=c?d.createElement("div",Object.assign({},M,{className:`${g}-extra`,ref:C}),c):null,R=$||P?d.createElement("div",{className:`${g}-additional`,style:p?{minHeight:p+k}:{}},$,P):null,O=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:_,errorList:$,extra:P}):d.createElement(d.Fragment,null,_,R);return d.createElement(jf.Provider,{value:b},d.createElement(D0,Object.assign({},y,{className:w}),O),d.createElement(MJe,{prefixCls:t}))};var RJe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},IJe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:RJe}))},jJe=d.forwardRef(IJe),NJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:a,colon:o,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var f;const[p]=Ga("Form"),{labelAlign:h,labelCol:m,labelWrap:g,colon:v}=d.useContext(jf);if(!n)return null;const y=i||m||{},w=a||h,b=`${t}-item-label`,C=Ee(b,w==="left"&&`${b}-left`,y.className,{[`${b}-wrap`]:!!g});let k=n;const S=o===!0||v!==!1&&o!==!1;S&&!u&&typeof n=="string"&&n.trim()&&(k=n.replace(/[:|:]\s*$/,""));const E=AJe(c);if(E){const{icon:R=d.createElement(jJe,null)}=E,O=NJe(E,["icon"]),j=d.createElement(_a,Object.assign({},O),d.cloneElement(R,{className:`${t}-item-tooltip`,title:"",onClick:I=>{I.preventDefault()},tabIndex:null}));k=d.createElement(d.Fragment,null,k,j)}const $=l==="optional",M=typeof l=="function";M?k=l(k,{required:!!s}):$&&!s&&(k=d.createElement(d.Fragment,null,k,d.createElement("span",{className:`${t}-item-optional`,title:""},(p==null?void 0:p.optional)||((f=Us.Form)===null||f===void 0?void 0:f.optional))));const P=Ee({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:$||M,[`${t}-item-no-colon`]:!S});return d.createElement(D0,Object.assign({},y,{className:C}),d.createElement("label",{htmlFor:r,className:P,title:typeof n=="string"?n:""},k))},FJe={success:Wg,warning:qf,error:Pd,validating:vu};function R1e(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:a,prefixCls:o,meta:s,noStyle:l}=e;const c=`${o}-item`,{feedbackIcons:u}=d.useContext(jf),f=T1e(n,r,s,null,!!i,a),{isFormItemInput:p,status:h,hasFeedback:m,feedbackIcon:g}=d.useContext(oa),v=d.useMemo(()=>{var y;let w;if(i){const C=i!==!0&&i.icons||u,k=f&&((y=C==null?void 0:C({status:f,errors:n,warnings:r}))===null||y===void 0?void 0:y[f]),S=f&&FJe[f];w=k!==!1&&S?d.createElement("span",{className:Ee(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},k||d.createElement(S,null)):null}const b={status:f||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:w,isFormItemInput:!0};return l&&(b.status=(f??h)||"",b.isFormItemInput=p,b.hasFeedback=!!(i??m),b.feedbackIcon=i!==void 0?b.feedbackIcon:g),b},[f,i,l,p,h]);return d.createElement(oa.Provider,{value:v},t)}var LJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(P&&_.current){const K=getComputedStyle(_.current);j(parseInt(K.marginBottom,10))}},[P,R]);const I=K=>{K||j(null)},N=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const L=K?E:c.errors,V=K?$:c.warnings;return T1e(L,V,c,"",!!u,l)}(),F=Ee(b,n,r,{[`${b}-with-help`]:M||E.length||$.length,[`${b}-has-feedback`]:N&&u,[`${b}-has-success`]:N==="success",[`${b}-has-warning`]:N==="warning",[`${b}-has-error`]:N==="error",[`${b}-is-validating`]:N==="validating",[`${b}-hidden`]:f,[`${b}-${y}`]:y});return d.createElement("div",{className:F,style:i,ref:_},d.createElement(z8,Object.assign({className:`${b}-row`},$r(w,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),d.createElement(DJe,Object.assign({htmlFor:h},e,{requiredMark:C,required:m??g,prefixCls:t,vertical:S})),d.createElement(OJe,Object.assign({},e,c,{errors:E,warnings:$,prefixCls:t,status:N,help:a,marginBottom:O,onErrorVisibleChanged:I}),d.createElement(Hpe.Provider,{value:v},d.createElement(R1e,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:N},p)))),!!O&&d.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-O}}))}const zJe="__SPLIT__";function HJe(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const a=e[i],o=t[i];return a===o||typeof a=="function"||typeof o=="function"})}const UJe=d.memo(e=>{let{children:t}=e;return t},(e,t)=>HJe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function YX(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function WJe(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:p="onChange",validateTrigger:h,hidden:m,help:g,layout:v}=e,{getPrefixCls:y}=d.useContext(Xt),{name:w}=d.useContext(jf),b=_Je(l),C=typeof b=="function",k=d.useContext(Hpe),{validateTrigger:S}=d.useContext(ph),_=h!==void 0?h:S,E=t!=null,$=y("form",a),M=qr($),[P,R,O]=QB($,M);Ug();const j=d.useContext(r3),I=d.useRef(null),[A,N]=kJe({}),[F,K]=vg(()=>YX()),L=Z=>{const X=j==null?void 0:j.getKey(Z.name);if(K(Z.destroy?YX():Z,!0),n&&g!==!1&&k){let ae=Z.name;if(Z.destroy)ae=I.current||ae;else if(X!==void 0){const[oe,le]=X;ae=[oe].concat(lt(le)),I.current=ae}k(Z,ae)}},V=(Z,X)=>{N(ae=>{const oe=Object.assign({},ae),ce=[].concat(lt(Z.name.slice(0,-1)),lt(X)).join(zJe);return Z.destroy?delete oe[ce]:oe[ce]=Z,oe})},[B,U]=d.useMemo(()=>{const Z=lt(F.errors),X=lt(F.warnings);return Object.values(A).forEach(ae=>{Z.push.apply(Z,lt(ae.errors||[])),X.push.apply(X,lt(ae.warnings||[]))}),[Z,X]},[A,F.errors,F.warnings]),Y=EJe();function ee(Z,X,ae){return n&&!m?d.createElement(R1e,{prefixCls:$,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:B,warnings:U,noStyle:!0},Z):d.createElement(BJe,Object.assign({key:"row"},e,{className:Ee(r,O,M,R),prefixCls:$,fieldId:X,isRequired:ae,errors:B,warnings:U,meta:F,onSubItemMetaChange:V,layout:v}),Z)}if(!E&&!C&&!i)return P(ee(b));let ie={};return typeof u=="string"?ie.label=u:t&&(ie.label=String(t)),f&&(ie=Object.assign(Object.assign({},ie),f)),P(d.createElement(sB,Object.assign({},e,{messageVariables:ie,trigger:p,validateTrigger:_,onMetaChange:L}),(Z,X,ae)=>{const oe=ew(t).length&&X?X.name:[],le=M1e(oe,w),ce=c!==void 0?c:!!(s!=null&&s.some(re=>{if(re&&typeof re=="object"&&re.required&&!re.warningOnly)return!0;if(typeof re=="function"){const fe=re(ae);return(fe==null?void 0:fe.required)&&!(fe!=null&&fe.warningOnly)}return!1})),pe=Object.assign({},Z);let me=null;if(Array.isArray(b)&&E)me=b;else if(!(C&&(!(o||i)||E))){if(!(i&&!C&&!E))if(d.isValidElement(b)){const re=Object.assign(Object.assign({},b.props),pe);if(re.id||(re.id=le),g||B.length>0||U.length>0||e.extra){const $e=[];(g||B.length>0)&&$e.push(`${le}_help`),e.extra&&$e.push(`${le}_extra`),re["aria-describedby"]=$e.join(" ")}B.length>0&&(re["aria-invalid"]="true"),ce&&(re["aria-required"]="true"),Vf(b)&&(re.ref=Y(oe,b)),new Set([].concat(lt(ew(p)),lt(ew(_)))).forEach($e=>{re[$e]=function(){for(var Ce,be,Se,we,se,ye=arguments.length,Oe=new Array(ye),z=0;z{var{prefixCls:t,children:n}=e,r=VJe(e,["prefixCls","children"]);const{getPrefixCls:i}=d.useContext(Xt),a=i("form",t),o=d.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return d.createElement(Fpe,Object.assign({},r),(s,l,c)=>d.createElement(cB.Provider,{value:o},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function KJe(){const{form:e}=d.useContext(jf);return e}const Zi=CJe;Zi.Item=I1e;Zi.List=qJe;Zi.ErrorList=$1e;Zi.useForm=P1e;Zi.useFormInstance=KJe;Zi.useWatch=zpe;Zi.Provider=Upe;Zi.create=()=>{};function j1e(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function GJe(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function bv(e,t,n,r){var i=ag.unstable_batchedUpdates?function(o){ag.unstable_batchedUpdates(n,o)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var R4=d.createContext(null),YJe=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,a=t.prefixCls,o=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,f=t.current,p=t.transform,h=t.count,m=t.scale,g=t.minScale,v=t.maxScale,y=t.closeIcon,w=t.onActive,b=t.onClose,C=t.onZoomIn,k=t.onZoomOut,S=t.onRotateRight,_=t.onRotateLeft,E=t.onFlipX,$=t.onFlipY,M=t.onReset,P=t.toolbarRender,R=t.zIndex,O=t.image,j=d.useContext(R4),I=s.rotateLeft,A=s.rotateRight,N=s.zoomIn,F=s.zoomOut,K=s.close,L=s.left,V=s.right,B=s.flipX,U=s.flipY,Y="".concat(a,"-operations-operation");d.useEffect(function(){var fe=function($e){$e.keyCode===mt.ESC&&b()};return n&&window.addEventListener("keydown",fe),function(){window.removeEventListener("keydown",fe)}},[n]);var ee=function(ve,$e){ve.preventDefault(),ve.stopPropagation(),w($e)},ie=d.useCallback(function(fe){var ve=fe.type,$e=fe.disabled,Ce=fe.onClick,be=fe.icon;return d.createElement("div",{key:ve,className:Ee(Y,"".concat(a,"-operations-operation-").concat(ve),ne({},"".concat(a,"-operations-operation-disabled"),!!$e)),onClick:Ce},be)},[Y,a]),Z=c?ie({icon:L,onClick:function(ve){return ee(ve,-1)},type:"prev",disabled:f===0}):void 0,X=c?ie({icon:V,onClick:function(ve){return ee(ve,1)},type:"next",disabled:f===h-1}):void 0,ae=ie({icon:U,onClick:$,type:"flipY"}),oe=ie({icon:B,onClick:E,type:"flipX"}),le=ie({icon:I,onClick:_,type:"rotateLeft"}),ce=ie({icon:A,onClick:S,type:"rotateRight"}),pe=ie({icon:F,onClick:k,type:"zoomOut",disabled:m<=g}),me=ie({icon:N,onClick:C,type:"zoomIn",disabled:m===v}),re=d.createElement("div",{className:"".concat(a,"-operations")},ae,oe,le,ce,pe,me);return d.createElement(Ca,{visible:n,motionName:r},function(fe){var ve=fe.className,$e=fe.style;return d.createElement(C4,{open:!0,getContainer:i??document.body},d.createElement("div",{className:Ee("".concat(a,"-operations-wrapper"),ve,o),style:q(q({},$e),{},{zIndex:R})},y===null?null:d.createElement("button",{className:"".concat(a,"-close"),onClick:b},y||K),c&&d.createElement(d.Fragment,null,d.createElement("div",{className:Ee("".concat(a,"-switch-left"),ne({},"".concat(a,"-switch-left-disabled"),f===0)),onClick:function(be){return ee(be,-1)}},L),d.createElement("div",{className:Ee("".concat(a,"-switch-right"),ne({},"".concat(a,"-switch-right-disabled"),f===h-1)),onClick:function(be){return ee(be,1)}},V)),d.createElement("div",{className:"".concat(a,"-footer")},u&&d.createElement("div",{className:"".concat(a,"-progress")},l?l(f+1,h):"".concat(f+1," / ").concat(h)),P?P(re,q(q({icons:{prevIcon:Z,nextIcon:X,flipYIcon:ae,flipXIcon:oe,rotateLeftIcon:le,rotateRightIcon:ce,zoomOutIcon:pe,zoomInIcon:me},actions:{onActive:w,onFlipY:$,onFlipX:E,onRotateLeft:_,onRotateRight:S,onZoomOut:k,onZoomIn:C,onReset:M,onClose:b},transform:p},j?{current:f,total:h}:{}),{},{image:O})):re)))})},MS={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function XJe(e,t,n,r){var i=d.useRef(null),a=d.useRef([]),o=d.useState(MS),s=Te(o,2),l=s[0],c=s[1],u=function(m){c(MS),gg(MS,l)||r==null||r({transform:MS,action:m})},f=function(m,g){i.current===null&&(a.current=[],i.current=rr(function(){c(function(v){var y=v;return a.current.forEach(function(w){y=q(q({},y),w)}),i.current=null,r==null||r({transform:y,action:g}),y})})),a.current.push(q(q({},l),m))},p=function(m,g,v,y,w){var b=e.current,C=b.width,k=b.height,S=b.offsetWidth,_=b.offsetHeight,E=b.offsetLeft,$=b.offsetTop,M=m,P=l.scale*m;P>n?(P=n,M=n/l.scale):Pr){if(t>0)return ne({},e,a);if(t<0&&ir)return ne({},e,t<0?a:-a);return{}}function N1e(e,t,n,r){var i=j1e(),a=i.width,o=i.height,s=null;return e<=a&&t<=o?s={x:0,y:0}:(e>a||t>o)&&(s=q(q({},XX("x",n,e,a)),XX("y",r,t,o))),s}var wv=1,ZJe=1;function QJe(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,c=i.x,u=i.y,f=d.useState(!1),p=Te(f,2),h=p[0],m=p[1],g=d.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(k){!t||k.button!==0||(k.preventDefault(),k.stopPropagation(),g.current={diffX:k.pageX-c,diffY:k.pageY-u,transformX:c,transformY:u},m(!0))},y=function(k){n&&h&&a({x:k.pageX-g.current.diffX,y:k.pageY-g.current.diffY},"move")},w=function(){if(n&&h){m(!1);var k=g.current,S=k.transformX,_=k.transformY,E=c!==S&&u!==_;if(!E)return;var $=e.current.offsetWidth*l,M=e.current.offsetHeight*l,P=e.current.getBoundingClientRect(),R=P.left,O=P.top,j=s%180!==0,I=N1e(j?M:$,j?$:M,R,O);I&&a(q({},I),"dragRebound")}},b=function(k){if(!(!n||k.deltaY==0)){var S=Math.abs(k.deltaY/100),_=Math.min(S,ZJe),E=wv+_*r;k.deltaY>0&&(E=wv/E),o(E,"wheel",k.clientX,k.clientY)}};return d.useEffect(function(){var C,k,S,_;if(t){S=bv(window,"mouseup",w,!1),_=bv(window,"mousemove",y,!1);try{window.top!==window.self&&(C=bv(window.top,"mouseup",w,!1),k=bv(window.top,"mousemove",y,!1))}catch{}}return function(){var E,$,M,P;(E=S)===null||E===void 0||E.remove(),($=_)===null||$===void 0||$.remove(),(M=C)===null||M===void 0||M.remove(),(P=k)===null||P===void 0||P.remove()}},[n,h,c,u,s,t]),{isMoving:h,onMouseDown:v,onMouseMove:y,onMouseUp:w,onWheel:b}}function JJe(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function A1e(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=d.useState(n?"loading":"normal"),a=Te(i,2),o=a[0],s=a[1],l=d.useRef(!1),c=o==="error";d.useEffect(function(){var h=!0;return JJe(t).then(function(m){!m&&h&&s("error")}),function(){h=!1}},[t]),d.useEffect(function(){n&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},f=function(m){l.current=!1,o==="loading"&&m!==null&&m!==void 0&&m.complete&&(m.naturalWidth||m.naturalHeight)&&(l.current=!0,u())},p=c&&r?{src:r}:{onLoad:u,src:t};return[f,p,o]}function E6(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function eet(e,t,n,r){var i=E6(e,n),a=E6(t,r);if(i===0&&a===0)return[e.x,e.y];var o=i/(i+a),s=e.x+o*(t.x-e.x),l=e.y+o*(t.y-e.y);return[s,l]}function tet(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,c=i.x,u=i.y,f=d.useState(!1),p=Te(f,2),h=p[0],m=p[1],g=d.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),v=function(k){g.current=q(q({},g.current),k)},y=function(k){if(t){k.stopPropagation(),m(!0);var S=k.touches,_=S===void 0?[]:S;_.length>1?v({point1:{x:_[0].clientX,y:_[0].clientY},point2:{x:_[1].clientX,y:_[1].clientY},eventType:"touchZoom"}):v({point1:{x:_[0].clientX-c,y:_[0].clientY-u},eventType:"move"})}},w=function(k){var S=k.touches,_=S===void 0?[]:S,E=g.current,$=E.point1,M=E.point2,P=E.eventType;if(_.length>1&&P==="touchZoom"){var R={x:_[0].clientX,y:_[0].clientY},O={x:_[1].clientX,y:_[1].clientY},j=eet($,M,R,O),I=Te(j,2),A=I[0],N=I[1],F=E6(R,O)/E6($,M);o(F,"touchZoom",A,N,!0),v({point1:R,point2:O,eventType:"touchZoom"})}else P==="move"&&(a({x:_[0].clientX-$.x,y:_[0].clientY-$.y},"move"),v({eventType:"move"}))},b=function(){if(n){if(h&&m(!1),v({eventType:"none"}),r>l)return a({x:0,y:0,scale:r},"touchZoom");var k=e.current.offsetWidth*l,S=e.current.offsetHeight*l,_=e.current.getBoundingClientRect(),E=_.left,$=_.top,M=s%180!==0,P=N1e(M?S:k,M?k:S,E,$);P&&a(q({},P),"dragRebound")}};return d.useEffect(function(){var C;return n&&t&&(C=bv(window,"touchmove",function(k){return k.preventDefault()},{passive:!1})),function(){var k;(k=C)===null||k===void 0||k.remove()}},[n,t]),{isTouching:h,onTouchStart:y,onTouchMove:w,onTouchEnd:b}}var net=["fallback","src","imgRef"],ret=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],iet=function(t){var n=t.fallback,r=t.src,i=t.imgRef,a=Ht(t,net),o=A1e({src:r,fallback:n}),s=Te(o,2),l=s[0],c=s[1];return te.createElement("img",tt({ref:function(f){i.current=f,l(f)}},a,c))},D1e=function(t){var n=t.prefixCls,r=t.src,i=t.alt,a=t.imageInfo,o=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,f=t.icons,p=f===void 0?{}:f,h=t.rootClassName,m=t.closeIcon,g=t.getContainer,v=t.current,y=v===void 0?0:v,w=t.count,b=w===void 0?1:w,C=t.countRender,k=t.scaleStep,S=k===void 0?.5:k,_=t.minScale,E=_===void 0?1:_,$=t.maxScale,M=$===void 0?50:$,P=t.transitionName,R=P===void 0?"zoom":P,O=t.maskTransitionName,j=O===void 0?"fade":O,I=t.imageRender,A=t.imgCommonProps,N=t.toolbarRender,F=t.onTransform,K=t.onChange,L=Ht(t,ret),V=d.useRef(),B=d.useContext(R4),U=B&&b>1,Y=B&&b>=1,ee=d.useState(!0),ie=Te(ee,2),Z=ie[0],X=ie[1],ae=XJe(V,E,M,F),oe=ae.transform,le=ae.resetTransform,ce=ae.updateTransform,pe=ae.dispatchZoomChange,me=QJe(V,l,u,S,oe,ce,pe),re=me.isMoving,fe=me.onMouseDown,ve=me.onWheel,$e=tet(V,l,u,E,oe,ce,pe),Ce=$e.isTouching,be=$e.onTouchStart,Se=$e.onTouchMove,we=$e.onTouchEnd,se=oe.rotate,ye=oe.scale,Oe=Ee(ne({},"".concat(n,"-moving"),re));d.useEffect(function(){Z||X(!0)},[Z]);var z=function(){le("close")},H=function(){pe(wv+S,"zoomIn")},G=function(){pe(wv/(wv+S),"zoomOut")},de=function(){ce({rotate:se+90},"rotateRight")},xe=function(){ce({rotate:se-90},"rotateLeft")},he=function(){ce({flipX:!oe.flipX},"flipX")},Ue=function(){ce({flipY:!oe.flipY},"flipY")},We=function(){le("reset")},ge=function(qe){var Et=y+qe;!Number.isInteger(Et)||Et<0||Et>b-1||(X(!1),le(qe<0?"prev":"next"),K==null||K(Et,y))},ze=function(qe){!u||!U||(qe.keyCode===mt.LEFT?ge(-1):qe.keyCode===mt.RIGHT&&ge(1))},Ve=function(qe){u&&(ye!==1?ce({x:0,y:0,scale:1},"doubleClick"):pe(wv+S,"doubleClick",qe.clientX,qe.clientY))};d.useEffect(function(){var Ke=bv(window,"keydown",ze,!1);return function(){Ke.remove()}},[u,U,y]);var Be=te.createElement(iet,tt({},A,{width:t.width,height:t.height,imgRef:V,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(oe.x,"px, ").concat(oe.y,"px, 0) scale3d(").concat(oe.flipX?"-":"").concat(ye,", ").concat(oe.flipY?"-":"").concat(ye,", 1) rotate(").concat(se,"deg)"),transitionDuration:(!Z||Ce)&&"0s"},fallback:o,src:r,onWheel:ve,onMouseDown:fe,onDoubleClick:Ve,onTouchStart:be,onTouchMove:Se,onTouchEnd:we,onTouchCancel:we})),Xe=q({url:r,alt:i},a);return te.createElement(te.Fragment,null,te.createElement(aB,tt({transitionName:R,maskTransitionName:j,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:Oe},rootClassName:h,getContainer:g},L,{afterClose:z}),te.createElement("div",{className:"".concat(n,"-img-wrapper")},I?I(Be,q({transform:oe,image:Xe},B?{current:y}:{})):Be)),te.createElement(YJe,{visible:u,transform:oe,maskTransitionName:j,closeIcon:m,getContainer:g,prefixCls:n,rootClassName:h,icons:p,countRender:C,showSwitch:U,showProgress:Y,current:y,count:b,scale:ye,minScale:E,maxScale:M,toolbarRender:N,onActive:ge,onZoomIn:H,onZoomOut:G,onRotateRight:de,onRotateLeft:xe,onFlipX:he,onFlipY:Ue,onClose:c,onReset:We,zIndex:L.zIndex!==void 0?L.zIndex+1:void 0,image:Xe}))},Xj=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function aet(e){var t=d.useState({}),n=Te(t,2),r=n[0],i=n[1],a=d.useCallback(function(s,l){return i(function(c){return q(q({},c),{},ne({},s,l))}),function(){i(function(c){var u=q({},c);return delete u[s],u})}},[]),o=d.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(lt(Xj)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(r).reduce(function(s,l){var c=r[l],u=c.canPreview,f=c.data;return u&&s.push({data:f,id:l}),s},[])},[e,r]);return[o,a,!!e]}var oet=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],set=["src"],cet=function(t){var n,r=t.previewPrefixCls,i=r===void 0?"rc-image-preview":r,a=t.children,o=t.icons,s=o===void 0?{}:o,l=t.items,c=t.preview,u=t.fallback,f=Kt(c)==="object"?c:{},p=f.visible,h=f.onVisibleChange,m=f.getContainer,g=f.current,v=f.movable,y=f.minScale,w=f.maxScale,b=f.countRender,C=f.closeIcon,k=f.onChange,S=f.onTransform,_=f.toolbarRender,E=f.imageRender,$=Ht(f,oet),M=aet(l),P=Te(M,3),R=P[0],O=P[1],j=P[2],I=jn(0,{value:g}),A=Te(I,2),N=A[0],F=A[1],K=d.useState(!1),L=Te(K,2),V=L[0],B=L[1],U=((n=R[N])===null||n===void 0?void 0:n.data)||{},Y=U.src,ee=Ht(U,set),ie=jn(!!p,{value:p,onChange:function(Ce,be){h==null||h(Ce,be,N)}}),Z=Te(ie,2),X=Z[0],ae=Z[1],oe=d.useState(null),le=Te(oe,2),ce=le[0],pe=le[1],me=d.useCallback(function($e,Ce,be,Se){var we=j?R.findIndex(function(se){return se.data.src===Ce}):R.findIndex(function(se){return se.id===$e});F(we<0?0:we),ae(!0),pe({x:be,y:Se}),B(!0)},[R,j]);d.useEffect(function(){X?V||F(0):B(!1)},[X]);var re=function(Ce,be){F(Ce),k==null||k(Ce,be)},fe=function(){ae(!1),pe(null)},ve=d.useMemo(function(){return{register:O,onPreview:me}},[O,me]);return d.createElement(R4.Provider,{value:ve},a,d.createElement(D1e,tt({"aria-hidden":!X,movable:v,visible:X,prefixCls:i,closeIcon:C,onClose:fe,mousePosition:ce,imgCommonProps:ee,src:Y,fallback:u,icons:s,minScale:y,maxScale:w,getContainer:m,current:N,count:R.length,countRender:b,onTransform:S,toolbarRender:_,imageRender:E,onChange:re},$)))},ZX=0;function uet(e,t){var n=d.useState(function(){return ZX+=1,String(ZX)}),r=Te(n,1),i=r[0],a=d.useContext(R4),o={data:t,canPreview:e};return d.useEffect(function(){if(a)return a.register(i,o)},[]),d.useEffect(function(){a&&a.register(i,o)},[e,t]),i}var det=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],fet=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],JB=function(t){var n=t.src,r=t.alt,i=t.onPreviewClose,a=t.prefixCls,o=a===void 0?"rc-image":a,s=t.previewPrefixCls,l=s===void 0?"".concat(o,"-preview"):s,c=t.placeholder,u=t.fallback,f=t.width,p=t.height,h=t.style,m=t.preview,g=m===void 0?!0:m,v=t.className,y=t.onClick,w=t.onError,b=t.wrapperClassName,C=t.wrapperStyle,k=t.rootClassName,S=Ht(t,det),_=c&&c!==!0,E=Kt(g)==="object"?g:{},$=E.src,M=E.visible,P=M===void 0?void 0:M,R=E.onVisibleChange,O=R===void 0?i:R,j=E.getContainer,I=j===void 0?void 0:j,A=E.mask,N=E.maskClassName,F=E.movable,K=E.icons,L=E.scaleStep,V=E.minScale,B=E.maxScale,U=E.imageRender,Y=E.toolbarRender,ee=Ht(E,fet),ie=$??n,Z=jn(!!P,{value:P,onChange:O}),X=Te(Z,2),ae=X[0],oe=X[1],le=A1e({src:n,isCustomPlaceholder:_,fallback:u}),ce=Te(le,3),pe=ce[0],me=ce[1],re=ce[2],fe=d.useState(null),ve=Te(fe,2),$e=ve[0],Ce=ve[1],be=d.useContext(R4),Se=!!g,we=function(){oe(!1),Ce(null)},se=Ee(o,b,k,ne({},"".concat(o,"-error"),re==="error")),ye=d.useMemo(function(){var G={};return Xj.forEach(function(de){t[de]!==void 0&&(G[de]=t[de])}),G},Xj.map(function(G){return t[G]})),Oe=d.useMemo(function(){return q(q({},ye),{},{src:ie})},[ie,ye]),z=uet(Se,Oe),H=function(de){var xe=GJe(de.target),he=xe.left,Ue=xe.top;be?be.onPreview(z,ie,he,Ue):(Ce({x:he,y:Ue}),oe(!0)),y==null||y(de)};return d.createElement(d.Fragment,null,d.createElement("div",tt({},S,{className:se,onClick:Se?H:y,style:q({width:f,height:p},C)}),d.createElement("img",tt({},ye,{className:Ee("".concat(o,"-img"),ne({},"".concat(o,"-img-placeholder"),c===!0),v),style:q({height:p},h),ref:pe},me,{width:f,height:p,onError:w})),re==="loading"&&d.createElement("div",{"aria-hidden":"true",className:"".concat(o,"-placeholder")},c),A&&Se&&d.createElement("div",{className:Ee("".concat(o,"-mask"),N),style:{display:(h==null?void 0:h.display)==="none"?"none":void 0}},A)),!be&&Se&&d.createElement(D1e,tt({"aria-hidden":!ae,visible:ae,prefixCls:l,onClose:we,mousePosition:$e,src:ie,alt:r,imageInfo:{width:f,height:p},fallback:u,getContainer:I,icons:K,movable:F,scaleStep:L,minScale:V,maxScale:B,rootClassName:k,imageRender:U,imgCommonProps:ye,toolbarRender:Y},ee)))};JB.PreviewGroup=cet;var pet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},het=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:pet}))},met=d.forwardRef(het),get={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},vet=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:get}))},yet=d.forwardRef(vet),bet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},wet=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:bet}))},QX=d.forwardRef(wet),xet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},Cet=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:xet}))},_et=d.forwardRef(Cet),ket={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Eet=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:ket}))},$et=d.forwardRef(Eet);const Zj=e=>({position:e||"absolute",inset:0}),Met=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:a,colorTextLightSolid:o}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:o,background:new ur("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},ao),{padding:`0 ${Me(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},Tet=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:a,paddingLG:o,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:f}=e,p=new ur(n).setA(.1),h=p.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:a},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:f,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Me(o)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},Pet=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:a,motionDurationSlow:o}=e,s=new ur(t).setA(.1),l=s.clone().setA(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(a).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},Oet=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},Zj()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Zj()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[Tet(e),Pet(e)]}]},Ret=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},Met(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Zj())}}},Iet=e=>{const{previewCls:t}=e;return{[`${t}-root`]:_y(e,"zoom"),"&":JL(e,!0)}},jet=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new ur(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new ur(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new ur(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),F1e=Jn("Image",e=>{const t=`${e.componentCls}-preview`,n=Hn(e,{previewCls:t,modalMaskBg:new ur("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Ret(n),Oet(n),Xpe(Hn(n,{componentCls:t})),Iet(n)]},jet);var Net=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{previewPrefixCls:t,preview:n}=e,r=Net(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=d.useContext(Xt),a=i("image",t),o=`${a}-preview`,s=i(),l=qr(a),[c,u,f]=F1e(a,l),[p]=$c("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=d.useMemo(()=>{var m;if(n===!1)return n;const g=typeof n=="object"?n:{},v=Ee(u,f,l,(m=g.rootClassName)!==null&&m!==void 0?m:"");return Object.assign(Object.assign({},g),{transitionName:oo(s,"zoom",g.transitionName),maskTransitionName:oo(s,"fade",g.maskTransitionName),rootClassName:v,zIndex:p})},[n]);return c(d.createElement(JB.PreviewGroup,Object.assign({preview:h,previewPrefixCls:o,icons:L1e},r)))};var JX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,preview:r,className:i,rootClassName:a,style:o}=e,s=JX(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=Us,getPopupContainer:u,image:f}=d.useContext(Xt),p=l("image",n),h=l(),m=c.Image||Us.Image,g=qr(p),[v,y,w]=F1e(p,g),b=Ee(a,y,w,g),C=Ee(i,y,f==null?void 0:f.className),[k]=$c("ImagePreview",typeof r=="object"?r.zIndex:void 0),S=d.useMemo(()=>{var E;if(r===!1)return r;const $=typeof r=="object"?r:{},{getContainer:M,closeIcon:P,rootClassName:R}=$,O=JX($,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:d.createElement("div",{className:`${p}-mask-info`},d.createElement(V8,null),m==null?void 0:m.preview),icons:L1e},O),{rootClassName:Ee(b,R),getContainer:M??u,transitionName:oo(h,"zoom",$.transitionName),maskTransitionName:oo(h,"fade",$.maskTransitionName),zIndex:k,closeIcon:P??((E=f==null?void 0:f.preview)===null||E===void 0?void 0:E.closeIcon)})},[r,m,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),_=Object.assign(Object.assign({},f==null?void 0:f.style),o);return v(d.createElement(JB,Object.assign({prefixCls:p,preview:S,rootClassName:b,className:C,style:_},s)))};B1e.PreviewGroup=Aet;function Det(e,t,n){return typeof n=="boolean"?n:e.length?!0:Xi(t).some(i=>i.type===ume)}var z1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);id.forwardRef((o,s)=>d.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},o)))}const ez=d.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,o=z1e(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=d.useContext(Xt),l=s("layout",n),[c,u,f]=cme(l),p=r?`${l}-${r}`:l;return c(d.createElement(a,Object.assign({className:Ee(n||p,i,u,f),ref:t},o)))}),Fet=d.forwardRef((e,t)=>{const{direction:n}=d.useContext(Xt),[r,i]=d.useState([]),{prefixCls:a,className:o,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,p=z1e(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=$r(p,["suffixCls"]),{getPrefixCls:m,layout:g}=d.useContext(Xt),v=m("layout",a),y=Det(r,l,c),[w,b,C]=cme(v),k=Ee(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,o,s,b,C),S=d.useMemo(()=>({siderHook:{addSider:_=>{i(E=>[].concat(lt(E),[_]))},removeSider:_=>{i(E=>E.filter($=>$!==_))}}}),[]);return w(d.createElement(ome.Provider,{value:S},d.createElement(u,Object.assign({ref:t,className:k,style:Object.assign(Object.assign({},g==null?void 0:g.style),f)},h),l)))}),Let=q8({tagName:"div",displayName:"Layout"})(Fet),Sg=q8({suffixCls:"header",tagName:"header",displayName:"Header"})(ez),Bet=q8({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ez),zet=q8({suffixCls:"content",tagName:"main",displayName:"Content"})(ez),Qn=Let;Qn.Header=Sg;Qn.Footer=Bet;Qn.Content=zet;Qn.Sider=ume;Qn._InternalSiderContext=E8;const Het=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const i=n[r];i!==void 0&&(e[r]=i)})}return e};var Uet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Wet=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Uet}))},eZ=d.forwardRef(Wet),Vet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},qet=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Vet}))},tZ=d.forwardRef(qet),H1e={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},Ket=[10,20,50,100],Get=function(t){var n=t.pageSizeOptions,r=n===void 0?Ket:n,i=t.locale,a=t.changeSize,o=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.disabled,f=t.buildOptionText,p=t.showSizeChanger,h=t.sizeChangerRender,m=te.useState(""),g=Te(m,2),v=g[0],y=g[1],w=function(){return!v||Number.isNaN(v)?void 0:Number(v)},b=typeof f=="function"?f:function(R){return"".concat(R," ").concat(i.items_per_page)},C=function(O){y(O.target.value)},k=function(O){s||v===""||(y(""),!(O.relatedTarget&&(O.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||O.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(w())))},S=function(O){v!==""&&(O.keyCode===mt.ENTER||O.type==="click")&&(y(""),l==null||l(w()))},_=function(){return r.some(function(O){return O.toString()===o.toString()})?r:r.concat([o]).sort(function(O,j){var I=Number.isNaN(Number(O))?0:Number(O),A=Number.isNaN(Number(j))?0:Number(j);return I-A})},E="".concat(c,"-options");if(!p&&!l)return null;var $=null,M=null,P=null;return p&&h&&($=h({disabled:u,size:o,onSizeChange:function(O){a==null||a(Number(O))},"aria-label":i.page_size,className:"".concat(E,"-size-changer"),options:_().map(function(R){return{label:b(R),value:R}})})),l&&(s&&(P=typeof s=="boolean"?te.createElement("button",{type:"button",onClick:S,onKeyUp:S,disabled:u,className:"".concat(E,"-quick-jumper-button")},i.jump_to_confirm):te.createElement("span",{onClick:S,onKeyUp:S},s)),M=te.createElement("div",{className:"".concat(E,"-quick-jumper")},i.jump_to,te.createElement("input",{disabled:u,type:"text",value:v,onChange:C,onKeyUp:S,onBlur:k,"aria-label":i.page}),i.page,P)),te.createElement("li",{className:E},$,M)},Lb=function(t){var n,r=t.rootPrefixCls,i=t.page,a=t.active,o=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,f="".concat(r,"-item"),p=Ee(f,"".concat(f,"-").concat(i),(n={},ne(n,"".concat(f,"-active"),a),ne(n,"".concat(f,"-disabled"),!i),n),o),h=function(){l(i)},m=function(y){c(y,l,i)},g=u(i,"page",te.createElement("a",{rel:"nofollow"},i));return g?te.createElement("li",{title:s?String(i):null,className:p,onClick:h,onKeyDown:m,tabIndex:0},g):null},Yet=function(t,n,r){return r};function nZ(){}function rZ(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Xh(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var Xet=function(t){var n,r=t.prefixCls,i=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,s=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,f=t.total,p=f===void 0?0:f,h=t.pageSize,m=t.defaultPageSize,g=m===void 0?10:m,v=t.onChange,y=v===void 0?nZ:v,w=t.hideOnSinglePage,b=t.align,C=t.showPrevNextJumpers,k=C===void 0?!0:C,S=t.showQuickJumper,_=t.showLessItems,E=t.showTitle,$=E===void 0?!0:E,M=t.onShowSizeChange,P=M===void 0?nZ:M,R=t.locale,O=R===void 0?H1e:R,j=t.style,I=t.totalBoundaryShowSizeChanger,A=I===void 0?50:I,N=t.disabled,F=t.simple,K=t.showTotal,L=t.showSizeChanger,V=L===void 0?p>A:L,B=t.sizeChangerRender,U=t.pageSizeOptions,Y=t.itemRender,ee=Y===void 0?Yet:Y,ie=t.jumpPrevIcon,Z=t.jumpNextIcon,X=t.prevIcon,ae=t.nextIcon,oe=te.useRef(null),le=jn(10,{value:h,defaultValue:g}),ce=Te(le,2),pe=ce[0],me=ce[1],re=jn(1,{value:l,defaultValue:u,postState:function(J){return Math.max(1,Math.min(J,Xh(void 0,pe,p)))}}),fe=Te(re,2),ve=fe[0],$e=fe[1],Ce=te.useState(ve),be=Te(Ce,2),Se=be[0],we=be[1];d.useEffect(function(){we(ve)},[ve]);var se=Math.max(1,ve-(_?3:5)),ye=Math.min(Xh(void 0,pe,p),ve+(_?3:5));function Oe(D,J){var ke=D||te.createElement("button",{type:"button","aria-label":J,className:"".concat(i,"-item-link")});return typeof D=="function"&&(ke=te.createElement(D,q({},t))),ke}function z(D){var J=D.target.value,ke=Xh(void 0,pe,p),Ie;return J===""?Ie=J:Number.isNaN(Number(J))?Ie=Se:J>=ke?Ie=ke:Ie=Number(J),Ie}function H(D){return rZ(D)&&D!==ve&&rZ(p)&&p>0}var G=p>pe?S:!1;function de(D){(D.keyCode===mt.UP||D.keyCode===mt.DOWN)&&D.preventDefault()}function xe(D){var J=z(D);switch(J!==Se&&we(J),D.keyCode){case mt.ENTER:We(J);break;case mt.UP:We(J-1);break;case mt.DOWN:We(J+1);break}}function he(D){We(z(D))}function Ue(D){var J=Xh(D,pe,p),ke=ve>J&&J!==0?J:ve;me(D),we(ke),P==null||P(ve,D),$e(ke),y==null||y(ke,D)}function We(D){if(H(D)&&!N){var J=Xh(void 0,pe,p),ke=D;return D>J?ke=J:D<1&&(ke=1),ke!==Se&&we(ke),$e(ke),y==null||y(ke,pe),ke}return ve}var ge=ve>1,ze=ve2?ke-2:0),it=2;itp?p:ve*pe])),He=null,Le=Xh(void 0,pe,p);if(w&&p<=pe)return null;var Qe=[],pt={rootPrefixCls:i,onClick:We,onKeyPress:qe,showTitle:$,itemRender:ee,page:-1},xt=ve-1>0?ve-1:0,Nt=ve+1=kt*2&&ve!==3&&(Qe[0]=te.cloneElement(Qe[0],{className:Ee("".concat(i,"-item-after-jump-prev"),Qe[0].props.className)}),Qe.unshift(Bt)),Le-ve>=kt*2&&ve!==Le-2){var It=Qe[Qe.length-1];Qe[Qe.length-1]=te.cloneElement(It,{className:Ee("".concat(i,"-item-before-jump-next"),It.props.className)}),Qe.push(He)}Ye!==1&&Qe.unshift(te.createElement(Lb,tt({},pt,{key:1,page:1}))),ot!==Le&&Qe.push(te.createElement(Lb,tt({},pt,{key:Le,page:Le})))}var rt=nt(xt);if(rt){var $t=!ge||!Le;rt=te.createElement("li",{title:$?O.prev_page:null,onClick:Ve,tabIndex:$t?null:0,onKeyDown:Et,className:Ee("".concat(i,"-prev"),ne({},"".concat(i,"-disabled"),$t)),"aria-disabled":$t},rt)}var Mt=jt(Nt);if(Mt){var dn,pn;F?(dn=!ze,pn=ge?0:null):(dn=!ze||!Le,pn=dn?null:0),Mt=te.createElement("li",{title:$?O.next_page:null,onClick:Be,tabIndex:pn,onKeyDown:ut,className:Ee("".concat(i,"-next"),ne({},"".concat(i,"-disabled"),dn)),"aria-disabled":dn},Mt)}var T=Ee(i,s,(n={},ne(n,"".concat(i,"-start"),b==="start"),ne(n,"".concat(i,"-center"),b==="center"),ne(n,"".concat(i,"-end"),b==="end"),ne(n,"".concat(i,"-simple"),F),ne(n,"".concat(i,"-disabled"),N),n));return te.createElement("ul",tt({className:T,style:j,ref:oe},Ut),Ne,rt,F?Ct:Qe,Mt,te.createElement(Get,{locale:O,rootPrefixCls:i,disabled:N,selectPrefixCls:o,changeSize:Ue,pageSize:pe,pageSizeOptions:U,quickGo:G?We:null,goButton:st,showSizeChanger:V,sizeChangerRender:B}))};const Zet=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Qet=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Me(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Me(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Me(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM),input:Object.assign(Object.assign({},FB(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Zet=e=>{const{componentCls:t}=e;return{[` + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Me(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM),input:Object.assign(Object.assign({},BB(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Jet=e=>{const{componentCls:t}=e;return{[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next - `]:{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${Me(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Me(e.inputOutlineOffset)} 0 ${Me(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Qet=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + `]:{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${Me(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Me(e.inputOutlineOffset)} 0 ${Me(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},ett=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next @@ -434,46 +434,46 @@ html body { ${t}-next, ${t}-jump-prev, ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Me(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Me(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Me(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},wg(e)),DB(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},$4(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Jet=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Me(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Me(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Me(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},ett=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Me(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Jet(e)),Qet(e)),Zet(e)),Xet(e)),Yet(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},ttt=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Vs(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},gc(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},gc(e))}}}},L1e=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Ry(e)),B1e=e=>Hn(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Iy(e)),ntt=Jn("Pagination",e=>{const t=B1e(e);return[ett(t),ttt(t)]},L1e),rtt=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},itt=xy(["Pagination","bordered"],e=>{const t=B1e(e);return[rtt(t)]},L1e);function tZ(e){return d.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var att=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:f,pageSizeOptions:p}=e,h=att(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:m}=k4(c),[,g]=$a(),{getPrefixCls:v,direction:y,pagination:b={}}=d.useContext(Zt),w=v("pagination",n),[_,k,S]=ntt(w),C=Hi(s),E=C==="small"||!!(m&&!C&&c),[$]=Xa("Pagination",ufe),M=Object.assign(Object.assign({},$),l),[P,I]=tZ(u),[O,A]=tZ(b.showSizeChanger),R=P??O,j=I??A,N=f||Yf,D=d.useMemo(()=>p?p.map(Z=>Number(Z)):void 0,[p]),V=Z=>{var ee;const{disabled:ie,size:Y,onSizeChange:X,"aria-label":ae,className:oe,options:le}=Z,{className:ce,onChange:pe}=j||{},me=(ee=le.find(re=>String(re.value)===String(Y)))===null||ee===void 0?void 0:ee.value;return d.createElement(N,Object.assign({disabled:ie,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:re=>re.parentNode,"aria-label":ae,options:le},j,{value:me,onChange:(re,fe)=>{X==null||X(re),pe==null||pe(re,fe)},size:E?"small":"middle",className:Ee(oe,ce)}))},F=d.useMemo(()=>{const Z=d.createElement("span",{className:`${w}-item-ellipsis`},"•••"),ee=d.createElement("button",{className:`${w}-item-link`,type:"button",tabIndex:-1},y==="rtl"?d.createElement(vc,null):d.createElement(Nf,null)),ie=d.createElement("button",{className:`${w}-item-link`,type:"button",tabIndex:-1},y==="rtl"?d.createElement(Nf,null):d.createElement(vc,null)),Y=d.createElement("a",{className:`${w}-item-link`},d.createElement("div",{className:`${w}-item-container`},y==="rtl"?d.createElement(QX,{className:`${w}-item-link-icon`}):d.createElement(ZX,{className:`${w}-item-link-icon`}),Z)),X=d.createElement("a",{className:`${w}-item-link`},d.createElement("div",{className:`${w}-item-container`},y==="rtl"?d.createElement(ZX,{className:`${w}-item-link-icon`}):d.createElement(QX,{className:`${w}-item-link-icon`}),Z));return{prevIcon:ee,nextIcon:ie,jumpPrevIcon:Y,jumpNextIcon:X}},[y,w]),K=v("select",r),B=Ee({[`${w}-${t}`]:!!t,[`${w}-mini`]:E,[`${w}-rtl`]:y==="rtl",[`${w}-bordered`]:g.wireframe},b==null?void 0:b.className,i,a,k,S),U=Object.assign(Object.assign({},b==null?void 0:b.style),o);return _(d.createElement(d.Fragment,null,g.wireframe&&d.createElement(itt,{prefixCls:w}),d.createElement(Get,Object.assign({},F,h,{style:U,prefixCls:w,selectPrefixCls:K,className:B,locale:M,pageSizeOptions:D,showSizeChanger:R,sizeChangerRender:V}))))},E6=100,z1e=E6/5,H1e=E6/2-z1e/2,tT=H1e*2*Math.PI,nZ=50,rZ=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return d.createElement("circle",{className:Ee(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:H1e,cx:nZ,cy:nZ,strokeWidth:z1e,style:n})},ott=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,a=`${i}-hidden`,[o,s]=d.useState(!1);nr(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!o)return null;const c={strokeDashoffset:`${tT/4}`,strokeDasharray:`${tT*l/100} ${tT*(100-l)/100}`};return d.createElement("span",{className:Ee(i,`${r}-progress`,l<=0&&a)},d.createElement("svg",{viewBox:`0 0 ${E6} ${E6}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},d.createElement(rZ,{dotClassName:r,hasCircleCls:!0}),d.createElement(rZ,{dotClassName:r,style:c})))};function stt(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return d.createElement(d.Fragment,null,d.createElement("span",{className:Ee(i,n>0&&a)},d.createElement("span",{className:Ee(r,`${t}-dot-spin`)},[1,2,3,4].map(o=>d.createElement("i",{className:`${t}-dot-item`,key:o})))),d.createElement(ott,{prefixCls:t,percent:n}))}function ltt(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&d.isValidElement(n)?oa(n,{className:Ee(n.props.className,i),percent:r}):d.createElement(stt,{prefixCls:t,percent:r})}const ctt=new ir("antSpinMove",{to:{opacity:1}}),utt=new ir("antRotate",{to:{transform:"rotate(405deg)"}}),dtt=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:ctt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:utt,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},ftt=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},ptt=Jn("Spin",e=>{const t=Hn(e,{spinDotDefault:e.colorTextDescription});return[dtt(t)]},ftt),htt=200,iZ=[[30,.05],[70,.03],[96,.01]];function mtt(e,t){const[n,r]=d.useState(0),i=d.useRef(null),a=t==="auto";return d.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(o=>{const s=100-o;for(let l=0;l{clearInterval(i.current)}),[a,e]),a?n:t}var gtt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:a,rootClassName:o,size:s="default",tip:l,wrapperClassName:c,style:u,children:f,fullscreen:p=!1,indicator:h,percent:m}=e,g=gtt(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:y,spin:b}=d.useContext(Zt),w=v("spin",n),[_,k,S]=ptt(w),[C,E]=d.useState(()=>r&&!vtt(r,i)),$=mtt(C,m);d.useEffect(()=>{if(r){const j=XGe(i,()=>{E(!0)});return j(),()=>{var N;(N=j==null?void 0:j.cancel)===null||N===void 0||N.call(j)}}E(!1)},[i,r]);const M=d.useMemo(()=>typeof f<"u"&&!p,[f,p]),P=Ee(w,b==null?void 0:b.className,{[`${w}-sm`]:s==="small",[`${w}-lg`]:s==="large",[`${w}-spinning`]:C,[`${w}-show-text`]:!!l,[`${w}-rtl`]:y==="rtl"},a,!p&&o,k,S),I=Ee(`${w}-container`,{[`${w}-blur`]:C}),O=(t=h??(b==null?void 0:b.indicator))!==null&&t!==void 0?t:U1e,A=Object.assign(Object.assign({},b==null?void 0:b.style),u),R=d.createElement("div",Object.assign({},g,{style:A,className:P,"aria-live":"polite","aria-busy":C}),d.createElement(ltt,{prefixCls:w,indicator:O,percent:$}),l&&(M||p)?d.createElement("div",{className:`${w}-text`},l):null);return _(M?d.createElement("div",Object.assign({},g,{className:Ee(`${w}-nested-loading`,c,k,S)}),C&&d.createElement("div",{key:"loading"},R),d.createElement("div",{className:I,key:"container"},f)):p?d.createElement("div",{className:Ee(`${w}-fullscreen`,{[`${w}-fullscreen-show`]:C},o,k,S)},R):R)};Qo.setDefaultIndicator=e=>{U1e=e};const JB=te.createContext({});JB.Consumer;var W1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,o=W1e(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=d.useContext(Zt),l=s("list",t),c=Ee(`${l}-item-meta`,n),u=te.createElement("div",{className:`${l}-item-meta-content`},i&&te.createElement("h4",{className:`${l}-item-meta-title`},i),a&&te.createElement("div",{className:`${l}-item-meta-description`},a));return te.createElement("div",Object.assign({},o,{className:c}),r&&te.createElement("div",{className:`${l}-item-meta-avatar`},r),(i||a)&&u)},btt=te.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:a,styles:o,className:s,classNames:l,colStyle:c}=e,u=W1e(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:f,itemLayout:p}=d.useContext(JB),{getPrefixCls:h,list:m}=d.useContext(Zt),g=C=>{var E,$;return Ee(($=(E=m==null?void 0:m.item)===null||E===void 0?void 0:E.classNames)===null||$===void 0?void 0:$[C],l==null?void 0:l[C])},v=C=>{var E,$;return Object.assign(Object.assign({},($=(E=m==null?void 0:m.item)===null||E===void 0?void 0:E.styles)===null||$===void 0?void 0:$[C]),o==null?void 0:o[C])},y=()=>{let C=!1;return d.Children.forEach(r,E=>{typeof E=="string"&&(C=!0)}),C&&d.Children.count(r)>1},b=()=>p==="vertical"?!!a:!y(),w=h("list",n),_=i&&i.length>0&&te.createElement("ul",{className:Ee(`${w}-item-action`,g("actions")),key:"actions",style:v("actions")},i.map((C,E)=>te.createElement("li",{key:`${w}-item-action-${E}`},C,E!==i.length-1&&te.createElement("em",{className:`${w}-item-action-split`})))),k=f?"div":"li",S=te.createElement(k,Object.assign({},u,f?{}:{ref:t},{className:Ee(`${w}-item`,{[`${w}-item-no-flex`]:!b()},s)}),p==="vertical"&&a?[te.createElement("div",{className:`${w}-item-main`,key:"content"},r,_),te.createElement("div",{className:Ee(`${w}-item-extra`,g("extra")),key:"extra",style:v("extra")},a)]:[r,_,oa(a,{key:"extra"})]);return f?te.createElement(j0,{ref:t,flex:1,style:c},S):S}),V1e=btt;V1e.Meta=ytt;const wtt=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:o,marginLG:s,borderRadiusLG:l}=e;return{[t]:{border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${Me(i)} ${Me(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},xtt=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Me(o)}`}}}}}},Stt=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:o,padding:s,itemPadding:l,colorPrimary:c,itemPaddingSM:u,itemPaddingLG:f,paddingXS:p,margin:h,colorText:m,colorTextDescription:g,motionDurationSlow:v,lineWidth:y,headerBg:b,footerBg:w,emptyTextPadding:_,metaMarginBottom:k,avatarMarginRight:S,titleMarginBottom:C,descriptionFontSize:E}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:w},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:o,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:m,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:S},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${Me(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${v}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:E,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Me(p)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Me(s)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:_,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:h,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:k,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:C,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${Me(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Ctt=e=>({contentWidth:220,itemPadding:`${Me(e.paddingContentVertical)} 0`,itemPaddingSM:`${Me(e.paddingContentVerticalSM)} ${Me(e.paddingContentHorizontal)}`,itemPaddingLG:`${Me(e.paddingContentVerticalLG)} ${Me(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),_tt=Jn("List",e=>{const t=Hn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Stt(t),wtt(t),xtt(t)]},Ctt);var ktt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i(we,se)=>{var ye;E(we),M(se),n&&((ye=n==null?void 0:n[Se])===null||ye===void 0||ye.call(n,we,se))},N=j("onChange"),D=j("onShowSizeChange"),V=(Se,we)=>{if(!w)return null;let se;return typeof b=="function"?se=b(Se):b?se=Se[b]:se=Se.key,se||(se=`list-item-${we}`),d.createElement(d.Fragment,{key:se},w(Se,we))},F=()=>!!(f||n||v),K=P("list",r),[B,U,Z]=_tt(K);let ee=y;typeof ee=="boolean"&&(ee={spinning:ee});const ie=!!(ee!=null&&ee.spinning),Y=Hi(m);let X="";switch(Y){case"large":X="lg";break;case"small":X="sm";break}const ae=Ee(K,{[`${K}-vertical`]:u==="vertical",[`${K}-${X}`]:X,[`${K}-split`]:a,[`${K}-bordered`]:i,[`${K}-loading`]:ie,[`${K}-grid`]:!!p,[`${K}-something-after-last-item`]:F(),[`${K}-rtl`]:O==="rtl"},A==null?void 0:A.className,o,s,U,Z),oe=Bet(R,{total:h.length,current:C,pageSize:$},n||{}),le=Math.ceil(oe.total/oe.pageSize);oe.current>le&&(oe.current=le);const ce=n&&d.createElement("div",{className:Ee(`${K}-pagination`)},d.createElement(O4,Object.assign({align:"end"},oe,{onChange:N,onShowSizeChange:D})));let pe=ct(h);n&&h.length>(oe.current-1)*oe.pageSize&&(pe=ct(h).splice((oe.current-1)*oe.pageSize,oe.pageSize));const me=Object.keys(p||{}).some(Se=>["xs","sm","md","lg","xl","xxl"].includes(Se)),re=k4(me),fe=d.useMemo(()=>{for(let Se=0;Se{if(!p)return;const Se=fe&&p[fe]?p[fe]:p.column;if(Se)return{width:`${100/Se}%`,maxWidth:`${100/Se}%`}},[JSON.stringify(p),fe]);let $e=ie&&d.createElement("div",{style:{minHeight:53}});if(pe.length>0){const Se=pe.map((we,se)=>V(we,se));$e=p?d.createElement(B8,{gutter:p.gutter},d.Children.map(Se,we=>d.createElement("div",{key:we==null?void 0:we.key,style:ve},we))):d.createElement("ul",{className:`${K}-items`},Se)}else!c&&!ie&&($e=d.createElement("div",{className:`${K}-empty-text`},(_==null?void 0:_.emptyText)||(I==null?void 0:I("List"))||d.createElement(Vg,{componentName:"List"})));const Ce=oe.position||"bottom",be=d.useMemo(()=>({grid:p,itemLayout:u}),[JSON.stringify(p),u]);return B(d.createElement(JB.Provider,{value:be},d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},A==null?void 0:A.style),l),className:ae},k),(Ce==="top"||Ce==="both")&&ce,g&&d.createElement("div",{className:`${K}-header`},g),d.createElement(Qo,Object.assign({},ee),$e,c),v&&d.createElement("div",{className:`${K}-footer`},v),f||(Ce==="bottom"||Ce==="both")&&ce)))}const $tt=d.forwardRef(Ett),Gn=$tt;Gn.Item=V1e;function Mtt(){var e=d.useState({id:0,callback:null}),t=Te(e,2),n=t[0],r=t[1],i=d.useCallback(function(a){r(function(o){var s=o.id;return{id:s+1,callback:a}})},[]);return d.useEffect(function(){var a;(a=n.callback)===null||a===void 0||a.call(n)},[n]),i}var q1e=d.createContext(null);function Ttt(e){var t=d.useContext(q1e),n=t.notFoundContent,r=t.activeIndex,i=t.setActiveIndex,a=t.selectOption,o=t.onFocus,s=t.onBlur,l=t.onScroll,c=e.prefixCls,u=e.options,f=u[r]||{};return d.createElement(qg,{prefixCls:"".concat(c,"-menu"),activeKey:f.key,onSelect:function(h){var m=h.key,g=u.find(function(v){var y=v.key;return y===m});a(g)},onFocus:o,onBlur:s,onScroll:l},u.map(function(p,h){var m=p.key,g=p.disabled,v=p.className,y=p.style,b=p.label;return d.createElement(yg,{key:m,disabled:g,className:v,style:y,onMouseEnter:function(){i(h)}},b)}),!u.length&&d.createElement(yg,{disabled:!0},n))}var Ptt={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},Ott=function(t){var n=t.prefixCls,r=t.options,i=t.children,a=t.visible,o=t.transitionName,s=t.getPopupContainer,l=t.dropdownClassName,c=t.direction,u=t.placement,f="".concat(n,"-dropdown"),p=d.createElement(Ttt,{prefixCls:f,options:r}),h=d.useMemo(function(){var m;return c==="rtl"?m=u==="top"?"topLeft":"bottomLeft":m=u==="top"?"topRight":"bottomRight",m},[c,u]);return d.createElement(Ey,{prefixCls:f,popupVisible:a,popup:p,popupPlacement:h,popupTransitionName:o,builtinPlacements:Ptt,getPopupContainer:s,popupClassName:l},i)},Itt=function(){return null};function Rtt(e){var t=e.selectionStart;return e.value.slice(0,t)}function jtt(e,t){return t.reduce(function(n,r){var i=e.lastIndexOf(r);return i>n.location?{location:i,prefix:r}:n},{location:-1,prefix:""})}function aZ(e){return(e||"").toLowerCase()}function Ntt(e,t,n){var r=e[0];if(!r||r===n)return e;for(var i=e,a=t.length,o=0;o=0)return[!0,"",lt,Ct]}return[ae,pe,ve,Se]},[g,ae,B,We,pe,ve,Se]),Ve=Te(ze,4),Be=Ve[0],Xe=Ve[1],Ke=Ve[2],qe=Ve[3],Et=te.useCallback(function(Pt){var lt;return m&&m.length>0?lt=m.map(function(Ct){var kt;return q(q({},Ct),{},{key:(kt=Ct==null?void 0:Ct.key)!==null&&kt!==void 0?kt:Ct.value})}):lt=Zi(h).map(function(Ct){var kt=Ct.props,qt=Ct.key;return q(q({},kt),{},{label:kt.children,key:qt||kt.value})}),lt.filter(function(Ct){return _===!1?!0:_(Pt,Ct)})},[h,m,_]),dt=te.useMemo(function(){return Et(Xe)},[Et,Xe]),vt=Mtt(),Ze=function(lt,Ct,kt){oe(!0),me(lt),$e(Ct),we(kt),z(0)},nt=function(lt){oe(!1),we(0),me(""),vt(lt)},jt=function(lt){ge(lt),k==null||k(lt)},Lt=function(lt){var Ct=lt.target.value;jt(Ct)},Bt=function(lt){var Ct,kt=lt.value,qt=kt===void 0?"":kt,yt=Att(We,{measureLocation:qe,targetText:qt,prefix:Ke,selectionStart:(Ct=ie())===null||Ct===void 0?void 0:Ct.selectionStart,split:l}),At=yt.text,ft=yt.selectionLocation;jt(At),nt(function(){Dtt(ie(),ft)}),M==null||M(lt,Ke)},Ht=function(lt){var Ct=lt.which;if(S==null||S(lt),!!Be){if(Ct===gt.UP||Ct===gt.DOWN){var kt=dt.length,qt=Ct===gt.UP?-1:1,yt=(Oe+qt+kt)%kt;z(yt),lt.preventDefault()}else if(Ct===gt.ESC)nt();else if(Ct===gt.ENTER){if(lt.preventDefault(),v)return;if(!dt.length){nt();return}var At=dt[Oe];Bt(At)}}},Ne=function(lt){var Ct=lt.key,kt=lt.which,qt=lt.target,yt=Rtt(qt),At=jtt(yt,B),ft=At.location,De=At.prefix;if(C==null||C(lt),[gt.ESC,gt.UP,gt.DOWN,gt.ENTER].indexOf(kt)===-1)if(ft!==-1){var Ye=yt.slice(ft+De.length),st=b(Ye,l),Ie=!!Et(Ye).length;st?(Ct===De||Ct==="Shift"||kt===gt.ALT||Ct==="AltGraph"||Be||Ye!==Xe&&Ie)&&Ze(Ye,De,ft):Be&&nt(),$&&st&&$(Ye,De)}else Be&&nt()},He=function(lt){!Be&&E&&E(lt)},Le=d.useRef(),Qe=function(lt){window.clearTimeout(Le.current),!de&<&&P&&P(lt),xe(!0)},ht=function(lt){Le.current=window.setTimeout(function(){xe(!1),nt(),I==null||I(lt)},0)},xt=function(){Qe()},Nt=function(){ht()},Ot=function(lt){F==null||F(lt)};return te.createElement("div",{className:Ee(n,r),style:i,ref:U},te.createElement(Xge,tt({ref:Z,value:We},K,{rows:V,onChange:Lt,onKeyDown:Ht,onKeyUp:Ne,onPressEnter:He,onFocus:Qe,onBlur:ht})),Be&&te.createElement("div",{ref:ee,className:"".concat(n,"-measure")},We.slice(0,qe),te.createElement(q1e.Provider,{value:{notFoundContent:u,activeIndex:Oe,setActiveIndex:z,selectOption:Bt,onFocus:xt,onBlur:Nt,onScroll:Ot}},te.createElement(Ott,{prefixCls:n,transitionName:O,placement:A,direction:R,options:dt,visible:!0,getPopupContainer:j,dropdownClassName:N},te.createElement("span",null,Ke))),We.slice(qe+Ke.length)))}),ez=d.forwardRef(function(e,t){var n=e.suffix,r=e.prefixCls,i=r===void 0?"rc-mentions":r,a=e.defaultValue,o=e.value,s=e.allowClear,l=e.onChange,c=e.classNames,u=e.className,f=e.disabled,p=e.onClear,h=Ut(e,ztt),m=d.useRef(null),g=d.useRef(null);d.useImperativeHandle(t,function(){var S,C;return q(q({},g.current),{},{nativeElement:((S=m.current)===null||S===void 0?void 0:S.nativeElement)||((C=g.current)===null||C===void 0?void 0:C.nativeElement)})});var v=In("",{defaultValue:a,value:o}),y=Te(v,2),b=y[0],w=y[1],_=function(C){w(C),l==null||l(C)},k=function(){_("")};return te.createElement(H8,{suffix:n,prefixCls:i,value:b,allowClear:s,handleReset:k,className:u,classNames:c,disabled:f,ref:m,onClear:p},te.createElement(Htt,tt({className:c==null?void 0:c.mentions,prefixCls:i,ref:g,onChange:_,disabled:f},h)))});ez.Option=Itt;function K1e(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}const Utt=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:r,controlPaddingHorizontal:i,colorText:a,motionDurationSlow:o,lineHeight:s,controlHeight:l,paddingInline:c,paddingBlock:u,fontSize:f,fontSizeIcon:p,colorTextTertiary:h,colorTextQuaternary:m,colorBgElevated:g,paddingXXS:v,paddingLG:y,borderRadius:b,borderRadiusLG:w,boxShadowSecondary:_,itemPaddingVertical:k,calc:S}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),wg(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:s,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),R8(e)),N8(e)),j8(e)),{"&-affix-wrapper":Object.assign(Object.assign({},wg(e)),{display:"inline-flex",padding:0,"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:c,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`&:has(${t}-suffix) > ${t} > textarea`]:{paddingInlineEnd:y},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:0,insetBlockStart:S(f).mul(s).mul(.5).add(u).equal(),transform:"translateY(-50%)",margin:0,padding:0,color:m,fontSize:p,verticalAlign:-1,cursor:"pointer",transition:`color ${o}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:h},"&:active":{color:a},"&-hidden":{visibility:"hidden"}}}),"&-disabled":{"> textarea":Object.assign({},$4(e))},[`&, &-affix-wrapper > ${t}`]:{[`> textarea, ${t}-measure`]:{color:a,boxSizing:"border-box",minHeight:e.calc(l).sub(2),margin:0,padding:`${Me(u)} ${Me(c)}`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":Object.assign({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"transparent"},A8(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}}},"&-dropdown":Object.assign(Object.assign({},ar(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:f,fontVariant:"initial",padding:v,backgroundColor:g,borderRadius:w,outline:"none",boxShadow:_,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":Object.assign(Object.assign({},oo),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${Me(k)} ${Me(i)}`,color:a,borderRadius:b,fontWeight:"normal",lineHeight:s,cursor:"pointer",transition:`background ${o} ease`,"&:hover":{backgroundColor:r},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:r,cursor:"not-allowed"}},"&-selected":{color:a,fontWeight:e.fontWeightStrong,backgroundColor:r},"&-active":{backgroundColor:r}})}})})}},Wtt=e=>Object.assign(Object.assign({},Ry(e)),{dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2}),Vtt=Jn("Mentions",e=>{const t=Hn(e,Iy(e));return[Utt(t)]},Wtt);var qtt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,disabled:a,loading:o,filterOption:s,children:l,notFoundContent:c,options:u,status:f,allowClear:p=!1,popupClassName:h,style:m,variant:g}=e,v=qtt(e,["prefixCls","className","rootClassName","disabled","loading","filterOption","children","notFoundContent","options","status","allowClear","popupClassName","style","variant"]),[y,b]=d.useState(!1),w=d.useRef(null),_=va(t,w),{getPrefixCls:k,renderEmpty:S,direction:C,mentions:E}=d.useContext(Zt),{status:$,hasFeedback:M,feedbackIcon:P}=d.useContext(sa),I=ku($,f),O=function(){v.onFocus&&v.onFocus.apply(v,arguments),b(!0)},A=function(){v.onBlur&&v.onBlur.apply(v,arguments),b(!1)},R=d.useMemo(()=>c!==void 0?c:(S==null?void 0:S("Select"))||d.createElement(Vg,{componentName:"Select"}),[c,S]),j=d.useMemo(()=>o?d.createElement(G1e,{value:"ANTD_SEARCHING",disabled:!0},d.createElement(Qo,{size:"small"})):l,[o,l]),N=o?[{value:"ANTD_SEARCHING",disabled:!0,label:d.createElement(Qo,{size:"small"})}]:u,D=o?Ktt:s,V=k("mentions",n),F=qB(p),K=qr(V),[B,U,Z]=Vtt(V,K),[ee,ie]=Md("mentions",g),Y=M&&d.createElement(d.Fragment,null,P),X=Ee(E==null?void 0:E.className,r,i,Z,K),ae=d.createElement(ez,Object.assign({silent:o,prefixCls:V,notFoundContent:R,className:X,disabled:a,allowClear:F,direction:C,style:Object.assign(Object.assign({},E==null?void 0:E.style),m)},v,{filterOption:D,onFocus:O,onBlur:A,dropdownClassName:Ee(h,i,U,Z,K),ref:_,options:N,suffix:Y,classNames:{mentions:Ee({[`${V}-disabled`]:a,[`${V}-focused`]:y,[`${V}-rtl`]:C==="rtl"},U),variant:Ee({[`${V}-${ee}`]:ie},jl(V,I)),affixWrapper:U}}),j);return B(ae)}),I4=Gtt;I4.Option=G1e;const Ytt=Gf(I4,void 0,void 0,"mentions");I4._InternalPanelDoNotUseOrYouWillBeFired=Ytt;I4.getMentions=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:n="@",split:r=" "}=t,i=K1e(n);return e.split(r).map(function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=null;return i.some(s=>a.slice(0,s.length)===s?(o=s,!0):!1),o!==null?{prefix:o,value:a.slice(o.length)}:null}).filter(a=>!!a&&!!a.value)};let Jl=null,km=e=>e(),o3=[],s3={};function oZ(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=s3,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:i}}const Xtt=te.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=d.useContext(Zt),a=s3.prefixCls||i("message"),o=d.useContext(Tj),[s,l]=lpe(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),o.message));return te.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),Ztt=te.forwardRef((e,t)=>{const[n,r]=te.useState(oZ),i=()=>{r(oZ)};te.useEffect(i,[]);const a=Kfe(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=te.createElement(Xtt,{ref:t,sync:i,messageConfig:n});return te.createElement(zn,{prefixCls:o,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)});function q8(){if(!Jl){const e=document.createDocumentFragment(),t={fragment:e};Jl=t,km(()=>{KL()(te.createElement(Ztt,{ref:r=>{const{instance:i,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=a,q8())})}}),e)});return}Jl.instance&&(o3.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{km(()=>{const r=Jl.instance.open(Object.assign(Object.assign({},s3),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":km(()=>{Jl==null||Jl.instance.destroy(e.key)});break;default:km(()=>{var r;const i=(r=Jl.instance)[t].apply(r,ct(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),o3=[])}function Qtt(e){s3=Object.assign(Object.assign({},s3),e),km(()=>{var t;(t=Jl==null?void 0:Jl.sync)===null||t===void 0||t.call(Jl)})}function Jtt(e){const t=qL(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return o3.push(i),()=>{r?km(()=>{r()}):i.skipped=!0}});return q8(),t}function ent(e,t){const n=qL(r=>{let i;const a={type:e,args:t,resolve:r,setCloseFn:o=>{i=o}};return o3.push(a),()=>{i?km(()=>{i()}):a.skipped=!0}});return q8(),n}const tnt=e=>{o3.push({type:"destroy",key:e}),q8()},nnt=["success","info","warning","error","loading"],rnt={open:Jtt,destroy:tnt,config:Qtt,useMessage:cpe,_InternalPanelDoNotUseOrYouWillBeFired:tDe},l3=rnt;nnt.forEach(e=>{l3[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:l}=e,c=int(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=d.useContext(Zt),f=u(),p=t||u("modal"),h=qr(f),[m,g,v]=Ype(p,h),y=`${p}-confirm`;let b={};return a?b={closable:i??!1,title:"",footer:"",children:d.createElement(Zpe,Object.assign({},e,{prefixCls:p,confirmPrefixCls:y,rootPrefixCls:f,content:s}))}:b={closable:i??!0,title:o,footer:l!==null&&d.createElement(Wpe,Object.assign({},e)),children:s},m(d.createElement(Tpe,Object.assign({prefixCls:p,className:Ee(g,`${p}-pure-panel`,a&&y,a&&`${y}-${a}`,n,v,h)},c,{closeIcon:Upe(p,r),closable:i},b)))},ont=che(ant);function Y1e(e){return C4(the(e))}const yr=Xpe;yr.useModal=ohe;yr.info=function(t){return C4(nhe(t))};yr.success=function(t){return C4(rhe(t))};yr.error=function(t){return C4(ihe(t))};yr.warning=Y1e;yr.warn=Y1e;yr.confirm=function(t){return C4(ahe(t))};yr.destroyAll=function(){for(;Cm.length;){const t=Cm.pop();t&&t()}};yr.config=mze;yr._InternalPanelDoNotUseOrYouWillBeFired=ont;const snt=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:f}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:o,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},lnt=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},X1e=Jn("Popconfirm",e=>snt(e),lnt,{resetStyle:!1});var cnt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:l="primary",icon:c=d.createElement(qf,null),showCancel:u=!0,close:f,onConfirm:p,onCancel:h,onPopupClick:m}=e,{getPrefixCls:g}=d.useContext(Zt),[v]=Xa("Popconfirm",Us.Popconfirm),y=P0(i),b=P0(a);return d.createElement("div",{className:`${t}-inner-content`,onClick:m},d.createElement("div",{className:`${t}-message`},c&&d.createElement("span",{className:`${t}-message-icon`},c),d.createElement("div",{className:`${t}-message-text`},y&&d.createElement("div",{className:`${t}-title`},y),b&&d.createElement("div",{className:`${t}-description`},b))),d.createElement("div",{className:`${t}-buttons`},u&&d.createElement(Yt,Object.assign({onClick:h,size:"small"},r),o||(v==null?void 0:v.cancelText)),d.createElement(nB,{buttonProps:Object.assign(Object.assign({size:"small"},GL(l)),n),actionFn:p,close:f,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(v==null?void 0:v.okText))))},unt=e=>{const{prefixCls:t,placement:n,className:r,style:i}=e,a=cnt(e,["prefixCls","placement","className","style"]),{getPrefixCls:o}=d.useContext(Zt),s=o("popconfirm",t),[l]=X1e(s);return l(d.createElement(zhe,{placement:n,className:Ee(s,r),style:i,content:d.createElement(Z1e,Object.assign({prefixCls:s},a))}))};var dnt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o,s;const{prefixCls:l,placement:c="top",trigger:u="click",okType:f="primary",icon:p=d.createElement(qf,null),children:h,overlayClassName:m,onOpenChange:g,onVisibleChange:v,overlayStyle:y,styles:b,classNames:w}=e,_=dnt(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:k,popconfirm:S}=d.useContext(Zt),[C,E]=In(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),$=(D,V)=>{E(D,!0),v==null||v(D),g==null||g(D,V)},M=D=>{$(!1,D)},P=D=>{var V;return(V=e.onConfirm)===null||V===void 0?void 0:V.call(void 0,D)},I=D=>{var V;$(!1,D),(V=e.onCancel)===null||V===void 0||V.call(void 0,D)},O=(D,V)=>{const{disabled:F=!1}=e;F||$(D,V)},A=k("popconfirm",l),R=Ee(A,m,(i=S==null?void 0:S.classNames)===null||i===void 0?void 0:i.root,w==null?void 0:w.root),j=Ee((a=S==null?void 0:S.classNames)===null||a===void 0?void 0:a.body,w==null?void 0:w.body),[N]=X1e(A);return N(d.createElement(yc,Object.assign({},$r(_,["title"]),{trigger:u,placement:c,onOpenChange:O,open:C,ref:t,classNames:{root:R,body:j},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(o=S==null?void 0:S.styles)===null||o===void 0?void 0:o.root),S==null?void 0:S.style),y),b==null?void 0:b.root),body:Object.assign(Object.assign({},(s=S==null?void 0:S.styles)===null||s===void 0?void 0:s.body),b==null?void 0:b.body)},content:d.createElement(Z1e,Object.assign({okType:f,icon:p},e,{prefixCls:A,close:M,onConfirm:P,onCancel:I})),"data-popover-inject":!0}),h))}),Q1e=fnt;Q1e._InternalPanelDoNotUseOrYouWillBeFired=unt;var pnt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},hnt=function(){var t=d.useRef([]),n=d.useRef(null);return d.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(a){if(a){i=!0;var o=a.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(o.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},sZ=0,mnt=Ws();function gnt(){var e;return mnt?(e=sZ,sZ+=1):e="TEST_OR_SSR",e}const vnt=function(e){var t=d.useState(),n=Te(t,2),r=n[0],i=n[1];return d.useEffect(function(){i("rc_progress_".concat(gnt()))},[]),e||r};var lZ=function(t){var n=t.bg,r=t.children;return d.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function cZ(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)})}var ynt=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,a=e.radius,o=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,p=r&&Kt(r)==="object",h=p?"#FFF":void 0,m=u/2,g=d.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:m,cy:m,stroke:h,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:o,ref:t});if(!p)return g;var v="".concat(i,"-conic"),y=f?"".concat(180+f/2,"deg"):"0deg",b=cZ(r,(360-f)/360),w=cZ(r,1),_="conic-gradient(from ".concat(y,", ").concat(b.join(", "),")"),k="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(w.join(", "),")");return d.createElement(d.Fragment,null,d.createElement("mask",{id:v},g),d.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},d.createElement(lZ,{bg:k},d.createElement(lZ,{bg:_}))))}),_2=100,nT=function(t,n,r,i,a,o,s,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-o)/360),h=o===0?0:{bottom:0,top:180,left:90,right:-90}[s],m=(100-i)/100*n;c==="round"&&i!==100&&(m+=u/2,m>=n&&(m=n-.01));var g=_2/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:m+f,transform:"rotate(".concat(a+p+h,"deg)"),transformOrigin:"".concat(g,"px ").concat(g,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},bnt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function uZ(e){var t=e??[];return Array.isArray(t)?t:[t]}var wnt=function(t){var n=q(q({},pnt),t),r=n.id,i=n.prefixCls,a=n.steps,o=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,f=n.trailColor,p=n.strokeLinecap,h=n.style,m=n.className,g=n.strokeColor,v=n.percent,y=Ut(n,bnt),b=_2/2,w=vnt(r),_="".concat(w,"-gradient"),k=b-o/2,S=Math.PI*2*k,C=c>0?90+c/2:-90,E=S*((360-c)/360),$=Kt(a)==="object"?a:{count:a,gap:2},M=$.count,P=$.gap,I=uZ(v),O=uZ(g),A=O.find(function(K){return K&&Kt(K)==="object"}),R=A&&Kt(A)==="object",j=R?"butt":p,N=nT(S,E,0,100,C,c,u,f,j,o),D=hnt(),V=function(){var B=0;return I.map(function(U,Z){var ee=O[Z]||O[O.length-1],ie=nT(S,E,B,U,C,c,u,ee,j,o);return B+=U,d.createElement(ynt,{key:Z,color:ee,ptg:U,radius:k,prefixCls:i,gradientId:_,style:ie,strokeLinecap:j,strokeWidth:o,gapDegree:c,ref:function(X){D[Z]=X},size:_2})}).reverse()},F=function(){var B=Math.round(M*(I[0]/100)),U=100/M,Z=0;return new Array(M).fill(null).map(function(ee,ie){var Y=ie<=B-1?O[0]:f,X=Y&&Kt(Y)==="object"?"url(#".concat(_,")"):void 0,ae=nT(S,E,Z,U,C,c,u,Y,"butt",o,P);return Z+=(E-ae.strokeDashoffset+P)*100/E,d.createElement("circle",{key:ie,className:"".concat(i,"-circle-path"),r:k,cx:b,cy:b,stroke:X,strokeWidth:o,opacity:1,style:ae,ref:function(le){D[ie]=le}})})};return d.createElement("svg",tt({className:Ee("".concat(i,"-circle"),m),viewBox:"0 0 ".concat(_2," ").concat(_2),style:h,id:r,role:"presentation"},y),!M&&d.createElement("circle",{className:"".concat(i,"-circle-trail"),r:k,cx:b,cy:b,stroke:f,strokeLinecap:j,strokeWidth:s||o,style:N}),M?F():V())};function ih(e){return!e||e<0?0:e>100?100:e}function $6(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const xnt=e=>{let{percent:t,success:n,successPercent:r}=e;const i=ih($6({success:n,successPercent:r}));return[i,ih(ih(t)-i)]},Snt=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Wm.green,n||null]},K8=(e,t,n)=>{var r,i,a,o;let s=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,l=(o=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&o!==void 0?o:120));return[s,l]},Cnt=3,_nt=e=>Cnt/e*100,knt=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:a,width:o=120,type:s,children:l,success:c,size:u=o,steps:f}=e,[p,h]=K8(u,"circle");let{strokeWidth:m}=e;m===void 0&&(m=Math.max(_nt(p),6));const g={width:p,height:h,fontSize:p*.15+6},v=d.useMemo(()=>{if(a||a===0)return a;if(s==="dashboard")return 75},[a,s]),y=xnt(e),b=i||s==="dashboard"&&"bottom"||void 0,w=Object.prototype.toString.call(e.strokeColor)==="[object Object]",_=Snt({success:c,strokeColor:e.strokeColor}),k=Ee(`${t}-inner`,{[`${t}-circle-gradient`]:w}),S=d.createElement(wnt,{steps:f,percent:f?y[1]:y,strokeWidth:m,trailWidth:m,strokeColor:f?_[1]:_,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:b}),C=p<=20,E=d.createElement("div",{className:k,style:g},S,!C&&l);return C?d.createElement(Ea,{title:l},E):E},M6="--progress-line-stroke-color",J1e="--progress-percent",dZ=e=>{const t=e?"100%":"-100%";return new ir(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ent=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${M6})`]},height:"100%",width:`calc(1 / var(${J1e}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Me(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:dZ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:dZ(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},$nt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Mnt=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Tnt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Pnt=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Ont=Jn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Hn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Ent(n),$nt(n),Mnt(n),Tnt(n)]},Pnt);var Int=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},jnt=(e,t)=>{const{from:n=Wm.blue,to:r=Wm.blue,direction:i=t==="rtl"?"to left":"to right"}=e,a=Int(e,["from","to","direction"]);if(Object.keys(a).length!==0){const s=Rnt(a),l=`linear-gradient(${i}, ${s})`;return{background:l,[M6]:l}}const o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[M6]:o}},Nnt=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:a,strokeColor:o,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:p,type:h}=u,m=o&&typeof o!="string"?jnt(o,n):{[M6]:o,background:o},g=s==="square"||s==="butt"?0:void 0,v=i??[-1,a||(i==="small"?6:8)],[y,b]=K8(v,"line",{strokeWidth:a}),w={backgroundColor:c||void 0,borderRadius:g},_=Object.assign(Object.assign({width:`${ih(r)}%`,height:b,borderRadius:g},m),{[J1e]:ih(r)/100}),k=$6(e),S={width:`${ih(k)}%`,height:b,borderRadius:g,backgroundColor:f==null?void 0:f.strokeColor},C={width:y<0?"100%":y},E=d.createElement("div",{className:`${t}-inner`,style:w},d.createElement("div",{className:Ee(`${t}-bg`,`${t}-bg-${h}`),style:_},h==="inner"&&l),k!==void 0&&d.createElement("div",{className:`${t}-success-bg`,style:S})),$=h==="outer"&&p==="start",M=h==="outer"&&p==="end";return h==="outer"&&p==="center"?d.createElement("div",{className:`${t}-layout-bottom`},E,l):d.createElement("div",{className:`${t}-outer`,style:C},$&&l,E,M&&l)},Ant=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:a,trailColor:o=null,prefixCls:s,children:l}=e,c=Math.round(n*(r/100)),f=t??[t==="small"?2:14,i],[p,h]=K8(f,"step",{steps:n,strokeWidth:i}),m=p/n,g=new Array(n);for(let v=0;v{const{prefixCls:n,className:r,rootClassName:i,steps:a,strokeColor:o,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:p,style:h,percentPosition:m={}}=e,g=Dnt(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:y="outer"}=m,b=Array.isArray(o)?o[0]:o,w=typeof o=="string"||Array.isArray(o)?o:void 0,_=d.useMemo(()=>{if(b){const V=typeof b=="string"?b:Object.values(b)[0];return new dr(V).isLight()}return!1},[o]),k=d.useMemo(()=>{var V,F;const K=$6(e);return parseInt(K!==void 0?(V=K??0)===null||V===void 0?void 0:V.toString():(F=s??0)===null||F===void 0?void 0:F.toString(),10)},[s,e.success,e.successPercent]),S=d.useMemo(()=>!Fnt.includes(f)&&k>=100?"success":f||"normal",[f,k]),{getPrefixCls:C,direction:E,progress:$}=d.useContext(Zt),M=C("progress",n),[P,I,O]=Ont(M),A=u==="line",R=A&&!a,j=d.useMemo(()=>{if(!c)return null;const V=$6(e);let F;const K=p||(U=>`${U}%`),B=A&&_&&y==="inner";return y==="inner"||p||S!=="exception"&&S!=="success"?F=K(ih(s),ih(V)):S==="exception"?F=A?d.createElement($d,null):d.createElement(Cu,null):S==="success"&&(F=A?d.createElement(Ug,null):d.createElement(sd,null)),d.createElement("span",{className:Ee(`${M}-text`,{[`${M}-text-bright`]:B,[`${M}-text-${v}`]:R,[`${M}-text-${y}`]:R}),title:typeof F=="string"?F:void 0},F)},[c,s,k,S,u,M,p]);let N;u==="line"?N=a?d.createElement(Ant,Object.assign({},e,{strokeColor:w,prefixCls:M,steps:typeof a=="object"?a.count:a}),j):d.createElement(Nnt,Object.assign({},e,{strokeColor:b,prefixCls:M,direction:E,percentPosition:{align:v,type:y}}),j):(u==="circle"||u==="dashboard")&&(N=d.createElement(knt,Object.assign({},e,{strokeColor:b,prefixCls:M,progressStatus:S}),j));const D=Ee(M,`${M}-status-${S}`,{[`${M}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${M}-inline-circle`]:u==="circle"&&K8(l,"circle")[0]<=20,[`${M}-line`]:R,[`${M}-line-align-${v}`]:R,[`${M}-line-position-${y}`]:R,[`${M}-steps`]:a,[`${M}-show-info`]:c,[`${M}-${l}`]:typeof l=="string",[`${M}-rtl`]:E==="rtl"},$==null?void 0:$.className,r,i,I,O);return P(d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},$==null?void 0:$.style),h),className:D,role:"progressbar","aria-valuenow":k,"aria-valuemin":0,"aria-valuemax":100},$r(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),N))});function ed(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=zE(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var Dy,R4;function Rs(e,t,n){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function Bd(e,t){return(e>>>t&1)!=0}function ol(e){if(!e)throw new Error("Assertion error")}var td=function(){function e(t,n){Dr(this,e),ne(this,"modeBits",void 0),ne(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return Fr(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e}();Dy=td;ne(td,"NUMERIC",new Dy(1,[10,12,14]));ne(td,"ALPHANUMERIC",new Dy(2,[9,11,13]));ne(td,"BYTE",new Dy(4,[8,16,16]));ne(td,"KANJI",new Dy(8,[8,10,12]));ne(td,"ECI",new Dy(7,[0,0,0]));var cc=Fr(function e(t,n){Dr(this,e),ne(this,"ordinal",void 0),ne(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});R4=cc;ne(cc,"LOW",new R4(0,1));ne(cc,"MEDIUM",new R4(1,0));ne(cc,"QUARTILE",new R4(2,3));ne(cc,"HIGH",new R4(3,2));var Gm=function(){function e(t,n,r){if(Dr(this,e),ne(this,"mode",void 0),ne(this,"numChars",void 0),ne(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return Fr(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],i=ed(n),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;Rs(o,8,r)}}catch(s){i.e(s)}finally{i.f()}return new e(td.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],i=0;i=1<e.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var o=[],s=0;s>>9)*1335;var o=(r<<10|i)^21522;ol(o>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,Bd(o,s));this.setFunctionModule(8,7,Bd(o,6)),this.setFunctionModule(8,8,Bd(o,7)),this.setFunctionModule(7,8,Bd(o,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,Bd(o,l));for(var c=0;c<8;c++)this.setFunctionModule(this.size-1-c,8,Bd(o,c));for(var u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,Bd(o,u));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var n=this.version,r=0;r<12;r++)n=n<<1^(n>>>11)*7973;var i=this.version<<12|n;ol(i>>>18==0);for(var a=0;a<18;a++){var o=Bd(i,a),s=this.size-11+a%3,l=Math.floor(a/3);this.setFunctionModule(s,l,o),this.setFunctionModule(l,s,o)}}}},{key:"drawFinderPattern",value:function(n,r){for(var i=-4;i<=4;i++)for(var a=-4;a<=4;a++){var o=Math.max(Math.abs(a),Math.abs(i)),s=n+a,l=r+i;0<=s&&s=l)&&v.push(k[_])})},b=0;b=1;i-=2){i==6&&(i=5);for(var a=0;a>>3],7-(r&7)),r++)}}ol(r==n.length*8)}},{key:"applyMask",value:function(n){if(n<0||n>7)throw new RangeError("Mask value out of range");for(var r=0;r5&&n++):(this.finderPenaltyAddHistory(a,o),i||(n+=this.finderPenaltyCountPatterns(o)*e.PENALTY_N3),i=this.modules[r][s],a=1);n+=this.finderPenaltyTerminateAndCount(i,a,o)*e.PENALTY_N3}for(var l=0;l5&&n++):(this.finderPenaltyAddHistory(u,f),c||(n+=this.finderPenaltyCountPatterns(f)*e.PENALTY_N3),c=this.modules[p][l],u=1);n+=this.finderPenaltyTerminateAndCount(c,u,f)*e.PENALTY_N3}for(var h=0;h0&&n[2]==r&&n[3]==r*3&&n[4]==r&&n[5]==r;return(i&&n[0]>=r*4&&n[6]>=r?1:0)+(i&&n[6]>=r*4&&n[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(n,r,i){var a=r;return n&&(this.finderPenaltyAddHistory(a,i),a=0),a+=this.size,this.finderPenaltyAddHistory(a,i),this.finderPenaltyCountPatterns(i)}},{key:"finderPenaltyAddHistory",value:function(n,r){var i=n;r[0]==0&&(i+=this.size),r.pop(),r.unshift(i)}}],[{key:"encodeText",value:function(n,r){var i=Gm.makeSegments(n);return e.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=Gm.makeBytes(n);return e.encodeSegments([i],r)}},{key:"encodeSegments",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(e.MIN_VERSION<=i&&i<=a&&a<=e.MAX_VERSION)||o<-1||o>7)throw new RangeError("Invalid value");var l,c;for(l=i;;l++){var u=e.getNumDataCodewords(l,r)*8,f=Gm.getTotalBits(n,l);if(f<=u){c=f;break}if(l>=a)throw new RangeError("Data too long")}for(var p=r,h=0,m=[cc.MEDIUM,cc.QUARTILE,cc.HIGH];h>>3]|=M<<7-(P&7)}),new e(l,p,$,o)}},{key:"getNumRawDataModules",value:function(n){if(ne.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var i=Math.floor(n/7)+2;r-=(25*i-10)*i-55,n>=7&&(r-=36)}return ol(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(n,r){return Math.floor(e.getNumRawDataModules(n)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n]}},{key:"reedSolomonComputeDivisor",value:function(n){if(n<1||n>255)throw new RangeError("Degree out of range");for(var r=[],i=0;i>>8||r>>>8)throw new RangeError("Byte out of range");for(var i=0,a=7;a>=0;a--)i=i<<1^(i>>>7)*285,i^=(r>>>a&1)*n;return ol(i>>>8==0),i}}]),e}();ne(Xf,"MIN_VERSION",1);ne(Xf,"MAX_VERSION",40);ne(Xf,"PENALTY_N1",3);ne(Xf,"PENALTY_N2",3);ne(Xf,"PENALTY_N3",40);ne(Xf,"PENALTY_N4",10);ne(Xf,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);ne(Xf,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var Lnt={L:cc.LOW,M:cc.MEDIUM,Q:cc.QUARTILE,H:cc.HIGH},eve=128,tve="L",nve="#FFFFFF",rve="#000000",ive=!1,ave=1,Bnt=4,znt=0,Hnt=.1;function ove(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[];return e.forEach(function(r,i){var a=null;r.forEach(function(o,s){if(!o&&a!==null){n.push("M".concat(a+t," ").concat(i+t,"h").concat(s-a,"v1H").concat(a+t,"z")),a=null;return}if(s===r.length-1){if(!o)return;a===null?n.push("M".concat(s+t,",").concat(i+t," h1v1H").concat(s+t,"z")):n.push("M".concat(a+t,",").concat(i+t," h").concat(s+1-a,"v1H").concat(a+t,"z"));return}o&&a===null&&(a=s)})}),n.join("")}function sve(e,t){return e.slice().map(function(n,r){return r=t.y+t.h?n:n.map(function(i,a){return a=t.x+t.w?i:!1})})}function Unt(e,t,n,r){if(r==null)return null;var i=e.length+n*2,a=Math.floor(t*Hnt),o=i/t,s=(r.width||a)*o,l=(r.height||a)*o,c=r.x==null?e.length/2-s/2:r.x*o,u=r.y==null?e.length/2-l/2:r.y*o,f=r.opacity==null?1:r.opacity,p=null;if(r.excavate){var h=Math.floor(c),m=Math.floor(u),g=Math.ceil(s+c-h),v=Math.ceil(l+u-m);p={x:h,y:m,w:g,h:v}}var y=r.crossOrigin;return{x:c,y:u,h:l,w:s,excavation:p,opacity:f,crossOrigin:y}}function Wnt(e,t){return t!=null?Math.floor(t):e?Bnt:znt}var Vnt=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function lve(e){var t=e.value,n=e.level,r=e.minVersion,i=e.includeMargin,a=e.marginSize,o=e.imageSettings,s=e.size,l=d.useMemo(function(){var m=Gm.makeSegments(t);return Xf.encodeSegments(m,Lnt[n],r)},[t,n,r]),c=d.useMemo(function(){var m=l.getModules(),g=Wnt(i,a),v=m.length+g*2,y=Unt(m,s,g,o);return{cells:m,margin:g,numCells:v,calculatedImageSettings:y}},[l,s,o,i,a]),u=c.cells,f=c.margin,p=c.numCells,h=c.calculatedImageSettings;return{qrcode:l,margin:f,cells:u,numCells:p,calculatedImageSettings:h}}var qnt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],cve=te.forwardRef(function(t,n){var r=t.value,i=t.size,a=i===void 0?eve:i,o=t.level,s=o===void 0?tve:o,l=t.bgColor,c=l===void 0?nve:l,u=t.fgColor,f=u===void 0?rve:u,p=t.includeMargin,h=p===void 0?ive:p,m=t.minVersion,g=m===void 0?ave:m,v=t.marginSize,y=t.style,b=t.imageSettings,w=Ut(t,qnt),_=b==null?void 0:b.src,k=d.useRef(null),S=d.useRef(null),C=d.useCallback(function(D){k.current=D,typeof n=="function"?n(D):n&&(n.current=D)},[n]),E=d.useState(!1),$=Te(E,2),M=$[1],P=lve({value:r,level:s,minVersion:g,includeMargin:h,marginSize:v,imageSettings:b,size:a}),I=P.margin,O=P.cells,A=P.numCells,R=P.calculatedImageSettings;d.useEffect(function(){if(k.current!=null){var D=k.current,V=D.getContext("2d");if(!V)return;var F=O,K=S.current,B=R!=null&&K!==null&&K.complete&&K.naturalHeight!==0&&K.naturalWidth!==0;B&&R.excavation!=null&&(F=sve(O,R.excavation));var U=window.devicePixelRatio||1;D.height=D.width=a*U;var Z=a/A*U;V.scale(Z,Z),V.fillStyle=c,V.fillRect(0,0,A,A),V.fillStyle=f,Vnt?V.fill(new Path2D(ove(F,I))):O.forEach(function(ee,ie){ee.forEach(function(Y,X){Y&&V.fillRect(X+I,ie+I,1,1)})}),R&&(V.globalAlpha=R.opacity),B&&V.drawImage(K,R.x+I,R.y+I,R.w,R.h)}}),d.useEffect(function(){M(!1)},[_]);var j=q({height:a,width:a},y),N=null;return _!=null&&(N=te.createElement("img",{src:_,key:_,style:{display:"none"},onLoad:function(){M(!0)},ref:S,crossOrigin:R==null?void 0:R.crossOrigin})),te.createElement(te.Fragment,null,te.createElement("canvas",tt({style:j,height:a,width:a,ref:C,role:"img"},w)),N)});cve.displayName="QRCodeCanvas";var Knt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],uve=te.forwardRef(function(t,n){var r=t.value,i=t.size,a=i===void 0?eve:i,o=t.level,s=o===void 0?tve:o,l=t.bgColor,c=l===void 0?nve:l,u=t.fgColor,f=u===void 0?rve:u,p=t.includeMargin,h=p===void 0?ive:p,m=t.minVersion,g=m===void 0?ave:m,v=t.title,y=t.marginSize,b=t.imageSettings,w=Ut(t,Knt),_=lve({value:r,level:s,minVersion:g,includeMargin:h,marginSize:y,imageSettings:b,size:a}),k=_.margin,S=_.cells,C=_.numCells,E=_.calculatedImageSettings,$=S,M=null;b!=null&&E!=null&&(E.excavation!=null&&($=sve(S,E.excavation)),M=te.createElement("image",{href:b.src,height:E.h,width:E.w,x:E.x+k,y:E.y+k,preserveAspectRatio:"none",opacity:E.opacity,crossOrigin:E.crossOrigin}));var P=ove($,k);return te.createElement("svg",tt({height:a,width:a,viewBox:"0 0 ".concat(C," ").concat(C),ref:n,role:"img"},w),!!v&&te.createElement("title",null,v),te.createElement("path",{fill:c,d:"M0,0 h".concat(C,"v").concat(C,"H0z"),shapeRendering:"crispEdges"}),te.createElement("path",{fill:f,d:P,shapeRendering:"crispEdges"}),M)});uve.displayName="QRCodeSVG";var Gnt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"},Ynt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Gnt}))},Xnt=d.forwardRef(Ynt),Znt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Qnt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Znt}))},Jnt=d.forwardRef(Qnt),ert={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},trt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:ert}))},nrt=d.forwardRef(trt),rrt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},irt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:rrt}))},art=d.forwardRef(irt),ort={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M594.3 601.5a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1 8 8 0 008 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52zm416-354H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z"}}]},name:"contacts",theme:"outlined"},srt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:ort}))},lrt=d.forwardRef(srt),crt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},urt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:crt}))},drt=d.forwardRef(urt),frt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"},prt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:frt}))},hrt=d.forwardRef(prt),mrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},grt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:mrt}))},G8=d.forwardRef(grt),vrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},yrt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:vrt}))},brt=d.forwardRef(yrt),wrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},xrt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:wrt}))},Em=d.forwardRef(xrt),Srt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},Crt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Srt}))},_rt=d.forwardRef(Crt),krt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ert=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:krt}))},dve=d.forwardRef(Ert),$rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Mrt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:$rt}))},fve=d.forwardRef(Mrt),Trt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},Prt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Trt}))},Ort=d.forwardRef(Prt),Irt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Rrt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Irt}))},jrt=d.forwardRef(Rrt),Nrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Art=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Nrt}))},Drt=d.forwardRef(Art),Frt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},Lrt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Frt}))},Brt=d.forwardRef(Lrt),zrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Hrt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:zrt}))},Urt=d.forwardRef(Hrt),Wrt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Vrt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Wrt}))},pve=d.forwardRef(Vrt),qrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Krt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:qrt}))},Grt=d.forwardRef(Krt),Yrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},Xrt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Yrt}))},Xg=d.forwardRef(Xrt),Zrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},Qrt=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Zrt}))},hve=d.forwardRef(Qrt),Jrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},eit=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Jrt}))},mve=d.forwardRef(eit),tit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},nit=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:tit}))},rit=d.forwardRef(nit),iit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},ait=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:iit}))},j4=d.forwardRef(ait),oit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 760H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-568H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 00-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 002.1-5.4V432c0-2.2-1.8-4-4-4z"}}]},name:"ordered-list",theme:"outlined"},sit=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:oit}))},gve=d.forwardRef(sit),lit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},cit=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:lit}))},uit=d.forwardRef(cit),dit={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},fit=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:dit}))},pit=d.forwardRef(fit),hit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},mit=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:hit}))},git=d.forwardRef(mit),vit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},yit=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:vit}))},bit=d.forwardRef(yit),wit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}}]},name:"question-circle",theme:"filled"},xit=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:wit}))},Sit=d.forwardRef(xit),Cit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},_it=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Cit}))},vve=d.forwardRef(_it),kit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},Eit=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:kit}))},$it=d.forwardRef(Eit),Mit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},Tit=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Mit}))},yve=d.forwardRef(Tit),Pit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Oit=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Pit}))},Iit=d.forwardRef(Oit),Rit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},jit=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Rit}))},Nit=d.forwardRef(jit),Ait={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},Dit=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Ait}))},N4=d.forwardRef(Dit),Fit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},Lit=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Fit}))},nz=d.forwardRef(Lit),Bit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},zit=function(t,n){return d.createElement(jn,tt({},t,{ref:n,icon:Bit}))},Hit=d.forwardRef(zit),Uit=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],bve=d.forwardRef(function(e,t){var n=e.className,r=e.component,i=e.viewBox,a=e.spin,o=e.rotate,s=e.tabIndex,l=e.onClick,c=e.children,u=Ut(e,Uit),f=d.useRef(),p=Su(f,t);dj(!!(r||c),"Should have `component` prop or `children`."),Zfe(f);var h=d.useContext(VE),m=h.prefixCls,g=m===void 0?"anticon":m,v=h.rootClassName,y=Ee(v,g,ne({},"".concat(g,"-spin"),!!a&&!!r),n),b=Ee(ne({},"".concat(g,"-spin"),!!a)),w=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,_=q(q({},aAe),{},{className:b,style:w,viewBox:i});i||delete _.viewBox;var k=function(){return r?d.createElement(r,_,c):c?(dj(!!i||d.Children.count(c)===1&&d.isValidElement(c)&&d.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),d.createElement("svg",tt({},_,{viewBox:i}),c)):null},S=s;return S===void 0&&l&&(S=-1),d.createElement("span",tt({role:"img"},u,{ref:p,tabIndex:S,onClick:l,className:y}),k())});bve.displayName="AntdIcon";var Wit=["type","children"],wve=new Set;function Vit(e){return!!(typeof e=="string"&&e.length&&!wve.has(e))}function T6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(Vit(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){T6(e,t+1)},r.onerror=function(){T6(e,t+1)}),wve.add(n),document.body.appendChild(r)}}function xve(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,r=n===void 0?{}:n;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?T6(t.reverse()):T6([t]));var i=d.forwardRef(function(a,o){var s=a.type,l=a.children,c=Ut(a,Wit),u=null;return a.type&&(u=d.createElement("use",{xlinkHref:"#".concat(s)})),l&&(u=l),d.createElement(bve,tt({},r,c,{ref:o}),u)});return i.displayName="Iconfont",i}const qit=te.createElement(Qo,null);function Kit(e){let{prefixCls:t,locale:n,onRefresh:r,statusRender:i,status:a}=e;const o=te.createElement(te.Fragment,null,te.createElement("p",{className:`${t}-expired`},n==null?void 0:n.expired),r&&te.createElement(Yt,{type:"link",icon:te.createElement(vve,null),onClick:r},n==null?void 0:n.refresh)),s=te.createElement("p",{className:`${t}-scanned`},n==null?void 0:n.scanned),l={expired:o,loading:qit,scanned:s};return(i??(f=>l[f.status]))({status:a,locale:n,onRefresh:r})}const Git=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:i}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${Me(n)} ${r} ${i}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},Yit=e=>({QRCodeMaskBackgroundColor:new dr(e.colorBgContainer).setA(.96).toRgbString()}),Xit=Jn("QRCode",e=>{const t=Hn(e,{QRCodeTextColor:e.colorText});return Git(t)},Yit);var Zit=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i;const[,a]=$a(),{value:o,type:s="canvas",icon:l="",size:c=160,iconSize:u,color:f=a.colorText,errorLevel:p="M",status:h="active",bordered:m=!0,onRefresh:g,style:v,className:y,rootClassName:b,prefixCls:w,bgColor:_="transparent",statusRender:k}=e,S=Zit(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:C}=d.useContext(Zt),E=C("qrcode",w),[$,M,P]=Xit(E),I={src:l,x:void 0,y:void 0,height:typeof u=="number"?u:(t=u==null?void 0:u.height)!==null&&t!==void 0?t:40,width:typeof u=="number"?u:(n=u==null?void 0:u.width)!==null&&n!==void 0?n:40,excavate:!0,crossOrigin:"anonymous"},O=Bi(S,!0),A=$r(S,Object.keys(O)),R=Object.assign({value:o,size:c,level:p,bgColor:_,fgColor:f,style:{width:v==null?void 0:v.width,height:v==null?void 0:v.height},imageSettings:l?I:void 0},O),[j]=Xa("QRCode");if(!o)return null;const N=Ee(E,y,b,M,P,{[`${E}-borderless`]:!m}),D=Object.assign(Object.assign({backgroundColor:_},v),{width:(r=v==null?void 0:v.width)!==null&&r!==void 0?r:c,height:(i=v==null?void 0:v.height)!==null&&i!==void 0?i:c});return $(te.createElement("div",Object.assign({},A,{className:N,style:D}),h!=="active"&&te.createElement("div",{className:`${E}-mask`},te.createElement(Kit,{prefixCls:E,locale:j,status:h,onRefresh:g,statusRender:k})),s==="canvas"?te.createElement(cve,Object.assign({},R)):te.createElement(uve,Object.assign({},R))))};function Qit(e,t){var n=e.disabled,r=e.prefixCls,i=e.character,a=e.characterRender,o=e.index,s=e.count,l=e.value,c=e.allowHalf,u=e.focused,f=e.onHover,p=e.onClick,h=function(k){f(k,o)},m=function(k){p(k,o)},g=function(k){k.keyCode===gt.ENTER&&p(k,o)},v=o+1,y=new Set([r]);l===0&&o===0&&u?y.add("".concat(r,"-focused")):c&&l+.5>=v&&lo?"true":"false","aria-posinset":o+1,"aria-setsize":s,tabIndex:n?-1:0},te.createElement("div",{className:"".concat(r,"-first")},b),te.createElement("div",{className:"".concat(r,"-second")},b)));return a&&(w=a(w,e)),w}const Jit=te.forwardRef(Qit);function eat(){var e=d.useRef({});function t(r){return e.current[r]}function n(r){return function(i){e.current[r]=i}}return[t,n]}function tat(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function nat(e){var t,n,r=e.ownerDocument,i=r.body,a=r&&r.documentElement,o=e.getBoundingClientRect();return t=o.left,n=o.top,t-=a.clientLeft||i.clientLeft||0,n-=a.clientTop||i.clientTop||0,{left:t,top:n}}function rat(e){var t=nat(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=tat(r),t.left}var iat=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function aat(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,i=e.className,a=e.defaultValue,o=e.value,s=e.count,l=s===void 0?5:s,c=e.allowHalf,u=c===void 0?!1:c,f=e.allowClear,p=f===void 0?!0:f,h=e.keyboard,m=h===void 0?!0:h,g=e.character,v=g===void 0?"★":g,y=e.characterRender,b=e.disabled,w=e.direction,_=w===void 0?"ltr":w,k=e.tabIndex,S=k===void 0?0:k,C=e.autoFocus,E=e.onHoverChange,$=e.onChange,M=e.onFocus,P=e.onBlur,I=e.onKeyDown,O=e.onMouseLeave,A=Ut(e,iat),R=eat(),j=Te(R,2),N=j[0],D=j[1],V=te.useRef(null),F=function(){if(!b){var G;(G=V.current)===null||G===void 0||G.focus()}};te.useImperativeHandle(t,function(){return{focus:F,blur:function(){if(!b){var G;(G=V.current)===null||G===void 0||G.blur()}}}});var K=In(a||0,{value:o}),B=Te(K,2),U=B[0],Z=B[1],ee=In(null),ie=Te(ee,2),Y=ie[0],X=ie[1],ae=function(G,de){var xe=_==="rtl",he=G+1;if(u){var Ue=N(G),We=rat(Ue),ge=Ue.clientWidth;(xe&&de-We>ge/2||!xe&&de-We0&&!xe||de===gt.RIGHT&&U>0&&xe?(oe(U-he),G.preventDefault()):de===gt.LEFT&&U{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Me(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},lat=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),cat=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),sat(e)),lat(e))}},uat=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),dat=Jn("Rate",e=>{const t=Hn(e,{});return[cat(t)]},uat);var fat=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,style:a,tooltips:o,character:s=d.createElement(Iit,null),disabled:l}=e,c=fat(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),u=(k,S)=>{let{index:C}=S;return o?d.createElement(Ea,{title:o[C]},k):k},{getPrefixCls:f,direction:p,rate:h}=d.useContext(Zt),m=f("rate",n),[g,v,y]=dat(m),b=Object.assign(Object.assign({},h==null?void 0:h.style),a),w=d.useContext(ga),_=l??w;return g(d.createElement(oat,Object.assign({ref:t,character:s,characterRender:u,disabled:_},c,{className:Ee(r,i,v,y,h==null?void 0:h.className),style:b,prefixCls:m,direction:p})))}),pat=()=>d.createElement("svg",{width:"252",height:"294"},d.createElement("title",null,"No Found"),d.createElement("defs",null,d.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(0 .012)"},d.createElement("mask",{fill:"#fff"}),d.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),d.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),d.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),d.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),d.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),d.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),d.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),d.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),d.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),d.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),d.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),d.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),d.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),d.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),d.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),d.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),d.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),d.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),d.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),d.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),d.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),d.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),d.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),d.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),d.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),d.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),d.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),d.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),d.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),d.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),d.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),d.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),d.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),d.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),d.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),d.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),d.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),d.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),hat=()=>d.createElement("svg",{width:"254",height:"294"},d.createElement("title",null,"Server Error"),d.createElement("defs",null,d.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),d.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(0 .067)"},d.createElement("mask",{fill:"#fff"}),d.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),d.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),d.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),d.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),d.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),d.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),d.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),d.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),d.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),d.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),d.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),d.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),d.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),d.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),d.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),d.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),d.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),d.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),d.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),d.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),d.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),d.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),d.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),d.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),d.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),d.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),d.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),d.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),d.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),d.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),d.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),d.createElement("mask",{fill:"#fff"}),d.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),d.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),d.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),d.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),d.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),d.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),d.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),d.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),mat=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:a,paddingXS:o,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${Me(e.calc(s).mul(2).equal())} ${Me(a)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${Me(s)} ${Me(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},gat=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},vat=e=>[mat(e),gat(e)],yat=e=>vat(e),bat=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),wat=Jn("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning,a=Hn(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return[yat(a)]},bat),xat=()=>d.createElement("svg",{width:"251",height:"294"},d.createElement("title",null,"Unauthorized"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),d.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),d.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),d.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),d.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),d.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),d.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),d.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),d.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),d.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),d.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),d.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),d.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),d.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),d.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),d.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),d.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),d.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),d.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),d.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),d.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),d.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),d.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),d.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),d.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),d.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),d.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),d.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),d.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),d.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),d.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),d.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),d.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),d.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),d.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),Sat={success:Ug,error:$d,info:qf,warning:Hit},A4={404:pat,500:hat,403:xat},Cat=Object.keys(A4),_at=e=>{let{prefixCls:t,icon:n,status:r}=e;const i=Ee(`${t}-icon`);if(Cat.includes(`${r}`)){const o=A4[r];return d.createElement("div",{className:`${i} ${t}-image`},d.createElement(o,null))}const a=d.createElement(Sat[r]);return n===null||n===!1?null:d.createElement("div",{className:i},n||a)},kat=e=>{let{prefixCls:t,extra:n}=e;return n?d.createElement("div",{className:`${t}-extra`},n):null},Zg=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:a,style:o,children:s,status:l="info",icon:c,extra:u}=e;const{getPrefixCls:f,direction:p,result:h}=d.useContext(Zt),m=f("result",t),[g,v,y]=wat(m),b=Ee(m,`${m}-${l}`,n,h==null?void 0:h.className,r,{[`${m}-rtl`]:p==="rtl"},v,y),w=Object.assign(Object.assign({},h==null?void 0:h.style),o);return g(d.createElement("div",{className:b,style:w},d.createElement(_at,{prefixCls:m,status:l,icon:c}),d.createElement("div",{className:`${m}-title`},a),i&&d.createElement("div",{className:`${m}-subtitle`},i),d.createElement(kat,{prefixCls:m,extra:u}),s&&d.createElement("div",{className:`${m}-content`},s)))};Zg.PRESENTED_IMAGE_403=A4[403];Zg.PRESENTED_IMAGE_404=A4[404];Zg.PRESENTED_IMAGE_500=A4[500];var Eat=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function pZ(e){return typeof e=="string"}function Sve(e){var t,n=e.className,r=e.prefixCls,i=e.style,a=e.active,o=e.status,s=e.iconPrefix,l=e.icon;e.wrapperStyle;var c=e.stepNumber,u=e.disabled,f=e.description,p=e.title,h=e.subTitle,m=e.progressDot,g=e.stepIcon,v=e.tailContent,y=e.icons,b=e.stepIndex,w=e.onStepClick,_=e.onClick,k=e.render,S=Ut(e,Eat),C=!!w&&!u,E={};C&&(E.role="button",E.tabIndex=0,E.onClick=function(A){_==null||_(A),w(b)},E.onKeyDown=function(A){var R=A.which;(R===gt.ENTER||R===gt.SPACE)&&w(b)});var $=function(){var R,j,N=Ee("".concat(r,"-icon"),"".concat(s,"icon"),(R={},ne(R,"".concat(s,"icon-").concat(l),l&&pZ(l)),ne(R,"".concat(s,"icon-check"),!l&&o==="finish"&&(y&&!y.finish||!y)),ne(R,"".concat(s,"icon-cross"),!l&&o==="error"&&(y&&!y.error||!y)),R)),D=d.createElement("span",{className:"".concat(r,"-icon-dot")});return m?typeof m=="function"?j=d.createElement("span",{className:"".concat(r,"-icon")},m(D,{index:c-1,status:o,title:p,description:f})):j=d.createElement("span",{className:"".concat(r,"-icon")},D):l&&!pZ(l)?j=d.createElement("span",{className:"".concat(r,"-icon")},l):y&&y.finish&&o==="finish"?j=d.createElement("span",{className:"".concat(r,"-icon")},y.finish):y&&y.error&&o==="error"?j=d.createElement("span",{className:"".concat(r,"-icon")},y.error):l||o==="finish"||o==="error"?j=d.createElement("span",{className:N}):j=d.createElement("span",{className:"".concat(r,"-icon")},c),g&&(j=g({index:c-1,status:o,title:p,description:f,node:j})),j},M=o||"wait",P=Ee("".concat(r,"-item"),"".concat(r,"-item-").concat(M),n,(t={},ne(t,"".concat(r,"-item-custom"),l),ne(t,"".concat(r,"-item-active"),a),ne(t,"".concat(r,"-item-disabled"),u===!0),t)),I=q({},i),O=d.createElement("div",tt({},S,{className:P,style:I}),d.createElement("div",tt({onClick:_},E,{className:"".concat(r,"-item-container")}),d.createElement("div",{className:"".concat(r,"-item-tail")},v),d.createElement("div",{className:"".concat(r,"-item-icon")},$()),d.createElement("div",{className:"".concat(r,"-item-content")},d.createElement("div",{className:"".concat(r,"-item-title")},p,h&&d.createElement("div",{title:typeof h=="string"?h:void 0,className:"".concat(r,"-item-subtitle")},h)),f&&d.createElement("div",{className:"".concat(r,"-item-description")},f))));return k&&(O=k(O)||null),O}var $at=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function iz(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,i=e.style,a=i===void 0?{}:i,o=e.className;e.children;var s=e.direction,l=s===void 0?"horizontal":s,c=e.type,u=c===void 0?"default":c,f=e.labelPlacement,p=f===void 0?"horizontal":f,h=e.iconPrefix,m=h===void 0?"rc":h,g=e.status,v=g===void 0?"process":g,y=e.size,b=e.current,w=b===void 0?0:b,_=e.progressDot,k=_===void 0?!1:_,S=e.stepIcon,C=e.initial,E=C===void 0?0:C,$=e.icons,M=e.onChange,P=e.itemRender,I=e.items,O=I===void 0?[]:I,A=Ut(e,$at),R=u==="navigation",j=u==="inline",N=j||k,D=j?"horizontal":l,V=j?void 0:y,F=N?"vertical":p,K=Ee(r,"".concat(r,"-").concat(D),o,(t={},ne(t,"".concat(r,"-").concat(V),V),ne(t,"".concat(r,"-label-").concat(F),D==="horizontal"),ne(t,"".concat(r,"-dot"),!!N),ne(t,"".concat(r,"-navigation"),R),ne(t,"".concat(r,"-inline"),j),t)),B=function(ee){M&&w!==ee&&M(ee)},U=function(ee,ie){var Y=q({},ee),X=E+ie;return v==="error"&&ie===w-1&&(Y.className="".concat(r,"-next-error")),Y.status||(X===w?Y.status=v:X{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:i}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:i,lineHeight:Me(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},Tat=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},Pat=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:i}=e,a=e.calc(e.paddingXS).add(e.lineWidth).equal(),o={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${Me(a)} ${Me(e.paddingXXS)} 0`,margin:`0 ${Me(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${Me(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(a).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:i}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${Me(e.lineWidth)} ${e.lineType} ${i}`}},o),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:i},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:i,border:`${Me(e.lineWidth)} ${e.lineType} ${i}`}},o),"&-error":o,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${Me(e.calc(n).div(2).equal())})`,top:0}},o),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},Oat=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:i}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${Me(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(i).div(2).add(e.controlHeightLG).equal()}}}}}},Iat=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:i,motionDurationSlow:a}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${a}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},oo),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${Me(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:i,transition:`width ${a}, inset-inline-start ${a}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${Me(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},Rat=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:i,processIconColor:a,marginXXS:o,lineWidthBold:s,lineWidth:l,paddingXXS:c}=e,u=e.calc(r).add(e.calc(s).mul(4).equal()).equal(),f=e.calc(i).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:c,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:a}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:c,[`> ${n}-item-container > ${n}-item-tail`]:{top:o,insetInlineStart:e.calc(r).div(2).sub(l).add(c).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:c,paddingInlineStart:c}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(i).div(2).sub(l).add(c).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(c).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${Me(u)} !important`,height:`${Me(u)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(i).div(2).add(c).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${Me(f)} !important`,height:`${Me(f)} !important`}}}}},jat=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:i,dotSize:a,motionDurationSlow:o}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${Me(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${Me(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:a,height:a,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(a).div(2).equal(),paddingInlineEnd:0,lineHeight:Me(a),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${o}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(a).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(a).sub(i).div(2).equal(),width:i,height:i,lineHeight:Me(i),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(a).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),top:0,insetInlineStart:e.calc(a).sub(i).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(a).div(2).equal(),insetInlineStart:0,margin:0,padding:`${Me(e.calc(a).add(e.paddingXS).equal())} 0 ${Me(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(a).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(a).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},Nat=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},Aat=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:i,colorTextDescription:a}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${Me(e.marginXS)}`,fontSize:r,lineHeight:Me(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:i,lineHeight:Me(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:a,fontSize:i},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:Me(n),transform:"none"}}}}},Dat=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:Me(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${Me(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${Me(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${Me(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${Me(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:Me(n)}}}}},Fat="wait",Lat="process",Bat="finish",zat="error",$S=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,i=`${e}TitleColor`,a=`${e}DescriptionColor`,o=`${e}TailColor`,s=`${e}IconBgColor`,l=`${e}IconBorderColor`,c=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[l],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[i],"&::after":{backgroundColor:t[o]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[a]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[o]}}},Hat=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,i=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[i]:Object.assign({},gc(e))}},[`${i}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[i]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:Me(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${Me(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:Me(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},$S(Fat,e)),$S(Lat,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),$S(Bat,e)),$S(zat,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},Uat=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},Wat=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),Hat(e)),Uat(e)),Mat(e)),Aat(e)),Dat(e)),Tat(e)),Oat(e)),jat(e)),Iat(e)),Nat(e)),Rat(e)),Pat(e))}},Vat=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),qat=Jn("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:i,colorPrimary:a,colorTextDescription:o,colorTextQuaternary:s,colorError:l,colorBorderSecondary:c,colorSplit:u}=e,f=Hn(e,{processIconColor:r,processTitleColor:i,processDescriptionColor:i,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:u,waitTitleColor:o,waitDescriptionColor:o,waitTailColor:u,waitDotColor:t,finishIconColor:a,finishTitleColor:i,finishDescriptionColor:o,finishTailColor:a,finishDotColor:a,errorIconColor:r,errorTitleColor:l,errorDescriptionColor:l,errorTailColor:u,errorIconBgColor:l,errorIconBorderColor:l,errorDotColor:l,stepsNavActiveColor:a,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:c});return[Wat(f)]},Vat);function Kat(e){return e.filter(t=>t)}function Gat(e,t){if(e)return e;const n=Zi(t).map(r=>{if(d.isValidElement(r)){const{props:i}=r;return Object.assign({},i)}return null});return Kat(n)}var Yat=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{percent:t,size:n,className:r,rootClassName:i,direction:a,items:o,responsive:s=!0,current:l=0,children:c,style:u}=e,f=Yat(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:p}=k4(s),{getPrefixCls:h,direction:m,steps:g}=d.useContext(Zt),v=d.useMemo(()=>s&&p?"vertical":a,[p,a]),y=Hi(n),b=h("steps",e.prefixCls),[w,_,k]=qat(b),S=e.type==="inline",C=h("",e.iconPrefix),E=Gat(o,c),$=S?void 0:t,M=Object.assign(Object.assign({},g==null?void 0:g.style),u),P=Ee(g==null?void 0:g.className,{[`${b}-rtl`]:m==="rtl",[`${b}-with-progress`]:$!==void 0},r,i,_,k),I={finish:d.createElement(sd,{className:`${b}-finish-icon`}),error:d.createElement(Cu,{className:`${b}-error-icon`})},O=R=>{let{node:j,status:N}=R;if(N==="process"&&$!==void 0){const D=y==="small"?32:40;return d.createElement("div",{className:`${b}-progress-icon`},d.createElement(tz,{type:"circle",percent:$,size:D,strokeWidth:4,format:()=>null}),j)}return j},A=(R,j)=>R.description?d.createElement(Ea,{title:R.description},j):j;return w(d.createElement(iz,Object.assign({icons:I},f,{style:M,current:l,size:y,items:E,itemRender:S?A:void 0,stepIcon:O,direction:v,prefixCls:b,iconPrefix:C,className:P})))};o_.Step=iz.Step;var Xat=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Cve=d.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,a=e.className,o=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,h=e.onChange,m=e.onKeyDown,g=Ut(e,Xat),v=In(!1,{value:o,defaultValue:s}),y=Te(v,2),b=y[0],w=y[1];function _(E,$){var M=b;return l||(M=E,w(M),h==null||h(M,$)),M}function k(E){E.which===gt.LEFT?_(!1,E):E.which===gt.RIGHT&&_(!0,E),m==null||m(E)}function S(E){var $=_(!b,E);p==null||p($,E)}var C=Ee(i,a,(n={},ne(n,"".concat(i,"-checked"),b),ne(n,"".concat(i,"-disabled"),l),n));return d.createElement("button",tt({},g,{type:"button",role:"switch","aria-checked":b,disabled:l,className:C,ref:t,onKeyDown:k,onClick:S}),c,d.createElement("span",{className:"".concat(i,"-inner")},d.createElement("span",{className:"".concat(i,"-inner-checked")},u),d.createElement("span",{className:"".concat(i,"-inner-unchecked")},f)))});Cve.displayName="Switch";const Zat=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=Me(l(s).add(l(r).mul(2)).equal()),f=Me(l(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:Me(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Me(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},Qat=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Jat=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${Me(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},eot=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,calc:s}=e,l=`${t}-inner`,c=Me(s(o).add(s(r).mul(2)).equal()),u=Me(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},tot=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:Me(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Vs(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},not=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=2,l=a-s*2,c=o-s*2;return{trackHeight:a,trackHeightSM:o,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new dr("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},rot=Jn("Switch",e=>{const t=Hn(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[tot(t),eot(t),Jat(t),Qat(t),Zat(t)]},not);var iot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:l,checked:c,value:u,defaultChecked:f,defaultValue:p,onChange:h}=e,m=iot(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,v]=In(!1,{value:c??u,defaultValue:f??p}),{getPrefixCls:y,direction:b,switch:w}=d.useContext(Zt),_=d.useContext(ga),k=(i??_)||a,S=y("switch",n),C=d.createElement("div",{className:`${S}-handle`},a&&d.createElement(pu,{className:`${S}-loading-icon`})),[E,$,M]=rot(S),P=Hi(r),I=Ee(w==null?void 0:w.className,{[`${S}-small`]:P==="small",[`${S}-loading`]:a,[`${S}-rtl`]:b==="rtl"},o,s,$,M),O=Object.assign(Object.assign({},w==null?void 0:w.style),l),A=function(){v(arguments.length<=0?void 0:arguments[0]),h==null||h.apply(void 0,arguments)};return E(d.createElement(y4,{component:"Switch"},d.createElement(Cve,Object.assign({},m,{checked:g,onChange:A,prefixCls:S,className:I,style:O,disabled:k,ref:t,loadingIcon:C}))))}),P6=aot;P6.__ANT_SWITCH=!0;var az=d.createContext(null),_ve=d.createContext({}),oot=function(t){for(var n=t.prefixCls,r=t.level,i=t.isStart,a=t.isEnd,o="".concat(n,"-indent-unit"),s=[],l=0;l=0&&n.splice(r,1),n}function lp(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function oz(e){return e.split("-")}function uot(e,t){var n=[],r=Ns(t,e);function i(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(o){var s=o.key,l=o.children;n.push(s),i(l)})}return i(r.children),n}function dot(e){if(e.parent){var t=oz(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function fot(e){var t=oz(e.pos);return Number(t[t.length-1])===0}function gZ(e,t,n,r,i,a,o,s,l,c){var u,f=e.clientX,p=e.clientY,h=e.target.getBoundingClientRect(),m=h.top,g=h.height,v=(c==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-f),y=(v-12)/r,b=l.filter(function(j){var N;return(N=s[j])===null||N===void 0||(N=N.children)===null||N===void 0?void 0:N.length}),w=Ns(s,n.eventKey);if(p-1.5?a({dragNode:O,dropNode:A,dropPosition:1})?M=1:R=!1:a({dragNode:O,dropNode:A,dropPosition:0})?M=0:a({dragNode:O,dropNode:A,dropPosition:1})?M=1:R=!1:a({dragNode:O,dropNode:A,dropPosition:1})?M=1:R=!1,{dropPosition:M,dropLevelOffset:P,dropTargetKey:w.key,dropTargetPos:w.pos,dragOverNodeKey:$,dropContainerKey:M===0?null:((u=w.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:R}}function vZ(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function rT(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Kt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return zr(!1,"`checkedKeys` is not an array or an object"),null;return t}function Yj(e,t){var n=new Set;function r(i){if(!n.has(i)){var a=Ns(t,i);if(a){n.add(i);var o=a.parent,s=a.node;s.disabled||o&&r(o.key)}}}return(e||[]).forEach(function(i){r(i)}),ct(n)}function yZ(e){const[t,n]=d.useState(null);return[d.useCallback((a,o,s)=>{const l=t??a,c=Math.min(l||0,a),u=Math.max(l||0,a),f=o.slice(c,u+1).map(m=>e(m)),p=f.some(m=>!s.has(m)),h=[];return f.forEach(m=>{p?(s.has(m)||h.push(m),s.add(m)):(s.delete(m),h.push(m))}),n(p?u:null),h},[t]),a=>{n(a)}]}var pot=function(t){var n=t.dropPosition,r=t.dropLevelOffset,i=t.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*i;break;case 1:a.bottom=0,a.left=-r*i;break;case 0:a.bottom=0,a.left=i;break}return te.createElement("div",{style:a})};function kve(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function hot(e,t){var n=d.useState(!1),r=Te(n,2),i=r[0],a=r[1];nr(function(){if(i)return e(),function(){t()}},[i]),nr(function(){return a(!0),function(){a(!1)}},[])}var mot=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],got=d.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.motion,a=e.motionNodes,o=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,f=Ut(e,mot),p=d.useState(!0),h=Te(p,2),m=h[0],g=h[1],v=d.useContext(az),y=v.prefixCls,b=a&&o!=="hide";nr(function(){a&&b!==m&&g(b)},[a]);var w=function(){a&&s()},_=d.useRef(!1),k=function(){a&&!_.current&&(_.current=!0,l())};hot(w,k);var S=function(E){b===E&&k()};return a?d.createElement(ka,tt({ref:t,visible:m},i,{motionAppear:o==="show",onVisibleChanged:S}),function(C,E){var $=C.className,M=C.style;return d.createElement("div",{ref:E,className:Ee("".concat(y,"-treenode-motion"),$),style:M},a.map(function(P){var I=Object.assign({},(kve(P.data),P.data)),O=P.title,A=P.key,R=P.isStart,j=P.isEnd;delete I.children;var N=J2(A,u);return d.createElement(c3,tt({},I,N,{title:O,active:c,data:P.data,key:A,isStart:R,isEnd:j}))}))}):d.createElement(c3,tt({domRef:t,className:n,style:r},f,{active:c}))});function vot(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(a,o){var s=new Map;a.forEach(function(c){s.set(c,!0)});var l=o.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return n ").concat(t);return t}var xot=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,a=e.selectedKeys,o=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,f=e.disabled,p=e.dragging,h=e.dragOverNodeKey,m=e.dropPosition,g=e.motion,v=e.height,y=e.itemHeight,b=e.virtual,w=e.scrollWidth,_=e.focusable,k=e.activeItem,S=e.focused,C=e.tabIndex,E=e.onKeyDown,$=e.onFocus,M=e.onBlur,P=e.onActiveChange,I=e.onListChangeStart,O=e.onListChangeEnd,A=Ut(e,yot),R=d.useRef(null),j=d.useRef(null);d.useImperativeHandle(t,function(){return{scrollTo:function(we){R.current.scrollTo(we)},getIndentWidth:function(){return j.current.offsetWidth}}});var N=d.useState(i),D=Te(N,2),V=D[0],F=D[1],K=d.useState(r),B=Te(K,2),U=B[0],Z=B[1],ee=d.useState(r),ie=Te(ee,2),Y=ie[0],X=ie[1],ae=d.useState([]),oe=Te(ae,2),le=oe[0],ce=oe[1],pe=d.useState(null),me=Te(pe,2),re=me[0],fe=me[1],ve=d.useRef(r);ve.current=r;function $e(){var Se=ve.current;Z(Se),X(Se),ce([]),fe(null),O()}nr(function(){F(i);var Se=vot(V,i);if(Se.key!==null)if(Se.add){var we=U.findIndex(function(G){var de=G.key;return de===Se.key}),se=SZ(bZ(U,r,Se.key),b,v,y),ye=U.slice();ye.splice(we+1,0,xZ),X(ye),ce(se),fe("show")}else{var Oe=r.findIndex(function(G){var de=G.key;return de===Se.key}),z=SZ(bZ(r,U,Se.key),b,v,y),H=r.slice();H.splice(Oe+1,0,xZ),X(H),ce(z),fe("hide")}else U!==r&&(Z(r),X(r))},[i,r]),d.useEffect(function(){p||$e()},[p]);var Ce=g?Y:r,be={expandedKeys:i,selectedKeys:a,loadedKeys:s,loadingKeys:l,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:h,dropPosition:m,keyEntities:u};return d.createElement(d.Fragment,null,S&&k&&d.createElement("span",{style:wZ,"aria-live":"assertive"},wot(k)),d.createElement("div",null,d.createElement("input",{style:wZ,disabled:_===!1||f,tabIndex:_!==!1?C:null,onKeyDown:E,onFocus:$,onBlur:M,value:"",onChange:bot,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},d.createElement("div",{className:"".concat(n,"-indent")},d.createElement("div",{ref:j,className:"".concat(n,"-indent-unit")}))),d.createElement(hB,tt({},A,{data:Ce,itemKey:CZ,height:v,fullHeight:!1,virtual:b,itemHeight:y,scrollWidth:w,prefixCls:"".concat(n,"-list"),ref:R,role:"tree",onVisibleChange:function(we){we.every(function(se){return CZ(se)!==Sg})&&$e()}}),function(Se){var we=Se.pos,se=Object.assign({},(kve(Se.data),Se.data)),ye=Se.title,Oe=Se.key,z=Se.isStart,H=Se.isEnd,G=M4(Oe,we);delete se.key,delete se.children;var de=J2(G,be);return d.createElement(got,tt({},se,de,{title:ye,active:!!k&&Oe===k.key,pos:we,data:Se.data,isStart:z,isEnd:H,motion:g,motionNodes:Oe===Sg?le:null,motionType:re,onMotionStart:I,onMotionEnd:$e,treeNodeRequiredProps:be,onMouseMove:function(){P(null)}}))}))}),Sot=10,Y8=function(e){Eo(n,e);var t=ts(n);function n(){var r;Dr(this,n);for(var i=arguments.length,a=new Array(i),o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,p=f.dragChildrenKeys,h=f.dropPosition,m=f.dropTargetKey,g=f.dropTargetPos,v=f.dropAllowed;if(v){var y=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),m!==null){var b=q(q({},J2(m,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===m,data:Ns(r.state.keyEntities,m).node}),w=p.includes(m);zr(!w,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var _=oz(g),k={event:s,node:Ia(b),dragNode:r.dragNodeProps?Ia(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(p),dropToGap:h!==0,dropPosition:h+Number(_[_.length-1])};u||y==null||y(k),r.dragNodeProps=null}}}),ne(un(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),ne(un(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,f=c.flattenNodes,p=l.expanded,h=l.key,m=l.isLeaf;if(!(m||s.shiftKey||s.metaKey||s.ctrlKey)){var g=f.filter(function(y){return y.key===h})[0],v=Ia(q(q({},J2(h,r.getTreeNodeRequiredProps())),{},{data:g.data}));r.setExpandedKeys(p?zd(u,h):lp(u,h)),r.onNodeExpand(s,v)}}),ne(un(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,f=c.expandAction;f==="click"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ne(un(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,f=c.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ne(un(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,f=u.keyEntities,p=u.fieldNames,h=r.props,m=h.onSelect,g=h.multiple,v=l.selected,y=l[p.key],b=!v;b?g?c=lp(c,y):c=[y]:c=zd(c,y);var w=c.map(function(_){var k=Ns(f,_);return k?k.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),m==null||m(c,{event:"select",selected:b,node:l,selectedNodes:w,nativeEvent:s.nativeEvent})}),ne(un(r),"onNodeCheck",function(s,l,c){var u=r.state,f=u.keyEntities,p=u.checkedKeys,h=u.halfCheckedKeys,m=r.props,g=m.checkStrictly,v=m.onCheck,y=l.key,b,w={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(g){var _=c?lp(p,y):zd(p,y),k=zd(h,y);b={checked:_,halfChecked:k},w.checkedNodes=_.map(function(P){return Ns(f,P)}).filter(Boolean).map(function(P){return P.node}),r.setUncontrolledState({checkedKeys:_})}else{var S=bf([].concat(ct(p),[y]),!0,f),C=S.checkedKeys,E=S.halfCheckedKeys;if(!c){var $=new Set(C);$.delete(y);var M=bf(Array.from($),{checked:!1,halfCheckedKeys:E},f);C=M.checkedKeys,E=M.halfCheckedKeys}b=C,w.checkedNodes=[],w.checkedNodesPositions=[],w.halfCheckedKeys=E,C.forEach(function(P){var I=Ns(f,P);if(I){var O=I.node,A=I.pos;w.checkedNodes.push(O),w.checkedNodesPositions.push({node:O,pos:A})}}),r.setUncontrolledState({checkedKeys:C},!1,{halfCheckedKeys:E})}v==null||v(b,w)}),ne(un(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,f=Ns(u,c);if(!(f!=null&&(l=f.children)!==null&&l!==void 0&&l.length)){var p=new Promise(function(h,m){r.setState(function(g){var v=g.loadedKeys,y=v===void 0?[]:v,b=g.loadingKeys,w=b===void 0?[]:b,_=r.props,k=_.loadData,S=_.onLoad;if(!k||y.includes(c)||w.includes(c))return null;var C=k(s);return C.then(function(){var E=r.state.loadedKeys,$=lp(E,c);S==null||S($,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:$}),r.setState(function(M){return{loadingKeys:zd(M.loadingKeys,c)}}),h()}).catch(function(E){if(r.setState(function(M){return{loadingKeys:zd(M.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=Sot){var $=r.state.loadedKeys;zr(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:lp($,c)}),h()}m(E)}),{loadingKeys:lp(w,c)}})});return p.catch(function(){}),p}}),ne(un(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),ne(un(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),ne(un(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),ne(un(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,f=!0,p={};Object.keys(s).forEach(function(h){if(r.props.hasOwnProperty(h)){f=!1;return}u=!0,p[h]=s[h]}),u&&(!l||f)&&r.setState(q(q({},p),c))}}),ne(un(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Fr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var i=this.props,a=i.activeKey,o=i.itemScrollOffset,s=o===void 0?0:o;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var i=this.state,a=i.focused,o=i.flattenNodes,s=i.keyEntities,l=i.draggingNodeKey,c=i.activeKey,u=i.dropLevelOffset,f=i.dropContainerKey,p=i.dropTargetKey,h=i.dropPosition,m=i.dragOverNodeKey,g=i.indent,v=this.props,y=v.prefixCls,b=v.className,w=v.style,_=v.showLine,k=v.focusable,S=v.tabIndex,C=S===void 0?0:S,E=v.selectable,$=v.showIcon,M=v.icon,P=v.switcherIcon,I=v.draggable,O=v.checkable,A=v.checkStrictly,R=v.disabled,j=v.motion,N=v.loadData,D=v.filterTreeNode,V=v.height,F=v.itemHeight,K=v.scrollWidth,B=v.virtual,U=v.titleRender,Z=v.dropIndicatorRender,ee=v.onContextMenu,ie=v.onScroll,Y=v.direction,X=v.rootClassName,ae=v.rootStyle,oe=Bi(this.props,{aria:!0,data:!0}),le;I&&(Kt(I)==="object"?le=I:typeof I=="function"?le={nodeDraggable:I}:le={});var ce={prefixCls:y,selectable:E,showIcon:$,icon:M,switcherIcon:P,draggable:le,draggingNodeKey:l,checkable:O,checkStrictly:A,disabled:R,keyEntities:s,dropLevelOffset:u,dropContainerKey:f,dropTargetKey:p,dropPosition:h,dragOverNodeKey:m,indent:g,direction:Y,dropIndicatorRender:Z,loadData:N,filterTreeNode:D,titleRender:U,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return d.createElement(az.Provider,{value:ce},d.createElement("div",{className:Ee(y,b,X,ne(ne(ne({},"".concat(y,"-show-line"),_),"".concat(y,"-focused"),a),"".concat(y,"-active-focused"),c!==null)),style:ae},d.createElement(xot,tt({ref:this.listRef,prefixCls:y,style:w,data:o,disabled:R,selectable:E,checkable:!!O,motion:j,dragging:l!==null,height:V,itemHeight:F,virtual:B,focusable:k,focused:a,tabIndex:C,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ee,onScroll:ie,scrollWidth:K},this.getTreeNodeRequiredProps(),oe))))}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s={prevProps:i};function l(C){return!o&&i.hasOwnProperty(C)||o&&o[C]!==i[C]}var c,u=a.fieldNames;if(l("fieldNames")&&(u=R0(i.fieldNames),s.fieldNames=u),l("treeData")?c=i.treeData:l("children")&&(zr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=Sge(i.children)),c){s.treeData=c;var f=F8(c,{fieldNames:u});s.keyEntities=q(ne({},Sg,Eve),f.keyEntities)}var p=s.keyEntities||a.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))s.expandedKeys=i.autoExpandParent||!o&&i.defaultExpandParent?Yj(i.expandedKeys,p):i.expandedKeys;else if(!o&&i.defaultExpandAll){var h=q({},p);delete h[Sg];var m=[];Object.keys(h).forEach(function(C){var E=h[C];E.children&&E.children.length&&m.push(E.key)}),s.expandedKeys=m}else!o&&i.defaultExpandedKeys&&(s.expandedKeys=i.autoExpandParent||i.defaultExpandParent?Yj(i.defaultExpandedKeys,p):i.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var g=q9(c||a.treeData,s.expandedKeys||a.expandedKeys,u);s.flattenNodes=g}if(i.selectable&&(l("selectedKeys")?s.selectedKeys=vZ(i.selectedKeys,i):!o&&i.defaultSelectedKeys&&(s.selectedKeys=vZ(i.defaultSelectedKeys,i))),i.checkable){var v;if(l("checkedKeys")?v=rT(i.checkedKeys)||{}:!o&&i.defaultCheckedKeys?v=rT(i.defaultCheckedKeys)||{}:c&&(v=rT(i.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),v){var y=v,b=y.checkedKeys,w=b===void 0?[]:b,_=y.halfCheckedKeys,k=_===void 0?[]:_;if(!i.checkStrictly){var S=bf(w,!0,p);w=S.checkedKeys,k=S.halfCheckedKeys}s.checkedKeys=w,s.halfCheckedKeys=k}}return l("loadedKeys")&&(s.loadedKeys=i.loadedKeys),s}}]),n}(d.Component);ne(Y8,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:pot,allowDrop:function(){return!0},expandAction:!1});ne(Y8,"TreeNode",c3);const Cot=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i,motionDurationMid:a,borderRadius:o,controlItemBgHover:s}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:o},"&:hover:before":{background:s}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent","&:before, &:hover:before":{background:r}}}}}},_ot=new ir("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),kot=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Eot=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Me(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),$ot=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},ar(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},gc(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:_ot,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:Me(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},kot(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},Eot(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${Me(t.calc(a).div(2).equal())} !important`}})}},$ve=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=Hn(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[$ot(e,a),Cot(a)]},Mve=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Mot=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},Mve(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Tot=Jn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:L8(`${n}-checkbox`,e)},$ve(n,e),b4(e)]},Mot),_Z=4;function Pot(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a="ltr"}=e,o=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",l={[o]:-n*i+_Z,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[o]=i+_Z;break}return te.createElement("div",{style:l,className:`${r}-drop-indicator`})}const Tve=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:l}=r;if(l)return d.isValidElement(a)?a:d.createElement(pu,{className:`${t}-switcher-loading-icon`});let c;if(i&&typeof i=="object"&&(c=i.showLeafIcon),o){if(!i)return null;if(typeof c!="boolean"&&c){const p=typeof c=="function"?c(r):c,h=`${t}-switcher-line-custom-icon`;return d.isValidElement(p)?oa(p,{className:Ee(p.props.className||"",h)}):p}return c?d.createElement(fve,{className:`${t}-switcher-line-icon`}):d.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return d.isValidElement(f)?oa(f,{className:Ee(f.props.className||"",u)}):f!==void 0?f:i?s?d.createElement(rit,{className:`${t}-switcher-line-icon`}):d.createElement(bit,{className:`${t}-switcher-line-icon`}):d.createElement(art,{className:u})},Pve=te.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:a,tree:o}=te.useContext(Zt),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:f,switcherLoadingIcon:p,blockNode:h=!1,children:m,checkable:g=!1,selectable:v=!0,draggable:y,motion:b,style:w}=e,_=r("tree",s),k=r(),S=b??Object.assign(Object.assign({},$0(k)),{motionAppear:!1}),C=Object.assign(Object.assign({},e),{checkable:g,selectable:v,showIcon:c,motion:S,blockNode:h,showLine:!!u,dropIndicatorRender:Pot}),[E,$,M]=Tot(_),[,P]=$a(),I=P.paddingXS/2+(((n=P.Tree)===null||n===void 0?void 0:n.titleHeight)||P.controlHeightSM),O=te.useMemo(()=>{if(!y)return!1;let R={};switch(typeof y){case"function":R.nodeDraggable=y;break;case"object":R=Object.assign({},y);break}return R.icon!==!1&&(R.icon=R.icon||te.createElement(Urt,null)),R},[y]),A=R=>te.createElement(Tve,{prefixCls:_,switcherIcon:f,switcherLoadingIcon:p,treeNodeProps:R,showLine:u});return E(te.createElement(Y8,Object.assign({itemHeight:I,ref:t,virtual:a},C,{style:Object.assign(Object.assign({},o==null?void 0:o.style),w),prefixCls:_,className:Ee({[`${_}-icon-hide`]:!c,[`${_}-block-node`]:h,[`${_}-unselectable`]:!v,[`${_}-rtl`]:i==="rtl"},o==null?void 0:o.className,l,$,M),direction:i,checkable:g&&te.createElement("span",{className:`${_}-checkbox-inner`}),selectable:v,switcherIcon:A,draggable:O}),m))}),kZ=0,iT=1,EZ=2;function sz(e,t,n){const{key:r,children:i}=n;function a(o){const s=o[r],l=o[i];t(s,o)!==!1&&sz(l||[],t,n)}e.forEach(a)}function Oot(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i,fieldNames:a}=e;const o=[];let s=kZ;if(r&&r===i)return[r];if(!r||!i)return[];function l(c){return c===r||c===i}return sz(t,c=>{if(s===EZ)return!1;if(l(c)){if(o.push(c),s===kZ)s=iT;else if(s===iT)return s=EZ,!1}else s===iT&&o.push(c);return n.includes(c)},R0(a)),o}function aT(e,t,n){const r=ct(t),i=[];return sz(e,(a,o)=>{const s=r.indexOf(a);return s!==-1&&(i.push(o),r.splice(s,1)),!!r.length},R0(n)),i}var $Z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=$Z(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const o=d.useRef(null),s=d.useRef(null),l=()=>{const{keyEntities:E}=F8(MZ(a));let $;return n?$=Object.keys(E):r?$=Yj(a.expandedKeys||i||[],E):$=a.expandedKeys||i||[],$},[c,u]=d.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,p]=d.useState(()=>l());d.useEffect(()=>{"selectedKeys"in a&&u(a.selectedKeys)},[a.selectedKeys]),d.useEffect(()=>{"expandedKeys"in a&&p(a.expandedKeys)},[a.expandedKeys]);const h=(E,$)=>{var M;return"expandedKeys"in a||p(E),(M=a.onExpand)===null||M===void 0?void 0:M.call(a,E,$)},m=(E,$)=>{var M;const{multiple:P,fieldNames:I}=a,{node:O,nativeEvent:A}=$,{key:R=""}=O,j=MZ(a),N=Object.assign(Object.assign({},$),{selected:!0}),D=(A==null?void 0:A.ctrlKey)||(A==null?void 0:A.metaKey),V=A==null?void 0:A.shiftKey;let F;P&&D?(F=E,o.current=R,s.current=F,N.selectedNodes=aT(j,F,I)):P&&V?(F=Array.from(new Set([].concat(ct(s.current||[]),ct(Oot({treeData:j,expandedKeys:f,startKey:R,endKey:o.current,fieldNames:I}))))),N.selectedNodes=aT(j,F,I)):(F=[R],o.current=R,s.current=F,N.selectedNodes=aT(j,F,I)),(M=a.onSelect)===null||M===void 0||M.call(a,F,N),"selectedKeys"in a||u(F)},{getPrefixCls:g,direction:v}=d.useContext(Zt),{prefixCls:y,className:b,showIcon:w=!0,expandAction:_="click"}=a,k=$Z(a,["prefixCls","className","showIcon","expandAction"]),S=g("tree",y),C=Ee(`${S}-directory`,{[`${S}-directory-rtl`]:v==="rtl"},b);return d.createElement(Pve,Object.assign({icon:Iot,ref:t,blockNode:!0},k,{showIcon:w,expandAction:_,prefixCls:S,className:C,expandedKeys:f,selectedKeys:c,onSelect:m,onExpand:h}))},jot=d.forwardRef(Rot),lz=Pve;lz.DirectoryTree=jot;lz.TreeNode=c3;const Not=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},ar(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},cz=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Hn(e,{tagFontSize:i,tagLineHeight:Me(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},uz=e=>({defaultBg:new dr(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Ove=Jn("Tag",e=>{const t=cz(e);return Not(t)},uz);var Aot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,style:r,className:i,checked:a,onChange:o,onClick:s}=e,l=Aot(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=d.useContext(Zt),f=y=>{o==null||o(!a),s==null||s(y)},p=c("tag",n),[h,m,g]=Ove(p),v=Ee(p,`${p}-checkable`,{[`${p}-checkable-checked`]:a},u==null?void 0:u.className,i,m,g);return h(d.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:f})))}),Fot=e=>YE(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:a,darkColor:o}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:a,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),Lot=xy(["Tag","preset"],e=>{const t=cz(e);return Fot(t)},uz);function Bot(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const MS=(e,t,n)=>{const r=Bot(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},zot=xy(["Tag","status"],e=>{const t=cz(e);return[MS(t,"success","Success"),MS(t,"processing","Info"),MS(t,"error","Error"),MS(t,"warning","Warning")]},uz);var Hot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:l,onClose:c,bordered:u=!0,visible:f}=e,p=Hot(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:m,tag:g}=d.useContext(Zt),[v,y]=d.useState(!0),b=$r(p,["closeIcon","closable"]);d.useEffect(()=>{f!==void 0&&y(f)},[f]);const w=S8(l),_=pWe(l),k=w||_,S=Object.assign(Object.assign({backgroundColor:l&&!k?l:void 0},g==null?void 0:g.style),a),C=h("tag",n),[E,$,M]=Ove(C),P=Ee(C,g==null?void 0:g.className,{[`${C}-${l}`]:k,[`${C}-has-color`]:l&&!k,[`${C}-hidden`]:!v,[`${C}-rtl`]:m==="rtl",[`${C}-borderless`]:!u},r,i,$,M),I=D=>{D.stopPropagation(),c==null||c(D),!D.defaultPrevented&&y(!1)},[,O]=lB(T0(e),T0(g),{closable:!1,closeIconRender:D=>{const V=d.createElement("span",{className:`${C}-close-icon`,onClick:I},D);return WL(D,V,F=>({onClick:K=>{var B;(B=F==null?void 0:F.onClick)===null||B===void 0||B.call(F,K),I(K)},className:Ee(F==null?void 0:F.className,`${C}-close-icon`)}))}}),A=typeof p.onClick=="function"||o&&o.type==="a",R=s||null,j=R?d.createElement(d.Fragment,null,R,o&&d.createElement("span",null,o)):o,N=d.createElement("span",Object.assign({},b,{ref:t,className:P,style:S}),j,O,w&&d.createElement(Lot,{key:"preset",prefixCls:C}),_&&d.createElement(zot,{key:"status",prefixCls:C}));return E(A?d.createElement(y4,{component:"Tag"},N):N)}),Di=Uot;Di.CheckableTag=Dot;const Wot=e=>{const t=e!=null&&e.algorithm?fg(e.algorithm):fg(h4),n=Object.assign(Object.assign({},E0),e==null?void 0:e.token);return OL(n,{override:e==null?void 0:e.token},t,zL)};function Vot(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const qot=(e,t)=>{const n=t??h4(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),Vot(t??e)),yfe(r)),{controlHeight:i}),vfe(Object.assign(Object.assign({},n),{controlHeight:i})))},Kl=(e,t)=>new dr(e).setA(t).toRgbString(),A1=(e,t)=>new dr(e).lighten(t).toHexString(),Kot=e=>{const t=ch(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},Got=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Kl(r,.85),colorTextSecondary:Kl(r,.65),colorTextTertiary:Kl(r,.45),colorTextQuaternary:Kl(r,.25),colorFill:Kl(r,.18),colorFillSecondary:Kl(r,.12),colorFillTertiary:Kl(r,.08),colorFillQuaternary:Kl(r,.04),colorBgSolid:Kl(r,.95),colorBgSolidHover:Kl(r,1),colorBgSolidActive:Kl(r,.9),colorBgElevated:A1(n,12),colorBgContainer:A1(n,8),colorBgLayout:A1(n,0),colorBgSpotlight:A1(n,26),colorBgBlur:Kl(r,.04),colorBorder:A1(n,26),colorBorderSecondary:A1(n,19)}},Yot=(e,t)=>{const n=Object.keys(DL).map(i=>{const a=ch(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((o,s,l)=>(o[`${i}-${l+1}`]=a[l],o[`${i}${l+1}`]=a[l],o),{})}).reduce((i,a)=>(i=Object.assign(Object.assign({},i),a),i),{}),r=t??h4(e);return Object.assign(Object.assign(Object.assign({},r),n),gfe(e,{generateColorPalettes:Kot,generateNeutralColorPalettes:Got}))};function Xot(){const[e,t,n]=$a();return{theme:e,token:t,hashId:n}}const zo={defaultSeed:e3.token,useToken:Xot,defaultAlgorithm:h4,darkAlgorithm:Yot,compactAlgorithm:qot,getDesignToken:Wot,defaultConfig:e3,_internalContext:FL};var Zot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);id.createElement(Jot,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),Cg=d.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:i,bordered:a}=e,o=Zot(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=Md("timePicker",i,a),l=d.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return d.createElement(Qot,Object.assign({},o,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),Ive=Gf(Cg,"popupAlign",void 0,"picker");Cg._InternalPanelDoNotUseOrYouWillBeFired=Ive;Cg.RangePicker=est;Cg._InternalPanelDoNotUseOrYouWillBeFired=Ive;const O6=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r)}),t},tst=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:i,key:a}=n;i&&t.set(a,r)}),t},nst=(e,t,n)=>{const r=d.useMemo(()=>(e||[]).map(o=>t?Object.assign(Object.assign({},o),{key:t(o)}):o),[e,t]),[i,a]=d.useMemo(()=>{const o=[],s=new Array((n||[]).length),l=O6(n||[]);return r.forEach(c=>{l.has(c.key)?s[l.get(c.key)]=c:o.push(c)}),[o,s]},[r,n,t]);return[r,i,a]},rst=[];function TS(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function TZ(e){return Array.from(e).join(";")}function ist(e,t,n){const[r,i]=d.useMemo(()=>[new Set(e.map(f=>f.key)),new Set(t.map(f=>f.key))],[e,t]),[a,o]=In(rst,{value:n}),s=d.useMemo(()=>TS(a,r),[a,r]),l=d.useMemo(()=>TS(a,i),[a,i]);d.useEffect(()=>{o([].concat(ct(TS(a,r)),ct(TS(a,i))))},[TZ(r),TZ(i)]);const c=Vn(f=>{o([].concat(ct(f),ct(l)))}),u=Vn(f=>{o([].concat(ct(s),ct(f)))});return[s,l,c,u]}const ast=e=>{const{renderedText:t,renderedEl:n,item:r,checked:i,disabled:a,prefixCls:o,onClick:s,onRemove:l,showRemove:c}=e,u=Ee(`${o}-content-item`,{[`${o}-content-item-disabled`]:a||r.disabled,[`${o}-content-item-checked`]:i&&!r.disabled});let f;(typeof t=="string"||typeof t=="number")&&(f=String(t));const[p]=Xa("Transfer",Us.Transfer),h={className:u,title:f},m=d.createElement("span",{className:`${o}-content-item-text`},n);return c?d.createElement("li",Object.assign({},h),m,d.createElement("button",{type:"button",disabled:a||r.disabled,className:`${o}-content-item-remove`,"aria-label":p==null?void 0:p.remove,onClick:()=>l==null?void 0:l(r)},d.createElement(G8,null))):(h.onClick=a||r.disabled?void 0:g=>s(r,g),d.createElement("li",Object.assign({},h),d.createElement(us,{className:`${o}-checkbox`,checked:i,disabled:a||r.disabled}),m))},ost=d.memo(ast),sst=["handleFilter","handleClear","checkedKeys"],lst=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),cst=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:i,disabled:a,showRemove:o,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[f,p]=d.useState(1),h=d.useMemo(()=>s?lst(typeof s=="object"?s:{}):null,[s]),[m,g]=In(10,{value:h==null?void 0:h.pageSize});d.useEffect(()=>{if(h){const C=Math.ceil(r.length/m);p(Math.min(f,C))}},[r,h,m]);const v=(C,E)=>{c(C.key,!i.includes(C.key),E)},y=C=>{u==null||u([C.key])},b=C=>{p(C)},w=(C,E)=>{p(C),g(E)},_=d.useMemo(()=>h?r.slice((f-1)*m,f*m):r,[f,r,h,m]);d.useImperativeHandle(t,()=>({items:_}));const k=h?d.createElement(O4,{size:"small",disabled:a,simple:h.simple,pageSize:m,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:r.length,current:f,onChange:b,onShowSizeChange:w}):null,S=Ee(`${n}-content`,{[`${n}-content-show-remove`]:o});return d.createElement(d.Fragment,null,d.createElement("ul",{className:S,onScroll:l},(_||[]).map(C=>{let{renderedEl:E,renderedText:$,item:M}=C;return d.createElement(ost,{key:M.key,item:M,renderedText:$,renderedEl:E,prefixCls:n,showRemove:o,onClick:v,onRemove:y,checked:i.includes(M.key),disabled:a||M.disabled})})),k)},ust=d.forwardRef(cst),Rve=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:i,onChange:a,handleClear:o}=e,s=d.useCallback(l=>{a==null||a(l),l.target.value===""&&(o==null||o())},[a]);return d.createElement(Wr,{placeholder:t,className:r,value:n,onChange:s,disabled:i,allowClear:!0,prefix:d.createElement(My,null)})},dst=()=>null;function fst(e){return!!(e&&!te.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Lb(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const pst=e=>e!==void 0,hst=e=>e&&typeof e=="object"?Object.assign(Object.assign({},e),{defaultValue:e.defaultValue||""}):{defaultValue:"",placeholder:""},Zj=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:i,disabled:a,showSearch:o=!1,style:s,searchPlaceholder:l,notFoundContent:c,selectAll:u,deselectAll:f,selectCurrent:p,selectInvert:h,removeAll:m,removeCurrent:g,showSelectAll:v=!0,showRemove:y,pagination:b,direction:w,itemsUnit:_,itemUnit:k,selectAllLabel:S,selectionsIcon:C,footer:E,renderList:$,onItemSelectAll:M,onItemRemove:P,handleFilter:I,handleClear:O,filterOption:A,render:R=dst}=e,j=hst(o),[N,D]=d.useState(j.defaultValue),V=d.useRef({}),F=Ce=>{D(Ce.target.value),I(Ce)},K=()=>{D(""),O()},B=(Ce,be)=>A?A(N,be,w):Ce.includes(N),U=Ce=>{let be=$?$(Object.assign(Object.assign({},Ce),{onItemSelect:(we,se)=>Ce.onItemSelect(we,se)})):null;const Se=!!be;return Se||(be=te.createElement(ust,Object.assign({ref:V},Ce))),{customize:Se,bodyContent:be}},Z=Ce=>{const be=R(Ce),Se=fst(be);return{item:Ce,renderedEl:Se?be.label:be,renderedText:Se?be.value:be}},ee=d.useMemo(()=>Array.isArray(c)?c[w==="left"?0:1]:c,[c,w]),[ie,Y]=d.useMemo(()=>{const Ce=[],be=[];return n.forEach(Se=>{const we=Z(Se);N&&!B(we.renderedText,Se)||(Ce.push(Se),be.push(we))}),[Ce,be]},[n,N]),X=d.useMemo(()=>ie.filter(Ce=>i.includes(Ce.key)&&!Ce.disabled),[i,ie]),ae=d.useMemo(()=>{if(X.length===0)return"none";const Ce=O6(i);return ie.every(be=>Ce.has(be.key)||!!be.disabled)?"all":"part"},[i,X]),oe=d.useMemo(()=>{const Ce=o?te.createElement("div",{className:`${t}-body-search-wrapper`},te.createElement(Rve,{prefixCls:`${t}-search`,onChange:F,handleClear:K,placeholder:j.placeholder||l,value:N,disabled:a})):null,{customize:be,bodyContent:Se}=U(Object.assign(Object.assign({},$r(e,sst)),{filteredItems:ie,filteredRenderItems:Y,selectedKeys:i}));let we;return be?we=te.createElement("div",{className:`${t}-body-customize-wrapper`},Se):we=ie.length?Se:te.createElement("div",{className:`${t}-body-not-found`},ee),te.createElement("div",{className:Ee(`${t}-body`,{[`${t}-body-with-search`]:o})},Ce,we)},[o,t,l,N,a,i,ie,Y,ee]),le=te.createElement(us,{disabled:n.filter(Ce=>!Ce.disabled).length===0||a,checked:ae==="all",indeterminate:ae==="part",className:`${t}-checkbox`,onChange:()=>{M==null||M(ie.filter(Ce=>!Ce.disabled).map(Ce=>{let{key:be}=Ce;return be}),ae!=="all")}}),ce=(Ce,be)=>{if(S)return typeof S=="function"?S({selectedCount:Ce,totalCount:be}):S;const Se=be>1?_:k;return te.createElement(te.Fragment,null,(Ce>0?`${Ce}/`:"")+be," ",Se)},pe=E&&(E.length<2?E(e):E(e,{direction:w})),me=Ee(t,{[`${t}-with-pagination`]:!!b,[`${t}-with-footer`]:!!pe}),re=pe?te.createElement("div",{className:`${t}-footer`},pe):null,fe=!y&&!b&≤let ve;y?ve=[b?{key:"removeCurrent",label:g,onClick(){var Ce;const be=Lb((((Ce=V.current)===null||Ce===void 0?void 0:Ce.items)||[]).map(Se=>Se.item));P==null||P(be)}}:null,{key:"removeAll",label:m,onClick(){P==null||P(Lb(ie))}}].filter(Boolean):ve=[{key:"selectAll",label:ae==="all"?f:u,onClick(){const Ce=Lb(ie);M==null||M(Ce,Ce.length!==i.length)}},b?{key:"selectCurrent",label:p,onClick(){var Ce;const be=((Ce=V.current)===null||Ce===void 0?void 0:Ce.items)||[];M==null||M(Lb(be.map(Se=>Se.item)),!0)}}:null,{key:"selectInvert",label:h,onClick(){var Ce;const be=Lb((((Ce=V.current)===null||Ce===void 0?void 0:Ce.items)||[]).map(se=>se.item)),Se=new Set(i),we=new Set(Se);be.forEach(se=>{Se.has(se)?we.delete(se):we.add(se)}),M==null||M(Array.from(we),"replace")}}];const $e=te.createElement(C6,{className:`${t}-header-dropdown`,menu:{items:ve},disabled:a},pst(C)?C:te.createElement($y,null));return te.createElement("div",{className:me,style:s},te.createElement("div",{className:`${t}-header`},v?te.createElement(te.Fragment,null,fe,$e):null,te.createElement("span",{className:`${t}-header-selected`},ce(X.length,ie.length)),te.createElement("span",{className:`${t}-header-title`},r)),oe,re)},jve=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:i="",rightArrowText:a="",leftActive:o,rightActive:s,className:l,style:c,direction:u,oneWay:f}=e;return d.createElement("div",{className:l,style:c},d.createElement(Yt,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?d.createElement(vc,null):d.createElement(Nf,null)},a),!f&&d.createElement(Yt,{type:"primary",size:"small",disabled:t||!o,onClick:n,icon:u!=="rtl"?d.createElement(Nf,null):d.createElement(vc,null)},i))},mst=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:i}=e,a=`${t}-table`,o=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:i,minWidth:i}},[`${a}-pagination${a}-pagination`]:{margin:0,padding:e.paddingXS}},[`${o}[disabled]`]:{backgroundColor:"transparent"}}}},PZ=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},gst=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:Object.assign({},PZ(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},PZ(e,e.colorWarning))}},vst=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:i,itemHeight:a,headerHeight:o,transferHeaderVerticalPadding:s,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,colorTextSecondary:f,listHeight:p,listWidth:h,listWidthLG:m,fontSizeIcon:g,marginXS:v,paddingSM:y,lineType:b,antCls:w,iconCls:_,motionDurationSlow:k,controlItemBgHover:S,borderRadiusLG:C,colorBgContainer:E,colorText:$,controlItemBgActiveHover:M}=e,P=Me(e.calc(C).sub(i).equal());return{display:"flex",flexDirection:"column",width:h,height:p,border:`${Me(i)} ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:m,height:"auto"},"&-search":{[`${_}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:o,padding:`${Me(e.calc(s).sub(i).equal())} ${Me(y)} ${Me(s)}`,color:$,background:E,borderBottom:`${Me(i)} ${b} ${r}`,borderRadius:`${Me(C)} ${Me(C)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},oo),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},yh()),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:y}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${P} ${P}`,"&-item":{display:"flex",alignItems:"center",minHeight:a,padding:`${Me(l)} ${Me(y)}`,transition:`all ${k}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},oo),{flex:"auto"}),"&-remove":Object.assign(Object.assign({},HL(e)),{color:n,"&:hover, &:focus":{color:f}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:S,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:M}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${Me(i)} ${b} ${r}`,[`${w}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${Me(i)} ${b} ${r}`},"&-checkbox":{lineHeight:1}}},yst=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:i,marginXXS:a,fontSizeIcon:o,colorBgContainerDisabled:s}=e;return{[r]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:s}},[`${r}-list`]:vst(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${Me(i)}`,verticalAlign:"middle",gap:a,[`${t}-btn ${n}`]:{fontSize:o}}})}},bst=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},wst=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:i,lineWidth:a}=e,o=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:i,itemHeight:r,itemPaddingBlock:(r-o)/2,transferHeaderVerticalPadding:Math.ceil((i-a-o)/2)}},xst=Jn("Transfer",e=>{const t=Hn(e);return[yst(t),mst(t),gst(t),bst(t)]},wst),X8=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:i=[],operations:a=[],style:o={},listStyle:s={},locale:l={},titles:c,disabled:u,showSearch:f=!1,operationStyle:p,showSelectAll:h,oneWay:m,pagination:g,status:v,prefixCls:y,className:b,rootClassName:w,selectionsIcon:_,filterOption:k,render:S,footer:C,children:E,rowKey:$,onScroll:M,onChange:P,onSearch:I,onSelectChange:O}=e,{getPrefixCls:A,renderEmpty:R,direction:j,transfer:N}=d.useContext(Zt),D=A("transfer",y),[V,F,K]=xst(D),[B,U,Z]=nst(t,$,n),[ee,ie,Y,X]=ist(U,Z,r),[ae,oe]=yZ(Ne=>Ne.key),[le,ce]=yZ(Ne=>Ne.key),pe=d.useCallback((Ne,He)=>{if(Ne==="left"){const Le=typeof He=="function"?He(ee||[]):He;Y(Le)}else{const Le=typeof He=="function"?He(ie||[]):He;X(Le)}},[ee,ie]),me=(Ne,He)=>{(Ne==="left"?oe:ce)(He)},re=d.useCallback((Ne,He)=>{Ne==="left"?O==null||O(He,ie):O==null||O(ee,He)},[ee,ie]),fe=Ne=>{var He;return(He=c??Ne.titles)!==null&&He!==void 0?He:[]},ve=Ne=>{M==null||M("left",Ne)},$e=Ne=>{M==null||M("right",Ne)},Ce=Ne=>{const He=Ne==="right"?ee:ie,Le=tst(B),Qe=He.filter(Ot=>!Le.has(Ot)),ht=O6(Qe),xt=Ne==="right"?Qe.concat(n):n.filter(Ot=>!ht.has(Ot)),Nt=Ne==="right"?"left":"right";pe(Nt,[]),re(Nt,[]),P==null||P(xt,Ne,Qe)},be=()=>{Ce("left"),me("left",null)},Se=()=>{Ce("right"),me("right",null)},we=(Ne,He,Le)=>{pe(Ne,Qe=>{let ht=[];if(Le==="replace")ht=He;else if(Le)ht=Array.from(new Set([].concat(ct(Qe),ct(He))));else{const xt=O6(He);ht=Qe.filter(Nt=>!xt.has(Nt))}return re(Ne,ht),ht}),me(Ne,null)},se=(Ne,He)=>{we("left",Ne,He)},ye=(Ne,He)=>{we("right",Ne,He)},Oe=Ne=>I==null?void 0:I("left",Ne.target.value),z=Ne=>I==null?void 0:I("right",Ne.target.value),H=()=>I==null?void 0:I("left",""),G=()=>I==null?void 0:I("right",""),de=(Ne,He,Le,Qe,ht)=>{He.has(Le)&&(He.delete(Le),me(Ne,null)),Qe&&(He.add(Le),me(Ne,ht))},xe=(Ne,He,Le,Qe)=>{(Ne==="left"?ae:le)(Qe,He,Le)},he=(Ne,He,Le,Qe)=>{const ht=Ne==="left",xt=ct(ht?ee:ie),Nt=new Set(xt),Ot=ct(ht?U:Z).filter(Ct=>!(Ct!=null&&Ct.disabled)),Pt=Ot.findIndex(Ct=>Ct.key===He);Qe&&xt.length>0?xe(Ne,Ot,Nt,Pt):de(Ne,Nt,He,Le,Pt);const lt=Array.from(Nt);re(Ne,lt),e.selectedKeys||pe(Ne,lt)},Ue=(Ne,He,Le)=>{he("left",Ne,He,Le==null?void 0:Le.shiftKey)},We=(Ne,He,Le)=>{he("right",Ne,He,Le==null?void 0:Le.shiftKey)},ge=Ne=>{pe("right",[]),P==null||P(n.filter(He=>!Ne.includes(He)),"left",ct(Ne))},ze=Ne=>typeof s=="function"?s({direction:Ne}):s||{},Ve=d.useContext(sa),{hasFeedback:Be,status:Xe}=Ve,Ke=Ne=>Object.assign(Object.assign(Object.assign({},Ne),{notFoundContent:(R==null?void 0:R("Transfer"))||te.createElement(Vg,{componentName:"Transfer"})}),l),qe=ku(Xe,v),Et=!E&&g,dt=Z.filter(Ne=>ie.includes(Ne.key)&&!Ne.disabled).length>0,vt=U.filter(Ne=>ee.includes(Ne.key)&&!Ne.disabled).length>0,Ze=Ee(D,{[`${D}-disabled`]:u,[`${D}-customize-list`]:!!E,[`${D}-rtl`]:j==="rtl"},jl(D,qe,Be),N==null?void 0:N.className,b,w,F,K),[nt]=Xa("Transfer",Us.Transfer),jt=Ke(nt),[Lt,Bt]=fe(jt),Ht=_??(N==null?void 0:N.selectionsIcon);return V(te.createElement("div",{className:Ze,style:Object.assign(Object.assign({},N==null?void 0:N.style),o)},te.createElement(Zj,Object.assign({prefixCls:`${D}-list`,titleText:Lt,dataSource:U,filterOption:k,style:ze("left"),checkedKeys:ee,handleFilter:Oe,handleClear:H,onItemSelect:Ue,onItemSelectAll:se,render:S,showSearch:f,renderList:E,footer:C,onScroll:ve,disabled:u,direction:j==="rtl"?"right":"left",showSelectAll:h,selectAllLabel:i[0],pagination:Et,selectionsIcon:Ht},jt)),te.createElement(jve,{className:`${D}-operation`,rightActive:vt,rightArrowText:a[0],moveToRight:Se,leftActive:dt,leftArrowText:a[1],moveToLeft:be,style:p,disabled:u,direction:j,oneWay:m}),te.createElement(Zj,Object.assign({prefixCls:`${D}-list`,titleText:Bt,dataSource:Z,filterOption:k,style:ze("right"),checkedKeys:ie,handleFilter:z,handleClear:G,onItemSelect:We,onItemSelectAll:ye,onItemRemove:ge,render:S,showSearch:f,renderList:E,footer:C,onScroll:$e,disabled:u,direction:j==="rtl"?"left":"right",showSelectAll:h,selectAllLabel:i[1],showRemove:m,pagination:Et,selectionsIcon:Ht},jt))))};X8.List=Zj;X8.Search=Rve;X8.Operation=jve;const Sst=function(e){var t=d.useRef({valueLabels:new Map});return d.useMemo(function(){var n=t.current.valueLabels,r=new Map,i=e.map(function(a){var o=a.value,s=a.label,l=s??n.get(o);return r.set(o,l),q(q({},a),{},{label:l})});return t.current.valueLabels=r,[i]},[e])};var Cst=function(t,n,r,i){return d.useMemo(function(){var a=function(h){return h.map(function(m){var g=m.value;return g})},o=a(t),s=a(n),l=o.filter(function(p){return!i[p]}),c=o,u=s;if(r){var f=bf(o,!0,i);c=f.checkedKeys,u=f.halfCheckedKeys}return[Array.from(new Set([].concat(ct(l),ct(c)))),u]},[t,n,r,i])},_st=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},kst=function(t){var n=t||{},r=n.label,i=n.value,a=n.children;return{_title:r?[r]:["title","label"],value:i||"value",key:i||"value",children:a||"children"}},Qj=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},Est=function(t,n){var r=[],i=function a(o){o.forEach(function(s){var l=s[n.children];l&&(r.push(s[n.value]),a(l))})};return i(t),r},OZ=function(t){return t==null};const $st=function(e,t){return d.useMemo(function(){var n=F8(e,{fieldNames:t,initWrapper:function(i){return q(q({},i),{},{valueEntities:new Map})},processEntity:function(i,a){var o=i.node[t.value];a.valueEntities.set(o,i)}});return n},[e,t])};var dz=function(){return null},Mst=["children","value"];function Nve(e){return Zi(e).map(function(t){if(!d.isValidElement(t)||!t.type)return null;var n=t,r=n.key,i=n.props,a=i.children,o=i.value,s=Ut(i,Mst),l=q({key:r,value:o},s),c=Nve(a);return c.length&&(l.children=c),l}).filter(function(t){return t})}function Jj(e){if(!e)return e;var t=q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return zr(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function Tst(e,t,n,r,i,a){var o=null,s=null;function l(){function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map(function(h,m){var g="".concat(f,"-").concat(m),v=h[a.value],y=n.includes(v),b=c(h[a.children]||[],g,y),w=d.createElement(dz,h,b.map(function(k){return k.node}));if(t===v&&(o=w),y){var _={pos:g,node:w,children:b};return p||s.push(_),_}return null}).filter(function(h){return h})}s||(s=[],c(r),s.sort(function(u,f){var p=u.node.props.value,h=f.node.props.value,m=n.indexOf(p),g=n.indexOf(h);return m-g}))}Object.defineProperty(e,"triggerNode",{get:function(){return zr(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),o}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return zr(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),i?s:s.map(function(u){var f=u.node;return f})}})}var Pst=function(t,n,r){var i=r.fieldNames,a=r.treeNodeFilterProp,o=r.filterTreeNode,s=i.children;return d.useMemo(function(){if(!n||o===!1)return t;var l=typeof o=="function"?o:function(u,f){return String(f[a]).toUpperCase().includes(n.toUpperCase())},c=function u(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f.reduce(function(h,m){var g=m[s],v=p||l(n,Jj(m)),y=u(g||[],v);return(v||y.length)&&h.push(q(q({},m),{},ne({isLeaf:void 0},s,y))),h},[])};return c(t)},[t,n,s,a,o])};function IZ(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function Ost(e,t){var n=t.id,r=t.pId,i=t.rootPId,a=new Map,o=[];return e.forEach(function(s){var l=s[n],c=q(q({},s),{},{key:s.key||l});a.set(l,c)}),a.forEach(function(s){var l=s[r],c=a.get(l);c?(c.children=c.children||[],c.children.push(s)):(l===i||i===null)&&o.push(s)}),o}function Ist(e,t,n){return d.useMemo(function(){if(e){if(n){var r=q({id:"id",pId:"pId",rootPId:null},Kt(n)==="object"?n:{});return Ost(e,r)}return e}return Nve(t)},[t,n,e])}var Ave=d.createContext(null),Dve=d.createContext(null),Rst={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},jst=function(t,n){var r=cB(),i=r.prefixCls,a=r.multiple,o=r.searchValue,s=r.toggleOpen,l=r.open,c=r.notFoundContent,u=d.useContext(Dve),f=u.virtual,p=u.listHeight,h=u.listItemHeight,m=u.listItemScrollOffset,g=u.treeData,v=u.fieldNames,y=u.onSelect,b=u.dropdownMatchSelectWidth,w=u.treeExpandAction,_=u.treeTitleRender,k=u.onPopupScroll,S=u.leftMaxCount,C=u.leafCountOnly,E=u.valueEntities,$=d.useContext(Ave),M=$.checkable,P=$.checkedKeys,I=$.halfCheckedKeys,O=$.treeExpandedKeys,A=$.treeDefaultExpandAll,R=$.treeDefaultExpandedKeys,j=$.onTreeExpand,N=$.treeIcon,D=$.showTreeIcon,V=$.switcherIcon,F=$.treeLine,K=$.treeNodeFilterProp,B=$.loadData,U=$.treeLoadedKeys,Z=$.treeMotion,ee=$.onTreeLoad,ie=$.keyEntities,Y=d.useRef(),X=ug(function(){return g},[l,g],function(Ke,qe){return qe[0]&&Ke[1]!==qe[1]}),ae=d.useMemo(function(){return M?{checked:P,halfChecked:I}:null},[M,P,I]);d.useEffect(function(){if(l&&!a&&P.length){var Ke;(Ke=Y.current)===null||Ke===void 0||Ke.scrollTo({key:P[0]})}},[l]);var oe=function(qe){qe.preventDefault()},le=function(qe,Et){var dt=Et.node;M&&Qj(dt)||(y(dt.key,{selected:!P.includes(dt.key)}),a||s(!1))},ce=d.useState(R),pe=Te(ce,2),me=pe[0],re=pe[1],fe=d.useState(null),ve=Te(fe,2),$e=ve[0],Ce=ve[1],be=d.useMemo(function(){return O?ct(O):o?$e:me},[me,$e,O,o]),Se=function(qe){re(qe),Ce(qe),j&&j(qe)},we=String(o).toLowerCase(),se=function(qe){return we?String(qe[K]).toLowerCase().includes(we):!1};d.useEffect(function(){o&&Ce(Est(g,v))},[o]);var ye=d.useState(function(){return new Map}),Oe=Te(ye,2),z=Oe[0],H=Oe[1];d.useEffect(function(){S&&H(new Map)},[S]);function G(Ke){var qe=Ke[v.value];if(!z.has(qe)){var Et=E.get(qe),dt=(Et.children||[]).length===0;if(dt)z.set(qe,!1);else{var vt=Et.children.filter(function(nt){return!nt.node.disabled&&!nt.node.disableCheckbox&&!P.includes(nt.node[v.value])}),Ze=vt.length;z.set(qe,Ze>S)}}return z.get(qe)}var de=Vn(function(Ke){var qe=Ke[v.value];return P.includes(qe)||S===null?!1:S<=0?!0:C&&S?G(Ke):!1}),xe=function Ke(qe){var Et=ed(qe),dt;try{for(Et.s();!(dt=Et.n()).done;){var vt=dt.value;if(!(vt.disabled||vt.selectable===!1)){if(o){if(se(vt))return vt}else return vt;if(vt[v.children]){var Ze=Ke(vt[v.children]);if(Ze)return Ze}}}}catch(nt){Et.e(nt)}finally{Et.f()}return null},he=d.useState(null),Ue=Te(he,2),We=Ue[0],ge=Ue[1],ze=ie[We];d.useEffect(function(){if(l){var Ke=null,qe=function(){var dt=xe(X);return dt?dt[v.value]:null};!a&&P.length&&!o?Ke=P[0]:Ke=qe(),ge(Ke)}},[l,o]),d.useImperativeHandle(n,function(){var Ke;return{scrollTo:(Ke=Y.current)===null||Ke===void 0?void 0:Ke.scrollTo,onKeyDown:function(Et){var dt,vt=Et.which;switch(vt){case gt.UP:case gt.DOWN:case gt.LEFT:case gt.RIGHT:(dt=Y.current)===null||dt===void 0||dt.onKeyDown(Et);break;case gt.ENTER:{if(ze){var Ze=de(ze.node),nt=(ze==null?void 0:ze.node)||{},jt=nt.selectable,Lt=nt.value,Bt=nt.disabled;jt!==!1&&!Bt&&!Ze&&le(null,{node:{key:We},selected:!P.includes(Lt)})}break}case gt.ESC:s(!1)}},onKeyUp:function(){}}});var Ve=ug(function(){return!o},[o,O||me],function(Ke,qe){var Et=Te(Ke,1),dt=Et[0],vt=Te(qe,2),Ze=vt[0],nt=vt[1];return dt!==Ze&&!!(Ze||nt)}),Be=Ve?B:null;if(X.length===0)return d.createElement("div",{role:"listbox",className:"".concat(i,"-empty"),onMouseDown:oe},c);var Xe={fieldNames:v};return U&&(Xe.loadedKeys=U),be&&(Xe.expandedKeys=be),d.createElement("div",{onMouseDown:oe},ze&&l&&d.createElement("span",{style:Rst,"aria-live":"assertive"},ze.node.value),d.createElement(_ve.Provider,{value:{nodeDisabled:de}},d.createElement(Y8,tt({ref:Y,focusable:!1,prefixCls:"".concat(i,"-tree"),treeData:X,height:p,itemHeight:h,itemScrollOffset:m,virtual:f!==!1&&b!==!1,multiple:a,icon:N,showIcon:D,switcherIcon:V,showLine:F,loadData:Be,motion:Z,activeKey:We,checkable:M,checkStrictly:!0,checkedKeys:ae,selectedKeys:M?[]:P,defaultExpandAll:A,titleRender:_},Xe,{onActiveChange:ge,onSelect:le,onCheck:le,onExpand:Se,onLoad:ee,filterTreeNode:se,expandAction:w,onScroll:k}))))},Nst=d.forwardRef(jst),fz="SHOW_ALL",pz="SHOW_PARENT",Z8="SHOW_CHILD";function RZ(e,t,n,r){var i=new Set(e);return t===Z8?e.filter(function(a){var o=n[a];return!o||!o.children||!o.children.some(function(s){var l=s.node;return i.has(l[r.value])})||!o.children.every(function(s){var l=s.node;return Qj(l)||i.has(l[r.value])})}):t===pz?e.filter(function(a){var o=n[a],s=o?o.parent:null;return!s||Qj(s.node)||!i.has(s.key)}):e}var Ast=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function Dst(e){return!e||Kt(e)!=="object"}var Fst=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tree-select":r,a=e.value,o=e.defaultValue,s=e.onChange,l=e.onSelect,c=e.onDeselect,u=e.searchValue,f=e.inputValue,p=e.onSearch,h=e.autoClearSearchValue,m=h===void 0?!0:h,g=e.filterTreeNode,v=e.treeNodeFilterProp,y=v===void 0?"value":v,b=e.showCheckedStrategy,w=e.treeNodeLabelProp,_=e.multiple,k=e.treeCheckable,S=e.treeCheckStrictly,C=e.labelInValue,E=e.maxCount,$=e.fieldNames,M=e.treeDataSimpleMode,P=e.treeData,I=e.children,O=e.loadData,A=e.treeLoadedKeys,R=e.onTreeLoad,j=e.treeDefaultExpandAll,N=e.treeExpandedKeys,D=e.treeDefaultExpandedKeys,V=e.onTreeExpand,F=e.treeExpandAction,K=e.virtual,B=e.listHeight,U=B===void 0?200:B,Z=e.listItemHeight,ee=Z===void 0?20:Z,ie=e.listItemScrollOffset,Y=ie===void 0?0:ie,X=e.onDropdownVisibleChange,ae=e.dropdownMatchSelectWidth,oe=ae===void 0?!0:ae,le=e.treeLine,ce=e.treeIcon,pe=e.showTreeIcon,me=e.switcherIcon,re=e.treeMotion,fe=e.treeTitleRender,ve=e.onPopupScroll,$e=Ut(e,Ast),Ce=mB(n),be=k&&!S,Se=k||S,we=S||C,se=Se||_,ye=In(o,{value:a}),Oe=Te(ye,2),z=Oe[0],H=Oe[1],G=d.useMemo(function(){return k?b||Z8:fz},[b,k]),de=d.useMemo(function(){return kst($)},[JSON.stringify($)]),xe=In("",{value:u!==void 0?u:f,postState:function(De){return De||""}}),he=Te(xe,2),Ue=he[0],We=he[1],ge=function(De){We(De),p==null||p(De)},ze=Ist(P,I,M),Ve=$st(ze,de),Be=Ve.keyEntities,Xe=Ve.valueEntities,Ke=d.useCallback(function(ft){var De=[],Ye=[];return ft.forEach(function(st){Xe.has(st)?Ye.push(st):De.push(st)}),{missingRawValues:De,existRawValues:Ye}},[Xe]),qe=Pst(ze,Ue,{fieldNames:de,treeNodeFilterProp:y,filterTreeNode:g}),Et=d.useCallback(function(ft){if(ft){if(w)return ft[w];for(var De=de._title,Ye=0;YePt)){var Ie=vt(ft);if(H(Ie),m&&We(""),s){var Rt=ft;be&&(Rt=st.map(function(je){var it=Xe.get(je);return it?it.node[de.value]:je}));var rt=De||{triggerValue:void 0,selected:void 0},$t=rt.triggerValue,Mt=rt.selected,cn=Rt;if(S){var fn=Bt.filter(function(je){return!Rt.includes(je.value)});cn=[].concat(ct(cn),ct(fn))}var T=vt(cn),L={preValue:Lt,triggerValue:$t},J=!0;(S||Ye==="selection"&&!Mt)&&(J=!1),Tst(L,$t,ft,ze,J,de),Se?L.checked=Mt:L.selected=Mt;var ke=we?T:T.map(function(je){return je.value});s(se?ke:ke[0],we?null:T.map(function(je){return je.label}),L)}}}),Ct=d.useCallback(function(ft,De){var Ye,st=De.selected,Ie=De.source,Rt=Be[ft],rt=Rt==null?void 0:Rt.node,$t=(Ye=rt==null?void 0:rt[de.value])!==null&&Ye!==void 0?Ye:ft;if(!se)lt([$t],{selected:!0,triggerValue:$t},"option");else{var Mt=st?[].concat(ct(Ht),[$t]):Le.filter(function(it){return it!==$t});if(be){var cn=Ke(Mt),fn=cn.missingRawValues,T=cn.existRawValues,L=T.map(function(it){return Xe.get(it).key}),J;if(st){var ke=bf(L,!0,Be);J=ke.checkedKeys}else{var je=bf(L,{checked:!1,halfCheckedKeys:Qe},Be);J=je.checkedKeys}Mt=[].concat(ct(fn),ct(J.map(function(it){return Be[it].node[de.value]})))}lt(Mt,{selected:st,triggerValue:$t},Ie||"option")}st||!se?l==null||l($t,Jj(rt)):c==null||c($t,Jj(rt))},[Ke,Xe,Be,de,se,Ht,lt,be,l,c,Le,Qe,E]),kt=d.useCallback(function(ft){if(X){var De={};Object.defineProperty(De,"documentClickClose",{get:function(){return zr(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),X(ft,De)}},[X]),qt=IZ(function(ft,De){var Ye=ft.map(function(st){return st.value});if(De.type==="clear"){lt(Ye,{},"selection");return}De.values.length&&Ct(De.values[0].value,{selected:!1,source:"selection"})}),yt=d.useMemo(function(){return{virtual:K,dropdownMatchSelectWidth:oe,listHeight:U,listItemHeight:ee,listItemScrollOffset:Y,treeData:qe,fieldNames:de,onSelect:Ct,treeExpandAction:F,treeTitleRender:fe,onPopupScroll:ve,leftMaxCount:E===void 0?null:E-Ot.length,leafCountOnly:G==="SHOW_CHILD"&&!S&&!!k,valueEntities:Xe}},[K,oe,U,ee,Y,qe,de,Ct,F,fe,ve,E,Ot.length,G,S,k,Xe]),At=d.useMemo(function(){return{checkable:Se,loadData:O,treeLoadedKeys:A,onTreeLoad:R,checkedKeys:Le,halfCheckedKeys:Qe,treeDefaultExpandAll:j,treeExpandedKeys:N,treeDefaultExpandedKeys:D,onTreeExpand:V,treeIcon:ce,treeMotion:re,showTreeIcon:pe,switcherIcon:me,treeLine:le,treeNodeFilterProp:y,keyEntities:Be}},[Se,O,A,R,Le,Qe,j,N,D,V,ce,re,pe,me,le,y,Be]);return d.createElement(Dve.Provider,{value:yt},d.createElement(Ave.Provider,{value:At},d.createElement(dB,tt({ref:t},$e,{id:Ce,prefixCls:i,mode:se?"multiple":void 0,displayValues:Ot,onDisplayValuesChange:qt,searchValue:Ue,onSearch:ge,OptionList:Nst,emptyOptions:!ze.length,onDropdownVisibleChange:kt,dropdownMatchSelectWidth:oe}))))}),D4=Fst;D4.TreeNode=dz;D4.SHOW_ALL=fz;D4.SHOW_PARENT=pz;D4.SHOW_CHILD=Z8;const Lst=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${Me(e.paddingXS)} ${Me(e.calc(e.paddingXS).div(2).equal())}`},$ve(n,Hn(e,{colorBgContainer:r})),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:"stretch",[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:"auto"}}}}},L8(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Bst(e,t,n){return Jn("TreeSelect",r=>{const i=Hn(r,{treePrefixCls:t});return[Lst(i)]},Mve)(e,n)}var zst=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,size:i,disabled:a,bordered:o=!0,className:s,rootClassName:l,treeCheckable:c,multiple:u,listHeight:f=256,listItemHeight:p,placement:h,notFoundContent:m,switcherIcon:g,treeLine:v,getPopupContainer:y,popupClassName:b,dropdownClassName:w,treeIcon:_=!1,transitionName:k,choiceTransitionName:S="",status:C,treeExpandAction:E,builtinPlacements:$,dropdownMatchSelectWidth:M,popupMatchSelectWidth:P,allowClear:I,variant:O,dropdownStyle:A,tagRender:R,maxCount:j,showCheckedStrategy:N,treeCheckStrictly:D}=e,V=zst(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:F,getPrefixCls:K,renderEmpty:B,direction:U,virtual:Z,popupMatchSelectWidth:ee,popupOverflow:ie}=d.useContext(Zt),[,Y]=$a(),X=p??(Y==null?void 0:Y.controlHeightSM)+(Y==null?void 0:Y.paddingXXS),ae=K(),oe=K("select",r),le=K("select-tree",r),ce=K("tree-select",r),{compactSize:pe,compactItemClassnames:me}=_u(oe,U),re=qr(oe),fe=qr(ce),[ve,$e,Ce]=yB(oe,re),[be]=Bst(ce,le,fe),[Se,we]=Md("treeSelect",O,o),se=Ee(b||w,`${ce}-dropdown`,{[`${ce}-dropdown-rtl`]:U==="rtl"},l,Ce,re,fe,$e),ye=!!(c||u),Oe=d.useMemo(()=>{if(!(j&&(N==="SHOW_ALL"&&!D||N==="SHOW_PARENT")))return j},[j,N,D]),z=bB(e.suffixIcon,e.showArrow),H=(n=P??M)!==null&&n!==void 0?n:ee,{status:G,hasFeedback:de,isFormItemInput:xe,feedbackIcon:he}=d.useContext(sa),Ue=ku(G,C),{suffixIcon:We,removeIcon:ge,clearIcon:ze}=b8(Object.assign(Object.assign({},V),{multiple:ye,showSuffixIcon:z,hasFeedback:de,feedbackIcon:he,prefixCls:oe,componentName:"TreeSelect"})),Ve=I===!0?{clearIcon:ze}:I;let Be;m!==void 0?Be=m:Be=(B==null?void 0:B("Select"))||d.createElement(Vg,{componentName:"Select"});const Xe=$r(V,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ke=d.useMemo(()=>h!==void 0?h:U==="rtl"?"bottomRight":"bottomLeft",[h,U]),qe=Hi(Lt=>{var Bt;return(Bt=i??pe)!==null&&Bt!==void 0?Bt:Lt}),Et=d.useContext(ga),dt=a??Et,vt=Ee(!r&&ce,{[`${oe}-lg`]:qe==="large",[`${oe}-sm`]:qe==="small",[`${oe}-rtl`]:U==="rtl",[`${oe}-${Se}`]:we,[`${oe}-in-form-item`]:xe},jl(oe,Ue,de),me,s,l,Ce,re,fe,$e),Ze=Lt=>d.createElement(Tve,{prefixCls:le,switcherIcon:g,treeNodeProps:Lt,showLine:v}),[nt]=_c("SelectLike",A==null?void 0:A.zIndex),jt=d.createElement(D4,Object.assign({virtual:Z,disabled:dt},Xe,{dropdownMatchSelectWidth:H,builtinPlacements:vB($,ie),ref:t,prefixCls:oe,className:vt,listHeight:f,listItemHeight:X,treeCheckable:c&&d.createElement("span",{className:`${oe}-tree-checkbox-inner`}),treeLine:!!v,suffixIcon:We,multiple:ye,placement:Ke,removeIcon:ge,allowClear:Ve,switcherIcon:Ze,showTreeIcon:_,notFoundContent:Be,getPopupContainer:y||F,treeMotion:null,dropdownClassName:se,dropdownStyle:Object.assign(Object.assign({},A),{zIndex:nt}),choiceTransitionName:so(ae,"",S),transitionName:so(ae,"slide-up",k),treeExpandAction:E,tagRender:ye?R:void 0,maxCount:Oe,showCheckedStrategy:N,treeCheckStrictly:D}));return ve(be(jt))},Ust=d.forwardRef(Hst),Qg=Ust,Wst=Gf(Qg,"dropdownAlign",e=>$r(e,["visible"]));Qg.TreeNode=dz;Qg.SHOW_ALL=fz;Qg.SHOW_PARENT=pz;Qg.SHOW_CHILD=Z8;Qg._InternalPanelDoNotUseOrYouWillBeFired=Wst;const Vst=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},qst=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Me(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Me(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Me(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},xg(e)),LB(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},T4(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},ttt=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Me(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Me(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Me(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},ntt=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Me(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ttt(e)),ett(e)),Jet(e)),Qet(e)),Zet(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},rtt=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Vs(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},yc(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},yc(e))}}}},U1e=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},jy(e)),W1e=e=>Hn(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Iy(e)),itt=Jn("Pagination",e=>{const t=W1e(e);return[ntt(t),rtt(t)]},U1e),att=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},ott=Sy(["Pagination","bordered"],e=>{const t=W1e(e);return[att(t)]},U1e);function iZ(e){return d.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var stt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:f,pageSizeOptions:p}=e,h=stt(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:m}=$4(c),[,g]=ka(),{getPrefixCls:v,direction:y,pagination:w={}}=d.useContext(Xt),b=v("pagination",n),[C,k,S]=itt(b),_=Bi(s),E=_==="small"||!!(m&&!_&&c),[$]=Ga("Pagination",hfe),M=Object.assign(Object.assign({},$),l),[P,R]=iZ(u),[O,j]=iZ(w.showSizeChanger),I=P??O,A=R??j,N=f||Yf,F=d.useMemo(()=>p?p.map(Y=>Number(Y)):void 0,[p]),K=Y=>{var ee;const{disabled:ie,size:Z,onSizeChange:X,"aria-label":ae,className:oe,options:le}=Y,{className:ce,onChange:pe}=A||{},me=(ee=le.find(re=>String(re.value)===String(Z)))===null||ee===void 0?void 0:ee.value;return d.createElement(N,Object.assign({disabled:ie,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:re=>re.parentNode,"aria-label":ae,options:le},A,{value:me,onChange:(re,fe)=>{X==null||X(re),pe==null||pe(re,fe)},size:E?"small":"middle",className:Ee(oe,ce)}))},L=d.useMemo(()=>{const Y=d.createElement("span",{className:`${b}-item-ellipsis`},"•••"),ee=d.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},y==="rtl"?d.createElement(bc,null):d.createElement(Nf,null)),ie=d.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},y==="rtl"?d.createElement(Nf,null):d.createElement(bc,null)),Z=d.createElement("a",{className:`${b}-item-link`},d.createElement("div",{className:`${b}-item-container`},y==="rtl"?d.createElement(tZ,{className:`${b}-item-link-icon`}):d.createElement(eZ,{className:`${b}-item-link-icon`}),Y)),X=d.createElement("a",{className:`${b}-item-link`},d.createElement("div",{className:`${b}-item-container`},y==="rtl"?d.createElement(eZ,{className:`${b}-item-link-icon`}):d.createElement(tZ,{className:`${b}-item-link-icon`}),Y));return{prevIcon:ee,nextIcon:ie,jumpPrevIcon:Z,jumpNextIcon:X}},[y,b]),V=v("select",r),B=Ee({[`${b}-${t}`]:!!t,[`${b}-mini`]:E,[`${b}-rtl`]:y==="rtl",[`${b}-bordered`]:g.wireframe},w==null?void 0:w.className,i,a,k,S),U=Object.assign(Object.assign({},w==null?void 0:w.style),o);return C(d.createElement(d.Fragment,null,g.wireframe&&d.createElement(ott,{prefixCls:b}),d.createElement(Xet,Object.assign({},L,h,{style:U,prefixCls:b,selectPrefixCls:V,className:B,locale:M,pageSizeOptions:F,showSizeChanger:I,sizeChangerRender:K}))))},$6=100,V1e=$6/5,q1e=$6/2-V1e/2,iT=q1e*2*Math.PI,aZ=50,oZ=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return d.createElement("circle",{className:Ee(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:q1e,cx:aZ,cy:aZ,strokeWidth:V1e,style:n})},ltt=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,a=`${i}-hidden`,[o,s]=d.useState(!1);nr(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!o)return null;const c={strokeDashoffset:`${iT/4}`,strokeDasharray:`${iT*l/100} ${iT*(100-l)/100}`};return d.createElement("span",{className:Ee(i,`${r}-progress`,l<=0&&a)},d.createElement("svg",{viewBox:`0 0 ${$6} ${$6}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},d.createElement(oZ,{dotClassName:r,hasCircleCls:!0}),d.createElement(oZ,{dotClassName:r,style:c})))};function ctt(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return d.createElement(d.Fragment,null,d.createElement("span",{className:Ee(i,n>0&&a)},d.createElement("span",{className:Ee(r,`${t}-dot-spin`)},[1,2,3,4].map(o=>d.createElement("i",{className:`${t}-dot-item`,key:o})))),d.createElement(ltt,{prefixCls:t,percent:n}))}function utt(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&d.isValidElement(n)?aa(n,{className:Ee(n.props.className,i),percent:r}):d.createElement(ctt,{prefixCls:t,percent:r})}const dtt=new ir("antSpinMove",{to:{opacity:1}}),ftt=new ir("antRotate",{to:{transform:"rotate(405deg)"}}),ptt=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:dtt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:ftt,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},htt=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},mtt=Jn("Spin",e=>{const t=Hn(e,{spinDotDefault:e.colorTextDescription});return[ptt(t)]},htt),gtt=200,sZ=[[30,.05],[70,.03],[96,.01]];function vtt(e,t){const[n,r]=d.useState(0),i=d.useRef(null),a=t==="auto";return d.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(o=>{const s=100-o;for(let l=0;l{clearInterval(i.current)}),[a,e]),a?n:t}var ytt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:a,rootClassName:o,size:s="default",tip:l,wrapperClassName:c,style:u,children:f,fullscreen:p=!1,indicator:h,percent:m}=e,g=ytt(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:y,spin:w}=d.useContext(Xt),b=v("spin",n),[C,k,S]=mtt(b),[_,E]=d.useState(()=>r&&!btt(r,i)),$=vtt(_,m);d.useEffect(()=>{if(r){const A=QGe(i,()=>{E(!0)});return A(),()=>{var N;(N=A==null?void 0:A.cancel)===null||N===void 0||N.call(A)}}E(!1)},[i,r]);const M=d.useMemo(()=>typeof f<"u"&&!p,[f,p]),P=Ee(b,w==null?void 0:w.className,{[`${b}-sm`]:s==="small",[`${b}-lg`]:s==="large",[`${b}-spinning`]:_,[`${b}-show-text`]:!!l,[`${b}-rtl`]:y==="rtl"},a,!p&&o,k,S),R=Ee(`${b}-container`,{[`${b}-blur`]:_}),O=(t=h??(w==null?void 0:w.indicator))!==null&&t!==void 0?t:K1e,j=Object.assign(Object.assign({},w==null?void 0:w.style),u),I=d.createElement("div",Object.assign({},g,{style:j,className:P,"aria-live":"polite","aria-busy":_}),d.createElement(utt,{prefixCls:b,indicator:O,percent:$}),l&&(M||p)?d.createElement("div",{className:`${b}-text`},l):null);return C(M?d.createElement("div",Object.assign({},g,{className:Ee(`${b}-nested-loading`,c,k,S)}),_&&d.createElement("div",{key:"loading"},I),d.createElement("div",{className:R,key:"container"},f)):p?d.createElement("div",{className:Ee(`${b}-fullscreen`,{[`${b}-fullscreen-show`]:_},o,k,S)},I):I)};Zo.setDefaultIndicator=e=>{K1e=e};const tz=te.createContext({});tz.Consumer;var G1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,o=G1e(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=d.useContext(Xt),l=s("list",t),c=Ee(`${l}-item-meta`,n),u=te.createElement("div",{className:`${l}-item-meta-content`},i&&te.createElement("h4",{className:`${l}-item-meta-title`},i),a&&te.createElement("div",{className:`${l}-item-meta-description`},a));return te.createElement("div",Object.assign({},o,{className:c}),r&&te.createElement("div",{className:`${l}-item-meta-avatar`},r),(i||a)&&u)},xtt=te.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:a,styles:o,className:s,classNames:l,colStyle:c}=e,u=G1e(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:f,itemLayout:p}=d.useContext(tz),{getPrefixCls:h,list:m}=d.useContext(Xt),g=_=>{var E,$;return Ee(($=(E=m==null?void 0:m.item)===null||E===void 0?void 0:E.classNames)===null||$===void 0?void 0:$[_],l==null?void 0:l[_])},v=_=>{var E,$;return Object.assign(Object.assign({},($=(E=m==null?void 0:m.item)===null||E===void 0?void 0:E.styles)===null||$===void 0?void 0:$[_]),o==null?void 0:o[_])},y=()=>{let _=!1;return d.Children.forEach(r,E=>{typeof E=="string"&&(_=!0)}),_&&d.Children.count(r)>1},w=()=>p==="vertical"?!!a:!y(),b=h("list",n),C=i&&i.length>0&&te.createElement("ul",{className:Ee(`${b}-item-action`,g("actions")),key:"actions",style:v("actions")},i.map((_,E)=>te.createElement("li",{key:`${b}-item-action-${E}`},_,E!==i.length-1&&te.createElement("em",{className:`${b}-item-action-split`})))),k=f?"div":"li",S=te.createElement(k,Object.assign({},u,f?{}:{ref:t},{className:Ee(`${b}-item`,{[`${b}-item-no-flex`]:!w()},s)}),p==="vertical"&&a?[te.createElement("div",{className:`${b}-item-main`,key:"content"},r,C),te.createElement("div",{className:Ee(`${b}-item-extra`,g("extra")),key:"extra",style:v("extra")},a)]:[r,C,aa(a,{key:"extra"})]);return f?te.createElement(D0,{ref:t,flex:1,style:c},S):S}),Y1e=xtt;Y1e.Meta=wtt;const Stt=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:o,marginLG:s,borderRadiusLG:l}=e;return{[t]:{border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${Me(i)} ${Me(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},Ctt=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Me(o)}`}}}}}},_tt=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:o,padding:s,itemPadding:l,colorPrimary:c,itemPaddingSM:u,itemPaddingLG:f,paddingXS:p,margin:h,colorText:m,colorTextDescription:g,motionDurationSlow:v,lineWidth:y,headerBg:w,footerBg:b,emptyTextPadding:C,metaMarginBottom:k,avatarMarginRight:S,titleMarginBottom:_,descriptionFontSize:E}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:w},[`${t}-footer`]:{background:b},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:o,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:m,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:S},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${Me(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${v}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:E,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Me(p)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Me(s)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:C,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:h,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:k,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:_,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${Me(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},ktt=e=>({contentWidth:220,itemPadding:`${Me(e.paddingContentVertical)} 0`,itemPaddingSM:`${Me(e.paddingContentVerticalSM)} ${Me(e.paddingContentHorizontal)}`,itemPaddingLG:`${Me(e.paddingContentVerticalLG)} ${Me(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),Ett=Jn("List",e=>{const t=Hn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[_tt(t),Stt(t),Ctt(t)]},ktt);var $tt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i(we,se)=>{var ye;E(we),M(se),n&&((ye=n==null?void 0:n[Se])===null||ye===void 0||ye.call(n,we,se))},N=A("onChange"),F=A("onShowSizeChange"),K=(Se,we)=>{if(!b)return null;let se;return typeof w=="function"?se=w(Se):w?se=Se[w]:se=Se.key,se||(se=`list-item-${we}`),d.createElement(d.Fragment,{key:se},b(Se,we))},L=()=>!!(f||n||v),V=P("list",r),[B,U,Y]=Ett(V);let ee=y;typeof ee=="boolean"&&(ee={spinning:ee});const ie=!!(ee!=null&&ee.spinning),Z=Bi(m);let X="";switch(Z){case"large":X="lg";break;case"small":X="sm";break}const ae=Ee(V,{[`${V}-vertical`]:u==="vertical",[`${V}-${X}`]:X,[`${V}-split`]:a,[`${V}-bordered`]:i,[`${V}-loading`]:ie,[`${V}-grid`]:!!p,[`${V}-something-after-last-item`]:L(),[`${V}-rtl`]:O==="rtl"},j==null?void 0:j.className,o,s,U,Y),oe=Het(I,{total:h.length,current:_,pageSize:$},n||{}),le=Math.ceil(oe.total/oe.pageSize);oe.current>le&&(oe.current=le);const ce=n&&d.createElement("div",{className:Ee(`${V}-pagination`)},d.createElement(I4,Object.assign({align:"end"},oe,{onChange:N,onShowSizeChange:F})));let pe=lt(h);n&&h.length>(oe.current-1)*oe.pageSize&&(pe=lt(h).splice((oe.current-1)*oe.pageSize,oe.pageSize));const me=Object.keys(p||{}).some(Se=>["xs","sm","md","lg","xl","xxl"].includes(Se)),re=$4(me),fe=d.useMemo(()=>{for(let Se=0;Se{if(!p)return;const Se=fe&&p[fe]?p[fe]:p.column;if(Se)return{width:`${100/Se}%`,maxWidth:`${100/Se}%`}},[JSON.stringify(p),fe]);let $e=ie&&d.createElement("div",{style:{minHeight:53}});if(pe.length>0){const Se=pe.map((we,se)=>K(we,se));$e=p?d.createElement(z8,{gutter:p.gutter},d.Children.map(Se,we=>d.createElement("div",{key:we==null?void 0:we.key,style:ve},we))):d.createElement("ul",{className:`${V}-items`},Se)}else!c&&!ie&&($e=d.createElement("div",{className:`${V}-empty-text`},(C==null?void 0:C.emptyText)||(R==null?void 0:R("List"))||d.createElement(qg,{componentName:"List"})));const Ce=oe.position||"bottom",be=d.useMemo(()=>({grid:p,itemLayout:u}),[JSON.stringify(p),u]);return B(d.createElement(tz.Provider,{value:be},d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},j==null?void 0:j.style),l),className:ae},k),(Ce==="top"||Ce==="both")&&ce,g&&d.createElement("div",{className:`${V}-header`},g),d.createElement(Zo,Object.assign({},ee),$e,c),v&&d.createElement("div",{className:`${V}-footer`},v),f||(Ce==="bottom"||Ce==="both")&&ce)))}const Ttt=d.forwardRef(Mtt),Yn=Ttt;Yn.Item=Y1e;function Ptt(){var e=d.useState({id:0,callback:null}),t=Te(e,2),n=t[0],r=t[1],i=d.useCallback(function(a){r(function(o){var s=o.id;return{id:s+1,callback:a}})},[]);return d.useEffect(function(){var a;(a=n.callback)===null||a===void 0||a.call(n)},[n]),i}var X1e=d.createContext(null);function Ott(e){var t=d.useContext(X1e),n=t.notFoundContent,r=t.activeIndex,i=t.setActiveIndex,a=t.selectOption,o=t.onFocus,s=t.onBlur,l=t.onScroll,c=e.prefixCls,u=e.options,f=u[r]||{};return d.createElement(Kg,{prefixCls:"".concat(c,"-menu"),activeKey:f.key,onSelect:function(h){var m=h.key,g=u.find(function(v){var y=v.key;return y===m});a(g)},onFocus:o,onBlur:s,onScroll:l},u.map(function(p,h){var m=p.key,g=p.disabled,v=p.className,y=p.style,w=p.label;return d.createElement(bg,{key:m,disabled:g,className:v,style:y,onMouseEnter:function(){i(h)}},w)}),!u.length&&d.createElement(bg,{disabled:!0},n))}var Rtt={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},Itt=function(t){var n=t.prefixCls,r=t.options,i=t.children,a=t.visible,o=t.transitionName,s=t.getPopupContainer,l=t.dropdownClassName,c=t.direction,u=t.placement,f="".concat(n,"-dropdown"),p=d.createElement(Ott,{prefixCls:f,options:r}),h=d.useMemo(function(){var m;return c==="rtl"?m=u==="top"?"topLeft":"bottomLeft":m=u==="top"?"topRight":"bottomRight",m},[c,u]);return d.createElement($y,{prefixCls:f,popupVisible:a,popup:p,popupPlacement:h,popupTransitionName:o,builtinPlacements:Rtt,getPopupContainer:s,popupClassName:l},i)},jtt=function(){return null};function Ntt(e){var t=e.selectionStart;return e.value.slice(0,t)}function Att(e,t){return t.reduce(function(n,r){var i=e.lastIndexOf(r);return i>n.location?{location:i,prefix:r}:n},{location:-1,prefix:""})}function lZ(e){return(e||"").toLowerCase()}function Dtt(e,t,n){var r=e[0];if(!r||r===n)return e;for(var i=e,a=t.length,o=0;o=0)return[!0,"",st,Ct]}return[ae,pe,ve,Se]},[g,ae,B,We,pe,ve,Se]),Ve=Te(ze,4),Be=Ve[0],Xe=Ve[1],Ke=Ve[2],qe=Ve[3],Et=te.useCallback(function(Pt){var st;return m&&m.length>0?st=m.map(function(Ct){var kt;return q(q({},Ct),{},{key:(kt=Ct==null?void 0:Ct.key)!==null&&kt!==void 0?kt:Ct.value})}):st=Xi(h).map(function(Ct){var kt=Ct.props,qt=Ct.key;return q(q({},kt),{},{label:kt.children,key:qt||kt.value})}),st.filter(function(Ct){return C===!1?!0:C(Pt,Ct)})},[h,m,C]),ut=te.useMemo(function(){return Et(Xe)},[Et,Xe]),gt=Ptt(),Ze=function(st,Ct,kt){oe(!0),me(st),$e(Ct),we(kt),z(0)},nt=function(st){oe(!1),we(0),me(""),gt(st)},jt=function(st){ge(st),k==null||k(st)},Lt=function(st){var Ct=st.target.value;jt(Ct)},Bt=function(st){var Ct,kt=st.value,qt=kt===void 0?"":kt,vt=Ftt(We,{measureLocation:qe,targetText:qt,prefix:Ke,selectionStart:(Ct=ie())===null||Ct===void 0?void 0:Ct.selectionStart,split:l}),At=vt.text,dt=vt.selectionLocation;jt(At),nt(function(){Ltt(ie(),dt)}),M==null||M(st,Ke)},Ut=function(st){var Ct=st.which;if(S==null||S(st),!!Be){if(Ct===mt.UP||Ct===mt.DOWN){var kt=ut.length,qt=Ct===mt.UP?-1:1,vt=(Oe+qt+kt)%kt;z(vt),st.preventDefault()}else if(Ct===mt.ESC)nt();else if(Ct===mt.ENTER){if(st.preventDefault(),v)return;if(!ut.length){nt();return}var At=ut[Oe];Bt(At)}}},Ne=function(st){var Ct=st.key,kt=st.which,qt=st.target,vt=Ntt(qt),At=Att(vt,B),dt=At.location,De=At.prefix;if(_==null||_(st),[mt.ESC,mt.UP,mt.DOWN,mt.ENTER].indexOf(kt)===-1)if(dt!==-1){var Ye=vt.slice(dt+De.length),ot=w(Ye,l),Re=!!Et(Ye).length;ot?(Ct===De||Ct==="Shift"||kt===mt.ALT||Ct==="AltGraph"||Be||Ye!==Xe&&Re)&&Ze(Ye,De,dt):Be&&nt(),$&&ot&&$(Ye,De)}else Be&&nt()},He=function(st){!Be&&E&&E(st)},Le=d.useRef(),Qe=function(st){window.clearTimeout(Le.current),!de&&st&&P&&P(st),xe(!0)},pt=function(st){Le.current=window.setTimeout(function(){xe(!1),nt(),R==null||R(st)},0)},xt=function(){Qe()},Nt=function(){pt()},Ot=function(st){L==null||L(st)};return te.createElement("div",{className:Ee(n,r),style:i,ref:U},te.createElement(e1e,tt({ref:Y,value:We},V,{rows:K,onChange:Lt,onKeyDown:Ut,onKeyUp:Ne,onPressEnter:He,onFocus:Qe,onBlur:pt})),Be&&te.createElement("div",{ref:ee,className:"".concat(n,"-measure")},We.slice(0,qe),te.createElement(X1e.Provider,{value:{notFoundContent:u,activeIndex:Oe,setActiveIndex:z,selectOption:Bt,onFocus:xt,onBlur:Nt,onScroll:Ot}},te.createElement(Itt,{prefixCls:n,transitionName:O,placement:j,direction:I,options:ut,visible:!0,getPopupContainer:A,dropdownClassName:N},te.createElement("span",null,Ke))),We.slice(qe+Ke.length)))}),nz=d.forwardRef(function(e,t){var n=e.suffix,r=e.prefixCls,i=r===void 0?"rc-mentions":r,a=e.defaultValue,o=e.value,s=e.allowClear,l=e.onChange,c=e.classNames,u=e.className,f=e.disabled,p=e.onClear,h=Ht(e,Utt),m=d.useRef(null),g=d.useRef(null);d.useImperativeHandle(t,function(){var S,_;return q(q({},g.current),{},{nativeElement:((S=m.current)===null||S===void 0?void 0:S.nativeElement)||((_=g.current)===null||_===void 0?void 0:_.nativeElement)})});var v=jn("",{defaultValue:a,value:o}),y=Te(v,2),w=y[0],b=y[1],C=function(_){b(_),l==null||l(_)},k=function(){C("")};return te.createElement(U8,{suffix:n,prefixCls:i,value:w,allowClear:s,handleReset:k,className:u,classNames:c,disabled:f,ref:m,onClear:p},te.createElement(Wtt,tt({className:c==null?void 0:c.mentions,prefixCls:i,ref:g,onChange:C,disabled:f},h)))});nz.Option=jtt;function Z1e(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}const Vtt=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:r,controlPaddingHorizontal:i,colorText:a,motionDurationSlow:o,lineHeight:s,controlHeight:l,paddingInline:c,paddingBlock:u,fontSize:f,fontSizeIcon:p,colorTextTertiary:h,colorTextQuaternary:m,colorBgElevated:g,paddingXXS:v,paddingLG:y,borderRadius:w,borderRadiusLG:b,boxShadowSecondary:C,itemPaddingVertical:k,calc:S}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),xg(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:s,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),j8(e)),A8(e)),N8(e)),{"&-affix-wrapper":Object.assign(Object.assign({},xg(e)),{display:"inline-flex",padding:0,"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:c,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`&:has(${t}-suffix) > ${t} > textarea`]:{paddingInlineEnd:y},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:0,insetBlockStart:S(f).mul(s).mul(.5).add(u).equal(),transform:"translateY(-50%)",margin:0,padding:0,color:m,fontSize:p,verticalAlign:-1,cursor:"pointer",transition:`color ${o}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:h},"&:active":{color:a},"&-hidden":{visibility:"hidden"}}}),"&-disabled":{"> textarea":Object.assign({},T4(e))},[`&, &-affix-wrapper > ${t}`]:{[`> textarea, ${t}-measure`]:{color:a,boxSizing:"border-box",minHeight:e.calc(l).sub(2),margin:0,padding:`${Me(u)} ${Me(c)}`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":Object.assign({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"transparent"},D8(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}}},"&-dropdown":Object.assign(Object.assign({},ar(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:f,fontVariant:"initial",padding:v,backgroundColor:g,borderRadius:b,outline:"none",boxShadow:C,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":Object.assign(Object.assign({},ao),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${Me(k)} ${Me(i)}`,color:a,borderRadius:w,fontWeight:"normal",lineHeight:s,cursor:"pointer",transition:`background ${o} ease`,"&:hover":{backgroundColor:r},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:r,cursor:"not-allowed"}},"&-selected":{color:a,fontWeight:e.fontWeightStrong,backgroundColor:r},"&-active":{backgroundColor:r}})}})})}},qtt=e=>Object.assign(Object.assign({},jy(e)),{dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2}),Ktt=Jn("Mentions",e=>{const t=Hn(e,Iy(e));return[Vtt(t)]},qtt);var Gtt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,disabled:a,loading:o,filterOption:s,children:l,notFoundContent:c,options:u,status:f,allowClear:p=!1,popupClassName:h,style:m,variant:g}=e,v=Gtt(e,["prefixCls","className","rootClassName","disabled","loading","filterOption","children","notFoundContent","options","status","allowClear","popupClassName","style","variant"]),[y,w]=d.useState(!1),b=d.useRef(null),C=ga(t,b),{getPrefixCls:k,renderEmpty:S,direction:_,mentions:E}=d.useContext(Xt),{status:$,hasFeedback:M,feedbackIcon:P}=d.useContext(oa),R=Mu($,f),O=function(){v.onFocus&&v.onFocus.apply(v,arguments),w(!0)},j=function(){v.onBlur&&v.onBlur.apply(v,arguments),w(!1)},I=d.useMemo(()=>c!==void 0?c:(S==null?void 0:S("Select"))||d.createElement(qg,{componentName:"Select"}),[c,S]),A=d.useMemo(()=>o?d.createElement(Q1e,{value:"ANTD_SEARCHING",disabled:!0},d.createElement(Zo,{size:"small"})):l,[o,l]),N=o?[{value:"ANTD_SEARCHING",disabled:!0,label:d.createElement(Zo,{size:"small"})}]:u,F=o?Ytt:s,K=k("mentions",n),L=GB(p),V=qr(K),[B,U,Y]=Ktt(K,V),[ee,ie]=Od("mentions",g),Z=M&&d.createElement(d.Fragment,null,P),X=Ee(E==null?void 0:E.className,r,i,Y,V),ae=d.createElement(nz,Object.assign({silent:o,prefixCls:K,notFoundContent:I,className:X,disabled:a,allowClear:L,direction:_,style:Object.assign(Object.assign({},E==null?void 0:E.style),m)},v,{filterOption:F,onFocus:O,onBlur:j,dropdownClassName:Ee(h,i,U,Y,V),ref:C,options:N,suffix:Z,classNames:{mentions:Ee({[`${K}-disabled`]:a,[`${K}-focused`]:y,[`${K}-rtl`]:_==="rtl"},U),variant:Ee({[`${K}-${ee}`]:ie},Al(K,R)),affixWrapper:U}}),A);return B(ae)}),j4=Xtt;j4.Option=Q1e;const Ztt=Gf(j4,void 0,void 0,"mentions");j4._InternalPanelDoNotUseOrYouWillBeFired=Ztt;j4.getMentions=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:n="@",split:r=" "}=t,i=Z1e(n);return e.split(r).map(function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=null;return i.some(s=>a.slice(0,s.length)===s?(o=s,!0):!1),o!==null?{prefix:o,value:a.slice(o.length)}:null}).filter(a=>!!a&&!!a.value)};let tc=null,Em=e=>e(),s3=[],l3={};function cZ(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=l3,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:i}}const Qtt=te.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=d.useContext(Xt),a=l3.prefixCls||i("message"),o=d.useContext(Rj),[s,l]=fpe(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),o.message));return te.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),Jtt=te.forwardRef((e,t)=>{const[n,r]=te.useState(cZ),i=()=>{r(cZ)};te.useEffect(i,[]);const a=Zfe(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=te.createElement(Qtt,{ref:t,sync:i,messageConfig:n});return te.createElement(zn,{prefixCls:o,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)});function K8(){if(!tc){const e=document.createDocumentFragment(),t={fragment:e};tc=t,Em(()=>{YL()(te.createElement(Jtt,{ref:r=>{const{instance:i,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=a,K8())})}}),e)});return}tc.instance&&(s3.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Em(()=>{const r=tc.instance.open(Object.assign(Object.assign({},l3),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Em(()=>{tc==null||tc.instance.destroy(e.key)});break;default:Em(()=>{var r;const i=(r=tc.instance)[t].apply(r,lt(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),s3=[])}function ent(e){l3=Object.assign(Object.assign({},l3),e),Em(()=>{var t;(t=tc==null?void 0:tc.sync)===null||t===void 0||t.call(tc)})}function tnt(e){const t=GL(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return s3.push(i),()=>{r?Em(()=>{r()}):i.skipped=!0}});return K8(),t}function nnt(e,t){const n=GL(r=>{let i;const a={type:e,args:t,resolve:r,setCloseFn:o=>{i=o}};return s3.push(a),()=>{i?Em(()=>{i()}):a.skipped=!0}});return K8(),n}const rnt=e=>{s3.push({type:"destroy",key:e}),K8()},int=["success","info","warning","error","loading"],ant={open:tnt,destroy:rnt,config:ent,useMessage:ppe,_InternalPanelDoNotUseOrYouWillBeFired:rDe},c3=ant;int.forEach(e=>{c3[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:l}=e,c=ont(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=d.useContext(Xt),f=u(),p=t||u("modal"),h=qr(f),[m,g,v]=Jpe(p,h),y=`${p}-confirm`;let w={};return a?w={closable:i??!1,title:"",footer:"",children:d.createElement(the,Object.assign({},e,{prefixCls:p,confirmPrefixCls:y,rootPrefixCls:f,content:s}))}:w={closable:i??!0,title:o,footer:l!==null&&d.createElement(Gpe,Object.assign({},e)),children:s},m(d.createElement(Ipe,Object.assign({prefixCls:p,className:Ee(g,`${p}-pure-panel`,a&&y,a&&`${y}-${a}`,n,v,h)},c,{closeIcon:Kpe(p,r),closable:i},w)))},lnt=phe(snt);function J1e(e){return k4(ahe(e))}const yr=ehe;yr.useModal=uhe;yr.info=function(t){return k4(ohe(t))};yr.success=function(t){return k4(she(t))};yr.error=function(t){return k4(lhe(t))};yr.warning=J1e;yr.warn=J1e;yr.confirm=function(t){return k4(che(t))};yr.destroyAll=function(){for(;_m.length;){const t=_m.pop();t&&t()}};yr.config=vze;yr._InternalPanelDoNotUseOrYouWillBeFired=lnt;const cnt=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:f}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:o,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},unt=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},eve=Jn("Popconfirm",e=>cnt(e),unt,{resetStyle:!1});var dnt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:l="primary",icon:c=d.createElement(qf,null),showCancel:u=!0,close:f,onConfirm:p,onCancel:h,onPopupClick:m}=e,{getPrefixCls:g}=d.useContext(Xt),[v]=Ga("Popconfirm",Us.Popconfirm),y=I0(i),w=I0(a);return d.createElement("div",{className:`${t}-inner-content`,onClick:m},d.createElement("div",{className:`${t}-message`},c&&d.createElement("span",{className:`${t}-message-icon`},c),d.createElement("div",{className:`${t}-message-text`},y&&d.createElement("div",{className:`${t}-title`},y),w&&d.createElement("div",{className:`${t}-description`},w))),d.createElement("div",{className:`${t}-buttons`},u&&d.createElement(Yt,Object.assign({onClick:h,size:"small"},r),o||(v==null?void 0:v.cancelText)),d.createElement(iB,{buttonProps:Object.assign(Object.assign({size:"small"},XL(l)),n),actionFn:p,close:f,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(v==null?void 0:v.okText))))},fnt=e=>{const{prefixCls:t,placement:n,className:r,style:i}=e,a=dnt(e,["prefixCls","placement","className","style"]),{getPrefixCls:o}=d.useContext(Xt),s=o("popconfirm",t),[l]=eve(s);return l(d.createElement(Vhe,{placement:n,className:Ee(s,r),style:i,content:d.createElement(tve,Object.assign({prefixCls:s},a))}))};var pnt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o,s;const{prefixCls:l,placement:c="top",trigger:u="click",okType:f="primary",icon:p=d.createElement(qf,null),children:h,overlayClassName:m,onOpenChange:g,onVisibleChange:v,overlayStyle:y,styles:w,classNames:b}=e,C=pnt(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:k,popconfirm:S}=d.useContext(Xt),[_,E]=jn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),$=(F,K)=>{E(F,!0),v==null||v(F),g==null||g(F,K)},M=F=>{$(!1,F)},P=F=>{var K;return(K=e.onConfirm)===null||K===void 0?void 0:K.call(void 0,F)},R=F=>{var K;$(!1,F),(K=e.onCancel)===null||K===void 0||K.call(void 0,F)},O=(F,K)=>{const{disabled:L=!1}=e;L||$(F,K)},j=k("popconfirm",l),I=Ee(j,m,(i=S==null?void 0:S.classNames)===null||i===void 0?void 0:i.root,b==null?void 0:b.root),A=Ee((a=S==null?void 0:S.classNames)===null||a===void 0?void 0:a.body,b==null?void 0:b.body),[N]=eve(j);return N(d.createElement(wc,Object.assign({},$r(C,["title"]),{trigger:u,placement:c,onOpenChange:O,open:_,ref:t,classNames:{root:I,body:A},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(o=S==null?void 0:S.styles)===null||o===void 0?void 0:o.root),S==null?void 0:S.style),y),w==null?void 0:w.root),body:Object.assign(Object.assign({},(s=S==null?void 0:S.styles)===null||s===void 0?void 0:s.body),w==null?void 0:w.body)},content:d.createElement(tve,Object.assign({okType:f,icon:p},e,{prefixCls:j,close:M,onConfirm:P,onCancel:R})),"data-popover-inject":!0}),h))}),nve=hnt;nve._InternalPanelDoNotUseOrYouWillBeFired=fnt;var mnt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},gnt=function(){var t=d.useRef([]),n=d.useRef(null);return d.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(a){if(a){i=!0;var o=a.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(o.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},uZ=0,vnt=Ws();function ynt(){var e;return vnt?(e=uZ,uZ+=1):e="TEST_OR_SSR",e}const bnt=function(e){var t=d.useState(),n=Te(t,2),r=n[0],i=n[1];return d.useEffect(function(){i("rc_progress_".concat(ynt()))},[]),e||r};var dZ=function(t){var n=t.bg,r=t.children;return d.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function fZ(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)})}var wnt=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,a=e.radius,o=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,p=r&&Kt(r)==="object",h=p?"#FFF":void 0,m=u/2,g=d.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:m,cy:m,stroke:h,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:o,ref:t});if(!p)return g;var v="".concat(i,"-conic"),y=f?"".concat(180+f/2,"deg"):"0deg",w=fZ(r,(360-f)/360),b=fZ(r,1),C="conic-gradient(from ".concat(y,", ").concat(w.join(", "),")"),k="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(b.join(", "),")");return d.createElement(d.Fragment,null,d.createElement("mask",{id:v},g),d.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},d.createElement(dZ,{bg:k},d.createElement(dZ,{bg:C}))))}),k2=100,aT=function(t,n,r,i,a,o,s,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-o)/360),h=o===0?0:{bottom:0,top:180,left:90,right:-90}[s],m=(100-i)/100*n;c==="round"&&i!==100&&(m+=u/2,m>=n&&(m=n-.01));var g=k2/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:m+f,transform:"rotate(".concat(a+p+h,"deg)"),transformOrigin:"".concat(g,"px ").concat(g,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},xnt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function pZ(e){var t=e??[];return Array.isArray(t)?t:[t]}var Snt=function(t){var n=q(q({},mnt),t),r=n.id,i=n.prefixCls,a=n.steps,o=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,f=n.trailColor,p=n.strokeLinecap,h=n.style,m=n.className,g=n.strokeColor,v=n.percent,y=Ht(n,xnt),w=k2/2,b=bnt(r),C="".concat(b,"-gradient"),k=w-o/2,S=Math.PI*2*k,_=c>0?90+c/2:-90,E=S*((360-c)/360),$=Kt(a)==="object"?a:{count:a,gap:2},M=$.count,P=$.gap,R=pZ(v),O=pZ(g),j=O.find(function(V){return V&&Kt(V)==="object"}),I=j&&Kt(j)==="object",A=I?"butt":p,N=aT(S,E,0,100,_,c,u,f,A,o),F=gnt(),K=function(){var B=0;return R.map(function(U,Y){var ee=O[Y]||O[O.length-1],ie=aT(S,E,B,U,_,c,u,ee,A,o);return B+=U,d.createElement(wnt,{key:Y,color:ee,ptg:U,radius:k,prefixCls:i,gradientId:C,style:ie,strokeLinecap:A,strokeWidth:o,gapDegree:c,ref:function(X){F[Y]=X},size:k2})}).reverse()},L=function(){var B=Math.round(M*(R[0]/100)),U=100/M,Y=0;return new Array(M).fill(null).map(function(ee,ie){var Z=ie<=B-1?O[0]:f,X=Z&&Kt(Z)==="object"?"url(#".concat(C,")"):void 0,ae=aT(S,E,Y,U,_,c,u,Z,"butt",o,P);return Y+=(E-ae.strokeDashoffset+P)*100/E,d.createElement("circle",{key:ie,className:"".concat(i,"-circle-path"),r:k,cx:w,cy:w,stroke:X,strokeWidth:o,opacity:1,style:ae,ref:function(le){F[ie]=le}})})};return d.createElement("svg",tt({className:Ee("".concat(i,"-circle"),m),viewBox:"0 0 ".concat(k2," ").concat(k2),style:h,id:r,role:"presentation"},y),!M&&d.createElement("circle",{className:"".concat(i,"-circle-trail"),r:k,cx:w,cy:w,stroke:f,strokeLinecap:A,strokeWidth:s||o,style:N}),M?L():K())};function ah(e){return!e||e<0?0:e>100?100:e}function M6(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const Cnt=e=>{let{percent:t,success:n,successPercent:r}=e;const i=ah(M6({success:n,successPercent:r}));return[i,ah(ah(t)-i)]},_nt=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Vm.green,n||null]},G8=(e,t,n)=>{var r,i,a,o;let s=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,l=(o=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&o!==void 0?o:120));return[s,l]},knt=3,Ent=e=>knt/e*100,$nt=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:a,width:o=120,type:s,children:l,success:c,size:u=o,steps:f}=e,[p,h]=G8(u,"circle");let{strokeWidth:m}=e;m===void 0&&(m=Math.max(Ent(p),6));const g={width:p,height:h,fontSize:p*.15+6},v=d.useMemo(()=>{if(a||a===0)return a;if(s==="dashboard")return 75},[a,s]),y=Cnt(e),w=i||s==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",C=_nt({success:c,strokeColor:e.strokeColor}),k=Ee(`${t}-inner`,{[`${t}-circle-gradient`]:b}),S=d.createElement(Snt,{steps:f,percent:f?y[1]:y,strokeWidth:m,trailWidth:m,strokeColor:f?C[1]:C,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:w}),_=p<=20,E=d.createElement("div",{className:k,style:g},S,!_&&l);return _?d.createElement(_a,{title:l},E):E},T6="--progress-line-stroke-color",rve="--progress-percent",hZ=e=>{const t=e?"100%":"-100%";return new ir(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Mnt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${T6})`]},height:"100%",width:`calc(1 / var(${rve}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Me(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:hZ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:hZ(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Tnt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Pnt=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Ont=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Rnt=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Int=Jn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Hn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Mnt(n),Tnt(n),Pnt(n),Ont(n)]},Rnt);var jnt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},Ant=(e,t)=>{const{from:n=Vm.blue,to:r=Vm.blue,direction:i=t==="rtl"?"to left":"to right"}=e,a=jnt(e,["from","to","direction"]);if(Object.keys(a).length!==0){const s=Nnt(a),l=`linear-gradient(${i}, ${s})`;return{background:l,[T6]:l}}const o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[T6]:o}},Dnt=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:a,strokeColor:o,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:p,type:h}=u,m=o&&typeof o!="string"?Ant(o,n):{[T6]:o,background:o},g=s==="square"||s==="butt"?0:void 0,v=i??[-1,a||(i==="small"?6:8)],[y,w]=G8(v,"line",{strokeWidth:a}),b={backgroundColor:c||void 0,borderRadius:g},C=Object.assign(Object.assign({width:`${ah(r)}%`,height:w,borderRadius:g},m),{[rve]:ah(r)/100}),k=M6(e),S={width:`${ah(k)}%`,height:w,borderRadius:g,backgroundColor:f==null?void 0:f.strokeColor},_={width:y<0?"100%":y},E=d.createElement("div",{className:`${t}-inner`,style:b},d.createElement("div",{className:Ee(`${t}-bg`,`${t}-bg-${h}`),style:C},h==="inner"&&l),k!==void 0&&d.createElement("div",{className:`${t}-success-bg`,style:S})),$=h==="outer"&&p==="start",M=h==="outer"&&p==="end";return h==="outer"&&p==="center"?d.createElement("div",{className:`${t}-layout-bottom`},E,l):d.createElement("div",{className:`${t}-outer`,style:_},$&&l,E,M&&l)},Fnt=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:a,trailColor:o=null,prefixCls:s,children:l}=e,c=Math.round(n*(r/100)),f=t??[t==="small"?2:14,i],[p,h]=G8(f,"step",{steps:n,strokeWidth:i}),m=p/n,g=new Array(n);for(let v=0;v{const{prefixCls:n,className:r,rootClassName:i,steps:a,strokeColor:o,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:p,style:h,percentPosition:m={}}=e,g=Lnt(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:y="outer"}=m,w=Array.isArray(o)?o[0]:o,b=typeof o=="string"||Array.isArray(o)?o:void 0,C=d.useMemo(()=>{if(w){const K=typeof w=="string"?w:Object.values(w)[0];return new ur(K).isLight()}return!1},[o]),k=d.useMemo(()=>{var K,L;const V=M6(e);return parseInt(V!==void 0?(K=V??0)===null||K===void 0?void 0:K.toString():(L=s??0)===null||L===void 0?void 0:L.toString(),10)},[s,e.success,e.successPercent]),S=d.useMemo(()=>!Bnt.includes(f)&&k>=100?"success":f||"normal",[f,k]),{getPrefixCls:_,direction:E,progress:$}=d.useContext(Xt),M=_("progress",n),[P,R,O]=Int(M),j=u==="line",I=j&&!a,A=d.useMemo(()=>{if(!c)return null;const K=M6(e);let L;const V=p||(U=>`${U}%`),B=j&&C&&y==="inner";return y==="inner"||p||S!=="exception"&&S!=="success"?L=V(ah(s),ah(K)):S==="exception"?L=j?d.createElement(Pd,null):d.createElement(Eu,null):S==="success"&&(L=j?d.createElement(Wg,null):d.createElement(ud,null)),d.createElement("span",{className:Ee(`${M}-text`,{[`${M}-text-bright`]:B,[`${M}-text-${v}`]:I,[`${M}-text-${y}`]:I}),title:typeof L=="string"?L:void 0},L)},[c,s,k,S,u,M,p]);let N;u==="line"?N=a?d.createElement(Fnt,Object.assign({},e,{strokeColor:b,prefixCls:M,steps:typeof a=="object"?a.count:a}),A):d.createElement(Dnt,Object.assign({},e,{strokeColor:w,prefixCls:M,direction:E,percentPosition:{align:v,type:y}}),A):(u==="circle"||u==="dashboard")&&(N=d.createElement($nt,Object.assign({},e,{strokeColor:w,prefixCls:M,progressStatus:S}),A));const F=Ee(M,`${M}-status-${S}`,{[`${M}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${M}-inline-circle`]:u==="circle"&&G8(l,"circle")[0]<=20,[`${M}-line`]:I,[`${M}-line-align-${v}`]:I,[`${M}-line-position-${y}`]:I,[`${M}-steps`]:a,[`${M}-show-info`]:c,[`${M}-${l}`]:typeof l=="string",[`${M}-rtl`]:E==="rtl"},$==null?void 0:$.className,r,i,R,O);return P(d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},$==null?void 0:$.style),h),className:F,role:"progressbar","aria-valuenow":k,"aria-valuemin":0,"aria-valuemax":100},$r(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),N))});function rd(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=HE(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var Fy,N4;function Is(e,t,n){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function Ud(e,t){return(e>>>t&1)!=0}function ol(e){if(!e)throw new Error("Assertion error")}var id=function(){function e(t,n){Ar(this,e),ne(this,"modeBits",void 0),ne(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return Dr(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e}();Fy=id;ne(id,"NUMERIC",new Fy(1,[10,12,14]));ne(id,"ALPHANUMERIC",new Fy(2,[9,11,13]));ne(id,"BYTE",new Fy(4,[8,16,16]));ne(id,"KANJI",new Fy(8,[8,10,12]));ne(id,"ECI",new Fy(7,[0,0,0]));var dc=Dr(function e(t,n){Ar(this,e),ne(this,"ordinal",void 0),ne(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});N4=dc;ne(dc,"LOW",new N4(0,1));ne(dc,"MEDIUM",new N4(1,0));ne(dc,"QUARTILE",new N4(2,3));ne(dc,"HIGH",new N4(3,2));var Ym=function(){function e(t,n,r){if(Ar(this,e),ne(this,"mode",void 0),ne(this,"numChars",void 0),ne(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return Dr(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],i=rd(n),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;Is(o,8,r)}}catch(s){i.e(s)}finally{i.f()}return new e(id.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],i=0;i=1<e.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var o=[],s=0;s>>9)*1335;var o=(r<<10|i)^21522;ol(o>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,Ud(o,s));this.setFunctionModule(8,7,Ud(o,6)),this.setFunctionModule(8,8,Ud(o,7)),this.setFunctionModule(7,8,Ud(o,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,Ud(o,l));for(var c=0;c<8;c++)this.setFunctionModule(this.size-1-c,8,Ud(o,c));for(var u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,Ud(o,u));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var n=this.version,r=0;r<12;r++)n=n<<1^(n>>>11)*7973;var i=this.version<<12|n;ol(i>>>18==0);for(var a=0;a<18;a++){var o=Ud(i,a),s=this.size-11+a%3,l=Math.floor(a/3);this.setFunctionModule(s,l,o),this.setFunctionModule(l,s,o)}}}},{key:"drawFinderPattern",value:function(n,r){for(var i=-4;i<=4;i++)for(var a=-4;a<=4;a++){var o=Math.max(Math.abs(a),Math.abs(i)),s=n+a,l=r+i;0<=s&&s=l)&&v.push(k[C])})},w=0;w=1;i-=2){i==6&&(i=5);for(var a=0;a>>3],7-(r&7)),r++)}}ol(r==n.length*8)}},{key:"applyMask",value:function(n){if(n<0||n>7)throw new RangeError("Mask value out of range");for(var r=0;r5&&n++):(this.finderPenaltyAddHistory(a,o),i||(n+=this.finderPenaltyCountPatterns(o)*e.PENALTY_N3),i=this.modules[r][s],a=1);n+=this.finderPenaltyTerminateAndCount(i,a,o)*e.PENALTY_N3}for(var l=0;l5&&n++):(this.finderPenaltyAddHistory(u,f),c||(n+=this.finderPenaltyCountPatterns(f)*e.PENALTY_N3),c=this.modules[p][l],u=1);n+=this.finderPenaltyTerminateAndCount(c,u,f)*e.PENALTY_N3}for(var h=0;h0&&n[2]==r&&n[3]==r*3&&n[4]==r&&n[5]==r;return(i&&n[0]>=r*4&&n[6]>=r?1:0)+(i&&n[6]>=r*4&&n[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(n,r,i){var a=r;return n&&(this.finderPenaltyAddHistory(a,i),a=0),a+=this.size,this.finderPenaltyAddHistory(a,i),this.finderPenaltyCountPatterns(i)}},{key:"finderPenaltyAddHistory",value:function(n,r){var i=n;r[0]==0&&(i+=this.size),r.pop(),r.unshift(i)}}],[{key:"encodeText",value:function(n,r){var i=Ym.makeSegments(n);return e.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=Ym.makeBytes(n);return e.encodeSegments([i],r)}},{key:"encodeSegments",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(e.MIN_VERSION<=i&&i<=a&&a<=e.MAX_VERSION)||o<-1||o>7)throw new RangeError("Invalid value");var l,c;for(l=i;;l++){var u=e.getNumDataCodewords(l,r)*8,f=Ym.getTotalBits(n,l);if(f<=u){c=f;break}if(l>=a)throw new RangeError("Data too long")}for(var p=r,h=0,m=[dc.MEDIUM,dc.QUARTILE,dc.HIGH];h>>3]|=M<<7-(P&7)}),new e(l,p,$,o)}},{key:"getNumRawDataModules",value:function(n){if(ne.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var i=Math.floor(n/7)+2;r-=(25*i-10)*i-55,n>=7&&(r-=36)}return ol(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(n,r){return Math.floor(e.getNumRawDataModules(n)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n]}},{key:"reedSolomonComputeDivisor",value:function(n){if(n<1||n>255)throw new RangeError("Degree out of range");for(var r=[],i=0;i>>8||r>>>8)throw new RangeError("Byte out of range");for(var i=0,a=7;a>=0;a--)i=i<<1^(i>>>7)*285,i^=(r>>>a&1)*n;return ol(i>>>8==0),i}}]),e}();ne(Xf,"MIN_VERSION",1);ne(Xf,"MAX_VERSION",40);ne(Xf,"PENALTY_N1",3);ne(Xf,"PENALTY_N2",3);ne(Xf,"PENALTY_N3",40);ne(Xf,"PENALTY_N4",10);ne(Xf,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);ne(Xf,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var znt={L:dc.LOW,M:dc.MEDIUM,Q:dc.QUARTILE,H:dc.HIGH},ive=128,ave="L",ove="#FFFFFF",sve="#000000",lve=!1,cve=1,Hnt=4,Unt=0,Wnt=.1;function uve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[];return e.forEach(function(r,i){var a=null;r.forEach(function(o,s){if(!o&&a!==null){n.push("M".concat(a+t," ").concat(i+t,"h").concat(s-a,"v1H").concat(a+t,"z")),a=null;return}if(s===r.length-1){if(!o)return;a===null?n.push("M".concat(s+t,",").concat(i+t," h1v1H").concat(s+t,"z")):n.push("M".concat(a+t,",").concat(i+t," h").concat(s+1-a,"v1H").concat(a+t,"z"));return}o&&a===null&&(a=s)})}),n.join("")}function dve(e,t){return e.slice().map(function(n,r){return r=t.y+t.h?n:n.map(function(i,a){return a=t.x+t.w?i:!1})})}function Vnt(e,t,n,r){if(r==null)return null;var i=e.length+n*2,a=Math.floor(t*Wnt),o=i/t,s=(r.width||a)*o,l=(r.height||a)*o,c=r.x==null?e.length/2-s/2:r.x*o,u=r.y==null?e.length/2-l/2:r.y*o,f=r.opacity==null?1:r.opacity,p=null;if(r.excavate){var h=Math.floor(c),m=Math.floor(u),g=Math.ceil(s+c-h),v=Math.ceil(l+u-m);p={x:h,y:m,w:g,h:v}}var y=r.crossOrigin;return{x:c,y:u,h:l,w:s,excavation:p,opacity:f,crossOrigin:y}}function qnt(e,t){return t!=null?Math.floor(t):e?Hnt:Unt}var Knt=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function fve(e){var t=e.value,n=e.level,r=e.minVersion,i=e.includeMargin,a=e.marginSize,o=e.imageSettings,s=e.size,l=d.useMemo(function(){var m=Ym.makeSegments(t);return Xf.encodeSegments(m,znt[n],r)},[t,n,r]),c=d.useMemo(function(){var m=l.getModules(),g=qnt(i,a),v=m.length+g*2,y=Vnt(m,s,g,o);return{cells:m,margin:g,numCells:v,calculatedImageSettings:y}},[l,s,o,i,a]),u=c.cells,f=c.margin,p=c.numCells,h=c.calculatedImageSettings;return{qrcode:l,margin:f,cells:u,numCells:p,calculatedImageSettings:h}}var Gnt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],pve=te.forwardRef(function(t,n){var r=t.value,i=t.size,a=i===void 0?ive:i,o=t.level,s=o===void 0?ave:o,l=t.bgColor,c=l===void 0?ove:l,u=t.fgColor,f=u===void 0?sve:u,p=t.includeMargin,h=p===void 0?lve:p,m=t.minVersion,g=m===void 0?cve:m,v=t.marginSize,y=t.style,w=t.imageSettings,b=Ht(t,Gnt),C=w==null?void 0:w.src,k=d.useRef(null),S=d.useRef(null),_=d.useCallback(function(F){k.current=F,typeof n=="function"?n(F):n&&(n.current=F)},[n]),E=d.useState(!1),$=Te(E,2),M=$[1],P=fve({value:r,level:s,minVersion:g,includeMargin:h,marginSize:v,imageSettings:w,size:a}),R=P.margin,O=P.cells,j=P.numCells,I=P.calculatedImageSettings;d.useEffect(function(){if(k.current!=null){var F=k.current,K=F.getContext("2d");if(!K)return;var L=O,V=S.current,B=I!=null&&V!==null&&V.complete&&V.naturalHeight!==0&&V.naturalWidth!==0;B&&I.excavation!=null&&(L=dve(O,I.excavation));var U=window.devicePixelRatio||1;F.height=F.width=a*U;var Y=a/j*U;K.scale(Y,Y),K.fillStyle=c,K.fillRect(0,0,j,j),K.fillStyle=f,Knt?K.fill(new Path2D(uve(L,R))):O.forEach(function(ee,ie){ee.forEach(function(Z,X){Z&&K.fillRect(X+R,ie+R,1,1)})}),I&&(K.globalAlpha=I.opacity),B&&K.drawImage(V,I.x+R,I.y+R,I.w,I.h)}}),d.useEffect(function(){M(!1)},[C]);var A=q({height:a,width:a},y),N=null;return C!=null&&(N=te.createElement("img",{src:C,key:C,style:{display:"none"},onLoad:function(){M(!0)},ref:S,crossOrigin:I==null?void 0:I.crossOrigin})),te.createElement(te.Fragment,null,te.createElement("canvas",tt({style:A,height:a,width:a,ref:_,role:"img"},b)),N)});pve.displayName="QRCodeCanvas";var Ynt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],hve=te.forwardRef(function(t,n){var r=t.value,i=t.size,a=i===void 0?ive:i,o=t.level,s=o===void 0?ave:o,l=t.bgColor,c=l===void 0?ove:l,u=t.fgColor,f=u===void 0?sve:u,p=t.includeMargin,h=p===void 0?lve:p,m=t.minVersion,g=m===void 0?cve:m,v=t.title,y=t.marginSize,w=t.imageSettings,b=Ht(t,Ynt),C=fve({value:r,level:s,minVersion:g,includeMargin:h,marginSize:y,imageSettings:w,size:a}),k=C.margin,S=C.cells,_=C.numCells,E=C.calculatedImageSettings,$=S,M=null;w!=null&&E!=null&&(E.excavation!=null&&($=dve(S,E.excavation)),M=te.createElement("image",{href:w.src,height:E.h,width:E.w,x:E.x+k,y:E.y+k,preserveAspectRatio:"none",opacity:E.opacity,crossOrigin:E.crossOrigin}));var P=uve($,k);return te.createElement("svg",tt({height:a,width:a,viewBox:"0 0 ".concat(_," ").concat(_),ref:n,role:"img"},b),!!v&&te.createElement("title",null,v),te.createElement("path",{fill:c,d:"M0,0 h".concat(_,"v").concat(_,"H0z"),shapeRendering:"crispEdges"}),te.createElement("path",{fill:f,d:P,shapeRendering:"crispEdges"}),M)});hve.displayName="QRCodeSVG";var Xnt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"},Znt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Xnt}))},Qnt=d.forwardRef(Znt),Jnt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},ert=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Jnt}))},trt=d.forwardRef(ert),nrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},rrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:nrt}))},irt=d.forwardRef(rrt),art={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},ort=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:art}))},srt=d.forwardRef(ort),lrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M594.3 601.5a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1 8 8 0 008 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52zm416-354H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z"}}]},name:"contacts",theme:"outlined"},crt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:lrt}))},urt=d.forwardRef(crt),drt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},frt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:drt}))},prt=d.forwardRef(frt),hrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"},mrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:hrt}))},grt=d.forwardRef(mrt),vrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},yrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:vrt}))},Y8=d.forwardRef(yrt),brt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},wrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:brt}))},xrt=d.forwardRef(wrt),Srt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},Crt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Srt}))},$m=d.forwardRef(Crt),_rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},krt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:_rt}))},Ert=d.forwardRef(krt),$rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Mrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:$rt}))},mve=d.forwardRef(Mrt),Trt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Prt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Trt}))},gve=d.forwardRef(Prt),Ort={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},Rrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Ort}))},Irt=d.forwardRef(Rrt),jrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Nrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:jrt}))},Art=d.forwardRef(Nrt),Drt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Frt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Drt}))},Lrt=d.forwardRef(Frt),Brt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},zrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Brt}))},Hrt=d.forwardRef(zrt),Urt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Wrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Urt}))},Vrt=d.forwardRef(Wrt),qrt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Krt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:qrt}))},vve=d.forwardRef(Krt),Grt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Yrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Grt}))},Xrt=d.forwardRef(Yrt),Zrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},Qrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Zrt}))},Zg=d.forwardRef(Qrt),Jrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},eit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Jrt}))},yve=d.forwardRef(eit),tit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},nit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:tit}))},bve=d.forwardRef(nit),rit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},iit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:rit}))},ait=d.forwardRef(iit),oit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},sit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:oit}))},A4=d.forwardRef(sit),lit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 760H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-568H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 00-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 002.1-5.4V432c0-2.2-1.8-4-4-4z"}}]},name:"ordered-list",theme:"outlined"},cit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:lit}))},wve=d.forwardRef(cit),uit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},dit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:uit}))},fit=d.forwardRef(dit),pit={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},hit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:pit}))},mit=d.forwardRef(hit),git={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},vit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:git}))},yit=d.forwardRef(vit),bit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},wit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:bit}))},xit=d.forwardRef(wit),Sit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}}]},name:"question-circle",theme:"filled"},Cit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Sit}))},_it=d.forwardRef(Cit),kit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},Eit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:kit}))},X8=d.forwardRef(Eit),$it={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},Mit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:$it}))},Tit=d.forwardRef(Mit),Pit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},Oit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Pit}))},xve=d.forwardRef(Oit),Rit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Iit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Rit}))},jit=d.forwardRef(Iit),Nit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},Ait=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Nit}))},Dit=d.forwardRef(Ait),Fit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},Lit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Fit}))},D4=d.forwardRef(Lit),Bit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},zit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Bit}))},iz=d.forwardRef(zit),Hit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},Uit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Hit}))},Wit=d.forwardRef(Uit),Vit=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],Sve=d.forwardRef(function(e,t){var n=e.className,r=e.component,i=e.viewBox,a=e.spin,o=e.rotate,s=e.tabIndex,l=e.onClick,c=e.children,u=Ht(e,Vit),f=d.useRef(),p=ku(f,t);hj(!!(r||c),"Should have `component` prop or `children`."),tpe(f);var h=d.useContext(qE),m=h.prefixCls,g=m===void 0?"anticon":m,v=h.rootClassName,y=Ee(v,g,ne({},"".concat(g,"-spin"),!!a&&!!r),n),w=Ee(ne({},"".concat(g,"-spin"),!!a)),b=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,C=q(q({},sAe),{},{className:w,style:b,viewBox:i});i||delete C.viewBox;var k=function(){return r?d.createElement(r,C,c):c?(hj(!!i||d.Children.count(c)===1&&d.isValidElement(c)&&d.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),d.createElement("svg",tt({},C,{viewBox:i}),c)):null},S=s;return S===void 0&&l&&(S=-1),d.createElement("span",tt({role:"img"},u,{ref:p,tabIndex:S,onClick:l,className:y}),k())});Sve.displayName="AntdIcon";var qit=["type","children"],Cve=new Set;function Kit(e){return!!(typeof e=="string"&&e.length&&!Cve.has(e))}function P6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(Kit(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){P6(e,t+1)},r.onerror=function(){P6(e,t+1)}),Cve.add(n),document.body.appendChild(r)}}function _ve(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,r=n===void 0?{}:n;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?P6(t.reverse()):P6([t]));var i=d.forwardRef(function(a,o){var s=a.type,l=a.children,c=Ht(a,qit),u=null;return a.type&&(u=d.createElement("use",{xlinkHref:"#".concat(s)})),l&&(u=l),d.createElement(Sve,tt({},r,c,{ref:o}),u)});return i.displayName="Iconfont",i}const Git=te.createElement(Zo,null);function Yit(e){let{prefixCls:t,locale:n,onRefresh:r,statusRender:i,status:a}=e;const o=te.createElement(te.Fragment,null,te.createElement("p",{className:`${t}-expired`},n==null?void 0:n.expired),r&&te.createElement(Yt,{type:"link",icon:te.createElement(X8,null),onClick:r},n==null?void 0:n.refresh)),s=te.createElement("p",{className:`${t}-scanned`},n==null?void 0:n.scanned),l={expired:o,loading:Git,scanned:s};return(i??(f=>l[f.status]))({status:a,locale:n,onRefresh:r})}const Xit=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:i}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${Me(n)} ${r} ${i}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},Zit=e=>({QRCodeMaskBackgroundColor:new ur(e.colorBgContainer).setA(.96).toRgbString()}),Qit=Jn("QRCode",e=>{const t=Hn(e,{QRCodeTextColor:e.colorText});return Xit(t)},Zit);var Jit=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i;const[,a]=ka(),{value:o,type:s="canvas",icon:l="",size:c=160,iconSize:u,color:f=a.colorText,errorLevel:p="M",status:h="active",bordered:m=!0,onRefresh:g,style:v,className:y,rootClassName:w,prefixCls:b,bgColor:C="transparent",statusRender:k}=e,S=Jit(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:_}=d.useContext(Xt),E=_("qrcode",b),[$,M,P]=Qit(E),R={src:l,x:void 0,y:void 0,height:typeof u=="number"?u:(t=u==null?void 0:u.height)!==null&&t!==void 0?t:40,width:typeof u=="number"?u:(n=u==null?void 0:u.width)!==null&&n!==void 0?n:40,excavate:!0,crossOrigin:"anonymous"},O=Fi(S,!0),j=$r(S,Object.keys(O)),I=Object.assign({value:o,size:c,level:p,bgColor:C,fgColor:f,style:{width:v==null?void 0:v.width,height:v==null?void 0:v.height},imageSettings:l?R:void 0},O),[A]=Ga("QRCode");if(!o)return null;const N=Ee(E,y,w,M,P,{[`${E}-borderless`]:!m}),F=Object.assign(Object.assign({backgroundColor:C},v),{width:(r=v==null?void 0:v.width)!==null&&r!==void 0?r:c,height:(i=v==null?void 0:v.height)!==null&&i!==void 0?i:c});return $(te.createElement("div",Object.assign({},j,{className:N,style:F}),h!=="active"&&te.createElement("div",{className:`${E}-mask`},te.createElement(Yit,{prefixCls:E,locale:A,status:h,onRefresh:g,statusRender:k})),s==="canvas"?te.createElement(pve,Object.assign({},I)):te.createElement(hve,Object.assign({},I))))};function eat(e,t){var n=e.disabled,r=e.prefixCls,i=e.character,a=e.characterRender,o=e.index,s=e.count,l=e.value,c=e.allowHalf,u=e.focused,f=e.onHover,p=e.onClick,h=function(k){f(k,o)},m=function(k){p(k,o)},g=function(k){k.keyCode===mt.ENTER&&p(k,o)},v=o+1,y=new Set([r]);l===0&&o===0&&u?y.add("".concat(r,"-focused")):c&&l+.5>=v&&lo?"true":"false","aria-posinset":o+1,"aria-setsize":s,tabIndex:n?-1:0},te.createElement("div",{className:"".concat(r,"-first")},w),te.createElement("div",{className:"".concat(r,"-second")},w)));return a&&(b=a(b,e)),b}const tat=te.forwardRef(eat);function nat(){var e=d.useRef({});function t(r){return e.current[r]}function n(r){return function(i){e.current[r]=i}}return[t,n]}function rat(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function iat(e){var t,n,r=e.ownerDocument,i=r.body,a=r&&r.documentElement,o=e.getBoundingClientRect();return t=o.left,n=o.top,t-=a.clientLeft||i.clientLeft||0,n-=a.clientTop||i.clientTop||0,{left:t,top:n}}function aat(e){var t=iat(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=rat(r),t.left}var oat=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function sat(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,i=e.className,a=e.defaultValue,o=e.value,s=e.count,l=s===void 0?5:s,c=e.allowHalf,u=c===void 0?!1:c,f=e.allowClear,p=f===void 0?!0:f,h=e.keyboard,m=h===void 0?!0:h,g=e.character,v=g===void 0?"★":g,y=e.characterRender,w=e.disabled,b=e.direction,C=b===void 0?"ltr":b,k=e.tabIndex,S=k===void 0?0:k,_=e.autoFocus,E=e.onHoverChange,$=e.onChange,M=e.onFocus,P=e.onBlur,R=e.onKeyDown,O=e.onMouseLeave,j=Ht(e,oat),I=nat(),A=Te(I,2),N=A[0],F=A[1],K=te.useRef(null),L=function(){if(!w){var G;(G=K.current)===null||G===void 0||G.focus()}};te.useImperativeHandle(t,function(){return{focus:L,blur:function(){if(!w){var G;(G=K.current)===null||G===void 0||G.blur()}}}});var V=jn(a||0,{value:o}),B=Te(V,2),U=B[0],Y=B[1],ee=jn(null),ie=Te(ee,2),Z=ie[0],X=ie[1],ae=function(G,de){var xe=C==="rtl",he=G+1;if(u){var Ue=N(G),We=aat(Ue),ge=Ue.clientWidth;(xe&&de-We>ge/2||!xe&&de-We0&&!xe||de===mt.RIGHT&&U>0&&xe?(oe(U-he),G.preventDefault()):de===mt.LEFT&&U{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Me(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},uat=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),dat=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),cat(e)),uat(e))}},fat=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),pat=Jn("Rate",e=>{const t=Hn(e,{});return[dat(t)]},fat);var hat=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,style:a,tooltips:o,character:s=d.createElement(jit,null),disabled:l}=e,c=hat(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),u=(k,S)=>{let{index:_}=S;return o?d.createElement(_a,{title:o[_]},k):k},{getPrefixCls:f,direction:p,rate:h}=d.useContext(Xt),m=f("rate",n),[g,v,y]=pat(m),w=Object.assign(Object.assign({},h==null?void 0:h.style),a),b=d.useContext(ma),C=l??b;return g(d.createElement(lat,Object.assign({ref:t,character:s,characterRender:u,disabled:C},c,{className:Ee(r,i,v,y,h==null?void 0:h.className),style:w,prefixCls:m,direction:p})))}),mat=()=>d.createElement("svg",{width:"252",height:"294"},d.createElement("title",null,"No Found"),d.createElement("defs",null,d.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(0 .012)"},d.createElement("mask",{fill:"#fff"}),d.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),d.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),d.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),d.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),d.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),d.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),d.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),d.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),d.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),d.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),d.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),d.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),d.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),d.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),d.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),d.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),d.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),d.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),d.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),d.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),d.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),d.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),d.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),d.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),d.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),d.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),d.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),d.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),d.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),d.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),d.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),d.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),d.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),d.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),d.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),d.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),d.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),d.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),gat=()=>d.createElement("svg",{width:"254",height:"294"},d.createElement("title",null,"Server Error"),d.createElement("defs",null,d.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),d.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(0 .067)"},d.createElement("mask",{fill:"#fff"}),d.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),d.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),d.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),d.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),d.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),d.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),d.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),d.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),d.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),d.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),d.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),d.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),d.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),d.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),d.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),d.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),d.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),d.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),d.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),d.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),d.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),d.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),d.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),d.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),d.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),d.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),d.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),d.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),d.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),d.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),d.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),d.createElement("mask",{fill:"#fff"}),d.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),d.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),d.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),d.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),d.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),d.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),d.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),d.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),vat=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:a,paddingXS:o,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${Me(e.calc(s).mul(2).equal())} ${Me(a)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${Me(s)} ${Me(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},yat=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},bat=e=>[vat(e),yat(e)],wat=e=>bat(e),xat=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),Sat=Jn("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning,a=Hn(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return[wat(a)]},xat),Cat=()=>d.createElement("svg",{width:"251",height:"294"},d.createElement("title",null,"Unauthorized"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),d.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),d.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),d.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),d.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),d.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),d.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),d.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),d.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),d.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),d.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),d.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),d.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),d.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),d.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),d.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),d.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),d.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),d.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),d.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),d.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),d.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),d.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),d.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),d.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),d.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),d.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),d.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),d.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),d.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),d.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),d.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),d.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),d.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),d.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),_at={success:Wg,error:Pd,info:qf,warning:Wit},F4={404:mat,500:gat,403:Cat},kat=Object.keys(F4),Eat=e=>{let{prefixCls:t,icon:n,status:r}=e;const i=Ee(`${t}-icon`);if(kat.includes(`${r}`)){const o=F4[r];return d.createElement("div",{className:`${i} ${t}-image`},d.createElement(o,null))}const a=d.createElement(_at[r]);return n===null||n===!1?null:d.createElement("div",{className:i},n||a)},$at=e=>{let{prefixCls:t,extra:n}=e;return n?d.createElement("div",{className:`${t}-extra`},n):null},Qg=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:a,style:o,children:s,status:l="info",icon:c,extra:u}=e;const{getPrefixCls:f,direction:p,result:h}=d.useContext(Xt),m=f("result",t),[g,v,y]=Sat(m),w=Ee(m,`${m}-${l}`,n,h==null?void 0:h.className,r,{[`${m}-rtl`]:p==="rtl"},v,y),b=Object.assign(Object.assign({},h==null?void 0:h.style),o);return g(d.createElement("div",{className:w,style:b},d.createElement(Eat,{prefixCls:m,status:l,icon:c}),d.createElement("div",{className:`${m}-title`},a),i&&d.createElement("div",{className:`${m}-subtitle`},i),d.createElement($at,{prefixCls:m,extra:u}),s&&d.createElement("div",{className:`${m}-content`},s)))};Qg.PRESENTED_IMAGE_403=F4[403];Qg.PRESENTED_IMAGE_404=F4[404];Qg.PRESENTED_IMAGE_500=F4[500];var Mat=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function gZ(e){return typeof e=="string"}function kve(e){var t,n=e.className,r=e.prefixCls,i=e.style,a=e.active,o=e.status,s=e.iconPrefix,l=e.icon;e.wrapperStyle;var c=e.stepNumber,u=e.disabled,f=e.description,p=e.title,h=e.subTitle,m=e.progressDot,g=e.stepIcon,v=e.tailContent,y=e.icons,w=e.stepIndex,b=e.onStepClick,C=e.onClick,k=e.render,S=Ht(e,Mat),_=!!b&&!u,E={};_&&(E.role="button",E.tabIndex=0,E.onClick=function(j){C==null||C(j),b(w)},E.onKeyDown=function(j){var I=j.which;(I===mt.ENTER||I===mt.SPACE)&&b(w)});var $=function(){var I,A,N=Ee("".concat(r,"-icon"),"".concat(s,"icon"),(I={},ne(I,"".concat(s,"icon-").concat(l),l&&gZ(l)),ne(I,"".concat(s,"icon-check"),!l&&o==="finish"&&(y&&!y.finish||!y)),ne(I,"".concat(s,"icon-cross"),!l&&o==="error"&&(y&&!y.error||!y)),I)),F=d.createElement("span",{className:"".concat(r,"-icon-dot")});return m?typeof m=="function"?A=d.createElement("span",{className:"".concat(r,"-icon")},m(F,{index:c-1,status:o,title:p,description:f})):A=d.createElement("span",{className:"".concat(r,"-icon")},F):l&&!gZ(l)?A=d.createElement("span",{className:"".concat(r,"-icon")},l):y&&y.finish&&o==="finish"?A=d.createElement("span",{className:"".concat(r,"-icon")},y.finish):y&&y.error&&o==="error"?A=d.createElement("span",{className:"".concat(r,"-icon")},y.error):l||o==="finish"||o==="error"?A=d.createElement("span",{className:N}):A=d.createElement("span",{className:"".concat(r,"-icon")},c),g&&(A=g({index:c-1,status:o,title:p,description:f,node:A})),A},M=o||"wait",P=Ee("".concat(r,"-item"),"".concat(r,"-item-").concat(M),n,(t={},ne(t,"".concat(r,"-item-custom"),l),ne(t,"".concat(r,"-item-active"),a),ne(t,"".concat(r,"-item-disabled"),u===!0),t)),R=q({},i),O=d.createElement("div",tt({},S,{className:P,style:R}),d.createElement("div",tt({onClick:C},E,{className:"".concat(r,"-item-container")}),d.createElement("div",{className:"".concat(r,"-item-tail")},v),d.createElement("div",{className:"".concat(r,"-item-icon")},$()),d.createElement("div",{className:"".concat(r,"-item-content")},d.createElement("div",{className:"".concat(r,"-item-title")},p,h&&d.createElement("div",{title:typeof h=="string"?h:void 0,className:"".concat(r,"-item-subtitle")},h)),f&&d.createElement("div",{className:"".concat(r,"-item-description")},f))));return k&&(O=k(O)||null),O}var Tat=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function oz(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,i=e.style,a=i===void 0?{}:i,o=e.className;e.children;var s=e.direction,l=s===void 0?"horizontal":s,c=e.type,u=c===void 0?"default":c,f=e.labelPlacement,p=f===void 0?"horizontal":f,h=e.iconPrefix,m=h===void 0?"rc":h,g=e.status,v=g===void 0?"process":g,y=e.size,w=e.current,b=w===void 0?0:w,C=e.progressDot,k=C===void 0?!1:C,S=e.stepIcon,_=e.initial,E=_===void 0?0:_,$=e.icons,M=e.onChange,P=e.itemRender,R=e.items,O=R===void 0?[]:R,j=Ht(e,Tat),I=u==="navigation",A=u==="inline",N=A||k,F=A?"horizontal":l,K=A?void 0:y,L=N?"vertical":p,V=Ee(r,"".concat(r,"-").concat(F),o,(t={},ne(t,"".concat(r,"-").concat(K),K),ne(t,"".concat(r,"-label-").concat(L),F==="horizontal"),ne(t,"".concat(r,"-dot"),!!N),ne(t,"".concat(r,"-navigation"),I),ne(t,"".concat(r,"-inline"),A),t)),B=function(ee){M&&b!==ee&&M(ee)},U=function(ee,ie){var Z=q({},ee),X=E+ie;return v==="error"&&ie===b-1&&(Z.className="".concat(r,"-next-error")),Z.status||(X===b?Z.status=v:X{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:i}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:i,lineHeight:Me(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},Oat=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},Rat=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:i}=e,a=e.calc(e.paddingXS).add(e.lineWidth).equal(),o={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${Me(a)} ${Me(e.paddingXXS)} 0`,margin:`0 ${Me(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${Me(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(a).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:i}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${Me(e.lineWidth)} ${e.lineType} ${i}`}},o),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:i},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:i,border:`${Me(e.lineWidth)} ${e.lineType} ${i}`}},o),"&-error":o,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${Me(e.calc(n).div(2).equal())})`,top:0}},o),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},Iat=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:i}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${Me(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(i).div(2).add(e.controlHeightLG).equal()}}}}}},jat=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:i,motionDurationSlow:a}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${a}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},ao),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${Me(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:i,transition:`width ${a}, inset-inline-start ${a}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${Me(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},Nat=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:i,processIconColor:a,marginXXS:o,lineWidthBold:s,lineWidth:l,paddingXXS:c}=e,u=e.calc(r).add(e.calc(s).mul(4).equal()).equal(),f=e.calc(i).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:c,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:a}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:c,[`> ${n}-item-container > ${n}-item-tail`]:{top:o,insetInlineStart:e.calc(r).div(2).sub(l).add(c).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:c,paddingInlineStart:c}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(i).div(2).sub(l).add(c).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(c).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${Me(u)} !important`,height:`${Me(u)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(i).div(2).add(c).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${Me(f)} !important`,height:`${Me(f)} !important`}}}}},Aat=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:i,dotSize:a,motionDurationSlow:o}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${Me(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${Me(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:a,height:a,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(a).div(2).equal(),paddingInlineEnd:0,lineHeight:Me(a),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${o}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(a).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(a).sub(i).div(2).equal(),width:i,height:i,lineHeight:Me(i),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(a).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),top:0,insetInlineStart:e.calc(a).sub(i).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(a).div(2).equal(),insetInlineStart:0,margin:0,padding:`${Me(e.calc(a).add(e.paddingXS).equal())} 0 ${Me(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(a).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(a).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},Dat=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},Fat=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:i,colorTextDescription:a}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${Me(e.marginXS)}`,fontSize:r,lineHeight:Me(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:i,lineHeight:Me(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:a,fontSize:i},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:Me(n),transform:"none"}}}}},Lat=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:Me(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${Me(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${Me(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${Me(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${Me(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:Me(n)}}}}},Bat="wait",zat="process",Hat="finish",Uat="error",TS=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,i=`${e}TitleColor`,a=`${e}DescriptionColor`,o=`${e}TailColor`,s=`${e}IconBgColor`,l=`${e}IconBorderColor`,c=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[l],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[i],"&::after":{backgroundColor:t[o]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[a]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[o]}}},Wat=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,i=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[i]:Object.assign({},yc(e))}},[`${i}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[i]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:Me(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${Me(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:Me(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},TS(Bat,e)),TS(zat,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),TS(Hat,e)),TS(Uat,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},Vat=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},qat=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),Wat(e)),Vat(e)),Pat(e)),Fat(e)),Lat(e)),Oat(e)),Iat(e)),Aat(e)),jat(e)),Dat(e)),Nat(e)),Rat(e))}},Kat=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),Gat=Jn("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:i,colorPrimary:a,colorTextDescription:o,colorTextQuaternary:s,colorError:l,colorBorderSecondary:c,colorSplit:u}=e,f=Hn(e,{processIconColor:r,processTitleColor:i,processDescriptionColor:i,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:u,waitTitleColor:o,waitDescriptionColor:o,waitTailColor:u,waitDotColor:t,finishIconColor:a,finishTitleColor:i,finishDescriptionColor:o,finishTailColor:a,finishDotColor:a,errorIconColor:r,errorTitleColor:l,errorDescriptionColor:l,errorTailColor:u,errorIconBgColor:l,errorIconBorderColor:l,errorDotColor:l,stepsNavActiveColor:a,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:c});return[qat(f)]},Kat);function Yat(e){return e.filter(t=>t)}function Xat(e,t){if(e)return e;const n=Xi(t).map(r=>{if(d.isValidElement(r)){const{props:i}=r;return Object.assign({},i)}return null});return Yat(n)}var Zat=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{percent:t,size:n,className:r,rootClassName:i,direction:a,items:o,responsive:s=!0,current:l=0,children:c,style:u}=e,f=Zat(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:p}=$4(s),{getPrefixCls:h,direction:m,steps:g}=d.useContext(Xt),v=d.useMemo(()=>s&&p?"vertical":a,[p,a]),y=Bi(n),w=h("steps",e.prefixCls),[b,C,k]=Gat(w),S=e.type==="inline",_=h("",e.iconPrefix),E=Xat(o,c),$=S?void 0:t,M=Object.assign(Object.assign({},g==null?void 0:g.style),u),P=Ee(g==null?void 0:g.className,{[`${w}-rtl`]:m==="rtl",[`${w}-with-progress`]:$!==void 0},r,i,C,k),R={finish:d.createElement(ud,{className:`${w}-finish-icon`}),error:d.createElement(Eu,{className:`${w}-error-icon`})},O=I=>{let{node:A,status:N}=I;if(N==="process"&&$!==void 0){const F=y==="small"?32:40;return d.createElement("div",{className:`${w}-progress-icon`},d.createElement(rz,{type:"circle",percent:$,size:F,strokeWidth:4,format:()=>null}),A)}return A},j=(I,A)=>I.description?d.createElement(_a,{title:I.description},A):A;return b(d.createElement(oz,Object.assign({icons:R},f,{style:M,current:l,size:y,items:E,itemRender:S?j:void 0,stepIcon:O,direction:v,prefixCls:w,iconPrefix:_,className:P})))};Eve.Step=oz.Step;var Qat=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],$ve=d.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,a=e.className,o=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,h=e.onChange,m=e.onKeyDown,g=Ht(e,Qat),v=jn(!1,{value:o,defaultValue:s}),y=Te(v,2),w=y[0],b=y[1];function C(E,$){var M=w;return l||(M=E,b(M),h==null||h(M,$)),M}function k(E){E.which===mt.LEFT?C(!1,E):E.which===mt.RIGHT&&C(!0,E),m==null||m(E)}function S(E){var $=C(!w,E);p==null||p($,E)}var _=Ee(i,a,(n={},ne(n,"".concat(i,"-checked"),w),ne(n,"".concat(i,"-disabled"),l),n));return d.createElement("button",tt({},g,{type:"button",role:"switch","aria-checked":w,disabled:l,className:_,ref:t,onKeyDown:k,onClick:S}),c,d.createElement("span",{className:"".concat(i,"-inner")},d.createElement("span",{className:"".concat(i,"-inner-checked")},u),d.createElement("span",{className:"".concat(i,"-inner-unchecked")},f)))});$ve.displayName="Switch";const Jat=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=Me(l(s).add(l(r).mul(2)).equal()),f=Me(l(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:Me(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Me(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},eot=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},tot=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${Me(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},not=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,calc:s}=e,l=`${t}-inner`,c=Me(s(o).add(s(r).mul(2)).equal()),u=Me(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},rot=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:Me(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Vs(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},iot=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=2,l=a-s*2,c=o-s*2;return{trackHeight:a,trackHeightSM:o,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new ur("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},aot=Jn("Switch",e=>{const t=Hn(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[rot(t),not(t),tot(t),eot(t),Jat(t)]},iot);var oot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:l,checked:c,value:u,defaultChecked:f,defaultValue:p,onChange:h}=e,m=oot(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,v]=jn(!1,{value:c??u,defaultValue:f??p}),{getPrefixCls:y,direction:w,switch:b}=d.useContext(Xt),C=d.useContext(ma),k=(i??C)||a,S=y("switch",n),_=d.createElement("div",{className:`${S}-handle`},a&&d.createElement(vu,{className:`${S}-loading-icon`})),[E,$,M]=aot(S),P=Bi(r),R=Ee(b==null?void 0:b.className,{[`${S}-small`]:P==="small",[`${S}-loading`]:a,[`${S}-rtl`]:w==="rtl"},o,s,$,M),O=Object.assign(Object.assign({},b==null?void 0:b.style),l),j=function(){v(arguments.length<=0?void 0:arguments[0]),h==null||h.apply(void 0,arguments)};return E(d.createElement(w4,{component:"Switch"},d.createElement($ve,Object.assign({},m,{checked:g,onChange:j,prefixCls:S,className:R,style:O,disabled:k,ref:t,loadingIcon:_}))))}),O6=sot;O6.__ANT_SWITCH=!0;var sz=d.createContext(null),Mve=d.createContext({}),lot=function(t){for(var n=t.prefixCls,r=t.level,i=t.isStart,a=t.isEnd,o="".concat(n,"-indent-unit"),s=[],l=0;l=0&&n.splice(r,1),n}function lp(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function lz(e){return e.split("-")}function fot(e,t){var n=[],r=Ns(t,e);function i(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(o){var s=o.key,l=o.children;n.push(s),i(l)})}return i(r.children),n}function pot(e){if(e.parent){var t=lz(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function hot(e){var t=lz(e.pos);return Number(t[t.length-1])===0}function bZ(e,t,n,r,i,a,o,s,l,c){var u,f=e.clientX,p=e.clientY,h=e.target.getBoundingClientRect(),m=h.top,g=h.height,v=(c==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-f),y=(v-12)/r,w=l.filter(function(A){var N;return(N=s[A])===null||N===void 0||(N=N.children)===null||N===void 0?void 0:N.length}),b=Ns(s,n.eventKey);if(p-1.5?a({dragNode:O,dropNode:j,dropPosition:1})?M=1:I=!1:a({dragNode:O,dropNode:j,dropPosition:0})?M=0:a({dragNode:O,dropNode:j,dropPosition:1})?M=1:I=!1:a({dragNode:O,dropNode:j,dropPosition:1})?M=1:I=!1,{dropPosition:M,dropLevelOffset:P,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:$,dropContainerKey:M===0?null:((u=b.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:I}}function wZ(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function oT(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Kt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Br(!1,"`checkedKeys` is not an array or an object"),null;return t}function Qj(e,t){var n=new Set;function r(i){if(!n.has(i)){var a=Ns(t,i);if(a){n.add(i);var o=a.parent,s=a.node;s.disabled||o&&r(o.key)}}}return(e||[]).forEach(function(i){r(i)}),lt(n)}function xZ(e){const[t,n]=d.useState(null);return[d.useCallback((a,o,s)=>{const l=t??a,c=Math.min(l||0,a),u=Math.max(l||0,a),f=o.slice(c,u+1).map(m=>e(m)),p=f.some(m=>!s.has(m)),h=[];return f.forEach(m=>{p?(s.has(m)||h.push(m),s.add(m)):(s.delete(m),h.push(m))}),n(p?u:null),h},[t]),a=>{n(a)}]}var mot=function(t){var n=t.dropPosition,r=t.dropLevelOffset,i=t.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*i;break;case 1:a.bottom=0,a.left=-r*i;break;case 0:a.bottom=0,a.left=i;break}return te.createElement("div",{style:a})};function Tve(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function got(e,t){var n=d.useState(!1),r=Te(n,2),i=r[0],a=r[1];nr(function(){if(i)return e(),function(){t()}},[i]),nr(function(){return a(!0),function(){a(!1)}},[])}var vot=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],yot=d.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.motion,a=e.motionNodes,o=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,f=Ht(e,vot),p=d.useState(!0),h=Te(p,2),m=h[0],g=h[1],v=d.useContext(sz),y=v.prefixCls,w=a&&o!=="hide";nr(function(){a&&w!==m&&g(w)},[a]);var b=function(){a&&s()},C=d.useRef(!1),k=function(){a&&!C.current&&(C.current=!0,l())};got(b,k);var S=function(E){w===E&&k()};return a?d.createElement(Ca,tt({ref:t,visible:m},i,{motionAppear:o==="show",onVisibleChanged:S}),function(_,E){var $=_.className,M=_.style;return d.createElement("div",{ref:E,className:Ee("".concat(y,"-treenode-motion"),$),style:M},a.map(function(P){var R=Object.assign({},(Tve(P.data),P.data)),O=P.title,j=P.key,I=P.isStart,A=P.isEnd;delete R.children;var N=J2(j,u);return d.createElement(u3,tt({},R,N,{title:O,active:c,data:P.data,key:j,isStart:I,isEnd:A}))}))}):d.createElement(u3,tt({domRef:t,className:n,style:r},f,{active:c}))});function bot(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(a,o){var s=new Map;a.forEach(function(c){s.set(c,!0)});var l=o.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return n ").concat(t);return t}var Cot=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,a=e.selectedKeys,o=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,f=e.disabled,p=e.dragging,h=e.dragOverNodeKey,m=e.dropPosition,g=e.motion,v=e.height,y=e.itemHeight,w=e.virtual,b=e.scrollWidth,C=e.focusable,k=e.activeItem,S=e.focused,_=e.tabIndex,E=e.onKeyDown,$=e.onFocus,M=e.onBlur,P=e.onActiveChange,R=e.onListChangeStart,O=e.onListChangeEnd,j=Ht(e,wot),I=d.useRef(null),A=d.useRef(null);d.useImperativeHandle(t,function(){return{scrollTo:function(we){I.current.scrollTo(we)},getIndentWidth:function(){return A.current.offsetWidth}}});var N=d.useState(i),F=Te(N,2),K=F[0],L=F[1],V=d.useState(r),B=Te(V,2),U=B[0],Y=B[1],ee=d.useState(r),ie=Te(ee,2),Z=ie[0],X=ie[1],ae=d.useState([]),oe=Te(ae,2),le=oe[0],ce=oe[1],pe=d.useState(null),me=Te(pe,2),re=me[0],fe=me[1],ve=d.useRef(r);ve.current=r;function $e(){var Se=ve.current;Y(Se),X(Se),ce([]),fe(null),O()}nr(function(){L(i);var Se=bot(K,i);if(Se.key!==null)if(Se.add){var we=U.findIndex(function(G){var de=G.key;return de===Se.key}),se=kZ(SZ(U,r,Se.key),w,v,y),ye=U.slice();ye.splice(we+1,0,_Z),X(ye),ce(se),fe("show")}else{var Oe=r.findIndex(function(G){var de=G.key;return de===Se.key}),z=kZ(SZ(r,U,Se.key),w,v,y),H=r.slice();H.splice(Oe+1,0,_Z),X(H),ce(z),fe("hide")}else U!==r&&(Y(r),X(r))},[i,r]),d.useEffect(function(){p||$e()},[p]);var Ce=g?Z:r,be={expandedKeys:i,selectedKeys:a,loadedKeys:s,loadingKeys:l,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:h,dropPosition:m,keyEntities:u};return d.createElement(d.Fragment,null,S&&k&&d.createElement("span",{style:CZ,"aria-live":"assertive"},Sot(k)),d.createElement("div",null,d.createElement("input",{style:CZ,disabled:C===!1||f,tabIndex:C!==!1?_:null,onKeyDown:E,onFocus:$,onBlur:M,value:"",onChange:xot,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},d.createElement("div",{className:"".concat(n,"-indent")},d.createElement("div",{ref:A,className:"".concat(n,"-indent-unit")}))),d.createElement(gB,tt({},j,{data:Ce,itemKey:EZ,height:v,fullHeight:!1,virtual:w,itemHeight:y,scrollWidth:b,prefixCls:"".concat(n,"-list"),ref:I,role:"tree",onVisibleChange:function(we){we.every(function(se){return EZ(se)!==Cg})&&$e()}}),function(Se){var we=Se.pos,se=Object.assign({},(Tve(Se.data),Se.data)),ye=Se.title,Oe=Se.key,z=Se.isStart,H=Se.isEnd,G=P4(Oe,we);delete se.key,delete se.children;var de=J2(G,be);return d.createElement(yot,tt({},se,de,{title:ye,active:!!k&&Oe===k.key,pos:we,data:Se.data,isStart:z,isEnd:H,motion:g,motionNodes:Oe===Cg?le:null,motionType:re,onMotionStart:R,onMotionEnd:$e,treeNodeRequiredProps:be,onMouseMove:function(){P(null)}}))}))}),_ot=10,Z8=function(e){$o(n,e);var t=rs(n);function n(){var r;Ar(this,n);for(var i=arguments.length,a=new Array(i),o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,p=f.dragChildrenKeys,h=f.dropPosition,m=f.dropTargetKey,g=f.dropTargetPos,v=f.dropAllowed;if(v){var y=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),m!==null){var w=q(q({},J2(m,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===m,data:Ns(r.state.keyEntities,m).node}),b=p.includes(m);Br(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var C=lz(g),k={event:s,node:Pa(w),dragNode:r.dragNodeProps?Pa(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(p),dropToGap:h!==0,dropPosition:h+Number(C[C.length-1])};u||y==null||y(k),r.dragNodeProps=null}}}),ne(fn(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),ne(fn(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,f=c.flattenNodes,p=l.expanded,h=l.key,m=l.isLeaf;if(!(m||s.shiftKey||s.metaKey||s.ctrlKey)){var g=f.filter(function(y){return y.key===h})[0],v=Pa(q(q({},J2(h,r.getTreeNodeRequiredProps())),{},{data:g.data}));r.setExpandedKeys(p?Wd(u,h):lp(u,h)),r.onNodeExpand(s,v)}}),ne(fn(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,f=c.expandAction;f==="click"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ne(fn(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,f=c.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ne(fn(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,f=u.keyEntities,p=u.fieldNames,h=r.props,m=h.onSelect,g=h.multiple,v=l.selected,y=l[p.key],w=!v;w?g?c=lp(c,y):c=[y]:c=Wd(c,y);var b=c.map(function(C){var k=Ns(f,C);return k?k.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),m==null||m(c,{event:"select",selected:w,node:l,selectedNodes:b,nativeEvent:s.nativeEvent})}),ne(fn(r),"onNodeCheck",function(s,l,c){var u=r.state,f=u.keyEntities,p=u.checkedKeys,h=u.halfCheckedKeys,m=r.props,g=m.checkStrictly,v=m.onCheck,y=l.key,w,b={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(g){var C=c?lp(p,y):Wd(p,y),k=Wd(h,y);w={checked:C,halfChecked:k},b.checkedNodes=C.map(function(P){return Ns(f,P)}).filter(Boolean).map(function(P){return P.node}),r.setUncontrolledState({checkedKeys:C})}else{var S=bf([].concat(lt(p),[y]),!0,f),_=S.checkedKeys,E=S.halfCheckedKeys;if(!c){var $=new Set(_);$.delete(y);var M=bf(Array.from($),{checked:!1,halfCheckedKeys:E},f);_=M.checkedKeys,E=M.halfCheckedKeys}w=_,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=E,_.forEach(function(P){var R=Ns(f,P);if(R){var O=R.node,j=R.pos;b.checkedNodes.push(O),b.checkedNodesPositions.push({node:O,pos:j})}}),r.setUncontrolledState({checkedKeys:_},!1,{halfCheckedKeys:E})}v==null||v(w,b)}),ne(fn(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,f=Ns(u,c);if(!(f!=null&&(l=f.children)!==null&&l!==void 0&&l.length)){var p=new Promise(function(h,m){r.setState(function(g){var v=g.loadedKeys,y=v===void 0?[]:v,w=g.loadingKeys,b=w===void 0?[]:w,C=r.props,k=C.loadData,S=C.onLoad;if(!k||y.includes(c)||b.includes(c))return null;var _=k(s);return _.then(function(){var E=r.state.loadedKeys,$=lp(E,c);S==null||S($,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:$}),r.setState(function(M){return{loadingKeys:Wd(M.loadingKeys,c)}}),h()}).catch(function(E){if(r.setState(function(M){return{loadingKeys:Wd(M.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=_ot){var $=r.state.loadedKeys;Br(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:lp($,c)}),h()}m(E)}),{loadingKeys:lp(b,c)}})});return p.catch(function(){}),p}}),ne(fn(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),ne(fn(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),ne(fn(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),ne(fn(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,f=!0,p={};Object.keys(s).forEach(function(h){if(r.props.hasOwnProperty(h)){f=!1;return}u=!0,p[h]=s[h]}),u&&(!l||f)&&r.setState(q(q({},p),c))}}),ne(fn(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Dr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var i=this.props,a=i.activeKey,o=i.itemScrollOffset,s=o===void 0?0:o;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var i=this.state,a=i.focused,o=i.flattenNodes,s=i.keyEntities,l=i.draggingNodeKey,c=i.activeKey,u=i.dropLevelOffset,f=i.dropContainerKey,p=i.dropTargetKey,h=i.dropPosition,m=i.dragOverNodeKey,g=i.indent,v=this.props,y=v.prefixCls,w=v.className,b=v.style,C=v.showLine,k=v.focusable,S=v.tabIndex,_=S===void 0?0:S,E=v.selectable,$=v.showIcon,M=v.icon,P=v.switcherIcon,R=v.draggable,O=v.checkable,j=v.checkStrictly,I=v.disabled,A=v.motion,N=v.loadData,F=v.filterTreeNode,K=v.height,L=v.itemHeight,V=v.scrollWidth,B=v.virtual,U=v.titleRender,Y=v.dropIndicatorRender,ee=v.onContextMenu,ie=v.onScroll,Z=v.direction,X=v.rootClassName,ae=v.rootStyle,oe=Fi(this.props,{aria:!0,data:!0}),le;R&&(Kt(R)==="object"?le=R:typeof R=="function"?le={nodeDraggable:R}:le={});var ce={prefixCls:y,selectable:E,showIcon:$,icon:M,switcherIcon:P,draggable:le,draggingNodeKey:l,checkable:O,checkStrictly:j,disabled:I,keyEntities:s,dropLevelOffset:u,dropContainerKey:f,dropTargetKey:p,dropPosition:h,dragOverNodeKey:m,indent:g,direction:Z,dropIndicatorRender:Y,loadData:N,filterTreeNode:F,titleRender:U,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return d.createElement(sz.Provider,{value:ce},d.createElement("div",{className:Ee(y,w,X,ne(ne(ne({},"".concat(y,"-show-line"),C),"".concat(y,"-focused"),a),"".concat(y,"-active-focused"),c!==null)),style:ae},d.createElement(Cot,tt({ref:this.listRef,prefixCls:y,style:b,data:o,disabled:I,selectable:E,checkable:!!O,motion:A,dragging:l!==null,height:K,itemHeight:L,virtual:B,focusable:k,focused:a,tabIndex:_,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ee,onScroll:ie,scrollWidth:V},this.getTreeNodeRequiredProps(),oe))))}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s={prevProps:i};function l(_){return!o&&i.hasOwnProperty(_)||o&&o[_]!==i[_]}var c,u=a.fieldNames;if(l("fieldNames")&&(u=A0(i.fieldNames),s.fieldNames=u),l("treeData")?c=i.treeData:l("children")&&(Br(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=Ege(i.children)),c){s.treeData=c;var f=L8(c,{fieldNames:u});s.keyEntities=q(ne({},Cg,Pve),f.keyEntities)}var p=s.keyEntities||a.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))s.expandedKeys=i.autoExpandParent||!o&&i.defaultExpandParent?Qj(i.expandedKeys,p):i.expandedKeys;else if(!o&&i.defaultExpandAll){var h=q({},p);delete h[Cg];var m=[];Object.keys(h).forEach(function(_){var E=h[_];E.children&&E.children.length&&m.push(E.key)}),s.expandedKeys=m}else!o&&i.defaultExpandedKeys&&(s.expandedKeys=i.autoExpandParent||i.defaultExpandParent?Qj(i.defaultExpandedKeys,p):i.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var g=Y9(c||a.treeData,s.expandedKeys||a.expandedKeys,u);s.flattenNodes=g}if(i.selectable&&(l("selectedKeys")?s.selectedKeys=wZ(i.selectedKeys,i):!o&&i.defaultSelectedKeys&&(s.selectedKeys=wZ(i.defaultSelectedKeys,i))),i.checkable){var v;if(l("checkedKeys")?v=oT(i.checkedKeys)||{}:!o&&i.defaultCheckedKeys?v=oT(i.defaultCheckedKeys)||{}:c&&(v=oT(i.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),v){var y=v,w=y.checkedKeys,b=w===void 0?[]:w,C=y.halfCheckedKeys,k=C===void 0?[]:C;if(!i.checkStrictly){var S=bf(b,!0,p);b=S.checkedKeys,k=S.halfCheckedKeys}s.checkedKeys=b,s.halfCheckedKeys=k}}return l("loadedKeys")&&(s.loadedKeys=i.loadedKeys),s}}]),n}(d.Component);ne(Z8,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:mot,allowDrop:function(){return!0},expandAction:!1});ne(Z8,"TreeNode",u3);const kot=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i,motionDurationMid:a,borderRadius:o,controlItemBgHover:s}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:o},"&:hover:before":{background:s}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent","&:before, &:hover:before":{background:r}}}}}},Eot=new ir("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),$ot=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Mot=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Me(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Tot=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},ar(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},yc(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Eot,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:Me(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},$ot(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},Mot(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${Me(t.calc(a).div(2).equal())} !important`}})}},Ove=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=Hn(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[Tot(e,a),kot(a)]},Rve=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Pot=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},Rve(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Oot=Jn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:B8(`${n}-checkbox`,e)},Ove(n,e),x4(e)]},Pot),$Z=4;function Rot(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a="ltr"}=e,o=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",l={[o]:-n*i+$Z,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[o]=i+$Z;break}return te.createElement("div",{style:l,className:`${r}-drop-indicator`})}const Ive=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:l}=r;if(l)return d.isValidElement(a)?a:d.createElement(vu,{className:`${t}-switcher-loading-icon`});let c;if(i&&typeof i=="object"&&(c=i.showLeafIcon),o){if(!i)return null;if(typeof c!="boolean"&&c){const p=typeof c=="function"?c(r):c,h=`${t}-switcher-line-custom-icon`;return d.isValidElement(p)?aa(p,{className:Ee(p.props.className||"",h)}):p}return c?d.createElement(gve,{className:`${t}-switcher-line-icon`}):d.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return d.isValidElement(f)?aa(f,{className:Ee(f.props.className||"",u)}):f!==void 0?f:i?s?d.createElement(ait,{className:`${t}-switcher-line-icon`}):d.createElement(xit,{className:`${t}-switcher-line-icon`}):d.createElement(srt,{className:u})},jve=te.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:a,tree:o}=te.useContext(Xt),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:f,switcherLoadingIcon:p,blockNode:h=!1,children:m,checkable:g=!1,selectable:v=!0,draggable:y,motion:w,style:b}=e,C=r("tree",s),k=r(),S=w??Object.assign(Object.assign({},P0(k)),{motionAppear:!1}),_=Object.assign(Object.assign({},e),{checkable:g,selectable:v,showIcon:c,motion:S,blockNode:h,showLine:!!u,dropIndicatorRender:Rot}),[E,$,M]=Oot(C),[,P]=ka(),R=P.paddingXS/2+(((n=P.Tree)===null||n===void 0?void 0:n.titleHeight)||P.controlHeightSM),O=te.useMemo(()=>{if(!y)return!1;let I={};switch(typeof y){case"function":I.nodeDraggable=y;break;case"object":I=Object.assign({},y);break}return I.icon!==!1&&(I.icon=I.icon||te.createElement(Vrt,null)),I},[y]),j=I=>te.createElement(Ive,{prefixCls:C,switcherIcon:f,switcherLoadingIcon:p,treeNodeProps:I,showLine:u});return E(te.createElement(Z8,Object.assign({itemHeight:R,ref:t,virtual:a},_,{style:Object.assign(Object.assign({},o==null?void 0:o.style),b),prefixCls:C,className:Ee({[`${C}-icon-hide`]:!c,[`${C}-block-node`]:h,[`${C}-unselectable`]:!v,[`${C}-rtl`]:i==="rtl"},o==null?void 0:o.className,l,$,M),direction:i,checkable:g&&te.createElement("span",{className:`${C}-checkbox-inner`}),selectable:v,switcherIcon:j,draggable:O}),m))}),MZ=0,sT=1,TZ=2;function cz(e,t,n){const{key:r,children:i}=n;function a(o){const s=o[r],l=o[i];t(s,o)!==!1&&cz(l||[],t,n)}e.forEach(a)}function Iot(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i,fieldNames:a}=e;const o=[];let s=MZ;if(r&&r===i)return[r];if(!r||!i)return[];function l(c){return c===r||c===i}return cz(t,c=>{if(s===TZ)return!1;if(l(c)){if(o.push(c),s===MZ)s=sT;else if(s===sT)return s=TZ,!1}else s===sT&&o.push(c);return n.includes(c)},A0(a)),o}function lT(e,t,n){const r=lt(t),i=[];return cz(e,(a,o)=>{const s=r.indexOf(a);return s!==-1&&(i.push(o),r.splice(s,1)),!!r.length},A0(n)),i}var PZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=PZ(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const o=d.useRef(null),s=d.useRef(null),l=()=>{const{keyEntities:E}=L8(OZ(a));let $;return n?$=Object.keys(E):r?$=Qj(a.expandedKeys||i||[],E):$=a.expandedKeys||i||[],$},[c,u]=d.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,p]=d.useState(()=>l());d.useEffect(()=>{"selectedKeys"in a&&u(a.selectedKeys)},[a.selectedKeys]),d.useEffect(()=>{"expandedKeys"in a&&p(a.expandedKeys)},[a.expandedKeys]);const h=(E,$)=>{var M;return"expandedKeys"in a||p(E),(M=a.onExpand)===null||M===void 0?void 0:M.call(a,E,$)},m=(E,$)=>{var M;const{multiple:P,fieldNames:R}=a,{node:O,nativeEvent:j}=$,{key:I=""}=O,A=OZ(a),N=Object.assign(Object.assign({},$),{selected:!0}),F=(j==null?void 0:j.ctrlKey)||(j==null?void 0:j.metaKey),K=j==null?void 0:j.shiftKey;let L;P&&F?(L=E,o.current=I,s.current=L,N.selectedNodes=lT(A,L,R)):P&&K?(L=Array.from(new Set([].concat(lt(s.current||[]),lt(Iot({treeData:A,expandedKeys:f,startKey:I,endKey:o.current,fieldNames:R}))))),N.selectedNodes=lT(A,L,R)):(L=[I],o.current=I,s.current=L,N.selectedNodes=lT(A,L,R)),(M=a.onSelect)===null||M===void 0||M.call(a,L,N),"selectedKeys"in a||u(L)},{getPrefixCls:g,direction:v}=d.useContext(Xt),{prefixCls:y,className:w,showIcon:b=!0,expandAction:C="click"}=a,k=PZ(a,["prefixCls","className","showIcon","expandAction"]),S=g("tree",y),_=Ee(`${S}-directory`,{[`${S}-directory-rtl`]:v==="rtl"},w);return d.createElement(jve,Object.assign({icon:jot,ref:t,blockNode:!0},k,{showIcon:b,expandAction:C,prefixCls:S,className:_,expandedKeys:f,selectedKeys:c,onSelect:m,onExpand:h}))},Aot=d.forwardRef(Not),uz=jve;uz.DirectoryTree=Aot;uz.TreeNode=u3;const Dot=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},ar(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},dz=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Hn(e,{tagFontSize:i,tagLineHeight:Me(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},fz=e=>({defaultBg:new ur(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Nve=Jn("Tag",e=>{const t=dz(e);return Dot(t)},fz);var Fot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,style:r,className:i,checked:a,onChange:o,onClick:s}=e,l=Fot(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=d.useContext(Xt),f=y=>{o==null||o(!a),s==null||s(y)},p=c("tag",n),[h,m,g]=Nve(p),v=Ee(p,`${p}-checkable`,{[`${p}-checkable-checked`]:a},u==null?void 0:u.className,i,m,g);return h(d.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:f})))}),Bot=e=>XE(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:a,darkColor:o}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:a,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),zot=Sy(["Tag","preset"],e=>{const t=dz(e);return Bot(t)},fz);function Hot(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const PS=(e,t,n)=>{const r=Hot(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},Uot=Sy(["Tag","status"],e=>{const t=dz(e);return[PS(t,"success","Success"),PS(t,"processing","Info"),PS(t,"error","Error"),PS(t,"warning","Warning")]},fz);var Wot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:l,onClose:c,bordered:u=!0,visible:f}=e,p=Wot(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:m,tag:g}=d.useContext(Xt),[v,y]=d.useState(!0),w=$r(p,["closeIcon","closable"]);d.useEffect(()=>{f!==void 0&&y(f)},[f]);const b=C8(l),C=mWe(l),k=b||C,S=Object.assign(Object.assign({backgroundColor:l&&!k?l:void 0},g==null?void 0:g.style),a),_=h("tag",n),[E,$,M]=Nve(_),P=Ee(_,g==null?void 0:g.className,{[`${_}-${l}`]:k,[`${_}-has-color`]:l&&!k,[`${_}-hidden`]:!v,[`${_}-rtl`]:m==="rtl",[`${_}-borderless`]:!u},r,i,$,M),R=F=>{F.stopPropagation(),c==null||c(F),!F.defaultPrevented&&y(!1)},[,O]=uB(R0(e),R0(g),{closable:!1,closeIconRender:F=>{const K=d.createElement("span",{className:`${_}-close-icon`,onClick:R},F);return qL(F,K,L=>({onClick:V=>{var B;(B=L==null?void 0:L.onClick)===null||B===void 0||B.call(L,V),R(V)},className:Ee(L==null?void 0:L.className,`${_}-close-icon`)}))}}),j=typeof p.onClick=="function"||o&&o.type==="a",I=s||null,A=I?d.createElement(d.Fragment,null,I,o&&d.createElement("span",null,o)):o,N=d.createElement("span",Object.assign({},w,{ref:t,className:P,style:S}),A,O,b&&d.createElement(zot,{key:"preset",prefixCls:_}),C&&d.createElement(Uot,{key:"status",prefixCls:_}));return E(j?d.createElement(w4,{component:"Tag"},N):N)}),Vi=Vot;Vi.CheckableTag=Lot;const qot=e=>{const t=e!=null&&e.algorithm?pg(e.algorithm):pg(g4),n=Object.assign(Object.assign({},T0),e==null?void 0:e.token);return IL(n,{override:e==null?void 0:e.token},t,UL)};function Kot(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const Got=(e,t)=>{const n=t??g4(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),Kot(t??e)),Sfe(r)),{controlHeight:i}),xfe(Object.assign(Object.assign({},n),{controlHeight:i})))},Yl=(e,t)=>new ur(e).setA(t).toRgbString(),D1=(e,t)=>new ur(e).lighten(t).toHexString(),Yot=e=>{const t=dh(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},Xot=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Yl(r,.85),colorTextSecondary:Yl(r,.65),colorTextTertiary:Yl(r,.45),colorTextQuaternary:Yl(r,.25),colorFill:Yl(r,.18),colorFillSecondary:Yl(r,.12),colorFillTertiary:Yl(r,.08),colorFillQuaternary:Yl(r,.04),colorBgSolid:Yl(r,.95),colorBgSolidHover:Yl(r,1),colorBgSolidActive:Yl(r,.9),colorBgElevated:D1(n,12),colorBgContainer:D1(n,8),colorBgLayout:D1(n,0),colorBgSpotlight:D1(n,26),colorBgBlur:Yl(r,.04),colorBorder:D1(n,26),colorBorderSecondary:D1(n,19)}},Zot=(e,t)=>{const n=Object.keys(LL).map(i=>{const a=dh(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((o,s,l)=>(o[`${i}-${l+1}`]=a[l],o[`${i}${l+1}`]=a[l],o),{})}).reduce((i,a)=>(i=Object.assign(Object.assign({},i),a),i),{}),r=t??g4(e);return Object.assign(Object.assign(Object.assign({},r),n),wfe(e,{generateColorPalettes:Yot,generateNeutralColorPalettes:Xot}))};function Qot(){const[e,t,n]=ka();return{theme:e,token:t,hashId:n}}const Ho={defaultSeed:t3.token,useToken:Qot,defaultAlgorithm:g4,darkAlgorithm:Zot,compactAlgorithm:Got,getDesignToken:qot,defaultConfig:t3,_internalContext:BL};var Jot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);id.createElement(tst,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),_g=d.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:i,bordered:a}=e,o=Jot(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=Od("timePicker",i,a),l=d.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return d.createElement(est,Object.assign({},o,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),Ave=Gf(_g,"popupAlign",void 0,"picker");_g._InternalPanelDoNotUseOrYouWillBeFired=Ave;_g.RangePicker=nst;_g._InternalPanelDoNotUseOrYouWillBeFired=Ave;const R6=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r)}),t},rst=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:i,key:a}=n;i&&t.set(a,r)}),t},ist=(e,t,n)=>{const r=d.useMemo(()=>(e||[]).map(o=>t?Object.assign(Object.assign({},o),{key:t(o)}):o),[e,t]),[i,a]=d.useMemo(()=>{const o=[],s=new Array((n||[]).length),l=R6(n||[]);return r.forEach(c=>{l.has(c.key)?s[l.get(c.key)]=c:o.push(c)}),[o,s]},[r,n,t]);return[r,i,a]},ast=[];function OS(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function RZ(e){return Array.from(e).join(";")}function ost(e,t,n){const[r,i]=d.useMemo(()=>[new Set(e.map(f=>f.key)),new Set(t.map(f=>f.key))],[e,t]),[a,o]=jn(ast,{value:n}),s=d.useMemo(()=>OS(a,r),[a,r]),l=d.useMemo(()=>OS(a,i),[a,i]);d.useEffect(()=>{o([].concat(lt(OS(a,r)),lt(OS(a,i))))},[RZ(r),RZ(i)]);const c=Vn(f=>{o([].concat(lt(f),lt(l)))}),u=Vn(f=>{o([].concat(lt(s),lt(f)))});return[s,l,c,u]}const sst=e=>{const{renderedText:t,renderedEl:n,item:r,checked:i,disabled:a,prefixCls:o,onClick:s,onRemove:l,showRemove:c}=e,u=Ee(`${o}-content-item`,{[`${o}-content-item-disabled`]:a||r.disabled,[`${o}-content-item-checked`]:i&&!r.disabled});let f;(typeof t=="string"||typeof t=="number")&&(f=String(t));const[p]=Ga("Transfer",Us.Transfer),h={className:u,title:f},m=d.createElement("span",{className:`${o}-content-item-text`},n);return c?d.createElement("li",Object.assign({},h),m,d.createElement("button",{type:"button",disabled:a||r.disabled,className:`${o}-content-item-remove`,"aria-label":p==null?void 0:p.remove,onClick:()=>l==null?void 0:l(r)},d.createElement(Y8,null))):(h.onClick=a||r.disabled?void 0:g=>s(r,g),d.createElement("li",Object.assign({},h),d.createElement(ps,{className:`${o}-checkbox`,checked:i,disabled:a||r.disabled}),m))},lst=d.memo(sst),cst=["handleFilter","handleClear","checkedKeys"],ust=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),dst=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:i,disabled:a,showRemove:o,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[f,p]=d.useState(1),h=d.useMemo(()=>s?ust(typeof s=="object"?s:{}):null,[s]),[m,g]=jn(10,{value:h==null?void 0:h.pageSize});d.useEffect(()=>{if(h){const _=Math.ceil(r.length/m);p(Math.min(f,_))}},[r,h,m]);const v=(_,E)=>{c(_.key,!i.includes(_.key),E)},y=_=>{u==null||u([_.key])},w=_=>{p(_)},b=(_,E)=>{p(_),g(E)},C=d.useMemo(()=>h?r.slice((f-1)*m,f*m):r,[f,r,h,m]);d.useImperativeHandle(t,()=>({items:C}));const k=h?d.createElement(I4,{size:"small",disabled:a,simple:h.simple,pageSize:m,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:r.length,current:f,onChange:w,onShowSizeChange:b}):null,S=Ee(`${n}-content`,{[`${n}-content-show-remove`]:o});return d.createElement(d.Fragment,null,d.createElement("ul",{className:S,onScroll:l},(C||[]).map(_=>{let{renderedEl:E,renderedText:$,item:M}=_;return d.createElement(lst,{key:M.key,item:M,renderedText:$,renderedEl:E,prefixCls:n,showRemove:o,onClick:v,onRemove:y,checked:i.includes(M.key),disabled:a||M.disabled})})),k)},fst=d.forwardRef(dst),Dve=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:i,onChange:a,handleClear:o}=e,s=d.useCallback(l=>{a==null||a(l),l.target.value===""&&(o==null||o())},[a]);return d.createElement(Ur,{placeholder:t,className:r,value:n,onChange:s,disabled:i,allowClear:!0,prefix:d.createElement(Ty,null)})},pst=()=>null;function hst(e){return!!(e&&!te.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Bb(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const mst=e=>e!==void 0,gst=e=>e&&typeof e=="object"?Object.assign(Object.assign({},e),{defaultValue:e.defaultValue||""}):{defaultValue:"",placeholder:""},eN=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:i,disabled:a,showSearch:o=!1,style:s,searchPlaceholder:l,notFoundContent:c,selectAll:u,deselectAll:f,selectCurrent:p,selectInvert:h,removeAll:m,removeCurrent:g,showSelectAll:v=!0,showRemove:y,pagination:w,direction:b,itemsUnit:C,itemUnit:k,selectAllLabel:S,selectionsIcon:_,footer:E,renderList:$,onItemSelectAll:M,onItemRemove:P,handleFilter:R,handleClear:O,filterOption:j,render:I=pst}=e,A=gst(o),[N,F]=d.useState(A.defaultValue),K=d.useRef({}),L=Ce=>{F(Ce.target.value),R(Ce)},V=()=>{F(""),O()},B=(Ce,be)=>j?j(N,be,b):Ce.includes(N),U=Ce=>{let be=$?$(Object.assign(Object.assign({},Ce),{onItemSelect:(we,se)=>Ce.onItemSelect(we,se)})):null;const Se=!!be;return Se||(be=te.createElement(fst,Object.assign({ref:K},Ce))),{customize:Se,bodyContent:be}},Y=Ce=>{const be=I(Ce),Se=hst(be);return{item:Ce,renderedEl:Se?be.label:be,renderedText:Se?be.value:be}},ee=d.useMemo(()=>Array.isArray(c)?c[b==="left"?0:1]:c,[c,b]),[ie,Z]=d.useMemo(()=>{const Ce=[],be=[];return n.forEach(Se=>{const we=Y(Se);N&&!B(we.renderedText,Se)||(Ce.push(Se),be.push(we))}),[Ce,be]},[n,N]),X=d.useMemo(()=>ie.filter(Ce=>i.includes(Ce.key)&&!Ce.disabled),[i,ie]),ae=d.useMemo(()=>{if(X.length===0)return"none";const Ce=R6(i);return ie.every(be=>Ce.has(be.key)||!!be.disabled)?"all":"part"},[i,X]),oe=d.useMemo(()=>{const Ce=o?te.createElement("div",{className:`${t}-body-search-wrapper`},te.createElement(Dve,{prefixCls:`${t}-search`,onChange:L,handleClear:V,placeholder:A.placeholder||l,value:N,disabled:a})):null,{customize:be,bodyContent:Se}=U(Object.assign(Object.assign({},$r(e,cst)),{filteredItems:ie,filteredRenderItems:Z,selectedKeys:i}));let we;return be?we=te.createElement("div",{className:`${t}-body-customize-wrapper`},Se):we=ie.length?Se:te.createElement("div",{className:`${t}-body-not-found`},ee),te.createElement("div",{className:Ee(`${t}-body`,{[`${t}-body-with-search`]:o})},Ce,we)},[o,t,l,N,a,i,ie,Z,ee]),le=te.createElement(ps,{disabled:n.filter(Ce=>!Ce.disabled).length===0||a,checked:ae==="all",indeterminate:ae==="part",className:`${t}-checkbox`,onChange:()=>{M==null||M(ie.filter(Ce=>!Ce.disabled).map(Ce=>{let{key:be}=Ce;return be}),ae!=="all")}}),ce=(Ce,be)=>{if(S)return typeof S=="function"?S({selectedCount:Ce,totalCount:be}):S;const Se=be>1?C:k;return te.createElement(te.Fragment,null,(Ce>0?`${Ce}/`:"")+be," ",Se)},pe=E&&(E.length<2?E(e):E(e,{direction:b})),me=Ee(t,{[`${t}-with-pagination`]:!!w,[`${t}-with-footer`]:!!pe}),re=pe?te.createElement("div",{className:`${t}-footer`},pe):null,fe=!y&&!w&≤let ve;y?ve=[w?{key:"removeCurrent",label:g,onClick(){var Ce;const be=Bb((((Ce=K.current)===null||Ce===void 0?void 0:Ce.items)||[]).map(Se=>Se.item));P==null||P(be)}}:null,{key:"removeAll",label:m,onClick(){P==null||P(Bb(ie))}}].filter(Boolean):ve=[{key:"selectAll",label:ae==="all"?f:u,onClick(){const Ce=Bb(ie);M==null||M(Ce,Ce.length!==i.length)}},w?{key:"selectCurrent",label:p,onClick(){var Ce;const be=((Ce=K.current)===null||Ce===void 0?void 0:Ce.items)||[];M==null||M(Bb(be.map(Se=>Se.item)),!0)}}:null,{key:"selectInvert",label:h,onClick(){var Ce;const be=Bb((((Ce=K.current)===null||Ce===void 0?void 0:Ce.items)||[]).map(se=>se.item)),Se=new Set(i),we=new Set(Se);be.forEach(se=>{Se.has(se)?we.delete(se):we.add(se)}),M==null||M(Array.from(we),"replace")}}];const $e=te.createElement(_6,{className:`${t}-header-dropdown`,menu:{items:ve},disabled:a},mst(_)?_:te.createElement(My,null));return te.createElement("div",{className:me,style:s},te.createElement("div",{className:`${t}-header`},v?te.createElement(te.Fragment,null,fe,$e):null,te.createElement("span",{className:`${t}-header-selected`},ce(X.length,ie.length)),te.createElement("span",{className:`${t}-header-title`},r)),oe,re)},Fve=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:i="",rightArrowText:a="",leftActive:o,rightActive:s,className:l,style:c,direction:u,oneWay:f}=e;return d.createElement("div",{className:l,style:c},d.createElement(Yt,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?d.createElement(bc,null):d.createElement(Nf,null)},a),!f&&d.createElement(Yt,{type:"primary",size:"small",disabled:t||!o,onClick:n,icon:u!=="rtl"?d.createElement(Nf,null):d.createElement(bc,null)},i))},vst=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:i}=e,a=`${t}-table`,o=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:i,minWidth:i}},[`${a}-pagination${a}-pagination`]:{margin:0,padding:e.paddingXS}},[`${o}[disabled]`]:{backgroundColor:"transparent"}}}},IZ=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},yst=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:Object.assign({},IZ(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},IZ(e,e.colorWarning))}},bst=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:i,itemHeight:a,headerHeight:o,transferHeaderVerticalPadding:s,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,colorTextSecondary:f,listHeight:p,listWidth:h,listWidthLG:m,fontSizeIcon:g,marginXS:v,paddingSM:y,lineType:w,antCls:b,iconCls:C,motionDurationSlow:k,controlItemBgHover:S,borderRadiusLG:_,colorBgContainer:E,colorText:$,controlItemBgActiveHover:M}=e,P=Me(e.calc(_).sub(i).equal());return{display:"flex",flexDirection:"column",width:h,height:p,border:`${Me(i)} ${w} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:m,height:"auto"},"&-search":{[`${C}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:o,padding:`${Me(e.calc(s).sub(i).equal())} ${Me(y)} ${Me(s)}`,color:$,background:E,borderBottom:`${Me(i)} ${w} ${r}`,borderRadius:`${Me(_)} ${Me(_)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},ao),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},wh()),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:y}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${P} ${P}`,"&-item":{display:"flex",alignItems:"center",minHeight:a,padding:`${Me(l)} ${Me(y)}`,transition:`all ${k}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},ao),{flex:"auto"}),"&-remove":Object.assign(Object.assign({},WL(e)),{color:n,"&:hover, &:focus":{color:f}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:S,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:M}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${Me(i)} ${w} ${r}`,[`${b}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${Me(i)} ${w} ${r}`},"&-checkbox":{lineHeight:1}}},wst=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:i,marginXXS:a,fontSizeIcon:o,colorBgContainerDisabled:s}=e;return{[r]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:s}},[`${r}-list`]:bst(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${Me(i)}`,verticalAlign:"middle",gap:a,[`${t}-btn ${n}`]:{fontSize:o}}})}},xst=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Sst=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:i,lineWidth:a}=e,o=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:i,itemHeight:r,itemPaddingBlock:(r-o)/2,transferHeaderVerticalPadding:Math.ceil((i-a-o)/2)}},Cst=Jn("Transfer",e=>{const t=Hn(e);return[wst(t),vst(t),yst(t),xst(t)]},Sst),Q8=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:i=[],operations:a=[],style:o={},listStyle:s={},locale:l={},titles:c,disabled:u,showSearch:f=!1,operationStyle:p,showSelectAll:h,oneWay:m,pagination:g,status:v,prefixCls:y,className:w,rootClassName:b,selectionsIcon:C,filterOption:k,render:S,footer:_,children:E,rowKey:$,onScroll:M,onChange:P,onSearch:R,onSelectChange:O}=e,{getPrefixCls:j,renderEmpty:I,direction:A,transfer:N}=d.useContext(Xt),F=j("transfer",y),[K,L,V]=Cst(F),[B,U,Y]=ist(t,$,n),[ee,ie,Z,X]=ost(U,Y,r),[ae,oe]=xZ(Ne=>Ne.key),[le,ce]=xZ(Ne=>Ne.key),pe=d.useCallback((Ne,He)=>{if(Ne==="left"){const Le=typeof He=="function"?He(ee||[]):He;Z(Le)}else{const Le=typeof He=="function"?He(ie||[]):He;X(Le)}},[ee,ie]),me=(Ne,He)=>{(Ne==="left"?oe:ce)(He)},re=d.useCallback((Ne,He)=>{Ne==="left"?O==null||O(He,ie):O==null||O(ee,He)},[ee,ie]),fe=Ne=>{var He;return(He=c??Ne.titles)!==null&&He!==void 0?He:[]},ve=Ne=>{M==null||M("left",Ne)},$e=Ne=>{M==null||M("right",Ne)},Ce=Ne=>{const He=Ne==="right"?ee:ie,Le=rst(B),Qe=He.filter(Ot=>!Le.has(Ot)),pt=R6(Qe),xt=Ne==="right"?Qe.concat(n):n.filter(Ot=>!pt.has(Ot)),Nt=Ne==="right"?"left":"right";pe(Nt,[]),re(Nt,[]),P==null||P(xt,Ne,Qe)},be=()=>{Ce("left"),me("left",null)},Se=()=>{Ce("right"),me("right",null)},we=(Ne,He,Le)=>{pe(Ne,Qe=>{let pt=[];if(Le==="replace")pt=He;else if(Le)pt=Array.from(new Set([].concat(lt(Qe),lt(He))));else{const xt=R6(He);pt=Qe.filter(Nt=>!xt.has(Nt))}return re(Ne,pt),pt}),me(Ne,null)},se=(Ne,He)=>{we("left",Ne,He)},ye=(Ne,He)=>{we("right",Ne,He)},Oe=Ne=>R==null?void 0:R("left",Ne.target.value),z=Ne=>R==null?void 0:R("right",Ne.target.value),H=()=>R==null?void 0:R("left",""),G=()=>R==null?void 0:R("right",""),de=(Ne,He,Le,Qe,pt)=>{He.has(Le)&&(He.delete(Le),me(Ne,null)),Qe&&(He.add(Le),me(Ne,pt))},xe=(Ne,He,Le,Qe)=>{(Ne==="left"?ae:le)(Qe,He,Le)},he=(Ne,He,Le,Qe)=>{const pt=Ne==="left",xt=lt(pt?ee:ie),Nt=new Set(xt),Ot=lt(pt?U:Y).filter(Ct=>!(Ct!=null&&Ct.disabled)),Pt=Ot.findIndex(Ct=>Ct.key===He);Qe&&xt.length>0?xe(Ne,Ot,Nt,Pt):de(Ne,Nt,He,Le,Pt);const st=Array.from(Nt);re(Ne,st),e.selectedKeys||pe(Ne,st)},Ue=(Ne,He,Le)=>{he("left",Ne,He,Le==null?void 0:Le.shiftKey)},We=(Ne,He,Le)=>{he("right",Ne,He,Le==null?void 0:Le.shiftKey)},ge=Ne=>{pe("right",[]),P==null||P(n.filter(He=>!Ne.includes(He)),"left",lt(Ne))},ze=Ne=>typeof s=="function"?s({direction:Ne}):s||{},Ve=d.useContext(oa),{hasFeedback:Be,status:Xe}=Ve,Ke=Ne=>Object.assign(Object.assign(Object.assign({},Ne),{notFoundContent:(I==null?void 0:I("Transfer"))||te.createElement(qg,{componentName:"Transfer"})}),l),qe=Mu(Xe,v),Et=!E&&g,ut=Y.filter(Ne=>ie.includes(Ne.key)&&!Ne.disabled).length>0,gt=U.filter(Ne=>ee.includes(Ne.key)&&!Ne.disabled).length>0,Ze=Ee(F,{[`${F}-disabled`]:u,[`${F}-customize-list`]:!!E,[`${F}-rtl`]:A==="rtl"},Al(F,qe,Be),N==null?void 0:N.className,w,b,L,V),[nt]=Ga("Transfer",Us.Transfer),jt=Ke(nt),[Lt,Bt]=fe(jt),Ut=C??(N==null?void 0:N.selectionsIcon);return K(te.createElement("div",{className:Ze,style:Object.assign(Object.assign({},N==null?void 0:N.style),o)},te.createElement(eN,Object.assign({prefixCls:`${F}-list`,titleText:Lt,dataSource:U,filterOption:k,style:ze("left"),checkedKeys:ee,handleFilter:Oe,handleClear:H,onItemSelect:Ue,onItemSelectAll:se,render:S,showSearch:f,renderList:E,footer:_,onScroll:ve,disabled:u,direction:A==="rtl"?"right":"left",showSelectAll:h,selectAllLabel:i[0],pagination:Et,selectionsIcon:Ut},jt)),te.createElement(Fve,{className:`${F}-operation`,rightActive:gt,rightArrowText:a[0],moveToRight:Se,leftActive:ut,leftArrowText:a[1],moveToLeft:be,style:p,disabled:u,direction:A,oneWay:m}),te.createElement(eN,Object.assign({prefixCls:`${F}-list`,titleText:Bt,dataSource:Y,filterOption:k,style:ze("right"),checkedKeys:ie,handleFilter:z,handleClear:G,onItemSelect:We,onItemSelectAll:ye,onItemRemove:ge,render:S,showSearch:f,renderList:E,footer:_,onScroll:$e,disabled:u,direction:A==="rtl"?"left":"right",showSelectAll:h,selectAllLabel:i[1],showRemove:m,pagination:Et,selectionsIcon:Ut},jt))))};Q8.List=eN;Q8.Search=Dve;Q8.Operation=Fve;const _st=function(e){var t=d.useRef({valueLabels:new Map});return d.useMemo(function(){var n=t.current.valueLabels,r=new Map,i=e.map(function(a){var o=a.value,s=a.label,l=s??n.get(o);return r.set(o,l),q(q({},a),{},{label:l})});return t.current.valueLabels=r,[i]},[e])};var kst=function(t,n,r,i){return d.useMemo(function(){var a=function(h){return h.map(function(m){var g=m.value;return g})},o=a(t),s=a(n),l=o.filter(function(p){return!i[p]}),c=o,u=s;if(r){var f=bf(o,!0,i);c=f.checkedKeys,u=f.halfCheckedKeys}return[Array.from(new Set([].concat(lt(l),lt(c)))),u]},[t,n,r,i])},Est=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},$st=function(t){var n=t||{},r=n.label,i=n.value,a=n.children;return{_title:r?[r]:["title","label"],value:i||"value",key:i||"value",children:a||"children"}},tN=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},Mst=function(t,n){var r=[],i=function a(o){o.forEach(function(s){var l=s[n.children];l&&(r.push(s[n.value]),a(l))})};return i(t),r},jZ=function(t){return t==null};const Tst=function(e,t){return d.useMemo(function(){var n=L8(e,{fieldNames:t,initWrapper:function(i){return q(q({},i),{},{valueEntities:new Map})},processEntity:function(i,a){var o=i.node[t.value];a.valueEntities.set(o,i)}});return n},[e,t])};var pz=function(){return null},Pst=["children","value"];function Lve(e){return Xi(e).map(function(t){if(!d.isValidElement(t)||!t.type)return null;var n=t,r=n.key,i=n.props,a=i.children,o=i.value,s=Ht(i,Pst),l=q({key:r,value:o},s),c=Lve(a);return c.length&&(l.children=c),l}).filter(function(t){return t})}function nN(e){if(!e)return e;var t=q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Br(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function Ost(e,t,n,r,i,a){var o=null,s=null;function l(){function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map(function(h,m){var g="".concat(f,"-").concat(m),v=h[a.value],y=n.includes(v),w=c(h[a.children]||[],g,y),b=d.createElement(pz,h,w.map(function(k){return k.node}));if(t===v&&(o=b),y){var C={pos:g,node:b,children:w};return p||s.push(C),C}return null}).filter(function(h){return h})}s||(s=[],c(r),s.sort(function(u,f){var p=u.node.props.value,h=f.node.props.value,m=n.indexOf(p),g=n.indexOf(h);return m-g}))}Object.defineProperty(e,"triggerNode",{get:function(){return Br(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),o}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return Br(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),i?s:s.map(function(u){var f=u.node;return f})}})}var Rst=function(t,n,r){var i=r.fieldNames,a=r.treeNodeFilterProp,o=r.filterTreeNode,s=i.children;return d.useMemo(function(){if(!n||o===!1)return t;var l=typeof o=="function"?o:function(u,f){return String(f[a]).toUpperCase().includes(n.toUpperCase())},c=function u(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f.reduce(function(h,m){var g=m[s],v=p||l(n,nN(m)),y=u(g||[],v);return(v||y.length)&&h.push(q(q({},m),{},ne({isLeaf:void 0},s,y))),h},[])};return c(t)},[t,n,s,a,o])};function NZ(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function Ist(e,t){var n=t.id,r=t.pId,i=t.rootPId,a=new Map,o=[];return e.forEach(function(s){var l=s[n],c=q(q({},s),{},{key:s.key||l});a.set(l,c)}),a.forEach(function(s){var l=s[r],c=a.get(l);c?(c.children=c.children||[],c.children.push(s)):(l===i||i===null)&&o.push(s)}),o}function jst(e,t,n){return d.useMemo(function(){if(e){if(n){var r=q({id:"id",pId:"pId",rootPId:null},Kt(n)==="object"?n:{});return Ist(e,r)}return e}return Lve(t)},[t,n,e])}var Bve=d.createContext(null),zve=d.createContext(null),Nst={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ast=function(t,n){var r=dB(),i=r.prefixCls,a=r.multiple,o=r.searchValue,s=r.toggleOpen,l=r.open,c=r.notFoundContent,u=d.useContext(zve),f=u.virtual,p=u.listHeight,h=u.listItemHeight,m=u.listItemScrollOffset,g=u.treeData,v=u.fieldNames,y=u.onSelect,w=u.dropdownMatchSelectWidth,b=u.treeExpandAction,C=u.treeTitleRender,k=u.onPopupScroll,S=u.leftMaxCount,_=u.leafCountOnly,E=u.valueEntities,$=d.useContext(Bve),M=$.checkable,P=$.checkedKeys,R=$.halfCheckedKeys,O=$.treeExpandedKeys,j=$.treeDefaultExpandAll,I=$.treeDefaultExpandedKeys,A=$.onTreeExpand,N=$.treeIcon,F=$.showTreeIcon,K=$.switcherIcon,L=$.treeLine,V=$.treeNodeFilterProp,B=$.loadData,U=$.treeLoadedKeys,Y=$.treeMotion,ee=$.onTreeLoad,ie=$.keyEntities,Z=d.useRef(),X=dg(function(){return g},[l,g],function(Ke,qe){return qe[0]&&Ke[1]!==qe[1]}),ae=d.useMemo(function(){return M?{checked:P,halfChecked:R}:null},[M,P,R]);d.useEffect(function(){if(l&&!a&&P.length){var Ke;(Ke=Z.current)===null||Ke===void 0||Ke.scrollTo({key:P[0]})}},[l]);var oe=function(qe){qe.preventDefault()},le=function(qe,Et){var ut=Et.node;M&&tN(ut)||(y(ut.key,{selected:!P.includes(ut.key)}),a||s(!1))},ce=d.useState(I),pe=Te(ce,2),me=pe[0],re=pe[1],fe=d.useState(null),ve=Te(fe,2),$e=ve[0],Ce=ve[1],be=d.useMemo(function(){return O?lt(O):o?$e:me},[me,$e,O,o]),Se=function(qe){re(qe),Ce(qe),A&&A(qe)},we=String(o).toLowerCase(),se=function(qe){return we?String(qe[V]).toLowerCase().includes(we):!1};d.useEffect(function(){o&&Ce(Mst(g,v))},[o]);var ye=d.useState(function(){return new Map}),Oe=Te(ye,2),z=Oe[0],H=Oe[1];d.useEffect(function(){S&&H(new Map)},[S]);function G(Ke){var qe=Ke[v.value];if(!z.has(qe)){var Et=E.get(qe),ut=(Et.children||[]).length===0;if(ut)z.set(qe,!1);else{var gt=Et.children.filter(function(nt){return!nt.node.disabled&&!nt.node.disableCheckbox&&!P.includes(nt.node[v.value])}),Ze=gt.length;z.set(qe,Ze>S)}}return z.get(qe)}var de=Vn(function(Ke){var qe=Ke[v.value];return P.includes(qe)||S===null?!1:S<=0?!0:_&&S?G(Ke):!1}),xe=function Ke(qe){var Et=rd(qe),ut;try{for(Et.s();!(ut=Et.n()).done;){var gt=ut.value;if(!(gt.disabled||gt.selectable===!1)){if(o){if(se(gt))return gt}else return gt;if(gt[v.children]){var Ze=Ke(gt[v.children]);if(Ze)return Ze}}}}catch(nt){Et.e(nt)}finally{Et.f()}return null},he=d.useState(null),Ue=Te(he,2),We=Ue[0],ge=Ue[1],ze=ie[We];d.useEffect(function(){if(l){var Ke=null,qe=function(){var ut=xe(X);return ut?ut[v.value]:null};!a&&P.length&&!o?Ke=P[0]:Ke=qe(),ge(Ke)}},[l,o]),d.useImperativeHandle(n,function(){var Ke;return{scrollTo:(Ke=Z.current)===null||Ke===void 0?void 0:Ke.scrollTo,onKeyDown:function(Et){var ut,gt=Et.which;switch(gt){case mt.UP:case mt.DOWN:case mt.LEFT:case mt.RIGHT:(ut=Z.current)===null||ut===void 0||ut.onKeyDown(Et);break;case mt.ENTER:{if(ze){var Ze=de(ze.node),nt=(ze==null?void 0:ze.node)||{},jt=nt.selectable,Lt=nt.value,Bt=nt.disabled;jt!==!1&&!Bt&&!Ze&&le(null,{node:{key:We},selected:!P.includes(Lt)})}break}case mt.ESC:s(!1)}},onKeyUp:function(){}}});var Ve=dg(function(){return!o},[o,O||me],function(Ke,qe){var Et=Te(Ke,1),ut=Et[0],gt=Te(qe,2),Ze=gt[0],nt=gt[1];return ut!==Ze&&!!(Ze||nt)}),Be=Ve?B:null;if(X.length===0)return d.createElement("div",{role:"listbox",className:"".concat(i,"-empty"),onMouseDown:oe},c);var Xe={fieldNames:v};return U&&(Xe.loadedKeys=U),be&&(Xe.expandedKeys=be),d.createElement("div",{onMouseDown:oe},ze&&l&&d.createElement("span",{style:Nst,"aria-live":"assertive"},ze.node.value),d.createElement(Mve.Provider,{value:{nodeDisabled:de}},d.createElement(Z8,tt({ref:Z,focusable:!1,prefixCls:"".concat(i,"-tree"),treeData:X,height:p,itemHeight:h,itemScrollOffset:m,virtual:f!==!1&&w!==!1,multiple:a,icon:N,showIcon:F,switcherIcon:K,showLine:L,loadData:Be,motion:Y,activeKey:We,checkable:M,checkStrictly:!0,checkedKeys:ae,selectedKeys:M?[]:P,defaultExpandAll:j,titleRender:C},Xe,{onActiveChange:ge,onSelect:le,onCheck:le,onExpand:Se,onLoad:ee,filterTreeNode:se,expandAction:b,onScroll:k}))))},Dst=d.forwardRef(Ast),hz="SHOW_ALL",mz="SHOW_PARENT",J8="SHOW_CHILD";function AZ(e,t,n,r){var i=new Set(e);return t===J8?e.filter(function(a){var o=n[a];return!o||!o.children||!o.children.some(function(s){var l=s.node;return i.has(l[r.value])})||!o.children.every(function(s){var l=s.node;return tN(l)||i.has(l[r.value])})}):t===mz?e.filter(function(a){var o=n[a],s=o?o.parent:null;return!s||tN(s.node)||!i.has(s.key)}):e}var Fst=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function Lst(e){return!e||Kt(e)!=="object"}var Bst=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tree-select":r,a=e.value,o=e.defaultValue,s=e.onChange,l=e.onSelect,c=e.onDeselect,u=e.searchValue,f=e.inputValue,p=e.onSearch,h=e.autoClearSearchValue,m=h===void 0?!0:h,g=e.filterTreeNode,v=e.treeNodeFilterProp,y=v===void 0?"value":v,w=e.showCheckedStrategy,b=e.treeNodeLabelProp,C=e.multiple,k=e.treeCheckable,S=e.treeCheckStrictly,_=e.labelInValue,E=e.maxCount,$=e.fieldNames,M=e.treeDataSimpleMode,P=e.treeData,R=e.children,O=e.loadData,j=e.treeLoadedKeys,I=e.onTreeLoad,A=e.treeDefaultExpandAll,N=e.treeExpandedKeys,F=e.treeDefaultExpandedKeys,K=e.onTreeExpand,L=e.treeExpandAction,V=e.virtual,B=e.listHeight,U=B===void 0?200:B,Y=e.listItemHeight,ee=Y===void 0?20:Y,ie=e.listItemScrollOffset,Z=ie===void 0?0:ie,X=e.onDropdownVisibleChange,ae=e.dropdownMatchSelectWidth,oe=ae===void 0?!0:ae,le=e.treeLine,ce=e.treeIcon,pe=e.showTreeIcon,me=e.switcherIcon,re=e.treeMotion,fe=e.treeTitleRender,ve=e.onPopupScroll,$e=Ht(e,Fst),Ce=vB(n),be=k&&!S,Se=k||S,we=S||_,se=Se||C,ye=jn(o,{value:a}),Oe=Te(ye,2),z=Oe[0],H=Oe[1],G=d.useMemo(function(){return k?w||J8:hz},[w,k]),de=d.useMemo(function(){return $st($)},[JSON.stringify($)]),xe=jn("",{value:u!==void 0?u:f,postState:function(De){return De||""}}),he=Te(xe,2),Ue=he[0],We=he[1],ge=function(De){We(De),p==null||p(De)},ze=jst(P,R,M),Ve=Tst(ze,de),Be=Ve.keyEntities,Xe=Ve.valueEntities,Ke=d.useCallback(function(dt){var De=[],Ye=[];return dt.forEach(function(ot){Xe.has(ot)?Ye.push(ot):De.push(ot)}),{missingRawValues:De,existRawValues:Ye}},[Xe]),qe=Rst(ze,Ue,{fieldNames:de,treeNodeFilterProp:y,filterTreeNode:g}),Et=d.useCallback(function(dt){if(dt){if(b)return dt[b];for(var De=de._title,Ye=0;YePt)){var Re=gt(dt);if(H(Re),m&&We(""),s){var It=dt;be&&(It=ot.map(function(Ie){var it=Xe.get(Ie);return it?it.node[de.value]:Ie}));var rt=De||{triggerValue:void 0,selected:void 0},$t=rt.triggerValue,Mt=rt.selected,dn=It;if(S){var pn=Bt.filter(function(Ie){return!It.includes(Ie.value)});dn=[].concat(lt(dn),lt(pn))}var T=gt(dn),D={preValue:Lt,triggerValue:$t},J=!0;(S||Ye==="selection"&&!Mt)&&(J=!1),Ost(D,$t,dt,ze,J,de),Se?D.checked=Mt:D.selected=Mt;var ke=we?T:T.map(function(Ie){return Ie.value});s(se?ke:ke[0],we?null:T.map(function(Ie){return Ie.label}),D)}}}),Ct=d.useCallback(function(dt,De){var Ye,ot=De.selected,Re=De.source,It=Be[dt],rt=It==null?void 0:It.node,$t=(Ye=rt==null?void 0:rt[de.value])!==null&&Ye!==void 0?Ye:dt;if(!se)st([$t],{selected:!0,triggerValue:$t},"option");else{var Mt=ot?[].concat(lt(Ut),[$t]):Le.filter(function(it){return it!==$t});if(be){var dn=Ke(Mt),pn=dn.missingRawValues,T=dn.existRawValues,D=T.map(function(it){return Xe.get(it).key}),J;if(ot){var ke=bf(D,!0,Be);J=ke.checkedKeys}else{var Ie=bf(D,{checked:!1,halfCheckedKeys:Qe},Be);J=Ie.checkedKeys}Mt=[].concat(lt(pn),lt(J.map(function(it){return Be[it].node[de.value]})))}st(Mt,{selected:ot,triggerValue:$t},Re||"option")}ot||!se?l==null||l($t,nN(rt)):c==null||c($t,nN(rt))},[Ke,Xe,Be,de,se,Ut,st,be,l,c,Le,Qe,E]),kt=d.useCallback(function(dt){if(X){var De={};Object.defineProperty(De,"documentClickClose",{get:function(){return Br(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),X(dt,De)}},[X]),qt=NZ(function(dt,De){var Ye=dt.map(function(ot){return ot.value});if(De.type==="clear"){st(Ye,{},"selection");return}De.values.length&&Ct(De.values[0].value,{selected:!1,source:"selection"})}),vt=d.useMemo(function(){return{virtual:V,dropdownMatchSelectWidth:oe,listHeight:U,listItemHeight:ee,listItemScrollOffset:Z,treeData:qe,fieldNames:de,onSelect:Ct,treeExpandAction:L,treeTitleRender:fe,onPopupScroll:ve,leftMaxCount:E===void 0?null:E-Ot.length,leafCountOnly:G==="SHOW_CHILD"&&!S&&!!k,valueEntities:Xe}},[V,oe,U,ee,Z,qe,de,Ct,L,fe,ve,E,Ot.length,G,S,k,Xe]),At=d.useMemo(function(){return{checkable:Se,loadData:O,treeLoadedKeys:j,onTreeLoad:I,checkedKeys:Le,halfCheckedKeys:Qe,treeDefaultExpandAll:A,treeExpandedKeys:N,treeDefaultExpandedKeys:F,onTreeExpand:K,treeIcon:ce,treeMotion:re,showTreeIcon:pe,switcherIcon:me,treeLine:le,treeNodeFilterProp:y,keyEntities:Be}},[Se,O,j,I,Le,Qe,A,N,F,K,ce,re,pe,me,le,y,Be]);return d.createElement(zve.Provider,{value:vt},d.createElement(Bve.Provider,{value:At},d.createElement(pB,tt({ref:t},$e,{id:Ce,prefixCls:i,mode:se?"multiple":void 0,displayValues:Ot,onDisplayValuesChange:qt,searchValue:Ue,onSearch:ge,OptionList:Dst,emptyOptions:!ze.length,onDropdownVisibleChange:kt,dropdownMatchSelectWidth:oe}))))}),L4=Bst;L4.TreeNode=pz;L4.SHOW_ALL=hz;L4.SHOW_PARENT=mz;L4.SHOW_CHILD=J8;const zst=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${Me(e.paddingXS)} ${Me(e.calc(e.paddingXS).div(2).equal())}`},Ove(n,Hn(e,{colorBgContainer:r})),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:"stretch",[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:"auto"}}}}},B8(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Hst(e,t,n){return Jn("TreeSelect",r=>{const i=Hn(r,{treePrefixCls:t});return[zst(i)]},Rve)(e,n)}var Ust=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,size:i,disabled:a,bordered:o=!0,className:s,rootClassName:l,treeCheckable:c,multiple:u,listHeight:f=256,listItemHeight:p,placement:h,notFoundContent:m,switcherIcon:g,treeLine:v,getPopupContainer:y,popupClassName:w,dropdownClassName:b,treeIcon:C=!1,transitionName:k,choiceTransitionName:S="",status:_,treeExpandAction:E,builtinPlacements:$,dropdownMatchSelectWidth:M,popupMatchSelectWidth:P,allowClear:R,variant:O,dropdownStyle:j,tagRender:I,maxCount:A,showCheckedStrategy:N,treeCheckStrictly:F}=e,K=Ust(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:L,getPrefixCls:V,renderEmpty:B,direction:U,virtual:Y,popupMatchSelectWidth:ee,popupOverflow:ie}=d.useContext(Xt),[,Z]=ka(),X=p??(Z==null?void 0:Z.controlHeightSM)+(Z==null?void 0:Z.paddingXXS),ae=V(),oe=V("select",r),le=V("select-tree",r),ce=V("tree-select",r),{compactSize:pe,compactItemClassnames:me}=$u(oe,U),re=qr(oe),fe=qr(ce),[ve,$e,Ce]=wB(oe,re),[be]=Hst(ce,le,fe),[Se,we]=Od("treeSelect",O,o),se=Ee(w||b,`${ce}-dropdown`,{[`${ce}-dropdown-rtl`]:U==="rtl"},l,Ce,re,fe,$e),ye=!!(c||u),Oe=d.useMemo(()=>{if(!(A&&(N==="SHOW_ALL"&&!F||N==="SHOW_PARENT")))return A},[A,N,F]),z=xB(e.suffixIcon,e.showArrow),H=(n=P??M)!==null&&n!==void 0?n:ee,{status:G,hasFeedback:de,isFormItemInput:xe,feedbackIcon:he}=d.useContext(oa),Ue=Mu(G,_),{suffixIcon:We,removeIcon:ge,clearIcon:ze}=w8(Object.assign(Object.assign({},K),{multiple:ye,showSuffixIcon:z,hasFeedback:de,feedbackIcon:he,prefixCls:oe,componentName:"TreeSelect"})),Ve=R===!0?{clearIcon:ze}:R;let Be;m!==void 0?Be=m:Be=(B==null?void 0:B("Select"))||d.createElement(qg,{componentName:"Select"});const Xe=$r(K,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ke=d.useMemo(()=>h!==void 0?h:U==="rtl"?"bottomRight":"bottomLeft",[h,U]),qe=Bi(Lt=>{var Bt;return(Bt=i??pe)!==null&&Bt!==void 0?Bt:Lt}),Et=d.useContext(ma),ut=a??Et,gt=Ee(!r&&ce,{[`${oe}-lg`]:qe==="large",[`${oe}-sm`]:qe==="small",[`${oe}-rtl`]:U==="rtl",[`${oe}-${Se}`]:we,[`${oe}-in-form-item`]:xe},Al(oe,Ue,de),me,s,l,Ce,re,fe,$e),Ze=Lt=>d.createElement(Ive,{prefixCls:le,switcherIcon:g,treeNodeProps:Lt,showLine:v}),[nt]=$c("SelectLike",j==null?void 0:j.zIndex),jt=d.createElement(L4,Object.assign({virtual:Y,disabled:ut},Xe,{dropdownMatchSelectWidth:H,builtinPlacements:bB($,ie),ref:t,prefixCls:oe,className:gt,listHeight:f,listItemHeight:X,treeCheckable:c&&d.createElement("span",{className:`${oe}-tree-checkbox-inner`}),treeLine:!!v,suffixIcon:We,multiple:ye,placement:Ke,removeIcon:ge,allowClear:Ve,switcherIcon:Ze,showTreeIcon:C,notFoundContent:Be,getPopupContainer:y||L,treeMotion:null,dropdownClassName:se,dropdownStyle:Object.assign(Object.assign({},j),{zIndex:nt}),choiceTransitionName:oo(ae,"",S),transitionName:oo(ae,"slide-up",k),treeExpandAction:E,tagRender:ye?I:void 0,maxCount:Oe,showCheckedStrategy:N,treeCheckStrictly:F}));return ve(be(jt))},Vst=d.forwardRef(Wst),Jg=Vst,qst=Gf(Jg,"dropdownAlign",e=>$r(e,["visible"]));Jg.TreeNode=pz;Jg.SHOW_ALL=hz;Jg.SHOW_PARENT=mz;Jg.SHOW_CHILD=J8;Jg._InternalPanelDoNotUseOrYouWillBeFired=qst;const Kst=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},Gst=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` h${r}&, div&-h${r}, div&-h${r} > textarea, h${r} - `]=Vst(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},Kst=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},HL(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Gst=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Qw[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),Yst=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${Me(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Xst=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Zst=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),Qst=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},qst(e)),{[` + `]=Kst(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},Yst=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},WL(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Xst=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Jw[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),Zst=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${Me(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Qst=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Jst=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),elt=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Gst(e)),{[` & + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t} - `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),Gst(e)),Kst(e)),{[` + `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),Xst(e)),Yst(e)),{[` ${t}-expand, ${t}-collapse, ${t}-edit, ${t}-copy - `]:Object.assign(Object.assign({},HL(e)),{marginInlineStart:e.marginXXS})}),Yst(e)),Xst(e)),Zst()),{"&-rtl":{direction:"rtl"}})}},Jst=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Fve=Jn("Typography",e=>[Qst(e)],Jst),elt=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:f,component:p,enterIcon:h=d.createElement(_rt,null)}=e,m=d.useRef(null),g=d.useRef(!1),v=d.useRef(null),[y,b]=d.useState(l);d.useEffect(()=>{b(l)},[l]),d.useEffect(()=>{var A;if(!((A=m.current)===null||A===void 0)&&A.resizableTextArea){const{textArea:R}=m.current.resizableTextArea;R.focus();const{length:j}=R.value;R.setSelectionRange(j,j)}},[]);const w=A=>{let{target:R}=A;b(R.value.replace(/[\n\r]/g,""))},_=()=>{g.current=!0},k=()=>{g.current=!1},S=A=>{let{keyCode:R}=A;g.current||(v.current=R)},C=()=>{c(y.trim())},E=A=>{let{keyCode:R,ctrlKey:j,altKey:N,metaKey:D,shiftKey:V}=A;v.current!==R||g.current||j||N||D||V||(R===gt.ENTER?(C(),f==null||f()):R===gt.ESC&&u())},$=()=>{C()},[M,P,I]=Fve(t),O=Ee(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl",[`${t}-${p}`]:!!p},r,P,I);return M(d.createElement("div",{className:O,style:i},d.createElement(Zge,{ref:m,maxLength:o,value:y,onChange:w,onKeyDown:S,onKeyUp:E,onCompositionStart:_,onCompositionEnd:k,onBlur:$,"aria-label":n,rows:1,autoSize:s}),h!==null?oa(h,{className:`${t}-edit-content-confirm`}):null))};var tlt=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=jZ[t.format]||jZ.default;window.clipboardData.setData(f,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(s),a.selectNodeContents(s),o.addRange(a);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){n&&console.error("unable to copy using execCommand: ",u),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=ilt("message"in t?t.message:rlt),window.prompt(r,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(a):o.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var olt=alt;const slt=ei(olt);var llt=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const clt=e=>{let{copyConfig:t,children:n}=e;const[r,i]=d.useState(!1),[a,o]=d.useState(!1),s=d.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(c.format=t.format),d.useEffect(()=>l,[]);const u=Vn(f=>llt(void 0,void 0,void 0,function*(){var p;f==null||f.preventDefault(),f==null||f.stopPropagation(),o(!0);try{const h=typeof t.text=="function"?yield t.text():t.text;slt(h||K1e(n,!0).join("")||"",c),o(!1),i(!0),l(),s.current=setTimeout(()=>{i(!1)},3e3),(p=t.onCopy)===null||p===void 0||p.call(t,f)}catch(h){throw o(!1),h}}));return{copied:r,copyLoading:a,onClick:u}};function oT(e,t){return d.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const ult=e=>{const t=d.useRef(void 0);return d.useEffect(()=>{t.current=e}),t.current},dlt=(e,t,n)=>d.useMemo(()=>e===!0?{title:t??n}:d.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var flt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,component:r="article",className:i,rootClassName:a,setContentRef:o,children:s,direction:l,style:c}=e,u=flt(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:h}=d.useContext(Zt),m=l??p,g=o?va(t,o):t,v=f("typography",n),[y,b,w]=Fve(v),_=Ee(v,h==null?void 0:h.className,{[`${v}-rtl`]:m==="rtl"},i,a,b,w),k=Object.assign(Object.assign({},h==null?void 0:h.style),c);return y(d.createElement(r,Object.assign({className:_,style:k,ref:g},u),s))});function NZ(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function sT(e,t,n){return e===!0||e===void 0?t:e||n&&t}function plt(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const hz=e=>["string","number"].includes(typeof e),hlt=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:l,loading:c}=e;const u=NZ(a),f=NZ(o),{copied:p,copy:h}=r??{},m=n?p:h,g=sT(u[n?1:0],m),v=typeof g=="string"?g:m;return d.createElement(Ea,{title:g},d.createElement("button",{type:"button",className:Ee(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:l,"aria-label":v,tabIndex:s},n?sT(f[1],d.createElement(sd,null),!0):sT(f[0],c?d.createElement(pu,null):d.createElement(drt,null),!0)))},PS=d.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=d.useRef(null);return d.useImperativeHandle(t,()=>({isExceed:()=>{const a=i.current;return a.scrollHeight>a.clientHeight},getHeight:()=>i.current.clientHeight})),d.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),mlt=e=>e.reduce((t,n)=>t+(hz(n)?String(n).length:1),0);function AZ(e,t){let n=0;const r=[];for(let i=0;it){const c=t-n;return r.push(String(a).slice(0,c)),r}r.push(a),n=l}return e}const lT=0,cT=1,uT=2,dT=3,DZ=4,OS={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function glt(e){const{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:l}=e,c=d.useMemo(()=>Zi(r),[r]),u=d.useMemo(()=>mlt(c),[r]),f=d.useMemo(()=>i(c,!1),[r]),[p,h]=d.useState(null),m=d.useRef(null),g=d.useRef(null),v=d.useRef(null),y=d.useRef(null),b=d.useRef(null),[w,_]=d.useState(!1),[k,S]=d.useState(lT),[C,E]=d.useState(0),[$,M]=d.useState(null);nr(()=>{S(t&&n&&u?cT:lT)},[n,r,a,t,c]),nr(()=>{var A,R,j,N;if(k===cT){S(uT);const D=g.current&&getComputedStyle(g.current).whiteSpace;M(D)}else if(k===uT){const D=!!(!((A=v.current)===null||A===void 0)&&A.isExceed());S(D?dT:DZ),h(D?[0,u]:null),_(D);const V=((R=v.current)===null||R===void 0?void 0:R.getHeight())||0,F=a===1?0:((j=y.current)===null||j===void 0?void 0:j.getHeight())||0,K=((N=b.current)===null||N===void 0?void 0:N.getHeight())||0,B=Math.max(V,F+K);E(B+1),l(D)}},[k]);const P=p?Math.ceil((p[0]+p[1])/2):0;nr(()=>{var A;const[R,j]=p||[0,0];if(R!==j){const D=(((A=m.current)===null||A===void 0?void 0:A.getHeight())||0)>C;let V=P;j-R===1&&(V=D?R:j),h(D?[R,V]:[V,j])}},[p,P]);const I=d.useMemo(()=>{if(!t)return i(c,!1);if(k!==dT||!p||p[0]!==p[1]){const A=i(c,!1);return[DZ,lT].includes(k)?A:d.createElement("span",{style:Object.assign(Object.assign({},OS),{WebkitLineClamp:a})},A)}return i(o?c:AZ(c,p[0]),w)},[o,k,p,c].concat(ct(s))),O={width:n,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return d.createElement(d.Fragment,null,I,k===uT&&d.createElement(d.Fragment,null,d.createElement(PS,{style:Object.assign(Object.assign(Object.assign({},O),OS),{WebkitLineClamp:a}),ref:v},f),d.createElement(PS,{style:Object.assign(Object.assign(Object.assign({},O),OS),{WebkitLineClamp:a-1}),ref:y},f),d.createElement(PS,{style:Object.assign(Object.assign(Object.assign({},O),OS),{WebkitLineClamp:1}),ref:b},i([],!0))),k===dT&&p&&p[0]!==p[1]&&d.createElement(PS,{style:Object.assign(Object.assign({},O),{top:400}),ref:m},i(AZ(c,P),!0)),k===cT&&d.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const vlt=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:d.createElement(Ea,Object.assign({open:n?void 0:!1},i),r)};var ylt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,className:i,style:a,type:o,disabled:s,children:l,ellipsis:c,editable:u,copyable:f,component:p,title:h}=e,m=ylt(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:v}=d.useContext(Zt),[y]=Xa("Text"),b=d.useRef(null),w=d.useRef(null),_=g("typography",r),k=$r(m,["mark","code","delete","underline","strong","keyboard","italic"]),[S,C]=oT(u),[E,$]=In(!1,{value:C.editing}),{triggerType:M=["icon"]}=C,P=Ve=>{var Be;Ve&&((Be=C.onStart)===null||Be===void 0||Be.call(C)),$(Ve)},I=ult(E);nr(()=>{var Ve;!E&&I&&((Ve=w.current)===null||Ve===void 0||Ve.focus())},[E]);const O=Ve=>{Ve==null||Ve.preventDefault(),P(!0)},A=Ve=>{var Be;(Be=C.onChange)===null||Be===void 0||Be.call(C,Ve),P(!1)},R=()=>{var Ve;(Ve=C.onCancel)===null||Ve===void 0||Ve.call(C),P(!1)},[j,N]=oT(f),{copied:D,copyLoading:V,onClick:F}=clt({copyConfig:N,children:l}),[K,B]=d.useState(!1),[U,Z]=d.useState(!1),[ee,ie]=d.useState(!1),[Y,X]=d.useState(!1),[ae,oe]=d.useState(!0),[le,ce]=oT(c,{expandable:!1,symbol:Ve=>Ve?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[pe,me]=In(ce.defaultExpanded||!1,{value:ce.expanded}),re=le&&(!pe||ce.expandable==="collapsible"),{rows:fe=1}=ce,ve=d.useMemo(()=>re&&(ce.suffix!==void 0||ce.onEllipsis||ce.expandable||S||j),[re,ce,S,j]);nr(()=>{le&&!ve&&(B(oY("webkitLineClamp")),Z(oY("textOverflow")))},[ve,le]);const[$e,Ce]=d.useState(re),be=d.useMemo(()=>ve?!1:fe===1?U:K,[ve,U,K]);nr(()=>{Ce(be&&re)},[be,re]);const Se=re&&($e?Y:ee),we=re&&fe===1&&$e,se=re&&fe>1&&$e,ye=(Ve,Be)=>{var Xe;me(Be.expanded),(Xe=ce.onExpand)===null||Xe===void 0||Xe.call(ce,Ve,Be)},[Oe,z]=d.useState(0),H=Ve=>{let{offsetWidth:Be}=Ve;z(Be)},G=Ve=>{var Be;ie(Ve),ee!==Ve&&((Be=ce.onEllipsis)===null||Be===void 0||Be.call(ce,Ve))};d.useEffect(()=>{const Ve=b.current;if(le&&$e&&Ve){const Be=plt(Ve);Y!==Be&&X(Be)}},[le,$e,l,se,ae,Oe]),d.useEffect(()=>{const Ve=b.current;if(typeof IntersectionObserver>"u"||!Ve||!$e||!re)return;const Be=new IntersectionObserver(()=>{oe(!!Ve.offsetParent)});return Be.observe(Ve),()=>{Be.disconnect()}},[$e,re]);const de=dlt(ce.tooltip,C.text,l),xe=d.useMemo(()=>{if(!(!le||$e))return[C.text,l,h,de.title].find(hz)},[le,$e,h,de.title,Se]);if(E)return d.createElement(elt,{value:(n=C.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:A,onCancel:R,onEnd:C.onEnd,prefixCls:_,className:i,style:a,direction:v,component:p,maxLength:C.maxLength,autoSize:C.autoSize,enterIcon:C.enterIcon});const he=()=>{const{expandable:Ve,symbol:Be}=ce;return Ve?d.createElement("button",{type:"button",key:"expand",className:`${_}-${pe?"collapse":"expand"}`,onClick:Xe=>ye(Xe,{expanded:!pe}),"aria-label":pe?y.collapse:y==null?void 0:y.expand},typeof Be=="function"?Be(pe):Be):null},Ue=()=>{if(!S)return;const{icon:Ve,tooltip:Be,tabIndex:Xe}=C,Ke=Zi(Be)[0]||(y==null?void 0:y.edit),qe=typeof Ke=="string"?Ke:"";return M.includes("icon")?d.createElement(Ea,{key:"edit",title:Be===!1?"":Ke},d.createElement("button",{type:"button",ref:w,className:`${_}-edit`,onClick:O,"aria-label":qe,tabIndex:Xe},Ve||d.createElement(Em,{role:"button"}))):null},We=()=>j?d.createElement(hlt,Object.assign({key:"copy"},N,{prefixCls:_,copied:D,locale:y,onCopy:F,loading:V,iconOnly:l==null})):null,ge=Ve=>[Ve&&he(),Ue(),We()],ze=Ve=>[Ve&&!pe&&d.createElement("span",{"aria-hidden":!0,key:"ellipsis"},wlt),ce.suffix,ge(Ve)];return d.createElement(Go,{onResize:H,disabled:!re},Ve=>d.createElement(vlt,{tooltipProps:de,enableEllipsis:re,isEllipsis:Se},d.createElement(Lve,Object.assign({className:Ee({[`${_}-${o}`]:o,[`${_}-disabled`]:s,[`${_}-ellipsis`]:le,[`${_}-ellipsis-single-line`]:we,[`${_}-ellipsis-multiple-line`]:se},i),prefixCls:r,style:Object.assign(Object.assign({},a),{WebkitLineClamp:se?fe:void 0}),component:p,ref:va(Ve,b,t),direction:v,onClick:M.includes("text")?O:void 0,"aria-label":xe==null?void 0:xe.toString(),title:h},k),d.createElement(glt,{enableMeasure:re&&!$e,text:l,rows:fe,width:Oe,onEllipsis:G,expanded:pe,miscDeps:[D,pe,V,S,j,y]},(Be,Xe)=>blt(e,d.createElement(d.Fragment,null,Be.length>0&&Xe&&!pe&&xe?d.createElement("span",{key:"show-content","aria-hidden":!0},Be):Be,ze(Xe)))))))});var xlt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{ellipsis:n,rel:r}=e,i=xlt(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete a.navigate,d.createElement(Q8,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))}),Clt=d.forwardRef((e,t)=>d.createElement(Q8,Object.assign({ref:t},e,{component:"div"})));var _lt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{ellipsis:n}=e,r=_lt(e,["ellipsis"]);const i=d.useMemo(()=>n&&typeof n=="object"?$r(n,["expandable","rows"]):n,[n]);return d.createElement(Q8,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},Elt=d.forwardRef(klt);var $lt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{level:n=1}=e,r=$lt(e,["level"]),i=Mlt.includes(n)?`h${n}`:"h1";return d.createElement(Q8,Object.assign({ref:t},r,{component:i}))}),Zf=Lve;Zf.Text=Elt;Zf.Link=Slt;Zf.Title=Tlt;Zf.Paragraph=Clt;const fT=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim();if(/^\*(\/\*)?$/.test(o))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?a===s.replace(/\/.*$/,""):i===s?!0:/^\w+$/.test(s)?(zr(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function Plt(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function FZ(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Olt(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(i){var a=e.data[i];if(Array.isArray(a)){a.forEach(function(o){n.append("".concat(i,"[]"),o)});return}n.append(i,a)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(a){e.onError(a)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Plt(e,t),FZ(t)):e.onSuccess(FZ(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(i){r[i]!==null&&t.setRequestHeader(i,r[i])}),t.send(n),{abort:function(){t.abort()}}}var Ilt=function(){var e=ha(mr().mark(function t(n,r){var i,a,o,s,l,c,u,f;return mr().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:c=function(){return c=ha(mr().mark(function g(v){return mr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",new Promise(function(w){v.file(function(_){r(_)?(v.fullPath&&!_.webkitRelativePath&&(Object.defineProperties(_,{webkitRelativePath:{writable:!0}}),_.webkitRelativePath=v.fullPath.replace(/^\//,""),Object.defineProperties(_,{webkitRelativePath:{writable:!1}})),w(_)):w(null)})}));case 1:case"end":return b.stop()}},g)})),c.apply(this,arguments)},l=function(g){return c.apply(this,arguments)},s=function(){return s=ha(mr().mark(function g(v){var y,b,w,_,k;return mr().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:y=v.createReader(),b=[];case 2:return C.next=5,new Promise(function(E){y.readEntries(E,function(){return E([])})});case 5:if(w=C.sent,_=w.length,_){C.next=9;break}return C.abrupt("break",12);case 9:for(k=0;k<_;k++)b.push(w[k]);C.next=2;break;case 12:return C.abrupt("return",b);case 13:case"end":return C.stop()}},g)})),s.apply(this,arguments)},o=function(g){return s.apply(this,arguments)},i=[],a=[],n.forEach(function(m){return a.push(m.webkitGetAsEntry())}),u=function(){var m=ha(mr().mark(function g(v,y){var b,w;return mr().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(v){k.next=2;break}return k.abrupt("return");case 2:if(v.path=y||"",!v.isFile){k.next=10;break}return k.next=6,l(v);case 6:b=k.sent,b&&i.push(b),k.next=15;break;case 10:if(!v.isDirectory){k.next=15;break}return k.next=13,o(v);case 13:w=k.sent,a.push.apply(a,ct(w));case 15:case"end":return k.stop()}},g)}));return function(v,y){return m.apply(this,arguments)}}(),f=0;case 9:if(!(f{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Me(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Me(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + `]:Object.assign(Object.assign({},WL(e)),{marginInlineStart:e.marginXXS})}),Zst(e)),Qst(e)),Jst()),{"&-rtl":{direction:"rtl"}})}},tlt=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Hve=Jn("Typography",e=>[elt(e)],tlt),nlt=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:f,component:p,enterIcon:h=d.createElement(Ert,null)}=e,m=d.useRef(null),g=d.useRef(!1),v=d.useRef(null),[y,w]=d.useState(l);d.useEffect(()=>{w(l)},[l]),d.useEffect(()=>{var j;if(!((j=m.current)===null||j===void 0)&&j.resizableTextArea){const{textArea:I}=m.current.resizableTextArea;I.focus();const{length:A}=I.value;I.setSelectionRange(A,A)}},[]);const b=j=>{let{target:I}=j;w(I.value.replace(/[\n\r]/g,""))},C=()=>{g.current=!0},k=()=>{g.current=!1},S=j=>{let{keyCode:I}=j;g.current||(v.current=I)},_=()=>{c(y.trim())},E=j=>{let{keyCode:I,ctrlKey:A,altKey:N,metaKey:F,shiftKey:K}=j;v.current!==I||g.current||A||N||F||K||(I===mt.ENTER?(_(),f==null||f()):I===mt.ESC&&u())},$=()=>{_()},[M,P,R]=Hve(t),O=Ee(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl",[`${t}-${p}`]:!!p},r,P,R);return M(d.createElement("div",{className:O,style:i},d.createElement(t1e,{ref:m,maxLength:o,value:y,onChange:b,onKeyDown:S,onKeyUp:E,onCompositionStart:C,onCompositionEnd:k,onBlur:$,"aria-label":n,rows:1,autoSize:s}),h!==null?aa(h,{className:`${t}-edit-content-confirm`}):null))};var rlt=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=DZ[t.format]||DZ.default;window.clipboardData.setData(f,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(s),a.selectNodeContents(s),o.addRange(a);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){n&&console.error("unable to copy using execCommand: ",u),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=olt("message"in t?t.message:alt),window.prompt(r,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(a):o.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var llt=slt;const clt=ei(llt);var ult=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const dlt=e=>{let{copyConfig:t,children:n}=e;const[r,i]=d.useState(!1),[a,o]=d.useState(!1),s=d.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(c.format=t.format),d.useEffect(()=>l,[]);const u=Vn(f=>ult(void 0,void 0,void 0,function*(){var p;f==null||f.preventDefault(),f==null||f.stopPropagation(),o(!0);try{const h=typeof t.text=="function"?yield t.text():t.text;clt(h||Z1e(n,!0).join("")||"",c),o(!1),i(!0),l(),s.current=setTimeout(()=>{i(!1)},3e3),(p=t.onCopy)===null||p===void 0||p.call(t,f)}catch(h){throw o(!1),h}}));return{copied:r,copyLoading:a,onClick:u}};function cT(e,t){return d.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const flt=e=>{const t=d.useRef(void 0);return d.useEffect(()=>{t.current=e}),t.current},plt=(e,t,n)=>d.useMemo(()=>e===!0?{title:t??n}:d.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var hlt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,component:r="article",className:i,rootClassName:a,setContentRef:o,children:s,direction:l,style:c}=e,u=hlt(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:h}=d.useContext(Xt),m=l??p,g=o?ga(t,o):t,v=f("typography",n),[y,w,b]=Hve(v),C=Ee(v,h==null?void 0:h.className,{[`${v}-rtl`]:m==="rtl"},i,a,w,b),k=Object.assign(Object.assign({},h==null?void 0:h.style),c);return y(d.createElement(r,Object.assign({className:C,style:k,ref:g},u),s))});function FZ(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function uT(e,t,n){return e===!0||e===void 0?t:e||n&&t}function mlt(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const gz=e=>["string","number"].includes(typeof e),glt=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:l,loading:c}=e;const u=FZ(a),f=FZ(o),{copied:p,copy:h}=r??{},m=n?p:h,g=uT(u[n?1:0],m),v=typeof g=="string"?g:m;return d.createElement(_a,{title:g},d.createElement("button",{type:"button",className:Ee(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:l,"aria-label":v,tabIndex:s},n?uT(f[1],d.createElement(ud,null),!0):uT(f[0],c?d.createElement(vu,null):d.createElement(prt,null),!0)))},RS=d.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=d.useRef(null);return d.useImperativeHandle(t,()=>({isExceed:()=>{const a=i.current;return a.scrollHeight>a.clientHeight},getHeight:()=>i.current.clientHeight})),d.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),vlt=e=>e.reduce((t,n)=>t+(gz(n)?String(n).length:1),0);function LZ(e,t){let n=0;const r=[];for(let i=0;it){const c=t-n;return r.push(String(a).slice(0,c)),r}r.push(a),n=l}return e}const dT=0,fT=1,pT=2,hT=3,BZ=4,IS={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function ylt(e){const{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:l}=e,c=d.useMemo(()=>Xi(r),[r]),u=d.useMemo(()=>vlt(c),[r]),f=d.useMemo(()=>i(c,!1),[r]),[p,h]=d.useState(null),m=d.useRef(null),g=d.useRef(null),v=d.useRef(null),y=d.useRef(null),w=d.useRef(null),[b,C]=d.useState(!1),[k,S]=d.useState(dT),[_,E]=d.useState(0),[$,M]=d.useState(null);nr(()=>{S(t&&n&&u?fT:dT)},[n,r,a,t,c]),nr(()=>{var j,I,A,N;if(k===fT){S(pT);const F=g.current&&getComputedStyle(g.current).whiteSpace;M(F)}else if(k===pT){const F=!!(!((j=v.current)===null||j===void 0)&&j.isExceed());S(F?hT:BZ),h(F?[0,u]:null),C(F);const K=((I=v.current)===null||I===void 0?void 0:I.getHeight())||0,L=a===1?0:((A=y.current)===null||A===void 0?void 0:A.getHeight())||0,V=((N=w.current)===null||N===void 0?void 0:N.getHeight())||0,B=Math.max(K,L+V);E(B+1),l(F)}},[k]);const P=p?Math.ceil((p[0]+p[1])/2):0;nr(()=>{var j;const[I,A]=p||[0,0];if(I!==A){const F=(((j=m.current)===null||j===void 0?void 0:j.getHeight())||0)>_;let K=P;A-I===1&&(K=F?I:A),h(F?[I,K]:[K,A])}},[p,P]);const R=d.useMemo(()=>{if(!t)return i(c,!1);if(k!==hT||!p||p[0]!==p[1]){const j=i(c,!1);return[BZ,dT].includes(k)?j:d.createElement("span",{style:Object.assign(Object.assign({},IS),{WebkitLineClamp:a})},j)}return i(o?c:LZ(c,p[0]),b)},[o,k,p,c].concat(lt(s))),O={width:n,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return d.createElement(d.Fragment,null,R,k===pT&&d.createElement(d.Fragment,null,d.createElement(RS,{style:Object.assign(Object.assign(Object.assign({},O),IS),{WebkitLineClamp:a}),ref:v},f),d.createElement(RS,{style:Object.assign(Object.assign(Object.assign({},O),IS),{WebkitLineClamp:a-1}),ref:y},f),d.createElement(RS,{style:Object.assign(Object.assign(Object.assign({},O),IS),{WebkitLineClamp:1}),ref:w},i([],!0))),k===hT&&p&&p[0]!==p[1]&&d.createElement(RS,{style:Object.assign(Object.assign({},O),{top:400}),ref:m},i(LZ(c,P),!0)),k===fT&&d.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const blt=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:d.createElement(_a,Object.assign({open:n?void 0:!1},i),r)};var wlt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,className:i,style:a,type:o,disabled:s,children:l,ellipsis:c,editable:u,copyable:f,component:p,title:h}=e,m=wlt(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:v}=d.useContext(Xt),[y]=Ga("Text"),w=d.useRef(null),b=d.useRef(null),C=g("typography",r),k=$r(m,["mark","code","delete","underline","strong","keyboard","italic"]),[S,_]=cT(u),[E,$]=jn(!1,{value:_.editing}),{triggerType:M=["icon"]}=_,P=Ve=>{var Be;Ve&&((Be=_.onStart)===null||Be===void 0||Be.call(_)),$(Ve)},R=flt(E);nr(()=>{var Ve;!E&&R&&((Ve=b.current)===null||Ve===void 0||Ve.focus())},[E]);const O=Ve=>{Ve==null||Ve.preventDefault(),P(!0)},j=Ve=>{var Be;(Be=_.onChange)===null||Be===void 0||Be.call(_,Ve),P(!1)},I=()=>{var Ve;(Ve=_.onCancel)===null||Ve===void 0||Ve.call(_),P(!1)},[A,N]=cT(f),{copied:F,copyLoading:K,onClick:L}=dlt({copyConfig:N,children:l}),[V,B]=d.useState(!1),[U,Y]=d.useState(!1),[ee,ie]=d.useState(!1),[Z,X]=d.useState(!1),[ae,oe]=d.useState(!0),[le,ce]=cT(c,{expandable:!1,symbol:Ve=>Ve?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[pe,me]=jn(ce.defaultExpanded||!1,{value:ce.expanded}),re=le&&(!pe||ce.expandable==="collapsible"),{rows:fe=1}=ce,ve=d.useMemo(()=>re&&(ce.suffix!==void 0||ce.onEllipsis||ce.expandable||S||A),[re,ce,S,A]);nr(()=>{le&&!ve&&(B(cY("webkitLineClamp")),Y(cY("textOverflow")))},[ve,le]);const[$e,Ce]=d.useState(re),be=d.useMemo(()=>ve?!1:fe===1?U:V,[ve,U,V]);nr(()=>{Ce(be&&re)},[be,re]);const Se=re&&($e?Z:ee),we=re&&fe===1&&$e,se=re&&fe>1&&$e,ye=(Ve,Be)=>{var Xe;me(Be.expanded),(Xe=ce.onExpand)===null||Xe===void 0||Xe.call(ce,Ve,Be)},[Oe,z]=d.useState(0),H=Ve=>{let{offsetWidth:Be}=Ve;z(Be)},G=Ve=>{var Be;ie(Ve),ee!==Ve&&((Be=ce.onEllipsis)===null||Be===void 0||Be.call(ce,Ve))};d.useEffect(()=>{const Ve=w.current;if(le&&$e&&Ve){const Be=mlt(Ve);Z!==Be&&X(Be)}},[le,$e,l,se,ae,Oe]),d.useEffect(()=>{const Ve=w.current;if(typeof IntersectionObserver>"u"||!Ve||!$e||!re)return;const Be=new IntersectionObserver(()=>{oe(!!Ve.offsetParent)});return Be.observe(Ve),()=>{Be.disconnect()}},[$e,re]);const de=plt(ce.tooltip,_.text,l),xe=d.useMemo(()=>{if(!(!le||$e))return[_.text,l,h,de.title].find(gz)},[le,$e,h,de.title,Se]);if(E)return d.createElement(nlt,{value:(n=_.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:j,onCancel:I,onEnd:_.onEnd,prefixCls:C,className:i,style:a,direction:v,component:p,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});const he=()=>{const{expandable:Ve,symbol:Be}=ce;return Ve?d.createElement("button",{type:"button",key:"expand",className:`${C}-${pe?"collapse":"expand"}`,onClick:Xe=>ye(Xe,{expanded:!pe}),"aria-label":pe?y.collapse:y==null?void 0:y.expand},typeof Be=="function"?Be(pe):Be):null},Ue=()=>{if(!S)return;const{icon:Ve,tooltip:Be,tabIndex:Xe}=_,Ke=Xi(Be)[0]||(y==null?void 0:y.edit),qe=typeof Ke=="string"?Ke:"";return M.includes("icon")?d.createElement(_a,{key:"edit",title:Be===!1?"":Ke},d.createElement("button",{type:"button",ref:b,className:`${C}-edit`,onClick:O,"aria-label":qe,tabIndex:Xe},Ve||d.createElement($m,{role:"button"}))):null},We=()=>A?d.createElement(glt,Object.assign({key:"copy"},N,{prefixCls:C,copied:F,locale:y,onCopy:L,loading:K,iconOnly:l==null})):null,ge=Ve=>[Ve&&he(),Ue(),We()],ze=Ve=>[Ve&&!pe&&d.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Slt),ce.suffix,ge(Ve)];return d.createElement(Go,{onResize:H,disabled:!re},Ve=>d.createElement(blt,{tooltipProps:de,enableEllipsis:re,isEllipsis:Se},d.createElement(Uve,Object.assign({className:Ee({[`${C}-${o}`]:o,[`${C}-disabled`]:s,[`${C}-ellipsis`]:le,[`${C}-ellipsis-single-line`]:we,[`${C}-ellipsis-multiple-line`]:se},i),prefixCls:r,style:Object.assign(Object.assign({},a),{WebkitLineClamp:se?fe:void 0}),component:p,ref:ga(Ve,w,t),direction:v,onClick:M.includes("text")?O:void 0,"aria-label":xe==null?void 0:xe.toString(),title:h},k),d.createElement(ylt,{enableMeasure:re&&!$e,text:l,rows:fe,width:Oe,onEllipsis:G,expanded:pe,miscDeps:[F,pe,K,S,A,y]},(Be,Xe)=>xlt(e,d.createElement(d.Fragment,null,Be.length>0&&Xe&&!pe&&xe?d.createElement("span",{key:"show-content","aria-hidden":!0},Be):Be,ze(Xe)))))))});var Clt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{ellipsis:n,rel:r}=e,i=Clt(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete a.navigate,d.createElement(e$,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))}),klt=d.forwardRef((e,t)=>d.createElement(e$,Object.assign({ref:t},e,{component:"div"})));var Elt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{ellipsis:n}=e,r=Elt(e,["ellipsis"]);const i=d.useMemo(()=>n&&typeof n=="object"?$r(n,["expandable","rows"]):n,[n]);return d.createElement(e$,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},Mlt=d.forwardRef($lt);var Tlt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{level:n=1}=e,r=Tlt(e,["level"]),i=Plt.includes(n)?`h${n}`:"h1";return d.createElement(e$,Object.assign({ref:t},r,{component:i}))}),Zf=Uve;Zf.Text=Mlt;Zf.Link=_lt;Zf.Title=Olt;Zf.Paragraph=klt;const mT=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim();if(/^\*(\/\*)?$/.test(o))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?a===s.replace(/\/.*$/,""):i===s?!0:/^\w+$/.test(s)?(Br(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function Rlt(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function zZ(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Ilt(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(i){var a=e.data[i];if(Array.isArray(a)){a.forEach(function(o){n.append("".concat(i,"[]"),o)});return}n.append(i,a)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(a){e.onError(a)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Rlt(e,t),zZ(t)):e.onSuccess(zZ(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(i){r[i]!==null&&t.setRequestHeader(i,r[i])}),t.send(n),{abort:function(){t.abort()}}}var jlt=function(){var e=pa(hr().mark(function t(n,r){var i,a,o,s,l,c,u,f;return hr().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:c=function(){return c=pa(hr().mark(function g(v){return hr().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",new Promise(function(b){v.file(function(C){r(C)?(v.fullPath&&!C.webkitRelativePath&&(Object.defineProperties(C,{webkitRelativePath:{writable:!0}}),C.webkitRelativePath=v.fullPath.replace(/^\//,""),Object.defineProperties(C,{webkitRelativePath:{writable:!1}})),b(C)):b(null)})}));case 1:case"end":return w.stop()}},g)})),c.apply(this,arguments)},l=function(g){return c.apply(this,arguments)},s=function(){return s=pa(hr().mark(function g(v){var y,w,b,C,k;return hr().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:y=v.createReader(),w=[];case 2:return _.next=5,new Promise(function(E){y.readEntries(E,function(){return E([])})});case 5:if(b=_.sent,C=b.length,C){_.next=9;break}return _.abrupt("break",12);case 9:for(k=0;k{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Me(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Me(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${t}-disabled):hover, &-hover:not(${t}-disabled) `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Me(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, p${t}-text, p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},Flt=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:a}=e,o=`${t}-list-item`,s=`${o}-actions`,l=`${o}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},hd()),{lineHeight:e.lineHeight,[o]:{position:"relative",height:a(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${o}-name`]:Object.assign(Object.assign({},oo),{padding:`0 ${Me(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` + `]:{color:e.colorTextDisabled}}}}}},Blt=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:a}=e,o=`${t}-list-item`,s=`${o}-actions`,l=`${o}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},vd()),{lineHeight:e.lineHeight,[o]:{position:"relative",height:a(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${o}-name`]:Object.assign(Object.assign({},ao),{padding:`0 ${Me(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` ${l}:focus-visible, &.picture ${l} - `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${o}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${o}:hover ${l}`]:{opacity:1},[`${o}-error`]:{color:e.colorError,[`${o}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Llt=e=>{const{componentCls:t}=e,n=new ir("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new ir("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:ZL(e)},n,r]},Blt=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` + `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${o}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${o}:hover ${l}`]:{opacity:1},[`${o}-error`]:{color:e.colorError,[`${o}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},zlt=e=>{const{componentCls:t}=e,n=new ir("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new ir("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:JL(e)},n,r]},Hlt=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` ${o}${o}-picture, ${o}${o}-picture-card, ${o}${o}-picture-circle - `]:{[s]:{position:"relative",height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},oo),{width:r,height:r,lineHeight:Me(a(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${Me(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${pg[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${pg.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},zlt=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,l=e.uploadPicCardSize;return{[` + `]:{[s]:{position:"relative",height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},ao),{width:r,height:r,lineHeight:Me(a(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${Me(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${hg[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${hg.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},Ult=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,l=e.uploadPicCardSize;return{[` ${t}-wrapper${t}-picture-card-wrapper, ${t}-wrapper${t}-picture-circle-wrapper - `]:Object.assign(Object.assign({},hd()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Me(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Me(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Me(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` + `]:Object.assign(Object.assign({},vd()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Me(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Me(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Me(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` ${n}-eye, ${n}-download, ${n}-delete - `]:{zIndex:10,width:r,margin:`0 ${Me(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${Me(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Me(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Hlt=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Ult=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},ar(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Wlt=e=>({actionsColor:e.colorTextDescription}),Vlt=Jn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:a}=e,o=Hn(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:a(i).mul(2.55).equal()});return[Ult(o),Dlt(o),Blt(o),zlt(o),Flt(o),Llt(o),Hlt(o),b4(o)]},Wlt);function IS(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function RS(e,t){const n=ct(t),r=n.findIndex(i=>{let{uid:a}=i;return a===e.uid});return r===-1?n.push(e):n[r]=e,n}function mT(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function qlt(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(i=>i[n]!==e[n]);return r.length===t.length?null:r}const Klt=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},Bve=e=>e.indexOf("image/")===0,Glt=e=>{if(e.type&&!e.thumbUrl)return Bve(e.type);const t=e.thumbUrl||e.url||"",n=Klt(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},cp=200;function Ylt(e){return new Promise(t=>{if(!e.type||!Bve(e.type)){t("");return}const n=document.createElement("canvas");n.width=cp,n.height=cp,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${cp}px; height: ${cp}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:a,height:o}=i;let s=cp,l=cp,c=0,u=0;a>o?(l=o*(cp/a),u=-(l-s)/2):(s=a*(cp/o),c=-(s-l)/2),r.drawImage(i,c,u,s,l);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(f)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(i.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const Xlt=d.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:a,listType:o,file:s,items:l,progress:c,iconRender:u,actionIconRender:f,itemRender:p,isImgUrl:h,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:v,previewIcon:y,removeIcon:b,downloadIcon:w,extra:_,onPreview:k,onDownload:S,onClose:C}=e;var E,$;const{status:M}=s,[P,I]=d.useState(M);d.useEffect(()=>{M!=="removed"&&I(M)},[M]);const[O,A]=d.useState(!1);d.useEffect(()=>{const pe=setTimeout(()=>{A(!0)},300);return()=>{clearTimeout(pe)}},[]);const R=u(s);let j=d.createElement("div",{className:`${n}-icon`},R);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(P==="uploading"||!s.thumbUrl&&!s.url){const pe=Ee(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:P!=="uploading"});j=d.createElement("div",{className:pe},R)}else{const pe=h!=null&&h(s)?d.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):R,me=Ee(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:h&&!h(s)});j=d.createElement("a",{className:me,onClick:re=>k(s,re),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},pe)}const N=Ee(`${n}-list-item`,`${n}-list-item-${P}`),D=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,V=(typeof g=="function"?g(s):g)?f((typeof b=="function"?b(s):b)||d.createElement(G8,null),()=>C(s),n,a.removeFile,!0):null,F=(typeof v=="function"?v(s):v)&&P==="done"?f((typeof w=="function"?w(s):w)||d.createElement(brt,null),()=>S(s),n,a.downloadFile):null,K=o!=="picture-card"&&o!=="picture-circle"&&d.createElement("span",{key:"download-delete",className:Ee(`${n}-list-item-actions`,{picture:o==="picture"})},F,V),B=typeof _=="function"?_(s):_,U=B&&d.createElement("span",{className:`${n}-list-item-extra`},B),Z=Ee(`${n}-list-item-name`),ee=s.url?d.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Z,title:s.name},D,{href:s.url,onClick:pe=>k(s,pe)}),s.name,U):d.createElement("span",{key:"view",className:Z,onClick:pe=>k(s,pe),title:s.name},s.name,U),ie=(typeof m=="function"?m(s):m)&&(s.url||s.thumbUrl)?d.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:pe=>k(s,pe),title:a.previewFile},typeof y=="function"?y(s):y||d.createElement(W8,null)):null,Y=(o==="picture-card"||o==="picture-circle")&&P!=="uploading"&&d.createElement("span",{className:`${n}-list-item-actions`},ie,P==="done"&&F,V),{getPrefixCls:X}=d.useContext(Zt),ae=X(),oe=d.createElement("div",{className:N},j,ee,K,Y,O&&d.createElement(ka,{motionName:`${ae}-fade`,visible:P==="uploading",motionDeadline:2e3},pe=>{let{className:me}=pe;const re="percent"in s?d.createElement(tz,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return d.createElement("div",{className:Ee(`${n}-list-item-progress`,me)},re)})),le=s.response&&typeof s.response=="string"?s.response:((E=s.error)===null||E===void 0?void 0:E.statusText)||(($=s.error)===null||$===void 0?void 0:$.message)||a.uploadError,ce=P==="error"?d.createElement(Ea,{title:le,getPopupContainer:pe=>pe.parentNode},oe):oe;return d.createElement("div",{className:Ee(`${n}-list-item-container`,r),style:i,ref:t},p?p(ce,s,l,{download:S.bind(null,s),preview:k.bind(null,s),remove:C.bind(null,s)}):ce)}),Zlt=(e,t)=>{const{listType:n="text",previewFile:r=Ylt,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:l,isImageUrl:c=Glt,prefixCls:u,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:h=!0,showDownloadIcon:m=!1,removeIcon:g,previewIcon:v,downloadIcon:y,extra:b,progress:w={size:[-1,2],showInfo:!1},appendAction:_,appendActionVisible:k=!0,itemRender:S,disabled:C}=e,E=Ohe(),[$,M]=d.useState(!1),P=["picture-card","picture-circle"].includes(n);d.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(U=>{!(U.originFileObj instanceof File||U.originFileObj instanceof Blob)||U.thumbUrl!==void 0||(U.thumbUrl="",r==null||r(U.originFileObj).then(Z=>{U.thumbUrl=Z||"",E()}))})},[n,f,r]),d.useEffect(()=>{M(!0)},[]);const I=(U,Z)=>{if(i)return Z==null||Z.preventDefault(),i(U)},O=U=>{typeof a=="function"?a(U):U.url&&window.open(U.url)},A=U=>{o==null||o(U)},R=U=>{if(l)return l(U,n);const Z=U.status==="uploading";if(n.startsWith("picture")){const ee=n==="picture"?d.createElement(pu,null):s.uploading,ie=c!=null&&c(U)?d.createElement(pit,null):d.createElement(Ort,null);return Z?ee:ie}return Z?d.createElement(pu,null):d.createElement(uit,null)},j=(U,Z,ee,ie,Y)=>{const X={type:"text",size:"small",title:ie,onClick:ae=>{var oe,le;Z(),d.isValidElement(U)&&((le=(oe=U.props).onClick)===null||le===void 0||le.call(oe,ae))},className:`${ee}-list-item-action`};return Y&&(X.disabled=C),d.isValidElement(U)?d.createElement(Yt,Object.assign({},X,{icon:oa(U,Object.assign(Object.assign({},U.props),{onClick:()=>{}}))})):d.createElement(Yt,Object.assign({},X),d.createElement("span",null,U))};d.useImperativeHandle(t,()=>({handlePreview:I,handleDownload:O}));const{getPrefixCls:N}=d.useContext(Zt),D=N("upload",u),V=N(),F=Ee(`${D}-list`,`${D}-list-${n}`),K=d.useMemo(()=>$r($0(V),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[V]),B=Object.assign(Object.assign({},P?{}:K),{motionDeadline:2e3,motionName:`${D}-${P?"animate-inline":"animate"}`,keys:ct(f.map(U=>({key:U.uid,file:U}))),motionAppear:$});return d.createElement("div",{className:F},d.createElement(XE,Object.assign({},B,{component:!1}),U=>{let{key:Z,file:ee,className:ie,style:Y}=U;return d.createElement(Xlt,{key:Z,locale:s,prefixCls:D,className:ie,style:Y,file:ee,items:f,progress:w,listType:n,isImgUrl:c,showPreviewIcon:p,showRemoveIcon:h,showDownloadIcon:m,removeIcon:g,previewIcon:v,downloadIcon:y,extra:b,iconRender:R,actionIconRender:j,itemRender:S,onPreview:I,onDownload:O,onClose:A})}),_&&d.createElement(ka,Object.assign({},B,{visible:k,forceRender:!0}),U=>{let{className:Z,style:ee}=U;return oa(_,ie=>({className:Ee(ie.className,Z),style:Object.assign(Object.assign(Object.assign({},ee),{pointerEvents:Z?"none":void 0}),ie.style)}))}))},Qlt=d.forwardRef(Zlt);var Jlt=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const k2=`__LIST_IGNORE_${Date.now()}__`,ect=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:a=!0,listType:o="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:p,locale:h,iconRender:m,isImageUrl:g,progress:v,prefixCls:y,className:b,type:w="select",children:_,style:k,itemRender:S,maxCount:C,data:E={},multiple:$=!1,hasControlInside:M=!0,action:P="",accept:I="",supportServerRender:O=!0,rootClassName:A}=e,R=d.useContext(ga),j=p??R,[N,D]=In(r||[],{value:n,postState:ge=>ge??[]}),[V,F]=d.useState("drop"),K=d.useRef(null),B=d.useRef(null);d.useMemo(()=>{const ge=Date.now();(n||[]).forEach((ze,Ve)=>{!ze.uid&&!Object.isFrozen(ze)&&(ze.uid=`__AUTO__${ge}_${Ve}__`)})},[n]);const U=(ge,ze,Ve)=>{let Be=ct(ze),Xe=!1;C===1?Be=Be.slice(-1):C&&(Xe=Be.length>C,Be=Be.slice(0,C)),Ka.flushSync(()=>{D(Be)});const Ke={file:ge,fileList:Be};Ve&&(Ke.event=Ve),(!Xe||ge.status==="removed"||Be.some(qe=>qe.uid===ge.uid))&&Ka.flushSync(()=>{c==null||c(Ke)})},Z=(ge,ze)=>Jlt(void 0,void 0,void 0,function*(){const{beforeUpload:Ve,transformFile:Be}=e;let Xe=ge;if(Ve){const Ke=yield Ve(ge,ze);if(Ke===!1)return!1;if(delete ge[k2],Ke===k2)return Object.defineProperty(ge,k2,{value:!0,configurable:!0}),!1;typeof Ke=="object"&&Ke&&(Xe=Ke)}return Be&&(Xe=yield Be(Xe)),Xe}),ee=ge=>{const ze=ge.filter(Xe=>!Xe.file[k2]);if(!ze.length)return;const Ve=ze.map(Xe=>IS(Xe.file));let Be=ct(N);Ve.forEach(Xe=>{Be=RS(Xe,Be)}),Ve.forEach((Xe,Ke)=>{let qe=Xe;if(ze[Ke].parsedFile)Xe.status="uploading";else{const{originFileObj:Et}=Xe;let dt;try{dt=new File([Et],Et.name,{type:Et.type})}catch{dt=new Blob([Et],{type:Et.type}),dt.name=Et.name,dt.lastModifiedDate=new Date,dt.lastModified=new Date().getTime()}dt.uid=Xe.uid,qe=dt}U(qe,Be)})},ie=(ge,ze,Ve)=>{try{typeof ge=="string"&&(ge=JSON.parse(ge))}catch{}if(!mT(ze,N))return;const Be=IS(ze);Be.status="done",Be.percent=100,Be.response=ge,Be.xhr=Ve;const Xe=RS(Be,N);U(Be,Xe)},Y=(ge,ze)=>{if(!mT(ze,N))return;const Ve=IS(ze);Ve.status="uploading",Ve.percent=ge.percent;const Be=RS(Ve,N);U(Ve,Be,ge)},X=(ge,ze,Ve)=>{if(!mT(Ve,N))return;const Be=IS(Ve);Be.error=ge,Be.response=ze,Be.status="error";const Xe=RS(Be,N);U(Be,Xe)},ae=ge=>{let ze;Promise.resolve(typeof i=="function"?i(ge):i).then(Ve=>{var Be;if(Ve===!1)return;const Xe=qlt(ge,N);Xe&&(ze=Object.assign(Object.assign({},ge),{status:"removed"}),N==null||N.forEach(Ke=>{const qe=ze.uid!==void 0?"uid":"name";Ke[qe]===ze[qe]&&!Object.isFrozen(Ke)&&(Ke.status="removed")}),(Be=K.current)===null||Be===void 0||Be.abort(ze),U(ze,Xe))})},oe=ge=>{F(ge.type),ge.type==="drop"&&(u==null||u(ge))};d.useImperativeHandle(t,()=>({onBatchStart:ee,onSuccess:ie,onProgress:Y,onError:X,fileList:N,upload:K.current,nativeElement:B.current}));const{getPrefixCls:le,direction:ce,upload:pe}=d.useContext(Zt),me=le("upload",y),re=Object.assign(Object.assign({onBatchStart:ee,onError:X,onProgress:Y,onSuccess:ie},e),{data:E,multiple:$,action:P,accept:I,supportServerRender:O,prefixCls:me,disabled:j,beforeUpload:Z,onChange:void 0,hasControlInside:M});delete re.className,delete re.style,(!_||j)&&delete re.id;const fe=`${me}-wrapper`,[ve,$e,Ce]=Vlt(me,fe),[be]=Xa("Upload",Us.Upload),{showRemoveIcon:Se,showPreviewIcon:we,showDownloadIcon:se,removeIcon:ye,previewIcon:Oe,downloadIcon:z,extra:H}=typeof a=="boolean"?{}:a,G=typeof Se>"u"?!j:Se,de=(ge,ze)=>a?d.createElement(Qlt,{prefixCls:me,listType:o,items:N,previewFile:f,onPreview:s,onDownload:l,onRemove:ae,showRemoveIcon:G,showPreviewIcon:we,showDownloadIcon:se,removeIcon:ye,previewIcon:Oe,downloadIcon:z,iconRender:m,extra:H,locale:Object.assign(Object.assign({},be),h),isImageUrl:g,progress:v,appendAction:ge,appendActionVisible:ze,itemRender:S,disabled:j}):ge,xe=Ee(fe,b,A,$e,Ce,pe==null?void 0:pe.className,{[`${me}-rtl`]:ce==="rtl",[`${me}-picture-card-wrapper`]:o==="picture-card",[`${me}-picture-circle-wrapper`]:o==="picture-circle"}),he=Object.assign(Object.assign({},pe==null?void 0:pe.style),k);if(w==="drag"){const ge=Ee($e,me,`${me}-drag`,{[`${me}-drag-uploading`]:N.some(ze=>ze.status==="uploading"),[`${me}-drag-hover`]:V==="dragover",[`${me}-disabled`]:j,[`${me}-rtl`]:ce==="rtl"});return ve(d.createElement("span",{className:xe,ref:B},d.createElement("div",{className:ge,style:he,onDrop:oe,onDragOver:oe,onDragLeave:oe},d.createElement(eN,Object.assign({},re,{ref:K,className:`${me}-btn`}),d.createElement("div",{className:`${me}-drag-container`},_))),de()))}const Ue=Ee(me,`${me}-select`,{[`${me}-disabled`]:j,[`${me}-hidden`]:!_}),We=d.createElement("div",{className:Ue},d.createElement(eN,Object.assign({},re,{ref:K})));return ve(o==="picture-card"||o==="picture-circle"?d.createElement("span",{className:xe,ref:B},de(We,!!_)):d.createElement("span",{className:xe,ref:B},We,de()))},zve=d.forwardRef(ect);var tct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{style:n,height:r,hasControlInside:i=!1}=e,a=tct(e,["style","height","hasControlInside"]);return d.createElement(zve,Object.assign({ref:t,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),Jg=zve;Jg.Dragger=nct;Jg.LIST_IGNORE=k2;const rct=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,children:i,size:a,style:o={}}=e,s=Ee(`${n}-panel`,{[`${n}-panel-hidden`]:a===0},r),l=a!==void 0;return te.createElement("div",{ref:t,className:s,style:Object.assign(Object.assign({},o),{flexBasis:l?a:"auto",flexGrow:l?0:1})},i)}),ict=()=>null;var act=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iZi(e).filter(d.isValidElement).map(n=>{const{props:r}=n,{collapsible:i}=r,a=act(r,["collapsible"]);return Object.assign(Object.assign({},a),{collapsible:oct(i)})}),[e])}function lct(e,t){return d.useMemo(()=>{const n=[];for(let r=0;r0||h.start&&s===0&&o>0,v=h.start&&s>0||u.end&&o===0&&s>0;n[r]={resizable:m,startCollapsible:!!g,endCollapsible:!!v}}return n},[t,e])}function s_(e){return Number(e.slice(0,-1))/100}function gT(e){return typeof e=="string"&&e.endsWith("%")}function cct(e,t){const n=e.map(m=>m.size),r=e.length,i=t||0,a=m=>m*i,[o,s]=te.useState(()=>e.map(m=>m.defaultSize)),l=te.useMemo(()=>{var m;const g=[];for(let v=0;v{let m=[],g=0;for(let y=0;yy+(b||0),0);if(v>1||!g){const y=1/v;m=m.map(b=>b===void 0?0:b*y)}else{const y=(1-v)/g;m=m.map(b=>b===void 0?y:b)}return m},[l,i]),u=te.useMemo(()=>c.map(a),[c,i]),f=te.useMemo(()=>e.map(m=>gT(m.min)?s_(m.min):(m.min||0)/i),[e,i]),p=te.useMemo(()=>e.map(m=>gT(m.max)?s_(m.max):(m.max||i)/i),[e,i]);return[te.useMemo(()=>t?u:l,[u,t]),u,c,f,p,s]}function uct(e,t,n,r,i){const a=e.map(w=>[w.min,w.max]),o=r||0,s=w=>w*o;function l(w,_){return typeof w=="string"?s(s_(w)):w??_}const[c,u]=d.useState([]),f=d.useRef([]),[p,h]=d.useState(null),m=()=>n.map(s);return[w=>{u(m()),h({index:w,confirmed:!1})},(w,_)=>{var k;let S=null;if((!p||!p.confirmed)&&_!==0){if(_>0)S=w,h({index:w,confirmed:!0});else for(let R=w;R>=0;R-=1)if(c[R]>0&&t[R].resizable){S=R,h({index:R,confirmed:!0});break}}const C=(k=S??(p==null?void 0:p.index))!==null&&k!==void 0?k:w,E=ct(c),$=C+1,M=l(a[C][0],0),P=l(a[$][0],0),I=l(a[C][1],o),O=l(a[$][1],o);let A=_;return E[C]+AI&&(A=I-E[C]),E[$]-A>O&&(A=E[$]-O),E[C]+=A,E[$]-=A,i(E),E},()=>{h(null)},(w,_)=>{const k=m(),S=_==="start"?w:w+1,C=_==="start"?w+1:w,E=k[S],$=k[C];if(E!==0&&$!==0)k[S]=0,k[C]+=E,f.current[w]=E;else{const M=E+$,P=l(a[S][0],0),I=l(a[S][1],o),O=l(a[C][0],0),A=l(a[C][1],o),R=Math.max(P,M-A),N=(Math.min(I,M-O)-R)/2,D=f.current[w],V=M-D;D&&D<=A&&D>=O&&V<=I&&V>=P?(k[C]=D,k[S]=V):(k[S]-=N,k[C]+=N)}return i(k),k},p==null?void 0:p.index]}function vT(e){return typeof e=="number"&&!Number.isNaN(e)?Math.round(e):0}const dct=e=>{const{prefixCls:t,vertical:n,index:r,active:i,ariaNow:a,ariaMin:o,ariaMax:s,resizable:l,startCollapsible:c,endCollapsible:u,onOffsetStart:f,onOffsetUpdate:p,onOffsetEnd:h,onCollapse:m,lazy:g,containerSize:v}=e,y=`${t}-bar`,[b,w]=d.useState(null),[_,k]=d.useState(0),S=n?0:_,C=n?_:0,E=j=>{l&&j.currentTarget&&(w([j.pageX,j.pageY]),f(r))},$=j=>{if(l&&j.touches.length===1){const N=j.touches[0];w([N.pageX,N.pageY]),f(r)}},M=j=>{const N=v*a/100,D=N+j,V=Math.max(0,v*o/100),F=Math.min(v,v*s/100);return Math.max(V,Math.min(F,D))-N},P=Vn((j,N)=>{const D=M(n?N:j);k(D)}),I=Vn(()=>{p(r,S,C),k(0)});te.useEffect(()=>{if(b){const j=F=>{const{pageX:K,pageY:B}=F,U=K-b[0],Z=B-b[1];g?P(U,Z):p(r,U,Z)},N=()=>{g&&I(),w(null),h()},D=F=>{if(F.touches.length===1){const K=F.touches[0],B=K.pageX-b[0],U=K.pageY-b[1];g?P(B,U):p(r,B,U)}},V=()=>{g&&I(),w(null),h()};return window.addEventListener("touchmove",D),window.addEventListener("touchend",V),window.addEventListener("mousemove",j),window.addEventListener("mouseup",N),()=>{window.removeEventListener("mousemove",j),window.removeEventListener("mouseup",N),window.removeEventListener("touchmove",D),window.removeEventListener("touchend",V)}}},[b,g,n,r,v,a,o,s]);const O={[`--${y}-preview-offset`]:`${_}px`},A=n?Wge:Nf,R=n?$y:vc;return te.createElement("div",{className:y,role:"separator","aria-valuenow":vT(a),"aria-valuemin":vT(o),"aria-valuemax":vT(s)},g&&te.createElement("div",{className:Ee(`${y}-preview`,{[`${y}-preview-active`]:!!_}),style:O}),te.createElement("div",{className:Ee(`${y}-dragger`,{[`${y}-dragger-disabled`]:!l,[`${y}-dragger-active`]:i}),onMouseDown:E,onTouchStart:$}),c&&te.createElement("div",{className:Ee(`${y}-collapse-bar`,`${y}-collapse-bar-start`),onClick:()=>m(r,"start")},te.createElement(A,{className:Ee(`${y}-collapse-icon`,`${y}-collapse-start`)})),u&&te.createElement("div",{className:Ee(`${y}-collapse-bar`,`${y}-collapse-bar-end`),onClick:()=>m(r,"end")},te.createElement(R,{className:Ee(`${y}-collapse-icon`,`${y}-collapse-end`)})))},fct=e=>{const{componentCls:t}=e;return{[`&-rtl${t}-horizontal`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${t}-vertical`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},jS={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"},pct=e=>{const{componentCls:t,colorFill:n,splitBarDraggableSize:r,splitBarSize:i,splitTriggerSize:a,controlItemBgHover:o,controlItemBgActive:s,controlItemBgActiveHover:l,prefixCls:c}=e,u=`${t}-bar`,f=`${t}-mask`,p=`${t}-panel`,h=e.calc(a).div(2).equal(),m=`${c}-bar-preview-offset`,g={position:"absolute",background:e.colorPrimary,opacity:.2,pointerEvents:"none",transition:"none",zIndex:1,display:"none"};return{[t]:Object.assign(Object.assign(Object.assign({},ar(e)),{display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${u}`]:{flex:"none",position:"relative",userSelect:"none",[`${u}-dragger`]:Object.assign(Object.assign({},jS),{zIndex:1,"&::before":Object.assign({content:'""',background:o},jS),"&::after":Object.assign({content:'""',background:n},jS),[`&:hover:not(${u}-dragger-active)`]:{"&::before":{background:s}},"&-active":{zIndex:2,"&::before":{background:l}},[`&-disabled${u}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:o}},"&::after":{display:"none"}}}),[`${u}-collapse-bar`]:Object.assign(Object.assign({},jS),{zIndex:e.zIndexPopupBase,background:o,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:s},"&:active":{background:l}}),"&:hover, &:active":{[`${u}-collapse-bar`]:{opacity:1}}},[f]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${u}`]:{width:0,[`${u}-preview`]:Object.assign(Object.assign({height:"100%",width:i},g),{[`&${u}-preview-active`]:{display:"block",transform:`translateX(var(--${m}))`}}),[`${u}-dragger`]:{cursor:"col-resize",height:"100%",width:a,"&::before":{height:"100%",width:i},"&::after":{height:r,width:i}},[`${u}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:h},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:h},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${u}`]:{height:0,[`${u}-preview`]:Object.assign(Object.assign({height:i,width:"100%"},g),{[`&${u}-preview-active`]:{display:"block",transform:`translateY(var(--${m}))`}}),[`${u}-dragger`]:{cursor:"row-resize",width:"100%",height:a,"&::before":{width:"100%",height:i},"&::after":{width:r,height:i}},[`${u}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:h,transform:"translateX(-50%)"},"&-end":{top:h,bottom:"auto",transform:"translateX(-50%)"}}}},[p]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"}}}),fct(e))}},hct=e=>{var t;const n=e.splitBarSize||2,r=e.splitTriggerSize||6,i=e.resizeSpinnerSize||20,a=(t=e.splitBarDraggableSize)!==null&&t!==void 0?t:i;return{splitBarSize:n,splitTriggerSize:r,splitBarDraggableSize:a,resizeSpinnerSize:i}},mct=Jn("Splitter",e=>[pct(e)],hct),gct=e=>{const{prefixCls:t,className:n,style:r,layout:i="horizontal",children:a,rootClassName:o,onResizeStart:s,onResize:l,onResizeEnd:c,lazy:u}=e,{getPrefixCls:f,direction:p,splitter:h}=te.useContext(Zt),m=f("splitter",t),g=qr(m),[v,y,b]=mct(m,g),w=i==="vertical",_=p==="rtl",k=!w&&_,S=sct(a),[C,E]=d.useState(),$=oe=>{const{offsetWidth:le,offsetHeight:ce}=oe,pe=w?ce:le;pe!==0&&E(pe)},[M,P,I,O,A,R]=cct(S,C),j=lct(S,P),[N,D,V,F,K]=uct(S,j,I,C,R),B=Vn(oe=>{N(oe),s==null||s(P)}),U=Vn((oe,le)=>{const ce=D(oe,le);l==null||l(ce)}),Z=Vn(()=>{V(),c==null||c(P)}),ee=Vn((oe,le)=>{const ce=F(oe,le);l==null||l(ce),c==null||c(ce)}),ie=Ee(m,n,`${m}-${i}`,{[`${m}-rtl`]:_},o,h==null?void 0:h.className,b,g,y),Y=`${m}-mask`,X=te.useMemo(()=>{const oe=[];let le=0;for(let ce=0;ce{const ce=te.createElement(rct,Object.assign({},oe,{prefixCls:m,size:M[le]}));let pe=null;const me=j[le];if(me){const re=(X[le-1]||0)+O[le],fe=(X[le+1]||100)-A[le+1],ve=(X[le-1]||0)+A[le],$e=(X[le+1]||100)-O[le+1];pe=te.createElement(dct,{lazy:u,index:le,active:K===le,prefixCls:m,vertical:w,resizable:me.resizable,ariaNow:X[le]*100,ariaMin:Math.max(re,fe)*100,ariaMax:Math.min(ve,$e)*100,startCollapsible:me.startCollapsible,endCollapsible:me.endCollapsible,onOffsetStart:B,onOffsetUpdate:(Ce,be,Se)=>{let we=w?Se:be;k&&(we=-we),U(Ce,we)},onOffsetEnd:Z,onCollapse:ee,containerSize:C||0})}return te.createElement(te.Fragment,{key:`split-panel-${le}`},ce,pe)}),typeof K=="number"&&te.createElement("div",{"aria-hidden":!0,className:Ee(Y,`${Y}-${i}`)}))))},Lp=gct;Lp.Panel=ict;let Re;const vct=()=>{const e=g8.useApp();return Re=e.message,e.modal,e.notification,null};var Hve={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n=function(W,Q){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,_e){ue.__proto__=_e}||function(ue,_e){for(var Pe in _e)Object.prototype.hasOwnProperty.call(_e,Pe)&&(ue[Pe]=_e[Pe])})(W,Q)},r=function(){return(r=Object.assign||function(W){for(var Q,ue=1,_e=arguments.length;ue<_e;ue++)for(var Pe in Q=arguments[ue])Object.prototype.hasOwnProperty.call(Q,Pe)&&(W[Pe]=Q[Pe]);return W}).apply(this,arguments)};function i(W,Q,ue){for(var _e,Pe=0,Ae=Q.length;Pe"u"||a.Promise||(a.Promise=Promise);var c=Object.getPrototypeOf,u={}.hasOwnProperty;function f(W,Q){return u.call(W,Q)}function p(W,Q){typeof Q=="function"&&(Q=Q(c(W))),(typeof Reflect>"u"?o:Reflect.ownKeys)(Q).forEach(function(ue){m(W,ue,Q[ue])})}var h=Object.defineProperty;function m(W,Q,ue,_e){h(W,Q,l(ue&&f(ue,"get")&&typeof ue.get=="function"?{get:ue.get,set:ue.set,configurable:!0}:{value:ue,configurable:!0,writable:!0},_e))}function g(W){return{from:function(Q){return W.prototype=Object.create(Q.prototype),m(W.prototype,"constructor",W),{extend:p.bind(null,W.prototype)}}}}var v=Object.getOwnPropertyDescriptor,y=[].slice;function b(W,Q,ue){return y.call(W,Q,ue)}function w(W,Q){return Q(W)}function _(W){if(!W)throw new Error("Assertion Failed")}function k(W){a.setImmediate?setImmediate(W):setTimeout(W,0)}function S(W,Q){if(typeof Q=="string"&&f(W,Q))return W[Q];if(!Q)return W;if(typeof Q!="string"){for(var ue=[],_e=0,Pe=Q.length;_e"u"?[]:function(){var W=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[W,c(W),W];var Q=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[Q,c(Q),W]}(),Oe=Xt[0],Ul=Xt[1],Xt=Xt[2],Ul=Ul&&Ul.then,z=Oe&&Oe.constructor,H=!!Xt,G=function(W,Q){Ve.push([W,Q]),xe&&(queueMicrotask(jt),xe=!1)},de=!0,xe=!0,he=[],Ue=[],We=pe,ge={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:ce,pgp:!1,env:{},finalize:ce},ze=ge,Ve=[],Be=0,Xe=[];function Ke(W){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var Q=this._PSD=ze;if(typeof W!="function"){if(W!==se)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&dt(this,this._value))}this._state=null,this._value=null,++Q.ref,function ue(_e,Pe){try{Pe(function(Ae){if(_e._state===null){if(Ae===_e)throw new TypeError("A promise cannot be resolved with itself.");var Ge=_e._lib&&Lt();Ae&&typeof Ae.then=="function"?ue(_e,function(et,ut){Ae instanceof Ke?Ae._then(et,ut):Ae.then(et,ut)}):(_e._state=!0,_e._value=Ae,vt(_e)),Ge&&Bt()}},dt.bind(null,_e))}catch(Ae){dt(_e,Ae)}}(this,W)}var qe={get:function(){var W=ze,Q=Nt;function ue(_e,Pe){var Ae=this,Ge=!W.global&&(W!==ze||Q!==Nt),et=Ge&&!Ct(),ut=new Ke(function(mt,_t){Ze(Ae,new Et(De(_e,W,Ge,et),De(Pe,W,Ge,et),mt,_t,W))});return this._consoleTask&&(ut._consoleTask=this._consoleTask),ut}return ue.prototype=se,ue},set:function(W){m(this,"then",W&&W.prototype===se?qe:{get:function(){return W},set:qe.set})}};function Et(W,Q,ue,_e,Pe){this.onFulfilled=typeof W=="function"?W:null,this.onRejected=typeof Q=="function"?Q:null,this.resolve=ue,this.reject=_e,this.psd=Pe}function dt(W,Q){var ue,_e;Ue.push(Q),W._state===null&&(ue=W._lib&&Lt(),Q=We(Q),W._state=!1,W._value=Q,_e=W,he.some(function(Pe){return Pe._value===_e._value})||he.push(_e),vt(W),ue&&Bt())}function vt(W){var Q=W._listeners;W._listeners=[];for(var ue=0,_e=Q.length;ue<_e;++ue)Ze(W,Q[ue]);var Pe=W._PSD;--Pe.ref||Pe.finalize(),Be===0&&(++Be,G(function(){--Be==0&&Ht()},[]))}function Ze(W,Q){if(W._state!==null){var ue=W._state?Q.onFulfilled:Q.onRejected;if(ue===null)return(W._state?Q.resolve:Q.reject)(W._value);++Q.psd.ref,++Be,G(nt,[ue,W,Q])}else W._listeners.push(Q)}function nt(W,Q,ue){try{var _e,Pe=Q._value;!Q._state&&Ue.length&&(Ue=[]),_e=Se&&Q._consoleTask?Q._consoleTask.run(function(){return W(Pe)}):W(Pe),Q._state||Ue.indexOf(Pe)!==-1||function(Ae){for(var Ge=he.length;Ge;)if(he[--Ge]._value===Ae._value)return he.splice(Ge,1)}(Q),ue.resolve(_e)}catch(Ae){ue.reject(Ae)}finally{--Be==0&&Ht(),--ue.psd.ref||ue.psd.finalize()}}function jt(){ft(ge,function(){Lt()&&Bt()})}function Lt(){var W=de;return xe=de=!1,W}function Bt(){var W,Q,ue;do for(;0.",rt="String expected.",$t=[],Mt="__dbnames",cn="readonly",fn="readwrite";function T(W,Q){return W?Q?function(){return W.apply(this,arguments)&&Q.apply(this,arguments)}:W:Q}var L={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function J(W){return typeof W!="string"||/\./.test(W)?function(Q){return Q}:function(Q){return Q[W]===void 0&&W in Q&&delete(Q=O(Q))[W],Q}}function ke(){throw ae.Type()}function je(W,Q){try{var ue=it(W),_e=it(Q);if(ue!==_e)return ue==="Array"?1:_e==="Array"?-1:ue==="binary"?1:_e==="binary"?-1:ue==="string"?1:_e==="string"?-1:ue==="Date"?1:_e!=="Date"?NaN:-1;switch(ue){case"number":case"Date":case"string":return QWt+Gt&&Dt(Wt+_t)})})}var zt=ri(ue)&&ue.limit===1/0&&(typeof W!="function"||W===Or)&&{index:ue.index,range:ue.range};return Dt(0).then(function(){if(0=It})).length!==0?(_t.forEach(function(Dt){Tt.push(function(){var zt=bt,Wt=Dt._cfg.dbschema;Sx(at,zt,St),Sx(at,Wt,St),bt=at._dbSchema=Wt;var Gt=j7(zt,Wt);Gt.add.forEach(function(Mn){N7(St,Mn[0],Mn[1].primKey,Mn[1].indexes)}),Gt.change.forEach(function(Mn){if(Mn.recreate)throw new ae.Upgrade("Not yet support for changing primary key");var Cn=St.objectStore(Mn.name);Mn.add.forEach(function(Fn){return bx(Cn,Fn)}),Mn.change.forEach(function(Fn){Cn.deleteIndex(Fn.name),bx(Cn,Fn)}),Mn.del.forEach(function(Fn){return Cn.deleteIndex(Fn)})});var mn=Dt._cfg.contentUpgrade;if(mn&&Dt._cfg.version>It){vx(at,St),pt._memoizedTables={};var _n=E(Wt);Gt.del.forEach(function(Mn){_n[Mn]=zt[Mn]}),R7(at,[at.Transaction.prototype]),yx(at,[at.Transaction.prototype],o(_n),_n),pt.schema=_n;var gn,wn=K(mn);return wn&<(),Gt=Ke.follow(function(){var Mn;(gn=mn(pt))&&wn&&(Mn=Ct.bind(null,null),gn.then(Mn,Mn))}),gn&&typeof gn.then=="function"?Ke.resolve(gn):Gt.then(function(){return gn})}}),Tt.push(function(zt){var Wt,Gt,mn=Dt._cfg.dbschema;Wt=mn,Gt=zt,[].slice.call(Gt.db.objectStoreNames).forEach(function(_n){return Wt[_n]==null&&Gt.db.deleteObjectStore(_n)}),R7(at,[at.Transaction.prototype]),yx(at,[at.Transaction.prototype],at._storeNames,at._dbSchema),pt.schema=at._dbSchema}),Tt.push(function(zt){at.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(at.idbdb.version/10)===Dt._cfg.version?(at.idbdb.deleteObjectStore("$meta"),delete at._dbSchema.$meta,at._storeNames=at._storeNames.filter(function(Wt){return Wt!=="$meta"})):zt.objectStore("$meta").put(Dt._cfg.version,"version"))})}),function Dt(){return Tt.length?Ke.resolve(Tt.shift()(pt.idbtrans)).then(Dt):Ke.resolve()}().then(function(){ZU(bt,St)})):Ke.resolve();var at,It,pt,St,Tt,bt}).catch(Ge)):(o(Pe).forEach(function(_t){N7(ue,_t,Pe[_t].primKey,Pe[_t].indexes)}),vx(W,ue),void Ke.follow(function(){return W.on.populate.fire(Ae)}).catch(Ge));var ut,mt})}function RSe(W,Q){ZU(W._dbSchema,Q),Q.db.version%10!=0||Q.objectStoreNames.contains("$meta")||Q.db.createObjectStore("$meta").add(Math.ceil(Q.db.version/10-1),"version");var ue=xx(0,W.idbdb,Q);Sx(W,W._dbSchema,Q);for(var _e=0,Pe=j7(ue,W._dbSchema).change;_eMath.pow(2,62)?0:bt.oldVersion,at=bt<1,W.idbdb=Tt.result,Ae&&RSe(W,_t),ISe(W,bt/10,_t,pt))},pt),Tt.onsuccess=He(function(){_t=null;var bt,Dt,zt,Wt,Gt,mn=W.idbdb=Tt.result,_n=b(mn.objectStoreNames);if(0<_n.length)try{var gn=mn.transaction((Wt=_n).length===1?Wt[0]:Wt,"readonly");if(Q.autoSchema)Dt=mn,zt=gn,(bt=W).verno=Dt.version/10,zt=bt._dbSchema=xx(0,Dt,zt),bt._storeNames=b(Dt.objectStoreNames,0),yx(bt,[bt._allTables],o(zt),zt);else if(Sx(W,W._dbSchema,gn),((Gt=j7(xx(0,(Gt=W).idbdb,gn),Gt._dbSchema)).add.length||Gt.change.some(function(wn){return wn.add.length||wn.change.length}))&&!Ae)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),mn.close(),Pe=mn.version+1,Ae=!0,It(et());vx(W,gn)}catch{}$t.push(W),mn.onversionchange=He(function(wn){Q.vcFired=!0,W.on("versionchange").fire(wn)}),mn.onclose=He(function(wn){W.on("close").fire(wn)}),at&&(Gt=W._deps,gn=St,mn=Gt.indexedDB,Gt=Gt.IDBKeyRange,D7(mn)||gn===Mt||A7(mn,Gt).put({name:gn}).catch(ce)),It()},pt)}).catch(function(It){switch(It==null?void 0:It.name){case"UnknownError":if(0"u"?Ke.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(It){function pt(){return indexedDB.databases().finally(It)}ut=setInterval(pt,100),pt()}).finally(function(){return clearInterval(ut)}):Promise.resolve()).then(et)]).then(function(){return Ge(),Q.onReadyBeingFired=[],Ke.resolve(F7(function(){return W.on.ready.fire(W.vip)})).then(function It(){if(0Q.limit?It.length=Q.limit:W.length===Q.limit&&It.length=Dt.limit&&(!Dt.values||mn.req.values)&&BSe(mn.req.query.range,Dt.query.range)}),!1,zt,Wt];case"count":return Gt=Wt.find(function(mn){return lW(mn.req.query.range,Dt.query.range)}),[Gt,!!Gt,zt,Wt]}}(Q,ue,"query",Ae),_t=mt[0],at=mt[1],It=mt[2],pt=mt[3];return _t&&at?_t.obsSet=Ae.obsSet:(at=_e.query(Ae).then(function(St){var Tt=St.result;if(_t&&(_t.res=Tt),Ge){for(var bt=0,Dt=Tt.length;bt({uid:r.uid||"",type:r.type||"",content:r.content||"",client:r.client||"",createdAt:r.createdAt||"",status:r.status||"",topic:r.topic||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getMessage(n){return await Yl.messages.get(n)}async updateMessage(n,r){return await Yl.messages.update(n,{content:r})}async deleteMessage(n){return await Yl.messages.delete(n)}subscribeMessages(){bct(()=>this.messages.toArray()).subscribe({next:r=>{const i=r.map(a=>a.uid);console.log("messagesObservable message uids",i)}})}async createThread(n){var r,i,a;return console.log("useIndexedDB createThread",n.topic),await Yl.threads.put({uid:n.uid,type:n.type,topic:n.topic,state:n.state,extra:n.extra,updatedAt:n.updatedAt,userUid:(r=n.user)==null?void 0:r.uid,userNickname:(i=n.user)==null?void 0:i.nickname,userAvatar:(a=n.user)==null?void 0:a.avatar})}async getAllThreads(){return(await Yl.threads.toArray()).map(r=>({uid:r.uid||"",type:r.type||"",topic:r.topic||"",status:r.state||"",extra:r.extra||"",createdAt:r.updatedAt||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getThread(n){return await Yl.threads.get(n)}async updateThread(n,r){return await Yl.threads.update(n,r)}async deleteThread(n){return await Yl.threads.delete(n)}}const Yl=new Uve;let da,ef,tf,D1=!1;const wct=({uid:e,username:t,accessToken:n})=>{if(n===""||n==null){console.log("accessToken is empty, don't connect mqtt");return}if(ef=aa.getState().userInfo,tf=Si.getState().agentInfo,D1){console.log("mqtt is connecting");return}if(da&&da.connected){console.log("mqtt already connected");return}if(da&&da.reconnecting){console.log("mqtt already reconnecting");return}D1=!0;const r=aa.getState().deviceUid,a={keepalive:30,clientId:e+"/"+Sn+"/"+r,username:t,password:n,clean:!1,path:"/websocket",reconnectPeriod:5e3,connectTimeout:30*1e3,reschedulePings:!0,rejectUnauthorized:!1};console.log("mqtt start connect:",a),da=Q7e.connect(J8e(),a),da.on("connect",()=>{console.log("mqtt event connected"),D1=!1,En.emit(WO)}),da.on("message",async function(o,s,l){console.log("mqtt receive message topic:",o,l);const c=mue.Message.deserializeBinary(s),u=fr.getState().currentThread,f={uid:c.getThread().getUid(),type:c.getThread().getType(),topic:c.getThread().getTopic(),content:c.getContent(),updatedAt:c.getCreatedat(),unreadCount:0,user:{uid:c.getThread().getUser().getUid(),nickname:c.getThread().getUser().getNickname(),avatar:c.getThread().getUser().getAvatar()}},p={uid:c.getUid(),createdAt:c.getCreatedat(),client:c.getClient(),type:c.getType(),status:c.getStatus(),user:{uid:c.getUser().getUid(),nickname:c.getUser().getNickname(),avatar:c.getUser().getAvatar()},content:c.getContent(),topic:c.getThread().getTopic()};if(Ict(c,ef,tf))switch(c.getType()){case iI:case rI:bT(c);return;case mk:case tI:return;case LV:return;case nI:console.log("self recall message"),UZ(p);return;case h0:console.log("thread closed message"),fr.getState().closeThread(f.uid);break;default:c.setStatus(hk)}else switch(c.getType()){case iI:case rI:bT(c);return;case mk:case tI:HZ(u,f,c.getType());return;case Mf:HZ(u,f,c.getType());break;case LV:Rct(c,u,f);return;case Sse:return;case J6e:case e5e:case n5e:case r5e:case Cse:case a5e:bT(c);return;case nI:console.log("recall message"),UZ(p);return;case xse:console.log("notice message"),jct(p);break;case p0:case h0:console.log("thread closed message"),fr.getState().closeThread(f.uid);break;default:console.log("send receive message type",c.getType()),zct(c,u,f)}console.log("mqtt message received",o,p,f),Ed.getState().addMessage(p),En.emit(Rw,p);const h=fr.getState().addThreadWithMessage(f,p);console.log("unreadCount",h);try{await Yl.createMessage(p),console.log("Sent message stored in IndexedDB:",p)}catch(m){console.error("Error storing sent message in IndexedDB:",m)}}),da.on("packetsend",o=>{console.log("mqtt event packetsend",o)}),da.on("packetreceive",o=>{console.log("mqtt event packetreceive",o,o.cmd),o.cmd==="publish"||o.cmd==="pingresp"&&console.log("mqtt event packetreceive pingresp")}),da.on("reconnect",()=>{console.log("mqtt event reconnect")}),da.on("close",()=>{console.log("mqtt event close"),D1=!1,En.emit(qO)}),da.on("disconnect",()=>{console.error("mqtt event disconnected"),D1=!1,En.emit(KO)}),da.on("offline",()=>{console.log("mqtt event offline"),D1=!1,En.emit(VO)}),da.on("error",()=>{console.log("mqtt event error"),En.emit(GO)}),da.on("end",()=>{console.log("mqtt event end"),En.emit(YO)})},xct=(e,t)=>{const n=fr.getState().currentThread;bo(e,Uo,t,n)},Sct=(e,t)=>{console.log("mqtt mqttSendImageMessage",t);const n=fr.getState().currentThread;bo(e,Sl,t,n)},Cct=(e,t)=>{console.log("mqtt mqttSendFileMessage",t);const n=fr.getState().currentThread;bo(e,od,t,n)},BZ=new Set,Wve=(e,t)=>{console.log("mqtt mqttSendReceiptReceivedMessage",e),BZ.has(e)||(BZ.add(e),bo(Ua(),rI,e,t))},zZ=new Set,_ct=(e,t)=>{console.log("mqtt mqttSendReceiptReadMessage",e),zZ.has(e)||(zZ.add(e),bo(Ua(),iI,e,t))},kct=e=>{console.log("mqtt mqttSendRateInviteMessage"),bo(Ua(),dv,"i18n.rate.invite",e)},Ect=e=>{console.log("mqtt mqttSendTypingMessage"),bo(Ua(),mk,"",e)},$ct=(e,t,n)=>{console.log("mqtt mqttSendTransferMessage",t),bo(e,hF,t,n)},Vve=(e,t)=>{console.log("mqtt mqttSendTransferAcceptMessage",e),bo(Ua(),mF,e,t)},qve=(e,t)=>{console.log("mqtt mqttSendTransferRejectMessage",e),bo(Ua(),gF,e,t)},Mct=(e,t,n)=>{console.log("mqtt mqttSendInviteMessage"),bo(e,vF,t,n)},Kve=(e,t)=>{console.log("mqtt mqttSendInviteAcceptMessage"),bo(Ua(),yF,e,t)},Gve=(e,t)=>{console.log("mqtt mqttSendInviteRejectMessage"),bo(Ua(),bF,e,t)},Tct=(e,t)=>{console.log("mqtt mqttSendRecallMessage",e),bo(Ua(),nI,e,t)},bo=async(e,t,n,r)=>{var a,o,s,l;console.log("mqtt mqttSendMessage",n);const i=Uw();if(da&&da.connected){const c=new eMe.Thread;c.setUid(r.uid),c.setType(r.type),c.setTopic(r.topic);const u=new SK.User;u.setUid((a=r.user)==null?void 0:a.uid),u.setNickname((o=r.user)==null?void 0:o.nickname),u.setAvatar((s=r.user)==null?void 0:s.avatar),c.setUser(u);const f=new SK.User;(tf==null?void 0:tf.uid)!=""&&((r==null?void 0:r.type)===ay||(r==null?void 0:r.type)===oy)?(f.setUid(tf.uid),f.setNickname(tf.nickname),f.setAvatar(tf.avatar),f.setType($f)):(f.setUid(ef.uid),f.setNickname(ef.nickname),f.setAvatar(ef.avatar),f.setType(U5));const p={orgUid:(l=ef==null?void 0:ef.currentOrganization)==null?void 0:l.uid},h=new mue.Message;h.setUid(e),h.setType(t),h.setStatus(im),h.setCreatedat(i),h.setClient(Sn),h.setContent(n),h.setUser(f),h.setThread(c),h.setExtra(JSON.stringify(p));const m=h.serializeBinary();da.publish(r.topic,m);try{const g={uid:h.getUid(),type:h.getType(),content:h.getContent(),client:h.getClient(),createdAt:h.getCreatedat(),status:h.getStatus(),topic:h.getThread().getTopic(),user:{uid:h.getUser().getUid(),nickname:h.getUser().getNickname(),avatar:h.getUser().getAvatar()}};await Yl.createMessage(g),console.log("Sent message stored in IndexedDB:",g)}catch(g){console.error("Error storing sent message in IndexedDB:",g)}}else{console.log("mqttClient is disconnect, use http rest api");const c=bL(r,ef,tf,e,t,n,i);Oct(c)}},yT=()=>{da?da.end():console.log("mqttClient is null")},Pct=()=>da&&da.connected,Oct=async e=>{const t=JSON.stringify(e),n=await l$e(t);if(console.log("sendHttpMessage:",n.data),n.data.code===200){Ed.getState().updateMessageStatus(e==null?void 0:e.uid,hk);const r={uid:e==null?void 0:e.uid,type:hk};En.emit(pk,JSON.stringify(r))}else Re.error(n.data.message)},Ict=(e,t,n)=>e.getUser().getUid()===(t==null?void 0:t.uid)||e.getUser().getUid()===(n==null?void 0:n.uid);function bT(e){console.log("update message status:",e.getContent(),e.getType()),Ed.getState().updateMessageStatus(e.getContent(),e.getType());const t={uid:e.getContent(),type:e.getType()};En.emit(pk,JSON.stringify(t))}function HZ(e,t,n){(e==null?void 0:e.topic)===(t==null?void 0:t.topic)&&(n===mk?En.emit(h6e):n===tI?En.emit(m6e):n===Mf&&En.emit(lse))}function Rct(e,t,n){(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&En.emit(g6e,e.getContent())}function jct(e){const t=JSON.parse(e==null?void 0:e.content);console.log("handleNoticeMessage",t),t.type===hF?Nct(t):t.type===mF?Act(t):t.type===gF?Dct(t):t.type===vF?Fct(t):t.type===yF?Lct(t):t.type===bF&&Bct(t)}function Nct(e){En.emit(cse,JSON.stringify(e))}function Act(e){En.emit(use,JSON.stringify(e))}function Dct(e){En.emit(dse,JSON.stringify(e))}function Fct(e){En.emit(fse,JSON.stringify(e))}function Lct(e){En.emit(pse,JSON.stringify(e))}function Bct(e){En.emit(hse,JSON.stringify(e))}function UZ(e){console.log("handleRecallMessage",e==null?void 0:e.uid,e==null?void 0:e.content),Ed.getState().recallMessage(e==null?void 0:e.content)}function zct(e,t,n){if(!cIe(n==null?void 0:n.topic)&&rIe(e==null?void 0:e.getType())){const r=e==null?void 0:e.getUid();Wve(r,n),(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&_ct(r,n)}}const Hct=So()(Ss(Cs(_s(e=>({devices:[],currentDevice:{uid:""},myDevice:{uid:""},addDevice(t){console.log("addDevice",t)},setCurrentDevice:t=>{e({currentDevice:t})},setMyDevice(t){e({myDevice:t})},resetDeviceInfo(){}})),{name:E6e}))),Uct=()=>{N0("https://www.weiyuai.cn/docs/zh-CN/")},N0=e=>{ma?window.electronAPI.openUrl(e):window.open(e,"_blank")},Wct=async()=>{if(ma){const e=await window.electronAPI.getSystemInfo();console.log("systemInfo:",e)}else return console.log("not electron"),{platform:"web"}},Yve=async()=>ma?await window.electronAPI.getIpAddress():(console.log("not electron"),[]),Vct=async()=>{if(ma){const e=await window.electronAPI.isWindowActive();return console.log("isWindowActive:",e),e}return null},qct=(e,t)=>{ma&&window.electronAPI.showElectronNotification(e,t)},Kct=e=>{ma?window.electronAPI.setThemeMode(e):console.log("not electron")},Gct=e=>{ma?window.electronAPI.createNewWindow(e):console.log("not electron")},Yct=()=>{ma?window.electronAPI.screenshotCapture():console.log("not electron")},nN=()=>{ma&&window.electronAPI.loginSuccess()},Xct=()=>{ma&&window.electronAPI.logoutSuccess()};function e1(){const[e,t]=d.useState(!1),[n,r]=d.useState(!1),[i,a]=d.useState(!1),[o,s]=d.useState(!1),l=d.useRef(!1),c=d.useRef(!1),u=d.useRef(null),f=d.useRef(void 0),{myDevice:p,setMyDevice:h}=Hct(M=>({myDevice:M.myDevice,setMyDevice:M.setMyDevice})),{userInfo:m,deviceUid:g,setUserInfo:v,setDeviceUid:y}=aa(M=>({userInfo:M.userInfo,deviceUid:M.deviceUid,setUserInfo:M.setUserInfo,setDeviceUid:M.setDeviceUid})),{agentInfo:b}=Si(M=>({agentInfo:M.agentInfo})),w=Nr(M=>M.currentOrg),_=Ed(M=>M.addMessage),k=fr(M=>M.updateThreadContent);d.useEffect(()=>{t(!1),r(!1),a(!1),s(!1),m!=null&&m.currentRoles&&m.currentRoles.forEach(M=>{switch(M.name){case w5e:t(!0);break;case x5e:r(!0);break;case S5e:a(!0);break;case C5e:s(!0);break}})},[m==null?void 0:m.currentRoles]);const S=d.useCallback(async()=>{var M;if(!(l.current||!(b!=null&&b.uid))){l.current=!0;try{const P=await o$e(b.uid);(((M=P==null?void 0:P.data)==null?void 0:M.data)||[]).forEach(O=>{_(O);const A=k(O.uid,O.content);A&&Wve(O.uid,A)})}catch(P){console.error("Failed to fetch unread messages:",P)}finally{l.current=!1}}},[b==null?void 0:b.uid,_,k]);d.useEffect(()=>{o&&S()},[o,S]);const C=d.useCallback(async()=>{try{const M=await Yve();M.length>0&&h({...p,ip:M[0]})}catch(M){console.error("Failed to fetch IP address:",M)}},[p,h]);d.useEffect(()=>{g||y(Ua()),C()},[g,y,C]);const E=d.useCallback(async()=>{if(!c.current&&w!=null&&w.uid){c.current=!0;try{u.current&&(clearTimeout(u.current),u.current=null),Re.destroy(),Re.loading("正在加载用户信息...");const M=await RF();console.log("getProfile response",M),M.data.code===200?(Re.destroy(),v(M.data.data)):(Re.destroy(),Re.error("加载用户信息失败"))}catch(M){Re.destroy(),Re.error("加载用户信息失败"),console.error("Failed to refresh user info:",M)}finally{u.current=setTimeout(()=>{c.current=!1},500)}}},[w==null?void 0:w.uid,v]);d.useEffect(()=>{f.current!==(w==null?void 0:w.uid)&&(f.current=w==null?void 0:w.uid,E())},[w,E]);const $=async M=>{if(b){Re.destroy(),Re.loading("正在更新状态");try{const P={...b,status:M};(await r$e(P)).data.code===200?(Re.destroy(),Re.success("状态更新成功")):(Re.destroy(),Re.error("状态更新失败"))}catch(P){Re.destroy(),Re.error("状态更新失败"),console.error("Failed to update agent status:",P)}}};return d.useEffect(()=>()=>{u.current&&clearTimeout(u.current),Re.destroy()},[]),{userInfo:m,setUserInfo:v,agentInfo:b,handleUpdateAgentStatus:$,refreshUserInfo:E,hasRoleAgent:o,hasRoleSuper:e,hasRoleAdmin:n,hasRoleMember:i}}const Ma=d.createContext({}),Zct=({children:e})=>{const[t,n]=d.useState(!1),[r,i]=d.useState(!1),a=J3($=>$.accessToken),o=$F($=>$.settings),{userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:f,hasRoleSuper:p,hasRoleAdmin:h,hasRoleMember:m}=e1(),g=d.useMemo(()=>!!a&&a.trim().length>0,[a]),{themeMode:v,setThemeMode:y,isDarkMode:b}=Ag(),[w,_]=d.useState(Xx),k=$=>{let M;$==="en"?M=yq:$==="zh-cn"?M=Xx:$==="zh-tw"?M=xEe:M=Xx,console.log("changeLocale localeValue:",M),_(M),localStorage.setItem(OV,M.locale)},[S,C]=d.useState(_C),E=$=>{C($),localStorage.setItem(IV,$)};return d.useEffect(()=>{const $=localStorage.getItem(OV);_($==="en"?yq:Xx);const M=localStorage.getItem(IV);C(M===_C?_C:M===Iw?Iw:ase)},[]),x.jsx(Ma.Provider,{value:{isCustomServer:t,setIsCustomServer:n,isLoggedIn:g,settings:o,isDarkMode:b,themeMode:v,setThemeMode:y,locale:w,changeLocale:k,mode:S,changeMode:E,isPingLoading:r,setPingLoading:i,userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:f,hasRoleSuper:p,hasRoleAdmin:h,hasRoleMember:m},children:e})},mz=()=>{const e=d.useContext(Ma);if(!e)throw new Error("useAppContext must be used within an AppProvider");return e};var J8=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},e$=typeof window>"u"||"Deno"in globalThis;function zc(){}function Qct(e,t){return typeof e=="function"?e(t):e}function Jct(e){return typeof e=="number"&&e>=0&&e!==1/0}function eut(e,t){return Math.max(e+(t||0)-Date.now(),0)}function WZ(e,t){return typeof e=="function"?e(t):e}function tut(e,t){return typeof e=="function"?e(t):e}function VZ(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==gz(o,t.options))return!1}else if(!d3(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function qZ(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(u3(t.options.mutationKey)!==u3(a))return!1}else if(!d3(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function gz(e,t){return((t==null?void 0:t.queryKeyHashFn)||u3)(e)}function u3(e){return JSON.stringify(e,(t,n)=>rN(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function d3(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!d3(e[n],t[n])):!1}function Xve(e,t){if(e===t)return e;const n=KZ(e)&&KZ(t);if(n||rN(e)&&rN(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),o=a.length,s=n?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function rut(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Xve(e,t):t}function iut(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function aut(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var vz=Symbol();function Zve(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===vz?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Pm,$p,Vv,kie,out=(kie=class extends J8{constructor(){super();Un(this,Pm);Un(this,$p);Un(this,Vv);yn(this,Vv,t=>{if(!e$&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Fe(this,$p)||this.setEventListener(Fe(this,Vv))}onUnsubscribe(){var t;this.hasListeners()||((t=Fe(this,$p))==null||t.call(this),yn(this,$p,void 0))}setEventListener(t){var n;yn(this,Vv,t),(n=Fe(this,$p))==null||n.call(this),yn(this,$p,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Fe(this,Pm)!==t&&(yn(this,Pm,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Fe(this,Pm)=="boolean"?Fe(this,Pm):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Pm=new WeakMap,$p=new WeakMap,Vv=new WeakMap,kie),Qve=new out,qv,Mp,Kv,Eie,sut=(Eie=class extends J8{constructor(){super();Un(this,qv,!0);Un(this,Mp);Un(this,Kv);yn(this,Kv,t=>{if(!e$&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Fe(this,Mp)||this.setEventListener(Fe(this,Kv))}onUnsubscribe(){var t;this.hasListeners()||((t=Fe(this,Mp))==null||t.call(this),yn(this,Mp,void 0))}setEventListener(t){var n;yn(this,Kv,t),(n=Fe(this,Mp))==null||n.call(this),yn(this,Mp,t(this.setOnline.bind(this)))}setOnline(t){Fe(this,qv)!==t&&(yn(this,qv,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Fe(this,qv)}},qv=new WeakMap,Mp=new WeakMap,Kv=new WeakMap,Eie),R6=new sut;function lut(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function cut(e){return Math.min(1e3*2**e,3e4)}function Jve(e){return(e??"online")==="online"?R6.isOnline():!0}var e0e=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function wT(e){return e instanceof e0e}function t0e(e){let t=!1,n=0,r=!1,i;const a=lut(),o=g=>{var v;r||(p(new e0e(g)),(v=e.abort)==null||v.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>Qve.isFocused()&&(e.networkMode==="always"||R6.isOnline())&&e.canRun(),u=()=>Jve(e.networkMode)&&e.canRun(),f=g=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,g),i==null||i(),a.resolve(g))},p=g=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,g),i==null||i(),a.reject(g))},h=()=>new Promise(g=>{var v;i=y=>{(r||c())&&g(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(r)return;let g;const v=n===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(f).catch(y=>{var S;if(r)return;const b=e.retry??(e$?0:3),w=e.retryDelay??cut,_=typeof w=="function"?w(n,y):w,k=b===!0||typeof b=="number"&&nc()?void 0:h()).then(()=>{t?p(y):m()})})};return{promise:a,cancel:o,continue:()=>(i==null||i(),a),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?m():h().then(m),a)}}function uut(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=s=>setTimeout(s,0);const a=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var ms=uut(),Om,$ie,n0e=($ie=class{constructor(){Un(this,Om)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Jct(this.gcTime)&&yn(this,Om,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(e$?1/0:5*60*1e3))}clearGcTimeout(){Fe(this,Om)&&(clearTimeout(Fe(this,Om)),yn(this,Om,void 0))}},Om=new WeakMap,$ie),Gv,Yv,Ql,Ao,F3,Im,Hc,Kd,Mie,dut=(Mie=class extends n0e{constructor(t){super();Un(this,Hc);Un(this,Gv);Un(this,Yv);Un(this,Ql);Un(this,Ao);Un(this,F3);Un(this,Im);yn(this,Im,!1),yn(this,F3,t.defaultOptions),this.setOptions(t.options),this.observers=[],yn(this,Ql,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,yn(this,Gv,put(this.options)),this.state=t.state??Fe(this,Gv),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Fe(this,Ao))==null?void 0:t.promise}setOptions(t){this.options={...Fe(this,F3),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Fe(this,Ql).remove(this)}setData(t,n){const r=rut(this.state.data,t,this.options);return Nn(this,Hc,Kd).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Nn(this,Hc,Kd).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=Fe(this,Ao))==null?void 0:r.promise;return(i=Fe(this,Ao))==null||i.cancel(t),n?n.then(zc).catch(zc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Fe(this,Gv))}isActive(){return this.observers.some(t=>tut(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vz||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!eut(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Fe(this,Ao))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Fe(this,Ao))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Fe(this,Ql).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Fe(this,Ao)&&(Fe(this,Im)?Fe(this,Ao).cancel({revert:!0}):Fe(this,Ao).cancelRetry()),this.scheduleGc()),Fe(this,Ql).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Nn(this,Hc,Kd).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Fe(this,Ao))return Fe(this,Ao).continueRetry(),Fe(this,Ao).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(yn(this,Im,!0),r.signal)})},a=()=>{const f=Zve(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return i(p),yn(this,Im,!1),this.options.persister?this.options.persister(f,p,this):f(p)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(o),(l=this.options.behavior)==null||l.onFetch(o,this),yn(this,Yv,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=o.fetchOptions)==null?void 0:c.meta))&&Nn(this,Hc,Kd).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const s=f=>{var p,h,m,g;wT(f)&&f.silent||Nn(this,Hc,Kd).call(this,{type:"error",error:f}),wT(f)||((h=(p=Fe(this,Ql).config).onError)==null||h.call(p,f,this),(g=(m=Fe(this,Ql).config).onSettled)==null||g.call(m,this.state.data,f,this)),this.scheduleGc()};return yn(this,Ao,t0e({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,h,m,g;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){s(v);return}(h=(p=Fe(this,Ql).config).onSuccess)==null||h.call(p,f,this),(g=(m=Fe(this,Ql).config).onSettled)==null||g.call(m,f,this.state.error,this),this.scheduleGc()},onError:s,onFail:(f,p)=>{Nn(this,Hc,Kd).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{Nn(this,Hc,Kd).call(this,{type:"pause"})},onContinue:()=>{Nn(this,Hc,Kd).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),Fe(this,Ao).start()}},Gv=new WeakMap,Yv=new WeakMap,Ql=new WeakMap,Ao=new WeakMap,F3=new WeakMap,Im=new WeakMap,Hc=new WeakSet,Kd=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...fut(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return wT(i)&&i.revert&&Fe(this,Yv)?{...Fe(this,Yv),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ms.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Fe(this,Ql).notify({query:this,type:"updated",action:t})})},Mie);function fut(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Jve(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function put(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Wu,Tie,hut=(Tie=class extends J8{constructor(t={}){super();Un(this,Wu);this.config=t,yn(this,Wu,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??gz(i,n);let o=this.get(a);return o||(o=new dut({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){Fe(this,Wu).has(t.queryHash)||(Fe(this,Wu).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Fe(this,Wu).get(t.queryHash);n&&(t.destroy(),n===t&&Fe(this,Wu).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ms.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Fe(this,Wu).get(t)}getAll(){return[...Fe(this,Wu).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>VZ(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>VZ(t,r)):n}notify(t){ms.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ms.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ms.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Wu=new WeakMap,Tie),Vu,os,Rm,qu,yp,Pie,mut=(Pie=class extends n0e{constructor(t){super();Un(this,qu);Un(this,Vu);Un(this,os);Un(this,Rm);this.mutationId=t.mutationId,yn(this,os,t.mutationCache),yn(this,Vu,[]),this.state=t.state||gut(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Fe(this,Vu).includes(t)||(Fe(this,Vu).push(t),this.clearGcTimeout(),Fe(this,os).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){yn(this,Vu,Fe(this,Vu).filter(n=>n!==t)),this.scheduleGc(),Fe(this,os).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Fe(this,Vu).length||(this.state.status==="pending"?this.scheduleGc():Fe(this,os).remove(this))}continue(){var t;return((t=Fe(this,Rm))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,o,s,l,c,u,f,p,h,m,g,v,y,b,w,_,k,S,C;yn(this,Rm,t0e({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(E,$)=>{Nn(this,qu,yp).call(this,{type:"failed",failureCount:E,error:$})},onPause:()=>{Nn(this,qu,yp).call(this,{type:"pause"})},onContinue:()=>{Nn(this,qu,yp).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Fe(this,os).canRun(this)}));const n=this.state.status==="pending",r=!Fe(this,Rm).canStart();try{if(!n){Nn(this,qu,yp).call(this,{type:"pending",variables:t,isPaused:r}),await((a=(i=Fe(this,os).config).onMutate)==null?void 0:a.call(i,t,this));const $=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t));$!==this.state.context&&Nn(this,qu,yp).call(this,{type:"pending",context:$,variables:t,isPaused:r})}const E=await Fe(this,Rm).start();return await((c=(l=Fe(this,os).config).onSuccess)==null?void 0:c.call(l,E,t,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,E,t,this.state.context)),await((h=(p=Fe(this,os).config).onSettled)==null?void 0:h.call(p,E,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,E,null,t,this.state.context)),Nn(this,qu,yp).call(this,{type:"success",data:E}),E}catch(E){try{throw await((y=(v=Fe(this,os).config).onError)==null?void 0:y.call(v,E,t,this.state.context,this)),await((w=(b=this.options).onError)==null?void 0:w.call(b,E,t,this.state.context)),await((k=(_=Fe(this,os).config).onSettled)==null?void 0:k.call(_,void 0,E,this.state.variables,this.state.context,this)),await((C=(S=this.options).onSettled)==null?void 0:C.call(S,void 0,E,t,this.state.context)),E}finally{Nn(this,qu,yp).call(this,{type:"error",error:E})}}finally{Fe(this,os).runNext(this)}}},Vu=new WeakMap,os=new WeakMap,Rm=new WeakMap,qu=new WeakSet,yp=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ms.batch(()=>{Fe(this,Vu).forEach(r=>{r.onMutationUpdate(t)}),Fe(this,os).notify({mutation:this,type:"updated",action:t})})},Pie);function gut(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hl,L3,Oie,vut=(Oie=class extends J8{constructor(t={}){super();Un(this,hl);Un(this,L3);this.config=t,yn(this,hl,new Map),yn(this,L3,Date.now())}build(t,n,r){const i=new mut({mutationCache:this,mutationId:++Fh(this,L3)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=NS(t),r=Fe(this,hl).get(n)??[];r.push(t),Fe(this,hl).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=NS(t);if(Fe(this,hl).has(n)){const i=(r=Fe(this,hl).get(n))==null?void 0:r.filter(a=>a!==t);i&&(i.length===0?Fe(this,hl).delete(n):Fe(this,hl).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=Fe(this,hl).get(NS(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=Fe(this,hl).get(NS(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ms.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Fe(this,hl).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>qZ(n,r))}findAll(t={}){return this.getAll().filter(n=>qZ(t,n))}notify(t){ms.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ms.batch(()=>Promise.all(t.map(n=>n.continue().catch(zc))))}},hl=new WeakMap,L3=new WeakMap,Oie);function NS(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function YZ(e){return{onFetch:(t,n)=>{var u,f,p,h,m;const r=t.options,i=(p=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,a=((h=t.state.data)==null?void 0:h.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const v=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},y=Zve(t.options,t.fetchOptions),b=async(w,_,k)=>{if(g)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const S={queryKey:t.queryKey,pageParam:_,direction:k?"backward":"forward",meta:t.options.meta};v(S);const C=await y(S),{maxPages:E}=t.options,$=k?aut:iut;return{pages:$(w.pages,C,E),pageParams:$(w.pageParams,_,E)}};if(i&&a.length){const w=i==="backward",_=w?yut:XZ,k={pages:a,pageParams:o},S=_(r,k);s=await b(k,S,w)}else{const w=e??a.length;do{const _=l===0?o[0]??r.initialPageParam:XZ(r,s);if(l>0&&_==null)break;s=await b(s,_),l++}while(l{var g,v;return(v=(g=t.options).persister)==null?void 0:v.call(g,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function XZ(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function yut(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ua,Tp,Pp,Xv,Zv,Op,Qv,Jv,Iie,but=(Iie=class{constructor(e={}){Un(this,ua);Un(this,Tp);Un(this,Pp);Un(this,Xv);Un(this,Zv);Un(this,Op);Un(this,Qv);Un(this,Jv);yn(this,ua,e.queryCache||new hut),yn(this,Tp,e.mutationCache||new vut),yn(this,Pp,e.defaultOptions||{}),yn(this,Xv,new Map),yn(this,Zv,new Map),yn(this,Op,0)}mount(){Fh(this,Op)._++,Fe(this,Op)===1&&(yn(this,Qv,Qve.subscribe(async e=>{e&&(await this.resumePausedMutations(),Fe(this,ua).onFocus())})),yn(this,Jv,R6.subscribe(async e=>{e&&(await this.resumePausedMutations(),Fe(this,ua).onOnline())})))}unmount(){var e,t;Fh(this,Op)._--,Fe(this,Op)===0&&((e=Fe(this,Qv))==null||e.call(this),yn(this,Qv,void 0),(t=Fe(this,Jv))==null||t.call(this),yn(this,Jv,void 0))}isFetching(e){return Fe(this,ua).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Fe(this,Tp).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Fe(this,ua).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=Fe(this,ua).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(WZ(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Fe(this,ua).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Fe(this,ua).get(r.queryHash),a=i==null?void 0:i.state.data,o=Qct(t,a);if(o!==void 0)return Fe(this,ua).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ms.batch(()=>Fe(this,ua).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Fe(this,ua).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Fe(this,ua);ms.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Fe(this,ua),r={type:"active",...e};return ms.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ms.batch(()=>Fe(this,ua).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(zc).catch(zc)}invalidateQueries(e={},t={}){return ms.batch(()=>{if(Fe(this,ua).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=ms.batch(()=>Fe(this,ua).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(zc)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(zc)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Fe(this,ua).build(this,t);return n.isStaleByTime(WZ(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(zc).catch(zc)}fetchInfiniteQuery(e){return e.behavior=YZ(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(zc).catch(zc)}ensureInfiniteQueryData(e){return e.behavior=YZ(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return R6.isOnline()?Fe(this,Tp).resumePausedMutations():Promise.resolve()}getQueryCache(){return Fe(this,ua)}getMutationCache(){return Fe(this,Tp)}getDefaultOptions(){return Fe(this,Pp)}setDefaultOptions(e){yn(this,Pp,e)}setQueryDefaults(e,t){Fe(this,Xv).set(u3(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Fe(this,Xv).values()];let n={};return t.forEach(r=>{d3(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Fe(this,Zv).set(u3(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Fe(this,Zv).values()];let n={};return t.forEach(r=>{d3(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Fe(this,Pp).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=gz(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===vz&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Fe(this,Pp).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Fe(this,ua).clear(),Fe(this,Tp).clear()}},ua=new WeakMap,Tp=new WeakMap,Pp=new WeakMap,Xv=new WeakMap,Zv=new WeakMap,Op=new WeakMap,Qv=new WeakMap,Jv=new WeakMap,Iie),wut=d.createContext(void 0),xut=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(wut.Provider,{value:e,children:t}));/** + `]:{zIndex:10,width:r,margin:`0 ${Me(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${Me(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Me(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Wlt=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Vlt=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},ar(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},qlt=e=>({actionsColor:e.colorTextDescription}),Klt=Jn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:a}=e,o=Hn(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:a(i).mul(2.55).equal()});return[Vlt(o),Llt(o),Hlt(o),Ult(o),Blt(o),zlt(o),Wlt(o),x4(o)]},qlt);function jS(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function NS(e,t){const n=lt(t),r=n.findIndex(i=>{let{uid:a}=i;return a===e.uid});return r===-1?n.push(e):n[r]=e,n}function yT(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Glt(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(i=>i[n]!==e[n]);return r.length===t.length?null:r}const Ylt=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},Wve=e=>e.indexOf("image/")===0,Xlt=e=>{if(e.type&&!e.thumbUrl)return Wve(e.type);const t=e.thumbUrl||e.url||"",n=Ylt(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},cp=200;function Zlt(e){return new Promise(t=>{if(!e.type||!Wve(e.type)){t("");return}const n=document.createElement("canvas");n.width=cp,n.height=cp,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${cp}px; height: ${cp}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:a,height:o}=i;let s=cp,l=cp,c=0,u=0;a>o?(l=o*(cp/a),u=-(l-s)/2):(s=a*(cp/o),c=-(s-l)/2),r.drawImage(i,c,u,s,l);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(f)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(i.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const Qlt=d.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:a,listType:o,file:s,items:l,progress:c,iconRender:u,actionIconRender:f,itemRender:p,isImgUrl:h,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:v,previewIcon:y,removeIcon:w,downloadIcon:b,extra:C,onPreview:k,onDownload:S,onClose:_}=e;var E,$;const{status:M}=s,[P,R]=d.useState(M);d.useEffect(()=>{M!=="removed"&&R(M)},[M]);const[O,j]=d.useState(!1);d.useEffect(()=>{const pe=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(pe)}},[]);const I=u(s);let A=d.createElement("div",{className:`${n}-icon`},I);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(P==="uploading"||!s.thumbUrl&&!s.url){const pe=Ee(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:P!=="uploading"});A=d.createElement("div",{className:pe},I)}else{const pe=h!=null&&h(s)?d.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):I,me=Ee(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:h&&!h(s)});A=d.createElement("a",{className:me,onClick:re=>k(s,re),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},pe)}const N=Ee(`${n}-list-item`,`${n}-list-item-${P}`),F=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,K=(typeof g=="function"?g(s):g)?f((typeof w=="function"?w(s):w)||d.createElement(Y8,null),()=>_(s),n,a.removeFile,!0):null,L=(typeof v=="function"?v(s):v)&&P==="done"?f((typeof b=="function"?b(s):b)||d.createElement(xrt,null),()=>S(s),n,a.downloadFile):null,V=o!=="picture-card"&&o!=="picture-circle"&&d.createElement("span",{key:"download-delete",className:Ee(`${n}-list-item-actions`,{picture:o==="picture"})},L,K),B=typeof C=="function"?C(s):C,U=B&&d.createElement("span",{className:`${n}-list-item-extra`},B),Y=Ee(`${n}-list-item-name`),ee=s.url?d.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Y,title:s.name},F,{href:s.url,onClick:pe=>k(s,pe)}),s.name,U):d.createElement("span",{key:"view",className:Y,onClick:pe=>k(s,pe),title:s.name},s.name,U),ie=(typeof m=="function"?m(s):m)&&(s.url||s.thumbUrl)?d.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:pe=>k(s,pe),title:a.previewFile},typeof y=="function"?y(s):y||d.createElement(V8,null)):null,Z=(o==="picture-card"||o==="picture-circle")&&P!=="uploading"&&d.createElement("span",{className:`${n}-list-item-actions`},ie,P==="done"&&L,K),{getPrefixCls:X}=d.useContext(Xt),ae=X(),oe=d.createElement("div",{className:N},A,ee,V,Z,O&&d.createElement(Ca,{motionName:`${ae}-fade`,visible:P==="uploading",motionDeadline:2e3},pe=>{let{className:me}=pe;const re="percent"in s?d.createElement(rz,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return d.createElement("div",{className:Ee(`${n}-list-item-progress`,me)},re)})),le=s.response&&typeof s.response=="string"?s.response:((E=s.error)===null||E===void 0?void 0:E.statusText)||(($=s.error)===null||$===void 0?void 0:$.message)||a.uploadError,ce=P==="error"?d.createElement(_a,{title:le,getPopupContainer:pe=>pe.parentNode},oe):oe;return d.createElement("div",{className:Ee(`${n}-list-item-container`,r),style:i,ref:t},p?p(ce,s,l,{download:S.bind(null,s),preview:k.bind(null,s),remove:_.bind(null,s)}):ce)}),Jlt=(e,t)=>{const{listType:n="text",previewFile:r=Zlt,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:l,isImageUrl:c=Xlt,prefixCls:u,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:h=!0,showDownloadIcon:m=!1,removeIcon:g,previewIcon:v,downloadIcon:y,extra:w,progress:b={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:k=!0,itemRender:S,disabled:_}=e,E=Nhe(),[$,M]=d.useState(!1),P=["picture-card","picture-circle"].includes(n);d.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(U=>{!(U.originFileObj instanceof File||U.originFileObj instanceof Blob)||U.thumbUrl!==void 0||(U.thumbUrl="",r==null||r(U.originFileObj).then(Y=>{U.thumbUrl=Y||"",E()}))})},[n,f,r]),d.useEffect(()=>{M(!0)},[]);const R=(U,Y)=>{if(i)return Y==null||Y.preventDefault(),i(U)},O=U=>{typeof a=="function"?a(U):U.url&&window.open(U.url)},j=U=>{o==null||o(U)},I=U=>{if(l)return l(U,n);const Y=U.status==="uploading";if(n.startsWith("picture")){const ee=n==="picture"?d.createElement(vu,null):s.uploading,ie=c!=null&&c(U)?d.createElement(mit,null):d.createElement(Irt,null);return Y?ee:ie}return Y?d.createElement(vu,null):d.createElement(fit,null)},A=(U,Y,ee,ie,Z)=>{const X={type:"text",size:"small",title:ie,onClick:ae=>{var oe,le;Y(),d.isValidElement(U)&&((le=(oe=U.props).onClick)===null||le===void 0||le.call(oe,ae))},className:`${ee}-list-item-action`};return Z&&(X.disabled=_),d.isValidElement(U)?d.createElement(Yt,Object.assign({},X,{icon:aa(U,Object.assign(Object.assign({},U.props),{onClick:()=>{}}))})):d.createElement(Yt,Object.assign({},X),d.createElement("span",null,U))};d.useImperativeHandle(t,()=>({handlePreview:R,handleDownload:O}));const{getPrefixCls:N}=d.useContext(Xt),F=N("upload",u),K=N(),L=Ee(`${F}-list`,`${F}-list-${n}`),V=d.useMemo(()=>$r(P0(K),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[K]),B=Object.assign(Object.assign({},P?{}:V),{motionDeadline:2e3,motionName:`${F}-${P?"animate-inline":"animate"}`,keys:lt(f.map(U=>({key:U.uid,file:U}))),motionAppear:$});return d.createElement("div",{className:L},d.createElement(ZE,Object.assign({},B,{component:!1}),U=>{let{key:Y,file:ee,className:ie,style:Z}=U;return d.createElement(Qlt,{key:Y,locale:s,prefixCls:F,className:ie,style:Z,file:ee,items:f,progress:b,listType:n,isImgUrl:c,showPreviewIcon:p,showRemoveIcon:h,showDownloadIcon:m,removeIcon:g,previewIcon:v,downloadIcon:y,extra:w,iconRender:I,actionIconRender:A,itemRender:S,onPreview:R,onDownload:O,onClose:j})}),C&&d.createElement(Ca,Object.assign({},B,{visible:k,forceRender:!0}),U=>{let{className:Y,style:ee}=U;return aa(C,ie=>({className:Ee(ie.className,Y),style:Object.assign(Object.assign(Object.assign({},ee),{pointerEvents:Y?"none":void 0}),ie.style)}))}))},ect=d.forwardRef(Jlt);var tct=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const E2=`__LIST_IGNORE_${Date.now()}__`,nct=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:a=!0,listType:o="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:p,locale:h,iconRender:m,isImageUrl:g,progress:v,prefixCls:y,className:w,type:b="select",children:C,style:k,itemRender:S,maxCount:_,data:E={},multiple:$=!1,hasControlInside:M=!0,action:P="",accept:R="",supportServerRender:O=!0,rootClassName:j}=e,I=d.useContext(ma),A=p??I,[N,F]=jn(r||[],{value:n,postState:ge=>ge??[]}),[K,L]=d.useState("drop"),V=d.useRef(null),B=d.useRef(null);d.useMemo(()=>{const ge=Date.now();(n||[]).forEach((ze,Ve)=>{!ze.uid&&!Object.isFrozen(ze)&&(ze.uid=`__AUTO__${ge}_${Ve}__`)})},[n]);const U=(ge,ze,Ve)=>{let Be=lt(ze),Xe=!1;_===1?Be=Be.slice(-1):_&&(Xe=Be.length>_,Be=Be.slice(0,_)),Va.flushSync(()=>{F(Be)});const Ke={file:ge,fileList:Be};Ve&&(Ke.event=Ve),(!Xe||ge.status==="removed"||Be.some(qe=>qe.uid===ge.uid))&&Va.flushSync(()=>{c==null||c(Ke)})},Y=(ge,ze)=>tct(void 0,void 0,void 0,function*(){const{beforeUpload:Ve,transformFile:Be}=e;let Xe=ge;if(Ve){const Ke=yield Ve(ge,ze);if(Ke===!1)return!1;if(delete ge[E2],Ke===E2)return Object.defineProperty(ge,E2,{value:!0,configurable:!0}),!1;typeof Ke=="object"&&Ke&&(Xe=Ke)}return Be&&(Xe=yield Be(Xe)),Xe}),ee=ge=>{const ze=ge.filter(Xe=>!Xe.file[E2]);if(!ze.length)return;const Ve=ze.map(Xe=>jS(Xe.file));let Be=lt(N);Ve.forEach(Xe=>{Be=NS(Xe,Be)}),Ve.forEach((Xe,Ke)=>{let qe=Xe;if(ze[Ke].parsedFile)Xe.status="uploading";else{const{originFileObj:Et}=Xe;let ut;try{ut=new File([Et],Et.name,{type:Et.type})}catch{ut=new Blob([Et],{type:Et.type}),ut.name=Et.name,ut.lastModifiedDate=new Date,ut.lastModified=new Date().getTime()}ut.uid=Xe.uid,qe=ut}U(qe,Be)})},ie=(ge,ze,Ve)=>{try{typeof ge=="string"&&(ge=JSON.parse(ge))}catch{}if(!yT(ze,N))return;const Be=jS(ze);Be.status="done",Be.percent=100,Be.response=ge,Be.xhr=Ve;const Xe=NS(Be,N);U(Be,Xe)},Z=(ge,ze)=>{if(!yT(ze,N))return;const Ve=jS(ze);Ve.status="uploading",Ve.percent=ge.percent;const Be=NS(Ve,N);U(Ve,Be,ge)},X=(ge,ze,Ve)=>{if(!yT(Ve,N))return;const Be=jS(Ve);Be.error=ge,Be.response=ze,Be.status="error";const Xe=NS(Be,N);U(Be,Xe)},ae=ge=>{let ze;Promise.resolve(typeof i=="function"?i(ge):i).then(Ve=>{var Be;if(Ve===!1)return;const Xe=Glt(ge,N);Xe&&(ze=Object.assign(Object.assign({},ge),{status:"removed"}),N==null||N.forEach(Ke=>{const qe=ze.uid!==void 0?"uid":"name";Ke[qe]===ze[qe]&&!Object.isFrozen(Ke)&&(Ke.status="removed")}),(Be=V.current)===null||Be===void 0||Be.abort(ze),U(ze,Xe))})},oe=ge=>{L(ge.type),ge.type==="drop"&&(u==null||u(ge))};d.useImperativeHandle(t,()=>({onBatchStart:ee,onSuccess:ie,onProgress:Z,onError:X,fileList:N,upload:V.current,nativeElement:B.current}));const{getPrefixCls:le,direction:ce,upload:pe}=d.useContext(Xt),me=le("upload",y),re=Object.assign(Object.assign({onBatchStart:ee,onError:X,onProgress:Z,onSuccess:ie},e),{data:E,multiple:$,action:P,accept:R,supportServerRender:O,prefixCls:me,disabled:A,beforeUpload:Y,onChange:void 0,hasControlInside:M});delete re.className,delete re.style,(!C||A)&&delete re.id;const fe=`${me}-wrapper`,[ve,$e,Ce]=Klt(me,fe),[be]=Ga("Upload",Us.Upload),{showRemoveIcon:Se,showPreviewIcon:we,showDownloadIcon:se,removeIcon:ye,previewIcon:Oe,downloadIcon:z,extra:H}=typeof a=="boolean"?{}:a,G=typeof Se>"u"?!A:Se,de=(ge,ze)=>a?d.createElement(ect,{prefixCls:me,listType:o,items:N,previewFile:f,onPreview:s,onDownload:l,onRemove:ae,showRemoveIcon:G,showPreviewIcon:we,showDownloadIcon:se,removeIcon:ye,previewIcon:Oe,downloadIcon:z,iconRender:m,extra:H,locale:Object.assign(Object.assign({},be),h),isImageUrl:g,progress:v,appendAction:ge,appendActionVisible:ze,itemRender:S,disabled:A}):ge,xe=Ee(fe,w,j,$e,Ce,pe==null?void 0:pe.className,{[`${me}-rtl`]:ce==="rtl",[`${me}-picture-card-wrapper`]:o==="picture-card",[`${me}-picture-circle-wrapper`]:o==="picture-circle"}),he=Object.assign(Object.assign({},pe==null?void 0:pe.style),k);if(b==="drag"){const ge=Ee($e,me,`${me}-drag`,{[`${me}-drag-uploading`]:N.some(ze=>ze.status==="uploading"),[`${me}-drag-hover`]:K==="dragover",[`${me}-disabled`]:A,[`${me}-rtl`]:ce==="rtl"});return ve(d.createElement("span",{className:xe,ref:B},d.createElement("div",{className:ge,style:he,onDrop:oe,onDragOver:oe,onDragLeave:oe},d.createElement(rN,Object.assign({},re,{ref:V,className:`${me}-btn`}),d.createElement("div",{className:`${me}-drag-container`},C))),de()))}const Ue=Ee(me,`${me}-select`,{[`${me}-disabled`]:A,[`${me}-hidden`]:!C}),We=d.createElement("div",{className:Ue},d.createElement(rN,Object.assign({},re,{ref:V})));return ve(o==="picture-card"||o==="picture-circle"?d.createElement("span",{className:xe,ref:B},de(We,!!C)):d.createElement("span",{className:xe,ref:B},We,de()))},Vve=d.forwardRef(nct);var rct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{style:n,height:r,hasControlInside:i=!1}=e,a=rct(e,["style","height","hasControlInside"]);return d.createElement(Vve,Object.assign({ref:t,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),e1=Vve;e1.Dragger=ict;e1.LIST_IGNORE=E2;const act=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,children:i,size:a,style:o={}}=e,s=Ee(`${n}-panel`,{[`${n}-panel-hidden`]:a===0},r),l=a!==void 0;return te.createElement("div",{ref:t,className:s,style:Object.assign(Object.assign({},o),{flexBasis:l?a:"auto",flexGrow:l?0:1})},i)}),oct=()=>null;var sct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iXi(e).filter(d.isValidElement).map(n=>{const{props:r}=n,{collapsible:i}=r,a=sct(r,["collapsible"]);return Object.assign(Object.assign({},a),{collapsible:lct(i)})}),[e])}function uct(e,t){return d.useMemo(()=>{const n=[];for(let r=0;r0||h.start&&s===0&&o>0,v=h.start&&s>0||u.end&&o===0&&s>0;n[r]={resizable:m,startCollapsible:!!g,endCollapsible:!!v}}return n},[t,e])}function l_(e){return Number(e.slice(0,-1))/100}function bT(e){return typeof e=="string"&&e.endsWith("%")}function dct(e,t){const n=e.map(m=>m.size),r=e.length,i=t||0,a=m=>m*i,[o,s]=te.useState(()=>e.map(m=>m.defaultSize)),l=te.useMemo(()=>{var m;const g=[];for(let v=0;v{let m=[],g=0;for(let y=0;yy+(w||0),0);if(v>1||!g){const y=1/v;m=m.map(w=>w===void 0?0:w*y)}else{const y=(1-v)/g;m=m.map(w=>w===void 0?y:w)}return m},[l,i]),u=te.useMemo(()=>c.map(a),[c,i]),f=te.useMemo(()=>e.map(m=>bT(m.min)?l_(m.min):(m.min||0)/i),[e,i]),p=te.useMemo(()=>e.map(m=>bT(m.max)?l_(m.max):(m.max||i)/i),[e,i]);return[te.useMemo(()=>t?u:l,[u,t]),u,c,f,p,s]}function fct(e,t,n,r,i){const a=e.map(b=>[b.min,b.max]),o=r||0,s=b=>b*o;function l(b,C){return typeof b=="string"?s(l_(b)):b??C}const[c,u]=d.useState([]),f=d.useRef([]),[p,h]=d.useState(null),m=()=>n.map(s);return[b=>{u(m()),h({index:b,confirmed:!1})},(b,C)=>{var k;let S=null;if((!p||!p.confirmed)&&C!==0){if(C>0)S=b,h({index:b,confirmed:!0});else for(let I=b;I>=0;I-=1)if(c[I]>0&&t[I].resizable){S=I,h({index:I,confirmed:!0});break}}const _=(k=S??(p==null?void 0:p.index))!==null&&k!==void 0?k:b,E=lt(c),$=_+1,M=l(a[_][0],0),P=l(a[$][0],0),R=l(a[_][1],o),O=l(a[$][1],o);let j=C;return E[_]+jR&&(j=R-E[_]),E[$]-j>O&&(j=E[$]-O),E[_]+=j,E[$]-=j,i(E),E},()=>{h(null)},(b,C)=>{const k=m(),S=C==="start"?b:b+1,_=C==="start"?b+1:b,E=k[S],$=k[_];if(E!==0&&$!==0)k[S]=0,k[_]+=E,f.current[b]=E;else{const M=E+$,P=l(a[S][0],0),R=l(a[S][1],o),O=l(a[_][0],0),j=l(a[_][1],o),I=Math.max(P,M-j),N=(Math.min(R,M-O)-I)/2,F=f.current[b],K=M-F;F&&F<=j&&F>=O&&K<=R&&K>=P?(k[_]=F,k[S]=K):(k[S]-=N,k[_]+=N)}return i(k),k},p==null?void 0:p.index]}function wT(e){return typeof e=="number"&&!Number.isNaN(e)?Math.round(e):0}const pct=e=>{const{prefixCls:t,vertical:n,index:r,active:i,ariaNow:a,ariaMin:o,ariaMax:s,resizable:l,startCollapsible:c,endCollapsible:u,onOffsetStart:f,onOffsetUpdate:p,onOffsetEnd:h,onCollapse:m,lazy:g,containerSize:v}=e,y=`${t}-bar`,[w,b]=d.useState(null),[C,k]=d.useState(0),S=n?0:C,_=n?C:0,E=A=>{l&&A.currentTarget&&(b([A.pageX,A.pageY]),f(r))},$=A=>{if(l&&A.touches.length===1){const N=A.touches[0];b([N.pageX,N.pageY]),f(r)}},M=A=>{const N=v*a/100,F=N+A,K=Math.max(0,v*o/100),L=Math.min(v,v*s/100);return Math.max(K,Math.min(L,F))-N},P=Vn((A,N)=>{const F=M(n?N:A);k(F)}),R=Vn(()=>{p(r,S,_),k(0)});te.useEffect(()=>{if(w){const A=L=>{const{pageX:V,pageY:B}=L,U=V-w[0],Y=B-w[1];g?P(U,Y):p(r,U,Y)},N=()=>{g&&R(),b(null),h()},F=L=>{if(L.touches.length===1){const V=L.touches[0],B=V.pageX-w[0],U=V.pageY-w[1];g?P(B,U):p(r,B,U)}},K=()=>{g&&R(),b(null),h()};return window.addEventListener("touchmove",F),window.addEventListener("touchend",K),window.addEventListener("mousemove",A),window.addEventListener("mouseup",N),()=>{window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",N),window.removeEventListener("touchmove",F),window.removeEventListener("touchend",K)}}},[w,g,n,r,v,a,o,s]);const O={[`--${y}-preview-offset`]:`${C}px`},j=n?Gge:Nf,I=n?My:bc;return te.createElement("div",{className:y,role:"separator","aria-valuenow":wT(a),"aria-valuemin":wT(o),"aria-valuemax":wT(s)},g&&te.createElement("div",{className:Ee(`${y}-preview`,{[`${y}-preview-active`]:!!C}),style:O}),te.createElement("div",{className:Ee(`${y}-dragger`,{[`${y}-dragger-disabled`]:!l,[`${y}-dragger-active`]:i}),onMouseDown:E,onTouchStart:$}),c&&te.createElement("div",{className:Ee(`${y}-collapse-bar`,`${y}-collapse-bar-start`),onClick:()=>m(r,"start")},te.createElement(j,{className:Ee(`${y}-collapse-icon`,`${y}-collapse-start`)})),u&&te.createElement("div",{className:Ee(`${y}-collapse-bar`,`${y}-collapse-bar-end`),onClick:()=>m(r,"end")},te.createElement(I,{className:Ee(`${y}-collapse-icon`,`${y}-collapse-end`)})))},hct=e=>{const{componentCls:t}=e;return{[`&-rtl${t}-horizontal`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${t}-vertical`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},AS={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"},mct=e=>{const{componentCls:t,colorFill:n,splitBarDraggableSize:r,splitBarSize:i,splitTriggerSize:a,controlItemBgHover:o,controlItemBgActive:s,controlItemBgActiveHover:l,prefixCls:c}=e,u=`${t}-bar`,f=`${t}-mask`,p=`${t}-panel`,h=e.calc(a).div(2).equal(),m=`${c}-bar-preview-offset`,g={position:"absolute",background:e.colorPrimary,opacity:.2,pointerEvents:"none",transition:"none",zIndex:1,display:"none"};return{[t]:Object.assign(Object.assign(Object.assign({},ar(e)),{display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${u}`]:{flex:"none",position:"relative",userSelect:"none",[`${u}-dragger`]:Object.assign(Object.assign({},AS),{zIndex:1,"&::before":Object.assign({content:'""',background:o},AS),"&::after":Object.assign({content:'""',background:n},AS),[`&:hover:not(${u}-dragger-active)`]:{"&::before":{background:s}},"&-active":{zIndex:2,"&::before":{background:l}},[`&-disabled${u}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:o}},"&::after":{display:"none"}}}),[`${u}-collapse-bar`]:Object.assign(Object.assign({},AS),{zIndex:e.zIndexPopupBase,background:o,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:s},"&:active":{background:l}}),"&:hover, &:active":{[`${u}-collapse-bar`]:{opacity:1}}},[f]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${u}`]:{width:0,[`${u}-preview`]:Object.assign(Object.assign({height:"100%",width:i},g),{[`&${u}-preview-active`]:{display:"block",transform:`translateX(var(--${m}))`}}),[`${u}-dragger`]:{cursor:"col-resize",height:"100%",width:a,"&::before":{height:"100%",width:i},"&::after":{height:r,width:i}},[`${u}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:h},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:h},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${u}`]:{height:0,[`${u}-preview`]:Object.assign(Object.assign({height:i,width:"100%"},g),{[`&${u}-preview-active`]:{display:"block",transform:`translateY(var(--${m}))`}}),[`${u}-dragger`]:{cursor:"row-resize",width:"100%",height:a,"&::before":{width:"100%",height:i},"&::after":{width:r,height:i}},[`${u}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:h,transform:"translateX(-50%)"},"&-end":{top:h,bottom:"auto",transform:"translateX(-50%)"}}}},[p]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"}}}),hct(e))}},gct=e=>{var t;const n=e.splitBarSize||2,r=e.splitTriggerSize||6,i=e.resizeSpinnerSize||20,a=(t=e.splitBarDraggableSize)!==null&&t!==void 0?t:i;return{splitBarSize:n,splitTriggerSize:r,splitBarDraggableSize:a,resizeSpinnerSize:i}},vct=Jn("Splitter",e=>[mct(e)],gct),yct=e=>{const{prefixCls:t,className:n,style:r,layout:i="horizontal",children:a,rootClassName:o,onResizeStart:s,onResize:l,onResizeEnd:c,lazy:u}=e,{getPrefixCls:f,direction:p,splitter:h}=te.useContext(Xt),m=f("splitter",t),g=qr(m),[v,y,w]=vct(m,g),b=i==="vertical",C=p==="rtl",k=!b&&C,S=cct(a),[_,E]=d.useState(),$=oe=>{const{offsetWidth:le,offsetHeight:ce}=oe,pe=b?ce:le;pe!==0&&E(pe)},[M,P,R,O,j,I]=dct(S,_),A=uct(S,P),[N,F,K,L,V]=fct(S,A,R,_,I),B=Vn(oe=>{N(oe),s==null||s(P)}),U=Vn((oe,le)=>{const ce=F(oe,le);l==null||l(ce)}),Y=Vn(()=>{K(),c==null||c(P)}),ee=Vn((oe,le)=>{const ce=L(oe,le);l==null||l(ce),c==null||c(ce)}),ie=Ee(m,n,`${m}-${i}`,{[`${m}-rtl`]:C},o,h==null?void 0:h.className,w,g,y),Z=`${m}-mask`,X=te.useMemo(()=>{const oe=[];let le=0;for(let ce=0;ce{const ce=te.createElement(act,Object.assign({},oe,{prefixCls:m,size:M[le]}));let pe=null;const me=A[le];if(me){const re=(X[le-1]||0)+O[le],fe=(X[le+1]||100)-j[le+1],ve=(X[le-1]||0)+j[le],$e=(X[le+1]||100)-O[le+1];pe=te.createElement(pct,{lazy:u,index:le,active:V===le,prefixCls:m,vertical:b,resizable:me.resizable,ariaNow:X[le]*100,ariaMin:Math.max(re,fe)*100,ariaMax:Math.min(ve,$e)*100,startCollapsible:me.startCollapsible,endCollapsible:me.endCollapsible,onOffsetStart:B,onOffsetUpdate:(Ce,be,Se)=>{let we=b?Se:be;k&&(we=-we),U(Ce,we)},onOffsetEnd:Y,onCollapse:ee,containerSize:_||0})}return te.createElement(te.Fragment,{key:`split-panel-${le}`},ce,pe)}),typeof V=="number"&&te.createElement("div",{"aria-hidden":!0,className:Ee(Z,`${Z}-${i}`)}))))},Bp=yct;Bp.Panel=oct;let je;const bct=()=>{const e=v8.useApp();return je=e.message,e.modal,e.notification,null};var qve={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n=function(W,Q){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,_e){ue.__proto__=_e}||function(ue,_e){for(var Pe in _e)Object.prototype.hasOwnProperty.call(_e,Pe)&&(ue[Pe]=_e[Pe])})(W,Q)},r=function(){return(r=Object.assign||function(W){for(var Q,ue=1,_e=arguments.length;ue<_e;ue++)for(var Pe in Q=arguments[ue])Object.prototype.hasOwnProperty.call(Q,Pe)&&(W[Pe]=Q[Pe]);return W}).apply(this,arguments)};function i(W,Q,ue){for(var _e,Pe=0,Ae=Q.length;Pe"u"||a.Promise||(a.Promise=Promise);var c=Object.getPrototypeOf,u={}.hasOwnProperty;function f(W,Q){return u.call(W,Q)}function p(W,Q){typeof Q=="function"&&(Q=Q(c(W))),(typeof Reflect>"u"?o:Reflect.ownKeys)(Q).forEach(function(ue){m(W,ue,Q[ue])})}var h=Object.defineProperty;function m(W,Q,ue,_e){h(W,Q,l(ue&&f(ue,"get")&&typeof ue.get=="function"?{get:ue.get,set:ue.set,configurable:!0}:{value:ue,configurable:!0,writable:!0},_e))}function g(W){return{from:function(Q){return W.prototype=Object.create(Q.prototype),m(W.prototype,"constructor",W),{extend:p.bind(null,W.prototype)}}}}var v=Object.getOwnPropertyDescriptor,y=[].slice;function w(W,Q,ue){return y.call(W,Q,ue)}function b(W,Q){return Q(W)}function C(W){if(!W)throw new Error("Assertion Failed")}function k(W){a.setImmediate?setImmediate(W):setTimeout(W,0)}function S(W,Q){if(typeof Q=="string"&&f(W,Q))return W[Q];if(!Q)return W;if(typeof Q!="string"){for(var ue=[],_e=0,Pe=Q.length;_e"u"?[]:function(){var W=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[W,c(W),W];var Q=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[Q,c(Q),W]}(),Oe=bt[0],Vl=bt[1],bt=bt[2],Vl=Vl&&Vl.then,z=Oe&&Oe.constructor,H=!!bt,G=function(W,Q){Ve.push([W,Q]),xe&&(queueMicrotask(jt),xe=!1)},de=!0,xe=!0,he=[],Ue=[],We=pe,ge={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:ce,pgp:!1,env:{},finalize:ce},ze=ge,Ve=[],Be=0,Xe=[];function Ke(W){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var Q=this._PSD=ze;if(typeof W!="function"){if(W!==se)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&ut(this,this._value))}this._state=null,this._value=null,++Q.ref,function ue(_e,Pe){try{Pe(function(Ae){if(_e._state===null){if(Ae===_e)throw new TypeError("A promise cannot be resolved with itself.");var Ge=_e._lib&&Lt();Ae&&typeof Ae.then=="function"?ue(_e,function(et,ct){Ae instanceof Ke?Ae._then(et,ct):Ae.then(et,ct)}):(_e._state=!0,_e._value=Ae,gt(_e)),Ge&&Bt()}},ut.bind(null,_e))}catch(Ae){ut(_e,Ae)}}(this,W)}var qe={get:function(){var W=ze,Q=Nt;function ue(_e,Pe){var Ae=this,Ge=!W.global&&(W!==ze||Q!==Nt),et=Ge&&!Ct(),ct=new Ke(function(ht,_t){Ze(Ae,new Et(De(_e,W,Ge,et),De(Pe,W,Ge,et),ht,_t,W))});return this._consoleTask&&(ct._consoleTask=this._consoleTask),ct}return ue.prototype=se,ue},set:function(W){m(this,"then",W&&W.prototype===se?qe:{get:function(){return W},set:qe.set})}};function Et(W,Q,ue,_e,Pe){this.onFulfilled=typeof W=="function"?W:null,this.onRejected=typeof Q=="function"?Q:null,this.resolve=ue,this.reject=_e,this.psd=Pe}function ut(W,Q){var ue,_e;Ue.push(Q),W._state===null&&(ue=W._lib&&Lt(),Q=We(Q),W._state=!1,W._value=Q,_e=W,he.some(function(Pe){return Pe._value===_e._value})||he.push(_e),gt(W),ue&&Bt())}function gt(W){var Q=W._listeners;W._listeners=[];for(var ue=0,_e=Q.length;ue<_e;++ue)Ze(W,Q[ue]);var Pe=W._PSD;--Pe.ref||Pe.finalize(),Be===0&&(++Be,G(function(){--Be==0&&Ut()},[]))}function Ze(W,Q){if(W._state!==null){var ue=W._state?Q.onFulfilled:Q.onRejected;if(ue===null)return(W._state?Q.resolve:Q.reject)(W._value);++Q.psd.ref,++Be,G(nt,[ue,W,Q])}else W._listeners.push(Q)}function nt(W,Q,ue){try{var _e,Pe=Q._value;!Q._state&&Ue.length&&(Ue=[]),_e=Se&&Q._consoleTask?Q._consoleTask.run(function(){return W(Pe)}):W(Pe),Q._state||Ue.indexOf(Pe)!==-1||function(Ae){for(var Ge=he.length;Ge;)if(he[--Ge]._value===Ae._value)return he.splice(Ge,1)}(Q),ue.resolve(_e)}catch(Ae){ue.reject(Ae)}finally{--Be==0&&Ut(),--ue.psd.ref||ue.psd.finalize()}}function jt(){dt(ge,function(){Lt()&&Bt()})}function Lt(){var W=de;return xe=de=!1,W}function Bt(){var W,Q,ue;do for(;0.",rt="String expected.",$t=[],Mt="__dbnames",dn="readonly",pn="readwrite";function T(W,Q){return W?Q?function(){return W.apply(this,arguments)&&Q.apply(this,arguments)}:W:Q}var D={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function J(W){return typeof W!="string"||/\./.test(W)?function(Q){return Q}:function(Q){return Q[W]===void 0&&W in Q&&delete(Q=O(Q))[W],Q}}function ke(){throw ae.Type()}function Ie(W,Q){try{var ue=it(W),_e=it(Q);if(ue!==_e)return ue==="Array"?1:_e==="Array"?-1:ue==="binary"?1:_e==="binary"?-1:ue==="string"?1:_e==="string"?-1:ue==="Date"?1:_e!=="Date"?NaN:-1;switch(ue){case"number":case"Date":case"string":return QWt+Gt&&Dt(Wt+_t)})})}var zt=mr(ue)&&ue.limit===1/0&&(typeof W!="function"||W===or)&&{index:ue.index,range:ue.range};return Dt(0).then(function(){if(0=Rt})).length!==0?(_t.forEach(function(Dt){Tt.push(function(){var zt=yt,Wt=Dt._cfg.dbschema;_x(at,zt,St),_x(at,Wt,St),yt=at._dbSchema=Wt;var Gt=D7(zt,Wt);Gt.add.forEach(function(Tn){F7(St,Tn[0],Tn[1].primKey,Tn[1].indexes)}),Gt.change.forEach(function(Tn){if(Tn.recreate)throw new ae.Upgrade("Not yet support for changing primary key");var _n=St.objectStore(Tn.name);Tn.add.forEach(function(Fn){return Sx(_n,Fn)}),Tn.change.forEach(function(Fn){_n.deleteIndex(Fn.name),Sx(_n,Fn)}),Tn.del.forEach(function(Fn){return _n.deleteIndex(Fn)})});var gn=Dt._cfg.contentUpgrade;if(gn&&Dt._cfg.version>Rt){bx(at,St),ft._memoizedTables={};var En=E(Wt);Gt.del.forEach(function(Tn){En[Tn]=zt[Tn]}),A7(at,[at.Transaction.prototype]),xx(at,[at.Transaction.prototype],o(En),En),ft.schema=En;var vn,Cn=V(gn);return Cn&&st(),Gt=Ke.follow(function(){var Tn;(vn=gn(ft))&&Cn&&(Tn=Ct.bind(null,null),vn.then(Tn,Tn))}),vn&&typeof vn.then=="function"?Ke.resolve(vn):Gt.then(function(){return vn})}}),Tt.push(function(zt){var Wt,Gt,gn=Dt._cfg.dbschema;Wt=gn,Gt=zt,[].slice.call(Gt.db.objectStoreNames).forEach(function(En){return Wt[En]==null&&Gt.db.deleteObjectStore(En)}),A7(at,[at.Transaction.prototype]),xx(at,[at.Transaction.prototype],at._storeNames,at._dbSchema),ft.schema=at._dbSchema}),Tt.push(function(zt){at.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(at.idbdb.version/10)===Dt._cfg.version?(at.idbdb.deleteObjectStore("$meta"),delete at._dbSchema.$meta,at._storeNames=at._storeNames.filter(function(Wt){return Wt!=="$meta"})):zt.objectStore("$meta").put(Dt._cfg.version,"version"))})}),function Dt(){return Tt.length?Ke.resolve(Tt.shift()(ft.idbtrans)).then(Dt):Ke.resolve()}().then(function(){eW(yt,St)})):Ke.resolve();var at,Rt,ft,St,Tt,yt}).catch(Ge)):(o(Pe).forEach(function(_t){F7(ue,_t,Pe[_t].primKey,Pe[_t].indexes)}),bx(W,ue),void Ke.follow(function(){return W.on.populate.fire(Ae)}).catch(Ge));var ct,ht})}function NSe(W,Q){eW(W._dbSchema,Q),Q.db.version%10!=0||Q.objectStoreNames.contains("$meta")||Q.db.createObjectStore("$meta").add(Math.ceil(Q.db.version/10-1),"version");var ue=Cx(0,W.idbdb,Q);_x(W,W._dbSchema,Q);for(var _e=0,Pe=D7(ue,W._dbSchema).change;_eMath.pow(2,62)?0:yt.oldVersion,at=yt<1,W.idbdb=Tt.result,Ae&&NSe(W,_t),jSe(W,yt/10,_t,ft))},ft),Tt.onsuccess=He(function(){_t=null;var yt,Dt,zt,Wt,Gt,gn=W.idbdb=Tt.result,En=w(gn.objectStoreNames);if(0"u"?Ke.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(Rt){function ft(){return indexedDB.databases().finally(Rt)}ct=setInterval(ft,100),ft()}).finally(function(){return clearInterval(ct)}):Promise.resolve()).then(et)]).then(function(){return Ge(),Q.onReadyBeingFired=[],Ke.resolve(z7(function(){return W.on.ready.fire(W.vip)})).then(function Rt(){if(0Q.limit?Rt.length=Q.limit:W.length===Q.limit&&Rt.length=Dt.limit&&(!Dt.values||gn.req.values)&&HSe(gn.req.query.range,Dt.query.range)}),!1,zt,Wt];case"count":return Gt=Wt.find(function(gn){return dW(gn.req.query.range,Dt.query.range)}),[Gt,!!Gt,zt,Wt]}}(Q,ue,"query",Ae),_t=ht[0],at=ht[1],Rt=ht[2],ft=ht[3];return _t&&at?_t.obsSet=Ae.obsSet:(at=_e.query(Ae).then(function(St){var Tt=St.result;if(_t&&(_t.res=Tt),Ge){for(var yt=0,Dt=Tt.length;yt({uid:r.uid||"",type:r.type||"",content:r.content||"",client:r.client||"",createdAt:r.createdAt||"",status:r.status||"",topic:r.topic||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getMessage(n){return await Zl.messages.get(n)}async updateMessage(n,r){return await Zl.messages.update(n,{content:r})}async deleteMessage(n){return await Zl.messages.delete(n)}subscribeMessages(){xct(()=>this.messages.toArray()).subscribe({next:r=>{const i=r.map(a=>a.uid);console.log("messagesObservable message uids",i)}})}async createThread(n){var r,i,a;return console.log("useIndexedDB createThread",n.topic),await Zl.threads.put({uid:n.uid,type:n.type,topic:n.topic,state:n.state,extra:n.extra,updatedAt:n.updatedAt,userUid:(r=n.user)==null?void 0:r.uid,userNickname:(i=n.user)==null?void 0:i.nickname,userAvatar:(a=n.user)==null?void 0:a.avatar})}async getAllThreads(){return(await Zl.threads.toArray()).map(r=>({uid:r.uid||"",type:r.type||"",topic:r.topic||"",status:r.state||"",extra:r.extra||"",createdAt:r.updatedAt||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getThread(n){return await Zl.threads.get(n)}async updateThread(n,r){return await Zl.threads.update(n,r)}async deleteThread(n){return await Zl.threads.delete(n)}}const Zl=new Kve;let ua,Hc,hl,F1=!1;const Sct=({uid:e,username:t,accessToken:n})=>{if(n===""||n==null){console.log("accessToken is empty, don't connect mqtt");return}if(Hc=ia.getState().userInfo,hl=Eo.getState().agentInfo,F1){console.log("mqtt is connecting");return}if(ua&&ua.connected){console.log("mqtt already connected");return}if(ua&&ua.reconnecting){console.log("mqtt already reconnecting");return}F1=!0;const r=ia.getState().deviceUid,a={keepalive:30,clientId:e+"/"+kn+"/"+r,username:t,password:n,clean:!1,path:"/websocket",reconnectPeriod:5e3,connectTimeout:30*1e3,reschedulePings:!0,rejectUnauthorized:!1};console.log("mqtt start connect:",a),ua=J7e.connect(e$e(),a),ua.on("connect",()=>{console.log("mqtt event connected"),F1=!1,$n.emit(qO)}),ua.on("message",async function(o,s,l){console.log("mqtt receive message topic:",o,l);const c=wue.Message.deserializeBinary(s),u=fr.getState().currentThread,f={uid:c.getThread().getUid(),type:c.getThread().getType(),topic:c.getThread().getTopic(),content:c.getContent(),updatedAt:c.getCreatedat(),unreadCount:0,user:{uid:c.getThread().getUser().getUid(),nickname:c.getThread().getUser().getNickname(),avatar:c.getThread().getUser().getAvatar()}},p={uid:c.getUid(),createdAt:c.getCreatedat(),client:c.getClient(),type:c.getType(),status:c.getStatus(),user:{uid:c.getUser().getUid(),nickname:c.getUser().getNickname(),avatar:c.getUser().getAvatar()},content:c.getContent(),topic:c.getThread().getTopic()};if(jct(c,Hc,hl))switch(c.getType()){case oR:case aR:ST(c);return;case gk:case rR:return;case HV:return;case iR:console.log("self recall message"),qZ(p);return;case v0:console.log("thread closed message"),fr.getState().closeThread(f.uid);break;default:c.setStatus(Dw)}else switch(c.getType()){case oR:case aR:ST(c);return;case gk:case rR:VZ(u,f,c.getType());return;case $f:VZ(u,f,c.getType());break;case HV:Nct(c,u,f);return;case kse:return;case n5e:case r5e:case a5e:case o5e:case Ese:case l5e:ST(c);return;case iR:console.log("recall message"),qZ(p);return;case _se:console.log("notice message"),Act(p);break;case g0:case v0:console.log("thread closed message"),fr.getState().closeThread(f.uid);break;default:console.log("send receive message type",c.getType()),Uct(c,u,f)}console.log("mqtt message received",o,p,f),Td.getState().addMessage(p),$n.emit(jw,p);const h=fr.getState().addThreadWithMessage(f,p);console.log("unreadCount",h);try{await Zl.createMessage(p),console.log("Sent message stored in IndexedDB:",p)}catch(m){console.error("Error storing sent message in IndexedDB:",m)}}),ua.on("packetsend",o=>{console.log("mqtt event packetsend",o)}),ua.on("packetreceive",o=>{console.log("mqtt event packetreceive",o,o.cmd),o.cmd==="publish"||o.cmd==="pingresp"&&console.log("mqtt event packetreceive pingresp")}),ua.on("reconnect",()=>{console.log("mqtt event reconnect")}),ua.on("close",()=>{console.log("mqtt event close"),F1=!1,$n.emit(GO)}),ua.on("disconnect",()=>{console.error("mqtt event disconnected"),F1=!1,$n.emit(YO)}),ua.on("offline",()=>{console.log("mqtt event offline"),F1=!1,$n.emit(KO)}),ua.on("error",()=>{console.log("mqtt event error"),$n.emit(XO)}),ua.on("end",()=>{console.log("mqtt event end"),$n.emit(ZO)})},Cct=(e,t,n,r)=>{wo(e,vo,t,r,n)},_ct=(e,t,n,r)=>{console.log("mqtt mqttSendImageMessage",t),wo(e,Cl,t,r,n)},kct=(e,t,n,r)=>{console.log("mqtt mqttSendFileMessage",t),wo(e,cd,t,r,n)},UZ=new Set,Gve=(e,t,n)=>{console.log("mqtt mqttSendReceiptReceivedMessage",e),UZ.has(e)||(UZ.add(e),wo(Ba(),aR,e,t,n))},WZ=new Set,Ect=(e,t,n)=>{console.log("mqtt mqttSendReceiptReadMessage",e),WZ.has(e)||(WZ.add(e),wo(Ba(),oR,e,t,n))},$ct=e=>{console.log("mqtt mqttSendRateInviteMessage"),wo(Ba(),pv,"i18n.rate.invite",e,!1)},Mct=(e,t)=>{console.log("mqtt mqttSendTypingMessage"),wo(Ba(),gk,"",e,t)},Tct=(e,t,n)=>{console.log("mqtt mqttSendTransferMessage",t),wo(e,vF,t,n,!1)},Yve=(e,t)=>{console.log("mqtt mqttSendTransferAcceptMessage",e),wo(Ba(),yF,e,t,!1)},Xve=(e,t)=>{console.log("mqtt mqttSendTransferRejectMessage",e),wo(Ba(),bF,e,t,!1)},Pct=(e,t,n)=>{console.log("mqtt mqttSendInviteMessage"),wo(e,wF,t,n,!1)},Zve=(e,t)=>{console.log("mqtt mqttSendInviteAcceptMessage"),wo(Ba(),xF,e,t,!1)},Qve=(e,t)=>{console.log("mqtt mqttSendInviteRejectMessage"),wo(Ba(),SF,e,t,!1)},Oct=(e,t)=>{console.log("mqtt mqttSendRecallMessage",e),wo(Ba(),iR,e,t,!1)},wo=async(e,t,n,r,i)=>{var o,s,l,c;console.log("mqttSendMessage",n,i);const a=Pv();if(ua&&ua.connected){const u=new tMe.Thread;u.setUid(r.uid),u.setType(r.type),u.setTopic(r.topic);const f=new kK.User;f.setUid((o=r.user)==null?void 0:o.uid),f.setNickname((s=r.user)==null?void 0:s.nickname),f.setAvatar((l=r.user)==null?void 0:l.avatar),u.setUser(f);const p=new kK.User;if(i){console.log("mqttSendMessage fromTicketTab");const v=Na.getState().memberInfo;console.log("mqttSendMessage memberInfo:",v),p.setUid(v==null?void 0:v.uid),p.setNickname(v==null?void 0:v.nickname),p.setAvatar(v==null?void 0:v.avatar),p.setType(mk)}else Rf(r)?(p.setUid(hl==null?void 0:hl.uid),p.setNickname(hl==null?void 0:hl.nickname),p.setAvatar(hl==null?void 0:hl.avatar),p.setType(uh),console.log("mqttSendMessage agentInfo:",hl)):(p.setUid(Hc.uid),p.setNickname(Hc.nickname),p.setAvatar(Hc.avatar),p.setType(W5),console.log("mqttSendMessage userInfo:",Hc));const h={orgUid:(c=Hc==null?void 0:Hc.currentOrganization)==null?void 0:c.uid},m=new wue.Message;m.setUid(e),m.setType(t),m.setStatus($p),m.setCreatedat(a),m.setClient(kn),m.setContent(n),m.setUser(p),m.setThread(u),m.setExtra(JSON.stringify(h));const g=m.serializeBinary();ua.publish(r.topic,g);try{const v={uid:m.getUid(),type:m.getType(),content:m.getContent(),client:m.getClient(),createdAt:m.getCreatedat(),status:m.getStatus(),topic:m.getThread().getTopic(),user:{uid:m.getUser().getUid(),nickname:m.getUser().getNickname(),avatar:m.getUser().getAvatar()}};await Zl.createMessage(v),console.log("Sent message stored in IndexedDB:",v)}catch(v){console.error("Error storing sent message in IndexedDB:",v)}}else{console.log("mqttClient is disconnect, use http rest api");let u=null;if(i){const f=Na.getState().memberInfo;u=mRe(r,Hc,f,e,t,n,a)}else u=xL(r,Hc,hl,e,t,n,a);Ict(u)}},xT=()=>{ua?ua.end():console.log("mqttClient is null")},Rct=()=>ua&&ua.connected,Ict=async e=>{const t=JSON.stringify(e),n=await c$e(t);if(console.log("sendHttpMessage:",n.data),n.data.code===200){Td.getState().updateMessageStatus(e==null?void 0:e.uid,Dw);const r={uid:e==null?void 0:e.uid,type:Dw};$n.emit(hk,JSON.stringify(r))}else je.error(n.data.message)},jct=(e,t,n)=>e.getUser().getUid()===(t==null?void 0:t.uid)||e.getUser().getUid()===(n==null?void 0:n.uid);function ST(e){console.log("update message status:",e.getContent(),e.getType()),Td.getState().updateMessageStatus(e.getContent(),e.getType());const t={uid:e.getContent(),type:e.getType()};$n.emit(hk,JSON.stringify(t))}function VZ(e,t,n){(e==null?void 0:e.topic)===(t==null?void 0:t.topic)&&(n===gk?$n.emit(g6e):n===rR?$n.emit(v6e):n===$f&&$n.emit(dse))}function Nct(e,t,n){(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&$n.emit(y6e,e.getContent())}function Act(e){const t=JSON.parse(e==null?void 0:e.content);console.log("handleNoticeMessage",t),t.type===vF?Dct(t):t.type===yF?Fct(t):t.type===bF?Lct(t):t.type===wF?Bct(t):t.type===xF?zct(t):t.type===SF&&Hct(t)}function Dct(e){$n.emit(fse,JSON.stringify(e))}function Fct(e){$n.emit(pse,JSON.stringify(e))}function Lct(e){$n.emit(hse,JSON.stringify(e))}function Bct(e){$n.emit(mse,JSON.stringify(e))}function zct(e){$n.emit(gse,JSON.stringify(e))}function Hct(e){$n.emit(vse,JSON.stringify(e))}function qZ(e){console.log("handleRecallMessage",e==null?void 0:e.uid,e==null?void 0:e.content),Td.getState().recallMessage(e==null?void 0:e.content)}function Uct(e,t,n){if(!uRe(n==null?void 0:n.topic)&&iRe(e==null?void 0:e.getType())){const r=e==null?void 0:e.getUid();Gve(r,n,!1),(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&Ect(r,n,!1)}}const Wct=so()(es(ts(ns(e=>({devices:[],currentDevice:{uid:""},myDevice:{uid:""},addDevice(t){console.log("addDevice",t)},setCurrentDevice:t=>{e({currentDevice:t})},setMyDevice(t){e({myDevice:t})},resetDeviceInfo(){}})),{name:T6e}))),Vct=()=>{F0("https://www.weiyuai.cn/docs/zh-CN/")},F0=e=>{ha?window.electronAPI.openUrl(e):window.open(e,"_blank")},qct=async()=>{if(ha){const e=await window.electronAPI.getSystemInfo();console.log("systemInfo:",e)}else return console.log("not electron"),{platform:"web"}},Jve=async()=>ha?await window.electronAPI.getIpAddress():(console.log("not electron"),[]),Kct=async()=>{if(ha){const e=await window.electronAPI.isWindowActive();return console.log("isWindowActive:",e),e}return null},Gct=(e,t)=>{ha&&window.electronAPI.showElectronNotification(e,t)},Yct=e=>{ha?window.electronAPI.setThemeMode(e):console.log("not electron")},Xct=e=>{ha?window.electronAPI.createNewWindow(e):console.log("not electron")},Zct=()=>{ha?window.electronAPI.screenshotCapture():console.log("not electron")},aN=()=>{ha&&window.electronAPI.loginSuccess()},Qct=()=>{ha&&window.electronAPI.logoutSuccess()};async function t$(e){return bn("/api/v1/member/query/org",{method:"GET",params:{...e,client:kn}})}async function e0e(e){return bn("/api/v1/member/query",{method:"GET",params:{orgUid:e,client:kn}})}async function Jct(e){return bn("/api/v1/member/query/userUid",{method:"GET",params:{userUid:e,client:kn}})}function t1(){const[e,t]=d.useState(!1),[n,r]=d.useState(!1),[i,a]=d.useState(!1),[o,s]=d.useState(!1),l=d.useRef(!1),c=d.useRef(!1),u=d.useRef(null),f=d.useRef(void 0),{myDevice:p,setMyDevice:h}=Wct(j=>({myDevice:j.myDevice,setMyDevice:j.setMyDevice})),{userInfo:m,deviceUid:g,setUserInfo:v,setDeviceUid:y}=ia(j=>({userInfo:j.userInfo,deviceUid:j.deviceUid,setUserInfo:j.setUserInfo,setDeviceUid:j.setDeviceUid})),{agentInfo:w,setAgentInfo:b}=Eo(j=>({agentInfo:j.agentInfo,setAgentInfo:j.setAgentInfo})),{memberInfo:C,setMemberInfo:k}=Na(j=>({memberInfo:j.memberInfo,setMemberInfo:j.setMemberInfo})),S=Vr(j=>j.currentOrg),_=Td(j=>j.addMessage),E=fr(j=>j.updateThreadContent);d.useEffect(()=>{t(!1),r(!1),a(!1),s(!1),m!=null&&m.currentRoles&&m.currentRoles.forEach(j=>{switch(j.name){case x5e:t(!0);break;case S5e:r(!0);break;case C5e:a(!0);break;case _5e:s(!0);break}})},[m==null?void 0:m.currentRoles]);const $=d.useCallback(async()=>{var j;if(!(l.current||!(w!=null&&w.uid))){l.current=!0;try{const I=await s$e(w.uid);(((j=I==null?void 0:I.data)==null?void 0:j.data)||[]).forEach(N=>{_(N);const F=E(N.uid,N.content);F&&Gve(N.uid,F,!1)})}catch(I){console.error("Failed to fetch unread messages:",I)}finally{l.current=!1}}},[w==null?void 0:w.uid,_,E]);d.useEffect(()=>{o&&$()},[o,$]);const M=d.useCallback(async()=>{try{const j=await Jve();j.length>0&&h({...p,ip:j[0]})}catch(j){console.error("Failed to fetch IP address:",j)}},[p,h]);d.useEffect(()=>{g||y(Ba()),M()},[g,y,M]);const P=d.useCallback(async()=>{if(!c.current&&S!=null&&S.uid){c.current=!0;try{u.current&&(clearTimeout(u.current),u.current=null),je.destroy(),je.loading("正在加载用户信息...");const j=await NF();console.log("getProfile response",j.data),j.data.code===200?(je.destroy(),v(j.data.data)):(je.destroy(),je.error("加载用户信息失败"))}catch(j){je.destroy(),je.error("加载用户信息失败"),console.error("Failed to refresh user info:",j)}finally{u.current=setTimeout(()=>{c.current=!1},500)}}},[S==null?void 0:S.uid,v]),R=d.useCallback(async()=>{if(S!=null&&S.uid)try{const j=await e0e(S==null?void 0:S.uid);console.log("refreshMemberInfo memberResponse:",j.data),j.data.code===200&&k(j.data.data)}catch(j){console.error("Failed to fetch member info:",j)}},[S==null?void 0:S.uid,k]);d.useEffect(()=>{f.current!==(S==null?void 0:S.uid)&&(f.current=S==null?void 0:S.uid,P(),R())},[S,P]);const O=async j=>{if(w){je.destroy(),je.loading("正在更新状态");try{const I={...w,status:j},A=await i$e(I);console.log("updateAgentStatus:",j,A.data),A.data.code===200?(b(A.data.data),je.destroy(),je.success("状态更新成功")):(je.destroy(),je.error("状态更新失败"))}catch(I){je.destroy(),je.error("状态更新失败"),console.error("Failed to update agent status:",I)}}};return d.useEffect(()=>()=>{u.current&&clearTimeout(u.current),je.destroy()},[]),{userInfo:m,setUserInfo:v,agentInfo:w,setAgentInfo:b,memberInfo:C,setMemberInfo:k,handleUpdateAgentStatus:O,refreshUserInfo:P,hasRoleAgent:o,hasRoleSuper:e,hasRoleAdmin:n,hasRoleMember:i}}const Ea=d.createContext({}),eut=({children:e})=>{const[t,n]=d.useState(!1),[r,i]=d.useState(!1),a=t4($=>$.accessToken),o=PF($=>$.settings),{userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:f,hasRoleSuper:p,hasRoleAdmin:h,hasRoleMember:m}=t1(),g=d.useMemo(()=>!!a&&a.trim().length>0,[a]),{themeMode:v,setThemeMode:y,isDarkMode:w}=Dg(),[b,C]=d.useState(Qx),k=$=>{let M;$==="en"?M=xq:$==="zh-cn"?M=Qx:$==="zh-tw"?M=SEe:M=Qx,console.log("changeLocale localeValue:",M),C(M),localStorage.setItem(jV,M.locale)},[S,_]=d.useState(EC),E=$=>{_($),localStorage.setItem(NV,$)};return d.useEffect(()=>{const $=localStorage.getItem(jV);C($==="en"?xq:Qx);const M=localStorage.getItem(NV);_(M===EC?EC:M===Rw?Rw:lse)},[]),x.jsx(Ea.Provider,{value:{isCustomServer:t,setIsCustomServer:n,isLoggedIn:g,settings:o,isDarkMode:w,themeMode:v,setThemeMode:y,locale:b,changeLocale:k,mode:S,changeMode:E,isPingLoading:r,setPingLoading:i,userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:f,hasRoleSuper:p,hasRoleAdmin:h,hasRoleMember:m},children:e})},vz=()=>{const e=d.useContext(Ea);if(!e)throw new Error("useAppContext must be used within an AppProvider");return e};var n$=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},r$=typeof window>"u"||"Deno"in globalThis;function Vc(){}function tut(e,t){return typeof e=="function"?e(t):e}function nut(e){return typeof e=="number"&&e>=0&&e!==1/0}function rut(e,t){return Math.max(e+(t||0)-Date.now(),0)}function KZ(e,t){return typeof e=="function"?e(t):e}function iut(e,t){return typeof e=="function"?e(t):e}function GZ(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==yz(o,t.options))return!1}else if(!f3(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function YZ(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(d3(t.options.mutationKey)!==d3(a))return!1}else if(!f3(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function yz(e,t){return((t==null?void 0:t.queryKeyHashFn)||d3)(e)}function d3(e){return JSON.stringify(e,(t,n)=>oN(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function f3(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!f3(e[n],t[n])):!1}function t0e(e,t){if(e===t)return e;const n=XZ(e)&&XZ(t);if(n||oN(e)&&oN(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),o=a.length,s=n?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function out(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?t0e(e,t):t}function sut(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function lut(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var bz=Symbol();function n0e(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===bz?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Om,Mp,Gv,Mie,cut=(Mie=class extends n${constructor(){super();Un(this,Om);Un(this,Mp);Un(this,Gv);xn(this,Gv,t=>{if(!r$&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Fe(this,Mp)||this.setEventListener(Fe(this,Gv))}onUnsubscribe(){var t;this.hasListeners()||((t=Fe(this,Mp))==null||t.call(this),xn(this,Mp,void 0))}setEventListener(t){var n;xn(this,Gv,t),(n=Fe(this,Mp))==null||n.call(this),xn(this,Mp,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Fe(this,Om)!==t&&(xn(this,Om,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Fe(this,Om)=="boolean"?Fe(this,Om):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Om=new WeakMap,Mp=new WeakMap,Gv=new WeakMap,Mie),r0e=new cut,Yv,Tp,Xv,Tie,uut=(Tie=class extends n${constructor(){super();Un(this,Yv,!0);Un(this,Tp);Un(this,Xv);xn(this,Xv,t=>{if(!r$&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Fe(this,Tp)||this.setEventListener(Fe(this,Xv))}onUnsubscribe(){var t;this.hasListeners()||((t=Fe(this,Tp))==null||t.call(this),xn(this,Tp,void 0))}setEventListener(t){var n;xn(this,Xv,t),(n=Fe(this,Tp))==null||n.call(this),xn(this,Tp,t(this.setOnline.bind(this)))}setOnline(t){Fe(this,Yv)!==t&&(xn(this,Yv,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Fe(this,Yv)}},Yv=new WeakMap,Tp=new WeakMap,Xv=new WeakMap,Tie),j6=new uut;function dut(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function fut(e){return Math.min(1e3*2**e,3e4)}function i0e(e){return(e??"online")==="online"?j6.isOnline():!0}var a0e=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function CT(e){return e instanceof a0e}function o0e(e){let t=!1,n=0,r=!1,i;const a=dut(),o=g=>{var v;r||(p(new a0e(g)),(v=e.abort)==null||v.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>r0e.isFocused()&&(e.networkMode==="always"||j6.isOnline())&&e.canRun(),u=()=>i0e(e.networkMode)&&e.canRun(),f=g=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,g),i==null||i(),a.resolve(g))},p=g=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,g),i==null||i(),a.reject(g))},h=()=>new Promise(g=>{var v;i=y=>{(r||c())&&g(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(r)return;let g;const v=n===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(f).catch(y=>{var S;if(r)return;const w=e.retry??(r$?0:3),b=e.retryDelay??fut,C=typeof b=="function"?b(n,y):b,k=w===!0||typeof w=="number"&&nc()?void 0:h()).then(()=>{t?p(y):m()})})};return{promise:a,cancel:o,continue:()=>(i==null||i(),a),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?m():h().then(m),a)}}function put(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=s=>setTimeout(s,0);const a=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var ys=put(),Rm,Pie,s0e=(Pie=class{constructor(){Un(this,Rm)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nut(this.gcTime)&&xn(this,Rm,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r$?1/0:5*60*1e3))}clearGcTimeout(){Fe(this,Rm)&&(clearTimeout(Fe(this,Rm)),xn(this,Rm,void 0))}},Rm=new WeakMap,Pie),Zv,Qv,ec,Do,F3,Im,qc,Xd,Oie,hut=(Oie=class extends s0e{constructor(t){super();Un(this,qc);Un(this,Zv);Un(this,Qv);Un(this,ec);Un(this,Do);Un(this,F3);Un(this,Im);xn(this,Im,!1),xn(this,F3,t.defaultOptions),this.setOptions(t.options),this.observers=[],xn(this,ec,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,xn(this,Zv,gut(this.options)),this.state=t.state??Fe(this,Zv),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Fe(this,Do))==null?void 0:t.promise}setOptions(t){this.options={...Fe(this,F3),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Fe(this,ec).remove(this)}setData(t,n){const r=out(this.state.data,t,this.options);return Dn(this,qc,Xd).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Dn(this,qc,Xd).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=Fe(this,Do))==null?void 0:r.promise;return(i=Fe(this,Do))==null||i.cancel(t),n?n.then(Vc).catch(Vc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Fe(this,Zv))}isActive(){return this.observers.some(t=>iut(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===bz||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!rut(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Fe(this,Do))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Fe(this,Do))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Fe(this,ec).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Fe(this,Do)&&(Fe(this,Im)?Fe(this,Do).cancel({revert:!0}):Fe(this,Do).cancelRetry()),this.scheduleGc()),Fe(this,ec).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Dn(this,qc,Xd).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Fe(this,Do))return Fe(this,Do).continueRetry(),Fe(this,Do).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(xn(this,Im,!0),r.signal)})},a=()=>{const f=n0e(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return i(p),xn(this,Im,!1),this.options.persister?this.options.persister(f,p,this):f(p)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(o),(l=this.options.behavior)==null||l.onFetch(o,this),xn(this,Qv,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=o.fetchOptions)==null?void 0:c.meta))&&Dn(this,qc,Xd).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const s=f=>{var p,h,m,g;CT(f)&&f.silent||Dn(this,qc,Xd).call(this,{type:"error",error:f}),CT(f)||((h=(p=Fe(this,ec).config).onError)==null||h.call(p,f,this),(g=(m=Fe(this,ec).config).onSettled)==null||g.call(m,this.state.data,f,this)),this.scheduleGc()};return xn(this,Do,o0e({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,h,m,g;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){s(v);return}(h=(p=Fe(this,ec).config).onSuccess)==null||h.call(p,f,this),(g=(m=Fe(this,ec).config).onSettled)==null||g.call(m,f,this.state.error,this),this.scheduleGc()},onError:s,onFail:(f,p)=>{Dn(this,qc,Xd).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{Dn(this,qc,Xd).call(this,{type:"pause"})},onContinue:()=>{Dn(this,qc,Xd).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),Fe(this,Do).start()}},Zv=new WeakMap,Qv=new WeakMap,ec=new WeakMap,Do=new WeakMap,F3=new WeakMap,Im=new WeakMap,qc=new WeakSet,Xd=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...mut(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return CT(i)&&i.revert&&Fe(this,Qv)?{...Fe(this,Qv),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ys.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Fe(this,ec).notify({query:this,type:"updated",action:t})})},Oie);function mut(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:i0e(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function gut(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ku,Rie,vut=(Rie=class extends n${constructor(t={}){super();Un(this,Ku);this.config=t,xn(this,Ku,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??yz(i,n);let o=this.get(a);return o||(o=new hut({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){Fe(this,Ku).has(t.queryHash)||(Fe(this,Ku).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Fe(this,Ku).get(t.queryHash);n&&(t.destroy(),n===t&&Fe(this,Ku).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ys.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Fe(this,Ku).get(t)}getAll(){return[...Fe(this,Ku).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>GZ(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>GZ(t,r)):n}notify(t){ys.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ys.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ys.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ku=new WeakMap,Rie),Gu,cs,jm,Yu,yp,Iie,yut=(Iie=class extends s0e{constructor(t){super();Un(this,Yu);Un(this,Gu);Un(this,cs);Un(this,jm);this.mutationId=t.mutationId,xn(this,cs,t.mutationCache),xn(this,Gu,[]),this.state=t.state||but(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Fe(this,Gu).includes(t)||(Fe(this,Gu).push(t),this.clearGcTimeout(),Fe(this,cs).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){xn(this,Gu,Fe(this,Gu).filter(n=>n!==t)),this.scheduleGc(),Fe(this,cs).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Fe(this,Gu).length||(this.state.status==="pending"?this.scheduleGc():Fe(this,cs).remove(this))}continue(){var t;return((t=Fe(this,jm))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,o,s,l,c,u,f,p,h,m,g,v,y,w,b,C,k,S,_;xn(this,jm,o0e({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(E,$)=>{Dn(this,Yu,yp).call(this,{type:"failed",failureCount:E,error:$})},onPause:()=>{Dn(this,Yu,yp).call(this,{type:"pause"})},onContinue:()=>{Dn(this,Yu,yp).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Fe(this,cs).canRun(this)}));const n=this.state.status==="pending",r=!Fe(this,jm).canStart();try{if(!n){Dn(this,Yu,yp).call(this,{type:"pending",variables:t,isPaused:r}),await((a=(i=Fe(this,cs).config).onMutate)==null?void 0:a.call(i,t,this));const $=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t));$!==this.state.context&&Dn(this,Yu,yp).call(this,{type:"pending",context:$,variables:t,isPaused:r})}const E=await Fe(this,jm).start();return await((c=(l=Fe(this,cs).config).onSuccess)==null?void 0:c.call(l,E,t,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,E,t,this.state.context)),await((h=(p=Fe(this,cs).config).onSettled)==null?void 0:h.call(p,E,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,E,null,t,this.state.context)),Dn(this,Yu,yp).call(this,{type:"success",data:E}),E}catch(E){try{throw await((y=(v=Fe(this,cs).config).onError)==null?void 0:y.call(v,E,t,this.state.context,this)),await((b=(w=this.options).onError)==null?void 0:b.call(w,E,t,this.state.context)),await((k=(C=Fe(this,cs).config).onSettled)==null?void 0:k.call(C,void 0,E,this.state.variables,this.state.context,this)),await((_=(S=this.options).onSettled)==null?void 0:_.call(S,void 0,E,t,this.state.context)),E}finally{Dn(this,Yu,yp).call(this,{type:"error",error:E})}}finally{Fe(this,cs).runNext(this)}}},Gu=new WeakMap,cs=new WeakMap,jm=new WeakMap,Yu=new WeakSet,yp=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ys.batch(()=>{Fe(this,Gu).forEach(r=>{r.onMutationUpdate(t)}),Fe(this,cs).notify({mutation:this,type:"updated",action:t})})},Iie);function but(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ml,L3,jie,wut=(jie=class extends n${constructor(t={}){super();Un(this,ml);Un(this,L3);this.config=t,xn(this,ml,new Map),xn(this,L3,Date.now())}build(t,n,r){const i=new yut({mutationCache:this,mutationId:++Bh(this,L3)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=DS(t),r=Fe(this,ml).get(n)??[];r.push(t),Fe(this,ml).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=DS(t);if(Fe(this,ml).has(n)){const i=(r=Fe(this,ml).get(n))==null?void 0:r.filter(a=>a!==t);i&&(i.length===0?Fe(this,ml).delete(n):Fe(this,ml).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=Fe(this,ml).get(DS(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=Fe(this,ml).get(DS(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ys.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Fe(this,ml).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>YZ(n,r))}findAll(t={}){return this.getAll().filter(n=>YZ(t,n))}notify(t){ys.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ys.batch(()=>Promise.all(t.map(n=>n.continue().catch(Vc))))}},ml=new WeakMap,L3=new WeakMap,jie);function DS(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function QZ(e){return{onFetch:(t,n)=>{var u,f,p,h,m;const r=t.options,i=(p=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,a=((h=t.state.data)==null?void 0:h.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const v=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},y=n0e(t.options,t.fetchOptions),w=async(b,C,k)=>{if(g)return Promise.reject();if(C==null&&b.pages.length)return Promise.resolve(b);const S={queryKey:t.queryKey,pageParam:C,direction:k?"backward":"forward",meta:t.options.meta};v(S);const _=await y(S),{maxPages:E}=t.options,$=k?lut:sut;return{pages:$(b.pages,_,E),pageParams:$(b.pageParams,C,E)}};if(i&&a.length){const b=i==="backward",C=b?xut:JZ,k={pages:a,pageParams:o},S=C(r,k);s=await w(k,S,b)}else{const b=e??a.length;do{const C=l===0?o[0]??r.initialPageParam:JZ(r,s);if(l>0&&C==null)break;s=await w(s,C),l++}while(l{var g,v;return(v=(g=t.options).persister)==null?void 0:v.call(g,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function JZ(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function xut(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ca,Pp,Op,Jv,e0,Rp,t0,n0,Nie,Sut=(Nie=class{constructor(e={}){Un(this,ca);Un(this,Pp);Un(this,Op);Un(this,Jv);Un(this,e0);Un(this,Rp);Un(this,t0);Un(this,n0);xn(this,ca,e.queryCache||new vut),xn(this,Pp,e.mutationCache||new wut),xn(this,Op,e.defaultOptions||{}),xn(this,Jv,new Map),xn(this,e0,new Map),xn(this,Rp,0)}mount(){Bh(this,Rp)._++,Fe(this,Rp)===1&&(xn(this,t0,r0e.subscribe(async e=>{e&&(await this.resumePausedMutations(),Fe(this,ca).onFocus())})),xn(this,n0,j6.subscribe(async e=>{e&&(await this.resumePausedMutations(),Fe(this,ca).onOnline())})))}unmount(){var e,t;Bh(this,Rp)._--,Fe(this,Rp)===0&&((e=Fe(this,t0))==null||e.call(this),xn(this,t0,void 0),(t=Fe(this,n0))==null||t.call(this),xn(this,n0,void 0))}isFetching(e){return Fe(this,ca).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Fe(this,Pp).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Fe(this,ca).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=Fe(this,ca).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(KZ(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Fe(this,ca).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Fe(this,ca).get(r.queryHash),a=i==null?void 0:i.state.data,o=tut(t,a);if(o!==void 0)return Fe(this,ca).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ys.batch(()=>Fe(this,ca).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Fe(this,ca).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Fe(this,ca);ys.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Fe(this,ca),r={type:"active",...e};return ys.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ys.batch(()=>Fe(this,ca).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Vc).catch(Vc)}invalidateQueries(e={},t={}){return ys.batch(()=>{if(Fe(this,ca).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=ys.batch(()=>Fe(this,ca).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Vc)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Vc)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Fe(this,ca).build(this,t);return n.isStaleByTime(KZ(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Vc).catch(Vc)}fetchInfiniteQuery(e){return e.behavior=QZ(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Vc).catch(Vc)}ensureInfiniteQueryData(e){return e.behavior=QZ(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return j6.isOnline()?Fe(this,Pp).resumePausedMutations():Promise.resolve()}getQueryCache(){return Fe(this,ca)}getMutationCache(){return Fe(this,Pp)}getDefaultOptions(){return Fe(this,Op)}setDefaultOptions(e){xn(this,Op,e)}setQueryDefaults(e,t){Fe(this,Jv).set(d3(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Fe(this,Jv).values()];let n={};return t.forEach(r=>{f3(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Fe(this,e0).set(d3(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Fe(this,e0).values()];let n={};return t.forEach(r=>{f3(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Fe(this,Op).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=yz(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===bz&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Fe(this,Op).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Fe(this,ca).clear(),Fe(this,Pp).clear()}},ca=new WeakMap,Pp=new WeakMap,Op=new WeakMap,Jv=new WeakMap,e0=new WeakMap,Rp=new WeakMap,t0=new WeakMap,n0=new WeakMap,Nie),Cut=d.createContext(void 0),_ut=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(Cut.Provider,{value:e,children:t}));/** * @remix-run/router v1.21.0 * * Copyright (c) Remix Software Inc. @@ -482,8 +482,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function A0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Cut(){return Math.random().toString(36).substr(2,8)}function QZ(e,t){return{usr:e.state,key:e.key,idx:t}}function f3(e,t,n,r){return n===void 0&&(n=null),Ki({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Sh(t):t,{state:n,key:t&&t.key||r||Cut()})}function _g(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Sh(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function _ut(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=Oa.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Ki({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function f(){s=Oa.Pop;let v=u(),y=v==null?null:v-c;c=v,l&&l({action:s,location:g.location,delta:y})}function p(v,y){s=Oa.Push;let b=f3(g.location,v,y);c=u()+1;let w=QZ(b,c),_=g.createHref(b);try{o.pushState(w,"",_)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(_)}a&&l&&l({action:s,location:g.location,delta:1})}function h(v,y){s=Oa.Replace;let b=f3(g.location,v,y);c=u();let w=QZ(b,c),_=g.createHref(b);o.replaceState(w,"",_),a&&l&&l({action:s,location:g.location,delta:0})}function m(v){let y=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof v=="string"?v:_g(v);return b=b.replace(/ $/,"%20"),jr(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return s},get location(){return e(i,o)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(ZZ,f),l=v,()=>{i.removeEventListener(ZZ,f),l=null}},createHref(v){return t(i,v)},createURL:m,encodeLocation(v){let y=m(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(v){return o.go(v)}};return g}var gi;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gi||(gi={}));const kut=new Set(["lazy","caseSensitive","path","id","index","children"]);function Eut(e){return e.index===!0}function j6(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,String(a)],s=typeof i.id=="string"?i.id:o.join("-");if(jr(i.index!==!0||!i.children,"Cannot specify children on an index route"),jr(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Eut(i)){let l=Ki({},i,t(i),{id:s});return r[s]=l,l}else{let l=Ki({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=j6(i.children,t,o,r)),l}})}function lm(e,t,n){return n===void 0&&(n="/"),l_(e,t,n,!1)}function l_(e,t,n,r){let i=typeof t=="string"?Sh(t):t,a=Fy(i.pathname||"/",n);if(a==null)return null;let o=r0e(e);Mut(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(jr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=wf([r,l.relativePath]),u=n.concat(l);a.children&&a.children.length>0&&(jr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),r0e(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:Nut(c,a.index),routesMeta:u})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of i0e(a.path))i(a,o,l)}),t}function i0e(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=i0e(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Mut(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Aut(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Tut=/^:[\w-]+$/,Put=3,Out=2,Iut=1,Rut=10,jut=-2,JZ=e=>e==="*";function Nut(e,t){let n=e.split("/"),r=n.length;return n.some(JZ)&&(r+=jut),t&&(r+=Out),n.filter(i=>!JZ(i)).reduce((i,a)=>i+(Tut.test(a)?Put:a===""?Iut:Rut),r)}function Aut(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Dut(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a="/",o=[];for(let s=0;s{let{paramName:p,isOptional:h}=u;if(p==="*"){let g=s[f]||"";o=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[f];return h&&!m?c[p]=void 0:c[p]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:o,pattern:e}}function Fut(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),A0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Lut(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return A0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Fy(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function But(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Sh(e):e;return{pathname:n?n.startsWith("/")?n:zut(n,t):t,search:Uut(r),hash:Wut(i)}}function zut(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function xT(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function a0e(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function t$(e,t){let n=a0e(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function n$(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Sh(e):(i=Ki({},e),jr(!i.pathname||!i.pathname.includes("?"),xT("?","pathname","search",i)),jr(!i.pathname||!i.pathname.includes("#"),xT("#","pathname","hash",i)),jr(!i.search||!i.search.includes("#"),xT("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=But(i,s),c=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const wf=e=>e.join("/").replace(/\/\/+/g,"/"),Hut=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Uut=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Wut=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class N6{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function r$(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const o0e=["post","put","patch","delete"],Vut=new Set(o0e),qut=["get",...o0e],Kut=new Set(qut),Gut=new Set([301,302,303,307,308]),Yut=new Set([307,308]),ST={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Xut={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Bb={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},yz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zut=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),s0e="remix-router-transitions";function Qut(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;jr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let Ne=e.detectErrorBoundary;i=He=>({hasErrorBoundary:Ne(He)})}else i=Zut;let a={},o=j6(e.routes,i,void 0,a),s,l=e.basename||"/",c=e.dataStrategy||ndt,u=e.patchRoutesOnNavigation,f=Ki({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,h=new Set,m=null,g=null,v=null,y=e.hydrationData!=null,b=lm(o,e.history.location,l),w=null;if(b==null&&!u){let Ne=Os(404,{pathname:e.history.location.pathname}),{matches:He,route:Le}=dQ(o);b=He,w={[Le.id]:Ne}}b&&!e.hydrationData&&jt(b,o,e.history.location.pathname).active&&(b=null);let _;if(b)if(b.some(Ne=>Ne.route.lazy))_=!1;else if(!b.some(Ne=>Ne.route.loader))_=!0;else if(f.v7_partialHydration){let Ne=e.hydrationData?e.hydrationData.loaderData:null,He=e.hydrationData?e.hydrationData.errors:null;if(He){let Le=b.findIndex(Qe=>He[Qe.route.id]!==void 0);_=b.slice(0,Le+1).every(Qe=>!aN(Qe.route,Ne,He))}else _=b.every(Le=>!aN(Le.route,Ne,He))}else _=e.hydrationData!=null;else if(_=!1,b=[],f.v7_partialHydration){let Ne=jt(null,o,e.history.location.pathname);Ne.active&&Ne.matches&&(b=Ne.matches)}let k,S={historyAction:e.history.action,location:e.history.location,matches:b,initialized:_,navigation:ST,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||w,fetchers:new Map,blockers:new Map},C=Oa.Pop,E=!1,$,M=!1,P=new Map,I=null,O=!1,A=!1,R=[],j=new Set,N=new Map,D=0,V=-1,F=new Map,K=new Set,B=new Map,U=new Map,Z=new Set,ee=new Map,ie=new Map,Y;function X(){if(p=e.history.listen(Ne=>{let{action:He,location:Le,delta:Qe}=Ne;if(Y){Y(),Y=void 0;return}A0(ie.size===0||Qe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ht=Ke({currentLocation:S.location,nextLocation:Le,historyAction:He});if(ht&&Qe!=null){let xt=new Promise(Nt=>{Y=Nt});e.history.go(Qe*-1),Xe(ht,{state:"blocked",location:Le,proceed(){Xe(ht,{state:"proceeding",proceed:void 0,reset:void 0,location:Le}),xt.then(()=>e.history.go(Qe))},reset(){let Nt=new Map(S.blockers);Nt.set(ht,Bb),le({blockers:Nt})}});return}return re(He,Le)}),n){gdt(t,P);let Ne=()=>vdt(t,P);t.addEventListener("pagehide",Ne),I=()=>t.removeEventListener("pagehide",Ne)}return S.initialized||re(Oa.Pop,S.location,{initialHydration:!0}),k}function ae(){p&&p(),I&&I(),h.clear(),$&&$.abort(),S.fetchers.forEach((Ne,He)=>xe(He)),S.blockers.forEach((Ne,He)=>Be(He))}function oe(Ne){return h.add(Ne),()=>h.delete(Ne)}function le(Ne,He){He===void 0&&(He={}),S=Ki({},S,Ne);let Le=[],Qe=[];f.v7_fetcherPersist&&S.fetchers.forEach((ht,xt)=>{ht.state==="idle"&&(Z.has(xt)?Qe.push(xt):Le.push(xt))}),[...h].forEach(ht=>ht(S,{deletedFetchers:Qe,viewTransitionOpts:He.viewTransitionOpts,flushSync:He.flushSync===!0})),f.v7_fetcherPersist&&(Le.forEach(ht=>S.fetchers.delete(ht)),Qe.forEach(ht=>xe(ht)))}function ce(Ne,He,Le){var Qe,ht;let{flushSync:xt}=Le===void 0?{}:Le,Nt=S.actionData!=null&&S.navigation.formMethod!=null&&qc(S.navigation.formMethod)&&S.navigation.state==="loading"&&((Qe=Ne.state)==null?void 0:Qe._isRedirect)!==!0,Ot;He.actionData?Object.keys(He.actionData).length>0?Ot=He.actionData:Ot=null:Nt?Ot=S.actionData:Ot=null;let Pt=He.loaderData?cQ(S.loaderData,He.loaderData,He.matches||[],He.errors):S.loaderData,lt=S.blockers;lt.size>0&&(lt=new Map(lt),lt.forEach((qt,yt)=>lt.set(yt,Bb)));let Ct=E===!0||S.navigation.formMethod!=null&&qc(S.navigation.formMethod)&&((ht=Ne.state)==null?void 0:ht._isRedirect)!==!0;s&&(o=s,s=void 0),O||C===Oa.Pop||(C===Oa.Push?e.history.push(Ne,Ne.state):C===Oa.Replace&&e.history.replace(Ne,Ne.state));let kt;if(C===Oa.Pop){let qt=P.get(S.location.pathname);qt&&qt.has(Ne.pathname)?kt={currentLocation:S.location,nextLocation:Ne}:P.has(Ne.pathname)&&(kt={currentLocation:Ne,nextLocation:S.location})}else if(M){let qt=P.get(S.location.pathname);qt?qt.add(Ne.pathname):(qt=new Set([Ne.pathname]),P.set(S.location.pathname,qt)),kt={currentLocation:S.location,nextLocation:Ne}}le(Ki({},He,{actionData:Ot,loaderData:Pt,historyAction:C,location:Ne,initialized:!0,navigation:ST,revalidation:"idle",restoreScrollPosition:nt(Ne,He.matches||S.matches),preventScrollReset:Ct,blockers:lt}),{viewTransitionOpts:kt,flushSync:xt===!0}),C=Oa.Pop,E=!1,M=!1,O=!1,A=!1,R=[]}async function pe(Ne,He){if(typeof Ne=="number"){e.history.go(Ne);return}let Le=iN(S.location,S.matches,l,f.v7_prependBasename,Ne,f.v7_relativeSplatPath,He==null?void 0:He.fromRouteId,He==null?void 0:He.relative),{path:Qe,submission:ht,error:xt}=tQ(f.v7_normalizeFormMethod,!1,Le,He),Nt=S.location,Ot=f3(S.location,Qe,He&&He.state);Ot=Ki({},Ot,e.history.encodeLocation(Ot));let Pt=He&&He.replace!=null?He.replace:void 0,lt=Oa.Push;Pt===!0?lt=Oa.Replace:Pt===!1||ht!=null&&qc(ht.formMethod)&&ht.formAction===S.location.pathname+S.location.search&&(lt=Oa.Replace);let Ct=He&&"preventScrollReset"in He?He.preventScrollReset===!0:void 0,kt=(He&&He.flushSync)===!0,qt=Ke({currentLocation:Nt,nextLocation:Ot,historyAction:lt});if(qt){Xe(qt,{state:"blocked",location:Ot,proceed(){Xe(qt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ot}),pe(Ne,He)},reset(){let yt=new Map(S.blockers);yt.set(qt,Bb),le({blockers:yt})}});return}return await re(lt,Ot,{submission:ht,pendingError:xt,preventScrollReset:Ct,replace:He&&He.replace,enableViewTransition:He&&He.viewTransition,flushSync:kt})}function me(){if(z(),le({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){re(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}re(C||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation,enableViewTransition:M===!0})}}async function re(Ne,He,Le){$&&$.abort(),$=null,C=Ne,O=(Le&&Le.startUninterruptedRevalidation)===!0,Ze(S.location,S.matches),E=(Le&&Le.preventScrollReset)===!0,M=(Le&&Le.enableViewTransition)===!0;let Qe=s||o,ht=Le&&Le.overrideNavigation,xt=lm(Qe,He,l),Nt=(Le&&Le.flushSync)===!0,Ot=jt(xt,Qe,He.pathname);if(Ot.active&&Ot.matches&&(xt=Ot.matches),!xt){let{error:At,notFoundMatches:ft,route:De}=qe(He.pathname);ce(He,{matches:ft,loaderData:{},errors:{[De.id]:At}},{flushSync:Nt});return}if(S.initialized&&!A&&ldt(S.location,He)&&!(Le&&Le.submission&&qc(Le.submission.formMethod))){ce(He,{matches:xt},{flushSync:Nt});return}$=new AbortController;let Pt=F1(e.history,He,$.signal,Le&&Le.submission),lt;if(Le&&Le.pendingError)lt=[cm(xt).route.id,{type:gi.error,error:Le.pendingError}];else if(Le&&Le.submission&&qc(Le.submission.formMethod)){let At=await fe(Pt,He,Le.submission,xt,Ot.active,{replace:Le.replace,flushSync:Nt});if(At.shortCircuited)return;if(At.pendingActionResult){let[ft,De]=At.pendingActionResult;if(yl(De)&&r$(De.error)&&De.error.status===404){$=null,ce(He,{matches:At.matches,loaderData:{},errors:{[ft]:De.error}});return}}xt=At.matches||xt,lt=At.pendingActionResult,ht=CT(He,Le.submission),Nt=!1,Ot.active=!1,Pt=F1(e.history,Pt.url,Pt.signal)}let{shortCircuited:Ct,matches:kt,loaderData:qt,errors:yt}=await ve(Pt,He,xt,Ot.active,ht,Le&&Le.submission,Le&&Le.fetcherSubmission,Le&&Le.replace,Le&&Le.initialHydration===!0,Nt,lt);Ct||($=null,ce(He,Ki({matches:kt||xt},uQ(lt),{loaderData:qt,errors:yt})))}async function fe(Ne,He,Le,Qe,ht,xt){xt===void 0&&(xt={}),z();let Nt=hdt(He,Le);if(le({navigation:Nt},{flushSync:xt.flushSync===!0}),ht){let lt=await Lt(Qe,He.pathname,Ne.signal);if(lt.type==="aborted")return{shortCircuited:!0};if(lt.type==="error"){let Ct=cm(lt.partialMatches).route.id;return{matches:lt.partialMatches,pendingActionResult:[Ct,{type:gi.error,error:lt.error}]}}else if(lt.matches)Qe=lt.matches;else{let{notFoundMatches:Ct,error:kt,route:qt}=qe(He.pathname);return{matches:Ct,pendingActionResult:[qt.id,{type:gi.error,error:kt}]}}}let Ot,Pt=E2(Qe,He);if(!Pt.route.action&&!Pt.route.lazy)Ot={type:gi.error,error:Os(405,{method:Ne.method,pathname:He.pathname,routeId:Pt.route.id})};else if(Ot=(await ye("action",S,Ne,[Pt],Qe,null))[Pt.route.id],Ne.signal.aborted)return{shortCircuited:!0};if($m(Ot)){let lt;return xt&&xt.replace!=null?lt=xt.replace:lt=oQ(Ot.response.headers.get("Location"),new URL(Ne.url),l)===S.location.pathname+S.location.search,await se(Ne,Ot,!0,{submission:Le,replace:lt}),{shortCircuited:!0}}if(Bp(Ot))throw Os(400,{type:"defer-action"});if(yl(Ot)){let lt=cm(Qe,Pt.route.id);return(xt&&xt.replace)!==!0&&(C=Oa.Push),{matches:Qe,pendingActionResult:[lt.route.id,Ot]}}return{matches:Qe,pendingActionResult:[Pt.route.id,Ot]}}async function ve(Ne,He,Le,Qe,ht,xt,Nt,Ot,Pt,lt,Ct){let kt=ht||CT(He,xt),qt=xt||Nt||pQ(kt),yt=!O&&(!f.v7_partialHydration||!Pt);if(Qe){if(yt){let L=$e(Ct);le(Ki({navigation:kt},L!==void 0?{actionData:L}:{}),{flushSync:lt})}let T=await Lt(Le,He.pathname,Ne.signal);if(T.type==="aborted")return{shortCircuited:!0};if(T.type==="error"){let L=cm(T.partialMatches).route.id;return{matches:T.partialMatches,loaderData:{},errors:{[L]:T.error}}}else if(T.matches)Le=T.matches;else{let{error:L,notFoundMatches:J,route:ke}=qe(He.pathname);return{matches:J,loaderData:{},errors:{[ke.id]:L}}}}let At=s||o,[ft,De]=rQ(e.history,S,Le,qt,He,f.v7_partialHydration&&Pt===!0,f.v7_skipActionErrorRevalidation,A,R,j,Z,B,K,At,l,Ct);if(Et(T=>!(Le&&Le.some(L=>L.route.id===T))||ft&&ft.some(L=>L.route.id===T)),V=++D,ft.length===0&&De.length===0){let T=ge();return ce(He,Ki({matches:Le,loaderData:{},errors:Ct&&yl(Ct[1])?{[Ct[0]]:Ct[1].error}:null},uQ(Ct),T?{fetchers:new Map(S.fetchers)}:{}),{flushSync:lt}),{shortCircuited:!0}}if(yt){let T={};if(!Qe){T.navigation=kt;let L=$e(Ct);L!==void 0&&(T.actionData=L)}De.length>0&&(T.fetchers=Ce(De)),le(T,{flushSync:lt})}De.forEach(T=>{Ue(T.key),T.controller&&N.set(T.key,T.controller)});let Ye=()=>De.forEach(T=>Ue(T.key));$&&$.signal.addEventListener("abort",Ye);let{loaderResults:st,fetcherResults:Ie}=await Oe(S,Le,ft,De,Ne);if(Ne.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Ye),De.forEach(T=>N.delete(T.key));let Rt=AS(st);if(Rt)return await se(Ne,Rt.result,!0,{replace:Ot}),{shortCircuited:!0};if(Rt=AS(Ie),Rt)return K.add(Rt.key),await se(Ne,Rt.result,!0,{replace:Ot}),{shortCircuited:!0};let{loaderData:rt,errors:$t}=lQ(S,Le,st,Ct,De,Ie,ee);ee.forEach((T,L)=>{T.subscribe(J=>{(J||T.done)&&ee.delete(L)})}),f.v7_partialHydration&&Pt&&S.errors&&($t=Ki({},S.errors,$t));let Mt=ge(),cn=ze(V),fn=Mt||cn||De.length>0;return Ki({matches:Le,loaderData:rt,errors:$t},fn?{fetchers:new Map(S.fetchers)}:{})}function $e(Ne){if(Ne&&!yl(Ne[1]))return{[Ne[0]]:Ne[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function Ce(Ne){return Ne.forEach(He=>{let Le=S.fetchers.get(He.key),Qe=zb(void 0,Le?Le.data:void 0);S.fetchers.set(He.key,Qe)}),new Map(S.fetchers)}function be(Ne,He,Le,Qe){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Ue(Ne);let ht=(Qe&&Qe.flushSync)===!0,xt=s||o,Nt=iN(S.location,S.matches,l,f.v7_prependBasename,Le,f.v7_relativeSplatPath,He,Qe==null?void 0:Qe.relative),Ot=lm(xt,Nt,l),Pt=jt(Ot,xt,Nt);if(Pt.active&&Pt.matches&&(Ot=Pt.matches),!Ot){G(Ne,He,Os(404,{pathname:Nt}),{flushSync:ht});return}let{path:lt,submission:Ct,error:kt}=tQ(f.v7_normalizeFormMethod,!0,Nt,Qe);if(kt){G(Ne,He,kt,{flushSync:ht});return}let qt=E2(Ot,lt),yt=(Qe&&Qe.preventScrollReset)===!0;if(Ct&&qc(Ct.formMethod)){Se(Ne,He,lt,qt,Ot,Pt.active,ht,yt,Ct);return}B.set(Ne,{routeId:He,path:lt}),we(Ne,He,lt,qt,Ot,Pt.active,ht,yt,Ct)}async function Se(Ne,He,Le,Qe,ht,xt,Nt,Ot,Pt){z(),B.delete(Ne);function lt(je){if(!je.route.action&&!je.route.lazy){let it=Os(405,{method:Pt.formMethod,pathname:Le,routeId:He});return G(Ne,He,it,{flushSync:Nt}),!0}return!1}if(!xt&<(Qe))return;let Ct=S.fetchers.get(Ne);H(Ne,mdt(Pt,Ct),{flushSync:Nt});let kt=new AbortController,qt=F1(e.history,Le,kt.signal,Pt);if(xt){let je=await Lt(ht,Le,qt.signal);if(je.type==="aborted")return;if(je.type==="error"){G(Ne,He,je.error,{flushSync:Nt});return}else if(je.matches){if(ht=je.matches,Qe=E2(ht,Le),lt(Qe))return}else{G(Ne,He,Os(404,{pathname:Le}),{flushSync:Nt});return}}N.set(Ne,kt);let yt=D,ft=(await ye("action",S,qt,[Qe],ht,Ne))[Qe.route.id];if(qt.signal.aborted){N.get(Ne)===kt&&N.delete(Ne);return}if(f.v7_fetcherPersist&&Z.has(Ne)){if($m(ft)||yl(ft)){H(Ne,bp(void 0));return}}else{if($m(ft))if(N.delete(Ne),V>yt){H(Ne,bp(void 0));return}else return K.add(Ne),H(Ne,zb(Pt)),se(qt,ft,!1,{fetcherSubmission:Pt,preventScrollReset:Ot});if(yl(ft)){G(Ne,He,ft.error);return}}if(Bp(ft))throw Os(400,{type:"defer-action"});let De=S.navigation.location||S.location,Ye=F1(e.history,De,kt.signal),st=s||o,Ie=S.navigation.state!=="idle"?lm(st,S.navigation.location,l):S.matches;jr(Ie,"Didn't find any matches after fetcher action");let Rt=++D;F.set(Ne,Rt);let rt=zb(Pt,ft.data);S.fetchers.set(Ne,rt);let[$t,Mt]=rQ(e.history,S,Ie,Pt,De,!1,f.v7_skipActionErrorRevalidation,A,R,j,Z,B,K,st,l,[Qe.route.id,ft]);Mt.filter(je=>je.key!==Ne).forEach(je=>{let it=je.key,Ft=S.fetchers.get(it),an=zb(void 0,Ft?Ft.data:void 0);S.fetchers.set(it,an),Ue(it),je.controller&&N.set(it,je.controller)}),le({fetchers:new Map(S.fetchers)});let cn=()=>Mt.forEach(je=>Ue(je.key));kt.signal.addEventListener("abort",cn);let{loaderResults:fn,fetcherResults:T}=await Oe(S,Ie,$t,Mt,Ye);if(kt.signal.aborted)return;kt.signal.removeEventListener("abort",cn),F.delete(Ne),N.delete(Ne),Mt.forEach(je=>N.delete(je.key));let L=AS(fn);if(L)return se(Ye,L.result,!1,{preventScrollReset:Ot});if(L=AS(T),L)return K.add(L.key),se(Ye,L.result,!1,{preventScrollReset:Ot});let{loaderData:J,errors:ke}=lQ(S,Ie,fn,void 0,Mt,T,ee);if(S.fetchers.has(Ne)){let je=bp(ft.data);S.fetchers.set(Ne,je)}ze(Rt),S.navigation.state==="loading"&&Rt>V?(jr(C,"Expected pending action"),$&&$.abort(),ce(S.navigation.location,{matches:Ie,loaderData:J,errors:ke,fetchers:new Map(S.fetchers)})):(le({errors:ke,loaderData:cQ(S.loaderData,J,Ie,ke),fetchers:new Map(S.fetchers)}),A=!1)}async function we(Ne,He,Le,Qe,ht,xt,Nt,Ot,Pt){let lt=S.fetchers.get(Ne);H(Ne,zb(Pt,lt?lt.data:void 0),{flushSync:Nt});let Ct=new AbortController,kt=F1(e.history,Le,Ct.signal);if(xt){let ft=await Lt(ht,Le,kt.signal);if(ft.type==="aborted")return;if(ft.type==="error"){G(Ne,He,ft.error,{flushSync:Nt});return}else if(ft.matches)ht=ft.matches,Qe=E2(ht,Le);else{G(Ne,He,Os(404,{pathname:Le}),{flushSync:Nt});return}}N.set(Ne,Ct);let qt=D,At=(await ye("loader",S,kt,[Qe],ht,Ne))[Qe.route.id];if(Bp(At)&&(At=await bz(At,kt.signal,!0)||At),N.get(Ne)===Ct&&N.delete(Ne),!kt.signal.aborted){if(Z.has(Ne)){H(Ne,bp(void 0));return}if($m(At))if(V>qt){H(Ne,bp(void 0));return}else{K.add(Ne),await se(kt,At,!1,{preventScrollReset:Ot});return}if(yl(At)){G(Ne,He,At.error);return}jr(!Bp(At),"Unhandled fetcher deferred data"),H(Ne,bp(At.data))}}async function se(Ne,He,Le,Qe){let{submission:ht,fetcherSubmission:xt,preventScrollReset:Nt,replace:Ot}=Qe===void 0?{}:Qe;He.response.headers.has("X-Remix-Revalidate")&&(A=!0);let Pt=He.response.headers.get("Location");jr(Pt,"Expected a Location header on the redirect Response"),Pt=oQ(Pt,new URL(Ne.url),l);let lt=f3(S.location,Pt,{_isRedirect:!0});if(n){let ft=!1;if(He.response.headers.has("X-Remix-Reload-Document"))ft=!0;else if(yz.test(Pt)){const De=e.history.createURL(Pt);ft=De.origin!==t.location.origin||Fy(De.pathname,l)==null}if(ft){Ot?t.location.replace(Pt):t.location.assign(Pt);return}}$=null;let Ct=Ot===!0||He.response.headers.has("X-Remix-Replace")?Oa.Replace:Oa.Push,{formMethod:kt,formAction:qt,formEncType:yt}=S.navigation;!ht&&!xt&&kt&&qt&&yt&&(ht=pQ(S.navigation));let At=ht||xt;if(Yut.has(He.response.status)&&At&&qc(At.formMethod))await re(Ct,lt,{submission:Ki({},At,{formAction:Pt}),preventScrollReset:Nt||E,enableViewTransition:Le?M:void 0});else{let ft=CT(lt,ht);await re(Ct,lt,{overrideNavigation:ft,fetcherSubmission:xt,preventScrollReset:Nt||E,enableViewTransition:Le?M:void 0})}}async function ye(Ne,He,Le,Qe,ht,xt){let Nt,Ot={};try{Nt=await rdt(c,Ne,He,Le,Qe,ht,xt,a,i)}catch(Pt){return Qe.forEach(lt=>{Ot[lt.route.id]={type:gi.error,error:Pt}}),Ot}for(let[Pt,lt]of Object.entries(Nt))if(cdt(lt)){let Ct=lt.result;Ot[Pt]={type:gi.redirect,response:odt(Ct,Le,Pt,ht,l,f.v7_relativeSplatPath)}}else Ot[Pt]=await adt(lt);return Ot}async function Oe(Ne,He,Le,Qe,ht){let xt=Ne.matches,Nt=ye("loader",Ne,ht,Le,He,null),Ot=Promise.all(Qe.map(async Ct=>{if(Ct.matches&&Ct.match&&Ct.controller){let qt=(await ye("loader",Ne,F1(e.history,Ct.path,Ct.controller.signal),[Ct.match],Ct.matches,Ct.key))[Ct.match.route.id];return{[Ct.key]:qt}}else return Promise.resolve({[Ct.key]:{type:gi.error,error:Os(404,{pathname:Ct.path})}})})),Pt=await Nt,lt=(await Ot).reduce((Ct,kt)=>Object.assign(Ct,kt),{});return await Promise.all([fdt(He,Pt,ht.signal,xt,Ne.loaderData),pdt(He,lt,Qe)]),{loaderResults:Pt,fetcherResults:lt}}function z(){A=!0,R.push(...Et()),B.forEach((Ne,He)=>{N.has(He)&&j.add(He),Ue(He)})}function H(Ne,He,Le){Le===void 0&&(Le={}),S.fetchers.set(Ne,He),le({fetchers:new Map(S.fetchers)},{flushSync:(Le&&Le.flushSync)===!0})}function G(Ne,He,Le,Qe){Qe===void 0&&(Qe={});let ht=cm(S.matches,He);xe(Ne),le({errors:{[ht.route.id]:Le},fetchers:new Map(S.fetchers)},{flushSync:(Qe&&Qe.flushSync)===!0})}function de(Ne){return f.v7_fetcherPersist&&(U.set(Ne,(U.get(Ne)||0)+1),Z.has(Ne)&&Z.delete(Ne)),S.fetchers.get(Ne)||Xut}function xe(Ne){let He=S.fetchers.get(Ne);N.has(Ne)&&!(He&&He.state==="loading"&&F.has(Ne))&&Ue(Ne),B.delete(Ne),F.delete(Ne),K.delete(Ne),Z.delete(Ne),j.delete(Ne),S.fetchers.delete(Ne)}function he(Ne){if(f.v7_fetcherPersist){let He=(U.get(Ne)||0)-1;He<=0?(U.delete(Ne),Z.add(Ne)):U.set(Ne,He)}else xe(Ne);le({fetchers:new Map(S.fetchers)})}function Ue(Ne){let He=N.get(Ne);He&&(He.abort(),N.delete(Ne))}function We(Ne){for(let He of Ne){let Le=de(He),Qe=bp(Le.data);S.fetchers.set(He,Qe)}}function ge(){let Ne=[],He=!1;for(let Le of K){let Qe=S.fetchers.get(Le);jr(Qe,"Expected fetcher: "+Le),Qe.state==="loading"&&(K.delete(Le),Ne.push(Le),He=!0)}return We(Ne),He}function ze(Ne){let He=[];for(let[Le,Qe]of F)if(Qe0}function Ve(Ne,He){let Le=S.blockers.get(Ne)||Bb;return ie.get(Ne)!==He&&ie.set(Ne,He),Le}function Be(Ne){S.blockers.delete(Ne),ie.delete(Ne)}function Xe(Ne,He){let Le=S.blockers.get(Ne)||Bb;jr(Le.state==="unblocked"&&He.state==="blocked"||Le.state==="blocked"&&He.state==="blocked"||Le.state==="blocked"&&He.state==="proceeding"||Le.state==="blocked"&&He.state==="unblocked"||Le.state==="proceeding"&&He.state==="unblocked","Invalid blocker state transition: "+Le.state+" -> "+He.state);let Qe=new Map(S.blockers);Qe.set(Ne,He),le({blockers:Qe})}function Ke(Ne){let{currentLocation:He,nextLocation:Le,historyAction:Qe}=Ne;if(ie.size===0)return;ie.size>1&&A0(!1,"A router only supports one blocker at a time");let ht=Array.from(ie.entries()),[xt,Nt]=ht[ht.length-1],Ot=S.blockers.get(xt);if(!(Ot&&Ot.state==="proceeding")&&Nt({currentLocation:He,nextLocation:Le,historyAction:Qe}))return xt}function qe(Ne){let He=Os(404,{pathname:Ne}),Le=s||o,{matches:Qe,route:ht}=dQ(Le);return Et(),{notFoundMatches:Qe,route:ht,error:He}}function Et(Ne){let He=[];return ee.forEach((Le,Qe)=>{(!Ne||Ne(Qe))&&(Le.cancel(),He.push(Qe),ee.delete(Qe))}),He}function dt(Ne,He,Le){if(m=Ne,v=He,g=Le||null,!y&&S.navigation===ST){y=!0;let Qe=nt(S.location,S.matches);Qe!=null&&le({restoreScrollPosition:Qe})}return()=>{m=null,v=null,g=null}}function vt(Ne,He){return g&&g(Ne,He.map(Qe=>$ut(Qe,S.loaderData)))||Ne.key}function Ze(Ne,He){if(m&&v){let Le=vt(Ne,He);m[Le]=v()}}function nt(Ne,He){if(m){let Le=vt(Ne,He),Qe=m[Le];if(typeof Qe=="number")return Qe}return null}function jt(Ne,He,Le){if(u)if(Ne){if(Object.keys(Ne[0].params).length>0)return{active:!0,matches:l_(He,Le,l,!0)}}else return{active:!0,matches:l_(He,Le,l,!0)||[]};return{active:!1,matches:null}}async function Lt(Ne,He,Le){if(!u)return{type:"success",matches:Ne};let Qe=Ne;for(;;){let ht=s==null,xt=s||o,Nt=a;try{await u({path:He,matches:Qe,patch:(lt,Ct)=>{Le.aborted||aQ(lt,Ct,xt,Nt,i)}})}catch(lt){return{type:"error",error:lt,partialMatches:Qe}}finally{ht&&!Le.aborted&&(o=[...o])}if(Le.aborted)return{type:"aborted"};let Ot=lm(xt,He,l);if(Ot)return{type:"success",matches:Ot};let Pt=l_(xt,He,l,!0);if(!Pt||Qe.length===Pt.length&&Qe.every((lt,Ct)=>lt.route.id===Pt[Ct].route.id))return{type:"success",matches:null};Qe=Pt}}function Bt(Ne){a={},s=j6(Ne,i,void 0,a)}function Ht(Ne,He){let Le=s==null;aQ(Ne,He,s||o,a,i),Le&&(o=[...o],le({}))}return k={get basename(){return l},get future(){return f},get state(){return S},get routes(){return o},get window(){return t},initialize:X,subscribe:oe,enableScrollRestoration:dt,navigate:pe,fetch:be,revalidate:me,createHref:Ne=>e.history.createHref(Ne),encodeLocation:Ne=>e.history.encodeLocation(Ne),getFetcher:de,deleteFetcher:he,dispose:ae,getBlocker:Ve,deleteBlocker:Be,patchRoutes:Ht,_internalFetchControllers:N,_internalActiveDeferreds:ee,_internalSetRoutes:Bt},k}function Jut(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function iN(e,t,n,r,i,a,o,s){let l,c;if(o){l=[];for(let f of t)if(l.push(f),f.route.id===o){c=f;break}}else l=t,c=t[t.length-1];let u=n$(i||".",t$(l,a),Fy(e.pathname,n)||e.pathname,s==="path");if(i==null&&(u.search=e.search,u.hash=e.hash),(i==null||i===""||i===".")&&c){let f=wz(u.search);if(c.route.index&&!f)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&f){let p=new URLSearchParams(u.search),h=p.getAll("index");p.delete("index"),h.filter(g=>g).forEach(g=>p.append("index",g));let m=p.toString();u.search=m?"?"+m:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:wf([n,u.pathname])),_g(u)}function tQ(e,t,n,r){if(!r||!Jut(r))return{path:n};if(r.formMethod&&!ddt(r.formMethod))return{path:n,error:Os(405,{method:r.formMethod})};let i=()=>({path:n,error:Os(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=u0e(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!qc(o))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,m)=>{let[g,v]=m;return""+h+g+"="+v+` -`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!qc(o))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}jr(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=oN(r.formData),c=r.formData;else if(r.body instanceof FormData)l=oN(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=sQ(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=sQ(l)}catch{return i()}let u={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(qc(u.formMethod))return{path:n,submission:u};let f=Sh(n);return t&&f.search&&wz(f.search)&&l.append("index",""),f.search="?"+l,{path:_g(f),submission:u}}function nQ(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function rQ(e,t,n,r,i,a,o,s,l,c,u,f,p,h,m,g){let v=g?yl(g[1])?g[1].error:g[1].data:void 0,y=e.createURL(t.location),b=e.createURL(i),w=n;a&&t.errors?w=nQ(n,Object.keys(t.errors)[0],!0):g&&yl(g[1])&&(w=nQ(n,g[0]));let _=g?g[1].statusCode:void 0,k=o&&_&&_>=400,S=w.filter((E,$)=>{let{route:M}=E;if(M.lazy)return!0;if(M.loader==null)return!1;if(a)return aN(M,t.loaderData,t.errors);if(edt(t.loaderData,t.matches[$],E)||l.some(O=>O===E.route.id))return!0;let P=t.matches[$],I=E;return iQ(E,Ki({currentUrl:y,currentParams:P.params,nextUrl:b,nextParams:I.params},r,{actionResult:v,actionStatus:_,defaultShouldRevalidate:k?!1:s||y.pathname+y.search===b.pathname+b.search||y.search!==b.search||l0e(P,I)}))}),C=[];return f.forEach((E,$)=>{if(a||!n.some(A=>A.route.id===E.routeId)||u.has($))return;let M=lm(h,E.path,m);if(!M){C.push({key:$,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let P=t.fetchers.get($),I=E2(M,E.path),O=!1;p.has($)?O=!1:c.has($)?(c.delete($),O=!0):P&&P.state!=="idle"&&P.data===void 0?O=s:O=iQ(I,Ki({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:v,actionStatus:_,defaultShouldRevalidate:k?!1:s})),O&&C.push({key:$,routeId:E.routeId,path:E.path,matches:M,match:I,controller:new AbortController})}),[S,C]}function aN(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function edt(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function l0e(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function iQ(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function aQ(e,t,n,r,i){var a;let o;if(e){let c=r[e];jr(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),o=c.children}else o=n;let s=t.filter(c=>!o.some(u=>c0e(c,u))),l=j6(s,i,[e||"_","patch",String(((a=o)==null?void 0:a.length)||"0")],r);o.push(...l)}function c0e(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(a=>c0e(n,a))}):!1}async function tdt(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];jr(i,"No route found in manifest");let a={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";A0(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!kut.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,Ki({},t(i),{lazy:void 0}))}async function ndt(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,a,o)=>Object.assign(i,{[n[o].route.id]:a}),{})}async function rdt(e,t,n,r,i,a,o,s,l,c){let u=a.map(h=>h.route.lazy?tdt(h.route,l,s):void 0),f=a.map((h,m)=>{let g=u[m],v=i.some(b=>b.route.id===h.route.id);return Ki({},h,{shouldLoad:v,resolve:async b=>(b&&r.method==="GET"&&(h.route.lazy||h.route.loader)&&(v=!0),v?idt(t,r,h,g,b,c):Promise.resolve({type:gi.data,result:void 0}))})}),p=await e({matches:f,request:r,params:a[0].params,fetcherKey:o,context:c});try{await Promise.all(u)}catch{}return p}async function idt(e,t,n,r,i,a){let o,s,l=c=>{let u,f=new Promise((m,g)=>u=g);s=()=>u(),t.signal.addEventListener("abort",s);let p=m=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:a},...m!==void 0?[m]:[]),h=(async()=>{try{return{type:"data",result:await(i?i(g=>p(g)):p())}}catch(m){return{type:"error",result:m}}})();return Promise.race([h,f])};try{let c=n.route[e];if(r)if(c){let u,[f]=await Promise.all([l(c).catch(p=>{u=p}),r]);if(u!==void 0)throw u;o=f}else if(await r,c=n.route[e],c)o=await l(c);else if(e==="action"){let u=new URL(t.url),f=u.pathname+u.search;throw Os(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:gi.data,result:void 0};else if(c)o=await l(c);else{let u=new URL(t.url),f=u.pathname+u.search;throw Os(404,{pathname:f})}jr(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:gi.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return o}async function adt(e){let{result:t,type:n}=e;if(d0e(t)){let c;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(u){return{type:gi.error,error:u}}return n===gi.error?{type:gi.error,error:new N6(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:gi.data,data:c,statusCode:t.status,headers:t.headers}}if(n===gi.error){if(fQ(t)){var r;if(t.data instanceof Error){var i;return{type:gi.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new N6(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:gi.error,error:t,statusCode:r$(t)?t.status:void 0}}if(udt(t)){var a,o;return{type:gi.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}if(fQ(t)){var s,l;return{type:gi.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:gi.data,data:t}}function odt(e,t,n,r,i,a){let o=e.headers.get("Location");if(jr(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!yz.test(o)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);o=iN(new URL(t.url),s,i,!0,o,a),e.headers.set("Location",o)}return e}function oQ(e,t,n){if(yz.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=Fy(i.pathname,n)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}return e}function F1(e,t,n,r){let i=e.createURL(u0e(t)).toString(),a={signal:n};if(r&&qc(r.formMethod)){let{formMethod:o,formEncType:s}=r;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=oN(r.formData):a.body=r.formData}return new Request(i,a)}function oN(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function sQ(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function sdt(e,t,n,r,i){let a={},o=null,s,l=!1,c={},u=n&&yl(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let p=f.route.id,h=t[p];if(jr(!$m(h),"Cannot handle redirect results in processLoaderData"),yl(h)){let m=h.error;u!==void 0&&(m=u,u=void 0),o=o||{};{let g=cm(e,p);o[g.route.id]==null&&(o[g.route.id]=m)}a[p]=void 0,l||(l=!0,s=r$(h.error)?h.error.status:500),h.headers&&(c[p]=h.headers)}else Bp(h)?(r.set(p,h.deferredData),a[p]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[p]=h.headers)):(a[p]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[p]=h.headers))}),u!==void 0&&n&&(o={[n[0]]:u},a[n[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function lQ(e,t,n,r,i,a,o){let{loaderData:s,errors:l}=sdt(t,n,r,o);return i.forEach(c=>{let{key:u,match:f,controller:p}=c,h=a[u];if(jr(h,"Did not find corresponding fetcher result"),!(p&&p.signal.aborted))if(yl(h)){let m=cm(e.matches,f==null?void 0:f.route.id);l&&l[m.route.id]||(l=Ki({},l,{[m.route.id]:h.error})),e.fetchers.delete(u)}else if($m(h))jr(!1,"Unhandled fetcher revalidation redirect");else if(Bp(h))jr(!1,"Unhandled fetcher deferred data");else{let m=bp(h.data);e.fetchers.set(u,m)}}),{loaderData:s,errors:l}}function cQ(e,t,n,r){let i=Ki({},t);for(let a of n){let o=a.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(i[o]=t[o]):e[o]!==void 0&&a.route.loader&&(i[o]=e[o]),r&&r.hasOwnProperty(o))break}return i}function uQ(e){return e?yl(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function cm(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function dQ(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Os(e,t){let{pathname:n,routeId:r,method:i,type:a,message:o}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new N6(e||500,s,new Error(l),!0)}function AS(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if($m(i))return{key:r,result:i}}}function u0e(e){let t=typeof e=="string"?Sh(e):e;return _g(Ki({},t,{hash:""}))}function ldt(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function cdt(e){return d0e(e.result)&&Gut.has(e.result.status)}function Bp(e){return e.type===gi.deferred}function yl(e){return e.type===gi.error}function $m(e){return(e&&e.type)===gi.redirect}function fQ(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function udt(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function d0e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function ddt(e){return Kut.has(e.toLowerCase())}function qc(e){return Vut.has(e.toLowerCase())}async function fdt(e,t,n,r,i){let a=Object.entries(t);for(let o=0;o(p==null?void 0:p.route.id)===s);if(!c)continue;let u=r.find(p=>p.route.id===c.route.id),f=u!=null&&!l0e(u,c)&&(i&&i[c.route.id])!==void 0;Bp(l)&&f&&await bz(l,n,!1).then(p=>{p&&(t[s]=p)})}}async function pdt(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===a)&&Bp(s)&&(jr(o,"Expected an AbortController for revalidating fetcher deferred result"),await bz(s,o.signal,!0).then(c=>{c&&(t[i]=c)}))}}async function bz(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:gi.data,data:e.deferredData.unwrappedData}}catch(i){return{type:gi.error,error:i}}return{type:gi.data,data:e.deferredData.data}}}function wz(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function E2(e,t){let n=typeof t=="string"?Sh(t).search:t.search;if(e[e.length-1].route.index&&wz(n||""))return e[e.length-1];let r=a0e(e);return r[r.length-1]}function pQ(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function CT(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function hdt(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function zb(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function mdt(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function bp(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function gdt(e,t){try{let n=e.sessionStorage.getItem(s0e);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function vdt(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(s0e,JSON.stringify(n))}catch(r){A0(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function L0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Eut(){return Math.random().toString(36).substr(2,8)}function tQ(e,t){return{usr:e.state,key:e.key,idx:t}}function p3(e,t,n,r){return n===void 0&&(n=null),qi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_h(t):t,{state:n,key:t&&t.key||r||Eut()})}function kg(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function _h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function $ut(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=Ta.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(qi({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function f(){s=Ta.Pop;let v=u(),y=v==null?null:v-c;c=v,l&&l({action:s,location:g.location,delta:y})}function p(v,y){s=Ta.Push;let w=p3(g.location,v,y);c=u()+1;let b=tQ(w,c),C=g.createHref(w);try{o.pushState(b,"",C)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(C)}a&&l&&l({action:s,location:g.location,delta:1})}function h(v,y){s=Ta.Replace;let w=p3(g.location,v,y);c=u();let b=tQ(w,c),C=g.createHref(w);o.replaceState(b,"",C),a&&l&&l({action:s,location:g.location,delta:0})}function m(v){let y=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof v=="string"?v:kg(v);return w=w.replace(/ $/,"%20"),jr(y,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,y)}let g={get action(){return s},get location(){return e(i,o)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(eQ,f),l=v,()=>{i.removeEventListener(eQ,f),l=null}},createHref(v){return t(i,v)},createURL:m,encodeLocation(v){let y=m(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(v){return o.go(v)}};return g}var gi;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gi||(gi={}));const Mut=new Set(["lazy","caseSensitive","path","id","index","children"]);function Tut(e){return e.index===!0}function N6(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,String(a)],s=typeof i.id=="string"?i.id:o.join("-");if(jr(i.index!==!0||!i.children,"Cannot specify children on an index route"),jr(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Tut(i)){let l=qi({},i,t(i),{id:s});return r[s]=l,l}else{let l=qi({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=N6(i.children,t,o,r)),l}})}function cm(e,t,n){return n===void 0&&(n="/"),c_(e,t,n,!1)}function c_(e,t,n,r){let i=typeof t=="string"?_h(t):t,a=Ly(i.pathname||"/",n);if(a==null)return null;let o=l0e(e);Out(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(jr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=wf([r,l.relativePath]),u=n.concat(l);a.children&&a.children.length>0&&(jr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),l0e(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:Fut(c,a.index),routesMeta:u})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of c0e(a.path))i(a,o,l)}),t}function c0e(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=c0e(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Out(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Lut(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Rut=/^:[\w-]+$/,Iut=3,jut=2,Nut=1,Aut=10,Dut=-2,nQ=e=>e==="*";function Fut(e,t){let n=e.split("/"),r=n.length;return n.some(nQ)&&(r+=Dut),t&&(r+=jut),n.filter(i=>!nQ(i)).reduce((i,a)=>i+(Rut.test(a)?Iut:a===""?Nut:Aut),r)}function Lut(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function But(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a="/",o=[];for(let s=0;s{let{paramName:p,isOptional:h}=u;if(p==="*"){let g=s[f]||"";o=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[f];return h&&!m?c[p]=void 0:c[p]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:o,pattern:e}}function zut(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),L0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Hut(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return L0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ly(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Uut(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?_h(e):e;return{pathname:n?n.startsWith("/")?n:Wut(n,t):t,search:qut(r),hash:Kut(i)}}function Wut(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function _T(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function u0e(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function i$(e,t){let n=u0e(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function a$(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=_h(e):(i=qi({},e),jr(!i.pathname||!i.pathname.includes("?"),_T("?","pathname","search",i)),jr(!i.pathname||!i.pathname.includes("#"),_T("#","pathname","hash",i)),jr(!i.search||!i.search.includes("#"),_T("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=Uut(i,s),c=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const wf=e=>e.join("/").replace(/\/\/+/g,"/"),Vut=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),qut=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Kut=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class A6{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function o$(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const d0e=["post","put","patch","delete"],Gut=new Set(d0e),Yut=["get",...d0e],Xut=new Set(Yut),Zut=new Set([301,302,303,307,308]),Qut=new Set([307,308]),kT={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Jut={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},zb={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},wz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,edt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),f0e="remix-router-transitions";function tdt(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;jr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let Ne=e.detectErrorBoundary;i=He=>({hasErrorBoundary:Ne(He)})}else i=edt;let a={},o=N6(e.routes,i,void 0,a),s,l=e.basename||"/",c=e.dataStrategy||adt,u=e.patchRoutesOnNavigation,f=qi({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,h=new Set,m=null,g=null,v=null,y=e.hydrationData!=null,w=cm(o,e.history.location,l),b=null;if(w==null&&!u){let Ne=Os(404,{pathname:e.history.location.pathname}),{matches:He,route:Le}=hQ(o);w=He,b={[Le.id]:Ne}}w&&!e.hydrationData&&jt(w,o,e.history.location.pathname).active&&(w=null);let C;if(w)if(w.some(Ne=>Ne.route.lazy))C=!1;else if(!w.some(Ne=>Ne.route.loader))C=!0;else if(f.v7_partialHydration){let Ne=e.hydrationData?e.hydrationData.loaderData:null,He=e.hydrationData?e.hydrationData.errors:null;if(He){let Le=w.findIndex(Qe=>He[Qe.route.id]!==void 0);C=w.slice(0,Le+1).every(Qe=>!lN(Qe.route,Ne,He))}else C=w.every(Le=>!lN(Le.route,Ne,He))}else C=e.hydrationData!=null;else if(C=!1,w=[],f.v7_partialHydration){let Ne=jt(null,o,e.history.location.pathname);Ne.active&&Ne.matches&&(w=Ne.matches)}let k,S={historyAction:e.history.action,location:e.history.location,matches:w,initialized:C,navigation:kT,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},_=Ta.Pop,E=!1,$,M=!1,P=new Map,R=null,O=!1,j=!1,I=[],A=new Set,N=new Map,F=0,K=-1,L=new Map,V=new Set,B=new Map,U=new Map,Y=new Set,ee=new Map,ie=new Map,Z;function X(){if(p=e.history.listen(Ne=>{let{action:He,location:Le,delta:Qe}=Ne;if(Z){Z(),Z=void 0;return}L0(ie.size===0||Qe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let pt=Ke({currentLocation:S.location,nextLocation:Le,historyAction:He});if(pt&&Qe!=null){let xt=new Promise(Nt=>{Z=Nt});e.history.go(Qe*-1),Xe(pt,{state:"blocked",location:Le,proceed(){Xe(pt,{state:"proceeding",proceed:void 0,reset:void 0,location:Le}),xt.then(()=>e.history.go(Qe))},reset(){let Nt=new Map(S.blockers);Nt.set(pt,zb),le({blockers:Nt})}});return}return re(He,Le)}),n){bdt(t,P);let Ne=()=>wdt(t,P);t.addEventListener("pagehide",Ne),R=()=>t.removeEventListener("pagehide",Ne)}return S.initialized||re(Ta.Pop,S.location,{initialHydration:!0}),k}function ae(){p&&p(),R&&R(),h.clear(),$&&$.abort(),S.fetchers.forEach((Ne,He)=>xe(He)),S.blockers.forEach((Ne,He)=>Be(He))}function oe(Ne){return h.add(Ne),()=>h.delete(Ne)}function le(Ne,He){He===void 0&&(He={}),S=qi({},S,Ne);let Le=[],Qe=[];f.v7_fetcherPersist&&S.fetchers.forEach((pt,xt)=>{pt.state==="idle"&&(Y.has(xt)?Qe.push(xt):Le.push(xt))}),[...h].forEach(pt=>pt(S,{deletedFetchers:Qe,viewTransitionOpts:He.viewTransitionOpts,flushSync:He.flushSync===!0})),f.v7_fetcherPersist&&(Le.forEach(pt=>S.fetchers.delete(pt)),Qe.forEach(pt=>xe(pt)))}function ce(Ne,He,Le){var Qe,pt;let{flushSync:xt}=Le===void 0?{}:Le,Nt=S.actionData!=null&&S.navigation.formMethod!=null&&Xc(S.navigation.formMethod)&&S.navigation.state==="loading"&&((Qe=Ne.state)==null?void 0:Qe._isRedirect)!==!0,Ot;He.actionData?Object.keys(He.actionData).length>0?Ot=He.actionData:Ot=null:Nt?Ot=S.actionData:Ot=null;let Pt=He.loaderData?fQ(S.loaderData,He.loaderData,He.matches||[],He.errors):S.loaderData,st=S.blockers;st.size>0&&(st=new Map(st),st.forEach((qt,vt)=>st.set(vt,zb)));let Ct=E===!0||S.navigation.formMethod!=null&&Xc(S.navigation.formMethod)&&((pt=Ne.state)==null?void 0:pt._isRedirect)!==!0;s&&(o=s,s=void 0),O||_===Ta.Pop||(_===Ta.Push?e.history.push(Ne,Ne.state):_===Ta.Replace&&e.history.replace(Ne,Ne.state));let kt;if(_===Ta.Pop){let qt=P.get(S.location.pathname);qt&&qt.has(Ne.pathname)?kt={currentLocation:S.location,nextLocation:Ne}:P.has(Ne.pathname)&&(kt={currentLocation:Ne,nextLocation:S.location})}else if(M){let qt=P.get(S.location.pathname);qt?qt.add(Ne.pathname):(qt=new Set([Ne.pathname]),P.set(S.location.pathname,qt)),kt={currentLocation:S.location,nextLocation:Ne}}le(qi({},He,{actionData:Ot,loaderData:Pt,historyAction:_,location:Ne,initialized:!0,navigation:kT,revalidation:"idle",restoreScrollPosition:nt(Ne,He.matches||S.matches),preventScrollReset:Ct,blockers:st}),{viewTransitionOpts:kt,flushSync:xt===!0}),_=Ta.Pop,E=!1,M=!1,O=!1,j=!1,I=[]}async function pe(Ne,He){if(typeof Ne=="number"){e.history.go(Ne);return}let Le=sN(S.location,S.matches,l,f.v7_prependBasename,Ne,f.v7_relativeSplatPath,He==null?void 0:He.fromRouteId,He==null?void 0:He.relative),{path:Qe,submission:pt,error:xt}=iQ(f.v7_normalizeFormMethod,!1,Le,He),Nt=S.location,Ot=p3(S.location,Qe,He&&He.state);Ot=qi({},Ot,e.history.encodeLocation(Ot));let Pt=He&&He.replace!=null?He.replace:void 0,st=Ta.Push;Pt===!0?st=Ta.Replace:Pt===!1||pt!=null&&Xc(pt.formMethod)&&pt.formAction===S.location.pathname+S.location.search&&(st=Ta.Replace);let Ct=He&&"preventScrollReset"in He?He.preventScrollReset===!0:void 0,kt=(He&&He.flushSync)===!0,qt=Ke({currentLocation:Nt,nextLocation:Ot,historyAction:st});if(qt){Xe(qt,{state:"blocked",location:Ot,proceed(){Xe(qt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ot}),pe(Ne,He)},reset(){let vt=new Map(S.blockers);vt.set(qt,zb),le({blockers:vt})}});return}return await re(st,Ot,{submission:pt,pendingError:xt,preventScrollReset:Ct,replace:He&&He.replace,enableViewTransition:He&&He.viewTransition,flushSync:kt})}function me(){if(z(),le({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){re(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}re(_||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation,enableViewTransition:M===!0})}}async function re(Ne,He,Le){$&&$.abort(),$=null,_=Ne,O=(Le&&Le.startUninterruptedRevalidation)===!0,Ze(S.location,S.matches),E=(Le&&Le.preventScrollReset)===!0,M=(Le&&Le.enableViewTransition)===!0;let Qe=s||o,pt=Le&&Le.overrideNavigation,xt=cm(Qe,He,l),Nt=(Le&&Le.flushSync)===!0,Ot=jt(xt,Qe,He.pathname);if(Ot.active&&Ot.matches&&(xt=Ot.matches),!xt){let{error:At,notFoundMatches:dt,route:De}=qe(He.pathname);ce(He,{matches:dt,loaderData:{},errors:{[De.id]:At}},{flushSync:Nt});return}if(S.initialized&&!j&&ddt(S.location,He)&&!(Le&&Le.submission&&Xc(Le.submission.formMethod))){ce(He,{matches:xt},{flushSync:Nt});return}$=new AbortController;let Pt=L1(e.history,He,$.signal,Le&&Le.submission),st;if(Le&&Le.pendingError)st=[um(xt).route.id,{type:gi.error,error:Le.pendingError}];else if(Le&&Le.submission&&Xc(Le.submission.formMethod)){let At=await fe(Pt,He,Le.submission,xt,Ot.active,{replace:Le.replace,flushSync:Nt});if(At.shortCircuited)return;if(At.pendingActionResult){let[dt,De]=At.pendingActionResult;if(bl(De)&&o$(De.error)&&De.error.status===404){$=null,ce(He,{matches:At.matches,loaderData:{},errors:{[dt]:De.error}});return}}xt=At.matches||xt,st=At.pendingActionResult,pt=ET(He,Le.submission),Nt=!1,Ot.active=!1,Pt=L1(e.history,Pt.url,Pt.signal)}let{shortCircuited:Ct,matches:kt,loaderData:qt,errors:vt}=await ve(Pt,He,xt,Ot.active,pt,Le&&Le.submission,Le&&Le.fetcherSubmission,Le&&Le.replace,Le&&Le.initialHydration===!0,Nt,st);Ct||($=null,ce(He,qi({matches:kt||xt},pQ(st),{loaderData:qt,errors:vt})))}async function fe(Ne,He,Le,Qe,pt,xt){xt===void 0&&(xt={}),z();let Nt=vdt(He,Le);if(le({navigation:Nt},{flushSync:xt.flushSync===!0}),pt){let st=await Lt(Qe,He.pathname,Ne.signal);if(st.type==="aborted")return{shortCircuited:!0};if(st.type==="error"){let Ct=um(st.partialMatches).route.id;return{matches:st.partialMatches,pendingActionResult:[Ct,{type:gi.error,error:st.error}]}}else if(st.matches)Qe=st.matches;else{let{notFoundMatches:Ct,error:kt,route:qt}=qe(He.pathname);return{matches:Ct,pendingActionResult:[qt.id,{type:gi.error,error:kt}]}}}let Ot,Pt=$2(Qe,He);if(!Pt.route.action&&!Pt.route.lazy)Ot={type:gi.error,error:Os(405,{method:Ne.method,pathname:He.pathname,routeId:Pt.route.id})};else if(Ot=(await ye("action",S,Ne,[Pt],Qe,null))[Pt.route.id],Ne.signal.aborted)return{shortCircuited:!0};if(Mm(Ot)){let st;return xt&&xt.replace!=null?st=xt.replace:st=cQ(Ot.response.headers.get("Location"),new URL(Ne.url),l)===S.location.pathname+S.location.search,await se(Ne,Ot,!0,{submission:Le,replace:st}),{shortCircuited:!0}}if(zp(Ot))throw Os(400,{type:"defer-action"});if(bl(Ot)){let st=um(Qe,Pt.route.id);return(xt&&xt.replace)!==!0&&(_=Ta.Push),{matches:Qe,pendingActionResult:[st.route.id,Ot]}}return{matches:Qe,pendingActionResult:[Pt.route.id,Ot]}}async function ve(Ne,He,Le,Qe,pt,xt,Nt,Ot,Pt,st,Ct){let kt=pt||ET(He,xt),qt=xt||Nt||gQ(kt),vt=!O&&(!f.v7_partialHydration||!Pt);if(Qe){if(vt){let D=$e(Ct);le(qi({navigation:kt},D!==void 0?{actionData:D}:{}),{flushSync:st})}let T=await Lt(Le,He.pathname,Ne.signal);if(T.type==="aborted")return{shortCircuited:!0};if(T.type==="error"){let D=um(T.partialMatches).route.id;return{matches:T.partialMatches,loaderData:{},errors:{[D]:T.error}}}else if(T.matches)Le=T.matches;else{let{error:D,notFoundMatches:J,route:ke}=qe(He.pathname);return{matches:J,loaderData:{},errors:{[ke.id]:D}}}}let At=s||o,[dt,De]=oQ(e.history,S,Le,qt,He,f.v7_partialHydration&&Pt===!0,f.v7_skipActionErrorRevalidation,j,I,A,Y,B,V,At,l,Ct);if(Et(T=>!(Le&&Le.some(D=>D.route.id===T))||dt&&dt.some(D=>D.route.id===T)),K=++F,dt.length===0&&De.length===0){let T=ge();return ce(He,qi({matches:Le,loaderData:{},errors:Ct&&bl(Ct[1])?{[Ct[0]]:Ct[1].error}:null},pQ(Ct),T?{fetchers:new Map(S.fetchers)}:{}),{flushSync:st}),{shortCircuited:!0}}if(vt){let T={};if(!Qe){T.navigation=kt;let D=$e(Ct);D!==void 0&&(T.actionData=D)}De.length>0&&(T.fetchers=Ce(De)),le(T,{flushSync:st})}De.forEach(T=>{Ue(T.key),T.controller&&N.set(T.key,T.controller)});let Ye=()=>De.forEach(T=>Ue(T.key));$&&$.signal.addEventListener("abort",Ye);let{loaderResults:ot,fetcherResults:Re}=await Oe(S,Le,dt,De,Ne);if(Ne.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Ye),De.forEach(T=>N.delete(T.key));let It=FS(ot);if(It)return await se(Ne,It.result,!0,{replace:Ot}),{shortCircuited:!0};if(It=FS(Re),It)return V.add(It.key),await se(Ne,It.result,!0,{replace:Ot}),{shortCircuited:!0};let{loaderData:rt,errors:$t}=dQ(S,Le,ot,Ct,De,Re,ee);ee.forEach((T,D)=>{T.subscribe(J=>{(J||T.done)&&ee.delete(D)})}),f.v7_partialHydration&&Pt&&S.errors&&($t=qi({},S.errors,$t));let Mt=ge(),dn=ze(K),pn=Mt||dn||De.length>0;return qi({matches:Le,loaderData:rt,errors:$t},pn?{fetchers:new Map(S.fetchers)}:{})}function $e(Ne){if(Ne&&!bl(Ne[1]))return{[Ne[0]]:Ne[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function Ce(Ne){return Ne.forEach(He=>{let Le=S.fetchers.get(He.key),Qe=Hb(void 0,Le?Le.data:void 0);S.fetchers.set(He.key,Qe)}),new Map(S.fetchers)}function be(Ne,He,Le,Qe){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Ue(Ne);let pt=(Qe&&Qe.flushSync)===!0,xt=s||o,Nt=sN(S.location,S.matches,l,f.v7_prependBasename,Le,f.v7_relativeSplatPath,He,Qe==null?void 0:Qe.relative),Ot=cm(xt,Nt,l),Pt=jt(Ot,xt,Nt);if(Pt.active&&Pt.matches&&(Ot=Pt.matches),!Ot){G(Ne,He,Os(404,{pathname:Nt}),{flushSync:pt});return}let{path:st,submission:Ct,error:kt}=iQ(f.v7_normalizeFormMethod,!0,Nt,Qe);if(kt){G(Ne,He,kt,{flushSync:pt});return}let qt=$2(Ot,st),vt=(Qe&&Qe.preventScrollReset)===!0;if(Ct&&Xc(Ct.formMethod)){Se(Ne,He,st,qt,Ot,Pt.active,pt,vt,Ct);return}B.set(Ne,{routeId:He,path:st}),we(Ne,He,st,qt,Ot,Pt.active,pt,vt,Ct)}async function Se(Ne,He,Le,Qe,pt,xt,Nt,Ot,Pt){z(),B.delete(Ne);function st(Ie){if(!Ie.route.action&&!Ie.route.lazy){let it=Os(405,{method:Pt.formMethod,pathname:Le,routeId:He});return G(Ne,He,it,{flushSync:Nt}),!0}return!1}if(!xt&&st(Qe))return;let Ct=S.fetchers.get(Ne);H(Ne,ydt(Pt,Ct),{flushSync:Nt});let kt=new AbortController,qt=L1(e.history,Le,kt.signal,Pt);if(xt){let Ie=await Lt(pt,Le,qt.signal);if(Ie.type==="aborted")return;if(Ie.type==="error"){G(Ne,He,Ie.error,{flushSync:Nt});return}else if(Ie.matches){if(pt=Ie.matches,Qe=$2(pt,Le),st(Qe))return}else{G(Ne,He,Os(404,{pathname:Le}),{flushSync:Nt});return}}N.set(Ne,kt);let vt=F,dt=(await ye("action",S,qt,[Qe],pt,Ne))[Qe.route.id];if(qt.signal.aborted){N.get(Ne)===kt&&N.delete(Ne);return}if(f.v7_fetcherPersist&&Y.has(Ne)){if(Mm(dt)||bl(dt)){H(Ne,bp(void 0));return}}else{if(Mm(dt))if(N.delete(Ne),K>vt){H(Ne,bp(void 0));return}else return V.add(Ne),H(Ne,Hb(Pt)),se(qt,dt,!1,{fetcherSubmission:Pt,preventScrollReset:Ot});if(bl(dt)){G(Ne,He,dt.error);return}}if(zp(dt))throw Os(400,{type:"defer-action"});let De=S.navigation.location||S.location,Ye=L1(e.history,De,kt.signal),ot=s||o,Re=S.navigation.state!=="idle"?cm(ot,S.navigation.location,l):S.matches;jr(Re,"Didn't find any matches after fetcher action");let It=++F;L.set(Ne,It);let rt=Hb(Pt,dt.data);S.fetchers.set(Ne,rt);let[$t,Mt]=oQ(e.history,S,Re,Pt,De,!1,f.v7_skipActionErrorRevalidation,j,I,A,Y,B,V,ot,l,[Qe.route.id,dt]);Mt.filter(Ie=>Ie.key!==Ne).forEach(Ie=>{let it=Ie.key,Ft=S.fetchers.get(it),rn=Hb(void 0,Ft?Ft.data:void 0);S.fetchers.set(it,rn),Ue(it),Ie.controller&&N.set(it,Ie.controller)}),le({fetchers:new Map(S.fetchers)});let dn=()=>Mt.forEach(Ie=>Ue(Ie.key));kt.signal.addEventListener("abort",dn);let{loaderResults:pn,fetcherResults:T}=await Oe(S,Re,$t,Mt,Ye);if(kt.signal.aborted)return;kt.signal.removeEventListener("abort",dn),L.delete(Ne),N.delete(Ne),Mt.forEach(Ie=>N.delete(Ie.key));let D=FS(pn);if(D)return se(Ye,D.result,!1,{preventScrollReset:Ot});if(D=FS(T),D)return V.add(D.key),se(Ye,D.result,!1,{preventScrollReset:Ot});let{loaderData:J,errors:ke}=dQ(S,Re,pn,void 0,Mt,T,ee);if(S.fetchers.has(Ne)){let Ie=bp(dt.data);S.fetchers.set(Ne,Ie)}ze(It),S.navigation.state==="loading"&&It>K?(jr(_,"Expected pending action"),$&&$.abort(),ce(S.navigation.location,{matches:Re,loaderData:J,errors:ke,fetchers:new Map(S.fetchers)})):(le({errors:ke,loaderData:fQ(S.loaderData,J,Re,ke),fetchers:new Map(S.fetchers)}),j=!1)}async function we(Ne,He,Le,Qe,pt,xt,Nt,Ot,Pt){let st=S.fetchers.get(Ne);H(Ne,Hb(Pt,st?st.data:void 0),{flushSync:Nt});let Ct=new AbortController,kt=L1(e.history,Le,Ct.signal);if(xt){let dt=await Lt(pt,Le,kt.signal);if(dt.type==="aborted")return;if(dt.type==="error"){G(Ne,He,dt.error,{flushSync:Nt});return}else if(dt.matches)pt=dt.matches,Qe=$2(pt,Le);else{G(Ne,He,Os(404,{pathname:Le}),{flushSync:Nt});return}}N.set(Ne,Ct);let qt=F,At=(await ye("loader",S,kt,[Qe],pt,Ne))[Qe.route.id];if(zp(At)&&(At=await xz(At,kt.signal,!0)||At),N.get(Ne)===Ct&&N.delete(Ne),!kt.signal.aborted){if(Y.has(Ne)){H(Ne,bp(void 0));return}if(Mm(At))if(K>qt){H(Ne,bp(void 0));return}else{V.add(Ne),await se(kt,At,!1,{preventScrollReset:Ot});return}if(bl(At)){G(Ne,He,At.error);return}jr(!zp(At),"Unhandled fetcher deferred data"),H(Ne,bp(At.data))}}async function se(Ne,He,Le,Qe){let{submission:pt,fetcherSubmission:xt,preventScrollReset:Nt,replace:Ot}=Qe===void 0?{}:Qe;He.response.headers.has("X-Remix-Revalidate")&&(j=!0);let Pt=He.response.headers.get("Location");jr(Pt,"Expected a Location header on the redirect Response"),Pt=cQ(Pt,new URL(Ne.url),l);let st=p3(S.location,Pt,{_isRedirect:!0});if(n){let dt=!1;if(He.response.headers.has("X-Remix-Reload-Document"))dt=!0;else if(wz.test(Pt)){const De=e.history.createURL(Pt);dt=De.origin!==t.location.origin||Ly(De.pathname,l)==null}if(dt){Ot?t.location.replace(Pt):t.location.assign(Pt);return}}$=null;let Ct=Ot===!0||He.response.headers.has("X-Remix-Replace")?Ta.Replace:Ta.Push,{formMethod:kt,formAction:qt,formEncType:vt}=S.navigation;!pt&&!xt&&kt&&qt&&vt&&(pt=gQ(S.navigation));let At=pt||xt;if(Qut.has(He.response.status)&&At&&Xc(At.formMethod))await re(Ct,st,{submission:qi({},At,{formAction:Pt}),preventScrollReset:Nt||E,enableViewTransition:Le?M:void 0});else{let dt=ET(st,pt);await re(Ct,st,{overrideNavigation:dt,fetcherSubmission:xt,preventScrollReset:Nt||E,enableViewTransition:Le?M:void 0})}}async function ye(Ne,He,Le,Qe,pt,xt){let Nt,Ot={};try{Nt=await odt(c,Ne,He,Le,Qe,pt,xt,a,i)}catch(Pt){return Qe.forEach(st=>{Ot[st.route.id]={type:gi.error,error:Pt}}),Ot}for(let[Pt,st]of Object.entries(Nt))if(fdt(st)){let Ct=st.result;Ot[Pt]={type:gi.redirect,response:cdt(Ct,Le,Pt,pt,l,f.v7_relativeSplatPath)}}else Ot[Pt]=await ldt(st);return Ot}async function Oe(Ne,He,Le,Qe,pt){let xt=Ne.matches,Nt=ye("loader",Ne,pt,Le,He,null),Ot=Promise.all(Qe.map(async Ct=>{if(Ct.matches&&Ct.match&&Ct.controller){let qt=(await ye("loader",Ne,L1(e.history,Ct.path,Ct.controller.signal),[Ct.match],Ct.matches,Ct.key))[Ct.match.route.id];return{[Ct.key]:qt}}else return Promise.resolve({[Ct.key]:{type:gi.error,error:Os(404,{pathname:Ct.path})}})})),Pt=await Nt,st=(await Ot).reduce((Ct,kt)=>Object.assign(Ct,kt),{});return await Promise.all([mdt(He,Pt,pt.signal,xt,Ne.loaderData),gdt(He,st,Qe)]),{loaderResults:Pt,fetcherResults:st}}function z(){j=!0,I.push(...Et()),B.forEach((Ne,He)=>{N.has(He)&&A.add(He),Ue(He)})}function H(Ne,He,Le){Le===void 0&&(Le={}),S.fetchers.set(Ne,He),le({fetchers:new Map(S.fetchers)},{flushSync:(Le&&Le.flushSync)===!0})}function G(Ne,He,Le,Qe){Qe===void 0&&(Qe={});let pt=um(S.matches,He);xe(Ne),le({errors:{[pt.route.id]:Le},fetchers:new Map(S.fetchers)},{flushSync:(Qe&&Qe.flushSync)===!0})}function de(Ne){return f.v7_fetcherPersist&&(U.set(Ne,(U.get(Ne)||0)+1),Y.has(Ne)&&Y.delete(Ne)),S.fetchers.get(Ne)||Jut}function xe(Ne){let He=S.fetchers.get(Ne);N.has(Ne)&&!(He&&He.state==="loading"&&L.has(Ne))&&Ue(Ne),B.delete(Ne),L.delete(Ne),V.delete(Ne),Y.delete(Ne),A.delete(Ne),S.fetchers.delete(Ne)}function he(Ne){if(f.v7_fetcherPersist){let He=(U.get(Ne)||0)-1;He<=0?(U.delete(Ne),Y.add(Ne)):U.set(Ne,He)}else xe(Ne);le({fetchers:new Map(S.fetchers)})}function Ue(Ne){let He=N.get(Ne);He&&(He.abort(),N.delete(Ne))}function We(Ne){for(let He of Ne){let Le=de(He),Qe=bp(Le.data);S.fetchers.set(He,Qe)}}function ge(){let Ne=[],He=!1;for(let Le of V){let Qe=S.fetchers.get(Le);jr(Qe,"Expected fetcher: "+Le),Qe.state==="loading"&&(V.delete(Le),Ne.push(Le),He=!0)}return We(Ne),He}function ze(Ne){let He=[];for(let[Le,Qe]of L)if(Qe0}function Ve(Ne,He){let Le=S.blockers.get(Ne)||zb;return ie.get(Ne)!==He&&ie.set(Ne,He),Le}function Be(Ne){S.blockers.delete(Ne),ie.delete(Ne)}function Xe(Ne,He){let Le=S.blockers.get(Ne)||zb;jr(Le.state==="unblocked"&&He.state==="blocked"||Le.state==="blocked"&&He.state==="blocked"||Le.state==="blocked"&&He.state==="proceeding"||Le.state==="blocked"&&He.state==="unblocked"||Le.state==="proceeding"&&He.state==="unblocked","Invalid blocker state transition: "+Le.state+" -> "+He.state);let Qe=new Map(S.blockers);Qe.set(Ne,He),le({blockers:Qe})}function Ke(Ne){let{currentLocation:He,nextLocation:Le,historyAction:Qe}=Ne;if(ie.size===0)return;ie.size>1&&L0(!1,"A router only supports one blocker at a time");let pt=Array.from(ie.entries()),[xt,Nt]=pt[pt.length-1],Ot=S.blockers.get(xt);if(!(Ot&&Ot.state==="proceeding")&&Nt({currentLocation:He,nextLocation:Le,historyAction:Qe}))return xt}function qe(Ne){let He=Os(404,{pathname:Ne}),Le=s||o,{matches:Qe,route:pt}=hQ(Le);return Et(),{notFoundMatches:Qe,route:pt,error:He}}function Et(Ne){let He=[];return ee.forEach((Le,Qe)=>{(!Ne||Ne(Qe))&&(Le.cancel(),He.push(Qe),ee.delete(Qe))}),He}function ut(Ne,He,Le){if(m=Ne,v=He,g=Le||null,!y&&S.navigation===kT){y=!0;let Qe=nt(S.location,S.matches);Qe!=null&&le({restoreScrollPosition:Qe})}return()=>{m=null,v=null,g=null}}function gt(Ne,He){return g&&g(Ne,He.map(Qe=>Put(Qe,S.loaderData)))||Ne.key}function Ze(Ne,He){if(m&&v){let Le=gt(Ne,He);m[Le]=v()}}function nt(Ne,He){if(m){let Le=gt(Ne,He),Qe=m[Le];if(typeof Qe=="number")return Qe}return null}function jt(Ne,He,Le){if(u)if(Ne){if(Object.keys(Ne[0].params).length>0)return{active:!0,matches:c_(He,Le,l,!0)}}else return{active:!0,matches:c_(He,Le,l,!0)||[]};return{active:!1,matches:null}}async function Lt(Ne,He,Le){if(!u)return{type:"success",matches:Ne};let Qe=Ne;for(;;){let pt=s==null,xt=s||o,Nt=a;try{await u({path:He,matches:Qe,patch:(st,Ct)=>{Le.aborted||lQ(st,Ct,xt,Nt,i)}})}catch(st){return{type:"error",error:st,partialMatches:Qe}}finally{pt&&!Le.aborted&&(o=[...o])}if(Le.aborted)return{type:"aborted"};let Ot=cm(xt,He,l);if(Ot)return{type:"success",matches:Ot};let Pt=c_(xt,He,l,!0);if(!Pt||Qe.length===Pt.length&&Qe.every((st,Ct)=>st.route.id===Pt[Ct].route.id))return{type:"success",matches:null};Qe=Pt}}function Bt(Ne){a={},s=N6(Ne,i,void 0,a)}function Ut(Ne,He){let Le=s==null;lQ(Ne,He,s||o,a,i),Le&&(o=[...o],le({}))}return k={get basename(){return l},get future(){return f},get state(){return S},get routes(){return o},get window(){return t},initialize:X,subscribe:oe,enableScrollRestoration:ut,navigate:pe,fetch:be,revalidate:me,createHref:Ne=>e.history.createHref(Ne),encodeLocation:Ne=>e.history.encodeLocation(Ne),getFetcher:de,deleteFetcher:he,dispose:ae,getBlocker:Ve,deleteBlocker:Be,patchRoutes:Ut,_internalFetchControllers:N,_internalActiveDeferreds:ee,_internalSetRoutes:Bt},k}function ndt(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function sN(e,t,n,r,i,a,o,s){let l,c;if(o){l=[];for(let f of t)if(l.push(f),f.route.id===o){c=f;break}}else l=t,c=t[t.length-1];let u=a$(i||".",i$(l,a),Ly(e.pathname,n)||e.pathname,s==="path");if(i==null&&(u.search=e.search,u.hash=e.hash),(i==null||i===""||i===".")&&c){let f=Sz(u.search);if(c.route.index&&!f)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&f){let p=new URLSearchParams(u.search),h=p.getAll("index");p.delete("index"),h.filter(g=>g).forEach(g=>p.append("index",g));let m=p.toString();u.search=m?"?"+m:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:wf([n,u.pathname])),kg(u)}function iQ(e,t,n,r){if(!r||!ndt(r))return{path:n};if(r.formMethod&&!hdt(r.formMethod))return{path:n,error:Os(405,{method:r.formMethod})};let i=()=>({path:n,error:Os(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=m0e(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Xc(o))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,m)=>{let[g,v]=m;return""+h+g+"="+v+` +`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!Xc(o))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}jr(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=cN(r.formData),c=r.formData;else if(r.body instanceof FormData)l=cN(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=uQ(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=uQ(l)}catch{return i()}let u={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Xc(u.formMethod))return{path:n,submission:u};let f=_h(n);return t&&f.search&&Sz(f.search)&&l.append("index",""),f.search="?"+l,{path:kg(f),submission:u}}function aQ(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function oQ(e,t,n,r,i,a,o,s,l,c,u,f,p,h,m,g){let v=g?bl(g[1])?g[1].error:g[1].data:void 0,y=e.createURL(t.location),w=e.createURL(i),b=n;a&&t.errors?b=aQ(n,Object.keys(t.errors)[0],!0):g&&bl(g[1])&&(b=aQ(n,g[0]));let C=g?g[1].statusCode:void 0,k=o&&C&&C>=400,S=b.filter((E,$)=>{let{route:M}=E;if(M.lazy)return!0;if(M.loader==null)return!1;if(a)return lN(M,t.loaderData,t.errors);if(rdt(t.loaderData,t.matches[$],E)||l.some(O=>O===E.route.id))return!0;let P=t.matches[$],R=E;return sQ(E,qi({currentUrl:y,currentParams:P.params,nextUrl:w,nextParams:R.params},r,{actionResult:v,actionStatus:C,defaultShouldRevalidate:k?!1:s||y.pathname+y.search===w.pathname+w.search||y.search!==w.search||p0e(P,R)}))}),_=[];return f.forEach((E,$)=>{if(a||!n.some(j=>j.route.id===E.routeId)||u.has($))return;let M=cm(h,E.path,m);if(!M){_.push({key:$,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let P=t.fetchers.get($),R=$2(M,E.path),O=!1;p.has($)?O=!1:c.has($)?(c.delete($),O=!0):P&&P.state!=="idle"&&P.data===void 0?O=s:O=sQ(R,qi({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},r,{actionResult:v,actionStatus:C,defaultShouldRevalidate:k?!1:s})),O&&_.push({key:$,routeId:E.routeId,path:E.path,matches:M,match:R,controller:new AbortController})}),[S,_]}function lN(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function rdt(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function p0e(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function sQ(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function lQ(e,t,n,r,i){var a;let o;if(e){let c=r[e];jr(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),o=c.children}else o=n;let s=t.filter(c=>!o.some(u=>h0e(c,u))),l=N6(s,i,[e||"_","patch",String(((a=o)==null?void 0:a.length)||"0")],r);o.push(...l)}function h0e(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(a=>h0e(n,a))}):!1}async function idt(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];jr(i,"No route found in manifest");let a={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";L0(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!Mut.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,qi({},t(i),{lazy:void 0}))}async function adt(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,a,o)=>Object.assign(i,{[n[o].route.id]:a}),{})}async function odt(e,t,n,r,i,a,o,s,l,c){let u=a.map(h=>h.route.lazy?idt(h.route,l,s):void 0),f=a.map((h,m)=>{let g=u[m],v=i.some(w=>w.route.id===h.route.id);return qi({},h,{shouldLoad:v,resolve:async w=>(w&&r.method==="GET"&&(h.route.lazy||h.route.loader)&&(v=!0),v?sdt(t,r,h,g,w,c):Promise.resolve({type:gi.data,result:void 0}))})}),p=await e({matches:f,request:r,params:a[0].params,fetcherKey:o,context:c});try{await Promise.all(u)}catch{}return p}async function sdt(e,t,n,r,i,a){let o,s,l=c=>{let u,f=new Promise((m,g)=>u=g);s=()=>u(),t.signal.addEventListener("abort",s);let p=m=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:a},...m!==void 0?[m]:[]),h=(async()=>{try{return{type:"data",result:await(i?i(g=>p(g)):p())}}catch(m){return{type:"error",result:m}}})();return Promise.race([h,f])};try{let c=n.route[e];if(r)if(c){let u,[f]=await Promise.all([l(c).catch(p=>{u=p}),r]);if(u!==void 0)throw u;o=f}else if(await r,c=n.route[e],c)o=await l(c);else if(e==="action"){let u=new URL(t.url),f=u.pathname+u.search;throw Os(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:gi.data,result:void 0};else if(c)o=await l(c);else{let u=new URL(t.url),f=u.pathname+u.search;throw Os(404,{pathname:f})}jr(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:gi.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return o}async function ldt(e){let{result:t,type:n}=e;if(g0e(t)){let c;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(u){return{type:gi.error,error:u}}return n===gi.error?{type:gi.error,error:new A6(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:gi.data,data:c,statusCode:t.status,headers:t.headers}}if(n===gi.error){if(mQ(t)){var r;if(t.data instanceof Error){var i;return{type:gi.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new A6(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:gi.error,error:t,statusCode:o$(t)?t.status:void 0}}if(pdt(t)){var a,o;return{type:gi.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}if(mQ(t)){var s,l;return{type:gi.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:gi.data,data:t}}function cdt(e,t,n,r,i,a){let o=e.headers.get("Location");if(jr(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!wz.test(o)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);o=sN(new URL(t.url),s,i,!0,o,a),e.headers.set("Location",o)}return e}function cQ(e,t,n){if(wz.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=Ly(i.pathname,n)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}return e}function L1(e,t,n,r){let i=e.createURL(m0e(t)).toString(),a={signal:n};if(r&&Xc(r.formMethod)){let{formMethod:o,formEncType:s}=r;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=cN(r.formData):a.body=r.formData}return new Request(i,a)}function cN(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function uQ(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function udt(e,t,n,r,i){let a={},o=null,s,l=!1,c={},u=n&&bl(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let p=f.route.id,h=t[p];if(jr(!Mm(h),"Cannot handle redirect results in processLoaderData"),bl(h)){let m=h.error;u!==void 0&&(m=u,u=void 0),o=o||{};{let g=um(e,p);o[g.route.id]==null&&(o[g.route.id]=m)}a[p]=void 0,l||(l=!0,s=o$(h.error)?h.error.status:500),h.headers&&(c[p]=h.headers)}else zp(h)?(r.set(p,h.deferredData),a[p]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[p]=h.headers)):(a[p]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[p]=h.headers))}),u!==void 0&&n&&(o={[n[0]]:u},a[n[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function dQ(e,t,n,r,i,a,o){let{loaderData:s,errors:l}=udt(t,n,r,o);return i.forEach(c=>{let{key:u,match:f,controller:p}=c,h=a[u];if(jr(h,"Did not find corresponding fetcher result"),!(p&&p.signal.aborted))if(bl(h)){let m=um(e.matches,f==null?void 0:f.route.id);l&&l[m.route.id]||(l=qi({},l,{[m.route.id]:h.error})),e.fetchers.delete(u)}else if(Mm(h))jr(!1,"Unhandled fetcher revalidation redirect");else if(zp(h))jr(!1,"Unhandled fetcher deferred data");else{let m=bp(h.data);e.fetchers.set(u,m)}}),{loaderData:s,errors:l}}function fQ(e,t,n,r){let i=qi({},t);for(let a of n){let o=a.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(i[o]=t[o]):e[o]!==void 0&&a.route.loader&&(i[o]=e[o]),r&&r.hasOwnProperty(o))break}return i}function pQ(e){return e?bl(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function um(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function hQ(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Os(e,t){let{pathname:n,routeId:r,method:i,type:a,message:o}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new A6(e||500,s,new Error(l),!0)}function FS(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(Mm(i))return{key:r,result:i}}}function m0e(e){let t=typeof e=="string"?_h(e):e;return kg(qi({},t,{hash:""}))}function ddt(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function fdt(e){return g0e(e.result)&&Zut.has(e.result.status)}function zp(e){return e.type===gi.deferred}function bl(e){return e.type===gi.error}function Mm(e){return(e&&e.type)===gi.redirect}function mQ(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function pdt(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function g0e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function hdt(e){return Xut.has(e.toLowerCase())}function Xc(e){return Gut.has(e.toLowerCase())}async function mdt(e,t,n,r,i){let a=Object.entries(t);for(let o=0;o(p==null?void 0:p.route.id)===s);if(!c)continue;let u=r.find(p=>p.route.id===c.route.id),f=u!=null&&!p0e(u,c)&&(i&&i[c.route.id])!==void 0;zp(l)&&f&&await xz(l,n,!1).then(p=>{p&&(t[s]=p)})}}async function gdt(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===a)&&zp(s)&&(jr(o,"Expected an AbortController for revalidating fetcher deferred result"),await xz(s,o.signal,!0).then(c=>{c&&(t[i]=c)}))}}async function xz(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:gi.data,data:e.deferredData.unwrappedData}}catch(i){return{type:gi.error,error:i}}return{type:gi.data,data:e.deferredData.data}}}function Sz(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function $2(e,t){let n=typeof t=="string"?_h(t).search:t.search;if(e[e.length-1].route.index&&Sz(n||""))return e[e.length-1];let r=u0e(e);return r[r.length-1]}function gQ(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function ET(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function vdt(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Hb(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function ydt(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function bp(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function bdt(e,t){try{let n=e.sessionStorage.getItem(f0e);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function wdt(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(f0e,JSON.stringify(n))}catch(r){L0(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.28.0 * * Copyright (c) Remix Software Inc. @@ -492,7 +492,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function A6(){return A6=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),d.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=n$(c,JSON.parse(o),a,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:wf([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,o,a,e])}const wdt=d.createContext(null);function xdt(e){let t=d.useContext(Td).outlet;return t&&d.createElement(wdt.Provider,{value:e},t)}function Sdt(){let{matches:e}=d.useContext(Td),t=e[e.length-1];return t?t.params:{}}function m0e(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=d.useContext(Ch),{matches:i}=d.useContext(Td),{pathname:a}=t1(),o=JSON.stringify(t$(i,r.v7_relativeSplatPath));return d.useMemo(()=>n$(e,JSON.parse(o),a,n==="path"),[e,o,a,n])}function Cdt(e,t,n,r){Ly()||jr(!1);let{navigator:i}=d.useContext(Ch),{matches:a}=d.useContext(Td),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=t1(),u;u=c;let f=u.pathname||"/",p=f;if(l!=="/"){let g=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let h=lm(e,{pathname:p});return Mdt(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:wf([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:wf([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,n,r)}function _dt(){let e=Idt(),t=r$(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),n?d.createElement("pre",{style:i},n):null,null)}const kdt=d.createElement(_dt,null);class Edt extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?d.createElement(Td.Provider,{value:this.props.routeContext},d.createElement(p0e.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $dt(e){let{routeContext:t,match:n,children:r}=e,i=d.useContext(i$);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),d.createElement(Td.Provider,{value:t},r)}function Mdt(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let u=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||jr(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,f,p)=>{let h,m=!1,g=null,v=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||kdt,l&&(c<0&&p===0?(m=!0,v=null):c===p&&(m=!0,v=f.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,p+1)),b=()=>{let w;return h?w=g:m?w=v:f.route.Component?w=d.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=u,d.createElement($dt,{match:f,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?d.createElement(Edt,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):b()},null)}var g0e=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(g0e||{}),D6=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(D6||{});function Tdt(e){let t=d.useContext(i$);return t||jr(!1),t}function Pdt(e){let t=d.useContext(f0e);return t||jr(!1),t}function Odt(e){let t=d.useContext(Td);return t||jr(!1),t}function v0e(e){let t=Odt(),n=t.matches[t.matches.length-1];return n.route.id||jr(!1),n.route.id}function Idt(){var e;let t=d.useContext(p0e),n=Pdt(D6.UseRouteError),r=v0e(D6.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Rdt(){let{router:e}=Tdt(g0e.UseNavigateStable),t=v0e(D6.UseNavigateStable),n=d.useRef(!1);return h0e(()=>{n.current=!0}),d.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,A6({fromRouteId:t},a)))},[e,t])}const hQ={};function jdt(e,t){hQ[t]||(hQ[t]=!0,console.warn(t))}const L1=(e,t,n)=>jdt(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Ndt(e,t){e!=null&&e.v7_startTransition||L1("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&(!t||!t.v7_relativeSplatPath)&&L1("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||L1("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||L1("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||L1("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||L1("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function Adt(e){let{to:t,replace:n,state:r,relative:i}=e;Ly()||jr(!1);let{future:a,static:o}=d.useContext(Ch),{matches:s}=d.useContext(Td),{pathname:l}=t1(),c=$o(),u=n$(t,t$(s,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(u);return d.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:i}),[c,f,i,n,r]),null}function F4(e){return xdt(e.context)}function Ddt(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Oa.Pop,navigator:a,static:o=!1,future:s}=e;Ly()&&jr(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo(()=>({basename:l,navigator:a,static:o,future:A6({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof r=="string"&&(r=Sh(r));let{pathname:u="/",search:f="",hash:p="",state:h=null,key:m="default"}=r,g=d.useMemo(()=>{let v=Fy(u,l);return v==null?null:{location:{pathname:v,search:f,hash:p,state:h,key:m},navigationType:i}},[l,u,f,p,h,m,i]);return g==null?null:d.createElement(Ch.Provider,{value:c},d.createElement(xz.Provider,{children:n,value:g}))}new Promise(()=>{});function Fdt(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function D6(){return D6=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),d.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=a$(c,JSON.parse(o),a,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:wf([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,o,a,e])}const Cdt=d.createContext(null);function _dt(e){let t=d.useContext(Rd).outlet;return t&&d.createElement(Cdt.Provider,{value:e},t)}function kdt(){let{matches:e}=d.useContext(Rd),t=e[e.length-1];return t?t.params:{}}function w0e(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=d.useContext(kh),{matches:i}=d.useContext(Rd),{pathname:a}=n1(),o=JSON.stringify(i$(i,r.v7_relativeSplatPath));return d.useMemo(()=>a$(e,JSON.parse(o),a,n==="path"),[e,o,a,n])}function Edt(e,t,n,r){By()||jr(!1);let{navigator:i}=d.useContext(kh),{matches:a}=d.useContext(Rd),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=n1(),u;u=c;let f=u.pathname||"/",p=f;if(l!=="/"){let g=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let h=cm(e,{pathname:p});return Odt(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:wf([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:wf([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,n,r)}function $dt(){let e=Ndt(),t=o$(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),n?d.createElement("pre",{style:i},n):null,null)}const Mdt=d.createElement($dt,null);class Tdt extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?d.createElement(Rd.Provider,{value:this.props.routeContext},d.createElement(y0e.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Pdt(e){let{routeContext:t,match:n,children:r}=e,i=d.useContext(s$);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),d.createElement(Rd.Provider,{value:t},r)}function Odt(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let u=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||jr(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,f,p)=>{let h,m=!1,g=null,v=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||Mdt,l&&(c<0&&p===0?(m=!0,v=null):c===p&&(m=!0,v=f.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,p+1)),w=()=>{let b;return h?b=g:m?b=v:f.route.Component?b=d.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=u,d.createElement(Pdt,{match:f,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?d.createElement(Tdt,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:w(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):w()},null)}var x0e=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(x0e||{}),F6=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(F6||{});function Rdt(e){let t=d.useContext(s$);return t||jr(!1),t}function Idt(e){let t=d.useContext(v0e);return t||jr(!1),t}function jdt(e){let t=d.useContext(Rd);return t||jr(!1),t}function S0e(e){let t=jdt(),n=t.matches[t.matches.length-1];return n.route.id||jr(!1),n.route.id}function Ndt(){var e;let t=d.useContext(y0e),n=Idt(F6.UseRouteError),r=S0e(F6.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Adt(){let{router:e}=Rdt(x0e.UseNavigateStable),t=S0e(F6.UseNavigateStable),n=d.useRef(!1);return b0e(()=>{n.current=!0}),d.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,D6({fromRouteId:t},a)))},[e,t])}const vQ={};function Ddt(e,t){vQ[t]||(vQ[t]=!0,console.warn(t))}const B1=(e,t,n)=>Ddt(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Fdt(e,t){e!=null&&e.v7_startTransition||B1("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&(!t||!t.v7_relativeSplatPath)&&B1("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||B1("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||B1("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||B1("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||B1("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function Ldt(e){let{to:t,replace:n,state:r,relative:i}=e;By()||jr(!1);let{future:a,static:o}=d.useContext(kh),{matches:s}=d.useContext(Rd),{pathname:l}=n1(),c=Mo(),u=a$(t,i$(s,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(u);return d.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:i}),[c,f,i,n,r]),null}function B4(e){return _dt(e.context)}function Bdt(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ta.Pop,navigator:a,static:o=!1,future:s}=e;By()&&jr(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo(()=>({basename:l,navigator:a,static:o,future:D6({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof r=="string"&&(r=_h(r));let{pathname:u="/",search:f="",hash:p="",state:h=null,key:m="default"}=r,g=d.useMemo(()=>{let v=Ly(u,l);return v==null?null:{location:{pathname:v,search:f,hash:p,state:h,key:m},navigationType:i}},[l,u,f,p,h,m,i]);return g==null?null:d.createElement(kh.Provider,{value:c},d.createElement(Cz.Provider,{children:n,value:g}))}new Promise(()=>{});function zdt(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.28.0 * * Copyright (c) Remix Software Inc. @@ -501,27 +501,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function p3(){return p3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Bdt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zdt(e,t){return e.button===0&&(!t||t==="_self")&&!Bdt(e)}const Hdt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Udt="6";try{window.__reactRouterVersion=Udt}catch{}function Wdt(e,t){return Qut({basename:t==null?void 0:t.basename,future:p3({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Sut({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Vdt(),routes:e,mapRouteProperties:Fdt,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function Vdt(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=p3({},t,{errors:qdt(t.errors)})),t}function qdt(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new N6(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let o=new a(i.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}const Kdt=d.createContext({isTransitioning:!1}),Gdt=d.createContext(new Map),Ydt="startTransition",mQ=Qm[Ydt],Xdt="flushSync",gQ=Voe[Xdt];function Zdt(e){mQ?mQ(e):e()}function Hb(e){gQ?gQ(e):e()}class Qdt{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Jdt(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=d.useState(n.state),[o,s]=d.useState(),[l,c]=d.useState({isTransitioning:!1}),[u,f]=d.useState(),[p,h]=d.useState(),[m,g]=d.useState(),v=d.useRef(new Map),{v7_startTransition:y}=r||{},b=d.useCallback(E=>{y?Zdt(E):E()},[y]),w=d.useCallback((E,$)=>{let{deletedFetchers:M,flushSync:P,viewTransitionOpts:I}=$;M.forEach(A=>v.current.delete(A)),E.fetchers.forEach((A,R)=>{A.data!==void 0&&v.current.set(R,A.data)});let O=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!I||O){P?Hb(()=>a(E)):b(()=>a(E));return}if(P){Hb(()=>{p&&(u&&u.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:I.currentLocation,nextLocation:I.nextLocation})});let A=n.window.document.startViewTransition(()=>{Hb(()=>a(E))});A.finished.finally(()=>{Hb(()=>{f(void 0),h(void 0),s(void 0),c({isTransitioning:!1})})}),Hb(()=>h(A));return}p?(u&&u.resolve(),p.skipTransition(),g({state:E,currentLocation:I.currentLocation,nextLocation:I.nextLocation})):(s(E),c({isTransitioning:!0,flushSync:!1,currentLocation:I.currentLocation,nextLocation:I.nextLocation}))},[n.window,p,u,v,b]);d.useLayoutEffect(()=>n.subscribe(w),[n,w]),d.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new Qdt)},[l]),d.useEffect(()=>{if(u&&o&&n.window){let E=o,$=u.promise,M=n.window.document.startViewTransition(async()=>{b(()=>a(E)),await $});M.finished.finally(()=>{f(void 0),h(void 0),s(void 0),c({isTransitioning:!1})}),h(M)}},[b,o,u,n.window]),d.useEffect(()=>{u&&o&&i.location.key===o.location.key&&u.resolve()},[u,p,i.location,o]),d.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[l.isTransitioning,m]),d.useEffect(()=>{},[]);let _=d.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,$,M)=>n.navigate(E,{state:$,preventScrollReset:M==null?void 0:M.preventScrollReset}),replace:(E,$,M)=>n.navigate(E,{replace:!0,state:$,preventScrollReset:M==null?void 0:M.preventScrollReset})}),[n]),k=n.basename||"/",S=d.useMemo(()=>({router:n,navigator:_,static:!1,basename:k}),[n,_,k]),C=d.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return d.useEffect(()=>Ndt(r,n.future),[r,n.future]),d.createElement(d.Fragment,null,d.createElement(i$.Provider,{value:S},d.createElement(f0e.Provider,{value:i},d.createElement(Gdt.Provider,{value:v.current},d.createElement(Kdt.Provider,{value:l},d.createElement(Ddt,{basename:k,location:i.location,navigationType:i.historyAction,navigator:_,future:C},i.initialized||n.future.v7_partialHydration?d.createElement(eft,{routes:n.routes,future:n.future,state:i}):t))))),null)}const eft=d.memo(tft);function tft(e){let{routes:t,future:n,state:r}=e;return Cdt(t,void 0,r,n)}const nft=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",rft=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ift=d.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:c,preventScrollReset:u,viewTransition:f}=t,p=Ldt(t,Hdt),{basename:h}=d.useContext(Ch),m,g=!1;if(typeof c=="string"&&rft.test(c)&&(m=c,nft))try{let w=new URL(window.location.href),_=c.startsWith("//")?new URL(w.protocol+c):new URL(c),k=Fy(_.pathname,h);_.origin===w.origin&&k!=null?c=k+_.search+_.hash:g=!0}catch{}let v=ydt(c,{relative:i}),y=aft(c,{replace:o,state:s,target:l,preventScrollReset:u,relative:i,viewTransition:f});function b(w){r&&r(w),w.defaultPrevented||y(w)}return d.createElement("a",p3({},p,{href:m||v,onClick:g||a?r:b,ref:n,target:l}))});var vQ;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(vQ||(vQ={}));var yQ;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(yQ||(yQ={}));function aft(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=$o(),c=t1(),u=m0e(e,{relative:o});return d.useCallback(f=>{if(zdt(f,n)){f.preventDefault();let p=r!==void 0?r:_g(c)===_g(u);l(e,{replace:p,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[c,l,u,r,i,n,e,a,o,s])}var oft=q(q({},dfe),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const y0e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},sN={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},oft),timePickerLocale:Object.assign({},y0e)};sN.lang.ok="确定";const sl="${label}不是一个有效的${type}",sft={locale:"zh-cn",Pagination:F1e,DatePicker:sN,TimePicker:y0e,Calendar:sN,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:sl,method:sl,array:sl,object:sl,number:sl,date:sl,boolean:sl,integer:sl,float:sl,regexp:sl,email:sl,url:sl,hex:sl},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}},zp=()=>{},bl=zp(),c_=Object,Qr=e=>e===bl,nd=e=>typeof e=="function",Df=(e,t)=>({...e,...t}),lft=e=>nd(e.then),DS=new WeakMap;let cft=0;const h3=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,a;if(c_(e)===e&&!r&&n!=RegExp){if(i=DS.get(e),i)return i;if(i=++cft+"~",DS.set(e,i),n==Array){for(i="@",a=0;aa$&&typeof window.requestAnimationFrame!=Sz,b0e=(e,t)=>{const n=of.get(e);return[()=>!Qr(t)&&e.get(t)||_T,r=>{if(!Qr(t)){const i=e.get(t);t in FS||(FS[t]=i),n[5](t,Df(i,r),i||_T)}},n[6],()=>!Qr(t)&&t in FS?FS[t]:!Qr(t)&&e.get(t)||_T]};let cN=!0;const dft=()=>cN,[uN,dN]=a$&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[zp,zp],fft=()=>{const e=lN&&document.visibilityState;return Qr(e)||e!=="hidden"},pft=e=>(lN&&document.addEventListener("visibilitychange",e),uN("focus",e),()=>{lN&&document.removeEventListener("visibilitychange",e),dN("focus",e)}),hft=e=>{const t=()=>{cN=!0,e()},n=()=>{cN=!1};return uN("online",t),uN("offline",n),()=>{dN("online",t),dN("offline",n)}},mft={isOnline:dft,isVisible:fft},gft={initFocus:pft,initReconnect:hft},bQ=!te.useId,m3=!a$||"Deno"in window,vft=e=>uft()?window.requestAnimationFrame(e):setTimeout(e,1),u_=m3?d.useEffect:d.useLayoutEffect,kT=typeof navigator<"u"&&navigator.connection,wQ=!m3&&kT&&(["slow-2g","2g"].includes(kT.effectiveType)||kT.saveData),Cz=e=>{if(nd(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?h3(e):"",[e,t]};let yft=0;const fN=()=>++yft,w0e=0,x0e=1,S0e=2,bft=3;var Ub={__proto__:null,ERROR_REVALIDATE_EVENT:bft,FOCUS_EVENT:w0e,MUTATE_EVENT:S0e,RECONNECT_EVENT:x0e};async function C0e(...e){const[t,n,r,i]=e,a=Df({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let o=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const c=a.revalidate!==!1,u=h=>typeof s=="function"?s(h):s!==!1,f=a.throwOnError;if(nd(n)){const h=n,m=[],g=t.keys();for(const v of g)!/^\$(inf|sub)\$/.test(v)&&h(t.get(v)._k)&&m.push(v);return Promise.all(m.map(p))}return p(n);async function p(h){const[m]=Cz(h);if(!m)return;const[g,v]=b0e(t,m),[y,b,w,_]=of.get(t),k=y[m],S=()=>c&&(delete w[m],delete _[m],k&&k[0])?k[0](S0e).then(()=>g().data):g().data;if(e.length<3)return S();let C=r,E;const $=fN();b[m]=[$,0];const M=!Qr(l),P=g(),I=P.data,O=P._c,A=Qr(O)?I:O;if(M&&(l=nd(l)?l(A,I):l,v({data:l,_c:A})),nd(C))try{C=C(A)}catch(j){E=j}if(C&&lft(C))if(C=await C.catch(j=>{E=j}),$!==b[m][0]){if(E)throw E;return C}else E&&M&&u(E)&&(o=!0,C=A,v({data:C,_c:bl}));o&&(E||(nd(o)&&(C=o(C,A)),v({data:C,error:bl,_c:bl}))),b[m][1]=fN();const R=await S();if(v({_c:bl}),E){if(f)throw E;return}return o?R:C}}const xQ=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},_0e=(e,t)=>{if(!of.has(e)){const n=Df(gft,t),r={},i=C0e.bind(bl,e);let a=zp;const o={},s=(u,f)=>{const p=o[u]||[];return o[u]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},l=(u,f,p)=>{e.set(u,f);const h=o[u];if(h)for(const m of h)m(f,p)},c=()=>{if(!of.has(e)&&(of.set(e,[r,{},{},{},i,l,s]),!m3)){const u=n.initFocus(setTimeout.bind(bl,xQ.bind(bl,r,w0e))),f=n.initReconnect(setTimeout.bind(bl,xQ.bind(bl,r,x0e)));a=()=>{u&&u(),f&&f(),of.delete(e)}}};return c(),[e,i,c,a]}return[e,of.get(e)[4]]},wft=(e,t,n,r,i)=>{const a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!Qr(a)&&o>a||setTimeout(r,s,i)},xft=(e,t)=>h3(e)==h3(t),[_z,Sft]=_0e(new Map),k0e=Df({onLoadingSlow:zp,onSuccess:zp,onError:zp,onErrorRetry:wft,onDiscarded:zp,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:wQ?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:wQ?5e3:3e3,compare:xft,isPaused:()=>!1,cache:_z,mutate:Sft,fallback:{}},mft),E0e=(e,t)=>{const n=Df(e,t);if(t){const{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=Df(i,o))}return n},pN=d.createContext({}),Cft=e=>{const{value:t}=e,n=d.useContext(pN),r=nd(t),i=d.useMemo(()=>r?t(n):t,[r,n,t]),a=d.useMemo(()=>r?i:E0e(n,i),[r,n,i]),o=i&&i.provider,s=d.useRef(bl);o&&!s.current&&(s.current=_0e(o(a.cache||_z),i));const l=s.current;return l&&(a.cache=l[0],a.mutate=l[1]),u_(()=>{if(l)return l[2]&&l[2](),l[3]},[]),d.createElement(pN.Provider,Df(e,{value:a}))},$0e=a$&&window.__SWR_DEVTOOLS_USE__,_ft=$0e?window.__SWR_DEVTOOLS_USE__:[],kft=()=>{$0e&&(window.__SWR_DEVTOOLS_REACT__=te)},Eft=e=>nd(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],kz=()=>Df(k0e,d.useContext(pN)),$ft=e=>(t,n,r)=>e(t,n&&((...a)=>{const[o]=Cz(t),[,,,s]=of.get(_z),l=s[o];return Qr(l)?n(...a):(delete s[o],l)}),r),Mft=_ft.concat($ft),Tft=e=>function(...n){const r=kz(),[i,a,o]=Eft(n),s=E0e(r,o);let l=e;const{use:c}=s,u=(c||[]).concat(Mft);for(let f=u.length;f--;)l=u[f](l);return l(i,a||s.fetcher||null,s)},Pft=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};kft();const SQ=te.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),ET={dedupe:!0},Oft=(e,t,n)=>{const{cache:r,compare:i,suspense:a,fallbackData:o,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:f,keepPreviousData:p}=n,[h,m,g,v]=of.get(r),[y,b]=Cz(e),w=d.useRef(!1),_=d.useRef(!1),k=d.useRef(y),S=d.useRef(t),C=d.useRef(n),E=()=>C.current,$=()=>E().isVisible()&&E().isOnline(),[M,P,I,O]=b0e(r,y),A=d.useRef({}).current,R=Qr(o)?n.fallback[y]:o,j=(ce,pe)=>{for(const me in A){const re=me;if(re==="data"){if(!i(ce[re],pe[re])&&(!Qr(ce[re])||!i(ee,pe[re])))return!1}else if(pe[re]!==ce[re])return!1}return!0},N=d.useMemo(()=>{const ce=!y||!t?!1:Qr(s)?E().isPaused()||a?!1:Qr(l)?!0:l:s,pe=Ce=>{const be=Df(Ce);return delete be._k,ce?{isValidating:!0,isLoading:!0,...be}:be},me=M(),re=O(),fe=pe(me),ve=me===re?fe:pe(re);let $e=fe;return[()=>{const Ce=pe(M());return j(Ce,$e)?($e.data=Ce.data,$e.isLoading=Ce.isLoading,$e.isValidating=Ce.isValidating,$e.error=Ce.error,$e):($e=Ce,Ce)},()=>ve]},[r,y]),D=Xoe.useSyncExternalStore(d.useCallback(ce=>I(y,(pe,me)=>{j(me,pe)||ce()}),[r,y]),N[0],N[1]),V=!w.current,F=h[y]&&h[y].length>0,K=D.data,B=Qr(K)?R:K,U=D.error,Z=d.useRef(B),ee=p?Qr(K)?Z.current:K:B,ie=F&&!Qr(U)?!1:V&&!Qr(s)?s:E().isPaused()?!1:a?Qr(B)?!1:l:Qr(B)||l,Y=!!(y&&t&&V&&ie),X=Qr(D.isValidating)?Y:D.isValidating,ae=Qr(D.isLoading)?Y:D.isLoading,oe=d.useCallback(async ce=>{const pe=S.current;if(!y||!pe||_.current||E().isPaused())return!1;let me,re,fe=!0;const ve=ce||{},$e=!g[y]||!ve.dedupe,Ce=()=>bQ?!_.current&&y===k.current&&w.current:y===k.current,be={isValidating:!1,isLoading:!1},Se=()=>{P(be)},we=()=>{const ye=g[y];ye&&ye[1]===re&&delete g[y]},se={isValidating:!0};Qr(M().data)&&(se.isLoading=!0);try{if($e&&(P(se),n.loadingTimeout&&Qr(M().data)&&setTimeout(()=>{fe&&Ce()&&E().onLoadingSlow(y,n)},n.loadingTimeout),g[y]=[pe(b),fN()]),[me,re]=g[y],me=await me,$e&&setTimeout(we,n.dedupingInterval),!g[y]||g[y][1]!==re)return $e&&Ce()&&E().onDiscarded(y),!1;be.error=bl;const ye=m[y];if(!Qr(ye)&&(re<=ye[0]||re<=ye[1]||ye[1]===0))return Se(),$e&&Ce()&&E().onDiscarded(y),!1;const Oe=M().data;be.data=i(Oe,me)?Oe:me,$e&&Ce()&&E().onSuccess(me,y,n)}catch(ye){we();const Oe=E(),{shouldRetryOnError:z}=Oe;Oe.isPaused()||(be.error=ye,$e&&Ce()&&(Oe.onError(ye,y,Oe),(z===!0||nd(z)&&z(ye))&&$()&&Oe.onErrorRetry(ye,y,Oe,H=>{const G=h[y];G&&G[0]&&G[0](Ub.ERROR_REVALIDATE_EVENT,H)},{retryCount:(ve.retryCount||0)+1,dedupe:!0})))}return fe=!1,Se(),!0},[y,r]),le=d.useCallback((...ce)=>C0e(r,k.current,...ce),[]);if(u_(()=>{S.current=t,C.current=n,Qr(K)||(Z.current=K)}),u_(()=>{if(!y)return;const ce=oe.bind(bl,ET);let pe=0;const re=Pft(y,h,(fe,ve={})=>{if(fe==Ub.FOCUS_EVENT){const $e=Date.now();E().revalidateOnFocus&&$e>pe&&$()&&(pe=$e+E().focusThrottleInterval,ce())}else if(fe==Ub.RECONNECT_EVENT)E().revalidateOnReconnect&&$()&&ce();else{if(fe==Ub.MUTATE_EVENT)return oe();if(fe==Ub.ERROR_REVALIDATE_EVENT)return oe(ve)}});return _.current=!1,k.current=y,w.current=!0,P({_k:b}),ie&&(Qr(B)||m3?ce():vft(ce)),()=>{_.current=!0,re()}},[y]),u_(()=>{let ce;function pe(){const re=nd(c)?c(M().data):c;re&&ce!==-1&&(ce=setTimeout(me,re))}function me(){!M().error&&(u||E().isVisible())&&(f||E().isOnline())?oe(ET).then(pe):pe()}return pe(),()=>{ce&&(clearTimeout(ce),ce=-1)}},[c,u,f,y]),d.useDebugValue(ee),a&&Qr(B)&&y){if(!bQ&&m3)throw new Error("Fallback data is required when using suspense in SSR.");S.current=t,C.current=n,_.current=!1;const ce=v[y];if(!Qr(ce)){const pe=le(ce);SQ(pe)}if(Qr(U)){const pe=oe(ET);Qr(ee)||(pe.status="fulfilled",pe.value=!0),SQ(pe)}else throw U}return{mutate:le,get data(){return A.data=!0,ee},get error(){return A.error=!0,U},get isValidating(){return A.isValidating=!0,X},get isLoading(){return A.isLoading=!0,ae}}},Ift=c_.defineProperty(Cft,"defaultValue",{value:k0e}),Ez=Tft(Oft);var Rft=function(t,n){typeof t=="function"?t(n):Kt(t)==="object"&&t&&"current"in t&&(t.current=n)},jft=function(){for(var t=arguments.length,n=new Array(t),r=0;r=19;function Mm(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Mm(e,t.slice(0,-1))?e:M0e(e,t,n,r)}const Dft={moneySymbol:"$",form:{lightFilter:{more:"المزيد",clear:"نظف",confirm:"تأكيد",itemUnit:"عناصر"}},tableForm:{search:"ابحث",reset:"إعادة تعيين",submit:"ارسال",collapsed:"مُقلص",expand:"مُوسع",inputPlaceholder:"الرجاء الإدخال",selectPlaceholder:"الرجاء الإختيار"},alert:{clear:"نظف",selected:"محدد",item:"عنصر"},pagination:{total:{range:" ",total:"من",item:"عناصر"}},tableToolBar:{leftPin:"ثبت على اليسار",rightPin:"ثبت على اليمين",noPin:"الغاء التثبيت",leftFixedTitle:"لصق على اليسار",rightFixedTitle:"لصق على اليمين",noFixedTitle:"إلغاء الإلصاق",reset:"إعادة تعيين",columnDisplay:"الأعمدة المعروضة",columnSetting:"الإعدادات",fullScreen:"وضع كامل الشاشة",exitFullScreen:"الخروج من وضع كامل الشاشة",reload:"تحديث",density:"الكثافة",densityDefault:"افتراضي",densityLarger:"أكبر",densityMiddle:"وسط",densitySmall:"مدمج"},stepsForm:{next:"التالي",prev:"السابق",submit:"أنهى"},loginForm:{submitText:"تسجيل الدخول"},editableTable:{action:{save:"أنقذ",cancel:"إلغاء الأمر",delete:"حذف",add:"إضافة صف من البيانات"}},switch:{open:"مفتوح",close:"غلق"}},Fft={moneySymbol:"€",form:{lightFilter:{more:"Més",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col·lapsar",inputPlaceholder:"Introduïu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuració",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitjà",densitySmall:"Compacte"},stepsForm:{next:"Següent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel·lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},Lft={moneySymbol:"Kč",deleteThisLine:"Smazat tento řádek",copyThisLine:"Kopírovat tento řádek",form:{lightFilter:{more:"Víc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Položky"}},tableForm:{search:"Dotaz",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položek"}},tableToolBar:{leftPin:"Připnout doleva",rightPin:"Připnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixováno nalevo",rightFixedTitle:"Fixováno napravo",noFixedTitle:"Neopraveno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončete celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"Výchozí",densityLarger:"Větší",densityMiddle:"Střední",densitySmall:"Kompaktní"},stepsForm:{next:"Další",prev:"Předchozí",submit:"Dokončit"},loginForm:{submitText:"Přihlásit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden řádek",action:{save:"Uložit",cancel:"Zrušit",delete:"Vymazat",add:"přidat řádek dat"}},switch:{open:"otevřít",close:"zavřít"}},Bft={moneySymbol:"€",form:{lightFilter:{more:"Mehr",clear:"Zurücksetzen",confirm:"Bestätigen",itemUnit:"Einträge"}},tableForm:{search:"Suchen",reset:"Zurücksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte auswählen"},alert:{clear:"Zurücksetzen",selected:"Ausgewählt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Einträgen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zurücksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Größer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"Löschen",add:"Hinzufügen einer Datenzeile"}},switch:{open:"offen",close:"schließen"}},zft={moneySymbol:"£",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},Hft={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},Uft={moneySymbol:"€",form:{lightFilter:{more:"Más",clear:"Limpiar",confirm:"Confirmar",itemUnit:"artículos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"artículos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuración",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"añadir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},Wft={moneySymbol:"تومان",form:{lightFilter:{more:"بیشتر",clear:"پاک کردن",confirm:"تایید",itemUnit:"مورد"}},tableForm:{search:"جستجو",reset:"بازنشانی",submit:"تایید",collapsed:"نمایش بیشتر",expand:"نمایش کمتر",inputPlaceholder:"پیدا کنید",selectPlaceholder:"انتخاب کنید"},alert:{clear:"پاک سازی",selected:"انتخاب",item:"مورد"},pagination:{total:{range:" ",total:"از",item:"مورد"}},tableToolBar:{leftPin:"سنجاق به چپ",rightPin:"سنجاق به راست",noPin:"سنجاق نشده",leftFixedTitle:"ثابت شده در چپ",rightFixedTitle:"ثابت شده در راست",noFixedTitle:"شناور",reset:"بازنشانی",columnDisplay:"نمایش همه",columnSetting:"تنظیمات",fullScreen:"تمام صفحه",exitFullScreen:"خروج از حالت تمام صفحه",reload:"تازه سازی",density:"تراکم",densityDefault:"پیش فرض",densityLarger:"بزرگ",densityMiddle:"متوسط",densitySmall:"کوچک"},stepsForm:{next:"بعدی",prev:"قبلی",submit:"اتمام"},loginForm:{submitText:"ورود"},editableTable:{action:{save:"ذخیره",cancel:"لغو",delete:"حذف",add:"یک ردیف داده اضافه کنید"}},switch:{open:"باز",close:"نزدیک"}},Vft={moneySymbol:"€",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"Réinitialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"Réduire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"Sélectionner une valeur"},alert:{clear:"Réinitialiser",selected:"Sélectionné",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"éléments"}},tableToolBar:{leftPin:"Épingler à gauche",rightPin:"Épingler à gauche",noPin:"Sans épingle",leftFixedTitle:"Fixer à gauche",rightFixedTitle:"Fixer à droite",noFixedTitle:"Non fixé",reset:"Réinitialiser",columnDisplay:"Affichage colonne",columnSetting:"Réglages",fullScreen:"Plein écran",exitFullScreen:"Quitter Plein écran",reload:"Rafraichir",density:"Densité",densityDefault:"Par défaut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Précédente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de données"}},switch:{open:"ouvert",close:"près"}},qft={moneySymbol:"₪",deleteThisLine:"מחק שורה זו",copyThisLine:"העתק שורה זו",form:{lightFilter:{more:"יותר",clear:"נקה",confirm:"אישור",itemUnit:"פריטים"}},tableForm:{search:"חיפוש",reset:"איפוס",submit:"שלח",collapsed:"הרחב",expand:"כווץ",inputPlaceholder:"אנא הכנס",selectPlaceholder:"אנא בחר"},alert:{clear:"נקה",selected:"נבחר",item:"פריט"},pagination:{total:{range:" ",total:"מתוך",item:"פריטים"}},tableToolBar:{leftPin:"הצמד לשמאל",rightPin:"הצמד לימין",noPin:"לא מצורף",leftFixedTitle:"מוצמד לשמאל",rightFixedTitle:"מוצמד לימין",noFixedTitle:"לא מוצמד",reset:"איפוס",columnDisplay:"תצוגת עמודות",columnSetting:"הגדרות",fullScreen:"מסך מלא",exitFullScreen:"צא ממסך מלא",reload:"רענן",density:"רזולוציה",densityDefault:"ברירת מחדל",densityLarger:"גדול",densityMiddle:"בינוני",densitySmall:"קטן"},stepsForm:{next:"הבא",prev:"קודם",submit:"סיום"},loginForm:{submitText:"כניסה"},editableTable:{onlyOneLineEditor:"ניתן לערוך רק שורה אחת",action:{save:"שמור",cancel:"ביטול",delete:"מחיקה",add:"הוסף שורת נתונים"}},switch:{open:"פתח",close:"סגור"}},Kft={moneySymbol:"kn",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretraži",reset:"Poništi",submit:"Potvrdi",collapsed:"Raširi",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"Očisti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prikači lijevo",rightPin:"Prikači desno",noPin:"Bez prikačenja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Izađi iz punog zaslona",reload:"Ponovno učitaj",density:"Veličina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljedeći",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},Gft={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},Yft={moneySymbol:"€",form:{lightFilter:{more:"più",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalità schermo intero",exitFullScreen:"Esci da modalità schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},Xft={moneySymbol:"¥",form:{lightFilter:{more:"更に",clear:"クリア",confirm:"確認",itemUnit:"アイテム"}},tableForm:{search:"検索",reset:"リセット",submit:"送信",collapsed:"拡大",expand:"折畳",inputPlaceholder:"入力してください",selectPlaceholder:"選択してください"},alert:{clear:"クリア",selected:"選択した",item:"アイテム"},pagination:{total:{range:"レコード",total:"/合計",item:" "}},tableToolBar:{leftPin:"左に固定",rightPin:"右に固定",noPin:"キャンセル",leftFixedTitle:"左に固定された項目",rightFixedTitle:"右に固定された項目",noFixedTitle:"固定されてない項目",reset:"リセット",columnDisplay:"表示列",columnSetting:"列表示設定",fullScreen:"フルスクリーン",exitFullScreen:"終了",reload:"更新",density:"行高",densityDefault:"デフォルト",densityLarger:"大",densityMiddle:"中",densitySmall:"小"},stepsForm:{next:"次へ",prev:"前へ",submit:"送信"},loginForm:{submitText:"ログイン"},editableTable:{action:{save:"保存",cancel:"キャンセル",delete:"削除",add:"追加"}},switch:{open:"開く",close:"閉じる"}},Zft={moneySymbol:"₩",form:{lightFilter:{more:"더보기",clear:"초기화",confirm:"확인",itemUnit:"건수"}},tableForm:{search:"조회",reset:"초기화",submit:"제출",collapsed:"확장",expand:"닫기",inputPlaceholder:"입력해 주세요",selectPlaceholder:"선택해 주세요"},alert:{clear:"취소",selected:"선택",item:"건"},pagination:{total:{range:" ",total:"/ 총",item:"건"}},tableToolBar:{leftPin:"왼쪽으로 핀",rightPin:"오른쪽으로 핀",noPin:"핀 제거",leftFixedTitle:"왼쪽으로 고정",rightFixedTitle:"오른쪽으로 고정",noFixedTitle:"비고정",reset:"초기화",columnDisplay:"컬럼 표시",columnSetting:"설정",fullScreen:"전체 화면",exitFullScreen:"전체 화면 취소",reload:"새로 고침",density:"여백",densityDefault:"기본",densityLarger:"많은 여백",densityMiddle:"중간 여백",densitySmall:"좁은 여백"},stepsForm:{next:"다음",prev:"이전",submit:"종료"},loginForm:{submitText:"로그인"},editableTable:{action:{save:"저장",cancel:"취소",delete:"삭제",add:"데이터 행 추가"}},switch:{open:"열",close:"가까 운"}},Qft={moneySymbol:"₮",form:{lightFilter:{more:"Илүү",clear:"Цэвэрлэх",confirm:"Баталгаажуулах",itemUnit:"Нэгжүүд"}},tableForm:{search:"Хайх",reset:"Шинэчлэх",submit:"Илгээх",collapsed:"Өргөтгөх",expand:"Хураах",inputPlaceholder:"Утга оруулна уу",selectPlaceholder:"Утга сонгоно уу"},alert:{clear:"Цэвэрлэх",selected:"Сонгогдсон",item:"Нэгж"},pagination:{total:{range:" ",total:"Нийт",item:"мөр"}},tableToolBar:{leftPin:"Зүүн тийш бэхлэх",rightPin:"Баруун тийш бэхлэх",noPin:"Бэхлэхгүй",leftFixedTitle:"Зүүн зэрэгцүүлэх",rightFixedTitle:"Баруун зэрэгцүүлэх",noFixedTitle:"Зэрэгцүүлэхгүй",reset:"Шинэчлэх",columnDisplay:"Баганаар харуулах",columnSetting:"Тохиргоо",fullScreen:"Бүтэн дэлгэцээр",exitFullScreen:"Бүтэн дэлгэц цуцлах",reload:"Шинэчлэх",density:"Хэмжээ",densityDefault:"Хэвийн",densityLarger:"Том",densityMiddle:"Дунд",densitySmall:"Жижиг"},stepsForm:{next:"Дараах",prev:"Өмнөх",submit:"Дуусгах"},loginForm:{submitText:"Нэвтрэх"},editableTable:{action:{save:"Хадгалах",cancel:"Цуцлах",delete:"Устгах",add:"Мөр нэмэх"}},switch:{open:"Нээх",close:"Хаах"}},Jft={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},ept={moneySymbol:"zł",form:{lightFilter:{more:"Więcej",clear:"Wyczyść",confirm:"Potwierdź",itemUnit:"Ilość"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierdź",collapsed:"Pokaż wiecej",expand:"Pokaż mniej",inputPlaceholder:"Proszę podać",selectPlaceholder:"Proszę wybrać"},alert:{clear:"Wyczyść",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpisów"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypięte do lewej",rightFixedTitle:"Przypięte do prawej",noFixedTitle:"Nieprzypięte",reset:"Reset",columnDisplay:"Wyświetlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pełen ekran",exitFullScreen:"Zamknij pełen ekran",reload:"Odśwież",density:"Odstęp",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Zaloguj się"},editableTable:{action:{save:"Zapisać",cancel:"Anuluj",delete:"Usunąć",add:"dodawanie wiersza danych"}},switch:{open:"otwierać",close:"zamykać"}},tpt={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar à esquerda",rightPin:"Fixar à direita",noPin:"Desfixado",leftFixedTitle:"Fixado à esquerda",rightFixedTitle:"Fixado à direita",noFixedTitle:"Não fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configurações",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padrão",densityLarger:"Largo",densityMiddle:"Médio",densitySmall:"Compacto"},stepsForm:{next:"Próximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},npt={moneySymbol:"₽",form:{lightFilter:{more:"Еще",clear:"Очистить",confirm:"ОК",itemUnit:"Позиции"}},tableForm:{search:"Найти",reset:"Сброс",submit:"Отправить",collapsed:"Развернуть",expand:"Свернуть",inputPlaceholder:"Введите значение",selectPlaceholder:"Выберите значение"},alert:{clear:"Очистить",selected:"Выбрано",item:"элементов"},pagination:{total:{range:" ",total:"из",item:"элементов"}},tableToolBar:{leftPin:"Закрепить слева",rightPin:"Закрепить справа",noPin:"Открепить",leftFixedTitle:"Закреплено слева",rightFixedTitle:"Закреплено справа",noFixedTitle:"Не закреплено",reset:"Сброс",columnDisplay:"Отображение столбца",columnSetting:"Настройки",fullScreen:"Полный экран",exitFullScreen:"Выйти из полноэкранного режима",reload:"Обновить",density:"Размер",densityDefault:"По умолчанию",densityLarger:"Большой",densityMiddle:"Средний",densitySmall:"Сжатый"},stepsForm:{next:"Следующий",prev:"Предыдущий",submit:"Завершить"},loginForm:{submitText:"Вход"},editableTable:{action:{save:"Сохранить",cancel:"Отменить",delete:"Удалить",add:"добавить ряд данных"}},switch:{open:"Открытый чемпионат мира по теннису",close:"По адресу:"}},rpt={moneySymbol:"€",deleteThisLine:"Odstrániť tento riadok",copyThisLine:"Skopírujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vyčistiť",confirm:"Potvrďte",itemUnit:"Položky"}},tableForm:{search:"Vyhladať",reset:"Resetovať",submit:"Odoslať",collapsed:"Rozbaliť",expand:"Zbaliť",inputPlaceholder:"Prosím, zadajte",selectPlaceholder:"Prosím, vyberte"},alert:{clear:"Vyčistiť",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položiek"}},tableToolBar:{leftPin:"Pripnúť vľavo",rightPin:"Pripnúť vpravo",noPin:"Odopnuté",leftFixedTitle:"Fixované na ľavo",rightFixedTitle:"Fixované na pravo",noFixedTitle:"Nefixované",reset:"Resetovať",columnDisplay:"Zobrazenie stĺpcov",columnSetting:"Nastavenia",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončiť celú obrazovku",reload:"Obnoviť",density:"Hustota",densityDefault:"Predvolené",densityLarger:"Väčšie",densityMiddle:"Stredné",densitySmall:"Kompaktné"},stepsForm:{next:"Ďalšie",prev:"Predchádzajúce",submit:"Potvrdiť"},loginForm:{submitText:"Prihlásiť sa"},editableTable:{onlyOneLineEditor:"Upravovať možno iba jeden riadok",action:{save:"Uložiť",cancel:"Zrušiť",delete:"Odstrániť",add:"pridať riadok údajov"}},switch:{open:"otvoriť",close:"zavrieť"}},ipt={moneySymbol:"RSD",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pronađi",reset:"Resetuj",submit:"Pošalji",collapsed:"Proširi",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"Očisti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zakači levo",rightPin:"Zakači desno",noPin:"Nije zakačeno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Podešavanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osveži",density:"Veličina",densityDefault:"Podrazumevana",densityLarger:"Veća",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sačuvaj",cancel:"Poništi",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"Отворите",close:"Затворите"}},apt={moneySymbol:"฿",deleteThisLine:"ลบบรรทัดนี้",copyThisLine:"คัดลอกบรรทัดนี้",form:{lightFilter:{more:"มากกว่า",clear:"ชัดเจน",confirm:"ยืนยัน",itemUnit:"รายการ"}},tableForm:{search:"สอบถาม",reset:"รีเซ็ต",submit:"ส่ง",collapsed:"ขยาย",expand:"ทรุด",inputPlaceholder:"กรุณาป้อน",selectPlaceholder:"โปรดเลือก"},alert:{clear:"ชัดเจน",selected:"เลือกแล้ว",item:"รายการ"},pagination:{total:{range:" ",total:"ของ",item:"รายการ"}},tableToolBar:{leftPin:"ปักหมุดไปทางซ้าย",rightPin:"ปักหมุดไปทางขวา",noPin:"เลิกตรึงแล้ว",leftFixedTitle:"แก้ไขด้านซ้าย",rightFixedTitle:"แก้ไขด้านขวา",noFixedTitle:"ไม่คงที่",reset:"รีเซ็ต",columnDisplay:"การแสดงคอลัมน์",columnSetting:"การตั้งค่า",fullScreen:"เต็มจอ",exitFullScreen:"ออกจากโหมดเต็มหน้าจอ",reload:"รีเฟรช",density:"ความหนาแน่น",densityDefault:"ค่าเริ่มต้น",densityLarger:"ขนาดใหญ่ขึ้น",densityMiddle:"กลาง",densitySmall:"กะทัดรัด"},stepsForm:{next:"ถัดไป",prev:"ก่อนหน้า",submit:"เสร็จ"},loginForm:{submitText:"เข้าสู่ระบบ"},editableTable:{onlyOneLineEditor:"แก้ไขได้เพียงบรรทัดเดียวเท่านั้น",action:{save:"บันทึก",cancel:"ยกเลิก",delete:"ลบ",add:"เพิ่มแถวของข้อมูล"}},switch:{open:"เปิด",close:"ปิด"}},opt={moneySymbol:"₺",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"Öğeler"}},tableForm:{search:"Filtrele",reset:"Sıfırla",submit:"Gönder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek için bir değer girin",selectPlaceholder:"Filtrelemek için bir değer seçin"},alert:{clear:"Temizle",selected:"Seçili",item:"Öğe"},pagination:{total:{range:" ",total:"Toplam",item:"Öğe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sağa sabitle",noPin:"Sabitlemeyi kaldır",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sağa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"Sıfırla",columnDisplay:"Kolon Görünümü",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan Çık",reload:"Yenile",density:"Kalınlık",densityDefault:"Varsayılan",densityLarger:"Büyük",densityMiddle:"Orta",densitySmall:"Küçük"},stepsForm:{next:"Sıradaki",prev:"Önceki",submit:"Gönder"},loginForm:{submitText:"Giriş Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazgeç",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"açık",close:"kapatmak"}},spt={moneySymbol:"₴",deleteThisLine:"Видатили рядок",copyThisLine:"Скопіювати рядок",form:{lightFilter:{more:"Ще",clear:"Очистити",confirm:"Ок",itemUnit:"Позиції"}},tableForm:{search:"Пошук",reset:"Очистити",submit:"Відправити",collapsed:"Розгорнути",expand:"Згорнути",inputPlaceholder:"Введіть значення",selectPlaceholder:"Оберіть значення"},alert:{clear:"Очистити",selected:"Обрано",item:"елементів"},pagination:{total:{range:" ",total:"з",item:"елементів"}},tableToolBar:{leftPin:"Закріпити зліва",rightPin:"Закріпити справа",noPin:"Відкріпити",leftFixedTitle:"Закріплено зліва",rightFixedTitle:"Закріплено справа",noFixedTitle:"Не закріплено",reset:"Скинути",columnDisplay:"Відображення стовпців",columnSetting:"Налаштування",fullScreen:"Повноекранний режим",exitFullScreen:"Вийти з повноекранного режиму",reload:"Оновити",density:"Розмір",densityDefault:"За замовчуванням",densityLarger:"Великий",densityMiddle:"Середній",densitySmall:"Стислий"},stepsForm:{next:"Наступний",prev:"Попередній",submit:"Завершити"},loginForm:{submitText:"Вхіх"},editableTable:{onlyOneLineEditor:"Тільки один рядок може бути редагований одночасно",action:{save:"Зберегти",cancel:"Відмінити",delete:"Видалити",add:"додати рядок"}},switch:{open:"Відкрито",close:"Закрито"}},lpt={moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yig‘ish",expand:"Kengaytirish",inputPlaceholder:"Qiymatni kiriting",selectPlaceholder:"Qiymatni tanlang"},alert:{clear:"Tozalash",selected:"Tanlangan",item:"elementlar"},pagination:{total:{range:" ",total:"dan",item:"elementlar"}},tableToolBar:{leftPin:"Chapga mahkamlash",rightPin:"O‘ngga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"O‘ngga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni ko‘rsatish",columnSetting:"Sozlamalar",fullScreen:"To‘liq ekran",exitFullScreen:"To‘liq ekrandan chiqish",reload:"Yangilash",density:"O‘lcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"O‘rtacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"O‘chirish",add:"maʼlumotlar qatorini qo‘shish"}},switch:{open:"Ochish",close:"Yopish"}},cpt={moneySymbol:"₫",form:{lightFilter:{more:"Nhiều hơn",clear:"Trong",confirm:"Xác nhận",itemUnit:"Mục"}},tableForm:{search:"Tìm kiếm",reset:"Làm lại",submit:"Gửi đi",collapsed:"Mở rộng",expand:"Thu gọn",inputPlaceholder:"nhập dữ liệu",selectPlaceholder:"Vui lòng chọn"},alert:{clear:"Xóa",selected:"đã chọn",item:"mục"},pagination:{total:{range:" ",total:"trên",item:"mặt hàng"}},tableToolBar:{leftPin:"Ghim trái",rightPin:"Ghim phải",noPin:"Bỏ ghim",leftFixedTitle:"Cố định trái",rightFixedTitle:"Cố định phải",noFixedTitle:"Chưa cố định",reset:"Làm lại",columnDisplay:"Cột hiển thị",columnSetting:"Cấu hình",fullScreen:"Chế độ toàn màn hình",exitFullScreen:"Thoát chế độ toàn màn hình",reload:"Làm mới",density:"Mật độ hiển thị",densityDefault:"Mặc định",densityLarger:"Mặc định",densityMiddle:"Trung bình",densitySmall:"Chật"},stepsForm:{next:"Sau",prev:"Trước",submit:"Kết thúc"},loginForm:{submitText:"Đăng nhập"},editableTable:{action:{save:"Cứu",cancel:"Hủy",delete:"Xóa",add:"thêm một hàng dữ liệu"}},switch:{open:"mở",close:"đóng"}},upt={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"宽松",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}},dpt={moneySymbol:"NT$",deleteThisLine:"刪除此项",copyThisLine:"複製此项",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"查詢",reset:"重置",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選擇",selected:"已選擇",item:"項"},pagination:{total:{range:"第",total:"條/總共",item:"條"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列設置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}},fpt={moneySymbol:"€",deleteThisLine:"Verwijder deze regel",copyThisLine:"Kopieer deze regel",form:{lightFilter:{more:"Meer filters",clear:"Wissen",confirm:"Bevestigen",itemUnit:"item"}},tableForm:{search:"Zoeken",reset:"Resetten",submit:"Indienen",collapsed:"Uitvouwen",expand:"Inklappen",inputPlaceholder:"Voer in",selectPlaceholder:"Selecteer"},alert:{clear:"Selectie annuleren",selected:"Geselecteerd",item:"item"},pagination:{total:{range:"Van",total:"items/totaal",item:"items"}},tableToolBar:{leftPin:"Vastzetten aan begin",rightPin:"Vastzetten aan einde",noPin:"Niet vastzetten",leftFixedTitle:"Vastzetten aan de linkerkant",rightFixedTitle:"Vastzetten aan de rechterkant",noFixedTitle:"Niet vastzetten",reset:"Resetten",columnDisplay:"Kolomweergave",columnSetting:"Kolominstellingen",fullScreen:"Volledig scherm",exitFullScreen:"Verlaat volledig scherm",reload:"Vernieuwen",density:"Dichtheid",densityDefault:"Normaal",densityLarger:"Ruim",densityMiddle:"Gemiddeld",densitySmall:"Compact"},stepsForm:{next:"Volgende stap",prev:"Vorige stap",submit:"Indienen"},loginForm:{submitText:"Inloggen"},editableTable:{onlyOneLineEditor:"Slechts één regel tegelijk bewerken",action:{save:"Opslaan",cancel:"Annuleren",delete:"Verwijderen",add:"Een regel toevoegen"}},switch:{open:"Openen",close:"Sluiten"}},ppt={moneySymbol:"RON",deleteThisLine:"Șterge acest rând",copyThisLine:"Copiază acest rând",form:{lightFilter:{more:"Mai multe filtre",clear:"Curăță",confirm:"Confirmă",itemUnit:"elemente"}},tableForm:{search:"Caută",reset:"Resetează",submit:"Trimite",collapsed:"Extinde",expand:"Restrânge",inputPlaceholder:"Introduceți",selectPlaceholder:"Selectați"},alert:{clear:"Anulează selecția",selected:"Selectat",item:"elemente"},pagination:{total:{range:"De la",total:"elemente/total",item:"elemente"}},tableToolBar:{leftPin:"Fixează la început",rightPin:"Fixează la sfârșit",noPin:"Nu fixa",leftFixedTitle:"Fixează în stânga",rightFixedTitle:"Fixează în dreapta",noFixedTitle:"Nu fixa",reset:"Resetează",columnDisplay:"Afișare coloane",columnSetting:"Setări coloane",fullScreen:"Ecran complet",exitFullScreen:"Ieși din ecran complet",reload:"Reîncarcă",density:"Densitate",densityDefault:"Normal",densityLarger:"Larg",densityMiddle:"Mediu",densitySmall:"Compact"},stepsForm:{next:"Pasul următor",prev:"Pasul anterior",submit:"Trimite"},loginForm:{submitText:"Autentificare"},editableTable:{onlyOneLineEditor:"Se poate edita doar un rând simultan",action:{save:"Salvează",cancel:"Anulează",delete:"Șterge",add:"Adaugă un rând"}},switch:{open:"Deschide",close:"Închide"}},hpt={moneySymbol:"SEK",deleteThisLine:"Radera denna rad",copyThisLine:"Kopiera denna rad",form:{lightFilter:{more:"Fler filter",clear:"Rensa",confirm:"Bekräfta",itemUnit:"objekt"}},tableForm:{search:"Sök",reset:"Återställ",submit:"Skicka",collapsed:"Expandera",expand:"Fäll ihop",inputPlaceholder:"Vänligen ange",selectPlaceholder:"Vänligen välj"},alert:{clear:"Avbryt val",selected:"Vald",item:"objekt"},pagination:{total:{range:"Från",total:"objekt/totalt",item:"objekt"}},tableToolBar:{leftPin:"Fäst till vänster",rightPin:"Fäst till höger",noPin:"Inte fäst",leftFixedTitle:"Fäst till vänster",rightFixedTitle:"Fäst till höger",noFixedTitle:"Inte fäst",reset:"Återställ",columnDisplay:"Kolumnvisning",columnSetting:"Kolumninställningar",fullScreen:"Fullskärm",exitFullScreen:"Avsluta fullskärm",reload:"Ladda om",density:"Täthet",densityDefault:"Normal",densityLarger:"Lös",densityMiddle:"Medium",densitySmall:"Kompakt"},stepsForm:{next:"Nästa steg",prev:"Föregående steg",submit:"Skicka"},loginForm:{submitText:"Logga in"},editableTable:{onlyOneLineEditor:"Endast en rad kan redigeras åt gången",action:{save:"Spara",cancel:"Avbryt",delete:"Radera",add:"Lägg till en rad"}},switch:{open:"Öppna",close:"Stäng"}};var ni=function(t,n){return{getMessage:function(i,a){var o=Mm(n,i.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(o)return o;var s=t.replace("_","-");if(s==="zh-CN")return a;var l=kg["zh-CN"];return l?l.getMessage(i,a):a},locale:t}},mpt=ni("mn_MN",Qft),gpt=ni("ar_EG",Dft),Rv=ni("zh_CN",upt),vpt=ni("en_US",Hft),ypt=ni("en_GB",zft),bpt=ni("vi_VN",cpt),wpt=ni("it_IT",Yft),xpt=ni("ja_JP",Xft),Spt=ni("es_ES",Uft),Cpt=ni("ca_ES",Fft),_pt=ni("ru_RU",npt),kpt=ni("sr_RS",ipt),Ept=ni("ms_MY",Jft),$pt=ni("zh_TW",dpt),Mpt=ni("fr_FR",Vft),Tpt=ni("pt_BR",tpt),Ppt=ni("ko_KR",Zft),Opt=ni("id_ID",Gft),Ipt=ni("de_DE",Bft),Rpt=ni("fa_IR",Wft),jpt=ni("tr_TR",opt),Npt=ni("pl_PL",ept),Apt=ni("hr_",Kft),Dpt=ni("th_TH",apt),Fpt=ni("cs_cz",Lft),Lpt=ni("sk_SK",rpt),Bpt=ni("he_IL",qft),zpt=ni("uk_UA",spt),Hpt=ni("uz_UZ",lpt),Upt=ni("nl_NL",fpt),Wpt=ni("ro_RO",ppt),Vpt=ni("sv_SE",hpt),kg={"mn-MN":mpt,"ar-EG":gpt,"zh-CN":Rv,"en-US":vpt,"en-GB":ypt,"vi-VN":bpt,"it-IT":wpt,"ja-JP":xpt,"es-ES":Spt,"ca-ES":Cpt,"ru-RU":_pt,"sr-RS":kpt,"ms-MY":Ept,"zh-TW":$pt,"fr-FR":Mpt,"pt-BR":Tpt,"ko-KR":Ppt,"id-ID":Opt,"de-DE":Ipt,"fa-IR":Rpt,"tr-TR":jpt,"pl-PL":Npt,"hr-HR":Apt,"th-TH":Dpt,"cs-CZ":Fpt,"sk-SK":Lpt,"he-IL":Bpt,"uk-UA":zpt,"uz-UZ":Hpt,"nl-NL":Upt,"ro-RO":Wpt,"sv-SE":Vpt},qpt=Object.keys(kg),T0e=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return qpt.find(function(r){var i=r.toLocaleLowerCase();return i.includes(n)})};function wo(e,t){Kpt(e)&&(e="100%");var n=Gpt(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function LS(e){return Math.min(1,Math.max(0,e))}function Kpt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Gpt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function P0e(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function BS(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Tm(e){return e.length===1?"0"+e:String(e)}function Ypt(e,t,n){return{r:wo(e,255)*255,g:wo(t,255)*255,b:wo(n,255)*255}}function _Q(e,t,n){e=wo(e,255),t=wo(t,255),n=wo(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=0,s=(r+i)/2;if(r===i)o=0,a=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Xpt(e,t,n){var r,i,a;if(e=wo(e,360),t=wo(t,100),n=wo(n,100),t===0)i=n,a=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=$T(s,o,e+1/3),i=$T(s,o,e),a=$T(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function kQ(e,t,n){e=wo(e,255),t=wo(t,255),n=wo(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=r,s=r-i,l=r===0?0:s/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var hN={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function tht(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=iht(e)),typeof e=="object"&&(Hd(e.r)&&Hd(e.g)&&Hd(e.b)?(t=Ypt(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Hd(e.h)&&Hd(e.s)&&Hd(e.v)?(r=BS(e.s),i=BS(e.v),t=Zpt(e.h,r,i),o=!0,s="hsv"):Hd(e.h)&&Hd(e.s)&&Hd(e.l)&&(r=BS(e.s),a=BS(e.l),t=Xpt(e.h,r,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=P0e(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var nht="[-\\+]?\\d+%?",rht="[-\\+]?\\d*\\.\\d+%?",Hp="(?:".concat(rht,")|(?:").concat(nht,")"),MT="[\\s|\\(]+(".concat(Hp,")[,|\\s]+(").concat(Hp,")[,|\\s]+(").concat(Hp,")\\s*\\)?"),TT="[\\s|\\(]+(".concat(Hp,")[,|\\s]+(").concat(Hp,")[,|\\s]+(").concat(Hp,")[,|\\s]+(").concat(Hp,")\\s*\\)?"),Ac={CSS_UNIT:new RegExp(Hp),rgb:new RegExp("rgb"+MT),rgba:new RegExp("rgba"+TT),hsl:new RegExp("hsl"+MT),hsla:new RegExp("hsla"+TT),hsv:new RegExp("hsv"+MT),hsva:new RegExp("hsva"+TT),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function iht(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(hN[e])e=hN[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ac.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ac.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ac.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Ac.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ac.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Ac.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ac.hex8.exec(e),n?{r:cl(n[1]),g:cl(n[2]),b:cl(n[3]),a:$Q(n[4]),format:t?"name":"hex8"}:(n=Ac.hex6.exec(e),n?{r:cl(n[1]),g:cl(n[2]),b:cl(n[3]),format:t?"name":"hex"}:(n=Ac.hex4.exec(e),n?{r:cl(n[1]+n[1]),g:cl(n[2]+n[2]),b:cl(n[3]+n[3]),a:$Q(n[4]+n[4]),format:t?"name":"hex8"}:(n=Ac.hex3.exec(e),n?{r:cl(n[1]+n[1]),g:cl(n[2]+n[2]),b:cl(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Hd(e){return!!Ac.CSS_UNIT.exec(String(e))}var aht=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=eht(t)),this.originalInput=t;var i=tht(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=P0e(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=kQ(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=kQ(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=_Q(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=_Q(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),EQ(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Qpt(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(wo(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(wo(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+EQ(this.r,this.g,this.b,!1),n=0,r=Object.entries(hN);n=0,a=!n&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=LS(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=LS(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=LS(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=LS(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],a=360/t,o=1;o1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,i=1103547991^n,a=0,o;a>>16,2246822507)^Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&i)+(r>>>0)},$z=fg(function(e){return e}),I0e={theme:$z,token:q(q({},g3),zo==null||(PT=zo.defaultAlgorithm)===null||PT===void 0?void 0:PT.call(zo,zo==null?void 0:zo.defaultSeed)),hashId:"pro-".concat(O0e(JSON.stringify(g3)))},oht=function(){return I0e};const sht=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:g3,emptyTheme:$z,hashCode:O0e,token:I0e,useToken:oht},Symbol.toStringTag,{value:"Module"}));var ul=function(t,n){return new aht(t).setAlpha(n).toRgbString()},lht=function(){return typeof zo>"u"||!zo?sht:zo},vd=lht(),d_=vd.useToken,OT=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}};function _i(e,t){var n,r=d.useContext(ou),i=r.token,a=i===void 0?{}:i,o=d.useContext(ou),s=o.hashed,l=d_(),c=l.token,u=l.hashId,f=d.useContext(ou),p=f.theme,h=d.useContext(zn.ConfigContext),m=h.getPrefixCls,g=h.csp;return a.layout||(a=q({},c)),a.proComponentsCls=(n=a.proComponentsCls)!==null&&n!==void 0?n:".".concat(m("pro")),a.antCls=".".concat(m()),{wrapSSR:Zw({theme:p,token:a,path:[e],nonce:g==null?void 0:g.nonce},function(){return t(a)}),hashId:s?u:""}}var cht=function(t,n){var r,i,a,o,s,l=q({},t);return q(q({bgLayout:"linear-gradient(".concat(n.colorBgContainer,", ").concat(n.colorBgLayout," 28%)"),colorTextAppListIcon:n.colorTextSecondary,appListIconHoverBgColor:l==null||(r=l.sider)===null||r===void 0?void 0:r.colorBgMenuItemSelected,colorBgAppListIconHover:ul(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},l),{},{header:q({colorBgHeader:ul(n.colorBgElevated,.6),colorBgScrollHeader:ul(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:ul(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(l==null||(i=l.header)===null||i===void 0?void 0:i.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(a=l.header)===null||a===void 0?void 0:a.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:ul(n.colorTextBase,.95),colorBgRightActionsItemHover:ul(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},l.header),sider:q({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:ul(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:ul(n.colorTextBase,.06),colorBgMenuItemHover:ul(n.colorTextBase,.03),colorBgMenuItemSelected:ul(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:ul(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:ul(n.colorTextBase,.95)},l.sider),pageContainer:q({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((o=l.pageContainer)===null||o===void 0?void 0:o.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((s=l.pageContainer)===null||s===void 0?void 0:s.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:n.colorBgElevated},l.pageContainer)})},uht=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i1,ce=R.getMessage("form.lightFilter.itemUnit","项");return typeof Y=="string"&&Y.length>k&&le?"...".concat(U.length).concat(ce):""},ae=X();return x.jsxs("span",{title:typeof Y=="string"?Y:void 0,style:{display:"inline-flex",alignItems:"center"},children:[ie,x.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof Y=="string"?Y==null||(Z=Y.toString())===null||Z===void 0||(ee=Z.substr)===null||ee===void 0?void 0:ee.call(Z,0,k):Y}),ae]})}return B||p};return O(x.jsxs("span",{className:Ee(P,A,"".concat(P,"-").concat((i=(a=t.size)!==null&&a!==void 0?a:E)!==null&&i!==void 0?i:"middle"),ne(ne(ne(ne({},"".concat(P,"-active"),(Array.isArray(l)?l.length>0:!!l)||l===0),"".concat(P,"-disabled"),c),"".concat(P,"-bordered"),g),"".concat(P,"-allow-clear"),w),h),style:v,ref:N,onClick:function(){var B;t==null||(B=t.onClick)===null||B===void 0||B.call(t)},children:[F(o,l),(l||l===0)&&w&&x.jsx($d,{role:"button",title:R.getMessage("form.lightFilter.clear","清除"),className:Ee("".concat(P,"-icon"),A,"".concat(P,"-close")),onClick:function(B){c||s==null||s(),B.stopPropagation()},ref:j}),y!==!1?y??x.jsx($y,{className:Ee("".concat(P,"-icon"),A,"".concat(P,"-arrow"))}):null]}))},Qf=te.forwardRef(Cht),oc=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},_ht=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,MQ=function(t){return t==="*"||t==="x"||t==="X"},TQ=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},kht=function(t,n){return Kt(t)!==Kt(n)?[String(t),String(n)]:[t,n]},Eht=function(t,n){if(MQ(t)||MQ(n))return 0;var r=kht(TQ(t),TQ(n)),i=Te(r,2),a=i[0],o=i[1];return a>o?1:a"u"?Rf:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||Rf},s$=function(t,n){var r=L4(R0e(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return oc(r)},Mht=function(t){return ne(ne(ne({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function Tht(e){return _i("FilterDropdown",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[Mht(n)]})}var Pht=function(t){var n=t.children,r=t.label,i=t.footer,a=t.open,o=t.onOpenChange,s=t.disabled,l=t.onVisibleChange,c=t.visible,u=t.footerRender,f=t.placement,p=d.useContext(zn.ConfigContext),h=p.getPrefixCls,m=h("pro-core-field-dropdown"),g=Tht(m),v=g.wrapSSR,y=g.hashId,b=s$(a||c||!1,o||l),w=d.useRef(null);return v(x.jsx(yc,q(q({placement:f,trigger:["click"]},b),{},{overlayInnerStyle:{padding:0},content:x.jsxs("div",{ref:w,className:Ee("".concat(m,"-overlay"),ne(ne({},"".concat(m,"-overlay-").concat(f),f),"hashId",y)),children:[x.jsx(zn,{getPopupContainer:function(){return w.current||document.body},children:x.jsx("div",{className:"".concat(m,"-content ").concat(y).trim(),children:n})}),i&&x.jsx(bht,q({disabled:s,footerRender:u},i))]}),children:x.jsx("span",{className:"".concat(m,"-label ").concat(y).trim(),children:r})})))},Oht=function(t){return ne({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function Iht(e){return _i("LabelIconTip",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[Oht(n)]})}var Rht=te.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,i=e.subTitle,a=d.useContext(zn.ConfigContext),o=a.getPrefixCls,s=o("pro-core-label-tip"),l=Iht(s),c=l.wrapSSR,u=l.hashId;if(!n&&!i)return x.jsx(x.Fragment,{children:t});var f=typeof n=="string"||te.isValidElement(n)?{title:n}:n,p=(f==null?void 0:f.icon)||x.jsx(Grt,{});return c(x.jsxs("div",{className:Ee(s,u),onMouseDown:function(m){return m.stopPropagation()},onMouseLeave:function(m){return m.stopPropagation()},onMouseMove:function(m){return m.stopPropagation()},children:[x.jsx("div",{className:Ee("".concat(s,"-title"),u,ne({},"".concat(s,"-title-ellipsis"),r)),children:t}),i&&x.jsx("div",{className:"".concat(s,"-subtitle ").concat(u).trim(),children:i}),n&&x.jsx(Ea,q(q({},f),{},{children:x.jsx("span",{className:"".concat(s,"-icon ").concat(u).trim(),children:p})}))]}))}),j0e=te.createContext({}),N0e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n="month",r="quarter";return function(i,a){var o=a.prototype;o.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var s=o.add;o.add=function(c,u){return c=Number(c),this.$utils().p(u)===r?this.add(3*c,n):s.bind(this)(c,u)};var l=o.startOf;o.startOf=function(c,u){var f=this.$utils(),p=!!f.u(u)||u;if(f.p(c)===r){var h=this.quarter()-1;return p?this.month(3*h).startOf(n).startOf("day"):this.month(3*h+2).endOf(n).endOf("day")}return l.bind(this)(c,u)}}})})(N0e);var jht=N0e.exports;const Nht=ei(jht);var Eg=function(t){return t==null};ur.extend(Nht);var A0e={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function OQ(e){return Object.prototype.toString.call(e)==="[object Object]"}function Aht(e){if(OQ(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(OQ(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var mN=function(t){return!!(t!=null&&t._isAMomentObject)},IQ=function(t,n,r){if(!n)return t;if(ur.isDayjs(t)||mN(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(A0e[r]||"YYYY-MM-DD HH:mm:ss");if(typeof n=="string"&&n!=="string")return t.format(n);if(typeof n=="function")return n(t,r)}return t},Dht=function e(t,n,r,i,a){var o={};return typeof window>"u"||Kt(t)!=="object"||Eg(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(s){var l=a?[a,s].flat(1):[s],c=Ds(r,l)||"text",u="text",f;typeof c=="string"?u=c:c&&(u=c.valueType,f=c.dateFormat);var p=t[s];if(!(Eg(p)&&i)){if(Aht(p)&&!Array.isArray(p)&&!ur.isDayjs(p)&&!mN(p)){o[s]=e(p,n,r,i,l);return}if(Array.isArray(p)){o[s]=p.map(function(h,m){return ur.isDayjs(h)||mN(h)?IQ(h,f||n,u):e(h,n,r,i,[s,"".concat(m)].flat(1))});return}o[s]=IQ(p,f||n,u)}}),o)},RQ=function(t,n){return typeof n=="function"?n(ur(t)):ur(t).format(n)},Fht=function(t,n){var r=Array.isArray(t)?t:[],i=Te(r,2),a=i[0],o=i[1],s,l;Array.isArray(n)?(s=n[0],l=n[1]):Kt(n)==="object"&&n.type==="mask"?(s=n.format,l=n.format):(s=n,l=n);var c=a?RQ(a,s):"",u=o?RQ(o,l):"",f=c&&u?"".concat(c," ~ ").concat(u):"";return f};function F0(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=d.useState(e),i=Te(r,2),a=i[0],o=i[1],s=Bht(e);return d.useEffect(function(){var l=setTimeout(function(){o(s.current)},t);return function(){return clearTimeout(l)}},n?[t].concat(ct(n)):void 0),a}function Ym(e,t,n,r){if(e===t)return!0;if(e&&t&&Kt(e)==="object"&&Kt(t)==="object"){if(e.constructor!==t.constructor)return!1;var i,a,o;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(!Ym(e[a],t[a],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var s=ed(e.entries()),l;try{for(s.s();!(l=s.n()).done;)if(a=l.value,!t.has(a[0]))return!1}catch(m){s.e(m)}finally{s.f()}var c=ed(e.entries()),u;try{for(c.s();!(u=c.n()).done;)if(a=u.value,!Ym(a[1],t.get(a[0]),n,r))return!1}catch(m){c.e(m)}finally{c.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var f=ed(e.entries()),p;try{for(f.s();!(p=f.n()).done;)if(a=p.value,!t.has(a[0]))return!1}catch(m){f.e(m)}finally{f.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(e[a]!==t[a])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(o=Object.keys(e),i=o.length,i!==Object.keys(t).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[a]))return!1;for(a=i;a--!==0;){var h=o[a];if(!(n!=null&&n.includes(h))&&!(h==="_owner"&&e.$$typeof)&&!Ym(e[h],t[h],n,r))return!1}return!0}return e!==e&&t!==t}var Hht=function(t,n,r){return Ym(t,n,r)};function F0e(e,t){var n=d.useRef();return Hht(e,n.current,t)||(n.current=e),n.current}function Uht(e,t,n){d.useEffect(e,F0e(t||[],n))}function Ps(e,t){return te.useMemo(e,F0e(t))}var Wht=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Mz=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!Wht};function Vht(e,t){var n=typeof e.pageName=="string"?e.title:t;d.useEffect(function(){Mz()&&n&&(document.title=n)},[e.title,n])}var IT=0;function qht(e){var t=d.useRef(null),n=d.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(IT+=1,IT.toString())}),r=Te(n,1),i=r[0],a=d.useRef(i),o=function(){var u=ha(mr().mark(function f(){var p,h,m,g;return mr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return(p=t.current)===null||p===void 0||p.abort(),m=new AbortController,t.current=m,y.next=5,Promise.race([(h=e.request)===null||h===void 0?void 0:h.call(e,e.params,e),new Promise(function(b,w){var _;(_=t.current)===null||_===void 0||(_=_.signal)===null||_===void 0||_.addEventListener("abort",function(){w(new Error("aborted"))})})]);case 5:return g=y.sent,y.abrupt("return",g);case 7:case"end":return y.stop()}},f)}));return function(){return u.apply(this,arguments)}}();d.useEffect(function(){return function(){IT+=1}},[]);var s=Ez([a.current,e.params],o,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),l=s.data,c=s.error;return[l||c]}var Kht=function(t){var n=d.useRef();return d.useEffect(function(){n.current=t}),n.current},Ght=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n};function Yht(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var Tz=function(t){if(!t||!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},L0e=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(jQ+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var i=63&r[t];n+=i<36?i.toString(36):i<62?(i-26).toString(36).toUpperCase():i<63?"_":"-"}return n},F6=function(){return typeof window>"u"?NQ():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():NQ()};ur.extend(xme);var AQ=function(t){return!!(t!=null&&t._isAMomentObject)},B4=function e(t,n){return Eg(t)||ur.isDayjs(t)||AQ(t)?AQ(t)?ur(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?ur(t):ur(t,n)},Xht=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function Zht(e){var t={};return Xht.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var Qht="valueType request plain renderFormItem render text formItemProps valueEnum",Jht="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function B0e(e){var t="".concat(Qht," ").concat(Jht).split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function emt(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&Kt(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var tmt=function(t){var n=t.color,r=t.children;return x.jsx(Fo,{color:n,text:r})},Jf=function(t){return emt(t)==="map"?t:new Map(Object.entries(t||{}))},nmt={Success:function(t){var n=t.children;return x.jsx(Fo,{status:"success",text:n})},Error:function(t){var n=t.children;return x.jsx(Fo,{status:"error",text:n})},Default:function(t){var n=t.children;return x.jsx(Fo,{status:"default",text:n})},Processing:function(t){var n=t.children;return x.jsx(Fo,{status:"processing",text:n})},Warning:function(t){var n=t.children;return x.jsx(Fo,{status:"warning",text:n})},success:function(t){var n=t.children;return x.jsx(Fo,{status:"success",text:n})},error:function(t){var n=t.children;return x.jsx(Fo,{status:"error",text:n})},default:function(t){var n=t.children;return x.jsx(Fo,{status:"default",text:n})},processing:function(t){var n=t.children;return x.jsx(Fo,{status:"processing",text:n})},warning:function(t){var n=t.children;return x.jsx(Fo,{status:"warning",text:n})}},By=function e(t,n,r){if(Array.isArray(t))return x.jsx(Zr,{split:",",size:2,wrap:!0,children:t.map(function(c,u){return e(c,n,u)})},r);var i=Jf(n);if(!i.has(t)&&!i.has("".concat(t)))return(t==null?void 0:t.label)||t;var a=i.get(t)||i.get("".concat(t));if(!a)return x.jsx(te.Fragment,{children:(t==null?void 0:t.label)||t},r);var o=a.status,s=a.color,l=nmt[o||"Init"];return l?x.jsx(l,{children:a.text},r):s?x.jsx(tmt,{color:s,children:a.text},r):x.jsx(te.Fragment,{children:a.text||a},r)},gN={exports:{}};(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=y();r.configure=y,r.stringify=r,r.default=r,t.stringify=r,t.configure=y,e.exports=r;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function a(b){return b.length<5e3&&!i.test(b)?`"${b}"`:JSON.stringify(b)}function o(b,w){if(b.length>200||w)return b.sort(w);for(let _=1;_k;)b[S]=b[S-1],S--;b[S]=k}return b}const s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(b){return s.call(b)!==void 0&&b.length!==0}function c(b,w,_){b.length<_&&(_=b.length);const k=w===","?"":" ";let S=`"0":${k}${b[0]}`;for(let C=1;C<_;C++)S+=`${w}"${C}":${k}${b[C]}`;return S}function u(b){if(n.call(b,"circularValue")){const w=b.circularValue;if(typeof w=="string")return`"${w}"`;if(w==null)return w;if(w===Error||w===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function f(b){let w;if(n.call(b,"deterministic")&&(w=b.deterministic,typeof w!="boolean"&&typeof w!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return w===void 0?!0:w}function p(b,w){let _;if(n.call(b,w)&&(_=b[w],typeof _!="boolean"))throw new TypeError(`The "${w}" argument must be of type boolean`);return _===void 0?!0:_}function h(b,w){let _;if(n.call(b,w)){if(_=b[w],typeof _!="number")throw new TypeError(`The "${w}" argument must be of type number`);if(!Number.isInteger(_))throw new TypeError(`The "${w}" argument must be an integer`);if(_<1)throw new RangeError(`The "${w}" argument must be >= 1`)}return _===void 0?1/0:_}function m(b){return b===1?"1 item":`${b} items`}function g(b){const w=new Set;for(const _ of b)(typeof _=="string"||typeof _=="number")&&w.add(String(_));return w}function v(b){if(n.call(b,"strict")){const w=b.strict;if(typeof w!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(w)return _=>{let k=`Object can not safely be stringified. Received type ${typeof _}`;throw typeof _!="function"&&(k+=` (${_.toString()})`),new Error(k)}}}function y(b){b={...b};const w=v(b);w&&(b.bigint===void 0&&(b.bigint=!1),"circularValue"in b||(b.circularValue=Error));const _=u(b),k=p(b,"bigint"),S=f(b),C=typeof S=="function"?S:void 0,E=h(b,"maximumDepth"),$=h(b,"maximumBreadth");function M(R,j,N,D,V,F){let K=j[R];switch(typeof K=="object"&&K!==null&&typeof K.toJSON=="function"&&(K=K.toJSON(R)),K=D.call(j,R,K),typeof K){case"string":return a(K);case"object":{if(K===null)return"null";if(N.indexOf(K)!==-1)return _;let B="",U=",";const Z=F;if(Array.isArray(K)){if(K.length===0)return"[]";if(E$){const pe=K.length-$-1;B+=`${U}"... ${m(pe)} not stringified"`}return V!==""&&(B+=` -${Z}`),N.pop(),`[${B}]`}let ee=Object.keys(K);const ie=ee.length;if(ie===0)return"{}";if(E$){const oe=ie-$;B+=`${X}"...":${Y}"${m(oe)} not stringified"`,X=U}return V!==""&&X.length>1&&(B=` -${F}${B} -${Z}`),N.pop(),`{${B}}`}case"number":return isFinite(K)?String(K):w?w(K):"null";case"boolean":return K===!0?"true":"false";case"undefined":return;case"bigint":if(k)return String(K);default:return w?w(K):void 0}}function P(R,j,N,D,V,F){switch(typeof j=="object"&&j!==null&&typeof j.toJSON=="function"&&(j=j.toJSON(R)),typeof j){case"string":return a(j);case"object":{if(j===null)return"null";if(N.indexOf(j)!==-1)return _;const K=F;let B="",U=",";if(Array.isArray(j)){if(j.length===0)return"[]";if(E$){const ae=j.length-$-1;B+=`${U}"... ${m(ae)} not stringified"`}return V!==""&&(B+=` -${K}`),N.pop(),`[${B}]`}N.push(j);let Z="";V!==""&&(F+=V,U=`, -${F}`,Z=" ");let ee="";for(const ie of D){const Y=P(ie,j[ie],N,D,V,F);Y!==void 0&&(B+=`${ee}${a(ie)}:${Z}${Y}`,ee=U)}return V!==""&&ee.length>1&&(B=` -${F}${B} -${K}`),N.pop(),`{${B}}`}case"number":return isFinite(j)?String(j):w?w(j):"null";case"boolean":return j===!0?"true":"false";case"undefined":return;case"bigint":if(k)return String(j);default:return w?w(j):void 0}}function I(R,j,N,D,V){switch(typeof j){case"string":return a(j);case"object":{if(j===null)return"null";if(typeof j.toJSON=="function"){if(j=j.toJSON(R),typeof j!="object")return I(R,j,N,D,V);if(j===null)return"null"}if(N.indexOf(j)!==-1)return _;const F=V;if(Array.isArray(j)){if(j.length===0)return"[]";if(E$){const ce=j.length-$-1;Y+=`${X}"... ${m(ce)} not stringified"`}return Y+=` -${F}`,N.pop(),`[${Y}]`}let K=Object.keys(j);const B=K.length;if(B===0)return"{}";if(E$){const Y=B-$;Z+=`${ee}"...": "${m(Y)} not stringified"`,ee=U}return ee!==""&&(Z=` -${V}${Z} -${F}`),N.pop(),`{${Z}}`}case"number":return isFinite(j)?String(j):w?w(j):"null";case"boolean":return j===!0?"true":"false";case"undefined":return;case"bigint":if(k)return String(j);default:return w?w(j):void 0}}function O(R,j,N){switch(typeof j){case"string":return a(j);case"object":{if(j===null)return"null";if(typeof j.toJSON=="function"){if(j=j.toJSON(R),typeof j!="object")return O(R,j,N);if(j===null)return"null"}if(N.indexOf(j)!==-1)return _;let D="";const V=j.length!==void 0;if(V&&Array.isArray(j)){if(j.length===0)return"[]";if(E$){const Y=j.length-$-1;D+=`,"... ${m(Y)} not stringified"`}return N.pop(),`[${D}]`}let F=Object.keys(j);const K=F.length;if(K===0)return"{}";if(E$){const Z=K-$;D+=`${B}"...":"${m(Z)} not stringified"`}return N.pop(),`{${D}}`}case"number":return isFinite(j)?String(j):w?w(j):"null";case"boolean":return j===!0?"true":"false";case"undefined":return;case"bigint":if(k)return String(j);default:return w?w(j):void 0}}function A(R,j,N){if(arguments.length>1){let D="";if(typeof N=="number"?D=" ".repeat(Math.min(N,10)):typeof N=="string"&&(D=N.slice(0,10)),j!=null){if(typeof j=="function")return M("",{"":R},[],j,D,"");if(Array.isArray(j))return P("",R,[],g(j),D,"")}if(D.length!==0)return I("",R,[],D,"")}return O("",R,[])}return A}})(gN,gN.exports);var rmt=gN.exports;const imt=ei(rmt),amt=imt.configure;var DQ=amt({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function omt(){this.__data__=[],this.size=0}function l$(e,t){return e===t||e!==e&&t!==t}function c$(e,t){for(var n=e.length;n--;)if(l$(e[n][0],t))return n;return-1}var smt=Array.prototype,lmt=smt.splice;function cmt(e){var t=this.__data__,n=c$(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():lmt.call(t,n,1),--this.size,!0}function umt(e){var t=this.__data__,n=c$(t,e);return n<0?void 0:t[n][1]}function dmt(e){return c$(this.__data__,e)>-1}function fmt(e,t){var n=this.__data__,r=c$(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ep(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=mgt}function d$(e){return e!=null&&X0e(e.length)&&!Pz(e)}function ggt(e){return kh(e)&&d$(e)}function vgt(){return!1}var Z0e=typeof $l=="object"&&$l&&!$l.nodeType&&$l,qQ=Z0e&&typeof qo=="object"&&qo&&!qo.nodeType&&qo,ygt=qQ&&qQ.exports===Z0e,KQ=ygt?Pd.Buffer:void 0,bgt=KQ?KQ.isBuffer:void 0,Nz=bgt||vgt,wgt="[object Object]",xgt=Function.prototype,Sgt=Object.prototype,Q0e=xgt.toString,Cgt=Sgt.hasOwnProperty,_gt=Q0e.call(Object);function J0e(e){if(!kh(e)||n1(e)!=wgt)return!1;var t=Rz(e);if(t===null)return!0;var n=Cgt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Q0e.call(n)==_gt}var kgt="[object Arguments]",Egt="[object Array]",$gt="[object Boolean]",Mgt="[object Date]",Tgt="[object Error]",Pgt="[object Function]",Ogt="[object Map]",Igt="[object Number]",Rgt="[object Object]",jgt="[object RegExp]",Ngt="[object Set]",Agt="[object String]",Dgt="[object WeakMap]",Fgt="[object ArrayBuffer]",Lgt="[object DataView]",Bgt="[object Float32Array]",zgt="[object Float64Array]",Hgt="[object Int8Array]",Ugt="[object Int16Array]",Wgt="[object Int32Array]",Vgt="[object Uint8Array]",qgt="[object Uint8ClampedArray]",Kgt="[object Uint16Array]",Ggt="[object Uint32Array]",ji={};ji[Bgt]=ji[zgt]=ji[Hgt]=ji[Ugt]=ji[Wgt]=ji[Vgt]=ji[qgt]=ji[Kgt]=ji[Ggt]=!0;ji[kgt]=ji[Egt]=ji[Fgt]=ji[$gt]=ji[Lgt]=ji[Mgt]=ji[Tgt]=ji[Pgt]=ji[Ogt]=ji[Igt]=ji[Rgt]=ji[jgt]=ji[Ngt]=ji[Agt]=ji[Dgt]=!1;function Ygt(e){return kh(e)&&X0e(e.length)&&!!ji[n1(e)]}function Az(e){return function(t){return e(t)}}var eye=typeof $l=="object"&&$l&&!$l.nodeType&&$l,tw=eye&&typeof qo=="object"&&qo&&!qo.nodeType&&qo,Xgt=tw&&tw.exports===eye,jT=Xgt&&z0e.process,L0=function(){try{var e=tw&&tw.require&&tw.require("util").types;return e||jT&&jT.binding&&jT.binding("util")}catch{}}(),GQ=L0&&L0.isTypedArray,tye=GQ?Az(GQ):Ygt;function yN(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Zgt=Object.prototype,Qgt=Zgt.hasOwnProperty;function nye(e,t,n){var r=e[t];(!(Qgt.call(e,t)&&l$(r,n))||n===void 0&&!(t in e))&&Oz(e,t,n)}function zy(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a-1&&e%1==0&&e0){if(++t>=p1t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var lye=g1t(f1t);function v1t(e,t){return lye(sye(e,t,oye),e+"")}function y1t(e,t,n){if(!bd(n))return!1;var r=typeof t;return(r=="number"?d$(n)&&rye(t,n.length):r=="string"&&t in n)?l$(n[t],e):!1}function b1t(e){return v1t(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&y1t(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r2&&arguments[2]!==void 0?arguments[2]:!0,i=Object.keys(n).reduce(function(s,l){var c=n[l];return Eg(c)||(s[l]=c),s},{});if(Object.keys(i).length<1||typeof window>"u"||Kt(t)!=="object"||Eg(t)||t instanceof Blob)return t;var a=Array.isArray(t)?[]:{},o=function s(l,c){var u=Array.isArray(l),f=u?[]:{};return l==null||l===void 0?f:(Object.keys(l).forEach(function(p){var h=function w(_,k){return Array.isArray(_)&&_.forEach(function(S,C){if(S){var E=k==null?void 0:k[C];typeof S=="function"&&(k[C]=S(k,p,l)),Kt(S)==="object"&&!Array.isArray(S)&&Object.keys(S).forEach(function($){var M=E==null?void 0:E[$];if(typeof S[$]=="function"&&M){var P=S[$](E[$],p,l);E[$]=Kt(P)==="object"?P[$]:P}else Kt(S[$])==="object"&&Array.isArray(S[$])&&M&&w(S[$],M)}),Kt(S)==="object"&&Array.isArray(S)&&E&&w(S,E)}}),p},m=c?[c,p].flat(1):[p].flat(1),g=l[p],v=Ds(i,m),y=function(){var _,k,S=!1;if(typeof v=="function"){k=v==null?void 0:v(g,p,l);var C=Kt(k);C!=="object"&&C!=="undefined"?(_=p,S=!0):_=k}else _=h(v,g);if(Array.isArray(_)){f=ds(f,_,g);return}Kt(_)==="object"&&!Array.isArray(a)?a=w1t(a,_):Kt(_)==="object"&&Array.isArray(a)?f=q(q({},f),_):(_!==null||_!==void 0)&&(f=ds(f,[_],S?k:g))};if(v&&typeof v=="function"&&y(),!(typeof window>"u")){if(x1t(g)){var b=s(g,m);if(Object.keys(b).length<1)return;f=ds(f,[p],b);return}y()}}),r?f:l)};return a=Array.isArray(t)&&Array.isArray(a)?ct(o(t)):L0e({},o(t),a),a},Nl=function(t){return t===void 0?{}:L4(Rf,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}};function B1(e){var t=typeof window>"u",n=d.useState(function(){return t?!1:window.matchMedia(e).matches}),r=Te(n,2),i=r[0],a=r[1];return d.useLayoutEffect(function(){if(!t){var o=window.matchMedia(e),s=function(c){return a(c.matches)};return o.addListener(s),function(){return o.removeListener(s)}}},[e]),i}var Cp={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},C1t=function(){var t=void 0;if(typeof window>"u")return t;var n=Object.keys(Cp).find(function(r){var i=Cp[r].matchMedia;return!!window.matchMedia(i).matches});return t=n,t},_1t=function(){var t=B1(Cp.md.matchMedia),n=B1(Cp.lg.matchMedia),r=B1(Cp.xxl.matchMedia),i=B1(Cp.xl.matchMedia),a=B1(Cp.sm.matchMedia),o=B1(Cp.xs.matchMedia),s=d.useState(C1t()),l=Te(s,2),c=l[0],u=l[1];return d.useEffect(function(){if(r){u("xxl");return}if(i){u("xl");return}if(n){u("lg");return}if(t){u("md");return}if(a){u("sm");return}if(o){u("xs");return}u("md")},[t,n,r,i,a,o]),c};function Al(e,t){for(var n=Object.assign({},e),r=0;r"u"||!window.URL)return{};var u=[];o.forEach(function(p,h){u.push({key:h,value:p})}),u=u.reduce(function(p,h){return(p[h.key]=p[h.key]||[]).push(h),p},{}),u=Object.keys(u).map(function(p){var h=u[p];return h.length===1?[p,h[0].value]:[p,h.map(function(m){var g=m.value;return g})]});var f=nw({},e);return u.forEach(function(p){var h=p[0],m=p[1];f[h]=M1t(h,m,{},e)}),f},[t.disabled,e,o]);function l(u){if(!(typeof window>"u"||!window.URL)){var f=k1t(u);window.location.search!==f.search&&window.history.replaceState({},"",f.toString()),o.toString()!==f.searchParams.toString()&&i({})}}d.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||l(nw(nw({},e),s))},[t.disabled,s]);var c=function(u){l(u)};return d.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var u=function(){i({})};return window.addEventListener("popstate",u),function(){window.removeEventListener("popstate",u)}},[t.disabled]),[s,c]}var $1t={true:!0,false:!1};function M1t(e,t,n,r){if(!n)return t;var i=n[e],a=t===void 0?r[e]:t;return i===Number?Number(a):i===Boolean||t==="true"||t==="false"?$1t[a]:Array.isArray(i)?i.find(function(o){return o==a})||r[e]:a}var o1=te.createContext({}),T1t=["children","Wrapper"],P1t=["children","Wrapper"],cye=d.createContext({grid:!1,colProps:void 0,rowProps:void 0}),O1t=function(t){var n=t.grid,r=t.rowProps,i=t.colProps;return{grid:!!n,RowWrapper:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.children,l=o.Wrapper,c=Ut(o,T1t);return n?x.jsx(B8,q(q(q({gutter:8},r),c),{},{children:s})):l?x.jsx(l,{children:s}):s},ColWrapper:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.children,l=o.Wrapper,c=Ut(o,P1t),u=d.useMemo(function(){var f=q(q({},i),c);return typeof f.span>"u"&&typeof f.xs>"u"&&(f.xs=24),f},[c]);return n?x.jsx(j0,q(q({},u),{},{children:s})):l?x.jsx(l,{children:s}):s}}},Dz=function(t){var n=d.useMemo(function(){return Kt(t)==="object"?t:{grid:t}},[t]),r=d.useContext(cye),i=r.grid,a=r.colProps;return d.useMemo(function(){return O1t({grid:!!(i||n.grid),rowProps:n==null?void 0:n.rowProps,colProps:(n==null?void 0:n.colProps)||a,Wrapper:n==null?void 0:n.Wrapper})},[n==null?void 0:n.Wrapper,n.grid,i,JSON.stringify([a,n==null?void 0:n.colProps,n==null?void 0:n.rowProps])])},I1t=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],R1t=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],XQ={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},j1t=["switch","radioButton","radio","rate"];function Fz(e,t){e.displayName="ProFormComponent";var n=function(a){var o=q(q({},a==null?void 0:a.filedConfig),t),s=o.valueType,l=o.customLightMode,c=o.lightFilterLabelFormatter,u=o.valuePropName,f=u===void 0?"value":u,p=o.ignoreWidth,h=o.defaultProps,m=Ut(o,I1t),g=q(q({},h),a),v=g.label,y=g.tooltip,b=g.placeholder,w=g.width,_=g.bordered,k=g.messageVariables,S=g.ignoreFormItem,C=g.transform,E=g.convertValue,$=g.readonly,M=g.allowClear;g.colSize;var P=g.getFormItemProps,I=g.getFieldProps;g.filedConfig;var O=g.cacheForSwr,A=g.proFieldProps,R=Ut(g,R1t),j=s||R.valueType,N=d.useMemo(function(){return p||j1t.includes(j)},[p,j]),D=d.useState(),V=Te(D,2),F=V[1],K=d.useState(),B=Te(K,2),U=B[0],Z=B[1],ee=te.useContext(o1),ie=Ps(function(){return{formItemProps:P==null?void 0:P(),fieldProps:I==null?void 0:I()}},[I,P,R.dependenciesValues,U]),Y=Ps(function(){var se=q(q(q(q({},S?oc({value:R.value}):{}),{},{placeholder:b,disabled:a.disabled},ee.fieldProps),ie.fieldProps),R.fieldProps);return se.style=oc(se==null?void 0:se.style),se},[S,R.value,R.fieldProps,b,a.disabled,ee.fieldProps,ie.fieldProps]),X=Zht(R),ae=Ps(function(){return q(q(q(q({},ee.formItemProps),X),ie.formItemProps),R.formItemProps)},[ie.formItemProps,ee.formItemProps,R.formItemProps,X]),oe=Ps(function(){return q(q({messageVariables:k},m),ae)},[m,ae,k]);Bk(!R.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var le=d.useContext(dh),ce=le.prefixName,pe=Ps(function(){var se,ye=oe==null?void 0:oe.name;Array.isArray(ye)&&(ye=ye.join("_")),Array.isArray(ce)&&ye&&(ye="".concat(ce.join("."),".").concat(ye));var Oe=ye&&"form-".concat((se=ee.formKey)!==null&&se!==void 0?se:"","-field-").concat(ye);return Oe},[DQ(oe==null?void 0:oe.name),ce,ee.formKey]),me=su(function(){var se;P||I?Z([]):R.renderFormItem&&F([]);for(var ye=arguments.length,Oe=new Array(ye),z=0;z0?re.map(function(ve,$e){var Ce=fe==null?void 0:fe[$e],be=(Ce==null?void 0:Ce["data-item"])||{};return q(q({},be),ve)}):[]},pe=function me(re){return re.map(function(fe,ve){var $e,Ce=fe,be=Ce.className,Se=Ce.optionType,we=Ut(Ce,z1t),se=fe[D],ye=fe[F],Oe=($e=fe[B])!==null&&$e!==void 0?$e:[];return Se==="optGroup"||fe.options?q(q({label:se},we),{},{data_title:se,title:se,key:ye??"".concat(se==null?void 0:se.toString(),"-").concat(ve,"-").concat(F6()),children:me(Oe)}):q(q({title:se},we),{},{data_title:se,value:ye??ve,key:ye??"".concat(se==null?void 0:se.toString(),"-").concat(ve,"-").concat(F6()),"data-item":fe,className:"".concat(oe,"-option ").concat(be||"").trim(),label:(r==null?void 0:r(fe))||se})})};return x.jsx(Yf,q(q({ref:Y,className:le,allowClear:!0,autoClearSearchValue:c,disabled:k,mode:i,showSearch:I,searchValue:ee,optionFilterProp:y,optionLabelProp:w,onClear:function(){M==null||M(),C(void 0),I&&ie(void 0)}},R),{},{filterOption:R.filterOption==!1?!1:function(me,re){var fe,ve,$e;return R.filterOption&&typeof R.filterOption=="function"?R.filterOption(me,q(q({},re),{},{label:re==null?void 0:re.data_title})):!!(re!=null&&(fe=re.data_title)!==null&&fe!==void 0&&fe.toString().toLowerCase().includes(me.toLowerCase())||re!=null&&(ve=re.label)!==null&&ve!==void 0&&ve.toString().toLowerCase().includes(me.toLowerCase())||re!=null&&($e=re.value)!==null&&$e!==void 0&&$e.toString().toLowerCase().includes(me.toLowerCase()))},onSearch:I?function(me){g&&C(me),a==null||a(me),ie(me)}:void 0,onChange:function(re,fe){I&&c&&(C(void 0),a==null||a(""),ie(void 0));for(var ve=arguments.length,$e=new Array(ve>2?ve-2:0),Ce=2;Ce-1&&e%1==0&&e-1&&e%1==0&&e<=Qvt}var zz=Jvt,e0t=s1,t0t=zz,n0t=Od,r0t="[object Arguments]",i0t="[object Array]",a0t="[object Boolean]",o0t="[object Date]",s0t="[object Error]",l0t="[object Function]",c0t="[object Map]",u0t="[object Number]",d0t="[object Object]",f0t="[object RegExp]",p0t="[object Set]",h0t="[object String]",m0t="[object WeakMap]",g0t="[object ArrayBuffer]",v0t="[object DataView]",y0t="[object Float32Array]",b0t="[object Float64Array]",w0t="[object Int8Array]",x0t="[object Int16Array]",S0t="[object Int32Array]",C0t="[object Uint8Array]",_0t="[object Uint8ClampedArray]",k0t="[object Uint16Array]",E0t="[object Uint32Array]",Ni={};Ni[y0t]=Ni[b0t]=Ni[w0t]=Ni[x0t]=Ni[S0t]=Ni[C0t]=Ni[_0t]=Ni[k0t]=Ni[E0t]=!0;Ni[r0t]=Ni[i0t]=Ni[g0t]=Ni[a0t]=Ni[v0t]=Ni[o0t]=Ni[s0t]=Ni[l0t]=Ni[c0t]=Ni[u0t]=Ni[d0t]=Ni[f0t]=Ni[p0t]=Ni[h0t]=Ni[m0t]=!1;function $0t(e){return n0t(e)&&t0t(e.length)&&!!Ni[e0t(e)]}var M0t=$0t;function T0t(e){return function(t){return e(t)}}var Hz=T0t,H6={exports:{}};H6.exports;(function(e,t){var n=uye,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(H6,H6.exports);var Uz=H6.exports,P0t=M0t,O0t=Hz,rJ=Uz,iJ=rJ&&rJ.isTypedArray,I0t=iJ?O0t(iJ):P0t,Wz=I0t,R0t=Dvt,j0t=Lz,N0t=zl,A0t=f$,D0t=Bz,F0t=Wz,L0t=Object.prototype,B0t=L0t.hasOwnProperty;function z0t(e,t){var n=N0t(e),r=!n&&j0t(e),i=!n&&!r&&A0t(e),a=!n&&!r&&!i&&F0t(e),o=n||r||i||a,s=o?R0t(e.length,String):[],l=s.length;for(var c in e)(t||B0t.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||D0t(c,l)))&&s.push(c);return s}var hye=z0t,H0t=Object.prototype;function U0t(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||H0t;return e===n}var Vz=U0t;function W0t(e,t){return function(n){return e(t(n))}}var mye=W0t,V0t=mye,q0t=V0t(Object.keys,Object),K0t=q0t,G0t=Vz,Y0t=K0t,X0t=Object.prototype,Z0t=X0t.hasOwnProperty;function Q0t(e){if(!G0t(e))return Y0t(e);var t=[];for(var n in Object(e))Z0t.call(e,n)&&n!="constructor"&&t.push(n);return t}var J0t=Q0t;function eyt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var kc=eyt,tyt=s1,nyt=kc,ryt="[object AsyncFunction]",iyt="[object Function]",ayt="[object GeneratorFunction]",oyt="[object Proxy]";function syt(e){if(!nyt(e))return!1;var t=tyt(e);return t==iyt||t==ayt||t==ryt||t==oyt}var qz=syt,lyt=qz,cyt=zz;function uyt(e){return e!=null&&cyt(e.length)&&!lyt(e)}var Uy=uyt,dyt=hye,fyt=J0t,pyt=Uy;function hyt(e){return pyt(e)?dyt(e):fyt(e)}var V4=hyt,myt=fye,gyt=V4;function vyt(e,t){return e&&myt(e,t,gyt)}var gye=vyt;function yyt(e){return e}var p$=yyt,byt=p$;function wyt(e){return typeof e=="function"?e:byt}var vye=wyt,xyt=gye,Syt=vye;function Cyt(e,t){return e&&xyt(e,Syt(t))}var Kz=Cyt,_yt=mye,kyt=_yt(Object.getPrototypeOf,Object),Gz=kyt,Eyt=s1,$yt=Gz,Myt=Od,Tyt="[object Object]",Pyt=Function.prototype,Oyt=Object.prototype,yye=Pyt.toString,Iyt=Oyt.hasOwnProperty,Ryt=yye.call(Object);function jyt(e){if(!Myt(e)||Eyt(e)!=Tyt)return!1;var t=$yt(e);if(t===null)return!0;var n=Iyt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&yye.call(n)==Ryt}var bye=jyt;function Nyt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n-1}var Zyt=Xyt,Qyt=h$;function Jyt(e,t){var n=this.__data__,r=Qyt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var ebt=Jyt,tbt=Dyt,nbt=Vyt,rbt=Gyt,ibt=Zyt,abt=ebt;function Wy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,h=n&vwt?new pwt:void 0;for(a.set(e,t),a.set(t,e);++f0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,oSt.default)(t,function(r){Array.isArray(r)?e(r).map(function(i){return n.push(i)}):(0,iSt.default)(r)?(0,nSt.default)(r,function(i,a){i===!0&&n.push(a),n.push(a+"-"+i)}):(0,eSt.default)(r)&&n.push(r)}),n};U4.default=sSt;var K4={};function lSt(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,Skt.default)(t.default)||{};return n.map(function(i){var a=t[i];return a&&(0,wkt.default)(a,function(o,s){r[s]||(r[s]={}),r[s]=Ckt({},r[s],a[s])}),i}),r};K4.default=_kt;var X4={};Object.defineProperty(X4,"__esModule",{value:!0});X4.autoprefix=void 0;var kkt=Kz,FJ=$kt(kkt),Ekt=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){jkt(i,r);function i(){var a,o,s,l;Rkt(this,i);for(var c=arguments.length,u=Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Bkt(i,r);function i(){var a,o,s,l;Lkt(this,i);for(var c=arguments.length,u=Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[o]=s};return t===0&&i("first-child"),t===n-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),r};nH.default=Hkt;Object.defineProperty(sc,"__esModule",{value:!0});sc.ReactCSS=sc.loop=sc.handleActive=sc.handleHover=sc.hover=void 0;var Ukt=U4,Wkt=Yy(Ukt),Vkt=K4,qkt=Yy(Vkt),Kkt=X4,Gkt=Yy(Kkt),Ykt=Z4,Xye=Yy(Ykt),Xkt=Q4,Zkt=Yy(Xkt),Qkt=nH,Jkt=Yy(Qkt);function Yy(e){return e&&e.__esModule?e:{default:e}}sc.hover=Xye.default;sc.handleHover=Xye.default;sc.handleActive=Zkt.default;sc.loop=Jkt.default;var e6t=sc.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i0){if(++t>=V6t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Y6t=G6t,X6t=W6t,Z6t=Y6t,Q6t=Z6t(X6t),J6t=Q6t,e5t=p$,t5t=F6t,n5t=J6t;function r5t(e,t){return n5t(t5t(e,t,e5t),e+"")}var i5t=r5t,a5t=q4,o5t=Uy,s5t=Bz,l5t=kc;function c5t(e,t,n){if(!l5t(n))return!1;var r=typeof t;return(r=="number"?o5t(n)&&s5t(t,n.length):r=="string"&&t in n)?a5t(n[t],e):!1}var u5t=c5t,d5t=i5t,f5t=u5t;function p5t(e){return d5t(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&f5t(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++rs?p=1:p=Math.round(f*100/s)/100,n.a!==p)return{h:n.h,s:n.s,l:n.l,a:p,source:"rgb"}}else{var h;if(u<0?h=0:u>o?h=1:h=Math.round(u*100/o)/100,i!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}return null},BT={},x5t=function(t,n,r,i){if(typeof document>"u"&&!i)return null;var a=i?new i:document.createElement("canvas");a.width=r*2,a.height=r*2;var o=a.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,a.width,a.height),o.fillStyle=n,o.fillRect(0,0,r,r),o.translate(r,r),o.fillRect(0,0,r,r),a.toDataURL()):null},S5t=function(t,n,r,i){var a="".concat(t,"-").concat(n,"-").concat(r).concat(i?"-server":"");if(BT[a])return BT[a];var o=x5t(t,n,r,i);return BT[a]=o,o};function b3(e){"@babel/helpers - typeof";return b3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b3(e)}function KJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function HS(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function V6(e){return V6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},V6(e)}var D5t=function(e){I5t(n,e);var t=R5t(n);function n(){var r;M5t(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0)&&(n[i]=e[i]);return n}function Udt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Wdt(e,t){return e.button===0&&(!t||t==="_self")&&!Udt(e)}const Vdt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],qdt="6";try{window.__reactRouterVersion=qdt}catch{}function Kdt(e,t){return tdt({basename:t==null?void 0:t.basename,future:h3({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:kut({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Gdt(),routes:e,mapRouteProperties:zdt,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function Gdt(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=h3({},t,{errors:Ydt(t.errors)})),t}function Ydt(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new A6(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let o=new a(i.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}const Xdt=d.createContext({isTransitioning:!1}),Zdt=d.createContext(new Map),Qdt="startTransition",yQ=Jm[Qdt],Jdt="flushSync",bQ=Goe[Jdt];function eft(e){yQ?yQ(e):e()}function Ub(e){bQ?bQ(e):e()}class tft{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function nft(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=d.useState(n.state),[o,s]=d.useState(),[l,c]=d.useState({isTransitioning:!1}),[u,f]=d.useState(),[p,h]=d.useState(),[m,g]=d.useState(),v=d.useRef(new Map),{v7_startTransition:y}=r||{},w=d.useCallback(E=>{y?eft(E):E()},[y]),b=d.useCallback((E,$)=>{let{deletedFetchers:M,flushSync:P,viewTransitionOpts:R}=$;M.forEach(j=>v.current.delete(j)),E.fetchers.forEach((j,I)=>{j.data!==void 0&&v.current.set(I,j.data)});let O=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!R||O){P?Ub(()=>a(E)):w(()=>a(E));return}if(P){Ub(()=>{p&&(u&&u.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:R.currentLocation,nextLocation:R.nextLocation})});let j=n.window.document.startViewTransition(()=>{Ub(()=>a(E))});j.finished.finally(()=>{Ub(()=>{f(void 0),h(void 0),s(void 0),c({isTransitioning:!1})})}),Ub(()=>h(j));return}p?(u&&u.resolve(),p.skipTransition(),g({state:E,currentLocation:R.currentLocation,nextLocation:R.nextLocation})):(s(E),c({isTransitioning:!0,flushSync:!1,currentLocation:R.currentLocation,nextLocation:R.nextLocation}))},[n.window,p,u,v,w]);d.useLayoutEffect(()=>n.subscribe(b),[n,b]),d.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new tft)},[l]),d.useEffect(()=>{if(u&&o&&n.window){let E=o,$=u.promise,M=n.window.document.startViewTransition(async()=>{w(()=>a(E)),await $});M.finished.finally(()=>{f(void 0),h(void 0),s(void 0),c({isTransitioning:!1})}),h(M)}},[w,o,u,n.window]),d.useEffect(()=>{u&&o&&i.location.key===o.location.key&&u.resolve()},[u,p,i.location,o]),d.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[l.isTransitioning,m]),d.useEffect(()=>{},[]);let C=d.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,$,M)=>n.navigate(E,{state:$,preventScrollReset:M==null?void 0:M.preventScrollReset}),replace:(E,$,M)=>n.navigate(E,{replace:!0,state:$,preventScrollReset:M==null?void 0:M.preventScrollReset})}),[n]),k=n.basename||"/",S=d.useMemo(()=>({router:n,navigator:C,static:!1,basename:k}),[n,C,k]),_=d.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return d.useEffect(()=>Fdt(r,n.future),[r,n.future]),d.createElement(d.Fragment,null,d.createElement(s$.Provider,{value:S},d.createElement(v0e.Provider,{value:i},d.createElement(Zdt.Provider,{value:v.current},d.createElement(Xdt.Provider,{value:l},d.createElement(Bdt,{basename:k,location:i.location,navigationType:i.historyAction,navigator:C,future:_},i.initialized||n.future.v7_partialHydration?d.createElement(rft,{routes:n.routes,future:n.future,state:i}):t))))),null)}const rft=d.memo(ift);function ift(e){let{routes:t,future:n,state:r}=e;return Edt(t,void 0,r,n)}const aft=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",oft=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sft=d.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:c,preventScrollReset:u,viewTransition:f}=t,p=Hdt(t,Vdt),{basename:h}=d.useContext(kh),m,g=!1;if(typeof c=="string"&&oft.test(c)&&(m=c,aft))try{let b=new URL(window.location.href),C=c.startsWith("//")?new URL(b.protocol+c):new URL(c),k=Ly(C.pathname,h);C.origin===b.origin&&k!=null?c=k+C.search+C.hash:g=!0}catch{}let v=xdt(c,{relative:i}),y=lft(c,{replace:o,state:s,target:l,preventScrollReset:u,relative:i,viewTransition:f});function w(b){r&&r(b),b.defaultPrevented||y(b)}return d.createElement("a",h3({},p,{href:m||v,onClick:g||a?r:w,ref:n,target:l}))});var wQ;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(wQ||(wQ={}));var xQ;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xQ||(xQ={}));function lft(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=Mo(),c=n1(),u=w0e(e,{relative:o});return d.useCallback(f=>{if(Wdt(f,n)){f.preventDefault();let p=r!==void 0?r:kg(c)===kg(u);l(e,{replace:p,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[c,l,u,r,i,n,e,a,o,s])}var cft=q(q({},mfe),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const C0e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},uN={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},cft),timePickerLocale:Object.assign({},C0e)};uN.lang.ok="确定";const sl="${label}不是一个有效的${type}",uft={locale:"zh-cn",Pagination:H1e,DatePicker:uN,TimePicker:C0e,Calendar:uN,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:sl,method:sl,array:sl,object:sl,number:sl,date:sl,boolean:sl,integer:sl,float:sl,regexp:sl,email:sl,url:sl,hex:sl},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}},Hp=()=>{},wl=Hp(),u_=Object,Qr=e=>e===wl,ad=e=>typeof e=="function",Df=(e,t)=>({...e,...t}),dft=e=>ad(e.then),LS=new WeakMap;let fft=0;const m3=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,a;if(u_(e)===e&&!r&&n!=RegExp){if(i=LS.get(e),i)return i;if(i=++fft+"~",LS.set(e,i),n==Array){for(i="@",a=0;al$&&typeof window.requestAnimationFrame!=_z,_0e=(e,t)=>{const n=sf.get(e);return[()=>!Qr(t)&&e.get(t)||$T,r=>{if(!Qr(t)){const i=e.get(t);t in BS||(BS[t]=i),n[5](t,Df(i,r),i||$T)}},n[6],()=>!Qr(t)&&t in BS?BS[t]:!Qr(t)&&e.get(t)||$T]};let fN=!0;const hft=()=>fN,[pN,hN]=l$&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Hp,Hp],mft=()=>{const e=dN&&document.visibilityState;return Qr(e)||e!=="hidden"},gft=e=>(dN&&document.addEventListener("visibilitychange",e),pN("focus",e),()=>{dN&&document.removeEventListener("visibilitychange",e),hN("focus",e)}),vft=e=>{const t=()=>{fN=!0,e()},n=()=>{fN=!1};return pN("online",t),pN("offline",n),()=>{hN("online",t),hN("offline",n)}},yft={isOnline:hft,isVisible:mft},bft={initFocus:gft,initReconnect:vft},SQ=!te.useId,g3=!l$||"Deno"in window,wft=e=>pft()?window.requestAnimationFrame(e):setTimeout(e,1),d_=g3?d.useEffect:d.useLayoutEffect,MT=typeof navigator<"u"&&navigator.connection,CQ=!g3&&MT&&(["slow-2g","2g"].includes(MT.effectiveType)||MT.saveData),kz=e=>{if(ad(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?m3(e):"",[e,t]};let xft=0;const mN=()=>++xft,k0e=0,E0e=1,$0e=2,Sft=3;var Wb={__proto__:null,ERROR_REVALIDATE_EVENT:Sft,FOCUS_EVENT:k0e,MUTATE_EVENT:$0e,RECONNECT_EVENT:E0e};async function M0e(...e){const[t,n,r,i]=e,a=Df({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let o=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const c=a.revalidate!==!1,u=h=>typeof s=="function"?s(h):s!==!1,f=a.throwOnError;if(ad(n)){const h=n,m=[],g=t.keys();for(const v of g)!/^\$(inf|sub)\$/.test(v)&&h(t.get(v)._k)&&m.push(v);return Promise.all(m.map(p))}return p(n);async function p(h){const[m]=kz(h);if(!m)return;const[g,v]=_0e(t,m),[y,w,b,C]=sf.get(t),k=y[m],S=()=>c&&(delete b[m],delete C[m],k&&k[0])?k[0]($0e).then(()=>g().data):g().data;if(e.length<3)return S();let _=r,E;const $=mN();w[m]=[$,0];const M=!Qr(l),P=g(),R=P.data,O=P._c,j=Qr(O)?R:O;if(M&&(l=ad(l)?l(j,R):l,v({data:l,_c:j})),ad(_))try{_=_(j)}catch(A){E=A}if(_&&dft(_))if(_=await _.catch(A=>{E=A}),$!==w[m][0]){if(E)throw E;return _}else E&&M&&u(E)&&(o=!0,_=j,v({data:_,_c:wl}));o&&(E||(ad(o)&&(_=o(_,j)),v({data:_,error:wl,_c:wl}))),w[m][1]=mN();const I=await S();if(v({_c:wl}),E){if(f)throw E;return}return o?I:_}}const _Q=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},T0e=(e,t)=>{if(!sf.has(e)){const n=Df(bft,t),r={},i=M0e.bind(wl,e);let a=Hp;const o={},s=(u,f)=>{const p=o[u]||[];return o[u]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},l=(u,f,p)=>{e.set(u,f);const h=o[u];if(h)for(const m of h)m(f,p)},c=()=>{if(!sf.has(e)&&(sf.set(e,[r,{},{},{},i,l,s]),!g3)){const u=n.initFocus(setTimeout.bind(wl,_Q.bind(wl,r,k0e))),f=n.initReconnect(setTimeout.bind(wl,_Q.bind(wl,r,E0e)));a=()=>{u&&u(),f&&f(),sf.delete(e)}}};return c(),[e,i,c,a]}return[e,sf.get(e)[4]]},Cft=(e,t,n,r,i)=>{const a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!Qr(a)&&o>a||setTimeout(r,s,i)},_ft=(e,t)=>m3(e)==m3(t),[Ez,kft]=T0e(new Map),P0e=Df({onLoadingSlow:Hp,onSuccess:Hp,onError:Hp,onErrorRetry:Cft,onDiscarded:Hp,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:CQ?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:CQ?5e3:3e3,compare:_ft,isPaused:()=>!1,cache:Ez,mutate:kft,fallback:{}},yft),O0e=(e,t)=>{const n=Df(e,t);if(t){const{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=Df(i,o))}return n},gN=d.createContext({}),Eft=e=>{const{value:t}=e,n=d.useContext(gN),r=ad(t),i=d.useMemo(()=>r?t(n):t,[r,n,t]),a=d.useMemo(()=>r?i:O0e(n,i),[r,n,i]),o=i&&i.provider,s=d.useRef(wl);o&&!s.current&&(s.current=T0e(o(a.cache||Ez),i));const l=s.current;return l&&(a.cache=l[0],a.mutate=l[1]),d_(()=>{if(l)return l[2]&&l[2](),l[3]},[]),d.createElement(gN.Provider,Df(e,{value:a}))},R0e=l$&&window.__SWR_DEVTOOLS_USE__,$ft=R0e?window.__SWR_DEVTOOLS_USE__:[],Mft=()=>{R0e&&(window.__SWR_DEVTOOLS_REACT__=te)},Tft=e=>ad(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],$z=()=>Df(P0e,d.useContext(gN)),Pft=e=>(t,n,r)=>e(t,n&&((...a)=>{const[o]=kz(t),[,,,s]=sf.get(Ez),l=s[o];return Qr(l)?n(...a):(delete s[o],l)}),r),Oft=$ft.concat(Pft),Rft=e=>function(...n){const r=$z(),[i,a,o]=Tft(n),s=O0e(r,o);let l=e;const{use:c}=s,u=(c||[]).concat(Oft);for(let f=u.length;f--;)l=u[f](l);return l(i,a||s.fetcher||null,s)},Ift=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};Mft();const kQ=te.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),TT={dedupe:!0},jft=(e,t,n)=>{const{cache:r,compare:i,suspense:a,fallbackData:o,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:f,keepPreviousData:p}=n,[h,m,g,v]=sf.get(r),[y,w]=kz(e),b=d.useRef(!1),C=d.useRef(!1),k=d.useRef(y),S=d.useRef(t),_=d.useRef(n),E=()=>_.current,$=()=>E().isVisible()&&E().isOnline(),[M,P,R,O]=_0e(r,y),j=d.useRef({}).current,I=Qr(o)?n.fallback[y]:o,A=(ce,pe)=>{for(const me in j){const re=me;if(re==="data"){if(!i(ce[re],pe[re])&&(!Qr(ce[re])||!i(ee,pe[re])))return!1}else if(pe[re]!==ce[re])return!1}return!0},N=d.useMemo(()=>{const ce=!y||!t?!1:Qr(s)?E().isPaused()||a?!1:Qr(l)?!0:l:s,pe=Ce=>{const be=Df(Ce);return delete be._k,ce?{isValidating:!0,isLoading:!0,...be}:be},me=M(),re=O(),fe=pe(me),ve=me===re?fe:pe(re);let $e=fe;return[()=>{const Ce=pe(M());return A(Ce,$e)?($e.data=Ce.data,$e.isLoading=Ce.isLoading,$e.isValidating=Ce.isValidating,$e.error=Ce.error,$e):($e=Ce,Ce)},()=>ve]},[r,y]),F=Joe.useSyncExternalStore(d.useCallback(ce=>R(y,(pe,me)=>{A(me,pe)||ce()}),[r,y]),N[0],N[1]),K=!b.current,L=h[y]&&h[y].length>0,V=F.data,B=Qr(V)?I:V,U=F.error,Y=d.useRef(B),ee=p?Qr(V)?Y.current:V:B,ie=L&&!Qr(U)?!1:K&&!Qr(s)?s:E().isPaused()?!1:a?Qr(B)?!1:l:Qr(B)||l,Z=!!(y&&t&&K&&ie),X=Qr(F.isValidating)?Z:F.isValidating,ae=Qr(F.isLoading)?Z:F.isLoading,oe=d.useCallback(async ce=>{const pe=S.current;if(!y||!pe||C.current||E().isPaused())return!1;let me,re,fe=!0;const ve=ce||{},$e=!g[y]||!ve.dedupe,Ce=()=>SQ?!C.current&&y===k.current&&b.current:y===k.current,be={isValidating:!1,isLoading:!1},Se=()=>{P(be)},we=()=>{const ye=g[y];ye&&ye[1]===re&&delete g[y]},se={isValidating:!0};Qr(M().data)&&(se.isLoading=!0);try{if($e&&(P(se),n.loadingTimeout&&Qr(M().data)&&setTimeout(()=>{fe&&Ce()&&E().onLoadingSlow(y,n)},n.loadingTimeout),g[y]=[pe(w),mN()]),[me,re]=g[y],me=await me,$e&&setTimeout(we,n.dedupingInterval),!g[y]||g[y][1]!==re)return $e&&Ce()&&E().onDiscarded(y),!1;be.error=wl;const ye=m[y];if(!Qr(ye)&&(re<=ye[0]||re<=ye[1]||ye[1]===0))return Se(),$e&&Ce()&&E().onDiscarded(y),!1;const Oe=M().data;be.data=i(Oe,me)?Oe:me,$e&&Ce()&&E().onSuccess(me,y,n)}catch(ye){we();const Oe=E(),{shouldRetryOnError:z}=Oe;Oe.isPaused()||(be.error=ye,$e&&Ce()&&(Oe.onError(ye,y,Oe),(z===!0||ad(z)&&z(ye))&&$()&&Oe.onErrorRetry(ye,y,Oe,H=>{const G=h[y];G&&G[0]&&G[0](Wb.ERROR_REVALIDATE_EVENT,H)},{retryCount:(ve.retryCount||0)+1,dedupe:!0})))}return fe=!1,Se(),!0},[y,r]),le=d.useCallback((...ce)=>M0e(r,k.current,...ce),[]);if(d_(()=>{S.current=t,_.current=n,Qr(V)||(Y.current=V)}),d_(()=>{if(!y)return;const ce=oe.bind(wl,TT);let pe=0;const re=Ift(y,h,(fe,ve={})=>{if(fe==Wb.FOCUS_EVENT){const $e=Date.now();E().revalidateOnFocus&&$e>pe&&$()&&(pe=$e+E().focusThrottleInterval,ce())}else if(fe==Wb.RECONNECT_EVENT)E().revalidateOnReconnect&&$()&&ce();else{if(fe==Wb.MUTATE_EVENT)return oe();if(fe==Wb.ERROR_REVALIDATE_EVENT)return oe(ve)}});return C.current=!1,k.current=y,b.current=!0,P({_k:w}),ie&&(Qr(B)||g3?ce():wft(ce)),()=>{C.current=!0,re()}},[y]),d_(()=>{let ce;function pe(){const re=ad(c)?c(M().data):c;re&&ce!==-1&&(ce=setTimeout(me,re))}function me(){!M().error&&(u||E().isVisible())&&(f||E().isOnline())?oe(TT).then(pe):pe()}return pe(),()=>{ce&&(clearTimeout(ce),ce=-1)}},[c,u,f,y]),d.useDebugValue(ee),a&&Qr(B)&&y){if(!SQ&&g3)throw new Error("Fallback data is required when using suspense in SSR.");S.current=t,_.current=n,C.current=!1;const ce=v[y];if(!Qr(ce)){const pe=le(ce);kQ(pe)}if(Qr(U)){const pe=oe(TT);Qr(ee)||(pe.status="fulfilled",pe.value=!0),kQ(pe)}else throw U}return{mutate:le,get data(){return j.data=!0,ee},get error(){return j.error=!0,U},get isValidating(){return j.isValidating=!0,X},get isLoading(){return j.isLoading=!0,ae}}},Nft=u_.defineProperty(Eft,"defaultValue",{value:P0e}),Mz=Rft(jft);var Aft=function(t,n){typeof t=="function"?t(n):Kt(t)==="object"&&t&&"current"in t&&(t.current=n)},Dft=function(){for(var t=arguments.length,n=new Array(t),r=0;r=19;function Tm(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Tm(e,t.slice(0,-1))?e:I0e(e,t,n,r)}const Bft={moneySymbol:"$",form:{lightFilter:{more:"المزيد",clear:"نظف",confirm:"تأكيد",itemUnit:"عناصر"}},tableForm:{search:"ابحث",reset:"إعادة تعيين",submit:"ارسال",collapsed:"مُقلص",expand:"مُوسع",inputPlaceholder:"الرجاء الإدخال",selectPlaceholder:"الرجاء الإختيار"},alert:{clear:"نظف",selected:"محدد",item:"عنصر"},pagination:{total:{range:" ",total:"من",item:"عناصر"}},tableToolBar:{leftPin:"ثبت على اليسار",rightPin:"ثبت على اليمين",noPin:"الغاء التثبيت",leftFixedTitle:"لصق على اليسار",rightFixedTitle:"لصق على اليمين",noFixedTitle:"إلغاء الإلصاق",reset:"إعادة تعيين",columnDisplay:"الأعمدة المعروضة",columnSetting:"الإعدادات",fullScreen:"وضع كامل الشاشة",exitFullScreen:"الخروج من وضع كامل الشاشة",reload:"تحديث",density:"الكثافة",densityDefault:"افتراضي",densityLarger:"أكبر",densityMiddle:"وسط",densitySmall:"مدمج"},stepsForm:{next:"التالي",prev:"السابق",submit:"أنهى"},loginForm:{submitText:"تسجيل الدخول"},editableTable:{action:{save:"أنقذ",cancel:"إلغاء الأمر",delete:"حذف",add:"إضافة صف من البيانات"}},switch:{open:"مفتوح",close:"غلق"}},zft={moneySymbol:"€",form:{lightFilter:{more:"Més",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col·lapsar",inputPlaceholder:"Introduïu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuració",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitjà",densitySmall:"Compacte"},stepsForm:{next:"Següent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel·lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},Hft={moneySymbol:"Kč",deleteThisLine:"Smazat tento řádek",copyThisLine:"Kopírovat tento řádek",form:{lightFilter:{more:"Víc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Položky"}},tableForm:{search:"Dotaz",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položek"}},tableToolBar:{leftPin:"Připnout doleva",rightPin:"Připnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixováno nalevo",rightFixedTitle:"Fixováno napravo",noFixedTitle:"Neopraveno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončete celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"Výchozí",densityLarger:"Větší",densityMiddle:"Střední",densitySmall:"Kompaktní"},stepsForm:{next:"Další",prev:"Předchozí",submit:"Dokončit"},loginForm:{submitText:"Přihlásit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden řádek",action:{save:"Uložit",cancel:"Zrušit",delete:"Vymazat",add:"přidat řádek dat"}},switch:{open:"otevřít",close:"zavřít"}},Uft={moneySymbol:"€",form:{lightFilter:{more:"Mehr",clear:"Zurücksetzen",confirm:"Bestätigen",itemUnit:"Einträge"}},tableForm:{search:"Suchen",reset:"Zurücksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte auswählen"},alert:{clear:"Zurücksetzen",selected:"Ausgewählt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Einträgen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zurücksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Größer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"Löschen",add:"Hinzufügen einer Datenzeile"}},switch:{open:"offen",close:"schließen"}},Wft={moneySymbol:"£",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},Vft={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},qft={moneySymbol:"€",form:{lightFilter:{more:"Más",clear:"Limpiar",confirm:"Confirmar",itemUnit:"artículos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"artículos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuración",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"añadir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},Kft={moneySymbol:"تومان",form:{lightFilter:{more:"بیشتر",clear:"پاک کردن",confirm:"تایید",itemUnit:"مورد"}},tableForm:{search:"جستجو",reset:"بازنشانی",submit:"تایید",collapsed:"نمایش بیشتر",expand:"نمایش کمتر",inputPlaceholder:"پیدا کنید",selectPlaceholder:"انتخاب کنید"},alert:{clear:"پاک سازی",selected:"انتخاب",item:"مورد"},pagination:{total:{range:" ",total:"از",item:"مورد"}},tableToolBar:{leftPin:"سنجاق به چپ",rightPin:"سنجاق به راست",noPin:"سنجاق نشده",leftFixedTitle:"ثابت شده در چپ",rightFixedTitle:"ثابت شده در راست",noFixedTitle:"شناور",reset:"بازنشانی",columnDisplay:"نمایش همه",columnSetting:"تنظیمات",fullScreen:"تمام صفحه",exitFullScreen:"خروج از حالت تمام صفحه",reload:"تازه سازی",density:"تراکم",densityDefault:"پیش فرض",densityLarger:"بزرگ",densityMiddle:"متوسط",densitySmall:"کوچک"},stepsForm:{next:"بعدی",prev:"قبلی",submit:"اتمام"},loginForm:{submitText:"ورود"},editableTable:{action:{save:"ذخیره",cancel:"لغو",delete:"حذف",add:"یک ردیف داده اضافه کنید"}},switch:{open:"باز",close:"نزدیک"}},Gft={moneySymbol:"€",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"Réinitialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"Réduire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"Sélectionner une valeur"},alert:{clear:"Réinitialiser",selected:"Sélectionné",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"éléments"}},tableToolBar:{leftPin:"Épingler à gauche",rightPin:"Épingler à gauche",noPin:"Sans épingle",leftFixedTitle:"Fixer à gauche",rightFixedTitle:"Fixer à droite",noFixedTitle:"Non fixé",reset:"Réinitialiser",columnDisplay:"Affichage colonne",columnSetting:"Réglages",fullScreen:"Plein écran",exitFullScreen:"Quitter Plein écran",reload:"Rafraichir",density:"Densité",densityDefault:"Par défaut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Précédente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de données"}},switch:{open:"ouvert",close:"près"}},Yft={moneySymbol:"₪",deleteThisLine:"מחק שורה זו",copyThisLine:"העתק שורה זו",form:{lightFilter:{more:"יותר",clear:"נקה",confirm:"אישור",itemUnit:"פריטים"}},tableForm:{search:"חיפוש",reset:"איפוס",submit:"שלח",collapsed:"הרחב",expand:"כווץ",inputPlaceholder:"אנא הכנס",selectPlaceholder:"אנא בחר"},alert:{clear:"נקה",selected:"נבחר",item:"פריט"},pagination:{total:{range:" ",total:"מתוך",item:"פריטים"}},tableToolBar:{leftPin:"הצמד לשמאל",rightPin:"הצמד לימין",noPin:"לא מצורף",leftFixedTitle:"מוצמד לשמאל",rightFixedTitle:"מוצמד לימין",noFixedTitle:"לא מוצמד",reset:"איפוס",columnDisplay:"תצוגת עמודות",columnSetting:"הגדרות",fullScreen:"מסך מלא",exitFullScreen:"צא ממסך מלא",reload:"רענן",density:"רזולוציה",densityDefault:"ברירת מחדל",densityLarger:"גדול",densityMiddle:"בינוני",densitySmall:"קטן"},stepsForm:{next:"הבא",prev:"קודם",submit:"סיום"},loginForm:{submitText:"כניסה"},editableTable:{onlyOneLineEditor:"ניתן לערוך רק שורה אחת",action:{save:"שמור",cancel:"ביטול",delete:"מחיקה",add:"הוסף שורת נתונים"}},switch:{open:"פתח",close:"סגור"}},Xft={moneySymbol:"kn",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretraži",reset:"Poništi",submit:"Potvrdi",collapsed:"Raširi",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"Očisti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prikači lijevo",rightPin:"Prikači desno",noPin:"Bez prikačenja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Izađi iz punog zaslona",reload:"Ponovno učitaj",density:"Veličina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljedeći",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},Zft={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},Qft={moneySymbol:"€",form:{lightFilter:{more:"più",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalità schermo intero",exitFullScreen:"Esci da modalità schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},Jft={moneySymbol:"¥",form:{lightFilter:{more:"更に",clear:"クリア",confirm:"確認",itemUnit:"アイテム"}},tableForm:{search:"検索",reset:"リセット",submit:"送信",collapsed:"拡大",expand:"折畳",inputPlaceholder:"入力してください",selectPlaceholder:"選択してください"},alert:{clear:"クリア",selected:"選択した",item:"アイテム"},pagination:{total:{range:"レコード",total:"/合計",item:" "}},tableToolBar:{leftPin:"左に固定",rightPin:"右に固定",noPin:"キャンセル",leftFixedTitle:"左に固定された項目",rightFixedTitle:"右に固定された項目",noFixedTitle:"固定されてない項目",reset:"リセット",columnDisplay:"表示列",columnSetting:"列表示設定",fullScreen:"フルスクリーン",exitFullScreen:"終了",reload:"更新",density:"行高",densityDefault:"デフォルト",densityLarger:"大",densityMiddle:"中",densitySmall:"小"},stepsForm:{next:"次へ",prev:"前へ",submit:"送信"},loginForm:{submitText:"ログイン"},editableTable:{action:{save:"保存",cancel:"キャンセル",delete:"削除",add:"追加"}},switch:{open:"開く",close:"閉じる"}},ept={moneySymbol:"₩",form:{lightFilter:{more:"더보기",clear:"초기화",confirm:"확인",itemUnit:"건수"}},tableForm:{search:"조회",reset:"초기화",submit:"제출",collapsed:"확장",expand:"닫기",inputPlaceholder:"입력해 주세요",selectPlaceholder:"선택해 주세요"},alert:{clear:"취소",selected:"선택",item:"건"},pagination:{total:{range:" ",total:"/ 총",item:"건"}},tableToolBar:{leftPin:"왼쪽으로 핀",rightPin:"오른쪽으로 핀",noPin:"핀 제거",leftFixedTitle:"왼쪽으로 고정",rightFixedTitle:"오른쪽으로 고정",noFixedTitle:"비고정",reset:"초기화",columnDisplay:"컬럼 표시",columnSetting:"설정",fullScreen:"전체 화면",exitFullScreen:"전체 화면 취소",reload:"새로 고침",density:"여백",densityDefault:"기본",densityLarger:"많은 여백",densityMiddle:"중간 여백",densitySmall:"좁은 여백"},stepsForm:{next:"다음",prev:"이전",submit:"종료"},loginForm:{submitText:"로그인"},editableTable:{action:{save:"저장",cancel:"취소",delete:"삭제",add:"데이터 행 추가"}},switch:{open:"열",close:"가까 운"}},tpt={moneySymbol:"₮",form:{lightFilter:{more:"Илүү",clear:"Цэвэрлэх",confirm:"Баталгаажуулах",itemUnit:"Нэгжүүд"}},tableForm:{search:"Хайх",reset:"Шинэчлэх",submit:"Илгээх",collapsed:"Өргөтгөх",expand:"Хураах",inputPlaceholder:"Утга оруулна уу",selectPlaceholder:"Утга сонгоно уу"},alert:{clear:"Цэвэрлэх",selected:"Сонгогдсон",item:"Нэгж"},pagination:{total:{range:" ",total:"Нийт",item:"мөр"}},tableToolBar:{leftPin:"Зүүн тийш бэхлэх",rightPin:"Баруун тийш бэхлэх",noPin:"Бэхлэхгүй",leftFixedTitle:"Зүүн зэрэгцүүлэх",rightFixedTitle:"Баруун зэрэгцүүлэх",noFixedTitle:"Зэрэгцүүлэхгүй",reset:"Шинэчлэх",columnDisplay:"Баганаар харуулах",columnSetting:"Тохиргоо",fullScreen:"Бүтэн дэлгэцээр",exitFullScreen:"Бүтэн дэлгэц цуцлах",reload:"Шинэчлэх",density:"Хэмжээ",densityDefault:"Хэвийн",densityLarger:"Том",densityMiddle:"Дунд",densitySmall:"Жижиг"},stepsForm:{next:"Дараах",prev:"Өмнөх",submit:"Дуусгах"},loginForm:{submitText:"Нэвтрэх"},editableTable:{action:{save:"Хадгалах",cancel:"Цуцлах",delete:"Устгах",add:"Мөр нэмэх"}},switch:{open:"Нээх",close:"Хаах"}},npt={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},rpt={moneySymbol:"zł",form:{lightFilter:{more:"Więcej",clear:"Wyczyść",confirm:"Potwierdź",itemUnit:"Ilość"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierdź",collapsed:"Pokaż wiecej",expand:"Pokaż mniej",inputPlaceholder:"Proszę podać",selectPlaceholder:"Proszę wybrać"},alert:{clear:"Wyczyść",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpisów"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypięte do lewej",rightFixedTitle:"Przypięte do prawej",noFixedTitle:"Nieprzypięte",reset:"Reset",columnDisplay:"Wyświetlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pełen ekran",exitFullScreen:"Zamknij pełen ekran",reload:"Odśwież",density:"Odstęp",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Zaloguj się"},editableTable:{action:{save:"Zapisać",cancel:"Anuluj",delete:"Usunąć",add:"dodawanie wiersza danych"}},switch:{open:"otwierać",close:"zamykać"}},ipt={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar à esquerda",rightPin:"Fixar à direita",noPin:"Desfixado",leftFixedTitle:"Fixado à esquerda",rightFixedTitle:"Fixado à direita",noFixedTitle:"Não fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configurações",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padrão",densityLarger:"Largo",densityMiddle:"Médio",densitySmall:"Compacto"},stepsForm:{next:"Próximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},apt={moneySymbol:"₽",form:{lightFilter:{more:"Еще",clear:"Очистить",confirm:"ОК",itemUnit:"Позиции"}},tableForm:{search:"Найти",reset:"Сброс",submit:"Отправить",collapsed:"Развернуть",expand:"Свернуть",inputPlaceholder:"Введите значение",selectPlaceholder:"Выберите значение"},alert:{clear:"Очистить",selected:"Выбрано",item:"элементов"},pagination:{total:{range:" ",total:"из",item:"элементов"}},tableToolBar:{leftPin:"Закрепить слева",rightPin:"Закрепить справа",noPin:"Открепить",leftFixedTitle:"Закреплено слева",rightFixedTitle:"Закреплено справа",noFixedTitle:"Не закреплено",reset:"Сброс",columnDisplay:"Отображение столбца",columnSetting:"Настройки",fullScreen:"Полный экран",exitFullScreen:"Выйти из полноэкранного режима",reload:"Обновить",density:"Размер",densityDefault:"По умолчанию",densityLarger:"Большой",densityMiddle:"Средний",densitySmall:"Сжатый"},stepsForm:{next:"Следующий",prev:"Предыдущий",submit:"Завершить"},loginForm:{submitText:"Вход"},editableTable:{action:{save:"Сохранить",cancel:"Отменить",delete:"Удалить",add:"добавить ряд данных"}},switch:{open:"Открытый чемпионат мира по теннису",close:"По адресу:"}},opt={moneySymbol:"€",deleteThisLine:"Odstrániť tento riadok",copyThisLine:"Skopírujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vyčistiť",confirm:"Potvrďte",itemUnit:"Položky"}},tableForm:{search:"Vyhladať",reset:"Resetovať",submit:"Odoslať",collapsed:"Rozbaliť",expand:"Zbaliť",inputPlaceholder:"Prosím, zadajte",selectPlaceholder:"Prosím, vyberte"},alert:{clear:"Vyčistiť",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položiek"}},tableToolBar:{leftPin:"Pripnúť vľavo",rightPin:"Pripnúť vpravo",noPin:"Odopnuté",leftFixedTitle:"Fixované na ľavo",rightFixedTitle:"Fixované na pravo",noFixedTitle:"Nefixované",reset:"Resetovať",columnDisplay:"Zobrazenie stĺpcov",columnSetting:"Nastavenia",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončiť celú obrazovku",reload:"Obnoviť",density:"Hustota",densityDefault:"Predvolené",densityLarger:"Väčšie",densityMiddle:"Stredné",densitySmall:"Kompaktné"},stepsForm:{next:"Ďalšie",prev:"Predchádzajúce",submit:"Potvrdiť"},loginForm:{submitText:"Prihlásiť sa"},editableTable:{onlyOneLineEditor:"Upravovať možno iba jeden riadok",action:{save:"Uložiť",cancel:"Zrušiť",delete:"Odstrániť",add:"pridať riadok údajov"}},switch:{open:"otvoriť",close:"zavrieť"}},spt={moneySymbol:"RSD",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pronađi",reset:"Resetuj",submit:"Pošalji",collapsed:"Proširi",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"Očisti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zakači levo",rightPin:"Zakači desno",noPin:"Nije zakačeno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Podešavanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osveži",density:"Veličina",densityDefault:"Podrazumevana",densityLarger:"Veća",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sačuvaj",cancel:"Poništi",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"Отворите",close:"Затворите"}},lpt={moneySymbol:"฿",deleteThisLine:"ลบบรรทัดนี้",copyThisLine:"คัดลอกบรรทัดนี้",form:{lightFilter:{more:"มากกว่า",clear:"ชัดเจน",confirm:"ยืนยัน",itemUnit:"รายการ"}},tableForm:{search:"สอบถาม",reset:"รีเซ็ต",submit:"ส่ง",collapsed:"ขยาย",expand:"ทรุด",inputPlaceholder:"กรุณาป้อน",selectPlaceholder:"โปรดเลือก"},alert:{clear:"ชัดเจน",selected:"เลือกแล้ว",item:"รายการ"},pagination:{total:{range:" ",total:"ของ",item:"รายการ"}},tableToolBar:{leftPin:"ปักหมุดไปทางซ้าย",rightPin:"ปักหมุดไปทางขวา",noPin:"เลิกตรึงแล้ว",leftFixedTitle:"แก้ไขด้านซ้าย",rightFixedTitle:"แก้ไขด้านขวา",noFixedTitle:"ไม่คงที่",reset:"รีเซ็ต",columnDisplay:"การแสดงคอลัมน์",columnSetting:"การตั้งค่า",fullScreen:"เต็มจอ",exitFullScreen:"ออกจากโหมดเต็มหน้าจอ",reload:"รีเฟรช",density:"ความหนาแน่น",densityDefault:"ค่าเริ่มต้น",densityLarger:"ขนาดใหญ่ขึ้น",densityMiddle:"กลาง",densitySmall:"กะทัดรัด"},stepsForm:{next:"ถัดไป",prev:"ก่อนหน้า",submit:"เสร็จ"},loginForm:{submitText:"เข้าสู่ระบบ"},editableTable:{onlyOneLineEditor:"แก้ไขได้เพียงบรรทัดเดียวเท่านั้น",action:{save:"บันทึก",cancel:"ยกเลิก",delete:"ลบ",add:"เพิ่มแถวของข้อมูล"}},switch:{open:"เปิด",close:"ปิด"}},cpt={moneySymbol:"₺",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"Öğeler"}},tableForm:{search:"Filtrele",reset:"Sıfırla",submit:"Gönder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek için bir değer girin",selectPlaceholder:"Filtrelemek için bir değer seçin"},alert:{clear:"Temizle",selected:"Seçili",item:"Öğe"},pagination:{total:{range:" ",total:"Toplam",item:"Öğe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sağa sabitle",noPin:"Sabitlemeyi kaldır",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sağa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"Sıfırla",columnDisplay:"Kolon Görünümü",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan Çık",reload:"Yenile",density:"Kalınlık",densityDefault:"Varsayılan",densityLarger:"Büyük",densityMiddle:"Orta",densitySmall:"Küçük"},stepsForm:{next:"Sıradaki",prev:"Önceki",submit:"Gönder"},loginForm:{submitText:"Giriş Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazgeç",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"açık",close:"kapatmak"}},upt={moneySymbol:"₴",deleteThisLine:"Видатили рядок",copyThisLine:"Скопіювати рядок",form:{lightFilter:{more:"Ще",clear:"Очистити",confirm:"Ок",itemUnit:"Позиції"}},tableForm:{search:"Пошук",reset:"Очистити",submit:"Відправити",collapsed:"Розгорнути",expand:"Згорнути",inputPlaceholder:"Введіть значення",selectPlaceholder:"Оберіть значення"},alert:{clear:"Очистити",selected:"Обрано",item:"елементів"},pagination:{total:{range:" ",total:"з",item:"елементів"}},tableToolBar:{leftPin:"Закріпити зліва",rightPin:"Закріпити справа",noPin:"Відкріпити",leftFixedTitle:"Закріплено зліва",rightFixedTitle:"Закріплено справа",noFixedTitle:"Не закріплено",reset:"Скинути",columnDisplay:"Відображення стовпців",columnSetting:"Налаштування",fullScreen:"Повноекранний режим",exitFullScreen:"Вийти з повноекранного режиму",reload:"Оновити",density:"Розмір",densityDefault:"За замовчуванням",densityLarger:"Великий",densityMiddle:"Середній",densitySmall:"Стислий"},stepsForm:{next:"Наступний",prev:"Попередній",submit:"Завершити"},loginForm:{submitText:"Вхіх"},editableTable:{onlyOneLineEditor:"Тільки один рядок може бути редагований одночасно",action:{save:"Зберегти",cancel:"Відмінити",delete:"Видалити",add:"додати рядок"}},switch:{open:"Відкрито",close:"Закрито"}},dpt={moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yig‘ish",expand:"Kengaytirish",inputPlaceholder:"Qiymatni kiriting",selectPlaceholder:"Qiymatni tanlang"},alert:{clear:"Tozalash",selected:"Tanlangan",item:"elementlar"},pagination:{total:{range:" ",total:"dan",item:"elementlar"}},tableToolBar:{leftPin:"Chapga mahkamlash",rightPin:"O‘ngga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"O‘ngga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni ko‘rsatish",columnSetting:"Sozlamalar",fullScreen:"To‘liq ekran",exitFullScreen:"To‘liq ekrandan chiqish",reload:"Yangilash",density:"O‘lcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"O‘rtacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"O‘chirish",add:"maʼlumotlar qatorini qo‘shish"}},switch:{open:"Ochish",close:"Yopish"}},fpt={moneySymbol:"₫",form:{lightFilter:{more:"Nhiều hơn",clear:"Trong",confirm:"Xác nhận",itemUnit:"Mục"}},tableForm:{search:"Tìm kiếm",reset:"Làm lại",submit:"Gửi đi",collapsed:"Mở rộng",expand:"Thu gọn",inputPlaceholder:"nhập dữ liệu",selectPlaceholder:"Vui lòng chọn"},alert:{clear:"Xóa",selected:"đã chọn",item:"mục"},pagination:{total:{range:" ",total:"trên",item:"mặt hàng"}},tableToolBar:{leftPin:"Ghim trái",rightPin:"Ghim phải",noPin:"Bỏ ghim",leftFixedTitle:"Cố định trái",rightFixedTitle:"Cố định phải",noFixedTitle:"Chưa cố định",reset:"Làm lại",columnDisplay:"Cột hiển thị",columnSetting:"Cấu hình",fullScreen:"Chế độ toàn màn hình",exitFullScreen:"Thoát chế độ toàn màn hình",reload:"Làm mới",density:"Mật độ hiển thị",densityDefault:"Mặc định",densityLarger:"Mặc định",densityMiddle:"Trung bình",densitySmall:"Chật"},stepsForm:{next:"Sau",prev:"Trước",submit:"Kết thúc"},loginForm:{submitText:"Đăng nhập"},editableTable:{action:{save:"Cứu",cancel:"Hủy",delete:"Xóa",add:"thêm một hàng dữ liệu"}},switch:{open:"mở",close:"đóng"}},ppt={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"宽松",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}},hpt={moneySymbol:"NT$",deleteThisLine:"刪除此项",copyThisLine:"複製此项",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"查詢",reset:"重置",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選擇",selected:"已選擇",item:"項"},pagination:{total:{range:"第",total:"條/總共",item:"條"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列設置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}},mpt={moneySymbol:"€",deleteThisLine:"Verwijder deze regel",copyThisLine:"Kopieer deze regel",form:{lightFilter:{more:"Meer filters",clear:"Wissen",confirm:"Bevestigen",itemUnit:"item"}},tableForm:{search:"Zoeken",reset:"Resetten",submit:"Indienen",collapsed:"Uitvouwen",expand:"Inklappen",inputPlaceholder:"Voer in",selectPlaceholder:"Selecteer"},alert:{clear:"Selectie annuleren",selected:"Geselecteerd",item:"item"},pagination:{total:{range:"Van",total:"items/totaal",item:"items"}},tableToolBar:{leftPin:"Vastzetten aan begin",rightPin:"Vastzetten aan einde",noPin:"Niet vastzetten",leftFixedTitle:"Vastzetten aan de linkerkant",rightFixedTitle:"Vastzetten aan de rechterkant",noFixedTitle:"Niet vastzetten",reset:"Resetten",columnDisplay:"Kolomweergave",columnSetting:"Kolominstellingen",fullScreen:"Volledig scherm",exitFullScreen:"Verlaat volledig scherm",reload:"Vernieuwen",density:"Dichtheid",densityDefault:"Normaal",densityLarger:"Ruim",densityMiddle:"Gemiddeld",densitySmall:"Compact"},stepsForm:{next:"Volgende stap",prev:"Vorige stap",submit:"Indienen"},loginForm:{submitText:"Inloggen"},editableTable:{onlyOneLineEditor:"Slechts één regel tegelijk bewerken",action:{save:"Opslaan",cancel:"Annuleren",delete:"Verwijderen",add:"Een regel toevoegen"}},switch:{open:"Openen",close:"Sluiten"}},gpt={moneySymbol:"RON",deleteThisLine:"Șterge acest rând",copyThisLine:"Copiază acest rând",form:{lightFilter:{more:"Mai multe filtre",clear:"Curăță",confirm:"Confirmă",itemUnit:"elemente"}},tableForm:{search:"Caută",reset:"Resetează",submit:"Trimite",collapsed:"Extinde",expand:"Restrânge",inputPlaceholder:"Introduceți",selectPlaceholder:"Selectați"},alert:{clear:"Anulează selecția",selected:"Selectat",item:"elemente"},pagination:{total:{range:"De la",total:"elemente/total",item:"elemente"}},tableToolBar:{leftPin:"Fixează la început",rightPin:"Fixează la sfârșit",noPin:"Nu fixa",leftFixedTitle:"Fixează în stânga",rightFixedTitle:"Fixează în dreapta",noFixedTitle:"Nu fixa",reset:"Resetează",columnDisplay:"Afișare coloane",columnSetting:"Setări coloane",fullScreen:"Ecran complet",exitFullScreen:"Ieși din ecran complet",reload:"Reîncarcă",density:"Densitate",densityDefault:"Normal",densityLarger:"Larg",densityMiddle:"Mediu",densitySmall:"Compact"},stepsForm:{next:"Pasul următor",prev:"Pasul anterior",submit:"Trimite"},loginForm:{submitText:"Autentificare"},editableTable:{onlyOneLineEditor:"Se poate edita doar un rând simultan",action:{save:"Salvează",cancel:"Anulează",delete:"Șterge",add:"Adaugă un rând"}},switch:{open:"Deschide",close:"Închide"}},vpt={moneySymbol:"SEK",deleteThisLine:"Radera denna rad",copyThisLine:"Kopiera denna rad",form:{lightFilter:{more:"Fler filter",clear:"Rensa",confirm:"Bekräfta",itemUnit:"objekt"}},tableForm:{search:"Sök",reset:"Återställ",submit:"Skicka",collapsed:"Expandera",expand:"Fäll ihop",inputPlaceholder:"Vänligen ange",selectPlaceholder:"Vänligen välj"},alert:{clear:"Avbryt val",selected:"Vald",item:"objekt"},pagination:{total:{range:"Från",total:"objekt/totalt",item:"objekt"}},tableToolBar:{leftPin:"Fäst till vänster",rightPin:"Fäst till höger",noPin:"Inte fäst",leftFixedTitle:"Fäst till vänster",rightFixedTitle:"Fäst till höger",noFixedTitle:"Inte fäst",reset:"Återställ",columnDisplay:"Kolumnvisning",columnSetting:"Kolumninställningar",fullScreen:"Fullskärm",exitFullScreen:"Avsluta fullskärm",reload:"Ladda om",density:"Täthet",densityDefault:"Normal",densityLarger:"Lös",densityMiddle:"Medium",densitySmall:"Kompakt"},stepsForm:{next:"Nästa steg",prev:"Föregående steg",submit:"Skicka"},loginForm:{submitText:"Logga in"},editableTable:{onlyOneLineEditor:"Endast en rad kan redigeras åt gången",action:{save:"Spara",cancel:"Avbryt",delete:"Radera",add:"Lägg till en rad"}},switch:{open:"Öppna",close:"Stäng"}};var ni=function(t,n){return{getMessage:function(i,a){var o=Tm(n,i.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(o)return o;var s=t.replace("_","-");if(s==="zh-CN")return a;var l=Eg["zh-CN"];return l?l.getMessage(i,a):a},locale:t}},ypt=ni("mn_MN",tpt),bpt=ni("ar_EG",Bft),Av=ni("zh_CN",ppt),wpt=ni("en_US",Vft),xpt=ni("en_GB",Wft),Spt=ni("vi_VN",fpt),Cpt=ni("it_IT",Qft),_pt=ni("ja_JP",Jft),kpt=ni("es_ES",qft),Ept=ni("ca_ES",zft),$pt=ni("ru_RU",apt),Mpt=ni("sr_RS",spt),Tpt=ni("ms_MY",npt),Ppt=ni("zh_TW",hpt),Opt=ni("fr_FR",Gft),Rpt=ni("pt_BR",ipt),Ipt=ni("ko_KR",ept),jpt=ni("id_ID",Zft),Npt=ni("de_DE",Uft),Apt=ni("fa_IR",Kft),Dpt=ni("tr_TR",cpt),Fpt=ni("pl_PL",rpt),Lpt=ni("hr_",Xft),Bpt=ni("th_TH",lpt),zpt=ni("cs_cz",Hft),Hpt=ni("sk_SK",opt),Upt=ni("he_IL",Yft),Wpt=ni("uk_UA",upt),Vpt=ni("uz_UZ",dpt),qpt=ni("nl_NL",mpt),Kpt=ni("ro_RO",gpt),Gpt=ni("sv_SE",vpt),Eg={"mn-MN":ypt,"ar-EG":bpt,"zh-CN":Av,"en-US":wpt,"en-GB":xpt,"vi-VN":Spt,"it-IT":Cpt,"ja-JP":_pt,"es-ES":kpt,"ca-ES":Ept,"ru-RU":$pt,"sr-RS":Mpt,"ms-MY":Tpt,"zh-TW":Ppt,"fr-FR":Opt,"pt-BR":Rpt,"ko-KR":Ipt,"id-ID":jpt,"de-DE":Npt,"fa-IR":Apt,"tr-TR":Dpt,"pl-PL":Fpt,"hr-HR":Lpt,"th-TH":Bpt,"cs-CZ":zpt,"sk-SK":Hpt,"he-IL":Upt,"uk-UA":Wpt,"uz-UZ":Vpt,"nl-NL":qpt,"ro-RO":Kpt,"sv-SE":Gpt},Ypt=Object.keys(Eg),j0e=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return Ypt.find(function(r){var i=r.toLocaleLowerCase();return i.includes(n)})};function xo(e,t){Xpt(e)&&(e="100%");var n=Zpt(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function zS(e){return Math.min(1,Math.max(0,e))}function Xpt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Zpt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function N0e(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function HS(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Pm(e){return e.length===1?"0"+e:String(e)}function Qpt(e,t,n){return{r:xo(e,255)*255,g:xo(t,255)*255,b:xo(n,255)*255}}function $Q(e,t,n){e=xo(e,255),t=xo(t,255),n=xo(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=0,s=(r+i)/2;if(r===i)o=0,a=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Jpt(e,t,n){var r,i,a;if(e=xo(e,360),t=xo(t,100),n=xo(n,100),t===0)i=n,a=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=PT(s,o,e+1/3),i=PT(s,o,e),a=PT(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function MQ(e,t,n){e=xo(e,255),t=xo(t,255),n=xo(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=r,s=r-i,l=r===0?0:s/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var vN={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function iht(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=sht(e)),typeof e=="object"&&(Vd(e.r)&&Vd(e.g)&&Vd(e.b)?(t=Qpt(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Vd(e.h)&&Vd(e.s)&&Vd(e.v)?(r=HS(e.s),i=HS(e.v),t=eht(e.h,r,i),o=!0,s="hsv"):Vd(e.h)&&Vd(e.s)&&Vd(e.l)&&(r=HS(e.s),a=HS(e.l),t=Jpt(e.h,r,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=N0e(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var aht="[-\\+]?\\d+%?",oht="[-\\+]?\\d*\\.\\d+%?",Up="(?:".concat(oht,")|(?:").concat(aht,")"),OT="[\\s|\\(]+(".concat(Up,")[,|\\s]+(").concat(Up,")[,|\\s]+(").concat(Up,")\\s*\\)?"),RT="[\\s|\\(]+(".concat(Up,")[,|\\s]+(").concat(Up,")[,|\\s]+(").concat(Up,")[,|\\s]+(").concat(Up,")\\s*\\)?"),Lc={CSS_UNIT:new RegExp(Up),rgb:new RegExp("rgb"+OT),rgba:new RegExp("rgba"+RT),hsl:new RegExp("hsl"+OT),hsla:new RegExp("hsla"+RT),hsv:new RegExp("hsv"+OT),hsva:new RegExp("hsva"+RT),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function sht(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(vN[e])e=vN[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Lc.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Lc.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Lc.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Lc.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Lc.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Lc.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Lc.hex8.exec(e),n?{r:cl(n[1]),g:cl(n[2]),b:cl(n[3]),a:PQ(n[4]),format:t?"name":"hex8"}:(n=Lc.hex6.exec(e),n?{r:cl(n[1]),g:cl(n[2]),b:cl(n[3]),format:t?"name":"hex"}:(n=Lc.hex4.exec(e),n?{r:cl(n[1]+n[1]),g:cl(n[2]+n[2]),b:cl(n[3]+n[3]),a:PQ(n[4]+n[4]),format:t?"name":"hex8"}:(n=Lc.hex3.exec(e),n?{r:cl(n[1]+n[1]),g:cl(n[2]+n[2]),b:cl(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Vd(e){return!!Lc.CSS_UNIT.exec(String(e))}var lht=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=rht(t)),this.originalInput=t;var i=iht(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=N0e(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=MQ(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=MQ(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=$Q(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=$Q(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),TQ(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),tht(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(xo(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(xo(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+TQ(this.r,this.g,this.b,!1),n=0,r=Object.entries(vN);n=0,a=!n&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=zS(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=zS(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=zS(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=zS(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],a=360/t,o=1;o1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,i=1103547991^n,a=0,o;a>>16,2246822507)^Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&i)+(r>>>0)},Tz=pg(function(e){return e}),D0e={theme:Tz,token:q(q({},v3),Ho==null||(IT=Ho.defaultAlgorithm)===null||IT===void 0?void 0:IT.call(Ho,Ho==null?void 0:Ho.defaultSeed)),hashId:"pro-".concat(A0e(JSON.stringify(v3)))},cht=function(){return D0e};const uht=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:v3,emptyTheme:Tz,hashCode:A0e,token:D0e,useToken:cht},Symbol.toStringTag,{value:"Module"}));var ul=function(t,n){return new lht(t).setAlpha(n).toRgbString()},dht=function(){return typeof Ho>"u"||!Ho?uht:Ho},wd=dht(),f_=wd.useToken,jT=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}};function Ci(e,t){var n,r=d.useContext(uu),i=r.token,a=i===void 0?{}:i,o=d.useContext(uu),s=o.hashed,l=f_(),c=l.token,u=l.hashId,f=d.useContext(uu),p=f.theme,h=d.useContext(zn.ConfigContext),m=h.getPrefixCls,g=h.csp;return a.layout||(a=q({},c)),a.proComponentsCls=(n=a.proComponentsCls)!==null&&n!==void 0?n:".".concat(m("pro")),a.antCls=".".concat(m()),{wrapSSR:Qw({theme:p,token:a,path:[e],nonce:g==null?void 0:g.nonce},function(){return t(a)}),hashId:s?u:""}}var fht=function(t,n){var r,i,a,o,s,l=q({},t);return q(q({bgLayout:"linear-gradient(".concat(n.colorBgContainer,", ").concat(n.colorBgLayout," 28%)"),colorTextAppListIcon:n.colorTextSecondary,appListIconHoverBgColor:l==null||(r=l.sider)===null||r===void 0?void 0:r.colorBgMenuItemSelected,colorBgAppListIconHover:ul(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},l),{},{header:q({colorBgHeader:ul(n.colorBgElevated,.6),colorBgScrollHeader:ul(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:ul(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(l==null||(i=l.header)===null||i===void 0?void 0:i.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(a=l.header)===null||a===void 0?void 0:a.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:ul(n.colorTextBase,.95),colorBgRightActionsItemHover:ul(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},l.header),sider:q({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:ul(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:ul(n.colorTextBase,.06),colorBgMenuItemHover:ul(n.colorTextBase,.03),colorBgMenuItemSelected:ul(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:ul(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:ul(n.colorTextBase,.95)},l.sider),pageContainer:q({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((o=l.pageContainer)===null||o===void 0?void 0:o.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((s=l.pageContainer)===null||s===void 0?void 0:s.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:n.colorBgElevated},l.pageContainer)})},pht=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i1,ce=I.getMessage("form.lightFilter.itemUnit","项");return typeof Z=="string"&&Z.length>k&&le?"...".concat(U.length).concat(ce):""},ae=X();return x.jsxs("span",{title:typeof Z=="string"?Z:void 0,style:{display:"inline-flex",alignItems:"center"},children:[ie,x.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof Z=="string"?Z==null||(Y=Z.toString())===null||Y===void 0||(ee=Y.substr)===null||ee===void 0?void 0:ee.call(Y,0,k):Z}),ae]})}return B||p};return O(x.jsxs("span",{className:Ee(P,j,"".concat(P,"-").concat((i=(a=t.size)!==null&&a!==void 0?a:E)!==null&&i!==void 0?i:"middle"),ne(ne(ne(ne({},"".concat(P,"-active"),(Array.isArray(l)?l.length>0:!!l)||l===0),"".concat(P,"-disabled"),c),"".concat(P,"-bordered"),g),"".concat(P,"-allow-clear"),b),h),style:v,ref:N,onClick:function(){var B;t==null||(B=t.onClick)===null||B===void 0||B.call(t)},children:[L(o,l),(l||l===0)&&b&&x.jsx(Pd,{role:"button",title:I.getMessage("form.lightFilter.clear","清除"),className:Ee("".concat(P,"-icon"),j,"".concat(P,"-close")),onClick:function(B){c||s==null||s(),B.stopPropagation()},ref:A}),y!==!1?y??x.jsx(My,{className:Ee("".concat(P,"-icon"),j,"".concat(P,"-arrow"))}):null]}))},Qf=te.forwardRef(Eht),lc=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},$ht=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,OQ=function(t){return t==="*"||t==="x"||t==="X"},RQ=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},Mht=function(t,n){return Kt(t)!==Kt(n)?[String(t),String(n)]:[t,n]},Tht=function(t,n){if(OQ(t)||OQ(n))return 0;var r=Mht(RQ(t),RQ(n)),i=Te(r,2),a=i[0],o=i[1];return a>o?1:a"u"?If:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||If},u$=function(t,n){var r=z4(F0e(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return lc(r)},Oht=function(t){return ne(ne(ne({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function Rht(e){return Ci("FilterDropdown",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[Oht(n)]})}var Iht=function(t){var n=t.children,r=t.label,i=t.footer,a=t.open,o=t.onOpenChange,s=t.disabled,l=t.onVisibleChange,c=t.visible,u=t.footerRender,f=t.placement,p=d.useContext(zn.ConfigContext),h=p.getPrefixCls,m=h("pro-core-field-dropdown"),g=Rht(m),v=g.wrapSSR,y=g.hashId,w=u$(a||c||!1,o||l),b=d.useRef(null);return v(x.jsx(wc,q(q({placement:f,trigger:["click"]},w),{},{overlayInnerStyle:{padding:0},content:x.jsxs("div",{ref:b,className:Ee("".concat(m,"-overlay"),ne(ne({},"".concat(m,"-overlay-").concat(f),f),"hashId",y)),children:[x.jsx(zn,{getPopupContainer:function(){return b.current||document.body},children:x.jsx("div",{className:"".concat(m,"-content ").concat(y).trim(),children:n})}),i&&x.jsx(Sht,q({disabled:s,footerRender:u},i))]}),children:x.jsx("span",{className:"".concat(m,"-label ").concat(y).trim(),children:r})})))},jht=function(t){return ne({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function Nht(e){return Ci("LabelIconTip",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[jht(n)]})}var Aht=te.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,i=e.subTitle,a=d.useContext(zn.ConfigContext),o=a.getPrefixCls,s=o("pro-core-label-tip"),l=Nht(s),c=l.wrapSSR,u=l.hashId;if(!n&&!i)return x.jsx(x.Fragment,{children:t});var f=typeof n=="string"||te.isValidElement(n)?{title:n}:n,p=(f==null?void 0:f.icon)||x.jsx(Xrt,{});return c(x.jsxs("div",{className:Ee(s,u),onMouseDown:function(m){return m.stopPropagation()},onMouseLeave:function(m){return m.stopPropagation()},onMouseMove:function(m){return m.stopPropagation()},children:[x.jsx("div",{className:Ee("".concat(s,"-title"),u,ne({},"".concat(s,"-title-ellipsis"),r)),children:t}),i&&x.jsx("div",{className:"".concat(s,"-subtitle ").concat(u).trim(),children:i}),n&&x.jsx(_a,q(q({},f),{},{children:x.jsx("span",{className:"".concat(s,"-icon ").concat(u).trim(),children:p})}))]}))}),L0e=te.createContext({}),B0e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n="month",r="quarter";return function(i,a){var o=a.prototype;o.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var s=o.add;o.add=function(c,u){return c=Number(c),this.$utils().p(u)===r?this.add(3*c,n):s.bind(this)(c,u)};var l=o.startOf;o.startOf=function(c,u){var f=this.$utils(),p=!!f.u(u)||u;if(f.p(c)===r){var h=this.quarter()-1;return p?this.month(3*h).startOf(n).startOf("day"):this.month(3*h+2).endOf(n).endOf("day")}return l.bind(this)(c,u)}}})})(B0e);var Dht=B0e.exports;const Fht=ei(Dht);var $g=function(t){return t==null};cr.extend(Fht);var z0e={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function jQ(e){return Object.prototype.toString.call(e)==="[object Object]"}function Lht(e){if(jQ(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(jQ(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var yN=function(t){return!!(t!=null&&t._isAMomentObject)},NQ=function(t,n,r){if(!n)return t;if(cr.isDayjs(t)||yN(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(z0e[r]||"YYYY-MM-DD HH:mm:ss");if(typeof n=="string"&&n!=="string")return t.format(n);if(typeof n=="function")return n(t,r)}return t},Bht=function e(t,n,r,i,a){var o={};return typeof window>"u"||Kt(t)!=="object"||$g(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(s){var l=a?[a,s].flat(1):[s],c=Ds(r,l)||"text",u="text",f;typeof c=="string"?u=c:c&&(u=c.valueType,f=c.dateFormat);var p=t[s];if(!($g(p)&&i)){if(Lht(p)&&!Array.isArray(p)&&!cr.isDayjs(p)&&!yN(p)){o[s]=e(p,n,r,i,l);return}if(Array.isArray(p)){o[s]=p.map(function(h,m){return cr.isDayjs(h)||yN(h)?NQ(h,f||n,u):e(h,n,r,i,[s,"".concat(m)].flat(1))});return}o[s]=NQ(p,f||n,u)}}),o)},AQ=function(t,n){return typeof n=="function"?n(cr(t)):cr(t).format(n)},zht=function(t,n){var r=Array.isArray(t)?t:[],i=Te(r,2),a=i[0],o=i[1],s,l;Array.isArray(n)?(s=n[0],l=n[1]):Kt(n)==="object"&&n.type==="mask"?(s=n.format,l=n.format):(s=n,l=n);var c=a?AQ(a,s):"",u=o?AQ(o,l):"",f=c&&u?"".concat(c," ~ ").concat(u):"";return f};function z0(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=d.useState(e),i=Te(r,2),a=i[0],o=i[1],s=Uht(e);return d.useEffect(function(){var l=setTimeout(function(){o(s.current)},t);return function(){return clearTimeout(l)}},n?[t].concat(lt(n)):void 0),a}function Xm(e,t,n,r){if(e===t)return!0;if(e&&t&&Kt(e)==="object"&&Kt(t)==="object"){if(e.constructor!==t.constructor)return!1;var i,a,o;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(!Xm(e[a],t[a],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var s=rd(e.entries()),l;try{for(s.s();!(l=s.n()).done;)if(a=l.value,!t.has(a[0]))return!1}catch(m){s.e(m)}finally{s.f()}var c=rd(e.entries()),u;try{for(c.s();!(u=c.n()).done;)if(a=u.value,!Xm(a[1],t.get(a[0]),n,r))return!1}catch(m){c.e(m)}finally{c.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var f=rd(e.entries()),p;try{for(f.s();!(p=f.n()).done;)if(a=p.value,!t.has(a[0]))return!1}catch(m){f.e(m)}finally{f.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(e[a]!==t[a])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(o=Object.keys(e),i=o.length,i!==Object.keys(t).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[a]))return!1;for(a=i;a--!==0;){var h=o[a];if(!(n!=null&&n.includes(h))&&!(h==="_owner"&&e.$$typeof)&&!Xm(e[h],t[h],n,r))return!1}return!0}return e!==e&&t!==t}var Vht=function(t,n,r){return Xm(t,n,r)};function U0e(e,t){var n=d.useRef();return Vht(e,n.current,t)||(n.current=e),n.current}function qht(e,t,n){d.useEffect(e,U0e(t||[],n))}function Ps(e,t){return te.useMemo(e,U0e(t))}var Kht=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Pz=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!Kht};function Ght(e,t){var n=typeof e.pageName=="string"?e.title:t;d.useEffect(function(){Pz()&&n&&(document.title=n)},[e.title,n])}var NT=0;function Yht(e){var t=d.useRef(null),n=d.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(NT+=1,NT.toString())}),r=Te(n,1),i=r[0],a=d.useRef(i),o=function(){var u=pa(hr().mark(function f(){var p,h,m,g;return hr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return(p=t.current)===null||p===void 0||p.abort(),m=new AbortController,t.current=m,y.next=5,Promise.race([(h=e.request)===null||h===void 0?void 0:h.call(e,e.params,e),new Promise(function(w,b){var C;(C=t.current)===null||C===void 0||(C=C.signal)===null||C===void 0||C.addEventListener("abort",function(){b(new Error("aborted"))})})]);case 5:return g=y.sent,y.abrupt("return",g);case 7:case"end":return y.stop()}},f)}));return function(){return u.apply(this,arguments)}}();d.useEffect(function(){return function(){NT+=1}},[]);var s=Mz([a.current,e.params],o,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),l=s.data,c=s.error;return[l||c]}var Xht=function(t){var n=d.useRef();return d.useEffect(function(){n.current=t}),n.current},Zht=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n};function Qht(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var Oz=function(t){if(!t||!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},W0e=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(DQ+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var i=63&r[t];n+=i<36?i.toString(36):i<62?(i-26).toString(36).toUpperCase():i<63?"_":"-"}return n},L6=function(){return typeof window>"u"?FQ():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():FQ()};cr.extend(kme);var LQ=function(t){return!!(t!=null&&t._isAMomentObject)},H4=function e(t,n){return $g(t)||cr.isDayjs(t)||LQ(t)?LQ(t)?cr(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?cr(t):cr(t,n)},Jht=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function emt(e){var t={};return Jht.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var tmt="valueType request plain renderFormItem render text formItemProps valueEnum",nmt="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function V0e(e){var t="".concat(tmt," ").concat(nmt).split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function rmt(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&Kt(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var imt=function(t){var n=t.color,r=t.children;return x.jsx(Lo,{color:n,text:r})},Jf=function(t){return rmt(t)==="map"?t:new Map(Object.entries(t||{}))},amt={Success:function(t){var n=t.children;return x.jsx(Lo,{status:"success",text:n})},Error:function(t){var n=t.children;return x.jsx(Lo,{status:"error",text:n})},Default:function(t){var n=t.children;return x.jsx(Lo,{status:"default",text:n})},Processing:function(t){var n=t.children;return x.jsx(Lo,{status:"processing",text:n})},Warning:function(t){var n=t.children;return x.jsx(Lo,{status:"warning",text:n})},success:function(t){var n=t.children;return x.jsx(Lo,{status:"success",text:n})},error:function(t){var n=t.children;return x.jsx(Lo,{status:"error",text:n})},default:function(t){var n=t.children;return x.jsx(Lo,{status:"default",text:n})},processing:function(t){var n=t.children;return x.jsx(Lo,{status:"processing",text:n})},warning:function(t){var n=t.children;return x.jsx(Lo,{status:"warning",text:n})}},zy=function e(t,n,r){if(Array.isArray(t))return x.jsx(Xr,{split:",",size:2,wrap:!0,children:t.map(function(c,u){return e(c,n,u)})},r);var i=Jf(n);if(!i.has(t)&&!i.has("".concat(t)))return(t==null?void 0:t.label)||t;var a=i.get(t)||i.get("".concat(t));if(!a)return x.jsx(te.Fragment,{children:(t==null?void 0:t.label)||t},r);var o=a.status,s=a.color,l=amt[o||"Init"];return l?x.jsx(l,{children:a.text},r):s?x.jsx(imt,{color:s,children:a.text},r):x.jsx(te.Fragment,{children:a.text||a},r)},bN={exports:{}};(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=y();r.configure=y,r.stringify=r,r.default=r,t.stringify=r,t.configure=y,e.exports=r;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function a(w){return w.length<5e3&&!i.test(w)?`"${w}"`:JSON.stringify(w)}function o(w,b){if(w.length>200||b)return w.sort(b);for(let C=1;Ck;)w[S]=w[S-1],S--;w[S]=k}return w}const s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(w){return s.call(w)!==void 0&&w.length!==0}function c(w,b,C){w.length= 1`)}return C===void 0?1/0:C}function m(w){return w===1?"1 item":`${w} items`}function g(w){const b=new Set;for(const C of w)(typeof C=="string"||typeof C=="number")&&b.add(String(C));return b}function v(w){if(n.call(w,"strict")){const b=w.strict;if(typeof b!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(b)return C=>{let k=`Object can not safely be stringified. Received type ${typeof C}`;throw typeof C!="function"&&(k+=` (${C.toString()})`),new Error(k)}}}function y(w){w={...w};const b=v(w);b&&(w.bigint===void 0&&(w.bigint=!1),"circularValue"in w||(w.circularValue=Error));const C=u(w),k=p(w,"bigint"),S=f(w),_=typeof S=="function"?S:void 0,E=h(w,"maximumDepth"),$=h(w,"maximumBreadth");function M(I,A,N,F,K,L){let V=A[I];switch(typeof V=="object"&&V!==null&&typeof V.toJSON=="function"&&(V=V.toJSON(I)),V=F.call(A,I,V),typeof V){case"string":return a(V);case"object":{if(V===null)return"null";if(N.indexOf(V)!==-1)return C;let B="",U=",";const Y=L;if(Array.isArray(V)){if(V.length===0)return"[]";if(E$){const pe=V.length-$-1;B+=`${U}"... ${m(pe)} not stringified"`}return K!==""&&(B+=` +${Y}`),N.pop(),`[${B}]`}let ee=Object.keys(V);const ie=ee.length;if(ie===0)return"{}";if(E$){const oe=ie-$;B+=`${X}"...":${Z}"${m(oe)} not stringified"`,X=U}return K!==""&&X.length>1&&(B=` +${L}${B} +${Y}`),N.pop(),`{${B}}`}case"number":return isFinite(V)?String(V):b?b(V):"null";case"boolean":return V===!0?"true":"false";case"undefined":return;case"bigint":if(k)return String(V);default:return b?b(V):void 0}}function P(I,A,N,F,K,L){switch(typeof A=="object"&&A!==null&&typeof A.toJSON=="function"&&(A=A.toJSON(I)),typeof A){case"string":return a(A);case"object":{if(A===null)return"null";if(N.indexOf(A)!==-1)return C;const V=L;let B="",U=",";if(Array.isArray(A)){if(A.length===0)return"[]";if(E$){const ae=A.length-$-1;B+=`${U}"... ${m(ae)} not stringified"`}return K!==""&&(B+=` +${V}`),N.pop(),`[${B}]`}N.push(A);let Y="";K!==""&&(L+=K,U=`, +${L}`,Y=" ");let ee="";for(const ie of F){const Z=P(ie,A[ie],N,F,K,L);Z!==void 0&&(B+=`${ee}${a(ie)}:${Y}${Z}`,ee=U)}return K!==""&&ee.length>1&&(B=` +${L}${B} +${V}`),N.pop(),`{${B}}`}case"number":return isFinite(A)?String(A):b?b(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(k)return String(A);default:return b?b(A):void 0}}function R(I,A,N,F,K){switch(typeof A){case"string":return a(A);case"object":{if(A===null)return"null";if(typeof A.toJSON=="function"){if(A=A.toJSON(I),typeof A!="object")return R(I,A,N,F,K);if(A===null)return"null"}if(N.indexOf(A)!==-1)return C;const L=K;if(Array.isArray(A)){if(A.length===0)return"[]";if(E$){const ce=A.length-$-1;Z+=`${X}"... ${m(ce)} not stringified"`}return Z+=` +${L}`,N.pop(),`[${Z}]`}let V=Object.keys(A);const B=V.length;if(B===0)return"{}";if(E$){const Z=B-$;Y+=`${ee}"...": "${m(Z)} not stringified"`,ee=U}return ee!==""&&(Y=` +${K}${Y} +${L}`),N.pop(),`{${Y}}`}case"number":return isFinite(A)?String(A):b?b(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(k)return String(A);default:return b?b(A):void 0}}function O(I,A,N){switch(typeof A){case"string":return a(A);case"object":{if(A===null)return"null";if(typeof A.toJSON=="function"){if(A=A.toJSON(I),typeof A!="object")return O(I,A,N);if(A===null)return"null"}if(N.indexOf(A)!==-1)return C;let F="";const K=A.length!==void 0;if(K&&Array.isArray(A)){if(A.length===0)return"[]";if(E$){const Z=A.length-$-1;F+=`,"... ${m(Z)} not stringified"`}return N.pop(),`[${F}]`}let L=Object.keys(A);const V=L.length;if(V===0)return"{}";if(E$){const Y=V-$;F+=`${B}"...":"${m(Y)} not stringified"`}return N.pop(),`{${F}}`}case"number":return isFinite(A)?String(A):b?b(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(k)return String(A);default:return b?b(A):void 0}}function j(I,A,N){if(arguments.length>1){let F="";if(typeof N=="number"?F=" ".repeat(Math.min(N,10)):typeof N=="string"&&(F=N.slice(0,10)),A!=null){if(typeof A=="function")return M("",{"":I},[],A,F,"");if(Array.isArray(A))return P("",I,[],g(A),F,"")}if(F.length!==0)return R("",I,[],F,"")}return O("",I,[])}return j}})(bN,bN.exports);var omt=bN.exports;const smt=ei(omt),lmt=smt.configure;var BQ=lmt({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function cmt(){this.__data__=[],this.size=0}function d$(e,t){return e===t||e!==e&&t!==t}function f$(e,t){for(var n=e.length;n--;)if(d$(e[n][0],t))return n;return-1}var umt=Array.prototype,dmt=umt.splice;function fmt(e){var t=this.__data__,n=f$(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():dmt.call(t,n,1),--this.size,!0}function pmt(e){var t=this.__data__,n=f$(t,e);return n<0?void 0:t[n][1]}function hmt(e){return f$(this.__data__,e)>-1}function mmt(e,t){var n=this.__data__,r=f$(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ep(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=ygt}function h$(e){return e!=null&&tye(e.length)&&!Rz(e)}function bgt(e){return $h(e)&&h$(e)}function wgt(){return!1}var nye=typeof Ml=="object"&&Ml&&!Ml.nodeType&&Ml,YQ=nye&&typeof qo=="object"&&qo&&!qo.nodeType&&qo,xgt=YQ&&YQ.exports===nye,XQ=xgt?Id.Buffer:void 0,Sgt=XQ?XQ.isBuffer:void 0,Dz=Sgt||wgt,Cgt="[object Object]",_gt=Function.prototype,kgt=Object.prototype,rye=_gt.toString,Egt=kgt.hasOwnProperty,$gt=rye.call(Object);function iye(e){if(!$h(e)||r1(e)!=Cgt)return!1;var t=Nz(e);if(t===null)return!0;var n=Egt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&rye.call(n)==$gt}var Mgt="[object Arguments]",Tgt="[object Array]",Pgt="[object Boolean]",Ogt="[object Date]",Rgt="[object Error]",Igt="[object Function]",jgt="[object Map]",Ngt="[object Number]",Agt="[object Object]",Dgt="[object RegExp]",Fgt="[object Set]",Lgt="[object String]",Bgt="[object WeakMap]",zgt="[object ArrayBuffer]",Hgt="[object DataView]",Ugt="[object Float32Array]",Wgt="[object Float64Array]",Vgt="[object Int8Array]",qgt="[object Int16Array]",Kgt="[object Int32Array]",Ggt="[object Uint8Array]",Ygt="[object Uint8ClampedArray]",Xgt="[object Uint16Array]",Zgt="[object Uint32Array]",Ii={};Ii[Ugt]=Ii[Wgt]=Ii[Vgt]=Ii[qgt]=Ii[Kgt]=Ii[Ggt]=Ii[Ygt]=Ii[Xgt]=Ii[Zgt]=!0;Ii[Mgt]=Ii[Tgt]=Ii[zgt]=Ii[Pgt]=Ii[Hgt]=Ii[Ogt]=Ii[Rgt]=Ii[Igt]=Ii[jgt]=Ii[Ngt]=Ii[Agt]=Ii[Dgt]=Ii[Fgt]=Ii[Lgt]=Ii[Bgt]=!1;function Qgt(e){return $h(e)&&tye(e.length)&&!!Ii[r1(e)]}function Fz(e){return function(t){return e(t)}}var aye=typeof Ml=="object"&&Ml&&!Ml.nodeType&&Ml,tw=aye&&typeof qo=="object"&&qo&&!qo.nodeType&&qo,Jgt=tw&&tw.exports===aye,DT=Jgt&&q0e.process,H0=function(){try{var e=tw&&tw.require&&tw.require("util").types;return e||DT&&DT.binding&&DT.binding("util")}catch{}}(),ZQ=H0&&H0.isTypedArray,oye=ZQ?Fz(ZQ):Qgt;function xN(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var e1t=Object.prototype,t1t=e1t.hasOwnProperty;function sye(e,t,n){var r=e[t];(!(t1t.call(e,t)&&d$(r,n))||n===void 0&&!(t in e))&&Iz(e,t,n)}function Hy(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a-1&&e%1==0&&e0){if(++t>=g1t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pye=b1t(m1t);function w1t(e,t){return pye(fye(e,t,dye),e+"")}function x1t(e,t,n){if(!Sd(n))return!1;var r=typeof t;return(r=="number"?h$(n)&&lye(t,n.length):r=="string"&&t in n)?d$(n[t],e):!1}function S1t(e){return w1t(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&x1t(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r2&&arguments[2]!==void 0?arguments[2]:!0,i=Object.keys(n).reduce(function(s,l){var c=n[l];return $g(c)||(s[l]=c),s},{});if(Object.keys(i).length<1||typeof window>"u"||Kt(t)!=="object"||$g(t)||t instanceof Blob)return t;var a=Array.isArray(t)?[]:{},o=function s(l,c){var u=Array.isArray(l),f=u?[]:{};return l==null||l===void 0?f:(Object.keys(l).forEach(function(p){var h=function b(C,k){return Array.isArray(C)&&C.forEach(function(S,_){if(S){var E=k==null?void 0:k[_];typeof S=="function"&&(k[_]=S(k,p,l)),Kt(S)==="object"&&!Array.isArray(S)&&Object.keys(S).forEach(function($){var M=E==null?void 0:E[$];if(typeof S[$]=="function"&&M){var P=S[$](E[$],p,l);E[$]=Kt(P)==="object"?P[$]:P}else Kt(S[$])==="object"&&Array.isArray(S[$])&&M&&b(S[$],M)}),Kt(S)==="object"&&Array.isArray(S)&&E&&b(S,E)}}),p},m=c?[c,p].flat(1):[p].flat(1),g=l[p],v=Ds(i,m),y=function(){var C,k,S=!1;if(typeof v=="function"){k=v==null?void 0:v(g,p,l);var _=Kt(k);_!=="object"&&_!=="undefined"?(C=p,S=!0):C=k}else C=h(v,g);if(Array.isArray(C)){f=hs(f,C,g);return}Kt(C)==="object"&&!Array.isArray(a)?a=C1t(a,C):Kt(C)==="object"&&Array.isArray(a)?f=q(q({},f),C):(C!==null||C!==void 0)&&(f=hs(f,[C],S?k:g))};if(v&&typeof v=="function"&&y(),!(typeof window>"u")){if(_1t(g)){var w=s(g,m);if(Object.keys(w).length<1)return;f=hs(f,[p],w);return}y()}}),r?f:l)};return a=Array.isArray(t)&&Array.isArray(a)?lt(o(t)):W0e({},o(t),a),a},Dl=function(t){return t===void 0?{}:z4(If,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}};function z1(e){var t=typeof window>"u",n=d.useState(function(){return t?!1:window.matchMedia(e).matches}),r=Te(n,2),i=r[0],a=r[1];return d.useLayoutEffect(function(){if(!t){var o=window.matchMedia(e),s=function(c){return a(c.matches)};return o.addListener(s),function(){return o.removeListener(s)}}},[e]),i}var Cp={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},E1t=function(){var t=void 0;if(typeof window>"u")return t;var n=Object.keys(Cp).find(function(r){var i=Cp[r].matchMedia;return!!window.matchMedia(i).matches});return t=n,t},$1t=function(){var t=z1(Cp.md.matchMedia),n=z1(Cp.lg.matchMedia),r=z1(Cp.xxl.matchMedia),i=z1(Cp.xl.matchMedia),a=z1(Cp.sm.matchMedia),o=z1(Cp.xs.matchMedia),s=d.useState(E1t()),l=Te(s,2),c=l[0],u=l[1];return d.useEffect(function(){if(r){u("xxl");return}if(i){u("xl");return}if(n){u("lg");return}if(t){u("md");return}if(a){u("sm");return}if(o){u("xs");return}u("md")},[t,n,r,i,a,o]),c};function Fl(e,t){for(var n=Object.assign({},e),r=0;r"u"||!window.URL)return{};var u=[];o.forEach(function(p,h){u.push({key:h,value:p})}),u=u.reduce(function(p,h){return(p[h.key]=p[h.key]||[]).push(h),p},{}),u=Object.keys(u).map(function(p){var h=u[p];return h.length===1?[p,h[0].value]:[p,h.map(function(m){var g=m.value;return g})]});var f=nw({},e);return u.forEach(function(p){var h=p[0],m=p[1];f[h]=O1t(h,m,{},e)}),f},[t.disabled,e,o]);function l(u){if(!(typeof window>"u"||!window.URL)){var f=M1t(u);window.location.search!==f.search&&window.history.replaceState({},"",f.toString()),o.toString()!==f.searchParams.toString()&&i({})}}d.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||l(nw(nw({},e),s))},[t.disabled,s]);var c=function(u){l(u)};return d.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var u=function(){i({})};return window.addEventListener("popstate",u),function(){window.removeEventListener("popstate",u)}},[t.disabled]),[s,c]}var P1t={true:!0,false:!1};function O1t(e,t,n,r){if(!n)return t;var i=n[e],a=t===void 0?r[e]:t;return i===Number?Number(a):i===Boolean||t==="true"||t==="false"?P1t[a]:Array.isArray(i)?i.find(function(o){return o==a})||r[e]:a}var s1=te.createContext({}),R1t=["children","Wrapper"],I1t=["children","Wrapper"],hye=d.createContext({grid:!1,colProps:void 0,rowProps:void 0}),j1t=function(t){var n=t.grid,r=t.rowProps,i=t.colProps;return{grid:!!n,RowWrapper:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.children,l=o.Wrapper,c=Ht(o,R1t);return n?x.jsx(z8,q(q(q({gutter:8},r),c),{},{children:s})):l?x.jsx(l,{children:s}):s},ColWrapper:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.children,l=o.Wrapper,c=Ht(o,I1t),u=d.useMemo(function(){var f=q(q({},i),c);return typeof f.span>"u"&&typeof f.xs>"u"&&(f.xs=24),f},[c]);return n?x.jsx(D0,q(q({},u),{},{children:s})):l?x.jsx(l,{children:s}):s}}},Lz=function(t){var n=d.useMemo(function(){return Kt(t)==="object"?t:{grid:t}},[t]),r=d.useContext(hye),i=r.grid,a=r.colProps;return d.useMemo(function(){return j1t({grid:!!(i||n.grid),rowProps:n==null?void 0:n.rowProps,colProps:(n==null?void 0:n.colProps)||a,Wrapper:n==null?void 0:n.Wrapper})},[n==null?void 0:n.Wrapper,n.grid,i,JSON.stringify([a,n==null?void 0:n.colProps,n==null?void 0:n.rowProps])])},N1t=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],A1t=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],JQ={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},D1t=["switch","radioButton","radio","rate"];function Bz(e,t){e.displayName="ProFormComponent";var n=function(a){var o=q(q({},a==null?void 0:a.filedConfig),t),s=o.valueType,l=o.customLightMode,c=o.lightFilterLabelFormatter,u=o.valuePropName,f=u===void 0?"value":u,p=o.ignoreWidth,h=o.defaultProps,m=Ht(o,N1t),g=q(q({},h),a),v=g.label,y=g.tooltip,w=g.placeholder,b=g.width,C=g.bordered,k=g.messageVariables,S=g.ignoreFormItem,_=g.transform,E=g.convertValue,$=g.readonly,M=g.allowClear;g.colSize;var P=g.getFormItemProps,R=g.getFieldProps;g.filedConfig;var O=g.cacheForSwr,j=g.proFieldProps,I=Ht(g,A1t),A=s||I.valueType,N=d.useMemo(function(){return p||D1t.includes(A)},[p,A]),F=d.useState(),K=Te(F,2),L=K[1],V=d.useState(),B=Te(V,2),U=B[0],Y=B[1],ee=te.useContext(s1),ie=Ps(function(){return{formItemProps:P==null?void 0:P(),fieldProps:R==null?void 0:R()}},[R,P,I.dependenciesValues,U]),Z=Ps(function(){var se=q(q(q(q({},S?lc({value:I.value}):{}),{},{placeholder:w,disabled:a.disabled},ee.fieldProps),ie.fieldProps),I.fieldProps);return se.style=lc(se==null?void 0:se.style),se},[S,I.value,I.fieldProps,w,a.disabled,ee.fieldProps,ie.fieldProps]),X=emt(I),ae=Ps(function(){return q(q(q(q({},ee.formItemProps),X),ie.formItemProps),I.formItemProps)},[ie.formItemProps,ee.formItemProps,I.formItemProps,X]),oe=Ps(function(){return q(q({messageVariables:k},m),ae)},[m,ae,k]);zk(!I.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var le=d.useContext(ph),ce=le.prefixName,pe=Ps(function(){var se,ye=oe==null?void 0:oe.name;Array.isArray(ye)&&(ye=ye.join("_")),Array.isArray(ce)&&ye&&(ye="".concat(ce.join("."),".").concat(ye));var Oe=ye&&"form-".concat((se=ee.formKey)!==null&&se!==void 0?se:"","-field-").concat(ye);return Oe},[BQ(oe==null?void 0:oe.name),ce,ee.formKey]),me=du(function(){var se;P||R?Y([]):I.renderFormItem&&L([]);for(var ye=arguments.length,Oe=new Array(ye),z=0;z0?re.map(function(ve,$e){var Ce=fe==null?void 0:fe[$e],be=(Ce==null?void 0:Ce["data-item"])||{};return q(q({},be),ve)}):[]},pe=function me(re){return re.map(function(fe,ve){var $e,Ce=fe,be=Ce.className,Se=Ce.optionType,we=Ht(Ce,W1t),se=fe[F],ye=fe[L],Oe=($e=fe[B])!==null&&$e!==void 0?$e:[];return Se==="optGroup"||fe.options?q(q({label:se},we),{},{data_title:se,title:se,key:ye??"".concat(se==null?void 0:se.toString(),"-").concat(ve,"-").concat(L6()),children:me(Oe)}):q(q({title:se},we),{},{data_title:se,value:ye??ve,key:ye??"".concat(se==null?void 0:se.toString(),"-").concat(ve,"-").concat(L6()),"data-item":fe,className:"".concat(oe,"-option ").concat(be||"").trim(),label:(r==null?void 0:r(fe))||se})})};return x.jsx(Yf,q(q({ref:Z,className:le,allowClear:!0,autoClearSearchValue:c,disabled:k,mode:i,showSearch:R,searchValue:ee,optionFilterProp:y,optionLabelProp:b,onClear:function(){M==null||M(),_(void 0),R&&ie(void 0)}},I),{},{filterOption:I.filterOption==!1?!1:function(me,re){var fe,ve,$e;return I.filterOption&&typeof I.filterOption=="function"?I.filterOption(me,q(q({},re),{},{label:re==null?void 0:re.data_title})):!!(re!=null&&(fe=re.data_title)!==null&&fe!==void 0&&fe.toString().toLowerCase().includes(me.toLowerCase())||re!=null&&(ve=re.label)!==null&&ve!==void 0&&ve.toString().toLowerCase().includes(me.toLowerCase())||re!=null&&($e=re.value)!==null&&$e!==void 0&&$e.toString().toLowerCase().includes(me.toLowerCase()))},onSearch:R?function(me){g&&_(me),a==null||a(me),ie(me)}:void 0,onChange:function(re,fe){R&&c&&(_(void 0),a==null||a(""),ie(void 0));for(var ve=arguments.length,$e=new Array(ve>2?ve-2:0),Ce=2;Ce-1&&e%1==0&&e-1&&e%1==0&&e<=t0t}var Uz=n0t,r0t=l1,i0t=Uz,a0t=jd,o0t="[object Arguments]",s0t="[object Array]",l0t="[object Boolean]",c0t="[object Date]",u0t="[object Error]",d0t="[object Function]",f0t="[object Map]",p0t="[object Number]",h0t="[object Object]",m0t="[object RegExp]",g0t="[object Set]",v0t="[object String]",y0t="[object WeakMap]",b0t="[object ArrayBuffer]",w0t="[object DataView]",x0t="[object Float32Array]",S0t="[object Float64Array]",C0t="[object Int8Array]",_0t="[object Int16Array]",k0t="[object Int32Array]",E0t="[object Uint8Array]",$0t="[object Uint8ClampedArray]",M0t="[object Uint16Array]",T0t="[object Uint32Array]",ji={};ji[x0t]=ji[S0t]=ji[C0t]=ji[_0t]=ji[k0t]=ji[E0t]=ji[$0t]=ji[M0t]=ji[T0t]=!0;ji[o0t]=ji[s0t]=ji[b0t]=ji[l0t]=ji[w0t]=ji[c0t]=ji[u0t]=ji[d0t]=ji[f0t]=ji[p0t]=ji[h0t]=ji[m0t]=ji[g0t]=ji[v0t]=ji[y0t]=!1;function P0t(e){return a0t(e)&&i0t(e.length)&&!!ji[r0t(e)]}var O0t=P0t;function R0t(e){return function(t){return e(t)}}var Wz=R0t,U6={exports:{}};U6.exports;(function(e,t){var n=mye,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(U6,U6.exports);var Vz=U6.exports,I0t=O0t,j0t=Wz,oJ=Vz,sJ=oJ&&oJ.isTypedArray,N0t=sJ?j0t(sJ):I0t,qz=N0t,A0t=Bvt,D0t=zz,F0t=Ul,L0t=m$,B0t=Hz,z0t=qz,H0t=Object.prototype,U0t=H0t.hasOwnProperty;function W0t(e,t){var n=F0t(e),r=!n&&D0t(e),i=!n&&!r&&L0t(e),a=!n&&!r&&!i&&z0t(e),o=n||r||i||a,s=o?A0t(e.length,String):[],l=s.length;for(var c in e)(t||U0t.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||B0t(c,l)))&&s.push(c);return s}var bye=W0t,V0t=Object.prototype;function q0t(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||V0t;return e===n}var Kz=q0t;function K0t(e,t){return function(n){return e(t(n))}}var wye=K0t,G0t=wye,Y0t=G0t(Object.keys,Object),X0t=Y0t,Z0t=Kz,Q0t=X0t,J0t=Object.prototype,eyt=J0t.hasOwnProperty;function tyt(e){if(!Z0t(e))return Q0t(e);var t=[];for(var n in Object(e))eyt.call(e,n)&&n!="constructor"&&t.push(n);return t}var nyt=tyt;function ryt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Mc=ryt,iyt=l1,ayt=Mc,oyt="[object AsyncFunction]",syt="[object Function]",lyt="[object GeneratorFunction]",cyt="[object Proxy]";function uyt(e){if(!ayt(e))return!1;var t=iyt(e);return t==syt||t==lyt||t==oyt||t==cyt}var Gz=uyt,dyt=Gz,fyt=Uz;function pyt(e){return e!=null&&fyt(e.length)&&!dyt(e)}var Wy=pyt,hyt=bye,myt=nyt,gyt=Wy;function vyt(e){return gyt(e)?hyt(e):myt(e)}var K4=vyt,yyt=vye,byt=K4;function wyt(e,t){return e&&yyt(e,t,byt)}var xye=wyt;function xyt(e){return e}var g$=xyt,Syt=g$;function Cyt(e){return typeof e=="function"?e:Syt}var Sye=Cyt,_yt=xye,kyt=Sye;function Eyt(e,t){return e&&_yt(e,kyt(t))}var Yz=Eyt,$yt=wye,Myt=$yt(Object.getPrototypeOf,Object),Xz=Myt,Tyt=l1,Pyt=Xz,Oyt=jd,Ryt="[object Object]",Iyt=Function.prototype,jyt=Object.prototype,Cye=Iyt.toString,Nyt=jyt.hasOwnProperty,Ayt=Cye.call(Object);function Dyt(e){if(!Oyt(e)||Tyt(e)!=Ryt)return!1;var t=Pyt(e);if(t===null)return!0;var n=Nyt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Cye.call(n)==Ayt}var _ye=Dyt;function Fyt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n-1}var ebt=Jyt,tbt=v$;function nbt(e,t){var n=this.__data__,r=tbt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var rbt=nbt,ibt=Byt,abt=Gyt,obt=Zyt,sbt=ebt,lbt=rbt;function Vy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,h=n&wwt?new gwt:void 0;for(a.set(e,t),a.set(t,e);++f0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,cSt.default)(t,function(r){Array.isArray(r)?e(r).map(function(i){return n.push(i)}):(0,sSt.default)(r)?(0,aSt.default)(r,function(i,a){i===!0&&n.push(a),n.push(a+"-"+i)}):(0,rSt.default)(r)&&n.push(r)}),n};V4.default=uSt;var Y4={};function dSt(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,kkt.default)(t.default)||{};return n.map(function(i){var a=t[i];return a&&(0,Ckt.default)(a,function(o,s){r[s]||(r[s]={}),r[s]=Ekt({},r[s],a[s])}),i}),r};Y4.default=$kt;var Q4={};Object.defineProperty(Q4,"__esModule",{value:!0});Q4.autoprefix=void 0;var Mkt=Yz,zJ=Pkt(Mkt),Tkt=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Dkt(i,r);function i(){var a,o,s,l;Akt(this,i);for(var c=arguments.length,u=Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Ukt(i,r);function i(){var a,o,s,l;Hkt(this,i);for(var c=arguments.length,u=Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[o]=s};return t===0&&i("first-child"),t===n-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),r};iH.default=Vkt;Object.defineProperty(cc,"__esModule",{value:!0});cc.ReactCSS=cc.loop=cc.handleActive=cc.handleHover=cc.hover=void 0;var qkt=V4,Kkt=Xy(qkt),Gkt=Y4,Ykt=Xy(Gkt),Xkt=Q4,Zkt=Xy(Xkt),Qkt=J4,tbe=Xy(Qkt),Jkt=ex,e6t=Xy(Jkt),t6t=iH,n6t=Xy(t6t);function Xy(e){return e&&e.__esModule?e:{default:e}}cc.hover=tbe.default;cc.handleHover=tbe.default;cc.handleActive=e6t.default;cc.loop=n6t.default;var r6t=cc.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i0){if(++t>=G6t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Q6t=Z6t,J6t=K6t,e5t=Q6t,t5t=e5t(J6t),n5t=t5t,r5t=g$,i5t=z6t,a5t=n5t;function o5t(e,t){return a5t(i5t(e,t,r5t),e+"")}var s5t=o5t,l5t=G4,c5t=Wy,u5t=Hz,d5t=Mc;function f5t(e,t,n){if(!d5t(n))return!1;var r=typeof t;return(r=="number"?c5t(n)&&u5t(t,n.length):r=="string"&&t in n)?l5t(n[t],e):!1}var p5t=f5t,h5t=s5t,m5t=p5t;function g5t(e){return h5t(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&m5t(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++rs?p=1:p=Math.round(f*100/s)/100,n.a!==p)return{h:n.h,s:n.s,l:n.l,a:p,source:"rgb"}}else{var h;if(u<0?h=0:u>o?h=1:h=Math.round(u*100/o)/100,i!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}return null},UT={},_5t=function(t,n,r,i){if(typeof document>"u"&&!i)return null;var a=i?new i:document.createElement("canvas");a.width=r*2,a.height=r*2;var o=a.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,a.width,a.height),o.fillStyle=n,o.fillRect(0,0,r,r),o.translate(r,r),o.fillRect(0,0,r,r),a.toDataURL()):null},k5t=function(t,n,r,i){var a="".concat(t,"-").concat(n,"-").concat(r).concat(i?"-server":"");if(UT[a])return UT[a];var o=_5t(t,n,r,i);return UT[a]=o,o};function w3(e){"@babel/helpers - typeof";return w3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w3(e)}function XJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function WS(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function q6(e){return q6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},q6(e)}var B5t=function(e){N5t(n,e);var t=A5t(n);function n(){var r;O5t(this,n);for(var i=arguments.length,a=new Array(i),o=0;oo)f=0;else{var p=-(u*100/o)+100;f=360*p/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var h;if(c<0)h=0;else if(c>a)h=359;else{var m=c*100/a;h=360*m/100}if(r.h!==h)return{h,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function z0(e){"@babel/helpers - typeof";return z0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z0(e)}function L5t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B5t(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function q6(e){return q6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},q6(e)}var Y5t=function(e){W5t(n,e);var t=V5t(n);function n(){var r;L5t(this,n);for(var i=arguments.length,a=new Array(i),o=0;oo)f=0;else{var p=-(u*100/o)+100;f=360*p/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var h;if(c<0)h=0;else if(c>a)h=359;else{var m=c*100/a;h=360*m/100}if(r.h!==h)return{h,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function W0(e){"@babel/helpers - typeof";return W0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W0(e)}function H5t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U5t(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function K6(e){return K6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},K6(e)}var Q5t=function(e){K5t(n,e);var t=G5t(n);function n(){var r;H5t(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=t||C<0||f&&E>=a}function y(){var S=zT();if(v(S))return b(S);s=setTimeout(y,g(S))}function b(S){return s=void 0,p&&r?h(S):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function _(){return s===void 0?o:b(zT())}function k(){var S=zT(),C=v(S);if(r=arguments,i=this,l=S,C){if(s===void 0)return m(l);if(f)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),o}return k.cancel=w,k.flush=_,k}var tbe=yEt;const bEt=ei(tbe);var wEt=tbe,xEt=kc,SEt="Expected a function";function CEt(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(SEt);return xEt(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),wEt(e,t,{leading:r,maxWait:t,trailing:i})}var _Et=CEt;const kEt=ei(_Et);var EEt=function(t,n,r){var i=r.getBoundingClientRect(),a=i.width,o=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=s-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>a&&(c=a),u<0?u=0:u>o&&(u=o);var f=c/a,p=1-u/o;return{h:n.h,s:f,v:p,a:n.a,source:"hsv"}};function H0(e){"@babel/helpers - typeof";return H0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H0(e)}function $Et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MEt(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function K6(e){return K6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},K6(e)}var DEt=function(e){IEt(n,e);var t=REt(n);function n(r){var i;return $Et(this,n),i=t.call(this,r),i.handleChange=function(a){typeof i.props.onChange=="function"&&i.throttle(i.props.onChange,EEt(a,i.props.hsl,i.container),a)},i.handleMouseDown=function(a){i.handleChange(a);var o=i.getContainerRenderWindow();o.addEventListener("mousemove",i.handleChange),o.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.throttle=kEt(function(a,o,s){a(o,s)},50),i}return TEt(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var i=this.container,a=window;!a.document.contains(i)&&a.parent!==a;)a=a.parent;return a}},{key:"unbindEventListeners",value:function(){var i=this.getContainerRenderWindow();i.removeEventListener("mousemove",this.handleChange),i.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var i=this,a=this.props.style||{},o=a.color,s=a.white,l=a.black,c=a.pointer,u=a.circle,f=Eh({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-(this.props.hsv.v*100)+100,"%"),left:"".concat(this.props.hsv.s*100,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), + `),te.createElement("div",{style:s.pointer},this.props.pointer?te.createElement(this.props.pointer,this.props):te.createElement("div",{style:s.slider}))))}}]),n}(d.PureComponent||d.Component),J5t=Pu,eEt=function(){return J5t.Date.now()},tEt=eEt,nEt=/\s/;function rEt(e){for(var t=e.length;t--&&nEt.test(e.charAt(t)););return t}var iEt=rEt,aEt=iEt,oEt=/^\s+/;function sEt(e){return e&&e.slice(0,aEt(e)+1).replace(oEt,"")}var lEt=sEt,cEt=lEt,QJ=Mc,uEt=C$,JJ=NaN,dEt=/^[-+]0x[0-9a-f]+$/i,fEt=/^0b[01]+$/i,pEt=/^0o[0-7]+$/i,hEt=parseInt;function mEt(e){if(typeof e=="number")return e;if(uEt(e))return JJ;if(QJ(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=QJ(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=cEt(e);var n=fEt.test(e);return n||pEt.test(e)?hEt(e.slice(2),n?2:8):dEt.test(e)?JJ:+e}var gEt=mEt,vEt=Mc,WT=tEt,eee=gEt,yEt="Expected a function",bEt=Math.max,wEt=Math.min;function xEt(e,t,n){var r,i,a,o,s,l,c=0,u=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(yEt);t=eee(t)||0,vEt(n)&&(u=!!n.leading,f="maxWait"in n,a=f?bEt(eee(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function h(S){var _=r,E=i;return r=i=void 0,c=S,o=e.apply(E,_),o}function m(S){return c=S,s=setTimeout(y,t),u?h(S):o}function g(S){var _=S-l,E=S-c,$=t-_;return f?wEt($,a-E):$}function v(S){var _=S-l,E=S-c;return l===void 0||_>=t||_<0||f&&E>=a}function y(){var S=WT();if(v(S))return w(S);s=setTimeout(y,g(S))}function w(S){return s=void 0,p&&r?h(S):(r=i=void 0,o)}function b(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function C(){return s===void 0?o:w(WT())}function k(){var S=WT(),_=v(S);if(r=arguments,i=this,l=S,_){if(s===void 0)return m(l);if(f)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),o}return k.cancel=b,k.flush=C,k}var obe=xEt;const SEt=ei(obe);var CEt=obe,_Et=Mc,kEt="Expected a function";function EEt(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(kEt);return _Et(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),CEt(e,t,{leading:r,maxWait:t,trailing:i})}var $Et=EEt;const MEt=ei($Et);var TEt=function(t,n,r){var i=r.getBoundingClientRect(),a=i.width,o=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=s-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>a&&(c=a),u<0?u=0:u>o&&(u=o);var f=c/a,p=1-u/o;return{h:n.h,s:f,v:p,a:n.a,source:"hsv"}};function V0(e){"@babel/helpers - typeof";return V0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V0(e)}function PEt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OEt(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function G6(e){return G6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},G6(e)}var BEt=function(e){NEt(n,e);var t=AEt(n);function n(r){var i;return PEt(this,n),i=t.call(this,r),i.handleChange=function(a){typeof i.props.onChange=="function"&&i.throttle(i.props.onChange,TEt(a,i.props.hsl,i.container),a)},i.handleMouseDown=function(a){i.handleChange(a);var o=i.getContainerRenderWindow();o.addEventListener("mousemove",i.handleChange),o.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.throttle=MEt(function(a,o,s){a(o,s)},50),i}return REt(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var i=this.container,a=window;!a.document.contains(i)&&a.parent!==a;)a=a.parent;return a}},{key:"unbindEventListeners",value:function(){var i=this.getContainerRenderWindow();i.removeEventListener("mousemove",this.handleChange),i.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var i=this,a=this.props.style||{},o=a.color,s=a.white,l=a.black,c=a.pointer,u=a.circle,f=Mh({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-(this.props.hsv.v*100)+100,"%"),left:"".concat(this.props.hsv.s*100,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), 0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:o,white:s,black:l,pointer:c,circle:u}},{custom:!!this.props.style});return te.createElement("div",{style:f.color,ref:function(h){return i.container=h},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},te.createElement("style",null,` .saturation-white { background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0)); @@ -545,8 +545,8 @@ ${F}`),N.pop(),`{${Z}}`}case"number":return isFinite(j)?String(j):w?w(j):"null"; background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0)); background: linear-gradient(to top, #000, rgba(0,0,0,0)); } - `),te.createElement("div",{style:f.white,className:"saturation-white"},te.createElement("div",{style:f.black,className:"saturation-black"}),te.createElement("div",{style:f.pointer},this.props.pointer?te.createElement(this.props.pointer,this.props):te.createElement("div",{style:f.circle}))))}}]),n}(d.PureComponent||d.Component),FEt=Fye,LEt=Dye,BEt=vye,zEt=zl;function HEt(e,t){var n=zEt(e)?FEt:LEt;return n(e,BEt(t))}var UEt=HEt,WEt=UEt;const VEt=ei(WEt);function G6(e){"@babel/helpers - typeof";return G6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G6(e)}var qEt=/^\s+/,KEt=/\s+$/;function Xn(e,t){if(e=e||"",t=t||{},e instanceof Xn)return e;if(!(this instanceof Xn))return new Xn(e,t);var n=GEt(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}Xn.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,o,s;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(t){return this._a=nbe(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=JJ(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=JJ(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=QJ(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=QJ(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return eee(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return QEt(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Gi(this._r,255)*100)+"%",g:Math.round(Gi(this._g,255)*100)+"%",b:Math.round(Gi(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Gi(this._r,255)*100)+"%, "+Math.round(Gi(this._g,255)*100)+"%, "+Math.round(Gi(this._b,255)*100)+"%)":"rgba("+Math.round(Gi(this._r,255)*100)+"%, "+Math.round(Gi(this._g,255)*100)+"%, "+Math.round(Gi(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:u8t[eee(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+tee(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=Xn(t);r="#"+tee(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,a=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Xn(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(n8t,arguments)},brighten:function(){return this._applyModification(r8t,arguments)},darken:function(){return this._applyModification(i8t,arguments)},desaturate:function(){return this._applyModification(JEt,arguments)},saturate:function(){return this._applyModification(e8t,arguments)},greyscale:function(){return this._applyModification(t8t,arguments)},spin:function(){return this._applyModification(a8t,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(l8t,arguments)},complement:function(){return this._applyCombination(o8t,arguments)},monochromatic:function(){return this._applyCombination(c8t,arguments)},splitcomplement:function(){return this._applyCombination(s8t,arguments)},triad:function(){return this._applyCombination(nee,[3])},tetrad:function(){return this._applyCombination(nee,[4])}};Xn.fromRatio=function(e,t){if(G6(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=$2(e[r]));e=n}return Xn(e,t)};function GEt(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=h8t(e)),G6(e)=="object"&&(Ud(e.r)&&Ud(e.g)&&Ud(e.b)?(t=YEt(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ud(e.h)&&Ud(e.s)&&Ud(e.v)?(r=$2(e.s),i=$2(e.v),t=ZEt(e.h,r,i),o=!0,s="hsv"):Ud(e.h)&&Ud(e.s)&&Ud(e.l)&&(r=$2(e.s),a=$2(e.l),t=XEt(e.h,r,a),o=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=nbe(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function YEt(e,t,n){return{r:Gi(e,255)*255,g:Gi(t,255)*255,b:Gi(n,255)*255}}function QJ(e,t,n){e=Gi(e,255),t=Gi(t,255),n=Gi(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=(r+i)/2;if(r==i)a=o=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=o(l,s,e+1/3),i=o(l,s,e),a=o(l,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function JJ(e,t,n){e=Gi(e,255),t=Gi(t,255),n=Gi(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=r,l=r-i;if(o=r===0?0:l/r,r==i)a=0;else{switch(r){case e:a=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(Xn(r));return a}function c8t(e,t){t=t||6;for(var n=Xn(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(Xn({h:r,s:i,v:a})),a=(a+s)%1;return o}Xn.mix=function(e,t,n){n=n===0?0:n||50;var r=Xn(e).toRgb(),i=Xn(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return Xn(o)};Xn.readability=function(e,t){var n=Xn(e),r=Xn(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Xn.isReadable=function(e,t,n){var r=Xn.readability(e,t),i,a;switch(a=!1,i=m8t(n),i.level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a};Xn.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,l;n=n||{},o=n.includeFallbackColors,s=n.level,l=n.size;for(var c=0;ci&&(i=a,r=Xn(t[c]));return Xn.isReadable(e,r,{level:s,size:l})||!o?r:(n.includeFallbackColors=!1,Xn.mostReadable(e,["#fff","#000"],n))};var MN=Xn.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},u8t=Xn.hexNames=d8t(MN);function d8t(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function nbe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Gi(e,t){f8t(e)&&(e="100%");var n=p8t(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function _$(e){return Math.min(1,Math.max(0,e))}function dl(e){return parseInt(e,16)}function f8t(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function p8t(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Zc(e){return e.length==1?"0"+e:""+e}function $2(e){return e<=1&&(e=e*100+"%"),e}function rbe(e){return Math.round(parseFloat(e)*255).toString(16)}function ree(e){return dl(e)/255}var Dc=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ud(e){return!!Dc.CSS_UNIT.exec(e)}function h8t(e){e=e.replace(qEt,"").replace(KEt,"").toLowerCase();var t=!1;if(MN[e])e=MN[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Dc.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Dc.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Dc.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Dc.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Dc.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Dc.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Dc.hex8.exec(e))?{r:dl(n[1]),g:dl(n[2]),b:dl(n[3]),a:ree(n[4]),format:t?"name":"hex8"}:(n=Dc.hex6.exec(e))?{r:dl(n[1]),g:dl(n[2]),b:dl(n[3]),format:t?"name":"hex"}:(n=Dc.hex4.exec(e))?{r:dl(n[1]+""+n[1]),g:dl(n[2]+""+n[2]),b:dl(n[3]+""+n[3]),a:ree(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Dc.hex3.exec(e))?{r:dl(n[1]+""+n[1]),g:dl(n[2]+""+n[2]),b:dl(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function m8t(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var iee=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,i=0;return VEt(n,function(a){if(t[a]&&(r+=1,isNaN(t[a])||(i+=1),a==="s"||a==="l")){var o=/^\d+%$/;o.test(t[a])&&(i+=1)}}),r===i?t:!1},US=function(t,n){var r=t.hex?Xn(t.hex):Xn(t),i=r.toHsl(),a=r.toHsv(),o=r.toRgb(),s=r.toHex();i.s===0&&(i.h=n||0,a.h=n||0);var l=s==="000000"&&o.a===0;return{hsl:i,hex:l?"transparent":"#".concat(s),rgb:o,hsv:a,oldHue:t.h||n||i.h,source:t.source}},g8t=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Xn(t).isValid()};function U0(e){"@babel/helpers - typeof";return U0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U0(e)}function TN(){return TN=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Y6(e){return Y6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Y6(e)}var E8t=function(t){var n=function(r){x8t(a,r);var i=S8t(a);function a(o){var s;return y8t(this,a),s=i.call(this),s.handleChange=function(l,c){var u=iee(l);if(u){var f=US(l,l.h||s.state.oldHue);s.setState(f),s.props.onChangeComplete&&s.debounce(s.props.onChangeComplete,f,c),s.props.onChange&&s.props.onChange(f,c)}},s.handleSwatchHover=function(l,c){var u=iee(l);if(u){var f=US(l,l.h||s.state.oldHue);s.props.onSwatchHover&&s.props.onSwatchHover(f,c)}},s.state=qb({},US(o.color,0)),s.debounce=bEt(function(l,c,u){l(c,u)},100),s}return b8t(a,[{key:"render",value:function(){var s={};return this.props.onSwatchHover&&(s.onSwatchHover=this.handleSwatchHover),te.createElement(t,TN({},this.props,this.state,{onChange:this.handleChange},s))}}],[{key:"getDerivedStateFromProps",value:function(s,l){return qb({},US(s.color,l.oldHue))}}]),a}(d.PureComponent||d.Component);return n.propTypes=qb({},t.propTypes),n.defaultProps=qb(qb({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function W0(e){"@babel/helpers - typeof";return W0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W0(e)}function $8t(e,t,n){return t=abe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M8t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T8t(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function X6(e){return X6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},X6(e)}var D8t=1,obe=38,F8t=40,L8t=[obe,F8t],B8t=function(t){return L8t.indexOf(t)>-1},z8t=function(t){return Number(String(t).replace(/%/g,""))},H8t=1,Kb=function(e){I8t(n,e);var t=R8t(n);function n(r){var i;return M8t(this,n),i=t.call(this),i.handleBlur=function(){i.state.blurValue&&i.setState({value:i.state.blurValue,blurValue:null})},i.handleChange=function(a){i.setUpdatedValue(a.target.value,a)},i.handleKeyDown=function(a){var o=z8t(a.target.value);if(!isNaN(o)&&B8t(a.keyCode)){var s=i.getArrowOffset(),l=a.keyCode===obe?o+s:o-s;i.setUpdatedValue(l,a)}},i.handleDrag=function(a){if(i.props.dragLabel){var o=Math.round(i.props.value+a.movementX);o>=0&&o<=i.props.dragMax&&i.props.onChange&&i.props.onChange(i.getValueObjectWithLabel(o),a)}},i.handleMouseDown=function(a){i.props.dragLabel&&(a.preventDefault(),i.handleDrag(a),window.addEventListener("mousemove",i.handleDrag),window.addEventListener("mouseup",i.handleMouseUp))},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleDrag),window.removeEventListener("mouseup",i.handleMouseUp)},i.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},i.inputId="rc-editable-input-".concat(H8t++),i}return P8t(n,[{key:"componentDidUpdate",value:function(i,a){this.props.value!==this.state.value&&(i.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(i){return $8t({},this.props.label,i)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||D8t}},{key:"setUpdatedValue",value:function(i,a){var o=this.props.label?this.getValueObjectWithLabel(i):i;this.props.onChange&&this.props.onChange(o,a),this.setState({value:i})}},{key:"render",value:function(){var i=this,a=Eh({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return te.createElement("div",{style:a.wrap},te.createElement("input",{id:this.inputId,style:a.input,ref:function(s){return i.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?te.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(d.PureComponent||d.Component);function V0(e){"@babel/helpers - typeof";return V0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V0(e)}function IN(){return IN=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Z6(e){return Z6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Z6(e)}var J8t=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){G8t(a,r);var i=Y8t(a);function a(){var o;U8t(this,a);for(var s=arguments.length,l=new Array(s),c=0;c100&&(u.a=100),u.a/=100,n==null||n({h:i==null?void 0:i.h,s:i==null?void 0:i.s,l:i==null?void 0:i.l,a:u.a,source:"rgb"},f))};return te.createElement("div",{style:s.fields,className:"flexbox-fix"},te.createElement("div",{style:s.double},te.createElement(Kb,{style:{input:s.input,label:s.label},label:"hex",value:a==null?void 0:a.replace("#",""),onChange:l})),te.createElement("div",{style:s.single},te.createElement(Kb,{style:{input:s.input,label:s.label},label:"r",value:r==null?void 0:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),te.createElement("div",{style:s.single},te.createElement(Kb,{style:{input:s.input,label:s.label},label:"g",value:r==null?void 0:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),te.createElement("div",{style:s.single},te.createElement(Kb,{style:{input:s.input,label:s.label},label:"b",value:r==null?void 0:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),te.createElement("div",{style:s.alpha},te.createElement(Kb,{style:{input:s.input,label:s.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:l,dragLabel:"true",dragMax:"100"})))};function x3(e){"@babel/helpers - typeof";return x3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x3(e)}function cee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uee(e){for(var t=1;t-1}function w$t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&lbe()?GB:y$t}var x$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.old,c=d.useContext(zn.ConfigContext),u=c.getPrefixCls,f=te.useMemo(function(){return w$t(l)},[l]),p=u("pro-field-color-picker"),h=d.useMemo(function(){return l?"":Ee(ne({},p,lbe()))},[p,l]);if(i==="read"){var m=x.jsx(f,{value:r,mode:"read",ref:n,className:h,open:!1});return a?a(r,q({mode:i},s),m):m}if(i==="edit"||i==="update"){var g=q({display:"table-cell"},s.style),v=x.jsx(f,q(q({ref:n,presets:[b$t]},s),{},{style:g,className:h}));return o?o(r,q(q({mode:i},s),{},{style:g}),v):v}return null};const S$t=te.forwardRef(x$t);ur.extend(PB);var C$t=function(t,n){return t?typeof n=="function"?n(ur(t)):ur(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},_$t=function(t,n){var r=t.text,i=t.mode,a=t.format,o=t.label,s=t.light,l=t.render,c=t.renderFormItem,u=t.plain,f=t.showTime,p=t.fieldProps,h=t.picker,m=t.bordered,g=t.lightLabel,v=la(),y=d.useState(!1),b=Te(y,2),w=b[0],_=b[1];if(i==="read"){var k=C$t(r,p.format||a);return l?l(r,q({mode:i},p),x.jsx(x.Fragment,{children:k})):x.jsx(x.Fragment,{children:k})}if(i==="edit"||i==="update"){var S,C=p.disabled,E=p.value,$=p.placeholder,M=$===void 0?v.getMessage("tableForm.selectPlaceholder","请选择"):$,P=B4(E);return s?S=x.jsx(Qf,{label:o,onClick:function(){var O;p==null||(O=p.onOpenChange)===null||O===void 0||O.call(p,!0),_(!0)},style:P?{paddingInlineEnd:0}:void 0,disabled:C,value:P||w?x.jsx(bc,q(q(q({picker:h,showTime:f,format:a,ref:n},p),{},{value:P,onOpenChange:function(O){var A;_(O),p==null||(A=p.onOpenChange)===null||A===void 0||A.call(p,O)}},Nl(!1)),{},{open:w})):void 0,allowClear:!1,downIcon:P||w?!1:void 0,bordered:m,ref:g}):S=x.jsx(bc,q(q(q({picker:h,showTime:f,format:a,placeholder:M},Nl(u===void 0?!0:!u)),{},{ref:n},p),{},{value:P})),c?c(r,q({mode:i},p),S):S}return null};const z1=te.forwardRef(_$t);var k$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=la(),u=o||c.getMessage("tableForm.inputPlaceholder","请输入"),f=d.useCallback(function(y){var b=y??void 0;return!l.stringMode&&typeof b=="string"&&(b=Number(b)),typeof b=="number"&&!Eg(b)&&!Eg(l.precision)&&(b=Number(b.toFixed(l.precision))),b},[l]);if(i==="read"){var p,h={};l!=null&&l.precision&&(h={minimumFractionDigits:Number(l.precision),maximumFractionDigits:Number(l.precision)});var m=new Intl.NumberFormat(void 0,q(q({},h),(l==null?void 0:l.intlProps)||{})).format(Number(r)),g=l!=null&&l.stringMode?x.jsx("span",{children:r}):x.jsx("span",{ref:n,children:(l==null||(p=l.formatter)===null||p===void 0?void 0:p.call(l,m))||m});return a?a(r,q({mode:i},l),g):g}if(i==="edit"||i==="update"){var v=x.jsx(Af,q(q({ref:n,min:0,placeholder:u},Al(l,["onChange","onBlur"])),{},{onChange:function(b){var w;return l==null||(w=l.onChange)===null||w===void 0?void 0:w.call(l,f(b))},onBlur:function(b){var w;return l==null||(w=l.onBlur)===null||w===void 0?void 0:w.call(l,f(b.target.value))}}));return s?s(r,q({mode:i},l),v):v}return null};const E$t=te.forwardRef(k$t);var $$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=t.separator,u=c===void 0?"~":c,f=t.separatorWidth,p=f===void 0?30:f,h=l.value,m=l.defaultValue,g=l.onChange,v=l.id,y=la(),b=vd.useToken(),w=b.token,_=In(function(){return m},{value:h,onChange:g}),k=Te(_,2),S=k[0],C=k[1];if(i==="read"){var E=function(D){var V,F=new Intl.NumberFormat(void 0,q({minimumSignificantDigits:2},(l==null?void 0:l.intlProps)||{})).format(Number(D));return(l==null||(V=l.formatter)===null||V===void 0?void 0:V.call(l,F))||F},$=x.jsxs("span",{ref:n,children:[E(r[0])," ",u," ",E(r[1])]});return a?a(r,q({mode:i},l),$):$}if(i==="edit"||i==="update"){var M=function(){if(Array.isArray(S)){var D=Te(S,2),V=D[0],F=D[1];typeof V=="number"&&typeof F=="number"&&V>F?C([F,V]):V===void 0&&F===void 0&&C(void 0)}},P=function(D,V){var F=ct(S||[]);F[D]=V===null?void 0:V,C(F)},I=(l==null?void 0:l.placeholder)||o||[y.getMessage("tableForm.inputPlaceholder","请输入"),y.getMessage("tableForm.inputPlaceholder","请输入")],O=function(D){return Array.isArray(I)?I[D]:I},A=Zr.Compact||Wr.Group,R=Zr.Compact?{}:{compact:!0},j=x.jsxs(A,q(q({},R),{},{onBlur:M,children:[x.jsx(Af,q(q({},l),{},{placeholder:O(0),id:v??"".concat(v,"-0"),style:{width:"calc((100% - ".concat(p,"px) / 2)")},value:S==null?void 0:S[0],defaultValue:m==null?void 0:m[0],onChange:function(D){return P(0,D)}})),x.jsx(Wr,{style:{width:p,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:w==null?void 0:w.colorBgContainer},placeholder:u,disabled:!0}),x.jsx(Af,q(q({},l),{},{placeholder:O(1),id:v??"".concat(v,"-1"),style:{width:"calc((100% - ".concat(p,"px) / 2)"),borderInlineStart:0},value:S==null?void 0:S[1],defaultValue:m==null?void 0:m[1],onChange:function(D){return P(1,D)}}))]}));return s?s(r,q({mode:i},l),j):j}return null};const M$t=te.forwardRef($$t);var cbe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r,i){n=n||{};var a=r.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,p){return a.fromToBase(c,u,f,p)}i.en.relativeTime=o,a.fromToBase=function(c,u,f,p,h){for(var m,g,v,y=f.$locale().relativeTime||o,b=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=b.length,_=0;_0,S<=k.r||!k.r){S<=1&&_>0&&(k=b[_-1]);var C=y[k.l];h&&(S=h(""+S)),g=typeof C=="string"?C.replace("%d",S):C(S,u,k.l,v);break}}if(u)return g;var E=v?y.future:y.past;return typeof E=="function"?E(g):E.replace("%s",g)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?i.utc():i()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(cbe);var T$t=cbe.exports;const P$t=ei(T$t);ur.extend(P$t);var O$t=function(t,n){var r=t.text,i=t.mode,a=t.plain,o=t.render,s=t.renderFormItem,l=t.format,c=t.fieldProps,u=la();if(i==="read"){var f=x.jsx(Ea,{title:ur(r).format((c==null?void 0:c.format)||l||"YYYY-MM-DD HH:mm:ss"),children:ur(r).fromNow()});return o?o(r,q({mode:i},c),x.jsx(x.Fragment,{children:f})):x.jsx(x.Fragment,{children:f})}if(i==="edit"||i==="update"){var p=u.getMessage("tableForm.selectPlaceholder","请选择"),h=B4(c.value),m=x.jsx(bc,q(q(q({ref:n,placeholder:p,showTime:!0},Nl(a===void 0?!0:!a)),c),{},{value:h}));return s?s(r,q({mode:i},c),m):m}return null};const I$t=te.forwardRef(O$t);var ube=te.forwardRef(function(e,t){var n=e.text,r=e.mode,i=e.render,a=e.renderFormItem,o=e.fieldProps,s=e.placeholder,l=e.width,c=la(),u=s||c.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var f=x.jsx(A1e,q({ref:t,width:l||32,src:n},o));return i?i(n,q({mode:r},o),f):f}if(r==="edit"||r==="update"){var p=x.jsx(Wr,q({ref:t,placeholder:u},o));return a?a(n,q({mode:r},o),p):p}return null}),R$t=function(t,n){var r=t.border,i=r===void 0?!1:r,a=t.children,o=d.useContext(zn.ConfigContext),s=o.getPrefixCls,l=s("pro-field-index-column"),c=_i("IndexColumn",function(){return ne({},".".concat(l),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),u=c.wrapSSR,f=c.hashId;return u(x.jsx("div",{ref:n,className:Ee(l,f,ne(ne({},"".concat(l,"-border"),i),"top-three",a>3)),children:a}))};const fee=te.forwardRef(R$t);var j$t=["contentRender","numberFormatOptions","numberPopoverRender","open"],N$t=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],dbe=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),A$t={style:"currency",currency:"USD"},D$t={style:"currency",currency:"RUB"},F$t={style:"currency",currency:"RSD"},L$t={style:"currency",currency:"MYR"},B$t={style:"currency",currency:"BRL"},z$t={default:dbe,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":A$t,"ru-RU":D$t,"ms-MY":L$t,"sr-RS":F$t,"pt-BR":B$t},pee=function(t,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",o=n==null?void 0:n.toString().replaceAll(",","");if(typeof o=="string"){var s=Number(o);if(Number.isNaN(s))return o;o=s}if(!o&&o!==0)return"";var l=!1;try{l=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var c=new Intl.NumberFormat(l&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",q(q({},z$t[t||"zh-Hans-CN"]||dbe),{},{maximumFractionDigits:r},i)),u=c.format(o),f=function(y){var b=y.match(/\d+/);if(b){var w=b[0];return y.slice(y.indexOf(w))}else return y},p=f(u),h=u||"",m=Te(h,1),g=m[0];return["+","-"].includes(g)?"".concat(a||"").concat(g).concat(p):"".concat(a||"").concat(p)}catch{return o}},HT=2,H$t=te.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,i=Ut(e,j$t),a=In(function(){return i.defaultValue},{value:i.value,onChange:i.onChange}),o=Te(a,2),s=o[0],l=o[1],c=n==null?void 0:n(q(q({},i),{},{value:s})),u=s$(c?r:!1);return x.jsx(yc,q(q({placement:"topLeft"},u),{},{trigger:["focus","click"],content:c,getPopupContainer:function(p){return(p==null?void 0:p.parentElement)||document.body},children:x.jsx(Af,q(q({ref:t},i),{},{value:s,onChange:l}))}))}),U$t=function(t,n){var r,i=t.text,a=t.mode,o=t.render,s=t.renderFormItem,l=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var c=t.placeholder,u=t.locale,f=t.customSymbol,p=f===void 0?l.customSymbol:f,h=t.numberFormatOptions,m=h===void 0?l==null?void 0:l.numberFormatOptions:h,g=t.numberPopoverRender,v=g===void 0?(l==null?void 0:l.numberPopoverRender)||!1:g,y=Ut(t,N$t),b=(r=l==null?void 0:l.precision)!==null&&r!==void 0?r:HT,w=la();u&&kg[u]&&(w=kg[u]);var _=c||w.getMessage("tableForm.inputPlaceholder","请输入"),k=d.useMemo(function(){if(p)return p;if(!(y.moneySymbol===!1||l.moneySymbol===!1))return w.getMessage("moneySymbol","¥")},[p,l.moneySymbol,w,y.moneySymbol]),S=d.useCallback(function($){var M=new RegExp("\\B(?=(\\d{".concat(3+Math.max(b-HT,0),"})+(?!\\d))"),"g"),P=String($).split("."),I=Te(P,2),O=I[0],A=I[1],R=O.replace(M,","),j="";return A&&b>0&&(j=".".concat(A.slice(0,b===void 0?HT:b))),"".concat(R).concat(j)},[b]);if(a==="read"){var C=x.jsx("span",{ref:n,children:pee(u||!1,i,b,m??l.numberFormatOptions,k)});return o?o(i,q({mode:a},l),C):C}if(a==="edit"||a==="update"){var E=x.jsx(H$t,q(q({contentRender:function(M){if(v===!1||!M.value)return null;var P=pee(k||u||!1,"".concat(S(M.value)),b,q(q({},m),{},{notation:"compact"}),k);return typeof v=="function"?v==null?void 0:v(M,P):P},ref:n,precision:b,formatter:function(M){return M&&k?"".concat(k," ").concat(S(M)):M==null?void 0:M.toString()},parser:function(M){return k&&M?M.replace(new RegExp("\\".concat(k,"\\s?|(,*)"),"g"),""):M},placeholder:_},Al(l,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:l.onBlur?function($){var M,P=$.target.value;k&&P&&(P=P.replace(new RegExp("\\".concat(k,"\\s?|(,*)"),"g"),"")),(M=l.onBlur)===null||M===void 0||M.call(l,P)}:void 0}));return s?s(i,q({mode:a},l),E):E}return null};const fbe=te.forwardRef(U$t);var hee=function(t){return t.map(function(n,r){var i;return te.isValidElement(n)?te.cloneElement(n,q(q({key:r},n==null?void 0:n.props),{},{style:q({},n==null||(i=n.props)===null||i===void 0?void 0:i.style)})):x.jsx(te.Fragment,{children:n},r)})},W$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.fieldProps,s=d.useContext(zn.ConfigContext),l=s.getPrefixCls,c=l("pro-field-option"),u=vd.useToken(),f=u.token;if(d.useImperativeHandle(n,function(){return{}}),a){var p=a(r,q({mode:i},o),x.jsx(x.Fragment,{}));return!p||(p==null?void 0:p.length)<1||!Array.isArray(p)?null:x.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:c,children:hee(p)})}return!r||!Array.isArray(r)?te.isValidElement(r)?r:null:x.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:c,children:hee(r)})};const V$t=te.forwardRef(W$t);var q$t=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],K$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;t.proFieldKey;var l=Ut(t,q$t),c=la(),u=In(function(){return l.open||l.visible||!1},{value:l.open||l.visible,onChange:l.onOpenChange||l.onVisible}),f=Te(u,2),p=f[0],h=f[1];if(i==="read"){var m=x.jsx(x.Fragment,{children:"-"});return r&&(m=x.jsxs(Zr,{children:[x.jsx("span",{ref:n,children:p?r:"********"}),x.jsx("a",{onClick:function(){return h(!p)},children:p?x.jsx(W8,{}):x.jsx(Yge,{})})]})),a?a(r,q({mode:i},s),m):m}if(i==="edit"||i==="update"){var g=x.jsx(Wr.Password,q({placeholder:c.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},s));return o?o(r,q({mode:i},s),g):g}return null};const G$t=te.forwardRef(K$t);var Y$t=/\s/;function X$t(e){for(var t=e.length;t--&&Y$t.test(e.charAt(t)););return t}var Z$t=/^\s+/;function Q$t(e){return e&&e.slice(0,X$t(e)+1).replace(Z$t,"")}var J$t="[object Symbol]";function k$(e){return typeof e=="symbol"||kh(e)&&n1(e)==J$t}var mee=NaN,e7t=/^[-+]0x[0-9a-f]+$/i,t7t=/^0b[01]+$/i,n7t=/^0o[0-7]+$/i,r7t=parseInt;function Q6(e){if(typeof e=="number")return e;if(k$(e))return mee;if(bd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=bd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Q$t(e);var n=t7t.test(e);return n||n7t.test(e)?r7t(e.slice(2),n?2:8):e7t.test(e)?mee:+e}function i7t(e){return e===0?null:e>0?"+":"-"}function a7t(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function o7t(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}var s7t=function(t,n){var r=t.text,i=t.prefix,a=t.precision,o=t.suffix,s=o===void 0?"%":o,l=t.mode,c=t.showColor,u=c===void 0?!1:c,f=t.render,p=t.renderFormItem,h=t.fieldProps,m=t.placeholder,g=t.showSymbol,v=la(),y=m||v.getMessage("tableForm.inputPlaceholder","请输入"),b=d.useMemo(function(){return typeof r=="string"&&r.includes("%")?Q6(r.replace("%","")):Q6(r)},[r]),w=d.useMemo(function(){return typeof g=="function"?g==null?void 0:g(r):g},[g,r]);if(l==="read"){var _=u?{color:a7t(b)}:{},k=x.jsxs("span",{style:_,ref:n,children:[i&&x.jsx("span",{children:i}),w&&x.jsxs(d.Fragment,{children:[i7t(b)," "]}),o7t(Math.abs(b),a),s&&s]});return f?f(r,q(q({mode:l},h),{},{prefix:i,precision:a,showSymbol:w,suffix:s}),k):k}if(l==="edit"||l==="update"){var S=x.jsx(Af,q({ref:n,formatter:function(E){return E&&i?"".concat(i," ").concat(E).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):E},parser:function(E){return E?E.replace(/.*\s|,/g,""):""},placeholder:y},h));return p?p(r,q({mode:l},h),S):S}return null};const pbe=te.forwardRef(s7t);function l7t(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var c7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.plain,s=t.renderFormItem,l=t.fieldProps,c=t.placeholder,u=la(),f=c||u.getMessage("tableForm.inputPlaceholder","请输入"),p=d.useMemo(function(){return typeof r=="string"&&r.includes("%")?Q6(r.replace("%","")):Q6(r)},[r]);if(i==="read"){var h=x.jsx(tz,q({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:p,steps:o?10:void 0,status:l7t(p)},l));return a?a(p,q({mode:i},l),h):h}if(i==="edit"||i==="update"){var m=x.jsx(Af,q({ref:n,placeholder:f},l));return s?s(r,q({mode:i},l),m):m}return null};const hbe=te.forwardRef(c7t);var u7t=["radioType","renderFormItem","mode","render"],d7t=function(t,n){var r,i,a=t.radioType,o=t.renderFormItem,s=t.mode,l=t.render,c=Ut(t,u7t),u=d.useContext(zn.ConfigContext),f=u.getPrefixCls,p=f("pro-field-radio"),h=Hy(c),m=Te(h,3),g=m[0],v=m[1],y=m[2],b=d.useRef(),w=(r=Qi.Item)===null||r===void 0||(i=r.useStatus)===null||i===void 0?void 0:i.call(r);d.useImperativeHandle(n,function(){return q(q({},b.current||{}),{},{fetchData:function(A){return y(A)}})},[y]);var _=_i("FieldRadioRadio",function(O){return ne(ne(ne({},".".concat(p,"-error"),{span:{color:O.colorError}}),".".concat(p,"-warning"),{span:{color:O.colorWarning}}),".".concat(p,"-vertical"),ne({},"".concat(O.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),k=_.wrapSSR,S=_.hashId;if(g)return x.jsx(Qo,{size:"small"});if(s==="read"){var C=v!=null&&v.length?v==null?void 0:v.reduce(function(O,A){var R;return q(q({},O),{},ne({},(R=A.value)!==null&&R!==void 0?R:"",A.label))},{}):void 0,E=x.jsx(x.Fragment,{children:By(c.text,Jf(c.valueEnum||C))});if(l){var $;return($=l(c.text,q({mode:s},c.fieldProps),E))!==null&&$!==void 0?$:null}return E}if(s==="edit"){var M,P=k(x.jsx(ss.Group,q(q({ref:b,optionType:a},c.fieldProps),{},{className:Ee((M=c.fieldProps)===null||M===void 0?void 0:M.className,ne(ne({},"".concat(p,"-error"),(w==null?void 0:w.status)==="error"),"".concat(p,"-warning"),(w==null?void 0:w.status)==="warning"),S,"".concat(p,"-").concat(c.fieldProps.layout||"horizontal")),options:v})));if(o){var I;return(I=o(c.text,q(q({mode:s},c.fieldProps),{},{options:v,loading:g}),P))!==null&&I!==void 0?I:null}return P}return null};const gee=te.forwardRef(d7t);var f7t=function(t,n){var r=t.text,i=t.mode,a=t.light,o=t.label,s=t.format,l=t.render,c=t.picker,u=t.renderFormItem,f=t.plain,p=t.showTime,h=t.lightLabel,m=t.bordered,g=t.fieldProps,v=la(),y=Array.isArray(r)?r:[],b=Te(y,2),w=b[0],_=b[1],k=te.useState(!1),S=Te(k,2),C=S[0],E=S[1],$=d.useCallback(function(j){if(typeof(g==null?void 0:g.format)=="function"){var N;return g==null||(N=g.format)===null||N===void 0?void 0:N.call(g,j)}return(g==null?void 0:g.format)||s||"YYYY-MM-DD"},[g,s]),M=w?ur(w).format($(ur(w))):"",P=_?ur(_).format($(ur(_))):"";if(i==="read"){var I=x.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[x.jsx("div",{children:M||"-"}),x.jsx("div",{children:P||"-"})]});return l?l(r,q({mode:i},g),x.jsx("span",{children:I})):I}if(i==="edit"||i==="update"){var O=B4(g.value),A;if(a){var R;A=x.jsx(Qf,{label:o,onClick:function(){var N;g==null||(N=g.onOpenChange)===null||N===void 0||N.call(g,!0),E(!0)},style:O?{paddingInlineEnd:0}:void 0,disabled:g.disabled,value:O||C?x.jsx(bc.RangePicker,q(q(q({picker:c,showTime:p,format:s},Nl(!1)),g),{},{placeholder:(R=g.placeholder)!==null&&R!==void 0?R:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var N;E(!1),g==null||(N=g.onClear)===null||N===void 0||N.call(g)},value:O,onOpenChange:function(N){var D;O&&E(N),g==null||(D=g.onOpenChange)===null||D===void 0||D.call(g,N)}})):null,allowClear:!1,bordered:m,ref:h,downIcon:O||C?!1:void 0})}else A=x.jsx(bc.RangePicker,q(q(q({ref:n,format:s,showTime:p,placeholder:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")]},Nl(f===void 0?!0:!f)),g),{},{value:O}));return u?u(r,q({mode:i},g),A):A}return null};const H1=te.forwardRef(f7t);var p7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=x.jsx(fZ,q(q({allowHalf:!0,disabled:!0,ref:n},s),{},{value:r}));return a?a(r,q({mode:i},s),x.jsx(x.Fragment,{children:l})):l}if(i==="edit"||i==="update"){var c=x.jsx(fZ,q({allowHalf:!0,ref:n},s));return o?o(r,q({mode:i},s),c):c}return null};const h7t=te.forwardRef(p7t);function m7t(e){var t=e,n="",r=!1;t<0&&(t=-t,r=!0);var i=Math.floor(t/(3600*24)),a=Math.floor(t/3600%24),o=Math.floor(t/60%60),s=Math.floor(t%60);return n="".concat(s,"秒"),o>0&&(n="".concat(o,"分钟").concat(n)),a>0&&(n="".concat(a,"小时").concat(n)),i>0&&(n="".concat(i,"天").concat(n)),r&&(n+="前"),n}var g7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.placeholder,c=la(),u=l||c.getMessage("tableForm.inputPlaceholder","请输入");if(i==="read"){var f=m7t(Number(r)),p=x.jsx("span",{ref:n,children:f});return a?a(r,q({mode:i},s),p):p}if(i==="edit"||i==="update"){var h=x.jsx(Af,q({ref:n,min:0,style:{width:"100%"},placeholder:u},s));return o?o(r,q({mode:i},s),h):h}return null};const v7t=te.forwardRef(g7t);var y7t=["mode","render","renderFormItem","fieldProps","emptyText"],b7t=function(t,n){var r=t.mode,i=t.render,a=t.renderFormItem,o=t.fieldProps,s=t.emptyText,l=s===void 0?"-":s,c=Ut(t,y7t),u=d.useRef(),f=Hy(t),p=Te(f,3),h=p[0],m=p[1],g=p[2];if(d.useImperativeHandle(n,function(){return q(q({},u.current||{}),{},{fetchData:function(k){return g(k)}})},[g]),h)return x.jsx(Qo,{size:"small"});if(r==="read"){var v=m!=null&&m.length?m==null?void 0:m.reduce(function(_,k){var S;return q(q({},_),{},ne({},(S=k.value)!==null&&S!==void 0?S:"",k.label))},{}):void 0,y=x.jsx(x.Fragment,{children:By(c.text,Jf(c.valueEnum||v))});if(i){var b;return(b=i(c.text,q({mode:r},o),x.jsx(x.Fragment,{children:y})))!==null&&b!==void 0?b:l}return y}if(r==="edit"||r==="update"){var w=x.jsx(Bge,q(q({ref:u},Al(o||{},["allowClear"])),{},{options:m}));return a?a(c.text,q(q({mode:r},o),{},{options:m,loading:h}),w):w}return null};const w7t=te.forwardRef(b7t);var x7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=r;return a?a(r,q({mode:i},s),x.jsx(x.Fragment,{children:l})):x.jsx(x.Fragment,{children:l})}if(i==="edit"||i==="update"){var c=x.jsx(t1e,q(q({ref:n},s),{},{style:q({minWidth:120},s==null?void 0:s.style)}));return o?o(r,q({mode:i},s),c):c}return null};const S7t=te.forwardRef(x7t);var C7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.light,s=t.label,l=t.renderFormItem,c=t.fieldProps,u=la(),f=d.useMemo(function(){var v,y;return r==null||"".concat(r).length<1?"-":r?(v=c==null?void 0:c.checkedChildren)!==null&&v!==void 0?v:u.getMessage("switch.open","打开"):(y=c==null?void 0:c.unCheckedChildren)!==null&&y!==void 0?y:u.getMessage("switch.close","关闭")},[c==null?void 0:c.checkedChildren,c==null?void 0:c.unCheckedChildren,r]);if(i==="read")return a?a(r,q({mode:i},c),x.jsx(x.Fragment,{children:f})):f??"-";if(i==="edit"||i==="update"){var p,h=x.jsx(P6,q(q({ref:n,size:o?"small":void 0},Al(c,["value"])),{},{checked:(p=c==null?void 0:c.checked)!==null&&p!==void 0?p:c==null?void 0:c.value}));if(o){var m=c.disabled,g=c.bordered;return x.jsx(Qf,{label:s,disabled:m,bordered:g,downIcon:!1,value:x.jsx("div",{style:{paddingLeft:8},children:h}),allowClear:!1})}return l?l(r,q({mode:i},c),h):h}return null};const _7t=te.forwardRef(C7t);var k7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.emptyText,c=l===void 0?"-":l,u=s||{},f=u.autoFocus,p=u.prefix,h=p===void 0?"":p,m=u.suffix,g=m===void 0?"":m,v=la(),y=d.useRef();if(d.useImperativeHandle(n,function(){return y.current},[]),d.useEffect(function(){if(f){var S;(S=y.current)===null||S===void 0||S.focus()}},[f]),i==="read"){var b=x.jsxs(x.Fragment,{children:[h,r??c,g]});if(a){var w;return(w=a(r,q({mode:i},s),b))!==null&&w!==void 0?w:c}return b}if(i==="edit"||i==="update"){var _=v.getMessage("tableForm.inputPlaceholder","请输入"),k=x.jsx(Wr,q({ref:y,placeholder:_,allowClear:!0},s));return o?o(r,q({mode:i},s),k):k}return null};const E7t=te.forwardRef(k7t);function mbe(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r1),a}),zy(e,bbe(e),n),r&&(n=p_(n,w9t|x9t|S9t,m9t));for(var i=t.length;i--;)h9t(n,t[i]);return n}),_9t=function(t,n){var r=t.text,i=t.fieldProps,a=d.useContext(zn.ConfigContext),o=a.getPrefixCls,s=o("pro-field-readonly"),l="".concat(s,"-textarea"),c=_i("TextArea",function(){return ne({},".".concat(l),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),u=c.wrapSSR,f=c.hashId;return u(x.jsx("span",q(q({ref:n,className:Ee(f,s,l)},C9t(i,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const k9t=te.forwardRef(_9t);var E9t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=la();if(i==="read"){var c=x.jsx(k9t,q(q({},t),{},{ref:n}));return a?a(r,q({mode:i},Al(s,["showCount"])),c):c}if(i==="edit"||i==="update"){var u=x.jsx(Wr.TextArea,q({ref:n,rows:3,onKeyPress:function(p){p.key==="Enter"&&p.stopPropagation()},placeholder:l.getMessage("tableForm.inputPlaceholder","请输入")},s));return o?o(r,q({mode:i},s),u):u}return null};const $9t=te.forwardRef(E9t);var M9t=function(t,n){var r=t.text,i=t.mode,a=t.light,o=t.label,s=t.format,l=t.render,c=t.renderFormItem,u=t.plain,f=t.fieldProps,p=t.lightLabel,h=d.useState(!1),m=Te(h,2),g=m[0],v=m[1],y=la(),b=(f==null?void 0:f.format)||s||"HH:mm:ss",w=ur.isDayjs(r)||typeof r=="number";if(i==="read"){var _=x.jsx("span",{ref:n,children:r?ur(r,w?void 0:b).format(b):"-"});return l?l(r,q({mode:i},f),x.jsx("span",{children:_})):_}if(i==="edit"||i==="update"){var k,S=f.disabled,C=f.value,E=B4(C,b);if(a){var $;k=x.jsx(Qf,{onClick:function(){var P;f==null||(P=f.onOpenChange)===null||P===void 0||P.call(f,!0),v(!0)},style:E?{paddingInlineEnd:0}:void 0,label:o,disabled:S,value:E||g?x.jsx(Cg,q(q(q({},Nl(!1)),{},{format:s,ref:n},f),{},{placeholder:($=f.placeholder)!==null&&$!==void 0?$:y.getMessage("tableForm.selectPlaceholder","请选择"),value:E,onOpenChange:function(P){var I;v(P),f==null||(I=f.onOpenChange)===null||I===void 0||I.call(f,P)},open:g})):null,downIcon:E||g?!1:void 0,allowClear:!1,ref:p})}else k=x.jsx(bc.TimePicker,q(q(q({ref:n,format:s},Nl(u===void 0?!0:!u)),f),{},{value:E}));return c?c(r,q({mode:i},f),k):k}return null},T9t=function(t,n){var r=t.text,i=t.light,a=t.label,o=t.mode,s=t.lightLabel,l=t.format,c=t.render,u=t.renderFormItem,f=t.plain,p=t.fieldProps,h=la(),m=d.useState(!1),g=Te(m,2),v=g[0],y=g[1],b=(p==null?void 0:p.format)||l||"HH:mm:ss",w=Array.isArray(r)?r:[],_=Te(w,2),k=_[0],S=_[1],C=ur.isDayjs(k)||typeof k=="number",E=ur.isDayjs(S)||typeof S=="number",$=k?ur(k,C?void 0:b).format(b):"",M=S?ur(S,E?void 0:b).format(b):"";if(o==="read"){var P=x.jsxs("div",{ref:n,children:[x.jsx("div",{children:$||"-"}),x.jsx("div",{children:M||"-"})]});return c?c(r,q({mode:o},p),x.jsx("span",{children:P})):P}if(o==="edit"||o==="update"){var I=B4(p.value,b),O;if(i){var A=p.disabled,R=p.placeholder,j=R===void 0?[h.getMessage("tableForm.selectPlaceholder","请选择"),h.getMessage("tableForm.selectPlaceholder","请选择")]:R;O=x.jsx(Qf,{onClick:function(){var D;p==null||(D=p.onOpenChange)===null||D===void 0||D.call(p,!0),y(!0)},style:I?{paddingInlineEnd:0}:void 0,label:a,disabled:A,placeholder:j,value:I||v?x.jsx(Cg.RangePicker,q(q(q({},Nl(!1)),{},{format:l,ref:n},p),{},{placeholder:j,value:I,onOpenChange:function(D){var V;y(D),p==null||(V=p.onOpenChange)===null||V===void 0||V.call(p,D)},open:v})):null,downIcon:I||v?!1:void 0,allowClear:!1,ref:s})}else O=x.jsx(Cg.RangePicker,q(q(q({ref:n,format:l},Nl(f===void 0?!0:!f)),p),{},{value:I}));return u?u(r,q({mode:o},p),O):O}return null},P9t=te.forwardRef(T9t);const O9t=te.forwardRef(M9t);var I9t=["radioType","renderFormItem","mode","light","label","render"],R9t=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],j9t=function(t,n){t.radioType;var r=t.renderFormItem,i=t.mode,a=t.light,o=t.label,s=t.render,l=Ut(t,I9t),c=d.useContext(zn.ConfigContext),u=c.getPrefixCls,f=u("pro-field-tree-select"),p=d.useRef(null),h=d.useState(!1),m=Te(h,2),g=m[0],v=m[1],y=l.fieldProps,b=y.onSearch,w=y.onClear,_=y.onChange,k=y.onBlur,S=y.showSearch,C=y.autoClearSearchValue;y.treeData;var E=y.fetchDataOnSearch,$=y.searchValue,M=Ut(y,R9t),P=la(),I=Hy(q(q({},l),{},{defaultKeyWords:$})),O=Te(I,3),A=O[0],R=O[1],j=O[2],N=In(void 0,{onChange:b,value:$}),D=Te(N,2),V=D[0],F=D[1];d.useImperativeHandle(n,function(){return q(q({},p.current||{}),{},{fetchData:function(me){return j(me)}})});var K=d.useMemo(function(){if(i==="read"){var pe=(M==null?void 0:M.fieldNames)||{},me=pe.value,re=me===void 0?"value":me,fe=pe.label,ve=fe===void 0?"label":fe,$e=pe.children,Ce=$e===void 0?"children":$e,be=new Map,Se=function we(se){if(!(se!=null&&se.length))return be;for(var ye=se.length,Oe=0;Oe4&&(h+=7),p.add(h,n));return m.diff(g,"week")+1},s.isoWeekday=function(c){return this.$utils().u(c)?this.day()||7:this.day(this.day()%7?c:c-7)};var l=s.startOf;s.startOf=function(c,u){var f=this.$utils(),p=!!f.u(u)||u;return f.p(c)==="isoweek"?p?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(c,u)}}})})(kbe);var A9t=kbe.exports;const D9t=ei(A9t);var Ebe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var o=i.prototype,s=o.format;a.en.formats=n,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,m,g){var v=g&&g.toUpperCase();return m||p[g]||n[g]||p[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,b,w){return b||w.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(Ebe);var F9t=Ebe.exports;const L9t=ei(F9t);var B9t=["fieldProps"],z9t=["fieldProps"],H9t=["fieldProps"],U9t=["fieldProps"],W9t=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],V9t=["placeholder"];ur.extend(mme);ur.extend(bme);ur.extend(D9t);ur.extend(PB);ur.extend(pme);ur.extend(L9t);var q9t=function(t,n,r){var i=B0e(r.fieldProps);return n.type==="progress"?x.jsx(hbe,q(q({},r),{},{text:t,fieldProps:q({status:n.status?n.status:void 0},i)})):n.type==="money"?x.jsx(fbe,q(q({locale:n.locale},r),{},{fieldProps:i,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?x.jsx(pbe,q(q({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:i,showColor:n.showColor})):n.type==="image"?x.jsx(ube,q(q({},r),{},{text:t,width:n.width})):t},K9t=function(t,n,r,i){var a=r.mode,o=a===void 0?"read":a,s=r.emptyText,l=s===void 0?"-":s;if(l!==!1&&o==="read"&&n!=="option"&&n!=="switch"&&typeof t!="boolean"&&typeof t!="number"&&!t){var c=r.fieldProps,u=r.render;return u?u(t,q({mode:o},c),x.jsx(x.Fragment,{children:l})):x.jsx(x.Fragment,{children:l})}if(delete r.emptyText,Kt(n)==="object")return q9t(t,n,r);var f=i&&i[n];if(f){if(delete r.ref,o==="read"){var p;return(p=f.render)===null||p===void 0?void 0:p.call(f,t,q(q({text:t},r),{},{mode:o||"read"}),x.jsx(x.Fragment,{children:t}))}if(o==="update"||o==="edit"){var h;return(h=f.renderFormItem)===null||h===void 0?void 0:h.call(f,t,q({text:t},r),x.jsx(x.Fragment,{children:t}))}}if(n==="money")return x.jsx(fbe,q(q({},r),{},{text:t}));if(n==="date")return x.jsx($s,{isLight:r.light,children:x.jsx(z1,q({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return x.jsx($s,{isLight:r.light,children:x.jsx(z1,q({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var m=r.fieldProps,g=Ut(r,B9t);return x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-W",showTime:!0,fieldProps:q({picker:"week"},m)},g))})}if(n==="dateMonthRange"){var v=r.fieldProps,y=Ut(r,z9t);return x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-MM",showTime:!0,fieldProps:q({picker:"month"},v)},y))})}if(n==="dateQuarterRange"){var b=r.fieldProps,w=Ut(r,H9t);return x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-Q",showTime:!0,fieldProps:q({picker:"quarter"},b)},w))})}if(n==="dateYearRange"){var _=r.fieldProps,k=Ut(r,U9t);return x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY",showTime:!0,fieldProps:q({picker:"year"},_)},k))})}return n==="dateMonth"?x.jsx($s,{isLight:r.light,children:x.jsx(z1,q({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?x.jsx($s,{isLight:r.light,children:x.jsx(z1,q({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?x.jsx($s,{isLight:r.light,children:x.jsx(z1,q({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?x.jsx(H1,q({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?x.jsx($s,{isLight:r.light,children:x.jsx(z1,q({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?x.jsx($s,{isLight:r.light,children:x.jsx(O9t,q({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?x.jsx($s,{isLight:r.light,children:x.jsx(P9t,q({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?x.jsx(I$t,q({text:t},r)):n==="index"?x.jsx(fee,{children:t+1}):n==="indexBorder"?x.jsx(fee,{border:!0,children:t+1}):n==="progress"?x.jsx(hbe,q(q({},r),{},{text:t})):n==="percent"?x.jsx(pbe,q({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?x.jsx(Oi,{src:t,size:22,shape:"circle"}):n==="code"?x.jsx(QQ,q({text:t},r)):n==="jsonCode"?x.jsx(QQ,q({text:t,language:"json"},r)):n==="textarea"?x.jsx($9t,q({text:t},r)):n==="digit"?x.jsx(E$t,q({text:t},r)):n==="digitRange"?x.jsx(M$t,q({text:t},r)):n==="second"?x.jsx(v7t,q({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?x.jsx($s,{isLight:r.light,children:x.jsx(Y1t,q({text:t},r))}):n==="checkbox"?x.jsx(nvt,q({text:t},r)):n==="radio"?x.jsx(gee,q({text:t},r)):n==="radioButton"?x.jsx(gee,q({radioType:"button",text:t},r)):n==="rate"?x.jsx(h7t,q({text:t},r)):n==="slider"?x.jsx(S7t,q({text:t},r)):n==="switch"?x.jsx(_7t,q({text:t},r)):n==="option"?x.jsx(V$t,q({text:t},r)):n==="password"?x.jsx(G$t,q({text:t},r)):n==="image"?x.jsx(ube,q({text:t},r)):n==="cascader"?x.jsx(Q1t,q({text:t},r)):n==="treeSelect"?x.jsx(N9t,q({text:t},r)):n==="color"?x.jsx(S$t,q({text:t},r)):n==="segmented"?x.jsx(w7t,q({text:t},r)):x.jsx(E7t,q({text:t},r))},G9t=function(t,n){var r,i,a,o,s,l=t.text,c=t.valueType,u=c===void 0?"text":c,f=t.mode,p=f===void 0?"read":f,h=t.onChange,m=t.renderFormItem,g=t.value,v=t.readonly,y=t.fieldProps,b=Ut(t,W9t),w=d.useContext(fh),_=su(function(){for(var C,E=arguments.length,$=new Array(E),M=0;M1&&arguments[1]!==void 0?arguments[1]:{},n=[];return te.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(LN(r)):th.isFragment(r)&&r.props?n=n.concat(LN(r.props.children,t)):n.push(r))}),n}var uH=te.createContext({}),iTt=["name","originDependencies","children","ignoreFormListField"],$be=function(t){var n=t.name,r=t.originDependencies,i=r===void 0?n:r,a=t.children,o=t.ignoreFormListField,s=Ut(t,iTt),l=d.useContext(j0e),c=d.useContext(uH),u=d.useMemo(function(){return n.map(function(f){var p,h=[f];return!o&&c.name!==void 0&&(p=c.listName)!==null&&p!==void 0&&p.length&&h.unshift(c.listName),h.flat(1)})},[c.listName,c.name,o,n==null?void 0:n.toString()]);return x.jsx(Qi.Item,q(q({},s),{},{noStyle:!0,shouldUpdate:function(p,h,m){if(typeof s.shouldUpdate=="boolean")return s.shouldUpdate;if(typeof s.shouldUpdate=="function"){var g;return(g=s.shouldUpdate)===null||g===void 0?void 0:g.call(s,p,h,m)}return u.some(function(v){return!Ym(Mm(p,v),Mm(h,v))})},children:function(p){for(var h={},m=0;m div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":ne(ne(ne(ne({display:"block",width:"100%"},"".concat(t.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(t.componentCls,"-container"),{paddingInlineStart:16}),"".concat(t.antCls,"-space-item,").concat(t.antCls,"-form-item"),{width:"100%"}),"".concat(t.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function pTt(e){return _i("ProFormGroup",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[fTt(n)]})}var Tbe=te.forwardRef(function(e,t){var n=te.useContext(o1),r=n.groupProps,i=q(q({},r),e),a=i.children,o=i.collapsible,s=i.defaultCollapsed,l=i.style,c=i.labelLayout,u=i.title,f=u===void 0?e.label:u,p=i.tooltip,h=i.align,m=h===void 0?"start":h,g=i.direction,v=i.size,y=v===void 0?32:v,b=i.titleStyle,w=i.titleRender,_=i.spaceProps,k=i.extra,S=i.autoFocus,C=In(function(){return s||!1},{value:e.collapsed,onChange:e.onCollapse}),E=Te(C,2),$=E[0],M=E[1],P=d.useContext(zn.ConfigContext),I=P.getPrefixCls,O=Dz(e),A=O.ColWrapper,R=O.RowWrapper,j=I("pro-form-group"),N=pTt(j),D=N.wrapSSR,V=N.hashId,F=o&&x.jsx(vc,{style:{marginInlineEnd:8},rotate:$?void 0:90}),K=x.jsx(Rht,{label:F?x.jsxs("div",{children:[F,f]}):f,tooltip:p}),B=d.useCallback(function(X){var ae=X.children;return x.jsx(Zr,q(q({},_),{},{className:Ee("".concat(j,"-container ").concat(V),_==null?void 0:_.className),size:y,align:m,direction:g,style:q({rowGap:0},_==null?void 0:_.style),children:ae}))},[m,j,g,V,y,_]),U=w?w(K,e):K,Z=d.useMemo(function(){var X=[],ae=te.Children.toArray(a).map(function(oe,le){var ce;return te.isValidElement(oe)&&oe!==null&&oe!==void 0&&(ce=oe.props)!==null&&ce!==void 0&&ce.hidden?(X.push(oe),null):le===0&&te.isValidElement(oe)&&S?te.cloneElement(oe,q(q({},oe.props),{},{autoFocus:S})):oe});return[x.jsx(R,{Wrapper:B,children:ae},"children"),X.length>0?x.jsx("div",{style:{display:"none"},children:X}):null]},[a,R,B,S]),ee=Te(Z,2),ie=ee[0],Y=ee[1];return D(x.jsx(A,{children:x.jsxs("div",{className:Ee(j,V,ne({},"".concat(j,"-twoLine"),c==="twoLine")),style:l,ref:t,children:[Y,(f||p||k)&&x.jsx("div",{className:"".concat(j,"-title ").concat(V).trim(),style:b,onClick:function(){M(!$)},children:k?x.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[U,x.jsx("span",{onClick:function(ae){return ae.stopPropagation()},children:k})]}):U}),x.jsx("div",{style:{display:o&&$?"none":void 0},children:ie})]})}))});Tbe.displayName="ProForm-Group";function Ree(e){return e instanceof HTMLElement||e instanceof SVGElement}function hTt(e){return e&&Kt(e)==="object"&&Ree(e.nativeElement)?e.nativeElement:Ree(e)?e:null}function UT(e){var t=hTt(e);if(t)return t;if(e instanceof te.Component){var n;return(n=ig.findDOMNode)===null||n===void 0?void 0:n.call(ig,e)}return null}var BN=d.createContext(null);function mTt(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),i=d.useRef([]),a=d.useContext(BN),o=d.useCallback(function(s,l,c){r.current+=1;var u=r.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(i.current),i.current=[])}),a==null||a(s,l,c)},[n,a]);return d.createElement(BN.Provider,{value:o},t)}var Up=new Map;function gTt(e){e.forEach(function(t){var n,r=t.target;(n=Up.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var Pbe=new Mde(gTt);function vTt(e,t){Up.has(e)||(Up.set(e,new Set),Pbe.observe(e)),Up.get(e).add(t)}function yTt(e,t){Up.has(e)&&(Up.get(e).delete(t),Up.get(e).size||(Pbe.unobserve(e),Up.delete(e)))}var bTt=function(e){Eo(n,e);var t=ts(n);function n(){return Dr(this,n),t.apply(this,arguments)}return Fr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function wTt(e,t){var n=e.children,r=e.disabled,i=d.useRef(null),a=d.useRef(null),o=d.useContext(BN),s=typeof n=="function",l=s?n(i):n,c=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&d.isValidElement(l)&&Aft(l),f=u?l.ref:null,p=Nft(f,i),h=function(){var y;return UT(i.current)||(i.current&&Kt(i.current)==="object"?UT((y=i.current)===null||y===void 0?void 0:y.nativeElement):null)||UT(a.current)};d.useImperativeHandle(t,function(){return h()});var m=d.useRef(e);m.current=e;var g=d.useCallback(function(v){var y=m.current,b=y.onResize,w=y.data,_=v.getBoundingClientRect(),k=_.width,S=_.height,C=v.offsetWidth,E=v.offsetHeight,$=Math.floor(k),M=Math.floor(S);if(c.current.width!==$||c.current.height!==M||c.current.offsetWidth!==C||c.current.offsetHeight!==E){var P={width:$,height:M,offsetWidth:C,offsetHeight:E};c.current=P;var I=C===Math.round(k)?k:C,O=E===Math.round(S)?S:E,A=q(q({},P),{},{offsetWidth:I,offsetHeight:O});o==null||o(A,v,w),b&&Promise.resolve().then(function(){b(A,v)})}},[]);return d.useEffect(function(){var v=h();return v&&!r&&vTt(v,g),function(){return yTt(v,g)}},[i.current,r]),d.createElement(bTt,{ref:a},u?d.cloneElement(l,{ref:p}):l)}var xTt=d.forwardRef(wTt),STt="rc-observer-key";function CTt(e,t){var n=e.children,r=typeof n=="function"?[n]:LN(n);return r.map(function(i,a){var o=(i==null?void 0:i.key)||"".concat(STt,"-").concat(a);return d.createElement(xTt,tt({},e,{key:o,ref:a===0?t:void 0}),i)})}var Obe=d.forwardRef(CTt);Obe.Collection=mTt;var _Tt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],kTt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],ETt=function(t,n){var r=t.fieldProps,i=t.children,a=t.params,o=t.proFieldProps,s=t.mode,l=t.valueEnum,c=t.request,u=t.showSearch,f=t.options,p=Ut(t,_Tt),h=d.useContext(o1);return x.jsx(vu,q(q({valueEnum:F0(l),request:c,params:a,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:q({options:f,mode:s,showSearch:u,getPopupContainer:h.getPopupContainer},r),ref:n,proFieldProps:o},p),{},{children:i}))},$Tt=te.forwardRef(function(e,t){var n=e.fieldProps,r=e.children,i=e.params,a=e.proFieldProps,o=e.mode,s=e.valueEnum,l=e.request,c=e.options,u=Ut(e,kTt),f=q({options:c,mode:o||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),p=d.useContext(o1);return x.jsx(vu,q(q({valueEnum:F0(s),request:l,params:i,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:q({getPopupContainer:p.getPopupContainer},f),ref:t,proFieldProps:a},u),{},{children:r}))}),MTt=te.forwardRef(ETt),TTt=$Tt,za=MTt;za.SearchSelect=TTt;za.displayName="ProFormComponent";var PTt=function(t){var n=la(),r=Qi.useFormInstance();if(t.render===!1)return null;var i=t.onSubmit,a=t.render,o=t.onReset,s=t.searchConfig,l=s===void 0?{}:s,c=t.submitButtonProps,u=t.resetButtonProps,f=vd.useToken(),p=f.token,h=function(){r.submit(),i==null||i()},m=function(){r.resetFields(),o==null||o()},g=l.submitText,v=g===void 0?n.getMessage("tableForm.submit","提交"):g,y=l.resetText,b=y===void 0?n.getMessage("tableForm.reset","重置"):y,w=[];u!==!1&&w.push(d.createElement(Yt,q(q({},Al(u,["preventDefault"])),{},{key:"rest",onClick:function(S){var C;u!=null&&u.preventDefault||m(),u==null||(C=u.onClick)===null||C===void 0||C.call(u,S)}}),b)),c!==!1&&w.push(d.createElement(Yt,q(q({type:"primary"},Al(c||{},["preventDefault"])),{},{key:"submit",onClick:function(S){var C;c!=null&&c.preventDefault||h(),c==null||(C=c.onClick)===null||C===void 0||C.call(c,S)}}),v));var _=a?a(q(q({},t),{},{form:r,submit:h,reset:m}),w):w;return _?Array.isArray(_)?(_==null?void 0:_.length)<1?null:(_==null?void 0:_.length)===1?_[0]:x.jsx("div",{style:{display:"flex",gap:p.marginXS,alignItems:"center"},children:_}):_:null},OTt=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],zN=te.forwardRef(function(e,t){var n=e.fieldProps,r=e.unCheckedChildren,i=e.checkedChildren,a=e.proFieldProps,o=Ut(e,OTt);return x.jsx(vu,q({valueType:"switch",fieldProps:q({unCheckedChildren:r,checkedChildren:i},n),ref:t,valuePropName:"checked",proFieldProps:a,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},o))}),ITt=["fieldProps","proFieldProps"],RTt=["fieldProps","proFieldProps"],J6="text",jTt=function(t){var n=t.fieldProps,r=t.proFieldProps,i=Ut(t,ITt);return x.jsx(vu,q({valueType:J6,fieldProps:n,filedConfig:{valueType:J6},proFieldProps:r},i))},NTt=function(t){var n=In(t.open||!1,{value:t.open,onChange:t.onOpenChange}),r=Te(n,2),i=r[0],a=r[1];return x.jsx(Qi.Item,{shouldUpdate:!0,noStyle:!0,children:function(s){var l,c=s.getFieldValue(t.name||[]);return x.jsx(yc,q(q({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:function(f){return a(f)},content:x.jsxs("div",{style:{padding:"4px 0"},children:[(l=t.statusRender)===null||l===void 0?void 0:l.call(t,c),t.strengthText?x.jsx("div",{style:{marginTop:10},children:x.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:i,children:t.children}))}})},ATt=function(t){var n=t.fieldProps,r=t.proFieldProps,i=Ut(t,RTt),a=d.useState(!1),o=Te(a,2),s=o[0],l=o[1];return n!=null&&n.statusRender&&i.name?x.jsx(NTt,{name:i.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:s,onOpenChange:l,children:x.jsx("div",{children:x.jsx(vu,q({valueType:"password",fieldProps:q(q({},Al(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(u){var f;n==null||(f=n.onBlur)===null||f===void 0||f.call(n,u),l(!1)},onClick:function(u){var f;n==null||(f=n.onClick)===null||f===void 0||f.call(n,u),l(!0)}}),proFieldProps:r,filedConfig:{valueType:J6}},i))})}):x.jsx(vu,q({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:J6}},i))},Pr=jTt;Pr.Password=ATt;Pr.displayName="ProFormComponent";var DTt=["fieldProps","proFieldProps"],FTt=function(t,n){var r=t.fieldProps,i=t.proFieldProps,a=Ut(t,DTt);return x.jsx(vu,q({ref:n,valueType:"textarea",fieldProps:r,proFieldProps:i},a))};const wd=te.forwardRef(FTt);var LTt=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],BTt=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],h_=function(t,n,r){return t===!0?n:F0(t,n,r)},jee=function(t){return!t||Array.isArray(t)?t:[t]};function zTt(e){var t,n=e.children,r=e.contentRender,i=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var a=e.transformKey,o=e.formRef,s=e.onInit,l=e.form,c=e.loading;e.formComponentType;var u=e.extraUrlParams,f=u===void 0?{}:u,p=e.syncToUrl,h=e.onUrlSearchChange,m=e.onReset,g=e.omitNil,v=g===void 0?!0:g;e.isKeyPressSubmit;var y=e.autoFocusFirstInput,b=y===void 0?!0:y,w=e.grid,_=e.rowProps,k=e.colProps,S=Ut(e,LTt),C=Qi.useFormInstance(),E=(zn==null||(t=zn.useConfig)===null||t===void 0?void 0:t.call(zn))||{componentSize:"middle"},$=E.componentSize,M=d.useRef(l||C),P=Dz({grid:w,rowProps:_}),I=P.RowWrapper,O=su(function(){return C}),A=d.useMemo(function(){return{getFieldsFormatValue:function(K){var B;return a((B=O())===null||B===void 0?void 0:B.getFieldsValue(K),v)},getFieldFormatValue:function(){var K,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],U=jee(B);if(!U)throw new Error("nameList is require");var Z=(K=O())===null||K===void 0?void 0:K.getFieldValue(U),ee=U?D0({},U,Z):Z;return Mm(a(ee,v,U),U)},getFieldFormatValueObject:function(K){var B,U=jee(K),Z=(B=O())===null||B===void 0?void 0:B.getFieldValue(U),ee=U?D0({},U,Z):Z;return a(ee,v,U)},validateFieldsReturnFormatValue:function(){var F=ha(mr().mark(function B(U){var Z,ee,ie;return mr().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(!(!Array.isArray(U)&&U)){X.next=2;break}throw new Error("nameList must be array");case 2:return X.next=4,(Z=O())===null||Z===void 0?void 0:Z.validateFields(U);case 4:return ee=X.sent,ie=a(ee,v),X.abrupt("return",ie||{});case 7:case"end":return X.stop()}},B)}));function K(B){return F.apply(this,arguments)}return K}()}},[v,a]),R=d.useMemo(function(){return te.Children.toArray(n).map(function(F,K){return K===0&&te.isValidElement(F)&&b?te.cloneElement(F,q(q({},F.props),{},{autoFocus:b})):F})},[b,n]),j=d.useMemo(function(){return typeof i=="boolean"||!i?{}:i},[i]),N=d.useMemo(function(){if(i!==!1)return x.jsx(PTt,q(q({},j),{},{onReset:function(){var K,B,U=a((K=M.current)===null||K===void 0?void 0:K.getFieldsValue(),v);if(j==null||(B=j.onReset)===null||B===void 0||B.call(j,U),m==null||m(U),p){var Z,ee=Object.keys(a((Z=M.current)===null||Z===void 0?void 0:Z.getFieldsValue(),!1)).reduce(function(ie,Y){return q(q({},ie),{},ne({},Y,U[Y]||void 0))},f);h(h_(p,ee||{},"set"))}},submitButtonProps:q({loading:c},j.submitButtonProps)}),"submitter")},[i,j,c,a,v,m,p,f,h]),D=d.useMemo(function(){var F=w?x.jsx(I,{children:R}):R;return r?r(F,N,M.current):F},[w,I,R,r,N]),V=Kht(e.initialValues);return d.useEffect(function(){if(!(p||!e.initialValues||!V||S.request)){var F=Ym(e.initialValues,V);Bk(F,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ?
      : null "),Bk(F,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),d.useImperativeHandle(o,function(){return q(q({},M.current),A)},[A,M.current]),d.useEffect(function(){var F,K,B=a((F=M.current)===null||F===void 0||(K=F.getFieldsValue)===null||K===void 0?void 0:K.call(F,!0),v);s==null||s(B,q(q({},M.current),A))},[]),x.jsx(j0e.Provider,{value:q(q({},A),{},{formRef:M}),children:x.jsx(zn,{componentSize:S.size||$,children:x.jsxs(cye.Provider,{value:{grid:w,colProps:k},children:[S.component!==!1&&x.jsx("input",{type:"text",style:{display:"none"}}),D]})})})}var Nee=0;function HTt(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,i=e.isKeyPressSubmit,a=e.syncToUrlAsImportant,o=a===void 0?!1:a,s=e.syncToInitialValues,l=s===void 0?!0:s;e.children,e.contentRender,e.submitter;var c=e.fieldProps,u=e.proFieldProps,f=e.formItemProps,p=e.groupProps,h=e.dateFormatter,m=h===void 0?"string":h,g=e.formRef;e.onInit;var v=e.form,y=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var b=e.omitNil,w=b===void 0?!0:b,_=e.request,k=e.params,S=e.initialValues,C=e.formKey,E=C===void 0?Nee:C;e.readonly;var $=e.onLoadingChange,M=e.loading,P=Ut(e,BTt),I=d.useRef({}),O=In(!1,{onChange:$,value:M}),A=Te(O,2),R=A[0],j=A[1],N=E1t({},{disabled:!r}),D=Te(N,2),V=D[0],F=D[1],K=d.useRef(F6());d.useEffect(function(){Nee+=0},[]);var B=qht({request:_,params:k,proFieldKey:E}),U=Te(B,1),Z=U[0],ee=d.useContext(zn.ConfigContext),ie=ee.getPrefixCls,Y=ie("pro-form"),X=_i("ProForm",function(Se){return ne({},".".concat(Y),ne({},"> div:not(".concat(Se.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),ae=X.wrapSSR,oe=X.hashId,le=d.useState(function(){return r?h_(r,V,"get"):{}}),ce=Te(le,2),pe=ce[0],me=ce[1],re=d.useRef({}),fe=d.useRef({}),ve=su(function(Se,we,se){return S1t(Dht(Se,m,fe.current,we,se),re.current,we)});d.useEffect(function(){l||me({})},[l]);var $e=su(function(){return q(q({},V),n)});d.useEffect(function(){r&&F(h_(r,$e(),"set"))},[n,$e,r]);var Ce=d.useMemo(function(){if(!(typeof window>"u")&&y&&["DrawerForm"].includes(y))return function(Se){return Se.parentNode||document.body}},[y]),be=su(ha(mr().mark(function Se(){var we,se,ye,Oe,z,H,G;return mr().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(P.onFinish){xe.next=2;break}return xe.abrupt("return");case 2:if(!R){xe.next=4;break}return xe.abrupt("return");case 4:return xe.prev=4,ye=I==null||(we=I.current)===null||we===void 0||(se=we.getFieldsFormatValue)===null||se===void 0?void 0:se.call(we),Oe=P.onFinish(ye),Oe instanceof Promise&&j(!0),xe.next=10,Oe;case 10:r&&(G=Object.keys(I==null||(z=I.current)===null||z===void 0||(H=z.getFieldsFormatValue)===null||H===void 0?void 0:H.call(z,void 0,!1)).reduce(function(he,Ue){var We;return q(q({},he),{},ne({},Ue,(We=ye[Ue])!==null&&We!==void 0?We:void 0))},n),Object.keys(V).forEach(function(he){G[he]!==!1&&G[he]!==0&&!G[he]&&(G[he]=void 0)}),F(h_(r,G,"set"))),j(!1),xe.next=18;break;case 14:xe.prev=14,xe.t0=xe.catch(4),console.log(xe.t0),j(!1);case 18:case"end":return xe.stop()}},Se,null,[[4,14]])})));return d.useImperativeHandle(g,function(){return I.current},[!Z]),!Z&&e.request?x.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:x.jsx(Qo,{})}):ae(x.jsx(lH.Provider,{value:{mode:e.readonly?"read":"edit"},children:x.jsx(o$,{needDeps:!0,children:x.jsx(o1.Provider,{value:{formRef:I,fieldProps:c,proFieldProps:u,formItemProps:f,groupProps:p,formComponentType:y,getPopupContainer:Ce,formKey:K.current,setFieldValueType:function(we,se){var ye=se.valueType,Oe=ye===void 0?"text":ye,z=se.dateFormat,H=se.transform;Array.isArray(we)&&(re.current=D0(re.current,we,H),fe.current=D0(fe.current,we,{valueType:Oe,dateFormat:z}))}},children:x.jsx(uH.Provider,{value:{},children:x.jsx(Qi,q(q({onKeyPress:function(we){if(i&&we.key==="Enter"){var se;(se=I.current)===null||se===void 0||se.submit()}},autoComplete:"off",form:v},Al(P,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(we){I.current&&(I.current.nativeElement=we==null?void 0:we.nativeElement)},initialValues:o?q(q(q({},S),Z),pe):q(q(q({},pe),S),Z),onValuesChange:function(we,se){var ye;P==null||(ye=P.onValuesChange)===null||ye===void 0||ye.call(P,ve(we,!!w),ve(se,!!w))},className:Ee(e.className,Y,oe),onFinish:be,children:x.jsx(zTt,q(q({transformKey:ve,autoComplete:"off",loading:R,onUrlSearchChange:F},e),{},{formRef:I,initialValues:q(q({},S),Z)}))}))})})})}))}var UTt=function(t){return ne(ne({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),ne({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function WTt(e){return _i("LightWrapper",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[UTt(n)]})}var VTt=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],qTt=function(t){var n=t.label,r=t.size,i=t.disabled,a=t.onChange,o=t.className,s=t.style,l=t.children,c=t.valuePropName,u=t.placeholder,f=t.labelFormatter,p=t.bordered,h=t.footerRender,m=t.allowClear,g=t.otherFieldProps,v=t.valueType,y=t.placement,b=Ut(t,VTt),w=d.useContext(zn.ConfigContext),_=w.getPrefixCls,k=_("pro-field-light-wrapper"),S=WTt(k),C=S.wrapSSR,E=S.hashId,$=d.useState(t[c]),M=Te($,2),P=M[0],I=M[1],O=In(!1),A=Te(O,2),R=A[0],j=A[1],N=function(){for(var K,B=arguments.length,U=new Array(B),Z=0;Zn.length)&&(r=n.length);for(var i=0,a=Array(r);i0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):iPt}function M$(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function aPt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function hH(e){return Array.from((e5.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function mH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,nPt.default)())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=aPt(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(Fee,o),s&&a&&l.setAttribute(Lee,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=M$(t),u=c.firstChild;if(r){if(s){var f=(t.styles||hH(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Fee)))return!1;var h=Number(p.getAttribute(Lee)||0);return a>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Ybe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=M$(t);return(t.styles||hH(n)).find(function(r){return r.getAttribute(Gbe(t))===e})}function oPt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ybe(e,t);if(n){var r=M$(t);r.removeChild(n)}}function sPt(e,t){var n=e5.get(e);if(!n||!(0,rPt.default)(document,n)){var r=mH("",t),i=r.parentNode;e5.set(e,i),e.removeChild(r)}}function lPt(){e5.clear()}function cPt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=M$(n),i=hH(r),a=(0,Dee.default)((0,Dee.default)({},n),{},{styles:i});sPt(r,a);var o=Ybe(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=mH(e,a);return u.setAttribute(Gbe(a),t),u}var T$={};Object.defineProperty(T$,"__esModule",{value:!0});T$.getShadowRoot=uPt;T$.inShadow=Zbe;function Xbe(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Zbe(e){return Xbe(e)instanceof ShadowRoot}function uPt(e){return Zbe(e)?Xbe(e):null}var Ys={};Object.defineProperty(Ys,"__esModule",{value:!0});Ys.call=gH;Ys.default=void 0;Ys.note=Jbe;Ys.noteOnce=t2e;Ys.preMessage=void 0;Ys.resetWarned=e2e;Ys.warning=Qbe;Ys.warningOnce=tx;var HN={},dPt=Ys.preMessage=function(t){};function Qbe(e,t){}function Jbe(e,t){}function e2e(){HN={}}function gH(e,t,n){!t&&!HN[n]&&(e(!1,n),HN[n]=!0)}function tx(e,t){gH(Qbe,e,t)}function t2e(e,t){gH(Jbe,e,t)}tx.preMessage=dPt;tx.resetWarned=e2e;tx.noteOnce=t2e;Ys.default=tx;var fPt=Ta.default,P$=br.default;Object.defineProperty(Jo,"__esModule",{value:!0});Jo.generate=WN;Jo.getSecondaryColor=xPt;Jo.iconStyles=void 0;Jo.isIconDefinition=wPt;Jo.normalizeAttrs=UN;Jo.normalizeTwoToneColors=SPt;Jo.useInsertStyles=Jo.svgBaseProps=void 0;Jo.warning=bPt;var WT=P$(Ng),Bee=P$(jg),pPt=J4,hPt=c1,mPt=T$,gPt=P$(Ys),t5=fPt(d),vPt=P$(Zy);function yPt(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function bPt(e,t){(0,gPt.default)(e,"[@ant-design/icons] ".concat(t))}function wPt(e){return(0,Bee.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,Bee.default)(e.icon)==="object"||typeof e.icon=="function")}function UN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[yPt(n)]=r}return t},{})}function WN(e,t,n){return n?t5.default.createElement(e.tag,(0,WT.default)((0,WT.default)({key:t},UN(e.attrs)),n),(e.children||[]).map(function(r,i){return WN(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):t5.default.createElement(e.tag,(0,WT.default)({key:t},UN(e.attrs)),(e.children||[]).map(function(r,i){return WN(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function xPt(e){return(0,pPt.generate)(e)[0]}function SPt(e){return e?Array.isArray(e)?e:[e]:[]}Jo.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var CPt=Jo.iconStyles=` + `),te.createElement("div",{style:f.white,className:"saturation-white"},te.createElement("div",{style:f.black,className:"saturation-black"}),te.createElement("div",{style:f.pointer},this.props.pointer?te.createElement(this.props.pointer,this.props):te.createElement("div",{style:f.circle}))))}}]),n}(d.PureComponent||d.Component),zEt=Uye,HEt=Hye,UEt=Sye,WEt=Ul;function VEt(e,t){var n=WEt(e)?zEt:HEt;return n(e,UEt(t))}var qEt=VEt,KEt=qEt;const GEt=ei(KEt);function Y6(e){"@babel/helpers - typeof";return Y6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y6(e)}var YEt=/^\s+/,XEt=/\s+$/;function Xn(e,t){if(e=e||"",t=t||{},e instanceof Xn)return e;if(!(this instanceof Xn))return new Xn(e,t);var n=ZEt(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}Xn.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,o,s;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(t){return this._a=sbe(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=nee(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=nee(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=tee(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=tee(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return ree(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return t8t(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ki(this._r,255)*100)+"%",g:Math.round(Ki(this._g,255)*100)+"%",b:Math.round(Ki(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ki(this._r,255)*100)+"%, "+Math.round(Ki(this._g,255)*100)+"%, "+Math.round(Ki(this._b,255)*100)+"%)":"rgba("+Math.round(Ki(this._r,255)*100)+"%, "+Math.round(Ki(this._g,255)*100)+"%, "+Math.round(Ki(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:p8t[ree(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+iee(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=Xn(t);r="#"+iee(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,a=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Xn(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(a8t,arguments)},brighten:function(){return this._applyModification(o8t,arguments)},darken:function(){return this._applyModification(s8t,arguments)},desaturate:function(){return this._applyModification(n8t,arguments)},saturate:function(){return this._applyModification(r8t,arguments)},greyscale:function(){return this._applyModification(i8t,arguments)},spin:function(){return this._applyModification(l8t,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(d8t,arguments)},complement:function(){return this._applyCombination(c8t,arguments)},monochromatic:function(){return this._applyCombination(f8t,arguments)},splitcomplement:function(){return this._applyCombination(u8t,arguments)},triad:function(){return this._applyCombination(aee,[3])},tetrad:function(){return this._applyCombination(aee,[4])}};Xn.fromRatio=function(e,t){if(Y6(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=M2(e[r]));e=n}return Xn(e,t)};function ZEt(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=v8t(e)),Y6(e)=="object"&&(qd(e.r)&&qd(e.g)&&qd(e.b)?(t=QEt(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):qd(e.h)&&qd(e.s)&&qd(e.v)?(r=M2(e.s),i=M2(e.v),t=e8t(e.h,r,i),o=!0,s="hsv"):qd(e.h)&&qd(e.s)&&qd(e.l)&&(r=M2(e.s),a=M2(e.l),t=JEt(e.h,r,a),o=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=sbe(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function QEt(e,t,n){return{r:Ki(e,255)*255,g:Ki(t,255)*255,b:Ki(n,255)*255}}function tee(e,t,n){e=Ki(e,255),t=Ki(t,255),n=Ki(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=(r+i)/2;if(r==i)a=o=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=o(l,s,e+1/3),i=o(l,s,e),a=o(l,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function nee(e,t,n){e=Ki(e,255),t=Ki(t,255),n=Ki(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=r,l=r-i;if(o=r===0?0:l/r,r==i)a=0;else{switch(r){case e:a=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(Xn(r));return a}function f8t(e,t){t=t||6;for(var n=Xn(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(Xn({h:r,s:i,v:a})),a=(a+s)%1;return o}Xn.mix=function(e,t,n){n=n===0?0:n||50;var r=Xn(e).toRgb(),i=Xn(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return Xn(o)};Xn.readability=function(e,t){var n=Xn(e),r=Xn(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Xn.isReadable=function(e,t,n){var r=Xn.readability(e,t),i,a;switch(a=!1,i=y8t(n),i.level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a};Xn.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,l;n=n||{},o=n.includeFallbackColors,s=n.level,l=n.size;for(var c=0;ci&&(i=a,r=Xn(t[c]));return Xn.isReadable(e,r,{level:s,size:l})||!o?r:(n.includeFallbackColors=!1,Xn.mostReadable(e,["#fff","#000"],n))};var ON=Xn.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},p8t=Xn.hexNames=h8t(ON);function h8t(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function sbe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ki(e,t){m8t(e)&&(e="100%");var n=g8t(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function $$(e){return Math.min(1,Math.max(0,e))}function dl(e){return parseInt(e,16)}function m8t(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function g8t(e){return typeof e=="string"&&e.indexOf("%")!=-1}function tu(e){return e.length==1?"0"+e:""+e}function M2(e){return e<=1&&(e=e*100+"%"),e}function lbe(e){return Math.round(parseFloat(e)*255).toString(16)}function oee(e){return dl(e)/255}var Bc=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function qd(e){return!!Bc.CSS_UNIT.exec(e)}function v8t(e){e=e.replace(YEt,"").replace(XEt,"").toLowerCase();var t=!1;if(ON[e])e=ON[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Bc.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Bc.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Bc.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Bc.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Bc.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Bc.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Bc.hex8.exec(e))?{r:dl(n[1]),g:dl(n[2]),b:dl(n[3]),a:oee(n[4]),format:t?"name":"hex8"}:(n=Bc.hex6.exec(e))?{r:dl(n[1]),g:dl(n[2]),b:dl(n[3]),format:t?"name":"hex"}:(n=Bc.hex4.exec(e))?{r:dl(n[1]+""+n[1]),g:dl(n[2]+""+n[2]),b:dl(n[3]+""+n[3]),a:oee(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Bc.hex3.exec(e))?{r:dl(n[1]+""+n[1]),g:dl(n[2]+""+n[2]),b:dl(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function y8t(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var see=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,i=0;return GEt(n,function(a){if(t[a]&&(r+=1,isNaN(t[a])||(i+=1),a==="s"||a==="l")){var o=/^\d+%$/;o.test(t[a])&&(i+=1)}}),r===i?t:!1},VS=function(t,n){var r=t.hex?Xn(t.hex):Xn(t),i=r.toHsl(),a=r.toHsv(),o=r.toRgb(),s=r.toHex();i.s===0&&(i.h=n||0,a.h=n||0);var l=s==="000000"&&o.a===0;return{hsl:i,hex:l?"transparent":"#".concat(s),rgb:o,hsv:a,oldHue:t.h||n||i.h,source:t.source}},b8t=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Xn(t).isValid()};function q0(e){"@babel/helpers - typeof";return q0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q0(e)}function RN(){return RN=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function X6(e){return X6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},X6(e)}var T8t=function(t){var n=function(r){_8t(a,r);var i=k8t(a);function a(o){var s;return x8t(this,a),s=i.call(this),s.handleChange=function(l,c){var u=see(l);if(u){var f=VS(l,l.h||s.state.oldHue);s.setState(f),s.props.onChangeComplete&&s.debounce(s.props.onChangeComplete,f,c),s.props.onChange&&s.props.onChange(f,c)}},s.handleSwatchHover=function(l,c){var u=see(l);if(u){var f=VS(l,l.h||s.state.oldHue);s.props.onSwatchHover&&s.props.onSwatchHover(f,c)}},s.state=Kb({},VS(o.color,0)),s.debounce=SEt(function(l,c,u){l(c,u)},100),s}return S8t(a,[{key:"render",value:function(){var s={};return this.props.onSwatchHover&&(s.onSwatchHover=this.handleSwatchHover),te.createElement(t,RN({},this.props,this.state,{onChange:this.handleChange},s))}}],[{key:"getDerivedStateFromProps",value:function(s,l){return Kb({},VS(s.color,l.oldHue))}}]),a}(d.PureComponent||d.Component);return n.propTypes=Kb({},t.propTypes),n.defaultProps=Kb(Kb({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function K0(e){"@babel/helpers - typeof";return K0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K0(e)}function P8t(e,t,n){return t=ube(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O8t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R8t(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Z6(e){return Z6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Z6(e)}var B8t=1,dbe=38,z8t=40,H8t=[dbe,z8t],U8t=function(t){return H8t.indexOf(t)>-1},W8t=function(t){return Number(String(t).replace(/%/g,""))},V8t=1,Gb=function(e){N8t(n,e);var t=A8t(n);function n(r){var i;return O8t(this,n),i=t.call(this),i.handleBlur=function(){i.state.blurValue&&i.setState({value:i.state.blurValue,blurValue:null})},i.handleChange=function(a){i.setUpdatedValue(a.target.value,a)},i.handleKeyDown=function(a){var o=W8t(a.target.value);if(!isNaN(o)&&U8t(a.keyCode)){var s=i.getArrowOffset(),l=a.keyCode===dbe?o+s:o-s;i.setUpdatedValue(l,a)}},i.handleDrag=function(a){if(i.props.dragLabel){var o=Math.round(i.props.value+a.movementX);o>=0&&o<=i.props.dragMax&&i.props.onChange&&i.props.onChange(i.getValueObjectWithLabel(o),a)}},i.handleMouseDown=function(a){i.props.dragLabel&&(a.preventDefault(),i.handleDrag(a),window.addEventListener("mousemove",i.handleDrag),window.addEventListener("mouseup",i.handleMouseUp))},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleDrag),window.removeEventListener("mouseup",i.handleMouseUp)},i.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},i.inputId="rc-editable-input-".concat(V8t++),i}return I8t(n,[{key:"componentDidUpdate",value:function(i,a){this.props.value!==this.state.value&&(i.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(i){return P8t({},this.props.label,i)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||B8t}},{key:"setUpdatedValue",value:function(i,a){var o=this.props.label?this.getValueObjectWithLabel(i):i;this.props.onChange&&this.props.onChange(o,a),this.setState({value:i})}},{key:"render",value:function(){var i=this,a=Mh({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return te.createElement("div",{style:a.wrap},te.createElement("input",{id:this.inputId,style:a.input,ref:function(s){return i.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?te.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(d.PureComponent||d.Component);function G0(e){"@babel/helpers - typeof";return G0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G0(e)}function NN(){return NN=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Q6(e){return Q6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Q6(e)}var n$t=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Z8t(a,r);var i=Q8t(a);function a(){var o;q8t(this,a);for(var s=arguments.length,l=new Array(s),c=0;c100&&(u.a=100),u.a/=100,n==null||n({h:i==null?void 0:i.h,s:i==null?void 0:i.s,l:i==null?void 0:i.l,a:u.a,source:"rgb"},f))};return te.createElement("div",{style:s.fields,className:"flexbox-fix"},te.createElement("div",{style:s.double},te.createElement(Gb,{style:{input:s.input,label:s.label},label:"hex",value:a==null?void 0:a.replace("#",""),onChange:l})),te.createElement("div",{style:s.single},te.createElement(Gb,{style:{input:s.input,label:s.label},label:"r",value:r==null?void 0:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),te.createElement("div",{style:s.single},te.createElement(Gb,{style:{input:s.input,label:s.label},label:"g",value:r==null?void 0:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),te.createElement("div",{style:s.single},te.createElement(Gb,{style:{input:s.input,label:s.label},label:"b",value:r==null?void 0:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),te.createElement("div",{style:s.alpha},te.createElement(Gb,{style:{input:s.input,label:s.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:l,dragLabel:"true",dragMax:"100"})))};function S3(e){"@babel/helpers - typeof";return S3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S3(e)}function fee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pee(e){for(var t=1;t-1}function C$t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&pbe()?XB:x$t}var _$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.old,c=d.useContext(zn.ConfigContext),u=c.getPrefixCls,f=te.useMemo(function(){return C$t(l)},[l]),p=u("pro-field-color-picker"),h=d.useMemo(function(){return l?"":Ee(ne({},p,pbe()))},[p,l]);if(i==="read"){var m=x.jsx(f,{value:r,mode:"read",ref:n,className:h,open:!1});return a?a(r,q({mode:i},s),m):m}if(i==="edit"||i==="update"){var g=q({display:"table-cell"},s.style),v=x.jsx(f,q(q({ref:n,presets:[S$t]},s),{},{style:g,className:h}));return o?o(r,q(q({mode:i},s),{},{style:g}),v):v}return null};const k$t=te.forwardRef(_$t);cr.extend(RB);var E$t=function(t,n){return t?typeof n=="function"?n(cr(t)):cr(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},$$t=function(t,n){var r=t.text,i=t.mode,a=t.format,o=t.label,s=t.light,l=t.render,c=t.renderFormItem,u=t.plain,f=t.showTime,p=t.fieldProps,h=t.picker,m=t.bordered,g=t.lightLabel,v=sa(),y=d.useState(!1),w=Te(y,2),b=w[0],C=w[1];if(i==="read"){var k=E$t(r,p.format||a);return l?l(r,q({mode:i},p),x.jsx(x.Fragment,{children:k})):x.jsx(x.Fragment,{children:k})}if(i==="edit"||i==="update"){var S,_=p.disabled,E=p.value,$=p.placeholder,M=$===void 0?v.getMessage("tableForm.selectPlaceholder","请选择"):$,P=H4(E);return s?S=x.jsx(Qf,{label:o,onClick:function(){var O;p==null||(O=p.onOpenChange)===null||O===void 0||O.call(p,!0),C(!0)},style:P?{paddingInlineEnd:0}:void 0,disabled:_,value:P||b?x.jsx(xc,q(q(q({picker:h,showTime:f,format:a,ref:n},p),{},{value:P,onOpenChange:function(O){var j;C(O),p==null||(j=p.onOpenChange)===null||j===void 0||j.call(p,O)}},Dl(!1)),{},{open:b})):void 0,allowClear:!1,downIcon:P||b?!1:void 0,bordered:m,ref:g}):S=x.jsx(xc,q(q(q({picker:h,showTime:f,format:a,placeholder:M},Dl(u===void 0?!0:!u)),{},{ref:n},p),{},{value:P})),c?c(r,q({mode:i},p),S):S}return null};const H1=te.forwardRef($$t);var M$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=sa(),u=o||c.getMessage("tableForm.inputPlaceholder","请输入"),f=d.useCallback(function(y){var w=y??void 0;return!l.stringMode&&typeof w=="string"&&(w=Number(w)),typeof w=="number"&&!$g(w)&&!$g(l.precision)&&(w=Number(w.toFixed(l.precision))),w},[l]);if(i==="read"){var p,h={};l!=null&&l.precision&&(h={minimumFractionDigits:Number(l.precision),maximumFractionDigits:Number(l.precision)});var m=new Intl.NumberFormat(void 0,q(q({},h),(l==null?void 0:l.intlProps)||{})).format(Number(r)),g=l!=null&&l.stringMode?x.jsx("span",{children:r}):x.jsx("span",{ref:n,children:(l==null||(p=l.formatter)===null||p===void 0?void 0:p.call(l,m))||m});return a?a(r,q({mode:i},l),g):g}if(i==="edit"||i==="update"){var v=x.jsx(Af,q(q({ref:n,min:0,placeholder:u},Fl(l,["onChange","onBlur"])),{},{onChange:function(w){var b;return l==null||(b=l.onChange)===null||b===void 0?void 0:b.call(l,f(w))},onBlur:function(w){var b;return l==null||(b=l.onBlur)===null||b===void 0?void 0:b.call(l,f(w.target.value))}}));return s?s(r,q({mode:i},l),v):v}return null};const T$t=te.forwardRef(M$t);var P$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=t.separator,u=c===void 0?"~":c,f=t.separatorWidth,p=f===void 0?30:f,h=l.value,m=l.defaultValue,g=l.onChange,v=l.id,y=sa(),w=wd.useToken(),b=w.token,C=jn(function(){return m},{value:h,onChange:g}),k=Te(C,2),S=k[0],_=k[1];if(i==="read"){var E=function(F){var K,L=new Intl.NumberFormat(void 0,q({minimumSignificantDigits:2},(l==null?void 0:l.intlProps)||{})).format(Number(F));return(l==null||(K=l.formatter)===null||K===void 0?void 0:K.call(l,L))||L},$=x.jsxs("span",{ref:n,children:[E(r[0])," ",u," ",E(r[1])]});return a?a(r,q({mode:i},l),$):$}if(i==="edit"||i==="update"){var M=function(){if(Array.isArray(S)){var F=Te(S,2),K=F[0],L=F[1];typeof K=="number"&&typeof L=="number"&&K>L?_([L,K]):K===void 0&&L===void 0&&_(void 0)}},P=function(F,K){var L=lt(S||[]);L[F]=K===null?void 0:K,_(L)},R=(l==null?void 0:l.placeholder)||o||[y.getMessage("tableForm.inputPlaceholder","请输入"),y.getMessage("tableForm.inputPlaceholder","请输入")],O=function(F){return Array.isArray(R)?R[F]:R},j=Xr.Compact||Ur.Group,I=Xr.Compact?{}:{compact:!0},A=x.jsxs(j,q(q({},I),{},{onBlur:M,children:[x.jsx(Af,q(q({},l),{},{placeholder:O(0),id:v??"".concat(v,"-0"),style:{width:"calc((100% - ".concat(p,"px) / 2)")},value:S==null?void 0:S[0],defaultValue:m==null?void 0:m[0],onChange:function(F){return P(0,F)}})),x.jsx(Ur,{style:{width:p,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:b==null?void 0:b.colorBgContainer},placeholder:u,disabled:!0}),x.jsx(Af,q(q({},l),{},{placeholder:O(1),id:v??"".concat(v,"-1"),style:{width:"calc((100% - ".concat(p,"px) / 2)"),borderInlineStart:0},value:S==null?void 0:S[1],defaultValue:m==null?void 0:m[1],onChange:function(F){return P(1,F)}}))]}));return s?s(r,q({mode:i},l),A):A}return null};const O$t=te.forwardRef(P$t);var hbe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r,i){n=n||{};var a=r.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,p){return a.fromToBase(c,u,f,p)}i.en.relativeTime=o,a.fromToBase=function(c,u,f,p,h){for(var m,g,v,y=f.$locale().relativeTime||o,w=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],b=w.length,C=0;C0,S<=k.r||!k.r){S<=1&&C>0&&(k=w[C-1]);var _=y[k.l];h&&(S=h(""+S)),g=typeof _=="string"?_.replace("%d",S):_(S,u,k.l,v);break}}if(u)return g;var E=v?y.future:y.past;return typeof E=="function"?E(g):E.replace("%s",g)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?i.utc():i()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(hbe);var R$t=hbe.exports;const I$t=ei(R$t);cr.extend(I$t);var j$t=function(t,n){var r=t.text,i=t.mode,a=t.plain,o=t.render,s=t.renderFormItem,l=t.format,c=t.fieldProps,u=sa();if(i==="read"){var f=x.jsx(_a,{title:cr(r).format((c==null?void 0:c.format)||l||"YYYY-MM-DD HH:mm:ss"),children:cr(r).fromNow()});return o?o(r,q({mode:i},c),x.jsx(x.Fragment,{children:f})):x.jsx(x.Fragment,{children:f})}if(i==="edit"||i==="update"){var p=u.getMessage("tableForm.selectPlaceholder","请选择"),h=H4(c.value),m=x.jsx(xc,q(q(q({ref:n,placeholder:p,showTime:!0},Dl(a===void 0?!0:!a)),c),{},{value:h}));return s?s(r,q({mode:i},c),m):m}return null};const N$t=te.forwardRef(j$t);var mbe=te.forwardRef(function(e,t){var n=e.text,r=e.mode,i=e.render,a=e.renderFormItem,o=e.fieldProps,s=e.placeholder,l=e.width,c=sa(),u=s||c.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var f=x.jsx(B1e,q({ref:t,width:l||32,src:n},o));return i?i(n,q({mode:r},o),f):f}if(r==="edit"||r==="update"){var p=x.jsx(Ur,q({ref:t,placeholder:u},o));return a?a(n,q({mode:r},o),p):p}return null}),A$t=function(t,n){var r=t.border,i=r===void 0?!1:r,a=t.children,o=d.useContext(zn.ConfigContext),s=o.getPrefixCls,l=s("pro-field-index-column"),c=Ci("IndexColumn",function(){return ne({},".".concat(l),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),u=c.wrapSSR,f=c.hashId;return u(x.jsx("div",{ref:n,className:Ee(l,f,ne(ne({},"".concat(l,"-border"),i),"top-three",a>3)),children:a}))};const mee=te.forwardRef(A$t);var D$t=["contentRender","numberFormatOptions","numberPopoverRender","open"],F$t=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],gbe=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),L$t={style:"currency",currency:"USD"},B$t={style:"currency",currency:"RUB"},z$t={style:"currency",currency:"RSD"},H$t={style:"currency",currency:"MYR"},U$t={style:"currency",currency:"BRL"},W$t={default:gbe,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":L$t,"ru-RU":B$t,"ms-MY":H$t,"sr-RS":z$t,"pt-BR":U$t},gee=function(t,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",o=n==null?void 0:n.toString().replaceAll(",","");if(typeof o=="string"){var s=Number(o);if(Number.isNaN(s))return o;o=s}if(!o&&o!==0)return"";var l=!1;try{l=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var c=new Intl.NumberFormat(l&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",q(q({},W$t[t||"zh-Hans-CN"]||gbe),{},{maximumFractionDigits:r},i)),u=c.format(o),f=function(y){var w=y.match(/\d+/);if(w){var b=w[0];return y.slice(y.indexOf(b))}else return y},p=f(u),h=u||"",m=Te(h,1),g=m[0];return["+","-"].includes(g)?"".concat(a||"").concat(g).concat(p):"".concat(a||"").concat(p)}catch{return o}},VT=2,V$t=te.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,i=Ht(e,D$t),a=jn(function(){return i.defaultValue},{value:i.value,onChange:i.onChange}),o=Te(a,2),s=o[0],l=o[1],c=n==null?void 0:n(q(q({},i),{},{value:s})),u=u$(c?r:!1);return x.jsx(wc,q(q({placement:"topLeft"},u),{},{trigger:["focus","click"],content:c,getPopupContainer:function(p){return(p==null?void 0:p.parentElement)||document.body},children:x.jsx(Af,q(q({ref:t},i),{},{value:s,onChange:l}))}))}),q$t=function(t,n){var r,i=t.text,a=t.mode,o=t.render,s=t.renderFormItem,l=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var c=t.placeholder,u=t.locale,f=t.customSymbol,p=f===void 0?l.customSymbol:f,h=t.numberFormatOptions,m=h===void 0?l==null?void 0:l.numberFormatOptions:h,g=t.numberPopoverRender,v=g===void 0?(l==null?void 0:l.numberPopoverRender)||!1:g,y=Ht(t,F$t),w=(r=l==null?void 0:l.precision)!==null&&r!==void 0?r:VT,b=sa();u&&Eg[u]&&(b=Eg[u]);var C=c||b.getMessage("tableForm.inputPlaceholder","请输入"),k=d.useMemo(function(){if(p)return p;if(!(y.moneySymbol===!1||l.moneySymbol===!1))return b.getMessage("moneySymbol","¥")},[p,l.moneySymbol,b,y.moneySymbol]),S=d.useCallback(function($){var M=new RegExp("\\B(?=(\\d{".concat(3+Math.max(w-VT,0),"})+(?!\\d))"),"g"),P=String($).split("."),R=Te(P,2),O=R[0],j=R[1],I=O.replace(M,","),A="";return j&&w>0&&(A=".".concat(j.slice(0,w===void 0?VT:w))),"".concat(I).concat(A)},[w]);if(a==="read"){var _=x.jsx("span",{ref:n,children:gee(u||!1,i,w,m??l.numberFormatOptions,k)});return o?o(i,q({mode:a},l),_):_}if(a==="edit"||a==="update"){var E=x.jsx(V$t,q(q({contentRender:function(M){if(v===!1||!M.value)return null;var P=gee(k||u||!1,"".concat(S(M.value)),w,q(q({},m),{},{notation:"compact"}),k);return typeof v=="function"?v==null?void 0:v(M,P):P},ref:n,precision:w,formatter:function(M){return M&&k?"".concat(k," ").concat(S(M)):M==null?void 0:M.toString()},parser:function(M){return k&&M?M.replace(new RegExp("\\".concat(k,"\\s?|(,*)"),"g"),""):M},placeholder:C},Fl(l,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:l.onBlur?function($){var M,P=$.target.value;k&&P&&(P=P.replace(new RegExp("\\".concat(k,"\\s?|(,*)"),"g"),"")),(M=l.onBlur)===null||M===void 0||M.call(l,P)}:void 0}));return s?s(i,q({mode:a},l),E):E}return null};const vbe=te.forwardRef(q$t);var vee=function(t){return t.map(function(n,r){var i;return te.isValidElement(n)?te.cloneElement(n,q(q({key:r},n==null?void 0:n.props),{},{style:q({},n==null||(i=n.props)===null||i===void 0?void 0:i.style)})):x.jsx(te.Fragment,{children:n},r)})},K$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.fieldProps,s=d.useContext(zn.ConfigContext),l=s.getPrefixCls,c=l("pro-field-option"),u=wd.useToken(),f=u.token;if(d.useImperativeHandle(n,function(){return{}}),a){var p=a(r,q({mode:i},o),x.jsx(x.Fragment,{}));return!p||(p==null?void 0:p.length)<1||!Array.isArray(p)?null:x.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:c,children:vee(p)})}return!r||!Array.isArray(r)?te.isValidElement(r)?r:null:x.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:c,children:vee(r)})};const G$t=te.forwardRef(K$t);var Y$t=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],X$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;t.proFieldKey;var l=Ht(t,Y$t),c=sa(),u=jn(function(){return l.open||l.visible||!1},{value:l.open||l.visible,onChange:l.onOpenChange||l.onVisible}),f=Te(u,2),p=f[0],h=f[1];if(i==="read"){var m=x.jsx(x.Fragment,{children:"-"});return r&&(m=x.jsxs(Xr,{children:[x.jsx("span",{ref:n,children:p?r:"********"}),x.jsx("a",{onClick:function(){return h(!p)},children:p?x.jsx(V8,{}):x.jsx(Jge,{})})]})),a?a(r,q({mode:i},s),m):m}if(i==="edit"||i==="update"){var g=x.jsx(Ur.Password,q({placeholder:c.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},s));return o?o(r,q({mode:i},s),g):g}return null};const Z$t=te.forwardRef(X$t);var Q$t=/\s/;function J$t(e){for(var t=e.length;t--&&Q$t.test(e.charAt(t)););return t}var e7t=/^\s+/;function t7t(e){return e&&e.slice(0,J$t(e)+1).replace(e7t,"")}var n7t="[object Symbol]";function M$(e){return typeof e=="symbol"||$h(e)&&r1(e)==n7t}var yee=NaN,r7t=/^[-+]0x[0-9a-f]+$/i,i7t=/^0b[01]+$/i,a7t=/^0o[0-7]+$/i,o7t=parseInt;function J6(e){if(typeof e=="number")return e;if(M$(e))return yee;if(Sd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Sd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=t7t(e);var n=i7t.test(e);return n||a7t.test(e)?o7t(e.slice(2),n?2:8):r7t.test(e)?yee:+e}function s7t(e){return e===0?null:e>0?"+":"-"}function l7t(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function c7t(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}var u7t=function(t,n){var r=t.text,i=t.prefix,a=t.precision,o=t.suffix,s=o===void 0?"%":o,l=t.mode,c=t.showColor,u=c===void 0?!1:c,f=t.render,p=t.renderFormItem,h=t.fieldProps,m=t.placeholder,g=t.showSymbol,v=sa(),y=m||v.getMessage("tableForm.inputPlaceholder","请输入"),w=d.useMemo(function(){return typeof r=="string"&&r.includes("%")?J6(r.replace("%","")):J6(r)},[r]),b=d.useMemo(function(){return typeof g=="function"?g==null?void 0:g(r):g},[g,r]);if(l==="read"){var C=u?{color:l7t(w)}:{},k=x.jsxs("span",{style:C,ref:n,children:[i&&x.jsx("span",{children:i}),b&&x.jsxs(d.Fragment,{children:[s7t(w)," "]}),c7t(Math.abs(w),a),s&&s]});return f?f(r,q(q({mode:l},h),{},{prefix:i,precision:a,showSymbol:b,suffix:s}),k):k}if(l==="edit"||l==="update"){var S=x.jsx(Af,q({ref:n,formatter:function(E){return E&&i?"".concat(i," ").concat(E).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):E},parser:function(E){return E?E.replace(/.*\s|,/g,""):""},placeholder:y},h));return p?p(r,q({mode:l},h),S):S}return null};const ybe=te.forwardRef(u7t);function d7t(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var f7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.plain,s=t.renderFormItem,l=t.fieldProps,c=t.placeholder,u=sa(),f=c||u.getMessage("tableForm.inputPlaceholder","请输入"),p=d.useMemo(function(){return typeof r=="string"&&r.includes("%")?J6(r.replace("%","")):J6(r)},[r]);if(i==="read"){var h=x.jsx(rz,q({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:p,steps:o?10:void 0,status:d7t(p)},l));return a?a(p,q({mode:i},l),h):h}if(i==="edit"||i==="update"){var m=x.jsx(Af,q({ref:n,placeholder:f},l));return s?s(r,q({mode:i},l),m):m}return null};const bbe=te.forwardRef(f7t);var p7t=["radioType","renderFormItem","mode","render"],h7t=function(t,n){var r,i,a=t.radioType,o=t.renderFormItem,s=t.mode,l=t.render,c=Ht(t,p7t),u=d.useContext(zn.ConfigContext),f=u.getPrefixCls,p=f("pro-field-radio"),h=Uy(c),m=Te(h,3),g=m[0],v=m[1],y=m[2],w=d.useRef(),b=(r=Zi.Item)===null||r===void 0||(i=r.useStatus)===null||i===void 0?void 0:i.call(r);d.useImperativeHandle(n,function(){return q(q({},w.current||{}),{},{fetchData:function(j){return y(j)}})},[y]);var C=Ci("FieldRadioRadio",function(O){return ne(ne(ne({},".".concat(p,"-error"),{span:{color:O.colorError}}),".".concat(p,"-warning"),{span:{color:O.colorWarning}}),".".concat(p,"-vertical"),ne({},"".concat(O.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),k=C.wrapSSR,S=C.hashId;if(g)return x.jsx(Zo,{size:"small"});if(s==="read"){var _=v!=null&&v.length?v==null?void 0:v.reduce(function(O,j){var I;return q(q({},O),{},ne({},(I=j.value)!==null&&I!==void 0?I:"",j.label))},{}):void 0,E=x.jsx(x.Fragment,{children:zy(c.text,Jf(c.valueEnum||_))});if(l){var $;return($=l(c.text,q({mode:s},c.fieldProps),E))!==null&&$!==void 0?$:null}return E}if(s==="edit"){var M,P=k(x.jsx(us.Group,q(q({ref:w,optionType:a},c.fieldProps),{},{className:Ee((M=c.fieldProps)===null||M===void 0?void 0:M.className,ne(ne({},"".concat(p,"-error"),(b==null?void 0:b.status)==="error"),"".concat(p,"-warning"),(b==null?void 0:b.status)==="warning"),S,"".concat(p,"-").concat(c.fieldProps.layout||"horizontal")),options:v})));if(o){var R;return(R=o(c.text,q(q({mode:s},c.fieldProps),{},{options:v,loading:g}),P))!==null&&R!==void 0?R:null}return P}return null};const bee=te.forwardRef(h7t);var m7t=function(t,n){var r=t.text,i=t.mode,a=t.light,o=t.label,s=t.format,l=t.render,c=t.picker,u=t.renderFormItem,f=t.plain,p=t.showTime,h=t.lightLabel,m=t.bordered,g=t.fieldProps,v=sa(),y=Array.isArray(r)?r:[],w=Te(y,2),b=w[0],C=w[1],k=te.useState(!1),S=Te(k,2),_=S[0],E=S[1],$=d.useCallback(function(A){if(typeof(g==null?void 0:g.format)=="function"){var N;return g==null||(N=g.format)===null||N===void 0?void 0:N.call(g,A)}return(g==null?void 0:g.format)||s||"YYYY-MM-DD"},[g,s]),M=b?cr(b).format($(cr(b))):"",P=C?cr(C).format($(cr(C))):"";if(i==="read"){var R=x.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[x.jsx("div",{children:M||"-"}),x.jsx("div",{children:P||"-"})]});return l?l(r,q({mode:i},g),x.jsx("span",{children:R})):R}if(i==="edit"||i==="update"){var O=H4(g.value),j;if(a){var I;j=x.jsx(Qf,{label:o,onClick:function(){var N;g==null||(N=g.onOpenChange)===null||N===void 0||N.call(g,!0),E(!0)},style:O?{paddingInlineEnd:0}:void 0,disabled:g.disabled,value:O||_?x.jsx(xc.RangePicker,q(q(q({picker:c,showTime:p,format:s},Dl(!1)),g),{},{placeholder:(I=g.placeholder)!==null&&I!==void 0?I:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var N;E(!1),g==null||(N=g.onClear)===null||N===void 0||N.call(g)},value:O,onOpenChange:function(N){var F;O&&E(N),g==null||(F=g.onOpenChange)===null||F===void 0||F.call(g,N)}})):null,allowClear:!1,bordered:m,ref:h,downIcon:O||_?!1:void 0})}else j=x.jsx(xc.RangePicker,q(q(q({ref:n,format:s,showTime:p,placeholder:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")]},Dl(f===void 0?!0:!f)),g),{},{value:O}));return u?u(r,q({mode:i},g),j):j}return null};const U1=te.forwardRef(m7t);var g7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=x.jsx(mZ,q(q({allowHalf:!0,disabled:!0,ref:n},s),{},{value:r}));return a?a(r,q({mode:i},s),x.jsx(x.Fragment,{children:l})):l}if(i==="edit"||i==="update"){var c=x.jsx(mZ,q({allowHalf:!0,ref:n},s));return o?o(r,q({mode:i},s),c):c}return null};const v7t=te.forwardRef(g7t);function y7t(e){var t=e,n="",r=!1;t<0&&(t=-t,r=!0);var i=Math.floor(t/(3600*24)),a=Math.floor(t/3600%24),o=Math.floor(t/60%60),s=Math.floor(t%60);return n="".concat(s,"秒"),o>0&&(n="".concat(o,"分钟").concat(n)),a>0&&(n="".concat(a,"小时").concat(n)),i>0&&(n="".concat(i,"天").concat(n)),r&&(n+="前"),n}var b7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.placeholder,c=sa(),u=l||c.getMessage("tableForm.inputPlaceholder","请输入");if(i==="read"){var f=y7t(Number(r)),p=x.jsx("span",{ref:n,children:f});return a?a(r,q({mode:i},s),p):p}if(i==="edit"||i==="update"){var h=x.jsx(Af,q({ref:n,min:0,style:{width:"100%"},placeholder:u},s));return o?o(r,q({mode:i},s),h):h}return null};const w7t=te.forwardRef(b7t);var x7t=["mode","render","renderFormItem","fieldProps","emptyText"],S7t=function(t,n){var r=t.mode,i=t.render,a=t.renderFormItem,o=t.fieldProps,s=t.emptyText,l=s===void 0?"-":s,c=Ht(t,x7t),u=d.useRef(),f=Uy(t),p=Te(f,3),h=p[0],m=p[1],g=p[2];if(d.useImperativeHandle(n,function(){return q(q({},u.current||{}),{},{fetchData:function(k){return g(k)}})},[g]),h)return x.jsx(Zo,{size:"small"});if(r==="read"){var v=m!=null&&m.length?m==null?void 0:m.reduce(function(C,k){var S;return q(q({},C),{},ne({},(S=k.value)!==null&&S!==void 0?S:"",k.label))},{}):void 0,y=x.jsx(x.Fragment,{children:zy(c.text,Jf(c.valueEnum||v))});if(i){var w;return(w=i(c.text,q({mode:r},o),x.jsx(x.Fragment,{children:y})))!==null&&w!==void 0?w:l}return y}if(r==="edit"||r==="update"){var b=x.jsx(Wge,q(q({ref:u},Fl(o||{},["allowClear"])),{},{options:m}));return a?a(c.text,q(q({mode:r},o),{},{options:m,loading:h}),b):b}return null};const C7t=te.forwardRef(S7t);var _7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=r;return a?a(r,q({mode:i},s),x.jsx(x.Fragment,{children:l})):x.jsx(x.Fragment,{children:l})}if(i==="edit"||i==="update"){var c=x.jsx(a1e,q(q({ref:n},s),{},{style:q({minWidth:120},s==null?void 0:s.style)}));return o?o(r,q({mode:i},s),c):c}return null};const k7t=te.forwardRef(_7t);var E7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.light,s=t.label,l=t.renderFormItem,c=t.fieldProps,u=sa(),f=d.useMemo(function(){var v,y;return r==null||"".concat(r).length<1?"-":r?(v=c==null?void 0:c.checkedChildren)!==null&&v!==void 0?v:u.getMessage("switch.open","打开"):(y=c==null?void 0:c.unCheckedChildren)!==null&&y!==void 0?y:u.getMessage("switch.close","关闭")},[c==null?void 0:c.checkedChildren,c==null?void 0:c.unCheckedChildren,r]);if(i==="read")return a?a(r,q({mode:i},c),x.jsx(x.Fragment,{children:f})):f??"-";if(i==="edit"||i==="update"){var p,h=x.jsx(O6,q(q({ref:n,size:o?"small":void 0},Fl(c,["value"])),{},{checked:(p=c==null?void 0:c.checked)!==null&&p!==void 0?p:c==null?void 0:c.value}));if(o){var m=c.disabled,g=c.bordered;return x.jsx(Qf,{label:s,disabled:m,bordered:g,downIcon:!1,value:x.jsx("div",{style:{paddingLeft:8},children:h}),allowClear:!1})}return l?l(r,q({mode:i},c),h):h}return null};const $7t=te.forwardRef(E7t);var M7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.emptyText,c=l===void 0?"-":l,u=s||{},f=u.autoFocus,p=u.prefix,h=p===void 0?"":p,m=u.suffix,g=m===void 0?"":m,v=sa(),y=d.useRef();if(d.useImperativeHandle(n,function(){return y.current},[]),d.useEffect(function(){if(f){var S;(S=y.current)===null||S===void 0||S.focus()}},[f]),i==="read"){var w=x.jsxs(x.Fragment,{children:[h,r??c,g]});if(a){var b;return(b=a(r,q({mode:i},s),w))!==null&&b!==void 0?b:c}return w}if(i==="edit"||i==="update"){var C=v.getMessage("tableForm.inputPlaceholder","请输入"),k=x.jsx(Ur,q({ref:y,placeholder:C,allowClear:!0},s));return o?o(r,q({mode:i},s),k):k}return null};const T7t=te.forwardRef(M7t);function wbe(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r1),a}),Hy(e,_be(e),n),r&&(n=h_(n,C9t|_9t|k9t,y9t));for(var i=t.length;i--;)v9t(n,t[i]);return n}),$9t=function(t,n){var r=t.text,i=t.fieldProps,a=d.useContext(zn.ConfigContext),o=a.getPrefixCls,s=o("pro-field-readonly"),l="".concat(s,"-textarea"),c=Ci("TextArea",function(){return ne({},".".concat(l),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),u=c.wrapSSR,f=c.hashId;return u(x.jsx("span",q(q({ref:n,className:Ee(f,s,l)},E9t(i,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const M9t=te.forwardRef($9t);var T9t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=sa();if(i==="read"){var c=x.jsx(M9t,q(q({},t),{},{ref:n}));return a?a(r,q({mode:i},Fl(s,["showCount"])),c):c}if(i==="edit"||i==="update"){var u=x.jsx(Ur.TextArea,q({ref:n,rows:3,onKeyPress:function(p){p.key==="Enter"&&p.stopPropagation()},placeholder:l.getMessage("tableForm.inputPlaceholder","请输入")},s));return o?o(r,q({mode:i},s),u):u}return null};const P9t=te.forwardRef(T9t);var O9t=function(t,n){var r=t.text,i=t.mode,a=t.light,o=t.label,s=t.format,l=t.render,c=t.renderFormItem,u=t.plain,f=t.fieldProps,p=t.lightLabel,h=d.useState(!1),m=Te(h,2),g=m[0],v=m[1],y=sa(),w=(f==null?void 0:f.format)||s||"HH:mm:ss",b=cr.isDayjs(r)||typeof r=="number";if(i==="read"){var C=x.jsx("span",{ref:n,children:r?cr(r,b?void 0:w).format(w):"-"});return l?l(r,q({mode:i},f),x.jsx("span",{children:C})):C}if(i==="edit"||i==="update"){var k,S=f.disabled,_=f.value,E=H4(_,w);if(a){var $;k=x.jsx(Qf,{onClick:function(){var P;f==null||(P=f.onOpenChange)===null||P===void 0||P.call(f,!0),v(!0)},style:E?{paddingInlineEnd:0}:void 0,label:o,disabled:S,value:E||g?x.jsx(_g,q(q(q({},Dl(!1)),{},{format:s,ref:n},f),{},{placeholder:($=f.placeholder)!==null&&$!==void 0?$:y.getMessage("tableForm.selectPlaceholder","请选择"),value:E,onOpenChange:function(P){var R;v(P),f==null||(R=f.onOpenChange)===null||R===void 0||R.call(f,P)},open:g})):null,downIcon:E||g?!1:void 0,allowClear:!1,ref:p})}else k=x.jsx(xc.TimePicker,q(q(q({ref:n,format:s},Dl(u===void 0?!0:!u)),f),{},{value:E}));return c?c(r,q({mode:i},f),k):k}return null},R9t=function(t,n){var r=t.text,i=t.light,a=t.label,o=t.mode,s=t.lightLabel,l=t.format,c=t.render,u=t.renderFormItem,f=t.plain,p=t.fieldProps,h=sa(),m=d.useState(!1),g=Te(m,2),v=g[0],y=g[1],w=(p==null?void 0:p.format)||l||"HH:mm:ss",b=Array.isArray(r)?r:[],C=Te(b,2),k=C[0],S=C[1],_=cr.isDayjs(k)||typeof k=="number",E=cr.isDayjs(S)||typeof S=="number",$=k?cr(k,_?void 0:w).format(w):"",M=S?cr(S,E?void 0:w).format(w):"";if(o==="read"){var P=x.jsxs("div",{ref:n,children:[x.jsx("div",{children:$||"-"}),x.jsx("div",{children:M||"-"})]});return c?c(r,q({mode:o},p),x.jsx("span",{children:P})):P}if(o==="edit"||o==="update"){var R=H4(p.value,w),O;if(i){var j=p.disabled,I=p.placeholder,A=I===void 0?[h.getMessage("tableForm.selectPlaceholder","请选择"),h.getMessage("tableForm.selectPlaceholder","请选择")]:I;O=x.jsx(Qf,{onClick:function(){var F;p==null||(F=p.onOpenChange)===null||F===void 0||F.call(p,!0),y(!0)},style:R?{paddingInlineEnd:0}:void 0,label:a,disabled:j,placeholder:A,value:R||v?x.jsx(_g.RangePicker,q(q(q({},Dl(!1)),{},{format:l,ref:n},p),{},{placeholder:A,value:R,onOpenChange:function(F){var K;y(F),p==null||(K=p.onOpenChange)===null||K===void 0||K.call(p,F)},open:v})):null,downIcon:R||v?!1:void 0,allowClear:!1,ref:s})}else O=x.jsx(_g.RangePicker,q(q(q({ref:n,format:l},Dl(f===void 0?!0:!f)),p),{},{value:R}));return u?u(r,q({mode:o},p),O):O}return null},I9t=te.forwardRef(R9t);const j9t=te.forwardRef(O9t);var N9t=["radioType","renderFormItem","mode","light","label","render"],A9t=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],D9t=function(t,n){t.radioType;var r=t.renderFormItem,i=t.mode,a=t.light,o=t.label,s=t.render,l=Ht(t,N9t),c=d.useContext(zn.ConfigContext),u=c.getPrefixCls,f=u("pro-field-tree-select"),p=d.useRef(null),h=d.useState(!1),m=Te(h,2),g=m[0],v=m[1],y=l.fieldProps,w=y.onSearch,b=y.onClear,C=y.onChange,k=y.onBlur,S=y.showSearch,_=y.autoClearSearchValue;y.treeData;var E=y.fetchDataOnSearch,$=y.searchValue,M=Ht(y,A9t),P=sa(),R=Uy(q(q({},l),{},{defaultKeyWords:$})),O=Te(R,3),j=O[0],I=O[1],A=O[2],N=jn(void 0,{onChange:w,value:$}),F=Te(N,2),K=F[0],L=F[1];d.useImperativeHandle(n,function(){return q(q({},p.current||{}),{},{fetchData:function(me){return A(me)}})});var V=d.useMemo(function(){if(i==="read"){var pe=(M==null?void 0:M.fieldNames)||{},me=pe.value,re=me===void 0?"value":me,fe=pe.label,ve=fe===void 0?"label":fe,$e=pe.children,Ce=$e===void 0?"children":$e,be=new Map,Se=function we(se){if(!(se!=null&&se.length))return be;for(var ye=se.length,Oe=0;Oe4&&(h+=7),p.add(h,n));return m.diff(g,"week")+1},s.isoWeekday=function(c){return this.$utils().u(c)?this.day()||7:this.day(this.day()%7?c:c-7)};var l=s.startOf;s.startOf=function(c,u){var f=this.$utils(),p=!!f.u(u)||u;return f.p(c)==="isoweek"?p?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(c,u)}}})})(Pbe);var L9t=Pbe.exports;const B9t=ei(L9t);var Obe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var o=i.prototype,s=o.format;a.en.formats=n,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,m,g){var v=g&&g.toUpperCase();return m||p[g]||n[g]||p[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,w,b){return w||b.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(Obe);var z9t=Obe.exports;const H9t=ei(z9t);var U9t=["fieldProps"],W9t=["fieldProps"],V9t=["fieldProps"],q9t=["fieldProps"],K9t=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],G9t=["placeholder"];cr.extend(bme);cr.extend(Cme);cr.extend(B9t);cr.extend(RB);cr.extend(vme);cr.extend(H9t);var Y9t=function(t,n,r){var i=V0e(r.fieldProps);return n.type==="progress"?x.jsx(bbe,q(q({},r),{},{text:t,fieldProps:q({status:n.status?n.status:void 0},i)})):n.type==="money"?x.jsx(vbe,q(q({locale:n.locale},r),{},{fieldProps:i,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?x.jsx(ybe,q(q({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:i,showColor:n.showColor})):n.type==="image"?x.jsx(mbe,q(q({},r),{},{text:t,width:n.width})):t},X9t=function(t,n,r,i){var a=r.mode,o=a===void 0?"read":a,s=r.emptyText,l=s===void 0?"-":s;if(l!==!1&&o==="read"&&n!=="option"&&n!=="switch"&&typeof t!="boolean"&&typeof t!="number"&&!t){var c=r.fieldProps,u=r.render;return u?u(t,q({mode:o},c),x.jsx(x.Fragment,{children:l})):x.jsx(x.Fragment,{children:l})}if(delete r.emptyText,Kt(n)==="object")return Y9t(t,n,r);var f=i&&i[n];if(f){if(delete r.ref,o==="read"){var p;return(p=f.render)===null||p===void 0?void 0:p.call(f,t,q(q({text:t},r),{},{mode:o||"read"}),x.jsx(x.Fragment,{children:t}))}if(o==="update"||o==="edit"){var h;return(h=f.renderFormItem)===null||h===void 0?void 0:h.call(f,t,q({text:t},r),x.jsx(x.Fragment,{children:t}))}}if(n==="money")return x.jsx(vbe,q(q({},r),{},{text:t}));if(n==="date")return x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var m=r.fieldProps,g=Ht(r,U9t);return x.jsx($s,{isLight:r.light,children:x.jsx(U1,q({text:t,format:"YYYY-W",showTime:!0,fieldProps:q({picker:"week"},m)},g))})}if(n==="dateMonthRange"){var v=r.fieldProps,y=Ht(r,W9t);return x.jsx($s,{isLight:r.light,children:x.jsx(U1,q({text:t,format:"YYYY-MM",showTime:!0,fieldProps:q({picker:"month"},v)},y))})}if(n==="dateQuarterRange"){var w=r.fieldProps,b=Ht(r,V9t);return x.jsx($s,{isLight:r.light,children:x.jsx(U1,q({text:t,format:"YYYY-Q",showTime:!0,fieldProps:q({picker:"quarter"},w)},b))})}if(n==="dateYearRange"){var C=r.fieldProps,k=Ht(r,q9t);return x.jsx($s,{isLight:r.light,children:x.jsx(U1,q({text:t,format:"YYYY",showTime:!0,fieldProps:q({picker:"year"},C)},k))})}return n==="dateMonth"?x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?x.jsx(U1,q({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?x.jsx($s,{isLight:r.light,children:x.jsx(U1,q({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?x.jsx($s,{isLight:r.light,children:x.jsx(j9t,q({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?x.jsx($s,{isLight:r.light,children:x.jsx(I9t,q({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?x.jsx(N$t,q({text:t},r)):n==="index"?x.jsx(mee,{children:t+1}):n==="indexBorder"?x.jsx(mee,{border:!0,children:t+1}):n==="progress"?x.jsx(bbe,q(q({},r),{},{text:t})):n==="percent"?x.jsx(ybe,q({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?x.jsx(Pi,{src:t,size:22,shape:"circle"}):n==="code"?x.jsx(tJ,q({text:t},r)):n==="jsonCode"?x.jsx(tJ,q({text:t,language:"json"},r)):n==="textarea"?x.jsx(P9t,q({text:t},r)):n==="digit"?x.jsx(T$t,q({text:t},r)):n==="digitRange"?x.jsx(O$t,q({text:t},r)):n==="second"?x.jsx(w7t,q({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?x.jsx($s,{isLight:r.light,children:x.jsx(Q1t,q({text:t},r))}):n==="checkbox"?x.jsx(avt,q({text:t},r)):n==="radio"?x.jsx(bee,q({text:t},r)):n==="radioButton"?x.jsx(bee,q({radioType:"button",text:t},r)):n==="rate"?x.jsx(v7t,q({text:t},r)):n==="slider"?x.jsx(k7t,q({text:t},r)):n==="switch"?x.jsx($7t,q({text:t},r)):n==="option"?x.jsx(G$t,q({text:t},r)):n==="password"?x.jsx(Z$t,q({text:t},r)):n==="image"?x.jsx(mbe,q({text:t},r)):n==="cascader"?x.jsx(tvt,q({text:t},r)):n==="treeSelect"?x.jsx(F9t,q({text:t},r)):n==="color"?x.jsx(k$t,q({text:t},r)):n==="segmented"?x.jsx(C7t,q({text:t},r)):x.jsx(T7t,q({text:t},r))},Z9t=function(t,n){var r,i,a,o,s,l=t.text,c=t.valueType,u=c===void 0?"text":c,f=t.mode,p=f===void 0?"read":f,h=t.onChange,m=t.renderFormItem,g=t.value,v=t.readonly,y=t.fieldProps,w=Ht(t,K9t),b=d.useContext(hh),C=du(function(){for(var _,E=arguments.length,$=new Array(E),M=0;M1&&arguments[1]!==void 0?arguments[1]:{},n=[];return te.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(HN(r)):nh.isFragment(r)&&r.props?n=n.concat(HN(r.props.children,t)):n.push(r))}),n}var fH=te.createContext({}),sTt=["name","originDependencies","children","ignoreFormListField"],Rbe=function(t){var n=t.name,r=t.originDependencies,i=r===void 0?n:r,a=t.children,o=t.ignoreFormListField,s=Ht(t,sTt),l=d.useContext(L0e),c=d.useContext(fH),u=d.useMemo(function(){return n.map(function(f){var p,h=[f];return!o&&c.name!==void 0&&(p=c.listName)!==null&&p!==void 0&&p.length&&h.unshift(c.listName),h.flat(1)})},[c.listName,c.name,o,n==null?void 0:n.toString()]);return x.jsx(Zi.Item,q(q({},s),{},{noStyle:!0,shouldUpdate:function(p,h,m){if(typeof s.shouldUpdate=="boolean")return s.shouldUpdate;if(typeof s.shouldUpdate=="function"){var g;return(g=s.shouldUpdate)===null||g===void 0?void 0:g.call(s,p,h,m)}return u.some(function(v){return!Xm(Tm(p,v),Tm(h,v))})},children:function(p){for(var h={},m=0;m div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":ne(ne(ne(ne({display:"block",width:"100%"},"".concat(t.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(t.componentCls,"-container"),{paddingInlineStart:16}),"".concat(t.antCls,"-space-item,").concat(t.antCls,"-form-item"),{width:"100%"}),"".concat(t.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function gTt(e){return Ci("ProFormGroup",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[mTt(n)]})}var jbe=te.forwardRef(function(e,t){var n=te.useContext(s1),r=n.groupProps,i=q(q({},r),e),a=i.children,o=i.collapsible,s=i.defaultCollapsed,l=i.style,c=i.labelLayout,u=i.title,f=u===void 0?e.label:u,p=i.tooltip,h=i.align,m=h===void 0?"start":h,g=i.direction,v=i.size,y=v===void 0?32:v,w=i.titleStyle,b=i.titleRender,C=i.spaceProps,k=i.extra,S=i.autoFocus,_=jn(function(){return s||!1},{value:e.collapsed,onChange:e.onCollapse}),E=Te(_,2),$=E[0],M=E[1],P=d.useContext(zn.ConfigContext),R=P.getPrefixCls,O=Lz(e),j=O.ColWrapper,I=O.RowWrapper,A=R("pro-form-group"),N=gTt(A),F=N.wrapSSR,K=N.hashId,L=o&&x.jsx(bc,{style:{marginInlineEnd:8},rotate:$?void 0:90}),V=x.jsx(Aht,{label:L?x.jsxs("div",{children:[L,f]}):f,tooltip:p}),B=d.useCallback(function(X){var ae=X.children;return x.jsx(Xr,q(q({},C),{},{className:Ee("".concat(A,"-container ").concat(K),C==null?void 0:C.className),size:y,align:m,direction:g,style:q({rowGap:0},C==null?void 0:C.style),children:ae}))},[m,A,g,K,y,C]),U=b?b(V,e):V,Y=d.useMemo(function(){var X=[],ae=te.Children.toArray(a).map(function(oe,le){var ce;return te.isValidElement(oe)&&oe!==null&&oe!==void 0&&(ce=oe.props)!==null&&ce!==void 0&&ce.hidden?(X.push(oe),null):le===0&&te.isValidElement(oe)&&S?te.cloneElement(oe,q(q({},oe.props),{},{autoFocus:S})):oe});return[x.jsx(I,{Wrapper:B,children:ae},"children"),X.length>0?x.jsx("div",{style:{display:"none"},children:X}):null]},[a,I,B,S]),ee=Te(Y,2),ie=ee[0],Z=ee[1];return F(x.jsx(j,{children:x.jsxs("div",{className:Ee(A,K,ne({},"".concat(A,"-twoLine"),c==="twoLine")),style:l,ref:t,children:[Z,(f||p||k)&&x.jsx("div",{className:"".concat(A,"-title ").concat(K).trim(),style:w,onClick:function(){M(!$)},children:k?x.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[U,x.jsx("span",{onClick:function(ae){return ae.stopPropagation()},children:k})]}):U}),x.jsx("div",{style:{display:o&&$?"none":void 0},children:ie})]})}))});jbe.displayName="ProForm-Group";function Aee(e){return e instanceof HTMLElement||e instanceof SVGElement}function vTt(e){return e&&Kt(e)==="object"&&Aee(e.nativeElement)?e.nativeElement:Aee(e)?e:null}function qT(e){var t=vTt(e);if(t)return t;if(e instanceof te.Component){var n;return(n=ag.findDOMNode)===null||n===void 0?void 0:n.call(ag,e)}return null}var UN=d.createContext(null);function yTt(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),i=d.useRef([]),a=d.useContext(UN),o=d.useCallback(function(s,l,c){r.current+=1;var u=r.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(i.current),i.current=[])}),a==null||a(s,l,c)},[n,a]);return d.createElement(UN.Provider,{value:o},t)}var Wp=new Map;function bTt(e){e.forEach(function(t){var n,r=t.target;(n=Wp.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var Nbe=new Rde(bTt);function wTt(e,t){Wp.has(e)||(Wp.set(e,new Set),Nbe.observe(e)),Wp.get(e).add(t)}function xTt(e,t){Wp.has(e)&&(Wp.get(e).delete(t),Wp.get(e).size||(Nbe.unobserve(e),Wp.delete(e)))}var STt=function(e){$o(n,e);var t=rs(n);function n(){return Ar(this,n),t.apply(this,arguments)}return Dr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function CTt(e,t){var n=e.children,r=e.disabled,i=d.useRef(null),a=d.useRef(null),o=d.useContext(UN),s=typeof n=="function",l=s?n(i):n,c=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&d.isValidElement(l)&&Lft(l),f=u?l.ref:null,p=Fft(f,i),h=function(){var y;return qT(i.current)||(i.current&&Kt(i.current)==="object"?qT((y=i.current)===null||y===void 0?void 0:y.nativeElement):null)||qT(a.current)};d.useImperativeHandle(t,function(){return h()});var m=d.useRef(e);m.current=e;var g=d.useCallback(function(v){var y=m.current,w=y.onResize,b=y.data,C=v.getBoundingClientRect(),k=C.width,S=C.height,_=v.offsetWidth,E=v.offsetHeight,$=Math.floor(k),M=Math.floor(S);if(c.current.width!==$||c.current.height!==M||c.current.offsetWidth!==_||c.current.offsetHeight!==E){var P={width:$,height:M,offsetWidth:_,offsetHeight:E};c.current=P;var R=_===Math.round(k)?k:_,O=E===Math.round(S)?S:E,j=q(q({},P),{},{offsetWidth:R,offsetHeight:O});o==null||o(j,v,b),w&&Promise.resolve().then(function(){w(j,v)})}},[]);return d.useEffect(function(){var v=h();return v&&!r&&wTt(v,g),function(){return xTt(v,g)}},[i.current,r]),d.createElement(STt,{ref:a},u?d.cloneElement(l,{ref:p}):l)}var _Tt=d.forwardRef(CTt),kTt="rc-observer-key";function ETt(e,t){var n=e.children,r=typeof n=="function"?[n]:HN(n);return r.map(function(i,a){var o=(i==null?void 0:i.key)||"".concat(kTt,"-").concat(a);return d.createElement(_Tt,tt({},e,{key:o,ref:a===0?t:void 0}),i)})}var Abe=d.forwardRef(ETt);Abe.Collection=yTt;var $Tt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],MTt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],TTt=function(t,n){var r=t.fieldProps,i=t.children,a=t.params,o=t.proFieldProps,s=t.mode,l=t.valueEnum,c=t.request,u=t.showSearch,f=t.options,p=Ht(t,$Tt),h=d.useContext(s1);return x.jsx(Sc,q(q({valueEnum:z0(l),request:c,params:a,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:q({options:f,mode:s,showSearch:u,getPopupContainer:h.getPopupContainer},r),ref:n,proFieldProps:o},p),{},{children:i}))},PTt=te.forwardRef(function(e,t){var n=e.fieldProps,r=e.children,i=e.params,a=e.proFieldProps,o=e.mode,s=e.valueEnum,l=e.request,c=e.options,u=Ht(e,MTt),f=q({options:c,mode:o||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),p=d.useContext(s1);return x.jsx(Sc,q(q({valueEnum:z0(s),request:l,params:i,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:q({getPopupContainer:p.getPopupContainer},f),ref:t,proFieldProps:a},u),{},{children:r}))}),OTt=te.forwardRef(TTt),RTt=PTt,ro=OTt;ro.SearchSelect=RTt;ro.displayName="ProFormComponent";var ITt=function(t){var n=sa(),r=Zi.useFormInstance();if(t.render===!1)return null;var i=t.onSubmit,a=t.render,o=t.onReset,s=t.searchConfig,l=s===void 0?{}:s,c=t.submitButtonProps,u=t.resetButtonProps,f=wd.useToken(),p=f.token,h=function(){r.submit(),i==null||i()},m=function(){r.resetFields(),o==null||o()},g=l.submitText,v=g===void 0?n.getMessage("tableForm.submit","提交"):g,y=l.resetText,w=y===void 0?n.getMessage("tableForm.reset","重置"):y,b=[];u!==!1&&b.push(d.createElement(Yt,q(q({},Fl(u,["preventDefault"])),{},{key:"rest",onClick:function(S){var _;u!=null&&u.preventDefault||m(),u==null||(_=u.onClick)===null||_===void 0||_.call(u,S)}}),w)),c!==!1&&b.push(d.createElement(Yt,q(q({type:"primary"},Fl(c||{},["preventDefault"])),{},{key:"submit",onClick:function(S){var _;c!=null&&c.preventDefault||h(),c==null||(_=c.onClick)===null||_===void 0||_.call(c,S)}}),v));var C=a?a(q(q({},t),{},{form:r,submit:h,reset:m}),b):b;return C?Array.isArray(C)?(C==null?void 0:C.length)<1?null:(C==null?void 0:C.length)===1?C[0]:x.jsx("div",{style:{display:"flex",gap:p.marginXS,alignItems:"center"},children:C}):C:null},jTt=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],WN=te.forwardRef(function(e,t){var n=e.fieldProps,r=e.unCheckedChildren,i=e.checkedChildren,a=e.proFieldProps,o=Ht(e,jTt);return x.jsx(Sc,q({valueType:"switch",fieldProps:q({unCheckedChildren:r,checkedChildren:i},n),ref:t,valuePropName:"checked",proFieldProps:a,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},o))}),NTt=["fieldProps","proFieldProps"],ATt=["fieldProps","proFieldProps"],e5="text",DTt=function(t){var n=t.fieldProps,r=t.proFieldProps,i=Ht(t,NTt);return x.jsx(Sc,q({valueType:e5,fieldProps:n,filedConfig:{valueType:e5},proFieldProps:r},i))},FTt=function(t){var n=jn(t.open||!1,{value:t.open,onChange:t.onOpenChange}),r=Te(n,2),i=r[0],a=r[1];return x.jsx(Zi.Item,{shouldUpdate:!0,noStyle:!0,children:function(s){var l,c=s.getFieldValue(t.name||[]);return x.jsx(wc,q(q({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:function(f){return a(f)},content:x.jsxs("div",{style:{padding:"4px 0"},children:[(l=t.statusRender)===null||l===void 0?void 0:l.call(t,c),t.strengthText?x.jsx("div",{style:{marginTop:10},children:x.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:i,children:t.children}))}})},LTt=function(t){var n=t.fieldProps,r=t.proFieldProps,i=Ht(t,ATt),a=d.useState(!1),o=Te(a,2),s=o[0],l=o[1];return n!=null&&n.statusRender&&i.name?x.jsx(FTt,{name:i.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:s,onOpenChange:l,children:x.jsx("div",{children:x.jsx(Sc,q({valueType:"password",fieldProps:q(q({},Fl(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(u){var f;n==null||(f=n.onBlur)===null||f===void 0||f.call(n,u),l(!1)},onClick:function(u){var f;n==null||(f=n.onClick)===null||f===void 0||f.call(n,u),l(!0)}}),proFieldProps:r,filedConfig:{valueType:e5}},i))})}):x.jsx(Sc,q({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:e5}},i))},Or=DTt;Or.Password=LTt;Or.displayName="ProFormComponent";var BTt=["fieldProps","proFieldProps"],zTt=function(t,n){var r=t.fieldProps,i=t.proFieldProps,a=Ht(t,BTt);return x.jsx(Sc,q({ref:n,valueType:"textarea",fieldProps:r,proFieldProps:i},a))};const Cd=te.forwardRef(zTt);var HTt=["fieldProps","request","params","proFieldProps"],UTt=function(t,n){var r=t.fieldProps,i=t.request,a=t.params,o=t.proFieldProps,s=Ht(t,HTt);return x.jsx(Sc,q({valueType:"treeSelect",fieldProps:r,ref:n,request:i,params:a,filedConfig:{customLightMode:!0},proFieldProps:o},s))},WTt=te.forwardRef(UTt),VTt=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],qTt=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],m_=function(t,n,r){return t===!0?n:z0(t,n,r)},Dee=function(t){return!t||Array.isArray(t)?t:[t]};function KTt(e){var t,n=e.children,r=e.contentRender,i=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var a=e.transformKey,o=e.formRef,s=e.onInit,l=e.form,c=e.loading;e.formComponentType;var u=e.extraUrlParams,f=u===void 0?{}:u,p=e.syncToUrl,h=e.onUrlSearchChange,m=e.onReset,g=e.omitNil,v=g===void 0?!0:g;e.isKeyPressSubmit;var y=e.autoFocusFirstInput,w=y===void 0?!0:y,b=e.grid,C=e.rowProps,k=e.colProps,S=Ht(e,VTt),_=Zi.useFormInstance(),E=(zn==null||(t=zn.useConfig)===null||t===void 0?void 0:t.call(zn))||{componentSize:"middle"},$=E.componentSize,M=d.useRef(l||_),P=Lz({grid:b,rowProps:C}),R=P.RowWrapper,O=du(function(){return _}),j=d.useMemo(function(){return{getFieldsFormatValue:function(V){var B;return a((B=O())===null||B===void 0?void 0:B.getFieldsValue(V),v)},getFieldFormatValue:function(){var V,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],U=Dee(B);if(!U)throw new Error("nameList is require");var Y=(V=O())===null||V===void 0?void 0:V.getFieldValue(U),ee=U?B0({},U,Y):Y;return Tm(a(ee,v,U),U)},getFieldFormatValueObject:function(V){var B,U=Dee(V),Y=(B=O())===null||B===void 0?void 0:B.getFieldValue(U),ee=U?B0({},U,Y):Y;return a(ee,v,U)},validateFieldsReturnFormatValue:function(){var L=pa(hr().mark(function B(U){var Y,ee,ie;return hr().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(!(!Array.isArray(U)&&U)){X.next=2;break}throw new Error("nameList must be array");case 2:return X.next=4,(Y=O())===null||Y===void 0?void 0:Y.validateFields(U);case 4:return ee=X.sent,ie=a(ee,v),X.abrupt("return",ie||{});case 7:case"end":return X.stop()}},B)}));function V(B){return L.apply(this,arguments)}return V}()}},[v,a]),I=d.useMemo(function(){return te.Children.toArray(n).map(function(L,V){return V===0&&te.isValidElement(L)&&w?te.cloneElement(L,q(q({},L.props),{},{autoFocus:w})):L})},[w,n]),A=d.useMemo(function(){return typeof i=="boolean"||!i?{}:i},[i]),N=d.useMemo(function(){if(i!==!1)return x.jsx(ITt,q(q({},A),{},{onReset:function(){var V,B,U=a((V=M.current)===null||V===void 0?void 0:V.getFieldsValue(),v);if(A==null||(B=A.onReset)===null||B===void 0||B.call(A,U),m==null||m(U),p){var Y,ee=Object.keys(a((Y=M.current)===null||Y===void 0?void 0:Y.getFieldsValue(),!1)).reduce(function(ie,Z){return q(q({},ie),{},ne({},Z,U[Z]||void 0))},f);h(m_(p,ee||{},"set"))}},submitButtonProps:q({loading:c},A.submitButtonProps)}),"submitter")},[i,A,c,a,v,m,p,f,h]),F=d.useMemo(function(){var L=b?x.jsx(R,{children:I}):I;return r?r(L,N,M.current):L},[b,R,I,r,N]),K=Xht(e.initialValues);return d.useEffect(function(){if(!(p||!e.initialValues||!K||S.request)){var L=Xm(e.initialValues,K);zk(L,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ? : null "),zk(L,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),d.useImperativeHandle(o,function(){return q(q({},M.current),j)},[j,M.current]),d.useEffect(function(){var L,V,B=a((L=M.current)===null||L===void 0||(V=L.getFieldsValue)===null||V===void 0?void 0:V.call(L,!0),v);s==null||s(B,q(q({},M.current),j))},[]),x.jsx(L0e.Provider,{value:q(q({},j),{},{formRef:M}),children:x.jsx(zn,{componentSize:S.size||$,children:x.jsxs(hye.Provider,{value:{grid:b,colProps:k},children:[S.component!==!1&&x.jsx("input",{type:"text",style:{display:"none"}}),F]})})})}var Fee=0;function GTt(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,i=e.isKeyPressSubmit,a=e.syncToUrlAsImportant,o=a===void 0?!1:a,s=e.syncToInitialValues,l=s===void 0?!0:s;e.children,e.contentRender,e.submitter;var c=e.fieldProps,u=e.proFieldProps,f=e.formItemProps,p=e.groupProps,h=e.dateFormatter,m=h===void 0?"string":h,g=e.formRef;e.onInit;var v=e.form,y=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var w=e.omitNil,b=w===void 0?!0:w,C=e.request,k=e.params,S=e.initialValues,_=e.formKey,E=_===void 0?Fee:_;e.readonly;var $=e.onLoadingChange,M=e.loading,P=Ht(e,qTt),R=d.useRef({}),O=jn(!1,{onChange:$,value:M}),j=Te(O,2),I=j[0],A=j[1],N=T1t({},{disabled:!r}),F=Te(N,2),K=F[0],L=F[1],V=d.useRef(L6());d.useEffect(function(){Fee+=0},[]);var B=Yht({request:C,params:k,proFieldKey:E}),U=Te(B,1),Y=U[0],ee=d.useContext(zn.ConfigContext),ie=ee.getPrefixCls,Z=ie("pro-form"),X=Ci("ProForm",function(Se){return ne({},".".concat(Z),ne({},"> div:not(".concat(Se.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),ae=X.wrapSSR,oe=X.hashId,le=d.useState(function(){return r?m_(r,K,"get"):{}}),ce=Te(le,2),pe=ce[0],me=ce[1],re=d.useRef({}),fe=d.useRef({}),ve=du(function(Se,we,se){return k1t(Bht(Se,m,fe.current,we,se),re.current,we)});d.useEffect(function(){l||me({})},[l]);var $e=du(function(){return q(q({},K),n)});d.useEffect(function(){r&&L(m_(r,$e(),"set"))},[n,$e,r]);var Ce=d.useMemo(function(){if(!(typeof window>"u")&&y&&["DrawerForm"].includes(y))return function(Se){return Se.parentNode||document.body}},[y]),be=du(pa(hr().mark(function Se(){var we,se,ye,Oe,z,H,G;return hr().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(P.onFinish){xe.next=2;break}return xe.abrupt("return");case 2:if(!I){xe.next=4;break}return xe.abrupt("return");case 4:return xe.prev=4,ye=R==null||(we=R.current)===null||we===void 0||(se=we.getFieldsFormatValue)===null||se===void 0?void 0:se.call(we),Oe=P.onFinish(ye),Oe instanceof Promise&&A(!0),xe.next=10,Oe;case 10:r&&(G=Object.keys(R==null||(z=R.current)===null||z===void 0||(H=z.getFieldsFormatValue)===null||H===void 0?void 0:H.call(z,void 0,!1)).reduce(function(he,Ue){var We;return q(q({},he),{},ne({},Ue,(We=ye[Ue])!==null&&We!==void 0?We:void 0))},n),Object.keys(K).forEach(function(he){G[he]!==!1&&G[he]!==0&&!G[he]&&(G[he]=void 0)}),L(m_(r,G,"set"))),A(!1),xe.next=18;break;case 14:xe.prev=14,xe.t0=xe.catch(4),console.log(xe.t0),A(!1);case 18:case"end":return xe.stop()}},Se,null,[[4,14]])})));return d.useImperativeHandle(g,function(){return R.current},[!Y]),!Y&&e.request?x.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:x.jsx(Zo,{})}):ae(x.jsx(uH.Provider,{value:{mode:e.readonly?"read":"edit"},children:x.jsx(c$,{needDeps:!0,children:x.jsx(s1.Provider,{value:{formRef:R,fieldProps:c,proFieldProps:u,formItemProps:f,groupProps:p,formComponentType:y,getPopupContainer:Ce,formKey:V.current,setFieldValueType:function(we,se){var ye=se.valueType,Oe=ye===void 0?"text":ye,z=se.dateFormat,H=se.transform;Array.isArray(we)&&(re.current=B0(re.current,we,H),fe.current=B0(fe.current,we,{valueType:Oe,dateFormat:z}))}},children:x.jsx(fH.Provider,{value:{},children:x.jsx(Zi,q(q({onKeyPress:function(we){if(i&&we.key==="Enter"){var se;(se=R.current)===null||se===void 0||se.submit()}},autoComplete:"off",form:v},Fl(P,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(we){R.current&&(R.current.nativeElement=we==null?void 0:we.nativeElement)},initialValues:o?q(q(q({},S),Y),pe):q(q(q({},pe),S),Y),onValuesChange:function(we,se){var ye;P==null||(ye=P.onValuesChange)===null||ye===void 0||ye.call(P,ve(we,!!b),ve(se,!!b))},className:Ee(e.className,Z,oe),onFinish:be,children:x.jsx(KTt,q(q({transformKey:ve,autoComplete:"off",loading:I,onUrlSearchChange:L},e),{},{formRef:R,initialValues:q(q({},S),Y)}))}))})})})}))}var YTt=function(t){return ne(ne({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),ne({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function XTt(e){return Ci("LightWrapper",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[YTt(n)]})}var ZTt=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],QTt=function(t){var n=t.label,r=t.size,i=t.disabled,a=t.onChange,o=t.className,s=t.style,l=t.children,c=t.valuePropName,u=t.placeholder,f=t.labelFormatter,p=t.bordered,h=t.footerRender,m=t.allowClear,g=t.otherFieldProps,v=t.valueType,y=t.placement,w=Ht(t,ZTt),b=d.useContext(zn.ConfigContext),C=b.getPrefixCls,k=C("pro-field-light-wrapper"),S=XTt(k),_=S.wrapSSR,E=S.hashId,$=d.useState(t[c]),M=Te($,2),P=M[0],R=M[1],O=jn(!1),j=Te(O,2),I=j[0],A=j[1],N=function(){for(var V,B=arguments.length,U=new Array(B),Y=0;Yn.length)&&(r=n.length);for(var i=0,a=Array(r);i0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):uPt}function O$(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function dPt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function gH(e){return Array.from((t5.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function vH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,lPt.default)())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=dPt(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(zee,o),s&&a&&l.setAttribute(Hee,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=O$(t),u=c.firstChild;if(r){if(s){var f=(t.styles||gH(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(zee)))return!1;var h=Number(p.getAttribute(Hee)||0);return a>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function e2e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=O$(t);return(t.styles||gH(n)).find(function(r){return r.getAttribute(Jbe(t))===e})}function fPt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e2e(e,t);if(n){var r=O$(t);r.removeChild(n)}}function pPt(e,t){var n=t5.get(e);if(!n||!(0,cPt.default)(document,n)){var r=vH("",t),i=r.parentNode;t5.set(e,i),e.removeChild(r)}}function hPt(){t5.clear()}function mPt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=O$(n),i=gH(r),a=(0,Bee.default)((0,Bee.default)({},n),{},{styles:i});pPt(r,a);var o=e2e(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=vH(e,a);return u.setAttribute(Jbe(a),t),u}var R$={};Object.defineProperty(R$,"__esModule",{value:!0});R$.getShadowRoot=gPt;R$.inShadow=n2e;function t2e(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function n2e(e){return t2e(e)instanceof ShadowRoot}function gPt(e){return n2e(e)?t2e(e):null}var Ys={};Object.defineProperty(Ys,"__esModule",{value:!0});Ys.call=yH;Ys.default=void 0;Ys.note=i2e;Ys.noteOnce=o2e;Ys.preMessage=void 0;Ys.resetWarned=a2e;Ys.warning=r2e;Ys.warningOnce=rx;var VN={},vPt=Ys.preMessage=function(t){};function r2e(e,t){}function i2e(e,t){}function a2e(){VN={}}function yH(e,t,n){!t&&!VN[n]&&(e(!1,n),VN[n]=!0)}function rx(e,t){yH(r2e,e,t)}function o2e(e,t){yH(i2e,e,t)}rx.preMessage=vPt;rx.resetWarned=a2e;rx.noteOnce=o2e;Ys.default=rx;var yPt=$a.default,I$=br.default;Object.defineProperty(Qo,"__esModule",{value:!0});Qo.generate=KN;Qo.getSecondaryColor=$Pt;Qo.iconStyles=void 0;Qo.isIconDefinition=EPt;Qo.normalizeAttrs=qN;Qo.normalizeTwoToneColors=MPt;Qo.useInsertStyles=Qo.svgBaseProps=void 0;Qo.warning=kPt;var KT=I$(Ag),Uee=I$(Ng),bPt=tx,wPt=u1,xPt=R$,SPt=I$(Ys),n5=yPt(d),CPt=I$(Qy);function _Pt(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function kPt(e,t){(0,SPt.default)(e,"[@ant-design/icons] ".concat(t))}function EPt(e){return(0,Uee.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,Uee.default)(e.icon)==="object"||typeof e.icon=="function")}function qN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[_Pt(n)]=r}return t},{})}function KN(e,t,n){return n?n5.default.createElement(e.tag,(0,KT.default)((0,KT.default)({key:t},qN(e.attrs)),n),(e.children||[]).map(function(r,i){return KN(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):n5.default.createElement(e.tag,(0,KT.default)({key:t},qN(e.attrs)),(e.children||[]).map(function(r,i){return KN(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function $Pt(e){return(0,bPt.generate)(e)[0]}function MPt(e){return e?Array.isArray(e)?e:[e]:[]}Qo.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var TPt=Qo.iconStyles=` .anticon { display: inline-flex; align-items: center; @@ -601,16 +601,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`;Jo.useInsertStyles=function(t){var n=(0,t5.useContext)(vPt.default),r=n.csp,i=n.prefixCls,a=n.layer,o=CPt;i&&(o=o.replace(/anticon/g,i)),a&&(o="@layer ".concat(a,` { +`;Qo.useInsertStyles=function(t){var n=(0,n5.useContext)(CPt.default),r=n.csp,i=n.prefixCls,a=n.layer,o=TPt;i&&(o=o.replace(/anticon/g,i)),a&&(o="@layer ".concat(a,` { `).concat(o,` -}`)),(0,t5.useEffect)(function(){var s=t.current,l=(0,mPt.getShadowRoot)(s);(0,hPt.updateCSS)(o,"@ant-design-icons",{prepend:!a,csp:r,attachTo:l})},[])};var n2e=br.default,_Pt=Ta.default;Object.defineProperty(ex,"__esModule",{value:!0});ex.default=void 0;var kPt=n2e(Kbe),M2=n2e(Ng),EPt=_Pt(d),nm=Jo,$Pt=["icon","className","onClick","style","primaryColor","secondaryColor"],rw={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function MPt(e){var t=e.primaryColor,n=e.secondaryColor;rw.primaryColor=t,rw.secondaryColor=n||(0,nm.getSecondaryColor)(t),rw.calculated=!!n}function TPt(){return(0,M2.default)({},rw)}var O$=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,l=(0,kPt.default)(t,$Pt),c=EPt.useRef(),u=rw;if(o&&(u={primaryColor:o,secondaryColor:s||(0,nm.getSecondaryColor)(o)}),(0,nm.useInsertStyles)(c),(0,nm.warning)((0,nm.isIconDefinition)(n),"icon should be icon definiton, but got ".concat(n)),!(0,nm.isIconDefinition)(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=(0,M2.default)((0,M2.default)({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),(0,nm.generate)(f.icon,"svg-".concat(f.name),(0,M2.default)((0,M2.default)({className:r,onClick:i,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};O$.displayName="IconReact";O$.getTwoToneColors=TPt;O$.setTwoToneColors=MPt;ex.default=O$;var I$={},r2e=br.default;Object.defineProperty(I$,"__esModule",{value:!0});I$.getTwoToneColor=RPt;I$.setTwoToneColor=IPt;var PPt=r2e(Wbe),i2e=r2e(ex),OPt=Jo;function IPt(e){var t=(0,OPt.normalizeTwoToneColors)(e),n=(0,PPt.default)(t,2),r=n[0],i=n[1];return i2e.default.setTwoToneColors({primaryColor:r,secondaryColor:i})}function RPt(){var e=i2e.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var u1=br.default,jPt=Ta.default;Object.defineProperty(Xy,"__esModule",{value:!0});Xy.default=void 0;var NPt=u1(E$),APt=u1(Wbe),zee=u1(Use),DPt=u1(Kbe),WS=jPt(d),FPt=u1(ME),LPt=J4,BPt=u1(Zy),zPt=u1(ex),vH=I$,HPt=Jo,UPt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,vH.setTwoToneColor)(LPt.blue.primary);var R$=WS.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=(0,DPt.default)(e,UPt),u=WS.useContext(BPt.default),f=u.prefixCls,p=f===void 0?"anticon":f,h=u.rootClassName,m=(0,FPt.default)(h,p,(0,zee.default)((0,zee.default)({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!i||r.name==="loading"),n),g=o;g===void 0&&s&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=(0,HPt.normalizeTwoToneColors)(l),b=(0,APt.default)(y,2),w=b[0],_=b[1];return WS.createElement("span",(0,NPt.default)({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),WS.createElement(zPt.default,{icon:r,primaryColor:w,secondaryColor:_,style:v}))});R$.displayName="AntdIcon";R$.getTwoToneColor=vH.getTwoToneColor;R$.setTwoToneColor=vH.setTwoToneColor;Xy.default=R$;var WPt=["isLoading","pastDelay","timedOut","error","retry"],VPt=function(t){t.isLoading,t.pastDelay,t.timedOut,t.error,t.retry;var n=Ut(t,WPt);return x.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:x.jsx(Qo,q({size:"large"},n))})},qPt=function(t){return ne({},t.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:t.colorTextSecondary,"&-link":{color:t.colorTextSecondary,textDecoration:t.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:t.colorPrimary}},"&-copyright":{fontSize:"14px",color:t.colorText}})};function KPt(e){return _i("ProLayoutFooter",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[qPt(n)]})}var GPt=function(t){var n=t.className,r=t.prefixCls,i=t.links,a=t.copyright,o=t.style,s=d.useContext(zn.ConfigContext),l=s.getPrefixCls(r||"pro-global-footer"),c=KPt(l),u=c.wrapSSR,f=c.hashId;return(i==null||i===!1||Array.isArray(i)&&i.length===0)&&(a==null||a===!1)?null:u(x.jsxs("div",{className:Ee(l,f,n),style:o,children:[i&&x.jsx("div",{className:"".concat(l,"-list ").concat(f).trim(),children:i.map(function(p){return x.jsx("a",{className:"".concat(l,"-list-link ").concat(f).trim(),title:p.key,target:p.blankTarget?"_blank":"_self",href:p.href,rel:"noreferrer",children:p.title},p.key)})}),a&&x.jsx("div",{className:"".concat(l,"-copyright ").concat(f).trim(),children:a})]}))},YPt=Qn.Footer,XPt=function(t){var n=t.links,r=t.copyright,i=t.style,a=t.className,o=t.prefixCls;return x.jsx(YPt,{className:a,style:q({padding:0},i),children:x.jsx(GPt,{links:n,prefixCls:o,copyright:r===!1?null:x.jsxs(d.Fragment,{children:[x.jsx(hrt,{})," ",r]})})})},Hee=function e(t){return(t||[]).reduce(function(n,r){if(r.key&&n.push(r.key),r.children||r.routes){var i=n.concat(e(r.children||r.routes)||[]);return i}return n},[])};function j$(e){return e.map(function(t){var n=t.children||[],r=q({},t);if(!r.children&&r.routes&&(r.children=r.routes),!r.name||r.hideInMenu)return null;if(r&&r!==null&&r!==void 0&&r.children){if(!r.hideChildrenInMenu&&n.some(function(i){return i&&i.name&&!i.hideInMenu}))return q(q({},t),{},{children:j$(n)});delete r.children}return delete r.routes,r}).filter(function(t){return t})}var ZPt=function(){return x.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:x.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},QPt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,a=t.itemClick;return x.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:x.jsx("ul",{className:"".concat(r,"-content-list ").concat(i).trim(),children:n==null?void 0:n.map(function(o,s){var l;return o!=null&&(l=o.children)!==null&&l!==void 0&&l.length?x.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[x.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:o.title}),x.jsx(e,{hashId:i,itemClick:a,appList:o==null?void 0:o.children,baseClassName:r})]},s):x.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),a==null||a(o)},children:x.jsxs("a",{href:a?void 0:o.url,target:o.target,rel:"noreferrer",children:[yH(o.icon),x.jsxs("div",{children:[x.jsx("div",{children:o.title}),o.desc?x.jsx("span",{children:o.desc}):null]})]})},s)})})})},JPt=function(t,n){if(t&&typeof t=="string"&&Tz(t))return x.jsx("img",{src:t,alt:"logo"});if(typeof t=="function")return t();if(t&&typeof t=="string")return x.jsx("div",{id:"avatarLogo",children:t});if(!t&&n&&typeof n=="string"){var r=n.substring(0,1);return x.jsx("div",{id:"avatarLogo",children:r})}return t},eOt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,a=t.itemClick;return x.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:x.jsx("ul",{className:"".concat(r,"-content-list ").concat(i).trim(),children:n==null?void 0:n.map(function(o,s){var l;return o!=null&&(l=o.children)!==null&&l!==void 0&&l.length?x.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[x.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:o.title}),x.jsx(e,{hashId:i,itemClick:a,appList:o==null?void 0:o.children,baseClassName:r})]},s):x.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),a==null||a(o)},children:x.jsxs("a",{href:a?"javascript:;":o.url,target:o.target,rel:"noreferrer",children:[JPt(o.icon,o.title),x.jsx("div",{children:x.jsx("div",{children:o.title})})]})},s)})})})},tOt=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},"* div":OT==null?void 0:OT(t),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},nOt=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:t.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:t.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},rOt=function(t){var n,r,i,a,o;return ne({},t.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=t.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:t.borderRadius,"&:hover":{color:(r=t.layout)===null||r===void 0?void 0:r.colorTextAppListIconHover,backgroundColor:(i=t.layout)===null||i===void 0?void 0:i.colorBgAppListIconHover},"&-active":{color:(a=t.layout)===null||a===void 0?void 0:a.colorTextAppListIconHover,backgroundColor:(o=t.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":ne({},"".concat(t.antCls,"-popover-arrow"),{display:"none"}),"&-simple":nOt(t),"&-default":tOt(t)})};function iOt(e){return _i("AppsLogoComponents",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[rOt(n)]})}var yH=function(t){return typeof t=="string"?x.jsx("img",{width:"auto",height:22,src:t,alt:"logo"}):typeof t=="function"?t():t},bH=function(t){var n,r=t.appList,i=t.appListRender,a=t.prefixCls,o=a===void 0?"ant-pro":a,s=t.onItemClick,l=te.useRef(null),c=te.useRef(null),u="".concat(o,"-layout-apps"),f=iOt(u),p=f.wrapSSR,h=f.hashId,m=d.useState(!1),g=Te(m,2),v=g[0],y=g[1],b=function(C){s==null||s(C,c)},w=d.useMemo(function(){var S=r==null?void 0:r.some(function(C){return!(C!=null&&C.desc)});return S?x.jsx(eOt,{hashId:h,appList:r,itemClick:s?b:void 0,baseClassName:"".concat(u,"-simple")}):x.jsx(QPt,{hashId:h,appList:r,itemClick:s?b:void 0,baseClassName:"".concat(u,"-default")})},[r,u,h]);if(!(t!=null&&(n=t.appList)!==null&&n!==void 0&&n.length))return null;var _=i?i(t==null?void 0:t.appList,w):w,k=s$(void 0,function(S){return y(S)});return p(x.jsxs(x.Fragment,{children:[x.jsx("div",{ref:l,onClick:function(C){C.stopPropagation(),C.preventDefault()}}),x.jsx(yc,q(q({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},k),{},{overlayClassName:"".concat(u,"-popover ").concat(h).trim(),content:_,getPopupContainer:function(){return l.current||document.body},children:x.jsx("span",{ref:c,onClick:function(C){C.stopPropagation()},className:Ee("".concat(u,"-icon"),h,ne({},"".concat(u,"-icon-active"),v)),children:x.jsx(ZPt,{})})}))]}))};function aOt(){return x.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:x.jsx("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var oOt=function(t){var n,r,i;return ne({},t.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function sOt(e){return _i("SiderMenuCollapsedIcon",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[oOt(n)]})}var lOt=["isMobile","collapsed"],cOt=function(t){var n=t.isMobile,r=t.collapsed,i=Ut(t,lOt),a=sOt(t.className),o=a.wrapSSR,s=a.hashId;return n&&r?null:o(x.jsx("div",q(q({},i),{},{className:Ee(t.className,s,ne(ne({},"".concat(t.className,"-collapsed"),r),"".concat(t.className,"-is-mobile"),n)),children:x.jsx(aOt,{})})))},a2e={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},uOt=function(t,n){var r,i,a=n.includes("horizontal")?(r=t.layout)===null||r===void 0?void 0:r.header:(i=t.layout)===null||i===void 0?void 0:i.sider;return q(q(ne({},"".concat(t.componentCls),ne(ne(ne(ne(ne(ne(ne(ne(ne({background:"transparent",color:a==null?void 0:a.colorTextMenu,border:"none"},"".concat(t.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(t.componentCls,"-submenu-has-icon"),ne({},"> ".concat(t.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(t.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(t.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(t.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",ne(ne(ne({},"".concat(t.antCls,`-menu-item, +}`)),(0,n5.useEffect)(function(){var s=t.current,l=(0,xPt.getShadowRoot)(s);(0,wPt.updateCSS)(o,"@ant-design-icons",{prepend:!a,csp:r,attachTo:l})},[])};var s2e=br.default,PPt=$a.default;Object.defineProperty(nx,"__esModule",{value:!0});nx.default=void 0;var OPt=s2e(Qbe),T2=s2e(Ag),RPt=PPt(d),im=Qo,IPt=["icon","className","onClick","style","primaryColor","secondaryColor"],rw={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function jPt(e){var t=e.primaryColor,n=e.secondaryColor;rw.primaryColor=t,rw.secondaryColor=n||(0,im.getSecondaryColor)(t),rw.calculated=!!n}function NPt(){return(0,T2.default)({},rw)}var j$=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,l=(0,OPt.default)(t,IPt),c=RPt.useRef(),u=rw;if(o&&(u={primaryColor:o,secondaryColor:s||(0,im.getSecondaryColor)(o)}),(0,im.useInsertStyles)(c),(0,im.warning)((0,im.isIconDefinition)(n),"icon should be icon definiton, but got ".concat(n)),!(0,im.isIconDefinition)(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=(0,T2.default)((0,T2.default)({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),(0,im.generate)(f.icon,"svg-".concat(f.name),(0,T2.default)((0,T2.default)({className:r,onClick:i,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};j$.displayName="IconReact";j$.getTwoToneColors=NPt;j$.setTwoToneColors=jPt;nx.default=j$;var N$={},l2e=br.default;Object.defineProperty(N$,"__esModule",{value:!0});N$.getTwoToneColor=LPt;N$.setTwoToneColor=FPt;var APt=l2e(Ybe),c2e=l2e(nx),DPt=Qo;function FPt(e){var t=(0,DPt.normalizeTwoToneColors)(e),n=(0,APt.default)(t,2),r=n[0],i=n[1];return c2e.default.setTwoToneColors({primaryColor:r,secondaryColor:i})}function LPt(){var e=c2e.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var d1=br.default,BPt=$a.default;Object.defineProperty(Zy,"__esModule",{value:!0});Zy.default=void 0;var zPt=d1(T$),HPt=d1(Ybe),Wee=d1(Kse),UPt=d1(Qbe),qS=BPt(d),WPt=d1(TE),VPt=tx,qPt=d1(Qy),KPt=d1(nx),bH=N$,GPt=Qo,YPt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,bH.setTwoToneColor)(VPt.blue.primary);var A$=qS.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=(0,UPt.default)(e,YPt),u=qS.useContext(qPt.default),f=u.prefixCls,p=f===void 0?"anticon":f,h=u.rootClassName,m=(0,WPt.default)(h,p,(0,Wee.default)((0,Wee.default)({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!i||r.name==="loading"),n),g=o;g===void 0&&s&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=(0,GPt.normalizeTwoToneColors)(l),w=(0,HPt.default)(y,2),b=w[0],C=w[1];return qS.createElement("span",(0,zPt.default)({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),qS.createElement(KPt.default,{icon:r,primaryColor:b,secondaryColor:C,style:v}))});A$.displayName="AntdIcon";A$.getTwoToneColor=bH.getTwoToneColor;A$.setTwoToneColor=bH.setTwoToneColor;Zy.default=A$;var XPt=["isLoading","pastDelay","timedOut","error","retry"],ZPt=function(t){t.isLoading,t.pastDelay,t.timedOut,t.error,t.retry;var n=Ht(t,XPt);return x.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:x.jsx(Zo,q({size:"large"},n))})},QPt=function(t){return ne({},t.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:t.colorTextSecondary,"&-link":{color:t.colorTextSecondary,textDecoration:t.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:t.colorPrimary}},"&-copyright":{fontSize:"14px",color:t.colorText}})};function JPt(e){return Ci("ProLayoutFooter",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[QPt(n)]})}var eOt=function(t){var n=t.className,r=t.prefixCls,i=t.links,a=t.copyright,o=t.style,s=d.useContext(zn.ConfigContext),l=s.getPrefixCls(r||"pro-global-footer"),c=JPt(l),u=c.wrapSSR,f=c.hashId;return(i==null||i===!1||Array.isArray(i)&&i.length===0)&&(a==null||a===!1)?null:u(x.jsxs("div",{className:Ee(l,f,n),style:o,children:[i&&x.jsx("div",{className:"".concat(l,"-list ").concat(f).trim(),children:i.map(function(p){return x.jsx("a",{className:"".concat(l,"-list-link ").concat(f).trim(),title:p.key,target:p.blankTarget?"_blank":"_self",href:p.href,rel:"noreferrer",children:p.title},p.key)})}),a&&x.jsx("div",{className:"".concat(l,"-copyright ").concat(f).trim(),children:a})]}))},tOt=Qn.Footer,nOt=function(t){var n=t.links,r=t.copyright,i=t.style,a=t.className,o=t.prefixCls;return x.jsx(tOt,{className:a,style:q({padding:0},i),children:x.jsx(eOt,{links:n,prefixCls:o,copyright:r===!1?null:x.jsxs(d.Fragment,{children:[x.jsx(grt,{})," ",r]})})})},Vee=function e(t){return(t||[]).reduce(function(n,r){if(r.key&&n.push(r.key),r.children||r.routes){var i=n.concat(e(r.children||r.routes)||[]);return i}return n},[])};function D$(e){return e.map(function(t){var n=t.children||[],r=q({},t);if(!r.children&&r.routes&&(r.children=r.routes),!r.name||r.hideInMenu)return null;if(r&&r!==null&&r!==void 0&&r.children){if(!r.hideChildrenInMenu&&n.some(function(i){return i&&i.name&&!i.hideInMenu}))return q(q({},t),{},{children:D$(n)});delete r.children}return delete r.routes,r}).filter(function(t){return t})}var rOt=function(){return x.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:x.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},iOt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,a=t.itemClick;return x.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:x.jsx("ul",{className:"".concat(r,"-content-list ").concat(i).trim(),children:n==null?void 0:n.map(function(o,s){var l;return o!=null&&(l=o.children)!==null&&l!==void 0&&l.length?x.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[x.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:o.title}),x.jsx(e,{hashId:i,itemClick:a,appList:o==null?void 0:o.children,baseClassName:r})]},s):x.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),a==null||a(o)},children:x.jsxs("a",{href:a?void 0:o.url,target:o.target,rel:"noreferrer",children:[wH(o.icon),x.jsxs("div",{children:[x.jsx("div",{children:o.title}),o.desc?x.jsx("span",{children:o.desc}):null]})]})},s)})})})},aOt=function(t,n){if(t&&typeof t=="string"&&Oz(t))return x.jsx("img",{src:t,alt:"logo"});if(typeof t=="function")return t();if(t&&typeof t=="string")return x.jsx("div",{id:"avatarLogo",children:t});if(!t&&n&&typeof n=="string"){var r=n.substring(0,1);return x.jsx("div",{id:"avatarLogo",children:r})}return t},oOt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,a=t.itemClick;return x.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:x.jsx("ul",{className:"".concat(r,"-content-list ").concat(i).trim(),children:n==null?void 0:n.map(function(o,s){var l;return o!=null&&(l=o.children)!==null&&l!==void 0&&l.length?x.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[x.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:o.title}),x.jsx(e,{hashId:i,itemClick:a,appList:o==null?void 0:o.children,baseClassName:r})]},s):x.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),a==null||a(o)},children:x.jsxs("a",{href:a?"javascript:;":o.url,target:o.target,rel:"noreferrer",children:[aOt(o.icon,o.title),x.jsx("div",{children:x.jsx("div",{children:o.title})})]})},s)})})})},sOt=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},"* div":jT==null?void 0:jT(t),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},lOt=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:t.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:t.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},cOt=function(t){var n,r,i,a,o;return ne({},t.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=t.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:t.borderRadius,"&:hover":{color:(r=t.layout)===null||r===void 0?void 0:r.colorTextAppListIconHover,backgroundColor:(i=t.layout)===null||i===void 0?void 0:i.colorBgAppListIconHover},"&-active":{color:(a=t.layout)===null||a===void 0?void 0:a.colorTextAppListIconHover,backgroundColor:(o=t.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":ne({},"".concat(t.antCls,"-popover-arrow"),{display:"none"}),"&-simple":lOt(t),"&-default":sOt(t)})};function uOt(e){return Ci("AppsLogoComponents",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[cOt(n)]})}var wH=function(t){return typeof t=="string"?x.jsx("img",{width:"auto",height:22,src:t,alt:"logo"}):typeof t=="function"?t():t},xH=function(t){var n,r=t.appList,i=t.appListRender,a=t.prefixCls,o=a===void 0?"ant-pro":a,s=t.onItemClick,l=te.useRef(null),c=te.useRef(null),u="".concat(o,"-layout-apps"),f=uOt(u),p=f.wrapSSR,h=f.hashId,m=d.useState(!1),g=Te(m,2),v=g[0],y=g[1],w=function(_){s==null||s(_,c)},b=d.useMemo(function(){var S=r==null?void 0:r.some(function(_){return!(_!=null&&_.desc)});return S?x.jsx(oOt,{hashId:h,appList:r,itemClick:s?w:void 0,baseClassName:"".concat(u,"-simple")}):x.jsx(iOt,{hashId:h,appList:r,itemClick:s?w:void 0,baseClassName:"".concat(u,"-default")})},[r,u,h]);if(!(t!=null&&(n=t.appList)!==null&&n!==void 0&&n.length))return null;var C=i?i(t==null?void 0:t.appList,b):b,k=u$(void 0,function(S){return y(S)});return p(x.jsxs(x.Fragment,{children:[x.jsx("div",{ref:l,onClick:function(_){_.stopPropagation(),_.preventDefault()}}),x.jsx(wc,q(q({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},k),{},{overlayClassName:"".concat(u,"-popover ").concat(h).trim(),content:C,getPopupContainer:function(){return l.current||document.body},children:x.jsx("span",{ref:c,onClick:function(_){_.stopPropagation()},className:Ee("".concat(u,"-icon"),h,ne({},"".concat(u,"-icon-active"),v)),children:x.jsx(rOt,{})})}))]}))};function dOt(){return x.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:x.jsx("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var fOt=function(t){var n,r,i;return ne({},t.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function pOt(e){return Ci("SiderMenuCollapsedIcon",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[fOt(n)]})}var hOt=["isMobile","collapsed"],mOt=function(t){var n=t.isMobile,r=t.collapsed,i=Ht(t,hOt),a=pOt(t.className),o=a.wrapSSR,s=a.hashId;return n&&r?null:o(x.jsx("div",q(q({},i),{},{className:Ee(t.className,s,ne(ne({},"".concat(t.className,"-collapsed"),r),"".concat(t.className,"-is-mobile"),n)),children:x.jsx(dOt,{})})))},u2e={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},gOt=function(t,n){var r,i,a=n.includes("horizontal")?(r=t.layout)===null||r===void 0?void 0:r.header:(i=t.layout)===null||i===void 0?void 0:i.sider;return q(q(ne({},"".concat(t.componentCls),ne(ne(ne(ne(ne(ne(ne(ne(ne({background:"transparent",color:a==null?void 0:a.colorTextMenu,border:"none"},"".concat(t.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(t.componentCls,"-submenu-has-icon"),ne({},"> ".concat(t.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(t.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(t.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(t.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",ne(ne(ne({},"".concat(t.antCls,`-menu-item, `).concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,`-menu-item, `).concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,"-menu-submenu > ").concat(t.antCls,`-menu-submenu-title, `).concat(t.antCls,"-menu-submenu > ").concat(t.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),"".concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,`-menu-submenu-title, - `).concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,"-menu-submenu-title"),{backgroundColor:a==null?void 0:a.colorBgMenuItemSelected,borderRadius:t.borderRadiusLG}),"".concat(t.componentCls,"-group"),ne({},"".concat(t.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",ne(ne(ne(ne(ne({display:"flex",flexDirection:"row",alignItems:"center",gap:t.marginXS},"".concat(t.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",ne(ne({minWidth:40,height:40},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(t.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(t.componentCls,"-group-item-title"),{gap:t.marginXS,height:18,overflow:"hidden"}),"&".concat(t.componentCls,"-item-collapsed-show-title"),ne({lineHeight:"16px",gap:0},"&".concat(t.componentCls,"-item-title-collapsed"),ne(ne({display:"flex"},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(t.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4})))),"&-group",ne({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:12,color:t.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:t.colorTextSecondary,fontSize:12,lineHeight:20})),n.includes("horizontal")?{}:ne({},"".concat(t.antCls,"-menu-submenu").concat(t.antCls,"-menu-submenu-popup"),ne({},"".concat(t.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},ne({},"".concat(t.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function dOt(e,t){return _i("ProLayoutBaseMenu"+t,function(n){var r=q(q({},n),{},{componentCls:".".concat(e)});return[uOt(r,t||"inline")]})}var Uee=function(t){var n=d.useState(t.collapsed),r=Te(n,2),i=r[0],a=r[1],o=d.useState(!1),s=Te(o,2),l=s[0],c=s[1];return d.useEffect(function(){c(!1),setTimeout(function(){a(t.collapsed)},400)},[t.collapsed]),t.disable?t.children:x.jsx(Ea,{title:t.title,open:i&&t.collapsed?l:!1,placement:"right",onOpenChange:c,children:t.children})},o2e=xve({scriptUrl:a2e.iconfontUrl}),Wee=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",r=arguments.length>2?arguments[2]:void 0;if(typeof t=="string"&&t!==""){if(Tz(t)||Yht(t))return x.jsx("img",{width:16,src:t,alt:"icon",className:r},t);if(t.startsWith(n))return x.jsx(o2e,{type:t})}return t},Vee=function(t){if(t&&typeof t=="string"){var n=t.substring(0,1).toUpperCase();return n}return null},fOt=Fr(function e(t){var n=this;Dr(this,e),ne(this,"props",void 0),ne(this,"getNavMenuItems",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return r.map(function(o){return n.getSubMenuOrItem(o,i,a)}).filter(function(o){return o}).flat(1)}),ne(this,"getSubMenuOrItem",function(r,i,a){var o=n.props,s=o.subMenuItemRender,l=o.baseClassName,c=o.prefixCls,u=o.collapsed,f=o.menu,p=o.iconPrefixes,h=o.layout,m=(f==null?void 0:f.type)==="group"&&h!=="top",g=n.props.token,v=n.getIntlName(r),y=(r==null?void 0:r.children)||(r==null?void 0:r.routes),b=m&&i===0?"group":void 0;if(Array.isArray(y)&&y.length>0){var w,_,k,S,C,E=i===0||m&&i===1,$=Wee(r.icon,p,"".concat(l,"-icon ").concat((w=n.props)===null||w===void 0?void 0:w.hashId)),M=u&&E?Vee(v):null,P=x.jsxs("div",{className:Ee("".concat(l,"-item-title"),(_=n.props)===null||_===void 0?void 0:_.hashId,ne(ne(ne(ne({},"".concat(l,"-item-title-collapsed"),u),"".concat(l,"-item-title-collapsed-level-").concat(a),u),"".concat(l,"-group-item-title"),b==="group"),"".concat(l,"-item-collapsed-show-title"),(f==null?void 0:f.collapsedShowTitle)&&u)),children:[b==="group"&&u?null:E&&$?x.jsx("span",{className:"".concat(l,"-item-icon ").concat((k=n.props)===null||k===void 0?void 0:k.hashId).trim(),children:$}):M,x.jsx("span",{className:Ee("".concat(l,"-item-text"),(S=n.props)===null||S===void 0?void 0:S.hashId,ne({},"".concat(l,"-item-text-has-icon"),b!=="group"&&E&&($||M))),children:v})]}),I=s?s(q(q({},r),{},{isUrl:!1}),P,n.props):P;if(m&&i===0&&n.props.collapsed&&!f.collapsedShowGroupTitle)return n.getNavMenuItems(y,i+1,i);var O=n.getNavMenuItems(y,i+1,m&&i===0&&n.props.collapsed?i:i+1);return[{type:b,key:r.key||r.path,label:I,onClick:m?void 0:r.onTitleClick,children:O,className:Ee(ne(ne(ne({},"".concat(l,"-group"),b==="group"),"".concat(l,"-submenu"),b!=="group"),"".concat(l,"-submenu-has-icon"),b!=="group"&&E&&$))},m&&i===0?{type:"divider",prefixCls:c,className:"".concat(l,"-divider"),key:(r.key||r.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:g==null||(C=g.layout)===null||C===void 0||(C=C.sider)===null||C===void 0?void 0:C.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(l,"-menu-item"),disabled:r.disabled,key:r.key||r.path,onClick:r.onTitleClick,label:n.getMenuItemPath(r,i,a)}}),ne(this,"getIntlName",function(r){var i=r.name,a=r.locale,o=n.props,s=o.menu,l=o.formatMessage,c=i;return a&&(s==null?void 0:s.locale)!==!1&&(c=l==null?void 0:l({id:a,defaultMessage:i})),n.props.menuTextRender?n.props.menuTextRender(r,c,n.props):c}),ne(this,"getMenuItemPath",function(r,i,a){var o,s,l,c,u=n.conversionPath(r.path||"/"),f=n.props,p=f.location,h=p===void 0?{pathname:"/"}:p,m=f.isMobile,g=f.onCollapse,v=f.menuItemRender,y=f.iconPrefixes,b=n.getIntlName(r),w=n.props,_=w.baseClassName,k=w.menu,S=w.collapsed,C=(k==null?void 0:k.type)==="group",E=i===0||C&&i===1,$=E?Wee(r.icon,y,"".concat(_,"-icon ").concat((o=n.props)===null||o===void 0?void 0:o.hashId)):null,M=S&&E?Vee(b):null,P=x.jsxs("div",{className:Ee("".concat(_,"-item-title"),(s=n.props)===null||s===void 0?void 0:s.hashId,ne(ne(ne({},"".concat(_,"-item-title-collapsed"),S),"".concat(_,"-item-title-collapsed-level-").concat(a),S),"".concat(_,"-item-collapsed-show-title"),(k==null?void 0:k.collapsedShowTitle)&&S)),children:[x.jsx("span",{className:"".concat(_,"-item-icon ").concat((l=n.props)===null||l===void 0?void 0:l.hashId).trim(),style:{display:M===null&&!$?"none":""},children:$||x.jsx("span",{className:"anticon",children:M})}),x.jsx("span",{className:Ee("".concat(_,"-item-text"),(c=n.props)===null||c===void 0?void 0:c.hashId,ne({},"".concat(_,"-item-text-has-icon"),E&&($||M))),children:b})]},u),I=Tz(u);if(I){var O,A,R;P=x.jsxs("span",{onClick:function(){var D,V;(D=window)===null||D===void 0||(V=D.open)===null||V===void 0||V.call(D,u,"_blank")},className:Ee("".concat(_,"-item-title"),(O=n.props)===null||O===void 0?void 0:O.hashId,ne(ne(ne(ne({},"".concat(_,"-item-title-collapsed"),S),"".concat(_,"-item-title-collapsed-level-").concat(a),S),"".concat(_,"-item-link"),!0),"".concat(_,"-item-collapsed-show-title"),(k==null?void 0:k.collapsedShowTitle)&&S)),children:[x.jsx("span",{className:"".concat(_,"-item-icon ").concat((A=n.props)===null||A===void 0?void 0:A.hashId).trim(),style:{display:M===null&&!$?"none":""},children:$||x.jsx("span",{className:"anticon",children:M})}),x.jsx("span",{className:Ee("".concat(_,"-item-text"),(R=n.props)===null||R===void 0?void 0:R.hashId,ne({},"".concat(_,"-item-text-has-icon"),E&&($||M))),children:b})]},u)}if(v){var j=q(q({},r),{},{isUrl:I,itemPath:u,isMobile:m,replace:u===h.pathname,onClick:function(){return g&&g(!0)},children:void 0});return i===0?x.jsx(Uee,{collapsed:S,title:b,disable:r.disabledTooltip,children:v(j,P,n.props)}):v(j,P,n.props)}return i===0?x.jsx(Uee,{collapsed:S,title:b,disable:r.disabledTooltip,children:P}):P}),ne(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=t}),pOt=function(t,n){var r=n.layout,i=n.collapsed,a={};return t&&!i&&["side","mix"].includes(r||"mix")&&(a={openKeys:t}),a},s2e=function(t){var n=t.mode,r=t.className,i=t.handleOpenChange,a=t.style,o=t.menuData,s=t.prefixCls,l=t.menu,c=t.matchMenuKeys,u=t.iconfontUrl,f=t.selectedKeys,p=t.onSelect,h=t.menuRenderType,m=t.openKeys,g=d.useContext(ou),v=g.dark,y=g.token,b="".concat(s,"-base-menu-").concat(n),w=d.useRef([]),_=In(l==null?void 0:l.defaultOpenAll),k=Te(_,2),S=k[0],C=k[1],E=In(function(){return l!=null&&l.defaultOpenAll?Hee(o)||[]:m===!1?!1:[]},{value:m===!1?void 0:m,onChange:i}),$=Te(E,2),M=$[0],P=$[1],I=In([],{value:f,onChange:p?function(B){p&&B&&p(B)}:void 0}),O=Te(I,2),A=O[0],R=O[1];d.useEffect(function(){l!=null&&l.defaultOpenAll||m===!1||c&&(P(c),R(c))},[c.join("-")]),d.useEffect(function(){u&&(o2e=xve({scriptUrl:u}))},[u]),d.useEffect(function(){if(c.join("-")!==(A||[]).join("-")&&R(c),!S&&m!==!1&&c.join("-")!==(M||[]).join("-")){var B=c;(l==null?void 0:l.autoClose)===!1&&(B=Array.from(new Set([].concat(ct(c),ct(M||[]))))),P(B)}else l!=null&&l.ignoreFlatMenu&&S?P(Hee(o)):C(!1)},[c.join("-")]);var j=d.useMemo(function(){return pOt(M,t)},[M&&M.join(","),t.layout,t.collapsed]),N=dOt(b,n),D=N.wrapSSR,V=N.hashId,F=d.useMemo(function(){return new fOt(q(q({},t),{},{token:y,menuRenderType:h,baseClassName:b,hashId:V}))},[t,y,h,b,V]);if(l!=null&&l.loading)return x.jsx("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:x.jsx(Kf,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});t.openKeys===!1&&!t.handleOpenChange&&(w.current=c);var K=t.postMenuData?t.postMenuData(o):o;return K&&(K==null?void 0:K.length)<1?null:D(d.createElement(ks,q(q({},j),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:w.current,theme:v?"dark":"light",selectedKeys:A,style:q({backgroundColor:"transparent",border:"none"},a),className:Ee(r,V,b,ne(ne({},"".concat(b,"-horizontal"),n==="horizontal"),"".concat(b,"-collapsed"),t.collapsed)),items:F.getNavMenuItems(K,0,0),onOpenChange:function(U){t.collapsed||P(U)}},t.menuProps)))};function hOt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return _i("ProLayoutSiderMenuStylish",function(i){var a=q(q({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[ne({},"div".concat(i.proComponentsCls,"-layout"),ne({},"".concat(a.componentCls),n==null?void 0:n(a)))]:[]})}var mOt=["title","render"],gOt=te.memo(function(e){return x.jsx(x.Fragment,{children:e.children})}),vOt=Qn.Sider,qee=Qn._InternalSiderContext,yOt=qee===void 0?{Provider:gOt}:qee,wH=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=t.logo,i=t.title,a=t.layout,o=t[n];if(o===!1)return null;var s=yH(r),l=x.jsx("h1",{children:i??"Ant Design Pro"});return o?o(s,t.collapsed?null:l,t):t.isMobile?null:a==="mix"&&n==="menuHeaderRender"?!1:t.collapsed?x.jsx("a",{children:s},"title"):x.jsxs("a",{children:[s,l]},"title")},Kee=function(t){var n,r=t.collapsed,i=t.originCollapsed,a=t.fixSiderbar,o=t.menuFooterRender,s=t.onCollapse,l=t.theme,c=t.siderWidth,u=t.isMobile,f=t.onMenuHeaderClick,p=t.breakpoint,h=p===void 0?"lg":p,m=t.style,g=t.layout,v=t.menuExtraRender,y=v===void 0?!1:v,b=t.links,w=t.menuContentRender,_=t.collapsedButtonRender,k=t.prefixCls,S=t.avatarProps,C=t.rightContentRender,E=t.actionsRender,$=t.onOpenChange,M=t.stylish,P=t.logoStyle,I=d.useContext(ou),O=I.hashId,A=d.useMemo(function(){return!(u||g==="mix")},[u,g]),R="".concat(k,"-sider"),j=64,N=hOt("".concat(R,".").concat(R,"-stylish"),{stylish:M,proLayoutCollapsedWidth:j}),D=Ee("".concat(R),O,ne(ne(ne(ne(ne(ne(ne({},"".concat(R,"-fixed"),a),"".concat(R,"-fixed-mix"),g==="mix"&&!u&&a),"".concat(R,"-collapsed"),t.collapsed),"".concat(R,"-layout-").concat(g),g&&!u),"".concat(R,"-light"),l!=="dark"),"".concat(R,"-mix"),g==="mix"&&!u),"".concat(R,"-stylish"),!!M)),V=wH(t),F=y&&y(t),K=d.useMemo(function(){return w!==!1&&d.createElement(s2e,q(q({},t),{},{key:"base-menu",mode:r&&!u?"vertical":"inline",handleOpenChange:$,style:{width:"100%"},className:"".concat(R,"-menu ").concat(O).trim()}))},[R,O,w,$,t]),B=(b||[]).map(function(ce,pe){return{className:"".concat(R,"-link"),label:ce,key:pe}}),U=d.useMemo(function(){return w?w(t,K):K},[w,K,t]),Z=d.useMemo(function(){if(!S)return null;var ce=S.title,pe=S.render,me=Ut(S,mOt),re=x.jsxs("div",{className:"".concat(R,"-actions-avatar"),children:[me!=null&&me.src||me!=null&&me.srcSet||me.icon||me.children?x.jsx(Oi,q({size:28},me)):null,S.title&&!r&&x.jsx("span",{children:ce})]});return pe?pe(S,re,t):re},[S,R,r]),ee=d.useMemo(function(){return E?x.jsx(Zr,{align:"center",size:4,direction:r?"vertical":"horizontal",className:Ee(["".concat(R,"-actions-list"),r&&"".concat(R,"-actions-list-collapsed"),O]),children:[E==null?void 0:E(t)].flat(1).map(function(ce,pe){return x.jsx("div",{className:"".concat(R,"-actions-list-item ").concat(O).trim(),children:ce},pe)})}):null},[E,R,r]),ie=d.useMemo(function(){return x.jsx(bH,{onItemClick:t.itemClick,appListRender:t.appListRender,appList:t.appList,prefixCls:t.prefixCls})},[t.appList,t.appListRender,t.prefixCls]),Y=d.useMemo(function(){if(_===!1)return null;var ce=x.jsx(cOt,{isMobile:u,collapsed:i,className:"".concat(R,"-collapsed-button"),onClick:function(){s==null||s(!i)}});return _?_(r,ce):ce},[_,u,i,R,r,s]),X=d.useMemo(function(){return!Z&&!ee?null:x.jsxs("div",{className:Ee("".concat(R,"-actions"),O,r&&"".concat(R,"-actions-collapsed")),children:[Z,ee]})},[ee,Z,R,r,O]),ae=d.useMemo(function(){var ce;return t!=null&&(ce=t.menu)!==null&&ce!==void 0&&ce.hideMenuWhenCollapsed&&r?"".concat(R,"-hide-menu-collapsed"):null},[R,r,t==null||(n=t.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),oe=o&&(o==null?void 0:o(t)),le=x.jsxs(x.Fragment,{children:[V&&x.jsxs("div",{className:Ee([Ee("".concat(R,"-logo"),O,ne({},"".concat(R,"-logo-collapsed"),r))]),onClick:A?f:void 0,id:"logo",style:P,children:[V,ie]}),F&&x.jsx("div",{className:Ee(["".concat(R,"-extra"),!V&&"".concat(R,"-extra-no-logo"),O]),children:F}),x.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:U}),x.jsxs(yOt.Provider,{value:{},children:[b?x.jsx("div",{className:"".concat(R,"-links ").concat(O).trim(),children:x.jsx(ks,{inlineIndent:16,className:"".concat(R,"-link-menu ").concat(O).trim(),selectedKeys:[],openKeys:[],theme:l,mode:"inline",items:B})}):null,A&&x.jsxs(x.Fragment,{children:[X,!ee&&C?x.jsx("div",{className:Ee("".concat(R,"-actions"),O,ne({},"".concat(R,"-actions-collapsed"),r)),children:C==null?void 0:C(t)}):null]}),oe&&x.jsx("div",{className:Ee(["".concat(R,"-footer"),O,ne({},"".concat(R,"-footer-collapsed"),r)]),children:oe})]})]});return N.wrapSSR(x.jsxs(x.Fragment,{children:[a&&!u&&!ae&&x.jsx("div",{style:q({width:r?j:c,overflow:"hidden",flex:"0 0 ".concat(r?j:c,"px"),maxWidth:r?j:c,minWidth:r?j:c,transition:"all 0.2s ease 0s"},m)}),x.jsxs(vOt,{collapsible:!0,trigger:null,collapsed:r,breakpoint:h===!1?void 0:h,onCollapse:function(pe){u||s==null||s(pe)},collapsedWidth:j,style:m,theme:l,width:c,className:Ee(D,O,ae),children:[ae?x.jsx("div",{className:"".concat(R,"-hide-when-collapsed ").concat(O).trim(),style:{height:"100%",width:"100%",opacity:ae?0:1},children:le}):le,Y]})]}))},bOt=function(t){var n,r,i,a,o;return ne({},t.componentCls,{"&-header-actions":{display:"flex",height:"100%",alignItems:"center","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:t.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:t.borderRadius,"&:hover":{backgroundColor:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:t.padding,paddingInlineEnd:t.padding,cursor:"pointer",color:(i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextRightActionsItem,"> div":{height:"44px",color:(a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:t.borderRadius,"&:hover":{backgroundColor:(o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgRightActionsItemHover}}}}})};function wOt(e){return _i("ProLayoutRightContent",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[bOt(n)]})}var xOt=["rightContentRender","avatarProps","actionsRender","headerContentRender"],SOt=["title","render"],l2e=function(t){var n=t.rightContentRender,r=t.avatarProps,i=t.actionsRender;t.headerContentRender;var a=Ut(t,xOt),o=d.useContext(zn.ConfigContext),s=o.getPrefixCls,l="".concat(s(),"-pro-global-header"),c=wOt(l),u=c.wrapSSR,f=c.hashId,p=d.useState("auto"),h=Te(p,2),m=h[0],g=h[1],v=d.useMemo(function(){if(!r)return null;var _=r.title,k=r.render,S=Ut(r,SOt),C=[S!=null&&S.src||S!=null&&S.srcSet||S.icon||S.children?d.createElement(Oi,q(q({},S),{},{size:28,key:"avatar"})):null,_?x.jsx("span",{style:{marginInlineStart:8},children:_},"name"):void 0];return k?k(r,x.jsx("div",{children:C}),a):x.jsx("div",{children:C})},[r]),y=i||v?function(_){var k=i&&(i==null?void 0:i(_));return!k&&!v?null:Array.isArray(k)?u(x.jsxs("div",{className:"".concat(l,"-header-actions ").concat(f).trim(),children:[k.filter(Boolean).map(function(S,C){var E=!1;if(te.isValidElement(S)){var $;E=!!(S!=null&&($=S.props)!==null&&$!==void 0&&$["aria-hidden"])}return x.jsx("div",{className:Ee("".concat(l,"-header-actions-item ").concat(f),ne({},"".concat(l,"-header-actions-hover"),!E)),children:S},C)}),v&&x.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(f).trim(),children:v})]})):u(x.jsxs("div",{className:"".concat(l,"-header-actions ").concat(f).trim(),children:[k,v&&x.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(f).trim(),children:v})]}))}:void 0,b=Lht(function(){var _=ha(mr().mark(function k(S){return mr().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:g(S);case 1:case"end":return E.stop()}},k)}));return function(k){return _.apply(this,arguments)}}(),160),w=y||n;return x.jsx("div",{className:"".concat(l,"-right-content ").concat(f).trim(),style:{minWidth:m,height:"100%"},children:x.jsx("div",{style:{height:"100%"},children:x.jsx(Obe,{onResize:function(k){var S=k.width;b.run(S)},children:w?x.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:w(q(q({},a),{},{rightContentSize:m}))}):null})})})},COt=function(t){var n,r;return ne({},t.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":ne({display:"flex",alignItems:"center"},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56)-12,40),"px")}})};function _Ot(e){return _i("ProLayoutTopNavHeader",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[COt(n)]})}var c2e=function(t){var n,r,i,a,o,s,l,c=d.useRef(null),u=t.onMenuHeaderClick,f=t.contentWidth,p=t.rightContentRender,h=t.className,m=t.style,g=t.headerContentRender,v=t.layout,y=t.actionsRender,b=d.useContext(zn.ConfigContext),w=b.getPrefixCls,_=d.useContext(ou),k=_.dark,S="".concat(t.prefixCls||w("pro"),"-top-nav-header"),C=_Ot(S),E=C.wrapSSR,$=C.hashId,M=void 0;t.menuHeaderRender!==void 0?M="menuHeaderRender":(v==="mix"||v==="top")&&(M="headerTitleRender");var P=wH(q(q({},t),{},{collapsed:!1}),M),I=d.useContext(ou),O=I.token,A=d.useMemo(function(){var R,j,N,D,V,F,K,B,U,Z,ee,ie,Y,X=x.jsx(zn,{theme:{hashed:jv(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:q({},D0e({colorItemBg:((R=O.layout)===null||R===void 0||(R=R.header)===null||R===void 0?void 0:R.colorBgHeader)||"transparent",colorSubItemBg:((j=O.layout)===null||j===void 0||(j=j.header)===null||j===void 0?void 0:j.colorBgHeader)||"transparent",radiusItem:O.borderRadius,colorItemBgSelected:((N=O.layout)===null||N===void 0||(N=N.header)===null||N===void 0?void 0:N.colorBgMenuItemSelected)||(O==null?void 0:O.colorBgTextHover),itemHoverBg:((D=O.layout)===null||D===void 0||(D=D.header)===null||D===void 0?void 0:D.colorBgMenuItemHover)||(O==null?void 0:O.colorBgTextHover),colorItemBgSelectedHorizontal:((V=O.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorBgMenuItemSelected)||(O==null?void 0:O.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((F=O.layout)===null||F===void 0||(F=F.header)===null||F===void 0?void 0:F.colorTextMenu)||(O==null?void 0:O.colorTextSecondary),colorItemTextHoverHorizontal:((K=O.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.colorTextMenuActive)||(O==null?void 0:O.colorText),colorItemTextSelectedHorizontal:((B=O.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorTextMenuSelected)||(O==null?void 0:O.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((U=O.layout)===null||U===void 0||(U=U.header)===null||U===void 0?void 0:U.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((Z=O.layout)===null||Z===void 0||(Z=Z.header)===null||Z===void 0?void 0:Z.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((ee=O.layout)===null||ee===void 0||(ee=ee.header)===null||ee===void 0?void 0:ee.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:O==null?void 0:O.colorBgElevated,subMenuItemBg:O==null?void 0:O.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:O==null?void 0:O.colorBgElevated}))},token:{colorBgElevated:((ie=O.layout)===null||ie===void 0||(ie=ie.header)===null||ie===void 0?void 0:ie.colorBgHeader)||"transparent"}},children:x.jsx(s2e,q(q(q({theme:k?"dark":"light"},t),{},{className:"".concat(S,"-base-menu ").concat($).trim()},t.menuProps),{},{style:q({width:"100%"},(Y=t.menuProps)===null||Y===void 0?void 0:Y.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return g?g(t,X):X},[(n=O.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(r=O.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemSelected,(i=O.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgMenuItemHover,(a=O.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextMenu,(o=O.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenuActive,(s=O.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorTextMenuSelected,(l=O.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorBgMenuElevated,O.borderRadius,O==null?void 0:O.colorBgTextHover,O==null?void 0:O.colorTextSecondary,O==null?void 0:O.colorText,O==null?void 0:O.colorTextBase,O.colorBgElevated,k,t,S,$,g]);return E(x.jsx("div",{className:Ee(S,$,h,ne({},"".concat(S,"-light"),!0)),style:m,children:x.jsxs("div",{ref:c,className:Ee("".concat(S,"-main"),$,ne({},"".concat(S,"-wide"),f==="Fixed"&&v==="top")),children:[P&&x.jsxs("div",{className:Ee("".concat(S,"-main-left ").concat($)),onClick:u,children:[x.jsx(bH,q({},t)),x.jsx("div",{className:"".concat(S,"-logo ").concat($).trim(),id:"logo",children:P},"logo")]}),x.jsx("div",{style:{flex:1},className:"".concat(S,"-menu ").concat($).trim(),children:A}),(p||y||t.avatarProps)&&x.jsx(l2e,q(q({rightContentRender:p},t),{},{prefixCls:S}))]})}))},kOt=function(t){var n,r,i;return ne({},t.componentCls,ne(ne(ne(ne({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorHeaderTitle)||t.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function EOt(e){return _i("ProLayoutGlobalHeader",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[kOt(n)]})}var $Ot=function(t,n){return t===!1?null:t?t(n,null):n},MOt=function(t){var n=t.isMobile,r=t.logo,i=t.collapsed,a=t.onCollapse,o=t.rightContentRender,s=t.menuHeaderRender,l=t.onMenuHeaderClick,c=t.className,u=t.style,f=t.layout,p=t.children,h=t.splitMenus,m=t.menuData,g=t.prefixCls,v=d.useContext(zn.ConfigContext),y=v.getPrefixCls,b=v.direction,w="".concat(g||y("pro"),"-global-header"),_=EOt(w),k=_.wrapSSR,S=_.hashId,C=Ee(c,w,S);if(f==="mix"&&!n&&h){var E=(m||[]).map(function(I){return q(q({},I),{},{children:void 0,routes:void 0})}),$=j$(E);return x.jsx(c2e,q(q({mode:"horizontal"},t),{},{splitMenus:!1,menuData:$}))}var M=Ee("".concat(w,"-logo"),S,ne(ne(ne({},"".concat(w,"-logo-rtl"),b==="rtl"),"".concat(w,"-logo-mix"),f==="mix"),"".concat(w,"-logo-mobile"),n)),P=x.jsx("span",{className:M,children:x.jsx("a",{children:yH(r)})},"logo");return k(x.jsxs("div",{className:C,style:q({},u),children:[n&&x.jsx("span",{className:"".concat(w,"-collapsed-button ").concat(S).trim(),onClick:function(){a==null||a(!i)},children:x.jsx(hve,{})}),n&&$Ot(s,P),f==="mix"&&!n&&x.jsxs(x.Fragment,{children:[x.jsx(bH,q({},t)),x.jsx("div",{className:M,onClick:l,children:wH(q(q({},t),{},{collapsed:!1}),"headerTitleRender")})]}),x.jsx("div",{style:{flex:1},children:p}),(o||t.actionsRender||t.avatarProps)&&x.jsx(l2e,q({rightContentRender:o},t))]}))},TOt=function(t){var n,r,i,a;return ne({},"".concat(t.proComponentsCls,"-layout"),ne({},"".concat(t.antCls,"-layout-header").concat(t.componentCls),{height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(t.colorSplit),backgroundColor:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:t.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function POt(e){return _i("ProLayoutHeader",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[TOt(n)]})}function OOt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return _i("ProLayoutHeaderStylish",function(i){var a=q(q({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[ne({},"div".concat(i.proComponentsCls,"-layout"),ne({},"".concat(a.componentCls),n==null?void 0:n(a)))]:[]})}var Gee=Qn.Header,IOt=function(t){var n,r,i,a=t.isMobile,o=t.fixedHeader,s=t.className,l=t.style,c=t.collapsed,u=t.prefixCls,f=t.onCollapse,p=t.layout,h=t.headerRender,m=t.headerContentRender,g=d.useContext(ou),v=g.token,y=d.useContext(zn.ConfigContext),b=d.useState(!1),w=Te(b,2),_=w[0],k=w[1],S=o||p==="mix",C=d.useCallback(function(){var R=p==="top",j=j$(t.menuData||[]),N=x.jsx(MOt,q(q({onCollapse:f},t),{},{menuData:j,children:m&&m(t,null)}));return R&&!a&&(N=x.jsx(c2e,q(q({mode:"horizontal",onCollapse:f},t),{},{menuData:j}))),h&&typeof h=="function"?h(t,N):N},[m,h,a,p,f,t]);d.useEffect(function(){var R,j=(y==null||(R=y.getTargetContainer)===null||R===void 0?void 0:R.call(y))||document.body,N=function(){var V,F=j.scrollTop;return F>(((V=v.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.heightLayoutHeader)||56)&&!_?(k(!0),!0):(_&&k(!1),!1)};if(S&&!(typeof window>"u"))return j.addEventListener("scroll",N,{passive:!0}),function(){j.removeEventListener("scroll",N)}},[(n=v.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,S,_]);var E=p==="top",$="".concat(u,"-layout-header"),M=POt($),P=M.wrapSSR,I=M.hashId,O=OOt("".concat($,".").concat($,"-stylish"),{proLayoutCollapsedWidth:64,stylish:t.stylish}),A=Ee(s,I,$,ne(ne(ne(ne(ne(ne(ne({},"".concat($,"-fixed-header"),S),"".concat($,"-fixed-header-scroll"),_),"".concat($,"-mix"),p==="mix"),"".concat($,"-fixed-header-action"),!c),"".concat($,"-top-menu"),E),"".concat($,"-header"),!0),"".concat($,"-stylish"),!!t.stylish));return p==="side"&&!a?null:O.wrapSSR(P(x.jsx(x.Fragment,{children:x.jsxs(zn,{theme:{hashed:jv(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[S&&x.jsx(Gee,{style:q({height:((r=v.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((i=v.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},l)}),x.jsx(Gee,{className:A,style:l,children:C()})]})})))};const ROt={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},jOt=q({},ROt),NOt={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalità di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello è visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},AOt=q({},NOt),DOt={"app.setting.pagestyle":"스타일 설정","app.setting.pagestyle.dark":"다크 모드","app.setting.pagestyle.light":"라이트 모드","app.setting.content-width":"컨텐츠 너비","app.setting.content-width.fixed":"고정","app.setting.content-width.fluid":"흐름","app.setting.themecolor":"테마 색상","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"네비게이션 모드","app.setting.regionalsettings":"영역별 설정","app.setting.regionalsettings.header":"헤더","app.setting.regionalsettings.menu":"메뉴","app.setting.regionalsettings.footer":"바닥글","app.setting.regionalsettings.menuHeader":"메뉴 헤더","app.setting.sidemenu":"메뉴 사이드 배치","app.setting.topmenu":"메뉴 상단 배치","app.setting.mixmenu":"혼합형 배치","app.setting.splitMenus":"메뉴 분리","app.setting.fixedheader":"헤더 고정","app.setting.fixedsidebar":"사이드바 고정","app.setting.fixedsidebar.hint":"'메뉴 사이드 배치'를 선택했을 때 동작함","app.setting.hideheader":"스크롤 중 헤더 감추기","app.setting.hideheader.hint":"'헤더 감추기 옵션'을 선택했을 때 동작함","app.setting.othersettings":"다른 설정","app.setting.weakmode":"고대비 모드","app.setting.copy":"설정값 복사","app.setting.loading":"테마 로딩 중","app.setting.copyinfo":"복사 성공. src/models/settings.js에 있는 defaultSettings를 교체해 주세요.","app.setting.production.hint":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},FOt=q({},DOt),LOt={"app.setting.pagestyle":"整体风格设置","app.setting.pagestyle.dark":"暗色菜单风格","app.setting.pagestyle.light":"亮色菜单风格","app.setting.pagestyle.realdark":"暗色风格(实验功能)","app.setting.content-width":"内容区域宽度","app.setting.content-width.fixed":"定宽","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主题色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"极光绿","app.setting.themecolor.techBlue":"科技蓝(默认)","app.setting.themecolor.daybreak":"拂晓","app.setting.themecolor.geekblue":"极客蓝","app.setting.themecolor.purple":"酱紫","app.setting.navigationmode":"导航模式","app.setting.sidermenutype":"侧边菜单类型","app.setting.sidermenutype-sub":"经典模式","app.setting.sidermenutype-group":"分组模式","app.setting.regionalsettings":"内容区域","app.setting.regionalsettings.header":"顶栏","app.setting.regionalsettings.menu":"菜单","app.setting.regionalsettings.footer":"页脚","app.setting.regionalsettings.menuHeader":"菜单头","app.setting.sidemenu":"侧边菜单布局","app.setting.topmenu":"顶部菜单布局","app.setting.mixmenu":"混合菜单布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定侧边菜单","app.setting.fixedsidebar.hint":"侧边菜单布局时可配置","app.setting.hideheader":"下滑时隐藏 Header","app.setting.hideheader.hint":"固定 Header 时可配置","app.setting.othersettings":"其他设置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷贝设置","app.setting.loading":"正在加载主题","app.setting.copyinfo":"拷贝成功,请到 src/defaultSettings.js 中替换默认配置","app.setting.production.hint":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},BOt=q({},LOt),zOt={"app.setting.pagestyle":"整體風格設置","app.setting.pagestyle.dark":"暗色菜單風格","app.setting.pagestyle.realdark":"暗色風格(实验功能)","app.setting.pagestyle.light":"亮色菜單風格","app.setting.content-width":"內容區域寬度","app.setting.content-width.fixed":"定寬","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主題色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"極光綠","app.setting.themecolor.techBlue":"科技蓝(默認)","app.setting.themecolor.daybreak":"拂曉藍","app.setting.themecolor.geekblue":"極客藍","app.setting.themecolor.purple":"醬紫","app.setting.navigationmode":"導航模式","app.setting.sidemenu":"側邊菜單布局","app.setting.topmenu":"頂部菜單布局","app.setting.mixmenu":"混合菜單布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定側邊菜單","app.setting.fixedsidebar.hint":"側邊菜單布局時可配置","app.setting.hideheader":"下滑時隱藏 Header","app.setting.hideheader.hint":"固定 Header 時可配置","app.setting.othersettings":"其他設置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷貝設置","app.setting.loading":"正在加載主題","app.setting.copyinfo":"拷貝成功,請到 src/defaultSettings.js 中替換默認配置","app.setting.production.hint":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},HOt=q({},zOt);var Yee={"zh-CN":BOt,"zh-TW":HOt,"en-US":jOt,"it-IT":AOt,"ko-KR":FOt},UOt=function(){if(!Mz())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},WOt=function(){var t=UOt();return Yee[t]||Yee["zh-CN"]},Qy={},Xee=oi&&oi.__classPrivateFieldGet||function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Zee=oi&&oi.__classPrivateFieldSet||function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Y1;Object.defineProperty(Qy,"__esModule",{value:!0});Qy.TokenData=void 0;Qy.parse=SH;Qy.compile=QOt;var VN=Qy.match=tIt;const u2e="/",xH=e=>e,VOt=/^[$_\p{ID_Start}]$/u,qOt=/^[$\u200c\u200d\p{ID_Continue}]$/u,n5="https://git.new/pathToRegexpError",KOt={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function C3(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function GOt(e){return e.sensitive?"s":"is"}function*YOt(e){const t=[...e];let n=0;function r(){let i="";if(VOt.test(t[++n]))for(i+=t[n];qOt.test(t[++n]);)i+=t[n];else if(t[n]==='"'){let a=n;for(;nJOt(i,t,n));return i=>{const a=[""];for(const o of r){const[s,...l]=o(i);a[0]+=s,a.push(...l)}return a}}function JOt(e,t,n){if(e.type==="text")return()=>[e.value];if(e.type==="group"){const i=d2e(e.tokens,t,n);return a=>{const[o,...s]=i(a);return s.length?[""]:[o]}}const r=n||xH;return e.type==="wildcard"&&n!==!1?i=>{const a=i[e.name];if(a==null)return["",e.name];if(!Array.isArray(a)||a.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[a.map((o,s)=>{if(typeof o!="string")throw new TypeError(`Expected "${e.name}/${s}" to be a string`);return r(o)}).join(t)]}:i=>{const a=i[e.name];if(a==null)return["",e.name];if(typeof a!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[r(a)]}}function eIt(e,t={}){const{decode:n=decodeURIComponent,delimiter:r=u2e,end:i=!0,trailing:a=!0}=t,o=GOt(t),s=[],l=[];for(const{tokens:p}of e)for(const h of m_(p,0,[])){const m=nIt(h,r,l);s.push(m)}let c=`^(?:${s.join("|")})`;a&&(c+=`(?:${C3(r)}$)?`),c+=i?"$":`(?=${C3(r)}|$)`;const u=new RegExp(c,o),f=l.map(p=>n===!1?xH:p.type==="param"?n:h=>h.split(r).map(n));return Object.assign(function(h){const m=u.exec(h);if(!m)return!1;const{0:g}=m,v=Object.create(null);for(let y=1;yi instanceof N$?i:SH(i,t));return eIt(r,t)}function*m_(e,t,n){if(t===e.length)return yield n;const r=e[t];if(r.type==="group"){const i=n.slice();for(const a of m_(r.tokens,0,i))yield*m_(e,t+1,a)}else n.push(r);yield*m_(e,t+1,n)}function nIt(e,t,n){let r="",i="",a=!0;for(let o=0;oi.length===1)?`[^${C3(n.join(""))}]`:`(?:(?!${n.map(C3).join("|")}).)`}var iIt=function(t,n,r){if(r){var i=ct(r.keys()).find(function(o){try{return o.startsWith("http")?!1:VN(o)(t)}catch(s){return console.log("key",o,s),!1}});if(i)return r.get(i)}if(n){var a=Object.keys(n).find(function(o){try{return o!=null&&o.startsWith("http")?!1:VN(o)(t)}catch(s){return console.log("key",o,s),!1}});if(a)return n[a]}return{path:""}},Qee=function(t,n){var r=t.pathname,i=r===void 0?"/":r,a=t.breadcrumb,o=t.breadcrumbMap,s=t.formatMessage,l=t.title,c=t.menu,u=c===void 0?{locale:!1}:c,f=n?"":l||"",p=iIt(i,a,o);if(!p)return{title:f,id:"",pageName:f};var h=p.name;return u.locale!==!1&&p.locale&&s&&(h=s({id:p.locale||"",defaultMessage:p.name})),h?n||!l?{title:h,id:p.locale||"",pageName:h}:{title:"".concat(h," - ").concat(l),id:p.locale||"",pageName:h}:{title:f,id:p.locale||"",pageName:f}},fs={};function qN(e){"@babel/helpers - typeof";return qN=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qN(e)}Object.defineProperty(fs,"__esModule",{value:!0});var iw=fs.pathToRegexp=fs.tokensToRegexp=fs.regexpToFunction=fs.match=fs.tokensToFunction=fs.compile=fs.parse=void 0;function aIt(e){for(var t=[],n=0;n=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=e[a++];continue}break}if(!i)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:i}),n=a;continue}if(r==="("){var s=1,l="",a=n+1;if(e[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a-1:_===void 0;i||(h+="(?:"+p+"(?="+f+"))?"),k||(h+="(?="+p+"|"+f+")")}return new RegExp(h,_H(n))}fs.tokensToRegexp=h2e;function kH(e,t,n){return e instanceof RegExp?lIt(e,t):Array.isArray(e)?cIt(e,t,n):uIt(e,t,n)}iw=fs.pathToRegexp=kH;function ld(e,t){return t>>>e|t<<32-e}function dIt(e,t,n){return e&t^~e&n}function fIt(e,t,n){return e&t^e&n^t&n}function pIt(e){return ld(2,e)^ld(13,e)^ld(22,e)}function hIt(e){return ld(6,e)^ld(11,e)^ld(25,e)}function mIt(e){return ld(7,e)^ld(18,e)^e>>>3}function gIt(e){return ld(17,e)^ld(19,e)^e>>>10}function vIt(e,t){return e[t&15]+=gIt(e[t+14&15])+e[t+9&15]+mIt(e[t+1&15])}var yIt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],$i,Lo,Da,bIt="0123456789abcdef";function Jee(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function wIt(){$i=new Array(8),Lo=new Array(2),Da=new Array(64),Lo[0]=Lo[1]=0,$i[0]=1779033703,$i[1]=3144134277,$i[2]=1013904242,$i[3]=2773480762,$i[4]=1359893119,$i[5]=2600822924,$i[6]=528734635,$i[7]=1541459225}function KN(){var e,t,n,r,i,a,o,s,l,c,u=new Array(16);e=$i[0],t=$i[1],n=$i[2],r=$i[3],i=$i[4],a=$i[5],o=$i[6],s=$i[7];for(var f=0;f<16;f++)u[f]=Da[(f<<2)+3]|Da[(f<<2)+2]<<8|Da[(f<<2)+1]<<16|Da[f<<2]<<24;for(var p=0;p<64;p++)l=s+hIt(i)+dIt(i,a,o)+yIt[p],p<16?l+=u[p]:l+=vIt(u,p),c=pIt(e)+fIt(e,t,n),s=o,o=a,a=i,i=Jee(r,l),r=n,n=t,t=e,e=Jee(l,c);$i[0]+=e,$i[1]+=t,$i[2]+=n,$i[3]+=r,$i[4]+=i,$i[5]+=a,$i[6]+=o,$i[7]+=s}function xIt(e,t){var n,r,i=0;r=Lo[0]>>3&63;var a=t&63;for((Lo[0]+=t<<3)>29,n=0;n+63>3&63;if(Da[e++]=128,e<=56)for(var t=e;t<56;t++)Da[t]=0;else{for(var n=e;n<64;n++)Da[n]=0;KN();for(var r=0;r<56;r++)Da[r]=0}Da[56]=Lo[1]>>>24&255,Da[57]=Lo[1]>>>16&255,Da[58]=Lo[1]>>>8&255,Da[59]=Lo[1]&255,Da[60]=Lo[0]>>>24&255,Da[61]=Lo[0]>>>16&255,Da[62]=Lo[0]>>>8&255,Da[63]=Lo[0]&255,KN()}function CIt(){for(var e=new String,t=0;t<8;t++)for(var n=28;n>=0;n-=4)e+=bIt.charAt($i[t]>>>n&15);return e}function _It(e){return wIt(),xIt(e,e.length),SIt(),CIt()}function GN(e){"@babel/helpers - typeof";return GN=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},GN(e)}var kIt=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function EIt(e,t){return TIt(e)||MIt(e,t)||EH(e,t)||$It()}function $It(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MIt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){a=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function TIt(e){if(Array.isArray(e))return e}function PIt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=EH(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){o=!0,s=c},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw s}}}}function OIt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IIt(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function FIt(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _3(e,t){return _3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},_3(e,t)}function k3(e){return k3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},k3(e)}function ete(e){return zIt(e)||BIt(e)||EH(e)||LIt()}function LIt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EH(e,t){if(e){if(typeof e=="string")return XN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XN(e,t)}}function BIt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zIt(e){if(Array.isArray(e))return XN(e)}function XN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UIt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function tte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function La(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return t.endsWith("/*")?t.replace("/*","/"):(t||n).startsWith("/")||$H(t)?t:"/".concat(n,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},KIt=function(t,n){var r=t.menu,i=r===void 0?{}:r,a=t.indexRoute,o=t.path,s=o===void 0?"":o,l=t.children||[],c=i.name,u=c===void 0?t.name:c,f=i.icon,p=f===void 0?t.icon:f,h=i.hideChildren,m=h===void 0?t.hideChildren:h,g=i.flatMenu,v=g===void 0?t.flatMenu:g,y=a&&Object.keys(a).join(",")!=="redirect"?[La({path:s,menu:i},a)].concat(l||[]):l,b=La({},t);if(u&&(b.name=u),p&&(b.icon=p),y&&y.length){if(m)return delete b.children,b;var w=MH(La(La({},n),{},{data:y}),t);if(v)return w;delete b[kl]}return b},Xm=function(t){return Array.isArray(t)&&t.length>0};function MH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=e.data,r=e.formatMessage,i=e.parentName,a=e.locale;return!n||!Array.isArray(n)?[]:n.filter(function(o){return o?Xm(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var s,l;return!(o==null||(s=o.menu)===null||s===void 0)&&s.name||o!=null&&o.flatMenu||!(o==null||(l=o.menu)===null||l===void 0)&&l.flatMenu?!0:o.menu!==!1}).map(function(o){var s=La(La({},o),{},{path:o.path||o.originPath});return!s.children&&s[kl]&&(s.children=s[kl],delete s[kl]),s.unaccessible&&delete s.name,s.path==="*"&&(s.path="."),s.path==="/*"&&(s.path="."),!s.path&&s.originPath&&(s.path=s.originPath),s}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},s=o.children||o[kl]||[],l=g2e(o.path,t?t.path:"/"),c=o.name,u=qIt(o,i||"menu"),f=u!==!1&&a!==!1&&r&&u?r({id:u,defaultMessage:c}):c,p=t.pro_layout_parentKeys,h=p===void 0?[]:p;t.children,t.icon,t.flatMenu,t.indexRoute,t.routes;var m=HIt(t,kIt),g=new Set([].concat(ete(h),ete(o.parentKeys||[])));t.key&&g.add(t.key);var v=La(La(La({},m),{},{menu:void 0},o),{},{path:l,locale:u,key:o.key||VIt(La(La({},o),{},{path:l})),pro_layout_parentKeys:Array.from(g).filter(function(b){return b&&b!=="/"})});if(f?v.name=f:delete v.name,v.menu===void 0&&delete v.menu,Xm(s)){var y=MH(La(La({},e),{},{data:s,parentName:u||""}),v);Xm(y)&&(v.children=y)}return KIt(v,e)}).flat(1)}var GIt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(n){return n&&(n.name||Xm(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=La({},n),i=r.children||n[kl]||[];if(delete r[kl],Xm(i)&&!r.hideChildrenInMenu&&i.some(function(o){return o&&!!o.name})){var a=e(i);if(a.length)return La(La({},r),{},{children:a})}return La({},n)}).filter(function(n){return n})},YIt=function(e){jIt(n,e);var t=NIt(n);function n(){return OIt(this,n),t.apply(this,arguments)}return RIt(n,[{key:"get",value:function(i){var a;try{var o=PIt(this.entries()),s;try{for(o.s();!(s=o.n()).done;){var l=EIt(s.value,2),c=l[0],u=l[1],f=nx(c);if(!$H(c)&&iw(f,[]).test(i)){a=u;break}}}catch(p){o.e(p)}finally{o.f()}}catch{a=void 0}return a}}]),n}(YN(Map)),XIt=function(t){var n=new YIt,r=function i(a,o){a.forEach(function(s){var l=s.children||s[kl]||[];Xm(l)&&i(l,s);var c=g2e(s.path,o?o.path:"/");n.set(nx(c),s)})};return r(t),n},ZIt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(n){var r=n.children||n[kl];if(Xm(r)){var i=e(r);if(i.length)return La({},n)}var a=La({},n);return delete a[kl],delete a.children,a}).filter(function(n){return n})},QIt=function(t,n,r,i){var a=MH({data:t,formatMessage:r,locale:n}),o=i?ZIt(a):GIt(a),s=XIt(a);return{breadcrumb:s,menuData:o}};function nte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gb(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[],n={};return t.forEach(function(r){var i=Gb({},r);if(!(!i||!i.key)){!i.children&&i[kl]&&(i.children=i[kl],delete i[kl]);var a=i.children||[];n[nx(i.path||i.key||"/")]=Gb({},i),n[i.key||i.path||"/"]=Gb({},i),a&&(n=Gb(Gb({},n),e(a)))}}),n},tRt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t.filter(function(i){if(i==="/"&&n==="/")return!0;if(i!=="/"&&i!=="/*"&&i&&!$H(i)){var a=nx(i);try{if(r&&iw("".concat(a)).test(n)||iw("".concat(a),[]).test(n)||iw("".concat(a,"/(.*)")).test(n))return!0}catch{}}return!1}).sort(function(i,a){return i===n?10:a===n?-10:i.substr(1).split("/").length-a.substr(1).split("/").length})},nRt=function(t,n,r,i){var a=eRt(n),o=Object.keys(a),s=tRt(o,t||"/",i);return!s||s.length<1?[]:s.map(function(l){var c=a[l]||{pro_layout_parentKeys:"",key:""},u=new Map,f=(c.pro_layout_parentKeys||[]).map(function(p){return u.has(p)?null:(u.set(p,!0),a[p])}).filter(function(p){return p});return c.key&&f.push(c),f}).flat(1)},rRt=function(t){var n=d.useContext(ou),r=n.hashId,i=t.style,a=t.prefixCls,o=t.children,s=t.hasPageContainer,l=s===void 0?0:s,c=Ee("".concat(a,"-content"),r,ne(ne({},"".concat(a,"-has-header"),t.hasHeader),"".concat(a,"-content-has-page-container"),l>0)),u=t.ErrorBoundary||wht;return t.ErrorBoundary===!1?x.jsx(Qn.Content,{className:c,style:i,children:o}):x.jsx(u,{children:x.jsx(Qn.Content,{className:c,style:i,children:o})})},iRt=function(){return x.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[x.jsxs("defs",{children:[x.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[x.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),x.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),x.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[x.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),x.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),x.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),x.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[x.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),x.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),x.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),x.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[x.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),x.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),x.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),x.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:x.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:x.jsx("g",{transform:"translate(20.000000, 20.000000)",children:x.jsxs("g",{children:[x.jsxs("g",{fillRule:"nonzero",children:[x.jsxs("g",{children:[x.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),x.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),x.jsx("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),x.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},rte=new ir("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),aRt=function(t){var n,r,i,a,o,s,l,c,u,f,p,h;return ne({},"".concat(t.proComponentsCls,"-layout"),ne(ne(ne({},"".concat(t.antCls,"-layout-sider").concat(t.componentCls),{background:((n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),t.componentCls,ne(ne(ne(ne(ne(ne(ne(ne(ne({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(t.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.paddingInlineLayoutMenu,paddingBlock:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(t.colorSplit),marginInlineEnd:-1}),"".concat(t.antCls,"-menu"),ne(ne({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:t.fontSizeSM,paddingBottom:4}),"".concat(t.antCls,"-menu-item:not(").concat(t.antCls,"-menu-item-selected):hover"),{color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((s=t.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(l=t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorTextMenuTitle,animationName:rte,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":ne({flexDirection:"column-reverse",margin:0,padding:12},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(c=t.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(u=t.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:t.borderRadius,"&:hover":{background:t.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:t.marginXS,borderRadius:t.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:t.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(t.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(f=t.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:t.fontSize,animationName:rte,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(t.componentCls).concat(t.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((p=t.layout)===null||p===void 0||(p=p.header)===null||p===void 0?void 0:p.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((h=t.layout)===null||h===void 0||(h=h.header)===null||h===void 0?void 0:h.heightLayoutHeader)||56,"px")}}))};function oRt(e,t){var n=t.proLayoutCollapsedWidth;return _i("ProLayoutSiderMenu",function(r){var i=q(q({},r),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:n});return[aRt(i)]})}var ite=function(t){var n,r=t.isMobile,i=t.siderWidth,a=t.collapsed,o=t.onCollapse,s=t.style,l=t.className,c=t.hide,u=t.prefixCls,f=t.getContainer,p=d.useContext(ou),h=p.token;d.useEffect(function(){r===!0&&(o==null||o(!0))},[r]);var m=Al(t,["className","style"]),g=te.useContext(zn.ConfigContext),v=g.direction,y=oRt("".concat(u,"-sider"),{proLayoutCollapsedWidth:64}),b=y.wrapSSR,w=y.hashId,_=Ee("".concat(u,"-sider"),l,w);if(c)return null;var k=s$(!a,function(){return o==null?void 0:o(!0)});return b(r?x.jsx(xh,q(q({placement:v==="rtl"?"right":"left",className:Ee("".concat(u,"-drawer-sider"),l)},k),{},{style:q({padding:0,height:"100vh"},s),onClose:function(){o==null||o(!0)},maskClosable:!0,closable:!1,getContainer:f||!1,width:i,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=h.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:x.jsx(Kee,q(q({},m),{},{isMobile:!0,className:_,collapsed:r?!1:a,splitMenus:!1,originCollapsed:a}))})):x.jsx(Kee,q(q({className:_,originCollapsed:a},m),{},{style:s})))},sRt=function(){var t;return typeof process>"u"?Rf:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||Rf},lRt=function(t){var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y,b,w,_,k,S,C,E,$,M,P,I,O,A,R,j,N;return(n=sRt())!==null&&n!==void 0&&n.startsWith("5")?{}:ne(ne(ne({},t.componentCls,ne(ne({width:"100%",height:"100%"},"".concat(t.proComponentsCls,"-base-menu"),(S={color:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu},ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(S,"".concat(t.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu}),"& ".concat(t.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(t.antCls,"-menu-submenu-expand-icon, ").concat(t.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(t.antCls,"-menu"),ne(ne({color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu},"".concat(t.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-inline"),ne({},"".concat(t.antCls,"-menu-selected::after,").concat(t.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(t.antCls,"-menu-sub ").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,`-menu-item:active, + `).concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,"-menu-submenu-title"),{backgroundColor:a==null?void 0:a.colorBgMenuItemSelected,borderRadius:t.borderRadiusLG}),"".concat(t.componentCls,"-group"),ne({},"".concat(t.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",ne(ne(ne(ne(ne({display:"flex",flexDirection:"row",alignItems:"center",gap:t.marginXS},"".concat(t.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",ne(ne({minWidth:40,height:40},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(t.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(t.componentCls,"-group-item-title"),{gap:t.marginXS,height:18,overflow:"hidden"}),"&".concat(t.componentCls,"-item-collapsed-show-title"),ne({lineHeight:"16px",gap:0},"&".concat(t.componentCls,"-item-title-collapsed"),ne(ne({display:"flex"},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(t.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4})))),"&-group",ne({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:12,color:t.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:t.colorTextSecondary,fontSize:12,lineHeight:20})),n.includes("horizontal")?{}:ne({},"".concat(t.antCls,"-menu-submenu").concat(t.antCls,"-menu-submenu-popup"),ne({},"".concat(t.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},ne({},"".concat(t.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function vOt(e,t){return Ci("ProLayoutBaseMenu"+t,function(n){var r=q(q({},n),{},{componentCls:".".concat(e)});return[gOt(r,t||"inline")]})}var qee=function(t){var n=d.useState(t.collapsed),r=Te(n,2),i=r[0],a=r[1],o=d.useState(!1),s=Te(o,2),l=s[0],c=s[1];return d.useEffect(function(){c(!1),setTimeout(function(){a(t.collapsed)},400)},[t.collapsed]),t.disable?t.children:x.jsx(_a,{title:t.title,open:i&&t.collapsed?l:!1,placement:"right",onOpenChange:c,children:t.children})},d2e=_ve({scriptUrl:u2e.iconfontUrl}),Kee=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",r=arguments.length>2?arguments[2]:void 0;if(typeof t=="string"&&t!==""){if(Oz(t)||Qht(t))return x.jsx("img",{width:16,src:t,alt:"icon",className:r},t);if(t.startsWith(n))return x.jsx(d2e,{type:t})}return t},Gee=function(t){if(t&&typeof t=="string"){var n=t.substring(0,1).toUpperCase();return n}return null},yOt=Dr(function e(t){var n=this;Ar(this,e),ne(this,"props",void 0),ne(this,"getNavMenuItems",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return r.map(function(o){return n.getSubMenuOrItem(o,i,a)}).filter(function(o){return o}).flat(1)}),ne(this,"getSubMenuOrItem",function(r,i,a){var o=n.props,s=o.subMenuItemRender,l=o.baseClassName,c=o.prefixCls,u=o.collapsed,f=o.menu,p=o.iconPrefixes,h=o.layout,m=(f==null?void 0:f.type)==="group"&&h!=="top",g=n.props.token,v=n.getIntlName(r),y=(r==null?void 0:r.children)||(r==null?void 0:r.routes),w=m&&i===0?"group":void 0;if(Array.isArray(y)&&y.length>0){var b,C,k,S,_,E=i===0||m&&i===1,$=Kee(r.icon,p,"".concat(l,"-icon ").concat((b=n.props)===null||b===void 0?void 0:b.hashId)),M=u&&E?Gee(v):null,P=x.jsxs("div",{className:Ee("".concat(l,"-item-title"),(C=n.props)===null||C===void 0?void 0:C.hashId,ne(ne(ne(ne({},"".concat(l,"-item-title-collapsed"),u),"".concat(l,"-item-title-collapsed-level-").concat(a),u),"".concat(l,"-group-item-title"),w==="group"),"".concat(l,"-item-collapsed-show-title"),(f==null?void 0:f.collapsedShowTitle)&&u)),children:[w==="group"&&u?null:E&&$?x.jsx("span",{className:"".concat(l,"-item-icon ").concat((k=n.props)===null||k===void 0?void 0:k.hashId).trim(),children:$}):M,x.jsx("span",{className:Ee("".concat(l,"-item-text"),(S=n.props)===null||S===void 0?void 0:S.hashId,ne({},"".concat(l,"-item-text-has-icon"),w!=="group"&&E&&($||M))),children:v})]}),R=s?s(q(q({},r),{},{isUrl:!1}),P,n.props):P;if(m&&i===0&&n.props.collapsed&&!f.collapsedShowGroupTitle)return n.getNavMenuItems(y,i+1,i);var O=n.getNavMenuItems(y,i+1,m&&i===0&&n.props.collapsed?i:i+1);return[{type:w,key:r.key||r.path,label:R,onClick:m?void 0:r.onTitleClick,children:O,className:Ee(ne(ne(ne({},"".concat(l,"-group"),w==="group"),"".concat(l,"-submenu"),w!=="group"),"".concat(l,"-submenu-has-icon"),w!=="group"&&E&&$))},m&&i===0?{type:"divider",prefixCls:c,className:"".concat(l,"-divider"),key:(r.key||r.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:g==null||(_=g.layout)===null||_===void 0||(_=_.sider)===null||_===void 0?void 0:_.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(l,"-menu-item"),disabled:r.disabled,key:r.key||r.path,onClick:r.onTitleClick,label:n.getMenuItemPath(r,i,a)}}),ne(this,"getIntlName",function(r){var i=r.name,a=r.locale,o=n.props,s=o.menu,l=o.formatMessage,c=i;return a&&(s==null?void 0:s.locale)!==!1&&(c=l==null?void 0:l({id:a,defaultMessage:i})),n.props.menuTextRender?n.props.menuTextRender(r,c,n.props):c}),ne(this,"getMenuItemPath",function(r,i,a){var o,s,l,c,u=n.conversionPath(r.path||"/"),f=n.props,p=f.location,h=p===void 0?{pathname:"/"}:p,m=f.isMobile,g=f.onCollapse,v=f.menuItemRender,y=f.iconPrefixes,w=n.getIntlName(r),b=n.props,C=b.baseClassName,k=b.menu,S=b.collapsed,_=(k==null?void 0:k.type)==="group",E=i===0||_&&i===1,$=E?Kee(r.icon,y,"".concat(C,"-icon ").concat((o=n.props)===null||o===void 0?void 0:o.hashId)):null,M=S&&E?Gee(w):null,P=x.jsxs("div",{className:Ee("".concat(C,"-item-title"),(s=n.props)===null||s===void 0?void 0:s.hashId,ne(ne(ne({},"".concat(C,"-item-title-collapsed"),S),"".concat(C,"-item-title-collapsed-level-").concat(a),S),"".concat(C,"-item-collapsed-show-title"),(k==null?void 0:k.collapsedShowTitle)&&S)),children:[x.jsx("span",{className:"".concat(C,"-item-icon ").concat((l=n.props)===null||l===void 0?void 0:l.hashId).trim(),style:{display:M===null&&!$?"none":""},children:$||x.jsx("span",{className:"anticon",children:M})}),x.jsx("span",{className:Ee("".concat(C,"-item-text"),(c=n.props)===null||c===void 0?void 0:c.hashId,ne({},"".concat(C,"-item-text-has-icon"),E&&($||M))),children:w})]},u),R=Oz(u);if(R){var O,j,I;P=x.jsxs("span",{onClick:function(){var F,K;(F=window)===null||F===void 0||(K=F.open)===null||K===void 0||K.call(F,u,"_blank")},className:Ee("".concat(C,"-item-title"),(O=n.props)===null||O===void 0?void 0:O.hashId,ne(ne(ne(ne({},"".concat(C,"-item-title-collapsed"),S),"".concat(C,"-item-title-collapsed-level-").concat(a),S),"".concat(C,"-item-link"),!0),"".concat(C,"-item-collapsed-show-title"),(k==null?void 0:k.collapsedShowTitle)&&S)),children:[x.jsx("span",{className:"".concat(C,"-item-icon ").concat((j=n.props)===null||j===void 0?void 0:j.hashId).trim(),style:{display:M===null&&!$?"none":""},children:$||x.jsx("span",{className:"anticon",children:M})}),x.jsx("span",{className:Ee("".concat(C,"-item-text"),(I=n.props)===null||I===void 0?void 0:I.hashId,ne({},"".concat(C,"-item-text-has-icon"),E&&($||M))),children:w})]},u)}if(v){var A=q(q({},r),{},{isUrl:R,itemPath:u,isMobile:m,replace:u===h.pathname,onClick:function(){return g&&g(!0)},children:void 0});return i===0?x.jsx(qee,{collapsed:S,title:w,disable:r.disabledTooltip,children:v(A,P,n.props)}):v(A,P,n.props)}return i===0?x.jsx(qee,{collapsed:S,title:w,disable:r.disabledTooltip,children:P}):P}),ne(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=t}),bOt=function(t,n){var r=n.layout,i=n.collapsed,a={};return t&&!i&&["side","mix"].includes(r||"mix")&&(a={openKeys:t}),a},f2e=function(t){var n=t.mode,r=t.className,i=t.handleOpenChange,a=t.style,o=t.menuData,s=t.prefixCls,l=t.menu,c=t.matchMenuKeys,u=t.iconfontUrl,f=t.selectedKeys,p=t.onSelect,h=t.menuRenderType,m=t.openKeys,g=d.useContext(uu),v=g.dark,y=g.token,w="".concat(s,"-base-menu-").concat(n),b=d.useRef([]),C=jn(l==null?void 0:l.defaultOpenAll),k=Te(C,2),S=k[0],_=k[1],E=jn(function(){return l!=null&&l.defaultOpenAll?Vee(o)||[]:m===!1?!1:[]},{value:m===!1?void 0:m,onChange:i}),$=Te(E,2),M=$[0],P=$[1],R=jn([],{value:f,onChange:p?function(B){p&&B&&p(B)}:void 0}),O=Te(R,2),j=O[0],I=O[1];d.useEffect(function(){l!=null&&l.defaultOpenAll||m===!1||c&&(P(c),I(c))},[c.join("-")]),d.useEffect(function(){u&&(d2e=_ve({scriptUrl:u}))},[u]),d.useEffect(function(){if(c.join("-")!==(j||[]).join("-")&&I(c),!S&&m!==!1&&c.join("-")!==(M||[]).join("-")){var B=c;(l==null?void 0:l.autoClose)===!1&&(B=Array.from(new Set([].concat(lt(c),lt(M||[]))))),P(B)}else l!=null&&l.ignoreFlatMenu&&S?P(Vee(o)):_(!1)},[c.join("-")]);var A=d.useMemo(function(){return bOt(M,t)},[M&&M.join(","),t.layout,t.collapsed]),N=vOt(w,n),F=N.wrapSSR,K=N.hashId,L=d.useMemo(function(){return new yOt(q(q({},t),{},{token:y,menuRenderType:h,baseClassName:w,hashId:K}))},[t,y,h,w,K]);if(l!=null&&l.loading)return x.jsx("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:x.jsx(Kf,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});t.openKeys===!1&&!t.handleOpenChange&&(b.current=c);var V=t.postMenuData?t.postMenuData(o):o;return V&&(V==null?void 0:V.length)<1?null:F(d.createElement(ks,q(q({},A),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:b.current,theme:v?"dark":"light",selectedKeys:j,style:q({backgroundColor:"transparent",border:"none"},a),className:Ee(r,K,w,ne(ne({},"".concat(w,"-horizontal"),n==="horizontal"),"".concat(w,"-collapsed"),t.collapsed)),items:L.getNavMenuItems(V,0,0),onOpenChange:function(U){t.collapsed||P(U)}},t.menuProps)))};function wOt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return Ci("ProLayoutSiderMenuStylish",function(i){var a=q(q({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[ne({},"div".concat(i.proComponentsCls,"-layout"),ne({},"".concat(a.componentCls),n==null?void 0:n(a)))]:[]})}var xOt=["title","render"],SOt=te.memo(function(e){return x.jsx(x.Fragment,{children:e.children})}),COt=Qn.Sider,Yee=Qn._InternalSiderContext,_Ot=Yee===void 0?{Provider:SOt}:Yee,SH=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=t.logo,i=t.title,a=t.layout,o=t[n];if(o===!1)return null;var s=wH(r),l=x.jsx("h1",{children:i??"Ant Design Pro"});return o?o(s,t.collapsed?null:l,t):t.isMobile?null:a==="mix"&&n==="menuHeaderRender"?!1:t.collapsed?x.jsx("a",{children:s},"title"):x.jsxs("a",{children:[s,l]},"title")},Xee=function(t){var n,r=t.collapsed,i=t.originCollapsed,a=t.fixSiderbar,o=t.menuFooterRender,s=t.onCollapse,l=t.theme,c=t.siderWidth,u=t.isMobile,f=t.onMenuHeaderClick,p=t.breakpoint,h=p===void 0?"lg":p,m=t.style,g=t.layout,v=t.menuExtraRender,y=v===void 0?!1:v,w=t.links,b=t.menuContentRender,C=t.collapsedButtonRender,k=t.prefixCls,S=t.avatarProps,_=t.rightContentRender,E=t.actionsRender,$=t.onOpenChange,M=t.stylish,P=t.logoStyle,R=d.useContext(uu),O=R.hashId,j=d.useMemo(function(){return!(u||g==="mix")},[u,g]),I="".concat(k,"-sider"),A=64,N=wOt("".concat(I,".").concat(I,"-stylish"),{stylish:M,proLayoutCollapsedWidth:A}),F=Ee("".concat(I),O,ne(ne(ne(ne(ne(ne(ne({},"".concat(I,"-fixed"),a),"".concat(I,"-fixed-mix"),g==="mix"&&!u&&a),"".concat(I,"-collapsed"),t.collapsed),"".concat(I,"-layout-").concat(g),g&&!u),"".concat(I,"-light"),l!=="dark"),"".concat(I,"-mix"),g==="mix"&&!u),"".concat(I,"-stylish"),!!M)),K=SH(t),L=y&&y(t),V=d.useMemo(function(){return b!==!1&&d.createElement(f2e,q(q({},t),{},{key:"base-menu",mode:r&&!u?"vertical":"inline",handleOpenChange:$,style:{width:"100%"},className:"".concat(I,"-menu ").concat(O).trim()}))},[I,O,b,$,t]),B=(w||[]).map(function(ce,pe){return{className:"".concat(I,"-link"),label:ce,key:pe}}),U=d.useMemo(function(){return b?b(t,V):V},[b,V,t]),Y=d.useMemo(function(){if(!S)return null;var ce=S.title,pe=S.render,me=Ht(S,xOt),re=x.jsxs("div",{className:"".concat(I,"-actions-avatar"),children:[me!=null&&me.src||me!=null&&me.srcSet||me.icon||me.children?x.jsx(Pi,q({size:28},me)):null,S.title&&!r&&x.jsx("span",{children:ce})]});return pe?pe(S,re,t):re},[S,I,r]),ee=d.useMemo(function(){return E?x.jsx(Xr,{align:"center",size:4,direction:r?"vertical":"horizontal",className:Ee(["".concat(I,"-actions-list"),r&&"".concat(I,"-actions-list-collapsed"),O]),children:[E==null?void 0:E(t)].flat(1).map(function(ce,pe){return x.jsx("div",{className:"".concat(I,"-actions-list-item ").concat(O).trim(),children:ce},pe)})}):null},[E,I,r]),ie=d.useMemo(function(){return x.jsx(xH,{onItemClick:t.itemClick,appListRender:t.appListRender,appList:t.appList,prefixCls:t.prefixCls})},[t.appList,t.appListRender,t.prefixCls]),Z=d.useMemo(function(){if(C===!1)return null;var ce=x.jsx(mOt,{isMobile:u,collapsed:i,className:"".concat(I,"-collapsed-button"),onClick:function(){s==null||s(!i)}});return C?C(r,ce):ce},[C,u,i,I,r,s]),X=d.useMemo(function(){return!Y&&!ee?null:x.jsxs("div",{className:Ee("".concat(I,"-actions"),O,r&&"".concat(I,"-actions-collapsed")),children:[Y,ee]})},[ee,Y,I,r,O]),ae=d.useMemo(function(){var ce;return t!=null&&(ce=t.menu)!==null&&ce!==void 0&&ce.hideMenuWhenCollapsed&&r?"".concat(I,"-hide-menu-collapsed"):null},[I,r,t==null||(n=t.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),oe=o&&(o==null?void 0:o(t)),le=x.jsxs(x.Fragment,{children:[K&&x.jsxs("div",{className:Ee([Ee("".concat(I,"-logo"),O,ne({},"".concat(I,"-logo-collapsed"),r))]),onClick:j?f:void 0,id:"logo",style:P,children:[K,ie]}),L&&x.jsx("div",{className:Ee(["".concat(I,"-extra"),!K&&"".concat(I,"-extra-no-logo"),O]),children:L}),x.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:U}),x.jsxs(_Ot.Provider,{value:{},children:[w?x.jsx("div",{className:"".concat(I,"-links ").concat(O).trim(),children:x.jsx(ks,{inlineIndent:16,className:"".concat(I,"-link-menu ").concat(O).trim(),selectedKeys:[],openKeys:[],theme:l,mode:"inline",items:B})}):null,j&&x.jsxs(x.Fragment,{children:[X,!ee&&_?x.jsx("div",{className:Ee("".concat(I,"-actions"),O,ne({},"".concat(I,"-actions-collapsed"),r)),children:_==null?void 0:_(t)}):null]}),oe&&x.jsx("div",{className:Ee(["".concat(I,"-footer"),O,ne({},"".concat(I,"-footer-collapsed"),r)]),children:oe})]})]});return N.wrapSSR(x.jsxs(x.Fragment,{children:[a&&!u&&!ae&&x.jsx("div",{style:q({width:r?A:c,overflow:"hidden",flex:"0 0 ".concat(r?A:c,"px"),maxWidth:r?A:c,minWidth:r?A:c,transition:"all 0.2s ease 0s"},m)}),x.jsxs(COt,{collapsible:!0,trigger:null,collapsed:r,breakpoint:h===!1?void 0:h,onCollapse:function(pe){u||s==null||s(pe)},collapsedWidth:A,style:m,theme:l,width:c,className:Ee(F,O,ae),children:[ae?x.jsx("div",{className:"".concat(I,"-hide-when-collapsed ").concat(O).trim(),style:{height:"100%",width:"100%",opacity:ae?0:1},children:le}):le,Z]})]}))},kOt=function(t){var n,r,i,a,o;return ne({},t.componentCls,{"&-header-actions":{display:"flex",height:"100%",alignItems:"center","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:t.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:t.borderRadius,"&:hover":{backgroundColor:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:t.padding,paddingInlineEnd:t.padding,cursor:"pointer",color:(i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextRightActionsItem,"> div":{height:"44px",color:(a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:t.borderRadius,"&:hover":{backgroundColor:(o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgRightActionsItemHover}}}}})};function EOt(e){return Ci("ProLayoutRightContent",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[kOt(n)]})}var $Ot=["rightContentRender","avatarProps","actionsRender","headerContentRender"],MOt=["title","render"],p2e=function(t){var n=t.rightContentRender,r=t.avatarProps,i=t.actionsRender;t.headerContentRender;var a=Ht(t,$Ot),o=d.useContext(zn.ConfigContext),s=o.getPrefixCls,l="".concat(s(),"-pro-global-header"),c=EOt(l),u=c.wrapSSR,f=c.hashId,p=d.useState("auto"),h=Te(p,2),m=h[0],g=h[1],v=d.useMemo(function(){if(!r)return null;var C=r.title,k=r.render,S=Ht(r,MOt),_=[S!=null&&S.src||S!=null&&S.srcSet||S.icon||S.children?d.createElement(Pi,q(q({},S),{},{size:28,key:"avatar"})):null,C?x.jsx("span",{style:{marginInlineStart:8},children:C},"name"):void 0];return k?k(r,x.jsx("div",{children:_}),a):x.jsx("div",{children:_})},[r]),y=i||v?function(C){var k=i&&(i==null?void 0:i(C));return!k&&!v?null:Array.isArray(k)?u(x.jsxs("div",{className:"".concat(l,"-header-actions ").concat(f).trim(),children:[k.filter(Boolean).map(function(S,_){var E=!1;if(te.isValidElement(S)){var $;E=!!(S!=null&&($=S.props)!==null&&$!==void 0&&$["aria-hidden"])}return x.jsx("div",{className:Ee("".concat(l,"-header-actions-item ").concat(f),ne({},"".concat(l,"-header-actions-hover"),!E)),children:S},_)}),v&&x.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(f).trim(),children:v})]})):u(x.jsxs("div",{className:"".concat(l,"-header-actions ").concat(f).trim(),children:[k,v&&x.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(f).trim(),children:v})]}))}:void 0,w=Hht(function(){var C=pa(hr().mark(function k(S){return hr().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:g(S);case 1:case"end":return E.stop()}},k)}));return function(k){return C.apply(this,arguments)}}(),160),b=y||n;return x.jsx("div",{className:"".concat(l,"-right-content ").concat(f).trim(),style:{minWidth:m,height:"100%"},children:x.jsx("div",{style:{height:"100%"},children:x.jsx(Abe,{onResize:function(k){var S=k.width;w.run(S)},children:b?x.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:b(q(q({},a),{},{rightContentSize:m}))}):null})})})},TOt=function(t){var n,r;return ne({},t.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":ne({display:"flex",alignItems:"center"},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56)-12,40),"px")}})};function POt(e){return Ci("ProLayoutTopNavHeader",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[TOt(n)]})}var h2e=function(t){var n,r,i,a,o,s,l,c=d.useRef(null),u=t.onMenuHeaderClick,f=t.contentWidth,p=t.rightContentRender,h=t.className,m=t.style,g=t.headerContentRender,v=t.layout,y=t.actionsRender,w=d.useContext(zn.ConfigContext),b=w.getPrefixCls,C=d.useContext(uu),k=C.dark,S="".concat(t.prefixCls||b("pro"),"-top-nav-header"),_=POt(S),E=_.wrapSSR,$=_.hashId,M=void 0;t.menuHeaderRender!==void 0?M="menuHeaderRender":(v==="mix"||v==="top")&&(M="headerTitleRender");var P=SH(q(q({},t),{},{collapsed:!1}),M),R=d.useContext(uu),O=R.token,j=d.useMemo(function(){var I,A,N,F,K,L,V,B,U,Y,ee,ie,Z,X=x.jsx(zn,{theme:{hashed:Dv(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:q({},H0e({colorItemBg:((I=O.layout)===null||I===void 0||(I=I.header)===null||I===void 0?void 0:I.colorBgHeader)||"transparent",colorSubItemBg:((A=O.layout)===null||A===void 0||(A=A.header)===null||A===void 0?void 0:A.colorBgHeader)||"transparent",radiusItem:O.borderRadius,colorItemBgSelected:((N=O.layout)===null||N===void 0||(N=N.header)===null||N===void 0?void 0:N.colorBgMenuItemSelected)||(O==null?void 0:O.colorBgTextHover),itemHoverBg:((F=O.layout)===null||F===void 0||(F=F.header)===null||F===void 0?void 0:F.colorBgMenuItemHover)||(O==null?void 0:O.colorBgTextHover),colorItemBgSelectedHorizontal:((K=O.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.colorBgMenuItemSelected)||(O==null?void 0:O.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((L=O.layout)===null||L===void 0||(L=L.header)===null||L===void 0?void 0:L.colorTextMenu)||(O==null?void 0:O.colorTextSecondary),colorItemTextHoverHorizontal:((V=O.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorTextMenuActive)||(O==null?void 0:O.colorText),colorItemTextSelectedHorizontal:((B=O.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorTextMenuSelected)||(O==null?void 0:O.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((U=O.layout)===null||U===void 0||(U=U.header)===null||U===void 0?void 0:U.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((Y=O.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((ee=O.layout)===null||ee===void 0||(ee=ee.header)===null||ee===void 0?void 0:ee.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:O==null?void 0:O.colorBgElevated,subMenuItemBg:O==null?void 0:O.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:O==null?void 0:O.colorBgElevated}))},token:{colorBgElevated:((ie=O.layout)===null||ie===void 0||(ie=ie.header)===null||ie===void 0?void 0:ie.colorBgHeader)||"transparent"}},children:x.jsx(f2e,q(q(q({theme:k?"dark":"light"},t),{},{className:"".concat(S,"-base-menu ").concat($).trim()},t.menuProps),{},{style:q({width:"100%"},(Z=t.menuProps)===null||Z===void 0?void 0:Z.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return g?g(t,X):X},[(n=O.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(r=O.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemSelected,(i=O.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgMenuItemHover,(a=O.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextMenu,(o=O.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenuActive,(s=O.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorTextMenuSelected,(l=O.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorBgMenuElevated,O.borderRadius,O==null?void 0:O.colorBgTextHover,O==null?void 0:O.colorTextSecondary,O==null?void 0:O.colorText,O==null?void 0:O.colorTextBase,O.colorBgElevated,k,t,S,$,g]);return E(x.jsx("div",{className:Ee(S,$,h,ne({},"".concat(S,"-light"),!0)),style:m,children:x.jsxs("div",{ref:c,className:Ee("".concat(S,"-main"),$,ne({},"".concat(S,"-wide"),f==="Fixed"&&v==="top")),children:[P&&x.jsxs("div",{className:Ee("".concat(S,"-main-left ").concat($)),onClick:u,children:[x.jsx(xH,q({},t)),x.jsx("div",{className:"".concat(S,"-logo ").concat($).trim(),id:"logo",children:P},"logo")]}),x.jsx("div",{style:{flex:1},className:"".concat(S,"-menu ").concat($).trim(),children:j}),(p||y||t.avatarProps)&&x.jsx(p2e,q(q({rightContentRender:p},t),{},{prefixCls:S}))]})}))},OOt=function(t){var n,r,i;return ne({},t.componentCls,ne(ne(ne(ne({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorHeaderTitle)||t.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function ROt(e){return Ci("ProLayoutGlobalHeader",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[OOt(n)]})}var IOt=function(t,n){return t===!1?null:t?t(n,null):n},jOt=function(t){var n=t.isMobile,r=t.logo,i=t.collapsed,a=t.onCollapse,o=t.rightContentRender,s=t.menuHeaderRender,l=t.onMenuHeaderClick,c=t.className,u=t.style,f=t.layout,p=t.children,h=t.splitMenus,m=t.menuData,g=t.prefixCls,v=d.useContext(zn.ConfigContext),y=v.getPrefixCls,w=v.direction,b="".concat(g||y("pro"),"-global-header"),C=ROt(b),k=C.wrapSSR,S=C.hashId,_=Ee(c,b,S);if(f==="mix"&&!n&&h){var E=(m||[]).map(function(R){return q(q({},R),{},{children:void 0,routes:void 0})}),$=D$(E);return x.jsx(h2e,q(q({mode:"horizontal"},t),{},{splitMenus:!1,menuData:$}))}var M=Ee("".concat(b,"-logo"),S,ne(ne(ne({},"".concat(b,"-logo-rtl"),w==="rtl"),"".concat(b,"-logo-mix"),f==="mix"),"".concat(b,"-logo-mobile"),n)),P=x.jsx("span",{className:M,children:x.jsx("a",{children:wH(r)})},"logo");return k(x.jsxs("div",{className:_,style:q({},u),children:[n&&x.jsx("span",{className:"".concat(b,"-collapsed-button ").concat(S).trim(),onClick:function(){a==null||a(!i)},children:x.jsx(yve,{})}),n&&IOt(s,P),f==="mix"&&!n&&x.jsxs(x.Fragment,{children:[x.jsx(xH,q({},t)),x.jsx("div",{className:M,onClick:l,children:SH(q(q({},t),{},{collapsed:!1}),"headerTitleRender")})]}),x.jsx("div",{style:{flex:1},children:p}),(o||t.actionsRender||t.avatarProps)&&x.jsx(p2e,q({rightContentRender:o},t))]}))},NOt=function(t){var n,r,i,a;return ne({},"".concat(t.proComponentsCls,"-layout"),ne({},"".concat(t.antCls,"-layout-header").concat(t.componentCls),{height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(t.colorSplit),backgroundColor:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:t.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function AOt(e){return Ci("ProLayoutHeader",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[NOt(n)]})}function DOt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return Ci("ProLayoutHeaderStylish",function(i){var a=q(q({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[ne({},"div".concat(i.proComponentsCls,"-layout"),ne({},"".concat(a.componentCls),n==null?void 0:n(a)))]:[]})}var Zee=Qn.Header,FOt=function(t){var n,r,i,a=t.isMobile,o=t.fixedHeader,s=t.className,l=t.style,c=t.collapsed,u=t.prefixCls,f=t.onCollapse,p=t.layout,h=t.headerRender,m=t.headerContentRender,g=d.useContext(uu),v=g.token,y=d.useContext(zn.ConfigContext),w=d.useState(!1),b=Te(w,2),C=b[0],k=b[1],S=o||p==="mix",_=d.useCallback(function(){var I=p==="top",A=D$(t.menuData||[]),N=x.jsx(jOt,q(q({onCollapse:f},t),{},{menuData:A,children:m&&m(t,null)}));return I&&!a&&(N=x.jsx(h2e,q(q({mode:"horizontal",onCollapse:f},t),{},{menuData:A}))),h&&typeof h=="function"?h(t,N):N},[m,h,a,p,f,t]);d.useEffect(function(){var I,A=(y==null||(I=y.getTargetContainer)===null||I===void 0?void 0:I.call(y))||document.body,N=function(){var K,L=A.scrollTop;return L>(((K=v.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.heightLayoutHeader)||56)&&!C?(k(!0),!0):(C&&k(!1),!1)};if(S&&!(typeof window>"u"))return A.addEventListener("scroll",N,{passive:!0}),function(){A.removeEventListener("scroll",N)}},[(n=v.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,S,C]);var E=p==="top",$="".concat(u,"-layout-header"),M=AOt($),P=M.wrapSSR,R=M.hashId,O=DOt("".concat($,".").concat($,"-stylish"),{proLayoutCollapsedWidth:64,stylish:t.stylish}),j=Ee(s,R,$,ne(ne(ne(ne(ne(ne(ne({},"".concat($,"-fixed-header"),S),"".concat($,"-fixed-header-scroll"),C),"".concat($,"-mix"),p==="mix"),"".concat($,"-fixed-header-action"),!c),"".concat($,"-top-menu"),E),"".concat($,"-header"),!0),"".concat($,"-stylish"),!!t.stylish));return p==="side"&&!a?null:O.wrapSSR(P(x.jsx(x.Fragment,{children:x.jsxs(zn,{theme:{hashed:Dv(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[S&&x.jsx(Zee,{style:q({height:((r=v.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((i=v.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},l)}),x.jsx(Zee,{className:j,style:l,children:_()})]})})))};const LOt={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},BOt=q({},LOt),zOt={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalità di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello è visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},HOt=q({},zOt),UOt={"app.setting.pagestyle":"스타일 설정","app.setting.pagestyle.dark":"다크 모드","app.setting.pagestyle.light":"라이트 모드","app.setting.content-width":"컨텐츠 너비","app.setting.content-width.fixed":"고정","app.setting.content-width.fluid":"흐름","app.setting.themecolor":"테마 색상","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"네비게이션 모드","app.setting.regionalsettings":"영역별 설정","app.setting.regionalsettings.header":"헤더","app.setting.regionalsettings.menu":"메뉴","app.setting.regionalsettings.footer":"바닥글","app.setting.regionalsettings.menuHeader":"메뉴 헤더","app.setting.sidemenu":"메뉴 사이드 배치","app.setting.topmenu":"메뉴 상단 배치","app.setting.mixmenu":"혼합형 배치","app.setting.splitMenus":"메뉴 분리","app.setting.fixedheader":"헤더 고정","app.setting.fixedsidebar":"사이드바 고정","app.setting.fixedsidebar.hint":"'메뉴 사이드 배치'를 선택했을 때 동작함","app.setting.hideheader":"스크롤 중 헤더 감추기","app.setting.hideheader.hint":"'헤더 감추기 옵션'을 선택했을 때 동작함","app.setting.othersettings":"다른 설정","app.setting.weakmode":"고대비 모드","app.setting.copy":"설정값 복사","app.setting.loading":"테마 로딩 중","app.setting.copyinfo":"복사 성공. src/models/settings.js에 있는 defaultSettings를 교체해 주세요.","app.setting.production.hint":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},WOt=q({},UOt),VOt={"app.setting.pagestyle":"整体风格设置","app.setting.pagestyle.dark":"暗色菜单风格","app.setting.pagestyle.light":"亮色菜单风格","app.setting.pagestyle.realdark":"暗色风格(实验功能)","app.setting.content-width":"内容区域宽度","app.setting.content-width.fixed":"定宽","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主题色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"极光绿","app.setting.themecolor.techBlue":"科技蓝(默认)","app.setting.themecolor.daybreak":"拂晓","app.setting.themecolor.geekblue":"极客蓝","app.setting.themecolor.purple":"酱紫","app.setting.navigationmode":"导航模式","app.setting.sidermenutype":"侧边菜单类型","app.setting.sidermenutype-sub":"经典模式","app.setting.sidermenutype-group":"分组模式","app.setting.regionalsettings":"内容区域","app.setting.regionalsettings.header":"顶栏","app.setting.regionalsettings.menu":"菜单","app.setting.regionalsettings.footer":"页脚","app.setting.regionalsettings.menuHeader":"菜单头","app.setting.sidemenu":"侧边菜单布局","app.setting.topmenu":"顶部菜单布局","app.setting.mixmenu":"混合菜单布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定侧边菜单","app.setting.fixedsidebar.hint":"侧边菜单布局时可配置","app.setting.hideheader":"下滑时隐藏 Header","app.setting.hideheader.hint":"固定 Header 时可配置","app.setting.othersettings":"其他设置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷贝设置","app.setting.loading":"正在加载主题","app.setting.copyinfo":"拷贝成功,请到 src/defaultSettings.js 中替换默认配置","app.setting.production.hint":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},qOt=q({},VOt),KOt={"app.setting.pagestyle":"整體風格設置","app.setting.pagestyle.dark":"暗色菜單風格","app.setting.pagestyle.realdark":"暗色風格(实验功能)","app.setting.pagestyle.light":"亮色菜單風格","app.setting.content-width":"內容區域寬度","app.setting.content-width.fixed":"定寬","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主題色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"極光綠","app.setting.themecolor.techBlue":"科技蓝(默認)","app.setting.themecolor.daybreak":"拂曉藍","app.setting.themecolor.geekblue":"極客藍","app.setting.themecolor.purple":"醬紫","app.setting.navigationmode":"導航模式","app.setting.sidemenu":"側邊菜單布局","app.setting.topmenu":"頂部菜單布局","app.setting.mixmenu":"混合菜單布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定側邊菜單","app.setting.fixedsidebar.hint":"側邊菜單布局時可配置","app.setting.hideheader":"下滑時隱藏 Header","app.setting.hideheader.hint":"固定 Header 時可配置","app.setting.othersettings":"其他設置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷貝設置","app.setting.loading":"正在加載主題","app.setting.copyinfo":"拷貝成功,請到 src/defaultSettings.js 中替換默認配置","app.setting.production.hint":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},GOt=q({},KOt);var Qee={"zh-CN":qOt,"zh-TW":GOt,"en-US":BOt,"it-IT":HOt,"ko-KR":WOt},YOt=function(){if(!Pz())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},XOt=function(){var t=YOt();return Qee[t]||Qee["zh-CN"]},Jy={},Jee=oi&&oi.__classPrivateFieldGet||function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},ete=oi&&oi.__classPrivateFieldSet||function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},X1;Object.defineProperty(Jy,"__esModule",{value:!0});Jy.TokenData=void 0;Jy.parse=_H;Jy.compile=iRt;var GN=Jy.match=sRt;const m2e="/",CH=e=>e,ZOt=/^[$_\p{ID_Start}]$/u,QOt=/^[$\u200c\u200d\p{ID_Continue}]$/u,r5="https://git.new/pathToRegexpError",JOt={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function _3(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function eRt(e){return e.sensitive?"s":"is"}function*tRt(e){const t=[...e];let n=0;function r(){let i="";if(ZOt.test(t[++n]))for(i+=t[n];QOt.test(t[++n]);)i+=t[n];else if(t[n]==='"'){let a=n;for(;naRt(i,t,n));return i=>{const a=[""];for(const o of r){const[s,...l]=o(i);a[0]+=s,a.push(...l)}return a}}function aRt(e,t,n){if(e.type==="text")return()=>[e.value];if(e.type==="group"){const i=g2e(e.tokens,t,n);return a=>{const[o,...s]=i(a);return s.length?[""]:[o]}}const r=n||CH;return e.type==="wildcard"&&n!==!1?i=>{const a=i[e.name];if(a==null)return["",e.name];if(!Array.isArray(a)||a.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[a.map((o,s)=>{if(typeof o!="string")throw new TypeError(`Expected "${e.name}/${s}" to be a string`);return r(o)}).join(t)]}:i=>{const a=i[e.name];if(a==null)return["",e.name];if(typeof a!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[r(a)]}}function oRt(e,t={}){const{decode:n=decodeURIComponent,delimiter:r=m2e,end:i=!0,trailing:a=!0}=t,o=eRt(t),s=[],l=[];for(const{tokens:p}of e)for(const h of g_(p,0,[])){const m=lRt(h,r,l);s.push(m)}let c=`^(?:${s.join("|")})`;a&&(c+=`(?:${_3(r)}$)?`),c+=i?"$":`(?=${_3(r)}|$)`;const u=new RegExp(c,o),f=l.map(p=>n===!1?CH:p.type==="param"?n:h=>h.split(r).map(n));return Object.assign(function(h){const m=u.exec(h);if(!m)return!1;const{0:g}=m,v=Object.create(null);for(let y=1;yi instanceof F$?i:_H(i,t));return oRt(r,t)}function*g_(e,t,n){if(t===e.length)return yield n;const r=e[t];if(r.type==="group"){const i=n.slice();for(const a of g_(r.tokens,0,i))yield*g_(e,t+1,a)}else n.push(r);yield*g_(e,t+1,n)}function lRt(e,t,n){let r="",i="",a=!0;for(let o=0;oi.length===1)?`[^${_3(n.join(""))}]`:`(?:(?!${n.map(_3).join("|")}).)`}var uRt=function(t,n,r){if(r){var i=lt(r.keys()).find(function(o){try{return o.startsWith("http")?!1:GN(o)(t)}catch(s){return console.log("key",o,s),!1}});if(i)return r.get(i)}if(n){var a=Object.keys(n).find(function(o){try{return o!=null&&o.startsWith("http")?!1:GN(o)(t)}catch(s){return console.log("key",o,s),!1}});if(a)return n[a]}return{path:""}},tte=function(t,n){var r=t.pathname,i=r===void 0?"/":r,a=t.breadcrumb,o=t.breadcrumbMap,s=t.formatMessage,l=t.title,c=t.menu,u=c===void 0?{locale:!1}:c,f=n?"":l||"",p=uRt(i,a,o);if(!p)return{title:f,id:"",pageName:f};var h=p.name;return u.locale!==!1&&p.locale&&s&&(h=s({id:p.locale||"",defaultMessage:p.name})),h?n||!l?{title:h,id:p.locale||"",pageName:h}:{title:"".concat(h," - ").concat(l),id:p.locale||"",pageName:h}:{title:f,id:p.locale||"",pageName:f}},ms={};function YN(e){"@babel/helpers - typeof";return YN=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},YN(e)}Object.defineProperty(ms,"__esModule",{value:!0});var iw=ms.pathToRegexp=ms.tokensToRegexp=ms.regexpToFunction=ms.match=ms.tokensToFunction=ms.compile=ms.parse=void 0;function dRt(e){for(var t=[],n=0;n=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=e[a++];continue}break}if(!i)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:i}),n=a;continue}if(r==="("){var s=1,l="",a=n+1;if(e[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a-1:C===void 0;i||(h+="(?:"+p+"(?="+f+"))?"),k||(h+="(?="+p+"|"+f+")")}return new RegExp(h,EH(n))}ms.tokensToRegexp=b2e;function $H(e,t,n){return e instanceof RegExp?hRt(e,t):Array.isArray(e)?mRt(e,t,n):gRt(e,t,n)}iw=ms.pathToRegexp=$H;function dd(e,t){return t>>>e|t<<32-e}function vRt(e,t,n){return e&t^~e&n}function yRt(e,t,n){return e&t^e&n^t&n}function bRt(e){return dd(2,e)^dd(13,e)^dd(22,e)}function wRt(e){return dd(6,e)^dd(11,e)^dd(25,e)}function xRt(e){return dd(7,e)^dd(18,e)^e>>>3}function SRt(e){return dd(17,e)^dd(19,e)^e>>>10}function CRt(e,t){return e[t&15]+=SRt(e[t+14&15])+e[t+9&15]+xRt(e[t+1&15])}var _Rt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Ei,Bo,Aa,kRt="0123456789abcdef";function nte(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function ERt(){Ei=new Array(8),Bo=new Array(2),Aa=new Array(64),Bo[0]=Bo[1]=0,Ei[0]=1779033703,Ei[1]=3144134277,Ei[2]=1013904242,Ei[3]=2773480762,Ei[4]=1359893119,Ei[5]=2600822924,Ei[6]=528734635,Ei[7]=1541459225}function XN(){var e,t,n,r,i,a,o,s,l,c,u=new Array(16);e=Ei[0],t=Ei[1],n=Ei[2],r=Ei[3],i=Ei[4],a=Ei[5],o=Ei[6],s=Ei[7];for(var f=0;f<16;f++)u[f]=Aa[(f<<2)+3]|Aa[(f<<2)+2]<<8|Aa[(f<<2)+1]<<16|Aa[f<<2]<<24;for(var p=0;p<64;p++)l=s+wRt(i)+vRt(i,a,o)+_Rt[p],p<16?l+=u[p]:l+=CRt(u,p),c=bRt(e)+yRt(e,t,n),s=o,o=a,a=i,i=nte(r,l),r=n,n=t,t=e,e=nte(l,c);Ei[0]+=e,Ei[1]+=t,Ei[2]+=n,Ei[3]+=r,Ei[4]+=i,Ei[5]+=a,Ei[6]+=o,Ei[7]+=s}function $Rt(e,t){var n,r,i=0;r=Bo[0]>>3&63;var a=t&63;for((Bo[0]+=t<<3)>29,n=0;n+63>3&63;if(Aa[e++]=128,e<=56)for(var t=e;t<56;t++)Aa[t]=0;else{for(var n=e;n<64;n++)Aa[n]=0;XN();for(var r=0;r<56;r++)Aa[r]=0}Aa[56]=Bo[1]>>>24&255,Aa[57]=Bo[1]>>>16&255,Aa[58]=Bo[1]>>>8&255,Aa[59]=Bo[1]&255,Aa[60]=Bo[0]>>>24&255,Aa[61]=Bo[0]>>>16&255,Aa[62]=Bo[0]>>>8&255,Aa[63]=Bo[0]&255,XN()}function TRt(){for(var e=new String,t=0;t<8;t++)for(var n=28;n>=0;n-=4)e+=kRt.charAt(Ei[t]>>>n&15);return e}function PRt(e){return ERt(),$Rt(e,e.length),MRt(),TRt()}function ZN(e){"@babel/helpers - typeof";return ZN=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZN(e)}var ORt=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function RRt(e,t){return NRt(e)||jRt(e,t)||MH(e,t)||IRt()}function IRt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jRt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){a=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function NRt(e){if(Array.isArray(e))return e}function ARt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=MH(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){o=!0,s=c},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw s}}}}function DRt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FRt(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function WRt(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function k3(e,t){return k3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},k3(e,t)}function E3(e){return E3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},E3(e)}function rte(e){return KRt(e)||qRt(e)||MH(e)||VRt()}function VRt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MH(e,t){if(e){if(typeof e=="string")return JN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JN(e,t)}}function qRt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KRt(e){if(Array.isArray(e))return JN(e)}function JN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function YRt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function ite(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Da(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return t.endsWith("/*")?t.replace("/*","/"):(t||n).startsWith("/")||TH(t)?t:"/".concat(n,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},JRt=function(t,n){var r=t.menu,i=r===void 0?{}:r,a=t.indexRoute,o=t.path,s=o===void 0?"":o,l=t.children||[],c=i.name,u=c===void 0?t.name:c,f=i.icon,p=f===void 0?t.icon:f,h=i.hideChildren,m=h===void 0?t.hideChildren:h,g=i.flatMenu,v=g===void 0?t.flatMenu:g,y=a&&Object.keys(a).join(",")!=="redirect"?[Da({path:s,menu:i},a)].concat(l||[]):l,w=Da({},t);if(u&&(w.name=u),p&&(w.icon=p),y&&y.length){if(m)return delete w.children,w;var b=PH(Da(Da({},n),{},{data:y}),t);if(v)return b;delete w[El]}return w},Zm=function(t){return Array.isArray(t)&&t.length>0};function PH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=e.data,r=e.formatMessage,i=e.parentName,a=e.locale;return!n||!Array.isArray(n)?[]:n.filter(function(o){return o?Zm(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var s,l;return!(o==null||(s=o.menu)===null||s===void 0)&&s.name||o!=null&&o.flatMenu||!(o==null||(l=o.menu)===null||l===void 0)&&l.flatMenu?!0:o.menu!==!1}).map(function(o){var s=Da(Da({},o),{},{path:o.path||o.originPath});return!s.children&&s[El]&&(s.children=s[El],delete s[El]),s.unaccessible&&delete s.name,s.path==="*"&&(s.path="."),s.path==="/*"&&(s.path="."),!s.path&&s.originPath&&(s.path=s.originPath),s}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},s=o.children||o[El]||[],l=x2e(o.path,t?t.path:"/"),c=o.name,u=QRt(o,i||"menu"),f=u!==!1&&a!==!1&&r&&u?r({id:u,defaultMessage:c}):c,p=t.pro_layout_parentKeys,h=p===void 0?[]:p;t.children,t.icon,t.flatMenu,t.indexRoute,t.routes;var m=GRt(t,ORt),g=new Set([].concat(rte(h),rte(o.parentKeys||[])));t.key&&g.add(t.key);var v=Da(Da(Da({},m),{},{menu:void 0},o),{},{path:l,locale:u,key:o.key||ZRt(Da(Da({},o),{},{path:l})),pro_layout_parentKeys:Array.from(g).filter(function(w){return w&&w!=="/"})});if(f?v.name=f:delete v.name,v.menu===void 0&&delete v.menu,Zm(s)){var y=PH(Da(Da({},e),{},{data:s,parentName:u||""}),v);Zm(y)&&(v.children=y)}return JRt(v,e)}).flat(1)}var eIt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(n){return n&&(n.name||Zm(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=Da({},n),i=r.children||n[El]||[];if(delete r[El],Zm(i)&&!r.hideChildrenInMenu&&i.some(function(o){return o&&!!o.name})){var a=e(i);if(a.length)return Da(Da({},r),{},{children:a})}return Da({},n)}).filter(function(n){return n})},tIt=function(e){BRt(n,e);var t=zRt(n);function n(){return DRt(this,n),t.apply(this,arguments)}return LRt(n,[{key:"get",value:function(i){var a;try{var o=ARt(this.entries()),s;try{for(o.s();!(s=o.n()).done;){var l=RRt(s.value,2),c=l[0],u=l[1],f=ix(c);if(!TH(c)&&iw(f,[]).test(i)){a=u;break}}}catch(p){o.e(p)}finally{o.f()}}catch{a=void 0}return a}}]),n}(QN(Map)),nIt=function(t){var n=new tIt,r=function i(a,o){a.forEach(function(s){var l=s.children||s[El]||[];Zm(l)&&i(l,s);var c=x2e(s.path,o?o.path:"/");n.set(ix(c),s)})};return r(t),n},rIt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(n){var r=n.children||n[El];if(Zm(r)){var i=e(r);if(i.length)return Da({},n)}var a=Da({},n);return delete a[El],delete a.children,a}).filter(function(n){return n})},iIt=function(t,n,r,i){var a=PH({data:t,formatMessage:r,locale:n}),o=i?rIt(a):eIt(a),s=nIt(a);return{breadcrumb:s,menuData:o}};function ate(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yb(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[],n={};return t.forEach(function(r){var i=Yb({},r);if(!(!i||!i.key)){!i.children&&i[El]&&(i.children=i[El],delete i[El]);var a=i.children||[];n[ix(i.path||i.key||"/")]=Yb({},i),n[i.key||i.path||"/"]=Yb({},i),a&&(n=Yb(Yb({},n),e(a)))}}),n},sIt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t.filter(function(i){if(i==="/"&&n==="/")return!0;if(i!=="/"&&i!=="/*"&&i&&!TH(i)){var a=ix(i);try{if(r&&iw("".concat(a)).test(n)||iw("".concat(a),[]).test(n)||iw("".concat(a,"/(.*)")).test(n))return!0}catch{}}return!1}).sort(function(i,a){return i===n?10:a===n?-10:i.substr(1).split("/").length-a.substr(1).split("/").length})},lIt=function(t,n,r,i){var a=oIt(n),o=Object.keys(a),s=sIt(o,t||"/",i);return!s||s.length<1?[]:s.map(function(l){var c=a[l]||{pro_layout_parentKeys:"",key:""},u=new Map,f=(c.pro_layout_parentKeys||[]).map(function(p){return u.has(p)?null:(u.set(p,!0),a[p])}).filter(function(p){return p});return c.key&&f.push(c),f}).flat(1)},cIt=function(t){var n=d.useContext(uu),r=n.hashId,i=t.style,a=t.prefixCls,o=t.children,s=t.hasPageContainer,l=s===void 0?0:s,c=Ee("".concat(a,"-content"),r,ne(ne({},"".concat(a,"-has-header"),t.hasHeader),"".concat(a,"-content-has-page-container"),l>0)),u=t.ErrorBoundary||Cht;return t.ErrorBoundary===!1?x.jsx(Qn.Content,{className:c,style:i,children:o}):x.jsx(u,{children:x.jsx(Qn.Content,{className:c,style:i,children:o})})},uIt=function(){return x.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[x.jsxs("defs",{children:[x.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[x.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),x.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),x.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[x.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),x.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),x.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),x.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[x.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),x.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),x.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),x.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[x.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),x.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),x.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),x.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:x.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:x.jsx("g",{transform:"translate(20.000000, 20.000000)",children:x.jsxs("g",{children:[x.jsxs("g",{fillRule:"nonzero",children:[x.jsxs("g",{children:[x.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),x.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),x.jsx("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),x.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},ote=new ir("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),dIt=function(t){var n,r,i,a,o,s,l,c,u,f,p,h;return ne({},"".concat(t.proComponentsCls,"-layout"),ne(ne(ne({},"".concat(t.antCls,"-layout-sider").concat(t.componentCls),{background:((n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),t.componentCls,ne(ne(ne(ne(ne(ne(ne(ne(ne({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(t.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.paddingInlineLayoutMenu,paddingBlock:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(t.colorSplit),marginInlineEnd:-1}),"".concat(t.antCls,"-menu"),ne(ne({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:t.fontSizeSM,paddingBottom:4}),"".concat(t.antCls,"-menu-item:not(").concat(t.antCls,"-menu-item-selected):hover"),{color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((s=t.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(l=t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorTextMenuTitle,animationName:ote,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":ne({flexDirection:"column-reverse",margin:0,padding:12},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(c=t.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(u=t.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:t.borderRadius,"&:hover":{background:t.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:t.marginXS,borderRadius:t.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:t.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(t.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(f=t.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:t.fontSize,animationName:ote,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(t.componentCls).concat(t.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((p=t.layout)===null||p===void 0||(p=p.header)===null||p===void 0?void 0:p.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((h=t.layout)===null||h===void 0||(h=h.header)===null||h===void 0?void 0:h.heightLayoutHeader)||56,"px")}}))};function fIt(e,t){var n=t.proLayoutCollapsedWidth;return Ci("ProLayoutSiderMenu",function(r){var i=q(q({},r),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:n});return[dIt(i)]})}var ste=function(t){var n,r=t.isMobile,i=t.siderWidth,a=t.collapsed,o=t.onCollapse,s=t.style,l=t.className,c=t.hide,u=t.prefixCls,f=t.getContainer,p=d.useContext(uu),h=p.token;d.useEffect(function(){r===!0&&(o==null||o(!0))},[r]);var m=Fl(t,["className","style"]),g=te.useContext(zn.ConfigContext),v=g.direction,y=fIt("".concat(u,"-sider"),{proLayoutCollapsedWidth:64}),w=y.wrapSSR,b=y.hashId,C=Ee("".concat(u,"-sider"),l,b);if(c)return null;var k=u$(!a,function(){return o==null?void 0:o(!0)});return w(r?x.jsx(Ch,q(q({placement:v==="rtl"?"right":"left",className:Ee("".concat(u,"-drawer-sider"),l)},k),{},{style:q({padding:0,height:"100vh"},s),onClose:function(){o==null||o(!0)},maskClosable:!0,closable:!1,getContainer:f||!1,width:i,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=h.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:x.jsx(Xee,q(q({},m),{},{isMobile:!0,className:C,collapsed:r?!1:a,splitMenus:!1,originCollapsed:a}))})):x.jsx(Xee,q(q({className:C,originCollapsed:a},m),{},{style:s})))},pIt=function(){var t;return typeof process>"u"?If:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||If},hIt=function(t){var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y,w,b,C,k,S,_,E,$,M,P,R,O,j,I,A,N;return(n=pIt())!==null&&n!==void 0&&n.startsWith("5")?{}:ne(ne(ne({},t.componentCls,ne(ne({width:"100%",height:"100%"},"".concat(t.proComponentsCls,"-base-menu"),(S={color:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu},ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(S,"".concat(t.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu}),"& ".concat(t.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(t.antCls,"-menu-submenu-expand-icon, ").concat(t.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(t.antCls,"-menu"),ne(ne({color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu},"".concat(t.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-inline"),ne({},"".concat(t.antCls,"-menu-selected::after,").concat(t.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(t.antCls,"-menu-sub ").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,`-menu-item:active, `).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),"&".concat(t.antCls,"-menu-light"),ne({},"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-item-active, `).concat(t.antCls,`-menu-submenu-active, @@ -619,65 +619,65 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).concat(t.antCls,"-menu-submenu-title:hover"),ne({color:(c=t.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenuActive,borderRadius:t.borderRadius,backgroundColor:"".concat((u=t.layout)===null||u===void 0||(u=u.header)===null||u===void 0?void 0:u.colorBgMenuItemHover," !important")},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(f=t.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuActive}))),"".concat(t.antCls,"-menu-item-selected"),{color:(p=t.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuSelected}),ne(ne(ne(ne(ne(S,"".concat(t.antCls,"-menu-submenu-selected"),{color:(h=t.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuSelected}),"&".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-inline) ").concat(t.antCls,"-menu-submenu-open"),{color:(m=t.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenuSelected}),"&".concat(t.antCls,"-menu-vertical"),ne({},"".concat(t.antCls,"-menu-submenu-selected"),{borderRadius:t.borderRadius,color:(g=t.layout)===null||g===void 0||(g=g.sider)===null||g===void 0?void 0:g.colorTextMenuSelected})),"".concat(t.antCls,"-menu-submenu:hover > ").concat(t.antCls,"-menu-submenu-title > ").concat(t.antCls,"-menu-submenu-arrow"),{color:(v=t.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorTextMenuActive}),"&".concat(t.antCls,"-menu-horizontal"),ne(ne(ne(ne({},"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-submenu:hover, `).concat(t.antCls,`-menu-item-active, - `).concat(t.antCls,"-menu-submenu-active"),{borderRadius:4,transition:"none",color:(y=t.layout)===null||y===void 0||(y=y.header)===null||y===void 0?void 0:y.colorTextMenuActive,backgroundColor:"".concat((b=t.layout)===null||b===void 0||(b=b.header)===null||b===void 0?void 0:b.colorBgMenuItemHover," !important")}),"".concat(t.antCls,`-menu-item-open, + `).concat(t.antCls,"-menu-submenu-active"),{borderRadius:4,transition:"none",color:(y=t.layout)===null||y===void 0||(y=y.header)===null||y===void 0?void 0:y.colorTextMenuActive,backgroundColor:"".concat((w=t.layout)===null||w===void 0||(w=w.header)===null||w===void 0?void 0:w.colorBgMenuItemHover," !important")}),"".concat(t.antCls,`-menu-item-open, `).concat(t.antCls,`-menu-submenu-open, `).concat(t.antCls,`-menu-item-selected, - `).concat(t.antCls,"-menu-submenu-selected"),ne({backgroundColor:(w=t.layout)===null||w===void 0||(w=w.header)===null||w===void 0?void 0:w.colorBgMenuItemSelected,borderRadius:t.borderRadius,transition:"none",color:"".concat((_=t.layout)===null||_===void 0||(_=_.header)===null||_===void 0?void 0:_.colorTextMenuSelected," !important")},"".concat(t.antCls,"-menu-submenu-arrow"),{color:"".concat((k=t.layout)===null||k===void 0||(k=k.header)===null||k===void 0?void 0:k.colorTextMenuSelected," !important")})),"> ".concat(t.antCls,"-menu-item, > ").concat(t.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),"> ".concat(t.antCls,"-menu-item::after, > ").concat(t.antCls,"-menu-submenu::after"),{display:"none"})))),"".concat(t.proComponentsCls,"-top-nav-header-base-menu"),ne(ne({},"&".concat(t.antCls,"-menu"),ne({color:(C=t.layout)===null||C===void 0||(C=C.header)===null||C===void 0?void 0:C.colorTextMenu},"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-light"),ne(ne({},"".concat(t.antCls,`-menu-item:hover, + `).concat(t.antCls,"-menu-submenu-selected"),ne({backgroundColor:(b=t.layout)===null||b===void 0||(b=b.header)===null||b===void 0?void 0:b.colorBgMenuItemSelected,borderRadius:t.borderRadius,transition:"none",color:"".concat((C=t.layout)===null||C===void 0||(C=C.header)===null||C===void 0?void 0:C.colorTextMenuSelected," !important")},"".concat(t.antCls,"-menu-submenu-arrow"),{color:"".concat((k=t.layout)===null||k===void 0||(k=k.header)===null||k===void 0?void 0:k.colorTextMenuSelected," !important")})),"> ".concat(t.antCls,"-menu-item, > ").concat(t.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),"> ".concat(t.antCls,"-menu-item::after, > ").concat(t.antCls,"-menu-submenu::after"),{display:"none"})))),"".concat(t.proComponentsCls,"-top-nav-header-base-menu"),ne(ne({},"&".concat(t.antCls,"-menu"),ne({color:(_=t.layout)===null||_===void 0||(_=_.header)===null||_===void 0?void 0:_.colorTextMenu},"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-light"),ne(ne({},"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-item-active, `).concat(t.antCls,`-menu-submenu-active, - `).concat(t.antCls,"-menu-submenu-title:hover"),ne({color:(E=t.layout)===null||E===void 0||(E=E.header)===null||E===void 0?void 0:E.colorTextMenuActive,borderRadius:t.borderRadius,transition:"none",backgroundColor:($=t.layout)===null||$===void 0||($=$.header)===null||$===void 0?void 0:$.colorBgMenuItemSelected},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(M=t.layout)===null||M===void 0||(M=M.header)===null||M===void 0?void 0:M.colorTextMenuActive})),"".concat(t.antCls,"-menu-item-selected"),{color:(P=t.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.colorTextMenuSelected,borderRadius:t.borderRadius,backgroundColor:(I=t.layout)===null||I===void 0||(I=I.header)===null||I===void 0?void 0:I.colorBgMenuItemSelected})))),"".concat(t.antCls,"-menu-sub").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,"-menu-submenu-popup"),ne(ne(ne(ne({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(t.antCls,"-menu"),ne({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(t.antCls,`-menu-item:active, - `).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(t.antCls,"-menu-item-selected"),{color:(O=t.layout)===null||O===void 0||(O=O.sider)===null||O===void 0?void 0:O.colorTextMenuSelected}),"".concat(t.antCls,"-menu-submenu-selected"),{color:(A=t.layout)===null||A===void 0||(A=A.sider)===null||A===void 0?void 0:A.colorTextMenuSelected}),"".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),ne(ne({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:t.borderRadius,color:(R=t.layout)===null||R===void 0||(R=R.sider)===null||R===void 0?void 0:R.colorTextMenuSelected}),"".concat(t.antCls,`-menu-item:hover, + `).concat(t.antCls,"-menu-submenu-title:hover"),ne({color:(E=t.layout)===null||E===void 0||(E=E.header)===null||E===void 0?void 0:E.colorTextMenuActive,borderRadius:t.borderRadius,transition:"none",backgroundColor:($=t.layout)===null||$===void 0||($=$.header)===null||$===void 0?void 0:$.colorBgMenuItemSelected},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(M=t.layout)===null||M===void 0||(M=M.header)===null||M===void 0?void 0:M.colorTextMenuActive})),"".concat(t.antCls,"-menu-item-selected"),{color:(P=t.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.colorTextMenuSelected,borderRadius:t.borderRadius,backgroundColor:(R=t.layout)===null||R===void 0||(R=R.header)===null||R===void 0?void 0:R.colorBgMenuItemSelected})))),"".concat(t.antCls,"-menu-sub").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,"-menu-submenu-popup"),ne(ne(ne(ne({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(t.antCls,"-menu"),ne({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(t.antCls,`-menu-item:active, + `).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(t.antCls,"-menu-item-selected"),{color:(O=t.layout)===null||O===void 0||(O=O.sider)===null||O===void 0?void 0:O.colorTextMenuSelected}),"".concat(t.antCls,"-menu-submenu-selected"),{color:(j=t.layout)===null||j===void 0||(j=j.sider)===null||j===void 0?void 0:j.colorTextMenuSelected}),"".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),ne(ne({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:t.borderRadius,color:(I=t.layout)===null||I===void 0||(I=I.sider)===null||I===void 0?void 0:I.colorTextMenuSelected}),"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-item-active, - `).concat(t.antCls,"-menu-submenu-title:hover"),ne({color:(j=t.layout)===null||j===void 0||(j=j.sider)===null||j===void 0?void 0:j.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(N=t.layout)===null||N===void 0||(N=N.sider)===null||N===void 0?void 0:N.colorTextMenuActive}))))},cRt=function(t){var n,r,i,a;return ne(ne({},"".concat(t.antCls,"-layout"),{backgroundColor:"transparent !important"}),t.componentCls,ne(ne(ne(ne({},"& ".concat(t.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(t.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((n=t.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(r=t.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingBlockPageContainerContent,paddingInline:(i=t.layout)===null||i===void 0||(i=i.pageContainer)===null||i===void 0?void 0:i.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(t.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(t.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(a=t.layout)===null||a===void 0?void 0:a.bgLayout}))};function uRt(e){return _i("ProLayout",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[cRt(n),lRt(n)]})}function dRt(e){if(!e||e==="/")return["/"];var t=e.split("/").filter(function(n){return n});return t.map(function(n,r){return"/".concat(t.slice(0,r+1).join("/"))})}var fRt=function(){var t;return typeof process>"u"?Rf:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||Rf},pRt=function(t,n,r){var i=t,a=i.breadcrumbName,o=i.title,s=i.path,l=r.findIndex(function(c){return c.linkPath===t.path})===r.length-1;return l?x.jsx("span",{children:o||a}):x.jsx("span",{onClick:s?function(){return location.href=s}:void 0,children:o||a})},hRt=function(t,n){var r=n.formatMessage,i=n.menu;return t.locale&&r&&(i==null?void 0:i.locale)!==!1?r({id:t.locale,defaultMessage:t.name}):t.name},mRt=function(t,n){var r=t.get(n);if(!r){var i=Array.from(t.keys())||[],a=i.find(function(o){try{return o!=null&&o.startsWith("http")?!1:VN(o.replace("?",""))(n)}catch(s){return console.log("path",o,s),!1}});a&&(r=t.get(a))}return r||{path:""}},gRt=function(t){var n=t.location,r=t.breadcrumbMap;return{location:n,breadcrumbMap:r}},vRt=function(t,n,r){var i=dRt(t==null?void 0:t.pathname),a=i.map(function(o){var s=mRt(n,o),l=hRt(s,r),c=s.hideInBreadcrumb;return l&&!c?{linkPath:o,breadcrumbName:l,title:l,component:s.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(o){return o&&o.linkPath});return a},yRt=function(t){var n=gRt(t),r=n.location,i=n.breadcrumbMap;return r&&r.pathname&&i?vRt(r,i,t):[]},bRt=function(t,n){var r=t.breadcrumbRender,i=t.itemRender,a=n.breadcrumbProps||{},o=a.minLength,s=o===void 0?2:o,l=yRt(t),c=function(p){for(var h=i||pRt,m=arguments.length,g=new Array(m>1?m-1:0),v=1;v-1?{items:u,itemRender:c}:{routes:u,itemRender:c}};function wRt(e){return ct(e).reduce(function(t,n){var r=Te(n,2),i=r[0],a=r[1];return t[i]=a,t},{})}var xRt=function e(t,n,r,i){var a=QIt(t,(n==null?void 0:n.locale)||!1,r,!0),o=a.menuData,s=a.breadcrumb;return i?e(i(o),n,r,void 0):{breadcrumb:wRt(s),breadcrumbMap:s,menuData:o}},SRt=function(t){var n=d.useState({}),r=Te(n,2),i=r[0],a=r[1];return d.useEffect(function(){a(oc({layout:Kt(t.layout)!=="object"?t.layout:void 0,navTheme:t.navTheme,menuRender:t.menuRender,footerRender:t.footerRender,menuHeaderRender:t.menuHeaderRender,headerRender:t.headerRender,fixSiderbar:t.fixSiderbar}))},[t.layout,t.navTheme,t.menuRender,t.footerRender,t.menuHeaderRender,t.headerRender,t.fixSiderbar]),i},CRt=["id","defaultMessage"],_Rt=["fixSiderbar","navTheme","layout"],ate=0,kRt=function(t,n){var r;return t.headerRender===!1||t.pure?null:x.jsx(IOt,q(q({matchMenuKeys:n},t),{},{stylish:(r=t.stylish)===null||r===void 0?void 0:r.header}))},ERt=function(t){return t.footerRender===!1||t.pure?null:t.footerRender?t.footerRender(q({},t),x.jsx(XPt,{})):null},$Rt=function(t,n){var r,i=t.layout,a=t.isMobile,o=t.selectedKeys,s=t.openKeys,l=t.splitMenus,c=t.suppressSiderWhenMenuEmpty,u=t.menuRender;if(t.menuRender===!1||t.pure)return null;var f=t.menuData;if(l&&(s!==!1||i==="mix")&&!a){var p=o||n,h=Te(p,1),m=h[0];if(m){var g;f=((g=t.menuData)===null||g===void 0||(g=g.find(function(w){return w.key===m}))===null||g===void 0?void 0:g.children)||[]}else f=[]}var v=j$(f||[]);if(v&&(v==null?void 0:v.length)<1&&(l||c))return null;if(i==="top"&&!a){var y;return x.jsx(ite,q(q({matchMenuKeys:n},t),{},{hide:!0,stylish:(y=t.stylish)===null||y===void 0?void 0:y.sider}))}var b=x.jsx(ite,q(q({matchMenuKeys:n},t),{},{menuData:v,stylish:(r=t.stylish)===null||r===void 0?void 0:r.sider}));return u?u(t,b):b},MRt=function(t,n){var r=n.pageTitleRender,i=Qee(t);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var a=r(t,i.title,i);if(typeof a=="string")return Qee(q(q({},i),{},{title:a}));zr(typeof a=="string","pro-layout: renderPageTitle return value should be a string")}return i},TRt=function(t,n,r){return t?n?64:r:0},PRt=function(t){var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v=t||{},y=v.children,b=v.onCollapse,w=v.location,_=w===void 0?{pathname:"/"}:w,k=v.contentStyle,S=v.route,C=v.defaultCollapsed,E=v.style,$=v.siderWidth,M=v.menu,P=v.siderMenuType,I=v.isChildrenLayout,O=v.menuDataRender,A=v.actionRef,R=v.bgLayoutImgList,j=v.formatMessage,N=v.loading,D=d.useMemo(function(){return $||(t.layout==="mix"?215:256)},[t.layout,$]),V=d.useContext(zn.ConfigContext),F=(n=t.prefixCls)!==null&&n!==void 0?n:V.getPrefixCls("pro"),K=In(!1,{value:M==null?void 0:M.loading,onChange:M==null?void 0:M.onLoadingChange}),B=Te(K,2),U=B[0],Z=B[1],ee=d.useState(function(){return ate+=1,"pro-layout-".concat(ate)}),ie=Te(ee,1),Y=ie[0],X=d.useCallback(function(yt){var At=yt.id,ft=yt.defaultMessage,De=Ut(yt,CRt);if(j)return j(q({id:At,defaultMessage:ft},De));var Ye=WOt();return Ye[At]?Ye[At]:ft},[j]),ae=Ez([Y,M==null?void 0:M.params],function(){var yt=ha(mr().mark(function At(ft){var De,Ye,st,Ie;return mr().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return Ye=Te(ft,2),st=Ye[1],Z(!0),rt.next=4,M==null||(De=M.request)===null||De===void 0?void 0:De.call(M,st||{},(S==null?void 0:S.children)||(S==null?void 0:S.routes)||[]);case 4:return Ie=rt.sent,Z(!1),rt.abrupt("return",Ie);case 7:case"end":return rt.stop()}},At)}));return function(At){return yt.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),oe=ae.data,le=ae.mutate,ce=ae.isLoading;d.useEffect(function(){Z(ce)},[ce]);var pe=kz(),me=pe.cache;d.useEffect(function(){return function(){me instanceof Map&&me.delete(Y)}},[]);var re=d.useMemo(function(){return xRt(oe||(S==null?void 0:S.children)||(S==null?void 0:S.routes)||[],M,X,O)},[X,M,O,oe,S==null?void 0:S.children,S==null?void 0:S.routes]),fe=re||{},ve=fe.breadcrumb,$e=fe.breadcrumbMap,Ce=fe.menuData,be=Ce===void 0?[]:Ce;A&&M!==null&&M!==void 0&&M.request&&(A.current={reload:function(){le()}});var Se=d.useMemo(function(){return nRt(_.pathname||"/",be||[])},[_.pathname,be]),we=d.useMemo(function(){return Array.from(new Set(Se.map(function(yt){return yt.key||yt.path||""})))},[Se]),se=Se[Se.length-1]||{},ye=SRt(se),Oe=q(q({},t),ye),z=Oe.fixSiderbar;Oe.navTheme;var H=Oe.layout,G=Ut(Oe,_Rt),de=_1t(),xe=d.useMemo(function(){return(de==="sm"||de==="xs")&&!t.disableMobile},[de,t.disableMobile]),he=H!=="top"&&!xe,Ue=In(function(){return C!==void 0?C:!!(xe||de==="md")},{value:t.collapsed,onChange:b}),We=Te(Ue,2),ge=We[0],ze=We[1],Ve=Al(q(q(q({prefixCls:F},t),{},{siderWidth:D},ye),{},{formatMessage:X,breadcrumb:ve,menu:q(q({},M),{},{type:P||(M==null?void 0:M.type),loading:U}),layout:H}),["className","style","breadcrumbRender"]),Be=MRt(q(q({pathname:_.pathname},Ve),{},{breadcrumbMap:$e}),t),Xe=bRt(q(q({},Ve),{},{breadcrumbRender:t.breadcrumbRender,breadcrumbMap:$e}),t),Ke=$Rt(q(q({},Ve),{},{menuData:be,onCollapse:ze,isMobile:xe,collapsed:ge}),we),qe=kRt(q(q({},Ve),{},{children:null,hasSiderMenu:!!Ke,menuData:be,isMobile:xe,collapsed:ge,onCollapse:ze}),we),Et=ERt(q({isMobile:xe,collapsed:ge},Ve)),dt=d.useContext(Aee),vt=dt.isChildrenLayout,Ze=I!==void 0?I:vt,nt="".concat(F,"-layout"),jt=uRt(nt),Lt=jt.wrapSSR,Bt=jt.hashId,Ht=Ee(t.className,Bt,"ant-design-pro",nt,ne(ne(ne(ne(ne({},"screen-".concat(de),de),"".concat(nt,"-top-menu"),H==="top"),"".concat(nt,"-is-children"),Ze),"".concat(nt,"-fix-siderbar"),z),"".concat(nt,"-").concat(H),H)),Ne=TRt(!!he,ge,D),He={position:"relative"};(Ze||k&&k.minHeight)&&(He.minHeight=0),d.useEffect(function(){var yt;(yt=t.onPageChange)===null||yt===void 0||yt.call(t,t.location)},[_.pathname,(r=_.pathname)===null||r===void 0?void 0:r.search]);var Le=d.useState(!1),Qe=Te(Le,2),ht=Qe[0],xt=Qe[1],Nt=d.useState(0),Ot=Te(Nt,2),Pt=Ot[0],lt=Ot[1];Vht(Be,t.title||!1);var Ct=d.useContext(ou),kt=Ct.token,qt=d.useMemo(function(){return R&&R.length>0?R==null?void 0:R.map(function(yt,At){return x.jsx("img",{src:yt.src,style:q({position:"absolute"},yt)},At)}):null},[R]);return Lt(x.jsx(Aee.Provider,{value:q(q({},Ve),{},{breadcrumb:Xe,menuData:be,isMobile:xe,collapsed:ge,hasPageContainer:Pt,setHasPageContainer:lt,isChildrenLayout:!0,title:Be.pageName,hasSiderMenu:!!Ke,hasHeader:!!qe,siderWidth:Ne,hasFooter:!!Et,hasFooterToolbar:ht,setHasFooterToolbar:xt,pageTitleInfo:Be,matchMenus:Se,matchMenuKeys:we,currentMenu:se}),children:t.pure?x.jsx(x.Fragment,{children:y}):x.jsxs("div",{className:Ht,children:[qt||(i=kt.layout)!==null&&i!==void 0&&i.bgLayout?x.jsx("div",{className:Ee("".concat(nt,"-bg-list"),Bt),children:qt}):null,x.jsxs(Qn,{style:q({minHeight:"100%",flexDirection:Ke?"row":void 0},E),children:[x.jsx(zn,{theme:{hashed:jv(),token:{controlHeightLG:((a=kt.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.menuHeight)||(kt==null?void 0:kt.controlHeightLG)},components:{Menu:D0e({colorItemBg:((o=kt.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorMenuBackground)||"transparent",colorSubItemBg:((s=kt.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuBackground)||"transparent",radiusItem:kt.borderRadius,colorItemBgSelected:((l=kt.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorBgMenuItemSelected)||(kt==null?void 0:kt.colorBgTextHover),colorItemBgHover:((c=kt.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemHover)||(kt==null?void 0:kt.colorBgTextHover),colorItemBgActive:((u=kt.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemActive)||(kt==null?void 0:kt.colorBgTextActive),colorItemBgSelectedHorizontal:((f=kt.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemSelected)||(kt==null?void 0:kt.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((p=kt.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenu)||(kt==null?void 0:kt.colorTextSecondary),colorItemTextHover:((h=kt.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((m=kt.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:kt==null?void 0:kt.colorBgElevated,subMenuItemBg:kt==null?void 0:kt.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:kt==null?void 0:kt.colorBgElevated})}},children:Ke}),x.jsxs("div",{style:He,className:"".concat(nt,"-container ").concat(Bt).trim(),children:[qe,x.jsx(rRt,q(q({hasPageContainer:Pt,isChildrenLayout:Ze},G),{},{hasHeader:!!qe,prefixCls:nt,style:k,children:N?x.jsx(VPt,{}):y})),Et,ht&&x.jsx("div",{className:"".concat(nt,"-has-footer"),style:{height:64,marginBlockStart:(g=kt.layout)===null||g===void 0||(g=g.pageContainer)===null||g===void 0?void 0:g.paddingBlockPageContainerContent}})]})]})]})}))},v2e=function(t){var n=t.colorPrimary,r=t.navTheme!==void 0?{dark:t.navTheme==="realDark"}:{};return x.jsx(zn,{theme:n?{token:{colorPrimary:n}}:void 0,children:x.jsx(o$,q(q({},r),{},{token:t.token,prefixCls:t.prefixCls,children:x.jsx(PRt,q(q({logo:x.jsx(iRt,{})},a2e),{},{location:Mz()?window.location:void 0},t))}))})};async function ORt(){return dn("/kaptcha/api/v1/get",{method:"GET",params:{client:Sn}})}async function IRt(e,t){return dn("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:e,captchaCode:t,client:Sn}})}var ZN=function(e,t){return ZN=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},ZN(e,t)};function Ec(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ZN(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Kn=function(){return Kn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r"u"&&(a=e.call(this,r),t.set(i,a)),a}function b2e(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,r),t.set(i,a)),a}function TH(e,t,n,r,i){return n.bind(t,e,r,i)}function jRt(e,t){var n=e.length===1?y2e:b2e;return TH(e,this,n,t.cache.create(),t.serializer)}function NRt(e,t){return TH(e,this,b2e,t.cache.create(),t.serializer)}function ARt(e,t){return TH(e,this,y2e,t.cache.create(),t.serializer)}var DRt=function(){return JSON.stringify(arguments)};function PH(){this.cache=Object.create(null)}PH.prototype.get=function(e){return this.cache[e]};PH.prototype.set=function(e,t){this.cache[e]=t};var FRt={create:function(){return new PH}},hs={variadic:NRt,monadic:ARt};function w2e(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}ps(function(){for(var e,t=[],n=0;n0}),n=[],r=0,i=t;r1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(qRt,function(l,c,u,f,p,h){if(c)t.minimumIntegerDigits=u.length;else{if(f&&p)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(P2e.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ste.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ste,function(l,c,u,f,p,h){return u==="*"?t.minimumFractionDigits=c.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:p&&h?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+h.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var a=i.options[0];a==="w"?t=Kn(Kn({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=Kn(Kn({},t),lte(a)));continue}if(T2e.test(i.stem)){t=Kn(Kn({},t),lte(i.stem));continue}var o=O2e(i.stem);o&&(t=Kn(Kn({},t),o));var s=KRt(i.stem);s&&(t=Kn(Kn({},t),s))}return t}var VS={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function YRt(e,t){for(var n="",r=0;r>1),l="a",c=XRt(t);for((c=="H"||c=="k")&&(s=0);s-- >0;)n+=l;for(;o-- >0;)n=c+n}else i==="J"?n+="H":n+=i}return n}function XRt(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=VS[r||""]||VS[n||""]||VS["".concat(n,"-001")]||VS["001"];return i[0]}var VT,ZRt=new RegExp("^".concat(M2e.source,"*")),QRt=new RegExp("".concat(M2e.source,"*$"));function Vr(e,t){return{start:e,end:t}}var JRt=!!String.prototype.startsWith&&"_a".startsWith("a",1),ejt=!!String.fromCodePoint,tjt=!!Object.fromEntries,njt=!!String.prototype.codePointAt,rjt=!!String.prototype.trimStart,ijt=!!String.prototype.trimEnd,ajt=!!Number.isSafeInteger,ojt=ajt?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},JN=!0;try{var sjt=R2e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");JN=((VT=sjt.exec("a"))===null||VT===void 0?void 0:VT[0])==="a"}catch{JN=!1}var ute=JRt?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},eA=ejt?String.fromCodePoint:function(){for(var t=[],n=0;na;){if(o=t[a++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},dte=tjt?Object.fromEntries:function(t){for(var n={},r=0,i=t;r=r)){var i=t.charCodeAt(n),a;return i<55296||i>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},ljt=rjt?function(t){return t.trimStart()}:function(t){return t.replace(ZRt,"")},cjt=ijt?function(t){return t.trimEnd()}:function(t){return t.replace(QRt,"")};function R2e(e,t){return new RegExp(e,t)}var tA;if(JN){var fte=R2e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");tA=function(t,n){var r;fte.lastIndex=n;var i=fte.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else tA=function(t,n){for(var r=[];;){var i=I2e(t,n);if(i===void 0||j2e(i)||pjt(i))break;r.push(i),n+=i>=65536?2:1}return eA.apply(void 0,r)};var ujt=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var o=this.parseArgument(t,r);if(o.err)return o;i.push(o.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:Ai.pound,location:Vr(s,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Ur.UNMATCHED_CLOSING_TAG,Vr(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&nA(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ai.literal,value:"<".concat(i,"/>"),location:Vr(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var o=a.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:Ai.tag,value:i,children:o,location:Vr(r,this.clonePosition())},err:null}:this.error(Ur.INVALID_TAG,Vr(s,this.clonePosition())))}else return this.error(Ur.UNCLOSED_TAG,Vr(r,this.clonePosition()))}else return this.error(Ur.INVALID_TAG,Vr(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&fjt(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var o=this.tryParseUnquoted(t,n);if(o){i+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var l=Vr(r,this.clonePosition());return{val:{type:Ai.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!djt(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return eA.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),eA(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ur.EXPECT_ARGUMENT_CLOSING_BRACE,Vr(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Ur.EMPTY_ARGUMENT,Vr(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Ur.MALFORMED_ARGUMENT,Vr(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ur.EXPECT_ARGUMENT_CLOSING_BRACE,Vr(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ai.argument,value:i,location:Vr(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ur.EXPECT_ARGUMENT_CLOSING_BRACE,Vr(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(Ur.MALFORMED_ARGUMENT,Vr(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=tA(this.message,n),i=n+r.length;this.bumpTo(i);var a=this.clonePosition(),o=Vr(t,a);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,i){var a,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(Ur.EXPECT_ARGUMENT_TYPE,Vr(o,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var p=cjt(f.val);if(p.length===0)return this.error(Ur.EXPECT_ARGUMENT_STYLE,Vr(this.clonePosition(),this.clonePosition()));var h=Vr(u,this.clonePosition());c={style:p,styleLocation:h}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var g=Vr(i,this.clonePosition());if(c&&ute(c==null?void 0:c.style,"::",0)){var v=ljt(c.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(v,c.styleLocation);return f.err?f:{val:{type:Ai.number,value:r,location:g,style:f.val},err:null}}else{if(v.length===0)return this.error(Ur.EXPECT_DATE_TIME_SKELETON,g);var y=v;this.locale&&(y=YRt(v,this.locale));var p={type:K0.dateTime,pattern:y,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?HRt(y):{}},b=s==="date"?Ai.date:Ai.time;return{val:{type:b,value:r,location:g,style:p},err:null}}}return{val:{type:s==="number"?Ai.number:s==="date"?Ai.date:Ai.time,value:r,location:g,style:(a=c==null?void 0:c.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Ur.EXPECT_SELECT_ARGUMENT_OPTIONS,Vr(w,Kn({},w)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),k=0;if(s!=="select"&&_.value==="offset"){if(!this.bumpIf(":"))return this.error(Ur.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Vr(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(Ur.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ur.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),_=this.parseIdentifierIfPossible(),k=f.val}var S=this.tryParsePluralOrSelectOptions(t,s,n,_);if(S.err)return S;var m=this.tryParseArgumentClose(i);if(m.err)return m;var C=Vr(i,this.clonePosition());return s==="select"?{val:{type:Ai.select,value:r,options:dte(S.val),location:C},err:null}:{val:{type:Ai.plural,value:r,options:dte(S.val),offset:k,pluralType:s==="plural"?"cardinal":"ordinal",location:C},err:null}}default:return this.error(Ur.INVALID_ARGUMENT_TYPE,Vr(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Ur.EXPECT_ARGUMENT_CLOSING_BRACE,Vr(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Ur.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Vr(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=WRt(t)}catch{return this.error(Ur.INVALID_NUMBER_SKELETON,n)}return{val:{type:K0.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?GRt(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var a,o=!1,s=[],l=new Set,c=i.value,u=i.location;;){if(c.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(Ur.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ur.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;u=Vr(f,this.clonePosition()),c=this.message.slice(f.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?Ur.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ur.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);c==="other"&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?Ur.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ur.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Vr(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,n,r);if(m.err)return m;var g=this.tryParseArgumentClose(h);if(g.err)return g;s.push([c,{value:m.val,location:Vr(h,this.clonePosition())}]),l.add(c),this.bumpSpace(),a=this.parseIdentifierIfPossible(),c=a.value,u=a.location}return s.length===0?this.error(n==="select"?Ur.EXPECT_SELECT_ARGUMENT_SELECTOR:Ur.EXPECT_PLURAL_ARGUMENT_SELECTOR,Vr(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Ur.MISSING_OTHER_CLAUSE,Vr(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,o=o*10+(s-48),this.bump();else break}var l=Vr(i,this.clonePosition());return a?(o*=r,ojt(o)?{val:o,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=I2e(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(ute(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&j2e(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function nA(e){return e>=97&&e<=122||e>=65&&e<=90}function djt(e){return nA(e)||e===47}function fjt(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function j2e(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function pjt(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function rA(e){e.forEach(function(t){if(delete t.location,_2e(t)||k2e(t))for(var n in t.options)delete t.options[n].location,rA(t.options[n].value);else x2e(t)&&$2e(t.style)||(S2e(t)||C2e(t))&&QN(t.style)?delete t.style.location:E2e(t)&&rA(t.children)})}function hjt(e,t){t===void 0&&(t={}),t=Kn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ujt(e,t).parse();if(n.err){var r=SyntaxError(Ur[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||rA(n.val),n.val}var xd;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(xd||(xd={}));var $h=function(e){Ec(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),pte=function(e){Ec(t,e);function t(n,r,i,a){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),xd.INVALID_VALUE,a)||this}return t}($h),mjt=function(e){Ec(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),xd.INVALID_VALUE,i)||this}return t}($h),gjt=function(e){Ec(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),xd.MISSING_VALUE,r)||this}return t}($h),ls;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ls||(ls={}));function vjt(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==ls.literal||n.type!==ls.literal?t.push(n):r.value+=n.value,t},[])}function N2e(e){return typeof e=="function"}function v_(e,t,n,r,i,a,o){if(e.length===1&&ote(e[0]))return[{type:ls.literal,value:e[0].value}];for(var s=[],l=0,c=e;l"u"?If:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||If},bIt=function(t,n,r){var i=t,a=i.breadcrumbName,o=i.title,s=i.path,l=r.findIndex(function(c){return c.linkPath===t.path})===r.length-1;return l?x.jsx("span",{children:o||a}):x.jsx("span",{onClick:s?function(){return location.href=s}:void 0,children:o||a})},wIt=function(t,n){var r=n.formatMessage,i=n.menu;return t.locale&&r&&(i==null?void 0:i.locale)!==!1?r({id:t.locale,defaultMessage:t.name}):t.name},xIt=function(t,n){var r=t.get(n);if(!r){var i=Array.from(t.keys())||[],a=i.find(function(o){try{return o!=null&&o.startsWith("http")?!1:GN(o.replace("?",""))(n)}catch(s){return console.log("path",o,s),!1}});a&&(r=t.get(a))}return r||{path:""}},SIt=function(t){var n=t.location,r=t.breadcrumbMap;return{location:n,breadcrumbMap:r}},CIt=function(t,n,r){var i=vIt(t==null?void 0:t.pathname),a=i.map(function(o){var s=xIt(n,o),l=wIt(s,r),c=s.hideInBreadcrumb;return l&&!c?{linkPath:o,breadcrumbName:l,title:l,component:s.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(o){return o&&o.linkPath});return a},_It=function(t){var n=SIt(t),r=n.location,i=n.breadcrumbMap;return r&&r.pathname&&i?CIt(r,i,t):[]},kIt=function(t,n){var r=t.breadcrumbRender,i=t.itemRender,a=n.breadcrumbProps||{},o=a.minLength,s=o===void 0?2:o,l=_It(t),c=function(p){for(var h=i||bIt,m=arguments.length,g=new Array(m>1?m-1:0),v=1;v-1?{items:u,itemRender:c}:{routes:u,itemRender:c}};function EIt(e){return lt(e).reduce(function(t,n){var r=Te(n,2),i=r[0],a=r[1];return t[i]=a,t},{})}var $It=function e(t,n,r,i){var a=iIt(t,(n==null?void 0:n.locale)||!1,r,!0),o=a.menuData,s=a.breadcrumb;return i?e(i(o),n,r,void 0):{breadcrumb:EIt(s),breadcrumbMap:s,menuData:o}},MIt=function(t){var n=d.useState({}),r=Te(n,2),i=r[0],a=r[1];return d.useEffect(function(){a(lc({layout:Kt(t.layout)!=="object"?t.layout:void 0,navTheme:t.navTheme,menuRender:t.menuRender,footerRender:t.footerRender,menuHeaderRender:t.menuHeaderRender,headerRender:t.headerRender,fixSiderbar:t.fixSiderbar}))},[t.layout,t.navTheme,t.menuRender,t.footerRender,t.menuHeaderRender,t.headerRender,t.fixSiderbar]),i},TIt=["id","defaultMessage"],PIt=["fixSiderbar","navTheme","layout"],lte=0,OIt=function(t,n){var r;return t.headerRender===!1||t.pure?null:x.jsx(FOt,q(q({matchMenuKeys:n},t),{},{stylish:(r=t.stylish)===null||r===void 0?void 0:r.header}))},RIt=function(t){return t.footerRender===!1||t.pure?null:t.footerRender?t.footerRender(q({},t),x.jsx(nOt,{})):null},IIt=function(t,n){var r,i=t.layout,a=t.isMobile,o=t.selectedKeys,s=t.openKeys,l=t.splitMenus,c=t.suppressSiderWhenMenuEmpty,u=t.menuRender;if(t.menuRender===!1||t.pure)return null;var f=t.menuData;if(l&&(s!==!1||i==="mix")&&!a){var p=o||n,h=Te(p,1),m=h[0];if(m){var g;f=((g=t.menuData)===null||g===void 0||(g=g.find(function(b){return b.key===m}))===null||g===void 0?void 0:g.children)||[]}else f=[]}var v=D$(f||[]);if(v&&(v==null?void 0:v.length)<1&&(l||c))return null;if(i==="top"&&!a){var y;return x.jsx(ste,q(q({matchMenuKeys:n},t),{},{hide:!0,stylish:(y=t.stylish)===null||y===void 0?void 0:y.sider}))}var w=x.jsx(ste,q(q({matchMenuKeys:n},t),{},{menuData:v,stylish:(r=t.stylish)===null||r===void 0?void 0:r.sider}));return u?u(t,w):w},jIt=function(t,n){var r=n.pageTitleRender,i=tte(t);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var a=r(t,i.title,i);if(typeof a=="string")return tte(q(q({},i),{},{title:a}));Br(typeof a=="string","pro-layout: renderPageTitle return value should be a string")}return i},NIt=function(t,n,r){return t?n?64:r:0},AIt=function(t){var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v=t||{},y=v.children,w=v.onCollapse,b=v.location,C=b===void 0?{pathname:"/"}:b,k=v.contentStyle,S=v.route,_=v.defaultCollapsed,E=v.style,$=v.siderWidth,M=v.menu,P=v.siderMenuType,R=v.isChildrenLayout,O=v.menuDataRender,j=v.actionRef,I=v.bgLayoutImgList,A=v.formatMessage,N=v.loading,F=d.useMemo(function(){return $||(t.layout==="mix"?215:256)},[t.layout,$]),K=d.useContext(zn.ConfigContext),L=(n=t.prefixCls)!==null&&n!==void 0?n:K.getPrefixCls("pro"),V=jn(!1,{value:M==null?void 0:M.loading,onChange:M==null?void 0:M.onLoadingChange}),B=Te(V,2),U=B[0],Y=B[1],ee=d.useState(function(){return lte+=1,"pro-layout-".concat(lte)}),ie=Te(ee,1),Z=ie[0],X=d.useCallback(function(vt){var At=vt.id,dt=vt.defaultMessage,De=Ht(vt,TIt);if(A)return A(q({id:At,defaultMessage:dt},De));var Ye=XOt();return Ye[At]?Ye[At]:dt},[A]),ae=Mz([Z,M==null?void 0:M.params],function(){var vt=pa(hr().mark(function At(dt){var De,Ye,ot,Re;return hr().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return Ye=Te(dt,2),ot=Ye[1],Y(!0),rt.next=4,M==null||(De=M.request)===null||De===void 0?void 0:De.call(M,ot||{},(S==null?void 0:S.children)||(S==null?void 0:S.routes)||[]);case 4:return Re=rt.sent,Y(!1),rt.abrupt("return",Re);case 7:case"end":return rt.stop()}},At)}));return function(At){return vt.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),oe=ae.data,le=ae.mutate,ce=ae.isLoading;d.useEffect(function(){Y(ce)},[ce]);var pe=$z(),me=pe.cache;d.useEffect(function(){return function(){me instanceof Map&&me.delete(Z)}},[]);var re=d.useMemo(function(){return $It(oe||(S==null?void 0:S.children)||(S==null?void 0:S.routes)||[],M,X,O)},[X,M,O,oe,S==null?void 0:S.children,S==null?void 0:S.routes]),fe=re||{},ve=fe.breadcrumb,$e=fe.breadcrumbMap,Ce=fe.menuData,be=Ce===void 0?[]:Ce;j&&M!==null&&M!==void 0&&M.request&&(j.current={reload:function(){le()}});var Se=d.useMemo(function(){return lIt(C.pathname||"/",be||[])},[C.pathname,be]),we=d.useMemo(function(){return Array.from(new Set(Se.map(function(vt){return vt.key||vt.path||""})))},[Se]),se=Se[Se.length-1]||{},ye=MIt(se),Oe=q(q({},t),ye),z=Oe.fixSiderbar;Oe.navTheme;var H=Oe.layout,G=Ht(Oe,PIt),de=$1t(),xe=d.useMemo(function(){return(de==="sm"||de==="xs")&&!t.disableMobile},[de,t.disableMobile]),he=H!=="top"&&!xe,Ue=jn(function(){return _!==void 0?_:!!(xe||de==="md")},{value:t.collapsed,onChange:w}),We=Te(Ue,2),ge=We[0],ze=We[1],Ve=Fl(q(q(q({prefixCls:L},t),{},{siderWidth:F},ye),{},{formatMessage:X,breadcrumb:ve,menu:q(q({},M),{},{type:P||(M==null?void 0:M.type),loading:U}),layout:H}),["className","style","breadcrumbRender"]),Be=jIt(q(q({pathname:C.pathname},Ve),{},{breadcrumbMap:$e}),t),Xe=kIt(q(q({},Ve),{},{breadcrumbRender:t.breadcrumbRender,breadcrumbMap:$e}),t),Ke=IIt(q(q({},Ve),{},{menuData:be,onCollapse:ze,isMobile:xe,collapsed:ge}),we),qe=OIt(q(q({},Ve),{},{children:null,hasSiderMenu:!!Ke,menuData:be,isMobile:xe,collapsed:ge,onCollapse:ze}),we),Et=RIt(q({isMobile:xe,collapsed:ge},Ve)),ut=d.useContext(Lee),gt=ut.isChildrenLayout,Ze=R!==void 0?R:gt,nt="".concat(L,"-layout"),jt=gIt(nt),Lt=jt.wrapSSR,Bt=jt.hashId,Ut=Ee(t.className,Bt,"ant-design-pro",nt,ne(ne(ne(ne(ne({},"screen-".concat(de),de),"".concat(nt,"-top-menu"),H==="top"),"".concat(nt,"-is-children"),Ze),"".concat(nt,"-fix-siderbar"),z),"".concat(nt,"-").concat(H),H)),Ne=NIt(!!he,ge,F),He={position:"relative"};(Ze||k&&k.minHeight)&&(He.minHeight=0),d.useEffect(function(){var vt;(vt=t.onPageChange)===null||vt===void 0||vt.call(t,t.location)},[C.pathname,(r=C.pathname)===null||r===void 0?void 0:r.search]);var Le=d.useState(!1),Qe=Te(Le,2),pt=Qe[0],xt=Qe[1],Nt=d.useState(0),Ot=Te(Nt,2),Pt=Ot[0],st=Ot[1];Ght(Be,t.title||!1);var Ct=d.useContext(uu),kt=Ct.token,qt=d.useMemo(function(){return I&&I.length>0?I==null?void 0:I.map(function(vt,At){return x.jsx("img",{src:vt.src,style:q({position:"absolute"},vt)},At)}):null},[I]);return Lt(x.jsx(Lee.Provider,{value:q(q({},Ve),{},{breadcrumb:Xe,menuData:be,isMobile:xe,collapsed:ge,hasPageContainer:Pt,setHasPageContainer:st,isChildrenLayout:!0,title:Be.pageName,hasSiderMenu:!!Ke,hasHeader:!!qe,siderWidth:Ne,hasFooter:!!Et,hasFooterToolbar:pt,setHasFooterToolbar:xt,pageTitleInfo:Be,matchMenus:Se,matchMenuKeys:we,currentMenu:se}),children:t.pure?x.jsx(x.Fragment,{children:y}):x.jsxs("div",{className:Ut,children:[qt||(i=kt.layout)!==null&&i!==void 0&&i.bgLayout?x.jsx("div",{className:Ee("".concat(nt,"-bg-list"),Bt),children:qt}):null,x.jsxs(Qn,{style:q({minHeight:"100%",flexDirection:Ke?"row":void 0},E),children:[x.jsx(zn,{theme:{hashed:Dv(),token:{controlHeightLG:((a=kt.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.menuHeight)||(kt==null?void 0:kt.controlHeightLG)},components:{Menu:H0e({colorItemBg:((o=kt.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorMenuBackground)||"transparent",colorSubItemBg:((s=kt.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuBackground)||"transparent",radiusItem:kt.borderRadius,colorItemBgSelected:((l=kt.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorBgMenuItemSelected)||(kt==null?void 0:kt.colorBgTextHover),colorItemBgHover:((c=kt.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemHover)||(kt==null?void 0:kt.colorBgTextHover),colorItemBgActive:((u=kt.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemActive)||(kt==null?void 0:kt.colorBgTextActive),colorItemBgSelectedHorizontal:((f=kt.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemSelected)||(kt==null?void 0:kt.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((p=kt.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenu)||(kt==null?void 0:kt.colorTextSecondary),colorItemTextHover:((h=kt.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((m=kt.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:kt==null?void 0:kt.colorBgElevated,subMenuItemBg:kt==null?void 0:kt.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:kt==null?void 0:kt.colorBgElevated})}},children:Ke}),x.jsxs("div",{style:He,className:"".concat(nt,"-container ").concat(Bt).trim(),children:[qe,x.jsx(cIt,q(q({hasPageContainer:Pt,isChildrenLayout:Ze},G),{},{hasHeader:!!qe,prefixCls:nt,style:k,children:N?x.jsx(ZPt,{}):y})),Et,pt&&x.jsx("div",{className:"".concat(nt,"-has-footer"),style:{height:64,marginBlockStart:(g=kt.layout)===null||g===void 0||(g=g.pageContainer)===null||g===void 0?void 0:g.paddingBlockPageContainerContent}})]})]})]})}))},S2e=function(t){var n=t.colorPrimary,r=t.navTheme!==void 0?{dark:t.navTheme==="realDark"}:{};return x.jsx(zn,{theme:n?{token:{colorPrimary:n}}:void 0,children:x.jsx(c$,q(q({},r),{},{token:t.token,prefixCls:t.prefixCls,children:x.jsx(AIt,q(q({logo:x.jsx(uIt,{})},u2e),{},{location:Pz()?window.location:void 0},t))}))})};async function DIt(){return bn("/kaptcha/api/v1/get",{method:"GET",params:{client:kn}})}async function FIt(e,t){return bn("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:e,captchaCode:t,client:kn}})}var eA=function(e,t){return eA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},eA(e,t)};function Tc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");eA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Gn=function(){return Gn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r"u"&&(a=e.call(this,r),t.set(i,a)),a}function _2e(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,r),t.set(i,a)),a}function OH(e,t,n,r,i){return n.bind(t,e,r,i)}function BIt(e,t){var n=e.length===1?C2e:_2e;return OH(e,this,n,t.cache.create(),t.serializer)}function zIt(e,t){return OH(e,this,_2e,t.cache.create(),t.serializer)}function HIt(e,t){return OH(e,this,C2e,t.cache.create(),t.serializer)}var UIt=function(){return JSON.stringify(arguments)};function RH(){this.cache=Object.create(null)}RH.prototype.get=function(e){return this.cache[e]};RH.prototype.set=function(e,t){this.cache[e]=t};var WIt={create:function(){return new RH}},vs={variadic:zIt,monadic:HIt};function k2e(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}gs(function(){for(var e,t=[],n=0;n0}),n=[],r=0,i=t;r1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(QIt,function(l,c,u,f,p,h){if(c)t.minimumIntegerDigits=u.length;else{if(f&&p)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(N2e.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ute.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ute,function(l,c,u,f,p,h){return u==="*"?t.minimumFractionDigits=c.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:p&&h?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+h.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var a=i.options[0];a==="w"?t=Gn(Gn({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=Gn(Gn({},t),dte(a)));continue}if(j2e.test(i.stem)){t=Gn(Gn({},t),dte(i.stem));continue}var o=A2e(i.stem);o&&(t=Gn(Gn({},t),o));var s=JIt(i.stem);s&&(t=Gn(Gn({},t),s))}return t}var KS={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function tjt(e,t){for(var n="",r=0;r>1),l="a",c=njt(t);for((c=="H"||c=="k")&&(s=0);s-- >0;)n+=l;for(;o-- >0;)n=c+n}else i==="J"?n+="H":n+=i}return n}function njt(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=KS[r||""]||KS[n||""]||KS["".concat(n,"-001")]||KS["001"];return i[0]}var GT,rjt=new RegExp("^".concat(I2e.source,"*")),ijt=new RegExp("".concat(I2e.source,"*$"));function Wr(e,t){return{start:e,end:t}}var ajt=!!String.prototype.startsWith&&"_a".startsWith("a",1),ojt=!!String.fromCodePoint,sjt=!!Object.fromEntries,ljt=!!String.prototype.codePointAt,cjt=!!String.prototype.trimStart,ujt=!!String.prototype.trimEnd,djt=!!Number.isSafeInteger,fjt=djt?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},nA=!0;try{var pjt=F2e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");nA=((GT=pjt.exec("a"))===null||GT===void 0?void 0:GT[0])==="a"}catch{nA=!1}var pte=ajt?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},rA=ojt?String.fromCodePoint:function(){for(var t=[],n=0;na;){if(o=t[a++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},hte=sjt?Object.fromEntries:function(t){for(var n={},r=0,i=t;r=r)){var i=t.charCodeAt(n),a;return i<55296||i>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},hjt=cjt?function(t){return t.trimStart()}:function(t){return t.replace(rjt,"")},mjt=ujt?function(t){return t.trimEnd()}:function(t){return t.replace(ijt,"")};function F2e(e,t){return new RegExp(e,t)}var iA;if(nA){var mte=F2e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");iA=function(t,n){var r;mte.lastIndex=n;var i=mte.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else iA=function(t,n){for(var r=[];;){var i=D2e(t,n);if(i===void 0||L2e(i)||bjt(i))break;r.push(i),n+=i>=65536?2:1}return rA.apply(void 0,r)};var gjt=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var o=this.parseArgument(t,r);if(o.err)return o;i.push(o.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:Ni.pound,location:Wr(s,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Hr.UNMATCHED_CLOSING_TAG,Wr(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&aA(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ni.literal,value:"<".concat(i,"/>"),location:Wr(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var o=a.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:Ni.tag,value:i,children:o,location:Wr(r,this.clonePosition())},err:null}:this.error(Hr.INVALID_TAG,Wr(s,this.clonePosition())))}else return this.error(Hr.UNCLOSED_TAG,Wr(r,this.clonePosition()))}else return this.error(Hr.INVALID_TAG,Wr(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&yjt(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var o=this.tryParseUnquoted(t,n);if(o){i+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var l=Wr(r,this.clonePosition());return{val:{type:Ni.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!vjt(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return rA.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),rA(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Hr.EXPECT_ARGUMENT_CLOSING_BRACE,Wr(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Hr.EMPTY_ARGUMENT,Wr(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Hr.MALFORMED_ARGUMENT,Wr(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Hr.EXPECT_ARGUMENT_CLOSING_BRACE,Wr(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ni.argument,value:i,location:Wr(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Hr.EXPECT_ARGUMENT_CLOSING_BRACE,Wr(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(Hr.MALFORMED_ARGUMENT,Wr(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=iA(this.message,n),i=n+r.length;this.bumpTo(i);var a=this.clonePosition(),o=Wr(t,a);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,i){var a,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(Hr.EXPECT_ARGUMENT_TYPE,Wr(o,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var p=mjt(f.val);if(p.length===0)return this.error(Hr.EXPECT_ARGUMENT_STYLE,Wr(this.clonePosition(),this.clonePosition()));var h=Wr(u,this.clonePosition());c={style:p,styleLocation:h}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var g=Wr(i,this.clonePosition());if(c&&pte(c==null?void 0:c.style,"::",0)){var v=hjt(c.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(v,c.styleLocation);return f.err?f:{val:{type:Ni.number,value:r,location:g,style:f.val},err:null}}else{if(v.length===0)return this.error(Hr.EXPECT_DATE_TIME_SKELETON,g);var y=v;this.locale&&(y=tjt(v,this.locale));var p={type:X0.dateTime,pattern:y,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?GIt(y):{}},w=s==="date"?Ni.date:Ni.time;return{val:{type:w,value:r,location:g,style:p},err:null}}}return{val:{type:s==="number"?Ni.number:s==="date"?Ni.date:Ni.time,value:r,location:g,style:(a=c==null?void 0:c.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Hr.EXPECT_SELECT_ARGUMENT_OPTIONS,Wr(b,Gn({},b)));this.bumpSpace();var C=this.parseIdentifierIfPossible(),k=0;if(s!=="select"&&C.value==="offset"){if(!this.bumpIf(":"))return this.error(Hr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Wr(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(Hr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Hr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),C=this.parseIdentifierIfPossible(),k=f.val}var S=this.tryParsePluralOrSelectOptions(t,s,n,C);if(S.err)return S;var m=this.tryParseArgumentClose(i);if(m.err)return m;var _=Wr(i,this.clonePosition());return s==="select"?{val:{type:Ni.select,value:r,options:hte(S.val),location:_},err:null}:{val:{type:Ni.plural,value:r,options:hte(S.val),offset:k,pluralType:s==="plural"?"cardinal":"ordinal",location:_},err:null}}default:return this.error(Hr.INVALID_ARGUMENT_TYPE,Wr(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Hr.EXPECT_ARGUMENT_CLOSING_BRACE,Wr(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Hr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Wr(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=XIt(t)}catch{return this.error(Hr.INVALID_NUMBER_SKELETON,n)}return{val:{type:X0.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?ejt(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var a,o=!1,s=[],l=new Set,c=i.value,u=i.location;;){if(c.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(Hr.EXPECT_PLURAL_ARGUMENT_SELECTOR,Hr.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;u=Wr(f,this.clonePosition()),c=this.message.slice(f.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?Hr.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Hr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);c==="other"&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?Hr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Hr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Wr(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,n,r);if(m.err)return m;var g=this.tryParseArgumentClose(h);if(g.err)return g;s.push([c,{value:m.val,location:Wr(h,this.clonePosition())}]),l.add(c),this.bumpSpace(),a=this.parseIdentifierIfPossible(),c=a.value,u=a.location}return s.length===0?this.error(n==="select"?Hr.EXPECT_SELECT_ARGUMENT_SELECTOR:Hr.EXPECT_PLURAL_ARGUMENT_SELECTOR,Wr(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Hr.MISSING_OTHER_CLAUSE,Wr(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,o=o*10+(s-48),this.bump();else break}var l=Wr(i,this.clonePosition());return a?(o*=r,fjt(o)?{val:o,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=D2e(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(pte(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&L2e(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function aA(e){return e>=97&&e<=122||e>=65&&e<=90}function vjt(e){return aA(e)||e===47}function yjt(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function L2e(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function bjt(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function oA(e){e.forEach(function(t){if(delete t.location,T2e(t)||P2e(t))for(var n in t.options)delete t.options[n].location,oA(t.options[n].value);else E2e(t)&&R2e(t.style)||($2e(t)||M2e(t))&&tA(t.style)?delete t.style.location:O2e(t)&&oA(t.children)})}function wjt(e,t){t===void 0&&(t={}),t=Gn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new gjt(e,t).parse();if(n.err){var r=SyntaxError(Hr[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||oA(n.val),n.val}var _d;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(_d||(_d={}));var Th=function(e){Tc(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),gte=function(e){Tc(t,e);function t(n,r,i,a){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),_d.INVALID_VALUE,a)||this}return t}(Th),xjt=function(e){Tc(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),_d.INVALID_VALUE,i)||this}return t}(Th),Sjt=function(e){Tc(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),_d.MISSING_VALUE,r)||this}return t}(Th),ds;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ds||(ds={}));function Cjt(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==ds.literal||n.type!==ds.literal?t.push(n):r.value+=n.value,t},[])}function B2e(e){return typeof e=="function"}function y_(e,t,n,r,i,a,o){if(e.length===1&&cte(e[0]))return[{type:ds.literal,value:e[0].value}];for(var s=[],l=0,c=e;l"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=hjt,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Mg;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Mg||(Mg={}));var rx=function(e){Ec(t,e);function t(n,r,i){var a=this,o=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` +`,_d.MISSING_INTL_API,o);var C=n.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));b=u.options[C]||u.options.other}if(!b)throw new gte(u.value,p,Object.keys(u.options),o);s.push.apply(s,y_(b.value,t,n,r,i,p-(u.offset||0)));continue}}return Cjt(s)}function _jt(e,t){return t?Gn(Gn(Gn({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=Gn(Gn({},e[r]),t[r]||{}),n},{})):e}function kjt(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=_jt(e[r],t[r]),n},Gn({},e)):e}function YT(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Ejt(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:gs(function(){for(var t,n=[],r=0;r"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=wjt,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Tg;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Tg||(Tg={}));var ax=function(e){Tc(t,e);function t(n,r,i){var a=this,o=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` `).concat(o?` `.concat(o.message,` -`).concat(o.stack):""))||this,a.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t}(Error),xjt=function(e){Ec(t,e);function t(n,r){return e.call(this,Mg.UNSUPPORTED_FORMATTER,n,r)||this}return t}(rx),Sjt=function(e){Ec(t,e);function t(n,r){return e.call(this,Mg.INVALID_CONFIG,n,r)||this}return t}(rx),hte=function(e){Ec(t,e);function t(n,r){return e.call(this,Mg.MISSING_DATA,n,r)||this}return t}(rx),$c=function(e){Ec(t,e);function t(n,r,i){var a=e.call(this,Mg.FORMAT_ERROR,"".concat(n,` +`).concat(o.stack):""))||this,a.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t}(Error),$jt=function(e){Tc(t,e);function t(n,r){return e.call(this,Tg.UNSUPPORTED_FORMATTER,n,r)||this}return t}(ax),Mjt=function(e){Tc(t,e);function t(n,r){return e.call(this,Tg.INVALID_CONFIG,n,r)||this}return t}(ax),vte=function(e){Tc(t,e);function t(n,r){return e.call(this,Tg.MISSING_DATA,n,r)||this}return t}(ax),Pc=function(e){Tc(t,e);function t(n,r,i){var a=e.call(this,Tg.FORMAT_ERROR,"".concat(n,` Locale: `).concat(r,` -`),i)||this;return a.locale=r,a}return t}(rx),KT=function(e){Ec(t,e);function t(n,r,i,a){var o=e.call(this,"".concat(n,` +`),i)||this;return a.locale=r,a}return t}(ax),XT=function(e){Tc(t,e);function t(n,r,i,a){var o=e.call(this,"".concat(n,` MessageID: `).concat(i==null?void 0:i.id,` Default Message: `).concat(i==null?void 0:i.defaultMessage,` Description: `).concat(i==null?void 0:i.description,` -`),r,a)||this;return o.descriptor=i,o.locale=r,o}return t}($c),Cjt=function(e){Ec(t,e);function t(n,r){var i=e.call(this,Mg.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(a){var o;return(o=a.value)!==null&&o!==void 0?o:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=n,i}return t}(rx);function f1(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,i){return i in e?r[i]=e[i]:i in n&&(r[i]=n[i]),r},{})}var _jt=function(e){},kjt=function(e){},D2e={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:_jt,onWarn:kjt};function F2e(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Yh(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Ejt(e){e===void 0&&(e=F2e());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=ps(function(){for(var s,l=[],c=0;c needs to exist in the component ancestry.")}var U2e=Kn(Kn({},D2e),{textComponent:d.Fragment});function Gjt(e){return function(t){return e(d.Children.toArray(t))}}function aA(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var a=0;a needs to exist in the component ancestry.")}var G2e=Gn(Gn({},H2e),{textComponent:d.Fragment});function eNt(e){return function(t){return e(d.Children.toArray(t))}}function lA(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var a=0;a{const n=Pn(),[r,i]=d.useState(),[a,o]=d.useState(),s=async()=>{const u=await ORt();u.data.code===200&&(i(u.data.data.captchaUid),o(u.data.data.captchaImage))},l=async(u,f)=>{const p=await IRt(u,f);console.log("checkCaptcha response",p),p.data.code===200?t&&t(!0):t&&t(!1)};d.useEffect(()=>{s()},[]);const c=u=>{e&&(e(r,u.target.value),u.target.value&&u.target.value!==""&&u.target.value.trim().length===4?l(r,u.target.value):t&&t(!1))};return x.jsx(x.Fragment,{children:a&&x.jsxs(x.Fragment,{children:[x.jsx(Wr,{onChange:c,prefix:x.jsx($it,{}),placeholder:n.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),x.jsx("img",{src:a,alt:"captcha",onClick:s})]})})},lNt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=Pn(),[a,o]=d.useState(!1);return d.useEffect(()=>{if(a)return;const s=localStorage.getItem(vl);if(s)try{const{username:l,remember:c}=JSON.parse(s);l&&(r==null||r(l,!!c),o(!0))}catch(l){console.error("Failed to parse saved credentials:",l)}},[r,a]),x.jsx(x.Fragment,{children:e==="account"&&x.jsxs("div",{children:[x.jsx(Pr,{name:"username",fieldProps:{size:"large",prefix:x.jsx(nz,{className:"prefixIcon"}),onChange:()=>{o(!0)},onClear:()=>{console.log("onClear");const s=localStorage.getItem(vl);if(s)try{const l=JSON.parse(s),{username:c,...u}=l;console.log("username",c),console.log("rest",u),localStorage.setItem(vl,JSON.stringify(u))}catch(l){console.error("Failed to parse saved credentials:",l)}}},placeholder:i.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:x.jsx(Qc,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),x.jsx(Pr.Password,{name:"password",fieldProps:{size:"large",prefix:x.jsx(Xg,{className:"prefixIcon"})},placeholder:i.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:x.jsx(Qc,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),x.jsx(qn.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:x.jsx(Jy,{onKaptchaChange:t,onKaptchaCheck:n})})]})})};async function cNt(e){return dn("/auth/v1/login",{method:"POST",data:{...e,client:Sn}})}async function AH(e){return dn("/auth/v1/send/mobile",{method:"POST",data:{...e,client:Sn}})}async function Z2e(e){return dn("/auth/v1/send/email",{method:"POST",data:{...e,client:Sn}})}async function uNt(e){return dn("/auth/v1/login/mobile",{method:"POST",data:{...e,client:Sn}})}async function dNt(e,t){return dn("/auth/v1/vip/scan/query",{method:"GET",params:{deviceUid:e,forceRefresh:t,client:Sn}})}async function fNt(e){return dn("/auth/v1/vip/scan/login",{method:"POST",data:{...e,client:Sn}})}async function pNt(e){return dn("/api/v1/user/logout",{method:"POST",data:{client:Sn}})}const hNt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=Pn(),[a,o]=d.useState(""),[s,l]=d.useState(""),[c,u]=d.useState(!1),[f,p]=d.useState(!1);d.useEffect(()=>{if(f)return;const y=localStorage.getItem(vl);if(y)try{const{mobile:b}=JSON.parse(y);b&&(r==null||r(b),p(!0))}catch(b){console.error("Failed to parse saved credentials:",b)}},[r,f]);const h=async(y,b)=>{o(y),l(b),t&&t(y,b)},m=async y=>{u(y),n&&n(y)},g=[{label:i.formatMessage({id:"pages.login.country.china"}),value:"86",icon:"🇨🇳",code:"CN"},{label:i.formatMessage({id:"pages.login.country.hongkong"}),value:"852",icon:"🇭🇰",code:"HK"},{label:i.formatMessage({id:"pages.login.country.taiwan"}),value:"886",icon:"🇹🇼",code:"TW"},{label:i.formatMessage({id:"pages.login.country.macao"}),value:"853",icon:"🇲🇴",code:"MO"},{label:i.formatMessage({id:"pages.login.country.japan"}),value:"81",icon:"🇯🇵",code:"JP"},{label:i.formatMessage({id:"pages.login.country.korea"}),value:"82",icon:"🇰🇷",code:"KR"},{label:i.formatMessage({id:"pages.login.country.singapore"}),value:"65",icon:"🇸🇬",code:"SG"},{label:i.formatMessage({id:"pages.login.country.malaysia"}),value:"60",icon:"🇲🇾",code:"MY"},{label:i.formatMessage({id:"pages.login.country.thailand"}),value:"66",icon:"🇹🇭",code:"TH"},{label:i.formatMessage({id:"pages.login.country.vietnam"}),value:"84",icon:"🇻🇳",code:"VN"},{label:i.formatMessage({id:"pages.login.country.philippines"}),value:"63",icon:"🇵🇭",code:"PH"},{label:i.formatMessage({id:"pages.login.country.indonesia"}),value:"62",icon:"🇮🇩",code:"ID"},{label:i.formatMessage({id:"pages.login.country.usa"}),value:"1-us",icon:"🇺🇸",code:"US"},{label:i.formatMessage({id:"pages.login.country.canada"}),value:"1-ca",icon:"🇨🇦",code:"CA"},{label:i.formatMessage({id:"pages.login.country.uk"}),value:"44",icon:"🇬🇧",code:"GB"},{label:i.formatMessage({id:"pages.login.country.germany"}),value:"49",icon:"🇩🇪",code:"DE"},{label:i.formatMessage({id:"pages.login.country.france"}),value:"33",icon:"🇫🇷",code:"FR"},{label:i.formatMessage({id:"pages.login.country.italy"}),value:"39",icon:"🇮🇹",code:"IT"},{label:i.formatMessage({id:"pages.login.country.spain"}),value:"34",icon:"🇪🇸",code:"ES"},{label:i.formatMessage({id:"pages.login.country.russia"}),value:"7",icon:"🇷🇺",code:"RU"},{label:i.formatMessage({id:"pages.login.country.australia"}),value:"61",icon:"🇦🇺",code:"AU"},{label:i.formatMessage({id:"pages.login.country.newzealand"}),value:"64",icon:"🇳🇿",code:"NZ"}],v=y=>{const b=y.value.includes("-")?y.value.split("-")[0]:y.value;return x.jsxs("div",{children:[x.jsx("span",{role:"img","aria-label":y.label,style:{marginRight:8},children:y.icon}),y.label," (+",b,")"]})};return x.jsx(x.Fragment,{children:e==="mobile"&&x.jsxs(x.Fragment,{children:[x.jsxs(B8,{gutter:16,children:[x.jsx(j0,{span:10,children:x.jsx(za,{name:"country",options:g,fieldProps:{size:"large",placeholder:i.formatMessage({id:"pages.login.country.placeholder",defaultMessage:"选择国家/地区"}),optionLabelProp:"label",optionItemRender:v},initialValue:"86"})}),x.jsx(j0,{span:14,children:x.jsx(Pr,{fieldProps:{size:"large",prefix:x.jsx(j4,{className:"prefixIcon"}),onChange:()=>{p(!0)},onClear:()=>{console.log("onClear");const y=localStorage.getItem(vl);if(y)try{const b=JSON.parse(y),{mobile:w,..._}=b;console.log("saved:",w,b),localStorage.setItem(vl,JSON.stringify(_))}catch(b){console.error("Failed to parse saved credentials:",b)}}},name:"mobile",placeholder:i.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:x.jsx(Qc,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:x.jsx(Qc,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]})})]}),x.jsx(qn.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:x.jsx(Jy,{onKaptchaChange:h,onKaptchaCheck:m})}),x.jsx(H4,{fieldProps:{size:"large",prefix:x.jsx(Xg,{className:"prefixIcon"})},captchaProps:{size:"large",disabled:!c},placeholder:i.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(y,b)=>y?`${b} ${i.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:i.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:x.jsx(Qc,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async y=>{if(console.log("mobile:",y),y&&y.length===11){const w=await AH({mobile:y,type:R6e,captchaUid:a,captchaCode:s,platform:hc});if(console.log("sendMobileCode:",w.data),w.data.code!==200){Re.error(i.formatMessage({id:w.data.message,defaultMessage:w.data.message}));return}Re.success(i.formatMessage({id:w.data.message,defaultMessage:w.data.message}))}else Re.error("手机号格式错误")}}),x.jsx(QE,{message:x.jsx(Qc,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},mNt=({loginType:e})=>{const t=Pn(),n=$o(),r=aa(h=>h.setUserInfo),i=J3(h=>h.setAccessToken),{deviceUid:a,setDeviceUid:o}=aa(h=>({deviceUid:h.deviceUid,setDeviceUid:h.setDeviceUid})),[s,l]=d.useState("login"),[c,u]=d.useState("loading"),f=async h=>{console.log("handleScanLogin values: ",h),Re.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const m=await fNt({...h});console.log("LoginMobileResult scanLogin:",m.data),m.data.code===200?(Re.destroy(),Re.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),r(m.data.data.user),i(m.data.data.accessToken),n("/chat"),nN()):(Re.destroy(),Re.error(m.data.message))},p=async h=>{if(e!="scan")return;const m=await dNt(a,h);if(m.data.code===200){const g=m.data.data;if(console.log("handleScanQuery status: ",g.status),g.status===F6e)u("active"),l("deviceUid="+g.deviceUid+"&code="+g.content);else if(g.status===L6e)u("scanned");else if(g.status===z6e)u("expired");else if(g.status===B6e){if(g.receiver===void 0||g.receiver==="")return;let v={mobile:g.receiver,code:g.content,platform:hc};console.log("login scan info:",v),await f(v)}}else Re.error(m.data.message)};return d.useEffect(()=>{console.log("scan deviceUid:",a),(a===void 0||a==="")&&o(Ua()),p(!0);const h=setInterval(()=>{p(!1)},3e3);return()=>{clearInterval(h)}},[e,a]),x.jsx(x.Fragment,{children:e==="scan"&&x.jsx(x.Fragment,{children:x.jsx(rz,{style:{margin:"auto"},value:s,status:c,onRefresh:()=>{console.log("onRefresh"),p(!0)}})})})},Q2e=()=>{const{token:e}=zo.useToken(),{isCustomServer:t,setIsCustomServer:n}=d.useContext(Ma),[r]=qn.useForm(),[i,a]=d.useState(!1),[o,s]=d.useState(""),[l,c]=d.useState(""),u=Pn(),f=()=>{console.log("switch server"),n(m=>!m)};d.useEffect(()=>{o&&o.length>0&&(r.setFieldsValue({apiUrl:o}),console.log("apiUrl:",o))},[o]),d.useEffect(()=>{if(t){const m=localStorage.getItem(uv);m==="true"&&(a(!0),r.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",m);const g=localStorage.getItem(p2);g&&r.setFieldsValue({apiUrl:k1(g)});const v=localStorage.getItem(h2);v&&r.setFieldsValue({websocketUrl:k1(v)})}},[t]);const p=m=>{if(console.log("handleCustomServerChange e:",m),a(m.target.checked),m.target.checked){const g=localStorage.getItem(p2);g&&r.setFieldsValue({apiUrl:k1(g)});const v=localStorage.getItem(h2);v&&r.setFieldsValue({websocketUrl:k1(v)}),console.log("initData apiUrl:",g,"websocketUrl:",v)}else localStorage.setItem(uv,"false")},h=(m,g)=>(console.log("props:",m,g),x.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[x.jsx(Yt,{icon:x.jsx(Jnt,{}),onClick:f,children:u.formatMessage({id:"server.button.back"})},"back"),x.jsx(Yt,{type:"primary",onClick:()=>{let v=m.form.getFieldValue("apiUrl");v=k1(v.trim());let y=m.form.getFieldValue("websocketUrl");y=k1(y.trim()),v&&v.trim().length>0&&y&&y.trim().length>0?(localStorage.setItem(p2,v),localStorage.setItem(h2,y),localStorage.setItem(uv,"true"),Re.success(u.formatMessage({id:"server.save.success"}))):Re.error("请输入正确的服务器地址")},children:u.formatMessage({id:"server.button.save"})},"submit"),x.jsx(Yt,{onClick:()=>{var v;(v=m.form)==null||v.resetFields(),s(""),localStorage.setItem(uv,"false"),localStorage.setItem(p2,""),localStorage.setItem(h2,""),Re.success(u.formatMessage({id:"server.reset.success"}))},children:u.formatMessage({id:"server.button.reset"})},"reset"),x.jsx(Yt,{onClick:()=>{N0("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:u.formatMessage({id:"server.button.help"})},"help")]}));return x.jsx("div",{className:"ant-pro-form-server-container",style:{backgroundColor:e.colorBgContainer,display:"flex",justifyContent:"center",flexDirection:"column",height:"100%",width:"80%",marginLeft:"10%"},children:x.jsxs(qn,{className:"ant-pro-form-server-main",form:r,submitter:{render:h},children:[x.jsx(cH,{name:"isCustomServerEnabled",fieldProps:{onChange:p},children:u.formatMessage({id:"server.custom.enable"})}),i&&x.jsxs(x.Fragment,{children:[x.jsx(Pr,{name:"apiUrl",label:u.formatMessage({id:"server.api.url.label"}),fieldProps:{disabled:!i,placeholder:u.formatMessage({id:"server.api.url.placeholder"}),onChange:m=>s(m.target.value)}}),x.jsx(Pr,{name:"websocketUrl",label:u.formatMessage({id:"server.websocket.url.label"}),fieldProps:{disabled:!i,placeholder:u.formatMessage({id:"server.websocket.url.placeholder"}),onChange:m=>c(m.target.value)}})]})]})})},gNt=({isModel:e=!1})=>{const t=Pn(),[n]=qn.useForm(),r=$o(),{token:i}=zo.useToken(),[a,o]=d.useState("/agent/icons/logo.png"),[s,l]=d.useState(""),[c,u]=d.useState(""),[f,p]=d.useState("account"),h=aa(N=>N.setUserInfo),m=J3(N=>N.setAccessToken),{isCustomServer:g,setIsCustomServer:v}=d.useContext(Ma),[y,b]=d.useState(!1),w=N=>{console.log(`onPrivacyProtocolChange checked = ${N.target.checked}`),b(N.target.checked);const D=localStorage.getItem(vl);if(D)try{const{remember:V}=JSON.parse(D);V&&setTimeout(()=>{n.setFieldsValue({remember:V})},0)}catch(V){console.error("Failed to parse saved credentials:",V)}},_=()=>{N0("https://www.weiyuai.cn/protocol.html")},[k,S]=d.useState(""),C=async(N,D)=>{S(N),n.setFieldValue("captchaCode",D)},E=async N=>{console.log("handleKaptchaCheck:",N)},$=async N=>{if(console.log("handleSubmit values: ",N,f),!y){Re.error("请阅读并同意隐私协议");return}Re.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const D=localStorage.getItem(vl);let V=!1;if(D)try{V=JSON.parse(D).remember}catch(K){console.error("Failed to parse saved credentials:",K)}localStorage.setItem(vl,JSON.stringify({username:N.username,remember:V}));const F=await cNt({...N});console.log("LoginResult:",F.data),F.data.code===200?(Re.destroy(),Re.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),V&&localStorage.setItem(vl,JSON.stringify({username:N.username,password:N.password,remember:!0})),h(F.data.data.user),m(F.data.data.accessToken),e||r("/chat"),nN()):(Re.destroy(),Re.error(t.formatMessage({id:F.data.message,defaultMessage:F.data.message})))},M=N=>{n.setFieldsValue({mobile:N})},P=async N=>{if(!y){Re.error(t.formatMessage({id:"login.privacy.required",defaultMessage:"请阅读并同意隐私协议"}));return}const D=localStorage.getItem(vl);let V={};if(D)try{V=JSON.parse(D)}catch(K){console.error("Failed to parse saved credentials:",K)}localStorage.setItem(vl,JSON.stringify({...V,mobile:N.mobile}));const F=await uNt({...N});console.log("LoginMobileResult:",F),F.data.code===200?(Re.destroy(),Re.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),h(F.data.data.user),m(F.data.data.accessToken),e||r("/chat"),nN()):(Re.destroy(),Re.error(t.formatMessage({id:F.data.message,defaultMessage:F.data.message})))},I=()=>{console.log("switch server"),v(N=>!N)},O=()=>{console.log("handleAnonymousLogin"),r("/anonymous")},A=()=>{if(Xo)return{}},R=(N,D)=>{n.setFieldsValue({username:N,remember:D});const V=localStorage.getItem(vl);if(V&&D)try{const{password:F}=JSON.parse(V);F&&n.setFieldsValue({password:F})}catch(F){console.error("Failed to parse saved credentials:",F)}},j=async()=>{var D,V,F,K,B,U,Z;console.log("getConfig");const N=await wle();(D=N==null?void 0:N.custom)!=null&&D.enabled?((V=N==null?void 0:N.custom)!=null&&V.logo?o((F=N==null?void 0:N.custom)==null?void 0:F.logo):o("/agent/icons/logo.png"),(K=N==null?void 0:N.custom)!=null&&K.name?l((B=N==null?void 0:N.custom)==null?void 0:B.name):l(t.formatMessage({id:"app.title"})),(U=N==null?void 0:N.custom)!=null&&U.description?u((Z=N==null?void 0:N.custom)==null?void 0:Z.description):u(t.formatMessage({id:"slogan"}))):(o("/agent/icons/logo.png"),l(t.formatMessage({id:"app.title"})),u(t.formatMessage({id:"slogan"}))),ble()};return d.useEffect(()=>{fde(),j()},[]),x.jsx(o$,{hashed:!1,children:x.jsxs("div",{style:{backgroundColor:i.colorBgContainer,textAlign:"center",height:"100%"},children:[!g&&x.jsxs(Ibe,{form:n,contentStyle:{minWidth:400},logo:x.jsx("img",{alt:"logo",src:a}),title:s,subTitle:c,initialValues:A(),onFinish:async N=>{if(console.log("login:",N),f==="account"){const D={username:N.username,password:N.password,captchaUid:k,captchaCode:N.captchaCode,platform:hc};await $(D)}else if(f==="mobile"){const D={mobile:N.mobile,code:N.code,captchaUid:k,captchaCode:N.captchaCode,platform:hc};await P(D)}else console.log("scan login type")},actions:Xo&&x.jsxs(Zr,{children:[x.jsx(Qc,{id:"pages.login.loginWith",defaultMessage:"其他登录方式"}),x.jsx(Yt,{type:"link",onClick:O,children:t.formatMessage({id:"pages.login.anonymousLogin",defaultMessage:"匿名登录"})})]}),children:[x.jsx(wh,{centered:!0,items:[{key:"account",label:t.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:x.jsx(lNt,{loginType:f,onKaptchaChange:C,onKaptchaCheck:E,onRememberChange:R})},{key:"mobile",label:t.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:x.jsx(hNt,{loginType:f,onKaptchaChange:C,onKaptchaCheck:E,onRememberChange:M})},{key:"scan",label:t.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:x.jsx(mNt,{loginType:f})}],activeKey:f,onChange:N=>p(N)}),x.jsxs("div",{style:{marginBlockEnd:24,textAlign:"left",marginTop:10},children:[x.jsx(us,{checked:y,onChange:w,children:x.jsx(Yt,{size:"small",type:"link",onClick:_,children:t.formatMessage({id:"login.privacy.agreement",defaultMessage:"同意《用户隐私&协议》"})})}),x.jsx(Yt,{type:"link",style:{float:"right",marginBottom:24},onClick:I,children:t.formatMessage({id:"login.switch.server",defaultMessage:"切换服务器"})})]})]}),g&&x.jsx(Q2e,{})]})})},lA=({isModel:e=!1})=>x.jsx(g8,{children:x.jsx(gNt,{isModel:e})}),vNt=()=>{$o();const{token:e}=zo.useToken();return d.useState("phone"),ul(e.colorTextBase,.2),x.jsx(o$,{hashed:!1,children:x.jsx("div",{style:{backgroundColor:e.colorBgContainer,textAlign:"center",height:"100vh"},children:x.jsxs(Ibe,{logo:"./logo.png",title:"微语",subTitle:"注册账号",children:[x.jsxs(x.Fragment,{children:[x.jsx(Pr,{name:"username",fieldProps:{size:"large",prefix:x.jsx(nz,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),x.jsx(Pr.Password,{name:"password",fieldProps:{size:"large",prefix:x.jsx(Xg,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),x.jsxs("div",{style:{marginBlockEnd:24},children:[x.jsx(cH,{noStyle:!0,name:"autoLogin",children:"自动登录"}),x.jsx(ift,{to:"/agent/auth/login",style:{float:"right"},children:"登录"})]})]})})})};(function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(w){try{return w.defaultView&&w.defaultView.frameElement||null}catch{return null}}var t=function(w){for(var _=w,k=e(_);k;)_=k.ownerDocument,k=e(_);return _}(window.document),n=[],r=null,i=null;function a(w){this.time=w.time,this.target=w.target,this.rootBounds=m(w.rootBounds),this.boundingClientRect=m(w.boundingClientRect),this.intersectionRect=m(w.intersectionRect||h()),this.isIntersecting=!!w.intersectionRect;var _=this.boundingClientRect,k=_.width*_.height,S=this.intersectionRect,C=S.width*S.height;k?this.intersectionRatio=Number((C/k).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function o(w,_){var k=_||{};if(typeof w!="function")throw new Error("callback must be a function");if(k.root&&k.root.nodeType!=1&&k.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=w,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(k.rootMargin),this.thresholds=this._initThresholds(k.threshold),this.root=k.root||null,this.rootMargin=this._rootMarginValues.map(function(S){return S.value+S.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return r||(r=function(w,_){!w||!_?i=h():i=g(w,_),n.forEach(function(k){k._checkForIntersections()})}),r},o._resetCrossOriginUpdater=function(){r=null,i=null},o.prototype.observe=function(w){var _=this._observationTargets.some(function(k){return k.element==w});if(!_){if(!(w&&w.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:w,entry:null}),this._monitorIntersections(w.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(w){this._observationTargets=this._observationTargets.filter(function(_){return _.element!=w}),this._unmonitorIntersections(w.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var w=this._queuedEntries.slice();return this._queuedEntries=[],w},o.prototype._initThresholds=function(w){var _=w||[0];return Array.isArray(_)||(_=[_]),_.sort().filter(function(k,S,C){if(typeof k!="number"||isNaN(k)||k<0||k>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return k!==C[S-1]})},o.prototype._parseRootMargin=function(w){var _=w||"0px",k=_.split(/\s+/).map(function(S){var C=/^(-?\d*\.?\d+)(px|%)$/.exec(S);if(!C)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(C[1]),unit:C[2]}});return k[1]=k[1]||k[0],k[2]=k[2]||k[0],k[3]=k[3]||k[1],k},o.prototype._monitorIntersections=function(w){var _=w.defaultView;if(_&&this._monitoringDocuments.indexOf(w)==-1){var k=this._checkForIntersections,S=null,C=null;this.POLL_INTERVAL?S=_.setInterval(k,this.POLL_INTERVAL):(c(_,"resize",k,!0),c(w,"scroll",k,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in _&&(C=new _.MutationObserver(k),C.observe(w,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(w),this._monitoringUnsubscribes.push(function(){var M=w.defaultView;M&&(S&&M.clearInterval(S),u(M,"resize",k,!0)),u(w,"scroll",k,!0),C&&C.disconnect()});var E=this.root&&(this.root.ownerDocument||this.root)||t;if(w!=E){var $=e(w);$&&this._monitorIntersections($.ownerDocument)}}},o.prototype._unmonitorIntersections=function(w){var _=this._monitoringDocuments.indexOf(w);if(_!=-1){var k=this.root&&(this.root.ownerDocument||this.root)||t,S=this._observationTargets.some(function($){var M=$.element.ownerDocument;if(M==w)return!0;for(;M&&M!=k;){var P=e(M);if(M=P&&P.ownerDocument,M==w)return!0}return!1});if(!S){var C=this._monitoringUnsubscribes[_];if(this._monitoringDocuments.splice(_,1),this._monitoringUnsubscribes.splice(_,1),C(),w!=k){var E=e(w);E&&this._unmonitorIntersections(E.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var w=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var _=0;_=0&&M>=0&&{top:k,bottom:S,left:C,right:E,width:$,height:M}||null}function p(w){var _;try{_=w.getBoundingClientRect()}catch{}return _?(_.width&&_.height||(_={top:_.top,right:_.right,bottom:_.bottom,left:_.left,width:_.right-_.left,height:_.bottom-_.top}),_):h()}function h(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function m(w){return!w||"x"in w?w:{top:w.top,y:w.top,bottom:w.bottom,left:w.left,x:w.left,right:w.right,width:w.width,height:w.height}}function g(w,_){var k=_.top-w.top,S=_.left-w.left;return{top:k,left:S,height:_.height,width:_.width,bottom:k+_.height,right:S+_.width}}function v(w,_){for(var k=_;k;){if(k==w)return!0;k=y(k)}return!1}function y(w){var _=w.parentNode;return w.nodeType==9&&w!=t?e(w):(_&&_.assignedSlot&&(_=_.assignedSlot.parentNode),_&&_.nodeType==11&&_.host?_.host:_)}function b(w){return w&&w.nodeType===9}window.IntersectionObserver=o,window.IntersectionObserverEntry=a})();function J2e(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:y_;wte&&wte(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(yNt(t)||(t[r]=a),i=a)}e[i]=!0}return e}function _Nt(e){for(let t=0;t/gm),TNt=wc(/\${[\w\W]*}/gm),PNt=wc(/^data-[\-\w.\u00B7-\uFFFF]/),ONt=wc(/^aria-[\-\w]+$/),nwe=wc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),INt=wc(/^(?:\w+script|data):/i),RNt=wc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rwe=wc(/^html$/i),jNt=wc(/^[a-z][.\w]*(-[.\w]+)+$/i);var $te=Object.freeze({__proto__:null,ARIA_ATTR:ONt,ATTR_WHITESPACE:RNt,CUSTOM_ELEMENT:jNt,DATA_ATTR:PNt,DOCTYPE_NAME:rwe,ERB_EXPR:MNt,IS_ALLOWED_URI:nwe,IS_SCRIPT_OR_DATA:INt,MUSTACHE_EXPR:$Nt,TMPLIT_EXPR:TNt});const Jb={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},NNt=function(){return typeof window>"u"?null:window},ANt=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function iwe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:NNt();const t=ft=>iwe(ft);if(t.version="3.2.1",t.removed=[],!e||!e.document||e.document.nodeType!==Jb.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:h}=e,m=l.prototype,g=Qb(m,"cloneNode"),v=Qb(m,"remove"),y=Qb(m,"nextSibling"),b=Qb(m,"childNodes"),w=Qb(m,"parentNode");if(typeof o=="function"){const ft=n.createElement("template");ft.content&&ft.content.ownerDocument&&(n=ft.content.ownerDocument)}let _,k="";const{implementation:S,createNodeIterator:C,createDocumentFragment:E,getElementsByTagName:$}=n,{importNode:M}=r;let P={};t.isSupported=typeof ewe=="function"&&typeof w=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:I,ERB_EXPR:O,TMPLIT_EXPR:A,DATA_ATTR:R,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:V}=$te;let{IS_ALLOWED_URI:F}=$te,K=null;const B=Ir({},[...Cte,...XT,...ZT,...QT,..._te]);let U=null;const Z=Ir({},[...kte,...JT,...Ete,...GS]);let ee=Object.seal(twe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,Y=null,X=!0,ae=!0,oe=!1,le=!0,ce=!1,pe=!0,me=!1,re=!1,fe=!1,ve=!1,$e=!1,Ce=!1,be=!0,Se=!1;const we="user-content-";let se=!0,ye=!1,Oe={},z=null;const H=Ir({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let G=null;const de=Ir({},["audio","video","img","source","image","track"]);let xe=null;const he=Ir({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ue="http://www.w3.org/1998/Math/MathML",We="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ze=ge,Ve=!1,Be=null;const Xe=Ir({},[Ue,We,ge],YT);let Ke=Ir({},["mi","mo","mn","ms","mtext"]),qe=Ir({},["annotation-xml"]);const Et=Ir({},["title","style","font","a","script"]);let dt=null;const vt=["application/xhtml+xml","text/html"],Ze="text/html";let nt=null,jt=null;const Lt=n.createElement("form"),Bt=function(De){return De instanceof RegExp||De instanceof Function},Ht=function(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jt&&jt===De)){if((!De||typeof De!="object")&&(De={}),De=rm(De),dt=vt.indexOf(De.PARSER_MEDIA_TYPE)===-1?Ze:De.PARSER_MEDIA_TYPE,nt=dt==="application/xhtml+xml"?YT:y_,K=Lc(De,"ALLOWED_TAGS")?Ir({},De.ALLOWED_TAGS,nt):B,U=Lc(De,"ALLOWED_ATTR")?Ir({},De.ALLOWED_ATTR,nt):Z,Be=Lc(De,"ALLOWED_NAMESPACES")?Ir({},De.ALLOWED_NAMESPACES,YT):Xe,xe=Lc(De,"ADD_URI_SAFE_ATTR")?Ir(rm(he),De.ADD_URI_SAFE_ATTR,nt):he,G=Lc(De,"ADD_DATA_URI_TAGS")?Ir(rm(de),De.ADD_DATA_URI_TAGS,nt):de,z=Lc(De,"FORBID_CONTENTS")?Ir({},De.FORBID_CONTENTS,nt):H,ie=Lc(De,"FORBID_TAGS")?Ir({},De.FORBID_TAGS,nt):{},Y=Lc(De,"FORBID_ATTR")?Ir({},De.FORBID_ATTR,nt):{},Oe=Lc(De,"USE_PROFILES")?De.USE_PROFILES:!1,X=De.ALLOW_ARIA_ATTR!==!1,ae=De.ALLOW_DATA_ATTR!==!1,oe=De.ALLOW_UNKNOWN_PROTOCOLS||!1,le=De.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ce=De.SAFE_FOR_TEMPLATES||!1,pe=De.SAFE_FOR_XML!==!1,me=De.WHOLE_DOCUMENT||!1,ve=De.RETURN_DOM||!1,$e=De.RETURN_DOM_FRAGMENT||!1,Ce=De.RETURN_TRUSTED_TYPE||!1,fe=De.FORCE_BODY||!1,be=De.SANITIZE_DOM!==!1,Se=De.SANITIZE_NAMED_PROPS||!1,se=De.KEEP_CONTENT!==!1,ye=De.IN_PLACE||!1,F=De.ALLOWED_URI_REGEXP||nwe,ze=De.NAMESPACE||ge,Ke=De.MATHML_TEXT_INTEGRATION_POINTS||Ke,qe=De.HTML_INTEGRATION_POINTS||qe,ee=De.CUSTOM_ELEMENT_HANDLING||{},De.CUSTOM_ELEMENT_HANDLING&&Bt(De.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=De.CUSTOM_ELEMENT_HANDLING.tagNameCheck),De.CUSTOM_ELEMENT_HANDLING&&Bt(De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),De.CUSTOM_ELEMENT_HANDLING&&typeof De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ce&&(ae=!1),$e&&(ve=!0),Oe&&(K=Ir({},_te),U=[],Oe.html===!0&&(Ir(K,Cte),Ir(U,kte)),Oe.svg===!0&&(Ir(K,XT),Ir(U,JT),Ir(U,GS)),Oe.svgFilters===!0&&(Ir(K,ZT),Ir(U,JT),Ir(U,GS)),Oe.mathMl===!0&&(Ir(K,QT),Ir(U,Ete),Ir(U,GS))),De.ADD_TAGS&&(K===B&&(K=rm(K)),Ir(K,De.ADD_TAGS,nt)),De.ADD_ATTR&&(U===Z&&(U=rm(U)),Ir(U,De.ADD_ATTR,nt)),De.ADD_URI_SAFE_ATTR&&Ir(xe,De.ADD_URI_SAFE_ATTR,nt),De.FORBID_CONTENTS&&(z===H&&(z=rm(z)),Ir(z,De.FORBID_CONTENTS,nt)),se&&(K["#text"]=!0),me&&Ir(K,["html","head","body"]),K.table&&(Ir(K,["tbody"]),delete ie.tbody),De.TRUSTED_TYPES_POLICY){if(typeof De.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zb('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof De.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zb('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=De.TRUSTED_TYPES_POLICY,k=_.createHTML("")}else _===void 0&&(_=ANt(h,i)),_!==null&&typeof k=="string"&&(k=_.createHTML(""));ys&&ys(De),jt=De}},Ne=Ir({},[...XT,...ZT,...kNt]),He=Ir({},[...QT,...ENt]),Le=function(De){let Ye=w(De);(!Ye||!Ye.tagName)&&(Ye={namespaceURI:ze,tagName:"template"});const st=y_(De.tagName),Ie=y_(Ye.tagName);return Be[De.namespaceURI]?De.namespaceURI===We?Ye.namespaceURI===ge?st==="svg":Ye.namespaceURI===Ue?st==="svg"&&(Ie==="annotation-xml"||Ke[Ie]):!!Ne[st]:De.namespaceURI===Ue?Ye.namespaceURI===ge?st==="math":Ye.namespaceURI===We?st==="math"&&qe[Ie]:!!He[st]:De.namespaceURI===ge?Ye.namespaceURI===We&&!qe[Ie]||Ye.namespaceURI===Ue&&!Ke[Ie]?!1:!He[st]&&(Et[st]||!Ne[st]):!!(dt==="application/xhtml+xml"&&Be[De.namespaceURI]):!1},Qe=function(De){Yb(t.removed,{element:De});try{w(De).removeChild(De)}catch{v(De)}},ht=function(De,Ye){try{Yb(t.removed,{attribute:Ye.getAttributeNode(De),from:Ye})}catch{Yb(t.removed,{attribute:null,from:Ye})}if(Ye.removeAttribute(De),De==="is"&&!U[De])if(ve||$e)try{Qe(Ye)}catch{}else try{Ye.setAttribute(De,"")}catch{}},xt=function(De){let Ye=null,st=null;if(fe)De=""+De;else{const rt=Ste(De,/^[\r\n\t ]+/);st=rt&&rt[0]}dt==="application/xhtml+xml"&&ze===ge&&(De=''+De+"");const Ie=_?_.createHTML(De):De;if(ze===ge)try{Ye=new p().parseFromString(Ie,dt)}catch{}if(!Ye||!Ye.documentElement){Ye=S.createDocument(ze,"template",null);try{Ye.documentElement.innerHTML=Ve?k:Ie}catch{}}const Rt=Ye.body||Ye.documentElement;return De&&st&&Rt.insertBefore(n.createTextNode(st),Rt.childNodes[0]||null),ze===ge?$.call(Ye,me?"html":"body")[0]:me?Ye.documentElement:Rt},Nt=function(De){return C.call(De.ownerDocument||De,De,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ot=function(De){return De instanceof f&&(typeof De.nodeName!="string"||typeof De.textContent!="string"||typeof De.removeChild!="function"||!(De.attributes instanceof u)||typeof De.removeAttribute!="function"||typeof De.setAttribute!="function"||typeof De.namespaceURI!="string"||typeof De.insertBefore!="function"||typeof De.hasChildNodes!="function")},Pt=function(De){return typeof s=="function"&&De instanceof s};function lt(ft,De,Ye){P[ft]&&KS(P[ft],st=>{st.call(t,De,Ye,jt)})}const Ct=function(De){let Ye=null;if(lt("beforeSanitizeElements",De,null),Ot(De))return Qe(De),!0;const st=nt(De.nodeName);if(lt("uponSanitizeElement",De,{tagName:st,allowedTags:K}),De.hasChildNodes()&&!Pt(De.firstElementChild)&&is(/<[/\w]/g,De.innerHTML)&&is(/<[/\w]/g,De.textContent)||De.nodeType===Jb.progressingInstruction||pe&&De.nodeType===Jb.comment&&is(/<[/\w]/g,De.data))return Qe(De),!0;if(!K[st]||ie[st]){if(!ie[st]&&qt(st)&&(ee.tagNameCheck instanceof RegExp&&is(ee.tagNameCheck,st)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(st)))return!1;if(se&&!z[st]){const Ie=w(De)||De.parentNode,Rt=b(De)||De.childNodes;if(Rt&&Ie){const rt=Rt.length;for(let $t=rt-1;$t>=0;--$t){const Mt=g(Rt[$t],!0);Mt.__removalCount=(De.__removalCount||0)+1,Ie.insertBefore(Mt,y(De))}}}return Qe(De),!0}return De instanceof l&&!Le(De)||(st==="noscript"||st==="noembed"||st==="noframes")&&is(/<\/no(script|embed|frames)/i,De.innerHTML)?(Qe(De),!0):(ce&&De.nodeType===Jb.text&&(Ye=De.textContent,KS([I,O,A],Ie=>{Ye=Xb(Ye,Ie," ")}),De.textContent!==Ye&&(Yb(t.removed,{element:De.cloneNode()}),De.textContent=Ye)),lt("afterSanitizeElements",De,null),!1)},kt=function(De,Ye,st){if(be&&(Ye==="id"||Ye==="name")&&(st in n||st in Lt))return!1;if(!(ae&&!Y[Ye]&&is(R,Ye))){if(!(X&&is(j,Ye))){if(!U[Ye]||Y[Ye]){if(!(qt(De)&&(ee.tagNameCheck instanceof RegExp&&is(ee.tagNameCheck,De)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(De))&&(ee.attributeNameCheck instanceof RegExp&&is(ee.attributeNameCheck,Ye)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(Ye))||Ye==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&is(ee.tagNameCheck,st)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(st))))return!1}else if(!xe[Ye]){if(!is(F,Xb(st,D,""))){if(!((Ye==="src"||Ye==="xlink:href"||Ye==="href")&&De!=="script"&&xNt(st,"data:")===0&&G[De])){if(!(oe&&!is(N,Xb(st,D,"")))){if(st)return!1}}}}}}return!0},qt=function(De){return De!=="annotation-xml"&&Ste(De,V)},yt=function(De){lt("beforeSanitizeAttributes",De,null);const{attributes:Ye}=De;if(!Ye)return;const st={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let Ie=Ye.length;for(;Ie--;){const Rt=Ye[Ie],{name:rt,namespaceURI:$t,value:Mt}=Rt,cn=nt(rt);let fn=rt==="value"?Mt:SNt(Mt);if(st.attrName=cn,st.attrValue=fn,st.keepAttr=!0,st.forceKeepAttr=void 0,lt("uponSanitizeAttribute",De,st),fn=st.attrValue,Se&&(cn==="id"||cn==="name")&&(ht(rt,De),fn=we+fn),pe&&is(/((--!?|])>)|<\/(style|title)/i,fn)){ht(rt,De);continue}if(st.forceKeepAttr||(ht(rt,De),!st.keepAttr))continue;if(!le&&is(/\/>/i,fn)){ht(rt,De);continue}ce&&KS([I,O,A],L=>{fn=Xb(fn,L," ")});const T=nt(De.nodeName);if(kt(T,cn,fn)){if(_&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!$t)switch(h.getAttributeType(T,cn)){case"TrustedHTML":{fn=_.createHTML(fn);break}case"TrustedScriptURL":{fn=_.createScriptURL(fn);break}}try{$t?De.setAttributeNS($t,rt,fn):De.setAttribute(rt,fn),Ot(De)?Qe(De):xte(t.removed)}catch{}}}lt("afterSanitizeAttributes",De,null)},At=function ft(De){let Ye=null;const st=Nt(De);for(lt("beforeSanitizeShadowDOM",De,null);Ye=st.nextNode();)lt("uponSanitizeShadowNode",Ye,null),!Ct(Ye)&&(Ye.content instanceof a&&ft(Ye.content),yt(Ye));lt("afterSanitizeShadowDOM",De,null)};return t.sanitize=function(ft){let De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=null,st=null,Ie=null,Rt=null;if(Ve=!ft,Ve&&(ft=""),typeof ft!="string"&&!Pt(ft))if(typeof ft.toString=="function"){if(ft=ft.toString(),typeof ft!="string")throw Zb("dirty is not a string, aborting")}else throw Zb("toString is not a function");if(!t.isSupported)return ft;if(re||Ht(De),t.removed=[],typeof ft=="string"&&(ye=!1),ye){if(ft.nodeName){const Mt=nt(ft.nodeName);if(!K[Mt]||ie[Mt])throw Zb("root node is forbidden and cannot be sanitized in-place")}}else if(ft instanceof s)Ye=xt(""),st=Ye.ownerDocument.importNode(ft,!0),st.nodeType===Jb.element&&st.nodeName==="BODY"||st.nodeName==="HTML"?Ye=st:Ye.appendChild(st);else{if(!ve&&!ce&&!me&&ft.indexOf("<")===-1)return _&&Ce?_.createHTML(ft):ft;if(Ye=xt(ft),!Ye)return ve?null:Ce?k:""}Ye&&fe&&Qe(Ye.firstChild);const rt=Nt(ye?ft:Ye);for(;Ie=rt.nextNode();)Ct(Ie)||(Ie.content instanceof a&&At(Ie.content),yt(Ie));if(ye)return ft;if(ve){if($e)for(Rt=E.call(Ye.ownerDocument);Ye.firstChild;)Rt.appendChild(Ye.firstChild);else Rt=Ye;return(U.shadowroot||U.shadowrootmode)&&(Rt=M.call(r,Rt,!0)),Rt}let $t=me?Ye.outerHTML:Ye.innerHTML;return me&&K["!doctype"]&&Ye.ownerDocument&&Ye.ownerDocument.doctype&&Ye.ownerDocument.doctype.name&&is(rwe,Ye.ownerDocument.doctype.name)&&($t=" -`+$t),ce&&KS([I,O,A],Mt=>{$t=Xb($t,Mt," ")}),_&&Ce?_.createHTML($t):$t},t.setConfig=function(){let ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ht(ft),re=!0},t.clearConfig=function(){jt=null,re=!1},t.isValidAttribute=function(ft,De,Ye){jt||Ht({});const st=nt(ft),Ie=nt(De);return kt(st,Ie,Ye)},t.addHook=function(ft,De){typeof De=="function"&&(P[ft]=P[ft]||[],Yb(P[ft],De))},t.removeHook=function(ft){if(P[ft])return xte(P[ft])},t.removeHooks=function(ft){P[ft]&&(P[ft]=[])},t.removeAllHooks=function(){P={}},t}var DNt=iwe();function FNt(e,t="click"){const n=d.useRef();return d.useEffect(()=>{const r=i=>{const a=n.current;!a||a.contains(i.target)||e&&e(i)};return document.addEventListener(t,r),()=>{document.removeEventListener(t,r)}},[t,e]),n}function DH(e){const t=d.useRef(null);return d.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)},[e]),t}function LNt(e){const t=d.useRef(e);return t.current=e,t}function BNt(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)}function zNt(e){return e.offsetHeight}const HNt=5*60*1e3;let Mte=0;const eP=(e,t)=>{const n=e.createdAt||Date.now(),r=e.hasTime||n-Mte>HNt;return r&&(Mte=n),{...e,_id:e._id||t||BNt(),createdAt:n,position:e.position||"left",hasTime:r}};function awe(e=[]){const t=d.useMemo(()=>e.map(c=>eP(c)),[e]),[n,r]=d.useState(t),i=d.useCallback(c=>{r(u=>[...c,...u])},[]),a=d.useCallback((c,u)=>{r(f=>f.map(p=>p._id===c?eP(u,c):p))},[]),o=d.useCallback(c=>{const u=eP(c);r(f=>[...f,u])},[]),s=d.useCallback(c=>{r(u=>u.filter(f=>f._id!==c))},[]),l=d.useCallback((c=[])=>{r(c)},[]);return{messages:n,prependMsgs:i,appendMsg:o,updateMsg:a,deleteMsg:s,resetList:l}}function owe({active:e=!1,ref:t,delay:n=300}){const[r,i]=d.useState(!1),[a,o]=d.useState(!1),s=d.useRef(),l=()=>{s.current&&clearTimeout(s.current)};return d.useEffect(()=>(e?(l(),o(e)):(i(e),s.current=setTimeout(()=>{o(e)},n)),l),[e,n]),d.useEffect(()=>{t.current&&zNt(t.current),i(a)},[a,t]),{didMount:a,isShow:r}}class bnn extends te.Component{constructor(t){super(t),this.state={error:null,errorInfo:null}}componentDidCatch(t,n){const{onError:r}=this.props;r&&r(t,n),this.setState({error:t,errorInfo:n})}render(){const{FallbackComponent:t,children:n,...r}=this.props,{error:i,errorInfo:a}=this.state;return a?t?x.jsx(t,{error:i,errorInfo:a,...r}):null:n}}te.createContext({addComponent:()=>{},hasComponent:()=>!1,getComponent:()=>null});const UNt=e=>{const{className:t,src:n,alt:r,url:i,size:a="md",shape:o="circle",children:s}=e,l=i?"a":"span";return x.jsx(l,{className:Zn("Avatar",`Avatar--${a}`,`Avatar--${o}`,t),href:i,children:n?x.jsx("img",{src:n,alt:r}):s})},WNt=e=>{const{className:t,active:n,onClick:r,...i}=e;return x.jsx("div",{className:Zn("Backdrop",t,{active:n}),onClick:r,role:"button",tabIndex:-1,"aria-hidden":!0,...i})},swe=({content:e})=>{const t=DNt.sanitize(e,{ALLOWED_TAGS:["p","div","span","h1","h2","h3","h4","h5","h6","ul","ol","li","a","strong","em","b","i","img","blockquote","code","pre"],ALLOWED_ATTR:["href","target","src","alt","style","class"]});return x.jsx("div",{className:"RichText",dangerouslySetInnerHTML:{__html:t}})},VNt=/(\+?86-?)?1[3-9]\d{9}/g,qNt=/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,Uu=te.forwardRef((e,t)=>{const{type:n="text",content:r,children:i,isRichText:a=!1,onPhoneClick:o,onEmailClick:s,onAiClick:l,onSearchClick:c,showFunctionButtons:u=!0,...f}=e,[p,h]=d.useState(!1),m=y=>{const b=y.replace(/^\+?86-?/,"");console.log(`拨打电话: ${b}`),o==null||o(b)},g=y=>{console.log(`发送邮件: ${y}`),s==null||s(y)},v=()=>{if(!r)return null;if(a)return x.jsx(swe,{content:r});let y=0;const b=[],w=r,_=[];let k;for(;(k=VNt.exec(w))!==null;)_.push({value:k[0],index:k.index,type:"phone"});let S;for(;(S=qNt.exec(w))!==null;)_.push({value:S[0],index:S.index,type:"email"});return _.sort((C,E)=>C.index-E.index),_.forEach((C,E)=>{C.index>y&&b.push(w.substring(y,C.index)),b.push(x.jsx("a",{href:"#",onClick:$=>{$.preventDefault(),C.type==="phone"?m(C.value):g(C.value)},style:{color:"#1890ff",textDecoration:"none",cursor:"pointer"},children:C.value},E)),y=C.index+C.value.length}),yh(!0),onMouseLeave:()=>h(!1),...f,children:[v(),i,u&&p&&n==="text"&&r&&x.jsxs("div",{className:"bubble-function-buttons",children:[c&&x.jsx("button",{className:"bubble-function-button search-button",onClick:y=>{y.stopPropagation(),c()},title:"搜索快捷短语",children:x.jsx("i",{className:"search-icon",children:"🔍"})}),l&&x.jsx("button",{className:"bubble-function-button ai-button",onClick:y=>{y.stopPropagation(),l()},title:"问AI",children:x.jsx("i",{className:"ai-icon",children:"🤖"})})]})]})}),vo=te.forwardRef((e,t)=>{const{type:n,className:r,spin:i,name:a,...o}=e,s=typeof a=="string"?{"aria-label":a}:{"aria-hidden":!0};return x.jsx("svg",{className:Zn("Icon",{"is-spin":i},r),ref:t,...s,...o,children:x.jsx("use",{xlinkHref:`#icon-${n}`})})});function tP(e){return e&&`Btn--${e}`}const qs=te.forwardRef((e,t)=>{const{className:n,label:r,color:i,variant:a,size:o,icon:s,loading:l,block:c,disabled:u,children:f,onClick:p,...h}=e,m=s||l&&"spinner",g=o||(c?"lg":"");function v(y){!u&&!l&&p&&p(y)}return x.jsxs("button",{className:Zn("Btn",tP(i),tP(a),tP(g),{"Btn--block":c},n),type:"button",disabled:u,onClick:v,ref:t,...h,children:[m&&x.jsx("span",{className:"Btn-icon",children:x.jsx(vo,{type:m,spin:l})}),r||f]})}),KNt={BackBottom:{newMsgOne:"{n} رسالة جديدة",newMsgOther:"{n} رسالة جديدة",bottom:"الأسفل"},Time:{weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),formats:{LT:"HH:mm",lll:"YYYY/M/D HH:mm",WT:"HH:mm dddd",YT:"HH:mm أمس"}},Composer:{send:"إرسال"},SendConfirm:{title:"إرسال صورة",send:"أرسل",cancel:"إلغاء"},RateActions:{up:"التصويت",down:"تصويت سلبي"},Recorder:{hold2talk:"أستمر بالضغط لتتحدث",release2send:"حرر للإرسال",releaseOrSwipe:"حرر للإرسال ، اسحب لأعلى للإلغاء",release2cancel:"حرر للإلغاء"},Search:{search:"يبحث"}},GNt={BackBottom:{newMsgOne:"{n} new message",newMsgOther:"{n} new messages",bottom:"Bottom"},Time:{weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),formats:{LT:"HH:mm",lll:"M/D/YYYY HH:mm",WT:"dddd HH:mm",YT:"Yesterday HH:mm"}},Composer:{send:"Send"},SendConfirm:{title:"Send photo",send:"Send",cancel:"Cancel"},RateActions:{up:"Up vote",down:"Down vote"},Recorder:{hold2talk:"Hold to Talk",release2send:"Release to Send",releaseOrSwipe:"Release to send, swipe up to cancel",release2cancel:"Release to cancel"},Search:{search:"Search"}},YNt={BackBottom:{newMsgOne:"{n} nouveau message",newMsgOther:"{n} nouveau messages",bottom:"Fond"},Time:{weekdays:"Dimanche_Lundi_Mardi_Mercredi_Jeudi_Vendredi_Samedi".split("_"),formats:{LT:"HH:mm",lll:"D/M/YYYY HH:mm",WT:"dddd HH:mm",YT:"Hier HH:mm"}},Composer:{send:"Envoyer"},SendConfirm:{title:"Envoyer une photo",send:"Envoyer",cancel:"Annuler"},RateActions:{up:"Voter pour",down:"Vote négatif"},Recorder:{hold2talk:"Tenir pour parler",release2send:"Libérer pour envoyer",releaseOrSwipe:"Relâchez pour envoyer, balayez vers le haut pour annuler",release2cancel:"Relâcher pour annuler"},Search:{search:"Chercher"}},XNt={BackBottom:{newMsgOne:"{n}条新消息",newMsgOther:"{n}条新消息",bottom:"回到底部"},Time:{weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),formats:{LT:"HH:mm",lll:"YYYY年M月D日 HH:mm",WT:"dddd HH:mm",YT:"昨天 HH:mm"}},Composer:{send:"发送"},SendConfirm:{title:"发送图片",send:"发送",cancel:"取消"},RateActions:{up:"赞同",down:"反对"},Recorder:{hold2talk:"按住 说话",release2send:"松开 发送",releaseOrSwipe:"松开发送,上滑取消",release2cancel:"松开手指,取消发送"},Search:{search:"搜索"}},Tte={"ar-EG":KNt,"fr-FR":YNt,"en-US":GNt,"zh-CN":XNt},lwe="en-US",FH=te.createContext({}),ZNt=({locale:e=lwe,locales:t,elderMode:n,children:r})=>x.jsx(FH.Provider,{value:{locale:e,locales:t,elderMode:n},children:r}),LH=()=>d.useContext(FH),p1=(e,t)=>{const{locale:n,locales:r}=d.useContext(FH);let a={...n&&Tte[n]||Tte[lwe],...r};return!n&&!r&&t?a=t:e&&(a=a[e]||{}),{locale:n,trans:o=>o?a[o]:a}},Xs=te.forwardRef((e,t)=>{const{className:n,size:r,fluid:i,children:a,...o}=e,s=LH();return x.jsx("div",{className:Zn("Card",r&&`Card--${r}`,{"Card--fluid":i},n),"data-fluid":i,"data-elder-mode":s.elderMode,...o,ref:t,children:a})}),QNt={row:"Flex--d-r","row-reverse":"Flex--d-rr",column:"Flex--d-c","column-reverse":"Flex--d-cr"},JNt={nowrap:"Flex--w-n",wrap:"Flex--w-w","wrap-reverse":"Flex--w-wr"},eAt={"flex-start":"Flex--jc-fs","flex-end":"Flex--jc-fe",center:"Flex--jc-c","space-between":"Flex--jc-sb","space-around":"Flex--jc-sa"},tAt={"flex-start":"Flex--ai-fs","flex-end":"Flex--ai-fe",center:"Flex--ai-c"},lu=te.forwardRef((e,t)=>{const{as:n="div",className:r,inline:i,center:a,direction:o,wrap:s,justifyContent:l,justify:c=l,alignItems:u,align:f=u,children:p,...h}=e;return x.jsx(n,{className:Zn("Flex",o&&QNt[o],c&&eAt[c],f&&tAt[f],s&&JNt[s],{"Flex--inline":i,"Flex--center":a},r),ref:t,...h,children:p})}),dA=te.forwardRef((e,t)=>{const{className:n,flex:r,alignSelf:i,order:a,style:o,children:s,...l}=e;return x.jsx("div",{className:Zn("FlexItem",n),style:{...o,flex:r,alignSelf:i,order:a},ref:t,...l,children:s})});te.forwardRef((e,t)=>{const{className:n,aspectRatio:r="square",color:i,image:a,children:o,...s}=e,l={backgroundColor:i||void 0,backgroundImage:typeof a=="string"?`url('${a}')`:void 0};return x.jsx("div",{className:Zn("CardMedia",{"CardMedia--wide":r==="wide","CardMedia--square":r==="square"},n),style:l,...s,ref:t,children:o&&x.jsx(lu,{className:"CardMedia-content",direction:"column",center:!0,children:o})})});const tp=te.forwardRef((e,t)=>{const{className:n,children:r,...i}=e;return x.jsx("div",{className:Zn("CardContent",n),...i,ref:t,children:r})}),np=te.forwardRef((e,t)=>{const{className:n,title:r,subtitle:i,center:a,children:o,...s}=e;return x.jsxs("div",{className:Zn("CardTitle",{"CardTitle--center":a},n),...s,ref:t,children:[r&&x.jsx("h5",{className:"CardTitle-title",children:r}),o&&typeof o=="string"&&x.jsx("h5",{className:"CardTitle-title",children:o}),i&&x.jsx("p",{className:"CardTitle-subtitle",children:i}),o&&typeof o!="string"&&o]})}),BH=te.forwardRef((e,t)=>{const{className:n,children:r,...i}=e;return x.jsx("div",{className:Zn("CardText",n),...i,ref:t,children:typeof r=="string"?x.jsx("p",{children:r}):r})}),cwe=te.forwardRef((e,t)=>{const{children:n,className:r,direction:i,...a}=e;return x.jsx("div",{className:Zn("CardActions",r,i&&`CardActions--${i}`),...a,ref:t,children:n})}),nP=e=>{const{width:t,children:n}=e;return x.jsx("div",{className:"Carousel-item",style:{width:t},children:n})},uwe=(e,t)=>{e.style.transform=t,e.style.webkitTransform=t},Pte=(e,t)=>{e.style.transition=t,e.style.webkitTransition=t},nAt={passiveListener:()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get(){e=!0}});window.addEventListener("test",null,t)}catch{}return e},smoothScroll:()=>"scrollBehavior"in document.documentElement.style,touch:()=>"ontouchstart"in window};function h1(e){return nAt[e]()}const rAt=["TEXTAREA","OPTION","INPUT","SELECT"],iAt=h1("touch");te.forwardRef((e,t)=>{const{className:n,startIndex:r=0,draggable:i=!0,duration:a=300,easing:o="ease",threshold:s=20,clickDragThreshold:l=10,loop:c=!0,rtl:u=!1,autoPlay:f=e.autoplay||!1,interval:p=e.autoplaySpeed||4e3,dots:h=e.indicators||!0,onChange:m,children:g}=e,v=te.Children.count(g),y=`${100/v}%`,b=d.useRef(null),w=d.useRef(null),_=d.useRef(null),k=d.useRef({first:!0,wrapWidth:0,hover:!1,startX:0,endX:0,startY:0,canMove:null,pressDown:!1}),S=d.useCallback(oe=>c?oe%v:Math.max(0,Math.min(oe,v-1)),[v,c]),[C,E]=d.useState(S(r)),[$,M]=d.useState(!1),P=d.useCallback(()=>{Pte(w.current,`transform ${a}ms ${o}`)},[a,o]),I=()=>{Pte(w.current,"transform 0s")},O=oe=>{uwe(w.current,`translate3d(${oe}px, 0, 0)`)},A=d.useCallback((oe,le)=>{const ce=c?oe+1:oe,pe=(u?1:-1)*ce*k.current.wrapWidth;le?requestAnimationFrame(()=>{requestAnimationFrame(()=>{P(),O(pe)})}):O(pe)},[P,c,u]),R=d.useCallback(oe=>{if(v<=1)return;const le=S(oe);le!==C&&E(le)},[C,v,S]),j=d.useCallback(()=>{if(v<=1)return;let oe=C-1;if(c){if(oe<0){const le=k.current,ce=v+1,pe=(u?1:-1)*ce*le.wrapWidth,me=i?le.endX-le.startX:0;I(),O(pe+me),oe=v-1}}else oe=Math.max(oe,0);oe!==C&&E(oe)},[C,v,i,c,u]),N=d.useCallback(()=>{if(v<=1)return;let oe=C+1;if(c){if(oe>v-1){oe=0;const ce=k.current,pe=i?ce.endX-ce.startX:0;I(),O(pe)}}else oe=Math.min(oe,v-1);oe!==C&&E(oe)},[C,v,i,c]),D=d.useCallback(()=>{!f||k.current.hover||(_.current=setTimeout(()=>{P(),N()},p))},[f,p,P,N]),V=()=>{clearTimeout(_.current)},F=()=>{A(C,!0),D()},K=()=>{const oe=k.current,le=(u?-1:1)*(oe.endX-oe.startX),ce=Math.abs(le),pe=le>0&&C-1<0,me=le<0&&C+1>v-1;pe||me?c?pe?j():N():F():le>0&&ce>s&&v>1?j():le<0&&ce>s&&v>1?N():F()},B=()=>{const oe=k.current;oe.startX=0,oe.endX=0,oe.startY=0,oe.canMove=null,oe.pressDown=!1},U=oe=>{if(rAt.includes(oe.target.nodeName))return;oe.preventDefault(),oe.stopPropagation();const le="touches"in oe?oe.touches[0]:oe,ce=k.current;ce.pressDown=!0,ce.startX=le.pageX,ce.startY=le.pageY,V()},Z=oe=>{oe.stopPropagation();const le="touches"in oe?oe.touches[0]:oe,ce=k.current;if(ce.pressDown){if("touches"in oe&&(ce.canMove===null&&(ce.canMove=Math.abs(ce.startY-le.pageY)l&&M(!0);const fe=u?me+re:re-me;O(fe)}},ee=oe=>{oe.stopPropagation();const le=k.current;le.pressDown=!1,M(!1),P(),le.endX?K():D(),B()},ie=()=>{k.current.hover=!0,V()},Y=oe=>{const le=k.current;le.hover=!1,le.pressDown&&(le.pressDown=!1,le.endX=oe.pageX,P(),K(),B()),D()},X=oe=>{const{slideTo:le}=oe.currentTarget.dataset;if(le){const ce=parseInt(le,10);R(ce)}oe.preventDefault()};d.useImperativeHandle(t,()=>({goTo:R,prev:j,next:N,wrapperRef:b}),[R,j,N]),d.useEffect(()=>{function oe(){k.current.wrapWidth=b.current.offsetWidth,A(C)}return k.current.first&&oe(),window.addEventListener("resize",oe),()=>{window.removeEventListener("resize",oe)}},[C,A]),d.useEffect(()=>{m&&!k.current.first&&m(C)},[C,m]),d.useEffect(()=>{k.current.first?(A(C),k.current.first=!1):A(C,!0)},[C,A]),d.useEffect(()=>(D(),()=>{V()}),[f,C,D]);let ae;return i?ae=iAt?{onTouchStart:U,onTouchMove:Z,onTouchEnd:ee}:{onMouseDown:U,onMouseMove:Z,onMouseUp:ee,onMouseEnter:ie,onMouseLeave:Y}:ae={onMouseEnter:ie,onMouseLeave:Y},x.jsxs("div",{className:Zn("Carousel",{"Carousel--draggable":i,"Carousel--rtl":u,"Carousel--dragging":$},n),ref:b,...ae,children:[x.jsxs("div",{className:"Carousel-inner",style:{width:`${c?v+2:v}00%`},ref:w,children:[c&&x.jsx(nP,{width:y,children:te.Children.toArray(g)[v-1]}),te.Children.map(g,(oe,le)=>x.jsx(nP,{width:y,children:oe},le)),c&&x.jsx(nP,{width:y,children:te.Children.toArray(g)[0]})]}),h&&x.jsx("ol",{className:"Carousel-dots",children:te.Children.map(g,(oe,le)=>x.jsx("li",{children:x.jsx("button",{className:Zn("Carousel-dot",{active:C===le}),type:"button","aria-label":`Go to slide ${le+1}`,"data-slide-to":le,onClick:X})},le))})]})});const aAt=te.forwardRef((e,t)=>{const{className:n,label:r,checked:i,disabled:a,onChange:o,...s}=e;return x.jsxs("label",{className:Zn("Checkbox",n,{"Checkbox--checked":i,"Checkbox--disabled":a}),ref:t,children:[x.jsx("input",{type:"checkbox",className:"Checkbox-input",checked:i,disabled:a,onChange:o,...s}),x.jsx("span",{className:"Checkbox-text",children:r})]})});te.forwardRef((e,t)=>{const{className:n,options:r,value:i,name:a,disabled:o,block:s,onChange:l}=e;function c(u,f){const p=f.target.checked?i.concat(u):i.filter(h=>h!==u);l(p,f)}return x.jsx("div",{className:Zn("CheckboxGroup",{"CheckboxGroup--block":s},n),ref:t,children:r.map(u=>x.jsx(aAt,{label:u.label||u.value,value:u.value,name:a,checked:i.includes(u.value),disabled:"disabled"in u?u.disabled:o,onChange:f=>{c(u.value,f)}},u.value))})});const fA=document,oAt=fA.documentElement,sAt=e=>{const{children:t,onClick:n,mouseEvent:r="mouseup",...i}=e,a=d.useRef(null);function o(s){a.current&&oAt.contains(s.target)&&!a.current.contains(s.target)&&n(s)}return d.useEffect(()=>(r&&fA.addEventListener(r,o),()=>{fA.removeEventListener(r,o)})),x.jsx("div",{ref:a,...i,children:t})},lAt="//gw.alicdn.com/tfs/TB1fnnLRkvoK1RjSZFDXXXY3pXa-300-250.svg",cAt="//gw.alicdn.com/tfs/TB1lRjJRbvpK1RjSZPiXXbmwXXa-300-250.svg";te.forwardRef((e,t)=>{const{className:n,type:r,image:i,tip:a,children:o}=e,s=i||(r==="error"?cAt:lAt);return x.jsxs(lu,{className:Zn("Empty",n),direction:"column",center:!0,ref:t,children:[x.jsx("img",{className:"Empty-img",src:s,alt:a}),a&&x.jsx("p",{className:"Empty-tip",children:a}),o]})});const uAt=te.createContext("");te.forwardRef((e,t)=>{const{children:n,...r}=e;return x.jsx("label",{className:"Label",...r,ref:t,children:n})});const yu=te.forwardRef((e,t)=>{const{className:n,icon:r,img:i,...a}=e;return x.jsxs(qs,{className:Zn("IconBtn",n),ref:t,...a,children:[r&&x.jsx(vo,{type:r}),!r&&i&&x.jsx("img",{src:i,alt:""})]})});te.forwardRef((e,t)=>{const{className:n,src:r,lazy:i,fluid:a,children:o,...s}=e,[l,c]=d.useState(i?void 0:r),u=DH(t),f=d.useRef(""),p=d.useRef(!1);return d.useEffect(()=>{if(!i)return;const h=new IntersectionObserver(([m])=>{m.isIntersecting&&(c(f.current),p.current=!0,h.unobserve(m.target))});return u.current&&h.observe(u.current),()=>{h.disconnect()}},[u,i]),d.useEffect(()=>{f.current=r,(!i||p.current)&&c(r)},[i,r]),x.jsx("img",{className:Zn("Image",{"Image--fluid":a},n),src:l,alt:"",ref:u,...s})});function dwe(e){return e.scrollHeight-e.scrollTop-e.offsetHeight}te.forwardRef((e,t)=>{const{className:n,disabled:r,distance:i=0,children:a,onLoadMore:o,onScroll:s,...l}=e,c=DH(t);function u(f){s&&s(f);const p=c.current;if(!p)return;dwe(p)<=i&&o()}return x.jsx("div",{className:Zn("InfiniteScroll",n),role:"feed",onScroll:r?void 0:u,ref:c,...l,children:a})});function dAt(e,t){return`${`${e}`.length}${t?`/${t}`:""}`}const pA=te.forwardRef((e,t)=>{const{className:n,type:r="text",variant:i,value:a,placeholder:o,rows:s=1,minRows:l=s,maxRows:c=5,maxLength:u,showCount:f=!!u,multiline:p,autoSize:h,onChange:m,...g}=e;let v=s;vc&&(v=c);const[y,b]=d.useState(v),[w,_]=d.useState(21),k=DH(t),S=d.useContext(uAt),C=i||(S==="light"?"flushed":"outline"),$=p||h||s>1?"textarea":"input";d.useEffect(()=>{if(!k.current)return;const O=getComputedStyle(k.current,null).lineHeight,A=Number(O.replace("px",""));A!==w&&_(A)},[k,w]);const M=d.useCallback(()=>{if(!h||!k.current)return;const O=k.current,A=O.rows;O.rows=l,o&&(O.placeholder="");const R=~~(O.scrollHeight/w);R===A&&(O.rows=R),R>=c&&(O.rows=c,O.scrollTop=O.scrollHeight),b(R{a===""?b(v):M()},[v,M,a]);const P=d.useCallback(O=>{if(M(),m){const A=O.target.value,j=u&&A.length>u?A.substr(0,u):A;m(j,O)}},[u,m,M]),I=x.jsx($,{className:Zn("Input",`Input--${C}`,n),type:r,value:a,placeholder:o,maxLength:u,ref:k,rows:y,onChange:P,...g});return f?x.jsxs("div",{className:Zn("InputWrapper",{"has-counter":f}),children:[I,f&&x.jsx("div",{className:"Input-counter",children:dAt(a,u)})]}):I});te.forwardRef((e,t)=>{const{bordered:n=!1,className:r,children:i}=e;return x.jsx("div",{className:Zn("List",{"List--bordered":n},r),role:"list",ref:t,children:i})});te.forwardRef((e,t)=>{const{className:n,as:r="div",content:i,rightIcon:a,children:o,onClick:s,...l}=e;return x.jsxs(r,{className:Zn("ListItem",n),onClick:s,role:"listitem",...l,ref:t,children:[x.jsx("div",{className:"ListItem-content",children:i||o}),a&&x.jsx(vo,{type:a})]})});const fAt=e=>{const{className:t,content:n,action:r}=e;return x.jsx("div",{className:Zn("Message SystemMessage",t),children:x.jsxs("div",{className:"SystemMessage-inner",children:[x.jsx("span",{children:x.jsx(swe,{content:n})}),r&&x.jsx("a",{href:"javascript:;",onClick:r.onClick,children:r.text})]})})},pAt=/YYYY|M|D|dddd|HH|mm/g,fwe=24*60*60*1e3,hAt=fwe*7,mAt=e=>e instanceof Date?e:new Date(e),gAt=()=>new Date(new Date().setHours(0,0,0,0)),Ote=e=>(e<=9?"0":"")+e,vAt=e=>{const t=gAt().getTime()-e.getTime();return t<0?"LT":ti[a])}const bAt=({date:e})=>{const{trans:t}=p1("Time");return x.jsx("time",{className:"Time",dateTime:new Date(e).toJSON(),children:yAt(e,t())})};function wAt(){return x.jsx(Uu,{type:"typing",children:x.jsxs("div",{className:"Typing","aria-busy":"true",children:[x.jsx("div",{className:"Typing-dot"}),x.jsx("div",{className:"Typing-dot"}),x.jsx("div",{className:"Typing-dot"})]})})}const xAt=e=>{const{renderMessageContent:t=()=>null,...n}=e,{type:r,content:i,user:a={},_id:o,position:s="left",hasTime:l=!0,createdAt:c}=n,{name:u,avatar:f}=a;if(r==="system"||r===W5||r===f0||r===p0||r===h0)return x.jsx(fAt,{content:i,action:i.action});const p=s==="right"||s==="left";return x.jsxs("div",{className:Zn("Message",s),"data-id":o,"data-type":r,children:[l&&c&&x.jsx("div",{className:"Message-meta",children:x.jsx(bAt,{date:c})}),x.jsxs("div",{className:"Message-main",children:[p&&f&&x.jsx(UNt,{src:f,alt:u,url:a.url}),x.jsxs("div",{className:"Message-inner",children:[p&&u&&x.jsx("div",{className:"Message-author",children:u}),x.jsx("div",{className:"Message-content",role:"alert","aria-live":"assertive","aria-atomic":"false",children:r==="typing"?x.jsx(wAt,{}):t(n)})]})]})]})},Ite=te.memo(xAt),ll=({status:e,delay:t=1500,maxDelay:n=5e3,onRetry:r,onChange:i})=>{const a=Pn(),[o,s]=d.useState(""),l=d.useRef(),c=d.useRef(),u=d.useCallback(()=>{l.current=setTimeout(()=>{s("loading")},t),c.current=setTimeout(()=>{s("fail")},n)},[t,n]);function f(){l.current&&clearTimeout(l.current),c.current&&clearTimeout(c.current)}d.useEffect(()=>(f(),e==="SENDING"?u():e==="SUCCESS"?s(""):e==="READ"?s("READ"):e==="DELIVERED"?s("DELIVERED"):e==="TIMEOUT"&&s("fail"),f),[e,u]),d.useEffect(()=>{i&&i(o)},[i,o]);function p(){s("loading"),u(),r&&r()}return x.jsxs("div",{className:"MessageStatus","data-status":o,children:[o==="loading"&&x.jsx(vo,{type:"spinner",spin:!0,onClick:p}),o==="fail"&&x.jsx(yu,{icon:"warning-circle-fill",onClick:p}),o==="READ"&&x.jsx("div",{style:{fontSize:12,color:"gray"},children:a.formatMessage({id:"message.status.read",defaultMessage:"已读"})}),o==="DELIVERED"&&x.jsx("div",{style:{fontSize:12,color:"gray"},children:a.formatMessage({id:"message.status.delivered",defaultMessage:"已送达"})})]})};let SAt=0;const CAt=()=>SAt++;function pwe(e="id-"){return d.useRef(`${e}${CAt()}`).current}const aw=(e,t,n=document.body)=>{n.classList[t?"add":"remove"](e)};function Rte(){!document.querySelector(".Modal")&&!document.querySelector(".Popup")&&aw("S--modalOpen",!1)}const zH=te.forwardRef((e,t)=>{const{baseClass:n,active:r,className:i,title:a,showClose:o=!0,autoFocus:s=!0,backdrop:l=!0,height:c,overflow:u,actions:f,vertical:p=!0,btnVariant:h,bgColor:m,children:g,onBackdropClick:v,onClose:y}=e,b=pwe("modal-"),w=e.titleId||b,_=LH(),k=d.useRef(null),{didMount:S,isShow:C}=owe({active:r,ref:k});if(d.useEffect(()=>{setTimeout(()=>{s&&k.current&&k.current.focus()})},[s]),d.useEffect(()=>{C&&aw("S--modalOpen",C)},[C]),d.useEffect(()=>{!r&&!S&&Rte()},[r,S]),d.useImperativeHandle(t,()=>({wrapperRef:k})),d.useEffect(()=>()=>{Rte()},[]),!S)return null;const E=n==="Popup";return Ka.createPortal(x.jsxs("div",{className:Zn(n,i,{active:C}),tabIndex:-1,"data-elder-mode":_.elderMode,ref:k,children:[l&&x.jsx(WNt,{active:C,onClick:l===!0?v||y:void 0}),x.jsx("div",{className:Zn(`${n}-dialog`,{"pb-safe":E&&!f}),"data-bg-color":m,"data-height":E&&c?c:void 0,role:"dialog","aria-labelledby":w,"aria-modal":!0,children:x.jsxs("div",{className:`${n}-content`,children:[x.jsxs("div",{className:`${n}-header`,children:[x.jsx("h5",{className:`${n}-title`,id:w,children:a}),o&&y&&x.jsx(yu,{className:`${n}-close`,icon:"close",size:"lg",onClick:y,"aria-label":"关闭"})]}),x.jsx("div",{className:Zn(`${n}-body`,{overflow:u}),children:g}),f&&x.jsx("div",{className:`${n}-footer ${n}-footer--${p?"v":"h"}`,"data-variant":h||"round",children:f.map($=>d.createElement(qs,{size:"lg",block:E,variant:h,...$,key:$.label}))})]})})]}),document.body)}),_At=te.forwardRef((e,t)=>x.jsx(zH,{baseClass:"Modal",btnVariant:e.vertical===!1?void 0:"outline",ref:t,...e})),jte=e=>e.color==="primary";te.forwardRef((e,t)=>{const{className:n,vertical:r,actions:i,...a}=e,{locale:o=""}=p1(),s=o.includes("zh"),l=r??!s;return Array.isArray(i)&&i.sort((c,u)=>jte(c)?l?-1:1:jte(u)?l?1:-1:0),x.jsx(zH,{baseClass:"Modal",className:Zn("Confirm",n),showClose:!1,btnVariant:"outline",vertical:l,actions:i,ref:t,...a})});const kAt=te.forwardRef((e,t)=>x.jsx(zH,{baseClass:"Popup",overflow:!0,ref:t,...e})),EAt=te.forwardRef((e,t)=>{const{className:n,title:r,logo:i,desc:a,leftContent:o,rightContent:s=[],align:l}=e,c=l==="left",u=c?!0:!i;return x.jsxs("header",{className:Zn("Navbar",{"Navbar--left":c},n),ref:t,children:[x.jsx("div",{className:"Navbar-left",children:o&&x.jsx(yu,{size:"lg",...o})}),x.jsxs("div",{className:"Navbar-main",children:[i&&x.jsx("img",{className:"Navbar-logo",src:i,alt:r}),x.jsxs("div",{className:"Navbar-inner",children:[u&&x.jsx("h2",{className:"Navbar-title",children:r}),x.jsx("div",{className:"Navbar-desc",children:a})]})]}),x.jsx("div",{className:"Navbar-right",children:s.map(f=>x.jsx(yu,{size:"lg",...f},f.icon))})]})}),hA=te.forwardRef((e,t)=>{const{as:n="div",className:r,align:i,breakWord:a,truncate:o,children:s,...l}=e,c=Number.isInteger(o),u=Zn(i&&`Text--${i}`,{"Text--break":a,"Text--truncate":o===!0,"Text--ellipsis":c},r),f=c?{WebkitLineClamp:o}:null;return x.jsx(n,{className:u,style:f,...l,ref:t,children:s})}),$At="Intl"in window&&typeof Intl.NumberFormat.prototype.formatToParts=="function",Nte=te.forwardRef((e,t)=>{const{className:n,price:r,currency:i,locale:a,original:o,...s}=e;let l=[];if(a&&i&&$At?l=new Intl.NumberFormat(a,{style:"currency",currency:i}).formatToParts(r):l=void 0,!l){const c=".",[u,f]=`${r}`.split(c);l=[{type:"currency",value:i},{type:"integer",value:u},{type:"decimal",value:f&&c},{type:"fraction",value:f}]}return x.jsx("div",{className:Zn("Price",{"Price--original":o},n),ref:t,...s,children:l.map((c,u)=>c.value?x.jsx("span",{className:`Price-${c.type}`,children:c.value},u):null)})});te.forwardRef((e,t)=>{const{className:n,value:r,status:i,...a}=e;return x.jsx("div",{className:Zn("Progress",i&&`Progress--${i}`,n),ref:t,...a,children:x.jsx("div",{className:"Progress-bar",role:"progressbar",style:{width:`${r}%`},"aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100})})});const Ate=requestAnimationFrame;function hwe({el:e,to:t,duration:n=300,x:r}){let i=0;const a=r?"scrollLeft":"scrollTop",o=e[a],s=Math.round(n/16),l=(t-o)/s;if(!Ate){e[a]=t;return}function c(){e[a]+=l,++i{const{distance:n=30,loadingDistance:r=30,maxDistance:i,distanceRatio:a=2,loadMoreText:o="点击加载更多",children:s,onScroll:l,onRefresh:c,renderIndicator:u=V=>V==="active"||V==="loading"?x.jsx(vo,{className:"PullToRefresh-spinner",type:"spinner",spin:!0}):null}=e,f=d.useRef(null),p=d.useRef(null),h=LNt(c),[m,g]=d.useState(0),[v,y]=d.useState("pending"),[b,w]=d.useState(!1),[_,k]=d.useState(!e.onRefresh),S=d.useRef({}),C=d.useRef(v),E=d.useRef(),$=d.useRef(),M=!h1("touch");d.useEffect(()=>{C.current=v},[v]);const P=V=>{const F=p.current;F&&uwe(F,`translate3d(0px,${V}px,0)`)},I=({y:V,animated:F=!0})=>{const K=f.current;if(!K)return;const B=V==="100%"?K.scrollHeight-K.offsetHeight:V;F?hwe({el:K,to:B,x:!1}):K.scrollTop=B},O=d.useCallback(({animated:V=!0}={})=>{I({y:"100%",animated:V})},[]),A=d.useCallback(()=>{g(0),y("pending"),P(0)},[]),R=d.useCallback(()=>{const V=f.current;if(!(!V||!h.current)){y("loading");try{const F=V.scrollHeight;h.current().then(K=>{const B=()=>{I({y:V.scrollHeight-F-50,animated:!1})};clearTimeout(E.current),clearTimeout($.current),B(),E.current=setTimeout(B,150),$.current=setTimeout(B,250),A(),K&&K.noMore&&k(!0)})}catch(F){console.error(F),A()}}},[h,A]),j=()=>{S.current.startY=0},N=d.useCallback(V=>{const F=V.touches[0].clientY,K=f.current.scrollTop<=0;K?S.current.startY||(S.current.startY=F,y("pull"),w(!1)):S.current.startY=0;const{startY:B}=S.current;if(!K||Fi&&(U=i),U>0&&(V.cancelable&&V.preventDefault(),V.stopPropagation(),P(U),g(U),y(U>=n?"active":"pull"))},[a,i,n]),D=d.useCallback(()=>{w(!0),S.current.startY&&C.current==="active"?R():A()},[R,A]);return d.useEffect(()=>{const V=f.current;!V||M||(_?(V.removeEventListener("touchstart",j),V.removeEventListener("touchmove",N),V.removeEventListener("touchend",D),V.removeEventListener("touchcancel",D)):(V.addEventListener("touchstart",j,MAt),V.addEventListener("touchmove",N,TAt),V.addEventListener("touchend",D),V.addEventListener("touchcancel",D)))},[_,D,N,M]),d.useEffect(()=>{v==="loading"&&!M&&P(r)},[r,v,M]),d.useImperativeHandle(t,()=>({scrollTo:I,scrollToEnd:O,wrapperRef:f}),[O]),x.jsx("div",{className:"PullToRefresh",ref:f,onScroll:l,children:x.jsx("div",{className:"PullToRefresh-inner",children:x.jsxs("div",{className:Zn("PullToRefresh-content",{"PullToRefresh-transition":b}),ref:p,children:[x.jsx("div",{className:"PullToRefresh-indicator",children:u(v,m)}),!_&&M&&x.jsxs(lu,{className:"PullToRefresh-fallback",center:!0,children:[u(v,n),x.jsx(qs,{className:"PullToRefresh-loadMore",variant:"text",onClick:R,children:o})]}),te.Children.only(s)]})})})}),OAt={threshold:[0,.1]},Dte=e=>{const{item:t,effect:n,children:r,onIntersect:i}=e,a=d.useRef(null);return d.useEffect(()=>{if(!i)return;const o=new IntersectionObserver(([s])=>{s.intersectionRatio>0&&(i(t,s)||o.unobserve(s.target))},OAt);return a.current&&o.observe(a.current),()=>{o.disconnect()}},[t,i]),x.jsx("div",{className:Zn("ScrollView-item",{"slide-in-right-item":n==="slide","A-fadeIn":n==="fade"}),ref:a,children:r})},rP=!h1("touch"),IAt=te.forwardRef((e,t)=>{const{className:n,fullWidth:r,scrollX:i=!0,effect:a="slide",data:o,itemKey:s,renderItem:l,onIntersect:c,onScroll:u,children:f,...p}=e,h=d.useRef(null),m=d.useRef(null);function g(){const b=m.current;b.scrollLeft-=b.offsetWidth}function v(){const b=m.current;b.scrollLeft+=b.offsetWidth}const y=d.useCallback((b,w)=>{let _;return s&&(_=typeof s=="function"?s(b,w):b[s]),_||w},[s]);return d.useImperativeHandle(t,()=>({scrollTo:({x:b,y:w})=>{b!=null&&(m.current.scrollLeft=b),w!=null&&(m.current.scrollTop=w)},wrapperRef:h})),x.jsxs("div",{className:Zn("ScrollView",{"ScrollView--fullWidth":r,"ScrollView--x":i,"ScrollView--hasControls":rP},n),ref:h,...p,children:[rP&&x.jsx(yu,{className:"ScrollView-control",icon:"chevron-left","aria-label":"Previous",onClick:g}),x.jsx("div",{className:"ScrollView-scroller",ref:m,onScroll:u,children:x.jsxs("div",{className:"ScrollView-inner",children:[o.map((b,w)=>x.jsx(Dte,{item:b,effect:b.effect||a,onIntersect:c,children:l(b,w)},y(b,w))),f?x.jsx(Dte,{item:{},effect:a,onIntersect:c,children:f}):null]})}),rP&&x.jsx(yu,{className:"ScrollView-control",icon:"chevron-right","aria-label":"Next",onClick:v})]})}),Aa=So(e=>({tickets:[],historyTickets:[],currentTicket:void 0,currentThreadTicket:void 0,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{assignment:y0},setCurrentTicket:t=>e({currentTicket:t}),setCurrentThreadTicket:t=>e({currentThreadTicket:t}),setSearchText:t=>{e({searchText:t})},refreshTickets:async()=>{const{currentOrg:t}=Nr.getState();if(t!=null&&t.uid){const{ticketService:n}=await gue(async()=>{const{ticketService:r}=await Promise.resolve().then(()=>fWt);return{ticketService:r}},void 0);await n.loadTickets(t.uid)}},setFilter:(t,n)=>e(r=>({filters:{...r.filters,[t]:n}})),clearFilters:()=>e({filters:{}}),setLoading:t=>e({loading:t}),setError:t=>e({error:t}),setTickets:t=>e({tickets:t}),setHistoryTickets:t=>e({historyTickets:t})})),RAt=e=>{const{item:t,index:n,onClick:r,fromTicketTab:i}=e,a=Aa(s=>s.currentTicket);function o(){r(t,n)}return x.jsx("button",{className:Zn("QuickReply",{new:t.isNew,highlight:t.isHighlight}),type:"button","data-code":t.code,"aria-label":`快捷短语: ${t.name},双击发送`,onClick:o,disabled:!W2(i,a),children:x.jsxs("div",{className:"QuickReply-inner",children:[t.icon&&x.jsx(vo,{type:t.icon}),x.jsx("span",{children:t.name})]})})},jAt=e=>{const{items:t=[],visible:n=!0,onClick:r,onScroll:i,fromTicketTab:a=!1,chatThread:o}=e,s=d.useRef(null),[l,c]=d.useState(!!i),u=Aa(p=>p.currentTicket),{agentInfo:f}=Si.getState();return d.useLayoutEffect(()=>{let p;return s.current&&(c(!1),s.current.scrollTo({x:0,y:0}),p=setTimeout(()=>{c(!0)},500)),()=>{clearTimeout(p)}},[t]),t.length?a&&!Fa(a,u,o,f)?(console.log("不显示快捷短语"),x.jsx(x.Fragment,{})):x.jsx(IAt,{className:"QuickReplies",data:t,itemKey:"name",ref:s,"data-visible":n,onScroll:l?i:void 0,renderItem:(p,h)=>x.jsx(RAt,{item:p,index:h,onClick:r,fromTicketTab:a,chatThread:o},p.name)}):null},NAt=te.memo(jAt),AAt=te.forwardRef((e,t)=>{const{className:n,label:r,checked:i,disabled:a,onChange:o,...s}=e;return x.jsxs("label",{className:Zn("Radio",n,{"Radio--checked":i,"Radio--disabled":a}),ref:t,children:[x.jsx("input",{type:"radio",className:"Radio-input",checked:i,disabled:a,onChange:o,...s}),x.jsx("span",{className:"Radio-text",children:r})]})});te.forwardRef((e,t)=>{const{className:n,options:r,value:i,name:a,disabled:o,block:s,onChange:l}=e;return x.jsx("div",{className:Zn("RadioGroup",{"RadioGroup--block":s},n),ref:t,children:r.map(c=>x.jsx(AAt,{label:c.label||c.value,value:c.value,name:a,checked:i===c.value,disabled:"disabled"in c?c.disabled:o,onChange:u=>{l(c.value,u)}},c.value))})});const YS="up",XS="down",gwe=e=>{const{trans:t}=p1("RateActions",{up:"赞同",down:"反对"}),{upTitle:n=t("up"),downTitle:r=t("down"),onClick:i}=e,[a,o]=d.useState("");function s(u){a||(o(u),i(u))}function l(){s(YS)}function c(){s(XS)}return x.jsxs("div",{className:"RateActions",children:[a!==XS&&x.jsx(yu,{className:Zn("RateBtn",{active:a===YS}),title:n,"data-type":YS,icon:"thumbs-up",onClick:l}),a!==YS&&x.jsx(yu,{className:Zn("RateBtn",{active:a===XS}),title:r,"data-type":XS,icon:"thumbs-down",onClick:c})]})};te.forwardRef((e,t)=>{const{className:n,onSearch:r,onChange:i,onClear:a,value:o,clearable:s=!0,showSearch:l=!0,...c}=e,[u,f]=d.useState(o||""),{trans:p}=p1("Search"),h=y=>{f(y),i&&i(y)},m=()=>{f(""),a&&a()},g=y=>{y.keyCode===13&&(r&&r(u,y),y.preventDefault())},v=y=>{r&&r(u,y)};return x.jsxs("div",{className:Zn("Search",n),ref:t,children:[x.jsx(vo,{className:"Search-icon",type:"search"}),x.jsx(pA,{className:"Search-input",type:"search",value:u,enterKeyHint:"search",onChange:h,onKeyDown:g,...c}),s&&u&&x.jsx(yu,{className:"Search-clear",icon:"x-circle-fill",onClick:m}),l&&x.jsx(qs,{className:"Search-btn",color:"primary",onClick:v,children:p("search")})]})});te.forwardRef(({className:e,placeholder:t,variant:n="outline",children:r,...i},a)=>x.jsxs("select",{className:Zn("Input Select",`Input--${n}`,e),...i,ref:a,children:[t&&x.jsx("option",{value:"",children:t}),r]}));te.forwardRef((e,t)=>{const{className:n,current:r=0,status:i,inverted:a,children:o,...s}=e,c=te.Children.toArray(o).map((u,f)=>{const p={index:f,active:!1,completed:!1,disabled:!1};return r===f?(p.active=!0,p.status=i):r>f?p.completed=!0:(p.disabled=!a,p.completed=a),te.isValidElement(u)?te.cloneElement(u,{...p,...u.props}):null});return x.jsx("ul",{className:Zn("Stepper",n),ref:t,...s,children:c})});function DAt(e){if(e){const t={success:"check-circle-fill",fail:"warning-circle-fill",abort:"dash-circle-fill"};return x.jsx(vo,{type:t[e]})}return x.jsx("div",{className:"Step-dot"})}te.forwardRef((e,t)=>{const{className:n,active:r=!1,completed:i=!1,disabled:a=!1,status:o,index:s,title:l,subTitle:c,desc:u,children:f,...p}=e;return x.jsxs("li",{className:Zn("Step",{"Step--active":r,"Step--completed":i,"Step--disabled":a},n),ref:t,"data-status":o,...p,children:[x.jsx("div",{className:"Step-icon",children:DAt(o)}),x.jsx("div",{className:"Step-line"}),x.jsxs("div",{className:"Step-content",children:[l&&x.jsxs("div",{className:"Step-title",children:[l&&x.jsx("span",{children:l}),c&&x.jsx("small",{children:c})]}),u&&x.jsx("div",{className:"Step-desc",children:u}),f]})]})});const FAt=e=>{const{active:t,index:n,children:r,onClick:i,...a}=e;function o(s){i(n,s)}return x.jsx("div",{className:"Tabs-navItem",children:x.jsx("button",{className:Zn("Tabs-navLink",{active:t}),type:"button",role:"tab","aria-selected":t,onClick:o,...a,children:x.jsx("span",{children:r})})})},LAt=e=>{const{active:t,children:n,...r}=e;return x.jsx("div",{className:Zn("Tabs-pane",{active:t}),...r,role:"tabpanel",children:n})};te.forwardRef((e,t)=>{const{className:n,index:r=0,scrollable:i,hideNavIfOnlyOne:a,children:o,onChange:s}=e,[l,c]=d.useState({}),[u,f]=d.useState(r||0),p=d.useRef(u),h=d.useRef(null),m=[],g=[],v=pwe("tabs-");function y(_,k){f(_),s&&s(_,k)}te.Children.forEach(o,(_,k)=>{if(!_)return;const S=u===k,C=`${v}-${k}`;m.push(x.jsx(FAt,{active:S,index:k,onClick:y,"aria-controls":C,tabIndex:S?-1:0,children:_.props.label},C)),_.props.children&&g.push(x.jsx(LAt,{active:S,id:C,children:_.props.children},C))}),d.useEffect(()=>{f(r)},[r]);const b=d.useCallback(()=>{const _=h.current;if(!_)return;const k=_.children[p.current];if(!k)return;const S=k.querySelector("span");if(!S)return;const{offsetWidth:C,offsetLeft:E}=k,{width:$}=S.getBoundingClientRect(),M=Math.max($-16,26),P=E+C/2;c({transform:`translateX(${P-M/2}px)`,width:`${M}px`}),i&&hwe({el:_,to:P-_.offsetWidth/2,x:!0})},[i]);d.useEffect(()=>{const _=h.current;let k;return _&&"ResizeObserver"in window&&(k=new ResizeObserver(b),k.observe(_)),()=>{k&&_&&k.unobserve(_)}},[b]),d.useEffect(()=>{p.current=u,b()},[u,b]);const w=m.length>(a?1:0);return x.jsxs("div",{className:Zn("Tabs",{"Tabs--scrollable":i},n),ref:t,children:[w&&x.jsxs("div",{className:"Tabs-nav",role:"tablist",ref:h,children:[m,x.jsx("span",{className:"Tabs-navPointer",style:l})]}),x.jsx("div",{className:"Tabs-content",children:g})]})});te.forwardRef(({children:e},t)=>x.jsx("div",{ref:t,children:e}));const BAt=te.forwardRef((e,t)=>{const{as:n="span",className:r,color:i,children:a,...o}=e;return x.jsx(n,{className:Zn("Tag",i&&`Tag--${i}`,r),ref:t,...o,children:a})}),zAt=e=>{const{item:t,onClick:n}=e,{type:r,icon:i,img:a,title:o}=t,s={name:"file",action:"https://run.mocky.io/v3/435e224c-44fb-4773-9faf-380c5e6a2188",showUploadList:!1,headers:{authorization:"authorization-text"},onChange(l){l.file.status!=="uploading"&&console.log(l.file,l.fileList),l.file.status==="done"?l3.success(`${l.file.name} file uploaded successfully`):l.file.status==="error"&&l3.error(`${l.file.name} file upload failed.`)}};return x.jsx("div",{className:"Toolbar-item","data-type":r,children:r==="upload"?x.jsx(Jg,{...s,children:x.jsxs(qs,{className:"Toolbar-btn",onClick:l=>n(t,l),children:[x.jsxs("span",{className:"Toolbar-btnIcon",children:[i&&x.jsx(vo,{type:i}),a&&x.jsx("img",{className:"Toolbar-img",src:a,alt:""})]}),x.jsx("span",{className:"Toolbar-btnText",children:o})]})}):x.jsxs(qs,{className:"Toolbar-btn",onClick:l=>n(t,l),children:[x.jsxs("span",{className:"Toolbar-btnIcon",children:[i&&x.jsx(vo,{type:i}),a&&x.jsx("img",{className:"Toolbar-img",src:a,alt:""})]}),x.jsx("span",{className:"Toolbar-btnText",children:o})]})})},HAt=e=>{const{items:t,onClick:n}=e;return x.jsx("div",{className:"Toolbar",children:t.map(r=>x.jsx(zAt,{item:r,onClick:n},r.type))})};te.forwardRef((e,t)=>{const{className:n,children:r}=e;return x.jsx("div",{className:Zn("Tree",n),role:"tree",ref:t,children:r})});te.forwardRef((e,t)=>{const{title:n,content:r,link:i,children:a=[],onClick:o,onExpand:s}=e,[l,c]=d.useState(!1),u=a.length>0;function f(){u?(c(!l),s(n,!l)):o({title:n,content:r,link:i})}return x.jsxs("div",{className:"TreeNode",role:"treeitem","aria-expanded":l,ref:t,children:[x.jsxs("div",{className:"TreeNode-title",onClick:f,role:"treeitem","aria-expanded":l,tabIndex:0,children:[x.jsx("span",{className:"TreeNode-title-text",children:n}),u?x.jsx(vo,{className:"TreeNode-title-icon",type:l?"chevron-up":"chevron-down"}):null]}),u?a.map((p,h)=>x.jsx("div",{className:Zn("TreeNode-children",{"TreeNode-children-active":l}),children:x.jsx("div",{className:"TreeNode-title TreeNode-children-title",onClick:()=>o({...p,index:h}),role:"treeitem",children:x.jsx("span",{className:"TreeNode-title-text",children:p.title})})},h)):null]})});function UAt(e){if(!e)return"";const t=Math.floor(e/3600),n=Math.floor((e-t*3600)/60),r=Math.floor(e-t*3600-n*60);let i="";return t>0&&(i+=`${t}:`),i+=`${n}:`,r<10&&(i+="0"),i+=r,i}const WAt=te.forwardRef((e,t)=>{const{className:n,src:r,cover:i,duration:a,onClick:o,onCoverLoad:s,style:l,videoRef:c,children:u,...f}=e,p=d.useRef(null),h=d.useRef(null),m=c||h,[g,v]=d.useState(!1),[y,b]=d.useState(!0);function w(E){v(!0);const $=m.current;$&&($.ended||$.paused?$.play():$.pause()),o&&o(y,E)}function _(){b(!1)}function k(){b(!0)}const S=!g&&!!i,C=S&&!!a;return d.useImperativeHandle(t,()=>({wrapperRef:p})),x.jsxs("div",{className:Zn("Video",`Video--${y?"paused":"playing"}`,n),style:l,ref:p,children:[S&&x.jsx("img",{className:"Video-cover",src:i,onLoad:s,alt:""}),C&&x.jsx("span",{className:"Video-duration",children:UAt(+a)}),x.jsx("video",{className:"Video-video",src:r,ref:m,hidden:S,controls:!0,onPlay:_,onPause:k,onEnded:k,...f,children:u}),S&&x.jsx("button",{className:Zn("Video-playBtn",{paused:y}),type:"button",onClick:w,children:x.jsx("span",{className:"Video-playIcon"})})]})}),vwe=te.forwardRef((e,t)=>{const{fileUrl:n="",children:r}=e,[i,a]=d.useState("");return d.useEffect(()=>{if(!n){a("文件不存在或已被删除");return}try{const o=n.split("/"),s=o[o.length-1];a(s||"未知文件名")}catch(o){console.error("Failed to parse file name from URL:",o),a("文件名解析错误")}},[n]),x.jsx(Xs,{className:"FileCard",size:"xl",ref:t,children:x.jsxs(lu,{children:[x.jsx("div",{className:"FileCard-icon",children:x.jsx(vo,{type:n?"file":"file-error"})}),x.jsxs(dA,{children:[x.jsx(hA,{truncate:2,breakWord:!0,className:`FileCard-name ${n?"":"FileCard-name--error"}`,children:i}),x.jsx("div",{className:"FileCard-meta",children:r})]})]})})});vwe.displayName="FileCard";const VAt=te.forwardRef((e,t)=>{const n=LH(),{className:r,type:i,img:a,name:o,desc:s,tags:l=[],locale:c,currency:u,price:f,count:p,unit:h,action:m,elderMode:g,children:v,originalPrice:y,meta:b,status:w,..._}=e,k=g||n.elderMode,S=i==="order"&&!k,C=i!=="order"&&!k,E={currency:u,locale:c},$=f!=null&&x.jsx(Nte,{price:f,...E}),M=x.jsxs("div",{className:"Goods-countUnit",children:[p&&x.jsxs("span",{className:"Goods-count",children:["×",p]}),h&&x.jsx("span",{className:"Goods-unit",children:h})]});return x.jsxs(lu,{className:Zn("Goods",r),"data-type":i,"data-elder-mode":k,ref:t,..._,children:[a&&x.jsx("img",{className:"Goods-img",src:a,alt:o}),x.jsxs(dA,{className:"Goods-main",children:[C&&m&&x.jsx(yu,{className:"Goods-buyBtn",icon:"cart",...m}),x.jsx(hA,{as:"h4",truncate:S?2:!0,className:"Goods-name",children:o}),x.jsx(hA,{className:"Goods-desc",truncate:k,children:s}),k?x.jsxs(lu,{alignItems:"center",justifyContent:"space-between",children:[$,m&&x.jsx(qs,{size:"sm",...m})]}):x.jsx("div",{className:"Goods-tags",children:l.map(P=>x.jsx(BAt,{color:"primary",children:P.name},P.name))}),C&&x.jsxs(lu,{alignItems:"flex-end",children:[x.jsxs(dA,{children:[$,y&&x.jsx(Nte,{price:y,original:!0,...E}),b&&x.jsx("span",{className:"Goods-meta",children:b})]}),M]}),v]}),S&&x.jsxs("div",{className:"Goods-aside",children:[$,M,x.jsx("span",{className:"Goods-status",children:w}),m&&x.jsx(qs,{className:"Goods-detailBtn",...m})]})]})}),qAt=({count:e,onClick:t,onDidMount:n})=>{const{trans:r}=p1("BackBottom");let i=r("bottom");return e&&(i=r(e===1?"newMsgOne":"newMsgOther").replace("{n}",e)),d.useEffect(()=>{n&&n()},[n]),x.jsx("div",{className:"BackBottom",children:x.jsxs(qs,{className:"slide-in-right-item",onClick:t,children:[i,x.jsx(vo,{type:"chevron-double-down"})]})})};function KAt(e,t=300){let n=!0;return(...r)=>{n&&(n=!1,e(...r),setTimeout(()=>{n=!0},t))}}const Fte=h1("passiveListener")?{passive:!0}:!1;function iP(e,t){const n=Math.max(e.offsetHeight,600);return dwe(e){const{messages:n,isTyping:r,loadMoreText:i,onRefresh:a,onScroll:o,renderBeforeMessageList:s,renderMessageContent:l,onBackBottomShow:c,onBackBottomClick:u,fromTicketTab:f,chatThread:p}=e,[h,m]=d.useState(!1),[g,v]=d.useState(0),y=d.useRef(h),b=d.useRef(g),w=d.useRef(null),_=d.useRef(null),k=n[n.length-1],S=Aa(O=>O.currentTicket),{agentInfo:C}=Si.getState(),E=()=>{v(0),m(!1)},$=d.useCallback(O=>{_.current&&(!y.current||O&&O.force)&&(_.current.scrollToEnd(O),y.current&&E())},[]),M=()=>{$({animated:!1,force:!0}),u&&u()},P=d.useRef(KAt(O=>{iP(O,3)?b.current?iP(O,.5)&&E():m(!1):m(!0)})),I=O=>{P.current(O.target),o&&o(O)};return d.useEffect(()=>{b.current=g},[g]),d.useEffect(()=>{y.current=h},[h]),d.useEffect(()=>{const O=_.current,A=O&&O.wrapperRef.current;if(!(!A||!k||k.position==="pop"))if(k.position==="right")$({force:!0});else if(iP(A,2)){const R=!!A.scrollTop;$({animated:R,force:!0})}else v(R=>R+1),m(!0)},[k,$]),d.useEffect(()=>{$()},[r,$]),d.useEffect(()=>{const O=w.current;let A=!1,R=0;function j(){A=!1,R=0}function N(V){const{activeElement:F}=document;F&&F.nodeName==="TEXTAREA"&&(A=!0,R=V.touches[0].clientY)}function D(V){A&&Math.abs(V.touches[0].clientY-R)>20&&(document.activeElement.blur(),j())}return O==null||O.addEventListener("touchstart",N,Fte),O==null||O.addEventListener("touchmove",D,Fte),O==null||O.addEventListener("touchend",j),O==null||O.addEventListener("touchcancel",j),()=>{O==null||O.removeEventListener("touchstart",N),O==null||O.removeEventListener("touchmove",D),O==null||O.removeEventListener("touchend",j),O==null||O.removeEventListener("touchcancel",j)}},[]),d.useImperativeHandle(t,()=>({ref:w,scrollToEnd:$}),[$]),f&&!Fa(f,S,p,C)?(console.log("不显示消息容器"),x.jsx(Ca,{})):x.jsxs("div",{className:"MessageContainer",ref:w,tabIndex:-1,children:[s&&s(),x.jsx(PAt,{onRefresh:a,onScroll:I,loadMoreText:i,ref:_,children:x.jsxs("div",{className:"MessageList",children:[n.map(O=>d.createElement(Ite,{...O,renderMessageContent:l,key:O._id})),r&&x.jsx(Ite,{type:"typing",_id:"typing"})]})}),h&&x.jsx(qAt,{count:g,onClick:M,onDidMount:c})]})}),ywe=h1("passiveListener"),YAt=ywe?{passive:!0}:!1,XAt=ywe?{passive:!1}:!1,Lte=80,ZAt={inited:"hold2talk",recording:"release2send",willCancel:"release2send"};let e2=0,aP=0;const QAt=te.forwardRef((e,t)=>{const{volume:n,onStart:r,onEnd:i,onCancel:a}=e,[o,s]=d.useState("inited"),l=d.useRef(null),{trans:c}=p1("Recorder"),u=d.useCallback(()=>{const h=Date.now()-e2;i&&i({duration:h})},[i]);d.useImperativeHandle(t,()=>({stop(){s("inited"),u(),e2=0}})),d.useEffect(()=>{const h=l.current;function m(y){y.cancelable&&y.preventDefault(),aP=y.touches[0].pageY,e2=Date.now(),s("recording"),r&&r()}function g(y){if(!e2)return;const b=y.touches[0].pageY,w=aP-b>Lte;s(w?"willCancel":"recording")}function v(y){if(!e2)return;const b=y.changedTouches[0].pageY,w=aP-b{h.removeEventListener("touchstart",m),h.removeEventListener("touchmove",g),h.removeEventListener("touchend",v),h.removeEventListener("touchcancel",v)}},[u,a,r]);const f=o==="willCancel",p={transform:`scale(${(n||1)/100+1})`};return x.jsxs("div",{className:Zn("Recorder",{"Recorder--cancel":f}),ref:l,children:[o!=="inited"&&x.jsxs(lu,{className:"RecorderToast",direction:"column",center:!0,children:[x.jsxs("div",{className:"RecorderToast-waves",hidden:o!=="recording",style:p,children:[x.jsx(vo,{className:"RecorderToast-wave-1",type:"hexagon"}),x.jsx(vo,{className:"RecorderToast-wave-2",type:"hexagon"}),x.jsx(vo,{className:"RecorderToast-wave-3",type:"hexagon"})]}),x.jsx(vo,{className:"RecorderToast-icon",type:f?"cancel":"mic"}),x.jsx("span",{children:c(f?"release2cancel":"releaseOrSwipe")})]}),x.jsx("div",{className:"Recorder-btn",role:"button","aria-label":c("hold2talk"),children:x.jsx("span",{children:c(ZAt[o])})})]})}),JAt=({onClickOutside:e,children:t})=>x.jsx(sAt,{onClick:e,children:t});function eDt(e){const t=d.useRef(!1);d.useEffect(()=>{function n(){e(),t.current=!1}function r(){t.current||(t.current=!0,window.requestAnimationFrame?window.requestAnimationFrame(n):setTimeout(n,66))}return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[e])}const tDt=e=>{const{className:t,active:n,target:r,children:i,onClose:a}=e,o=FNt(a,"mousedown"),{didMount:s,isShow:l}=owe({active:n,ref:o}),[c,u]=d.useState({}),f=d.useCallback(()=>{if(!o.current)return;const p=r.getBoundingClientRect(),h=o.current.getBoundingClientRect();u({top:`${p.top-h.height}px`,left:`${p.left}px`})},[r,o]);return d.useEffect(()=>{o.current&&(o.current.focus(),f())},[s,f,o]),eDt(f),s?Ka.createPortal(x.jsxs("div",{className:Zn("Popover",t,{active:l}),ref:o,style:c,children:[x.jsx("div",{className:"Popover-body",children:i}),x.jsx("svg",{className:"Popover-arrow",viewBox:"0 0 9 5",children:x.jsx("polygon",{points:"0,0 5,5, 9,0"})})]}),document.body):null},b_=e=>x.jsx("div",{className:"Composer-actions","data-action-icon":e.icon,children:x.jsx(yu,{size:"lg",...e})}),nDt=e=>{const{item:t,onClick:n}=e;return x.jsx(b_,{icon:t.icon,img:t.img,"data-icon":t.icon,"data-tooltip":t.title||null,"aria-label":t.title,onClick:n})};function Gr(){const e=Pn();return{translateString:r=>r==null?r:r&&r.startsWith(UO)?e.formatMessage({id:r,defaultMessage:r}):r,translateStringTranct:r=>r==null?r:r!=null&&r.startsWith(UO)?jk(e.formatMessage({id:r}),10):jk(r,8)}}const bwe=e=>{const{file:t,onCancel:n,onSend:r}=e,[i,a]=d.useState(""),[o,s]=d.useState(""),{translateString:l}=Gr();return d.useEffect(()=>{const c=new FileReader;c.onload=p=>{p.target&&a(p.target.result)},c.readAsDataURL(t);const u=t.name.toLowerCase().split(".").pop();console.log("SendConfirm file:",u,t.size);let f="unknown";u==="jpg"||u==="jpeg"||u==="png"||u==="bmp"||u==="gif"?f=Sl:u==="mp4"||u==="avi"||u==="mov"?f=sg:u==="mp3"||u==="wav"?f=Aw:f=od,s(f)},[t]),x.jsx(_At,{className:"SendConfirm",title:l("i18n.preview.title"),active:!!i,vertical:!1,actions:[{label:l("i18n.cancel"),onClick:n},{label:l("i18n.send"),color:"primary",onClick:r}],children:x.jsxs(lu,{className:"SendConfirm-inner",center:!0,children:[o===Sl&&x.jsx(x.Fragment,{children:x.jsx("img",{src:i,alt:""})}),o===sg&&x.jsx("div",{style:{width:"80%",height:"80%"},children:x.jsx("video",{controls:!0,style:{width:"100%",height:"100%"},children:x.jsx("source",{src:i,type:"video/mp4"})})}),o===Aw&&x.jsx(x.Fragment,{children:x.jsx("audio",{controls:!0,children:x.jsx("source",{src:i,type:"audio/mp3"})})}),o===od&&x.jsx(x.Fragment,{children:x.jsxs("div",{className:"SendConfirm-file",children:[x.jsx("i",{className:"iconfont icon-fujian"}),x.jsx("span",{children:t.name})]})})]})})},E3=navigator.userAgent;function rDt(){return/iPad|iPhone|iPod/.test(E3)}function iDt(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(E3)}function aDt(){return E3.includes("Safari/")||/OS 11_[0-3]\D/.test(E3)}function wwe(){const e=E3.match(/OS (\d+)_/);return e?+e[1]:0}const xwe=rDt();function oDt(){if(xwe){if(aDt())return 0;if(wwe()<13)return 1}return 2}function sDt(e,t){const n=oDt();let r;const i=t||e,a=()=>{n!==0&&(n===1?document.body.scrollTop=document.body.scrollHeight:i.scrollIntoView(!1))};e.addEventListener("focus",()=>{setTimeout(a,300),r=setTimeout(a,1e3)}),e.addEventListener("blur",()=>{clearTimeout(r),n&&xwe&&setTimeout(()=>{document.body.scrollIntoView()})})}function lDt(e,t){const{items:n}=e.clipboardData;if(n&&n.length)for(let r=0;r{const[s,l]=d.useState(null),{value:c,placeholder:u,onFocus:f,onBlur:p,onKeyDown:h,onChange:m}=o,g=Aa(M=>M.currentTicket),{agentInfo:v}=Si.getState(),y=d.useCallback(M=>{lDt(M,l)},[]),b=d.useCallback(()=>{l(null)},[]),w=d.useCallback(()=>{n&&s&&Promise.resolve(n(s)).then(()=>{l(null)})},[n,s]);d.useEffect(()=>{if(cDt&&e.current){const M=document.querySelector(".Composer");sDt(e.current,M)}},[e]);const[_,k]=d.useState("@"),S=(M,P)=>{console.log("onMentionsSearch:",P),k(P)},C=M=>{m(M,null)},E=M=>{console.log("onMetionSelect",M)},$=M=>{h(M)};return x.jsxs("div",{className:Zn({"S--invisible":t}),children:[x.jsx(I4,{className:"Composer-input",rows:1,value:c,autoSize:!0,allowClear:!0,placeholder:u,prefix:["@","/"],onSearch:S,enterKeyHint:"send",onFocus:f,onBlur:p,onKeyDown:$,onChange:C,onSelect:E,onPaste:n?y:void 0,options:r[_],disabled:!Fa(i,g,a,v),ref:e}),s&&x.jsx(bwe,{file:s,onCancel:b,onSend:w})]})},zte=({disabled:e,onClick:t})=>{const{trans:n}=p1("Composer");return x.jsx("div",{className:"Composer-actions",children:x.jsx(qs,{className:"Composer-sendBtn",disabled:e,onMouseDown:t,color:"primary",children:n("send")})})},Hte="S--focusing",uDt=te.forwardRef((e,t)=>{const{text:n="",textOnce:r,inputType:i="text",wideBreakpoint:a,placeholder:o="请输入...",recorder:s={},onInputTypeChange:l,onFocus:c,onBlur:u,onChange:f,onSend:p,onImageSend:h,onAccessoryToggle:m,toolbar:g=[],onToolbarClick:v,rightAction:y,inputOptions:b,metionOptions:w,fromTicketTab:_=!1,chatThread:k}=e,[S,C]=d.useState(n),[E,$]=d.useState(""),[M,P]=d.useState(o),[I,O]=d.useState(i||"text"),[A,R]=d.useState(!1),[j,N]=d.useState(""),D=d.useRef(null),V=d.useRef(!1),F=d.useRef(),K=d.useRef(),B=d.useRef(!1),[U,Z]=d.useState(!1),ee=Aa(we=>we.currentTicket),{agentInfo:ie}=Si.getState();d.useEffect(()=>{const we=a&&window.matchMedia?window.matchMedia(`(min-width: ${a})`):!1;function se(ye){Z(ye.matches)}return Z(we&&we.matches),we&&we.addListener(se),()=>{we&&we.removeListener(se)}},[a]),d.useEffect(()=>{aw("S--wide",U),U||N("")},[U]),d.useEffect(()=>{B.current&&m&&m(A)},[A,m]),d.useEffect(()=>{r?($(r),P(r)):($(""),P(o))},[o,r]),d.useEffect(()=>{B.current=!0},[]),d.useImperativeHandle(t,()=>({setText:C}));const Y=d.useCallback(()=>{const we=I==="voice",se=we?"text":"voice";if(O(se),we){const ye=D.current;ye.focus(),ye.selectionStart=ye.selectionEnd=ye.value.length}l&&l(se)},[I,l]),X=d.useCallback(we=>{clearTimeout(F.current),aw(Hte,!0),V.current=!0,c&&c(we)},[c]),ae=d.useCallback(we=>{F.current=setTimeout(()=>{aw(Hte,!1),V.current=!1},0),u&&u(we)},[u]),oe=d.useCallback(()=>{S?(p("text",S),C("")):E&&p("text",E),E&&($(""),P(o)),V.current&&D.current.focus()},[o,p,S,E]),le=d.useCallback(we=>{!we.shiftKey&&we.keyCode===13&&(oe(),we.preventDefault())},[oe]),ce=d.useCallback((we,se)=>{C(we),f&&f(we,se)},[f]),pe=d.useCallback(we=>{oe(),we.preventDefault()},[oe]),me=d.useCallback(()=>{R(!A)},[A]),re=d.useCallback(()=>{setTimeout(()=>{R(!1),N("")})},[]),fe=d.useCallback((we,se)=>{v&&v(we,se),we.render&&(K.current=se.currentTarget,N(we.render))},[v]),ve=d.useCallback(()=>{N("")},[]),$e=I==="text",Ce=$e?"volume-circle":"keyboard-circle",be=g.length>0,Se={...b,value:S,inputRef:D,placeholder:M,onFocus:X,onBlur:ae,onKeyDown:le,onChange:ce,onImageSend:h,metionOptions:w};return U?_&&!Fa(_,ee,k,ie)?(console.log("不显示composer"),x.jsx(x.Fragment,{})):x.jsxs("div",{className:"Composer Composer--lg",children:[be&&g.map(we=>x.jsx(nDt,{item:we,onClick:se=>fe(we,se)},we.type)),j&&x.jsx(tDt,{active:!!j,target:K.current,onClose:ve,children:j}),x.jsx("div",{className:"Composer-inputWrap",children:x.jsx(Bte,{invisible:!1,...Se,disabled:!Fa(_,ee,k,ie),fromTicketTab:_,chatThread:k})}),x.jsx(zte,{onClick:pe,disabled:!S||!Fa(_,ee,k,ie)})]}):_&&!Fa(_,ee,k,ie)?(console.log("不显示composer"),x.jsx(x.Fragment,{})):x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"Composer",children:[s.canRecord&&x.jsx(b_,{className:"Composer-inputTypeBtn","data-icon":Ce,icon:Ce,onClick:Y,"aria-label":$e?"切换到语音输入":"切换到键盘输入"}),x.jsxs("div",{className:"Composer-inputWrap",children:[x.jsx(Bte,{invisible:!$e,...Se,disabled:!W2(_,ee),fromTicketTab:_,chatThread:k}),!$e&&x.jsx(QAt,{...s})]}),!S&&y&&x.jsx(b_,{...y}),be&&x.jsx(b_,{className:Zn("Composer-toggleBtn",{active:A}),icon:"plus-circle",onClick:me,"aria-label":A?"关闭工具栏":"展开工具栏"}),(S||E)&&x.jsx(zte,{onClick:pe,disabled:!1})]}),A&&x.jsx(JAt,{onClickOutside:re,children:j||x.jsx(HAt,{items:g,onClick:fe})})]})}),{TextArea:dDt}=Wr,Swe=te.forwardRef((e,t)=>{const{wideBreakpoint:n,locale:r="zh-CN",locales:i,elderMode:a,navbar:o,renderNavbar:s,loadMoreText:l,renderBeforeMessageList:c,messagesRef:u,onRefresh:f,onScroll:p,messages:h=[],isTyping:m,showTransition:g,translationValue:v,translationPlaceholder:y,translationOnChange:b,renderMessageContent:w,onBackBottomShow:_,onBackBottomClick:k,quickReplies:S=[],quickRepliesVisible:C,onQuickReplyClick:E=()=>{},onQuickReplyScroll:$,renderQuickReplies:M,text:P,textOnce:I,placeholder:O,onInputFocus:A,onInputChange:R,onInputBlur:j,onSend:N,onImageSend:D,inputOptions:V,composerRef:F,inputType:K,onInputTypeChange:B,recorder:U,toolbar:Z,onToolbarClick:ee,onAccessoryToggle:ie,rightAction:Y,metionOptions:X,Composer:ae=uDt,fromTicketTab:oe=!1,chatThread:le}=e,ce=Aa(re=>re.currentTicket),{agentInfo:pe}=Si.getState();function me(re){u&&u.current&&u.current.scrollToEnd({animated:!1,force:!0}),A&&A(re)}return d.useEffect(()=>{const re=document.documentElement;iDt()&&(re.dataset.safari="");const fe=wwe();fe&&fe<11&&(re.dataset.oldIos="")},[]),x.jsx(ZNt,{locale:r,locales:i,elderMode:a,children:x.jsxs("div",{className:"ChatApp","data-elder-mode":a,ref:t,children:[s?s():o&&x.jsx(EAt,{...o}),(Fa(oe,ce,le,pe)||W2(oe,ce))&&x.jsx(GAt,{ref:u,loadMoreText:l,messages:h,isTyping:m,renderBeforeMessageList:c,renderMessageContent:w,onRefresh:f,onScroll:p,onBackBottomShow:_,onBackBottomClick:k,fromTicketTab:oe,chatThread:le}),x.jsxs("div",{className:"ChatFooter",children:[M?M():(Fa(oe,ce,le,pe)||W2(oe,ce))&&x.jsx(NAt,{items:S,visible:C,onClick:E,onScroll:$,fromTicketTab:oe,chatThread:le}),g&&x.jsx("div",{style:{float:"left",marginLeft:10,marginTop:5,minWidth:200},children:x.jsx(dDt,{value:v,onChange:re=>b(re.target.value),rows:3,placeholder:y})}),(Fa(oe,ce,le,pe)||W2(oe,ce))&&x.jsx(ae,{wideBreakpoint:n,ref:F,inputType:K,text:P,textOnce:I,inputOptions:V,placeholder:O,onAccessoryToggle:ie,recorder:U,toolbar:Z,onToolbarClick:ee,onInputTypeChange:B,onFocus:me,onChange:R,onBlur:j,onSend:N,onImageSend:D,rightAction:Y,metionOptions:X,fromTicketTab:oe,chatThread:le})]})]})})});var fDt=typeof Element<"u",pDt=typeof Map=="function",hDt=typeof Set=="function",mDt=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function w_(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!w_(e[r],t[r]))return!1;return!0}var a;if(pDt&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!w_(r.value[1],t.get(r.value[0])))return!1;return!0}if(hDt&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(mDt&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(fDt&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!w_(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var gDt=function(t,n){try{return w_(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const vDt=ei(gDt);var yDt=function(e,t,n,r,i,a,o,s){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,o,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},bDt=yDt;const Ute=ei(bDt);var wDt=function(t,n,r,i){var a=r?r.call(i,t,n):void 0;if(a!==void 0)return!!a;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),s=Object.keys(n);if(o.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Cwe||{}),oP={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Wte=Object.values(Cwe),HH={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},SDt=Object.entries(HH).reduce((e,[t,n])=>(e[n]=t,e),{}),Jc="data-rh",Nv={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Av=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},CDt=e=>{let t=Av(e,"title");const n=Av(e,Nv.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Av(e,Nv.DEFAULT_TITLE);return t||r||void 0},_Dt=e=>Av(e,Nv.ON_CHANGE_CLIENT_STATE)||(()=>{}),sP=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),kDt=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let a=0;aconsole&&typeof console.warn=="function"&&console.warn(e),t2=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&EDt(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,a)=>{const o={};a.filter(l=>{let c;const u=Object.keys(l);for(let p=0;pi.push(l));const s=Object.keys(o);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let n=0;n({baseTag:kDt(["href"],e),bodyAttributes:sP("bodyAttributes",e),defer:Av(e,Nv.DEFER),encode:Av(e,Nv.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:sP("htmlAttributes",e),linkTags:t2("link",["rel","href"],e),metaTags:t2("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:t2("noscript",["innerHTML"],e),onChangeClientState:_Dt(e),scriptTags:t2("script",["src","innerHTML"],e),styleTags:t2("style",["cssText"],e),title:CDt(e),titleAttributes:sP("titleAttributes",e),prioritizeSeoTags:$Dt(e,Nv.PRIORITIZE_SEO_TAGS)}),_we=e=>Array.isArray(e)?e.join(""):e,TDt=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(TDt(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Vte=(e,t)=>({...e,[t]:void 0}),PDt=["noscript","script","style"],mA=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),kwe=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),ODt=(e,t,n,r)=>{const i=kwe(n),a=_we(t);return i?`<${e} ${Jc}="true" ${i}>${mA(a,r)}`:`<${e} ${Jc}="true">${mA(a,r)}`},IDt=(e,t,n=!0)=>t.reduce((r,i)=>{const a=i,o=Object.keys(a).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const f=typeof a[u]>"u"?u:`${u}="${mA(a[u],n)}"`;return c?`${c} ${f}`:f},""),s=a.innerHTML||a.cssText||"",l=PDt.indexOf(e)===-1;return`${r}<${e} ${Jc}="true" ${o}${l?"/>":`>${s}`}`},""),Ewe=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=HH[r];return n[i||r]=e[r],n},t),RDt=(e,t,n)=>{const r={key:t,[Jc]:!0},i=Ewe(n,r);return[te.createElement("title",i,t)]},x_=(e,t)=>t.map((n,r)=>{const i={key:r,[Jc]:!0};return Object.keys(n).forEach(a=>{const s=HH[a]||a;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[s]=n[a]}),te.createElement(e,i)}),Zl=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>RDt(e,t.title,t.titleAttributes),toString:()=>ODt(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Ewe(t),toString:()=>kwe(t)};default:return{toComponent:()=>x_(e,t),toString:()=>IDt(e,t,n)}}},jDt=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=lP(e,oP.meta),a=lP(t,oP.link),o=lP(n,oP.script);return{priorityMethods:{toComponent:()=>[...x_("meta",i.priority),...x_("link",a.priority),...x_("script",o.priority)],toString:()=>`${Zl("meta",i.priority,r)} ${Zl("link",a.priority,r)} ${Zl("script",o.priority,r)}`},metaTags:i.default,linkTags:a.default,scriptTags:o.default}},NDt=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:a,styleTags:o,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:f,scriptTags:p}=e,h={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:h,linkTags:u,metaTags:f,scriptTags:p}=jDt(e)),{priority:h,base:Zl("base",t,r),bodyAttributes:Zl("bodyAttributes",n,r),htmlAttributes:Zl("htmlAttributes",i,r),link:Zl("link",u,r),meta:Zl("meta",f,r),noscript:Zl("noscript",a,r),script:Zl("script",p,r),style:Zl("style",o,r),title:Zl("title",{title:s,titleAttributes:l},r)}},gA=NDt,ZS=[],$we=!!(typeof window<"u"&&window.document&&window.document.createElement),vA=class{constructor(e,t){Yr(this,"instances",[]);Yr(this,"canUseDOM",$we);Yr(this,"context");Yr(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?ZS:this.instances,add:e=>{(this.canUseDOM?ZS:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?ZS:this.instances).indexOf(e);(this.canUseDOM?ZS:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=gA({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},ADt={},Mwe=te.createContext(ADt),jm,Twe=(jm=class extends d.Component{constructor(n){super(n);Yr(this,"helmetData");this.helmetData=new vA(this.props.context||{},jm.canUseDOM)}render(){return te.createElement(Mwe.Provider,{value:this.helmetData.value},this.props.children)}},Yr(jm,"canUseDOM",$we),jm),U1=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Jc}]`),i=[].slice.call(r),a=[];let o;return t&&t.length&&t.forEach(s=>{const l=document.createElement(e);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c))if(c==="innerHTML")l.innerHTML=s.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=s.cssText:l.appendChild(document.createTextNode(s.cssText));else{const u=c,f=typeof s[u]>"u"?"":s[u];l.setAttribute(c,f)}l.setAttribute(Jc,"true"),i.some((c,u)=>(o=u,l.isEqualNode(c)))?i.splice(o,1):a.push(l)}),i.forEach(s=>{var l;return(l=s.parentNode)==null?void 0:l.removeChild(s)}),a.forEach(s=>n.appendChild(s)),{oldTags:i,newTags:a}},yA=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Jc),i=r?r.split(","):[],a=[...i],o=Object.keys(t);for(const s of o){const l=t[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),i.indexOf(s)===-1&&i.push(s);const c=a.indexOf(s);c!==-1&&a.splice(c,1)}for(let s=a.length-1;s>=0;s-=1)n.removeAttribute(a[s]);i.length===a.length?n.removeAttribute(Jc):n.getAttribute(Jc)!==o.join(",")&&n.setAttribute(Jc,o.join(","))},DDt=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=_we(e)),yA("title",t)},qte=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:a,metaTags:o,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:f,titleAttributes:p}=e;yA("body",r),yA("html",i),DDt(f,p);const h={baseTag:U1("base",n),linkTags:U1("link",a),metaTags:U1("meta",o),noscriptTags:U1("noscript",s),scriptTags:U1("script",c),styleTags:U1("style",u)},m={},g={};Object.keys(h).forEach(v=>{const{newTags:y,oldTags:b}=h[v];y.length&&(m[v]=y),b.length&&(g[v]=h[v].oldTags)}),t&&t(),l(e,m,g)},n2=null,FDt=e=>{n2&&cancelAnimationFrame(n2),e.defer?n2=requestAnimationFrame(()=>{qte(e,()=>{n2=null})}):(qte(e),n2=null)},LDt=FDt,Kte=class extends d.Component{constructor(){super(...arguments);Yr(this,"rendered",!1)}shouldComponentUpdate(t){return!xDt(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=MDt(t.get().map(a=>{const o={...a.props};return delete o.context,o}));Twe.canUseDOM?LDt(i):gA&&(r=gA(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},HP,UH=(HP=class extends d.Component{shouldComponentUpdate(e){return!vDt(Vte(this.props,"helmetData"),Vte(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return Ute(Wte.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Wte.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Ute(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return te.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...a}=r.props,o=Object.keys(a).reduce((l,c)=>(l[SDt[c]||c]=a[c],l),{});let{type:s}=r;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(r,i),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,i);break;default:t=this.mapObjectTypeChildren(r,t,o,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof vA)){const i=r;r=new vA(i.context,!0),delete n.helmetData}return r?te.createElement(Kte,{...n,context:r.value}):te.createElement(Mwe.Consumer,null,i=>te.createElement(Kte,{...n,context:i}))}},Yr(HP,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),HP);function Pwe(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var BDt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,zDt=Pwe(function(e){return BDt.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),HDt=!1;function UDt(e){if(e.sheet)return e.sheet;for(var t=0;t0?go(eb,--Ks):0,G0--,ja===10&&(G0=1,G$--),ja}function Pl(){return ja=Ks2||M3(ja)>3?"":" "}function nFt(e,t){for(;--t&&Pl()&&!(ja<48||ja>102||ja>57&&ja<65||ja>70&&ja<97););return ax(e,S_()+(t<6&&cd()==32&&Pl()==32))}function wA(e){for(;Pl();)switch(ja){case e:return Ks;case 34:case 39:e!==34&&e!==39&&wA(ja);break;case 40:e===41&&wA(e);break;case 92:Pl();break}return Ks}function rFt(e,t){for(;Pl()&&e+ja!==57;)if(e+ja===84&&cd()===47)break;return"/*"+ax(t,Ks-1)+"*"+K$(e===47?e:Pl())}function iFt(e){for(;!M3(cd());)Pl();return ax(e,Ks)}function aFt(e){return Awe(__("",null,null,null,[""],e=Nwe(e),0,[0],e))}function __(e,t,n,r,i,a,o,s,l){for(var c=0,u=0,f=o,p=0,h=0,m=0,g=1,v=1,y=1,b=0,w="",_=i,k=a,S=r,C=w;v;)switch(m=b,b=Pl()){case 40:if(m!=108&&go(C,f-1)==58){bA(C+=ai(C_(b),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:C+=C_(b);break;case 9:case 10:case 13:case 32:C+=tFt(m);break;case 92:C+=nFt(S_()-1,7);continue;case 47:switch(cd()){case 42:case 47:QS(oFt(rFt(Pl(),S_()),t,n),l);break;default:C+="/"}break;case 123*g:s[c++]=Ku(C)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:y==-1&&(C=ai(C,/\f/g,"")),h>0&&Ku(C)-f&&QS(h>32?Yte(C+";",r,n,f-1):Yte(ai(C," ","")+";",r,n,f-2),l);break;case 59:C+=";";default:if(QS(S=Gte(C,t,n,c,u,i,s,w,_=[],k=[],f),a),b===123)if(u===0)__(C,t,S,S,_,a,f,s,k);else switch(p===99&&go(C,3)===110?100:p){case 100:case 108:case 109:case 115:__(e,S,S,r&&QS(Gte(e,S,S,0,0,i,s,w,i,_=[],f),k),i,k,f,s,r?_:k);break;default:__(C,S,S,S,[""],k,0,s,k)}}c=u=h=0,g=y=1,w=C="",f=o;break;case 58:f=1+Ku(C),h=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&eFt()==125)continue}switch(C+=K$(b),b*g){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Ku(C)-1)*y,y=1;break;case 64:cd()===45&&(C+=C_(Pl())),p=cd(),u=f=Ku(w=C+=iFt(S_())),b++;break;case 45:m===45&&Ku(C)==2&&(g=0)}}return a}function Gte(e,t,n,r,i,a,o,s,l,c,u){for(var f=i-1,p=i===0?a:[""],h=qH(p),m=0,g=0,v=0;m0?p[y]+" "+b:ai(b,/&\f/g,p[y])))&&(l[v++]=w);return Y$(e,t,n,i===0?WH:s,l,c,u)}function oFt(e,t,n){return Y$(e,t,n,Owe,K$(JDt()),$3(e,2,-2),0)}function Yte(e,t,n,r){return Y$(e,t,n,VH,$3(e,0,r),$3(e,r+1,-1),r)}function Dv(e,t){for(var n="",r=qH(e),i=0;i6)switch(go(e,t+1)){case 109:if(go(e,t+4)!==45)break;case 102:return ai(e,/(.+:)(.+)-([^]+)/,"$1"+ii+"$2-$3$1"+r5+(go(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bA(e,"stretch")?Dwe(ai(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(go(e,t+1)!==115)break;case 6444:switch(go(e,Ku(e)-3-(~bA(e,"!important")&&10))){case 107:return ai(e,":",":"+ii)+e;case 101:return ai(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ii+(go(e,14)===45?"inline-":"")+"box$3$1"+ii+"$2$3$1"+jo+"$2box$3")+e}break;case 5936:switch(go(e,t+11)){case 114:return ii+e+jo+ai(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ii+e+jo+ai(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ii+e+jo+ai(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ii+e+jo+e+e}return e}var mFt=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case VH:t.return=Dwe(t.value,t.length);break;case Iwe:return Dv([r2(t,{value:ai(t.value,"@","@"+ii)})],i);case WH:if(t.length)return QDt(t.props,function(a){switch(ZDt(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Dv([r2(t,{props:[ai(a,/:(read-\w+)/,":"+r5+"$1")]})],i);case"::placeholder":return Dv([r2(t,{props:[ai(a,/:(plac\w+)/,":"+ii+"input-$1")]}),r2(t,{props:[ai(a,/:(plac\w+)/,":"+r5+"$1")]}),r2(t,{props:[ai(a,/:(plac\w+)/,jo+"input-$1")]})],i)}return""})}},gFt=[mFt],vFt=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||gFt,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),y=1;y=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var SFt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},CFt=!1,_Ft=/[A-Z]|^ms/g,kFt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Lwe=function(t){return t.charCodeAt(1)===45},Zte=function(t){return t!=null&&typeof t!="boolean"},cP=Pwe(function(e){return Lwe(e)?e:e.replace(_Ft,"-$&").toLowerCase()}),Qte=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(kFt,function(r,i,a){return Gu={name:i,styles:a,next:Gu},i})}return SFt[t]!==1&&!Lwe(t)&&typeof n=="number"&&n!==0?n+"px":n},EFt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function T3(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Gu={name:i.name,styles:i.styles,next:Gu},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Gu={name:o.name,styles:o.styles,next:Gu},o=o.next;var s=a.styles+";";return s}return $Ft(e,t,n)}case"function":{if(e!==void 0){var l=Gu,c=n(e);return Gu=l,T3(e,t,c)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function $Ft(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?jFt:NFt},tne=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},AFt=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Fwe(n,r,i),OFt(function(){return wFt(n,r,i)}),null},DFt=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=tne(t,n,r),l=s||ene(i),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,h=1;h({messageList:[],addMessageProtobuf(n){var i;const r={...n,extra:JSON.parse(n==null?void 0:n.extra),topic:(i=n.thread)==null?void 0:i.topic};t().addMessage(r)},addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===Mf){const a=t().messageList.findIndex(o=>o.type===Mf&&o.uid===n.uid);if(a!==-1){const o=[...t().messageList];o[a].content+=n.content,e({messageList:o});return}}const i=t().messageList.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...t().messageList];a[i]=n,e({messageList:a})}}else{const i=t().messageList[t().messageList.length-1];if(i&&n.type===f0&&i.type===f0){const a=t().messageList.findIndex(s=>s.uid===i.uid),o=[...t().messageList];o[a]=n,e({messageList:o})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let a=0;al.uid===o.uid)||r.unshift(o)}const i=[...r,...t().messageList].sort((a,o)=>{const s=tn(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=tn(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",i),e({messageList:i})},updateMessageStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);if(i!==-1){const a=[...t().messageList];a[i].status=r,e({messageList:a})}},updateMessage(n){const r=t().messageList.findIndex(i=>i.uid===n.uid);if(r!==-1){const i=[...t().messageList];i[r].content=n.content,e({messageList:i})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i.splice(r,1),e({messageList:i})}},recallMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i[r].type=W5,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const a=tn(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),o=tn(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return a-o});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:O6e})));function VFt(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const qFt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,KFt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,GFt={};function nne(e,t){return(GFt.jsx?KFt:qFt).test(e)}const YFt=/[ \t\n\f\r]/g;function XFt(e){return typeof e=="object"?e.type==="text"?rne(e.value):!1:rne(e)}function rne(e){return e.replace(YFt,"")===""}class ox{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}ox.prototype.property={};ox.prototype.normal={};ox.prototype.space=null;function Uwe(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&tLt.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(ane,aLt);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!ane.test(a)){let o=a.replace(nLt,iLt);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=KH}return new i(r,t)}function iLt(e){return"-"+e.toLowerCase()}function aLt(e){return e.charAt(1).toUpperCase()}const oLt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},sLt=Uwe([qwe,Vwe,Ywe,Xwe,JFt],"html"),GH=Uwe([qwe,Vwe,Ywe,Xwe,eLt],"svg");function lLt(e){return e.join(" ").trim()}var Zwe={},one=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,cLt=/\n/g,uLt=/^\s*/,dLt=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,fLt=/^:\s*/,pLt=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,hLt=/^[;\s]*/,mLt=/^\s+|\s+$/g,gLt=` -`,sne="/",lne="*",um="",vLt="comment",yLt="declaration",bLt=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var g=m.match(cLt);g&&(n+=g.length);var v=m.lastIndexOf(gLt);r=~v?m.length-v:r+m.length}function a(){var m={line:n,column:r};return function(g){return g.position=new o(m),c(),g}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(m){var g=new Error(t.source+":"+n+":"+r+": "+m);if(g.reason=m,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function l(m){var g=m.exec(e);if(g){var v=g[0];return i(v),e=e.slice(v.length),g}}function c(){l(uLt)}function u(m){var g;for(m=m||[];g=f();)g!==!1&&m.push(g);return m}function f(){var m=a();if(!(sne!=e.charAt(0)||lne!=e.charAt(1))){for(var g=2;um!=e.charAt(g)&&(lne!=e.charAt(g)||sne!=e.charAt(g+1));)++g;if(g+=2,um===e.charAt(g-1))return s("End of comment missing");var v=e.slice(2,g-2);return r+=2,i(v),e=e.slice(g),r+=2,m({type:vLt,comment:v})}}function p(){var m=a(),g=l(dLt);if(g){if(f(),!l(fLt))return s("property missing ':'");var v=l(pLt),y=m({type:yLt,property:cne(g[0].replace(one,um)),value:v?cne(v[0].replace(one,um)):um});return l(hLt),y}}function h(){var m=[];u(m);for(var g;g=p();)g!==!1&&(m.push(g),u(m));return m}return c(),h()};function cne(e){return e?e.replace(mLt,um):um}var wLt=oi&&oi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zwe,"__esModule",{value:!0});var une=Zwe.default=SLt,xLt=wLt(bLt);function SLt(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,xLt.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var o=a.property,s=a.value;i?t(o,s,a):s&&(n=n||{},n[o]=s)}}),n}const CLt=une.default||une,Qwe=Jwe("end"),YH=Jwe("start");function Jwe(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function _Lt(e){const t=YH(e),n=Qwe(e);if(t&&n)return{start:t,end:n}}function ow(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?dne(e.position):"start"in e||"end"in e?dne(e):"line"in e||"column"in e?CA(e):""}function CA(e){return fne(e&&e.line)+":"+fne(e&&e.column)}function dne(e){return CA(e&&e.start)+"-"+CA(e&&e.end)}function fne(e){return e&&typeof e=="number"?e:1}class ns extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=ow(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}ns.prototype.file="";ns.prototype.name="";ns.prototype.reason="";ns.prototype.message="";ns.prototype.stack="";ns.prototype.column=void 0;ns.prototype.line=void 0;ns.prototype.ancestors=void 0;ns.prototype.cause=void 0;ns.prototype.fatal=void 0;ns.prototype.place=void 0;ns.prototype.ruleId=void 0;ns.prototype.source=void 0;const XH={}.hasOwnProperty,kLt=new Map,ELt=/[A-Z]/g,$Lt=/-([a-z])/g,MLt=new Set(["table","tbody","thead","tfoot","tr"]),TLt=new Set(["td","th"]),e3e="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function PLt(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=FLt(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=DLt(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?GH:sLt,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=t3e(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function t3e(e,t,n){if(t.type==="element")return OLt(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ILt(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return jLt(e,t,n);if(t.type==="mdxjsEsm")return RLt(e,t);if(t.type==="root")return NLt(e,t,n);if(t.type==="text")return ALt(e,t)}function OLt(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=GH,e.schema=i),e.ancestors.push(t);const a=r3e(e,t.tagName,!1),o=LLt(e,t);let s=QH(e,t);return MLt.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!XFt(l):!0})),n3e(e,o,a,t),ZH(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function ILt(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}P3(e,t.position)}function RLt(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);P3(e,t.position)}function jLt(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=GH,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:r3e(e,t.name,!0),o=BLt(e,t),s=QH(e,t);return n3e(e,o,a,t),ZH(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function NLt(e,t,n){const r={};return ZH(r,QH(e,t)),e.create(t,e.Fragment,r,n)}function ALt(e,t){return t.value}function n3e(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ZH(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function DLt(e,t,n){return r;function r(i,a,o,s){const c=Array.isArray(o.children)?n:t;return s?c(a,o,s):c(a,o)}}function FLt(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=YH(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function LLt(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&XH.call(t.properties,i)){const a=zLt(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&TLt.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function BLt(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else P3(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else P3(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function QH(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:kLt;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Sd(e,e.length,0,t),e):t}const mne={}.hasOwnProperty;function XLt(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Lv(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Zu=Mh(/[A-Za-z]/),El=Mh(/[\dA-Za-z]/),JLt=Mh(/[#-'*+\--9=?A-Z^-~]/);function _A(e){return e!==null&&(e<32||e===127)}const kA=Mh(/\d/),eBt=Mh(/[\dA-Fa-f]/),tBt=Mh(/[!-/:-@[-`{-~]/);function pr(e){return e!==null&&e<-2}function Hs(e){return e!==null&&(e<0||e===32)}function si(e){return e===-2||e===-1||e===32}const nBt=Mh(new RegExp("\\p{P}|\\p{S}","u")),rBt=Mh(/\s/);function Mh(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function nb(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Pi(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return si(l)?(e.enter(n),s(l)):t(l)}function s(l){return si(l)&&a++o))return;const C=t.events.length;let E=C,$,M;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){if($){M=t.events[E][1].end;break}$=!0}for(y(r),S=C;Sw;){const k=n[_];t.containerState=k[1],k[0].exit.call(t,e)}n.length=w}function b(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function lBt(e,t,n){return Pi(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function vne(e){if(e===null||Hs(e)||rBt(e))return 1;if(nBt(e))return 2}function eU(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[n][1].start};yne(f,-l),yne(p,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ic(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ic(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=ic(c,eU(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=ic(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=ic(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,Sd(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n0&&si(S)?Pi(e,b,"linePrefix",a+1)(S):b(S)}function b(S){return S===null||pr(S)?e.check(bne,g,_)(S):(e.enter("codeFlowValue"),w(S))}function w(S){return S===null||pr(S)?(e.exit("codeFlowValue"),b(S)):(e.consume(S),w)}function _(S){return e.exit("codeFenced"),t(S)}function k(S,C,E){let $=0;return M;function M(R){return S.enter("lineEnding"),S.consume(R),S.exit("lineEnding"),P}function P(R){return S.enter("codeFencedFence"),si(R)?Pi(S,I,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):I(R)}function I(R){return R===s?(S.enter("codeFencedFenceSequence"),O(R)):E(R)}function O(R){return R===s?($++,S.consume(R),O):$>=o?(S.exit("codeFencedFenceSequence"),si(R)?Pi(S,A,"whitespace")(R):A(R)):E(R)}function A(R){return R===null||pr(R)?(S.exit("codeFencedFence"),C(R)):E(R)}}}function wBt(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const fP={name:"codeIndented",tokenize:SBt},xBt={partial:!0,tokenize:CBt};function SBt(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Pi(e,a,"linePrefix",5)(c)}function a(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):pr(c)?e.attempt(xBt,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||pr(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function CBt(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):pr(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Pi(e,a,"linePrefix",5)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):pr(o)?i(o):n(o)}}const _Bt={name:"codeText",previous:EBt,resolve:kBt,tokenize:$Bt};function kBt(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&i2(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),i2(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),i2(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function u3e(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return f;function f(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),p):y===null||y===32||y===41||_A(y)?n(y):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(y))}function p(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(s),p(y)):y===null||y===60||pr(y)?n(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function g(y){return!u&&(y===null||y===41||Hs(y))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(y)):u999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):pr(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||pr(h)||s++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!si(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function f3e(e,t,n,r,i,a){let o;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,l):n(p)}function l(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),c(p))}function c(p){return p===o?(e.exit(a),l(o)):p===null?n(p):pr(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Pi(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===o||p===null||pr(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?f:u)}function f(p){return p===o||p===92?(e.consume(p),u):u(p)}}function sw(e,t){let n;return r;function r(i){return pr(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):si(i)?Pi(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const NBt={name:"definition",tokenize:DBt},ABt={partial:!0,tokenize:FBt};function DBt(e,t,n){const r=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return d3e.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Lv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Hs(h)?sw(e,c)(h):c(h)}function c(h){return u3e(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(ABt,f,f)(h)}function f(h){return si(h)?Pi(e,p,"whitespace")(h):p(h)}function p(h){return h===null||pr(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function FBt(e,t,n){return r;function r(s){return Hs(s)?sw(e,i)(s):n(s)}function i(s){return f3e(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return si(s)?Pi(e,o,"whitespace")(s):o(s)}function o(s){return s===null||pr(s)?t(s):n(s)}}const LBt={name:"hardBreakEscape",tokenize:BBt};function BBt(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return pr(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const zBt={name:"headingAtx",resolve:HBt,tokenize:UBt};function HBt(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Sd(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function UBt(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),a(u)}function a(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||Hs(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||pr(u)?(e.exit("atxHeading"),t(u)):si(u)?Pi(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||Hs(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const WBt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],xne=["pre","script","style","textarea"],VBt={concrete:!0,name:"htmlFlow",resolveTo:GBt,tokenize:YBt},qBt={partial:!0,tokenize:ZBt},KBt={partial:!0,tokenize:XBt};function GBt(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function YBt(e,t,n){const r=this;let i,a,o,s,l;return c;function c(U){return u(U)}function u(U){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(U),f}function f(U){return U===33?(e.consume(U),p):U===47?(e.consume(U),a=!0,g):U===63?(e.consume(U),i=3,r.interrupt?t:F):Zu(U)?(e.consume(U),o=String.fromCharCode(U),v):n(U)}function p(U){return U===45?(e.consume(U),i=2,h):U===91?(e.consume(U),i=5,s=0,m):Zu(U)?(e.consume(U),i=4,r.interrupt?t:F):n(U)}function h(U){return U===45?(e.consume(U),r.interrupt?t:F):n(U)}function m(U){const Z="CDATA[";return U===Z.charCodeAt(s++)?(e.consume(U),s===Z.length?r.interrupt?t:I:m):n(U)}function g(U){return Zu(U)?(e.consume(U),o=String.fromCharCode(U),v):n(U)}function v(U){if(U===null||U===47||U===62||Hs(U)){const Z=U===47,ee=o.toLowerCase();return!Z&&!a&&xne.includes(ee)?(i=1,r.interrupt?t(U):I(U)):WBt.includes(o.toLowerCase())?(i=6,Z?(e.consume(U),y):r.interrupt?t(U):I(U)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(U):a?b(U):w(U))}return U===45||El(U)?(e.consume(U),o+=String.fromCharCode(U),v):n(U)}function y(U){return U===62?(e.consume(U),r.interrupt?t:I):n(U)}function b(U){return si(U)?(e.consume(U),b):M(U)}function w(U){return U===47?(e.consume(U),M):U===58||U===95||Zu(U)?(e.consume(U),_):si(U)?(e.consume(U),w):M(U)}function _(U){return U===45||U===46||U===58||U===95||El(U)?(e.consume(U),_):k(U)}function k(U){return U===61?(e.consume(U),S):si(U)?(e.consume(U),k):w(U)}function S(U){return U===null||U===60||U===61||U===62||U===96?n(U):U===34||U===39?(e.consume(U),l=U,C):si(U)?(e.consume(U),S):E(U)}function C(U){return U===l?(e.consume(U),l=null,$):U===null||pr(U)?n(U):(e.consume(U),C)}function E(U){return U===null||U===34||U===39||U===47||U===60||U===61||U===62||U===96||Hs(U)?k(U):(e.consume(U),E)}function $(U){return U===47||U===62||si(U)?w(U):n(U)}function M(U){return U===62?(e.consume(U),P):n(U)}function P(U){return U===null||pr(U)?I(U):si(U)?(e.consume(U),P):n(U)}function I(U){return U===45&&i===2?(e.consume(U),j):U===60&&i===1?(e.consume(U),N):U===62&&i===4?(e.consume(U),K):U===63&&i===3?(e.consume(U),F):U===93&&i===5?(e.consume(U),V):pr(U)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(qBt,B,O)(U)):U===null||pr(U)?(e.exit("htmlFlowData"),O(U)):(e.consume(U),I)}function O(U){return e.check(KBt,A,B)(U)}function A(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),R}function R(U){return U===null||pr(U)?O(U):(e.enter("htmlFlowData"),I(U))}function j(U){return U===45?(e.consume(U),F):I(U)}function N(U){return U===47?(e.consume(U),o="",D):I(U)}function D(U){if(U===62){const Z=o.toLowerCase();return xne.includes(Z)?(e.consume(U),K):I(U)}return Zu(U)&&o.length<8?(e.consume(U),o+=String.fromCharCode(U),D):I(U)}function V(U){return U===93?(e.consume(U),F):I(U)}function F(U){return U===62?(e.consume(U),K):U===45&&i===2?(e.consume(U),F):I(U)}function K(U){return U===null||pr(U)?(e.exit("htmlFlowData"),B(U)):(e.consume(U),K)}function B(U){return e.exit("htmlFlow"),t(U)}}function XBt(e,t,n){const r=this;return i;function i(o){return pr(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function ZBt(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(X$,t,n)}}const QBt={name:"htmlText",tokenize:JBt};function JBt(e,t,n){const r=this;let i,a,o;return s;function s(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),l}function l(F){return F===33?(e.consume(F),c):F===47?(e.consume(F),k):F===63?(e.consume(F),w):Zu(F)?(e.consume(F),E):n(F)}function c(F){return F===45?(e.consume(F),u):F===91?(e.consume(F),a=0,m):Zu(F)?(e.consume(F),b):n(F)}function u(F){return F===45?(e.consume(F),h):n(F)}function f(F){return F===null?n(F):F===45?(e.consume(F),p):pr(F)?(o=f,N(F)):(e.consume(F),f)}function p(F){return F===45?(e.consume(F),h):f(F)}function h(F){return F===62?j(F):F===45?p(F):f(F)}function m(F){const K="CDATA[";return F===K.charCodeAt(a++)?(e.consume(F),a===K.length?g:m):n(F)}function g(F){return F===null?n(F):F===93?(e.consume(F),v):pr(F)?(o=g,N(F)):(e.consume(F),g)}function v(F){return F===93?(e.consume(F),y):g(F)}function y(F){return F===62?j(F):F===93?(e.consume(F),y):g(F)}function b(F){return F===null||F===62?j(F):pr(F)?(o=b,N(F)):(e.consume(F),b)}function w(F){return F===null?n(F):F===63?(e.consume(F),_):pr(F)?(o=w,N(F)):(e.consume(F),w)}function _(F){return F===62?j(F):w(F)}function k(F){return Zu(F)?(e.consume(F),S):n(F)}function S(F){return F===45||El(F)?(e.consume(F),S):C(F)}function C(F){return pr(F)?(o=C,N(F)):si(F)?(e.consume(F),C):j(F)}function E(F){return F===45||El(F)?(e.consume(F),E):F===47||F===62||Hs(F)?$(F):n(F)}function $(F){return F===47?(e.consume(F),j):F===58||F===95||Zu(F)?(e.consume(F),M):pr(F)?(o=$,N(F)):si(F)?(e.consume(F),$):j(F)}function M(F){return F===45||F===46||F===58||F===95||El(F)?(e.consume(F),M):P(F)}function P(F){return F===61?(e.consume(F),I):pr(F)?(o=P,N(F)):si(F)?(e.consume(F),P):$(F)}function I(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),i=F,O):pr(F)?(o=I,N(F)):si(F)?(e.consume(F),I):(e.consume(F),A)}function O(F){return F===i?(e.consume(F),i=void 0,R):F===null?n(F):pr(F)?(o=O,N(F)):(e.consume(F),O)}function A(F){return F===null||F===34||F===39||F===60||F===61||F===96?n(F):F===47||F===62||Hs(F)?$(F):(e.consume(F),A)}function R(F){return F===47||F===62||Hs(F)?$(F):n(F)}function j(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),t):n(F)}function N(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),D}function D(F){return si(F)?Pi(e,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):V(F)}function V(F){return e.enter("htmlTextData"),o(F)}}const tU={name:"labelEnd",resolveAll:rzt,resolveTo:izt,tokenize:azt},ezt={tokenize:ozt},tzt={tokenize:szt},nzt={tokenize:lzt};function rzt(e){let t=-1;const n=[];for(;++t=3&&(c===null||pr(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),si(c)?Pi(e,s,"whitespace")(c):s(c))}}const Ms={continuation:{tokenize:yzt},exit:wzt,name:"list",tokenize:vzt},mzt={partial:!0,tokenize:xzt},gzt={partial:!0,tokenize:bzt};function vzt(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:kA(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(k_,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return kA(h)&&++o<10?(e.consume(h),l):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(X$,r.interrupt?n:u,e.attempt(mzt,p,f))}function u(h){return r.containerState.initialBlankLine=!0,a++,p(h)}function f(h){return si(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function yzt(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(X$,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Pi(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!si(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(gzt,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Pi(e,e.attempt(Ms,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function bzt(e,t,n){const r=this;return Pi(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function wzt(e){e.exit(this.containerState.type)}function xzt(e,t,n){const r=this;return Pi(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!si(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Sne={name:"setextUnderline",resolveTo:Szt,tokenize:Czt};function Szt(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function Czt(e,t,n){const r=this;let i;return a;function a(c){let u=r.events.length,f;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){f=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),si(c)?Pi(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||pr(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const _zt={tokenize:kzt};function kzt(e){const t=this,n=e.attempt(X$,r,e.attempt(this.parser.constructs.flowInitial,i,Pi(e,e.attempt(this.parser.constructs.flow,i,e.attempt(PBt,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ezt={resolveAll:h3e()},$zt=p3e("string"),Mzt=p3e("text");function p3e(e){return{resolveAll:h3e(e==="text"?Tzt:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(u){return c(u)?a(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),a(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const f=i[u];let p=-1;if(f)for(;++p-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Hzt(e,t){let n=-1;const r=[];let i;for(;++n{const n=Rn(),[r,i]=d.useState(),[a,o]=d.useState(),s=async()=>{const u=await DIt();u.data.code===200&&(i(u.data.data.captchaUid),o(u.data.data.captchaImage))},l=async(u,f)=>{const p=await FIt(u,f);console.log("checkCaptcha response",p),p.data.code===200?t&&t(!0):t&&t(!1)};d.useEffect(()=>{s()},[]);const c=u=>{e&&(e(r,u.target.value),u.target.value&&u.target.value!==""&&u.target.value.trim().length===4?l(r,u.target.value):t&&t(!1))};return x.jsx(x.Fragment,{children:a&&x.jsxs(x.Fragment,{children:[x.jsx(Ur,{onChange:c,prefix:x.jsx(Tit,{}),placeholder:n.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),x.jsx("img",{src:a,alt:"captcha",onClick:s})]})})},hNt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=Rn(),[a,o]=d.useState(!1);return d.useEffect(()=>{if(a)return;const s=localStorage.getItem(yl);if(s)try{const{username:l,remember:c}=JSON.parse(s);l&&(r==null||r(l,!!c),o(!0))}catch(l){console.error("Failed to parse saved credentials:",l)}},[r,a]),x.jsx(x.Fragment,{children:e==="account"&&x.jsxs("div",{children:[x.jsx(Or,{name:"username",fieldProps:{size:"large",prefix:x.jsx(iz,{className:"prefixIcon"}),onChange:()=>{o(!0)},onClear:()=>{console.log("onClear");const s=localStorage.getItem(yl);if(s)try{const l=JSON.parse(s),{username:c,...u}=l;console.log("username",c),console.log("rest",u),localStorage.setItem(yl,JSON.stringify(u))}catch(l){console.error("Failed to parse saved credentials:",l)}}},placeholder:i.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:x.jsx(nu,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),x.jsx(Or.Password,{name:"password",fieldProps:{size:"large",prefix:x.jsx(Zg,{className:"prefixIcon"})},placeholder:i.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:x.jsx(nu,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),x.jsx(Kn.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:x.jsx(eb,{onKaptchaChange:t,onKaptchaCheck:n})})]})})};async function mNt(e){return bn("/auth/v1/login",{method:"POST",data:{...e,client:kn}})}async function FH(e){return bn("/auth/v1/send/mobile",{method:"POST",data:{...e,client:kn}})}async function nwe(e){return bn("/auth/v1/send/email",{method:"POST",data:{...e,client:kn}})}async function gNt(e){return bn("/auth/v1/login/mobile",{method:"POST",data:{...e,client:kn}})}async function vNt(e,t){return bn("/auth/v1/vip/scan/query",{method:"GET",params:{deviceUid:e,forceRefresh:t,client:kn}})}async function yNt(e){return bn("/auth/v1/vip/scan/login",{method:"POST",data:{...e,client:kn}})}async function bNt(e){return bn("/api/v1/user/logout",{method:"POST",data:{client:kn}})}const wNt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=Rn(),[a,o]=d.useState(""),[s,l]=d.useState(""),[c,u]=d.useState(!1),[f,p]=d.useState(!1);d.useEffect(()=>{if(f)return;const y=localStorage.getItem(yl);if(y)try{const{mobile:w}=JSON.parse(y);w&&(r==null||r(w),p(!0))}catch(w){console.error("Failed to parse saved credentials:",w)}},[r,f]);const h=async(y,w)=>{o(y),l(w),t&&t(y,w)},m=async y=>{u(y),n&&n(y)},g=[{label:i.formatMessage({id:"pages.login.country.china"}),value:"86",icon:"🇨🇳",code:"CN"},{label:i.formatMessage({id:"pages.login.country.hongkong"}),value:"852",icon:"🇭🇰",code:"HK"},{label:i.formatMessage({id:"pages.login.country.taiwan"}),value:"886",icon:"🇹🇼",code:"TW"},{label:i.formatMessage({id:"pages.login.country.macao"}),value:"853",icon:"🇲🇴",code:"MO"},{label:i.formatMessage({id:"pages.login.country.japan"}),value:"81",icon:"🇯🇵",code:"JP"},{label:i.formatMessage({id:"pages.login.country.korea"}),value:"82",icon:"🇰🇷",code:"KR"},{label:i.formatMessage({id:"pages.login.country.singapore"}),value:"65",icon:"🇸🇬",code:"SG"},{label:i.formatMessage({id:"pages.login.country.malaysia"}),value:"60",icon:"🇲🇾",code:"MY"},{label:i.formatMessage({id:"pages.login.country.thailand"}),value:"66",icon:"🇹🇭",code:"TH"},{label:i.formatMessage({id:"pages.login.country.vietnam"}),value:"84",icon:"🇻🇳",code:"VN"},{label:i.formatMessage({id:"pages.login.country.philippines"}),value:"63",icon:"🇵🇭",code:"PH"},{label:i.formatMessage({id:"pages.login.country.indonesia"}),value:"62",icon:"🇮🇩",code:"ID"},{label:i.formatMessage({id:"pages.login.country.usa"}),value:"1-us",icon:"🇺🇸",code:"US"},{label:i.formatMessage({id:"pages.login.country.canada"}),value:"1-ca",icon:"🇨🇦",code:"CA"},{label:i.formatMessage({id:"pages.login.country.uk"}),value:"44",icon:"🇬🇧",code:"GB"},{label:i.formatMessage({id:"pages.login.country.germany"}),value:"49",icon:"🇩🇪",code:"DE"},{label:i.formatMessage({id:"pages.login.country.france"}),value:"33",icon:"🇫🇷",code:"FR"},{label:i.formatMessage({id:"pages.login.country.italy"}),value:"39",icon:"🇮🇹",code:"IT"},{label:i.formatMessage({id:"pages.login.country.spain"}),value:"34",icon:"🇪🇸",code:"ES"},{label:i.formatMessage({id:"pages.login.country.russia"}),value:"7",icon:"🇷🇺",code:"RU"},{label:i.formatMessage({id:"pages.login.country.australia"}),value:"61",icon:"🇦🇺",code:"AU"},{label:i.formatMessage({id:"pages.login.country.newzealand"}),value:"64",icon:"🇳🇿",code:"NZ"}],v=y=>{const w=y.value.includes("-")?y.value.split("-")[0]:y.value;return x.jsxs("div",{children:[x.jsx("span",{role:"img","aria-label":y.label,style:{marginRight:8},children:y.icon}),y.label," (+",w,")"]})};return x.jsx(x.Fragment,{children:e==="mobile"&&x.jsxs(x.Fragment,{children:[x.jsxs(z8,{gutter:16,children:[x.jsx(D0,{span:10,children:x.jsx(ro,{name:"country",options:g,fieldProps:{size:"large",placeholder:i.formatMessage({id:"pages.login.country.placeholder",defaultMessage:"选择国家/地区"}),optionLabelProp:"label",optionItemRender:v},initialValue:"86"})}),x.jsx(D0,{span:14,children:x.jsx(Or,{fieldProps:{size:"large",prefix:x.jsx(A4,{className:"prefixIcon"}),onChange:()=>{p(!0)},onClear:()=>{console.log("onClear");const y=localStorage.getItem(yl);if(y)try{const w=JSON.parse(y),{mobile:b,...C}=w;console.log("saved:",b,w),localStorage.setItem(yl,JSON.stringify(C))}catch(w){console.error("Failed to parse saved credentials:",w)}}},name:"mobile",placeholder:i.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:x.jsx(nu,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:x.jsx(nu,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]})})]}),x.jsx(Kn.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:x.jsx(eb,{onKaptchaChange:h,onKaptchaCheck:m})}),x.jsx(W4,{fieldProps:{size:"large",prefix:x.jsx(Zg,{className:"prefixIcon"})},captchaProps:{size:"large",disabled:!c},placeholder:i.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(y,w)=>y?`${w} ${i.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:i.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:x.jsx(nu,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async y=>{if(console.log("mobile:",y),y&&y.length===11){const b=await FH({mobile:y,type:A6e,captchaUid:a,captchaCode:s,platform:gc});if(console.log("sendMobileCode:",b.data),b.data.code!==200){je.error(i.formatMessage({id:b.data.message,defaultMessage:b.data.message}));return}je.success(i.formatMessage({id:b.data.message,defaultMessage:b.data.message}))}else je.error("手机号格式错误")}}),x.jsx(JE,{message:x.jsx(nu,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},xNt=({loginType:e})=>{const t=Rn(),n=Mo(),r=ia(h=>h.setUserInfo),i=t4(h=>h.setAccessToken),{deviceUid:a,setDeviceUid:o}=ia(h=>({deviceUid:h.deviceUid,setDeviceUid:h.setDeviceUid})),[s,l]=d.useState("login"),[c,u]=d.useState("loading"),f=async h=>{console.log("handleScanLogin values: ",h),je.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const m=await yNt({...h});console.log("LoginMobileResult scanLogin:",m.data),m.data.code===200?(je.destroy(),je.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),r(m.data.data.user),i(m.data.data.accessToken),n("/chat"),aN()):(je.destroy(),je.error(m.data.message))},p=async h=>{if(e!="scan")return;const m=await vNt(a,h);if(m.data.code===200){const g=m.data.data;if(console.log("handleScanQuery status: ",g.status),g.status===z6e)u("active"),l("deviceUid="+g.deviceUid+"&code="+g.content);else if(g.status===H6e)u("scanned");else if(g.status===W6e)u("expired");else if(g.status===U6e){if(g.receiver===void 0||g.receiver==="")return;let v={mobile:g.receiver,code:g.content,platform:gc};console.log("login scan info:",v),await f(v)}}else je.error(m.data.message)};return d.useEffect(()=>{console.log("scan deviceUid:",a),(a===void 0||a==="")&&o(Ba()),p(!0);const h=setInterval(()=>{p(!1)},3e3);return()=>{clearInterval(h)}},[e,a]),x.jsx(x.Fragment,{children:e==="scan"&&x.jsx(x.Fragment,{children:x.jsx(az,{style:{margin:"auto"},value:s,status:c,onRefresh:()=>{console.log("onRefresh"),p(!0)}})})})},rwe=()=>{const{token:e}=Ho.useToken(),{isCustomServer:t,setIsCustomServer:n}=d.useContext(Ea),[r]=Kn.useForm(),[i,a]=d.useState(!1),[o,s]=d.useState(""),[l,c]=d.useState(""),u=Rn(),f=()=>{console.log("switch server"),n(m=>!m)};d.useEffect(()=>{o&&o.length>0&&(r.setFieldsValue({apiUrl:o}),console.log("apiUrl:",o))},[o]),d.useEffect(()=>{if(t){const m=localStorage.getItem(dv);m==="true"&&(a(!0),r.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",m);const g=localStorage.getItem(h2);g&&r.setFieldsValue({apiUrl:E1(g)});const v=localStorage.getItem(m2);v&&r.setFieldsValue({websocketUrl:E1(v)})}},[t]);const p=m=>{if(console.log("handleCustomServerChange e:",m),a(m.target.checked),m.target.checked){const g=localStorage.getItem(h2);g&&r.setFieldsValue({apiUrl:E1(g)});const v=localStorage.getItem(m2);v&&r.setFieldsValue({websocketUrl:E1(v)}),console.log("initData apiUrl:",g,"websocketUrl:",v)}else localStorage.setItem(dv,"false")},h=(m,g)=>(console.log("props:",m,g),x.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[x.jsx(Yt,{icon:x.jsx(trt,{}),onClick:f,children:u.formatMessage({id:"server.button.back"})},"back"),x.jsx(Yt,{type:"primary",onClick:()=>{let v=m.form.getFieldValue("apiUrl");v=E1(v.trim());let y=m.form.getFieldValue("websocketUrl");y=E1(y.trim()),v&&v.trim().length>0&&y&&y.trim().length>0?(localStorage.setItem(h2,v),localStorage.setItem(m2,y),localStorage.setItem(dv,"true"),je.success(u.formatMessage({id:"server.save.success"}))):je.error("请输入正确的服务器地址")},children:u.formatMessage({id:"server.button.save"})},"submit"),x.jsx(Yt,{onClick:()=>{var v;(v=m.form)==null||v.resetFields(),s(""),localStorage.setItem(dv,"false"),localStorage.setItem(h2,""),localStorage.setItem(m2,""),je.success(u.formatMessage({id:"server.reset.success"}))},children:u.formatMessage({id:"server.button.reset"})},"reset"),x.jsx(Yt,{onClick:()=>{F0("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:u.formatMessage({id:"server.button.help"})},"help")]}));return x.jsx("div",{className:"ant-pro-form-server-container",style:{backgroundColor:e.colorBgContainer,display:"flex",justifyContent:"center",flexDirection:"column",height:"100%",width:"80%",marginLeft:"10%"},children:x.jsxs(Kn,{className:"ant-pro-form-server-main",form:r,submitter:{render:h},children:[x.jsx(dH,{name:"isCustomServerEnabled",fieldProps:{onChange:p},children:u.formatMessage({id:"server.custom.enable"})}),i&&x.jsxs(x.Fragment,{children:[x.jsx(Or,{name:"apiUrl",label:u.formatMessage({id:"server.api.url.label"}),fieldProps:{disabled:!i,placeholder:u.formatMessage({id:"server.api.url.placeholder"}),onChange:m=>s(m.target.value)}}),x.jsx(Or,{name:"websocketUrl",label:u.formatMessage({id:"server.websocket.url.label"}),fieldProps:{disabled:!i,placeholder:u.formatMessage({id:"server.websocket.url.placeholder"}),onChange:m=>c(m.target.value)}})]})]})})},SNt=({isModel:e=!1})=>{const t=Rn(),[n]=Kn.useForm(),r=Mo(),{token:i}=Ho.useToken(),[a,o]=d.useState("/agent/icons/logo.png"),[s,l]=d.useState(""),[c,u]=d.useState(""),[f,p]=d.useState("account"),h=ia(N=>N.setUserInfo),m=t4(N=>N.setAccessToken),{isCustomServer:g,setIsCustomServer:v}=d.useContext(Ea),[y,w]=d.useState(!1),b=N=>{console.log(`onPrivacyProtocolChange checked = ${N.target.checked}`),w(N.target.checked);const F=localStorage.getItem(yl);if(F)try{const{remember:K}=JSON.parse(F);K&&setTimeout(()=>{n.setFieldsValue({remember:K})},0)}catch(K){console.error("Failed to parse saved credentials:",K)}},C=()=>{F0("https://www.weiyuai.cn/protocol.html")},[k,S]=d.useState(""),_=async(N,F)=>{S(N),n.setFieldValue("captchaCode",F)},E=async N=>{console.log("handleKaptchaCheck:",N)},$=async N=>{if(!y){je.error("请阅读并同意隐私协议");return}je.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const F=localStorage.getItem(yl);let K=!1;if(F)try{K=JSON.parse(F).remember}catch(V){console.error("Failed to parse saved credentials:",V)}localStorage.setItem(yl,JSON.stringify({username:N.username,remember:K}));const L=await mNt({...N});console.log("LoginResult:",L.data),L.data.code===200?(je.destroy(),je.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),K&&localStorage.setItem(yl,JSON.stringify({username:N.username,password:N.password,remember:!0})),h(L.data.data.user),m(L.data.data.accessToken),e||r("/chat"),aN()):(je.destroy(),je.error(t.formatMessage({id:L.data.message,defaultMessage:L.data.message})))},M=N=>{n.setFieldsValue({mobile:N})},P=async N=>{if(!y){je.error(t.formatMessage({id:"login.privacy.required",defaultMessage:"请阅读并同意隐私协议"}));return}const F=localStorage.getItem(yl);let K={};if(F)try{K=JSON.parse(F)}catch(V){console.error("Failed to parse saved credentials:",V)}localStorage.setItem(yl,JSON.stringify({...K,mobile:N.mobile}));const L=await gNt({...N});console.log("LoginMobileResult:",L),L.data.code===200?(je.destroy(),je.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),h(L.data.data.user),m(L.data.data.accessToken),e||r("/chat"),aN()):(je.destroy(),je.error(t.formatMessage({id:L.data.message,defaultMessage:L.data.message})))},R=()=>{console.log("switch server"),v(N=>!N)},O=()=>{console.log("handleAnonymousLogin"),r("/anonymous")},j=()=>{if(Nl)return{}},I=(N,F)=>{n.setFieldsValue({username:N,remember:F});const K=localStorage.getItem(yl);if(K&&F)try{const{password:L}=JSON.parse(K);L&&n.setFieldsValue({password:L})}catch(L){console.error("Failed to parse saved credentials:",L)}},A=async()=>{var F,K,L,V,B,U,Y;console.log("getConfig");const N=await _le();(F=N==null?void 0:N.custom)!=null&&F.enabled?((K=N==null?void 0:N.custom)!=null&&K.logo?o((L=N==null?void 0:N.custom)==null?void 0:L.logo):o("/agent/icons/logo.png"),(V=N==null?void 0:N.custom)!=null&&V.name?l((B=N==null?void 0:N.custom)==null?void 0:B.name):l(t.formatMessage({id:"app.title"})),(U=N==null?void 0:N.custom)!=null&&U.description?u((Y=N==null?void 0:N.custom)==null?void 0:Y.description):u(t.formatMessage({id:"slogan"}))):(o("/agent/icons/logo.png"),l(t.formatMessage({id:"app.title"})),u(t.formatMessage({id:"slogan"}))),Cle()};return d.useEffect(()=>{gde(),A()},[]),x.jsx(c$,{hashed:!1,children:x.jsxs("div",{style:{backgroundColor:i.colorBgContainer,textAlign:"center",height:"100%"},children:[!g&&x.jsxs(Dbe,{form:n,contentStyle:{minWidth:400},logo:x.jsx("img",{alt:"logo",src:a}),title:s,subTitle:c,initialValues:j(),onFinish:async N=>{if(f==="account"){const F={username:N.username,password:N.password,captchaUid:k,captchaCode:N.captchaCode,platform:gc};await $(F)}else if(f==="mobile"){const F={mobile:N.mobile,code:N.code,captchaUid:k,captchaCode:N.captchaCode,platform:gc};await P(F)}else console.log("scan login type")},actions:Nl&&x.jsxs(Xr,{children:[x.jsx(nu,{id:"pages.login.loginWith",defaultMessage:"其他登录方式"}),x.jsx(Yt,{type:"link",onClick:O,children:t.formatMessage({id:"pages.login.anonymousLogin",defaultMessage:"匿名登录"})})]}),children:[x.jsx(Sh,{centered:!0,items:[{key:"account",label:t.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:x.jsx(hNt,{loginType:f,onKaptchaChange:_,onKaptchaCheck:E,onRememberChange:I})},{key:"mobile",label:t.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:x.jsx(wNt,{loginType:f,onKaptchaChange:_,onKaptchaCheck:E,onRememberChange:M})},{key:"scan",label:t.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:x.jsx(xNt,{loginType:f})}],activeKey:f,onChange:N=>p(N)}),x.jsxs("div",{style:{marginBlockEnd:24,textAlign:"left",marginTop:10},children:[x.jsx(ps,{checked:y,onChange:b,children:x.jsx(Yt,{size:"small",type:"link",onClick:C,children:t.formatMessage({id:"login.privacy.agreement",defaultMessage:"同意《用户隐私&协议》"})})}),x.jsx(Yt,{type:"link",style:{float:"right",marginBottom:24},onClick:R,children:t.formatMessage({id:"login.switch.server",defaultMessage:"切换服务器"})})]})]}),g&&x.jsx(rwe,{})]})})},dA=({isModel:e=!1})=>x.jsx(v8,{children:x.jsx(SNt,{isModel:e})}),CNt=()=>{Mo();const{token:e}=Ho.useToken();return d.useState("phone"),ul(e.colorTextBase,.2),x.jsx(c$,{hashed:!1,children:x.jsx("div",{style:{backgroundColor:e.colorBgContainer,textAlign:"center",height:"100vh"},children:x.jsxs(Dbe,{logo:"./logo.png",title:"微语",subTitle:"注册账号",children:[x.jsxs(x.Fragment,{children:[x.jsx(Or,{name:"username",fieldProps:{size:"large",prefix:x.jsx(iz,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),x.jsx(Or.Password,{name:"password",fieldProps:{size:"large",prefix:x.jsx(Zg,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),x.jsxs("div",{style:{marginBlockEnd:24},children:[x.jsx(dH,{noStyle:!0,name:"autoLogin",children:"自动登录"}),x.jsx(sft,{to:"/agent/auth/login",style:{float:"right"},children:"登录"})]})]})})})};(function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(b){try{return b.defaultView&&b.defaultView.frameElement||null}catch{return null}}var t=function(b){for(var C=b,k=e(C);k;)C=k.ownerDocument,k=e(C);return C}(window.document),n=[],r=null,i=null;function a(b){this.time=b.time,this.target=b.target,this.rootBounds=m(b.rootBounds),this.boundingClientRect=m(b.boundingClientRect),this.intersectionRect=m(b.intersectionRect||h()),this.isIntersecting=!!b.intersectionRect;var C=this.boundingClientRect,k=C.width*C.height,S=this.intersectionRect,_=S.width*S.height;k?this.intersectionRatio=Number((_/k).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function o(b,C){var k=C||{};if(typeof b!="function")throw new Error("callback must be a function");if(k.root&&k.root.nodeType!=1&&k.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=b,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(k.rootMargin),this.thresholds=this._initThresholds(k.threshold),this.root=k.root||null,this.rootMargin=this._rootMarginValues.map(function(S){return S.value+S.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return r||(r=function(b,C){!b||!C?i=h():i=g(b,C),n.forEach(function(k){k._checkForIntersections()})}),r},o._resetCrossOriginUpdater=function(){r=null,i=null},o.prototype.observe=function(b){var C=this._observationTargets.some(function(k){return k.element==b});if(!C){if(!(b&&b.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:b,entry:null}),this._monitorIntersections(b.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(b){this._observationTargets=this._observationTargets.filter(function(C){return C.element!=b}),this._unmonitorIntersections(b.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var b=this._queuedEntries.slice();return this._queuedEntries=[],b},o.prototype._initThresholds=function(b){var C=b||[0];return Array.isArray(C)||(C=[C]),C.sort().filter(function(k,S,_){if(typeof k!="number"||isNaN(k)||k<0||k>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return k!==_[S-1]})},o.prototype._parseRootMargin=function(b){var C=b||"0px",k=C.split(/\s+/).map(function(S){var _=/^(-?\d*\.?\d+)(px|%)$/.exec(S);if(!_)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(_[1]),unit:_[2]}});return k[1]=k[1]||k[0],k[2]=k[2]||k[0],k[3]=k[3]||k[1],k},o.prototype._monitorIntersections=function(b){var C=b.defaultView;if(C&&this._monitoringDocuments.indexOf(b)==-1){var k=this._checkForIntersections,S=null,_=null;this.POLL_INTERVAL?S=C.setInterval(k,this.POLL_INTERVAL):(c(C,"resize",k,!0),c(b,"scroll",k,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in C&&(_=new C.MutationObserver(k),_.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(b),this._monitoringUnsubscribes.push(function(){var M=b.defaultView;M&&(S&&M.clearInterval(S),u(M,"resize",k,!0)),u(b,"scroll",k,!0),_&&_.disconnect()});var E=this.root&&(this.root.ownerDocument||this.root)||t;if(b!=E){var $=e(b);$&&this._monitorIntersections($.ownerDocument)}}},o.prototype._unmonitorIntersections=function(b){var C=this._monitoringDocuments.indexOf(b);if(C!=-1){var k=this.root&&(this.root.ownerDocument||this.root)||t,S=this._observationTargets.some(function($){var M=$.element.ownerDocument;if(M==b)return!0;for(;M&&M!=k;){var P=e(M);if(M=P&&P.ownerDocument,M==b)return!0}return!1});if(!S){var _=this._monitoringUnsubscribes[C];if(this._monitoringDocuments.splice(C,1),this._monitoringUnsubscribes.splice(C,1),_(),b!=k){var E=e(b);E&&this._unmonitorIntersections(E.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var b=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var C=0;C=0&&M>=0&&{top:k,bottom:S,left:_,right:E,width:$,height:M}||null}function p(b){var C;try{C=b.getBoundingClientRect()}catch{}return C?(C.width&&C.height||(C={top:C.top,right:C.right,bottom:C.bottom,left:C.left,width:C.right-C.left,height:C.bottom-C.top}),C):h()}function h(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function m(b){return!b||"x"in b?b:{top:b.top,y:b.top,bottom:b.bottom,left:b.left,x:b.left,right:b.right,width:b.width,height:b.height}}function g(b,C){var k=C.top-b.top,S=C.left-b.left;return{top:k,left:S,height:C.height,width:C.width,bottom:k+C.height,right:S+C.width}}function v(b,C){for(var k=C;k;){if(k==b)return!0;k=y(k)}return!1}function y(b){var C=b.parentNode;return b.nodeType==9&&b!=t?e(b):(C&&C.assignedSlot&&(C=C.assignedSlot.parentNode),C&&C.nodeType==11&&C.host?C.host:C)}function w(b){return b&&b.nodeType===9}window.IntersectionObserver=o,window.IntersectionObserverEntry=a})();function iwe(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:b_;Cte&&Cte(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(_Nt(t)||(t[r]=a),i=a)}e[i]=!0}return e}function PNt(e){for(let t=0;t/gm),NNt=Cc(/\${[\w\W]*}/gm),ANt=Cc(/^data-[\-\w.\u00B7-\uFFFF]/),DNt=Cc(/^aria-[\-\w]+$/),swe=Cc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),FNt=Cc(/^(?:\w+script|data):/i),LNt=Cc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),lwe=Cc(/^html$/i),BNt=Cc(/^[a-z][.\w]*(-[.\w]+)+$/i);var Pte=Object.freeze({__proto__:null,ARIA_ATTR:DNt,ATTR_WHITESPACE:LNt,CUSTOM_ELEMENT:BNt,DATA_ATTR:ANt,DOCTYPE_NAME:lwe,ERB_EXPR:jNt,IS_ALLOWED_URI:swe,IS_SCRIPT_OR_DATA:FNt,MUSTACHE_EXPR:INt,TMPLIT_EXPR:NNt});const e2={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},zNt=function(){return typeof window>"u"?null:window},HNt=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function cwe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zNt();const t=dt=>cwe(dt);if(t.version="3.2.1",t.removed=[],!e||!e.document||e.document.nodeType!==e2.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:h}=e,m=l.prototype,g=Jb(m,"cloneNode"),v=Jb(m,"remove"),y=Jb(m,"nextSibling"),w=Jb(m,"childNodes"),b=Jb(m,"parentNode");if(typeof o=="function"){const dt=n.createElement("template");dt.content&&dt.content.ownerDocument&&(n=dt.content.ownerDocument)}let C,k="";const{implementation:S,createNodeIterator:_,createDocumentFragment:E,getElementsByTagName:$}=n,{importNode:M}=r;let P={};t.isSupported=typeof awe=="function"&&typeof b=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:R,ERB_EXPR:O,TMPLIT_EXPR:j,DATA_ATTR:I,ARIA_ATTR:A,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:K}=Pte;let{IS_ALLOWED_URI:L}=Pte,V=null;const B=Rr({},[...Ete,...JT,...eP,...tP,...$te]);let U=null;const Y=Rr({},[...Mte,...nP,...Tte,...XS]);let ee=Object.seal(owe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,Z=null,X=!0,ae=!0,oe=!1,le=!0,ce=!1,pe=!0,me=!1,re=!1,fe=!1,ve=!1,$e=!1,Ce=!1,be=!0,Se=!1;const we="user-content-";let se=!0,ye=!1,Oe={},z=null;const H=Rr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let G=null;const de=Rr({},["audio","video","img","source","image","track"]);let xe=null;const he=Rr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ue="http://www.w3.org/1998/Math/MathML",We="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ze=ge,Ve=!1,Be=null;const Xe=Rr({},[Ue,We,ge],QT);let Ke=Rr({},["mi","mo","mn","ms","mtext"]),qe=Rr({},["annotation-xml"]);const Et=Rr({},["title","style","font","a","script"]);let ut=null;const gt=["application/xhtml+xml","text/html"],Ze="text/html";let nt=null,jt=null;const Lt=n.createElement("form"),Bt=function(De){return De instanceof RegExp||De instanceof Function},Ut=function(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jt&&jt===De)){if((!De||typeof De!="object")&&(De={}),De=am(De),ut=gt.indexOf(De.PARSER_MEDIA_TYPE)===-1?Ze:De.PARSER_MEDIA_TYPE,nt=ut==="application/xhtml+xml"?QT:b_,V=Uc(De,"ALLOWED_TAGS")?Rr({},De.ALLOWED_TAGS,nt):B,U=Uc(De,"ALLOWED_ATTR")?Rr({},De.ALLOWED_ATTR,nt):Y,Be=Uc(De,"ALLOWED_NAMESPACES")?Rr({},De.ALLOWED_NAMESPACES,QT):Xe,xe=Uc(De,"ADD_URI_SAFE_ATTR")?Rr(am(he),De.ADD_URI_SAFE_ATTR,nt):he,G=Uc(De,"ADD_DATA_URI_TAGS")?Rr(am(de),De.ADD_DATA_URI_TAGS,nt):de,z=Uc(De,"FORBID_CONTENTS")?Rr({},De.FORBID_CONTENTS,nt):H,ie=Uc(De,"FORBID_TAGS")?Rr({},De.FORBID_TAGS,nt):{},Z=Uc(De,"FORBID_ATTR")?Rr({},De.FORBID_ATTR,nt):{},Oe=Uc(De,"USE_PROFILES")?De.USE_PROFILES:!1,X=De.ALLOW_ARIA_ATTR!==!1,ae=De.ALLOW_DATA_ATTR!==!1,oe=De.ALLOW_UNKNOWN_PROTOCOLS||!1,le=De.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ce=De.SAFE_FOR_TEMPLATES||!1,pe=De.SAFE_FOR_XML!==!1,me=De.WHOLE_DOCUMENT||!1,ve=De.RETURN_DOM||!1,$e=De.RETURN_DOM_FRAGMENT||!1,Ce=De.RETURN_TRUSTED_TYPE||!1,fe=De.FORCE_BODY||!1,be=De.SANITIZE_DOM!==!1,Se=De.SANITIZE_NAMED_PROPS||!1,se=De.KEEP_CONTENT!==!1,ye=De.IN_PLACE||!1,L=De.ALLOWED_URI_REGEXP||swe,ze=De.NAMESPACE||ge,Ke=De.MATHML_TEXT_INTEGRATION_POINTS||Ke,qe=De.HTML_INTEGRATION_POINTS||qe,ee=De.CUSTOM_ELEMENT_HANDLING||{},De.CUSTOM_ELEMENT_HANDLING&&Bt(De.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=De.CUSTOM_ELEMENT_HANDLING.tagNameCheck),De.CUSTOM_ELEMENT_HANDLING&&Bt(De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),De.CUSTOM_ELEMENT_HANDLING&&typeof De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ce&&(ae=!1),$e&&(ve=!0),Oe&&(V=Rr({},$te),U=[],Oe.html===!0&&(Rr(V,Ete),Rr(U,Mte)),Oe.svg===!0&&(Rr(V,JT),Rr(U,nP),Rr(U,XS)),Oe.svgFilters===!0&&(Rr(V,eP),Rr(U,nP),Rr(U,XS)),Oe.mathMl===!0&&(Rr(V,tP),Rr(U,Tte),Rr(U,XS))),De.ADD_TAGS&&(V===B&&(V=am(V)),Rr(V,De.ADD_TAGS,nt)),De.ADD_ATTR&&(U===Y&&(U=am(U)),Rr(U,De.ADD_ATTR,nt)),De.ADD_URI_SAFE_ATTR&&Rr(xe,De.ADD_URI_SAFE_ATTR,nt),De.FORBID_CONTENTS&&(z===H&&(z=am(z)),Rr(z,De.FORBID_CONTENTS,nt)),se&&(V["#text"]=!0),me&&Rr(V,["html","head","body"]),V.table&&(Rr(V,["tbody"]),delete ie.tbody),De.TRUSTED_TYPES_POLICY){if(typeof De.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qb('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof De.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qb('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=De.TRUSTED_TYPES_POLICY,k=C.createHTML("")}else C===void 0&&(C=HNt(h,i)),C!==null&&typeof k=="string"&&(k=C.createHTML(""));xs&&xs(De),jt=De}},Ne=Rr({},[...JT,...eP,...ONt]),He=Rr({},[...tP,...RNt]),Le=function(De){let Ye=b(De);(!Ye||!Ye.tagName)&&(Ye={namespaceURI:ze,tagName:"template"});const ot=b_(De.tagName),Re=b_(Ye.tagName);return Be[De.namespaceURI]?De.namespaceURI===We?Ye.namespaceURI===ge?ot==="svg":Ye.namespaceURI===Ue?ot==="svg"&&(Re==="annotation-xml"||Ke[Re]):!!Ne[ot]:De.namespaceURI===Ue?Ye.namespaceURI===ge?ot==="math":Ye.namespaceURI===We?ot==="math"&&qe[Re]:!!He[ot]:De.namespaceURI===ge?Ye.namespaceURI===We&&!qe[Re]||Ye.namespaceURI===Ue&&!Ke[Re]?!1:!He[ot]&&(Et[ot]||!Ne[ot]):!!(ut==="application/xhtml+xml"&&Be[De.namespaceURI]):!1},Qe=function(De){Xb(t.removed,{element:De});try{b(De).removeChild(De)}catch{v(De)}},pt=function(De,Ye){try{Xb(t.removed,{attribute:Ye.getAttributeNode(De),from:Ye})}catch{Xb(t.removed,{attribute:null,from:Ye})}if(Ye.removeAttribute(De),De==="is"&&!U[De])if(ve||$e)try{Qe(Ye)}catch{}else try{Ye.setAttribute(De,"")}catch{}},xt=function(De){let Ye=null,ot=null;if(fe)De=""+De;else{const rt=kte(De,/^[\r\n\t ]+/);ot=rt&&rt[0]}ut==="application/xhtml+xml"&&ze===ge&&(De=''+De+"");const Re=C?C.createHTML(De):De;if(ze===ge)try{Ye=new p().parseFromString(Re,ut)}catch{}if(!Ye||!Ye.documentElement){Ye=S.createDocument(ze,"template",null);try{Ye.documentElement.innerHTML=Ve?k:Re}catch{}}const It=Ye.body||Ye.documentElement;return De&&ot&&It.insertBefore(n.createTextNode(ot),It.childNodes[0]||null),ze===ge?$.call(Ye,me?"html":"body")[0]:me?Ye.documentElement:It},Nt=function(De){return _.call(De.ownerDocument||De,De,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ot=function(De){return De instanceof f&&(typeof De.nodeName!="string"||typeof De.textContent!="string"||typeof De.removeChild!="function"||!(De.attributes instanceof u)||typeof De.removeAttribute!="function"||typeof De.setAttribute!="function"||typeof De.namespaceURI!="string"||typeof De.insertBefore!="function"||typeof De.hasChildNodes!="function")},Pt=function(De){return typeof s=="function"&&De instanceof s};function st(dt,De,Ye){P[dt]&&YS(P[dt],ot=>{ot.call(t,De,Ye,jt)})}const Ct=function(De){let Ye=null;if(st("beforeSanitizeElements",De,null),Ot(De))return Qe(De),!0;const ot=nt(De.nodeName);if(st("uponSanitizeElement",De,{tagName:ot,allowedTags:V}),De.hasChildNodes()&&!Pt(De.firstElementChild)&&os(/<[/\w]/g,De.innerHTML)&&os(/<[/\w]/g,De.textContent)||De.nodeType===e2.progressingInstruction||pe&&De.nodeType===e2.comment&&os(/<[/\w]/g,De.data))return Qe(De),!0;if(!V[ot]||ie[ot]){if(!ie[ot]&&qt(ot)&&(ee.tagNameCheck instanceof RegExp&&os(ee.tagNameCheck,ot)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(ot)))return!1;if(se&&!z[ot]){const Re=b(De)||De.parentNode,It=w(De)||De.childNodes;if(It&&Re){const rt=It.length;for(let $t=rt-1;$t>=0;--$t){const Mt=g(It[$t],!0);Mt.__removalCount=(De.__removalCount||0)+1,Re.insertBefore(Mt,y(De))}}}return Qe(De),!0}return De instanceof l&&!Le(De)||(ot==="noscript"||ot==="noembed"||ot==="noframes")&&os(/<\/no(script|embed|frames)/i,De.innerHTML)?(Qe(De),!0):(ce&&De.nodeType===e2.text&&(Ye=De.textContent,YS([R,O,j],Re=>{Ye=Zb(Ye,Re," ")}),De.textContent!==Ye&&(Xb(t.removed,{element:De.cloneNode()}),De.textContent=Ye)),st("afterSanitizeElements",De,null),!1)},kt=function(De,Ye,ot){if(be&&(Ye==="id"||Ye==="name")&&(ot in n||ot in Lt))return!1;if(!(ae&&!Z[Ye]&&os(I,Ye))){if(!(X&&os(A,Ye))){if(!U[Ye]||Z[Ye]){if(!(qt(De)&&(ee.tagNameCheck instanceof RegExp&&os(ee.tagNameCheck,De)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(De))&&(ee.attributeNameCheck instanceof RegExp&&os(ee.attributeNameCheck,Ye)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(Ye))||Ye==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&os(ee.tagNameCheck,ot)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(ot))))return!1}else if(!xe[Ye]){if(!os(L,Zb(ot,F,""))){if(!((Ye==="src"||Ye==="xlink:href"||Ye==="href")&&De!=="script"&&$Nt(ot,"data:")===0&&G[De])){if(!(oe&&!os(N,Zb(ot,F,"")))){if(ot)return!1}}}}}}return!0},qt=function(De){return De!=="annotation-xml"&&kte(De,K)},vt=function(De){st("beforeSanitizeAttributes",De,null);const{attributes:Ye}=De;if(!Ye)return;const ot={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let Re=Ye.length;for(;Re--;){const It=Ye[Re],{name:rt,namespaceURI:$t,value:Mt}=It,dn=nt(rt);let pn=rt==="value"?Mt:MNt(Mt);if(ot.attrName=dn,ot.attrValue=pn,ot.keepAttr=!0,ot.forceKeepAttr=void 0,st("uponSanitizeAttribute",De,ot),pn=ot.attrValue,Se&&(dn==="id"||dn==="name")&&(pt(rt,De),pn=we+pn),pe&&os(/((--!?|])>)|<\/(style|title)/i,pn)){pt(rt,De);continue}if(ot.forceKeepAttr||(pt(rt,De),!ot.keepAttr))continue;if(!le&&os(/\/>/i,pn)){pt(rt,De);continue}ce&&YS([R,O,j],D=>{pn=Zb(pn,D," ")});const T=nt(De.nodeName);if(kt(T,dn,pn)){if(C&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!$t)switch(h.getAttributeType(T,dn)){case"TrustedHTML":{pn=C.createHTML(pn);break}case"TrustedScriptURL":{pn=C.createScriptURL(pn);break}}try{$t?De.setAttributeNS($t,rt,pn):De.setAttribute(rt,pn),Ot(De)?Qe(De):_te(t.removed)}catch{}}}st("afterSanitizeAttributes",De,null)},At=function dt(De){let Ye=null;const ot=Nt(De);for(st("beforeSanitizeShadowDOM",De,null);Ye=ot.nextNode();)st("uponSanitizeShadowNode",Ye,null),!Ct(Ye)&&(Ye.content instanceof a&&dt(Ye.content),vt(Ye));st("afterSanitizeShadowDOM",De,null)};return t.sanitize=function(dt){let De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=null,ot=null,Re=null,It=null;if(Ve=!dt,Ve&&(dt=""),typeof dt!="string"&&!Pt(dt))if(typeof dt.toString=="function"){if(dt=dt.toString(),typeof dt!="string")throw Qb("dirty is not a string, aborting")}else throw Qb("toString is not a function");if(!t.isSupported)return dt;if(re||Ut(De),t.removed=[],typeof dt=="string"&&(ye=!1),ye){if(dt.nodeName){const Mt=nt(dt.nodeName);if(!V[Mt]||ie[Mt])throw Qb("root node is forbidden and cannot be sanitized in-place")}}else if(dt instanceof s)Ye=xt(""),ot=Ye.ownerDocument.importNode(dt,!0),ot.nodeType===e2.element&&ot.nodeName==="BODY"||ot.nodeName==="HTML"?Ye=ot:Ye.appendChild(ot);else{if(!ve&&!ce&&!me&&dt.indexOf("<")===-1)return C&&Ce?C.createHTML(dt):dt;if(Ye=xt(dt),!Ye)return ve?null:Ce?k:""}Ye&&fe&&Qe(Ye.firstChild);const rt=Nt(ye?dt:Ye);for(;Re=rt.nextNode();)Ct(Re)||(Re.content instanceof a&&At(Re.content),vt(Re));if(ye)return dt;if(ve){if($e)for(It=E.call(Ye.ownerDocument);Ye.firstChild;)It.appendChild(Ye.firstChild);else It=Ye;return(U.shadowroot||U.shadowrootmode)&&(It=M.call(r,It,!0)),It}let $t=me?Ye.outerHTML:Ye.innerHTML;return me&&V["!doctype"]&&Ye.ownerDocument&&Ye.ownerDocument.doctype&&Ye.ownerDocument.doctype.name&&os(lwe,Ye.ownerDocument.doctype.name)&&($t=" +`+$t),ce&&YS([R,O,j],Mt=>{$t=Zb($t,Mt," ")}),C&&Ce?C.createHTML($t):$t},t.setConfig=function(){let dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ut(dt),re=!0},t.clearConfig=function(){jt=null,re=!1},t.isValidAttribute=function(dt,De,Ye){jt||Ut({});const ot=nt(dt),Re=nt(De);return kt(ot,Re,Ye)},t.addHook=function(dt,De){typeof De=="function"&&(P[dt]=P[dt]||[],Xb(P[dt],De))},t.removeHook=function(dt){if(P[dt])return _te(P[dt])},t.removeHooks=function(dt){P[dt]&&(P[dt]=[])},t.removeAllHooks=function(){P={}},t}var UNt=cwe();function WNt(e,t="click"){const n=d.useRef();return d.useEffect(()=>{const r=i=>{const a=n.current;!a||a.contains(i.target)||e&&e(i)};return document.addEventListener(t,r),()=>{document.removeEventListener(t,r)}},[t,e]),n}function LH(e){const t=d.useRef(null);return d.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)},[e]),t}function VNt(e){const t=d.useRef(e);return t.current=e,t}function qNt(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)}function KNt(e){return e.offsetHeight}const GNt=5*60*1e3;let Ote=0;const rP=(e,t)=>{const n=e.createdAt||Date.now(),r=e.hasTime||n-Ote>GNt;return r&&(Ote=n),{...e,_id:e._id||t||qNt(),createdAt:n,position:e.position||"left",hasTime:r}};function uwe(e=[]){const t=d.useMemo(()=>e.map(c=>rP(c)),[e]),[n,r]=d.useState(t),i=d.useCallback(c=>{r(u=>[...c,...u])},[]),a=d.useCallback((c,u)=>{r(f=>f.map(p=>p._id===c?rP(u,c):p))},[]),o=d.useCallback(c=>{const u=rP(c);r(f=>[...f,u])},[]),s=d.useCallback(c=>{r(u=>u.filter(f=>f._id!==c))},[]),l=d.useCallback((c=[])=>{r(c)},[]);return{messages:n,prependMsgs:i,appendMsg:o,updateMsg:a,deleteMsg:s,resetList:l}}function dwe({active:e=!1,ref:t,delay:n=300}){const[r,i]=d.useState(!1),[a,o]=d.useState(!1),s=d.useRef(),l=()=>{s.current&&clearTimeout(s.current)};return d.useEffect(()=>(e?(l(),o(e)):(i(e),s.current=setTimeout(()=>{o(e)},n)),l),[e,n]),d.useEffect(()=>{t.current&&KNt(t.current),i(a)},[a,t]),{didMount:a,isShow:r}}class xnn extends te.Component{constructor(t){super(t),this.state={error:null,errorInfo:null}}componentDidCatch(t,n){const{onError:r}=this.props;r&&r(t,n),this.setState({error:t,errorInfo:n})}render(){const{FallbackComponent:t,children:n,...r}=this.props,{error:i,errorInfo:a}=this.state;return a?t?x.jsx(t,{error:i,errorInfo:a,...r}):null:n}}te.createContext({addComponent:()=>{},hasComponent:()=>!1,getComponent:()=>null});const YNt=e=>{const{className:t,src:n,alt:r,url:i,size:a="md",shape:o="circle",children:s}=e,l=i?"a":"span";return x.jsx(l,{className:Zn("Avatar",`Avatar--${a}`,`Avatar--${o}`,t),href:i,children:n?x.jsx("img",{src:n,alt:r}):s})},XNt=e=>{const{className:t,active:n,onClick:r,...i}=e;return x.jsx("div",{className:Zn("Backdrop",t,{active:n}),onClick:r,role:"button",tabIndex:-1,"aria-hidden":!0,...i})},fwe=({content:e})=>{const t=UNt.sanitize(e,{ALLOWED_TAGS:["p","div","span","h1","h2","h3","h4","h5","h6","ul","ol","li","a","strong","em","b","i","img","blockquote","code","pre"],ALLOWED_ATTR:["href","target","src","alt","style","class"]});return x.jsx("div",{className:"RichText",dangerouslySetInnerHTML:{__html:t}})},ZNt=/(\+?86-?)?1[3-9]\d{9}/g,QNt=/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,qu=te.forwardRef((e,t)=>{const{type:n="text",content:r,children:i,isRichText:a=!1,onPhoneClick:o,onEmailClick:s,onAiClick:l,onSearchClick:c,showFunctionButtons:u=!0,...f}=e,[p,h]=d.useState(!1),m=y=>{const w=y.replace(/^\+?86-?/,"");console.log(`拨打电话: ${w}`),o==null||o(w)},g=y=>{console.log(`发送邮件: ${y}`),s==null||s(y)},v=()=>{if(!r)return null;if(a)return x.jsx(fwe,{content:r});let y=0;const w=[],b=r,C=[];let k;for(;(k=ZNt.exec(b))!==null;)C.push({value:k[0],index:k.index,type:"phone"});let S;for(;(S=QNt.exec(b))!==null;)C.push({value:S[0],index:S.index,type:"email"});return C.sort((_,E)=>_.index-E.index),C.forEach((_,E)=>{_.index>y&&w.push(b.substring(y,_.index)),w.push(x.jsx("a",{href:"#",onClick:$=>{$.preventDefault(),_.type==="phone"?m(_.value):g(_.value)},style:{color:"#1890ff",textDecoration:"none",cursor:"pointer"},children:_.value},E)),y=_.index+_.value.length}),yh(!0),onMouseLeave:()=>h(!1),...f,children:[v(),i,u&&p&&n==="text"&&r&&x.jsxs("div",{className:"bubble-function-buttons",children:[c&&x.jsx("button",{className:"bubble-function-button search-button",onClick:y=>{y.stopPropagation(),c()},title:"搜索快捷短语",children:x.jsx("i",{className:"search-icon",children:"🔍"})}),l&&x.jsx("button",{className:"bubble-function-button ai-button",onClick:y=>{y.stopPropagation(),l()},title:"问AI",children:x.jsx("i",{className:"ai-icon",children:"🤖"})})]})]})}),yo=te.forwardRef((e,t)=>{const{type:n,className:r,spin:i,name:a,...o}=e,s=typeof a=="string"?{"aria-label":a}:{"aria-hidden":!0};return x.jsx("svg",{className:Zn("Icon",{"is-spin":i},r),ref:t,...s,...o,children:x.jsx("use",{xlinkHref:`#icon-${n}`})})});function iP(e){return e&&`Btn--${e}`}const qs=te.forwardRef((e,t)=>{const{className:n,label:r,color:i,variant:a,size:o,icon:s,loading:l,block:c,disabled:u,children:f,onClick:p,...h}=e,m=s||l&&"spinner",g=o||(c?"lg":"");function v(y){!u&&!l&&p&&p(y)}return x.jsxs("button",{className:Zn("Btn",iP(i),iP(a),iP(g),{"Btn--block":c},n),type:"button",disabled:u,onClick:v,ref:t,...h,children:[m&&x.jsx("span",{className:"Btn-icon",children:x.jsx(yo,{type:m,spin:l})}),r||f]})}),JNt={BackBottom:{newMsgOne:"{n} رسالة جديدة",newMsgOther:"{n} رسالة جديدة",bottom:"الأسفل"},Time:{weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),formats:{LT:"HH:mm",lll:"YYYY/M/D HH:mm",WT:"HH:mm dddd",YT:"HH:mm أمس"}},Composer:{send:"إرسال"},SendConfirm:{title:"إرسال صورة",send:"أرسل",cancel:"إلغاء"},RateActions:{up:"التصويت",down:"تصويت سلبي"},Recorder:{hold2talk:"أستمر بالضغط لتتحدث",release2send:"حرر للإرسال",releaseOrSwipe:"حرر للإرسال ، اسحب لأعلى للإلغاء",release2cancel:"حرر للإلغاء"},Search:{search:"يبحث"}},eAt={BackBottom:{newMsgOne:"{n} new message",newMsgOther:"{n} new messages",bottom:"Bottom"},Time:{weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),formats:{LT:"HH:mm",lll:"M/D/YYYY HH:mm",WT:"dddd HH:mm",YT:"Yesterday HH:mm"}},Composer:{send:"Send"},SendConfirm:{title:"Send photo",send:"Send",cancel:"Cancel"},RateActions:{up:"Up vote",down:"Down vote"},Recorder:{hold2talk:"Hold to Talk",release2send:"Release to Send",releaseOrSwipe:"Release to send, swipe up to cancel",release2cancel:"Release to cancel"},Search:{search:"Search"}},tAt={BackBottom:{newMsgOne:"{n} nouveau message",newMsgOther:"{n} nouveau messages",bottom:"Fond"},Time:{weekdays:"Dimanche_Lundi_Mardi_Mercredi_Jeudi_Vendredi_Samedi".split("_"),formats:{LT:"HH:mm",lll:"D/M/YYYY HH:mm",WT:"dddd HH:mm",YT:"Hier HH:mm"}},Composer:{send:"Envoyer"},SendConfirm:{title:"Envoyer une photo",send:"Envoyer",cancel:"Annuler"},RateActions:{up:"Voter pour",down:"Vote négatif"},Recorder:{hold2talk:"Tenir pour parler",release2send:"Libérer pour envoyer",releaseOrSwipe:"Relâchez pour envoyer, balayez vers le haut pour annuler",release2cancel:"Relâcher pour annuler"},Search:{search:"Chercher"}},nAt={BackBottom:{newMsgOne:"{n}条新消息",newMsgOther:"{n}条新消息",bottom:"回到底部"},Time:{weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),formats:{LT:"HH:mm",lll:"YYYY年M月D日 HH:mm",WT:"dddd HH:mm",YT:"昨天 HH:mm"}},Composer:{send:"发送"},SendConfirm:{title:"发送图片",send:"发送",cancel:"取消"},RateActions:{up:"赞同",down:"反对"},Recorder:{hold2talk:"按住 说话",release2send:"松开 发送",releaseOrSwipe:"松开发送,上滑取消",release2cancel:"松开手指,取消发送"},Search:{search:"搜索"}},Rte={"ar-EG":JNt,"fr-FR":tAt,"en-US":eAt,"zh-CN":nAt},pwe="en-US",BH=te.createContext({}),rAt=({locale:e=pwe,locales:t,elderMode:n,children:r})=>x.jsx(BH.Provider,{value:{locale:e,locales:t,elderMode:n},children:r}),zH=()=>d.useContext(BH),h1=(e,t)=>{const{locale:n,locales:r}=d.useContext(BH);let a={...n&&Rte[n]||Rte[pwe],...r};return!n&&!r&&t?a=t:e&&(a=a[e]||{}),{locale:n,trans:o=>o?a[o]:a}},Xs=te.forwardRef((e,t)=>{const{className:n,size:r,fluid:i,children:a,...o}=e,s=zH();return x.jsx("div",{className:Zn("Card",r&&`Card--${r}`,{"Card--fluid":i},n),"data-fluid":i,"data-elder-mode":s.elderMode,...o,ref:t,children:a})}),iAt={row:"Flex--d-r","row-reverse":"Flex--d-rr",column:"Flex--d-c","column-reverse":"Flex--d-cr"},aAt={nowrap:"Flex--w-n",wrap:"Flex--w-w","wrap-reverse":"Flex--w-wr"},oAt={"flex-start":"Flex--jc-fs","flex-end":"Flex--jc-fe",center:"Flex--jc-c","space-between":"Flex--jc-sb","space-around":"Flex--jc-sa"},sAt={"flex-start":"Flex--ai-fs","flex-end":"Flex--ai-fe",center:"Flex--ai-c"},fu=te.forwardRef((e,t)=>{const{as:n="div",className:r,inline:i,center:a,direction:o,wrap:s,justifyContent:l,justify:c=l,alignItems:u,align:f=u,children:p,...h}=e;return x.jsx(n,{className:Zn("Flex",o&&iAt[o],c&&oAt[c],f&&sAt[f],s&&aAt[s],{"Flex--inline":i,"Flex--center":a},r),ref:t,...h,children:p})}),hA=te.forwardRef((e,t)=>{const{className:n,flex:r,alignSelf:i,order:a,style:o,children:s,...l}=e;return x.jsx("div",{className:Zn("FlexItem",n),style:{...o,flex:r,alignSelf:i,order:a},ref:t,...l,children:s})});te.forwardRef((e,t)=>{const{className:n,aspectRatio:r="square",color:i,image:a,children:o,...s}=e,l={backgroundColor:i||void 0,backgroundImage:typeof a=="string"?`url('${a}')`:void 0};return x.jsx("div",{className:Zn("CardMedia",{"CardMedia--wide":r==="wide","CardMedia--square":r==="square"},n),style:l,...s,ref:t,children:o&&x.jsx(fu,{className:"CardMedia-content",direction:"column",center:!0,children:o})})});const tp=te.forwardRef((e,t)=>{const{className:n,children:r,...i}=e;return x.jsx("div",{className:Zn("CardContent",n),...i,ref:t,children:r})}),np=te.forwardRef((e,t)=>{const{className:n,title:r,subtitle:i,center:a,children:o,...s}=e;return x.jsxs("div",{className:Zn("CardTitle",{"CardTitle--center":a},n),...s,ref:t,children:[r&&x.jsx("h5",{className:"CardTitle-title",children:r}),o&&typeof o=="string"&&x.jsx("h5",{className:"CardTitle-title",children:o}),i&&x.jsx("p",{className:"CardTitle-subtitle",children:i}),o&&typeof o!="string"&&o]})}),HH=te.forwardRef((e,t)=>{const{className:n,children:r,...i}=e;return x.jsx("div",{className:Zn("CardText",n),...i,ref:t,children:typeof r=="string"?x.jsx("p",{children:r}):r})}),hwe=te.forwardRef((e,t)=>{const{children:n,className:r,direction:i,...a}=e;return x.jsx("div",{className:Zn("CardActions",r,i&&`CardActions--${i}`),...a,ref:t,children:n})}),aP=e=>{const{width:t,children:n}=e;return x.jsx("div",{className:"Carousel-item",style:{width:t},children:n})},mwe=(e,t)=>{e.style.transform=t,e.style.webkitTransform=t},Ite=(e,t)=>{e.style.transition=t,e.style.webkitTransition=t},lAt={passiveListener:()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get(){e=!0}});window.addEventListener("test",null,t)}catch{}return e},smoothScroll:()=>"scrollBehavior"in document.documentElement.style,touch:()=>"ontouchstart"in window};function m1(e){return lAt[e]()}const cAt=["TEXTAREA","OPTION","INPUT","SELECT"],uAt=m1("touch");te.forwardRef((e,t)=>{const{className:n,startIndex:r=0,draggable:i=!0,duration:a=300,easing:o="ease",threshold:s=20,clickDragThreshold:l=10,loop:c=!0,rtl:u=!1,autoPlay:f=e.autoplay||!1,interval:p=e.autoplaySpeed||4e3,dots:h=e.indicators||!0,onChange:m,children:g}=e,v=te.Children.count(g),y=`${100/v}%`,w=d.useRef(null),b=d.useRef(null),C=d.useRef(null),k=d.useRef({first:!0,wrapWidth:0,hover:!1,startX:0,endX:0,startY:0,canMove:null,pressDown:!1}),S=d.useCallback(oe=>c?oe%v:Math.max(0,Math.min(oe,v-1)),[v,c]),[_,E]=d.useState(S(r)),[$,M]=d.useState(!1),P=d.useCallback(()=>{Ite(b.current,`transform ${a}ms ${o}`)},[a,o]),R=()=>{Ite(b.current,"transform 0s")},O=oe=>{mwe(b.current,`translate3d(${oe}px, 0, 0)`)},j=d.useCallback((oe,le)=>{const ce=c?oe+1:oe,pe=(u?1:-1)*ce*k.current.wrapWidth;le?requestAnimationFrame(()=>{requestAnimationFrame(()=>{P(),O(pe)})}):O(pe)},[P,c,u]),I=d.useCallback(oe=>{if(v<=1)return;const le=S(oe);le!==_&&E(le)},[_,v,S]),A=d.useCallback(()=>{if(v<=1)return;let oe=_-1;if(c){if(oe<0){const le=k.current,ce=v+1,pe=(u?1:-1)*ce*le.wrapWidth,me=i?le.endX-le.startX:0;R(),O(pe+me),oe=v-1}}else oe=Math.max(oe,0);oe!==_&&E(oe)},[_,v,i,c,u]),N=d.useCallback(()=>{if(v<=1)return;let oe=_+1;if(c){if(oe>v-1){oe=0;const ce=k.current,pe=i?ce.endX-ce.startX:0;R(),O(pe)}}else oe=Math.min(oe,v-1);oe!==_&&E(oe)},[_,v,i,c]),F=d.useCallback(()=>{!f||k.current.hover||(C.current=setTimeout(()=>{P(),N()},p))},[f,p,P,N]),K=()=>{clearTimeout(C.current)},L=()=>{j(_,!0),F()},V=()=>{const oe=k.current,le=(u?-1:1)*(oe.endX-oe.startX),ce=Math.abs(le),pe=le>0&&_-1<0,me=le<0&&_+1>v-1;pe||me?c?pe?A():N():L():le>0&&ce>s&&v>1?A():le<0&&ce>s&&v>1?N():L()},B=()=>{const oe=k.current;oe.startX=0,oe.endX=0,oe.startY=0,oe.canMove=null,oe.pressDown=!1},U=oe=>{if(cAt.includes(oe.target.nodeName))return;oe.preventDefault(),oe.stopPropagation();const le="touches"in oe?oe.touches[0]:oe,ce=k.current;ce.pressDown=!0,ce.startX=le.pageX,ce.startY=le.pageY,K()},Y=oe=>{oe.stopPropagation();const le="touches"in oe?oe.touches[0]:oe,ce=k.current;if(ce.pressDown){if("touches"in oe&&(ce.canMove===null&&(ce.canMove=Math.abs(ce.startY-le.pageY)l&&M(!0);const fe=u?me+re:re-me;O(fe)}},ee=oe=>{oe.stopPropagation();const le=k.current;le.pressDown=!1,M(!1),P(),le.endX?V():F(),B()},ie=()=>{k.current.hover=!0,K()},Z=oe=>{const le=k.current;le.hover=!1,le.pressDown&&(le.pressDown=!1,le.endX=oe.pageX,P(),V(),B()),F()},X=oe=>{const{slideTo:le}=oe.currentTarget.dataset;if(le){const ce=parseInt(le,10);I(ce)}oe.preventDefault()};d.useImperativeHandle(t,()=>({goTo:I,prev:A,next:N,wrapperRef:w}),[I,A,N]),d.useEffect(()=>{function oe(){k.current.wrapWidth=w.current.offsetWidth,j(_)}return k.current.first&&oe(),window.addEventListener("resize",oe),()=>{window.removeEventListener("resize",oe)}},[_,j]),d.useEffect(()=>{m&&!k.current.first&&m(_)},[_,m]),d.useEffect(()=>{k.current.first?(j(_),k.current.first=!1):j(_,!0)},[_,j]),d.useEffect(()=>(F(),()=>{K()}),[f,_,F]);let ae;return i?ae=uAt?{onTouchStart:U,onTouchMove:Y,onTouchEnd:ee}:{onMouseDown:U,onMouseMove:Y,onMouseUp:ee,onMouseEnter:ie,onMouseLeave:Z}:ae={onMouseEnter:ie,onMouseLeave:Z},x.jsxs("div",{className:Zn("Carousel",{"Carousel--draggable":i,"Carousel--rtl":u,"Carousel--dragging":$},n),ref:w,...ae,children:[x.jsxs("div",{className:"Carousel-inner",style:{width:`${c?v+2:v}00%`},ref:b,children:[c&&x.jsx(aP,{width:y,children:te.Children.toArray(g)[v-1]}),te.Children.map(g,(oe,le)=>x.jsx(aP,{width:y,children:oe},le)),c&&x.jsx(aP,{width:y,children:te.Children.toArray(g)[0]})]}),h&&x.jsx("ol",{className:"Carousel-dots",children:te.Children.map(g,(oe,le)=>x.jsx("li",{children:x.jsx("button",{className:Zn("Carousel-dot",{active:_===le}),type:"button","aria-label":`Go to slide ${le+1}`,"data-slide-to":le,onClick:X})},le))})]})});const dAt=te.forwardRef((e,t)=>{const{className:n,label:r,checked:i,disabled:a,onChange:o,...s}=e;return x.jsxs("label",{className:Zn("Checkbox",n,{"Checkbox--checked":i,"Checkbox--disabled":a}),ref:t,children:[x.jsx("input",{type:"checkbox",className:"Checkbox-input",checked:i,disabled:a,onChange:o,...s}),x.jsx("span",{className:"Checkbox-text",children:r})]})});te.forwardRef((e,t)=>{const{className:n,options:r,value:i,name:a,disabled:o,block:s,onChange:l}=e;function c(u,f){const p=f.target.checked?i.concat(u):i.filter(h=>h!==u);l(p,f)}return x.jsx("div",{className:Zn("CheckboxGroup",{"CheckboxGroup--block":s},n),ref:t,children:r.map(u=>x.jsx(dAt,{label:u.label||u.value,value:u.value,name:a,checked:i.includes(u.value),disabled:"disabled"in u?u.disabled:o,onChange:f=>{c(u.value,f)}},u.value))})});const mA=document,fAt=mA.documentElement,pAt=e=>{const{children:t,onClick:n,mouseEvent:r="mouseup",...i}=e,a=d.useRef(null);function o(s){a.current&&fAt.contains(s.target)&&!a.current.contains(s.target)&&n(s)}return d.useEffect(()=>(r&&mA.addEventListener(r,o),()=>{mA.removeEventListener(r,o)})),x.jsx("div",{ref:a,...i,children:t})},hAt="//gw.alicdn.com/tfs/TB1fnnLRkvoK1RjSZFDXXXY3pXa-300-250.svg",mAt="//gw.alicdn.com/tfs/TB1lRjJRbvpK1RjSZPiXXbmwXXa-300-250.svg";te.forwardRef((e,t)=>{const{className:n,type:r,image:i,tip:a,children:o}=e,s=i||(r==="error"?mAt:hAt);return x.jsxs(fu,{className:Zn("Empty",n),direction:"column",center:!0,ref:t,children:[x.jsx("img",{className:"Empty-img",src:s,alt:a}),a&&x.jsx("p",{className:"Empty-tip",children:a}),o]})});const gAt=te.createContext("");te.forwardRef((e,t)=>{const{children:n,...r}=e;return x.jsx("label",{className:"Label",...r,ref:t,children:n})});const xu=te.forwardRef((e,t)=>{const{className:n,icon:r,img:i,...a}=e;return x.jsxs(qs,{className:Zn("IconBtn",n),ref:t,...a,children:[r&&x.jsx(yo,{type:r}),!r&&i&&x.jsx("img",{src:i,alt:""})]})});te.forwardRef((e,t)=>{const{className:n,src:r,lazy:i,fluid:a,children:o,...s}=e,[l,c]=d.useState(i?void 0:r),u=LH(t),f=d.useRef(""),p=d.useRef(!1);return d.useEffect(()=>{if(!i)return;const h=new IntersectionObserver(([m])=>{m.isIntersecting&&(c(f.current),p.current=!0,h.unobserve(m.target))});return u.current&&h.observe(u.current),()=>{h.disconnect()}},[u,i]),d.useEffect(()=>{f.current=r,(!i||p.current)&&c(r)},[i,r]),x.jsx("img",{className:Zn("Image",{"Image--fluid":a},n),src:l,alt:"",ref:u,...s})});function gwe(e){return e.scrollHeight-e.scrollTop-e.offsetHeight}te.forwardRef((e,t)=>{const{className:n,disabled:r,distance:i=0,children:a,onLoadMore:o,onScroll:s,...l}=e,c=LH(t);function u(f){s&&s(f);const p=c.current;if(!p)return;gwe(p)<=i&&o()}return x.jsx("div",{className:Zn("InfiniteScroll",n),role:"feed",onScroll:r?void 0:u,ref:c,...l,children:a})});function vAt(e,t){return`${`${e}`.length}${t?`/${t}`:""}`}const gA=te.forwardRef((e,t)=>{const{className:n,type:r="text",variant:i,value:a,placeholder:o,rows:s=1,minRows:l=s,maxRows:c=5,maxLength:u,showCount:f=!!u,multiline:p,autoSize:h,onChange:m,...g}=e;let v=s;vc&&(v=c);const[y,w]=d.useState(v),[b,C]=d.useState(21),k=LH(t),S=d.useContext(gAt),_=i||(S==="light"?"flushed":"outline"),$=p||h||s>1?"textarea":"input";d.useEffect(()=>{if(!k.current)return;const O=getComputedStyle(k.current,null).lineHeight,j=Number(O.replace("px",""));j!==b&&C(j)},[k,b]);const M=d.useCallback(()=>{if(!h||!k.current)return;const O=k.current,j=O.rows;O.rows=l,o&&(O.placeholder="");const I=~~(O.scrollHeight/b);I===j&&(O.rows=I),I>=c&&(O.rows=c,O.scrollTop=O.scrollHeight),w(I{a===""?w(v):M()},[v,M,a]);const P=d.useCallback(O=>{if(M(),m){const j=O.target.value,A=u&&j.length>u?j.substr(0,u):j;m(A,O)}},[u,m,M]),R=x.jsx($,{className:Zn("Input",`Input--${_}`,n),type:r,value:a,placeholder:o,maxLength:u,ref:k,rows:y,onChange:P,...g});return f?x.jsxs("div",{className:Zn("InputWrapper",{"has-counter":f}),children:[R,f&&x.jsx("div",{className:"Input-counter",children:vAt(a,u)})]}):R});te.forwardRef((e,t)=>{const{bordered:n=!1,className:r,children:i}=e;return x.jsx("div",{className:Zn("List",{"List--bordered":n},r),role:"list",ref:t,children:i})});te.forwardRef((e,t)=>{const{className:n,as:r="div",content:i,rightIcon:a,children:o,onClick:s,...l}=e;return x.jsxs(r,{className:Zn("ListItem",n),onClick:s,role:"listitem",...l,ref:t,children:[x.jsx("div",{className:"ListItem-content",children:i||o}),a&&x.jsx(yo,{type:a})]})});const yAt=e=>{const{className:t,content:n,action:r}=e;return x.jsx("div",{className:Zn("Message SystemMessage",t),children:x.jsxs("div",{className:"SystemMessage-inner",children:[x.jsx("span",{children:x.jsx(fwe,{content:n})}),r&&x.jsx("a",{href:"javascript:;",onClick:r.onClick,children:r.text})]})})},bAt=/YYYY|M|D|dddd|HH|mm/g,vwe=24*60*60*1e3,wAt=vwe*7,xAt=e=>e instanceof Date?e:new Date(e),SAt=()=>new Date(new Date().setHours(0,0,0,0)),jte=e=>(e<=9?"0":"")+e,CAt=e=>{const t=SAt().getTime()-e.getTime();return t<0?"LT":ti[a])}const kAt=({date:e})=>{const{trans:t}=h1("Time");return x.jsx("time",{className:"Time",dateTime:new Date(e).toJSON(),children:_At(e,t())})};function EAt(){return x.jsx(qu,{type:"typing",children:x.jsxs("div",{className:"Typing","aria-busy":"true",children:[x.jsx("div",{className:"Typing-dot"}),x.jsx("div",{className:"Typing-dot"}),x.jsx("div",{className:"Typing-dot"})]})})}const $At=e=>{const{renderMessageContent:t=()=>null,...n}=e,{type:r,content:i,user:a={},_id:o,position:s="left",hasTime:l=!0,createdAt:c}=n,{name:u,avatar:f}=a;if(r==="system"||r===V5||r===m0||r===g0||r===v0)return x.jsx(yAt,{content:i,action:i.action});const p=s==="right"||s==="left";return x.jsxs("div",{className:Zn("Message",s),"data-id":o,"data-type":r,children:[l&&c&&x.jsx("div",{className:"Message-meta",children:x.jsx(kAt,{date:c})}),x.jsxs("div",{className:"Message-main",children:[p&&f&&x.jsx(YNt,{src:f,alt:u,url:a.url}),x.jsxs("div",{className:"Message-inner",children:[p&&u&&x.jsx("div",{className:"Message-author",children:u}),x.jsx("div",{className:"Message-content",role:"alert","aria-live":"assertive","aria-atomic":"false",children:r==="typing"?x.jsx(EAt,{}):t(n)})]})]})]})},Nte=te.memo($At),ll=({status:e,delay:t=1500,maxDelay:n=5e3,onRetry:r,onChange:i})=>{const a=Rn(),[o,s]=d.useState(""),l=d.useRef(),c=d.useRef(),u=d.useCallback(()=>{l.current=setTimeout(()=>{s("loading")},t),c.current=setTimeout(()=>{s("fail")},n)},[t,n]);function f(){l.current&&clearTimeout(l.current),c.current&&clearTimeout(c.current)}d.useEffect(()=>(f(),e==="SENDING"?u():e==="SUCCESS"?s(""):e==="READ"?s("READ"):e==="DELIVERED"?s("DELIVERED"):e==="TIMEOUT"&&s("fail"),f),[e,u]),d.useEffect(()=>{i&&i(o)},[i,o]);function p(){s("loading"),u(),r&&r()}return x.jsxs("div",{className:"MessageStatus","data-status":o,children:[o==="loading"&&x.jsx(yo,{type:"spinner",spin:!0,onClick:p}),o==="fail"&&x.jsx(xu,{icon:"warning-circle-fill",onClick:p}),o==="READ"&&x.jsx("div",{style:{fontSize:12,color:"gray"},children:a.formatMessage({id:"message.status.read",defaultMessage:"已读"})}),o==="DELIVERED"&&x.jsx("div",{style:{fontSize:12,color:"gray"},children:a.formatMessage({id:"message.status.delivered",defaultMessage:"已送达"})})]})};let MAt=0;const TAt=()=>MAt++;function ywe(e="id-"){return d.useRef(`${e}${TAt()}`).current}const aw=(e,t,n=document.body)=>{n.classList[t?"add":"remove"](e)};function Ate(){!document.querySelector(".Modal")&&!document.querySelector(".Popup")&&aw("S--modalOpen",!1)}const UH=te.forwardRef((e,t)=>{const{baseClass:n,active:r,className:i,title:a,showClose:o=!0,autoFocus:s=!0,backdrop:l=!0,height:c,overflow:u,actions:f,vertical:p=!0,btnVariant:h,bgColor:m,children:g,onBackdropClick:v,onClose:y}=e,w=ywe("modal-"),b=e.titleId||w,C=zH(),k=d.useRef(null),{didMount:S,isShow:_}=dwe({active:r,ref:k});if(d.useEffect(()=>{setTimeout(()=>{s&&k.current&&k.current.focus()})},[s]),d.useEffect(()=>{_&&aw("S--modalOpen",_)},[_]),d.useEffect(()=>{!r&&!S&&Ate()},[r,S]),d.useImperativeHandle(t,()=>({wrapperRef:k})),d.useEffect(()=>()=>{Ate()},[]),!S)return null;const E=n==="Popup";return Va.createPortal(x.jsxs("div",{className:Zn(n,i,{active:_}),tabIndex:-1,"data-elder-mode":C.elderMode,ref:k,children:[l&&x.jsx(XNt,{active:_,onClick:l===!0?v||y:void 0}),x.jsx("div",{className:Zn(`${n}-dialog`,{"pb-safe":E&&!f}),"data-bg-color":m,"data-height":E&&c?c:void 0,role:"dialog","aria-labelledby":b,"aria-modal":!0,children:x.jsxs("div",{className:`${n}-content`,children:[x.jsxs("div",{className:`${n}-header`,children:[x.jsx("h5",{className:`${n}-title`,id:b,children:a}),o&&y&&x.jsx(xu,{className:`${n}-close`,icon:"close",size:"lg",onClick:y,"aria-label":"关闭"})]}),x.jsx("div",{className:Zn(`${n}-body`,{overflow:u}),children:g}),f&&x.jsx("div",{className:`${n}-footer ${n}-footer--${p?"v":"h"}`,"data-variant":h||"round",children:f.map($=>d.createElement(qs,{size:"lg",block:E,variant:h,...$,key:$.label}))})]})})]}),document.body)}),PAt=te.forwardRef((e,t)=>x.jsx(UH,{baseClass:"Modal",btnVariant:e.vertical===!1?void 0:"outline",ref:t,...e})),Dte=e=>e.color==="primary";te.forwardRef((e,t)=>{const{className:n,vertical:r,actions:i,...a}=e,{locale:o=""}=h1(),s=o.includes("zh"),l=r??!s;return Array.isArray(i)&&i.sort((c,u)=>Dte(c)?l?-1:1:Dte(u)?l?1:-1:0),x.jsx(UH,{baseClass:"Modal",className:Zn("Confirm",n),showClose:!1,btnVariant:"outline",vertical:l,actions:i,ref:t,...a})});const OAt=te.forwardRef((e,t)=>x.jsx(UH,{baseClass:"Popup",overflow:!0,ref:t,...e})),RAt=te.forwardRef((e,t)=>{const{className:n,title:r,logo:i,desc:a,leftContent:o,rightContent:s=[],align:l}=e,c=l==="left",u=c?!0:!i;return x.jsxs("header",{className:Zn("Navbar",{"Navbar--left":c},n),ref:t,children:[x.jsx("div",{className:"Navbar-left",children:o&&x.jsx(xu,{size:"lg",...o})}),x.jsxs("div",{className:"Navbar-main",children:[i&&x.jsx("img",{className:"Navbar-logo",src:i,alt:r}),x.jsxs("div",{className:"Navbar-inner",children:[u&&x.jsx("h2",{className:"Navbar-title",children:r}),x.jsx("div",{className:"Navbar-desc",children:a})]})]}),x.jsx("div",{className:"Navbar-right",children:s.map(f=>x.jsx(xu,{size:"lg",...f},f.icon))})]})}),vA=te.forwardRef((e,t)=>{const{as:n="div",className:r,align:i,breakWord:a,truncate:o,children:s,...l}=e,c=Number.isInteger(o),u=Zn(i&&`Text--${i}`,{"Text--break":a,"Text--truncate":o===!0,"Text--ellipsis":c},r),f=c?{WebkitLineClamp:o}:null;return x.jsx(n,{className:u,style:f,...l,ref:t,children:s})}),IAt="Intl"in window&&typeof Intl.NumberFormat.prototype.formatToParts=="function",Fte=te.forwardRef((e,t)=>{const{className:n,price:r,currency:i,locale:a,original:o,...s}=e;let l=[];if(a&&i&&IAt?l=new Intl.NumberFormat(a,{style:"currency",currency:i}).formatToParts(r):l=void 0,!l){const c=".",[u,f]=`${r}`.split(c);l=[{type:"currency",value:i},{type:"integer",value:u},{type:"decimal",value:f&&c},{type:"fraction",value:f}]}return x.jsx("div",{className:Zn("Price",{"Price--original":o},n),ref:t,...s,children:l.map((c,u)=>c.value?x.jsx("span",{className:`Price-${c.type}`,children:c.value},u):null)})});te.forwardRef((e,t)=>{const{className:n,value:r,status:i,...a}=e;return x.jsx("div",{className:Zn("Progress",i&&`Progress--${i}`,n),ref:t,...a,children:x.jsx("div",{className:"Progress-bar",role:"progressbar",style:{width:`${r}%`},"aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100})})});const Lte=requestAnimationFrame;function bwe({el:e,to:t,duration:n=300,x:r}){let i=0;const a=r?"scrollLeft":"scrollTop",o=e[a],s=Math.round(n/16),l=(t-o)/s;if(!Lte){e[a]=t;return}function c(){e[a]+=l,++i{const{distance:n=30,loadingDistance:r=30,maxDistance:i,distanceRatio:a=2,loadMoreText:o="点击加载更多",children:s,onScroll:l,onRefresh:c,renderIndicator:u=K=>K==="active"||K==="loading"?x.jsx(yo,{className:"PullToRefresh-spinner",type:"spinner",spin:!0}):null}=e,f=d.useRef(null),p=d.useRef(null),h=VNt(c),[m,g]=d.useState(0),[v,y]=d.useState("pending"),[w,b]=d.useState(!1),[C,k]=d.useState(!e.onRefresh),S=d.useRef({}),_=d.useRef(v),E=d.useRef(),$=d.useRef(),M=!m1("touch");d.useEffect(()=>{_.current=v},[v]);const P=K=>{const L=p.current;L&&mwe(L,`translate3d(0px,${K}px,0)`)},R=({y:K,animated:L=!0})=>{const V=f.current;if(!V)return;const B=K==="100%"?V.scrollHeight-V.offsetHeight:K;L?bwe({el:V,to:B,x:!1}):V.scrollTop=B},O=d.useCallback(({animated:K=!0}={})=>{R({y:"100%",animated:K})},[]),j=d.useCallback(()=>{g(0),y("pending"),P(0)},[]),I=d.useCallback(()=>{const K=f.current;if(!(!K||!h.current)){y("loading");try{const L=K.scrollHeight;h.current().then(V=>{const B=()=>{R({y:K.scrollHeight-L-50,animated:!1})};clearTimeout(E.current),clearTimeout($.current),B(),E.current=setTimeout(B,150),$.current=setTimeout(B,250),j(),V&&V.noMore&&k(!0)})}catch(L){console.error(L),j()}}},[h,j]),A=()=>{S.current.startY=0},N=d.useCallback(K=>{const L=K.touches[0].clientY,V=f.current.scrollTop<=0;V?S.current.startY||(S.current.startY=L,y("pull"),b(!1)):S.current.startY=0;const{startY:B}=S.current;if(!V||Li&&(U=i),U>0&&(K.cancelable&&K.preventDefault(),K.stopPropagation(),P(U),g(U),y(U>=n?"active":"pull"))},[a,i,n]),F=d.useCallback(()=>{b(!0),S.current.startY&&_.current==="active"?I():j()},[I,j]);return d.useEffect(()=>{const K=f.current;!K||M||(C?(K.removeEventListener("touchstart",A),K.removeEventListener("touchmove",N),K.removeEventListener("touchend",F),K.removeEventListener("touchcancel",F)):(K.addEventListener("touchstart",A,jAt),K.addEventListener("touchmove",N,NAt),K.addEventListener("touchend",F),K.addEventListener("touchcancel",F)))},[C,F,N,M]),d.useEffect(()=>{v==="loading"&&!M&&P(r)},[r,v,M]),d.useImperativeHandle(t,()=>({scrollTo:R,scrollToEnd:O,wrapperRef:f}),[O]),x.jsx("div",{className:"PullToRefresh",ref:f,onScroll:l,children:x.jsx("div",{className:"PullToRefresh-inner",children:x.jsxs("div",{className:Zn("PullToRefresh-content",{"PullToRefresh-transition":w}),ref:p,children:[x.jsx("div",{className:"PullToRefresh-indicator",children:u(v,m)}),!C&&M&&x.jsxs(fu,{className:"PullToRefresh-fallback",center:!0,children:[u(v,n),x.jsx(qs,{className:"PullToRefresh-loadMore",variant:"text",onClick:I,children:o})]}),te.Children.only(s)]})})})}),DAt={threshold:[0,.1]},Bte=e=>{const{item:t,effect:n,children:r,onIntersect:i}=e,a=d.useRef(null);return d.useEffect(()=>{if(!i)return;const o=new IntersectionObserver(([s])=>{s.intersectionRatio>0&&(i(t,s)||o.unobserve(s.target))},DAt);return a.current&&o.observe(a.current),()=>{o.disconnect()}},[t,i]),x.jsx("div",{className:Zn("ScrollView-item",{"slide-in-right-item":n==="slide","A-fadeIn":n==="fade"}),ref:a,children:r})},oP=!m1("touch"),FAt=te.forwardRef((e,t)=>{const{className:n,fullWidth:r,scrollX:i=!0,effect:a="slide",data:o,itemKey:s,renderItem:l,onIntersect:c,onScroll:u,children:f,...p}=e,h=d.useRef(null),m=d.useRef(null);function g(){const w=m.current;w.scrollLeft-=w.offsetWidth}function v(){const w=m.current;w.scrollLeft+=w.offsetWidth}const y=d.useCallback((w,b)=>{let C;return s&&(C=typeof s=="function"?s(w,b):w[s]),C||b},[s]);return d.useImperativeHandle(t,()=>({scrollTo:({x:w,y:b})=>{w!=null&&(m.current.scrollLeft=w),b!=null&&(m.current.scrollTop=b)},wrapperRef:h})),x.jsxs("div",{className:Zn("ScrollView",{"ScrollView--fullWidth":r,"ScrollView--x":i,"ScrollView--hasControls":oP},n),ref:h,...p,children:[oP&&x.jsx(xu,{className:"ScrollView-control",icon:"chevron-left","aria-label":"Previous",onClick:g}),x.jsx("div",{className:"ScrollView-scroller",ref:m,onScroll:u,children:x.jsxs("div",{className:"ScrollView-inner",children:[o.map((w,b)=>x.jsx(Bte,{item:w,effect:w.effect||a,onIntersect:c,children:l(w,b)},y(w,b))),f?x.jsx(Bte,{item:{},effect:a,onIntersect:c,children:f}):null]})}),oP&&x.jsx(xu,{className:"ScrollView-control",icon:"chevron-right","aria-label":"Next",onClick:v})]})}),ja=so(e=>({tickets:[],historyTickets:[],currentTicket:void 0,currentThreadTicket:void 0,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{assignment:x0},setCurrentTicket:t=>e({currentTicket:t}),setCurrentThreadTicket:t=>e({currentThreadTicket:t}),setSearchText:t=>{e({searchText:t})},refreshTickets:async()=>{const{currentOrg:t}=Vr.getState();if(t!=null&&t.uid){const{ticketService:n}=await xue(async()=>{const{ticketService:r}=await Promise.resolve().then(()=>fWt);return{ticketService:r}},void 0);await n.loadTickets(t.uid)}},setFilter:(t,n)=>e(r=>({filters:{...r.filters,[t]:n}})),clearFilters:()=>e({filters:{}}),setLoading:t=>e({loading:t}),setError:t=>e({error:t}),setTickets:t=>e({tickets:t}),setHistoryTickets:t=>e({historyTickets:t})})),LAt=e=>{const{item:t,index:n,onClick:r,fromTicketTab:i}=e,a=ja(s=>s.currentTicket);function o(){r(t,n)}return x.jsx("button",{className:Zn("QuickReply",{new:t.isNew,highlight:t.isHighlight}),type:"button","data-code":t.code,"aria-label":`快捷短语: ${t.name},双击发送`,onClick:o,disabled:!W2(i,a),children:x.jsxs("div",{className:"QuickReply-inner",children:[t.icon&&x.jsx(yo,{type:t.icon}),x.jsx("span",{children:t.name})]})})},BAt=e=>{const{items:t=[],visible:n=!0,onClick:r,onScroll:i,fromTicketTab:a=!1,chatThread:o}=e,s=d.useRef(null),[l,c]=d.useState(!!i),u=ja(p=>p.currentTicket),f=Na(p=>p.memberInfo);return d.useLayoutEffect(()=>{let p;return s.current&&(c(!1),s.current.scrollTo({x:0,y:0}),p=setTimeout(()=>{c(!0)},500)),()=>{clearTimeout(p)}},[t]),t.length?a&&!Ja(a,u,o,f)?x.jsx(x.Fragment,{}):x.jsx(FAt,{className:"QuickReplies",data:t,itemKey:"name",ref:s,"data-visible":n,onScroll:l?i:void 0,renderItem:(p,h)=>x.jsx(LAt,{item:p,index:h,onClick:r,fromTicketTab:a,chatThread:o},p.name)}):null},zAt=te.memo(BAt),HAt=te.forwardRef((e,t)=>{const{className:n,label:r,checked:i,disabled:a,onChange:o,...s}=e;return x.jsxs("label",{className:Zn("Radio",n,{"Radio--checked":i,"Radio--disabled":a}),ref:t,children:[x.jsx("input",{type:"radio",className:"Radio-input",checked:i,disabled:a,onChange:o,...s}),x.jsx("span",{className:"Radio-text",children:r})]})});te.forwardRef((e,t)=>{const{className:n,options:r,value:i,name:a,disabled:o,block:s,onChange:l}=e;return x.jsx("div",{className:Zn("RadioGroup",{"RadioGroup--block":s},n),ref:t,children:r.map(c=>x.jsx(HAt,{label:c.label||c.value,value:c.value,name:a,checked:i===c.value,disabled:"disabled"in c?c.disabled:o,onChange:u=>{l(c.value,u)}},c.value))})});const ZS="up",QS="down",xwe=e=>{const{trans:t}=h1("RateActions",{up:"赞同",down:"反对"}),{upTitle:n=t("up"),downTitle:r=t("down"),onClick:i}=e,[a,o]=d.useState("");function s(u){a||(o(u),i(u))}function l(){s(ZS)}function c(){s(QS)}return x.jsxs("div",{className:"RateActions",children:[a!==QS&&x.jsx(xu,{className:Zn("RateBtn",{active:a===ZS}),title:n,"data-type":ZS,icon:"thumbs-up",onClick:l}),a!==ZS&&x.jsx(xu,{className:Zn("RateBtn",{active:a===QS}),title:r,"data-type":QS,icon:"thumbs-down",onClick:c})]})};te.forwardRef((e,t)=>{const{className:n,onSearch:r,onChange:i,onClear:a,value:o,clearable:s=!0,showSearch:l=!0,...c}=e,[u,f]=d.useState(o||""),{trans:p}=h1("Search"),h=y=>{f(y),i&&i(y)},m=()=>{f(""),a&&a()},g=y=>{y.keyCode===13&&(r&&r(u,y),y.preventDefault())},v=y=>{r&&r(u,y)};return x.jsxs("div",{className:Zn("Search",n),ref:t,children:[x.jsx(yo,{className:"Search-icon",type:"search"}),x.jsx(gA,{className:"Search-input",type:"search",value:u,enterKeyHint:"search",onChange:h,onKeyDown:g,...c}),s&&u&&x.jsx(xu,{className:"Search-clear",icon:"x-circle-fill",onClick:m}),l&&x.jsx(qs,{className:"Search-btn",color:"primary",onClick:v,children:p("search")})]})});te.forwardRef(({className:e,placeholder:t,variant:n="outline",children:r,...i},a)=>x.jsxs("select",{className:Zn("Input Select",`Input--${n}`,e),...i,ref:a,children:[t&&x.jsx("option",{value:"",children:t}),r]}));te.forwardRef((e,t)=>{const{className:n,current:r=0,status:i,inverted:a,children:o,...s}=e,c=te.Children.toArray(o).map((u,f)=>{const p={index:f,active:!1,completed:!1,disabled:!1};return r===f?(p.active=!0,p.status=i):r>f?p.completed=!0:(p.disabled=!a,p.completed=a),te.isValidElement(u)?te.cloneElement(u,{...p,...u.props}):null});return x.jsx("ul",{className:Zn("Stepper",n),ref:t,...s,children:c})});function UAt(e){if(e){const t={success:"check-circle-fill",fail:"warning-circle-fill",abort:"dash-circle-fill"};return x.jsx(yo,{type:t[e]})}return x.jsx("div",{className:"Step-dot"})}te.forwardRef((e,t)=>{const{className:n,active:r=!1,completed:i=!1,disabled:a=!1,status:o,index:s,title:l,subTitle:c,desc:u,children:f,...p}=e;return x.jsxs("li",{className:Zn("Step",{"Step--active":r,"Step--completed":i,"Step--disabled":a},n),ref:t,"data-status":o,...p,children:[x.jsx("div",{className:"Step-icon",children:UAt(o)}),x.jsx("div",{className:"Step-line"}),x.jsxs("div",{className:"Step-content",children:[l&&x.jsxs("div",{className:"Step-title",children:[l&&x.jsx("span",{children:l}),c&&x.jsx("small",{children:c})]}),u&&x.jsx("div",{className:"Step-desc",children:u}),f]})]})});const WAt=e=>{const{active:t,index:n,children:r,onClick:i,...a}=e;function o(s){i(n,s)}return x.jsx("div",{className:"Tabs-navItem",children:x.jsx("button",{className:Zn("Tabs-navLink",{active:t}),type:"button",role:"tab","aria-selected":t,onClick:o,...a,children:x.jsx("span",{children:r})})})},VAt=e=>{const{active:t,children:n,...r}=e;return x.jsx("div",{className:Zn("Tabs-pane",{active:t}),...r,role:"tabpanel",children:n})};te.forwardRef((e,t)=>{const{className:n,index:r=0,scrollable:i,hideNavIfOnlyOne:a,children:o,onChange:s}=e,[l,c]=d.useState({}),[u,f]=d.useState(r||0),p=d.useRef(u),h=d.useRef(null),m=[],g=[],v=ywe("tabs-");function y(C,k){f(C),s&&s(C,k)}te.Children.forEach(o,(C,k)=>{if(!C)return;const S=u===k,_=`${v}-${k}`;m.push(x.jsx(WAt,{active:S,index:k,onClick:y,"aria-controls":_,tabIndex:S?-1:0,children:C.props.label},_)),C.props.children&&g.push(x.jsx(VAt,{active:S,id:_,children:C.props.children},_))}),d.useEffect(()=>{f(r)},[r]);const w=d.useCallback(()=>{const C=h.current;if(!C)return;const k=C.children[p.current];if(!k)return;const S=k.querySelector("span");if(!S)return;const{offsetWidth:_,offsetLeft:E}=k,{width:$}=S.getBoundingClientRect(),M=Math.max($-16,26),P=E+_/2;c({transform:`translateX(${P-M/2}px)`,width:`${M}px`}),i&&bwe({el:C,to:P-C.offsetWidth/2,x:!0})},[i]);d.useEffect(()=>{const C=h.current;let k;return C&&"ResizeObserver"in window&&(k=new ResizeObserver(w),k.observe(C)),()=>{k&&C&&k.unobserve(C)}},[w]),d.useEffect(()=>{p.current=u,w()},[u,w]);const b=m.length>(a?1:0);return x.jsxs("div",{className:Zn("Tabs",{"Tabs--scrollable":i},n),ref:t,children:[b&&x.jsxs("div",{className:"Tabs-nav",role:"tablist",ref:h,children:[m,x.jsx("span",{className:"Tabs-navPointer",style:l})]}),x.jsx("div",{className:"Tabs-content",children:g})]})});te.forwardRef(({children:e},t)=>x.jsx("div",{ref:t,children:e}));const qAt=te.forwardRef((e,t)=>{const{as:n="span",className:r,color:i,children:a,...o}=e;return x.jsx(n,{className:Zn("Tag",i&&`Tag--${i}`,r),ref:t,...o,children:a})}),KAt=e=>{const{item:t,onClick:n}=e,{type:r,icon:i,img:a,title:o}=t,s={name:"file",action:"https://run.mocky.io/v3/435e224c-44fb-4773-9faf-380c5e6a2188",showUploadList:!1,headers:{authorization:"authorization-text"},onChange(l){l.file.status!=="uploading"&&console.log(l.file,l.fileList),l.file.status==="done"?c3.success(`${l.file.name} file uploaded successfully`):l.file.status==="error"&&c3.error(`${l.file.name} file upload failed.`)}};return x.jsx("div",{className:"Toolbar-item","data-type":r,children:r==="upload"?x.jsx(e1,{...s,children:x.jsxs(qs,{className:"Toolbar-btn",onClick:l=>n(t,l),children:[x.jsxs("span",{className:"Toolbar-btnIcon",children:[i&&x.jsx(yo,{type:i}),a&&x.jsx("img",{className:"Toolbar-img",src:a,alt:""})]}),x.jsx("span",{className:"Toolbar-btnText",children:o})]})}):x.jsxs(qs,{className:"Toolbar-btn",onClick:l=>n(t,l),children:[x.jsxs("span",{className:"Toolbar-btnIcon",children:[i&&x.jsx(yo,{type:i}),a&&x.jsx("img",{className:"Toolbar-img",src:a,alt:""})]}),x.jsx("span",{className:"Toolbar-btnText",children:o})]})})},GAt=e=>{const{items:t,onClick:n}=e;return x.jsx("div",{className:"Toolbar",children:t.map(r=>x.jsx(KAt,{item:r,onClick:n},r.type))})};te.forwardRef((e,t)=>{const{className:n,children:r}=e;return x.jsx("div",{className:Zn("Tree",n),role:"tree",ref:t,children:r})});te.forwardRef((e,t)=>{const{title:n,content:r,link:i,children:a=[],onClick:o,onExpand:s}=e,[l,c]=d.useState(!1),u=a.length>0;function f(){u?(c(!l),s(n,!l)):o({title:n,content:r,link:i})}return x.jsxs("div",{className:"TreeNode",role:"treeitem","aria-expanded":l,ref:t,children:[x.jsxs("div",{className:"TreeNode-title",onClick:f,role:"treeitem","aria-expanded":l,tabIndex:0,children:[x.jsx("span",{className:"TreeNode-title-text",children:n}),u?x.jsx(yo,{className:"TreeNode-title-icon",type:l?"chevron-up":"chevron-down"}):null]}),u?a.map((p,h)=>x.jsx("div",{className:Zn("TreeNode-children",{"TreeNode-children-active":l}),children:x.jsx("div",{className:"TreeNode-title TreeNode-children-title",onClick:()=>o({...p,index:h}),role:"treeitem",children:x.jsx("span",{className:"TreeNode-title-text",children:p.title})})},h)):null]})});function YAt(e){if(!e)return"";const t=Math.floor(e/3600),n=Math.floor((e-t*3600)/60),r=Math.floor(e-t*3600-n*60);let i="";return t>0&&(i+=`${t}:`),i+=`${n}:`,r<10&&(i+="0"),i+=r,i}const XAt=te.forwardRef((e,t)=>{const{className:n,src:r,cover:i,duration:a,onClick:o,onCoverLoad:s,style:l,videoRef:c,children:u,...f}=e,p=d.useRef(null),h=d.useRef(null),m=c||h,[g,v]=d.useState(!1),[y,w]=d.useState(!0);function b(E){v(!0);const $=m.current;$&&($.ended||$.paused?$.play():$.pause()),o&&o(y,E)}function C(){w(!1)}function k(){w(!0)}const S=!g&&!!i,_=S&&!!a;return d.useImperativeHandle(t,()=>({wrapperRef:p})),x.jsxs("div",{className:Zn("Video",`Video--${y?"paused":"playing"}`,n),style:l,ref:p,children:[S&&x.jsx("img",{className:"Video-cover",src:i,onLoad:s,alt:""}),_&&x.jsx("span",{className:"Video-duration",children:YAt(+a)}),x.jsx("video",{className:"Video-video",src:r,ref:m,hidden:S,controls:!0,onPlay:C,onPause:k,onEnded:k,...f,children:u}),S&&x.jsx("button",{className:Zn("Video-playBtn",{paused:y}),type:"button",onClick:b,children:x.jsx("span",{className:"Video-playIcon"})})]})}),Swe=te.forwardRef((e,t)=>{const{fileUrl:n="",children:r}=e,[i,a]=d.useState("");return d.useEffect(()=>{if(!n){a("文件不存在或已被删除");return}try{const o=n.split("/"),s=o[o.length-1];a(s||"未知文件名")}catch(o){console.error("Failed to parse file name from URL:",o),a("文件名解析错误")}},[n]),x.jsx(Xs,{className:"FileCard",size:"xl",ref:t,children:x.jsxs(fu,{children:[x.jsx("div",{className:"FileCard-icon",children:x.jsx(yo,{type:n?"file":"file-error"})}),x.jsxs(hA,{children:[x.jsx(vA,{truncate:2,breakWord:!0,className:`FileCard-name ${n?"":"FileCard-name--error"}`,children:i}),x.jsx("div",{className:"FileCard-meta",children:r})]})]})})});Swe.displayName="FileCard";const ZAt=te.forwardRef((e,t)=>{const n=zH(),{className:r,type:i,img:a,name:o,desc:s,tags:l=[],locale:c,currency:u,price:f,count:p,unit:h,action:m,elderMode:g,children:v,originalPrice:y,meta:w,status:b,...C}=e,k=g||n.elderMode,S=i==="order"&&!k,_=i!=="order"&&!k,E={currency:u,locale:c},$=f!=null&&x.jsx(Fte,{price:f,...E}),M=x.jsxs("div",{className:"Goods-countUnit",children:[p&&x.jsxs("span",{className:"Goods-count",children:["×",p]}),h&&x.jsx("span",{className:"Goods-unit",children:h})]});return x.jsxs(fu,{className:Zn("Goods",r),"data-type":i,"data-elder-mode":k,ref:t,...C,children:[a&&x.jsx("img",{className:"Goods-img",src:a,alt:o}),x.jsxs(hA,{className:"Goods-main",children:[_&&m&&x.jsx(xu,{className:"Goods-buyBtn",icon:"cart",...m}),x.jsx(vA,{as:"h4",truncate:S?2:!0,className:"Goods-name",children:o}),x.jsx(vA,{className:"Goods-desc",truncate:k,children:s}),k?x.jsxs(fu,{alignItems:"center",justifyContent:"space-between",children:[$,m&&x.jsx(qs,{size:"sm",...m})]}):x.jsx("div",{className:"Goods-tags",children:l.map(P=>x.jsx(qAt,{color:"primary",children:P.name},P.name))}),_&&x.jsxs(fu,{alignItems:"flex-end",children:[x.jsxs(hA,{children:[$,y&&x.jsx(Fte,{price:y,original:!0,...E}),w&&x.jsx("span",{className:"Goods-meta",children:w})]}),M]}),v]}),S&&x.jsxs("div",{className:"Goods-aside",children:[$,M,x.jsx("span",{className:"Goods-status",children:b}),m&&x.jsx(qs,{className:"Goods-detailBtn",...m})]})]})}),QAt=({count:e,onClick:t,onDidMount:n})=>{const{trans:r}=h1("BackBottom");let i=r("bottom");return e&&(i=r(e===1?"newMsgOne":"newMsgOther").replace("{n}",e)),d.useEffect(()=>{n&&n()},[n]),x.jsx("div",{className:"BackBottom",children:x.jsxs(qs,{className:"slide-in-right-item",onClick:t,children:[i,x.jsx(yo,{type:"chevron-double-down"})]})})};function JAt(e,t=300){let n=!0;return(...r)=>{n&&(n=!1,e(...r),setTimeout(()=>{n=!0},t))}}const zte=m1("passiveListener")?{passive:!0}:!1;function sP(e,t){const n=Math.max(e.offsetHeight,600);return gwe(e){const{messages:n,isTyping:r,loadMoreText:i,onRefresh:a,onScroll:o,renderBeforeMessageList:s,renderMessageContent:l,onBackBottomShow:c,onBackBottomClick:u,fromTicketTab:f,chatThread:p}=e,[h,m]=d.useState(!1),[g,v]=d.useState(0),y=d.useRef(h),w=d.useRef(g),b=d.useRef(null),C=d.useRef(null),k=n[n.length-1],S=ja(O=>O.currentTicket),_=Na(O=>O.memberInfo),E=()=>{v(0),m(!1)},$=d.useCallback(O=>{C.current&&(!y.current||O&&O.force)&&(C.current.scrollToEnd(O),y.current&&E())},[]),M=()=>{$({animated:!1,force:!0}),u&&u()},P=d.useRef(JAt(O=>{sP(O,3)?w.current?sP(O,.5)&&E():m(!1):m(!0)})),R=O=>{P.current(O.target),o&&o(O)};return d.useEffect(()=>{w.current=g},[g]),d.useEffect(()=>{y.current=h},[h]),d.useEffect(()=>{const O=C.current,j=O&&O.wrapperRef.current;if(!(!j||!k||k.position==="pop"))if(k.position==="right")$({force:!0});else if(sP(j,2)){const I=!!j.scrollTop;$({animated:I,force:!0})}else v(I=>I+1),m(!0)},[k,$]),d.useEffect(()=>{$()},[r,$]),d.useEffect(()=>{const O=b.current;let j=!1,I=0;function A(){j=!1,I=0}function N(K){const{activeElement:L}=document;L&&L.nodeName==="TEXTAREA"&&(j=!0,I=K.touches[0].clientY)}function F(K){j&&Math.abs(K.touches[0].clientY-I)>20&&(document.activeElement.blur(),A())}return O==null||O.addEventListener("touchstart",N,zte),O==null||O.addEventListener("touchmove",F,zte),O==null||O.addEventListener("touchend",A),O==null||O.addEventListener("touchcancel",A),()=>{O==null||O.removeEventListener("touchstart",N),O==null||O.removeEventListener("touchmove",F),O==null||O.removeEventListener("touchend",A),O==null||O.removeEventListener("touchcancel",A)}},[]),d.useImperativeHandle(t,()=>({ref:b,scrollToEnd:$}),[$]),f&&!Ja(f,S,p,_)?x.jsx(za,{}):x.jsxs("div",{className:"MessageContainer",ref:b,tabIndex:-1,children:[s&&s(),x.jsx(AAt,{onRefresh:a,onScroll:R,loadMoreText:i,ref:C,children:x.jsxs("div",{className:"MessageList",children:[n.map(O=>d.createElement(Nte,{...O,renderMessageContent:l,key:O._id})),r&&x.jsx(Nte,{type:"typing",_id:"typing"})]})}),h&&x.jsx(QAt,{count:g,onClick:M,onDidMount:c})]})}),Cwe=m1("passiveListener"),tDt=Cwe?{passive:!0}:!1,nDt=Cwe?{passive:!1}:!1,Hte=80,rDt={inited:"hold2talk",recording:"release2send",willCancel:"release2send"};let t2=0,lP=0;const iDt=te.forwardRef((e,t)=>{const{volume:n,onStart:r,onEnd:i,onCancel:a}=e,[o,s]=d.useState("inited"),l=d.useRef(null),{trans:c}=h1("Recorder"),u=d.useCallback(()=>{const h=Date.now()-t2;i&&i({duration:h})},[i]);d.useImperativeHandle(t,()=>({stop(){s("inited"),u(),t2=0}})),d.useEffect(()=>{const h=l.current;function m(y){y.cancelable&&y.preventDefault(),lP=y.touches[0].pageY,t2=Date.now(),s("recording"),r&&r()}function g(y){if(!t2)return;const w=y.touches[0].pageY,b=lP-w>Hte;s(b?"willCancel":"recording")}function v(y){if(!t2)return;const w=y.changedTouches[0].pageY,b=lP-w{h.removeEventListener("touchstart",m),h.removeEventListener("touchmove",g),h.removeEventListener("touchend",v),h.removeEventListener("touchcancel",v)}},[u,a,r]);const f=o==="willCancel",p={transform:`scale(${(n||1)/100+1})`};return x.jsxs("div",{className:Zn("Recorder",{"Recorder--cancel":f}),ref:l,children:[o!=="inited"&&x.jsxs(fu,{className:"RecorderToast",direction:"column",center:!0,children:[x.jsxs("div",{className:"RecorderToast-waves",hidden:o!=="recording",style:p,children:[x.jsx(yo,{className:"RecorderToast-wave-1",type:"hexagon"}),x.jsx(yo,{className:"RecorderToast-wave-2",type:"hexagon"}),x.jsx(yo,{className:"RecorderToast-wave-3",type:"hexagon"})]}),x.jsx(yo,{className:"RecorderToast-icon",type:f?"cancel":"mic"}),x.jsx("span",{children:c(f?"release2cancel":"releaseOrSwipe")})]}),x.jsx("div",{className:"Recorder-btn",role:"button","aria-label":c("hold2talk"),children:x.jsx("span",{children:c(rDt[o])})})]})}),aDt=({onClickOutside:e,children:t})=>x.jsx(pAt,{onClick:e,children:t});function oDt(e){const t=d.useRef(!1);d.useEffect(()=>{function n(){e(),t.current=!1}function r(){t.current||(t.current=!0,window.requestAnimationFrame?window.requestAnimationFrame(n):setTimeout(n,66))}return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[e])}const sDt=e=>{const{className:t,active:n,target:r,children:i,onClose:a}=e,o=WNt(a,"mousedown"),{didMount:s,isShow:l}=dwe({active:n,ref:o}),[c,u]=d.useState({}),f=d.useCallback(()=>{if(!o.current)return;const p=r.getBoundingClientRect(),h=o.current.getBoundingClientRect();u({top:`${p.top-h.height}px`,left:`${p.left}px`})},[r,o]);return d.useEffect(()=>{o.current&&(o.current.focus(),f())},[s,f,o]),oDt(f),s?Va.createPortal(x.jsxs("div",{className:Zn("Popover",t,{active:l}),ref:o,style:c,children:[x.jsx("div",{className:"Popover-body",children:i}),x.jsx("svg",{className:"Popover-arrow",viewBox:"0 0 9 5",children:x.jsx("polygon",{points:"0,0 5,5, 9,0"})})]}),document.body):null},w_=e=>x.jsx("div",{className:"Composer-actions","data-action-icon":e.icon,children:x.jsx(xu,{size:"lg",...e})}),lDt=e=>{const{item:t,onClick:n}=e;return x.jsx(w_,{icon:t.icon,img:t.img,"data-icon":t.icon,"data-tooltip":t.title||null,"aria-label":t.title,onClick:n})};function Zr(){const e=Rn();return{translateString:r=>r==null?r:r&&r.startsWith(Iw)?e.formatMessage({id:r,defaultMessage:r}):r,translateStringTranct:r=>r==null?r:r!=null&&r.startsWith(Iw)?jk(e.formatMessage({id:r}),10):jk(r,8)}}const _we=e=>{const{file:t,onCancel:n,onSend:r}=e,[i,a]=d.useState(""),[o,s]=d.useState(""),{translateString:l}=Zr();return d.useEffect(()=>{const c=new FileReader;c.onload=p=>{p.target&&a(p.target.result)},c.readAsDataURL(t);const u=t.name.toLowerCase().split(".").pop();console.log("SendConfirm file:",u,t.size);let f="unknown";u==="jpg"||u==="jpeg"||u==="png"||u==="bmp"||u==="gif"?f=Cl:u==="mp4"||u==="avi"||u==="mov"?f=lg:u==="mp3"||u==="wav"?f=Fw:f=cd,s(f)},[t]),x.jsx(PAt,{className:"SendConfirm",title:l("i18n.preview.title"),active:!!i,vertical:!1,actions:[{label:l("i18n.cancel"),onClick:n},{label:l("i18n.send"),color:"primary",onClick:r}],children:x.jsxs(fu,{className:"SendConfirm-inner",center:!0,children:[o===Cl&&x.jsx(x.Fragment,{children:x.jsx("img",{src:i,alt:""})}),o===lg&&x.jsx("div",{style:{width:"80%",height:"80%"},children:x.jsx("video",{controls:!0,style:{width:"100%",height:"100%"},children:x.jsx("source",{src:i,type:"video/mp4"})})}),o===Fw&&x.jsx(x.Fragment,{children:x.jsx("audio",{controls:!0,children:x.jsx("source",{src:i,type:"audio/mp3"})})}),o===cd&&x.jsx(x.Fragment,{children:x.jsxs("div",{className:"SendConfirm-file",children:[x.jsx("i",{className:"iconfont icon-fujian"}),x.jsx("span",{children:t.name})]})})]})})},$3=navigator.userAgent;function cDt(){return/iPad|iPhone|iPod/.test($3)}function uDt(){return/^((?!chrome|android|crios|fxios).)*safari/i.test($3)}function dDt(){return $3.includes("Safari/")||/OS 11_[0-3]\D/.test($3)}function kwe(){const e=$3.match(/OS (\d+)_/);return e?+e[1]:0}const Ewe=cDt();function fDt(){if(Ewe){if(dDt())return 0;if(kwe()<13)return 1}return 2}function pDt(e,t){const n=fDt();let r;const i=t||e,a=()=>{n!==0&&(n===1?document.body.scrollTop=document.body.scrollHeight:i.scrollIntoView(!1))};e.addEventListener("focus",()=>{setTimeout(a,300),r=setTimeout(a,1e3)}),e.addEventListener("blur",()=>{clearTimeout(r),n&&Ewe&&setTimeout(()=>{document.body.scrollIntoView()})})}function hDt(e,t){const{items:n}=e.clipboardData;if(n&&n.length)for(let r=0;r{const[s,l]=d.useState(null),{value:c,placeholder:u,onFocus:f,onBlur:p,onKeyDown:h,onChange:m}=o,g=ja(M=>M.currentTicket),v=Na(M=>M.memberInfo),y=d.useCallback(M=>{hDt(M,l)},[]),w=d.useCallback(()=>{l(null)},[]),b=d.useCallback(()=>{n&&s&&Promise.resolve(n(s)).then(()=>{l(null)})},[n,s]);d.useEffect(()=>{if(mDt&&e.current){const M=document.querySelector(".Composer");pDt(e.current,M)}},[e]);const[C,k]=d.useState("@"),S=(M,P)=>{console.log("onMentionsSearch:",P),k(P)},_=M=>{m(M,null)},E=M=>{console.log("onMetionSelect",M)},$=M=>{h(M)};return x.jsxs("div",{className:Zn({"S--invisible":t}),children:[x.jsx(j4,{className:"Composer-input",rows:1,value:c,autoSize:!0,allowClear:!0,placeholder:u,prefix:["@","/"],onSearch:S,enterKeyHint:"send",onFocus:f,onBlur:p,onKeyDown:$,onChange:_,onSelect:E,onPaste:n?y:void 0,options:r[C],disabled:!Ja(i,g,a,v),ref:e}),s&&x.jsx(_we,{file:s,onCancel:w,onSend:b})]})},Wte=({disabled:e,onClick:t})=>{const{trans:n}=h1("Composer");return x.jsx("div",{className:"Composer-actions",children:x.jsx(qs,{className:"Composer-sendBtn",disabled:e,onMouseDown:t,color:"primary",children:n("send")})})},Vte="S--focusing",gDt=te.forwardRef((e,t)=>{const{text:n="",textOnce:r,inputType:i="text",wideBreakpoint:a,placeholder:o="请输入...",recorder:s={},onInputTypeChange:l,onFocus:c,onBlur:u,onChange:f,onSend:p,onImageSend:h,onAccessoryToggle:m,toolbar:g=[],onToolbarClick:v,rightAction:y,inputOptions:w,metionOptions:b,fromTicketTab:C=!1,chatThread:k}=e,[S,_]=d.useState(n),[E,$]=d.useState(""),[M,P]=d.useState(o),[R,O]=d.useState(i||"text"),[j,I]=d.useState(!1),[A,N]=d.useState(""),F=d.useRef(null),K=d.useRef(!1),L=d.useRef(),V=d.useRef(),B=d.useRef(!1),[U,Y]=d.useState(!1),ee=ja(we=>we.currentTicket),ie=Na(we=>we.memberInfo);d.useEffect(()=>{const we=a&&window.matchMedia?window.matchMedia(`(min-width: ${a})`):!1;function se(ye){Y(ye.matches)}return Y(we&&we.matches),we&&we.addListener(se),()=>{we&&we.removeListener(se)}},[a]),d.useEffect(()=>{aw("S--wide",U),U||N("")},[U]),d.useEffect(()=>{B.current&&m&&m(j)},[j,m]),d.useEffect(()=>{r?($(r),P(r)):($(""),P(o))},[o,r]),d.useEffect(()=>{B.current=!0},[]),d.useImperativeHandle(t,()=>({setText:_}));const Z=d.useCallback(()=>{const we=R==="voice",se=we?"text":"voice";if(O(se),we){const ye=F.current;ye.focus(),ye.selectionStart=ye.selectionEnd=ye.value.length}l&&l(se)},[R,l]),X=d.useCallback(we=>{clearTimeout(L.current),aw(Vte,!0),K.current=!0,c&&c(we)},[c]),ae=d.useCallback(we=>{L.current=setTimeout(()=>{aw(Vte,!1),K.current=!1},0),u&&u(we)},[u]),oe=d.useCallback(()=>{S?(p("text",S),_("")):E&&p("text",E),E&&($(""),P(o)),K.current&&F.current.focus()},[o,p,S,E]),le=d.useCallback(we=>{!we.shiftKey&&we.keyCode===13&&(oe(),we.preventDefault())},[oe]),ce=d.useCallback((we,se)=>{_(we),f&&f(we,se)},[f]),pe=d.useCallback(we=>{oe(),we.preventDefault()},[oe]),me=d.useCallback(()=>{I(!j)},[j]),re=d.useCallback(()=>{setTimeout(()=>{I(!1),N("")})},[]),fe=d.useCallback((we,se)=>{v&&v(we,se),we.render&&(V.current=se.currentTarget,N(we.render))},[v]),ve=d.useCallback(()=>{N("")},[]),$e=R==="text",Ce=$e?"volume-circle":"keyboard-circle",be=g.length>0,Se={...w,value:S,inputRef:F,placeholder:M,onFocus:X,onBlur:ae,onKeyDown:le,onChange:ce,onImageSend:h,metionOptions:b};return U?C&&!Ja(C,ee,k,ie)?x.jsx(x.Fragment,{}):x.jsxs("div",{className:"Composer Composer--lg",children:[be&&g.map(we=>x.jsx(lDt,{item:we,onClick:se=>fe(we,se)},we.type)),A&&x.jsx(sDt,{active:!!A,target:V.current,onClose:ve,children:A}),x.jsx("div",{className:"Composer-inputWrap",children:x.jsx(Ute,{invisible:!1,...Se,disabled:!Ja(C,ee,k,ie),fromTicketTab:C,chatThread:k})}),x.jsx(Wte,{onClick:pe,disabled:!S||!Ja(C,ee,k,ie)})]}):C&&!Ja(C,ee,k,ie)?x.jsx(x.Fragment,{}):x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"Composer",children:[s.canRecord&&x.jsx(w_,{className:"Composer-inputTypeBtn","data-icon":Ce,icon:Ce,onClick:Z,"aria-label":$e?"切换到语音输入":"切换到键盘输入"}),x.jsxs("div",{className:"Composer-inputWrap",children:[x.jsx(Ute,{invisible:!$e,...Se,disabled:!W2(C,ee),fromTicketTab:C,chatThread:k}),!$e&&x.jsx(iDt,{...s})]}),!S&&y&&x.jsx(w_,{...y}),be&&x.jsx(w_,{className:Zn("Composer-toggleBtn",{active:j}),icon:"plus-circle",onClick:me,"aria-label":j?"关闭工具栏":"展开工具栏"}),(S||E)&&x.jsx(Wte,{onClick:pe,disabled:!1})]}),j&&x.jsx(aDt,{onClickOutside:re,children:A||x.jsx(GAt,{items:g,onClick:fe})})]})}),{TextArea:vDt}=Ur,$we=te.forwardRef((e,t)=>{const{wideBreakpoint:n,locale:r="zh-CN",locales:i,elderMode:a,navbar:o,renderNavbar:s,loadMoreText:l,renderBeforeMessageList:c,messagesRef:u,onRefresh:f,onScroll:p,messages:h=[],isTyping:m,showTransition:g,translationValue:v,translationPlaceholder:y,translationOnChange:w,renderMessageContent:b,onBackBottomShow:C,onBackBottomClick:k,quickReplies:S=[],quickRepliesVisible:_,onQuickReplyClick:E=()=>{},onQuickReplyScroll:$,renderQuickReplies:M,text:P,textOnce:R,placeholder:O,onInputFocus:j,onInputChange:I,onInputBlur:A,onSend:N,onImageSend:F,inputOptions:K,composerRef:L,inputType:V,onInputTypeChange:B,recorder:U,toolbar:Y,onToolbarClick:ee,onAccessoryToggle:ie,rightAction:Z,metionOptions:X,Composer:ae=gDt,fromTicketTab:oe=!1,chatThread:le}=e,ce=ja(re=>re.currentTicket),pe=Na(re=>re.memberInfo);function me(re){u&&u.current&&u.current.scrollToEnd({animated:!1,force:!0}),j&&j(re)}return d.useEffect(()=>{const re=document.documentElement;uDt()&&(re.dataset.safari="");const fe=kwe();fe&&fe<11&&(re.dataset.oldIos="")},[]),x.jsx(rAt,{locale:r,locales:i,elderMode:a,children:x.jsxs("div",{className:"ChatApp","data-elder-mode":a,ref:t,children:[s?s():o&&x.jsx(RAt,{...o}),(Ja(oe,ce,le,pe)||W2(oe,ce))&&x.jsx(eDt,{ref:u,loadMoreText:l,messages:h,isTyping:m,renderBeforeMessageList:c,renderMessageContent:b,onRefresh:f,onScroll:p,onBackBottomShow:C,onBackBottomClick:k,fromTicketTab:oe,chatThread:le}),x.jsxs("div",{className:"ChatFooter",children:[M?M():(Ja(oe,ce,le,pe)||W2(oe,ce))&&x.jsx(zAt,{items:S,visible:_,onClick:E,onScroll:$,fromTicketTab:oe,chatThread:le}),g&&x.jsx("div",{style:{float:"left",marginLeft:10,marginTop:5,minWidth:200},children:x.jsx(vDt,{value:v,onChange:re=>w(re.target.value),rows:3,placeholder:y})}),(Ja(oe,ce,le,pe)||W2(oe,ce))&&x.jsx(ae,{wideBreakpoint:n,ref:L,inputType:V,text:P,textOnce:R,inputOptions:K,placeholder:O,onAccessoryToggle:ie,recorder:U,toolbar:Y,onToolbarClick:ee,onInputTypeChange:B,onFocus:me,onChange:I,onBlur:A,onSend:N,onImageSend:F,rightAction:Z,metionOptions:X,fromTicketTab:oe,chatThread:le})]})]})})});var yDt=typeof Element<"u",bDt=typeof Map=="function",wDt=typeof Set=="function",xDt=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function x_(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!x_(e[r],t[r]))return!1;return!0}var a;if(bDt&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!x_(r.value[1],t.get(r.value[0])))return!1;return!0}if(wDt&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(xDt&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(yDt&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!x_(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var SDt=function(t,n){try{return x_(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const CDt=ei(SDt);var _Dt=function(e,t,n,r,i,a,o,s){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,o,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},kDt=_Dt;const qte=ei(kDt);var EDt=function(t,n,r,i){var a=r?r.call(i,t,n):void 0;if(a!==void 0)return!!a;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),s=Object.keys(n);if(o.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Mwe||{}),cP={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Kte=Object.values(Mwe),WH={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},MDt=Object.entries(WH).reduce((e,[t,n])=>(e[n]=t,e),{}),ru="data-rh",Fv={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Lv=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},TDt=e=>{let t=Lv(e,"title");const n=Lv(e,Fv.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Lv(e,Fv.DEFAULT_TITLE);return t||r||void 0},PDt=e=>Lv(e,Fv.ON_CHANGE_CLIENT_STATE)||(()=>{}),uP=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),ODt=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let a=0;aconsole&&typeof console.warn=="function"&&console.warn(e),n2=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&RDt(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,a)=>{const o={};a.filter(l=>{let c;const u=Object.keys(l);for(let p=0;pi.push(l));const s=Object.keys(o);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let n=0;n({baseTag:ODt(["href"],e),bodyAttributes:uP("bodyAttributes",e),defer:Lv(e,Fv.DEFER),encode:Lv(e,Fv.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:uP("htmlAttributes",e),linkTags:n2("link",["rel","href"],e),metaTags:n2("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:n2("noscript",["innerHTML"],e),onChangeClientState:PDt(e),scriptTags:n2("script",["src","innerHTML"],e),styleTags:n2("style",["cssText"],e),title:TDt(e),titleAttributes:uP("titleAttributes",e),prioritizeSeoTags:IDt(e,Fv.PRIORITIZE_SEO_TAGS)}),Twe=e=>Array.isArray(e)?e.join(""):e,NDt=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(NDt(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Gte=(e,t)=>({...e,[t]:void 0}),ADt=["noscript","script","style"],yA=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),Pwe=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),DDt=(e,t,n,r)=>{const i=Pwe(n),a=Twe(t);return i?`<${e} ${ru}="true" ${i}>${yA(a,r)}`:`<${e} ${ru}="true">${yA(a,r)}`},FDt=(e,t,n=!0)=>t.reduce((r,i)=>{const a=i,o=Object.keys(a).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const f=typeof a[u]>"u"?u:`${u}="${yA(a[u],n)}"`;return c?`${c} ${f}`:f},""),s=a.innerHTML||a.cssText||"",l=ADt.indexOf(e)===-1;return`${r}<${e} ${ru}="true" ${o}${l?"/>":`>${s}`}`},""),Owe=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=WH[r];return n[i||r]=e[r],n},t),LDt=(e,t,n)=>{const r={key:t,[ru]:!0},i=Owe(n,r);return[te.createElement("title",i,t)]},S_=(e,t)=>t.map((n,r)=>{const i={key:r,[ru]:!0};return Object.keys(n).forEach(a=>{const s=WH[a]||a;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[s]=n[a]}),te.createElement(e,i)}),Jl=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>LDt(e,t.title,t.titleAttributes),toString:()=>DDt(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Owe(t),toString:()=>Pwe(t)};default:return{toComponent:()=>S_(e,t),toString:()=>FDt(e,t,n)}}},BDt=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=dP(e,cP.meta),a=dP(t,cP.link),o=dP(n,cP.script);return{priorityMethods:{toComponent:()=>[...S_("meta",i.priority),...S_("link",a.priority),...S_("script",o.priority)],toString:()=>`${Jl("meta",i.priority,r)} ${Jl("link",a.priority,r)} ${Jl("script",o.priority,r)}`},metaTags:i.default,linkTags:a.default,scriptTags:o.default}},zDt=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:a,styleTags:o,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:f,scriptTags:p}=e,h={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:h,linkTags:u,metaTags:f,scriptTags:p}=BDt(e)),{priority:h,base:Jl("base",t,r),bodyAttributes:Jl("bodyAttributes",n,r),htmlAttributes:Jl("htmlAttributes",i,r),link:Jl("link",u,r),meta:Jl("meta",f,r),noscript:Jl("noscript",a,r),script:Jl("script",p,r),style:Jl("style",o,r),title:Jl("title",{title:s,titleAttributes:l},r)}},bA=zDt,JS=[],Rwe=!!(typeof window<"u"&&window.document&&window.document.createElement),wA=class{constructor(e,t){Gr(this,"instances",[]);Gr(this,"canUseDOM",Rwe);Gr(this,"context");Gr(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?JS:this.instances,add:e=>{(this.canUseDOM?JS:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?JS:this.instances).indexOf(e);(this.canUseDOM?JS:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=bA({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},HDt={},Iwe=te.createContext(HDt),Nm,jwe=(Nm=class extends d.Component{constructor(n){super(n);Gr(this,"helmetData");this.helmetData=new wA(this.props.context||{},Nm.canUseDOM)}render(){return te.createElement(Iwe.Provider,{value:this.helmetData.value},this.props.children)}},Gr(Nm,"canUseDOM",Rwe),Nm),W1=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${ru}]`),i=[].slice.call(r),a=[];let o;return t&&t.length&&t.forEach(s=>{const l=document.createElement(e);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c))if(c==="innerHTML")l.innerHTML=s.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=s.cssText:l.appendChild(document.createTextNode(s.cssText));else{const u=c,f=typeof s[u]>"u"?"":s[u];l.setAttribute(c,f)}l.setAttribute(ru,"true"),i.some((c,u)=>(o=u,l.isEqualNode(c)))?i.splice(o,1):a.push(l)}),i.forEach(s=>{var l;return(l=s.parentNode)==null?void 0:l.removeChild(s)}),a.forEach(s=>n.appendChild(s)),{oldTags:i,newTags:a}},xA=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(ru),i=r?r.split(","):[],a=[...i],o=Object.keys(t);for(const s of o){const l=t[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),i.indexOf(s)===-1&&i.push(s);const c=a.indexOf(s);c!==-1&&a.splice(c,1)}for(let s=a.length-1;s>=0;s-=1)n.removeAttribute(a[s]);i.length===a.length?n.removeAttribute(ru):n.getAttribute(ru)!==o.join(",")&&n.setAttribute(ru,o.join(","))},UDt=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Twe(e)),xA("title",t)},Yte=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:a,metaTags:o,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:f,titleAttributes:p}=e;xA("body",r),xA("html",i),UDt(f,p);const h={baseTag:W1("base",n),linkTags:W1("link",a),metaTags:W1("meta",o),noscriptTags:W1("noscript",s),scriptTags:W1("script",c),styleTags:W1("style",u)},m={},g={};Object.keys(h).forEach(v=>{const{newTags:y,oldTags:w}=h[v];y.length&&(m[v]=y),w.length&&(g[v]=h[v].oldTags)}),t&&t(),l(e,m,g)},r2=null,WDt=e=>{r2&&cancelAnimationFrame(r2),e.defer?r2=requestAnimationFrame(()=>{Yte(e,()=>{r2=null})}):(Yte(e),r2=null)},VDt=WDt,Xte=class extends d.Component{constructor(){super(...arguments);Gr(this,"rendered",!1)}shouldComponentUpdate(t){return!$Dt(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=jDt(t.get().map(a=>{const o={...a.props};return delete o.context,o}));jwe.canUseDOM?VDt(i):bA&&(r=bA(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},VP,VH=(VP=class extends d.Component{shouldComponentUpdate(e){return!CDt(Gte(this.props,"helmetData"),Gte(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return qte(Kte.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Kte.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),qte(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return te.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...a}=r.props,o=Object.keys(a).reduce((l,c)=>(l[MDt[c]||c]=a[c],l),{});let{type:s}=r;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(r,i),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,i);break;default:t=this.mapObjectTypeChildren(r,t,o,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof wA)){const i=r;r=new wA(i.context,!0),delete n.helmetData}return r?te.createElement(Xte,{...n,context:r.value}):te.createElement(Iwe.Consumer,null,i=>te.createElement(Xte,{...n,context:i}))}},Gr(VP,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),VP);function Nwe(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var qDt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,KDt=Nwe(function(e){return qDt.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),GDt=!1;function YDt(e){if(e.sheet)return e.sheet;for(var t=0;t0?go(tb,--Ks):0,Z0--,Ra===10&&(Z0=1,Z$--),Ra}function Ol(){return Ra=Ks2||T3(Ra)>3?"":" "}function lFt(e,t){for(;--t&&Ol()&&!(Ra<48||Ra>102||Ra>57&&Ra<65||Ra>70&&Ra<97););return sx(e,C_()+(t<6&&fd()==32&&Ol()==32))}function CA(e){for(;Ol();)switch(Ra){case e:return Ks;case 34:case 39:e!==34&&e!==39&&CA(Ra);break;case 40:e===41&&CA(e);break;case 92:Ol();break}return Ks}function cFt(e,t){for(;Ol()&&e+Ra!==57;)if(e+Ra===84&&fd()===47)break;return"/*"+sx(t,Ks-1)+"*"+X$(e===47?e:Ol())}function uFt(e){for(;!T3(fd());)Ol();return sx(e,Ks)}function dFt(e){return zwe(k_("",null,null,null,[""],e=Bwe(e),0,[0],e))}function k_(e,t,n,r,i,a,o,s,l){for(var c=0,u=0,f=o,p=0,h=0,m=0,g=1,v=1,y=1,w=0,b="",C=i,k=a,S=r,_=b;v;)switch(m=w,w=Ol()){case 40:if(m!=108&&go(_,f-1)==58){SA(_+=ai(__(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:_+=__(w);break;case 9:case 10:case 13:case 32:_+=sFt(m);break;case 92:_+=lFt(C_()-1,7);continue;case 47:switch(fd()){case 42:case 47:eC(fFt(cFt(Ol(),C_()),t,n),l);break;default:_+="/"}break;case 123*g:s[c++]=Xu(_)*y;case 125*g:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+u:y==-1&&(_=ai(_,/\f/g,"")),h>0&&Xu(_)-f&&eC(h>32?Qte(_+";",r,n,f-1):Qte(ai(_," ","")+";",r,n,f-2),l);break;case 59:_+=";";default:if(eC(S=Zte(_,t,n,c,u,i,s,b,C=[],k=[],f),a),w===123)if(u===0)k_(_,t,S,S,C,a,f,s,k);else switch(p===99&&go(_,3)===110?100:p){case 100:case 108:case 109:case 115:k_(e,S,S,r&&eC(Zte(e,S,S,0,0,i,s,b,i,C=[],f),k),i,k,f,s,r?C:k);break;default:k_(_,S,S,S,[""],k,0,s,k)}}c=u=h=0,g=y=1,b=_="",f=o;break;case 58:f=1+Xu(_),h=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&oFt()==125)continue}switch(_+=X$(w),w*g){case 38:y=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Xu(_)-1)*y,y=1;break;case 64:fd()===45&&(_+=__(Ol())),p=fd(),u=f=Xu(b=_+=uFt(C_())),w++;break;case 45:m===45&&Xu(_)==2&&(g=0)}}return a}function Zte(e,t,n,r,i,a,o,s,l,c,u){for(var f=i-1,p=i===0?a:[""],h=GH(p),m=0,g=0,v=0;m0?p[y]+" "+w:ai(w,/&\f/g,p[y])))&&(l[v++]=b);return Q$(e,t,n,i===0?qH:s,l,c,u)}function fFt(e,t,n){return Q$(e,t,n,Awe,X$(aFt()),M3(e,2,-2),0)}function Qte(e,t,n,r){return Q$(e,t,n,KH,M3(e,0,r),M3(e,r+1,-1),r)}function Bv(e,t){for(var n="",r=GH(e),i=0;i6)switch(go(e,t+1)){case 109:if(go(e,t+4)!==45)break;case 102:return ai(e,/(.+:)(.+)-([^]+)/,"$1"+ii+"$2-$3$1"+i5+(go(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~SA(e,"stretch")?Hwe(ai(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(go(e,t+1)!==115)break;case 6444:switch(go(e,Xu(e)-3-(~SA(e,"!important")&&10))){case 107:return ai(e,":",":"+ii)+e;case 101:return ai(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ii+(go(e,14)===45?"inline-":"")+"box$3$1"+ii+"$2$3$1"+No+"$2box$3")+e}break;case 5936:switch(go(e,t+11)){case 114:return ii+e+No+ai(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ii+e+No+ai(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ii+e+No+ai(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ii+e+No+e+e}return e}var xFt=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case KH:t.return=Hwe(t.value,t.length);break;case Dwe:return Bv([i2(t,{value:ai(t.value,"@","@"+ii)})],i);case qH:if(t.length)return iFt(t.props,function(a){switch(rFt(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bv([i2(t,{props:[ai(a,/:(read-\w+)/,":"+i5+"$1")]})],i);case"::placeholder":return Bv([i2(t,{props:[ai(a,/:(plac\w+)/,":"+ii+"input-$1")]}),i2(t,{props:[ai(a,/:(plac\w+)/,":"+i5+"$1")]}),i2(t,{props:[ai(a,/:(plac\w+)/,No+"input-$1")]})],i)}return""})}},SFt=[xFt],CFt=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||SFt,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),y=1;y=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var MFt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},TFt=!1,PFt=/[A-Z]|^ms/g,OFt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wwe=function(t){return t.charCodeAt(1)===45},ene=function(t){return t!=null&&typeof t!="boolean"},fP=Nwe(function(e){return Wwe(e)?e:e.replace(PFt,"-$&").toLowerCase()}),tne=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(OFt,function(r,i,a){return Zu={name:i,styles:a,next:Zu},i})}return MFt[t]!==1&&!Wwe(t)&&typeof n=="number"&&n!==0?n+"px":n},RFt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function P3(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Zu={name:i.name,styles:i.styles,next:Zu},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Zu={name:o.name,styles:o.styles,next:Zu},o=o.next;var s=a.styles+";";return s}return IFt(e,t,n)}case"function":{if(e!==void 0){var l=Zu,c=n(e);return Zu=l,P3(e,t,c)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function IFt(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?BFt:zFt},ine=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},HFt=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Uwe(n,r,i),DFt(function(){return EFt(n,r,i)}),null},UFt=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=ine(t,n,r),l=s||rne(i),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,h=1;h({messageList:[],addMessageProtobuf(n){var i;const r={...n,extra:JSON.parse(n==null?void 0:n.extra),topic:(i=n.thread)==null?void 0:i.topic};t().addMessage(r)},addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===$f){const a=t().messageList.findIndex(o=>o.type===$f&&o.uid===n.uid);if(a!==-1){const o=[...t().messageList];o[a].content+=n.content,e({messageList:o});return}}const i=t().messageList.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...t().messageList];a[i]=n,e({messageList:a})}}else{const i=t().messageList[t().messageList.length-1];if(i&&n.type===m0&&i.type===m0){const a=t().messageList.findIndex(s=>s.uid===i.uid),o=[...t().messageList];o[a]=n,e({messageList:o})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let a=0;al.uid===o.uid)||r.unshift(o)}const i=[...r,...t().messageList].sort((a,o)=>{const s=en(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=en(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",i),e({messageList:i})},updateMessageStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);if(i!==-1){const a=[...t().messageList];a[i].status=r,e({messageList:a})}},updateMessage(n){const r=t().messageList.findIndex(i=>i.uid===n.uid);if(r!==-1){const i=[...t().messageList];i[r].content=n.content,e({messageList:i})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i.splice(r,1),e({messageList:i})}},recallMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i[r].type=V5,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const a=en(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),o=en(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return a-o});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:j6e})));function XFt(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ZFt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,QFt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,JFt={};function ane(e,t){return(JFt.jsx?QFt:ZFt).test(e)}const eLt=/[ \t\n\f\r]/g;function tLt(e){return typeof e=="object"?e.type==="text"?one(e.value):!1:one(e)}function one(e){return e.replace(eLt,"")===""}class lx{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}lx.prototype.property={};lx.prototype.normal={};lx.prototype.space=null;function Kwe(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&oLt.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(lne,uLt);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!lne.test(a)){let o=a.replace(sLt,cLt);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=XH}return new i(r,t)}function cLt(e){return"-"+e.toLowerCase()}function uLt(e){return e.charAt(1).toUpperCase()}const dLt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},fLt=Kwe([Xwe,Ywe,Jwe,e3e,iLt],"html"),ZH=Kwe([Xwe,Ywe,Jwe,e3e,aLt],"svg");function pLt(e){return e.join(" ").trim()}var t3e={},cne=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,hLt=/\n/g,mLt=/^\s*/,gLt=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,vLt=/^:\s*/,yLt=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,bLt=/^[;\s]*/,wLt=/^\s+|\s+$/g,xLt=` +`,une="/",dne="*",dm="",SLt="comment",CLt="declaration",_Lt=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var g=m.match(hLt);g&&(n+=g.length);var v=m.lastIndexOf(xLt);r=~v?m.length-v:r+m.length}function a(){var m={line:n,column:r};return function(g){return g.position=new o(m),c(),g}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(m){var g=new Error(t.source+":"+n+":"+r+": "+m);if(g.reason=m,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function l(m){var g=m.exec(e);if(g){var v=g[0];return i(v),e=e.slice(v.length),g}}function c(){l(mLt)}function u(m){var g;for(m=m||[];g=f();)g!==!1&&m.push(g);return m}function f(){var m=a();if(!(une!=e.charAt(0)||dne!=e.charAt(1))){for(var g=2;dm!=e.charAt(g)&&(dne!=e.charAt(g)||une!=e.charAt(g+1));)++g;if(g+=2,dm===e.charAt(g-1))return s("End of comment missing");var v=e.slice(2,g-2);return r+=2,i(v),e=e.slice(g),r+=2,m({type:SLt,comment:v})}}function p(){var m=a(),g=l(gLt);if(g){if(f(),!l(vLt))return s("property missing ':'");var v=l(yLt),y=m({type:CLt,property:fne(g[0].replace(cne,dm)),value:v?fne(v[0].replace(cne,dm)):dm});return l(bLt),y}}function h(){var m=[];u(m);for(var g;g=p();)g!==!1&&(m.push(g),u(m));return m}return c(),h()};function fne(e){return e?e.replace(wLt,dm):dm}var kLt=oi&&oi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t3e,"__esModule",{value:!0});var pne=t3e.default=$Lt,ELt=kLt(_Lt);function $Lt(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,ELt.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var o=a.property,s=a.value;i?t(o,s,a):s&&(n=n||{},n[o]=s)}}),n}const MLt=pne.default||pne,n3e=r3e("end"),QH=r3e("start");function r3e(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function TLt(e){const t=QH(e),n=n3e(e);if(t&&n)return{start:t,end:n}}function ow(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?hne(e.position):"start"in e||"end"in e?hne(e):"line"in e||"column"in e?EA(e):""}function EA(e){return mne(e&&e.line)+":"+mne(e&&e.column)}function hne(e){return EA(e&&e.start)+"-"+EA(e&&e.end)}function mne(e){return e&&typeof e=="number"?e:1}class is extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=ow(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}is.prototype.file="";is.prototype.name="";is.prototype.reason="";is.prototype.message="";is.prototype.stack="";is.prototype.column=void 0;is.prototype.line=void 0;is.prototype.ancestors=void 0;is.prototype.cause=void 0;is.prototype.fatal=void 0;is.prototype.place=void 0;is.prototype.ruleId=void 0;is.prototype.source=void 0;const JH={}.hasOwnProperty,PLt=new Map,OLt=/[A-Z]/g,RLt=/-([a-z])/g,ILt=new Set(["table","tbody","thead","tfoot","tr"]),jLt=new Set(["td","th"]),i3e="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function NLt(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ULt(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=HLt(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ZH:fLt,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=a3e(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function a3e(e,t,n){if(t.type==="element")return ALt(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return DLt(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return LLt(e,t,n);if(t.type==="mdxjsEsm")return FLt(e,t);if(t.type==="root")return BLt(e,t,n);if(t.type==="text")return zLt(e,t)}function ALt(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ZH,e.schema=i),e.ancestors.push(t);const a=s3e(e,t.tagName,!1),o=WLt(e,t);let s=tU(e,t);return ILt.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!tLt(l):!0})),o3e(e,o,a,t),eU(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function DLt(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}O3(e,t.position)}function FLt(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);O3(e,t.position)}function LLt(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=ZH,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:s3e(e,t.name,!0),o=VLt(e,t),s=tU(e,t);return o3e(e,o,a,t),eU(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function BLt(e,t,n){const r={};return eU(r,tU(e,t)),e.create(t,e.Fragment,r,n)}function zLt(e,t){return t.value}function o3e(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eU(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function HLt(e,t,n){return r;function r(i,a,o,s){const c=Array.isArray(o.children)?n:t;return s?c(a,o,s):c(a,o)}}function ULt(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=QH(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function WLt(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&JH.call(t.properties,i)){const a=qLt(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&jLt.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function VLt(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else O3(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else O3(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function tU(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:PLt;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(kd(e,e.length,0,t),e):t}const yne={}.hasOwnProperty;function tBt(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Hv(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ed=Ph(/[A-Za-z]/),$l=Ph(/[\dA-Za-z]/),iBt=Ph(/[#-'*+\--9=?A-Z^-~]/);function $A(e){return e!==null&&(e<32||e===127)}const MA=Ph(/\d/),aBt=Ph(/[\dA-Fa-f]/),oBt=Ph(/[!-/:-@[-`{-~]/);function dr(e){return e!==null&&e<-2}function Hs(e){return e!==null&&(e<0||e===32)}function si(e){return e===-2||e===-1||e===32}const sBt=Ph(new RegExp("\\p{P}|\\p{S}","u")),lBt=Ph(/\s/);function Ph(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function rb(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ti(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return si(l)?(e.enter(n),s(l)):t(l)}function s(l){return si(l)&&a++o))return;const _=t.events.length;let E=_,$,M;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){if($){M=t.events[E][1].end;break}$=!0}for(y(r),S=_;Sb;){const k=n[C];t.containerState=k[1],k[0].exit.call(t,e)}n.length=b}function w(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function pBt(e,t,n){return Ti(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wne(e){if(e===null||Hs(e)||lBt(e))return 1;if(sBt(e))return 2}function rU(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[n][1].start};xne(f,-l),xne(p,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=oc(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=oc(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=oc(c,rU(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=oc(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=oc(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,kd(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n0&&si(S)?Ti(e,w,"linePrefix",a+1)(S):w(S)}function w(S){return S===null||dr(S)?e.check(Sne,g,C)(S):(e.enter("codeFlowValue"),b(S))}function b(S){return S===null||dr(S)?(e.exit("codeFlowValue"),w(S)):(e.consume(S),b)}function C(S){return e.exit("codeFenced"),t(S)}function k(S,_,E){let $=0;return M;function M(I){return S.enter("lineEnding"),S.consume(I),S.exit("lineEnding"),P}function P(I){return S.enter("codeFencedFence"),si(I)?Ti(S,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):R(I)}function R(I){return I===s?(S.enter("codeFencedFenceSequence"),O(I)):E(I)}function O(I){return I===s?($++,S.consume(I),O):$>=o?(S.exit("codeFencedFenceSequence"),si(I)?Ti(S,j,"whitespace")(I):j(I)):E(I)}function j(I){return I===null||dr(I)?(S.exit("codeFencedFence"),_(I)):E(I)}}}function kBt(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const mP={name:"codeIndented",tokenize:$Bt},EBt={partial:!0,tokenize:MBt};function $Bt(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Ti(e,a,"linePrefix",5)(c)}function a(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):dr(c)?e.attempt(EBt,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||dr(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function MBt(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):dr(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Ti(e,a,"linePrefix",5)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):dr(o)?i(o):n(o)}}const TBt={name:"codeText",previous:OBt,resolve:PBt,tokenize:RBt};function PBt(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&a2(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),a2(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),a2(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function h3e(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return f;function f(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),p):y===null||y===32||y===41||$A(y)?n(y):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(y))}function p(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(s),p(y)):y===null||y===60||dr(y)?n(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function g(y){return!u&&(y===null||y===41||Hs(y))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(y)):u999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):dr(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||dr(h)||s++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!si(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function g3e(e,t,n,r,i,a){let o;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,l):n(p)}function l(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),c(p))}function c(p){return p===o?(e.exit(a),l(o)):p===null?n(p):dr(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Ti(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===o||p===null||dr(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?f:u)}function f(p){return p===o||p===92?(e.consume(p),u):u(p)}}function sw(e,t){let n;return r;function r(i){return dr(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):si(i)?Ti(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const BBt={name:"definition",tokenize:HBt},zBt={partial:!0,tokenize:UBt};function HBt(e,t,n){const r=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return m3e.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Hv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Hs(h)?sw(e,c)(h):c(h)}function c(h){return h3e(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(zBt,f,f)(h)}function f(h){return si(h)?Ti(e,p,"whitespace")(h):p(h)}function p(h){return h===null||dr(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function UBt(e,t,n){return r;function r(s){return Hs(s)?sw(e,i)(s):n(s)}function i(s){return g3e(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return si(s)?Ti(e,o,"whitespace")(s):o(s)}function o(s){return s===null||dr(s)?t(s):n(s)}}const WBt={name:"hardBreakEscape",tokenize:VBt};function VBt(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return dr(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const qBt={name:"headingAtx",resolve:KBt,tokenize:GBt};function KBt(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},kd(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function GBt(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),a(u)}function a(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||Hs(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||dr(u)?(e.exit("atxHeading"),t(u)):si(u)?Ti(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||Hs(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const YBt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],_ne=["pre","script","style","textarea"],XBt={concrete:!0,name:"htmlFlow",resolveTo:JBt,tokenize:ezt},ZBt={partial:!0,tokenize:nzt},QBt={partial:!0,tokenize:tzt};function JBt(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ezt(e,t,n){const r=this;let i,a,o,s,l;return c;function c(U){return u(U)}function u(U){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(U),f}function f(U){return U===33?(e.consume(U),p):U===47?(e.consume(U),a=!0,g):U===63?(e.consume(U),i=3,r.interrupt?t:L):ed(U)?(e.consume(U),o=String.fromCharCode(U),v):n(U)}function p(U){return U===45?(e.consume(U),i=2,h):U===91?(e.consume(U),i=5,s=0,m):ed(U)?(e.consume(U),i=4,r.interrupt?t:L):n(U)}function h(U){return U===45?(e.consume(U),r.interrupt?t:L):n(U)}function m(U){const Y="CDATA[";return U===Y.charCodeAt(s++)?(e.consume(U),s===Y.length?r.interrupt?t:R:m):n(U)}function g(U){return ed(U)?(e.consume(U),o=String.fromCharCode(U),v):n(U)}function v(U){if(U===null||U===47||U===62||Hs(U)){const Y=U===47,ee=o.toLowerCase();return!Y&&!a&&_ne.includes(ee)?(i=1,r.interrupt?t(U):R(U)):YBt.includes(o.toLowerCase())?(i=6,Y?(e.consume(U),y):r.interrupt?t(U):R(U)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(U):a?w(U):b(U))}return U===45||$l(U)?(e.consume(U),o+=String.fromCharCode(U),v):n(U)}function y(U){return U===62?(e.consume(U),r.interrupt?t:R):n(U)}function w(U){return si(U)?(e.consume(U),w):M(U)}function b(U){return U===47?(e.consume(U),M):U===58||U===95||ed(U)?(e.consume(U),C):si(U)?(e.consume(U),b):M(U)}function C(U){return U===45||U===46||U===58||U===95||$l(U)?(e.consume(U),C):k(U)}function k(U){return U===61?(e.consume(U),S):si(U)?(e.consume(U),k):b(U)}function S(U){return U===null||U===60||U===61||U===62||U===96?n(U):U===34||U===39?(e.consume(U),l=U,_):si(U)?(e.consume(U),S):E(U)}function _(U){return U===l?(e.consume(U),l=null,$):U===null||dr(U)?n(U):(e.consume(U),_)}function E(U){return U===null||U===34||U===39||U===47||U===60||U===61||U===62||U===96||Hs(U)?k(U):(e.consume(U),E)}function $(U){return U===47||U===62||si(U)?b(U):n(U)}function M(U){return U===62?(e.consume(U),P):n(U)}function P(U){return U===null||dr(U)?R(U):si(U)?(e.consume(U),P):n(U)}function R(U){return U===45&&i===2?(e.consume(U),A):U===60&&i===1?(e.consume(U),N):U===62&&i===4?(e.consume(U),V):U===63&&i===3?(e.consume(U),L):U===93&&i===5?(e.consume(U),K):dr(U)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ZBt,B,O)(U)):U===null||dr(U)?(e.exit("htmlFlowData"),O(U)):(e.consume(U),R)}function O(U){return e.check(QBt,j,B)(U)}function j(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),I}function I(U){return U===null||dr(U)?O(U):(e.enter("htmlFlowData"),R(U))}function A(U){return U===45?(e.consume(U),L):R(U)}function N(U){return U===47?(e.consume(U),o="",F):R(U)}function F(U){if(U===62){const Y=o.toLowerCase();return _ne.includes(Y)?(e.consume(U),V):R(U)}return ed(U)&&o.length<8?(e.consume(U),o+=String.fromCharCode(U),F):R(U)}function K(U){return U===93?(e.consume(U),L):R(U)}function L(U){return U===62?(e.consume(U),V):U===45&&i===2?(e.consume(U),L):R(U)}function V(U){return U===null||dr(U)?(e.exit("htmlFlowData"),B(U)):(e.consume(U),V)}function B(U){return e.exit("htmlFlow"),t(U)}}function tzt(e,t,n){const r=this;return i;function i(o){return dr(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function nzt(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(J$,t,n)}}const rzt={name:"htmlText",tokenize:izt};function izt(e,t,n){const r=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),c):L===47?(e.consume(L),k):L===63?(e.consume(L),b):ed(L)?(e.consume(L),E):n(L)}function c(L){return L===45?(e.consume(L),u):L===91?(e.consume(L),a=0,m):ed(L)?(e.consume(L),w):n(L)}function u(L){return L===45?(e.consume(L),h):n(L)}function f(L){return L===null?n(L):L===45?(e.consume(L),p):dr(L)?(o=f,N(L)):(e.consume(L),f)}function p(L){return L===45?(e.consume(L),h):f(L)}function h(L){return L===62?A(L):L===45?p(L):f(L)}function m(L){const V="CDATA[";return L===V.charCodeAt(a++)?(e.consume(L),a===V.length?g:m):n(L)}function g(L){return L===null?n(L):L===93?(e.consume(L),v):dr(L)?(o=g,N(L)):(e.consume(L),g)}function v(L){return L===93?(e.consume(L),y):g(L)}function y(L){return L===62?A(L):L===93?(e.consume(L),y):g(L)}function w(L){return L===null||L===62?A(L):dr(L)?(o=w,N(L)):(e.consume(L),w)}function b(L){return L===null?n(L):L===63?(e.consume(L),C):dr(L)?(o=b,N(L)):(e.consume(L),b)}function C(L){return L===62?A(L):b(L)}function k(L){return ed(L)?(e.consume(L),S):n(L)}function S(L){return L===45||$l(L)?(e.consume(L),S):_(L)}function _(L){return dr(L)?(o=_,N(L)):si(L)?(e.consume(L),_):A(L)}function E(L){return L===45||$l(L)?(e.consume(L),E):L===47||L===62||Hs(L)?$(L):n(L)}function $(L){return L===47?(e.consume(L),A):L===58||L===95||ed(L)?(e.consume(L),M):dr(L)?(o=$,N(L)):si(L)?(e.consume(L),$):A(L)}function M(L){return L===45||L===46||L===58||L===95||$l(L)?(e.consume(L),M):P(L)}function P(L){return L===61?(e.consume(L),R):dr(L)?(o=P,N(L)):si(L)?(e.consume(L),P):$(L)}function R(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),i=L,O):dr(L)?(o=R,N(L)):si(L)?(e.consume(L),R):(e.consume(L),j)}function O(L){return L===i?(e.consume(L),i=void 0,I):L===null?n(L):dr(L)?(o=O,N(L)):(e.consume(L),O)}function j(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Hs(L)?$(L):(e.consume(L),j)}function I(L){return L===47||L===62||Hs(L)?$(L):n(L)}function A(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function N(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),F}function F(L){return si(L)?Ti(e,K,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):K(L)}function K(L){return e.enter("htmlTextData"),o(L)}}const iU={name:"labelEnd",resolveAll:lzt,resolveTo:czt,tokenize:uzt},azt={tokenize:dzt},ozt={tokenize:fzt},szt={tokenize:pzt};function lzt(e){let t=-1;const n=[];for(;++t=3&&(c===null||dr(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),si(c)?Ti(e,s,"whitespace")(c):s(c))}}const Ms={continuation:{tokenize:Czt},exit:kzt,name:"list",tokenize:Szt},wzt={partial:!0,tokenize:Ezt},xzt={partial:!0,tokenize:_zt};function Szt(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:MA(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(E_,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return MA(h)&&++o<10?(e.consume(h),l):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(J$,r.interrupt?n:u,e.attempt(wzt,p,f))}function u(h){return r.containerState.initialBlankLine=!0,a++,p(h)}function f(h){return si(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Czt(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(J$,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ti(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!si(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(xzt,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ti(e,e.attempt(Ms,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function _zt(e,t,n){const r=this;return Ti(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function kzt(e){e.exit(this.containerState.type)}function Ezt(e,t,n){const r=this;return Ti(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!si(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const kne={name:"setextUnderline",resolveTo:$zt,tokenize:Mzt};function $zt(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function Mzt(e,t,n){const r=this;let i;return a;function a(c){let u=r.events.length,f;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){f=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),si(c)?Ti(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||dr(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Tzt={tokenize:Pzt};function Pzt(e){const t=this,n=e.attempt(J$,r,e.attempt(this.parser.constructs.flowInitial,i,Ti(e,e.attempt(this.parser.constructs.flow,i,e.attempt(NBt,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ozt={resolveAll:y3e()},Rzt=v3e("string"),Izt=v3e("text");function v3e(e){return{resolveAll:y3e(e==="text"?jzt:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(u){return c(u)?a(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),a(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const f=i[u];let p=-1;if(f)for(;++p-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Kzt(e,t){let n=-1;const r=[];let i;for(;++n0){const he=G.tokenStack[G.tokenStack.length-1];(he[1]||_ne).call(G,void 0,he[0])}for(H.position={start:up(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:up(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},xe=-1;++xe1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function aHt(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oHt(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function v3e(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function sHt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return v3e(e,t);const i={src:nb(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function lHt(e,t){const n={src:nb(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function cHt(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function uHt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return v3e(e,t);const i={href:nb(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function dHt(e,t){const n={href:nb(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function fHt(e,t,n){const r=e.all(t),i=n?pHt(n):y3e(t),a={},o=[];if(typeof t.checked=="boolean"){const u=r[0];let f;u&&u.type==="element"&&u.tagName==="p"?f=u:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s0){const he=G.tokenStack[G.tokenStack.length-1];(he[1]||$ne).call(G,void 0,he[0])}for(H.position={start:up(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:up(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},xe=-1;++xe1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function uHt(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dHt(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function x3e(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function fHt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return x3e(e,t);const i={src:rb(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function pHt(e,t){const n={src:rb(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function hHt(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function mHt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return x3e(e,t);const i={href:rb(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function gHt(e,t){const n={href:rb(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function vHt(e,t,n){const r=e.all(t),i=n?yHt(n):S3e(t),a={},o=[];if(typeof t.checked=="boolean"){const u=r[0];let f;u&&u.type==="element"&&u.tagName==="p"?f=u:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function hHt(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=YH(t.children[1]),l=Qwe(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function bHt(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const c=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push($ne(t.slice(i),i>0,!1)),a.join("")}function $ne(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===kne||a===Ene;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===kne||a===Ene;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function SHt(e,t){const n={type:"text",value:xHt(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function CHt(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const _Ht={blockquote:Jzt,break:eHt,code:tHt,delete:nHt,emphasis:rHt,footnoteReference:iHt,heading:aHt,html:oHt,imageReference:sHt,image:lHt,inlineCode:cHt,linkReference:uHt,link:dHt,listItem:fHt,list:hHt,paragraph:mHt,root:gHt,strong:vHt,table:yHt,tableCell:wHt,tableRow:bHt,text:SHt,thematicBreak:CHt,toml:JS,yaml:JS,definition:JS,footnoteDefinition:JS};function JS(){}const b3e=-1,Z$=0,i5=1,a5=2,nU=3,rU=4,iU=5,aU=6,w3e=7,x3e=8,Mne=typeof self=="object"?self:globalThis,kHt=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case Z$:case b3e:return n(o,i);case i5:{const s=n([],i);for(const l of o)s.push(r(l));return s}case a5:{const s=n({},i);for(const[l,c]of o)s[r(l)]=r(c);return s}case nU:return n(new Date(o),i);case rU:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case iU:{const s=n(new Map,i);for(const[l,c]of o)s.set(r(l),r(c));return s}case aU:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case w3e:{const{name:s,message:l}=o;return n(new Mne[s](l),i)}case x3e:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i)}return n(new Mne[a](o),i)};return r},Tne=e=>kHt(new Map,e)(0),W1="",{toString:EHt}={},{keys:$Ht}=Object,a2=e=>{const t=typeof e;if(t!=="object"||!e)return[Z$,t];const n=EHt.call(e).slice(8,-1);switch(n){case"Array":return[i5,W1];case"Object":return[a5,W1];case"Date":return[nU,W1];case"RegExp":return[rU,W1];case"Map":return[iU,W1];case"Set":return[aU,W1]}return n.includes("Array")?[i5,n]:n.includes("Error")?[w3e,n]:[a5,n]},eC=([e,t])=>e===Z$&&(t==="function"||t==="symbol"),MHt=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=a2(o);switch(s){case Z$:{let u=o;switch(l){case"bigint":s=x3e,u=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return i([b3e],o)}return i([s,u],o)}case i5:{if(l)return i([l,[...o]],o);const u=[],f=i([s,u],o);for(const p of o)u.push(a(p));return f}case a5:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const u=[],f=i([s,u],o);for(const p of $Ht(o))(e||!eC(a2(o[p])))&&u.push([a(p),a(o[p])]);return f}case nU:return i([s,o.toISOString()],o);case rU:{const{source:u,flags:f}=o;return i([s,{source:u,flags:f}],o)}case iU:{const u=[],f=i([s,u],o);for(const[p,h]of o)(e||!(eC(a2(p))||eC(a2(h))))&&u.push([a(p),a(h)]);return f}case aU:{const u=[],f=i([s,u],o);for(const p of o)(e||!eC(a2(p)))&&u.push(a(p));return f}}const{message:c}=o;return i([s,{name:l,message:c}],o)};return a},Pne=(e,{json:t,lossy:n}={})=>{const r=[];return MHt(!(t||n),!!t,new Map,r)(e),r},o5=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Tne(Pne(e,t)):structuredClone(e):(e,t)=>Tne(Pne(e,t));function THt(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function PHt(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function OHt(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||THt,r=e.options.footnoteBackLabel||PHt,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&m.push({type:"text",value:" "});let b=typeof n=="string"?n:n(l,h);typeof b=="string"&&(b={type:"text",value:b}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const v=u[u.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const b=v.children[v.children.length-1];b&&b.type==="text"?b.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...m)}else u.push(...m);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(u,!0)};e.patch(c,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...o5(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)}function yHt(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function bHt(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=QH(t.children[1]),l=n3e(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function _Ht(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const c=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Pne(t.slice(i),i>0,!1)),a.join("")}function Pne(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Mne||a===Tne;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Mne||a===Tne;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function $Ht(e,t){const n={type:"text",value:EHt(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function MHt(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const THt={blockquote:iHt,break:aHt,code:oHt,delete:sHt,emphasis:lHt,footnoteReference:cHt,heading:uHt,html:dHt,imageReference:fHt,image:pHt,inlineCode:hHt,linkReference:mHt,link:gHt,listItem:vHt,list:bHt,paragraph:wHt,root:xHt,strong:SHt,table:CHt,tableCell:kHt,tableRow:_Ht,text:$Ht,thematicBreak:MHt,toml:tC,yaml:tC,definition:tC,footnoteDefinition:tC};function tC(){}const C3e=-1,e7=0,a5=1,o5=2,aU=3,oU=4,sU=5,lU=6,_3e=7,k3e=8,One=typeof self=="object"?self:globalThis,PHt=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case e7:case C3e:return n(o,i);case a5:{const s=n([],i);for(const l of o)s.push(r(l));return s}case o5:{const s=n({},i);for(const[l,c]of o)s[r(l)]=r(c);return s}case aU:return n(new Date(o),i);case oU:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case sU:{const s=n(new Map,i);for(const[l,c]of o)s.set(r(l),r(c));return s}case lU:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case _3e:{const{name:s,message:l}=o;return n(new One[s](l),i)}case k3e:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i)}return n(new One[a](o),i)};return r},Rne=e=>PHt(new Map,e)(0),V1="",{toString:OHt}={},{keys:RHt}=Object,o2=e=>{const t=typeof e;if(t!=="object"||!e)return[e7,t];const n=OHt.call(e).slice(8,-1);switch(n){case"Array":return[a5,V1];case"Object":return[o5,V1];case"Date":return[aU,V1];case"RegExp":return[oU,V1];case"Map":return[sU,V1];case"Set":return[lU,V1]}return n.includes("Array")?[a5,n]:n.includes("Error")?[_3e,n]:[o5,n]},nC=([e,t])=>e===e7&&(t==="function"||t==="symbol"),IHt=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=o2(o);switch(s){case e7:{let u=o;switch(l){case"bigint":s=k3e,u=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return i([C3e],o)}return i([s,u],o)}case a5:{if(l)return i([l,[...o]],o);const u=[],f=i([s,u],o);for(const p of o)u.push(a(p));return f}case o5:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const u=[],f=i([s,u],o);for(const p of RHt(o))(e||!nC(o2(o[p])))&&u.push([a(p),a(o[p])]);return f}case aU:return i([s,o.toISOString()],o);case oU:{const{source:u,flags:f}=o;return i([s,{source:u,flags:f}],o)}case sU:{const u=[],f=i([s,u],o);for(const[p,h]of o)(e||!(nC(o2(p))||nC(o2(h))))&&u.push([a(p),a(h)]);return f}case lU:{const u=[],f=i([s,u],o);for(const p of o)(e||!nC(o2(p)))&&u.push(a(p));return f}}const{message:c}=o;return i([s,{name:l,message:c}],o)};return a},Ine=(e,{json:t,lossy:n}={})=>{const r=[];return IHt(!(t||n),!!t,new Map,r)(e),r},s5=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Rne(Ine(e,t)):structuredClone(e):(e,t)=>Rne(Ine(e,t));function jHt(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function NHt(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function AHt(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||jHt,r=e.options.footnoteBackLabel||NHt,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&m.push({type:"text",value:" "});let w=typeof n=="string"?n:n(l,h);typeof w=="string"&&(w={type:"text",value:w}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const v=u[u.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const w=v.children[v.children.length-1];w&&w.type==="text"?w.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...m)}else u.push(...m);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(u,!0)};e.patch(c,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...s5(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` -`}]}}const S3e=function(e){if(e==null)return NHt;if(typeof e=="function")return Q$(e);if(typeof e=="object")return Array.isArray(e)?IHt(e):RHt(e);if(typeof e=="string")return jHt(e);throw new Error("Expected function, string, or object as test")};function IHt(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let h=C3e,m,g,v;if((!t||a(l,c,u[u.length-1]||void 0))&&(h=BHt(n(l,u)),h[0]===One))return h;if("children"in l&&l.children){const y=l;if(y.children&&h[0]!==FHt)for(g=(r?y.children.length:-1)+o,v=u.concat(y);g>-1&&g":""))+")"})}return p;function p(){let h=$3e,m,g,v;if((!t||a(l,c,u[u.length-1]||void 0))&&(h=VHt(n(l,u)),h[0]===jne))return h;if("children"in l&&l.children){const y=l;if(y.children&&h[0]!==UHt)for(g=(r?y.children.length:-1)+o,v=u.concat(y);g>-1&&g0&&n.push({type:"text",value:` -`}),n}function Ine(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Rne(e,t){const n=HHt(e,t),r=n.one(e,void 0),i=OHt(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function KHt(e,t){return e&&"run"in e?async function(n,r){const i=Rne(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Rne(n,{file:r,...e||t})}}function jne(e){if(e)throw e}var E_=Object.prototype.hasOwnProperty,k3e=Object.prototype.toString,Nne=Object.defineProperty,Ane=Object.getOwnPropertyDescriptor,Dne=function(t){return typeof Array.isArray=="function"?Array.isArray(t):k3e.call(t)==="[object Array]"},Fne=function(t){if(!t||k3e.call(t)!=="[object Object]")return!1;var n=E_.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&E_.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||E_.call(t,i)},Lne=function(t,n){Nne&&n.name==="__proto__"?Nne(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Bne=function(t,n){if(n==="__proto__")if(E_.call(t,n)){if(Ane)return Ane(t,n).value}else return;return t[n]},GHt=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const zu={basename:ZHt,dirname:QHt,extname:JHt,join:eUt,sep:"/"};function ZHt(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');sx(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function QHt(e){if(sx(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function JHt(e){sx(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function eUt(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function nUt(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function sx(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const rUt={cwd:iUt};function iUt(){return"/"}function TA(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function aUt(e){if(typeof e=="string")e=new URL(e);else if(!TA(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return oUt(e)}function oUt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[h,...m]=u;const g=r[p][1];MA(g)&&MA(h)&&(h=hP(!0,g,h)),r[p]=[c,h,...m]}}}}const uUt=new oU().freeze();function yP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function bP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function wP(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Hne(e){if(!MA(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Une(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function tC(e){return dUt(e)?e:new E3e(e)}function dUt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function fUt(e){return typeof e=="string"||pUt(e)}function pUt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const hUt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Wne=[],Vne={allowDangerousHtml:!0},mUt=/^(https?|ircs?|mailto|xmpp)$/i,gUt=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function qne(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||Wne,l=e.remarkPlugins||Wne,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Vne}:Vne,u=e.skipHtml,f=e.unwrapDisallowed,p=e.urlTransform||vUt,h=uUt().use(Qzt).use(l).use(KHt,c).use(s),m=new E3e;typeof r=="string"&&(m.value=r);for(const b of gUt)Object.hasOwn(e,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+hUt+b.id,void 0);const g=h.parse(m);let v=h.runSync(g,m);return i&&(v={type:"element",tagName:"div",properties:{className:i},children:v.type==="root"?v.children:[v]}),_3e(v,y),PLt(v,{Fragment:x.Fragment,components:a,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function y(b,w,_){if(b.type==="raw"&&_&&typeof w=="number")return u?_.children.splice(w,1):_.children[w]={type:"text",value:b.value},w;if(b.type==="element"){let k;for(k in dP)if(Object.hasOwn(dP,k)&&Object.hasOwn(b.properties,k)){const S=b.properties[k],C=dP[k];(C===null||C.includes(b.tagName))&&(b.properties[k]=p(String(S||""),k,b))}}if(b.type==="element"){let k=t?!t.includes(b.tagName):o?o.includes(b.tagName):!1;if(!k&&n&&typeof w=="number"&&(k=!n(b,w,_)),k&&_&&typeof w=="number")return f&&b.children?_.children.splice(w,1,...b.children):_.children.splice(w,1),w}}}function vUt(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||mUt.test(e.slice(0,t))?e:""}const $3e=({uid:e,content:t,thread:n,visitor:r,onQuestionClick:i})=>{const[a,o]=d.useState(""),[s,l]=d.useState(""),[c,u]=d.useState(!1),[f,p]=d.useState([]);d.useEffect(()=>{o(t)},[t]);const h=g=>{console.log("handleRateClicked:",e,g,n,r)},m=g=>{console.log("Question clicked:",g),i(g.question,g.answer)};return x.jsxs(x.Fragment,{children:[x.jsx(Xs,{children:x.jsxs(BH,{style:{textAlign:"left"},children:[x.jsx(qne,{children:a}),s&&x.jsxs("div",{style:{marginTop:"12px"},children:[x.jsx("button",{onClick:()=>u(!c),style:{background:"#e8e8e8",border:"none",borderRadius:"4px",padding:"4px 8px",fontSize:"12px",color:"#666",cursor:"pointer",marginBottom:"8px"},children:c?"收起思考过程":"查看思考过程"}),c&&x.jsx("div",{style:{background:"#f9f9f9",padding:"12px",borderRadius:"8px",fontSize:"14px",color:"#666",whiteSpace:"pre-wrap"},children:x.jsx(qne,{children:s})})]}),f.length>0&&x.jsx("div",{className:"qa-buttons",style:{marginTop:"12px",display:"flex",flexDirection:"column",gap:"8px"},children:f.map((g,v)=>x.jsx("button",{onClick:()=>m(g),style:{background:"#f5f5f5",border:"none",borderRadius:"18px",padding:"8px 16px",fontSize:"14px",color:"#333",cursor:"pointer",textAlign:"left",transition:"background-color 0.2s"},children:g.question},v))})]})}),x.jsx(gwe,{onClick:h})]})},yUt=bu.div` +`}),n}function Nne(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ane(e,t){const n=KHt(e,t),r=n.one(e,void 0),i=AHt(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function QHt(e,t){return e&&"run"in e?async function(n,r){const i=Ane(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Ane(n,{file:r,...e||t})}}function Dne(e){if(e)throw e}var $_=Object.prototype.hasOwnProperty,T3e=Object.prototype.toString,Fne=Object.defineProperty,Lne=Object.getOwnPropertyDescriptor,Bne=function(t){return typeof Array.isArray=="function"?Array.isArray(t):T3e.call(t)==="[object Array]"},zne=function(t){if(!t||T3e.call(t)!=="[object Object]")return!1;var n=$_.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&$_.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||$_.call(t,i)},Hne=function(t,n){Fne&&n.name==="__proto__"?Fne(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Une=function(t,n){if(n==="__proto__")if($_.call(t,n)){if(Lne)return Lne(t,n).value}else return;return t[n]},JHt=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const Wu={basename:nUt,dirname:rUt,extname:iUt,join:aUt,sep:"/"};function nUt(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');cx(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function rUt(e){if(cx(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function iUt(e){cx(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function aUt(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function sUt(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function cx(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const lUt={cwd:cUt};function cUt(){return"/"}function RA(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function uUt(e){if(typeof e=="string")e=new URL(e);else if(!RA(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return dUt(e)}function dUt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[h,...m]=u;const g=r[p][1];OA(g)&&OA(h)&&(h=vP(!0,g,h)),r[p]=[c,h,...m]}}}}const mUt=new cU().freeze();function xP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function SP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function CP(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Vne(e){if(!OA(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function qne(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function rC(e){return gUt(e)?e:new P3e(e)}function gUt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function vUt(e){return typeof e=="string"||yUt(e)}function yUt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const bUt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Kne=[],Gne={allowDangerousHtml:!0},wUt=/^(https?|ircs?|mailto|xmpp)$/i,xUt=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Yne(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||Kne,l=e.remarkPlugins||Kne,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Gne}:Gne,u=e.skipHtml,f=e.unwrapDisallowed,p=e.urlTransform||SUt,h=mUt().use(rHt).use(l).use(QHt,c).use(s),m=new P3e;typeof r=="string"&&(m.value=r);for(const w of xUt)Object.hasOwn(e,w.from)&&(""+w.from+(w.to?"use `"+w.to+"` instead":"remove it")+bUt+w.id,void 0);const g=h.parse(m);let v=h.runSync(g,m);return i&&(v={type:"element",tagName:"div",properties:{className:i},children:v.type==="root"?v.children:[v]}),M3e(v,y),NLt(v,{Fragment:x.Fragment,components:a,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function y(w,b,C){if(w.type==="raw"&&C&&typeof b=="number")return u?C.children.splice(b,1):C.children[b]={type:"text",value:w.value},b;if(w.type==="element"){let k;for(k in hP)if(Object.hasOwn(hP,k)&&Object.hasOwn(w.properties,k)){const S=w.properties[k],_=hP[k];(_===null||_.includes(w.tagName))&&(w.properties[k]=p(String(S||""),k,w))}}if(w.type==="element"){let k=t?!t.includes(w.tagName):o?o.includes(w.tagName):!1;if(!k&&n&&typeof b=="number"&&(k=!n(w,b,C)),k&&C&&typeof b=="number")return f&&w.children?C.children.splice(b,1,...w.children):C.children.splice(b,1),b}}}function SUt(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||wUt.test(e.slice(0,t))?e:""}const O3e=({uid:e,content:t,thread:n,visitor:r,onQuestionClick:i})=>{const[a,o]=d.useState(""),[s,l]=d.useState(""),[c,u]=d.useState(!1),[f,p]=d.useState([]);d.useEffect(()=>{o(t)},[t]);const h=g=>{console.log("handleRateClicked:",e,g,n,r)},m=g=>{console.log("Question clicked:",g),i(g.question,g.answer)};return x.jsxs(x.Fragment,{children:[x.jsx(Xs,{children:x.jsxs(HH,{style:{textAlign:"left"},children:[x.jsx(Yne,{children:a}),s&&x.jsxs("div",{style:{marginTop:"12px"},children:[x.jsx("button",{onClick:()=>u(!c),style:{background:"#e8e8e8",border:"none",borderRadius:"4px",padding:"4px 8px",fontSize:"12px",color:"#666",cursor:"pointer",marginBottom:"8px"},children:c?"收起思考过程":"查看思考过程"}),c&&x.jsx("div",{style:{background:"#f9f9f9",padding:"12px",borderRadius:"8px",fontSize:"14px",color:"#666",whiteSpace:"pre-wrap"},children:x.jsx(Yne,{children:s})})]}),f.length>0&&x.jsx("div",{className:"qa-buttons",style:{marginTop:"12px",display:"flex",flexDirection:"column",gap:"8px"},children:f.map((g,v)=>x.jsx("button",{onClick:()=>m(g),style:{background:"#f5f5f5",border:"none",borderRadius:"18px",padding:"8px 16px",fontSize:"14px",color:"#333",cursor:"pointer",textAlign:"left",transition:"background-color 0.2s"},children:g.question},v))})]})}),x.jsx(xwe,{onClick:h})]})},CUt=Su.div` /* 容器样式 */ height: 100%; .ChatApp { height: 100% !important; } -`,bUt=bu(Swe)` -`,wUt=()=>{const{translateString:e}=Gr(),{isDarkMode:t,locale:n}=d.useContext(Ma),r=aa(C=>C.userInfo),i=Si(C=>C.agentInfo),[a,o]=d.useState(null),[s,l]=d.useState(null),c=[],[u,f]=d.useState(c),{messages:p,resetList:h}=awe([]),{messageList:m,addMessage:g,addMessageProtobuf:v}=WFt(C=>({messageList:C.messageList,addMessage:C.addMessage,addMessageProtobuf:C.addMessageProtobuf,addMessageList:C.addMessageList,updateMessage:C.updateMessage}));d.useEffect(()=>{f(c)},[n]);const y=C=>{const{_id:E,type:$,content:M}=C;switch($){case wse:case Uo:return x.jsx(x.Fragment,{children:x.jsx(Uu,{content:e(M),isRichText:pde(M)})});case Mf:return x.jsx(x.Fragment,{children:x.jsx($3e,{uid:E.toString(),content:M,thread:s})});default:return x.jsx(x.Fragment,{children:x.jsx(Uu,{content:M})})}},b=(C,E)=>{console.log("QuickButton:",C,E),C.type},w=(C,E)=>{if(console.log("handleSend",C,E),s===null)return;const $=Ua(),M=hde(s,r,i,$,Uo,E,Uw());console.log("handleSend messageResponse:",M),g(M);const P=bL(s,r,i,$,Uo,E,Uw());Sle(JSON.stringify(P),function(I){console.log("sendSseMessage receive: ",I),v(I)})},_=async()=>{const C={content:"",extra:"",client:Sn},E=await LFt(C);console.log("startAgentAssistantChat response:",C,E.data),E.data.code===200?l(E.data.data):Re.error(E.data.message)},k=C=>{var E;return((E=C==null?void 0:C.user)==null?void 0:E.uid)===(r==null?void 0:r.uid)?"right":"left"};d.useEffect(()=>{const C=[];m.forEach(E=>{var M,P;let $=!1;(E==null?void 0:E.topic)===(s==null?void 0:s.topic)&&($=!0),$&&C.push({_id:E==null?void 0:E.uid,type:E==null?void 0:E.type,status:E==null?void 0:E.status,hasTime:!0,createdAt:tn(E==null?void 0:E.createdAt).toDate().getTime(),content:E==null?void 0:E.content,position:k(E),user:{avatar:(M=E==null?void 0:E.user)==null?void 0:M.avatar,name:(P=E==null?void 0:E.user)==null?void 0:P.nickname}})}),h(C)},[m,s]),d.useEffect(()=>{s&&a&&w("text",a==null?void 0:a.content)},[s,a]),d.useEffect(()=>{const C=E=>{console.log("EVENT_BUS_ASK_AI_COPILOT");const $=JSON.parse(E);console.log("messageObject:",$),o($),s===null&&_()};return En.on(jw,C),()=>{En.off(jw,C)}},[]);const S={"@":[{value:"all",label:"所有人"}],"/":[{value:"test1",label:"Test1"}]};return x.jsxs(yUt,{children:[t&&x.jsx(UH,{children:x.jsx("link",{rel:"stylesheet",type:"text/css",href:gse})}),x.jsx(bUt,{messages:p,renderMessageContent:y,onSend:w,quickReplies:u,onQuickReplyClick:b,metionOptions:S})]})};async function M3e(e){return dn("/api/v1/visitor/query/uid",{method:"GET",params:{uid:e,client:Sn}})}async function xUt(e){return dn("/api/v1/visitor/update",{method:"POST",data:{...e,client:Sn}})}async function SUt(e){return dn("/api/v1/visitor/update/tagList",{method:"POST",data:{...e,client:Sn}})}const g1=So()(Ss(Cs(_s(e=>({currentVisitor:{nickname:"",user:{uid:"",avatar:""}},setCurrentVisitor(t){e({currentVisitor:t})},resetVisitors:()=>e({currentVisitor:{nickname:""}})})),{name:w6e})));async function CUt(e){return dn("/api/v1/thread/query",{method:"GET",params:{...e}})}async function _Ut(e){return dn("/api/v1/thread/query/uid",{method:"GET",params:{uid:e}})}async function T3e(e){return dn("/api/v1/thread/create",{method:"POST",data:{...e}})}async function kUt(e){return dn("/api/v1/thread/update/top",{method:"POST",data:{...e}})}async function EUt(e){return dn("/api/v1/thread/update/star",{method:"POST",data:{...e}})}async function $Ut(e){return dn("/api/v1/thread/update/mute",{method:"POST",data:{...e}})}async function P3e(e){return dn("/api/v1/thread/update/user",{method:"POST",data:{...e}})}async function MUt(e){return dn("/api/v1/thread/update/tagList",{method:"POST",data:{...e}})}async function O3e(e){return dn("/api/v1/thread/update/unread",{method:"POST",data:{...e}})}async function TUt(e){return dn("/api/v1/thread/close",{method:"POST",data:{...e}})}async function PUt(e){return dn("/api/v1/thread/accept",{method:"POST",data:{...e}})}const OUt=()=>{const e=Pn(),[t]=qn.useForm(),{currentVisitor:n,setCurrentVisitor:r}=g1(),{currentThread:i,setCurrentThread:a}=fr(),[o,s]=d.useState({nickname:!1,mobile:!1,email:!1,note:!1});console.log("BasicInfo render:",n),d.useEffect(()=>{t.setFieldsValue({nickname:n==null?void 0:n.nickname,mobile:n==null?void 0:n.mobile,email:n==null?void 0:n.email,note:n==null?void 0:n.note})},[n,t]);const l=p=>{t.setFieldsValue({[p]:n[p]}),s(h=>({...h,[p]:!0}))},c=async p=>{var h,m,g,v,y;try{const b=await t.validateFields([p]),w={uid:n==null?void 0:n.uid,nickname:n==null?void 0:n.nickname,avatar:n==null?void 0:n.avatar,mobile:n==null?void 0:n.mobile,email:n==null?void 0:n.email,note:n==null?void 0:n.note,[p]:b[p]},_=await xUt(w);console.log("updateVisitor:",w,_.data),_.data.code===200&&(Re.success(e.formatMessage({id:"customer.basic.update.success",defaultMessage:"Updated successfully"})),r((h=_==null?void 0:_.data)==null?void 0:h.data),s(k=>({...k,[p]:!1})),u({uid:(g=(m=_==null?void 0:_.data)==null?void 0:m.data)==null?void 0:g.uid,nickname:(v=_==null?void 0:_.data)==null?void 0:v.data.nickname,avatar:(y=_==null?void 0:_.data)==null?void 0:y.data.avatar,type:W6e}))}catch(b){console.error("Update failed:",b),Re.error(e.formatMessage({id:"customer.basic.update.failed",defaultMessage:"Update failed"}))}},u=async p=>{var h;try{const m={uid:i==null?void 0:i.uid,user:p},g=await P3e(m);console.log("updateThreadUser:",m,g.data),g.data.code===200&&a((h=g==null?void 0:g.data)==null?void 0:h.data)}catch(m){console.error("Update failed:",m),Re.error(e.formatMessage({id:"customer.basic.update.failed",defaultMessage:"Update failed"}))}},f=p=>{t.setFieldValue(p,n[p]),s(h=>({...h,[p]:!1}))};return x.jsxs(qn,{form:t,layout:"vertical",submitter:!1,children:[x.jsx(Pr,{name:"nickname",label:e.formatMessage({id:"customer.basic.nickname",defaultMessage:"Nickname"}),rules:[{required:!0,message:"Please input nickname!"}],disabled:!o.nickname,addonAfter:o.nickname?x.jsxs(Zr,{children:[x.jsx(Yt,{type:"primary",onClick:()=>c("nickname"),children:e.formatMessage({id:"common.save",defaultMessage:"Save"})}),x.jsx(Yt,{onClick:()=>f("nickname"),children:e.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})})]}):x.jsx(Yt,{type:"link",icon:x.jsx(Em,{}),onClick:()=>l("nickname"),children:e.formatMessage({id:"customer.basic.edit",defaultMessage:"Edit"})})}),x.jsx(Pr,{name:"mobile",label:"手机号",disabled:!o.mobile,addonAfter:o.mobile?x.jsxs(Zr,{children:[x.jsx(Yt,{type:"primary",onClick:()=>c("mobile"),children:e.formatMessage({id:"common.save",defaultMessage:"Save"})}),x.jsx(Yt,{onClick:()=>f("mobile"),children:e.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})})]}):x.jsx(Yt,{type:"link",icon:x.jsx(Em,{}),onClick:()=>l("mobile"),children:e.formatMessage({id:"customer.basic.edit",defaultMessage:"Edit"})})}),x.jsx(Pr,{name:"email",label:"邮箱",rules:[{type:"email",message:"Please input valid email!"}],disabled:!(o!=null&&o.email),addonAfter:o.email?x.jsxs(Zr,{children:[x.jsx(Yt,{type:"primary",onClick:()=>c("email"),children:e.formatMessage({id:"common.save",defaultMessage:"Save"})}),x.jsx(Yt,{onClick:()=>f("email"),children:e.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})})]}):x.jsx(Yt,{type:"link",icon:x.jsx(Em,{}),onClick:()=>l("email"),children:e.formatMessage({id:"customer.basic.edit",defaultMessage:"Edit"})})}),x.jsx(wd,{name:"note",label:e.formatMessage({id:"customer.basic.note",defaultMessage:"Note"}),fieldProps:{rows:4},disabled:!(o!=null&&o.note),addonAfter:o.note?x.jsxs(Zr,{children:[x.jsx(Yt,{type:"primary",onClick:()=>c("note"),children:e.formatMessage({id:"common.save",defaultMessage:"Save"})}),x.jsx(Yt,{onClick:()=>f("note"),children:e.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})})]}):x.jsx(Yt,{type:"link",icon:x.jsx(Em,{}),onClick:()=>l("note"),children:e.formatMessage({id:"customer.basic.edit",defaultMessage:"Edit"})})})]})},IUt=d.memo(OUt),RUt={name:"名称",version:"版本",major:"主版本号",vendor:"厂商",model:"型号",type:"类型",architecture:"架构"},o2={browserName:{Chrome:"谷歌浏览器",Firefox:"火狐浏览器",Safari:"Safari浏览器",Edge:"Edge浏览器",IE:"IE浏览器",Opera:"Opera浏览器"},deviceType:{mobile:"移动设备",tablet:"平板设备",desktop:"桌面设备",console:"游戏机",smarttv:"智能电视",wearable:"可穿戴设备",embedded:"嵌入式设备"},osName:{Windows:"Windows",iOS:"iOS",Android:"安卓","Mac OS":"macOS",Linux:"Linux",Ubuntu:"Ubuntu",CentOS:"CentOS"},vendor:{Apple:"苹果",Samsung:"三星",Huawei:"华为",Xiaomi:"小米",OPPO:"OPPO",vivo:"vivo",Google:"谷歌",OnePlus:"一加",LG:"LG",Sony:"索尼",Microsoft:"微软"},model:{Macintosh:"Mac电脑",iPhone:"iPhone",iPad:"iPad",iPod:"iPod",Pixel:"Pixel手机",Galaxy:"Galaxy系列"}},xP=(e,t)=>{if(!e)return x.jsx("p",{children:"暂无信息"});try{const n=typeof e=="string"?JSON.parse(e):e;if(!n||typeof n!="object")return x.jsx("p",{children:"无效设备信息"});const r=Object.keys(n);return x.jsx(x.Fragment,{children:r.map(i=>{const a=RUt[i]||i;let o=n[i];if(i==="name")t==="browser"?o=o2.browserName[n[i]]||n[i]:t==="os"&&(o=o2.osName[n[i]]||n[i]);else if(i==="vendor")o=o2.vendor[n[i]]||n[i];else if(i==="type")o=o2.deviceType[n[i]]||n[i];else if(i==="model"){for(const[s,l]of Object.entries(o2.model))if(n[i].includes(s)){o=n[i].replace(s,l);break}}return x.jsxs("p",{children:[a,": ",o]},i)})})}catch(n){return console.error("解析设备信息时出错:",n,e),x.jsx("p",{children:"解析设备信息出错"})}},{Title:SP}=Zf,jUt=()=>{var n,r,i;const e=Pn(),t=g1(a=>a.currentVisitor);return x.jsxs(x.Fragment,{children:[x.jsx(SP,{level:5,children:e.formatMessage({id:"customer.info.browser",defaultMessage:"Browser Info"})}),xP((n=t==null?void 0:t.device)==null?void 0:n.browser,"browser"),x.jsx(SP,{level:5,children:e.formatMessage({id:"customer.info.os",defaultMessage:"OS Info"})}),xP((r=t==null?void 0:t.device)==null?void 0:r.os,"os"),x.jsx(SP,{level:5,children:e.formatMessage({id:"customer.info.device",defaultMessage:"Device Info"})}),xP((i=t==null?void 0:t.device)==null?void 0:i.device,"device")]})},Kne={width:64,height:22,marginInlineEnd:8,verticalAlign:"top"},NUt=()=>{const{token:e}=zo.useToken(),t=Pn(),{currentVisitor:n,setCurrentVisitor:r}=g1(),[i,a]=d.useState((n==null?void 0:n.tagList)||[]),[o,s]=d.useState(!1),[l,c]=d.useState(""),[u,f]=d.useState(-1),[p,h]=d.useState(""),m=d.useRef(null),g=d.useRef(null),{currentThread:v,setCurrentThread:y}=fr();d.useEffect(()=>{var P;o&&((P=m.current)==null||P.focus())},[o]),d.useEffect(()=>{a((n==null?void 0:n.tagList)||[])},[n]),d.useEffect(()=>{var P;(P=g.current)==null||P.focus()},[p]);const b=async P=>{const I=i.filter(O=>O!==P);await E(I)},w=()=>{s(!0)},_=P=>{c(P.target.value)},k=async()=>{if(l&&!i.includes(l)){const P=[...i,l];await E(P)}s(!1),c("")},S=P=>{h(P.target.value)},C=async()=>{const P=[...i];P[u]=p,await E(P),f(-1),h("")},E=async P=>{try{const I={uid:n==null?void 0:n.uid,tagList:P},O=await SUt(I);console.log("updateTags response:",O.data,I),O.data.code===200&&(Re.success("标签更新成功"),a(P),r(O.data.data),$(P))}catch(I){console.error("标签更新失败:",I),Re.error("标签更新失败")}},$=async P=>{var I;try{const O={uid:v==null?void 0:v.uid,tagList:P},A=await MUt(O);console.log("updateThreadUser:",O,A.data),A.data.code===200&&y((I=A==null?void 0:A.data)==null?void 0:I.data)}catch(O){console.error("Update failed:",O),Re.error(t.formatMessage({id:"customer.basic.update.failed",defaultMessage:"Update failed"}))}},M={height:22,background:e.colorBgContainer,borderStyle:"dashed"};return x.jsxs(a3,{gap:"4px 0",wrap:!0,children:[i.map((P,I)=>{if(u===I)return x.jsx(Wr,{ref:g,size:"small",style:Kne,value:p,onChange:S,onBlur:C,onPressEnter:C},P);const O=P.length>20,A=x.jsx(Di,{closable:!0,style:{userSelect:"none"},onClose:()=>b(P),color:"blue",children:x.jsx("span",{onDoubleClick:R=>{I!==0&&(f(I),h(P),R.preventDefault())},children:O?`${P.slice(0,20)}...`:P})},P);return O?x.jsx(Ea,{title:P,children:A},P):A}),o?x.jsx(Wr,{ref:m,type:"text",size:"small",style:Kne,value:l,onChange:_,onBlur:k,onPressEnter:k}):x.jsx(Di,{style:M,icon:x.jsx(jy,{}),onClick:w,children:"添加标签"})]})},AUt=()=>{const e=g1(t=>t.currentVisitor);return console.log("visitor:",e),x.jsx("div",{children:x.jsx("h1",{children:x.jsx(Ca,{})})})},DUt=()=>{const e=g1(n=>n.currentVisitor),t=n=>{if(!n)return x.jsx("p",{children:"暂无信息"});const r=JSON.parse(n),i=Object.keys(r);return x.jsx(x.Fragment,{children:i.map(a=>x.jsxs("p",{children:[a,": ",r[a]]},a))})};return x.jsx(x.Fragment,{children:t(e==null?void 0:e.extra)})},FUt=()=>{var c;const e=Pn(),t=fr(u=>u.currentThread),{currentVisitor:n,setCurrentVisitor:r}=g1(u=>u),i=[{key:"basicInfo",label:e.formatMessage({id:"customer.info.basic",defaultMessage:"Basic Info"}),children:x.jsx(IUt,{})},{key:"deviceInfo",label:e.formatMessage({id:"customer.info.device",defaultMessage:"Device Info"}),children:x.jsx(jUt,{})},{key:"tagInfo",label:e.formatMessage({id:"customer.info.tag",defaultMessage:"Tag Info"}),children:x.jsx(NUt,{})},{key:"extraInfo",label:e.formatMessage({id:"customer.info.extra",defaultMessage:"Extra Info"}),children:x.jsx(DUt,{})}],[a,o]=d.useState(i),s=d.useCallback(async()=>{var f,p,h;if(!((f=t==null?void 0:t.user)!=null&&f.uid))return;console.log("Fetching visitor info for:",(p=t==null?void 0:t.user)==null?void 0:p.uid);const u=await M3e((h=t==null?void 0:t.user)==null?void 0:h.uid);console.log("getVisitorInfo response:",u.data),u.data.code===200?r(u.data.data):Re.error(e.formatMessage({id:"customer.info.load.error",defaultMessage:"Failed to load visitor info"}))},[(c=t==null?void 0:t.user)==null?void 0:c.uid,e]);d.useEffect(()=>{yf(t)&&s()},[t,s]),d.useEffect(()=>{const u=[...i];Xo&&(u.push({key:"browseRecord",label:e.formatMessage({id:"customer.info.browse.record",defaultMessage:"Browse Record"}),children:x.jsx(AUt,{})}),o(u))},[n]);const l=u=>{console.log(u)};return x.jsx("div",{children:x.jsx(s8,{bordered:!1,items:a,defaultActiveKey:["basicInfo"],onChange:l})})};async function LUt(e){return dn("/api/v1/quickreply/query",{method:"GET",params:{...e,client:Sn}})}async function BUt(e){return dn("/api/v1/quickreply/create",{method:"POST",data:{...e,client:Sn}})}const zUt=({open:e,isEdit:t,category:n,kbUid:r,onCancel:i,onSubmit:a})=>{const[o]=qn.useForm(),s=Nr(f=>f.currentOrg),l=Pn();console.log("CategoryForm kbUid:",r),d.useEffect(()=>{t?o.setFieldsValue({name:n==null?void 0:n.name}):o.resetFields()},[e]);const c=()=>{o.validateFields().then(async f=>{console.log("handleSaveDep:",f);const p={uid:t?n==null?void 0:n.uid:"",name:f.name,type:y5e,kbUid:r,orgUid:s==null?void 0:s.uid};a(p)}).catch(f=>{console.log("Failed:",f),Re.error("创建分类失败")})},u=f=>{f.key==="Enter"&&c()};return x.jsx("div",{children:x.jsx(yr,{title:l.formatMessage({id:"category.form.title",defaultMessage:"New Category"}),open:e,onOk:c,onCancel:i,children:x.jsx("div",{onKeyDown:u,children:x.jsx(qn,{form:o,name:"categoryForm",initialValues:{name:""},submitter:{render:()=>null},children:x.jsx(Pr,{label:l.formatMessage({id:"category.form.name",defaultMessage:"Category Name"}),name:"name",rules:[{required:!0,message:l.formatMessage({id:"category.form.name.required",defaultMessage:"Please enter category name!"})}]})})})})})};async function J$(e){return dn("/api/v1/category/query/org",{method:"GET",params:{...e,client:Sn}})}async function I3e(e){return dn("/api/v1/category/create",{method:"POST",data:{...e,client:Sn}})}async function HUt(e){return dn("/api/v1/category/update",{method:"POST",data:{...e,client:Sn}})}async function UUt(e){return dn("/api/v1/category/delete",{method:"POST",data:{...e,client:Sn}})}const{Dragger:WUt}=Jg,VUt=({isEdit:e,quickreply:t,open:n,myQuickReply:r,onClose:i,onSubmit:a})=>{var S;const[o]=qn.useForm(),{translateString:s}=Gr(),l=Nr(C=>C.currentOrg),[c,u]=d.useState(),[f,p]=d.useState(Uo),[h,m]=d.useState(".png,.jpg,.jpeg"),[g,v]=d.useState({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:"type",category_uid:"",kb_uid:r==null?void 0:r.key,client:Sn});console.log("QuickReplyDrawer kbUid:",r==null?void 0:r.key);const y=Pn();d.useEffect(()=>{e?o.setFieldsValue({type:t==null?void 0:t.type,title:t==null?void 0:t.title,content:t==null?void 0:t.content,categoryUid:t==null?void 0:t.categoryUid,kbUid:r==null?void 0:r.key}):o.resetFields()},[n]);const b=C=>{console.log(`category selected ${C}`),u(C)},w=C=>{console.log(`type selected ${C}`),p(C),C===Sl?m(".png,.jpg,.jpeg,.gif,.bmp"):C===sg?m(".mp4,.avi,.mov,.wmv"):C===Aw?m(".mp3,.wav,.flac"):C===od&&m(".doc,.xls,.ppt,.pdf,.docx,.txt,.csv,.xlsx,.rtf,.zip,.7z,.tar,.gz,.rar,.iso")},_=()=>{console.log("handleSubmit"),o.validateFields().then(C=>{console.log(C),a({...t,...C,kbUid:r==null?void 0:r.key,orgUid:l==null?void 0:l.uid})}).catch(C=>{console.log("Form errors:",C),Re.error("请检查表单填写")})},k={name:"file",accept:h,action:dy(),headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},data:g,showUploadList:!1,beforeUpload(C){console.log("beforeUpload",C);const E=tn(new Date).format("YYYYMMDDHHmmss")+"_"+C.name;g.file=C,g.file_name=E,g.file_type=C.type,g.kb_type=h5e,g.category_uid=c||"",g.kb_uid=r==null?void 0:r.key,console.log("beforeUpload",g)},onChange(C){if(C.file.status==="uploading"&&Re.loading(`${C.file.name} 上传中`),C.file.status==="done")if(console.log("response: ",C.file.response),C.file.response.code===200){const E=C.file.response.data.fileUrl;o.setFieldValue("content",E),Re.destroy(),Re.success(`${C.file.name} 上传成功`)}else Re.destroy(),Re.error(`${C.file.name} 上传失败`);else C.file.status==="error"&&Re.error(`${C.file.name} 上传失败`)},onDrop(C){console.log("Dropped files",C.dataTransfer.files)}};return d.useEffect(()=>{const C=$=>{console.log("keydown",$)},E=$=>{};return document.addEventListener("keydown",C),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",C),document.removeEventListener("keyup",E)}},[]),x.jsx(x.Fragment,{children:x.jsx(xh,{title:y.formatMessage({id:"quickreply.drawer.title",defaultMessage:e?"Edit Quick Reply":"New Quick Reply"}),onClose:i,open:n,extra:x.jsxs(Zr,{children:[x.jsx(Yt,{onClick:i,children:y.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})}),x.jsx(Yt,{onClick:_,type:"primary",children:y.formatMessage({id:"common.save",defaultMessage:"Save"})})]}),children:x.jsxs(qn,{form:o,initialValues:{...t},submitter:{render:()=>null},children:[x.jsx(za,{label:y.formatMessage({id:"quickreply.form.category",defaultMessage:"Category"}),name:"categoryUid",rules:[{required:!0,message:y.formatMessage({id:"quickreply.form.category.required",defaultMessage:"Please select a category"})}],options:(S=r==null?void 0:r.children)==null?void 0:S.map(C=>({value:C.key,label:s(C.title)})),fieldProps:{allowClear:!0,placeholder:y.formatMessage({id:"quickreply.form.category.placeholder",defaultMessage:"Select a category"}),onChange:b}}),x.jsx(za,{label:y.formatMessage({id:"quickreply.form.type",defaultMessage:"Type"}),name:"type",rules:[{required:!0,message:y.formatMessage({id:"quickreply.form.type.required",defaultMessage:"Please select a type"})}],options:[{label:y.formatMessage({id:"quickreply.type.text",defaultMessage:"Text"}),value:Uo},{label:y.formatMessage({id:"quickreply.type.image",defaultMessage:"Image"}),value:Sl},{label:y.formatMessage({id:"quickreply.type.video",defaultMessage:"Video"}),value:sg},{label:y.formatMessage({id:"quickreply.type.audio",defaultMessage:"Audio"}),value:Aw},{label:y.formatMessage({id:"quickreply.type.file",defaultMessage:"File"}),value:od}],fieldProps:{allowClear:!0,placeholder:y.formatMessage({id:"quickreply.form.type.placeholder",defaultMessage:"Select a type"}),onChange:w}}),x.jsx(Pr,{label:y.formatMessage({id:"quickreply.form.title",defaultMessage:"Title"}),name:"title",rules:[{required:!0,message:y.formatMessage({id:"quickreply.form.title.required",defaultMessage:"Please enter a title"})}]}),x.jsx(wd,{label:y.formatMessage({id:"quickreply.form.content",defaultMessage:"Content"}),name:"content"}),f!=Uo&&x.jsxs(WUt,{...k,children:[x.jsx("p",{className:"ant-upload-drag-icon",children:x.jsx(pve,{})}),x.jsx("p",{className:"ant-upload-text",children:y.formatMessage({id:"quickreply.upload.text",defaultMessage:"Click or drag file to upload"})})]})]})})})},{Search:qUt}=Wr,KUt=()=>{const e=Pn(),{translateString:t,translateStringTranct:n}=Gr(),[r]=d.useState(!1),i=Si(N=>N.agentInfo),[a,o]=d.useState([]),[s,l]=d.useState(""),[c,u]=d.useState(!0),[f,p]=d.useState([]),[h,m]=d.useState(!1),[g,v]=d.useState(!1),[y,b]=d.useState(),[w,_]=d.useState(),k=N=>{o(N),u(!1)},S=Nr(N=>N.currentOrg),C=d.useMemo(()=>{if((s==null?void 0:s.trim().length)===0)return f;const N=[],D=F=>F.map(K=>{const B={...K},U=typeof B.title=="string"&&B.title.toLowerCase().includes(s.toLowerCase());return B.children&&(B.children=D(B.children)),U||B.children&&B.children.length>0?(B.key&&N.push(B.key),B):null}).filter(Boolean),V=D(f);return N.length>0&&(o(N),u(!0)),V},[s,f]),E=async()=>{const N={orgUid:S==null?void 0:S.uid,agentUid:i==null?void 0:i.uid},D=await LUt(N);if(Re.destroy(),D.data.code===200){const V=B=>B.map(U=>{const Z=t(U.title),ee={...U,originalTitle:U.title,title:Z,displayTitle:n(U.title)};return U.children&&U.children.length>0&&(ee.children=V(U.children)),ee}),F=V(D.data.data);p(F),b(F.filter(B=>B.level===v5e)[0]);const K=F.map(B=>B.key);o(K)}else Re.error(D.data.message)};d.useEffect(()=>{E()},[]);const $=N=>{const{value:D}=N.target;l(D),u(!0)},M=N=>{const D=JSON.stringify(N);En.emit(ZO,D)},P=N=>{navigator.clipboard.writeText(N.content),Re.success(`${t(N.content)} 已复制到剪切板`)},I=()=>{console.log("handleCreateCategory"),m(!0)},O=()=>{console.log("handleCreateQuickReply"),v(!0)},A=async N=>{console.log("handleSubmit: ",N),r?Re.loading(e.formatMessage({id:"updating"})):Re.loading(e.formatMessage({id:"creating"}));const D=await I3e(N);console.log("createCategory response: ",D),D.data.code===200?(Re.destroy(),r?Re.success(e.formatMessage({id:"update.success"})):Re.success(e.formatMessage({id:"create.success"})),m(!1),E()):(Re.destroy(),Re.error(D.data.message))},R=()=>{m(!1)},j=async N=>{console.log("handleSubmitDrawer",N),r?Re.loading(e.formatMessage({id:"updating"})):Re.loading(e.formatMessage({id:"creating"}));const D=await BUt(N);console.log("createQuickreply response:",N,D),D.data.code===200?(Re.destroy(),Re.loading(e.formatMessage({id:"create.success"})),v(!1),E()):(Re.destroy(),Re.error(D.data.message))};return d.useEffect(()=>{const N=V=>{const F=JSON.parse(V);console.log("handleQuickReplyAdd: ",F==null?void 0:F.content,F==null?void 0:F.type);const K={title:F==null?void 0:F.content,content:F==null?void 0:F.content,type:F==null?void 0:F.type};_(K),v(!0)},D=V=>{const F=JSON.parse(V);l(F==null?void 0:F.content)};return En.on(QO,N),En.on(Nw,D),()=>{En.off(QO,N),En.off(Nw,D)}},[]),x.jsxs("div",{style:{marginLeft:10,marginRight:10},children:[x.jsx(qUt,{allowClear:!0,style:{marginBottom:8},enterButton:!0,value:s,placeholder:e.formatMessage({id:"quickreply.search.placeholder",defaultMessage:"Search"}),onChange:$}),x.jsx(lz,{defaultExpandAll:!0,onExpand:k,expandedKeys:a,autoExpandParent:c,treeData:C,blockNode:!0,titleRender:N=>x.jsxs(Ea,{title:N.title,children:[N.displayTitle||N.title,N.type!=m5e&&N.type!=g5e&&x.jsxs("span",{style:{float:"right"},children:[x.jsx(Yt,{type:"link",size:"small",onClick:()=>M(N),children:e.formatMessage({id:"quickreply.button.send",defaultMessage:"Send"})}),x.jsx(Yt,{type:"link",size:"small",onClick:()=>P(N),children:e.formatMessage({id:"quickreply.button.copy",defaultMessage:"Copy"})})]})]})}),h&&x.jsx(zUt,{open:h,isEdit:r,kbUid:y==null?void 0:y.key,onCancel:R,onSubmit:A}),g&&x.jsx(VUt,{isEdit:r,open:g,myQuickReply:y,quickreply:w,onClose:()=>v(!1),onSubmit:j}),x.jsxs(a3,{gap:"small",wrap:"wrap",style:{bottom:25,position:"fixed"},children:[x.jsx(Yt,{size:"small",onClick:I,disabled:(y==null?void 0:y.key)==="",children:e.formatMessage({id:"quickreply.button.create.category",defaultMessage:"Create Category"})}),x.jsx(Yt,{size:"small",onClick:O,disabled:(y==null?void 0:y.key)==="",children:e.formatMessage({id:"quickreply.button.create.reply",defaultMessage:"Create Quick Reply"})})]})]})};async function GUt(e){return dn("/api/v1/ticket/query/topic",{method:"GET",params:{...e,client:Sn}})}async function YUt(e){return dn("/api/v1/ticket/query/thread/uid",{method:"GET",params:{...e,client:Sn}})}async function XUt(e){return dn("/api/v1/ticket/create",{method:"POST",data:{...e,client:Sn}})}async function ZUt(e){return dn("/api/v1/ticket/update",{method:"POST",data:{...e,client:Sn}})}async function QUt(e){return dn("/api/v1/ticket/delete",{method:"POST",data:{uid:e,client:Sn}})}async function JUt(e){return dn("/api/v1/ticket/query/filter",{method:"GET",params:{...e,client:Sn}})}async function eWt(e){return dn("/api/v1/ticket/query/created",{method:"GET",params:{...e,client:Sn}})}async function tWt(e){return dn("/api/v1/ticket/query/claimed",{method:"GET",params:{...e,client:Sn}})}async function nWt(e){return dn("/api/v1/ticket/query/unassigned",{method:"GET",params:{...e,client:Sn}})}async function rWt(e){return dn("/api/v1/ticket/claim",{method:"POST",data:{...e,client:Sn}})}async function iWt(e){return dn("/api/v1/ticket/start",{method:"POST",data:{...e,client:Sn}})}async function aWt(e){return dn("/api/v1/ticket/unclaim",{method:"POST",data:{...e,client:Sn}})}async function oWt(e){return dn("/api/v1/ticket/hold",{method:"POST",data:{...e,client:Sn}})}async function Gne(e){return dn("/api/v1/ticket/resume",{method:"POST",data:{...e,client:Sn}})}async function sWt(e){return dn("/api/v1/ticket/resolve",{method:"POST",data:{...e,client:Sn}})}async function Yne(e){return dn("/api/v1/ticket/verify",{method:"POST",data:{...e,client:Sn}})}async function lWt(e){return dn("/api/v1/ticket/close",{method:"POST",data:{...e,client:Sn}})}async function cWt(e){return dn("/api/v1/ticket/history/process",{method:"GET",params:{...e,client:Sn}})}async function uWt(e){return dn("/api/v1/ticket/history/task",{method:"GET",params:{...e,client:Sn}})}async function dWt(e){return dn("/api/v1/ticket/history/activity",{method:"GET",params:{...e,client:Sn}})}const eo={async loadTickets(e,t=3){const{setLoading:n,setError:r,setTickets:i,currentTicket:a,setCurrentTicket:o,filters:s,searchText:l,pagination:c}=Aa.getState(),{agentInfo:u}=Si.getState(),f=async p=>{try{n(!0),r(null);const h={orgUid:e,pageNumber:c.pageNumber,pageSize:c.pageSize,assignmentAll:!1};if(s.status&&s.status!==g0&&(h.status=s.status),s.priority&&s.priority!==v0&&(h.priority=s.priority),s.assignment===Tse?(h.assignmentAll=!1,h.reporter=JSON.stringify({uid:(u==null?void 0:u.uid)||""}),h.assigneeUid="",this.fetchCreatedTickets()):s.assignment===Pse?(h.assignmentAll=!1,h.assigneeUid=(u==null?void 0:u.uid)||"",h.reporter=JSON.stringify({uid:""}),this.fetchClaimedTickets()):s.assignment===aI&&(h.assignmentAll=!1,h.assigneeUid=aI,h.reporter=JSON.stringify({uid:""}),this.fetchUnassignedTickets()),s.time)switch(s.time){case b0:h.startDate=tn().subtract(100,"years").startOf("day").format("YYYY-MM-DD HH:mm:ss"),h.endDate=tn().endOf("day").format("YYYY-MM-DD HH:mm:ss");break;case Ose:h.startDate=tn().startOf("day").format("YYYY-MM-DD HH:mm:ss"),h.endDate=tn().endOf("day").format("YYYY-MM-DD HH:mm:ss");break;case Ise:h.startDate=tn().subtract(1,"days").startOf("day").format("YYYY-MM-DD HH:mm:ss"),h.endDate=tn().subtract(1,"days").endOf("day").format("YYYY-MM-DD HH:mm:ss");break;case Rse:h.startDate=tn().startOf("week").format("YYYY-MM-DD HH:mm:ss"),h.endDate=tn().endOf("week").format("YYYY-MM-DD HH:mm:ss");break;case jse:h.startDate=tn().subtract(1,"week").startOf("week").format("YYYY-MM-DD HH:mm:ss"),h.endDate=tn().subtract(1,"week").endOf("week").format("YYYY-MM-DD HH:mm:ss");break;case Nse:h.startDate=tn().startOf("month").format("YYYY-MM-DD HH:mm:ss"),h.endDate=tn().endOf("month").format("YYYY-MM-DD HH:mm:ss");break;case Ase:h.startDate=tn().subtract(1,"month").startOf("month").format("YYYY-MM-DD HH:mm:ss"),h.endDate=tn().subtract(1,"month").endOf("month").format("YYYY-MM-DD HH:mm:ss");break}l&&(h.searchText=l);const m=await JUt(h);if(console.log("queryTicketsFilter response",h,m.data),m.data.code===200)i(m.data.data.content),m.data.data.content.length>0&&!a?o(m.data.data.content[0]):m.data.data.content.length==0&&o(void 0);else throw new Error(m.data.message)}catch(h){if(psetTimeout(m,1e3)),f(p+1);r(h instanceof Error?h.message:"Failed to load tickets")}finally{n(!1)}};return f(1)},async loadHistoryTickets(e,t,n=3){const{setLoading:r,setError:i,setHistoryTickets:a,pagination:o}=Aa.getState(),s=Nr.getState().currentOrg,l=async c=>{try{r(!0),i(null);const u={orgUid:s.uid,pageNumber:o.pageNumber,pageSize:o.pageSize,topic:e,searchText:t},f=await GUt(u);if(console.log("queryTicketByServiceThreadTopic response",u,f.data),f.data.code===200)a(f.data.data.content);else throw new Error(f.data.message)}catch(u){if(csetTimeout(f,1e3)),l(c+1);i(u instanceof Error?u.message:"Failed to load tickets")}finally{r(!1)}};return l(1)},async refreshTickets(){const e=Nr.getState().currentOrg;return this.loadTickets(e.uid)},async loadTicketsWithFilters(e){const t=Nr.getState().currentOrg,{setFilter:n}=Aa.getState();return Object.entries(e).forEach(([r,i])=>{n(r,i)}),this.loadTickets(t.uid)},async fetchCreatedTickets(){const e=Nr.getState().currentOrg,t=Si.getState().agentInfo,n={pageNumber:0,pageSize:10,reporter:JSON.stringify({uid:(t==null?void 0:t.uid)||""}),orgUid:e==null?void 0:e.uid},r=await eWt(n);console.log("queryCreated",r.data),r.data.code},async fetchClaimedTickets(){const e=Nr.getState().currentOrg,t=Si.getState().agentInfo,n={pageNumber:0,pageSize:10,assigneeUid:t==null?void 0:t.uid,orgUid:e==null?void 0:e.uid},r=await tWt(n);console.log("queryClaimed",r.data),r.data.code},async fetchUnassignedTickets(){const e=Nr.getState().currentOrg,t=Si.getState().agentInfo,n={pageNumber:0,pageSize:100,assigneeUid:t==null?void 0:t.uid,orgUid:e==null?void 0:e.uid},r=await nWt(n);console.log("queryUnassigned",r.data),r.data.code}},fWt=Object.freeze(Object.defineProperty({__proto__:null,ticketService:eo},Symbol.toStringTag,{value:"Module"})),{Search:pWt}=Wr,{Paragraph:Xne}=Zf,hWt=()=>{const e=Pn(),{isDarkMode:t}=mz(),{translateString:n}=Gr(),r=Nr(_=>_.currentOrg),{historyTickets:i,loading:a,filters:o,setFilter:s}=Aa(),[l,c]=d.useState([]),u=fr(_=>_.currentThread),[f,p]=d.useState(null),[h,m]=d.useState(""),g=async()=>{var _,k,S;try{const C=await J$({type:vk,orgUid:r==null?void 0:r.uid,pageNumber:0,pageSize:100});((_=C.data)==null?void 0:_.code)===200&&((S=(k=C.data)==null?void 0:k.data)!=null&&S.content)&&c(C.data.data.content)}catch(C){console.error("Fetch categories error:",C),l3.error(e.formatMessage({id:"ticket.category.load.error"}))}};d.useEffect(()=>{u!=null&&u.topic&&(eo.loadHistoryTickets(u==null?void 0:u.topic,h),g())},[u==null?void 0:u.topic]);const v=_=>{m(_),eo.loadHistoryTickets(u==null?void 0:u.topic,_)},y=_=>{switch(_){case"status":s("status",g0);break;case"priority":s("priority",v0);break;case"assignment":s("assignment",y0);break;case"time":s("time",b0);break}},b=_=>t?_?"#1f1f1f":"#141414":_?"#e6f7ff":"#ffffff",w=()=>{const _=[];return o!=null&&o.status&&o.status!==g0&&_.push(x.jsx(Di,{color:Ww(o.status),closable:!0,onClose:()=>y("status"),children:e.formatMessage({id:`ticket.filter.status_${o.status.toLowerCase()}`})},"status")),o!=null&&o.priority&&o.priority!==v0&&_.push(x.jsx(Di,{color:Dk(o.priority),closable:!0,onClose:()=>y("priority"),children:e.formatMessage({id:`ticket.filter.priority_${o.priority.toLowerCase()}`})},"priority")),o!=null&&o.assignment&&o.assignment!==y0&&_.push(x.jsx(Di,{color:"blue",closable:!0,onClose:()=>y("assignment"),children:e.formatMessage({id:`ticket.filter.assignment_${o.assignment.toLowerCase()}`})},"assignment")),o!=null&&o.time&&o.time!==b0&&_.push(x.jsx(Di,{color:"purple",closable:!0,onClose:()=>y("time"),children:e.formatMessage({id:`ticket.filter.time_${o.time.toLowerCase()}`})},"time")),_};return x.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[x.jsxs("div",{style:{padding:"10px 16px 16px",backgroundColor:t?"#141414":"#ffffff",borderBottom:"1px solid #f0f0f0"},children:[x.jsx(pWt,{placeholder:e.formatMessage({id:"ticket.list.search.placeholder"}),onSearch:v,style:{width:"100%"},allowClear:!0}),x.jsx("div",{style:{marginTop:10},children:x.jsxs(Zr,{direction:"vertical",style:{width:"100%"},children:[w().length>0&&x.jsxs("div",{children:[x.jsxs("span",{style:{marginRight:8},children:[e.formatMessage({id:"ticket.current.filters"}),":"]}),x.jsx(Zr,{size:[0,8],wrap:!0,children:w()})]}),x.jsx("div",{children:x.jsxs(Di,{color:"blue",children:[e.formatMessage({id:"ticket.list.total"}),": ",i.length]})})]})})]}),x.jsx("div",{style:{flex:1,overflow:"auto"},children:x.jsx(Gn,{loading:a,dataSource:i,renderItem:_=>{var k,S,C,E;return x.jsx(Gn.Item,{onClick:()=>p(_),style:{cursor:"pointer",padding:"8px 16px",backgroundColor:b((f==null?void 0:f.uid)===_.uid),transition:"background-color 0.3s"},children:x.jsx(Gn.Item.Meta,{title:x.jsxs(x.Fragment,{children:[x.jsx("span",{style:{marginRight:10,color:t?"#ffffff":void 0},children:_.title}),x.jsx(Di,{color:Ww(_.status),children:e.formatMessage({id:`ticket.filter.status_${_.status.toLowerCase()}`})}),x.jsx(Di,{color:Dk(_.priority),children:e.formatMessage({id:`ticket.filter.priority_${_.priority.toLowerCase()}`})})]}),description:x.jsxs(x.Fragment,{children:[x.jsxs(Zr,{direction:"vertical",style:{marginBottom:10},children:[x.jsxs(Di,{color:"blue",children:[e.formatMessage({id:"ticket.type"}),": ",_.type===yk?e.formatMessage({id:"ticket.type.agent"}):e.formatMessage({id:"ticket.type.workgroup"})]}),x.jsxs(Di,{color:"green",children:[e.formatMessage({id:"ticket.assignee"}),": ",_.type===yk?n((k=_.assignee)==null?void 0:k.nickname):n((S=_.workgroup)==null?void 0:S.nickname)]}),x.jsxs(Di,{color:"purple",children:[e.formatMessage({id:"ticket.reporter"}),": ",(C=_.reporter)==null?void 0:C.nickname]}),x.jsxs(Di,{color:"orange",children:[e.formatMessage({id:"ticket.category"}),": ",n((E=l.find($=>$.uid===_.categoryUid))==null?void 0:E.name)]})]}),x.jsx(Xne,{ellipsis:{rows:1},style:{margin:0},children:_.description}),x.jsx(Xne,{ellipsis:{rows:1},style:{margin:0},children:new Date(_.updatedAt).toLocaleString()})]})})})},locale:{emptyText:e.formatMessage({id:"ticket.list.empty"})}})})]})},mWt=So(e=>({activeKey:"quickreply",defaultKey:"quickreply",setActiveKey:t=>e({activeKey:t}),setDefaultKey:t=>e({defaultKey:t}),resetActiveKey:()=>e({activeKey:"quickreply"})})),sU=({file:e,onDelete:t,showDelete:n=!0})=>{var i,a;const r=Pn();return x.jsxs("div",{style:{position:"relative",width:"50px",height:"50px",border:"1px solid #f0f0f0",borderRadius:"4px",overflow:"hidden"},title:r.formatMessage({id:(i=e==null?void 0:e.fileType)!=null&&i.startsWith("image/")?"upload.preview.image":"upload.preview.file"}),children:[n&&x.jsx(Yt,{type:"text",size:"small",icon:x.jsx(G8,{}),onClick:()=>t(e.uid),style:{position:"absolute",top:0,right:0,padding:"2px",background:"rgba(255, 255, 255, 0.8)",border:"none",borderRadius:"0 4px 0 4px",zIndex:1}}),x.jsx("div",{onClick:()=>window.open(e.fileUrl,"_blank"),style:{width:"100%",height:"100%",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(a=e==null?void 0:e.fileType)!=null&&a.startsWith("image/")?x.jsx("img",{src:e==null?void 0:e.fileUrl,alt:e==null?void 0:e.fileName,style:{width:"100%",height:"100%",objectFit:"cover"}}):x.jsx("div",{style:{fontSize:"12px",padding:"4px",textAlign:"center",wordBreak:"break-all",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.fileName})}),x.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:"rgba(0, 0, 0, 0.5)",color:"#fff",fontSize:"10px",padding:"2px",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.fileName})]},e.uid)},R3e=({ticket:e,isThreadTicket:t=!1,onEdit:n,onDelete:r})=>{var y,b,w,_,k,S,C;const i=Pn(),{translateString:a}=Gr(),o=Nr(E=>E.currentOrg),s=Si(E=>E.agentInfo),[l,c]=d.useState([]),[u,f]=d.useState([]),p=Aa(E=>E.currentTicket),h=Aa(E=>E.setCurrentTicket),m=fr(E=>E.currentThread),g=async()=>{var E,$,M;try{const P=await J$({type:vk,orgUid:o==null?void 0:o.uid,pageNumber:0,pageSize:100});((E=P.data)==null?void 0:E.code)===200&&((M=($=P.data)==null?void 0:$.data)!=null&&M.content)&&f(P.data.data.content)}catch(P){console.error("Fetch categories error:",P),Re.error(i.formatMessage({id:"ticket.category.load.error"}))}},v=async()=>{var E,$,M,P,I,O;if(dde(m==null?void 0:m.topic))try{const A=await YUt({pageNumber:0,pageSize:1,threadUid:m==null?void 0:m.uid,orgUid:o==null?void 0:o.uid});console.log("queryTicketByThreadUid response",A.data),((E=A.data)==null?void 0:E.code)===200&&((M=($=A.data)==null?void 0:$.data)!=null&&M.content)&&((O=(I=(P=A.data)==null?void 0:P.data)==null?void 0:I.content)==null?void 0:O.length)>0?h(A.data.data.content[0]):h(void 0)}catch(A){console.error("Fetch ticket error:",A),Re.error(i.formatMessage({id:"ticket.details.load.error"}))}};return d.useEffect(()=>{g(),t?v():h(e)},[m==null?void 0:m.uid,t,e]),d.useEffect(()=>{var E;p&&c((E=p==null?void 0:p.attachments)==null?void 0:E.map($=>$.upload))},[p]),p?x.jsxs("div",{style:{padding:"16px"},children:[x.jsxs(Ja,{bordered:!0,column:1,size:"small",styles:{label:{width:"90px"}},children:[x.jsx(Ja.Item,{label:i.formatMessage({id:"ticket.form.uid"}),children:(p==null?void 0:p.uid)||"-"}),x.jsx(Ja.Item,{label:i.formatMessage({id:"ticket.form.title"}),children:(p==null?void 0:p.title)||"-"}),x.jsx(Ja.Item,{label:i.formatMessage({id:"ticket.form.description"}),children:x.jsx("div",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:(p==null?void 0:p.description)||"-"})}),x.jsx(Ja.Item,{label:i.formatMessage({id:"ticket.form.status"}),children:x.jsx(Di,{color:Ww(p==null?void 0:p.status),children:i.formatMessage({id:`ticket.status.${p==null?void 0:p.status.toLowerCase()}`})})}),x.jsx(Ja.Item,{label:i.formatMessage({id:"ticket.form.priority"}),children:x.jsx(Di,{color:"red",children:i.formatMessage({id:`ticket.priority.${p==null?void 0:p.priority.toLowerCase()}`})})}),x.jsx(Ja.Item,{label:i.formatMessage({id:"ticket.form.user"}),children:a((y=p==null?void 0:p.user)==null?void 0:y.nickname)||"-"}),x.jsx(Ja.Item,{label:i.formatMessage({id:"ticket.type"}),children:(p==null?void 0:p.type)===yk?i.formatMessage({id:"ticket.type.agent"}):i.formatMessage({id:"ticket.type.workgroup"})}),(p==null?void 0:p.type)===yk&&x.jsx(Ja.Item,{label:i.formatMessage({id:"ticket.form.assignee"}),children:a((b=p==null?void 0:p.assignee)==null?void 0:b.nickname)||"-"}),(p==null?void 0:p.type)===_5e&&x.jsxs(x.Fragment,{children:[x.jsx(Ja.Item,{label:i.formatMessage({id:"ticket.form.workgroup"}),children:a((w=p==null?void 0:p.workgroup)==null?void 0:w.nickname)||"-"}),x.jsx(Ja.Item,{label:i.formatMessage({id:"ticket.form.assignee"}),children:a((_=p==null?void 0:p.assignee)==null?void 0:_.nickname)||"-"})]}),x.jsx(Ja.Item,{label:i.formatMessage({id:"ticket.form.reporter"}),children:((k=p==null?void 0:p.reporter)==null?void 0:k.nickname)||"-"}),x.jsx(Ja.Item,{label:i.formatMessage({id:"ticket.category"}),children:a((S=u.find(E=>E.uid===(p==null?void 0:p.categoryUid)))==null?void 0:S.name)||"-"}),x.jsx(Ja.Item,{label:i.formatMessage({id:"ticket.form.createdAt"}),children:new Date(p==null?void 0:p.createdAt).toLocaleString()}),x.jsx(Ja.Item,{label:i.formatMessage({id:"ticket.form.updatedAt"}),children:new Date(p==null?void 0:p.updatedAt).toLocaleString()})]}),x.jsx("div",{style:{marginTop:"6px",marginBottom:"6px",maxHeight:"200px",overflowY:"auto"},children:x.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:l.map(E=>x.jsx(sU,{file:E,showDelete:!1},E.uid))})}),(p==null?void 0:p.status)===lg&&(s==null?void 0:s.uid)===((C=p==null?void 0:p.reporter)==null?void 0:C.uid)&&x.jsx(x.Fragment,{children:x.jsxs(Zr,{direction:"horizontal",style:{marginTop:"6px"},children:[x.jsx(Yt,{type:"primary",icon:x.jsx(Em,{}),block:!0,onClick:n,children:i.formatMessage({id:"ticket.action.edit"})}),x.jsx(Yt,{danger:!0,icon:x.jsx(G8,{}),block:!0,onClick:r,children:i.formatMessage({id:"ticket.action.delete"})})]})})]}):x.jsx(Ca,{description:i.formatMessage({id:"ticket.details.empty"}),style:{marginTop:"20%"}})},j3e=({ticket:e,isThreadTicket:t=!1})=>{const n=Nr(E=>E.currentOrg),r=Aa(E=>E.currentTicket),[i,a]=d.useState([]),[o,s]=d.useState([]),[l,c]=d.useState([]),[u,f]=d.useState(!1),p=Pn(),[h,m]=d.useState([]);console.log("currentTicket",r,e,u);const g=async()=>{if(r)try{f(!0);const E={pageNumber:0,pageSize:100,uid:r==null?void 0:r.uid,processInstanceId:r==null?void 0:r.processInstanceId,orgUid:n==null?void 0:n.uid},$=await cWt(E);console.log("queryTicketHistoryProcess response:",$.data),$.data.code===200?a($.data.data||[]):(console.log("queryTicketHistoryTask error:",$.data),Re.error($.data.message))}catch(E){console.error("Fetch ticket history error:",E),Re.error("获取工单历史记录失败")}finally{f(!1)}},v=async()=>{if(r)try{f(!0);const E={pageNumber:0,pageSize:100,uid:r==null?void 0:r.uid,processInstanceId:r==null?void 0:r.processInstanceId,orgUid:n==null?void 0:n.uid},$=await uWt(E);console.log("queryTicketHistoryTask response:",$.data),$.data.code===200?s($.data.data||[]):(console.log("queryTicketHistoryTask error:",$.data),Re.error($.data.message))}catch(E){console.error("Fetch ticket history error:",E),Re.error("获取工单历史记录失败")}},y=async()=>{if(r)try{f(!0);const E={pageNumber:0,pageSize:100,uid:r==null?void 0:r.uid},$=await dWt(E);console.log("queryTicketHistoryActivity response:",$.data),$.data.code===200?c($.data.data||[]):(console.log("queryTicketHistoryActivity error:",$.data),Re.error($.data.message))}catch(E){console.error("Fetch ticket history error:",E),Re.error("获取工单历史记录失败")}},b=async()=>{Re.loading("loading");const E={pageNumber:0,pageSize:50,orgUid:n==null?void 0:n.uid},$=await IF(E);console.log("queryAgentsByOrg: ",$.data),$.data.code===200?(Re.destroy(),m($.data.data.content)):Re.destroy()};d.useEffect(()=>{t||(g(),v(),y(),b())},[r]);const w=E=>E?E===lg||E===q3||E===Mse||E===sy||E===K3||E===G3||E===EF||E===Y3||E===X3||E===k5e||E===Z3||E===Q3?p.formatMessage({id:`ticket.status.${E.toLowerCase()}`}):E:"",_=E=>{if(!E)return"未分配";const $=h.find(M=>M.uid===E);return($==null?void 0:$.nickname)||""},k=()=>(console.log("histories",i),i.map((E,$)=>{var M,P;return{title:E.name||"创建",description:x.jsxs("div",{children:[x.jsxs("div",{children:["处理人: ",((M=E==null?void 0:E.assignee)==null?void 0:M.nickname)||"未分配"]}),x.jsxs("div",{children:["处理时间: ",((P=E.startTime)==null?void 0:P.toLocaleString())||"未分配"]}),E.description&&x.jsxs("div",{children:["备注: ",E.description]}),x.jsxs("div",{children:[p.formatMessage({id:"ticket.status.label"}),":"," ",w(E.status)]})]}),status:$===i.length-1?"process":"finish"}})),S=()=>o.map((E,$)=>{var M;return{title:E.taskName||"任务",description:x.jsxs("div",{children:[x.jsxs("div",{children:["处理人: ",(E==null?void 0:E.assignee)||"未分配"]}),x.jsxs("div",{children:["处理时间: ",((M=E.createTime)==null?void 0:M.toLocaleString())||"未分配"]}),E.description&&x.jsxs("div",{children:["备注: ",E.description]})]}),status:$===o.length-1?"process":"finish"}}),C=()=>l.map((E,$)=>{var M;return{title:w(E==null?void 0:E.activityName)||"活动",description:x.jsxs("div",{children:[x.jsxs("div",{children:["处理人: ",_(E==null?void 0:E.assignee)||"未分配"]}),x.jsxs("div",{children:["处理时间: ",((M=E.startTime)==null?void 0:M.toLocaleString())||"未分配"]})]}),status:$===l.length-1?"process":"finish"}});return x.jsx(x.Fragment,{children:x.jsxs(Qo,{spinning:u,children:[x.jsx(o_,{direction:"vertical",size:"small",current:l.length-1,style:{padding:"16px"},items:C()}),l.length===0&&x.jsx(Ca,{description:"请选择工单查看流转过程"}),Xo&&x.jsxs(x.Fragment,{children:[x.jsx("p",{style:{fontSize:"16px",fontWeight:"bold",textAlign:"center"},children:"流程历史"}),x.jsx(o_,{direction:"vertical",size:"small",current:i.length-1,style:{padding:"16px"},items:k()}),i.length===0&&x.jsx(Ca,{description:"请选择工单查看流转过程"})]}),Xo&&x.jsxs(x.Fragment,{children:[x.jsx("p",{style:{fontSize:"16px",fontWeight:"bold",textAlign:"center"},children:"任务历史"}),x.jsx(o_,{direction:"vertical",size:"small",current:o.length-1,style:{padding:"16px"},items:S()}),o.length===0&&x.jsx(Ca,{description:"请选择工单查看流转过程"})]})]})})},gWt=()=>{const e=Pn(),{locale:t}=d.useContext(Ma),n=fr(u=>u.currentThread),{activeKey:r,setActiveKey:i,defaultKey:a}=mWt(),[o,s]=d.useState([]),[l]=Aa(u=>[u.currentThreadTicket]);d.useEffect(()=>{},[n]),d.useEffect(()=>{const u=[{key:"quickreply",label:e.formatMessage({id:"chat.right.quickreply"}),children:x.jsx(KUt,{})},{key:"userinfo",label:e.formatMessage({id:"chat.right.userinfo"}),children:x.jsx(FUt,{})}];yf(n)?(u.splice(0,0,{key:"ai",label:e.formatMessage({id:"chat.right.ai"}),children:x.jsx(wUt,{})}),u.push({key:"ticket",label:e.formatMessage({id:"chat.right.ticket"}),children:x.jsx(hWt,{})}),s(u)):U2(n)?s([{key:"ticket-details",label:e.formatMessage({id:"ticket.details.title"}),children:x.jsx(R3e,{ticket:l,isThreadTicket:!0})},{key:"ticket-steps",label:e.formatMessage({id:"ticket.steps.title"}),children:x.jsx(j3e,{ticket:l})}]):s([])},[n,e,t]);const c=u=>{i(u)};return d.useEffect(()=>{const u=()=>{i("ai")},f=()=>{i("quickreply")},p=()=>{i("userinfo")};return En.on(jw,u),En.on(Nw,f),En.on(JO,p),()=>{En.off(jw,u),En.off(Nw,f),En.off(JO,p)}},[]),o.length===0?null:x.jsx(x.Fragment,{children:x.jsx(wh,{centered:!0,activeKey:r,defaultActiveKey:a,items:o,onChange:c})})};function e7(){const[e,t]=d.useState(!0);return d.useEffect(()=>{function n(){console.log("networkStatus online:",navigator.onLine),navigator.onLine&&t(!0)}function r(){console.log("networkStatus offline:",!navigator.onLine),t(!1)}return window.addEventListener("online",n),window.addEventListener("offline",r),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}},[]),e}function N3e(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;td.useContext(A3e),F3e=e=>te.createElement(A3e.Provider,{...e});function vWt(){let e=new Map;return{on(t,n){return e.has(t)?e.get(t).add(n):e.set(t,new Set([n])),this},off(t,n){return e.has(t)&&e.get(t).delete(n),this},emit(t,n){return e.has(t)&&e.get(t).forEach(r=>{r(n)}),this}}}var s5=vWt(),L3e=()=>d.useRef(new Map).current,yWt=()=>{},Zne=["resize","contextmenu","click","scroll","blur"],PA={show({event:e,id:t,props:n,position:r}){e.preventDefault&&e.preventDefault(),s5.emit(0).emit(t,{event:e.nativeEvent||e,props:n,position:r})},hideAll(){s5.emit(0)}};function B3e(e){return{show(t){PA.show({...e,...t})},hideAll(){PA.hideAll()}}}function bWt(){let e=new Map,t,n,r,i,a=!1;function o(v){i=Array.from(v.values()),t=-1,r=!0}function s(){i[t].node.focus()}let l=()=>t>=0&&i[t].isSubmenu,c=()=>Array.from(i[t].submenuRefTracker.values());function u(){return t===-1?(f(),!1):!0}function f(){t+10?(t=0,i=v):a=!0,r=!1,s(),!0}return!1}function m(){if(u()&&!r){let v=e.get(n);n.classList.remove("contexify_submenu-isOpen"),i=v.items,n=v.parentNode,v.isRoot&&(r=!0,e.clear()),a||(t=v.focusedIndex,s())}}function g(v){function y(b){for(let w of b)w.isSubmenu&&w.submenuRefTracker&&y(Array.from(w.submenuRefTracker.values())),w.keyMatcher&&w.keyMatcher(v)}y(i)}return{init:o,moveDown:f,moveUp:p,openSubmenu:h,closeSubmenu:m,matchKeys:g}}function O3(e){return typeof e=="function"}function Qne(e){return typeof e=="string"}function z3e(e,t){return d.Children.map(d.Children.toArray(e).filter(Boolean),n=>d.cloneElement(n,t))}function wWt(e){let t={x:e.clientX,y:e.clientY},n=e.changedTouches;return n&&(t.x=n[0].clientX,t.y=n[0].clientY),(!t.x||t.x<0)&&(t.x=0),(!t.y||t.y<0)&&(t.y=0),t}function I3(e,t){return O3(e)?e(t):e}function xWt(e,t){return{...e,...O3(t)?t(e):t}}var H3e=({id:e,theme:t,style:n,className:r,children:i,animation:a="fade",preventDefaultOnKeydown:o=!0,disableBoundariesCheck:s=!1,onVisibilityChange:l,...c})=>{let[u,f]=d.useReducer(xWt,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),p=d.useRef(null),h=L3e(),[m]=d.useState(()=>bWt()),g=d.useRef(),v=d.useRef();d.useEffect(()=>(s5.on(e,b).on(0,w),()=>{s5.off(e,b).off(0,w)}),[e,a,s]),d.useEffect(()=>{u.visible?m.init(h):h.clear()},[u.visible,m,h]);function y(O,A){if(p.current&&!s){let{innerWidth:R,innerHeight:j}=window,{offsetWidth:N,offsetHeight:D}=p.current;O+N>R&&(O-=O+N-R),A+D>j&&(A-=A+D-j)}return{x:O,y:A}}d.useEffect(()=>{u.visible&&f(y(u.x,u.y))},[u.visible]),d.useEffect(()=>{function O(R){o&&R.preventDefault()}function A(R){switch(R.key){case"Enter":case" ":m.openSubmenu()||w();break;case"Escape":w();break;case"ArrowUp":O(R),m.moveUp();break;case"ArrowDown":O(R),m.moveDown();break;case"ArrowRight":O(R),m.openSubmenu();break;case"ArrowLeft":O(R),m.closeSubmenu();break;default:m.matchKeys(R);break}}if(u.visible){window.addEventListener("keydown",A);for(let R of Zne)window.addEventListener(R,w)}return()=>{window.removeEventListener("keydown",A);for(let R of Zne)window.removeEventListener(R,w)}},[u.visible,m,o]);function b({event:O,props:A,position:R}){O.stopPropagation();let j=R||wWt(O),{x:N,y:D}=y(j.x,j.y);Ka.flushSync(()=>{f({visible:!0,willLeave:!1,x:N,y:D,triggerEvent:O,propsFromTrigger:A})}),clearTimeout(v.current),!g.current&&O3(l)&&(l(!0),g.current=!0)}function w(O){O!=null&&(O.button===2||O.ctrlKey)&&O.type!=="contextmenu"||(a&&(Qne(a)||"exit"in a&&a.exit)?f(A=>({willLeave:A.visible})):f(A=>({visible:A.visible?!1:A.visible})),v.current=setTimeout(()=>{O3(l)&&l(!1),g.current=!1}))}function _(){u.willLeave&&u.visible&&Ka.flushSync(()=>f({visible:!1,willLeave:!1}))}function k(){return Qne(a)?Bv({[`contexify_willEnter-${a}`]:S&&!P,[`contexify_willLeave-${a} contexify_willLeave-'disabled'`]:S&&P}):a&&"enter"in a&&"exit"in a?Bv({[`contexify_willEnter-${a.enter}`]:a.enter&&S&&!P,[`contexify_willLeave-${a.exit} contexify_willLeave-'disabled'`]:a.exit&&S&&P}):null}let{visible:S,triggerEvent:C,propsFromTrigger:E,x:$,y:M,willLeave:P}=u,I=Bv("contexify",r,{[`contexify_theme-${t}`]:t},k());return te.createElement(F3e,{value:h},S&&te.createElement("div",{...c,className:I,onAnimationEnd:_,style:{...n,left:$,top:M,opacity:1},ref:p,role:"menu"},z3e(i,{propsFromTrigger:E,triggerEvent:C})))},ci=({id:e,children:t,className:n,style:r,triggerEvent:i,data:a,propsFromTrigger:o,keyMatcher:s,onClick:l=yWt,disabled:c=!1,hidden:u=!1,closeOnClick:f=!0,handlerEvent:p="onClick",...h})=>{let m=d.useRef(),g=D3e(),v={id:e,data:a,triggerEvent:i,props:o},y=I3(c,v),b=I3(u,v);function w(C){v.event=C,C.stopPropagation(),y||(f?_():l(v))}function _(){let C=m.current;C.focus(),C.addEventListener("animationend",()=>setTimeout(PA.hideAll),{once:!0}),C.classList.add("contexify_item-feedback"),l(v)}function k(C){C&&!y&&(m.current=C,g.set(C,{node:C,isSubmenu:!1,keyMatcher:!y&&O3(s)&&(E=>{s(E)&&(E.stopPropagation(),E.preventDefault(),v.event=E,_())})}))}function S(C){(C.key==="Enter"||C.key===" ")&&(C.stopPropagation(),v.event=C,_())}return b?null:te.createElement("div",{...h,[p]:w,className:Bv("contexify_item",n,{"contexify_item-disabled":y}),style:r,onKeyDown:S,ref:k,tabIndex:-1,role:"menuitem","aria-disabled":y},te.createElement("div",{className:"contexify_itemContent"},t))},zv=({triggerEvent:e,data:t,propsFromTrigger:n,hidden:r=!1})=>I3(r,{data:t,triggerEvent:e,props:n})?null:te.createElement("div",{className:"contexify_separator"}),SWt=()=>te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},te.createElement("polyline",{points:"9 18 15 12 9 6"})),CWt=({className:e,...t})=>te.createElement("div",{className:Bv("contexify_rightSlot",e),...t}),Jne=({arrow:e,children:t,disabled:n=!1,hidden:r=!1,label:i,className:a,triggerEvent:o,propsFromTrigger:s,style:l,...c})=>{let u=D3e(),f=L3e(),p=d.useRef(null),h={triggerEvent:o,props:s},m=I3(n,h),g=I3(r,h);function v(){let w=p.current;if(w){let _="contexify_submenu-bottom",k="contexify_submenu-right";w.classList.remove(_,k);let S=w.getBoundingClientRect();S.right>window.innerWidth&&w.classList.add(k),S.bottom>window.innerHeight&&w.classList.add(_)}}function y(w){w&&!m&&u.set(w,{node:w,isSubmenu:!0,submenuRefTracker:f,setSubmenuPosition:v})}if(g)return null;let b=Bv("contexify_item",a,{"contexify_item-disabled":m});return te.createElement(F3e,{value:f},te.createElement("div",{...c,className:b,ref:y,tabIndex:-1,role:"menuitem","aria-haspopup":!0,"aria-disabled":m,onMouseEnter:v,onTouchStart:v},te.createElement("div",{className:"contexify_itemContent",onClick:w=>w.stopPropagation()},i,te.createElement(CWt,null,e||te.createElement(SWt,null))),te.createElement("div",{className:"contexify contexify_submenu",ref:p,style:l},z3e(t,{propsFromTrigger:s,triggerEvent:o}))))};/*! ***************************************************************************** +`,_Ut=Su($we)` +`,kUt=()=>{const{translateString:e}=Zr(),{isDarkMode:t,locale:n}=d.useContext(Ea),r=fr($=>$.currentThread),i=ia($=>$.userInfo),a=Eo($=>$.agentInfo),[o,s]=d.useState(null),[l,c]=d.useState(null),u=[],[f,p]=d.useState(u),{messages:h,resetList:m}=uwe([]),{messageList:g,addMessage:v,addMessageProtobuf:y}=YFt($=>({messageList:$.messageList,addMessage:$.addMessage,addMessageProtobuf:$.addMessageProtobuf,addMessageList:$.addMessageList,updateMessage:$.updateMessage}));d.useEffect(()=>{p(u)},[n]);const w=()=>{var M,P,R;const $={uid:"df_welcome_uid",type:vo,status:Dw,createdAt:Pv(),client:kn,content:"您好,我是客服助手小微,有什么可以帮助您的吗?",user:{uid:(M=l==null?void 0:l.user)==null?void 0:M.uid,avatar:(P=l==null?void 0:l.user)==null?void 0:P.avatar,nickname:(R=l==null?void 0:l.user)==null?void 0:R.nickname},topic:l==null?void 0:l.topic};console.log("addWelcomeMessage:",$),v($)};d.useEffect(()=>{S()},[r]),d.useEffect(()=>{l!=null&&w()},[l]);const b=$=>{const{_id:M,type:P,content:R}=$;switch(P){case Cse:case vo:return x.jsx(x.Fragment,{children:x.jsx(qu,{content:e(R),isRichText:vde(R)})});case $f:return x.jsx(x.Fragment,{children:x.jsx(O3e,{uid:M.toString(),content:R,thread:l})});default:return x.jsx(x.Fragment,{children:x.jsx(qu,{content:R})})}},C=($,M)=>{console.log("QuickButton:",$,M),$.type},k=($,M)=>{if(console.log("handleSend",$,M),l===null)return;const P=Ba(),R=yde(l,i,a,P,vo,M,Pv());console.log("handleSend messageResponse:",R),v(R);const O=xL(l,i,a,P,vo,M,Pv());$le(JSON.stringify(O),function(j){console.log("sendSseMessage receive: ",j),y(j)})},S=async()=>{if(l!=null)return;const M={agent:JSON.stringify({uid:$5e}),forceNew:!1,hide:!0,client:kn},P=await YH(M);console.log("startAgentAssistantChat response:",M,P.data),P.data.code===200?c(P.data.data):je.error(P.data.message)},_=$=>{var M;return((M=$==null?void 0:$.user)==null?void 0:M.uid)===(i==null?void 0:i.uid)?"right":"left"};d.useEffect(()=>{const $=[];g.forEach(M=>{var R,O;let P=!1;(M==null?void 0:M.topic)===(l==null?void 0:l.topic)&&(P=!0),P&&$.push({_id:M==null?void 0:M.uid,type:M==null?void 0:M.type,status:M==null?void 0:M.status,hasTime:!0,createdAt:en(M==null?void 0:M.createdAt).toDate().getTime(),content:M==null?void 0:M.content,position:_(M),user:{avatar:(R=M==null?void 0:M.user)==null?void 0:R.avatar,name:(O=M==null?void 0:M.user)==null?void 0:O.nickname}})}),m($)},[g,l]),d.useEffect(()=>{l&&o&&k("text",o==null?void 0:o.content)},[l,o]),d.useEffect(()=>{const $=M=>{console.log("EVENT_BUS_ASK_AI_COPILOT");const P=JSON.parse(M);console.log("messageObject:",P),s(P),l===null&&S()};return $n.on(Nw,$),()=>{$n.off(Nw,$)}},[]);const E={"@":[{value:"all",label:"所有人"}],"/":[{value:"test1",label:"Test1"}]};return x.jsxs(CUt,{children:[t&&x.jsx(VH,{children:x.jsx("link",{rel:"stylesheet",type:"text/css",href:bse})}),x.jsx(_Ut,{messages:h,renderMessageContent:b,onSend:k,quickReplies:f,onQuickReplyClick:C,metionOptions:E})]})};async function R3e(e){return bn("/api/v1/visitor/query/uid",{method:"GET",params:{uid:e,client:kn}})}async function EUt(e){return bn("/api/v1/visitor/update",{method:"POST",data:{...e,client:kn}})}async function $Ut(e){return bn("/api/v1/visitor/update/tagList",{method:"POST",data:{...e,client:kn}})}const v1=so()(es(ts(ns(e=>({currentVisitor:{nickname:"",user:{uid:"",avatar:""}},setCurrentVisitor(t){e({currentVisitor:t})},resetVisitors:()=>e({currentVisitor:{nickname:""}})})),{name:C6e})));async function MUt(e){return bn("/api/v1/thread/query",{method:"GET",params:{...e}})}async function TUt(e){return bn("/api/v1/thread/query/uid",{method:"GET",params:{uid:e}})}async function I3e(e){return bn("/api/v1/thread/create",{method:"POST",data:{...e}})}async function PUt(e){return bn("/api/v1/thread/update/top",{method:"POST",data:{...e}})}async function OUt(e){return bn("/api/v1/thread/update/star",{method:"POST",data:{...e}})}async function RUt(e){return bn("/api/v1/thread/update/mute",{method:"POST",data:{...e}})}async function j3e(e){return bn("/api/v1/thread/update/user",{method:"POST",data:{...e}})}async function IUt(e){return bn("/api/v1/thread/update/tagList",{method:"POST",data:{...e}})}async function N3e(e){return bn("/api/v1/thread/update/unread",{method:"POST",data:{...e}})}async function jUt(e){return bn("/api/v1/thread/close",{method:"POST",data:{...e}})}async function NUt(e){return bn("/api/v1/thread/accept",{method:"POST",data:{...e}})}const AUt=()=>{const e=Rn(),[t]=Kn.useForm(),{currentVisitor:n,setCurrentVisitor:r}=v1(),{currentThread:i,setCurrentThread:a}=fr(),[o,s]=d.useState({nickname:!1,mobile:!1,email:!1,note:!1});console.log("BasicInfo render:",n),d.useEffect(()=>{t.setFieldsValue({nickname:n==null?void 0:n.nickname,mobile:n==null?void 0:n.mobile,email:n==null?void 0:n.email,note:n==null?void 0:n.note})},[n,t]);const l=p=>{t.setFieldsValue({[p]:n[p]}),s(h=>({...h,[p]:!0}))},c=async p=>{var h,m,g,v,y;try{const w=await t.validateFields([p]),b={uid:n==null?void 0:n.uid,nickname:n==null?void 0:n.nickname,avatar:n==null?void 0:n.avatar,mobile:n==null?void 0:n.mobile,email:n==null?void 0:n.email,note:n==null?void 0:n.note,[p]:w[p]},C=await EUt(b);console.log("updateVisitor:",b,C.data),C.data.code===200&&(je.success(e.formatMessage({id:"customer.basic.update.success",defaultMessage:"Updated successfully"})),r((h=C==null?void 0:C.data)==null?void 0:h.data),s(k=>({...k,[p]:!1})),u({uid:(g=(m=C==null?void 0:C.data)==null?void 0:m.data)==null?void 0:g.uid,nickname:(v=C==null?void 0:C.data)==null?void 0:v.data.nickname,avatar:(y=C==null?void 0:C.data)==null?void 0:y.data.avatar,type:K6e}))}catch(w){console.error("Update failed:",w),je.error(e.formatMessage({id:"customer.basic.update.failed",defaultMessage:"Update failed"}))}},u=async p=>{var h;try{const m={uid:i==null?void 0:i.uid,user:p},g=await j3e(m);console.log("updateThreadUser:",m,g.data),g.data.code===200&&a((h=g==null?void 0:g.data)==null?void 0:h.data)}catch(m){console.error("Update failed:",m),je.error(e.formatMessage({id:"customer.basic.update.failed",defaultMessage:"Update failed"}))}},f=p=>{t.setFieldValue(p,n[p]),s(h=>({...h,[p]:!1}))};return x.jsxs(Kn,{form:t,layout:"vertical",submitter:!1,children:[x.jsx(Or,{name:"nickname",label:e.formatMessage({id:"customer.basic.nickname",defaultMessage:"Nickname"}),rules:[{required:!0,message:"Please input nickname!"}],disabled:!o.nickname,addonAfter:o.nickname?x.jsxs(Xr,{children:[x.jsx(Yt,{type:"primary",onClick:()=>c("nickname"),children:e.formatMessage({id:"common.save",defaultMessage:"Save"})}),x.jsx(Yt,{onClick:()=>f("nickname"),children:e.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})})]}):x.jsx(Yt,{type:"link",icon:x.jsx($m,{}),onClick:()=>l("nickname"),children:e.formatMessage({id:"customer.basic.edit",defaultMessage:"Edit"})})}),x.jsx(Or,{name:"mobile",label:"手机号",disabled:!o.mobile,addonAfter:o.mobile?x.jsxs(Xr,{children:[x.jsx(Yt,{type:"primary",onClick:()=>c("mobile"),children:e.formatMessage({id:"common.save",defaultMessage:"Save"})}),x.jsx(Yt,{onClick:()=>f("mobile"),children:e.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})})]}):x.jsx(Yt,{type:"link",icon:x.jsx($m,{}),onClick:()=>l("mobile"),children:e.formatMessage({id:"customer.basic.edit",defaultMessage:"Edit"})})}),x.jsx(Or,{name:"email",label:"邮箱",rules:[{type:"email",message:"Please input valid email!"}],disabled:!(o!=null&&o.email),addonAfter:o.email?x.jsxs(Xr,{children:[x.jsx(Yt,{type:"primary",onClick:()=>c("email"),children:e.formatMessage({id:"common.save",defaultMessage:"Save"})}),x.jsx(Yt,{onClick:()=>f("email"),children:e.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})})]}):x.jsx(Yt,{type:"link",icon:x.jsx($m,{}),onClick:()=>l("email"),children:e.formatMessage({id:"customer.basic.edit",defaultMessage:"Edit"})})}),x.jsx(Cd,{name:"note",label:e.formatMessage({id:"customer.basic.note",defaultMessage:"Note"}),fieldProps:{rows:4},disabled:!(o!=null&&o.note),addonAfter:o.note?x.jsxs(Xr,{children:[x.jsx(Yt,{type:"primary",onClick:()=>c("note"),children:e.formatMessage({id:"common.save",defaultMessage:"Save"})}),x.jsx(Yt,{onClick:()=>f("note"),children:e.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})})]}):x.jsx(Yt,{type:"link",icon:x.jsx($m,{}),onClick:()=>l("note"),children:e.formatMessage({id:"customer.basic.edit",defaultMessage:"Edit"})})})]})},DUt=d.memo(AUt),FUt={name:"名称",version:"版本",major:"主版本号",vendor:"厂商",model:"型号",type:"类型",architecture:"架构"},s2={browserName:{Chrome:"谷歌浏览器",Firefox:"火狐浏览器",Safari:"Safari浏览器",Edge:"Edge浏览器",IE:"IE浏览器",Opera:"Opera浏览器"},deviceType:{mobile:"移动设备",tablet:"平板设备",desktop:"桌面设备",console:"游戏机",smarttv:"智能电视",wearable:"可穿戴设备",embedded:"嵌入式设备"},osName:{Windows:"Windows",iOS:"iOS",Android:"安卓","Mac OS":"macOS",Linux:"Linux",Ubuntu:"Ubuntu",CentOS:"CentOS"},vendor:{Apple:"苹果",Samsung:"三星",Huawei:"华为",Xiaomi:"小米",OPPO:"OPPO",vivo:"vivo",Google:"谷歌",OnePlus:"一加",LG:"LG",Sony:"索尼",Microsoft:"微软"},model:{Macintosh:"Mac电脑",iPhone:"iPhone",iPad:"iPad",iPod:"iPod",Pixel:"Pixel手机",Galaxy:"Galaxy系列"}},_P=(e,t)=>{if(!e)return x.jsx("p",{children:"暂无信息"});try{const n=typeof e=="string"?JSON.parse(e):e;if(!n||typeof n!="object")return x.jsx("p",{children:"无效设备信息"});const r=Object.keys(n);return x.jsx(x.Fragment,{children:r.map(i=>{const a=FUt[i]||i;let o=n[i];if(i==="name")t==="browser"?o=s2.browserName[n[i]]||n[i]:t==="os"&&(o=s2.osName[n[i]]||n[i]);else if(i==="vendor")o=s2.vendor[n[i]]||n[i];else if(i==="type")o=s2.deviceType[n[i]]||n[i];else if(i==="model"){for(const[s,l]of Object.entries(s2.model))if(n[i].includes(s)){o=n[i].replace(s,l);break}}return x.jsxs("p",{children:[a,": ",o]},i)})})}catch(n){return console.error("解析设备信息时出错:",n,e),x.jsx("p",{children:"解析设备信息出错"})}},{Title:kP}=Zf,LUt=()=>{var n,r,i;const e=Rn(),t=v1(a=>a.currentVisitor);return x.jsxs(x.Fragment,{children:[x.jsx(kP,{level:5,children:e.formatMessage({id:"customer.info.browser",defaultMessage:"Browser Info"})}),_P((n=t==null?void 0:t.device)==null?void 0:n.browser,"browser"),x.jsx(kP,{level:5,children:e.formatMessage({id:"customer.info.os",defaultMessage:"OS Info"})}),_P((r=t==null?void 0:t.device)==null?void 0:r.os,"os"),x.jsx(kP,{level:5,children:e.formatMessage({id:"customer.info.device",defaultMessage:"Device Info"})}),_P((i=t==null?void 0:t.device)==null?void 0:i.device,"device")]})},Xne={width:64,height:22,marginInlineEnd:8,verticalAlign:"top"},BUt=()=>{const{token:e}=Ho.useToken(),t=Rn(),{currentVisitor:n,setCurrentVisitor:r}=v1(),[i,a]=d.useState((n==null?void 0:n.tagList)||[]),[o,s]=d.useState(!1),[l,c]=d.useState(""),[u,f]=d.useState(-1),[p,h]=d.useState(""),m=d.useRef(null),g=d.useRef(null),{currentThread:v,setCurrentThread:y}=fr();d.useEffect(()=>{var P;o&&((P=m.current)==null||P.focus())},[o]),d.useEffect(()=>{a((n==null?void 0:n.tagList)||[])},[n]),d.useEffect(()=>{var P;(P=g.current)==null||P.focus()},[p]);const w=async P=>{const R=i.filter(O=>O!==P);await E(R)},b=()=>{s(!0)},C=P=>{c(P.target.value)},k=async()=>{if(l&&!i.includes(l)){const P=[...i,l];await E(P)}s(!1),c("")},S=P=>{h(P.target.value)},_=async()=>{const P=[...i];P[u]=p,await E(P),f(-1),h("")},E=async P=>{try{const R={uid:n==null?void 0:n.uid,tagList:P},O=await $Ut(R);console.log("updateTags response:",O.data,R),O.data.code===200&&(je.success("标签更新成功"),a(P),r(O.data.data),$(P))}catch(R){console.error("标签更新失败:",R),je.error("标签更新失败")}},$=async P=>{var R;try{const O={uid:v==null?void 0:v.uid,tagList:P},j=await IUt(O);console.log("updateThreadUser:",O,j.data),j.data.code===200&&y((R=j==null?void 0:j.data)==null?void 0:R.data)}catch(O){console.error("Update failed:",O),je.error(t.formatMessage({id:"customer.basic.update.failed",defaultMessage:"Update failed"}))}},M={height:22,background:e.colorBgContainer,borderStyle:"dashed"};return x.jsxs(o3,{gap:"4px 0",wrap:!0,children:[i.map((P,R)=>{if(u===R)return x.jsx(Ur,{ref:g,size:"small",style:Xne,value:p,onChange:S,onBlur:_,onPressEnter:_},P);const O=P.length>20,j=x.jsx(Vi,{closable:!0,style:{userSelect:"none"},onClose:()=>w(P),color:"blue",children:x.jsx("span",{onDoubleClick:I=>{R!==0&&(f(R),h(P),I.preventDefault())},children:O?`${P.slice(0,20)}...`:P})},P);return O?x.jsx(_a,{title:P,children:j},P):j}),o?x.jsx(Ur,{ref:m,type:"text",size:"small",style:Xne,value:l,onChange:C,onBlur:k,onPressEnter:k}):x.jsx(Vi,{style:M,icon:x.jsx(Ny,{}),onClick:b,children:"添加标签"})]})},zUt=()=>{const e=v1(t=>t.currentVisitor);return console.log("visitor:",e),x.jsx("div",{children:x.jsx("h1",{children:x.jsx(za,{})})})},HUt=()=>{const e=v1(n=>n.currentVisitor),t=n=>{if(!n)return x.jsx("p",{children:"暂无信息"});const r=JSON.parse(n),i=Object.keys(r);return x.jsx(x.Fragment,{children:i.map(a=>x.jsxs("p",{children:[a,": ",r[a]]},a))})};return x.jsx(x.Fragment,{children:t(e==null?void 0:e.extra)})},UUt=()=>{var c;const e=Rn(),t=fr(u=>u.currentThread),{currentVisitor:n,setCurrentVisitor:r}=v1(u=>u),i=[{key:"basicInfo",label:e.formatMessage({id:"customer.info.basic",defaultMessage:"Basic Info"}),children:x.jsx(DUt,{})},{key:"deviceInfo",label:e.formatMessage({id:"customer.info.device",defaultMessage:"Device Info"}),children:x.jsx(LUt,{})},{key:"tagInfo",label:e.formatMessage({id:"customer.info.tag",defaultMessage:"Tag Info"}),children:x.jsx(BUt,{})},{key:"extraInfo",label:e.formatMessage({id:"customer.info.extra",defaultMessage:"Extra Info"}),children:x.jsx(HUt,{})}],[a,o]=d.useState(i),s=d.useCallback(async()=>{var f,p,h;if(!((f=t==null?void 0:t.user)!=null&&f.uid))return;console.log("Fetching visitor info for:",(p=t==null?void 0:t.user)==null?void 0:p.uid);const u=await R3e((h=t==null?void 0:t.user)==null?void 0:h.uid);console.log("getVisitorInfo response:",u.data),u.data.code===200?r(u.data.data):je.error(e.formatMessage({id:"customer.info.load.error",defaultMessage:"Failed to load visitor info"}))},[(c=t==null?void 0:t.user)==null?void 0:c.uid,e]);d.useEffect(()=>{Rf(t)&&s()},[t,s]),d.useEffect(()=>{const u=[...i];Nl&&(u.push({key:"browseRecord",label:e.formatMessage({id:"customer.info.browse.record",defaultMessage:"Browse Record"}),children:x.jsx(zUt,{})}),o(u))},[n]);const l=u=>{console.log(u)};return x.jsx("div",{children:x.jsx(l8,{bordered:!1,items:a,defaultActiveKey:["basicInfo"],onChange:l})})};async function WUt(e){return bn("/api/v1/quickreply/query",{method:"GET",params:{...e,client:kn}})}async function VUt(e){return bn("/api/v1/quickreply/create",{method:"POST",data:{...e,client:kn}})}const qUt=({open:e,isEdit:t,category:n,kbUid:r,onCancel:i,onSubmit:a})=>{const[o]=Kn.useForm(),s=Vr(f=>f.currentOrg),l=Rn();console.log("CategoryForm kbUid:",r),d.useEffect(()=>{t?o.setFieldsValue({name:n==null?void 0:n.name}):o.resetFields()},[e]);const c=()=>{o.validateFields().then(async f=>{console.log("handleSaveDep:",f);const p={uid:t?n==null?void 0:n.uid:"",name:f.name,type:b5e,kbUid:r,orgUid:s==null?void 0:s.uid};a(p)}).catch(f=>{console.log("Failed:",f),je.error("创建分类失败")})},u=f=>{f.key==="Enter"&&c()};return x.jsx("div",{children:x.jsx(yr,{title:l.formatMessage({id:"category.form.title",defaultMessage:"New Category"}),open:e,onOk:c,onCancel:i,children:x.jsx("div",{onKeyDown:u,children:x.jsx(Kn,{form:o,name:"categoryForm",initialValues:{name:""},submitter:{render:()=>null},children:x.jsx(Or,{label:l.formatMessage({id:"category.form.name",defaultMessage:"Category Name"}),name:"name",rules:[{required:!0,message:l.formatMessage({id:"category.form.name.required",defaultMessage:"Please enter category name!"})}]})})})})})};async function n7(e){return bn("/api/v1/category/query/org",{method:"GET",params:{...e,client:kn}})}async function A3e(e){return bn("/api/v1/category/create",{method:"POST",data:{...e,client:kn}})}async function KUt(e){return bn("/api/v1/category/update",{method:"POST",data:{...e,client:kn}})}async function GUt(e){return bn("/api/v1/category/delete",{method:"POST",data:{...e,client:kn}})}const{Dragger:YUt}=e1,XUt=({isEdit:e,quickreply:t,open:n,myQuickReply:r,onClose:i,onSubmit:a})=>{var S;const[o]=Kn.useForm(),{translateString:s}=Zr(),l=Vr(_=>_.currentOrg),[c,u]=d.useState(),[f,p]=d.useState(vo),[h,m]=d.useState(".png,.jpg,.jpeg"),[g,v]=d.useState({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:"type",category_uid:"",kb_uid:r==null?void 0:r.key,client:kn});console.log("QuickReplyDrawer kbUid:",r==null?void 0:r.key);const y=Rn();d.useEffect(()=>{e?o.setFieldsValue({type:t==null?void 0:t.type,title:t==null?void 0:t.title,content:t==null?void 0:t.content,categoryUid:t==null?void 0:t.categoryUid,kbUid:r==null?void 0:r.key}):o.resetFields()},[n]);const w=_=>{console.log(`category selected ${_}`),u(_)},b=_=>{console.log(`type selected ${_}`),p(_),_===Cl?m(".png,.jpg,.jpeg,.gif,.bmp"):_===lg?m(".mp4,.avi,.mov,.wmv"):_===Fw?m(".mp3,.wav,.flac"):_===cd&&m(".doc,.xls,.ppt,.pdf,.docx,.txt,.csv,.xlsx,.rtf,.zip,.7z,.tar,.gz,.rar,.iso")},C=()=>{console.log("handleSubmit"),o.validateFields().then(_=>{console.log(_),a({...t,..._,kbUid:r==null?void 0:r.key,orgUid:l==null?void 0:l.uid})}).catch(_=>{console.log("Form errors:",_),je.error("请检查表单填写")})},k={name:"file",accept:h,action:fy(),headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},data:g,showUploadList:!1,beforeUpload(_){console.log("beforeUpload",_);const E=en(new Date).format("YYYYMMDDHHmmss")+"_"+_.name;g.file=_,g.file_name=E,g.file_type=_.type,g.kb_type=m5e,g.category_uid=c||"",g.kb_uid=r==null?void 0:r.key,console.log("beforeUpload",g)},onChange(_){if(_.file.status==="uploading"&&je.loading(`${_.file.name} 上传中`),_.file.status==="done")if(console.log("response: ",_.file.response),_.file.response.code===200){const E=_.file.response.data.fileUrl;o.setFieldValue("content",E),je.destroy(),je.success(`${_.file.name} 上传成功`)}else je.destroy(),je.error(`${_.file.name} 上传失败`);else _.file.status==="error"&&je.error(`${_.file.name} 上传失败`)},onDrop(_){console.log("Dropped files",_.dataTransfer.files)}};return d.useEffect(()=>{const _=$=>{console.log("keydown",$)},E=$=>{};return document.addEventListener("keydown",_),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",_),document.removeEventListener("keyup",E)}},[]),x.jsx(x.Fragment,{children:x.jsx(Ch,{title:y.formatMessage({id:"quickreply.drawer.title",defaultMessage:e?"Edit Quick Reply":"New Quick Reply"}),onClose:i,open:n,extra:x.jsxs(Xr,{children:[x.jsx(Yt,{onClick:i,children:y.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})}),x.jsx(Yt,{onClick:C,type:"primary",children:y.formatMessage({id:"common.save",defaultMessage:"Save"})})]}),children:x.jsxs(Kn,{form:o,initialValues:{...t},submitter:{render:()=>null},children:[x.jsx(ro,{label:y.formatMessage({id:"quickreply.form.category",defaultMessage:"Category"}),name:"categoryUid",rules:[{required:!0,message:y.formatMessage({id:"quickreply.form.category.required",defaultMessage:"Please select a category"})}],options:(S=r==null?void 0:r.children)==null?void 0:S.map(_=>({value:_.key,label:s(_.title)})),fieldProps:{allowClear:!0,placeholder:y.formatMessage({id:"quickreply.form.category.placeholder",defaultMessage:"Select a category"}),onChange:w}}),x.jsx(ro,{label:y.formatMessage({id:"quickreply.form.type",defaultMessage:"Type"}),name:"type",rules:[{required:!0,message:y.formatMessage({id:"quickreply.form.type.required",defaultMessage:"Please select a type"})}],options:[{label:y.formatMessage({id:"quickreply.type.text",defaultMessage:"Text"}),value:vo},{label:y.formatMessage({id:"quickreply.type.image",defaultMessage:"Image"}),value:Cl},{label:y.formatMessage({id:"quickreply.type.video",defaultMessage:"Video"}),value:lg},{label:y.formatMessage({id:"quickreply.type.audio",defaultMessage:"Audio"}),value:Fw},{label:y.formatMessage({id:"quickreply.type.file",defaultMessage:"File"}),value:cd}],fieldProps:{allowClear:!0,placeholder:y.formatMessage({id:"quickreply.form.type.placeholder",defaultMessage:"Select a type"}),onChange:b}}),x.jsx(Or,{label:y.formatMessage({id:"quickreply.form.title",defaultMessage:"Title"}),name:"title",rules:[{required:!0,message:y.formatMessage({id:"quickreply.form.title.required",defaultMessage:"Please enter a title"})}]}),x.jsx(Cd,{label:y.formatMessage({id:"quickreply.form.content",defaultMessage:"Content"}),name:"content"}),f!=vo&&x.jsxs(YUt,{...k,children:[x.jsx("p",{className:"ant-upload-drag-icon",children:x.jsx(vve,{})}),x.jsx("p",{className:"ant-upload-text",children:y.formatMessage({id:"quickreply.upload.text",defaultMessage:"Click or drag file to upload"})})]})]})})})},{Search:ZUt}=Ur,QUt=()=>{const e=Rn(),{translateString:t,translateStringTranct:n}=Zr(),[r]=d.useState(!1),i=Eo(N=>N.agentInfo),[a,o]=d.useState([]),[s,l]=d.useState(""),[c,u]=d.useState(!0),[f,p]=d.useState([]),[h,m]=d.useState(!1),[g,v]=d.useState(!1),[y,w]=d.useState(),[b,C]=d.useState(),k=N=>{o(N),u(!1)},S=Vr(N=>N.currentOrg),_=d.useMemo(()=>{if((s==null?void 0:s.trim().length)===0)return f;const N=[],F=L=>L.map(V=>{const B={...V},U=typeof B.title=="string"&&B.title.toLowerCase().includes(s.toLowerCase());return B.children&&(B.children=F(B.children)),U||B.children&&B.children.length>0?(B.key&&N.push(B.key),B):null}).filter(Boolean),K=F(f);return N.length>0&&(o(N),u(!0)),K},[s,f]),E=async()=>{const N={orgUid:S==null?void 0:S.uid,agentUid:i==null?void 0:i.uid},F=await WUt(N);if(je.destroy(),F.data.code===200){const K=B=>B.map(U=>{const Y=t(U.title),ee={...U,originalTitle:U.title,title:Y,displayTitle:n(U.title)};return U.children&&U.children.length>0&&(ee.children=K(U.children)),ee}),L=K(F.data.data);p(L),w(L.filter(B=>B.level===y5e)[0]);const V=L.map(B=>B.key);o(V)}else je.error(F.data.message)};d.useEffect(()=>{E()},[]);const $=N=>{const{value:F}=N.target;l(F),u(!0)},M=N=>{const F=JSON.stringify(N);$n.emit(JO,F)},P=N=>{navigator.clipboard.writeText(N.content),je.success(`${t(N.content)} 已复制到剪切板`)},R=()=>{console.log("handleCreateCategory"),m(!0)},O=()=>{console.log("handleCreateQuickReply"),v(!0)},j=async N=>{console.log("handleSubmit: ",N),r?je.loading(e.formatMessage({id:"updating"})):je.loading(e.formatMessage({id:"creating"}));const F=await A3e(N);console.log("createCategory response: ",F),F.data.code===200?(je.destroy(),r?je.success(e.formatMessage({id:"update.success"})):je.success(e.formatMessage({id:"create.success"})),m(!1),E()):(je.destroy(),je.error(F.data.message))},I=()=>{m(!1)},A=async N=>{console.log("handleSubmitDrawer",N),r?je.loading(e.formatMessage({id:"updating"})):je.loading(e.formatMessage({id:"creating"}));const F=await VUt(N);console.log("createQuickreply response:",N,F),F.data.code===200?(je.destroy(),je.loading(e.formatMessage({id:"create.success"})),v(!1),E()):(je.destroy(),je.error(F.data.message))};return d.useEffect(()=>{const N=K=>{const L=JSON.parse(K);console.log("handleQuickReplyAdd: ",L==null?void 0:L.content,L==null?void 0:L.type);const V={title:L==null?void 0:L.content,content:L==null?void 0:L.content,type:L==null?void 0:L.type};C(V),v(!0)},F=K=>{const L=JSON.parse(K);l(L==null?void 0:L.content)};return $n.on(eR,N),$n.on(Aw,F),()=>{$n.off(eR,N),$n.off(Aw,F)}},[]),x.jsxs("div",{style:{marginLeft:10,marginRight:10},children:[x.jsx(ZUt,{allowClear:!0,style:{marginBottom:8},enterButton:!0,value:s,placeholder:e.formatMessage({id:"quickreply.search.placeholder",defaultMessage:"Search"}),onChange:$}),x.jsx(uz,{defaultExpandAll:!0,onExpand:k,expandedKeys:a,autoExpandParent:c,treeData:_,blockNode:!0,titleRender:N=>x.jsxs(_a,{title:N.title,children:[N.displayTitle||N.title,N.type!=g5e&&N.type!=v5e&&x.jsxs("span",{style:{float:"right"},children:[x.jsx(Yt,{type:"link",size:"small",onClick:()=>M(N),children:e.formatMessage({id:"quickreply.button.send",defaultMessage:"Send"})}),x.jsx(Yt,{type:"link",size:"small",onClick:()=>P(N),children:e.formatMessage({id:"quickreply.button.copy",defaultMessage:"Copy"})})]})]})}),h&&x.jsx(qUt,{open:h,isEdit:r,kbUid:y==null?void 0:y.key,onCancel:I,onSubmit:j}),g&&x.jsx(XUt,{isEdit:r,open:g,myQuickReply:y,quickreply:b,onClose:()=>v(!1),onSubmit:A}),x.jsxs(o3,{gap:"small",wrap:"wrap",style:{bottom:25,position:"fixed"},children:[x.jsx(Yt,{size:"small",onClick:R,disabled:(y==null?void 0:y.key)==="",children:e.formatMessage({id:"quickreply.button.create.category",defaultMessage:"Create Category"})}),x.jsx(Yt,{size:"small",onClick:O,disabled:(y==null?void 0:y.key)==="",children:e.formatMessage({id:"quickreply.button.create.reply",defaultMessage:"Create Quick Reply"})})]})]})};async function JUt(e){return bn("/api/v1/ticket/query/org",{method:"GET",params:{...e,client:kn}})}async function eWt(e){return bn("/api/v1/ticket/query/topic",{method:"GET",params:{...e,client:kn}})}async function tWt(e){return bn("/api/v1/ticket/query/thread/uid",{method:"GET",params:{...e,client:kn}})}async function nWt(e){return bn("/api/v1/ticket/create",{method:"POST",data:{...e,client:kn}})}async function rWt(e){return bn("/api/v1/ticket/update",{method:"POST",data:{...e,client:kn}})}async function iWt(e){return bn("/api/v1/ticket/delete",{method:"POST",data:{uid:e,client:kn}})}async function aWt(e){return bn("/api/v1/ticket/claim",{method:"POST",data:{...e,client:kn}})}async function oWt(e){return bn("/api/v1/ticket/start",{method:"POST",data:{...e,client:kn}})}async function sWt(e){return bn("/api/v1/ticket/unclaim",{method:"POST",data:{...e,client:kn}})}async function lWt(e){return bn("/api/v1/ticket/hold",{method:"POST",data:{...e,client:kn}})}async function Zne(e){return bn("/api/v1/ticket/resume",{method:"POST",data:{...e,client:kn}})}async function cWt(e){return bn("/api/v1/ticket/resolve",{method:"POST",data:{...e,client:kn}})}async function Qne(e){return bn("/api/v1/ticket/verify",{method:"POST",data:{...e,client:kn}})}async function uWt(e){return bn("/api/v1/ticket/close",{method:"POST",data:{...e,client:kn}})}async function dWt(e){return bn("/api/v1/ticket/history/activity",{method:"GET",params:{...e,client:kn}})}const Za={async loadTickets(e,t=3){const{setLoading:n,setError:r,setTickets:i,currentTicket:a,setCurrentTicket:o,filters:s,searchText:l,pagination:c}=ja.getState(),{memberInfo:u}=Na.getState(),f=async p=>{try{n(!0),r(null);const h={orgUid:e,pageNumber:c.pageNumber,pageSize:c.pageSize,assignmentAll:!1};if(s.status&&s.status!==b0&&(h.status=s.status),s.priority&&s.priority!==w0&&(h.priority=s.priority),s.assignment===Ise?(h.assignmentAll=!1,h.reporterUid=(u==null?void 0:u.uid)||"",h.assigneeUid=""):s.assignment===jse?(h.assignmentAll=!1,h.assigneeUid=(u==null?void 0:u.uid)||"",h.reporterUid=""):s.assignment===lR&&(h.assignmentAll=!1,h.assigneeUid=lR,h.reporterUid=""),s.time)switch(s.time){case S0:h.startDate=en().subtract(100,"years").startOf("day").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().endOf("day").format("YYYY-MM-DD HH:mm:ss");break;case Nse:h.startDate=en().startOf("day").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().endOf("day").format("YYYY-MM-DD HH:mm:ss");break;case Ase:h.startDate=en().subtract(1,"days").startOf("day").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().subtract(1,"days").endOf("day").format("YYYY-MM-DD HH:mm:ss");break;case Dse:h.startDate=en().startOf("week").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().endOf("week").format("YYYY-MM-DD HH:mm:ss");break;case Fse:h.startDate=en().subtract(1,"week").startOf("week").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().subtract(1,"week").endOf("week").format("YYYY-MM-DD HH:mm:ss");break;case Lse:h.startDate=en().startOf("month").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().endOf("month").format("YYYY-MM-DD HH:mm:ss");break;case Bse:h.startDate=en().subtract(1,"month").startOf("month").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().subtract(1,"month").endOf("month").format("YYYY-MM-DD HH:mm:ss");break}l&&(h.searchText=l);const m=await JUt(h);if(console.log("queryTicketsFilter response",h,m.data),m.data.code===200)i(m.data.data.content),m.data.data.content.length>0&&!a?o(m.data.data.content[0]):m.data.data.content.length==0&&o(void 0);else throw new Error(m.data.message)}catch(h){if(psetTimeout(m,1e3)),f(p+1);r(h instanceof Error?h.message:"Failed to load tickets")}finally{n(!1)}};return f(1)},async loadHistoryTickets(e,t,n=3){const{setLoading:r,setError:i,setHistoryTickets:a,pagination:o}=ja.getState(),s=Vr.getState().currentOrg,l=async c=>{try{r(!0),i(null);const u={orgUid:s.uid,pageNumber:o.pageNumber,pageSize:o.pageSize,topic:e,searchText:t},f=await eWt(u);if(console.log("queryTicketByServiceThreadTopic response",u,f.data),f.data.code===200)a(f.data.data.content);else throw new Error(f.data.message)}catch(u){if(csetTimeout(f,1e3)),l(c+1);i(u instanceof Error?u.message:"Failed to load tickets")}finally{r(!1)}};return l(1)},async refreshTickets(){const e=Vr.getState().currentOrg;return this.loadTickets(e==null?void 0:e.uid)},async loadTicketsWithFilters(e){const t=Vr.getState().currentOrg,{setFilter:n}=ja.getState();return Object.entries(e).forEach(([r,i])=>{n(r,i)}),this.loadTickets(t==null?void 0:t.uid)}},fWt=Object.freeze(Object.defineProperty({__proto__:null,ticketService:Za},Symbol.toStringTag,{value:"Module"})),{Search:pWt}=Ur,{Paragraph:Jne}=Zf,hWt=()=>{const e=Rn(),{isDarkMode:t}=vz(),{translateString:n}=Zr(),r=Vr(C=>C.currentOrg),{historyTickets:i,loading:a,filters:o,setFilter:s}=ja(),[l,c]=d.useState([]),u=fr(C=>C.currentThread),[f,p]=d.useState(null),[h,m]=d.useState(""),g=async()=>{var C,k,S;try{const _=await n7({type:yk,orgUid:r==null?void 0:r.uid,pageNumber:0,pageSize:100});((C=_.data)==null?void 0:C.code)===200&&((S=(k=_.data)==null?void 0:k.data)!=null&&S.content)&&c(_.data.data.content)}catch(_){console.error("Fetch categories error:",_),c3.error(e.formatMessage({id:"ticket.category.load.error"}))}};d.useEffect(()=>{u!=null&&u.topic&&(Za.loadHistoryTickets(u==null?void 0:u.topic,h),g())},[u==null?void 0:u.topic]);const v=C=>{m(C),Za.loadHistoryTickets(u==null?void 0:u.topic,C)},y=C=>{switch(C){case"status":s("status",b0);break;case"priority":s("priority",w0);break;case"assignment":s("assignment",x0);break;case"time":s("time",S0);break}},w=C=>t?C?"#1f1f1f":"#141414":C?"#e6f7ff":"#ffffff",b=()=>{const C=[];return o!=null&&o.status&&o.status!==b0&&C.push(x.jsx(Vi,{color:Vw(o.status),closable:!0,onClose:()=>y("status"),children:e.formatMessage({id:`ticket.filter.status_${o.status.toLowerCase()}`})},"status")),o!=null&&o.priority&&o.priority!==w0&&C.push(x.jsx(Vi,{color:Fk(o.priority),closable:!0,onClose:()=>y("priority"),children:e.formatMessage({id:`ticket.filter.priority_${o.priority.toLowerCase()}`})},"priority")),o!=null&&o.assignment&&o.assignment!==x0&&C.push(x.jsx(Vi,{color:"blue",closable:!0,onClose:()=>y("assignment"),children:e.formatMessage({id:`ticket.filter.assignment_${o.assignment.toLowerCase()}`})},"assignment")),o!=null&&o.time&&o.time!==S0&&C.push(x.jsx(Vi,{color:"purple",closable:!0,onClose:()=>y("time"),children:e.formatMessage({id:`ticket.filter.time_${o.time.toLowerCase()}`})},"time")),C};return x.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[x.jsxs("div",{style:{padding:"10px 16px 16px",backgroundColor:t?"#141414":"#ffffff",borderBottom:"1px solid #f0f0f0"},children:[x.jsx(pWt,{placeholder:e.formatMessage({id:"ticket.list.search.placeholder"}),onSearch:v,style:{width:"100%"},allowClear:!0,enterButton:x.jsx(X8,{})}),x.jsx("div",{style:{marginTop:10},children:x.jsxs(Xr,{direction:"vertical",style:{width:"100%"},children:[b().length>0&&x.jsxs("div",{children:[x.jsxs("span",{style:{marginRight:8},children:[e.formatMessage({id:"ticket.current.filters"}),":"]}),x.jsx(Xr,{size:[0,8],wrap:!0,children:b()})]}),x.jsx("div",{children:x.jsxs(Vi,{color:"blue",children:[e.formatMessage({id:"ticket.list.total"}),": ",i.length]})})]})})]}),x.jsx("div",{style:{flex:1,overflow:"auto"},children:x.jsx(Yn,{loading:a,dataSource:i,renderItem:C=>{var k,S;return x.jsx(Yn.Item,{onClick:()=>p(C),style:{cursor:"pointer",padding:"8px 16px",backgroundColor:w((f==null?void 0:f.uid)===C.uid),transition:"background-color 0.3s"},children:x.jsx(Yn.Item.Meta,{title:x.jsxs(x.Fragment,{children:[x.jsx("span",{style:{marginRight:10,color:t?"#ffffff":void 0},children:C.title}),x.jsx(Vi,{color:Vw(C.status),children:e.formatMessage({id:`ticket.filter.status_${C.status.toLowerCase()}`})}),x.jsx(Vi,{color:Fk(C.priority),children:e.formatMessage({id:`ticket.filter.priority_${C.priority.toLowerCase()}`})})]}),description:x.jsxs(x.Fragment,{children:[x.jsxs(Xr,{direction:"vertical",style:{marginBottom:10},children:[x.jsxs(Vi,{color:"blue",children:[e.formatMessage({id:"ticket.type"}),": ",C.type===sR?e.formatMessage({id:"ticket.type.agent"}):e.formatMessage({id:"ticket.type.workgroup"})]}),x.jsxs(Vi,{color:"purple",children:[e.formatMessage({id:"ticket.reporter"}),": ",(k=C.reporter)==null?void 0:k.nickname]}),x.jsxs(Vi,{color:"orange",children:[e.formatMessage({id:"ticket.category"}),": ",n((S=l.find(_=>_.uid===C.categoryUid))==null?void 0:S.name)]})]}),x.jsx(Jne,{ellipsis:{rows:1},style:{margin:0},children:C.description}),x.jsx(Jne,{ellipsis:{rows:1},style:{margin:0},children:new Date(C.updatedAt).toLocaleString()})]})})})},locale:{emptyText:e.formatMessage({id:"ticket.list.empty"})}})})]})},mWt=so(e=>({activeKey:"quickreply",defaultKey:"quickreply",setActiveKey:t=>e({activeKey:t}),setDefaultKey:t=>e({defaultKey:t}),resetActiveKey:()=>e({activeKey:"quickreply"})})),uU=({file:e,onDelete:t,showDelete:n=!0})=>{var i,a;const r=Rn();return x.jsxs("div",{style:{position:"relative",width:"50px",height:"50px",border:"1px solid #f0f0f0",borderRadius:"4px",overflow:"hidden"},title:r.formatMessage({id:(i=e==null?void 0:e.fileType)!=null&&i.startsWith("image/")?"upload.preview.image":"upload.preview.file"}),children:[n&&x.jsx(Yt,{type:"text",size:"small",icon:x.jsx(Y8,{}),onClick:()=>t(e.uid),style:{position:"absolute",top:0,right:0,padding:"2px",background:"rgba(255, 255, 255, 0.8)",border:"none",borderRadius:"0 4px 0 4px",zIndex:1}}),x.jsx("div",{onClick:()=>window.open(e.fileUrl,"_blank"),style:{width:"100%",height:"100%",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(a=e==null?void 0:e.fileType)!=null&&a.startsWith("image/")?x.jsx("img",{src:e==null?void 0:e.fileUrl,alt:e==null?void 0:e.fileName,style:{width:"100%",height:"100%",objectFit:"cover"}}):x.jsx("div",{style:{fontSize:"12px",padding:"4px",textAlign:"center",wordBreak:"break-all",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.fileName})}),x.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:"rgba(0, 0, 0, 0.5)",color:"#fff",fontSize:"10px",padding:"2px",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.fileName})]},e.uid)},D3e=({ticket:e,isThreadTicket:t=!1,onEdit:n,onDelete:r})=>{var y,w,b,C;const i=Rn(),{translateString:a}=Zr(),o=Vr(k=>k.currentOrg),s=Eo(k=>k.agentInfo),[l,c]=d.useState([]),[u,f]=d.useState([]),p=ja(k=>k.currentTicket),h=ja(k=>k.setCurrentTicket),m=fr(k=>k.currentThread),g=async()=>{var k,S,_;try{const E=await n7({type:yk,orgUid:o==null?void 0:o.uid,pageNumber:0,pageSize:100});((k=E.data)==null?void 0:k.code)===200&&((_=(S=E.data)==null?void 0:S.data)!=null&&_.content)&&f(E.data.data.content)}catch(E){console.error("Fetch categories error:",E),je.error(i.formatMessage({id:"ticket.category.load.error"}))}},v=async()=>{var k,S,_,E,$,M;try{const P=await tWt({pageNumber:0,pageSize:1,threadUid:m==null?void 0:m.uid,orgUid:o==null?void 0:o.uid});console.log("queryTicketByThreadUid response",P.data),((k=P.data)==null?void 0:k.code)===200&&((_=(S=P.data)==null?void 0:S.data)!=null&&_.content)&&((M=($=(E=P.data)==null?void 0:E.data)==null?void 0:$.content)==null?void 0:M.length)>0?h(P.data.data.content[0]):h(void 0)}catch(P){console.error("Fetch ticket error:",P),je.error(i.formatMessage({id:"ticket.details.load.error"}))}};return d.useEffect(()=>{g(),t?v():h(e)},[m==null?void 0:m.uid,t,e]),d.useEffect(()=>{var k;p&&c((k=p==null?void 0:p.attachments)==null?void 0:k.map(S=>S.upload))},[p]),p?x.jsxs("div",{style:{padding:"16px"},children:[x.jsxs(ls,{bordered:!0,column:1,size:"small",styles:{label:{width:"90px"}},children:[x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.uid"}),children:(p==null?void 0:p.uid)||"-"}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.title"}),children:(p==null?void 0:p.title)||"-"}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.description"}),children:x.jsx("div",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:(p==null?void 0:p.description)||"-"})}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.status"}),children:x.jsx(Vi,{color:Vw(p==null?void 0:p.status),children:i.formatMessage({id:`ticket.status.${p==null?void 0:p.status.toLowerCase()}`})})}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.priority"}),children:x.jsx(Vi,{color:"red",children:i.formatMessage({id:`ticket.priority.${p==null?void 0:p.priority.toLowerCase()}`})})}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.type"}),children:(p==null?void 0:p.type)===sR?i.formatMessage({id:"ticket.type.agent"}):i.formatMessage({id:"ticket.type.department"})}),(p==null?void 0:p.type)===sR&&x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.assignee"}),children:a((y=p==null?void 0:p.assignee)==null?void 0:y.nickname)||"-"}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.reporter"}),children:((w=p==null?void 0:p.reporter)==null?void 0:w.nickname)||"-"}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.category"}),children:a((b=u.find(k=>k.uid===(p==null?void 0:p.categoryUid)))==null?void 0:b.name)||"-"}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.createdAt"}),children:new Date(p==null?void 0:p.createdAt).toLocaleString()}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.updatedAt"}),children:new Date(p==null?void 0:p.updatedAt).toLocaleString()})]}),x.jsx("div",{style:{marginTop:"6px",marginBottom:"6px",maxHeight:"200px",overflowY:"auto"},children:x.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:l.map(k=>x.jsx(uU,{file:k,showDelete:!1},k.uid))})}),(p==null?void 0:p.status)===cg&&(s==null?void 0:s.uid)===((C=p==null?void 0:p.reporter)==null?void 0:C.uid)&&x.jsx(x.Fragment,{children:x.jsxs(Xr,{direction:"horizontal",style:{marginTop:"6px"},children:[x.jsx(Yt,{type:"primary",icon:x.jsx($m,{}),block:!0,onClick:n,children:i.formatMessage({id:"ticket.action.edit"})}),x.jsx(Yt,{danger:!0,icon:x.jsx(Y8,{}),block:!0,onClick:r,children:i.formatMessage({id:"ticket.action.delete"})})]})})]}):x.jsx(za,{description:i.formatMessage({id:"ticket.details.empty"}),style:{marginTop:"20%"}})},F3e=({isThreadTicket:e=!1})=>{const t=Vr(g=>g.currentOrg),n=ja(g=>g.currentTicket),[r,i]=d.useState([]),[a,o]=d.useState(!1),s=Rn(),{memberResult:l,setMemberResult:c}=Na(),u=async()=>{if(n)try{o(!0);const g={pageNumber:0,pageSize:100,uid:n==null?void 0:n.uid},v=await dWt(g);console.log("queryTicketHistoryActivity response:",v.data),v.data.code===200?i(v.data.data||[]):(console.log("queryTicketHistoryActivity error:",v.data),je.error(v.data.message)),o(!1)}catch(g){console.error("Fetch ticket history error:",g),je.error("获取工单历史记录失败"),o(!1)}},f=async()=>{je.loading("loading");const g={pageNumber:0,pageSize:50,orgUid:t==null?void 0:t.uid},v=await t$(g);v.data.code===200?(je.destroy(),c(v.data)):je.destroy()};d.useEffect(()=>{e||(u(),f())},[n]);const p=g=>g?g===cg||g===Ose||g===G3||g===Rse||g===ly||g===Y3||g===X3||g===TF||g===Z3||g===Q3||g===k5e||g===J3||g===e4?s.formatMessage({id:`ticket.status.${g.toLowerCase()}`}):g:"",h=g=>{if(!g)return"-";const v=l.data.content.find(y=>y.uid===g);return(v==null?void 0:v.nickname)||""},m=()=>r.map((g,v)=>{var y;return{title:p(g==null?void 0:g.activityName)||"活动",description:x.jsxs("div",{children:[(g==null?void 0:g.assignee)&&x.jsxs("div",{children:["处理人: ",h(g==null?void 0:g.assignee)||(g==null?void 0:g.assignee)]}),x.jsxs("div",{children:["处理时间: ",((y=g.startTime)==null?void 0:y.toLocaleString())||"-"]})]}),status:v===r.length-1?"process":"finish"}});return x.jsxs(x.Fragment,{children:[x.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 16px"},children:[x.jsx("h4",{style:{margin:0},children:s.formatMessage({id:"ticket.activity.history"})||"工单活动记录"}),x.jsx(Yt,{type:"primary",icon:x.jsx(X8,{}),size:"small",onClick:u,loading:a,children:s.formatMessage({id:"common.refresh"})||"刷新"})]}),x.jsxs(Zo,{spinning:a,children:[x.jsx(Eve,{direction:"vertical",size:"small",current:r.length-1,style:{padding:"16px"},items:m()}),r.length===0&&x.jsx(za,{description:"请选择工单查看流转过程"})]})]})},gWt=()=>{const e=Rn(),{locale:t}=d.useContext(Ea),n=fr(u=>u.currentThread),{activeKey:r,setActiveKey:i,defaultKey:a}=mWt(),[o,s]=d.useState([]),[l]=ja(u=>[u.currentThreadTicket]);d.useEffect(()=>{},[n]),d.useEffect(()=>{const u=[{key:"quickreply",label:e.formatMessage({id:"chat.right.quickreply"}),children:x.jsx(QUt,{})},{key:"userinfo",label:e.formatMessage({id:"chat.right.userinfo"}),children:x.jsx(UUt,{})}];Rf(n)?(u.splice(0,0,{key:"ai",label:e.formatMessage({id:"chat.right.ai"}),children:x.jsx(kUt,{})}),u.push({key:"ticket",label:e.formatMessage({id:"chat.right.ticket"}),children:x.jsx(hWt,{})}),s(u)):Ak(n)?s([{key:"ticket-details",label:e.formatMessage({id:"ticket.details.title"}),children:x.jsx(D3e,{ticket:l,isThreadTicket:!0})},{key:"ticket-steps",label:e.formatMessage({id:"ticket.steps.title"}),children:x.jsx(F3e,{ticket:l})}]):s([])},[n,e,t]);const c=u=>{i(u)};return d.useEffect(()=>{const u=()=>{i("ai")},f=()=>{i("quickreply")},p=()=>{i("userinfo")};return $n.on(Nw,u),$n.on(Aw,f),$n.on(tR,p),()=>{$n.off(Nw,u),$n.off(Aw,f),$n.off(tR,p)}},[]),o.length===0?null:x.jsx(x.Fragment,{children:x.jsx(Sh,{centered:!0,activeKey:r,defaultActiveKey:a,items:o,onChange:c})})};function r7(){const[e,t]=d.useState(!0);return d.useEffect(()=>{function n(){console.log("networkStatus online:",navigator.onLine),navigator.onLine&&t(!0)}function r(){console.log("networkStatus offline:",!navigator.onLine),t(!1)}return window.addEventListener("online",n),window.addEventListener("offline",r),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}},[]),e}function L3e(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;td.useContext(B3e),H3e=e=>te.createElement(B3e.Provider,{...e});function vWt(){let e=new Map;return{on(t,n){return e.has(t)?e.get(t).add(n):e.set(t,new Set([n])),this},off(t,n){return e.has(t)&&e.get(t).delete(n),this},emit(t,n){return e.has(t)&&e.get(t).forEach(r=>{r(n)}),this}}}var l5=vWt(),U3e=()=>d.useRef(new Map).current,yWt=()=>{},ere=["resize","contextmenu","click","scroll","blur"],IA={show({event:e,id:t,props:n,position:r}){e.preventDefault&&e.preventDefault(),l5.emit(0).emit(t,{event:e.nativeEvent||e,props:n,position:r})},hideAll(){l5.emit(0)}};function W3e(e){return{show(t){IA.show({...e,...t})},hideAll(){IA.hideAll()}}}function bWt(){let e=new Map,t,n,r,i,a=!1;function o(v){i=Array.from(v.values()),t=-1,r=!0}function s(){i[t].node.focus()}let l=()=>t>=0&&i[t].isSubmenu,c=()=>Array.from(i[t].submenuRefTracker.values());function u(){return t===-1?(f(),!1):!0}function f(){t+10?(t=0,i=v):a=!0,r=!1,s(),!0}return!1}function m(){if(u()&&!r){let v=e.get(n);n.classList.remove("contexify_submenu-isOpen"),i=v.items,n=v.parentNode,v.isRoot&&(r=!0,e.clear()),a||(t=v.focusedIndex,s())}}function g(v){function y(w){for(let b of w)b.isSubmenu&&b.submenuRefTracker&&y(Array.from(b.submenuRefTracker.values())),b.keyMatcher&&b.keyMatcher(v)}y(i)}return{init:o,moveDown:f,moveUp:p,openSubmenu:h,closeSubmenu:m,matchKeys:g}}function R3(e){return typeof e=="function"}function tre(e){return typeof e=="string"}function V3e(e,t){return d.Children.map(d.Children.toArray(e).filter(Boolean),n=>d.cloneElement(n,t))}function wWt(e){let t={x:e.clientX,y:e.clientY},n=e.changedTouches;return n&&(t.x=n[0].clientX,t.y=n[0].clientY),(!t.x||t.x<0)&&(t.x=0),(!t.y||t.y<0)&&(t.y=0),t}function I3(e,t){return R3(e)?e(t):e}function xWt(e,t){return{...e,...R3(t)?t(e):t}}var q3e=({id:e,theme:t,style:n,className:r,children:i,animation:a="fade",preventDefaultOnKeydown:o=!0,disableBoundariesCheck:s=!1,onVisibilityChange:l,...c})=>{let[u,f]=d.useReducer(xWt,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),p=d.useRef(null),h=U3e(),[m]=d.useState(()=>bWt()),g=d.useRef(),v=d.useRef();d.useEffect(()=>(l5.on(e,w).on(0,b),()=>{l5.off(e,w).off(0,b)}),[e,a,s]),d.useEffect(()=>{u.visible?m.init(h):h.clear()},[u.visible,m,h]);function y(O,j){if(p.current&&!s){let{innerWidth:I,innerHeight:A}=window,{offsetWidth:N,offsetHeight:F}=p.current;O+N>I&&(O-=O+N-I),j+F>A&&(j-=j+F-A)}return{x:O,y:j}}d.useEffect(()=>{u.visible&&f(y(u.x,u.y))},[u.visible]),d.useEffect(()=>{function O(I){o&&I.preventDefault()}function j(I){switch(I.key){case"Enter":case" ":m.openSubmenu()||b();break;case"Escape":b();break;case"ArrowUp":O(I),m.moveUp();break;case"ArrowDown":O(I),m.moveDown();break;case"ArrowRight":O(I),m.openSubmenu();break;case"ArrowLeft":O(I),m.closeSubmenu();break;default:m.matchKeys(I);break}}if(u.visible){window.addEventListener("keydown",j);for(let I of ere)window.addEventListener(I,b)}return()=>{window.removeEventListener("keydown",j);for(let I of ere)window.removeEventListener(I,b)}},[u.visible,m,o]);function w({event:O,props:j,position:I}){O.stopPropagation();let A=I||wWt(O),{x:N,y:F}=y(A.x,A.y);Va.flushSync(()=>{f({visible:!0,willLeave:!1,x:N,y:F,triggerEvent:O,propsFromTrigger:j})}),clearTimeout(v.current),!g.current&&R3(l)&&(l(!0),g.current=!0)}function b(O){O!=null&&(O.button===2||O.ctrlKey)&&O.type!=="contextmenu"||(a&&(tre(a)||"exit"in a&&a.exit)?f(j=>({willLeave:j.visible})):f(j=>({visible:j.visible?!1:j.visible})),v.current=setTimeout(()=>{R3(l)&&l(!1),g.current=!1}))}function C(){u.willLeave&&u.visible&&Va.flushSync(()=>f({visible:!1,willLeave:!1}))}function k(){return tre(a)?Uv({[`contexify_willEnter-${a}`]:S&&!P,[`contexify_willLeave-${a} contexify_willLeave-'disabled'`]:S&&P}):a&&"enter"in a&&"exit"in a?Uv({[`contexify_willEnter-${a.enter}`]:a.enter&&S&&!P,[`contexify_willLeave-${a.exit} contexify_willLeave-'disabled'`]:a.exit&&S&&P}):null}let{visible:S,triggerEvent:_,propsFromTrigger:E,x:$,y:M,willLeave:P}=u,R=Uv("contexify",r,{[`contexify_theme-${t}`]:t},k());return te.createElement(H3e,{value:h},S&&te.createElement("div",{...c,className:R,onAnimationEnd:C,style:{...n,left:$,top:M,opacity:1},ref:p,role:"menu"},V3e(i,{propsFromTrigger:E,triggerEvent:_})))},ci=({id:e,children:t,className:n,style:r,triggerEvent:i,data:a,propsFromTrigger:o,keyMatcher:s,onClick:l=yWt,disabled:c=!1,hidden:u=!1,closeOnClick:f=!0,handlerEvent:p="onClick",...h})=>{let m=d.useRef(),g=z3e(),v={id:e,data:a,triggerEvent:i,props:o},y=I3(c,v),w=I3(u,v);function b(_){v.event=_,_.stopPropagation(),y||(f?C():l(v))}function C(){let _=m.current;_.focus(),_.addEventListener("animationend",()=>setTimeout(IA.hideAll),{once:!0}),_.classList.add("contexify_item-feedback"),l(v)}function k(_){_&&!y&&(m.current=_,g.set(_,{node:_,isSubmenu:!1,keyMatcher:!y&&R3(s)&&(E=>{s(E)&&(E.stopPropagation(),E.preventDefault(),v.event=E,C())})}))}function S(_){(_.key==="Enter"||_.key===" ")&&(_.stopPropagation(),v.event=_,C())}return w?null:te.createElement("div",{...h,[p]:b,className:Uv("contexify_item",n,{"contexify_item-disabled":y}),style:r,onKeyDown:S,ref:k,tabIndex:-1,role:"menuitem","aria-disabled":y},te.createElement("div",{className:"contexify_itemContent"},t))},Wv=({triggerEvent:e,data:t,propsFromTrigger:n,hidden:r=!1})=>I3(r,{data:t,triggerEvent:e,props:n})?null:te.createElement("div",{className:"contexify_separator"}),SWt=()=>te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},te.createElement("polyline",{points:"9 18 15 12 9 6"})),CWt=({className:e,...t})=>te.createElement("div",{className:Uv("contexify_rightSlot",e),...t}),nre=({arrow:e,children:t,disabled:n=!1,hidden:r=!1,label:i,className:a,triggerEvent:o,propsFromTrigger:s,style:l,...c})=>{let u=z3e(),f=U3e(),p=d.useRef(null),h={triggerEvent:o,props:s},m=I3(n,h),g=I3(r,h);function v(){let b=p.current;if(b){let C="contexify_submenu-bottom",k="contexify_submenu-right";b.classList.remove(C,k);let S=b.getBoundingClientRect();S.right>window.innerWidth&&b.classList.add(k),S.bottom>window.innerHeight&&b.classList.add(C)}}function y(b){b&&!m&&u.set(b,{node:b,isSubmenu:!0,submenuRefTracker:f,setSubmenuPosition:v})}if(g)return null;let w=Uv("contexify_item",a,{"contexify_item-disabled":m});return te.createElement(H3e,{value:f},te.createElement("div",{...c,className:w,ref:y,tabIndex:-1,role:"menuitem","aria-haspopup":!0,"aria-disabled":m,onMouseEnter:v,onTouchStart:v},te.createElement("div",{className:"contexify_itemContent",onClick:b=>b.stopPropagation()},i,te.createElement(CWt,null,e||te.createElement(SWt,null))),te.createElement("div",{className:"contexify contexify_submenu",ref:p,style:l},V3e(t,{propsFromTrigger:s,triggerEvent:o}))))};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -690,16 +690,16 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. -***************************************************************************** */var OA=function(e,t){return OA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},OA(e,t)};function _Wt(e,t){OA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var lw=function(){return lw=Object.assign||function(t){for(var n,r=1,i=arguments.length;re?h():t!==!0&&(i=setTimeout(r?m:h,r===void 0?e-f:e))}return c.cancel=l,c}var Hv={Pixel:"Pixel",Percent:"Percent"},ere={unit:Hv.Percent,value:.8};function tre(e){return typeof e=="number"?{unit:Hv.Percent,value:e*100}:typeof e=="string"?e.match(/^(\d*(\.\d+)?)px$/)?{unit:Hv.Pixel,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:Hv.Percent,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),ere):(console.warn("scrollThreshold should be string or number"),ere)}var EWt=function(e){_Wt(t,e);function t(n){var r=e.call(this,n)||this;return r.lastScrollTop=0,r.actionTriggered=!1,r.startY=0,r.currentY=0,r.dragging=!1,r.maxPullDownDistance=0,r.getScrollableTarget=function(){return r.props.scrollableTarget instanceof HTMLElement?r.props.scrollableTarget:typeof r.props.scrollableTarget=="string"?document.getElementById(r.props.scrollableTarget):(r.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might +***************************************************************************** */var jA=function(e,t){return jA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},jA(e,t)};function _Wt(e,t){jA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var lw=function(){return lw=Object.assign||function(t){for(var n,r=1,i=arguments.length;re?h():t!==!0&&(i=setTimeout(r?m:h,r===void 0?e-f:e))}return c.cancel=l,c}var Vv={Pixel:"Pixel",Percent:"Percent"},rre={unit:Vv.Percent,value:.8};function ire(e){return typeof e=="number"?{unit:Vv.Percent,value:e*100}:typeof e=="string"?e.match(/^(\d*(\.\d+)?)px$/)?{unit:Vv.Pixel,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:Vv.Percent,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),rre):(console.warn("scrollThreshold should be string or number"),rre)}var EWt=function(e){_Wt(t,e);function t(n){var r=e.call(this,n)||this;return r.lastScrollTop=0,r.actionTriggered=!1,r.startY=0,r.currentY=0,r.dragging=!1,r.maxPullDownDistance=0,r.getScrollableTarget=function(){return r.props.scrollableTarget instanceof HTMLElement?r.props.scrollableTarget:typeof r.props.scrollableTarget=="string"?document.getElementById(r.props.scrollableTarget):(r.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might happen because the element may not have been added to DOM yet. See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info. `),null)},r.onStart=function(i){r.lastScrollTop||(r.dragging=!0,i instanceof MouseEvent?r.startY=i.pageY:i instanceof TouchEvent&&(r.startY=i.touches[0].pageY),r.currentY=r.startY,r._infScroll&&(r._infScroll.style.willChange="transform",r._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},r.onMove=function(i){r.dragging&&(i instanceof MouseEvent?r.currentY=i.pageY:i instanceof TouchEvent&&(r.currentY=i.touches[0].pageY),!(r.currentY=Number(r.props.pullDownToRefreshThreshold)&&r.setState({pullToRefreshThresholdBreached:!0}),!(r.currentY-r.startY>r.maxPullDownDistance*1.5)&&r._infScroll&&(r._infScroll.style.overflow="visible",r._infScroll.style.transform="translate3d(0px, "+(r.currentY-r.startY)+"px, 0px)")))},r.onEnd=function(){r.startY=0,r.currentY=0,r.dragging=!1,r.state.pullToRefreshThresholdBreached&&(r.props.refreshFunction&&r.props.refreshFunction(),r.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){r._infScroll&&(r._infScroll.style.overflow="auto",r._infScroll.style.transform="none",r._infScroll.style.willChange="unset")})},r.onScrollListener=function(i){typeof r.props.onScroll=="function"&&setTimeout(function(){return r.props.onScroll&&r.props.onScroll(i)},0);var a=r.props.height||r._scrollableNode?i.target:document.documentElement.scrollTop?document.documentElement:document.body;if(!r.actionTriggered){var o=r.props.inverse?r.isElementAtTop(a,r.props.scrollThreshold):r.isElementAtBottom(a,r.props.scrollThreshold);o&&r.props.hasMore&&(r.actionTriggered=!0,r.setState({showLoader:!0}),r.props.next&&r.props.next()),r.lastScrollTop=a.scrollTop}},r.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:n.dataLength},r.throttledOnScrollListener=kWt(150,r.onScrollListener).bind(r),r.onStart=r.onStart.bind(r),r.onMove=r.onMove.bind(r),r.onEnd=r.onEnd.bind(r),r}return t.prototype.componentDidMount=function(){if(typeof this.props.dataLength>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),typeof this.props.initialScrollY=="number"&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!="function"))throw new Error(`Mandatory prop "refreshFunction" missing. Pull Down To Refresh functionality will not work - as expected. Check README.md for usage'`)},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(n){this.props.dataLength!==n.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(n,r){var i=n.dataLength!==r.prevDataLength;return i?lw(lw({},r),{prevDataLength:n.dataLength}):null},t.prototype.isElementAtTop=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,a=tre(r);return a.unit===Hv.Pixel?n.scrollTop<=a.value+i-n.scrollHeight+1:n.scrollTop<=a.value/100+i-n.scrollHeight+1},t.prototype.isElementAtBottom=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,a=tre(r);return a.unit===Hv.Pixel?n.scrollTop+i>=n.scrollHeight-a.value:n.scrollTop+i>=a.value/100*n.scrollHeight},t.prototype.render=function(){var n=this,r=lw({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),i=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),a=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return te.createElement("div",{style:a,className:"infinite-scroll-component__outerdiv"},te.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(o){return n._infScroll=o},style:r},this.props.pullDownToRefresh&&te.createElement("div",{style:{position:"relative"},ref:function(o){return n._pullDown=o}},te.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!i&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(d.Component);async function $Wt(e){return dn("/api/v1/group/query/uid",{method:"GET",params:{...e,client:Sn}})}async function MWt(e){return dn("/api/v1/group/create",{method:"POST",data:{...e,client:Sn}})}async function U3e(e){return dn("/api/v1/member/query/org",{method:"GET",params:{...e,client:Sn}})}async function TWt(e){return dn("/api/v1/member/query/userUid",{method:"GET",params:{uid:e,client:Sn}})}const R3=So()(Ss(Cs(_s(e=>({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},setCurrentMember(t){e({currentMember:t})},setMemberSelf(t){e({memberSelf:t})},setMemberResult:t=>{e({memberResult:t})},resetMembers:()=>e({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}}})})),{name:b6e}))),PWt=({open:e,onSubmit:t,onCancel:n})=>{const r=Pn(),{userInfo:i}=e1(),a=fr(S=>S.addThread),o=fr(S=>S.setCurrentThread),[s,l]=d.useState([]),[c,u]=d.useState([]),f=R3(S=>S.setMemberResult),p=R3(S=>S.memberResult),h=d.useMemo(()=>{const S=p==null?void 0:p.data.content;return S?(console.log("membersWithoutSelf",S,i==null?void 0:i.uid),S.filter(C=>{var E;return((E=C==null?void 0:C.user)==null?void 0:E.uid)!=(i==null?void 0:i.uid)})):[]},[p,i]),m=async()=>{var $;if(console.log("getAllMembers"),!(i!=null&&i.currentOrganization)){Re.warning("userInfo.organizations is empty");return}const C={pageNumber:0,pageSize:50,orgUid:($=i==null?void 0:i.currentOrganization)==null?void 0:$.uid},E=await U3e(C);console.log("queryMembersByOrg:",C,E.data),E.data.code===200?f(E.data):E.data.code===601||Re.error(E.data.message)};d.useEffect(()=>{m()},[]);const g=(S,C,E)=>{console.log("onChange targetKeys:",S,C,E),l(S)},v=(S,C)=>{console.log("sourceSelectedKeys:",S),console.log("targetSelectedKeys:",C),u([...S,...C])},y=async()=>{console.log("createGroup"),Re.loading("creating group");const S={name:k(),memberUids:s,type:s5e};console.log("groupRequest:",S);const C=await MWt(S);C.data.code===200?(Re.destroy(),b(C.data.data)):(Re.destroy(),Re.error(C.data.message))},b=async S=>{console.log("startChat"),Re.loading("starting group thread");const C={user:{uid:S==null?void 0:S.uid,nickname:S==null?void 0:S.name,avatar:S==null?void 0:S.avatar},topic:kse+(S==null?void 0:S.uid),memberUids:s,content:"",type:yse,extra:"",client:Sn};console.log("thread request:",C);const E=await T3e(C);console.log("create group thread response",E.data),E.data.code===200?(Re.destroy(),a(E.data.data),o(E.data.data),t()):(Re.destroy(),Re.error(E.data.message))},w=()=>{if(console.log("targetKeys:",s),s.length<2){Re.warning(r.formatMessage({id:"group.create.members.min",defaultMessage:"至少选择2名成员"}));return}if(Re.loading(r.formatMessage({id:"group.create.creating",defaultMessage:"创建群组中..."})),!(i!=null&&i.currentOrganization)){Re.warning(r.formatMessage({id:"group.create.org.empty",defaultMessage:"未选择组织"}));return}y()},_=()=>{n()},k=()=>{const S=s.reduce((C,E)=>{const $=p.data.content.find(M=>M.uid===E);return $?C+$.nickname+"":C},"");return(S==null?void 0:S.length)>10?S.substring(0,10)+"...":S};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"group.create.title",defaultMessage:"发起群聊"}),open:e,onOk:w,onCancel:_,children:x.jsx(X8,{dataSource:h,rowKey:S=>S.uid,titles:[r.formatMessage({id:"group.create.contacts",defaultMessage:"好友"}),r.formatMessage({id:"group.create.members",defaultMessage:"群成员"})],targetKeys:s,selectedKeys:c,onChange:g,onSelectChange:v,render:S=>S.nickname})})})},lU=So()(Ss(Cs(_s((e,t)=>({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""},insertWorkgroup(n){e(r=>{r.workgroupResult.data.content.unshift(n)})},updateWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i[a]=n:console.warn(`Workgroup with uid ${n.uid} not found.`)})},deleteWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i.splice(a,1):console.warn(`Workgroup with uid ${n.uid} not found.`)})},setWorkgroupResult:n=>{e({workgroupResult:n})},setWorkgroupInfo(n){e({workgroupInfo:n})},deleteWorkgroupInfo(n){const r=t().workgroupResult.data.content,i=r.findIndex(a=>a.uid===n);i!==-1?e({workgroupResult:{...t().workgroupResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Workgroup not found in cache:",n),t().workgroupInfo.uid===n&&e({workgroupInfo:{uid:"",orgUid:""}})},resetWorkgroupInfo(){e({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""}})}})),{name:T6e}))),W3e="thread_list_item",nC={"star-1":"#FFB800","star-2":"#FF4D4F","star-3":"#52C41A","star-4":"#1890FF"},OWt=({currentThread:e,filters:t,onFilterChange:n,onSetCurrentThread:r,onOpenBlockModal:i,onOpenThreadNoteModal:a})=>{const o=Pn(),s=async()=>{const h={uid:e==null?void 0:e.uid,top:!(e!=null&&e.top)};if((h==null?void 0:h.uid)==null)return;const m=await kUt(h);m.data.code===200?(r(m.data.data),Re.success(o.formatMessage({id:"thread.set.success"}))):Re.error(m.data.message)},l=async h=>{const m={uid:e==null?void 0:e.uid,star:h,top:e==null?void 0:e.top};if((m==null?void 0:m.uid)==null)return;const g=await EUt(m);if(g.data.code===200){if(r(g.data.data),h===0){const{refreshThreads:v}=fr.getState();await v()}Re.success(o.formatMessage({id:"thread.set.success"}))}else Re.error(g.data.message)},c=async()=>{const h={uid:e==null?void 0:e.uid,mute:!(e!=null&&e.mute)};if((h==null?void 0:h.uid)==null)return;const m=await $Ut(h);m.data.code===200?(r(m.data.data),Re.success(o.formatMessage({id:"thread.set.success"}))):Re.error(m.data.message)},u=async()=>{const h={uid:e==null?void 0:e.uid,unread:!(e!=null&&e.unread)};if((h==null?void 0:h.uid)==null)return;const m=await O3e(h);m.data.code===200?(r(m.data.data),Re.success(o.formatMessage({id:"thread.set.success"}))):Re.error(m.data.message)},f=async()=>{VR(e)?En.emit(JO):a()},p=({id:h})=>{switch(h){case"top":s();break;case"star-0":l(0);break;case"star-1":l(1);break;case"star-2":l(2);break;case"star-3":l(3);break;case"star-4":l(4);break;case"mute":c();break;case"unread":u();break;case"black":i();break;case"remark":f();break;default:Re.warning(o.formatMessage({id:"thread.coming.soon"}))}};return x.jsx(x.Fragment,{children:x.jsxs(H3e,{id:W3e,children:[x.jsx(ci,{id:"top",onClick:p,children:e!=null&&e.top?o.formatMessage({id:"thread.menu.untop"}):o.formatMessage({id:"thread.menu.top"})}),x.jsxs(Jne,{label:o.formatMessage({id:"thread.menu.star"}),children:[x.jsx(ci,{id:"star-1",onClick:p,children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:nC["star-1"]}}),o.formatMessage({id:"thread.menu.star.1"})]})}),x.jsx(ci,{id:"star-2",onClick:p,children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:nC["star-2"]}}),o.formatMessage({id:"thread.menu.star.2"})]})}),x.jsx(ci,{id:"star-3",onClick:p,children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:nC["star-3"]}}),o.formatMessage({id:"thread.menu.star.3"})]})}),x.jsx(ci,{id:"star-4",onClick:p,children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:nC["star-4"]}}),o.formatMessage({id:"thread.menu.star.4"})]})}),(e==null?void 0:e.star)&&x.jsxs(x.Fragment,{children:[x.jsx(zv,{}),x.jsx(ci,{id:"star-0",onClick:p,children:o.formatMessage({id:"thread.menu.star.cancel"})})]})]}),x.jsx(zv,{}),x.jsx(ci,{id:"mute",onClick:p,children:e!=null&&e.mute?o.formatMessage({id:"thread.menu.unmute"}):o.formatMessage({id:"thread.menu.mute"})}),x.jsx(ci,{id:"unread",onClick:p,children:e!=null&&e.unread?o.formatMessage({id:"thread.menu.read"}):o.formatMessage({id:"thread.menu.unread"})}),x.jsx(ci,{id:"black",onClick:p,children:o.formatMessage({id:"thread.menu.block"})}),x.jsx(ci,{id:"remark",onClick:p,children:o.formatMessage({id:"thread.menu.remark"})}),x.jsx(zv,{}),x.jsxs(Jne,{label:o.formatMessage({id:"thread.menu.filter"}),children:[x.jsx(ci,{children:x.jsx(us,{checked:t.groupThread,onChange:()=>n("groupThread"),children:o.formatMessage({id:"thread.menu.groupThread"})})}),x.jsx(ci,{children:x.jsx(us,{checked:t.robotThread,onChange:()=>n("robotThread"),children:o.formatMessage({id:"thread.menu.robotThread"})})}),x.jsx(ci,{children:x.jsx(us,{checked:t.workgroupThread,onChange:()=>n("workgroupThread"),children:o.formatMessage({id:"thread.menu.workgroupThread"})})}),x.jsx(ci,{children:x.jsx(us,{checked:t.agentThread,onChange:()=>n("agentThread"),children:o.formatMessage({id:"thread.menu.agentThread"})})}),x.jsx(ci,{children:x.jsx(us,{checked:t.ticketThread,onChange:()=>n("ticketThread"),children:o.formatMessage({id:"thread.menu.ticketThread"})})}),x.jsx(ci,{children:x.jsx(us,{checked:t.memberThread,onChange:()=>n("memberThread"),children:o.formatMessage({id:"thread.menu.memberThread"})})}),x.jsx(ci,{children:x.jsx(us,{checked:t.deviceThread,onChange:()=>n("deviceThread"),children:o.formatMessage({id:"thread.menu.deviceThread"})})}),x.jsx(ci,{children:x.jsx(us,{checked:t.systemThread,onChange:()=>n("systemThread"),children:o.formatMessage({id:"thread.menu.systemThread"})})})]})]})})},IWt=({open:e,onSubmit:t,onCancel:n})=>{const r=d.useRef(!1),i=Pn(),{translateString:a}=Gr(),[o,s]=d.useState(0),[l]=d.useState(5),[c,u]=d.useState(0),[f,p]=d.useState([]),[h,m]=d.useState(!1),[g,v]=d.useState(""),y=Nr(P=>P.currentOrg),b=fr(P=>P.addThread),w=fr(P=>P.setCurrentThread),_=async(P=o)=>{if(r.current){console.log("isLoading: 1",r.current);return}r.current=!0,m(!0),Re.loading("loading");const I={pageNumber:P,pageSize:l,nickname:g,orgUid:y==null?void 0:y.uid,categoryUid:"",type:wF,level:Dw};try{const O=await zwe(I);console.log("queryRobotsByOrg: ",O.data,I),O.data.code===200?(Re.destroy(),p(O.data.data.content),u(O.data.data.totalElements),s(P)):(Re.destroy(),Re.error(O.data.message))}catch{Re.destroy(),Re.error("加载失败,请稍后重试")}finally{r.current=!1,m(!1)}};d.useEffect(()=>{e&&_(0)},[e,g]);const k=P=>{v(P)},S=P=>{_(P-1)},C=()=>{n()},E=async P=>{console.log("startRobotChat",P);const I={agent:JSON.stringify(P),content:"",extra:"",client:Sn},O=await Hwe(I);console.log("startRobotChat response:",I,O.data),O.data.code===200?(b(O.data.data),w(O.data.data),t()):(Re.error(O.data.message),n())},$=async()=>{await E({uid:"df_org_uid_1",nickname:"新对话",avatar:"https://cdn.weiyuai.cn/assets/images/llm/provider/zhipu.png",type:V6e})};return x.jsx(x.Fragment,{children:x.jsxs(yr,{title:i.formatMessage({id:"robot.create.title",defaultMessage:"创建机器人"}),open:e,onCancel:C,footer:[x.jsx(Yt,{type:"primary",icon:x.jsx(jy,{}),onClick:$,children:i.formatMessage({id:"robot.create.void",defaultMessage:"创建空白机器人"})},"create-empty"),x.jsx(Yt,{onClick:C,children:i.formatMessage({id:"common.cancel",defaultMessage:"取消"})},"cancel")],children:[x.jsx(Wr,{placeholder:i.formatMessage({id:"robot.search.placeholder",defaultMessage:"搜索机器人昵称"}),prefix:x.jsx(My,{}),value:g,onChange:P=>k(P.target.value),style:{marginBottom:16,marginTop:8},allowClear:!0}),f.length===0&&g&&!h&&x.jsx("div",{style:{textAlign:"center",padding:"20px 0"},children:i.formatMessage({id:"common.noSearchResults",defaultMessage:"没有找到匹配的机器人"})}),x.jsx("div",{style:{height:250,overflowY:"auto"},children:x.jsx(Gn,{dataSource:f,style:{marginTop:10},renderItem:P=>x.jsx(Gn.Item,{actions:[x.jsx(Yt,{onClick:()=>E(P),children:i.formatMessage({id:"pages.robot.chat",defaultMessage:"Chat"})})],children:x.jsx(Gn.Item.Meta,{style:{marginLeft:"10px"},title:a(P==null?void 0:P.nickname),description:a(P==null?void 0:P.description)})},P==null?void 0:P.uid)})}),!h&&f.length>0&&x.jsx("div",{style:{textAlign:"center",marginTop:16},children:x.jsx(O4,{current:o+1,pageSize:l,total:c,onChange:S,size:"small",simple:!0})}),h&&x.jsx("div",{style:{textAlign:"center",marginTop:20},children:x.jsxs(Zr,{children:[x.jsx(Qo,{}),x.jsx("span",{children:i.formatMessage({id:"common.loading",defaultMessage:"加载中..."})})]})})]})})};async function RWt(e){return dn("/api/v1/black/create",{method:"POST",data:{...e,client:Sn}})}const V3e=({open:e,onOk:t,onCancel:n})=>{var m;const[r]=qn.useForm(),i=Pn(),{translateString:a}=Gr(),o=fr(g=>g.currentThread),{currentVisitor:s,setCurrentVisitor:l}=g1(g=>g),c=Nr(g=>g.currentOrg),u=d.useCallback(async()=>{var v,y,b;if(!((v=o==null?void 0:o.user)!=null&&v.uid))return;console.log("Fetching visitor info for:",(y=o==null?void 0:o.user)==null?void 0:y.uid);const g=await M3e((b=o==null?void 0:o.user)==null?void 0:b.uid);console.log("getVisitorInfo response:",g.data),g.data.code===200?l(g.data.data):Re.error(i.formatMessage({id:"customer.info.load.error",defaultMessage:"Failed to load visitor info"}))},[(m=o==null?void 0:o.user)==null?void 0:m.uid,l,i]);d.useEffect(()=>{r.setFieldValue("blackIp",!1)},[e,s]),d.useEffect(()=>{yf(o)&&u()},[o,u]);const f=g=>{if(g){const v=ur().add(100,"year");r.setFieldValue("endTime",v)}else r.setFieldValue("endTime",null)},p=async()=>{const g=await r.validateFields(),v={blackUid:s==null?void 0:s.uid,blackNickname:s==null?void 0:s.nickname,blackAvatar:s==null?void 0:s.avatar,blockIp:g.blackIp,endTime:g.endTime?g.endTime.format("YYYY-MM-DD")+" 00:00:00":void 0,reason:g.reason,threadTopic:o==null?void 0:o.topic,orgUid:c==null?void 0:c.uid};console.log("blackModel params",v);const y=await RWt(v);console.log("blackModel result",y),y.data.code===200?(Re.success(i.formatMessage({id:"black.success"})),t(v)):Re.error(a(y.data.message))},h=()=>{r.resetFields(),n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:i.formatMessage({id:"black.title"}),open:e,onOk:p,onCancel:h,children:x.jsxs(qn,{form:r,submitter:!1,onFinish:p,children:[x.jsx(zN,{name:"blackIp",label:i.formatMessage({id:"black.ip"})}),x.jsx(zN,{name:"isPermanent",label:i.formatMessage({id:"black.permanent"}),fieldProps:{onChange:f}}),x.jsx(rTt,{name:"endTime",label:i.formatMessage({id:"black.until"}),dependencies:["isPermanent"],fieldProps:{showTime:!1,disabled:r.getFieldValue("isPermanent"),disabledDate:g=>g&&g!r.getFieldValue("isPermanent")&&!v?Promise.reject(i.formatMessage({id:"black.until.required"})):Promise.resolve()}]}),x.jsx(wd,{name:"reason",label:i.formatMessage({id:"black.reason"}),rules:[{required:!0,message:i.formatMessage({id:"black.reason.required"})}],fieldProps:{placeholder:i.formatMessage({id:"black.reason.placeholder"})}})]})})})},T2={async loadThreads(e=3){const{setLoading:t,setError:n,setThreads:r,searchText:i,pagination:a,setPagination:o}=fr.getState(),{agentInfo:s}=Si.getState(),l=async c=>{try{t(!0),n(null);const u={pageNumber:a.pageNumber,pageSize:a.pageSize,inviteUids:[s.uid],monitorUids:[s.uid]};i&&(u.searchText=i);const f=await CUt(u);if(console.log("queryThreads response",u,f.data),f.data.code===200){if(o({...a,total:f.data.data.totalElements,pageNumber:f.data.data.last?a.pageNumber:a.pageNumber+1}),a.pageNumber===0)r(f.data.data.content);else{const{threads:h}=fr.getState();r([...h,...f.data.data.content])}const{setThreadResult:p}=fr.getState();p(f.data)}else throw new Error(f.data.message)}catch(u){if(csetTimeout(f,1e3)),l(c+1);n(u instanceof Error?u.message:"Failed to load threads")}finally{t(!1)}};return l(1)},async resetAndLoad(){const{setPagination:e}=fr.getState(),t=Nr.getState().currentOrg;return e({pageNumber:0,pageSize:100,total:0}),this.loadThreads(t.uid)},async loadThreadsWithFilters(e){const{setFilter:t}=fr.getState();return Object.entries(e).forEach(([n,r])=>{t(n,r)}),this.resetAndLoad()}},jWt=Object.freeze(Object.defineProperty({__proto__:null,threadService:T2},Symbol.toStringTag,{value:"Module"})),q3e=({open:e,handleOk:t,handleCancel:n,currentThread:r})=>{var c;const i=Pn(),[a]=qn.useForm(),{translateString:o}=Gr(),{setCurrentThread:s}=fr();te.useEffect(()=>{var u,f;(u=r==null?void 0:r.user)!=null&&u.nickname&&a.setFieldsValue({nickname:o((f=r==null?void 0:r.user)==null?void 0:f.nickname)})},[r]);const l=async()=>{var p,h,m,g;const u=await a.validateFields(),{nickname:f}=u;try{const v={uid:r==null?void 0:r.uid,user:{uid:(p=r==null?void 0:r.user)==null?void 0:p.uid,nickname:f,avatar:(h=r==null?void 0:r.user)==null?void 0:h.avatar,type:(m=r==null?void 0:r.user)==null?void 0:m.type}},y=await P3e(v);console.log("updateThreadUser:",v,y.data),y.data.code===200&&s((g=y==null?void 0:y.data)==null?void 0:g.data),t&&t()}catch(v){console.error("Update failed:",v)}};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:i.formatMessage({id:"thread.menu.remark",defaultMessage:"备注"}),open:e,onOk:l,onCancel:n,children:x.jsx(qn,{form:a,submitter:!1,children:x.jsx(Pr,{name:"nickname",label:"昵称",initialValue:(c=r==null?void 0:r.user)==null?void 0:c.nickname,placeholder:"请输入新的昵称",rules:[{required:!0,message:"请输入昵称"}]})})})})},{Text:nre}=Zf,rre={"star-1":"#FFB800","star-2":"#FF4D4F","star-3":"#52C41A","star-4":"#1890FF"},NWt=()=>{const e=Pn(),{translateStringTranct:t}=Gr(),{isDarkMode:n,agentInfo:r,hasRoleAgent:i,handleUpdateAgentStatus:a}=mz(),o=e7(),[s,l]=d.useState("下线"),c=lU(se=>se.workgroupResult),[u,f]=d.useState(!1),p=Nr(se=>se.currentOrg),[h,m]=d.useState(!1),g=[{key:"group",label:e.formatMessage({id:"thread.dropdown.create.group",defaultMessage:"创建群聊"})},{key:"ai",label:e.formatMessage({id:"thread.dropdown.create.ai",defaultMessage:"创建AI对话"})}],v=[{key:m0,label:e.formatMessage({id:"thread.agent.status.online",defaultMessage:"😀 - 在线接待"})},{key:Dm,label:e.formatMessage({id:"thread.agent.status.offline",defaultMessage:"🔻 - 客服下线"})},{key:hq,label:e.formatMessage({id:"thread.agent.status.busy",defaultMessage:"🏃‍♀️ - 客服忙碌"})}],{threads:y,queuingThreads:b,threadResult:w,currentThread:_,showQueueList:k,loading:S,pagination:C,searchText:E,setSearchText:$,setCurrentThread:M,setShowQueueList:P}=fr(),I=d.useRef(!1),O=async()=>{if(!(I.current||!(p!=null&&p.uid))){I.current=!0;try{await T2.loadThreads(),await A()}finally{I.current=!1}}},A=async()=>{const se={uid:r==null?void 0:r.uid},ye=await t$e(se);console.log("syncCurrentThreadCount:",ye.data)};d.useEffect(()=>{o&&(p!=null&&p.uid)&&(console.log("网络重连,重新加载会话列表"),O())},[o,p==null?void 0:p.uid]);const R=async se=>{if(se.uid===(_==null?void 0:_.uid)){console.log("handleSelectThreadClick 当前聊天窗口,无需操作");return}se.unreadCount>0?j(se):M(se)},j=async se=>{const ye={uid:se.uid,unreadCount:0};if((ye==null?void 0:ye.uid)==null){Re.error("当前会话uid为空,无法清除未读消息数");return}console.log("handleUpdateThreadUnreadCount",ye);const Oe=await O3e(ye);console.log("handleUpdateThreadUnreadCount response:",Oe.data),Oe.data.code===200?M(Oe.data.data):console.log("handleUpdateThreadUnreadCount error:",Oe)},{show:N}=B3e({id:W3e});function D(se,ye){console.log("handleContextMenu:",se," item:",ye),M(ye),N({event:se})}const V=se=>{var ye,Oe,z,H,G,de,xe,he,Ue;return((ye=se==null?void 0:se.user)==null?void 0:ye.avatar)===null||((Oe=se==null?void 0:se.user)==null?void 0:Oe.avatar)===void 0?x.jsx("img",{style:{marginLeft:10},src:Rk(((z=se==null?void 0:se.user)==null?void 0:z.uid)||""),alt:"Avatar"}):((H=se==null?void 0:se.user)==null?void 0:H.avatar.indexOf("local"))>-1?x.jsx("img",{style:{marginLeft:10},src:Rk(((G=se==null?void 0:se.user)==null?void 0:G.uid)||""),alt:"Avatar"}):((de=se==null?void 0:se.user)==null?void 0:de.avatar.indexOf("http"))===-1?x.jsx("p",{style:{marginLeft:25},children:(xe=se==null?void 0:se.user)==null?void 0:xe.avatar}):x.jsx(x.Fragment,{children:se!=null&&se.unread?x.jsx(x.Fragment,{children:x.jsx(Fo,{dot:se==null?void 0:se.unread,style:{marginTop:10},children:x.jsx(Oi,{style:{marginLeft:10,marginTop:5},shape:"square",size:"large",src:((he=se==null?void 0:se.user)==null?void 0:he.avatar)||""})})}):x.jsx(x.Fragment,{children:x.jsx(Fo,{count:se==null?void 0:se.unreadCount,style:{marginTop:10},children:x.jsx(Oi,{style:{marginLeft:10,marginTop:5},shape:"square",size:"large",src:((Ue=se==null?void 0:se.user)==null?void 0:Ue.avatar)||""})})})})},[F,K]=d.useState(!1),B=()=>{K(!0)},U=()=>{K(!1)},Z=()=>{K(!1)},[ee,ie]=d.useState(!1),Y=()=>{ie(!0)},X=()=>{ie(!1)},ae=()=>{ie(!1)},oe=se=>{console.log("handleSearchChange:",se),$(se),p!=null&&p.uid&&T2.loadThreadsWithFilters({searchText:se})},le=se=>{if(se===m0)return l(e.formatMessage({id:"thread.status.online",defaultMessage:"😀接待"}));if(se===Dm)return l(e.formatMessage({id:"thread.status.offline",defaultMessage:"🔻下线"}));if(se===hq)return l(e.formatMessage({id:"thread.status.busy",defaultMessage:"🏃‍♀️忙碌"}))};d.useEffect(()=>{console.log("useEffect agentStatus"),le(r==null?void 0:r.status)},[r,e]);const ce=se=>{console.log("handleAgentStatusClick:",se),a(se.key),le(se.key)},pe=se=>{const ye=se==null?void 0:se.topic.split("/")[2],Oe=c==null?void 0:c.data.content.find(z=>ye===(z==null?void 0:z.uid));if(Oe!=null)return t(Oe==null?void 0:Oe.nickname)},me=()=>{console.log("handleSwitchQueue"),P(!k)},re=({key:se})=>{se==="group"?B():se==="ai"&&Y()},[fe,ve]=d.useState({groupThread:!1,robotThread:!1,workgroupThread:!1,agentThread:!1,ticketThread:!1,memberThread:!1,deviceThread:!1,systemThread:!1}),$e=se=>{ve(ye=>({...ye,[se]:!ye[se]}))},be=(se=>{let ye=[...se];return Object.values(fe).some(Oe=>Oe)&&(ye=ye.filter(Oe=>!!(fe.groupThread&&Do(Oe)||fe.robotThread&&Ak(Oe)||fe.workgroupThread&&JOe(Oe)||fe.agentThread&&QOe(Oe)||fe.ticketThread&&U2(Oe)||fe.memberThread&&Nk(Oe)||fe.deviceThread&&eIe(Oe)||fe.systemThread&&tIe(Oe)))),[...ye].sort((Oe,z)=>{const H=Oe.top||!1,G=z.top||!1;if(H!==G)return H?-1:1;const de=Oe.star||0,xe=z.star||0;return de!==xe?xe-de:new Date(z.updatedAt).getTime()-new Date(Oe.updatedAt).getTime()})})(y);d.useEffect(()=>{p!=null&&p.uid&&T2.resetAndLoad()},[p==null?void 0:p.uid]);const Se=async()=>{S||!(p!=null&&p.uid)||w.data.last||await T2.loadThreads()},we=se=>!se||se.length===0?null:(se=se.filter(ye=>ye!==""),x.jsx(a3,{gap:"4px 0",children:se.map(ye=>{const Oe=ye.length>10,z=x.jsx(Di,{color:"blue",children:Oe?`${ye.slice(0,10)}...`:ye},ye);return Oe?x.jsx(Ea,{title:ye,children:z},ye):z})}));return x.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[x.jsxs("div",{children:[x.jsxs("div",{children:[x.jsxs(a3,{style:{marginTop:15,marginBottom:15},gap:"middle",justify:"center",align:"center",children:[x.jsx(Wr,{style:{width:"55%"},size:"small",placeholder:e.formatMessage({id:"thread.search.placeholder",defaultMessage:"搜索"}),value:E,onChange:se=>oe(se.target.value),prefix:x.jsx(My,{}),allowClear:!0}),x.jsx(C6,{menu:{items:g,onClick:re},children:x.jsx("a",{onClick:se=>se.preventDefault(),children:x.jsx(Zr,{children:x.jsx(jy,{})})})}),i&&x.jsx(C6,{menu:{items:v,onClick:ce},children:x.jsxs(Zr,{children:[x.jsx(nre,{children:s}),x.jsx(nre,{children:x.jsx($y,{})})]})})]}),!o&&x.jsx(QE,{message:e.formatMessage({id:"i18n.network.disconnected"}),banner:!0}),S&&x.jsx("p",{style:{paddingLeft:10,paddingRight:10},children:x.jsx(Yt,{loading:!0,block:!0,children:e.formatMessage({id:"i18n.message.pulling"})})})]}),i&&b.length>0&&x.jsx(Yt,{icon:x.jsx(gve,{}),block:!0,onClick:me,children:e.formatMessage({id:"i18n.queue.tip"})+"("+b.length+")"}),(be==null?void 0:be.length)===0&&x.jsx(Ca,{}),(be==null?void 0:be.length)>0&&x.jsx(EWt,{dataLength:be.length,next:Se,hasMore:!w.data.last&&be.length{var ye;return x.jsxs(Gn.Item,{onClick:()=>R(se),onContextMenu:()=>D(event,se),className:(_==null?void 0:_.uid)===(se==null?void 0:se.uid)?n?"list-item-dark-active":"list-item-active":n?"list-item-dark":"list-item",style:{backgroundColor:se.star?rre[`star-${se.star}`]+"10":void 0,borderLeft:se.star?`3px solid ${rre[`star-${se.star}`]}`:void 0},children:[x.jsx(Gn.Item.Meta,{avatar:V(se),title:x.jsxs(x.Fragment,{children:[se!=null&&se.top?x.jsx($We,{}):x.jsx(x.Fragment,{}),t((ye=se==null?void 0:se.user)==null?void 0:ye.nickname)]}),description:x.jsx("span",{className:"ellipsis",children:x.jsxs(x.Fragment,{children:[se!=null&&se.mute?x.jsx(Nit,{}):x.jsx(x.Fragment,{}),we(se==null?void 0:se.tagList),uIe(se==null?void 0:se.topic)?x.jsx(x.Fragment,{children:t("i18n.robot")}):x.jsx(x.Fragment,{}),dIe(se==null?void 0:se.topic)?x.jsx(x.Fragment,{children:t("i18n.agent")}):x.jsx(x.Fragment,{}),fIe(se==null?void 0:se.topic)?x.jsx(x.Fragment,{children:"["+pe(se)+"]"}):x.jsx(x.Fragment,{}),dde(se==null?void 0:se.topic)?x.jsx(x.Fragment,{children:t("i18n.ticket.thread")}):x.jsx(x.Fragment,{})," "+t(se==null?void 0:se.content)]})})}),x.jsx("span",{className:"timestamp",children:XOe(se==null?void 0:se.updatedAt)})]},se==null?void 0:se.uid)}})})]}),x.jsx(OWt,{currentThread:_,filters:fe,onFilterChange:$e,onSetCurrentThread:M,onOpenBlockModal:()=>f(!0),onOpenThreadNoteModal:()=>m(!0)}),F&&x.jsx(PWt,{open:F,onSubmit:U,onCancel:Z}),ee&&x.jsx(IWt,{open:ee,onSubmit:X,onCancel:ae}),u&&x.jsx(V3e,{open:u,onOk:()=>{f(!1)},onCancel:()=>{f(!1)}}),h&&x.jsx(q3e,{open:h,currentThread:_,handleOk:()=>{m(!1)},handleCancel:()=>{m(!1)}})]})};function co(){const{isDarkMode:e}=Ag(),{token:t}=zo.useToken(),n={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},r=300,i={borderBottom:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},a={borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},o={minHeight:120,overflowY:"auto"},s={height:20,fontSize:12,backgroundColor:t.colorBgContainer,color:t.colorText};return{leftSiderStyle:n,leftSiderWidth:r,headerStyle:i,rightSiderStyle:a,contentStyle:o,footerStyle:s}}const AWt=()=>{const e=Pn(),{isDarkMode:t}=Ag(),n=Si(f=>f.agentInfo),{currentQueuingThread:r,queuingThreads:i,threads:a,setCurrentQueuingThread:o,setQueuingThreads:s,setThreads:l}=fr(f=>({currentQueuingThread:f.currentQueuingThread,queuingThreads:f.queuingThreads,threads:f.threads,setCurrentQueuingThread:f.setCurrentQueuingThread,setQueuingThreads:f.setQueuingThreads,setThreads:f.setThreads})),c=async(f,p)=>{var g;console.log("acceptQueuingThread",f,p),Re.loading(e.formatMessage({id:"queue.accepting",defaultMessage:"接受中..."}));const h={uid:f.uid,agent:JSON.stringify({uid:n==null?void 0:n.uid,nickname:n==null?void 0:n.nickname,avatar:n==null?void 0:n.avatar,type:$f})},m=await PUt(h);if(((g=m==null?void 0:m.data)==null?void 0:g.code)===200){Re.destroy(),Re.success(e.formatMessage({id:"queue.accept.success",defaultMessage:"接受成功"}));const v={...f,state:q6e},y=a.filter(b=>b.topic!==f.topic);l([v,...y]),s(i.filter(b=>b.uid!==f.uid))}else Re.destroy(),Re.error(e.formatMessage({id:"queue.accept.failed",defaultMessage:"接受失败"}))},u=(f,p)=>{console.log("handleListOnClick",f,p),o(f)};return x.jsx(x.Fragment,{children:x.jsx(Gn,{dataSource:i,renderItem:(f,p)=>x.jsx(Gn.Item,{style:(r==null?void 0:r.uid)===f.uid?{backgroundColor:t?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>u(f,p),actions:[x.jsx(Yt,{onClick:()=>c(f,p),children:e.formatMessage({id:"queue.accept",defaultMessage:"接受"})})],children:x.jsx(Gn.Item.Meta,{style:{marginLeft:10},avatar:x.jsx(Oi,{src:f.user.avatar}),title:f.user.nickname,description:f.content})},f==null?void 0:f.uid)})})};var K3e={exports:{}},DWt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",FWt=DWt,LWt=FWt;function G3e(){}function Y3e(){}Y3e.resetWarningCache=G3e;var BWt=function(){function e(r,i,a,o,s,l){if(l!==LWt){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Y3e,resetWarningCache:G3e};return n.PropTypes=n,n};K3e.exports=BWt();var zWt=K3e.exports;const wi=ei(zWt),HWt=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Y0(e,t,n){const r=UWt(e),{webkitRelativePath:i}=e,a=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&ire(r,"path",a),ire(r,"relativePath",a),r}function UWt(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=HWt.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function ire(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const WWt=[".DS_Store","Thumbs.db"];function VWt(e){return d1(this,void 0,void 0,function*(){return l5(e)&&qWt(e.dataTransfer)?XWt(e.dataTransfer,e.type):KWt(e)?GWt(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?YWt(e):[]})}function qWt(e){return l5(e)}function KWt(e){return l5(e)&&l5(e.target)}function l5(e){return typeof e=="object"&&e!==null}function GWt(e){return IA(e.target.files).map(t=>Y0(t))}function YWt(e){return d1(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>Y0(n))})}function XWt(e,t){return d1(this,void 0,void 0,function*(){if(e.items){const n=IA(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(ZWt));return are(X3e(r))}return are(IA(e.files).map(n=>Y0(n)))})}function are(e){return e.filter(t=>WWt.indexOf(t.name)===-1)}function IA(e){if(e===null)return[];const t=[];for(let n=0;n[...t,...Array.isArray(n)?X3e(n):[n]],[])}function ore(e,t){return d1(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const a=yield e.getAsFileSystemHandle();if(a===null)throw new Error(`${e} is not a File`);if(a!==void 0){const o=yield a.getFile();return o.handle=a,Y0(o)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return Y0(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function QWt(e){return d1(this,void 0,void 0,function*(){return e.isDirectory?Z3e(e):JWt(e)})}function Z3e(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function a(){t.readEntries(o=>d1(this,void 0,void 0,function*(){if(o.length){const s=Promise.all(o.map(QWt));i.push(s),a()}else try{const s=yield Promise.all(i);n(s)}catch(s){r(s)}}),o=>{r(o)})}a()})}function JWt(e){return d1(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=Y0(r,e.fullPath);t(i)},r=>{n(r)})})})}var CP=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?a===s.replace(/\/.*$/,""):i===s})}return!0};function sre(e){return nVt(e)||tVt(e)||J3e(e)||eVt()}function eVt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tVt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nVt(e){if(Array.isArray(e))return RA(e)}function lre(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cre(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:sVt,message:"File type must be ".concat(r)}},ure=function(t){return{code:lVt,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},dre=function(t){return{code:cVt,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},fVt={code:uVt,message:"Too many files"};function e4e(e,t){var n=e.type==="application/x-moz-file"||oVt(e,t);return[n,n?null:dVt(t)]}function t4e(e,t,n){if(dm(e.size))if(dm(t)&&dm(n)){if(e.size>n)return[!1,ure(n)];if(e.sizen)return[!1,ure(n)]}return[!0,null]}function dm(e){return e!=null}function pVt(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple,o=e.maxFiles,s=e.validator;return!a&&t.length>1||a&&o>=1&&t.length>o?!1:t.every(function(l){var c=e4e(l,n),u=j3(c,1),f=u[0],p=t4e(l,r,i),h=j3(p,1),m=h[0],g=s?s(l):null;return f&&m&&!g})}function c5(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function rC(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function fre(e){e.preventDefault()}function hVt(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function mVt(e){return e.indexOf("Edge/")!==-1}function gVt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return hVt(e)||mVt(e)}function Au(){for(var e=arguments.length,t=new Array(e),n=0;n1?i-1:0),o=1;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RVt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var cU=d.forwardRef(function(e,t){var n=e.children,r=u5(e,SVt),i=o4e(r),a=i.open,o=u5(i,CVt);return d.useImperativeHandle(t,function(){return{open:a}},[a]),te.createElement(d.Fragment,null,n(ea(ea({},o),{},{open:a})))});cU.displayName="Dropzone";var a4e={disabled:!1,getFilesFromEvent:VWt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};cU.defaultProps=a4e;cU.propTypes={children:wi.func,accept:wi.objectOf(wi.arrayOf(wi.string)),multiple:wi.bool,preventDropOnDocument:wi.bool,noClick:wi.bool,noKeyboard:wi.bool,noDrag:wi.bool,noDragEventsBubbling:wi.bool,minSize:wi.number,maxSize:wi.number,maxFiles:wi.number,disabled:wi.bool,getFilesFromEvent:wi.func,onFileDialogCancel:wi.func,onFileDialogOpen:wi.func,useFsAccessApi:wi.bool,autoFocus:wi.bool,onDragEnter:wi.func,onDragLeave:wi.func,onDragOver:wi.func,onDrop:wi.func,onDropAccepted:wi.func,onDropRejected:wi.func,onError:wi.func,validator:wi.func};var AA={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function o4e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ea(ea({},a4e),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,o=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,f=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,y=t.useFsAccessApi,b=t.autoFocus,w=t.preventDropOnDocument,_=t.noClick,k=t.noKeyboard,S=t.noDrag,C=t.noDragEventsBubbling,E=t.onError,$=t.validator,M=d.useMemo(function(){return bVt(n)},[n]),P=d.useMemo(function(){return yVt(n)},[n]),I=d.useMemo(function(){return typeof v=="function"?v:hre},[v]),O=d.useMemo(function(){return typeof g=="function"?g:hre},[g]),A=d.useRef(null),R=d.useRef(null),j=d.useReducer(jVt,AA),N=_P(j,2),D=N[0],V=N[1],F=D.isFocused,K=D.isFileDialogActive,B=d.useRef(typeof window<"u"&&window.isSecureContext&&y&&vVt()),U=function(){!B.current&&K&&setTimeout(function(){if(R.current){var Oe=R.current.files;Oe.length||(V({type:"closeDialog"}),O())}},300)};d.useEffect(function(){return window.addEventListener("focus",U,!1),function(){window.removeEventListener("focus",U,!1)}},[R,K,O,B]);var Z=d.useRef([]),ee=function(Oe){A.current&&A.current.contains(Oe.target)||(Oe.preventDefault(),Z.current=[])};d.useEffect(function(){return w&&(document.addEventListener("dragover",fre,!1),document.addEventListener("drop",ee,!1)),function(){w&&(document.removeEventListener("dragover",fre),document.removeEventListener("drop",ee))}},[A,w]),d.useEffect(function(){return!r&&b&&A.current&&A.current.focus(),function(){}},[A,b,r]);var ie=d.useCallback(function(ye){E?E(ye):console.error(ye)},[E]),Y=d.useCallback(function(ye){ye.preventDefault(),ye.persist(),be(ye),Z.current=[].concat(EVt(Z.current),[ye.target]),rC(ye)&&Promise.resolve(i(ye)).then(function(Oe){if(!(c5(ye)&&!C)){var z=Oe.length,H=z>0&&pVt({files:Oe,accept:M,minSize:o,maxSize:a,multiple:s,maxFiles:l,validator:$}),G=z>0&&!H;V({isDragAccept:H,isDragReject:G,isDragActive:!0,type:"setDraggedFiles"}),c&&c(ye)}}).catch(function(Oe){return ie(Oe)})},[i,c,ie,C,M,o,a,s,l,$]),X=d.useCallback(function(ye){ye.preventDefault(),ye.persist(),be(ye);var Oe=rC(ye);if(Oe&&ye.dataTransfer)try{ye.dataTransfer.dropEffect="copy"}catch{}return Oe&&f&&f(ye),!1},[f,C]),ae=d.useCallback(function(ye){ye.preventDefault(),ye.persist(),be(ye);var Oe=Z.current.filter(function(H){return A.current&&A.current.contains(H)}),z=Oe.indexOf(ye.target);z!==-1&&Oe.splice(z,1),Z.current=Oe,!(Oe.length>0)&&(V({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),rC(ye)&&u&&u(ye))},[A,u,C]),oe=d.useCallback(function(ye,Oe){var z=[],H=[];ye.forEach(function(G){var de=e4e(G,M),xe=_P(de,2),he=xe[0],Ue=xe[1],We=t4e(G,o,a),ge=_P(We,2),ze=ge[0],Ve=ge[1],Be=$?$(G):null;if(he&&ze&&!Be)z.push(G);else{var Xe=[Ue,Ve];Be&&(Xe=Xe.concat(Be)),H.push({file:G,errors:Xe.filter(function(Ke){return Ke})})}}),(!s&&z.length>1||s&&l>=1&&z.length>l)&&(z.forEach(function(G){H.push({file:G,errors:[fVt]})}),z.splice(0)),V({acceptedFiles:z,fileRejections:H,isDragReject:H.length>0,type:"setFiles"}),p&&p(z,H,Oe),H.length>0&&m&&m(H,Oe),z.length>0&&h&&h(z,Oe)},[V,s,M,o,a,l,p,h,m,$]),le=d.useCallback(function(ye){ye.preventDefault(),ye.persist(),be(ye),Z.current=[],rC(ye)&&Promise.resolve(i(ye)).then(function(Oe){c5(ye)&&!C||oe(Oe,ye)}).catch(function(Oe){return ie(Oe)}),V({type:"reset"})},[i,oe,ie,C]),ce=d.useCallback(function(){if(B.current){V({type:"openDialog"}),I();var ye={multiple:s,types:P};window.showOpenFilePicker(ye).then(function(Oe){return i(Oe)}).then(function(Oe){oe(Oe,null),V({type:"closeDialog"})}).catch(function(Oe){wVt(Oe)?(O(Oe),V({type:"closeDialog"})):xVt(Oe)?(B.current=!1,R.current?(R.current.value=null,R.current.click()):ie(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ie(Oe)});return}R.current&&(V({type:"openDialog"}),I(),R.current.value=null,R.current.click())},[V,I,O,y,oe,ie,P,s]),pe=d.useCallback(function(ye){!A.current||!A.current.isEqualNode(ye.target)||(ye.key===" "||ye.key==="Enter"||ye.keyCode===32||ye.keyCode===13)&&(ye.preventDefault(),ce())},[A,ce]),me=d.useCallback(function(){V({type:"focus"})},[]),re=d.useCallback(function(){V({type:"blur"})},[]),fe=d.useCallback(function(){_||(gVt()?setTimeout(ce,0):ce())},[_,ce]),ve=function(Oe){return r?null:Oe},$e=function(Oe){return k?null:ve(Oe)},Ce=function(Oe){return S?null:ve(Oe)},be=function(Oe){C&&Oe.stopPropagation()},Se=d.useMemo(function(){return function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Oe=ye.refKey,z=Oe===void 0?"ref":Oe,H=ye.role,G=ye.onKeyDown,de=ye.onFocus,xe=ye.onBlur,he=ye.onClick,Ue=ye.onDragEnter,We=ye.onDragOver,ge=ye.onDragLeave,ze=ye.onDrop,Ve=u5(ye,_Vt);return ea(ea(NA({onKeyDown:$e(Au(G,pe)),onFocus:$e(Au(de,me)),onBlur:$e(Au(xe,re)),onClick:ve(Au(he,fe)),onDragEnter:Ce(Au(Ue,Y)),onDragOver:Ce(Au(We,X)),onDragLeave:Ce(Au(ge,ae)),onDrop:Ce(Au(ze,le)),role:typeof H=="string"&&H!==""?H:"presentation"},z,A),!r&&!k?{tabIndex:0}:{}),Ve)}},[A,pe,me,re,fe,Y,X,ae,le,k,S,r]),we=d.useCallback(function(ye){ye.stopPropagation()},[]),se=d.useMemo(function(){return function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Oe=ye.refKey,z=Oe===void 0?"ref":Oe,H=ye.onChange,G=ye.onClick,de=u5(ye,kVt),xe=NA({accept:M,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ve(Au(H,le)),onClick:ve(Au(G,we)),tabIndex:-1},z,R);return ea(ea({},xe),de)}},[R,n,s,le,r]);return ea(ea({},D),{},{isFocused:F&&!r,getRootProps:Se,getInputProps:se,rootRef:A,inputRef:R,open:ve(ce)})}function jVt(e,t){switch(t.type){case"focus":return ea(ea({},e),{},{isFocused:!0});case"blur":return ea(ea({},e),{},{isFocused:!1});case"openDialog":return ea(ea({},AA),{},{isFileDialogActive:!0});case"closeDialog":return ea(ea({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ea(ea({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ea(ea({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return ea({},AA);default:return e}}function hre(){}const NVt=({onImageSend:e,children:t})=>{const[n,r]=d.useState(null),i=d.useCallback(()=>{console.log("DropUpload handleImageCancel"),r(null)},[]),a=d.useCallback(()=>{console.log("DropUpload handleImageSend"),WC(n,c=>{n!=null&&n.type.startsWith("image")?e(c.data.fileUrl,Sl):n!=null&&n.type.startsWith("video/")?e(c.data.fileUrl,sg):e(c.data.fileUrl,od),r(null)})},[n]),o=d.useCallback(c=>{console.log("DropUpload acceptedFiles",c),c.map(u=>{console.log(u),r(u)})},[]),{getRootProps:s,getInputProps:l}=o4e({maxFiles:1,onDrop:o,onDropAccepted(c,u){console.log("DropUpload onDropAccepted",c,u)},onDropRejected(c,u){console.log("DropUpload onDropRejected",c,u)},noClick:!0});return x.jsxs("div",{...s(),style:{height:"100%"},children:[x.jsx("input",{...l()}),x.jsx(x.Fragment,{children:t}),n&&x.jsx(bwe,{file:n,onCancel:i,onSend:a})]})};function AVt(e,t,n){var r=this,i=d.useRef(null),a=d.useRef(0),o=d.useRef(null),s=d.useRef([]),l=d.useRef(),c=d.useRef(),u=d.useRef(e),f=d.useRef(!0);u.current=e;var p=typeof window<"u",h=!t&&t!==0&&p;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,g=!("trailing"in n)||!!n.trailing,v="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,b=v?Math.max(+n.maxWait||0,t):null;d.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var w=d.useMemo(function(){var _=function(M){var P=s.current,I=l.current;return s.current=l.current=null,a.current=M,c.current=u.current.apply(I,P)},k=function(M,P){h&&cancelAnimationFrame(o.current),o.current=h?requestAnimationFrame(M):setTimeout(M,P)},S=function(M){if(!f.current)return!1;var P=M-i.current;return!i.current||P>=t||P<0||v&&M-a.current>=b},C=function(M){return o.current=null,g&&s.current?_(M):(s.current=l.current=null,c.current)},E=function M(){var P=Date.now();if(S(P))return C(P);if(f.current){var I=t-(P-i.current),O=v?Math.min(I,b-(P-a.current)):I;k(M,O)}},$=function(){if(p||y){var M=Date.now(),P=S(M);if(s.current=[].slice.call(arguments),l.current=r,i.current=M,P){if(!o.current&&f.current)return a.current=i.current,k(E,t),m?_(i.current):c.current;if(v)return k(E,t),_(i.current)}return o.current||k(E,t),c.current}};return $.cancel=function(){o.current&&(h?cancelAnimationFrame(o.current):clearTimeout(o.current)),a.current=0,s.current=i.current=l.current=o.current=null},$.isPending=function(){return!!o.current},$.flush=function(){return o.current?C(Date.now()):c.current},$},[m,v,t,b,g,h,p,y]);return w}function DVt(e,t){return e===t}function FVt(e,t,n){var r=DVt,i=d.useRef(e),a=d.useState({})[1],o=AVt(d.useCallback(function(l){i.current=l,a({})},[a]),t,n),s=d.useRef(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}const LVt=({uid:e,content:t,status:n,type:r})=>x.jsx("div",{className:"rate-bubble",children:x.jsx(lu,{children:x.jsxs(Xs,{fluid:!0,children:[x.jsx(np,{children:r===dv?"邀请评价":"主动评价"}),x.jsx(tp,{}),x.jsx(cwe,{children:x.jsx(qs,{color:"primary",disabled:!0,children:n===Cse?"已评价":"待评价"})})]})})});function Ha(){return Ha=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Zm(e){var t=d.useRef({fn:e,curr:void 0}).current;if(t.fn=e,!t.curr){var n=Object.create(null);Object.keys(e).forEach(function(r){n[r]=function(){var i;return(i=t.fn[r]).call.apply(i,[t.fn].concat([].slice.call(arguments)))}}),t.curr=n}return t.curr}function d5(e){return d.useReducer(function(t,n){return Ha({},t,typeof n=="function"?n(t):n)},e)}var s4e=d.createContext(void 0),Gd=typeof window<"u"&&"ontouchstart"in window,DA=function(e,t,n){return Math.max(Math.min(e,n),t)},iC=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=0),DA(e,1*(1-n),Math.max(6,t)*(1+n))},FA=typeof window>"u"||/ServerSideRendering/.test(navigator&&navigator.userAgent)?d.useEffect:d.useLayoutEffect;function Z1(e,t,n){var r=d.useRef(t);r.current=t,d.useEffect(function(){function i(a){r.current(a)}return e&&window.addEventListener(e,i,n),function(){e&&window.removeEventListener(e,i)}},[e])}var BVt=["container"];function zVt(e){var t=e.container,n=t===void 0?document.body:t,r=t7(e,BVt);return Ka.createPortal(te.createElement("div",Ha({},r)),n)}function HVt(e){return te.createElement("svg",Ha({width:"44",height:"44",viewBox:"0 0 768 768"},e),te.createElement("path",{d:"M607.5 205.5l-178.5 178.5 178.5 178.5-45 45-178.5-178.5-178.5 178.5-45-45 178.5-178.5-178.5-178.5 45-45 178.5 178.5 178.5-178.5z"}))}function UVt(e){return te.createElement("svg",Ha({width:"44",height:"44",viewBox:"0 0 768 768"},e),te.createElement("path",{d:"M640.5 352.5v63h-390l178.5 180-45 45-256.5-256.5 256.5-256.5 45 45-178.5 180h390z"}))}function WVt(e){return te.createElement("svg",Ha({width:"44",height:"44",viewBox:"0 0 768 768"},e),te.createElement("path",{d:"M384 127.5l256.5 256.5-256.5 256.5-45-45 178.5-180h-390v-63h390l-178.5-180z"}))}function VVt(){return d.useEffect(function(){var e=document.body.style,t=e.overflow;return e.overflow="hidden",function(){e.overflow=t}},[]),null}function mre(e){var t=e.touches[0],n=t.clientX,r=t.clientY;if(e.touches.length>=2){var i=e.touches[1],a=i.clientX,o=i.clientY;return[(n+a)/2,(r+o)/2,Math.sqrt(Math.pow(a-n,2)+Math.pow(o-r,2))]}return[n,r,0]}var _p=function(e,t,n,r){var i,a=n*t,o=(a-r)/2,s=e;return a<=r?(i=1,s=0):e>0&&o-e<=0?(i=2,s=o):e<0&&o+e<=0&&(i=3,s=-o),[i,s]};function kP(e,t,n,r,i,a,o,s,l,c){o===void 0&&(o=innerWidth/2),s===void 0&&(s=innerHeight/2),l===void 0&&(l=0),c===void 0&&(c=0);var u=_p(e,a,n,innerWidth)[0],f=_p(t,a,r,innerHeight),p=innerWidth/2,h=innerHeight/2;return{x:o-a/i*(o-(p+e))-p+(r/n>=3&&n*a===innerWidth?0:u?l/2:l),y:s-a/i*(s-(h+t))-h+(f[0]?c/2:c),lastCX:o,lastCY:s}}function LA(e,t,n){var r=e%180!=0;return r?[n,t,r]:[t,n,r]}function EP(e,t,n){var r=LA(n,innerWidth,innerHeight),i=r[0],a=r[1],o=0,s=i,l=a,c=e/t*a,u=t/e*i;return e=a?s=c:e>=i&&ti/a?l=u:t/e>=3&&!r[2]?o=((l=u)-a)/2:s=c,{width:s,height:l,x:0,y:o,pause:!0}}function aC(e,t){var n=t.leading,r=n!==void 0&&n,i=t.maxWait,a=t.wait,o=a===void 0?i||0:a,s=d.useRef(e);s.current=e;var l=d.useRef(0),c=d.useRef(),u=function(){return c.current&&clearTimeout(c.current)},f=d.useCallback(function(){var p=[].slice.call(arguments),h=Date.now();function m(){l.current=h,u(),s.current.apply(null,p)}var g=l.current,v=h-g;if(g===0&&(r&&m(),l.current=h),i!==void 0){if(v>i)return void m()}else v=1&&a&&a())};u()}function u(){l=requestAnimationFrame(c)}}var KVt={T:0,L:0,W:0,H:0,FIT:void 0},l4e=function(){var e=d.useRef(!1);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e},GVt=["className"];function YVt(e){var t=e.className,n=t===void 0?"":t,r=t7(e,GVt);return te.createElement("div",Ha({className:"PhotoView__Spinner "+n},r),te.createElement("svg",{viewBox:"0 0 32 32",width:"36",height:"36",fill:"white"},te.createElement("path",{opacity:".25",d:"M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"}),te.createElement("path",{d:"M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"})))}var XVt=["src","loaded","broken","className","onPhotoLoad","loadingElement","brokenElement"];function ZVt(e){var t=e.src,n=e.loaded,r=e.broken,i=e.className,a=e.onPhotoLoad,o=e.loadingElement,s=e.brokenElement,l=t7(e,XVt),c=l4e();return t&&!r?te.createElement(te.Fragment,null,te.createElement("img",Ha({className:"PhotoView__Photo"+(i?" "+i:""),src:t,onLoad:function(u){var f=u.target;c.current&&a({loaded:!0,naturalWidth:f.naturalWidth,naturalHeight:f.naturalHeight})},onError:function(){c.current&&a({broken:!0})},alt:""},l)),!n&&(te.createElement("span",{className:"PhotoView__icon"},o)||te.createElement(YVt,{className:"PhotoView__icon"}))):s?te.createElement("span",{className:"PhotoView__icon"},typeof s=="function"?s({src:t}):s):null}var QVt={naturalWidth:void 0,naturalHeight:void 0,width:void 0,height:void 0,loaded:void 0,broken:!1,x:0,y:0,touched:!1,maskTouched:!1,rotate:0,scale:1,CX:0,CY:0,lastX:0,lastY:0,lastCX:0,lastCY:0,lastScale:1,touchTime:0,touchLength:0,pause:!0,stopRaf:!0,reach:void 0};function JVt(e){var t=e.item,n=t.src,r=t.render,i=t.width,a=i===void 0?0:i,o=t.height,s=o===void 0?0:o,l=t.originRef,c=e.visible,u=e.speed,f=e.easing,p=e.wrapClassName,h=e.className,m=e.style,g=e.loadingElement,v=e.brokenElement,y=e.onPhotoTap,b=e.onMaskTap,w=e.onReachMove,_=e.onReachUp,k=e.onPhotoResize,S=e.isActive,C=e.expose,E=d5(QVt),$=E[0],M=E[1],P=d.useRef(0),I=l4e(),O=$.naturalWidth,A=O===void 0?a:O,R=$.naturalHeight,j=R===void 0?s:R,N=$.width,D=N===void 0?a:N,V=$.height,F=V===void 0?s:V,K=$.loaded,B=K===void 0?!n:K,U=$.broken,Z=$.x,ee=$.y,ie=$.touched,Y=$.stopRaf,X=$.maskTouched,ae=$.rotate,oe=$.scale,le=$.CX,ce=$.CY,pe=$.lastX,me=$.lastY,re=$.lastCX,fe=$.lastCY,ve=$.lastScale,$e=$.touchTime,Ce=$.touchLength,be=$.pause,Se=$.reach,we=Zm({onScale:function(Ze){return se(iC(Ze))},onRotate:function(Ze){ae!==Ze&&(C({rotate:Ze}),M(Ha({rotate:Ze},EP(A,j,Ze))))}});function se(Ze,nt,jt){oe!==Ze&&(C({scale:Ze}),M(Ha({scale:Ze},kP(Z,ee,D,F,oe,Ze,nt,jt),Ze<=1&&{x:0,y:0})))}var ye=aC(function(Ze,nt,jt){if(jt===void 0&&(jt=0),(ie||X)&&S){var Lt=LA(ae,D,F),Bt=Lt[0],Ht=Lt[1];if(jt===0&&P.current===0){var Ne=Math.abs(Ze-le)<=20,He=Math.abs(nt-ce)<=20;if(Ne&&He)return void M({lastCX:Ze,lastCY:nt});P.current=Ne?nt>ce?3:2:1}var Le,Qe=Ze-re,ht=nt-fe;if(jt===0){var xt=_p(Qe+pe,oe,Bt,innerWidth)[0],Nt=_p(ht+me,oe,Ht,innerHeight);Le=function(Pt,lt,Ct,kt){return lt&&Pt===1||kt==="x"?"x":Ct&&Pt>1||kt==="y"?"y":void 0}(P.current,xt,Nt[0],Se),Le!==void 0&&w(Le,Ze,nt,oe)}if(Le==="x"||X)return void M({reach:"x"});var Ot=iC(oe+(jt-Ce)/100/2*oe,A/D,.2);C({scale:Ot}),M(Ha({touchLength:jt,reach:Le,scale:Ot},kP(Z,ee,D,F,oe,Ot,Ze,nt,Qe,ht)))}},{maxWait:8});function Oe(Ze){return!Y&&!ie&&(I.current&&M(Ha({},Ze,{pause:c})),I.current)}var z,H,G,de,xe,he,Ue,We,ge=(xe=function(Ze){return Oe({x:Ze})},he=function(Ze){return Oe({y:Ze})},Ue=function(Ze){return I.current&&(C({scale:Ze}),M({scale:Ze})),!ie&&I.current},We=Zm({X:function(Ze){return xe(Ze)},Y:function(Ze){return he(Ze)},S:function(Ze){return Ue(Ze)}}),function(Ze,nt,jt,Lt,Bt,Ht,Ne,He,Le,Qe,ht){var xt=LA(Qe,Bt,Ht),Nt=xt[0],Ot=xt[1],Pt=_p(Ze,He,Nt,innerWidth),lt=Pt[0],Ct=Pt[1],kt=_p(nt,He,Ot,innerHeight),qt=kt[0],yt=kt[1],At=Date.now()-ht;if(At>=200||He!==Ne||Math.abs(Le-Ne)>1){var ft=kP(Ze,nt,Bt,Ht,Ne,He),De=ft.x,Ye=ft.y,st=lt?Ct:De!==Ze?De:null,Ie=qt?yt:Ye!==nt?Ye:null;return st!==null&&fm(Ze,st,We.X),Ie!==null&&fm(nt,Ie,We.Y),void(He!==Ne&&fm(Ne,He,We.S))}var Rt=(Ze-jt)/At,rt=(nt-Lt)/At,$t=Math.sqrt(Math.pow(Rt,2)+Math.pow(rt,2)),Mt=!1,cn=!1;(function(fn,T){var L,J=fn,ke=0,je=0,it=function(Tn){L||(L=Tn);var Er=Tn-L,or=Math.sign(fn),ri=-.001*or,hr=Math.sign(-J)*Math.pow(J,2)*2e-4,sn=J*Er+(ri+hr)*Math.pow(Er,2)/2;ke+=sn,L=Tn,or*(J+=(ri+hr)*Er)<=0?an():T(ke)?Ft():an()};function Ft(){je=requestAnimationFrame(it)}function an(){cancelAnimationFrame(je)}Ft()})($t,function(fn){var T=Ze+fn*(Rt/$t),L=nt+fn*(rt/$t),J=_p(T,Ne,Nt,innerWidth),ke=J[0],je=J[1],it=_p(L,Ne,Ot,innerHeight),Ft=it[0],an=it[1];if(ke&&!Mt&&(Mt=!0,lt?fm(T,je,We.X):gre(je,T+(T-je),We.X)),Ft&&!cn&&(cn=!0,qt?fm(L,an,We.Y):gre(an,L+(L-an),We.Y)),Mt&&cn)return!1;var Tn=Mt||We.X(je),Er=cn||We.Y(an);return Tn&&Er})}),ze=(z=y,H=function(Ze,nt){Se||se(oe!==1?1:Math.max(2,A/D),Ze,nt)},G=d.useRef(0),de=aC(function(){G.current=0,z.apply(void 0,[].slice.call(arguments))},{wait:300}),function(){var Ze=[].slice.call(arguments);G.current+=1,de.apply(void 0,Ze),G.current>=2&&(de.cancel(),G.current=0,H.apply(void 0,Ze))});function Ve(Ze,nt){if(P.current=0,(ie||X)&&S){M({touched:!1,maskTouched:!1,pause:!1,stopRaf:!1,reach:void 0});var jt=iC(oe,A/D);if(ge(Z,ee,pe,me,D,F,oe,jt,ve,ae,$e),_(Ze,nt),le===Ze&&ce===nt){if(ie)return void ze(Ze,nt);X&&b(Ze,nt)}}}function Be(Ze,nt,jt){jt===void 0&&(jt=0),M({touched:!0,CX:Ze,CY:nt,lastCX:Ze,lastCY:nt,lastX:Z,lastY:ee,lastScale:oe,touchLength:jt,touchTime:Date.now()})}function Xe(Ze){M({maskTouched:!0,CX:Ze.clientX,CY:Ze.clientY,lastX:Z,lastY:ee})}Z1(Gd?void 0:"mousemove",function(Ze){Ze.preventDefault(),ye(Ze.clientX,Ze.clientY)}),Z1(Gd?void 0:"mouseup",function(Ze){Ve(Ze.clientX,Ze.clientY)}),Z1(Gd?"touchmove":void 0,function(Ze){Ze.preventDefault();var nt=mre(Ze);ye.apply(void 0,nt)},{passive:!1}),Z1(Gd?"touchend":void 0,function(Ze){var nt=Ze.changedTouches[0];Ve(nt.clientX,nt.clientY)},{passive:!1}),Z1("resize",aC(function(){B&&!ie&&(M(EP(A,j,ae)),k())},{maxWait:8})),FA(function(){S&&C(Ha({scale:oe,rotate:ae},we))},[S]);var Ke=function(Ze,nt,jt,Lt,Bt,Ht,Ne,He,Le,Qe){var ht=function(De,Ye,st,Ie,Rt){var rt=d.useRef(!1),$t=d5({lead:!0,scale:st}),Mt=$t[0],cn=Mt.lead,fn=Mt.scale,T=$t[1],L=aC(function(J){try{return Rt(!0),T({lead:!1,scale:J}),Promise.resolve()}catch(ke){return Promise.reject(ke)}},{wait:Ie});return FA(function(){rt.current?(Rt(!1),T({lead:!0}),L(st)):rt.current=!0},[st]),cn?[De*fn,Ye*fn,st/fn]:[De*st,Ye*st,1]}(Ht,Ne,He,Le,Qe),xt=ht[0],Nt=ht[1],Ot=ht[2],Pt=function(De,Ye,st,Ie,Rt){var rt=d.useState(KVt),$t=rt[0],Mt=rt[1],cn=d.useState(0),fn=cn[0],T=cn[1],L=d.useRef(),J=Zm({OK:function(){return De&&T(4)}});function ke(je){Rt(!1),T(je)}return d.useEffect(function(){if(L.current||(L.current=Date.now()),st){if(function(je,it){var Ft=je&&je.current;if(Ft&&Ft.nodeType===1){var an=Ft.getBoundingClientRect();it({T:an.top,L:an.left,W:an.width,H:an.height,FIT:Ft.tagName==="IMG"?getComputedStyle(Ft).objectFit:void 0})}}(Ye,Mt),De)return Date.now()-L.current<250?(T(1),requestAnimationFrame(function(){T(2),requestAnimationFrame(function(){return ke(3)})}),void setTimeout(J.OK,Ie)):void T(4);ke(5)}},[De,st]),[fn,$t]}(Ze,nt,jt,Le,Qe),lt=Pt[0],Ct=Pt[1],kt=Ct.W,qt=Ct.FIT,yt=innerWidth/2,At=innerHeight/2,ft=lt<3||lt>4;return[ft?kt?Ct.L:yt:Lt+(yt-Ht*He/2),ft?kt?Ct.T:At:Bt+(At-Ne*He/2),xt,ft&&qt?xt*(Ct.H/kt):Nt,lt===0?Ot:ft?kt/(Ht*He)||.01:Ot,ft?qt?1:0:1,lt,qt]}(c,l,B,Z,ee,D,F,oe,u,function(Ze){return M({pause:Ze})}),qe=Ke[4],Et=Ke[6],dt="transform "+u+"ms "+f,vt={className:h,onMouseDown:Gd?void 0:function(Ze){Ze.stopPropagation(),Ze.button===0&&Be(Ze.clientX,Ze.clientY,0)},onTouchStart:Gd?function(Ze){Ze.stopPropagation(),Be.apply(void 0,mre(Ze))}:void 0,onWheel:function(Ze){if(!Se){var nt=iC(oe-Ze.deltaY/100/2,A/D);M({stopRaf:!0}),se(nt,Ze.clientX,Ze.clientY)}},style:{width:Ke[2]+"px",height:Ke[3]+"px",opacity:Ke[5],objectFit:Et===4?void 0:Ke[7],transform:ae?"rotate("+ae+"deg)":void 0,transition:Et>2?dt+", opacity "+u+"ms ease, height "+(Et<4?u/2:Et>4?u:0)+"ms "+f:void 0}};return te.createElement("div",{className:"PhotoView__PhotoWrap"+(p?" "+p:""),style:m,onMouseDown:!Gd&&S?Xe:void 0,onTouchStart:Gd&&S?function(Ze){return Xe(Ze.touches[0])}:void 0},te.createElement("div",{className:"PhotoView__PhotoBox",style:{transform:"matrix("+qe+", 0, 0, "+qe+", "+Ke[0]+", "+Ke[1]+")",transition:ie||be?void 0:dt,willChange:S?"transform":void 0}},n?te.createElement(ZVt,Ha({src:n,loaded:B,broken:U},vt,{onPhotoLoad:function(Ze){M(Ha({},Ze,Ze.loaded&&EP(Ze.naturalWidth||0,Ze.naturalHeight||0,ae)))},loadingElement:g,brokenElement:v})):r&&r({attrs:vt,scale:qe,rotate:ae})))}var vre={x:0,touched:!1,pause:!1,lastCX:void 0,lastCY:void 0,bg:void 0,lastBg:void 0,overlay:!0,minimal:!0,scale:1,rotate:0};function eqt(e){var t=e.loop,n=t===void 0?3:t,r=e.speed,i=e.easing,a=e.photoClosable,o=e.maskClosable,s=o===void 0||o,l=e.maskOpacity,c=l===void 0?1:l,u=e.pullClosable,f=u===void 0||u,p=e.bannerVisible,h=p===void 0||p,m=e.overlayRender,g=e.toolbarRender,v=e.className,y=e.maskClassName,b=e.photoClassName,w=e.photoWrapClassName,_=e.loadingElement,k=e.brokenElement,S=e.images,C=e.index,E=C===void 0?0:C,$=e.onIndexChange,M=e.visible,P=e.onClose,I=e.afterClose,O=e.portalContainer,A=d5(vre),R=A[0],j=A[1],N=d.useState(0),D=N[0],V=N[1],F=R.x,K=R.touched,B=R.pause,U=R.lastCX,Z=R.lastCY,ee=R.bg,ie=ee===void 0?c:ee,Y=R.lastBg,X=R.overlay,ae=R.minimal,oe=R.scale,le=R.rotate,ce=R.onScale,pe=R.onRotate,me=e.hasOwnProperty("index"),re=me?E:D,fe=me?$:V,ve=d.useRef(re),$e=S.length,Ce=S[re],be=typeof n=="boolean"?n:$e>n,Se=function(qe,Et){var dt=d.useReducer(function(jt){return!jt},!1)[1],vt=d.useRef(0),Ze=function(jt,Lt){var Bt=d.useRef(jt);function Ht(Ne){Bt.current=Ne}return d.useMemo(function(){(function(Ne){qe?(Ne(qe),vt.current=1):vt.current=2})(Ht)},[jt]),[Bt.current,Ht]}(qe),nt=Ze[1];return[Ze[0],vt.current,function(){dt(),vt.current===2&&(nt(!1),Et&&Et()),vt.current=0}]}(M,I),we=Se[0],se=Se[1],ye=Se[2];FA(function(){if(we)return j({pause:!0,x:re*-(innerWidth+20)}),void(ve.current=re);j(vre)},[we]);var Oe=Zm({close:function(qe){pe&&pe(0),j({overlay:!0,lastBg:ie}),P(qe)},changeIndex:function(qe,Et){Et===void 0&&(Et=!1);var dt=be?ve.current+(qe-re):qe,vt=$e-1,Ze=DA(dt,0,vt),nt=be?dt:Ze,jt=innerWidth+20;j({touched:!1,lastCX:void 0,lastCY:void 0,x:-jt*nt,pause:Et}),ve.current=nt,fe&&fe(be?qe<0?vt:qe>vt?0:qe:Ze)}}),z=Oe.close,H=Oe.changeIndex;function G(qe){return qe?z():j({overlay:!X})}function de(){j({x:-(innerWidth+20)*re,lastCX:void 0,lastCY:void 0,pause:!0}),ve.current=re}function xe(qe,Et,dt,vt){qe==="x"?function(Ze){if(U!==void 0){var nt=Ze-U,jt=nt;!be&&(re===0&&nt>0||re===$e-1&&nt<0)&&(jt=nt/2),j({touched:!0,lastCX:U,x:-(innerWidth+20)*ve.current+jt,pause:!1})}else j({touched:!0,lastCX:Ze,x:F,pause:!1})}(Et):qe==="y"&&function(Ze,nt){if(Z!==void 0){var jt=c===null?null:DA(c,.01,c-Math.abs(Ze-Z)/100/4);j({touched:!0,lastCY:Z,bg:nt===1?jt:c,minimal:nt===1})}else j({touched:!0,lastCY:Ze,bg:ie,minimal:!0})}(dt,vt)}function he(qe,Et){var dt=qe-(U??qe),vt=Et-(Z??Et),Ze=!1;if(dt<-40)H(re+1);else if(dt>40)H(re-1);else{var nt=-(innerWidth+20)*ve.current;Math.abs(vt)>100&&ae&&f&&(Ze=!0,z()),j({touched:!1,x:nt,lastCX:void 0,lastCY:void 0,bg:c,overlay:!!Ze||X})}}Z1("keydown",function(qe){if(M)switch(qe.key){case"ArrowLeft":H(re-1,!0);break;case"ArrowRight":H(re+1,!0);break;case"Escape":z()}});var Ue=function(qe,Et,dt){return d.useMemo(function(){var vt=qe.length;return dt?qe.concat(qe).concat(qe).slice(vt+Et-1,vt+Et+2):qe.slice(Math.max(Et-1,0),Math.min(Et+2,vt+1))},[qe,Et,dt])}(S,re,be);if(!we)return null;var We=X&&!se,ge=M?ie:Y,ze=ce&&pe&&{images:S,index:re,visible:M,onClose:z,onIndexChange:H,overlayVisible:We,overlay:Ce&&Ce.overlay,scale:oe,rotate:le,onScale:ce,onRotate:pe},Ve=r?r(se):400,Be=i?i(se):"cubic-bezier(0.25, 0.8, 0.25, 1)",Xe=r?r(3):600,Ke=i?i(3):"cubic-bezier(0.25, 0.8, 0.25, 1)";return te.createElement(zVt,{className:"PhotoView-Portal"+(We?"":" PhotoView-Slider__clean")+(M?"":" PhotoView-Slider__willClose")+(v?" "+v:""),role:"dialog",onClick:function(qe){return qe.stopPropagation()},container:O},M&&te.createElement(VVt,null),te.createElement("div",{className:"PhotoView-Slider__Backdrop"+(y?" "+y:"")+(se===1?" PhotoView-Slider__fadeIn":se===2?" PhotoView-Slider__fadeOut":""),style:{background:ge?"rgba(0, 0, 0, "+ge+")":void 0,transitionTimingFunction:Be,transitionDuration:(K?0:Ve)+"ms",animationDuration:Ve+"ms"},onAnimationEnd:ye}),h&&te.createElement("div",{className:"PhotoView-Slider__BannerWrap"},te.createElement("div",{className:"PhotoView-Slider__Counter"},re+1," / ",$e),te.createElement("div",{className:"PhotoView-Slider__BannerRight"},g&&ze&&g(ze),te.createElement(HVt,{className:"PhotoView-Slider__toolbarIcon",onClick:z}))),Ue.map(function(qe,Et){var dt=be||re!==0?ve.current-1+Et:re+Et;return te.createElement(JVt,{key:be?qe.key+"/"+qe.src+"/"+dt:qe.key,item:qe,speed:Ve,easing:Be,visible:M,onReachMove:xe,onReachUp:he,onPhotoTap:function(){return G(a)},onMaskTap:function(){return G(s)},wrapClassName:w,className:b,style:{left:(innerWidth+20)*dt+"px",transform:"translate3d("+F+"px, 0px, 0)",transition:K||B?void 0:"transform "+Xe+"ms "+Ke},loadingElement:_,brokenElement:k,onPhotoResize:de,isActive:ve.current===dt,expose:j})}),!Gd&&h&&te.createElement(te.Fragment,null,(be||re!==0)&&te.createElement("div",{className:"PhotoView-Slider__ArrowLeft",onClick:function(){return H(re-1,!0)}},te.createElement(UVt,null)),(be||re+1<$e)&&te.createElement("div",{className:"PhotoView-Slider__ArrowRight",onClick:function(){return H(re+1,!0)}},te.createElement(WVt,null))),m&&ze&&te.createElement("div",{className:"PhotoView-Slider__Overlay"},m(ze)))}var tqt=["children","onIndexChange","onVisibleChange"],nqt={images:[],visible:!1,index:0};function rqt(e){var t=e.children,n=e.onIndexChange,r=e.onVisibleChange,i=t7(e,tqt),a=d5(nqt),o=a[0],s=a[1],l=d.useRef(0),c=o.images,u=o.visible,f=o.index,p=Zm({nextId:function(){return l.current+=1},update:function(g){var v=c.findIndex(function(b){return b.key===g.key});if(v>-1){var y=c.slice();return y.splice(v,1,g),void s({images:y})}s(function(b){return{images:b.images.concat(g)}})},remove:function(g){s(function(v){var y=v.images.filter(function(b){return b.key!==g});return{images:y,index:Math.min(y.length-1,f)}})},show:function(g){var v=c.findIndex(function(y){return y.key===g});s({visible:!0,index:v}),r&&r(!0,v,o)}}),h=Zm({close:function(){s({visible:!1}),r&&r(!1,f,o)},changeIndex:function(g){s({index:g}),n&&n(g,o)}}),m=d.useMemo(function(){return Ha({},o,p)},[o,p]);return te.createElement(s4e.Provider,{value:m},t,te.createElement(eqt,Ha({images:c,visible:u,index:f,onIndexChange:h.changeIndex,onClose:h.close},i)))}var c4e=function(e){var t,n,r=e.src,i=e.render,a=e.overlay,o=e.width,s=e.height,l=e.triggers,c=l===void 0?["onClick"]:l,u=e.children,f=d.useContext(s4e),p=(t=function(){return f.nextId()},(n=d.useRef({sign:!1,fn:void 0}).current).sign||(n.sign=!0,n.fn=t()),n.fn),h=d.useRef(null);d.useImperativeHandle(u==null?void 0:u.ref,function(){return h.current}),d.useEffect(function(){return function(){f.remove(p)}},[]);var m=Zm({render:function(v){return i&&i(v)},show:function(v,y){f.show(p),function(b,w){if(u){var _=u.props[b];_&&_(w)}}(v,y)}}),g=d.useMemo(function(){var v={};return c.forEach(function(y){v[y]=m.show.bind(null,y)}),v},[]);return d.useEffect(function(){f.update({key:p,src:r,originRef:h,render:m.render,overlay:a,width:o,height:s})},[r]),u?d.Children.only(d.cloneElement(u,Ha({},g,{ref:h}))):null};const iqt=({content:e,status:t,type:n})=>{const[r,i]=d.useState(""),[a,o]=d.useState(""),[s,l]=d.useState(!1),c=Pn();console.log("LeaveMsg content:",e,n),d.useEffect(()=>{if(t===K6e){l(!0);let p=null;try{p=JSON.parse(e)}catch{}p&&(i(p.contact),o(p.content))}},[t]);const u=p=>{console.log("handleContactChange:",p),i(p)},f=p=>{console.log("handleContentChange:",p),o(p)};return x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:c.formatMessage({id:"leavemsg.title",defaultMessage:"留言"})}),x.jsxs(tp,{children:[s&&x.jsx(pA,{value:r,placeholder:c.formatMessage({id:"leavemsg.contact.placeholder",defaultMessage:"请输入联系方式..."}),rows:1,onChange:u,style:{marginTop:"8px"},disabled:!0}),s&&x.jsx(pA,{value:a,placeholder:c.formatMessage({id:"leavemsg.content.placeholder",defaultMessage:"请输入留言..."}),rows:3,onChange:f,style:{marginTop:"8px"},disabled:!0})]}),x.jsx(cwe,{children:x.jsx(qs,{color:"primary",disabled:!0,children:s?c.formatMessage({id:"leavemsg.status.submitted",defaultMessage:"访客已留言"}):c.formatMessage({id:"leavemsg.status.pending",defaultMessage:"待留言"})})})]})})},aqt=({uid:e,content:t})=>(console.log("RobotQa",e,t),x.jsx(x.Fragment,{children:x.jsxs(lu,{children:[x.jsx(Xs,{fluid:!0,children:x.jsx(BH,{children:t})}),x.jsx(gwe,{onClick:console.log})]})})),oqt=te.forwardRef((e,t)=>{const{uid:n,content:r}=e,[i,a]=d.useState();return d.useEffect(()=>{let o=null;try{o=JSON.parse(r)}catch{}o&&a(o)},[r]),x.jsx("div",{ref:t,children:x.jsx(Xs,{children:x.jsxs(BH,{children:[(i==null?void 0:i.type)===Uo&&x.jsx(x.Fragment,{children:i==null?void 0:i.content}),(i==null?void 0:i.type)===Sl&&x.jsx(c4e,{src:i==null?void 0:i.content,children:x.jsx("img",{src:i==null?void 0:i.content,alt:""})})]})})})}),sqt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"转接会话"}),x.jsx(tp,{children:r})]})})};async function lqt(e){return dn("/api/v1/thread/invite/create",{method:"POST",data:{...e}})}async function u4e(e){return dn("/api/v1/thread/invite/accept",{method:"POST",data:{...e}})}async function d4e(e){return dn("/api/v1/thread/invite/reject",{method:"POST",data:{...e}})}async function cqt(e){return dn("/api/v1/thread/invite/exit",{method:"POST",data:{...e}})}async function uqt(e){return dn("/api/v1/thread/transfer/create",{method:"POST",data:{...e}})}async function f4e(e){return dn("/api/v1/thread/transfer/accept",{method:"POST",data:{...e}})}async function p4e(e){return dn("/api/v1/thread/transfer/reject",{method:"POST",data:{...e}})}const dqt=({content:e,createdAt:t})=>{const[n,r]=d.useState({}),[i,a]=d.useState({}),[o,s]=d.useState(null),[l,c]=d.useState(null),[u,f]=d.useState(null),[p,h]=d.useState(null),m=fr(S=>S.addThread),{updateMessageTransferStatus:g,updateMessageInviteStatus:v}=Ed(),{translateString:y}=Gr();console.log("NoticeMsg",e,t),d.useEffect(()=>{var S,C,E,$,M,P,I,O,A,R;try{const j=JSON.parse(e);if(r(j),j.extra)try{const N=JSON.parse(j.extra);if(a(N),j.type===Ad&&j.extra)try{const D=JSON.parse(j.extra);s(D);const V={uid:(S=o==null?void 0:o.thread)==null?void 0:S.uid,topic:(C=o==null?void 0:o.thread)==null?void 0:C.topic,type:(E=o==null?void 0:o.thread)==null?void 0:E.type,state:($=o==null?void 0:o.thread)==null?void 0:$.state,user:(M=o==null?void 0:o.thread)==null?void 0:M.user};c(V)}catch(D){console.error("Failed to parse transfer extra:",D)}if(j.type===Dd&&j.extra)try{const D=JSON.parse(j.extra);f(D);const V={uid:(P=u==null?void 0:u.thread)==null?void 0:P.uid,topic:(I=u==null?void 0:u.thread)==null?void 0:I.topic,type:(O=u==null?void 0:u.thread)==null?void 0:O.type,state:(A=u==null?void 0:u.thread)==null?void 0:A.state,user:(R=u==null?void 0:u.thread)==null?void 0:R.user};h(V)}catch(D){console.error("Failed to parse invite extra:",D)}}catch(N){console.error("Failed to parse extra data:",N)}}catch(j){console.error("Failed to parse content:",j)}},[e]);const b=async()=>{var E;console.log("接受操作",n);let S="",C="";n.type===Ad?(S=y("i18n.confirm_accept_transfer"),C=y("i18n.confirm_accept_transfer_desc"),o!=null&&o.sender&&(C+=` ${o.sender.nickname} → ${(E=o.receiver)==null?void 0:E.nickname}`)):n.type===Dd&&(S=y("i18n.confirm_accept_invite"),C=y("i18n.confirm_accept_invite_desc"),u!=null&&u.sender&&(C+=` ${u.sender.nickname}`)),yr.confirm({title:S,content:C,onOk:async()=>{if(n.type===Ad){if(o){console.log("Transfer Content:",o),[o.sender,o.receiver]=[o.receiver,o.sender],o.status=u0;const $=await f4e(o);console.log("acceptThread response:",$),$.data.code===200?(Re.success("同意转接会话成功"),Vve(JSON.stringify(o),l),m(l),g(o.messageUid,u0)):Re.error(y($.data.message))}}else if(n.type===Dd&&u){console.log("Invite Content:",u),[u.sender,u.receiver]=[u.receiver,u.sender],u.status=AV;const $=await u4e(u);console.log("acceptThreadInvite response:",$),$.data.code===200?(Re.success("同意邀请会话成功"),Kve(JSON.stringify(u),p),m(p),v(u.messageUid,AV)):Re.error(y($.data.message))}},okText:y("i18n.confirm"),cancelText:y("i18n.cancel")})},w=async()=>{console.log("拒绝操作",n);let S="",C="";n.type===Ad?(S=y("i18n.confirm_reject_transfer"),C=y("i18n.confirm_reject_transfer_desc"),o!=null&&o.sender&&(C+=` ${o.sender.nickname}`)):n.type===Dd&&(S=y("i18n.confirm_reject_invite"),C=y("i18n.confirm_reject_invite_desc"),u!=null&&u.sender&&(C+=` ${u.sender.nickname}`)),yr.confirm({title:S,content:C,onOk:async()=>{if(n.type===Ad){if(o){console.log("Transfer Content:",o),[o.sender,o.receiver]=[o.receiver,o.sender],o.status=d0;const E=await p4e(o);console.log("transferThreadReject response:",E),E.data.code===200?(Re.success("拒绝转接会话成功"),qve(JSON.stringify(o),l),g(o.messageUid,d0)):Re.error(y(E.data.message))}}else if(n.type===Dd&&u){console.log("Invite Content:",u),[u.sender,u.receiver]=[u.receiver,u.sender],u.status=DV;const E=await d4e(u);console.log("rejectThreadInvite response:",E),E.data.code===200?(Re.success("拒绝邀请会话成功"),Gve(JSON.stringify(u),p),v(u.messageUid,DV)):Re.error(y(E.data.message))}},okText:y("i18n.confirm"),cancelText:y("i18n.cancel")})},_=()=>n.type===Ad||n.type===Dd?x.jsxs(Zr,{style:{marginTop:10},children:[x.jsx(qs,{onClick:()=>b(),color:"primary",className:"bg-green-500 hover:bg-green-600 text-white",size:"sm",children:y("i18n.accept")}),x.jsx(qs,{onClick:()=>w(),className:"bg-red-500 hover:bg-red-600 text-white",size:"sm",children:y("i18n.reject")})]}):null,k=()=>{var S,C,E,$,M,P,I,O;return n.type===o5e?x.jsxs("div",{className:"space-y-2",children:[x.jsx("div",{className:"font-medium text-base",children:y("i18n.login_notification")}),x.jsxs("div",{className:"text-sm",children:[x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.login_time"),":"]})," ",new Date().toLocaleString()]}),i.loginIp&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.login_ip"),":"]})," ",i.loginIp]}),i.loginLocation&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.login_location"),":"]})," ",i.loginLocation]})]}),x.jsx("div",{className:"text-xs text-gray-500 mt-2",children:y("i18n.if_not_you_please_change_password")})]}):[Ad,zV,BV,HV,UV].includes(n.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[n.type===Ad&&y("i18n.transfer_notification"),n.type===zV&&y("i18n.transfer_accepted"),n.type===BV&&y("i18n.transfer_rejected"),n.type===HV&&y("i18n.transfer_timeout"),n.type===UV&&y("i18n.transfer_cancelled")]}),x.jsx("div",{className:"text-sm",children:x.jsxs(x.Fragment,{children:[(o==null?void 0:o.sender)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.from"),":"]})," ",(S=o==null?void 0:o.sender)==null?void 0:S.nickname]}),(o==null?void 0:o.receiver)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.to"),":"]})," ",(C=o==null?void 0:o.receiver)==null?void 0:C.nickname]}),(o==null?void 0:o.thread)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.note"),":"]})," ",($=(E=o==null?void 0:o.thread)==null?void 0:E.user)==null?void 0:$.nickname]}),(o==null?void 0:o.note)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.note"),":"]})," ",o==null?void 0:o.note]})]})}),n.type===Ad&&_()]}):[Dd,VV,WV,qV,KV].includes(n.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[n.type===Dd&&y("i18n.invite_notification"),n.type===VV&&y("i18n.invite_accepted"),n.type===WV&&y("i18n.invite_rejected"),n.type===qV&&y("i18n.invite_timeout"),n.type===KV&&y("i18n.invite_cancelled")]}),x.jsx("div",{className:"text-sm",children:x.jsxs(x.Fragment,{children:[(u==null?void 0:u.sender)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.inviter"),":"]})," ",(M=u==null?void 0:u.sender)==null?void 0:M.nickname]}),(u==null?void 0:u.receiver)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.invitee"),":"]})," ",(P=u==null?void 0:u.receiver)==null?void 0:P.nickname]}),(u==null?void 0:u.thread)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.note"),":"]})," ",((O=(I=u==null?void 0:u.thread)==null?void 0:I.user)==null?void 0:O.nickname)||y("i18n.untitled_conversation")]}),(u==null?void 0:u.note)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.note"),":"]})," ",u==null?void 0:u.note]})]})}),n.type===Dd&&_()]}):[GV,XV,YV,ZV,QV].includes(n.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[n.type===GV&&y("i18n.visitor_invite_notification"),n.type===XV&&y("i18n.visitor_invite_accepted"),n.type===YV&&y("i18n.visitor_invite_rejected"),n.type===ZV&&y("i18n.visitor_invite_timeout"),n.type===QV&&y("i18n.visitor_invite_cancelled")]}),x.jsxs("div",{className:"text-sm",children:[i.visitorNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.visitor"),":"]})," ",i.visitorNickname]}),i.agentNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.agent"),":"]})," ",i.agentNickname]})]})]}):[JV,tq,eq,nq,rq].includes(n.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[n.type===JV&&y("i18n.group_invite_notification"),n.type===tq&&y("i18n.group_invite_accepted"),n.type===eq&&y("i18n.group_invite_rejected"),n.type===nq&&y("i18n.group_invite_timeout"),n.type===rq&&y("i18n.group_invite_cancelled")]}),x.jsxs("div",{className:"text-sm",children:[i.groupName&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.group_name"),":"]})," ",i.groupName]}),i.inviterNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.inviter"),":"]})," ",i.inviterNickname]})]})]}):[iq,oq,aq,sq,lq].includes(n.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[n.type===iq&&y("i18n.kbase_invite_notification"),n.type===oq&&y("i18n.kbase_invite_accepted"),n.type===aq&&y("i18n.kbase_invite_rejected"),n.type===sq&&y("i18n.kbase_invite_timeout"),n.type===lq&&y("i18n.kbase_invite_cancelled")]}),x.jsxs("div",{className:"text-sm",children:[i.kbaseName&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.kbase_name"),":"]})," ",i.kbaseName]}),i.inviterNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.inviter"),":"]})," ",i.inviterNickname]})]})]}):[cq,dq,uq,fq,pq].includes(n.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[n.type===cq&&y("i18n.organization_invite_notification"),n.type===dq&&y("i18n.organization_invite_accepted"),n.type===uq&&y("i18n.organization_invite_rejected"),n.type===fq&&y("i18n.organization_invite_timeout"),n.type===pq&&y("i18n.organization_invite_cancelled")]}),x.jsxs("div",{className:"text-sm",children:[i.organizationName&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.organization_name"),":"]})," ",i.organizationName]}),i.inviterNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[y("i18n.inviter"),":"]})," ",i.inviterNickname]})]})]}):x.jsx("div",{children:(n==null?void 0:n.title)||y("i18n.system_notification")})};return x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:y("i18n.notice")}),x.jsx(tp,{children:k()})]})})},{Header:fqt}=Qn,pqt=({fromTicketTab:e=!1,chatThread:t,typing:n,previewContent:r,setIsTransferThreadModelOpen:i,setIsInviteThreadModelOpen:a,setIsTicketCreateModelOpen:o,showCloseThreadConfirm:s,setIsGroupInfoDrawerOpen:l,setIsMemberInfoDrawerOpen:c,setIsRobotInfoDrawerOpen:u})=>{const f=Pn(),{headerStyle:p}=co(),{isDarkMode:h}=d.useContext(Ma),m=Aa(Z=>Z.currentTicket),g=Aa(Z=>Z.setCurrentTicket),[v,y]=yr.useModal(),{agentInfo:b}=Si.getState(),w=Nr(Z=>Z.currentOrg),{removeThreadWithUid:_,setCurrentThread:k}=fr(),[S,C]=d.useState(!1),E=()=>{var Z;if(!e)return t!=null&&t.user?(Z=t==null?void 0:t.user)==null?void 0:Z.avatar:""},$=()=>{var Z,ee,ie,Y,X;return e?m==null?void 0:m.title:t!=null&&t.user?(ee=(Z=t==null?void 0:t.user)==null?void 0:Z.nickname)!=null&&ee.startsWith(UO)?f.formatMessage({id:(ie=t==null?void 0:t.user)==null?void 0:ie.nickname,defaultMessage:(Y=t==null?void 0:t.user)==null?void 0:Y.nickname}):((X=t==null?void 0:t.user)==null?void 0:X.nickname)||f.formatMessage({id:"chat.header.user.unnamed"}):""},M=()=>e?" 工单编号:#"+(m==null?void 0:m.uid)+","+jk(m==null?void 0:m.description,100):n?r||f.formatMessage({id:"i18n.typing"}):U2(t)?"工单编号:#"+(m==null?void 0:m.uid)+","+jk(m==null?void 0:m.title,100):"会话编号:#"+(t==null?void 0:t.uid),P=async()=>{v.confirm({title:"认领工单",content:"确定认领该工单吗?",onOk:async()=>{Re.loading("认领中...",2);const Z={uid:m==null?void 0:m.uid,assigneeUid:b==null?void 0:b.uid,orgUid:w==null?void 0:w.uid},ee=await rWt(Z);console.log("query claimTicket response",Z,ee.data),ee.data.code===200?(Re.destroy(),Re.success(f.formatMessage({id:"ticket.action.claim.success"})),g(ee.data.data),eo.refreshTickets()):(Re.destroy(),Re.error(ee.data.message),g(void 0),eo.refreshTickets())}})},I=async()=>{v.confirm({title:"处理工单",content:"确定处理该工单吗?",onOk:async()=>{Re.loading("处理中...",2);const Z={uid:m==null?void 0:m.uid,assigneeUid:b==null?void 0:b.uid,orgUid:w==null?void 0:w.uid},ee=await iWt(Z);console.log("query startProcessingTicket response",Z,ee.data),ee.data.code===200?(Re.destroy(),Re.success(f.formatMessage({id:"ticket.action.process.success"})),g(ee.data.data),eo.refreshTickets()):(Re.destroy(),Re.error(ee.data.message))}})},O=async()=>{v.confirm({title:"解决工单",content:"确定解决该工单吗?",onOk:async()=>{Re.loading("解决中...",2);const Z={uid:m==null?void 0:m.uid,assigneeUid:b==null?void 0:b.uid,orgUid:w==null?void 0:w.uid},ee=await sWt(Z);console.log("query resolveTicket response",Z,ee.data),ee.data.code===200?(Re.destroy(),Re.success(f.formatMessage({id:"ticket.action.resolve.success"})),g(ee.data.data),eo.refreshTickets()):(Re.destroy(),Re.error(ee.data.message))}})},A=()=>{v.confirm({title:f.formatMessage({id:"ticket.verify.title"}),content:f.formatMessage({id:"ticket.verify.content"}),okText:f.formatMessage({id:"ticket.verify.pass"}),cancelText:f.formatMessage({id:"ticket.verify.reject"}),okButtonProps:{type:"primary"},cancelButtonProps:{danger:!0},onOk:async()=>{Re.loading("验证中...",2);try{const Z={uid:m==null?void 0:m.uid,assigneeUid:b==null?void 0:b.uid,orgUid:w==null?void 0:w.uid,verified:!0},ee=await Yne(Z);console.log("query verifyTicket response",Z,ee.data),ee.data.code===200?(Re.destroy(),Re.success(f.formatMessage({id:"ticket.verify.success"})),g(ee.data.data),eo.refreshTickets()):(Re.destroy(),Re.error(ee.data.message))}catch{Re.destroy(),Re.error(f.formatMessage({id:"ticket.verify.error"}))}},onCancel:async()=>{Re.loading("验证中...",2);try{const Z={uid:m==null?void 0:m.uid,assigneeUid:b==null?void 0:b.uid,orgUid:w==null?void 0:w.uid,verified:!1},ee=await Yne(Z);console.log("query verifyTicket response",Z,ee.data),ee.data.code===200?(Re.destroy(),Re.success(f.formatMessage({id:"ticket.verify.reject.success"})),g(ee.data.data),eo.refreshTickets()):(Re.destroy(),Re.error(ee.data.message))}catch{Re.destroy(),Re.error(f.formatMessage({id:"ticket.verify.error"}))}},footer:(Z,{OkBtn:ee,CancelBtn:ie})=>x.jsxs(x.Fragment,{children:[x.jsx(Yt,{onClick:()=>yr.destroyAll(),children:f.formatMessage({id:"ticket.verify.later"})}),x.jsx(ie,{}),x.jsx(ee,{})]})})},R=async()=>{v.confirm({title:"挂起工单",content:"确定挂起该工单吗?",onOk:async()=>{Re.loading("挂起中...",2);const Z={uid:m==null?void 0:m.uid,assigneeUid:b==null?void 0:b.uid,orgUid:w==null?void 0:w.uid},ee=await oWt(Z);console.log("query holdTicket response",Z,ee.data),ee.data.code===200?(Re.destroy(),Re.success(f.formatMessage({id:"ticket.action.hold.success"})),g(ee.data.data),eo.refreshTickets()):(Re.destroy(),Re.error(ee.data.message))}})},j=async()=>{v.confirm({title:"恢复工单",content:"确定恢复该工单吗?",onOk:async()=>{Re.loading("恢复中...",2);const Z={uid:m==null?void 0:m.uid,assigneeUid:b==null?void 0:b.uid,orgUid:w==null?void 0:w.uid},ee=await Gne(Z);console.log("query resumeTicket response",Z,ee.data),ee.data.code===200?(Re.success(f.formatMessage({id:"ticket.action.resume.success"})),g(ee.data.data),eo.refreshTickets()):Re.error(ee.data.message)}})},N=async()=>{const Z={uid:m==null?void 0:m.uid,assigneeUid:b==null?void 0:b.uid,orgUid:w==null?void 0:w.uid},ee=await aWt(Z);console.log("query unclaimTicket response",Z,ee.data),ee.data.code===200?(Re.success(f.formatMessage({id:"ticket.action.unclaim.success"})),g(ee.data.data),eo.refreshTickets()):(Re.error(ee.data.message),g(void 0),eo.refreshTickets())},D=async()=>{v.confirm({title:"关闭工单",content:"确定关闭该工单吗?",onOk:async()=>{Re.loading("关闭中...",2);const Z={uid:m==null?void 0:m.uid,assigneeUid:b==null?void 0:b.uid,orgUid:w==null?void 0:w.uid},ee=await lWt(Z);console.log("query closeTicket response",Z,ee.data),ee.data.code===200?(Re.destroy(),Re.success(f.formatMessage({id:"ticket.action.close.success"})),g(ee.data.data),eo.refreshTickets()):(Re.destroy(),Re.error(ee.data.message))}})},V=async()=>{v.confirm({title:"重新打开工单",content:"确定重新打开该工单吗?",onOk:async()=>{Re.loading("重新打开中...",2);const Z={uid:m==null?void 0:m.uid,assigneeUid:b==null?void 0:b.uid,orgUid:w==null?void 0:w.uid},ee=await Gne(Z);console.log("query resumeTicket response",Z,ee.data),ee.data.code===200?(Re.destroy(),Re.success(f.formatMessage({id:"ticket.action.resume.success"})),g(ee.data.data),eo.refreshTickets()):(Re.destroy(),Re.error(ee.data.message))}})},F=async()=>{Re.warning("TODO: 邀请会话")},K=()=>{v.confirm({title:"退出会话",content:"确定要退出当前会话吗?",onOk:async()=>{const Z={sender:{uid:b==null?void 0:b.uid},thread:{uid:t==null?void 0:t.uid}},ee=await cqt(Z);console.log("exitThreadInvite response",ee.data),ee.data.code===200?(Re.success("退出会话成功"),_(t==null?void 0:t.uid),k(void 0)):Re.error(ee.data.message)}})},B=()=>{if(!m)return null;const Z=[];switch(m.status){case lg:case Mse:Z.push(x.jsx(Yt,{type:"primary",onClick:P,children:f.formatMessage({id:"ticket.action.claim"})},"claim"));break;case q3:case Y3:jK(m,b)&&Z.push(x.jsx(Yt,{type:"primary",onClick:I,danger:!0,disabled:!Fa(e,m,t,b),children:f.formatMessage({id:"ticket.action.process"})},"process"),x.jsx(Yt,{onClick:N,disabled:!Fa(e,m,t,b),children:f.formatMessage({id:"ticket.action.unclaim"})},"return"));break;case sy:case EF:jK(m,b)&&Z.push(x.jsx(Yt,{type:"primary",onClick:O,disabled:!Fa(e,m,t,b),children:f.formatMessage({id:"ticket.action.resolve"})},"resolve"),x.jsx(Yt,{onClick:R,disabled:!Fa(e,m,t,b),children:f.formatMessage({id:"ticket.action.hold"})},"hold"),x.jsx(Yt,{type:"primary",onClick:D,disabled:!Fa(e,m,t,b),children:f.formatMessage({id:"ticket.action.close"})},"close"));break;case K3:case G3:Z.push(x.jsx(Yt,{type:"primary",onClick:j,disabled:!Fa(e,m,t,b),children:f.formatMessage({id:"ticket.action.resume"})},"resume"));break;case Z3:case Q3:Z.push(x.jsx(Yt,{onClick:V,disabled:!Fa(e,m,t,b),children:f.formatMessage({id:"ticket.action.reopen"})},"reopen"));break;case X3:(m==null?void 0:m.reporter.uid)===(b==null?void 0:b.uid)&&Z.push(x.jsx(Yt,{onClick:A,disabled:!Fa(e,m,t,b),children:f.formatMessage({id:"ticket.action.verify"})},"verify"));break}return Xo&&U2(t)&&Z.push(x.jsx(Yt,{type:"primary",onClick:F,disabled:!Fa(e,m,t,b),children:f.formatMessage({id:"ticket.action.invite"})},"invite")),Z},U=Z=>!Z||Z.length===0?null:(Z=Z.filter(ee=>ee!==""),x.jsx("span",{style:{marginLeft:"5px"},children:Z.map(ee=>{const ie=ee.length>10,Y=x.jsx(Di,{color:"blue",children:ie?`${ee.slice(0,10)}...`:ee},ee);return ie?x.jsx(Ea,{title:ee,children:Y},ee):Y})}));return x.jsxs(x.Fragment,{children:[x.jsxs(fqt,{style:{...p,padding:"0 16px",display:"flex",justifyContent:"space-between",alignItems:"center",height:60},children:[x.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"8px"},children:[E()&&x.jsx("img",{src:E(),alt:"avatar",style:{width:32,height:32,borderRadius:"50%",objectFit:"cover"}}),x.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0"},children:[x.jsxs("span",{style:{fontSize:"16px",fontWeight:500,color:h?"#fff":"#000",lineHeight:"20px",display:"flex",alignItems:"center"},children:[$(),U(t==null?void 0:t.tagList),(t==null?void 0:t.user)&&x.jsx(Yt,{type:"text",size:"small",icon:x.jsx(Em,{}),onClick:()=>C(!0),style:{marginLeft:"4px",padding:"0 4px"}})]}),x.jsx("span",{style:{fontSize:"12px",color:h?"#fff":"#000",lineHeight:"16px",minHeight:"16px"},children:M()})]})]}),!e&&yf(t)&&x.jsxs(Zr,{children:[x.jsx(Yt,{color:"green",variant:"filled",onClick:()=>i(!0),children:f.formatMessage({id:"chat.header.action.transfer"})}),x.jsx(Yt,{color:"pink",variant:"filled",onClick:()=>a(!0),children:f.formatMessage({id:"chat.header.action.invite"})}),x.jsx(Yt,{color:"purple",variant:"filled",onClick:()=>o(!0),children:f.formatMessage({id:"chat.header.action.create.ticket"})}),t&&t.state!==eI&&x.jsx(Yt,{color:"danger",variant:"filled",onClick:s,children:f.formatMessage({id:"chat.header.action.close"})}),nIe(b,t)&&x.jsx(Yt,{color:"danger",variant:"text",onClick:K,children:f.formatMessage({id:"chat.header.action.exit"})})]}),!e&&(Do(t)||Nk(t)||Ak(t))&&x.jsx(Zr,{children:x.jsx(Yt,{icon:x.jsx(hve,{}),onClick:()=>{Do(t)?l(!0):Nk(t)?c(!0):Ak(t)?u(!0):Re.warning(f.formatMessage({id:"chat.header.type.not.supported"}))}})}),(e||U2(t))&&x.jsx(Zr,{children:B()})]}),y,S&&t&&x.jsx(q3e,{open:S,currentThread:t,handleOk:()=>C(!1),handleCancel:()=>C(!1)})]})};async function hqt(e){return dn("/api/v1/kbase/query/org",{method:"GET",params:{...e,client:Sn}})}async function mqt(e){return dn("/api/v1/autoreply/fixed/query/org",{method:"GET",params:{...e,client:Sn}})}const gqt=({open:e,onOk:t,onCancel:n})=>{var S;const r=Pn(),[i]=qn.useForm(),{translateString:a}=Gr(),o=Nr(C=>C.currentOrg),[s,l]=d.useState(),[c,u]=d.useState(),[f,p]=d.useState(OM),{agentInfo:h,setAgentInfo:m}=Si(C=>({agentInfo:C.agentInfo,setAgentInfo:C.setAgentInfo})),g=async()=>{console.log("getAgentProfile:",o==null?void 0:o.uid);const C=await xle(o==null?void 0:o.uid);console.log("getAgentProfile response:",o==null?void 0:o.uid,C.data),C.data.code===200&&m(C.data.data)},v=d.useCallback(async()=>{try{Re.loading(r.formatMessage({id:"loading"}));const C={pageNumber:0,pageSize:50,orgUid:o==null?void 0:o.uid},E=await mqt(C);console.log("queryAutoReplyFixedByOrg response:",E.data,C),E.data.code===200?l(E.data):Re.error(E.data.message)}catch(C){console.error("Error fetching auto replies:",C),Re.error(r.formatMessage({id:"error.fetch.failed"}))}finally{Re.destroy()}},[o==null?void 0:o.uid]),y=d.useCallback(async C=>{try{Re.loading(r.formatMessage({id:"loading"}));const E={pageNumber:0,pageSize:50,type:C,orgUid:o==null?void 0:o.uid},$=await hqt(E);console.log("getKeywordBase response:",$.data),$.data.code===200?u($.data):Re.error($.data.message)}catch(E){console.error("Error fetching knowledge base:",E),Re.error(r.formatMessage({id:"error.fetch.failed"}))}finally{Re.destroy()}},[f,o==null?void 0:o.uid]);d.useEffect(()=>{v(),y(mq)},[]),d.useEffect(()=>{f===IM?y(mq):f===RM&&y(p5e)},[f]),d.useEffect(()=>{var C,E,$,M,P,I;h!=null&&h.autoReplySettings&&i.setFieldsValue({kbUid:(C=h==null?void 0:h.autoReplySettings)==null?void 0:C.kbUid,autoReplyEnabled:(E=h==null?void 0:h.autoReplySettings)==null?void 0:E.autoReplyEnabled,autoReplyType:($=h==null?void 0:h.autoReplySettings)==null?void 0:$.autoReplyType,autoReplyUid:(M=h==null?void 0:h.autoReplySettings)==null?void 0:M.autoReplyUid,autoReplyContent:(P=h==null?void 0:h.autoReplySettings)==null?void 0:P.autoReplyContent,autoReplyContentType:(I=h==null?void 0:h.autoReplySettings)==null?void 0:I.autoReplyContentType})},[h,i]);const b=(C,E)=>{console.log("handleAutoReplyTypeChange:",C,E),p(C)},w=(C,E)=>{var $;console.log("handleAutoReplySelectChange:",C,E),($=s==null?void 0:s.data.content)==null||$.forEach(M=>{M.uid===C&&i.setFieldsValue({autoReplyContentType:M.type,autoReplyContent:M.content})})},_=async()=>{console.log("handleAutoReplySubmit:"),Re.loading(r.formatMessage({id:"autoreply.save.loading",defaultMessage:"正在保存,请稍后..."}));const C={uid:h==null?void 0:h.uid,autoReplySettings:{autoReplyEnabled:i.getFieldValue("autoReplyEnabled"),autoReplyType:i.getFieldValue("autoReplyType"),autoReplyUid:i.getFieldValue("autoReplyUid"),autoReplyContent:i.getFieldValue("autoReplyContent"),autoReplyContentType:i.getFieldValue("autoReplyContentType"),kbUid:i.getFieldValue("kbUid")}},E=await i$e(C);console.log("handleUpdateAutoReply:",E),E.data.code===200?(Re.destroy(),m(E.data.data),t()):(Re.destroy(),Re.error(r.formatMessage({id:"autoreply.save.error",defaultMessage:"保存失败"})))},k=()=>{n()};return d.useEffect(()=>{g()},[]),x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"autoreply.title",defaultMessage:"自动回复"}),open:e,forceRender:!0,onOk:_,onCancel:k,children:x.jsxs(qn,{form:i,submitter:{render:!1},children:[x.jsx(zN,{width:"md",name:"autoReplyEnabled",label:r.formatMessage({id:"autoreply.enable.label",defaultMessage:"是否启用自动回复"}),fieldProps:{onChange:_}}),x.jsx(za,{width:"md",name:"autoReplyType",label:r.formatMessage({id:"autoreply.type.label",defaultMessage:"自动回复类型"}),options:[{label:r.formatMessage({id:"autoreply.type.fixed"}),value:OM},{label:r.formatMessage({id:"autoreply.type.keyword"}),value:IM},{label:r.formatMessage({id:"autoreply.type.llm"}),value:RM,disabled:!Xo}],fieldProps:{onChange(C,E){b(C,E)}}}),f===OM&&x.jsx(x.Fragment,{children:x.jsx(za,{width:"md",name:"autoReplyContent",label:r.formatMessage({id:"autoreply.fixed.select",defaultMessage:"选择固定回复内容"}),options:(S=s==null?void 0:s.data)==null?void 0:S.content.map(C=>({label:a(C==null?void 0:C.content),value:C==null?void 0:C.content})),fieldProps:{onChange(C,E){w(C,E)}}})}),f===IM&&x.jsx(x.Fragment,{children:x.jsx(za,{width:"md",name:"kbUid",label:r.formatMessage({id:"autoreply.keyword.select",defaultMessage:"选择关键词知识库"}),options:c==null?void 0:c.data.content.map(C=>({label:a(C.name),value:C.uid}))})}),f===RM&&x.jsx(x.Fragment,{children:x.jsx(za,{width:"md",name:"kbUid",label:r.formatMessage({id:"autoreply.llm.select",defaultMessage:"选择大模型知识库"}),options:c==null?void 0:c.data.content.map(C=>({label:a(C.name),value:C.uid}))})})]})})})};var Yi=(e=>(e[e.Edit=0]="Edit",e[e.Source=1]="Source",e))(Yi||{});function f5({image:e,width:t,height:n,history:r,bounds:i}){return new Promise((a,o)=>{const s=document.createElement("canvas"),l=i.width*window.devicePixelRatio,c=i.height*window.devicePixelRatio;s.width=l,s.height=c;const u=s.getContext("2d");if(!u)return o(new Error("convert image to blob fail"));const f=e.naturalWidth/t,p=e.naturalHeight/n;u.imageSmoothingEnabled=!0,u.imageSmoothingQuality="low",u.setTransform(window.devicePixelRatio,0,0,window.devicePixelRatio,0,0),u.clearRect(0,0,i.width,i.height),u.drawImage(e,i.x*f,i.y*p,i.width*f,i.height*p,0,0,i.width,i.height),r.stack.slice(0,r.index+1).forEach(h=>{h.type===Yi.Source&&h.draw(u,h)}),s.toBlob(h=>{if(!h)return o(new Error("canvas toBlob fail"));a(h)},"image/png")})}const h4e={magnifier_position_label:"坐标",operation_ok_title:"确定",operation_cancel_title:"取消",operation_save_title:"保存",operation_redo_title:"重做",operation_undo_title:"撤销",operation_mosaic_title:"马赛克",operation_text_title:"文本",operation_brush_title:"画笔",operation_arrow_title:"箭头",operation_ellipse_title:"椭圆",operation_rectangle_title:"矩形"},uU=te.createContext({store:{url:void 0,image:null,width:0,height:0,lang:h4e,emiterRef:{current:{}},canvasContextRef:{current:null},history:{index:-1,stack:[]},bounds:null,cursor:"move",operation:void 0},dispatcher:{call:void 0,setHistory:void 0,setBounds:void 0,setCursor:void 0,setOperation:void 0}});function lx(){const{dispatcher:e}=d.useContext(uU);return e}function Zs(){const{store:e}=d.useContext(uU);return e}function rb(){const{bounds:e}=Zs(),{setBounds:t}=lx(),n=d.useCallback(i=>{t==null||t(i)},[t]),r=d.useCallback(()=>{t==null||t(null)},[t]);return[e,{set:n,reset:r}]}function Id(){const{lang:e}=Zs();return e}const V1=100,q1=80,vqt=d.memo(function({x:t,y:n}){const{width:r,height:i,image:a}=Zs(),o=Id(),[s,l]=d.useState(null),c=d.useRef(null),u=d.useRef(null),f=d.useRef(null),[p,h]=d.useState("000000");return d.useLayoutEffect(()=>{if(!c.current)return;const m=c.current.getBoundingClientRect();let g=t+20,v=n+20;g+m.width>r&&(g=t-m.width-20),v+m.height>i&&(v=n-m.height-20),g<0&&(g=0),v<0&&(v=0),l({x:g,y:v})},[r,i,t,n]),d.useEffect(()=>{if(!a||!u.current){f.current=null;return}if(f.current||(f.current=u.current.getContext("2d")),!f.current)return;const m=f.current;m.clearRect(0,0,V1,q1);const g=a.naturalWidth/r,v=a.naturalHeight/i;m.drawImage(a,t*g-V1/2,n*v-q1/2,V1,q1,0,0,V1,q1);const{data:y}=m.getImageData(Math.floor(V1/2),Math.floor(q1/2),1,1),b=Array.from(y.slice(0,3)).map(w=>w>=16?w.toString(16):`0${w.toString(16)}`).join("").toUpperCase();h(b)},[r,i,a,t,n]),x.jsxs("div",{ref:c,className:"screenshots-magnifier",style:{transform:`translate(${s==null?void 0:s.x}px, ${s==null?void 0:s.y}px)`},children:[x.jsx("div",{className:"screenshots-magnifier-body",children:x.jsx("canvas",{ref:u,className:"screenshots-magnifier-body-canvas",width:V1,height:q1})}),x.jsxs("div",{className:"screenshots-magnifier-footer",children:[x.jsxs("div",{className:"screenshots-magnifier-footer-item",children:[o.magnifier_position_label,": (",t,",",n,")"]}),x.jsxs("div",{className:"screenshots-magnifier-footer-item",children:["RGB: #",p]})]})]})});function yqt({x:e,y:t},{x:n,y:r},i,a){return e>n&&([e,n]=[n,e]),t>r&&([t,r]=[r,t]),e<0&&(e=0),n>i&&(n=i),t<0&&(t=0),r>a&&(r=a),{x:e,y:t,width:n-e,height:r-t}}const bqt=d.memo(function(){const{url:t,image:n,width:r,height:i}=Zs(),[a,o]=rb(),s=d.useRef(null),l=d.useRef(null),c=d.useRef(!1),[u,f]=d.useState(null),p=d.useCallback((m,g)=>{if(!s.current)return;const{x:v,y}=s.current.getBoundingClientRect();o.set(yqt({x:m.x-v,y:m.y-y},{x:g.x-v,y:g.y-y},r,i))},[r,i,o]),h=d.useCallback(m=>{l.current||a||m.button!==0||(l.current={x:m.clientX,y:m.clientY},c.current=!1)},[a]);return d.useEffect(()=>{const m=v=>{if(s.current){const y=s.current.getBoundingClientRect();v.clientXy.right||v.clientY>y.bottom?f(null):f({x:v.clientX-y.x,y:v.clientY-y.y})}l.current&&(p(l.current,{x:v.clientX,y:v.clientY}),c.current=!0)},g=v=>{l.current&&(c.current&&p(l.current,{x:v.clientX,y:v.clientY}),l.current=null,c.current=!1)};return window.addEventListener("mousemove",m),window.addEventListener("mouseup",g),()=>{window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",g)}},[p]),d.useLayoutEffect(()=>{(!n||a)&&f(null)},[n,a]),!t||!n?null:x.jsxs("div",{ref:s,className:"screenshots-background",onMouseDown:h,children:[x.jsx("img",{className:"screenshots-background-image",src:t}),x.jsx("div",{className:"screenshots-background-mask"}),u&&!a&&x.jsx(vqt,{x:u==null?void 0:u.x,y:u==null?void 0:u.y})]})});function Th(){const{cursor:e}=Zs(),{setCursor:t}=lx(),n=d.useCallback(i=>{t==null||t(i)},[t]),r=d.useCallback(()=>{t==null||t("move")},[t]);return[e,{set:n,reset:r}]}function ib(){const{emiterRef:e}=Zs(),t=d.useCallback((a,o)=>{const s=e.current;Array.isArray(s[a])?s[a].push(o):s[a]=[o]},[e]),n=d.useCallback((a,o)=>{const s=e.current;if(Array.isArray(s[a])){const l=s[a].findIndex(c=>c===o);l!==-1&&s[a].splice(l,1)}},[e]),r=d.useCallback((a,...o)=>{const s=e.current;Array.isArray(s[a])&&s[a].forEach(l=>l(...o))},[e]),i=d.useCallback(()=>{e.current={}},[e]);return{on:t,off:n,emit:r,reset:i}}function Tc(){const{history:e}=Zs(),{setHistory:t}=lx(),n=d.useCallback(u=>{const{index:f,stack:p}=e;p.forEach(h=>{h.type===Yi.Source&&(h.isSelected=!1)}),u.type===Yi.Source?u.isSelected=!0:u.type===Yi.Edit&&(u.source.isSelected=!0),p.splice(f+1),p.push(u),t==null||t({index:p.length-1,stack:p})},[e,t]),r=d.useCallback(()=>{const{stack:u}=e;u.pop(),t==null||t({index:u.length-1,stack:u})},[e,t]),i=d.useCallback(()=>{const{index:u,stack:f}=e,p=f[u];p&&(p.type===Yi.Source?p.isSelected=!1:p.type===Yi.Edit&&p.source.editHistory.pop()),t==null||t({index:u<=0?-1:u-1,stack:f})},[e,t]),a=d.useCallback(()=>{const{index:u,stack:f}=e,p=f[u+1];p&&(p.type===Yi.Source?p.isSelected=!1:p.type===Yi.Edit&&p.source.editHistory.push(p)),t==null||t({index:u>=f.length-1?f.length-1:u+1,stack:f})},[e,t]),o=d.useCallback(u=>{t==null||t({...u})},[t]),s=d.useCallback(u=>{e.stack.forEach(f=>{f.type===Yi.Source&&(f===u?f.isSelected=!0:f.isSelected=!1)}),t==null||t({...e})},[e,t]),l=d.useCallback(()=>{e.stack.forEach(u=>{u.type===Yi.Source&&(u.isSelected=!1)}),t==null||t({...e})},[e,t]),c=d.useCallback(()=>{t==null||t({index:-1,stack:[]})},[t]);return[{index:e.index,stack:e.stack,top:e.stack.slice(e.index,e.index+1)[0]},{push:n,pop:r,undo:i,redo:a,set:o,select:s,clearSelect:l,reset:c}]}function Ph(){const{operation:e}=Zs(),{setOperation:t}=lx(),n=d.useCallback(i=>{t==null||t(i)},[t]),r=d.useCallback(()=>{t==null||t(void 0)},[t]);return[e,{set:n,reset:r}]}function wqt({x:e,y:t},{x:n,y:r},i,a,o,s){return e>n&&([e,n]=[n,e]),t>r&&([t,r]=[r,t]),e<0&&(e=0,s==="move"&&(n=i.width)),n>a&&(n=a,s==="move"&&(e=n-i.width)),t<0&&(t=0,s==="move"&&(r=i.height)),r>o&&(r=o,s==="move"&&(t=r-i.height)),{x:e,y:t,width:Math.max(n-e,1),height:Math.max(r-t,1)}}function xqt(e,t,n,r){const i=e.clientX-n.x,a=e.clientY-n.y;let o=r.x,s=r.y,l=r.x+r.width,c=r.y+r.height;switch(t){case"top":s+=a;break;case"top-right":l+=i,s+=a;break;case"right":l+=i;break;case"right-bottom":l+=i,c+=a;break;case"bottom":c+=a;break;case"bottom-left":o+=i,c+=a;break;case"left":o+=i;break;case"left-top":o+=i,s+=a;break;case"move":o+=i,s+=a,l+=i,c+=a;break}return[{x:o,y:s},{x:l,y:c}]}function Sqt(e,t,n,r){if(!t)return!1;const i=document.createElement("canvas");i.width=e.width,i.height=e.height;const a=i.getContext("2d");if(!a)return!1;const{left:o,top:s}=t.getBoundingClientRect(),l=r.clientX-o,c=r.clientY-s;return[...n.stack.slice(0,n.index+1)].reverse().find(f=>{var p;return f.type!==Yi.Source?!1:(a.clearRect(0,0,e.width,e.height),(p=f.isHit)==null?void 0:p.call(f,a,f,{x:l,y:c}))})}const Cqt=["top","right","bottom","left"],_qt=["top","top-right","right","right-bottom","bottom","bottom-left","left","left-top"],kqt=d.memo(d.forwardRef(function(t,n){const{url:r,image:i,width:a,height:o}=Zs(),s=ib(),[l]=Tc(),[c]=Th(),[u,f]=rb(),[p]=Ph(),h=d.useRef(),m=d.useRef(null),g=d.useRef(null),v=d.useRef(null),y=d.useRef(null),b=u&&!l.stack.length&&!p,w=d.useCallback(()=>{if(!u||!y.current)return;const S=y.current;S.imageSmoothingEnabled=!0,S.imageSmoothingQuality="low",S.clearRect(0,0,u.width,u.height),l.stack.slice(0,l.index+1).forEach(C=>{C.type===Yi.Source&&C.draw(S,C)})},[u,y,l]),_=d.useCallback((S,C)=>{if(!(S.button!==0||!u))if(!p)h.current=C,m.current={x:S.clientX,y:S.clientY},g.current={x:u.x,y:u.y,width:u.width,height:u.height};else{const E=Sqt(u,v.current,l,S.nativeEvent);E?s.emit("drawselect",E,S.nativeEvent):s.emit("mousedown",S.nativeEvent)}},[u,p,s,l]),k=d.useCallback(S=>{if(!h.current||!m.current||!g.current||!u)return;const C=xqt(S,h.current,m.current,g.current);f.set(wqt(C[0],C[1],u,a,o,h.current))},[a,o,u,f]);return d.useLayoutEffect(()=>{if(!i||!u||!v.current){y.current=null;return}y.current||(y.current=v.current.getContext("2d")),w()},[i,u,w]),d.useEffect(()=>{const S=E=>{if(p)s.emit("mousemove",E);else{if(!h.current||!m.current||!g.current)return;k(E)}},C=E=>{if(p)s.emit("mouseup",E);else{if(!h.current||!m.current||!g.current)return;k(E),h.current=void 0,m.current=null,g.current=null}};return window.addEventListener("mousemove",S),window.addEventListener("mouseup",C),()=>{window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",C)}},[k,p,s]),d.useImperativeHandle(n,()=>y.current),x.jsxs("div",{className:"screenshots-canvas",style:{width:(u==null?void 0:u.width)||0,height:(u==null?void 0:u.height)||0,transform:u?`translate(${u.x}px, ${u.y}px)`:"none"},children:[x.jsxs("div",{className:"screenshots-canvas-body",children:[x.jsx("img",{className:"screenshots-canvas-image",src:r,style:{width:a,height:o,transform:u?`translate(${-u.x}px, ${-u.y}px)`:"none"}}),x.jsx("canvas",{ref:v,className:"screenshots-canvas-panel",width:(u==null?void 0:u.width)||0,height:(u==null?void 0:u.height)||0})]}),x.jsx("div",{className:"screenshots-canvas-mask",style:{cursor:c},onMouseDown:S=>_(S,"move"),children:b&&x.jsxs("div",{className:"screenshots-canvas-size",children:[u.width," × ",u.height]})}),Cqt.map(S=>x.jsx("div",{className:`screenshots-canvas-border-${S}`},S)),b&&_qt.map(S=>x.jsx("div",{className:`screenshots-canvas-point-${S}`,onMouseDown:C=>_(C,S)},S))]})}));function dU(){const e=lx();return d.useCallback((n,...r)=>{var i;(i=e.call)==null||i.call(e,n,...r)},[e])}function Oh(){const{canvasContextRef:e}=Zs();return e}function fU(){const e=ib(),[,t]=rb(),[,n]=Th(),[,r]=Tc(),[,i]=Ph();return d.useCallback(()=>{e.reset(),r.reset(),t.reset(),n.reset(),i.reset()},[e,r,t,n,i])}const Eqt=d.memo(function({open:t,content:n,children:r}){const i=d.useRef(null),a=d.useRef(null),o=d.useRef(null),s=d.useContext(w4e),[l,c]=d.useState("bottom"),[u,f]=d.useState(null),[p,h]=d.useState(0),m=()=>(a.current||(a.current=document.createElement("div")),a.current);return d.useEffect(()=>{const g=m();return t&&document.body.appendChild(g),()=>{g.remove()}},[t]),d.useEffect(()=>{if(!t||!s||!i.current||!o.current)return;const g=i.current.getBoundingClientRect(),v=o.current.getBoundingClientRect();let y=l,b=g.left+g.width/2,w=g.top+g.height,_=p;if(b+v.width/2>s.x+s.width){const k=b;b=s.x+s.width-v.width/2,_=k-b}if(bwindow.innerHeight-v.height&&(y==="bottom"&&(y="top"),w=g.top-v.height),w<0&&(y==="top"&&(y="bottom"),w=g.top+g.height),y!==l&&c(y),((u==null?void 0:u.x)!==b||u.y!==w)&&f({x:b,y:w}),_!==p&&h(_)}),x.jsxs(x.Fragment,{children:[d.cloneElement(r,{ref:i}),t&&n&&Ka.createPortal(x.jsxs("div",{ref:o,className:"screenshots-option",style:{visibility:u?"visible":"hidden",transform:`translate(${(u==null?void 0:u.x)??0}px, ${(u==null?void 0:u.y)??0}px)`},"data-placement":l,children:[x.jsx("div",{className:"screenshots-option-container",children:n}),x.jsx("div",{className:"screenshots-option-arrow",style:{marginLeft:p}})]}),m())]})}),Mu=d.memo(function({title:t,icon:n,checked:r,disabled:i,option:a,onClick:o}){const s=["screenshots-button"],l=d.useCallback(c=>{i||!o||o(c)},[i,o]);return r&&s.push("screenshots-button-checked"),i&&s.push("screenshots-button-disabled"),x.jsx(Eqt,{open:r,content:a,children:x.jsx("div",{className:s.join(" "),title:t,onClick:l,children:x.jsx("span",{className:n})})})});function $qt(){const{image:e,width:t,height:n,history:r,bounds:i,lang:a}=Zs(),o=Oh(),[,s]=Tc(),l=dU(),c=fU(),u=d.useCallback(()=>{s.clearSelect(),setTimeout(()=>{!o.current||!e||!i||f5({image:e,width:t,height:n,history:r,bounds:i}).then(f=>{l("onOk",f,i),c()})})},[o,s,e,t,n,r,i,l,c]);return x.jsx(Mu,{title:a.operation_ok_title,icon:"icon-ok",onClick:u})}function Mqt(){const e=dU(),t=fU(),n=Id(),r=d.useCallback(()=>{e("onCancel"),t()},[e,t]);return x.jsx(Mu,{title:n.operation_cancel_title,icon:"icon-cancel",onClick:r})}function Tqt(){const{image:e,width:t,height:n,history:r,bounds:i,lang:a}=Zs(),o=Oh(),[,s]=Tc(),l=dU(),c=fU(),u=d.useCallback(()=>{s.clearSelect(),setTimeout(()=>{!o.current||!e||!i||f5({image:e,width:t,height:n,history:r,bounds:i}).then(f=>{l("onSave",f,i),c()})})},[o,s,e,t,n,r,i,l,c]);return x.jsx(Mu,{title:a.operation_save_title,icon:"icon-save",onClick:u})}function Pqt(){const e=Id(),[t,n]=Tc(),r=d.useCallback(()=>{n.redo()},[n]);return x.jsx(Mu,{title:e.operation_redo_title,icon:"icon-redo",disabled:!t.stack.length||t.stack.length-1===t.index,onClick:r})}function Oqt(){const e=Id(),[t,n]=Tc(),r=d.useCallback(()=>{n.undo()},[n]);return x.jsx(Mu,{title:e.operation_undo_title,icon:"icon-undo",disabled:t.index===-1,onClick:r})}const m4e=d.memo(function({value:t,onChange:n}){const r=[3,6,9];return x.jsx("div",{className:"screenshots-size",children:r.map(i=>{const a=["screenshots-size-item"];return i===t&&a.push("screenshots-size-active"),x.jsx("div",{className:a.join(" "),onClick:()=>n&&n(i),children:x.jsx("div",{className:"screenshots-size-pointer",style:{width:i*1.8,height:i*1.8}})},i)})})});function ab(e){const t=ib();d.useEffect(()=>(t.on("mousedown",e),()=>{t.off("mousedown",e)}),[e,t])}function ob(e){const t=ib();d.useEffect(()=>(t.on("mousemove",e),()=>{t.off("mousemove",e)}),[e,t])}function sb(e){const t=ib();d.useEffect(()=>(t.on("mouseup",e),()=>{t.off("mouseup",e)}),[e,t])}function oC(e,t,n){if(!n)return[0,0,0,0];const{data:r,width:i}=n,a=t*i*4+e*4;return Array.from(r.slice(a,a+4))}function Iqt(e,t){const{tiles:n,size:r}=t.data;n.forEach(i=>{const a=Math.round(i.color[0]),o=Math.round(i.color[1]),s=Math.round(i.color[2]),l=i.color[3]/255;e.fillStyle=`rgba(${a}, ${o}, ${s}, ${l})`,e.fillRect(i.x-r/2,i.y-r/2,r,r)})}function Rqt(){const e=Id(),{image:t,width:n,height:r}=Zs(),[i,a]=Ph(),o=Oh(),[s,l]=Tc(),[c]=rb(),[,u]=Th(),[f,p]=d.useState(3),h=d.useRef(null),m=d.useRef(null),g=i==="Mosaic",v=d.useCallback(()=>{a.set("Mosaic"),u.set("crosshair")},[a,u]),y=d.useCallback(()=>{g||(v(),l.clearSelect())},[g,v,l]),b=d.useCallback(k=>{if(!g||m.current||!h.current||!o.current)return;const S=o.current.canvas.getBoundingClientRect(),C=k.clientX-S.x,E=k.clientY-S.y,$=f*2;m.current={name:"Mosaic",type:Yi.Source,data:{size:$,tiles:[{x:C,y:E,color:oC(C,E,h.current)}]},editHistory:[],draw:Iqt}},[g,f,o]),w=d.useCallback(k=>{if(!g||!m.current||!o.current||!h.current)return;const S=o.current.canvas.getBoundingClientRect(),C=k.clientX-S.x,E=k.clientY-S.y,$=m.current.data.size,M=m.current.data.tiles;let P=M[M.length-1];if(!P)M.push({x:C,y:E,color:oC(C,E,h.current)});else{const I=P.x-C,O=P.y-E;let A=Math.sqrt(I**2+O**2);const R=-O/A,j=-I/A;for(;A>$;){const N=Math.floor(P.x+$*j),D=Math.floor(P.y+$*R);P={x:N,y:D,color:oC(N,D,h.current)},M.push(P),A-=$}A>$/2&&M.push({x:C,y:E,color:oC(C,E,h.current)})}s.top!==m.current?l.push(m.current):l.set(s)},[g,o,s,l]),_=d.useCallback(()=>{g&&(m.current=null)},[g]);return ab(b),ob(w),sb(_),d.useEffect(()=>{if(!c||!t||!g)return;const k=document.createElement("canvas"),S=k.getContext("2d");if(!S)return;k.width=c.width,k.height=c.height;const C=t.naturalWidth/n,E=t.naturalHeight/r;S.drawImage(t,c.x*C,c.y*E,c.width*C,c.height*E,0,0,c.width,c.height),h.current=S.getImageData(0,0,c.width,c.height)},[n,r,c,t,g]),x.jsx(Mu,{title:e.operation_mosaic_title,icon:"icon-mosaic",checked:g,onClick:y,option:x.jsx(m4e,{value:f,onChange:p})})}const jqt=d.memo(function({value:t,onChange:n}){const r=["#ee5126","#fceb4d","#90e746","#51c0fa","#7a7a7a","#ffffff"];return x.jsx("div",{className:"screenshots-color",children:r.map(i=>{const a=["screenshots-color-item"];return i===t&&a.push("screenshots-color-active"),x.jsx("div",{className:a.join(" "),style:{backgroundColor:i},onClick:()=>n&&n(i)},i)})})}),cx=d.memo(function({size:t,color:n,onSizeChange:r,onColorChange:i}){return x.jsxs("div",{className:"screenshots-sizecolor",children:[x.jsx(m4e,{value:t,onChange:r}),x.jsx(jqt,{value:n,onChange:i})]})}),Nqt=` + as expected. Check README.md for usage'`)},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(n){this.props.dataLength!==n.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(n,r){var i=n.dataLength!==r.prevDataLength;return i?lw(lw({},r),{prevDataLength:n.dataLength}):null},t.prototype.isElementAtTop=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,a=ire(r);return a.unit===Vv.Pixel?n.scrollTop<=a.value+i-n.scrollHeight+1:n.scrollTop<=a.value/100+i-n.scrollHeight+1},t.prototype.isElementAtBottom=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,a=ire(r);return a.unit===Vv.Pixel?n.scrollTop+i>=n.scrollHeight-a.value:n.scrollTop+i>=a.value/100*n.scrollHeight},t.prototype.render=function(){var n=this,r=lw({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),i=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),a=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return te.createElement("div",{style:a,className:"infinite-scroll-component__outerdiv"},te.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(o){return n._infScroll=o},style:r},this.props.pullDownToRefresh&&te.createElement("div",{style:{position:"relative"},ref:function(o){return n._pullDown=o}},te.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!i&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(d.Component);async function $Wt(e){return bn("/api/v1/group/query/uid",{method:"GET",params:{...e,client:kn}})}async function MWt(e){return bn("/api/v1/group/create",{method:"POST",data:{...e,client:kn}})}const TWt=({open:e,onSubmit:t,onCancel:n})=>{const r=Rn(),{userInfo:i}=t1(),a=fr(S=>S.addThread),o=fr(S=>S.setCurrentThread),[s,l]=d.useState([]),[c,u]=d.useState([]),f=Na(S=>S.setMemberResult),p=Na(S=>S.memberResult),h=d.useMemo(()=>{const S=p==null?void 0:p.data.content;return S?(console.log("membersWithoutSelf",S,i==null?void 0:i.uid),S.filter(_=>{var E;return((E=_==null?void 0:_.user)==null?void 0:E.uid)!=(i==null?void 0:i.uid)})):[]},[p,i]),m=async()=>{var $;if(console.log("getAllMembers"),!(i!=null&&i.currentOrganization)){je.warning("userInfo.organizations is empty");return}const _={pageNumber:0,pageSize:50,orgUid:($=i==null?void 0:i.currentOrganization)==null?void 0:$.uid},E=await t$(_);console.log("queryMembersByOrg:",_,E.data),E.data.code===200?f(E.data):E.data.code===601||je.error(E.data.message)};d.useEffect(()=>{m()},[]);const g=(S,_,E)=>{console.log("onChange targetKeys:",S,_,E),l(S)},v=(S,_)=>{console.log("sourceSelectedKeys:",S),console.log("targetSelectedKeys:",_),u([...S,..._])},y=async()=>{console.log("createGroup"),je.loading("creating group");const S={name:k(),memberUids:s,type:u5e};console.log("groupRequest:",S);const _=await MWt(S);_.data.code===200?(je.destroy(),w(_.data.data)):(je.destroy(),je.error(_.data.message))},w=async S=>{console.log("startChat"),je.loading("starting group thread");const _={user:{uid:S==null?void 0:S.uid,nickname:S==null?void 0:S.name,avatar:S==null?void 0:S.avatar},topic:Mse+(S==null?void 0:S.uid),memberUids:s,content:"",type:xse,extra:"",client:kn};console.log("thread request:",_);const E=await I3e(_);console.log("create group thread response",E.data),E.data.code===200?(je.destroy(),a(E.data.data),o(E.data.data),t()):(je.destroy(),je.error(E.data.message))},b=()=>{if(console.log("targetKeys:",s),s.length<2){je.warning(r.formatMessage({id:"group.create.members.min",defaultMessage:"至少选择2名成员"}));return}if(je.loading(r.formatMessage({id:"group.create.creating",defaultMessage:"创建群组中..."})),!(i!=null&&i.currentOrganization)){je.warning(r.formatMessage({id:"group.create.org.empty",defaultMessage:"未选择组织"}));return}y()},C=()=>{n()},k=()=>{const S=s.reduce((_,E)=>{const $=p.data.content.find(M=>M.uid===E);return $?_+$.nickname+"":_},"");return(S==null?void 0:S.length)>10?S.substring(0,10)+"...":S};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"group.create.title",defaultMessage:"发起群聊"}),open:e,onOk:b,onCancel:C,children:x.jsx(Q8,{dataSource:h,rowKey:S=>S.uid,titles:[r.formatMessage({id:"group.create.contacts",defaultMessage:"好友"}),r.formatMessage({id:"group.create.members",defaultMessage:"群成员"})],targetKeys:s,selectedKeys:c,onChange:g,onSelectChange:v,render:S=>S.nickname})})})},dU=so()(es(ts(ns((e,t)=>({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""},insertWorkgroup(n){e(r=>{r.workgroupResult.data.content.unshift(n)})},updateWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i[a]=n:console.warn(`Workgroup with uid ${n.uid} not found.`)})},deleteWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i.splice(a,1):console.warn(`Workgroup with uid ${n.uid} not found.`)})},setWorkgroupResult:n=>{e({workgroupResult:n})},setWorkgroupInfo(n){e({workgroupInfo:n})},deleteWorkgroupInfo(n){const r=t().workgroupResult.data.content,i=r.findIndex(a=>a.uid===n);i!==-1?e({workgroupResult:{...t().workgroupResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Workgroup not found in cache:",n),t().workgroupInfo.uid===n&&e({workgroupInfo:{uid:"",orgUid:""}})},resetWorkgroupInfo(){e({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""}})}})),{name:R6e}))),K3e="thread_list_item",iC={"star-1":"#FFB800","star-2":"#FF4D4F","star-3":"#52C41A","star-4":"#1890FF"},PWt=({currentThread:e,filters:t,onFilterChange:n,onSetCurrentThread:r,onOpenBlockModal:i,onOpenThreadNoteModal:a})=>{const o=Rn(),s=async()=>{const h={uid:e==null?void 0:e.uid,top:!(e!=null&&e.top)};if((h==null?void 0:h.uid)==null)return;const m=await PUt(h);m.data.code===200?(r(m.data.data),je.success(o.formatMessage({id:"thread.set.success"}))):je.error(m.data.message)},l=async h=>{const m={uid:e==null?void 0:e.uid,star:h,top:e==null?void 0:e.top};if((m==null?void 0:m.uid)==null)return;const g=await OUt(m);if(g.data.code===200){if(r(g.data.data),h===0){const{refreshThreads:v}=fr.getState();await v()}je.success(o.formatMessage({id:"thread.set.success"}))}else je.error(g.data.message)},c=async()=>{const h={uid:e==null?void 0:e.uid,mute:!(e!=null&&e.mute)};if((h==null?void 0:h.uid)==null)return;const m=await RUt(h);m.data.code===200?(r(m.data.data),je.success(o.formatMessage({id:"thread.set.success"}))):je.error(m.data.message)},u=async()=>{const h={uid:e==null?void 0:e.uid,unread:!(e!=null&&e.unread)};if((h==null?void 0:h.uid)==null)return;const m=await N3e(h);m.data.code===200?(r(m.data.data),je.success(o.formatMessage({id:"thread.set.success"}))):je.error(m.data.message)},f=async()=>{GI(e)?$n.emit(tR):a()},p=({id:h})=>{switch(h){case"top":s();break;case"star-0":l(0);break;case"star-1":l(1);break;case"star-2":l(2);break;case"star-3":l(3);break;case"star-4":l(4);break;case"mute":c();break;case"unread":u();break;case"black":i();break;case"remark":f();break;default:je.warning(o.formatMessage({id:"thread.coming.soon"}))}};return x.jsx(x.Fragment,{children:x.jsxs(q3e,{id:K3e,children:[x.jsx(ci,{id:"top",onClick:p,children:e!=null&&e.top?o.formatMessage({id:"thread.menu.untop"}):o.formatMessage({id:"thread.menu.top"})}),x.jsxs(nre,{label:o.formatMessage({id:"thread.menu.star"}),children:[x.jsx(ci,{id:"star-1",onClick:p,children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:iC["star-1"]}}),o.formatMessage({id:"thread.menu.star.1"})]})}),x.jsx(ci,{id:"star-2",onClick:p,children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:iC["star-2"]}}),o.formatMessage({id:"thread.menu.star.2"})]})}),x.jsx(ci,{id:"star-3",onClick:p,children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:iC["star-3"]}}),o.formatMessage({id:"thread.menu.star.3"})]})}),x.jsx(ci,{id:"star-4",onClick:p,children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:iC["star-4"]}}),o.formatMessage({id:"thread.menu.star.4"})]})}),(e==null?void 0:e.star)&&x.jsxs(x.Fragment,{children:[x.jsx(Wv,{}),x.jsx(ci,{id:"star-0",onClick:p,children:o.formatMessage({id:"thread.menu.star.cancel"})})]})]}),x.jsx(Wv,{}),x.jsx(ci,{id:"mute",onClick:p,children:e!=null&&e.mute?o.formatMessage({id:"thread.menu.unmute"}):o.formatMessage({id:"thread.menu.mute"})}),x.jsx(ci,{id:"unread",onClick:p,children:e!=null&&e.unread?o.formatMessage({id:"thread.menu.read"}):o.formatMessage({id:"thread.menu.unread"})}),x.jsx(ci,{id:"black",onClick:p,children:o.formatMessage({id:"thread.menu.block"})}),x.jsx(ci,{id:"remark",onClick:p,children:o.formatMessage({id:"thread.menu.remark"})}),x.jsx(Wv,{}),x.jsxs(nre,{label:o.formatMessage({id:"thread.menu.filter"}),children:[x.jsx(ci,{children:x.jsx(ps,{checked:t.groupThread,onChange:()=>n("groupThread"),children:o.formatMessage({id:"thread.menu.groupThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.robotThread,onChange:()=>n("robotThread"),children:o.formatMessage({id:"thread.menu.robotThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.workgroupThread,onChange:()=>n("workgroupThread"),children:o.formatMessage({id:"thread.menu.workgroupThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.agentThread,onChange:()=>n("agentThread"),children:o.formatMessage({id:"thread.menu.agentThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.ticketThread,onChange:()=>n("ticketThread"),children:o.formatMessage({id:"thread.menu.ticketThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.memberThread,onChange:()=>n("memberThread"),children:o.formatMessage({id:"thread.menu.memberThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.deviceThread,onChange:()=>n("deviceThread"),children:o.formatMessage({id:"thread.menu.deviceThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.systemThread,onChange:()=>n("systemThread"),children:o.formatMessage({id:"thread.menu.systemThread"})})})]})]})})},OWt=({open:e,onSubmit:t,onCancel:n})=>{const r=d.useRef(!1),i=Rn(),{translateString:a}=Zr(),[o,s]=d.useState(0),[l]=d.useState(5),[c,u]=d.useState(0),[f,p]=d.useState([]),[h,m]=d.useState(!1),[g,v]=d.useState(""),y=Vr(P=>P.currentOrg),w=fr(P=>P.addThread),b=fr(P=>P.setCurrentThread),C=async(P=o)=>{if(r.current){console.log("isLoading: 1",r.current);return}r.current=!0,m(!0),je.loading("loading");const R={pageNumber:P,pageSize:l,nickname:g,orgUid:y==null?void 0:y.uid,categoryUid:"",type:CF,level:Lw};try{const O=await qwe(R);console.log("queryRobotsByOrg: ",O.data,R),O.data.code===200?(je.destroy(),p(O.data.data.content),u(O.data.data.totalElements),s(P)):(je.destroy(),je.error(O.data.message))}catch{je.destroy(),je.error("加载失败,请稍后重试")}finally{r.current=!1,m(!1)}};d.useEffect(()=>{e&&C(0)},[e,g]);const k=P=>{v(P)},S=P=>{C(P-1)},_=()=>{n()},E=async P=>{console.log("startRobotChat",P);const R={agent:JSON.stringify(P),forceNew:!0,hide:!1,client:kn},O=await YH(R);console.log("startRobotChat response:",R,O.data),O.data.code===200?(w(O.data.data),b(O.data.data),t()):(je.error(O.data.message),n())},$=async()=>{await E({uid:"df_org_uid_1",nickname:"新对话",avatar:"https://cdn.weiyuai.cn/assets/images/llm/provider/zhipu.png",type:G6e})};return x.jsx(x.Fragment,{children:x.jsxs(yr,{title:i.formatMessage({id:"robot.create.title",defaultMessage:"创建机器人"}),open:e,onCancel:_,footer:[x.jsx(Yt,{type:"primary",icon:x.jsx(Ny,{}),onClick:$,children:i.formatMessage({id:"robot.create.void",defaultMessage:"创建空白机器人"})},"create-empty"),x.jsx(Yt,{onClick:_,children:i.formatMessage({id:"common.cancel",defaultMessage:"取消"})},"cancel")],children:[x.jsx(Ur,{placeholder:i.formatMessage({id:"robot.search.placeholder",defaultMessage:"搜索机器人昵称"}),prefix:x.jsx(Ty,{}),value:g,onChange:P=>k(P.target.value),style:{marginBottom:16,marginTop:8},allowClear:!0}),f.length===0&&g&&!h&&x.jsx("div",{style:{textAlign:"center",padding:"20px 0"},children:i.formatMessage({id:"common.noSearchResults",defaultMessage:"没有找到匹配的机器人"})}),x.jsx("div",{style:{height:250,overflowY:"auto"},children:x.jsx(Yn,{dataSource:f,style:{marginTop:10},renderItem:P=>x.jsx(Yn.Item,{actions:[x.jsx(Yt,{onClick:()=>E(P),children:i.formatMessage({id:"pages.robot.chat",defaultMessage:"Chat"})})],children:x.jsx(Yn.Item.Meta,{style:{marginLeft:"10px"},title:a(P==null?void 0:P.nickname),description:a(P==null?void 0:P.description)})},P==null?void 0:P.uid)})}),!h&&f.length>0&&x.jsx("div",{style:{textAlign:"center",marginTop:16},children:x.jsx(I4,{current:o+1,pageSize:l,total:c,onChange:S,size:"small",simple:!0})}),h&&x.jsx("div",{style:{textAlign:"center",marginTop:20},children:x.jsxs(Xr,{children:[x.jsx(Zo,{}),x.jsx("span",{children:i.formatMessage({id:"common.loading",defaultMessage:"加载中..."})})]})})]})})};async function RWt(e){return bn("/api/v1/black/create",{method:"POST",data:{...e,client:kn}})}const G3e=({open:e,onOk:t,onCancel:n})=>{var m;const[r]=Kn.useForm(),i=Rn(),{translateString:a}=Zr(),o=fr(g=>g.currentThread),{currentVisitor:s,setCurrentVisitor:l}=v1(g=>g),c=Vr(g=>g.currentOrg),u=d.useCallback(async()=>{var v,y,w;if(!((v=o==null?void 0:o.user)!=null&&v.uid))return;console.log("Fetching visitor info for:",(y=o==null?void 0:o.user)==null?void 0:y.uid);const g=await R3e((w=o==null?void 0:o.user)==null?void 0:w.uid);console.log("getVisitorInfo response:",g.data),g.data.code===200?l(g.data.data):je.error(i.formatMessage({id:"customer.info.load.error",defaultMessage:"Failed to load visitor info"}))},[(m=o==null?void 0:o.user)==null?void 0:m.uid,l,i]);d.useEffect(()=>{r.setFieldValue("blackIp",!1)},[e,s]),d.useEffect(()=>{Rf(o)&&u()},[o,u]);const f=g=>{if(g){const v=cr().add(100,"year");r.setFieldValue("endTime",v)}else r.setFieldValue("endTime",null)},p=async()=>{const g=await r.validateFields(),v={blackUid:s==null?void 0:s.uid,blackNickname:s==null?void 0:s.nickname,blackAvatar:s==null?void 0:s.avatar,blockIp:g.blackIp,endTime:g.endTime?g.endTime.format("YYYY-MM-DD")+" 00:00:00":void 0,reason:g.reason,threadTopic:o==null?void 0:o.topic,orgUid:c==null?void 0:c.uid};console.log("blackModel params",v);const y=await RWt(v);console.log("blackModel result",y),y.data.code===200?(je.success(i.formatMessage({id:"black.success"})),t(v)):je.error(a(y.data.message))},h=()=>{r.resetFields(),n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:i.formatMessage({id:"black.title"}),open:e,onOk:p,onCancel:h,children:x.jsxs(Kn,{form:r,submitter:!1,onFinish:p,children:[x.jsx(WN,{name:"blackIp",label:i.formatMessage({id:"black.ip"})}),x.jsx(WN,{name:"isPermanent",label:i.formatMessage({id:"black.permanent"}),fieldProps:{onChange:f}}),x.jsx(oTt,{name:"endTime",label:i.formatMessage({id:"black.until"}),dependencies:["isPermanent"],fieldProps:{showTime:!1,disabled:r.getFieldValue("isPermanent"),disabledDate:g=>g&&g!r.getFieldValue("isPermanent")&&!v?Promise.reject(i.formatMessage({id:"black.until.required"})):Promise.resolve()}]}),x.jsx(Cd,{name:"reason",label:i.formatMessage({id:"black.reason"}),rules:[{required:!0,message:i.formatMessage({id:"black.reason.required"})}],fieldProps:{placeholder:i.formatMessage({id:"black.reason.placeholder"})}})]})})})},P2={async loadThreads(e=3){const{setLoading:t,setError:n,setThreads:r,searchText:i,pagination:a,setPagination:o}=fr.getState(),{agentInfo:s}=Eo.getState(),{memberInfo:l}=Na.getState(),c=async u=>{try{t(!0),n(null);const f={pageNumber:a.pageNumber,pageSize:a.pageSize,inviteUids:[s==null?void 0:s.uid],monitorUids:[s==null?void 0:s.uid],ticketorUids:[l==null?void 0:l.uid]};i&&(f.searchText=i);const p=await MUt(f);if(console.log("queryThreads response",f,p.data),p.data.code===200){if(o({...a,total:p.data.data.totalElements,pageNumber:p.data.data.last?a.pageNumber:a.pageNumber+1}),a.pageNumber===0)r(p.data.data.content);else{const{threads:m}=fr.getState();r([...m,...p.data.data.content])}const{setThreadResult:h}=fr.getState();h(p.data)}else throw new Error(p.data.message)}catch(f){if(usetTimeout(p,1e3)),c(u+1);n(f instanceof Error?f.message:"Failed to load threads")}finally{t(!1)}};return c(1)},async resetAndLoad(){const{setPagination:e}=fr.getState(),t=Vr.getState().currentOrg;return e({pageNumber:0,pageSize:100,total:0}),this.loadThreads(t.uid)},async loadThreadsWithFilters(e){const{setFilter:t}=fr.getState();return Object.entries(e).forEach(([n,r])=>{t(n,r)}),this.resetAndLoad()}},IWt=Object.freeze(Object.defineProperty({__proto__:null,threadService:P2},Symbol.toStringTag,{value:"Module"})),Y3e=({open:e,handleOk:t,handleCancel:n,currentThread:r})=>{var c;const i=Rn(),[a]=Kn.useForm(),{translateString:o}=Zr(),{setCurrentThread:s}=fr();te.useEffect(()=>{var u,f;(u=r==null?void 0:r.user)!=null&&u.nickname&&a.setFieldsValue({nickname:o((f=r==null?void 0:r.user)==null?void 0:f.nickname)})},[r]);const l=async()=>{var p,h,m,g;const u=await a.validateFields(),{nickname:f}=u;try{const v={uid:r==null?void 0:r.uid,user:{uid:(p=r==null?void 0:r.user)==null?void 0:p.uid,nickname:f,avatar:(h=r==null?void 0:r.user)==null?void 0:h.avatar,type:(m=r==null?void 0:r.user)==null?void 0:m.type}},y=await j3e(v);console.log("updateThreadUser:",v,y.data),y.data.code===200&&s((g=y==null?void 0:y.data)==null?void 0:g.data),t&&t()}catch(v){console.error("Update failed:",v)}};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:i.formatMessage({id:"thread.menu.remark",defaultMessage:"备注"}),open:e,onOk:l,onCancel:n,children:x.jsx(Kn,{form:a,submitter:!1,children:x.jsx(Or,{name:"nickname",label:"昵称",initialValue:(c=r==null?void 0:r.user)==null?void 0:c.nickname,placeholder:"请输入新的昵称",rules:[{required:!0,message:"请输入昵称"}]})})})})},{Text:are}=Zf,ore={"star-1":"#FFB800","star-2":"#FF4D4F","star-3":"#52C41A","star-4":"#1890FF"},jWt=()=>{const e=Rn(),{translateStringTranct:t}=Zr(),{isDarkMode:n,agentInfo:r,hasRoleAgent:i,handleUpdateAgentStatus:a}=vz(),o=r7(),[s,l]=d.useState("下线"),c=dU(se=>se.workgroupResult),[u,f]=d.useState(!1),p=Vr(se=>se.currentOrg),[h,m]=d.useState(!1),g=[{key:"group",label:e.formatMessage({id:"thread.dropdown.create.group",defaultMessage:"创建群聊"})},{key:"ai",label:e.formatMessage({id:"thread.dropdown.create.ai",defaultMessage:"创建AI对话"})}],v=[{key:y0,label:e.formatMessage({id:"thread.agent.status.online",defaultMessage:"😀 - 在线接待"})},{key:Fm,label:e.formatMessage({id:"thread.agent.status.offline",defaultMessage:"🔻 - 客服下线"})},{key:vq,label:e.formatMessage({id:"thread.agent.status.busy",defaultMessage:"🏃‍♀️ - 客服忙碌"})}],{threads:y,queuingThreads:w,threadResult:b,currentThread:C,showQueueList:k,loading:S,pagination:_,searchText:E,setSearchText:$,setCurrentThread:M,setShowQueueList:P}=fr(),R=d.useRef(!1),O=async()=>{if(!(R.current||!(p!=null&&p.uid))){R.current=!0;try{await P2.loadThreads(),await j()}finally{R.current=!1}}},j=async()=>{if(!i)return;const se={uid:r==null?void 0:r.uid},ye=await n$e(se);console.log("syncCurrentThreadCount:",ye.data)};d.useEffect(()=>{o&&(p!=null&&p.uid)&&(console.log("网络重连,重新加载会话列表"),O())},[o,p==null?void 0:p.uid]);const I=async se=>{if(se.uid===(C==null?void 0:C.uid)){console.log("handleSelectThreadClick 当前聊天窗口,无需操作");return}se.unreadCount>0?A(se):M(se)},A=async se=>{const ye={uid:se.uid,unreadCount:0};if((ye==null?void 0:ye.uid)==null){je.error("当前会话uid为空,无法清除未读消息数");return}console.log("handleUpdateThreadUnreadCount",ye);const Oe=await N3e(ye);console.log("handleUpdateThreadUnreadCount response:",Oe.data),Oe.data.code===200?M(Oe.data.data):console.log("handleUpdateThreadUnreadCount error:",Oe)},{show:N}=W3e({id:K3e});function F(se,ye){console.log("handleContextMenu:",se," item:",ye),M(ye),N({event:se})}const K=se=>{var ye,Oe,z,H,G,de,xe,he,Ue;return((ye=se==null?void 0:se.user)==null?void 0:ye.avatar)===null||((Oe=se==null?void 0:se.user)==null?void 0:Oe.avatar)===void 0?x.jsx("img",{style:{marginLeft:10},src:Ik(((z=se==null?void 0:se.user)==null?void 0:z.uid)||""),alt:"Avatar"}):((H=se==null?void 0:se.user)==null?void 0:H.avatar.indexOf("local"))>-1?x.jsx("img",{style:{marginLeft:10},src:Ik(((G=se==null?void 0:se.user)==null?void 0:G.uid)||""),alt:"Avatar"}):((de=se==null?void 0:se.user)==null?void 0:de.avatar.indexOf("http"))===-1?x.jsx("p",{style:{marginLeft:25},children:(xe=se==null?void 0:se.user)==null?void 0:xe.avatar}):x.jsx(x.Fragment,{children:se!=null&&se.unread?x.jsx(x.Fragment,{children:x.jsx(Lo,{dot:se==null?void 0:se.unread,style:{marginTop:10},children:x.jsx(Pi,{style:{marginLeft:10,marginTop:5},shape:"square",size:"large",src:((he=se==null?void 0:se.user)==null?void 0:he.avatar)||""})})}):x.jsx(x.Fragment,{children:x.jsx(Lo,{count:se==null?void 0:se.unreadCount,style:{marginTop:10},children:x.jsx(Pi,{style:{marginLeft:10,marginTop:5},shape:"square",size:"large",src:((Ue=se==null?void 0:se.user)==null?void 0:Ue.avatar)||""})})})})},[L,V]=d.useState(!1),B=()=>{V(!0)},U=()=>{V(!1)},Y=()=>{V(!1)},[ee,ie]=d.useState(!1),Z=()=>{ie(!0)},X=()=>{ie(!1)},ae=()=>{ie(!1)},oe=se=>{console.log("handleSearchChange:",se),$(se),p!=null&&p.uid&&P2.loadThreadsWithFilters({searchText:se})},le=se=>{if(console.log("setAgentStatusByKey:",se),se===y0)return l(e.formatMessage({id:"thread.status.online",defaultMessage:"😀接待"}));if(se===Fm)return l(e.formatMessage({id:"thread.status.offline",defaultMessage:"🔻下线"}));if(se===vq)return l(e.formatMessage({id:"thread.status.busy",defaultMessage:"🏃‍♀️忙碌"}))};d.useEffect(()=>{console.log("useEffect agentStatus"),le(r==null?void 0:r.status)},[r,e]);const ce=se=>{console.log("handleAgentStatusClick:",se),a(se.key),le(se.key)},pe=se=>{const ye=se==null?void 0:se.topic.split("/")[2],Oe=c==null?void 0:c.data.content.find(z=>ye===(z==null?void 0:z.uid));if(Oe!=null)return t(Oe==null?void 0:Oe.nickname)},me=()=>{console.log("handleSwitchQueue"),P(!k)},re=({key:se})=>{se==="group"?B():se==="ai"&&Z()},[fe,ve]=d.useState({groupThread:!1,robotThread:!1,workgroupThread:!1,agentThread:!1,ticketThread:!1,memberThread:!1,deviceThread:!1,systemThread:!1}),$e=se=>{ve(ye=>({...ye,[se]:!ye[se]}))},be=(se=>{let ye=[...se];return Object.values(fe).some(Oe=>Oe)&&(ye=ye.filter(Oe=>!!(fe.groupThread&&Fo(Oe)||fe.robotThread&&Dk(Oe)||fe.workgroupThread&&eRe(Oe)||fe.agentThread&&JOe(Oe)||fe.ticketThread&&Ak(Oe)||fe.memberThread&&Nk(Oe)||fe.deviceThread&&tRe(Oe)||fe.systemThread&&nRe(Oe)))),[...ye].sort((Oe,z)=>{const H=Oe.top||!1,G=z.top||!1;if(H!==G)return H?-1:1;const de=Oe.star||0,xe=z.star||0;return de!==xe?xe-de:new Date(z.updatedAt).getTime()-new Date(Oe.updatedAt).getTime()})})(y);d.useEffect(()=>{p!=null&&p.uid&&P2.resetAndLoad()},[p==null?void 0:p.uid]);const Se=async()=>{S||!(p!=null&&p.uid)||b.data.last||await P2.loadThreads()},we=se=>!se||se.length===0?null:(se=se.filter(ye=>ye!==""),x.jsx(o3,{gap:"4px 0",children:se.map(ye=>{const Oe=ye.length>10,z=x.jsx(Vi,{color:"blue",children:Oe?`${ye.slice(0,10)}...`:ye},ye);return Oe?x.jsx(_a,{title:ye,children:z},ye):z})}));return x.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[x.jsxs("div",{children:[x.jsxs("div",{children:[x.jsxs(o3,{style:{marginTop:15,marginBottom:15},gap:"middle",justify:"center",align:"center",children:[x.jsx(Ur,{style:{width:"55%"},size:"small",placeholder:e.formatMessage({id:"thread.search.placeholder",defaultMessage:"搜索"}),value:E,onChange:se=>oe(se.target.value),prefix:x.jsx(Ty,{}),allowClear:!0}),x.jsx(_6,{menu:{items:g,onClick:re},children:x.jsx("a",{onClick:se=>se.preventDefault(),children:x.jsx(Xr,{children:x.jsx(Ny,{})})})}),i&&x.jsx(_6,{menu:{items:v,onClick:ce},children:x.jsxs(Xr,{children:[x.jsx(are,{children:s}),x.jsx(are,{children:x.jsx(My,{})})]})})]}),!o&&x.jsx(JE,{message:e.formatMessage({id:"i18n.network.disconnected"}),banner:!0}),S&&x.jsx("p",{style:{paddingLeft:10,paddingRight:10},children:x.jsx(Yt,{loading:!0,block:!0,children:e.formatMessage({id:"i18n.message.pulling"})})})]}),i&&w.length>0&&x.jsx(Yt,{icon:x.jsx(wve,{}),block:!0,onClick:me,children:e.formatMessage({id:"i18n.queue.tip"})+"("+w.length+")"}),(be==null?void 0:be.length)===0&&x.jsx(za,{}),(be==null?void 0:be.length)>0&&x.jsx(EWt,{dataLength:be.length,next:Se,hasMore:!b.data.last&&be.length<_.total,loader:x.jsx("div",{style:{textAlign:"center",padding:"20px"},children:x.jsx(Zo,{tip:e.formatMessage({id:"thread.loading.more"})})}),scrollableTarget:"scrollableDiv",style:{overflow:"hidden"},children:x.jsx(Yn,{dataSource:be,renderItem:se=>{var ye;return x.jsxs(Yn.Item,{onClick:()=>I(se),onContextMenu:()=>F(event,se),className:(C==null?void 0:C.uid)===(se==null?void 0:se.uid)?n?"list-item-dark-active":"list-item-active":n?"list-item-dark":"list-item",style:{backgroundColor:se.star?ore[`star-${se.star}`]+"10":void 0,borderLeft:se.star?`3px solid ${ore[`star-${se.star}`]}`:void 0},children:[x.jsx(Yn.Item.Meta,{avatar:K(se),title:x.jsxs(x.Fragment,{children:[se!=null&&se.top?x.jsx(TWe,{}):x.jsx(x.Fragment,{}),t((ye=se==null?void 0:se.user)==null?void 0:ye.nickname)]}),description:x.jsx("span",{className:"ellipsis",children:x.jsxs(x.Fragment,{children:[se!=null&&se.mute?x.jsx(Dit,{}):x.jsx(x.Fragment,{}),we(se==null?void 0:se.tagList),dRe(se==null?void 0:se.topic)?x.jsx(x.Fragment,{children:t("i18n.robot")}):x.jsx(x.Fragment,{}),fRe(se==null?void 0:se.topic)?x.jsx(x.Fragment,{children:t("i18n.agent")}):x.jsx(x.Fragment,{}),pRe(se==null?void 0:se.topic)?x.jsx(x.Fragment,{children:"["+pe(se)+"]"}):x.jsx(x.Fragment,{})," "+t(se==null?void 0:se.content)]})})}),x.jsx("span",{className:"timestamp",children:ZOe(se==null?void 0:se.updatedAt)})]},se==null?void 0:se.uid)}})})]}),x.jsx(PWt,{currentThread:C,filters:fe,onFilterChange:$e,onSetCurrentThread:M,onOpenBlockModal:()=>f(!0),onOpenThreadNoteModal:()=>m(!0)}),L&&x.jsx(TWt,{open:L,onSubmit:U,onCancel:Y}),ee&&x.jsx(OWt,{open:ee,onSubmit:X,onCancel:ae}),u&&x.jsx(G3e,{open:u,onOk:()=>{f(!1)},onCancel:()=>{f(!1)}}),h&&x.jsx(Y3e,{open:h,currentThread:C,handleOk:()=>{m(!1)},handleCancel:()=>{m(!1)}})]})};function co(){const{isDarkMode:e}=Dg(),{token:t}=Ho.useToken(),n={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},r=300,i={borderBottom:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},a={borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},o={minHeight:120,overflowY:"auto"},s={height:20,fontSize:12,backgroundColor:t.colorBgContainer,color:t.colorText};return{leftSiderStyle:n,leftSiderWidth:r,headerStyle:i,rightSiderStyle:a,contentStyle:o,footerStyle:s}}const NWt=()=>{const e=Rn(),{isDarkMode:t}=Dg(),n=Eo(f=>f.agentInfo),{currentQueuingThread:r,queuingThreads:i,threads:a,setCurrentQueuingThread:o,setQueuingThreads:s,setThreads:l}=fr(f=>({currentQueuingThread:f.currentQueuingThread,queuingThreads:f.queuingThreads,threads:f.threads,setCurrentQueuingThread:f.setCurrentQueuingThread,setQueuingThreads:f.setQueuingThreads,setThreads:f.setThreads})),c=async(f,p)=>{var g;console.log("acceptQueuingThread",f,p),je.loading(e.formatMessage({id:"queue.accepting",defaultMessage:"接受中..."}));const h={uid:f.uid,agent:JSON.stringify({uid:n==null?void 0:n.uid,nickname:n==null?void 0:n.nickname,avatar:n==null?void 0:n.avatar,type:uh})},m=await NUt(h);if(((g=m==null?void 0:m.data)==null?void 0:g.code)===200){je.destroy(),je.success(e.formatMessage({id:"queue.accept.success",defaultMessage:"接受成功"}));const v={...f,state:Y6e},y=a.filter(w=>w.topic!==f.topic);l([v,...y]),s(i.filter(w=>w.uid!==f.uid))}else je.destroy(),je.error(e.formatMessage({id:"queue.accept.failed",defaultMessage:"接受失败"}))},u=(f,p)=>{console.log("handleListOnClick",f,p),o(f)};return x.jsx(x.Fragment,{children:x.jsx(Yn,{dataSource:i,renderItem:(f,p)=>x.jsx(Yn.Item,{style:(r==null?void 0:r.uid)===f.uid?{backgroundColor:t?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>u(f,p),actions:[x.jsx(Yt,{onClick:()=>c(f,p),children:e.formatMessage({id:"queue.accept",defaultMessage:"接受"})})],children:x.jsx(Yn.Item.Meta,{style:{marginLeft:10},avatar:x.jsx(Pi,{src:f.user.avatar}),title:f.user.nickname,description:f.content})},f==null?void 0:f.uid)})})};var X3e={exports:{}},AWt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",DWt=AWt,FWt=DWt;function Z3e(){}function Q3e(){}Q3e.resetWarningCache=Z3e;var LWt=function(){function e(r,i,a,o,s,l){if(l!==FWt){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Q3e,resetWarningCache:Z3e};return n.PropTypes=n,n};X3e.exports=LWt();var BWt=X3e.exports;const wi=ei(BWt),zWt=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Q0(e,t,n){const r=HWt(e),{webkitRelativePath:i}=e,a=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&sre(r,"path",a),sre(r,"relativePath",a),r}function HWt(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=zWt.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function sre(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const UWt=[".DS_Store","Thumbs.db"];function WWt(e){return f1(this,void 0,void 0,function*(){return c5(e)&&VWt(e.dataTransfer)?YWt(e.dataTransfer,e.type):qWt(e)?KWt(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?GWt(e):[]})}function VWt(e){return c5(e)}function qWt(e){return c5(e)&&c5(e.target)}function c5(e){return typeof e=="object"&&e!==null}function KWt(e){return NA(e.target.files).map(t=>Q0(t))}function GWt(e){return f1(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>Q0(n))})}function YWt(e,t){return f1(this,void 0,void 0,function*(){if(e.items){const n=NA(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(XWt));return lre(J3e(r))}return lre(NA(e.files).map(n=>Q0(n)))})}function lre(e){return e.filter(t=>UWt.indexOf(t.name)===-1)}function NA(e){if(e===null)return[];const t=[];for(let n=0;n[...t,...Array.isArray(n)?J3e(n):[n]],[])}function cre(e,t){return f1(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const a=yield e.getAsFileSystemHandle();if(a===null)throw new Error(`${e} is not a File`);if(a!==void 0){const o=yield a.getFile();return o.handle=a,Q0(o)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return Q0(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function ZWt(e){return f1(this,void 0,void 0,function*(){return e.isDirectory?e4e(e):QWt(e)})}function e4e(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function a(){t.readEntries(o=>f1(this,void 0,void 0,function*(){if(o.length){const s=Promise.all(o.map(ZWt));i.push(s),a()}else try{const s=yield Promise.all(i);n(s)}catch(s){r(s)}}),o=>{r(o)})}a()})}function QWt(e){return f1(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=Q0(r,e.fullPath);t(i)},r=>{n(r)})})})}var EP=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?a===s.replace(/\/.*$/,""):i===s})}return!0};function ure(e){return tVt(e)||eVt(e)||n4e(e)||JWt()}function JWt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eVt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tVt(e){if(Array.isArray(e))return AA(e)}function dre(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fre(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:oVt,message:"File type must be ".concat(r)}},pre=function(t){return{code:sVt,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},hre=function(t){return{code:lVt,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},dVt={code:cVt,message:"Too many files"};function r4e(e,t){var n=e.type==="application/x-moz-file"||aVt(e,t);return[n,n?null:uVt(t)]}function i4e(e,t,n){if(fm(e.size))if(fm(t)&&fm(n)){if(e.size>n)return[!1,pre(n)];if(e.sizen)return[!1,pre(n)]}return[!0,null]}function fm(e){return e!=null}function fVt(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple,o=e.maxFiles,s=e.validator;return!a&&t.length>1||a&&o>=1&&t.length>o?!1:t.every(function(l){var c=r4e(l,n),u=j3(c,1),f=u[0],p=i4e(l,r,i),h=j3(p,1),m=h[0],g=s?s(l):null;return f&&m&&!g})}function u5(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function aC(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function mre(e){e.preventDefault()}function pVt(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function hVt(e){return e.indexOf("Edge/")!==-1}function mVt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return pVt(e)||hVt(e)}function Lu(){for(var e=arguments.length,t=new Array(e),n=0;n1?i-1:0),o=1;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RVt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var fU=d.forwardRef(function(e,t){var n=e.children,r=d5(e,xVt),i=c4e(r),a=i.open,o=d5(i,SVt);return d.useImperativeHandle(t,function(){return{open:a}},[a]),te.createElement(d.Fragment,null,n(Ji(Ji({},o),{},{open:a})))});fU.displayName="Dropzone";var l4e={disabled:!1,getFilesFromEvent:WWt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};fU.defaultProps=l4e;fU.propTypes={children:wi.func,accept:wi.objectOf(wi.arrayOf(wi.string)),multiple:wi.bool,preventDropOnDocument:wi.bool,noClick:wi.bool,noKeyboard:wi.bool,noDrag:wi.bool,noDragEventsBubbling:wi.bool,minSize:wi.number,maxSize:wi.number,maxFiles:wi.number,disabled:wi.bool,getFilesFromEvent:wi.func,onFileDialogCancel:wi.func,onFileDialogOpen:wi.func,useFsAccessApi:wi.bool,autoFocus:wi.bool,onDragEnter:wi.func,onDragLeave:wi.func,onDragOver:wi.func,onDrop:wi.func,onDropAccepted:wi.func,onDropRejected:wi.func,onError:wi.func,validator:wi.func};var LA={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function c4e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ji(Ji({},l4e),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,o=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,f=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,y=t.useFsAccessApi,w=t.autoFocus,b=t.preventDropOnDocument,C=t.noClick,k=t.noKeyboard,S=t.noDrag,_=t.noDragEventsBubbling,E=t.onError,$=t.validator,M=d.useMemo(function(){return yVt(n)},[n]),P=d.useMemo(function(){return vVt(n)},[n]),R=d.useMemo(function(){return typeof v=="function"?v:vre},[v]),O=d.useMemo(function(){return typeof g=="function"?g:vre},[g]),j=d.useRef(null),I=d.useRef(null),A=d.useReducer(IVt,LA),N=$P(A,2),F=N[0],K=N[1],L=F.isFocused,V=F.isFileDialogActive,B=d.useRef(typeof window<"u"&&window.isSecureContext&&y&&gVt()),U=function(){!B.current&&V&&setTimeout(function(){if(I.current){var Oe=I.current.files;Oe.length||(K({type:"closeDialog"}),O())}},300)};d.useEffect(function(){return window.addEventListener("focus",U,!1),function(){window.removeEventListener("focus",U,!1)}},[I,V,O,B]);var Y=d.useRef([]),ee=function(Oe){j.current&&j.current.contains(Oe.target)||(Oe.preventDefault(),Y.current=[])};d.useEffect(function(){return b&&(document.addEventListener("dragover",mre,!1),document.addEventListener("drop",ee,!1)),function(){b&&(document.removeEventListener("dragover",mre),document.removeEventListener("drop",ee))}},[j,b]),d.useEffect(function(){return!r&&w&&j.current&&j.current.focus(),function(){}},[j,w,r]);var ie=d.useCallback(function(ye){E?E(ye):console.error(ye)},[E]),Z=d.useCallback(function(ye){ye.preventDefault(),ye.persist(),be(ye),Y.current=[].concat(kVt(Y.current),[ye.target]),aC(ye)&&Promise.resolve(i(ye)).then(function(Oe){if(!(u5(ye)&&!_)){var z=Oe.length,H=z>0&&fVt({files:Oe,accept:M,minSize:o,maxSize:a,multiple:s,maxFiles:l,validator:$}),G=z>0&&!H;K({isDragAccept:H,isDragReject:G,isDragActive:!0,type:"setDraggedFiles"}),c&&c(ye)}}).catch(function(Oe){return ie(Oe)})},[i,c,ie,_,M,o,a,s,l,$]),X=d.useCallback(function(ye){ye.preventDefault(),ye.persist(),be(ye);var Oe=aC(ye);if(Oe&&ye.dataTransfer)try{ye.dataTransfer.dropEffect="copy"}catch{}return Oe&&f&&f(ye),!1},[f,_]),ae=d.useCallback(function(ye){ye.preventDefault(),ye.persist(),be(ye);var Oe=Y.current.filter(function(H){return j.current&&j.current.contains(H)}),z=Oe.indexOf(ye.target);z!==-1&&Oe.splice(z,1),Y.current=Oe,!(Oe.length>0)&&(K({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),aC(ye)&&u&&u(ye))},[j,u,_]),oe=d.useCallback(function(ye,Oe){var z=[],H=[];ye.forEach(function(G){var de=r4e(G,M),xe=$P(de,2),he=xe[0],Ue=xe[1],We=i4e(G,o,a),ge=$P(We,2),ze=ge[0],Ve=ge[1],Be=$?$(G):null;if(he&&ze&&!Be)z.push(G);else{var Xe=[Ue,Ve];Be&&(Xe=Xe.concat(Be)),H.push({file:G,errors:Xe.filter(function(Ke){return Ke})})}}),(!s&&z.length>1||s&&l>=1&&z.length>l)&&(z.forEach(function(G){H.push({file:G,errors:[dVt]})}),z.splice(0)),K({acceptedFiles:z,fileRejections:H,isDragReject:H.length>0,type:"setFiles"}),p&&p(z,H,Oe),H.length>0&&m&&m(H,Oe),z.length>0&&h&&h(z,Oe)},[K,s,M,o,a,l,p,h,m,$]),le=d.useCallback(function(ye){ye.preventDefault(),ye.persist(),be(ye),Y.current=[],aC(ye)&&Promise.resolve(i(ye)).then(function(Oe){u5(ye)&&!_||oe(Oe,ye)}).catch(function(Oe){return ie(Oe)}),K({type:"reset"})},[i,oe,ie,_]),ce=d.useCallback(function(){if(B.current){K({type:"openDialog"}),R();var ye={multiple:s,types:P};window.showOpenFilePicker(ye).then(function(Oe){return i(Oe)}).then(function(Oe){oe(Oe,null),K({type:"closeDialog"})}).catch(function(Oe){bVt(Oe)?(O(Oe),K({type:"closeDialog"})):wVt(Oe)?(B.current=!1,I.current?(I.current.value=null,I.current.click()):ie(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ie(Oe)});return}I.current&&(K({type:"openDialog"}),R(),I.current.value=null,I.current.click())},[K,R,O,y,oe,ie,P,s]),pe=d.useCallback(function(ye){!j.current||!j.current.isEqualNode(ye.target)||(ye.key===" "||ye.key==="Enter"||ye.keyCode===32||ye.keyCode===13)&&(ye.preventDefault(),ce())},[j,ce]),me=d.useCallback(function(){K({type:"focus"})},[]),re=d.useCallback(function(){K({type:"blur"})},[]),fe=d.useCallback(function(){C||(mVt()?setTimeout(ce,0):ce())},[C,ce]),ve=function(Oe){return r?null:Oe},$e=function(Oe){return k?null:ve(Oe)},Ce=function(Oe){return S?null:ve(Oe)},be=function(Oe){_&&Oe.stopPropagation()},Se=d.useMemo(function(){return function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Oe=ye.refKey,z=Oe===void 0?"ref":Oe,H=ye.role,G=ye.onKeyDown,de=ye.onFocus,xe=ye.onBlur,he=ye.onClick,Ue=ye.onDragEnter,We=ye.onDragOver,ge=ye.onDragLeave,ze=ye.onDrop,Ve=d5(ye,CVt);return Ji(Ji(FA({onKeyDown:$e(Lu(G,pe)),onFocus:$e(Lu(de,me)),onBlur:$e(Lu(xe,re)),onClick:ve(Lu(he,fe)),onDragEnter:Ce(Lu(Ue,Z)),onDragOver:Ce(Lu(We,X)),onDragLeave:Ce(Lu(ge,ae)),onDrop:Ce(Lu(ze,le)),role:typeof H=="string"&&H!==""?H:"presentation"},z,j),!r&&!k?{tabIndex:0}:{}),Ve)}},[j,pe,me,re,fe,Z,X,ae,le,k,S,r]),we=d.useCallback(function(ye){ye.stopPropagation()},[]),se=d.useMemo(function(){return function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Oe=ye.refKey,z=Oe===void 0?"ref":Oe,H=ye.onChange,G=ye.onClick,de=d5(ye,_Vt),xe=FA({accept:M,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ve(Lu(H,le)),onClick:ve(Lu(G,we)),tabIndex:-1},z,I);return Ji(Ji({},xe),de)}},[I,n,s,le,r]);return Ji(Ji({},F),{},{isFocused:L&&!r,getRootProps:Se,getInputProps:se,rootRef:j,inputRef:I,open:ve(ce)})}function IVt(e,t){switch(t.type){case"focus":return Ji(Ji({},e),{},{isFocused:!0});case"blur":return Ji(Ji({},e),{},{isFocused:!1});case"openDialog":return Ji(Ji({},LA),{},{isFileDialogActive:!0});case"closeDialog":return Ji(Ji({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ji(Ji({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ji(Ji({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Ji({},LA);default:return e}}function vre(){}const jVt=({onImageSend:e,children:t})=>{const[n,r]=d.useState(null),i=d.useCallback(()=>{console.log("DropUpload handleImageCancel"),r(null)},[]),a=d.useCallback(()=>{console.log("DropUpload handleImageSend"),qC(n,c=>{n!=null&&n.type.startsWith("image")?e(c.data.fileUrl,Cl):n!=null&&n.type.startsWith("video/")?e(c.data.fileUrl,lg):e(c.data.fileUrl,cd),r(null)})},[n]),o=d.useCallback(c=>{console.log("DropUpload acceptedFiles",c),c.map(u=>{console.log(u),r(u)})},[]),{getRootProps:s,getInputProps:l}=c4e({maxFiles:1,onDrop:o,onDropAccepted(c,u){console.log("DropUpload onDropAccepted",c,u)},onDropRejected(c,u){console.log("DropUpload onDropRejected",c,u)},noClick:!0});return x.jsxs("div",{...s(),style:{height:"100%"},children:[x.jsx("input",{...l()}),x.jsx(x.Fragment,{children:t}),n&&x.jsx(_we,{file:n,onCancel:i,onSend:a})]})};function NVt(e,t,n){var r=this,i=d.useRef(null),a=d.useRef(0),o=d.useRef(null),s=d.useRef([]),l=d.useRef(),c=d.useRef(),u=d.useRef(e),f=d.useRef(!0);u.current=e;var p=typeof window<"u",h=!t&&t!==0&&p;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,g=!("trailing"in n)||!!n.trailing,v="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,w=v?Math.max(+n.maxWait||0,t):null;d.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var b=d.useMemo(function(){var C=function(M){var P=s.current,R=l.current;return s.current=l.current=null,a.current=M,c.current=u.current.apply(R,P)},k=function(M,P){h&&cancelAnimationFrame(o.current),o.current=h?requestAnimationFrame(M):setTimeout(M,P)},S=function(M){if(!f.current)return!1;var P=M-i.current;return!i.current||P>=t||P<0||v&&M-a.current>=w},_=function(M){return o.current=null,g&&s.current?C(M):(s.current=l.current=null,c.current)},E=function M(){var P=Date.now();if(S(P))return _(P);if(f.current){var R=t-(P-i.current),O=v?Math.min(R,w-(P-a.current)):R;k(M,O)}},$=function(){if(p||y){var M=Date.now(),P=S(M);if(s.current=[].slice.call(arguments),l.current=r,i.current=M,P){if(!o.current&&f.current)return a.current=i.current,k(E,t),m?C(i.current):c.current;if(v)return k(E,t),C(i.current)}return o.current||k(E,t),c.current}};return $.cancel=function(){o.current&&(h?cancelAnimationFrame(o.current):clearTimeout(o.current)),a.current=0,s.current=i.current=l.current=o.current=null},$.isPending=function(){return!!o.current},$.flush=function(){return o.current?_(Date.now()):c.current},$},[m,v,t,w,g,h,p,y]);return b}function AVt(e,t){return e===t}function DVt(e,t,n){var r=AVt,i=d.useRef(e),a=d.useState({})[1],o=NVt(d.useCallback(function(l){i.current=l,a({})},[a]),t,n),s=d.useRef(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}const FVt=({uid:e,content:t,status:n,type:r})=>x.jsx("div",{className:"rate-bubble",children:x.jsx(fu,{children:x.jsxs(Xs,{fluid:!0,children:[x.jsx(np,{children:r===pv?"邀请评价":"主动评价"}),x.jsx(tp,{}),x.jsx(hwe,{children:x.jsx(qs,{color:"primary",disabled:!0,children:n===Ese?"已评价":"待评价"})})]})})});function La(){return La=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Qm(e){var t=d.useRef({fn:e,curr:void 0}).current;if(t.fn=e,!t.curr){var n=Object.create(null);Object.keys(e).forEach(function(r){n[r]=function(){var i;return(i=t.fn[r]).call.apply(i,[t.fn].concat([].slice.call(arguments)))}}),t.curr=n}return t.curr}function f5(e){return d.useReducer(function(t,n){return La({},t,typeof n=="function"?n(t):n)},e)}var u4e=d.createContext(void 0),Zd=typeof window<"u"&&"ontouchstart"in window,BA=function(e,t,n){return Math.max(Math.min(e,n),t)},oC=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=0),BA(e,1*(1-n),Math.max(6,t)*(1+n))},zA=typeof window>"u"||/ServerSideRendering/.test(navigator&&navigator.userAgent)?d.useEffect:d.useLayoutEffect;function Q1(e,t,n){var r=d.useRef(t);r.current=t,d.useEffect(function(){function i(a){r.current(a)}return e&&window.addEventListener(e,i,n),function(){e&&window.removeEventListener(e,i)}},[e])}var LVt=["container"];function BVt(e){var t=e.container,n=t===void 0?document.body:t,r=i7(e,LVt);return Va.createPortal(te.createElement("div",La({},r)),n)}function zVt(e){return te.createElement("svg",La({width:"44",height:"44",viewBox:"0 0 768 768"},e),te.createElement("path",{d:"M607.5 205.5l-178.5 178.5 178.5 178.5-45 45-178.5-178.5-178.5 178.5-45-45 178.5-178.5-178.5-178.5 45-45 178.5 178.5 178.5-178.5z"}))}function HVt(e){return te.createElement("svg",La({width:"44",height:"44",viewBox:"0 0 768 768"},e),te.createElement("path",{d:"M640.5 352.5v63h-390l178.5 180-45 45-256.5-256.5 256.5-256.5 45 45-178.5 180h390z"}))}function UVt(e){return te.createElement("svg",La({width:"44",height:"44",viewBox:"0 0 768 768"},e),te.createElement("path",{d:"M384 127.5l256.5 256.5-256.5 256.5-45-45 178.5-180h-390v-63h390l-178.5-180z"}))}function WVt(){return d.useEffect(function(){var e=document.body.style,t=e.overflow;return e.overflow="hidden",function(){e.overflow=t}},[]),null}function yre(e){var t=e.touches[0],n=t.clientX,r=t.clientY;if(e.touches.length>=2){var i=e.touches[1],a=i.clientX,o=i.clientY;return[(n+a)/2,(r+o)/2,Math.sqrt(Math.pow(a-n,2)+Math.pow(o-r,2))]}return[n,r,0]}var _p=function(e,t,n,r){var i,a=n*t,o=(a-r)/2,s=e;return a<=r?(i=1,s=0):e>0&&o-e<=0?(i=2,s=o):e<0&&o+e<=0&&(i=3,s=-o),[i,s]};function MP(e,t,n,r,i,a,o,s,l,c){o===void 0&&(o=innerWidth/2),s===void 0&&(s=innerHeight/2),l===void 0&&(l=0),c===void 0&&(c=0);var u=_p(e,a,n,innerWidth)[0],f=_p(t,a,r,innerHeight),p=innerWidth/2,h=innerHeight/2;return{x:o-a/i*(o-(p+e))-p+(r/n>=3&&n*a===innerWidth?0:u?l/2:l),y:s-a/i*(s-(h+t))-h+(f[0]?c/2:c),lastCX:o,lastCY:s}}function HA(e,t,n){var r=e%180!=0;return r?[n,t,r]:[t,n,r]}function TP(e,t,n){var r=HA(n,innerWidth,innerHeight),i=r[0],a=r[1],o=0,s=i,l=a,c=e/t*a,u=t/e*i;return e=a?s=c:e>=i&&ti/a?l=u:t/e>=3&&!r[2]?o=((l=u)-a)/2:s=c,{width:s,height:l,x:0,y:o,pause:!0}}function sC(e,t){var n=t.leading,r=n!==void 0&&n,i=t.maxWait,a=t.wait,o=a===void 0?i||0:a,s=d.useRef(e);s.current=e;var l=d.useRef(0),c=d.useRef(),u=function(){return c.current&&clearTimeout(c.current)},f=d.useCallback(function(){var p=[].slice.call(arguments),h=Date.now();function m(){l.current=h,u(),s.current.apply(null,p)}var g=l.current,v=h-g;if(g===0&&(r&&m(),l.current=h),i!==void 0){if(v>i)return void m()}else v=1&&a&&a())};u()}function u(){l=requestAnimationFrame(c)}}var qVt={T:0,L:0,W:0,H:0,FIT:void 0},d4e=function(){var e=d.useRef(!1);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e},KVt=["className"];function GVt(e){var t=e.className,n=t===void 0?"":t,r=i7(e,KVt);return te.createElement("div",La({className:"PhotoView__Spinner "+n},r),te.createElement("svg",{viewBox:"0 0 32 32",width:"36",height:"36",fill:"white"},te.createElement("path",{opacity:".25",d:"M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"}),te.createElement("path",{d:"M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"})))}var YVt=["src","loaded","broken","className","onPhotoLoad","loadingElement","brokenElement"];function XVt(e){var t=e.src,n=e.loaded,r=e.broken,i=e.className,a=e.onPhotoLoad,o=e.loadingElement,s=e.brokenElement,l=i7(e,YVt),c=d4e();return t&&!r?te.createElement(te.Fragment,null,te.createElement("img",La({className:"PhotoView__Photo"+(i?" "+i:""),src:t,onLoad:function(u){var f=u.target;c.current&&a({loaded:!0,naturalWidth:f.naturalWidth,naturalHeight:f.naturalHeight})},onError:function(){c.current&&a({broken:!0})},alt:""},l)),!n&&(te.createElement("span",{className:"PhotoView__icon"},o)||te.createElement(GVt,{className:"PhotoView__icon"}))):s?te.createElement("span",{className:"PhotoView__icon"},typeof s=="function"?s({src:t}):s):null}var ZVt={naturalWidth:void 0,naturalHeight:void 0,width:void 0,height:void 0,loaded:void 0,broken:!1,x:0,y:0,touched:!1,maskTouched:!1,rotate:0,scale:1,CX:0,CY:0,lastX:0,lastY:0,lastCX:0,lastCY:0,lastScale:1,touchTime:0,touchLength:0,pause:!0,stopRaf:!0,reach:void 0};function QVt(e){var t=e.item,n=t.src,r=t.render,i=t.width,a=i===void 0?0:i,o=t.height,s=o===void 0?0:o,l=t.originRef,c=e.visible,u=e.speed,f=e.easing,p=e.wrapClassName,h=e.className,m=e.style,g=e.loadingElement,v=e.brokenElement,y=e.onPhotoTap,w=e.onMaskTap,b=e.onReachMove,C=e.onReachUp,k=e.onPhotoResize,S=e.isActive,_=e.expose,E=f5(ZVt),$=E[0],M=E[1],P=d.useRef(0),R=d4e(),O=$.naturalWidth,j=O===void 0?a:O,I=$.naturalHeight,A=I===void 0?s:I,N=$.width,F=N===void 0?a:N,K=$.height,L=K===void 0?s:K,V=$.loaded,B=V===void 0?!n:V,U=$.broken,Y=$.x,ee=$.y,ie=$.touched,Z=$.stopRaf,X=$.maskTouched,ae=$.rotate,oe=$.scale,le=$.CX,ce=$.CY,pe=$.lastX,me=$.lastY,re=$.lastCX,fe=$.lastCY,ve=$.lastScale,$e=$.touchTime,Ce=$.touchLength,be=$.pause,Se=$.reach,we=Qm({onScale:function(Ze){return se(oC(Ze))},onRotate:function(Ze){ae!==Ze&&(_({rotate:Ze}),M(La({rotate:Ze},TP(j,A,Ze))))}});function se(Ze,nt,jt){oe!==Ze&&(_({scale:Ze}),M(La({scale:Ze},MP(Y,ee,F,L,oe,Ze,nt,jt),Ze<=1&&{x:0,y:0})))}var ye=sC(function(Ze,nt,jt){if(jt===void 0&&(jt=0),(ie||X)&&S){var Lt=HA(ae,F,L),Bt=Lt[0],Ut=Lt[1];if(jt===0&&P.current===0){var Ne=Math.abs(Ze-le)<=20,He=Math.abs(nt-ce)<=20;if(Ne&&He)return void M({lastCX:Ze,lastCY:nt});P.current=Ne?nt>ce?3:2:1}var Le,Qe=Ze-re,pt=nt-fe;if(jt===0){var xt=_p(Qe+pe,oe,Bt,innerWidth)[0],Nt=_p(pt+me,oe,Ut,innerHeight);Le=function(Pt,st,Ct,kt){return st&&Pt===1||kt==="x"?"x":Ct&&Pt>1||kt==="y"?"y":void 0}(P.current,xt,Nt[0],Se),Le!==void 0&&b(Le,Ze,nt,oe)}if(Le==="x"||X)return void M({reach:"x"});var Ot=oC(oe+(jt-Ce)/100/2*oe,j/F,.2);_({scale:Ot}),M(La({touchLength:jt,reach:Le,scale:Ot},MP(Y,ee,F,L,oe,Ot,Ze,nt,Qe,pt)))}},{maxWait:8});function Oe(Ze){return!Z&&!ie&&(R.current&&M(La({},Ze,{pause:c})),R.current)}var z,H,G,de,xe,he,Ue,We,ge=(xe=function(Ze){return Oe({x:Ze})},he=function(Ze){return Oe({y:Ze})},Ue=function(Ze){return R.current&&(_({scale:Ze}),M({scale:Ze})),!ie&&R.current},We=Qm({X:function(Ze){return xe(Ze)},Y:function(Ze){return he(Ze)},S:function(Ze){return Ue(Ze)}}),function(Ze,nt,jt,Lt,Bt,Ut,Ne,He,Le,Qe,pt){var xt=HA(Qe,Bt,Ut),Nt=xt[0],Ot=xt[1],Pt=_p(Ze,He,Nt,innerWidth),st=Pt[0],Ct=Pt[1],kt=_p(nt,He,Ot,innerHeight),qt=kt[0],vt=kt[1],At=Date.now()-pt;if(At>=200||He!==Ne||Math.abs(Le-Ne)>1){var dt=MP(Ze,nt,Bt,Ut,Ne,He),De=dt.x,Ye=dt.y,ot=st?Ct:De!==Ze?De:null,Re=qt?vt:Ye!==nt?Ye:null;return ot!==null&&pm(Ze,ot,We.X),Re!==null&&pm(nt,Re,We.Y),void(He!==Ne&&pm(Ne,He,We.S))}var It=(Ze-jt)/At,rt=(nt-Lt)/At,$t=Math.sqrt(Math.pow(It,2)+Math.pow(rt,2)),Mt=!1,dn=!1;(function(pn,T){var D,J=pn,ke=0,Ie=0,it=function(On){D||(D=On);var Er=On-D,Mr=Math.sign(pn),mr=-.001*Mr,pr=Math.sign(-J)*Math.pow(J,2)*2e-4,cn=J*Er+(mr+pr)*Math.pow(Er,2)/2;ke+=cn,D=On,Mr*(J+=(mr+pr)*Er)<=0?rn():T(ke)?Ft():rn()};function Ft(){Ie=requestAnimationFrame(it)}function rn(){cancelAnimationFrame(Ie)}Ft()})($t,function(pn){var T=Ze+pn*(It/$t),D=nt+pn*(rt/$t),J=_p(T,Ne,Nt,innerWidth),ke=J[0],Ie=J[1],it=_p(D,Ne,Ot,innerHeight),Ft=it[0],rn=it[1];if(ke&&!Mt&&(Mt=!0,st?pm(T,Ie,We.X):bre(Ie,T+(T-Ie),We.X)),Ft&&!dn&&(dn=!0,qt?pm(D,rn,We.Y):bre(rn,D+(D-rn),We.Y)),Mt&&dn)return!1;var On=Mt||We.X(Ie),Er=dn||We.Y(rn);return On&&Er})}),ze=(z=y,H=function(Ze,nt){Se||se(oe!==1?1:Math.max(2,j/F),Ze,nt)},G=d.useRef(0),de=sC(function(){G.current=0,z.apply(void 0,[].slice.call(arguments))},{wait:300}),function(){var Ze=[].slice.call(arguments);G.current+=1,de.apply(void 0,Ze),G.current>=2&&(de.cancel(),G.current=0,H.apply(void 0,Ze))});function Ve(Ze,nt){if(P.current=0,(ie||X)&&S){M({touched:!1,maskTouched:!1,pause:!1,stopRaf:!1,reach:void 0});var jt=oC(oe,j/F);if(ge(Y,ee,pe,me,F,L,oe,jt,ve,ae,$e),C(Ze,nt),le===Ze&&ce===nt){if(ie)return void ze(Ze,nt);X&&w(Ze,nt)}}}function Be(Ze,nt,jt){jt===void 0&&(jt=0),M({touched:!0,CX:Ze,CY:nt,lastCX:Ze,lastCY:nt,lastX:Y,lastY:ee,lastScale:oe,touchLength:jt,touchTime:Date.now()})}function Xe(Ze){M({maskTouched:!0,CX:Ze.clientX,CY:Ze.clientY,lastX:Y,lastY:ee})}Q1(Zd?void 0:"mousemove",function(Ze){Ze.preventDefault(),ye(Ze.clientX,Ze.clientY)}),Q1(Zd?void 0:"mouseup",function(Ze){Ve(Ze.clientX,Ze.clientY)}),Q1(Zd?"touchmove":void 0,function(Ze){Ze.preventDefault();var nt=yre(Ze);ye.apply(void 0,nt)},{passive:!1}),Q1(Zd?"touchend":void 0,function(Ze){var nt=Ze.changedTouches[0];Ve(nt.clientX,nt.clientY)},{passive:!1}),Q1("resize",sC(function(){B&&!ie&&(M(TP(j,A,ae)),k())},{maxWait:8})),zA(function(){S&&_(La({scale:oe,rotate:ae},we))},[S]);var Ke=function(Ze,nt,jt,Lt,Bt,Ut,Ne,He,Le,Qe){var pt=function(De,Ye,ot,Re,It){var rt=d.useRef(!1),$t=f5({lead:!0,scale:ot}),Mt=$t[0],dn=Mt.lead,pn=Mt.scale,T=$t[1],D=sC(function(J){try{return It(!0),T({lead:!1,scale:J}),Promise.resolve()}catch(ke){return Promise.reject(ke)}},{wait:Re});return zA(function(){rt.current?(It(!1),T({lead:!0}),D(ot)):rt.current=!0},[ot]),dn?[De*pn,Ye*pn,ot/pn]:[De*ot,Ye*ot,1]}(Ut,Ne,He,Le,Qe),xt=pt[0],Nt=pt[1],Ot=pt[2],Pt=function(De,Ye,ot,Re,It){var rt=d.useState(qVt),$t=rt[0],Mt=rt[1],dn=d.useState(0),pn=dn[0],T=dn[1],D=d.useRef(),J=Qm({OK:function(){return De&&T(4)}});function ke(Ie){It(!1),T(Ie)}return d.useEffect(function(){if(D.current||(D.current=Date.now()),ot){if(function(Ie,it){var Ft=Ie&&Ie.current;if(Ft&&Ft.nodeType===1){var rn=Ft.getBoundingClientRect();it({T:rn.top,L:rn.left,W:rn.width,H:rn.height,FIT:Ft.tagName==="IMG"?getComputedStyle(Ft).objectFit:void 0})}}(Ye,Mt),De)return Date.now()-D.current<250?(T(1),requestAnimationFrame(function(){T(2),requestAnimationFrame(function(){return ke(3)})}),void setTimeout(J.OK,Re)):void T(4);ke(5)}},[De,ot]),[pn,$t]}(Ze,nt,jt,Le,Qe),st=Pt[0],Ct=Pt[1],kt=Ct.W,qt=Ct.FIT,vt=innerWidth/2,At=innerHeight/2,dt=st<3||st>4;return[dt?kt?Ct.L:vt:Lt+(vt-Ut*He/2),dt?kt?Ct.T:At:Bt+(At-Ne*He/2),xt,dt&&qt?xt*(Ct.H/kt):Nt,st===0?Ot:dt?kt/(Ut*He)||.01:Ot,dt?qt?1:0:1,st,qt]}(c,l,B,Y,ee,F,L,oe,u,function(Ze){return M({pause:Ze})}),qe=Ke[4],Et=Ke[6],ut="transform "+u+"ms "+f,gt={className:h,onMouseDown:Zd?void 0:function(Ze){Ze.stopPropagation(),Ze.button===0&&Be(Ze.clientX,Ze.clientY,0)},onTouchStart:Zd?function(Ze){Ze.stopPropagation(),Be.apply(void 0,yre(Ze))}:void 0,onWheel:function(Ze){if(!Se){var nt=oC(oe-Ze.deltaY/100/2,j/F);M({stopRaf:!0}),se(nt,Ze.clientX,Ze.clientY)}},style:{width:Ke[2]+"px",height:Ke[3]+"px",opacity:Ke[5],objectFit:Et===4?void 0:Ke[7],transform:ae?"rotate("+ae+"deg)":void 0,transition:Et>2?ut+", opacity "+u+"ms ease, height "+(Et<4?u/2:Et>4?u:0)+"ms "+f:void 0}};return te.createElement("div",{className:"PhotoView__PhotoWrap"+(p?" "+p:""),style:m,onMouseDown:!Zd&&S?Xe:void 0,onTouchStart:Zd&&S?function(Ze){return Xe(Ze.touches[0])}:void 0},te.createElement("div",{className:"PhotoView__PhotoBox",style:{transform:"matrix("+qe+", 0, 0, "+qe+", "+Ke[0]+", "+Ke[1]+")",transition:ie||be?void 0:ut,willChange:S?"transform":void 0}},n?te.createElement(XVt,La({src:n,loaded:B,broken:U},gt,{onPhotoLoad:function(Ze){M(La({},Ze,Ze.loaded&&TP(Ze.naturalWidth||0,Ze.naturalHeight||0,ae)))},loadingElement:g,brokenElement:v})):r&&r({attrs:gt,scale:qe,rotate:ae})))}var wre={x:0,touched:!1,pause:!1,lastCX:void 0,lastCY:void 0,bg:void 0,lastBg:void 0,overlay:!0,minimal:!0,scale:1,rotate:0};function JVt(e){var t=e.loop,n=t===void 0?3:t,r=e.speed,i=e.easing,a=e.photoClosable,o=e.maskClosable,s=o===void 0||o,l=e.maskOpacity,c=l===void 0?1:l,u=e.pullClosable,f=u===void 0||u,p=e.bannerVisible,h=p===void 0||p,m=e.overlayRender,g=e.toolbarRender,v=e.className,y=e.maskClassName,w=e.photoClassName,b=e.photoWrapClassName,C=e.loadingElement,k=e.brokenElement,S=e.images,_=e.index,E=_===void 0?0:_,$=e.onIndexChange,M=e.visible,P=e.onClose,R=e.afterClose,O=e.portalContainer,j=f5(wre),I=j[0],A=j[1],N=d.useState(0),F=N[0],K=N[1],L=I.x,V=I.touched,B=I.pause,U=I.lastCX,Y=I.lastCY,ee=I.bg,ie=ee===void 0?c:ee,Z=I.lastBg,X=I.overlay,ae=I.minimal,oe=I.scale,le=I.rotate,ce=I.onScale,pe=I.onRotate,me=e.hasOwnProperty("index"),re=me?E:F,fe=me?$:K,ve=d.useRef(re),$e=S.length,Ce=S[re],be=typeof n=="boolean"?n:$e>n,Se=function(qe,Et){var ut=d.useReducer(function(jt){return!jt},!1)[1],gt=d.useRef(0),Ze=function(jt,Lt){var Bt=d.useRef(jt);function Ut(Ne){Bt.current=Ne}return d.useMemo(function(){(function(Ne){qe?(Ne(qe),gt.current=1):gt.current=2})(Ut)},[jt]),[Bt.current,Ut]}(qe),nt=Ze[1];return[Ze[0],gt.current,function(){ut(),gt.current===2&&(nt(!1),Et&&Et()),gt.current=0}]}(M,R),we=Se[0],se=Se[1],ye=Se[2];zA(function(){if(we)return A({pause:!0,x:re*-(innerWidth+20)}),void(ve.current=re);A(wre)},[we]);var Oe=Qm({close:function(qe){pe&&pe(0),A({overlay:!0,lastBg:ie}),P(qe)},changeIndex:function(qe,Et){Et===void 0&&(Et=!1);var ut=be?ve.current+(qe-re):qe,gt=$e-1,Ze=BA(ut,0,gt),nt=be?ut:Ze,jt=innerWidth+20;A({touched:!1,lastCX:void 0,lastCY:void 0,x:-jt*nt,pause:Et}),ve.current=nt,fe&&fe(be?qe<0?gt:qe>gt?0:qe:Ze)}}),z=Oe.close,H=Oe.changeIndex;function G(qe){return qe?z():A({overlay:!X})}function de(){A({x:-(innerWidth+20)*re,lastCX:void 0,lastCY:void 0,pause:!0}),ve.current=re}function xe(qe,Et,ut,gt){qe==="x"?function(Ze){if(U!==void 0){var nt=Ze-U,jt=nt;!be&&(re===0&&nt>0||re===$e-1&&nt<0)&&(jt=nt/2),A({touched:!0,lastCX:U,x:-(innerWidth+20)*ve.current+jt,pause:!1})}else A({touched:!0,lastCX:Ze,x:L,pause:!1})}(Et):qe==="y"&&function(Ze,nt){if(Y!==void 0){var jt=c===null?null:BA(c,.01,c-Math.abs(Ze-Y)/100/4);A({touched:!0,lastCY:Y,bg:nt===1?jt:c,minimal:nt===1})}else A({touched:!0,lastCY:Ze,bg:ie,minimal:!0})}(ut,gt)}function he(qe,Et){var ut=qe-(U??qe),gt=Et-(Y??Et),Ze=!1;if(ut<-40)H(re+1);else if(ut>40)H(re-1);else{var nt=-(innerWidth+20)*ve.current;Math.abs(gt)>100&&ae&&f&&(Ze=!0,z()),A({touched:!1,x:nt,lastCX:void 0,lastCY:void 0,bg:c,overlay:!!Ze||X})}}Q1("keydown",function(qe){if(M)switch(qe.key){case"ArrowLeft":H(re-1,!0);break;case"ArrowRight":H(re+1,!0);break;case"Escape":z()}});var Ue=function(qe,Et,ut){return d.useMemo(function(){var gt=qe.length;return ut?qe.concat(qe).concat(qe).slice(gt+Et-1,gt+Et+2):qe.slice(Math.max(Et-1,0),Math.min(Et+2,gt+1))},[qe,Et,ut])}(S,re,be);if(!we)return null;var We=X&&!se,ge=M?ie:Z,ze=ce&&pe&&{images:S,index:re,visible:M,onClose:z,onIndexChange:H,overlayVisible:We,overlay:Ce&&Ce.overlay,scale:oe,rotate:le,onScale:ce,onRotate:pe},Ve=r?r(se):400,Be=i?i(se):"cubic-bezier(0.25, 0.8, 0.25, 1)",Xe=r?r(3):600,Ke=i?i(3):"cubic-bezier(0.25, 0.8, 0.25, 1)";return te.createElement(BVt,{className:"PhotoView-Portal"+(We?"":" PhotoView-Slider__clean")+(M?"":" PhotoView-Slider__willClose")+(v?" "+v:""),role:"dialog",onClick:function(qe){return qe.stopPropagation()},container:O},M&&te.createElement(WVt,null),te.createElement("div",{className:"PhotoView-Slider__Backdrop"+(y?" "+y:"")+(se===1?" PhotoView-Slider__fadeIn":se===2?" PhotoView-Slider__fadeOut":""),style:{background:ge?"rgba(0, 0, 0, "+ge+")":void 0,transitionTimingFunction:Be,transitionDuration:(V?0:Ve)+"ms",animationDuration:Ve+"ms"},onAnimationEnd:ye}),h&&te.createElement("div",{className:"PhotoView-Slider__BannerWrap"},te.createElement("div",{className:"PhotoView-Slider__Counter"},re+1," / ",$e),te.createElement("div",{className:"PhotoView-Slider__BannerRight"},g&&ze&&g(ze),te.createElement(zVt,{className:"PhotoView-Slider__toolbarIcon",onClick:z}))),Ue.map(function(qe,Et){var ut=be||re!==0?ve.current-1+Et:re+Et;return te.createElement(QVt,{key:be?qe.key+"/"+qe.src+"/"+ut:qe.key,item:qe,speed:Ve,easing:Be,visible:M,onReachMove:xe,onReachUp:he,onPhotoTap:function(){return G(a)},onMaskTap:function(){return G(s)},wrapClassName:b,className:w,style:{left:(innerWidth+20)*ut+"px",transform:"translate3d("+L+"px, 0px, 0)",transition:V||B?void 0:"transform "+Xe+"ms "+Ke},loadingElement:C,brokenElement:k,onPhotoResize:de,isActive:ve.current===ut,expose:A})}),!Zd&&h&&te.createElement(te.Fragment,null,(be||re!==0)&&te.createElement("div",{className:"PhotoView-Slider__ArrowLeft",onClick:function(){return H(re-1,!0)}},te.createElement(HVt,null)),(be||re+1<$e)&&te.createElement("div",{className:"PhotoView-Slider__ArrowRight",onClick:function(){return H(re+1,!0)}},te.createElement(UVt,null))),m&&ze&&te.createElement("div",{className:"PhotoView-Slider__Overlay"},m(ze)))}var eqt=["children","onIndexChange","onVisibleChange"],tqt={images:[],visible:!1,index:0};function nqt(e){var t=e.children,n=e.onIndexChange,r=e.onVisibleChange,i=i7(e,eqt),a=f5(tqt),o=a[0],s=a[1],l=d.useRef(0),c=o.images,u=o.visible,f=o.index,p=Qm({nextId:function(){return l.current+=1},update:function(g){var v=c.findIndex(function(w){return w.key===g.key});if(v>-1){var y=c.slice();return y.splice(v,1,g),void s({images:y})}s(function(w){return{images:w.images.concat(g)}})},remove:function(g){s(function(v){var y=v.images.filter(function(w){return w.key!==g});return{images:y,index:Math.min(y.length-1,f)}})},show:function(g){var v=c.findIndex(function(y){return y.key===g});s({visible:!0,index:v}),r&&r(!0,v,o)}}),h=Qm({close:function(){s({visible:!1}),r&&r(!1,f,o)},changeIndex:function(g){s({index:g}),n&&n(g,o)}}),m=d.useMemo(function(){return La({},o,p)},[o,p]);return te.createElement(u4e.Provider,{value:m},t,te.createElement(JVt,La({images:c,visible:u,index:f,onIndexChange:h.changeIndex,onClose:h.close},i)))}var f4e=function(e){var t,n,r=e.src,i=e.render,a=e.overlay,o=e.width,s=e.height,l=e.triggers,c=l===void 0?["onClick"]:l,u=e.children,f=d.useContext(u4e),p=(t=function(){return f.nextId()},(n=d.useRef({sign:!1,fn:void 0}).current).sign||(n.sign=!0,n.fn=t()),n.fn),h=d.useRef(null);d.useImperativeHandle(u==null?void 0:u.ref,function(){return h.current}),d.useEffect(function(){return function(){f.remove(p)}},[]);var m=Qm({render:function(v){return i&&i(v)},show:function(v,y){f.show(p),function(w,b){if(u){var C=u.props[w];C&&C(b)}}(v,y)}}),g=d.useMemo(function(){var v={};return c.forEach(function(y){v[y]=m.show.bind(null,y)}),v},[]);return d.useEffect(function(){f.update({key:p,src:r,originRef:h,render:m.render,overlay:a,width:o,height:s})},[r]),u?d.Children.only(d.cloneElement(u,La({},g,{ref:h}))):null};const rqt=({content:e,status:t})=>{const[n,r]=d.useState(""),[i,a]=d.useState(""),[o,s]=d.useState(!1),l=Rn();d.useEffect(()=>{if(t===X6e){s(!0);let f=null;try{f=JSON.parse(e)}catch{}f&&(r(f.contact),a(f.content))}},[t]);const c=f=>{console.log("handleContactChange:",f),r(f)},u=f=>{console.log("handleContentChange:",f),a(f)};return x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:l.formatMessage({id:"leavemsg.title",defaultMessage:"留言"})}),x.jsxs(tp,{children:[o&&x.jsx(gA,{value:n,placeholder:l.formatMessage({id:"leavemsg.contact.placeholder",defaultMessage:"请输入联系方式..."}),rows:1,onChange:c,style:{marginTop:"8px"},disabled:!0}),o&&x.jsx(gA,{value:i,placeholder:l.formatMessage({id:"leavemsg.content.placeholder",defaultMessage:"请输入留言..."}),rows:3,onChange:u,style:{marginTop:"8px"},disabled:!0})]}),x.jsx(hwe,{children:x.jsx(qs,{color:"primary",disabled:!0,children:o?l.formatMessage({id:"leavemsg.status.submitted",defaultMessage:"访客已留言"}):l.formatMessage({id:"leavemsg.status.pending",defaultMessage:"待留言"})})})]})})},iqt=({uid:e,content:t})=>(console.log("RobotQa",e,t),x.jsx(x.Fragment,{children:x.jsxs(fu,{children:[x.jsx(Xs,{fluid:!0,children:x.jsx(HH,{children:t})}),x.jsx(xwe,{onClick:console.log})]})})),aqt=te.forwardRef((e,t)=>{const{uid:n,content:r}=e,[i,a]=d.useState();return d.useEffect(()=>{let o=null;try{o=JSON.parse(r)}catch{}o&&a(o)},[r]),x.jsx("div",{ref:t,children:x.jsx(Xs,{children:x.jsxs(HH,{children:[(i==null?void 0:i.type)===vo&&x.jsx(x.Fragment,{children:i==null?void 0:i.content}),(i==null?void 0:i.type)===Cl&&x.jsx(f4e,{src:i==null?void 0:i.content,children:x.jsx("img",{src:i==null?void 0:i.content,alt:""})})]})})})}),oqt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"转接会话"}),x.jsx(tp,{children:r})]})})};async function sqt(e){return bn("/api/v1/thread/invite/create",{method:"POST",data:{...e}})}async function p4e(e){return bn("/api/v1/thread/invite/accept",{method:"POST",data:{...e}})}async function h4e(e){return bn("/api/v1/thread/invite/reject",{method:"POST",data:{...e}})}async function lqt(e){return bn("/api/v1/thread/invite/exit",{method:"POST",data:{...e}})}async function cqt(e){return bn("/api/v1/thread/transfer/create",{method:"POST",data:{...e}})}async function m4e(e){return bn("/api/v1/thread/transfer/accept",{method:"POST",data:{...e}})}async function g4e(e){return bn("/api/v1/thread/transfer/reject",{method:"POST",data:{...e}})}const uqt=({content:e})=>{const[t,n]=d.useState({}),[r,i]=d.useState({}),[a,o]=d.useState(null),[s,l]=d.useState(null),[c,u]=d.useState(null),[f,p]=d.useState(null),h=fr(k=>k.addThread),{updateMessageTransferStatus:m,updateMessageInviteStatus:g}=Td(),{translateString:v}=Zr();d.useEffect(()=>{var k,S,_,E,$,M,P,R,O,j;try{const I=JSON.parse(e);if(n(I),I.extra)try{const A=JSON.parse(I.extra);if(i(A),I.type===Ld&&I.extra)try{const N=JSON.parse(I.extra);o(N);const F={uid:(k=a==null?void 0:a.thread)==null?void 0:k.uid,topic:(S=a==null?void 0:a.thread)==null?void 0:S.topic,type:(_=a==null?void 0:a.thread)==null?void 0:_.type,state:(E=a==null?void 0:a.thread)==null?void 0:E.state,user:($=a==null?void 0:a.thread)==null?void 0:$.user};l(F)}catch(N){console.error("Failed to parse transfer extra:",N)}if(I.type===Bd&&I.extra)try{const N=JSON.parse(I.extra);u(N);const F={uid:(M=c==null?void 0:c.thread)==null?void 0:M.uid,topic:(P=c==null?void 0:c.thread)==null?void 0:P.topic,type:(R=c==null?void 0:c.thread)==null?void 0:R.type,state:(O=c==null?void 0:c.thread)==null?void 0:O.state,user:(j=c==null?void 0:c.thread)==null?void 0:j.user};p(F)}catch(N){console.error("Failed to parse invite extra:",N)}}catch(A){console.error("Failed to parse extra data:",A)}}catch(I){console.error("Failed to parse content:",I)}},[e]);const y=async()=>{var _;console.log("接受操作",t);let k="",S="";t.type===Ld?(k=v("i18n.confirm_accept_transfer"),S=v("i18n.confirm_accept_transfer_desc"),a!=null&&a.sender&&(S+=` ${a.sender.nickname} → ${(_=a.receiver)==null?void 0:_.nickname}`)):t.type===Bd&&(k=v("i18n.confirm_accept_invite"),S=v("i18n.confirm_accept_invite_desc"),c!=null&&c.sender&&(S+=` ${c.sender.nickname}`)),yr.confirm({title:k,content:S,onOk:async()=>{if(t.type===Ld){if(a){console.log("Transfer Content:",a),[a.sender,a.receiver]=[a.receiver,a.sender],a.status=p0;const E=await m4e(a);console.log("acceptThread response:",E),E.data.code===200?(je.success("同意转接会话成功"),Yve(JSON.stringify(a),s),h(s),m(a.messageUid,p0)):je.error(v(E.data.message))}}else if(t.type===Bd&&c){console.log("Invite Content:",c),[c.sender,c.receiver]=[c.receiver,c.sender],c.status=LV;const E=await p4e(c);console.log("acceptThreadInvite response:",E),E.data.code===200?(je.success("同意邀请会话成功"),Zve(JSON.stringify(c),f),h(f),g(c.messageUid,LV)):je.error(v(E.data.message))}},okText:v("i18n.confirm"),cancelText:v("i18n.cancel")})},w=async()=>{console.log("拒绝操作",t);let k="",S="";t.type===Ld?(k=v("i18n.confirm_reject_transfer"),S=v("i18n.confirm_reject_transfer_desc"),a!=null&&a.sender&&(S+=` ${a.sender.nickname}`)):t.type===Bd&&(k=v("i18n.confirm_reject_invite"),S=v("i18n.confirm_reject_invite_desc"),c!=null&&c.sender&&(S+=` ${c.sender.nickname}`)),yr.confirm({title:k,content:S,onOk:async()=>{if(t.type===Ld){if(a){console.log("Transfer Content:",a),[a.sender,a.receiver]=[a.receiver,a.sender],a.status=h0;const _=await g4e(a);console.log("transferThreadReject response:",_),_.data.code===200?(je.success("拒绝转接会话成功"),Xve(JSON.stringify(a),s),m(a.messageUid,h0)):je.error(v(_.data.message))}}else if(t.type===Bd&&c){console.log("Invite Content:",c),[c.sender,c.receiver]=[c.receiver,c.sender],c.status=BV;const _=await h4e(c);console.log("rejectThreadInvite response:",_),_.data.code===200?(je.success("拒绝邀请会话成功"),Qve(JSON.stringify(c),f),g(c.messageUid,BV)):je.error(v(_.data.message))}},okText:v("i18n.confirm"),cancelText:v("i18n.cancel")})},b=()=>t.type===Ld||t.type===Bd?x.jsxs(Xr,{style:{marginTop:10},children:[x.jsx(qs,{onClick:()=>y(),color:"primary",className:"bg-green-500 hover:bg-green-600 text-white",size:"sm",children:v("i18n.accept")}),x.jsx(qs,{onClick:()=>w(),className:"bg-red-500 hover:bg-red-600 text-white",size:"sm",children:v("i18n.reject")})]}):null,C=()=>{var k,S,_,E,$,M,P,R;return t.type===c5e?x.jsxs("div",{className:"space-y-2",children:[x.jsx("div",{className:"font-medium text-base",children:v("i18n.login_notification")}),x.jsxs("div",{className:"text-sm",children:[x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.login_time"),":"]})," ",new Date().toLocaleString()]}),r.loginIp&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.login_ip"),":"]})," ",r.loginIp]}),r.loginLocation&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.login_location"),":"]})," ",r.loginLocation]})]}),x.jsx("div",{className:"text-xs text-gray-500 mt-2",children:v("i18n.if_not_you_please_change_password")})]}):[Ld,WV,UV,VV,qV].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===Ld&&v("i18n.transfer_notification"),t.type===WV&&v("i18n.transfer_accepted"),t.type===UV&&v("i18n.transfer_rejected"),t.type===VV&&v("i18n.transfer_timeout"),t.type===qV&&v("i18n.transfer_cancelled")]}),x.jsx("div",{className:"text-sm",children:x.jsxs(x.Fragment,{children:[(a==null?void 0:a.sender)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.from"),":"]})," ",(k=a==null?void 0:a.sender)==null?void 0:k.nickname]}),(a==null?void 0:a.receiver)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.to"),":"]})," ",(S=a==null?void 0:a.receiver)==null?void 0:S.nickname]}),(a==null?void 0:a.thread)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.note"),":"]})," ",(E=(_=a==null?void 0:a.thread)==null?void 0:_.user)==null?void 0:E.nickname]}),(a==null?void 0:a.note)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.note"),":"]})," ",a==null?void 0:a.note]})]})}),t.type===Ld&&b()]}):[Bd,GV,KV,YV,XV].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===Bd&&v("i18n.invite_notification"),t.type===GV&&v("i18n.invite_accepted"),t.type===KV&&v("i18n.invite_rejected"),t.type===YV&&v("i18n.invite_timeout"),t.type===XV&&v("i18n.invite_cancelled")]}),x.jsx("div",{className:"text-sm",children:x.jsxs(x.Fragment,{children:[(c==null?void 0:c.sender)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.inviter"),":"]})," ",($=c==null?void 0:c.sender)==null?void 0:$.nickname]}),(c==null?void 0:c.receiver)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.invitee"),":"]})," ",(M=c==null?void 0:c.receiver)==null?void 0:M.nickname]}),(c==null?void 0:c.thread)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.note"),":"]})," ",((R=(P=c==null?void 0:c.thread)==null?void 0:P.user)==null?void 0:R.nickname)||v("i18n.untitled_conversation")]}),(c==null?void 0:c.note)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.note"),":"]})," ",c==null?void 0:c.note]})]})}),t.type===Bd&&b()]}):[ZV,JV,QV,eq,tq].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===ZV&&v("i18n.visitor_invite_notification"),t.type===JV&&v("i18n.visitor_invite_accepted"),t.type===QV&&v("i18n.visitor_invite_rejected"),t.type===eq&&v("i18n.visitor_invite_timeout"),t.type===tq&&v("i18n.visitor_invite_cancelled")]}),x.jsxs("div",{className:"text-sm",children:[r.visitorNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.visitor"),":"]})," ",r.visitorNickname]}),r.agentNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.agent"),":"]})," ",r.agentNickname]})]})]}):[nq,iq,rq,aq,oq].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===nq&&v("i18n.group_invite_notification"),t.type===iq&&v("i18n.group_invite_accepted"),t.type===rq&&v("i18n.group_invite_rejected"),t.type===aq&&v("i18n.group_invite_timeout"),t.type===oq&&v("i18n.group_invite_cancelled")]}),x.jsxs("div",{className:"text-sm",children:[r.groupName&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.group_name"),":"]})," ",r.groupName]}),r.inviterNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.inviter"),":"]})," ",r.inviterNickname]})]})]}):[sq,cq,lq,uq,dq].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===sq&&v("i18n.kbase_invite_notification"),t.type===cq&&v("i18n.kbase_invite_accepted"),t.type===lq&&v("i18n.kbase_invite_rejected"),t.type===uq&&v("i18n.kbase_invite_timeout"),t.type===dq&&v("i18n.kbase_invite_cancelled")]}),x.jsxs("div",{className:"text-sm",children:[r.kbaseName&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.kbase_name"),":"]})," ",r.kbaseName]}),r.inviterNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.inviter"),":"]})," ",r.inviterNickname]})]})]}):[fq,hq,pq,mq,gq].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===fq&&v("i18n.organization_invite_notification"),t.type===hq&&v("i18n.organization_invite_accepted"),t.type===pq&&v("i18n.organization_invite_rejected"),t.type===mq&&v("i18n.organization_invite_timeout"),t.type===gq&&v("i18n.organization_invite_cancelled")]}),x.jsxs("div",{className:"text-sm",children:[r.organizationName&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.organization_name"),":"]})," ",r.organizationName]}),r.inviterNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.inviter"),":"]})," ",r.inviterNickname]})]})]}):x.jsx("div",{children:(t==null?void 0:t.title)||v("i18n.system_notification")})};return x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:v("i18n.notice")}),x.jsx(tp,{children:C()})]})})},{Header:dqt}=Qn,fqt=({fromTicketTab:e=!1,chatThread:t,typing:n,previewContent:r,setIsTransferThreadModelOpen:i,setIsInviteThreadModelOpen:a,setIsTicketCreateModelOpen:o,showCloseThreadConfirm:s,setIsGroupInfoDrawerOpen:l,setIsMemberInfoDrawerOpen:c,setIsRobotInfoDrawerOpen:u})=>{const f=Rn(),{headerStyle:p}=co(),{isDarkMode:h}=d.useContext(Ea),m=ja(Y=>Y.currentTicket),g=ja(Y=>Y.setCurrentTicket),[v,y]=yr.useModal(),{agentInfo:w}=Eo.getState(),b=Na(Y=>Y.memberInfo),C=Vr(Y=>Y.currentOrg),{removeThreadWithUid:k,setCurrentThread:S}=fr(),[_,E]=d.useState(!1),$=()=>{var Y;if(!e)return t!=null&&t.user?(Y=t==null?void 0:t.user)==null?void 0:Y.avatar:""},M=()=>{var Y,ee,ie,Z,X;return e?m==null?void 0:m.title:t!=null&&t.user?(ee=(Y=t==null?void 0:t.user)==null?void 0:Y.nickname)!=null&&ee.startsWith(Iw)?f.formatMessage({id:(ie=t==null?void 0:t.user)==null?void 0:ie.nickname,defaultMessage:(Z=t==null?void 0:t.user)==null?void 0:Z.nickname}):((X=t==null?void 0:t.user)==null?void 0:X.nickname)||f.formatMessage({id:"chat.header.user.unnamed"}):""},P=()=>e?" 工单编号:#"+(m==null?void 0:m.uid)+","+jk(m==null?void 0:m.description,100):n?r||f.formatMessage({id:"i18n.typing"}):Ak(t)?"工单编号:#"+(m==null?void 0:m.uid)+","+jk(m==null?void 0:m.title,100):"会话编号:#"+(t==null?void 0:t.uid),R=async()=>{v.confirm({title:"认领工单",content:"确定认领该工单吗?",onOk:async()=>{je.loading("认领中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await aWt(Y);console.log("claimTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.claim.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message),g(void 0),Za.refreshTickets())}})},O=async()=>{v.confirm({title:"处理工单",content:"确定处理该工单吗?",onOk:async()=>{je.loading("处理中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await oWt(Y);console.log("query startProcessingTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.process.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}})},j=async()=>{v.confirm({title:"解决工单",content:"确定解决该工单吗?",onOk:async()=>{je.loading("解决中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await cWt(Y);console.log("query resolveTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.resolve.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}})},I=()=>{v.confirm({title:f.formatMessage({id:"ticket.verify.title"}),content:f.formatMessage({id:"ticket.verify.content"}),okText:f.formatMessage({id:"ticket.verify.pass"}),cancelText:f.formatMessage({id:"ticket.verify.reject"}),okButtonProps:{type:"primary"},cancelButtonProps:{danger:!0},onOk:async()=>{je.loading("验证中...",2);try{const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid,verified:!0},ee=await Qne(Y);console.log("query verifyTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.verify.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}catch{je.destroy(),je.error(f.formatMessage({id:"ticket.verify.error"}))}},onCancel:async()=>{je.loading("验证中...",2);try{const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid,verified:!1},ee=await Qne(Y);console.log("query verifyTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.verify.reject.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}catch{je.destroy(),je.error(f.formatMessage({id:"ticket.verify.error"}))}},footer:(Y,{OkBtn:ee,CancelBtn:ie})=>x.jsxs(x.Fragment,{children:[x.jsx(Yt,{onClick:()=>yr.destroyAll(),children:f.formatMessage({id:"ticket.verify.later"})}),x.jsx(ie,{}),x.jsx(ee,{})]})})},A=async()=>{v.confirm({title:"挂起工单",content:"确定挂起该工单吗?",onOk:async()=>{je.loading("挂起中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await lWt(Y);console.log("query holdTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.hold.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}})},N=async()=>{v.confirm({title:"恢复工单",content:"确定恢复该工单吗?",onOk:async()=>{je.loading("恢复中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await Zne(Y);console.log("query resumeTicket response",Y,ee.data),ee.data.code===200?(je.success(f.formatMessage({id:"ticket.action.resume.success"})),g(ee.data.data),Za.refreshTickets()):je.error(ee.data.message)}})},F=async()=>{v.confirm({title:"退回工单",content:"确定退回该工单吗?",onOk:async()=>{je.loading("退回中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await sWt(Y);console.log("query unclaimTicket response",Y,ee.data),ee.data.code===200?(je.success(f.formatMessage({id:"ticket.action.unclaim.success"})),g(ee.data.data),Za.refreshTickets()):(je.error(ee.data.message),g(void 0),Za.refreshTickets())}})},K=async()=>{v.confirm({title:"关闭工单",content:"确定关闭该工单吗?",onOk:async()=>{je.loading("关闭中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await uWt(Y);console.log("query closeTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.close.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}})},L=async()=>{v.confirm({title:"重新打开工单",content:"确定重新打开该工单吗?",onOk:async()=>{je.loading("重新打开中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await Zne(Y);console.log("query resumeTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.resume.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}})},V=()=>{v.confirm({title:"退出会话",content:"确定要退出当前会话吗?",onOk:async()=>{const Y={sender:{uid:w==null?void 0:w.uid},thread:{uid:t==null?void 0:t.uid}},ee=await lqt(Y);console.log("exitThreadInvite response",ee.data),ee.data.code===200?(je.success("退出会话成功"),k(t==null?void 0:t.uid),S(void 0)):je.error(ee.data.message)}})},B=()=>{if(!m)return null;const Y=[];switch(m.status){case cg:case Ose:case Rse:Y.push(x.jsx(Yt,{type:"primary",onClick:R,children:f.formatMessage({id:"ticket.action.claim"})},"claim"));break;case G3:case Z3:DK(m,b)&&Y.push(x.jsx(Yt,{type:"primary",onClick:O,danger:!0,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.process"})},"process"),x.jsx(Yt,{onClick:F,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.unclaim"})},"return"));break;case ly:case TF:DK(m,b)&&Y.push(x.jsx(Yt,{type:"primary",onClick:j,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.resolve"})},"resolve"),x.jsx(Yt,{onClick:A,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.hold"})},"hold"),x.jsx(Yt,{type:"primary",onClick:K,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.close"})},"close"));break;case Y3:case X3:Y.push(x.jsx(Yt,{type:"primary",onClick:N,disabled:!Ja(e,m,t,w),children:f.formatMessage({id:"ticket.action.resume"})},"resume"));break;case J3:case e4:Y.push(x.jsx(Yt,{onClick:L,disabled:!Ja(e,m,t,w),children:f.formatMessage({id:"ticket.action.reopen"})},"reopen"));break;case Q3:(m==null?void 0:m.reporter.uid)===(w==null?void 0:w.uid)&&Y.push(x.jsx(Yt,{onClick:I,disabled:!Ja(e,m,t,w),children:f.formatMessage({id:"ticket.action.verify"})},"verify"));break}return Y},U=Y=>!Y||Y.length===0?null:(Y=Y.filter(ee=>ee!==""),x.jsx("span",{style:{marginLeft:"5px"},children:Y.map(ee=>{const ie=ee.length>10,Z=x.jsx(Vi,{color:"blue",children:ie?`${ee.slice(0,10)}...`:ee},ee);return ie?x.jsx(_a,{title:ee,children:Z},ee):Z})}));return x.jsxs(x.Fragment,{children:[x.jsxs(dqt,{style:{...p,padding:"0 16px",display:"flex",justifyContent:"space-between",alignItems:"center",height:60},children:[x.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"8px"},children:[$()&&x.jsx("img",{src:$(),alt:"avatar",style:{width:32,height:32,borderRadius:"50%",objectFit:"cover"}}),x.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0"},children:[x.jsxs("span",{style:{fontSize:"16px",fontWeight:500,color:h?"#fff":"#000",lineHeight:"20px",display:"flex",alignItems:"center"},children:[M(),U(t==null?void 0:t.tagList),(t==null?void 0:t.user)&&x.jsx(Yt,{type:"text",size:"small",icon:x.jsx($m,{}),onClick:()=>E(!0),style:{marginLeft:"4px",padding:"0 4px"}})]}),x.jsx("span",{style:{fontSize:"12px",color:h?"#fff":"#000",lineHeight:"16px",minHeight:"16px"},children:P()})]})]}),!e&&Rf(t)&&x.jsxs(Xr,{children:[x.jsx(Yt,{color:"green",variant:"filled",onClick:()=>i(!0),children:f.formatMessage({id:"chat.header.action.transfer"})}),x.jsx(Yt,{color:"pink",variant:"filled",onClick:()=>a(!0),children:f.formatMessage({id:"chat.header.action.invite"})}),x.jsx(Yt,{color:"purple",variant:"filled",onClick:()=>o(!0),children:f.formatMessage({id:"chat.header.action.create.ticket"})}),t&&t.state!==nR&&x.jsx(Yt,{color:"danger",variant:"filled",onClick:s,children:f.formatMessage({id:"chat.header.action.close"})}),rRe(w,t)&&x.jsx(Yt,{color:"danger",variant:"text",onClick:V,children:f.formatMessage({id:"chat.header.action.exit"})})]}),!e&&(Fo(t)||Nk(t)||Dk(t))&&x.jsx(Xr,{children:x.jsx(Yt,{icon:x.jsx(yve,{}),onClick:()=>{Fo(t)?l(!0):Nk(t)?c(!0):Dk(t)?u(!0):je.warning(f.formatMessage({id:"chat.header.type.not.supported"}))}})}),(e||Ak(t))&&x.jsx(Xr,{children:B()})]}),y,_&&t&&x.jsx(Y3e,{open:_,currentThread:t,handleOk:()=>E(!1),handleCancel:()=>E(!1)})]})};async function pqt(e){return bn("/api/v1/kbase/query/org",{method:"GET",params:{...e,client:kn}})}async function hqt(e){return bn("/api/v1/autoreply/fixed/query/org",{method:"GET",params:{...e,client:kn}})}const mqt=({open:e,onOk:t,onCancel:n})=>{var S;const r=Rn(),[i]=Kn.useForm(),{translateString:a}=Zr(),o=Vr(_=>_.currentOrg),[s,l]=d.useState(),[c,u]=d.useState(),[f,p]=d.useState(jM),{agentInfo:h,setAgentInfo:m}=Eo(_=>({agentInfo:_.agentInfo,setAgentInfo:_.setAgentInfo})),g=async()=>{console.log("getAgentProfile:",o==null?void 0:o.uid);const _=await Ele(o==null?void 0:o.uid);console.log("getAgentProfile response:",o==null?void 0:o.uid,_.data),_.data.code===200&&m(_.data.data)},v=d.useCallback(async()=>{try{je.loading(r.formatMessage({id:"loading"}));const _={pageNumber:0,pageSize:50,orgUid:o==null?void 0:o.uid},E=await hqt(_);console.log("queryAutoReplyFixedByOrg response:",E.data,_),E.data.code===200?l(E.data):je.error(E.data.message)}catch(_){console.error("Error fetching auto replies:",_),je.error(r.formatMessage({id:"error.fetch.failed"}))}finally{je.destroy()}},[o==null?void 0:o.uid]),y=d.useCallback(async _=>{try{je.loading(r.formatMessage({id:"loading"}));const E={pageNumber:0,pageSize:50,type:_,orgUid:o==null?void 0:o.uid},$=await pqt(E);console.log("getKeywordBase response:",$.data),$.data.code===200?u($.data):je.error($.data.message)}catch(E){console.error("Error fetching knowledge base:",E),je.error(r.formatMessage({id:"error.fetch.failed"}))}finally{je.destroy()}},[f,o==null?void 0:o.uid]);d.useEffect(()=>{v(),y(yq)},[]),d.useEffect(()=>{f===NM?y(yq):f===AM&&y(h5e)},[f]),d.useEffect(()=>{var _,E,$,M,P,R;h!=null&&h.autoReplySettings&&i.setFieldsValue({kbUid:(_=h==null?void 0:h.autoReplySettings)==null?void 0:_.kbUid,autoReplyEnabled:(E=h==null?void 0:h.autoReplySettings)==null?void 0:E.autoReplyEnabled,autoReplyType:($=h==null?void 0:h.autoReplySettings)==null?void 0:$.autoReplyType,autoReplyUid:(M=h==null?void 0:h.autoReplySettings)==null?void 0:M.autoReplyUid,autoReplyContent:(P=h==null?void 0:h.autoReplySettings)==null?void 0:P.autoReplyContent,autoReplyContentType:(R=h==null?void 0:h.autoReplySettings)==null?void 0:R.autoReplyContentType})},[h,i]);const w=(_,E)=>{console.log("handleAutoReplyTypeChange:",_,E),p(_)},b=(_,E)=>{var $;console.log("handleAutoReplySelectChange:",_,E),($=s==null?void 0:s.data.content)==null||$.forEach(M=>{M.uid===_&&i.setFieldsValue({autoReplyContentType:M.type,autoReplyContent:M.content})})},C=async()=>{console.log("handleAutoReplySubmit:"),je.loading(r.formatMessage({id:"autoreply.save.loading",defaultMessage:"正在保存,请稍后..."}));const _={uid:h==null?void 0:h.uid,autoReplySettings:{autoReplyEnabled:i.getFieldValue("autoReplyEnabled"),autoReplyType:i.getFieldValue("autoReplyType"),autoReplyUid:i.getFieldValue("autoReplyUid"),autoReplyContent:i.getFieldValue("autoReplyContent"),autoReplyContentType:i.getFieldValue("autoReplyContentType"),kbUid:i.getFieldValue("kbUid")}},E=await a$e(_);console.log("handleUpdateAutoReply:",E),E.data.code===200?(je.destroy(),m(E.data.data),t()):(je.destroy(),je.error(r.formatMessage({id:"autoreply.save.error",defaultMessage:"保存失败"})))},k=()=>{n()};return d.useEffect(()=>{g()},[]),x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"autoreply.title",defaultMessage:"自动回复"}),open:e,forceRender:!0,onOk:C,onCancel:k,children:x.jsxs(Kn,{form:i,submitter:{render:!1},children:[x.jsx(WN,{width:"md",name:"autoReplyEnabled",label:r.formatMessage({id:"autoreply.enable.label",defaultMessage:"是否启用自动回复"}),fieldProps:{onChange:C}}),x.jsx(ro,{width:"md",name:"autoReplyType",label:r.formatMessage({id:"autoreply.type.label",defaultMessage:"自动回复类型"}),options:[{label:r.formatMessage({id:"autoreply.type.fixed"}),value:jM},{label:r.formatMessage({id:"autoreply.type.keyword"}),value:NM},{label:r.formatMessage({id:"autoreply.type.llm"}),value:AM,disabled:!Nl}],fieldProps:{onChange(_,E){w(_,E)}}}),f===jM&&x.jsx(x.Fragment,{children:x.jsx(ro,{width:"md",name:"autoReplyContent",label:r.formatMessage({id:"autoreply.fixed.select",defaultMessage:"选择固定回复内容"}),options:(S=s==null?void 0:s.data)==null?void 0:S.content.map(_=>({label:a(_==null?void 0:_.content),value:_==null?void 0:_.content})),fieldProps:{onChange(_,E){b(_,E)}}})}),f===NM&&x.jsx(x.Fragment,{children:x.jsx(ro,{width:"md",name:"kbUid",label:r.formatMessage({id:"autoreply.keyword.select",defaultMessage:"选择关键词知识库"}),options:c==null?void 0:c.data.content.map(_=>({label:a(_.name),value:_.uid}))})}),f===AM&&x.jsx(x.Fragment,{children:x.jsx(ro,{width:"md",name:"kbUid",label:r.formatMessage({id:"autoreply.llm.select",defaultMessage:"选择大模型知识库"}),options:c==null?void 0:c.data.content.map(_=>({label:a(_.name),value:_.uid}))})})]})})})};var Gi=(e=>(e[e.Edit=0]="Edit",e[e.Source=1]="Source",e))(Gi||{});function p5({image:e,width:t,height:n,history:r,bounds:i}){return new Promise((a,o)=>{const s=document.createElement("canvas"),l=i.width*window.devicePixelRatio,c=i.height*window.devicePixelRatio;s.width=l,s.height=c;const u=s.getContext("2d");if(!u)return o(new Error("convert image to blob fail"));const f=e.naturalWidth/t,p=e.naturalHeight/n;u.imageSmoothingEnabled=!0,u.imageSmoothingQuality="low",u.setTransform(window.devicePixelRatio,0,0,window.devicePixelRatio,0,0),u.clearRect(0,0,i.width,i.height),u.drawImage(e,i.x*f,i.y*p,i.width*f,i.height*p,0,0,i.width,i.height),r.stack.slice(0,r.index+1).forEach(h=>{h.type===Gi.Source&&h.draw(u,h)}),s.toBlob(h=>{if(!h)return o(new Error("canvas toBlob fail"));a(h)},"image/png")})}const v4e={magnifier_position_label:"坐标",operation_ok_title:"确定",operation_cancel_title:"取消",operation_save_title:"保存",operation_redo_title:"重做",operation_undo_title:"撤销",operation_mosaic_title:"马赛克",operation_text_title:"文本",operation_brush_title:"画笔",operation_arrow_title:"箭头",operation_ellipse_title:"椭圆",operation_rectangle_title:"矩形"},pU=te.createContext({store:{url:void 0,image:null,width:0,height:0,lang:v4e,emiterRef:{current:{}},canvasContextRef:{current:null},history:{index:-1,stack:[]},bounds:null,cursor:"move",operation:void 0},dispatcher:{call:void 0,setHistory:void 0,setBounds:void 0,setCursor:void 0,setOperation:void 0}});function ux(){const{dispatcher:e}=d.useContext(pU);return e}function Zs(){const{store:e}=d.useContext(pU);return e}function ib(){const{bounds:e}=Zs(),{setBounds:t}=ux(),n=d.useCallback(i=>{t==null||t(i)},[t]),r=d.useCallback(()=>{t==null||t(null)},[t]);return[e,{set:n,reset:r}]}function Nd(){const{lang:e}=Zs();return e}const q1=100,K1=80,gqt=d.memo(function({x:t,y:n}){const{width:r,height:i,image:a}=Zs(),o=Nd(),[s,l]=d.useState(null),c=d.useRef(null),u=d.useRef(null),f=d.useRef(null),[p,h]=d.useState("000000");return d.useLayoutEffect(()=>{if(!c.current)return;const m=c.current.getBoundingClientRect();let g=t+20,v=n+20;g+m.width>r&&(g=t-m.width-20),v+m.height>i&&(v=n-m.height-20),g<0&&(g=0),v<0&&(v=0),l({x:g,y:v})},[r,i,t,n]),d.useEffect(()=>{if(!a||!u.current){f.current=null;return}if(f.current||(f.current=u.current.getContext("2d")),!f.current)return;const m=f.current;m.clearRect(0,0,q1,K1);const g=a.naturalWidth/r,v=a.naturalHeight/i;m.drawImage(a,t*g-q1/2,n*v-K1/2,q1,K1,0,0,q1,K1);const{data:y}=m.getImageData(Math.floor(q1/2),Math.floor(K1/2),1,1),w=Array.from(y.slice(0,3)).map(b=>b>=16?b.toString(16):`0${b.toString(16)}`).join("").toUpperCase();h(w)},[r,i,a,t,n]),x.jsxs("div",{ref:c,className:"screenshots-magnifier",style:{transform:`translate(${s==null?void 0:s.x}px, ${s==null?void 0:s.y}px)`},children:[x.jsx("div",{className:"screenshots-magnifier-body",children:x.jsx("canvas",{ref:u,className:"screenshots-magnifier-body-canvas",width:q1,height:K1})}),x.jsxs("div",{className:"screenshots-magnifier-footer",children:[x.jsxs("div",{className:"screenshots-magnifier-footer-item",children:[o.magnifier_position_label,": (",t,",",n,")"]}),x.jsxs("div",{className:"screenshots-magnifier-footer-item",children:["RGB: #",p]})]})]})});function vqt({x:e,y:t},{x:n,y:r},i,a){return e>n&&([e,n]=[n,e]),t>r&&([t,r]=[r,t]),e<0&&(e=0),n>i&&(n=i),t<0&&(t=0),r>a&&(r=a),{x:e,y:t,width:n-e,height:r-t}}const yqt=d.memo(function(){const{url:t,image:n,width:r,height:i}=Zs(),[a,o]=ib(),s=d.useRef(null),l=d.useRef(null),c=d.useRef(!1),[u,f]=d.useState(null),p=d.useCallback((m,g)=>{if(!s.current)return;const{x:v,y}=s.current.getBoundingClientRect();o.set(vqt({x:m.x-v,y:m.y-y},{x:g.x-v,y:g.y-y},r,i))},[r,i,o]),h=d.useCallback(m=>{l.current||a||m.button!==0||(l.current={x:m.clientX,y:m.clientY},c.current=!1)},[a]);return d.useEffect(()=>{const m=v=>{if(s.current){const y=s.current.getBoundingClientRect();v.clientXy.right||v.clientY>y.bottom?f(null):f({x:v.clientX-y.x,y:v.clientY-y.y})}l.current&&(p(l.current,{x:v.clientX,y:v.clientY}),c.current=!0)},g=v=>{l.current&&(c.current&&p(l.current,{x:v.clientX,y:v.clientY}),l.current=null,c.current=!1)};return window.addEventListener("mousemove",m),window.addEventListener("mouseup",g),()=>{window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",g)}},[p]),d.useLayoutEffect(()=>{(!n||a)&&f(null)},[n,a]),!t||!n?null:x.jsxs("div",{ref:s,className:"screenshots-background",onMouseDown:h,children:[x.jsx("img",{className:"screenshots-background-image",src:t}),x.jsx("div",{className:"screenshots-background-mask"}),u&&!a&&x.jsx(gqt,{x:u==null?void 0:u.x,y:u==null?void 0:u.y})]})});function Oh(){const{cursor:e}=Zs(),{setCursor:t}=ux(),n=d.useCallback(i=>{t==null||t(i)},[t]),r=d.useCallback(()=>{t==null||t("move")},[t]);return[e,{set:n,reset:r}]}function ab(){const{emiterRef:e}=Zs(),t=d.useCallback((a,o)=>{const s=e.current;Array.isArray(s[a])?s[a].push(o):s[a]=[o]},[e]),n=d.useCallback((a,o)=>{const s=e.current;if(Array.isArray(s[a])){const l=s[a].findIndex(c=>c===o);l!==-1&&s[a].splice(l,1)}},[e]),r=d.useCallback((a,...o)=>{const s=e.current;Array.isArray(s[a])&&s[a].forEach(l=>l(...o))},[e]),i=d.useCallback(()=>{e.current={}},[e]);return{on:t,off:n,emit:r,reset:i}}function Rc(){const{history:e}=Zs(),{setHistory:t}=ux(),n=d.useCallback(u=>{const{index:f,stack:p}=e;p.forEach(h=>{h.type===Gi.Source&&(h.isSelected=!1)}),u.type===Gi.Source?u.isSelected=!0:u.type===Gi.Edit&&(u.source.isSelected=!0),p.splice(f+1),p.push(u),t==null||t({index:p.length-1,stack:p})},[e,t]),r=d.useCallback(()=>{const{stack:u}=e;u.pop(),t==null||t({index:u.length-1,stack:u})},[e,t]),i=d.useCallback(()=>{const{index:u,stack:f}=e,p=f[u];p&&(p.type===Gi.Source?p.isSelected=!1:p.type===Gi.Edit&&p.source.editHistory.pop()),t==null||t({index:u<=0?-1:u-1,stack:f})},[e,t]),a=d.useCallback(()=>{const{index:u,stack:f}=e,p=f[u+1];p&&(p.type===Gi.Source?p.isSelected=!1:p.type===Gi.Edit&&p.source.editHistory.push(p)),t==null||t({index:u>=f.length-1?f.length-1:u+1,stack:f})},[e,t]),o=d.useCallback(u=>{t==null||t({...u})},[t]),s=d.useCallback(u=>{e.stack.forEach(f=>{f.type===Gi.Source&&(f===u?f.isSelected=!0:f.isSelected=!1)}),t==null||t({...e})},[e,t]),l=d.useCallback(()=>{e.stack.forEach(u=>{u.type===Gi.Source&&(u.isSelected=!1)}),t==null||t({...e})},[e,t]),c=d.useCallback(()=>{t==null||t({index:-1,stack:[]})},[t]);return[{index:e.index,stack:e.stack,top:e.stack.slice(e.index,e.index+1)[0]},{push:n,pop:r,undo:i,redo:a,set:o,select:s,clearSelect:l,reset:c}]}function Rh(){const{operation:e}=Zs(),{setOperation:t}=ux(),n=d.useCallback(i=>{t==null||t(i)},[t]),r=d.useCallback(()=>{t==null||t(void 0)},[t]);return[e,{set:n,reset:r}]}function bqt({x:e,y:t},{x:n,y:r},i,a,o,s){return e>n&&([e,n]=[n,e]),t>r&&([t,r]=[r,t]),e<0&&(e=0,s==="move"&&(n=i.width)),n>a&&(n=a,s==="move"&&(e=n-i.width)),t<0&&(t=0,s==="move"&&(r=i.height)),r>o&&(r=o,s==="move"&&(t=r-i.height)),{x:e,y:t,width:Math.max(n-e,1),height:Math.max(r-t,1)}}function wqt(e,t,n,r){const i=e.clientX-n.x,a=e.clientY-n.y;let o=r.x,s=r.y,l=r.x+r.width,c=r.y+r.height;switch(t){case"top":s+=a;break;case"top-right":l+=i,s+=a;break;case"right":l+=i;break;case"right-bottom":l+=i,c+=a;break;case"bottom":c+=a;break;case"bottom-left":o+=i,c+=a;break;case"left":o+=i;break;case"left-top":o+=i,s+=a;break;case"move":o+=i,s+=a,l+=i,c+=a;break}return[{x:o,y:s},{x:l,y:c}]}function xqt(e,t,n,r){if(!t)return!1;const i=document.createElement("canvas");i.width=e.width,i.height=e.height;const a=i.getContext("2d");if(!a)return!1;const{left:o,top:s}=t.getBoundingClientRect(),l=r.clientX-o,c=r.clientY-s;return[...n.stack.slice(0,n.index+1)].reverse().find(f=>{var p;return f.type!==Gi.Source?!1:(a.clearRect(0,0,e.width,e.height),(p=f.isHit)==null?void 0:p.call(f,a,f,{x:l,y:c}))})}const Sqt=["top","right","bottom","left"],Cqt=["top","top-right","right","right-bottom","bottom","bottom-left","left","left-top"],_qt=d.memo(d.forwardRef(function(t,n){const{url:r,image:i,width:a,height:o}=Zs(),s=ab(),[l]=Rc(),[c]=Oh(),[u,f]=ib(),[p]=Rh(),h=d.useRef(),m=d.useRef(null),g=d.useRef(null),v=d.useRef(null),y=d.useRef(null),w=u&&!l.stack.length&&!p,b=d.useCallback(()=>{if(!u||!y.current)return;const S=y.current;S.imageSmoothingEnabled=!0,S.imageSmoothingQuality="low",S.clearRect(0,0,u.width,u.height),l.stack.slice(0,l.index+1).forEach(_=>{_.type===Gi.Source&&_.draw(S,_)})},[u,y,l]),C=d.useCallback((S,_)=>{if(!(S.button!==0||!u))if(!p)h.current=_,m.current={x:S.clientX,y:S.clientY},g.current={x:u.x,y:u.y,width:u.width,height:u.height};else{const E=xqt(u,v.current,l,S.nativeEvent);E?s.emit("drawselect",E,S.nativeEvent):s.emit("mousedown",S.nativeEvent)}},[u,p,s,l]),k=d.useCallback(S=>{if(!h.current||!m.current||!g.current||!u)return;const _=wqt(S,h.current,m.current,g.current);f.set(bqt(_[0],_[1],u,a,o,h.current))},[a,o,u,f]);return d.useLayoutEffect(()=>{if(!i||!u||!v.current){y.current=null;return}y.current||(y.current=v.current.getContext("2d")),b()},[i,u,b]),d.useEffect(()=>{const S=E=>{if(p)s.emit("mousemove",E);else{if(!h.current||!m.current||!g.current)return;k(E)}},_=E=>{if(p)s.emit("mouseup",E);else{if(!h.current||!m.current||!g.current)return;k(E),h.current=void 0,m.current=null,g.current=null}};return window.addEventListener("mousemove",S),window.addEventListener("mouseup",_),()=>{window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",_)}},[k,p,s]),d.useImperativeHandle(n,()=>y.current),x.jsxs("div",{className:"screenshots-canvas",style:{width:(u==null?void 0:u.width)||0,height:(u==null?void 0:u.height)||0,transform:u?`translate(${u.x}px, ${u.y}px)`:"none"},children:[x.jsxs("div",{className:"screenshots-canvas-body",children:[x.jsx("img",{className:"screenshots-canvas-image",src:r,style:{width:a,height:o,transform:u?`translate(${-u.x}px, ${-u.y}px)`:"none"}}),x.jsx("canvas",{ref:v,className:"screenshots-canvas-panel",width:(u==null?void 0:u.width)||0,height:(u==null?void 0:u.height)||0})]}),x.jsx("div",{className:"screenshots-canvas-mask",style:{cursor:c},onMouseDown:S=>C(S,"move"),children:w&&x.jsxs("div",{className:"screenshots-canvas-size",children:[u.width," × ",u.height]})}),Sqt.map(S=>x.jsx("div",{className:`screenshots-canvas-border-${S}`},S)),w&&Cqt.map(S=>x.jsx("div",{className:`screenshots-canvas-point-${S}`,onMouseDown:_=>C(_,S)},S))]})}));function hU(){const e=ux();return d.useCallback((n,...r)=>{var i;(i=e.call)==null||i.call(e,n,...r)},[e])}function Ih(){const{canvasContextRef:e}=Zs();return e}function mU(){const e=ab(),[,t]=ib(),[,n]=Oh(),[,r]=Rc(),[,i]=Rh();return d.useCallback(()=>{e.reset(),r.reset(),t.reset(),n.reset(),i.reset()},[e,r,t,n,i])}const kqt=d.memo(function({open:t,content:n,children:r}){const i=d.useRef(null),a=d.useRef(null),o=d.useRef(null),s=d.useContext(C4e),[l,c]=d.useState("bottom"),[u,f]=d.useState(null),[p,h]=d.useState(0),m=()=>(a.current||(a.current=document.createElement("div")),a.current);return d.useEffect(()=>{const g=m();return t&&document.body.appendChild(g),()=>{g.remove()}},[t]),d.useEffect(()=>{if(!t||!s||!i.current||!o.current)return;const g=i.current.getBoundingClientRect(),v=o.current.getBoundingClientRect();let y=l,w=g.left+g.width/2,b=g.top+g.height,C=p;if(w+v.width/2>s.x+s.width){const k=w;w=s.x+s.width-v.width/2,C=k-w}if(wwindow.innerHeight-v.height&&(y==="bottom"&&(y="top"),b=g.top-v.height),b<0&&(y==="top"&&(y="bottom"),b=g.top+g.height),y!==l&&c(y),((u==null?void 0:u.x)!==w||u.y!==b)&&f({x:w,y:b}),C!==p&&h(C)}),x.jsxs(x.Fragment,{children:[d.cloneElement(r,{ref:i}),t&&n&&Va.createPortal(x.jsxs("div",{ref:o,className:"screenshots-option",style:{visibility:u?"visible":"hidden",transform:`translate(${(u==null?void 0:u.x)??0}px, ${(u==null?void 0:u.y)??0}px)`},"data-placement":l,children:[x.jsx("div",{className:"screenshots-option-container",children:n}),x.jsx("div",{className:"screenshots-option-arrow",style:{marginLeft:p}})]}),m())]})}),Ou=d.memo(function({title:t,icon:n,checked:r,disabled:i,option:a,onClick:o}){const s=["screenshots-button"],l=d.useCallback(c=>{i||!o||o(c)},[i,o]);return r&&s.push("screenshots-button-checked"),i&&s.push("screenshots-button-disabled"),x.jsx(kqt,{open:r,content:a,children:x.jsx("div",{className:s.join(" "),title:t,onClick:l,children:x.jsx("span",{className:n})})})});function Eqt(){const{image:e,width:t,height:n,history:r,bounds:i,lang:a}=Zs(),o=Ih(),[,s]=Rc(),l=hU(),c=mU(),u=d.useCallback(()=>{s.clearSelect(),setTimeout(()=>{!o.current||!e||!i||p5({image:e,width:t,height:n,history:r,bounds:i}).then(f=>{l("onOk",f,i),c()})})},[o,s,e,t,n,r,i,l,c]);return x.jsx(Ou,{title:a.operation_ok_title,icon:"icon-ok",onClick:u})}function $qt(){const e=hU(),t=mU(),n=Nd(),r=d.useCallback(()=>{e("onCancel"),t()},[e,t]);return x.jsx(Ou,{title:n.operation_cancel_title,icon:"icon-cancel",onClick:r})}function Mqt(){const{image:e,width:t,height:n,history:r,bounds:i,lang:a}=Zs(),o=Ih(),[,s]=Rc(),l=hU(),c=mU(),u=d.useCallback(()=>{s.clearSelect(),setTimeout(()=>{!o.current||!e||!i||p5({image:e,width:t,height:n,history:r,bounds:i}).then(f=>{l("onSave",f,i),c()})})},[o,s,e,t,n,r,i,l,c]);return x.jsx(Ou,{title:a.operation_save_title,icon:"icon-save",onClick:u})}function Tqt(){const e=Nd(),[t,n]=Rc(),r=d.useCallback(()=>{n.redo()},[n]);return x.jsx(Ou,{title:e.operation_redo_title,icon:"icon-redo",disabled:!t.stack.length||t.stack.length-1===t.index,onClick:r})}function Pqt(){const e=Nd(),[t,n]=Rc(),r=d.useCallback(()=>{n.undo()},[n]);return x.jsx(Ou,{title:e.operation_undo_title,icon:"icon-undo",disabled:t.index===-1,onClick:r})}const y4e=d.memo(function({value:t,onChange:n}){const r=[3,6,9];return x.jsx("div",{className:"screenshots-size",children:r.map(i=>{const a=["screenshots-size-item"];return i===t&&a.push("screenshots-size-active"),x.jsx("div",{className:a.join(" "),onClick:()=>n&&n(i),children:x.jsx("div",{className:"screenshots-size-pointer",style:{width:i*1.8,height:i*1.8}})},i)})})});function ob(e){const t=ab();d.useEffect(()=>(t.on("mousedown",e),()=>{t.off("mousedown",e)}),[e,t])}function sb(e){const t=ab();d.useEffect(()=>(t.on("mousemove",e),()=>{t.off("mousemove",e)}),[e,t])}function lb(e){const t=ab();d.useEffect(()=>(t.on("mouseup",e),()=>{t.off("mouseup",e)}),[e,t])}function lC(e,t,n){if(!n)return[0,0,0,0];const{data:r,width:i}=n,a=t*i*4+e*4;return Array.from(r.slice(a,a+4))}function Oqt(e,t){const{tiles:n,size:r}=t.data;n.forEach(i=>{const a=Math.round(i.color[0]),o=Math.round(i.color[1]),s=Math.round(i.color[2]),l=i.color[3]/255;e.fillStyle=`rgba(${a}, ${o}, ${s}, ${l})`,e.fillRect(i.x-r/2,i.y-r/2,r,r)})}function Rqt(){const e=Nd(),{image:t,width:n,height:r}=Zs(),[i,a]=Rh(),o=Ih(),[s,l]=Rc(),[c]=ib(),[,u]=Oh(),[f,p]=d.useState(3),h=d.useRef(null),m=d.useRef(null),g=i==="Mosaic",v=d.useCallback(()=>{a.set("Mosaic"),u.set("crosshair")},[a,u]),y=d.useCallback(()=>{g||(v(),l.clearSelect())},[g,v,l]),w=d.useCallback(k=>{if(!g||m.current||!h.current||!o.current)return;const S=o.current.canvas.getBoundingClientRect(),_=k.clientX-S.x,E=k.clientY-S.y,$=f*2;m.current={name:"Mosaic",type:Gi.Source,data:{size:$,tiles:[{x:_,y:E,color:lC(_,E,h.current)}]},editHistory:[],draw:Oqt}},[g,f,o]),b=d.useCallback(k=>{if(!g||!m.current||!o.current||!h.current)return;const S=o.current.canvas.getBoundingClientRect(),_=k.clientX-S.x,E=k.clientY-S.y,$=m.current.data.size,M=m.current.data.tiles;let P=M[M.length-1];if(!P)M.push({x:_,y:E,color:lC(_,E,h.current)});else{const R=P.x-_,O=P.y-E;let j=Math.sqrt(R**2+O**2);const I=-O/j,A=-R/j;for(;j>$;){const N=Math.floor(P.x+$*A),F=Math.floor(P.y+$*I);P={x:N,y:F,color:lC(N,F,h.current)},M.push(P),j-=$}j>$/2&&M.push({x:_,y:E,color:lC(_,E,h.current)})}s.top!==m.current?l.push(m.current):l.set(s)},[g,o,s,l]),C=d.useCallback(()=>{g&&(m.current=null)},[g]);return ob(w),sb(b),lb(C),d.useEffect(()=>{if(!c||!t||!g)return;const k=document.createElement("canvas"),S=k.getContext("2d");if(!S)return;k.width=c.width,k.height=c.height;const _=t.naturalWidth/n,E=t.naturalHeight/r;S.drawImage(t,c.x*_,c.y*E,c.width*_,c.height*E,0,0,c.width,c.height),h.current=S.getImageData(0,0,c.width,c.height)},[n,r,c,t,g]),x.jsx(Ou,{title:e.operation_mosaic_title,icon:"icon-mosaic",checked:g,onClick:y,option:x.jsx(y4e,{value:f,onChange:p})})}const Iqt=d.memo(function({value:t,onChange:n}){const r=["#ee5126","#fceb4d","#90e746","#51c0fa","#7a7a7a","#ffffff"];return x.jsx("div",{className:"screenshots-color",children:r.map(i=>{const a=["screenshots-color-item"];return i===t&&a.push("screenshots-color-active"),x.jsx("div",{className:a.join(" "),style:{backgroundColor:i},onClick:()=>n&&n(i)},i)})})}),dx=d.memo(function({size:t,color:n,onSizeChange:r,onColorChange:i}){return x.jsxs("div",{className:"screenshots-sizecolor",children:[x.jsx(y4e,{value:t,onChange:r}),x.jsx(Iqt,{value:n,onChange:i})]})}),jqt=` min-width: 0 !important; width: 0 !important; min-height: 0 !important; @@ -710,9 +710,9 @@ position: absolute !important; z-index: -1000 !important; top:0 !important; right:0 !important; -`,Aqt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","text-indent","padding-left","padding-right","border-width","box-sizing","white-space","word-break"];let dp;function Dqt(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing")||t.getPropertyValue("-moz-box-sizing")||t.getPropertyValue("-webkit-box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width"));return{sizingStyle:Aqt.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function Fqt(e,t,n,r){dp||(dp=document.createElement("textarea"),dp.setAttribute("tab-index","-1"),document.body.appendChild(dp));const{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=Dqt(e);dp.setAttribute("style",`${s};${Nqt};max-width:${n}px;max-height:${r}px`),dp.value=t||" ";let l=dp.scrollWidth,c=dp.scrollHeight;return o==="border-box"?(l+=a,c+=a):o==="content-box"&&(l-=i,c-=i),{width:Math.min(l,n),height:Math.min(c,r)}}const Lqt=d.memo(function({x:t,y:n,maxWidth:r,maxHeight:i,size:a,color:o,value:s,onChange:l,onBlur:c}){const u=d.useRef(null),f=d.useRef(null),[p,h]=d.useState(0),[m,g]=d.useState(0),v=()=>(u.current||(u.current=document.createElement("div")),u.current);return d.useLayoutEffect(()=>(u.current&&(document.body.appendChild(u.current),requestAnimationFrame(()=>{var y;(y=f.current)==null||y.focus()})),()=>{var y;(y=u.current)==null||y.remove()}),[]),d.useLayoutEffect(()=>{if(!f.current)return;const{width:y,height:b}=Fqt(f.current,s,r,i);h(y),g(b)},[s,r,i]),Ka.createPortal(x.jsx("textarea",{ref:f,className:"screenshots-textarea",style:{color:o,width:p,height:m,maxWidth:r,maxHeight:i,fontSize:a,lineHeight:`${a}px`,transform:`translate(${t}px, ${n}px)`},value:s,onChange:y=>l&&l(y.target.value),onBlur:y=>c&&c(y)}),v())});function ux(e){const t=ib();d.useEffect(()=>(t.on("drawselect",e),()=>{t.off("drawselect",e)}),[e,t])}const $P={3:18,6:32,9:46};function Bqt(e,t){const{size:n,color:r,fontFamily:i,x:a,y:o,text:s}=t.data;e.fillStyle=r,e.textAlign="left",e.textBaseline="top",e.font=`${n}px ${i}`;const l=t.editHistory.reduce((c,{data:u})=>({x:c.x+u.x2-u.x1,y:c.y+u.y2-u.y1}),{x:0,y:0});s.split(` -`).forEach((c,u)=>{e.fillText(c,a+l.x,o+l.y+u*n)})}function zqt(e,t,n){e.textAlign="left",e.textBaseline="top",e.font=`${t.data.size}px ${t.data.fontFamily}`;let r=0,i=0;t.data.text.split(` -`).forEach(f=>{const p=e.measureText(f);r({x:f.x+p.x2-p.x1,y:f.y+p.y2-p.y1}),{x:0,y:0}),s=t.data.x+a,l=t.data.y+o,c=s+r,u=l+i;return n.x>=s&&n.x<=c&&n.y>=l&&n.y<=u}function Hqt(){const e=Id(),[t,n]=Tc(),[r]=rb(),[i,a]=Ph(),[,o]=Th(),s=Oh(),[l,c]=d.useState(3),[u,f]=d.useState("#ee5126"),p=d.useRef(null),h=d.useRef(null),[m,g]=d.useState(null),[v,y]=d.useState(""),b=i==="Text",w=d.useCallback(()=>{a.set("Text"),o.set("default")},[a,o]),_=d.useCallback(()=>{b||(w(),n.clearSelect())},[b,w,n]),k=d.useCallback(O=>{p.current&&(p.current.data.size=$P[O]),c(O)},[]),S=d.useCallback(O=>{p.current&&(p.current.data.color=O),f(O)},[]),C=d.useCallback(O=>{y(O),b&&p.current&&(p.current.data.text=O)},[b]),E=d.useCallback(()=>{p.current&&p.current.data.text&&n.push(p.current),p.current=null,y(""),g(null)},[n]),$=d.useCallback((O,A)=>{O.name==="Text"&&(w(),h.current={type:Yi.Edit,data:{x1:A.clientX,y1:A.clientY,x2:A.clientX,y2:A.clientY},source:O},n.select(O))},[w,n]),M=d.useCallback(O=>{if(!b||!s.current||p.current||!r)return;const{left:A,top:R}=s.current.canvas.getBoundingClientRect(),j=window.getComputedStyle(s.current.canvas).fontFamily,N=O.clientX-A,D=O.clientY-R;p.current={name:"Text",type:Yi.Source,data:{size:$P[l],color:u,fontFamily:j,x:N,y:D,text:""},editHistory:[],draw:Bqt,isHit:zqt},g({x:O.clientX,y:O.clientY,maxWidth:r.width-N,maxHeight:r.height-D})},[b,l,u,r,s]),P=d.useCallback(O=>{b&&h.current&&(h.current.data.x2=O.clientX,h.current.data.y2=O.clientY,t.top!==h.current?(h.current.source.editHistory.push(h.current),n.push(h.current)):n.set(t))},[b,t,n]),I=d.useCallback(()=>{b&&(h.current=null)},[b]);return ux($),ab(M),ob(P),sb(I),x.jsxs(x.Fragment,{children:[x.jsx(Mu,{title:e.operation_text_title,icon:"icon-text",checked:b,onClick:_,option:x.jsx(cx,{size:l,color:u,onSizeChange:k,onColorChange:S})}),b&&m&&x.jsx(Lqt,{x:m.x,y:m.y,maxWidth:m.maxWidth,maxHeight:m.maxHeight,size:$P[l],color:u,value:v,onChange:C,onBlur:E})]})}const g4e=4;function no(e,t,n){e.lineWidth=1,e.strokeStyle="#000000",e.fillStyle="#ffffff",e.beginPath(),e.arc(t,n,g4e,0,2*Math.PI),e.fill(),e.stroke()}function n7(e,t,n){t.draw(e,t);const{data:r}=e.getImageData(n.x,n.y,1,1);return r.some(i=>i!==0)}function ro(e,t,n){if(!e)return!1;const{left:r,top:i}=e.getBoundingClientRect(),a=t.clientX-r,o=t.clientY-i;return(n.x-a)**2+(n.y-o)**2({x:o.x+s.x2-s.x1,y:o.y+s.y2-s.y1}),{x:0,y:0});e.beginPath(),i.forEach((o,s)=>{s===0?e.moveTo(o.x+a.x,o.y+a.y):e.lineTo(o.x+a.x,o.y+a.y)}),e.stroke(),t.isSelected&&(e.lineWidth=1,e.strokeStyle="#000000",e.beginPath(),i.forEach((o,s)=>{s===0?e.moveTo(o.x+a.x,o.y+a.y):e.lineTo(o.x+a.x,o.y+a.y)}),e.stroke())}function Wqt(){const e=Id(),[,t]=Th(),[n,r]=Ph(),i=Oh(),[a,o]=Tc(),[s,l]=d.useState(3),[c,u]=d.useState("#ee5126"),f=d.useRef(null),p=d.useRef(null),h=n==="Brush",m=d.useCallback(()=>{r.set("Brush"),t.set("default")},[r,t]),g=d.useCallback(()=>{h||(m(),o.clearSelect())},[h,m,o]),v=d.useCallback((_,k)=>{_.name==="Brush"&&(m(),p.current={type:Yi.Edit,data:{x1:k.clientX,y1:k.clientY,x2:k.clientX,y2:k.clientY},source:_},o.select(_))},[m,o]),y=d.useCallback(_=>{if(!h||f.current||!i.current)return;const{left:k,top:S}=i.current.canvas.getBoundingClientRect();f.current={name:"Brush",type:Yi.Source,data:{size:s,color:c,points:[{x:_.clientX-k,y:_.clientY-S}]},editHistory:[],draw:Uqt,isHit:n7}},[h,i,s,c]),b=d.useCallback(_=>{if(!(!h||!i.current)){if(p.current)p.current.data.x2=_.clientX,p.current.data.y2=_.clientY,a.top!==p.current?(p.current.source.editHistory.push(p.current),o.push(p.current)):o.set(a);else if(f.current){const{left:k,top:S}=i.current.canvas.getBoundingClientRect();f.current.data.points.push({x:_.clientX-k,y:_.clientY-S}),a.top!==f.current?o.push(f.current):o.set(a)}}},[h,a,i,o]),w=d.useCallback(()=>{h&&(f.current&&o.clearSelect(),f.current=null,p.current=null)},[h,o]);return ux(v),ab(y),ob(b),sb(w),x.jsx(Mu,{title:e.operation_brush_title,icon:"icon-brush",checked:h,onClick:g,option:x.jsx(cx,{size:s,color:c,onSizeChange:l,onColorChange:u})})}function v4e(e){let{x1:t,y1:n,x2:r,y2:i}=e.data;return e.editHistory.forEach(({data:a})=>{const o=a.x2-a.x1,s=a.y2-a.y1;a.type===$_.Move?(t+=o,n+=s,r+=o,i+=s):a.type===$_.MoveStart?(t+=o,n+=s):a.type===$_.MoveEnd&&(r+=o,i+=s)}),{...e.data,x1:t,x2:r,y1:n,y2:i}}function Vqt(e,t){const{size:n,color:r,x1:i,x2:a,y1:o,y2:s}=v4e(t);e.lineCap="round",e.lineJoin="bevel",e.lineWidth=n,e.strokeStyle=r;const l=a-i,c=s-o,u=n*3,f=Math.atan2(c,l);e.beginPath(),e.moveTo(i,o),e.lineTo(a,s),e.lineTo(a-u*Math.cos(f-Math.PI/6),s-u*Math.sin(f-Math.PI/6)),e.moveTo(a,s),e.lineTo(a-u*Math.cos(f+Math.PI/6),s-u*Math.sin(f+Math.PI/6)),e.stroke(),t.isSelected&&(no(e,i,o),no(e,a,s))}var $_=(e=>(e[e.Move=0]="Move",e[e.MoveStart=1]="MoveStart",e[e.MoveEnd=2]="MoveEnd",e))($_||{});function qqt(){const e=Id(),[,t]=Th(),[n,r]=Ph(),[i,a]=Tc(),o=Oh(),[s,l]=d.useState(3),[c,u]=d.useState("#ee5126"),f=d.useRef(null),p=d.useRef(null),h=n==="Arrow",m=d.useCallback(()=>{r.set("Arrow"),t.set("default")},[r,t]),g=d.useCallback(()=>{h||(m(),a.clearSelect())},[h,m,a]),v=d.useCallback((_,k)=>{if(_.name!=="Arrow"||!o.current)return;const S=_;m();const{x1:C,y1:E,x2:$,y2:M}=v4e(S);let P=0;ro(o.current.canvas,k,{x:C,y:E})?P=1:ro(o.current.canvas,k,{x:$,y:M})&&(P=2),p.current={type:Yi.Edit,data:{type:P,x1:k.clientX,y1:k.clientY,x2:k.clientX,y2:k.clientY},source:S},a.select(_)},[o,m,a]),y=d.useCallback(_=>{if(!h||f.current||!o.current)return;const{left:k,top:S}=o.current.canvas.getBoundingClientRect();f.current={name:"Arrow",type:Yi.Source,data:{size:s,color:c,x1:_.clientX-k,y1:_.clientY-S,x2:_.clientX-k,y2:_.clientY-S},editHistory:[],draw:Vqt,isHit:n7}},[h,c,s,o]),b=d.useCallback(_=>{if(!(!h||!o.current)){if(p.current)p.current.data.x2=_.clientX,p.current.data.y2=_.clientY,i.top!==p.current?(p.current.source.editHistory.push(p.current),a.push(p.current)):a.set(i);else if(f.current){const{left:k,top:S}=o.current.canvas.getBoundingClientRect();f.current.data.x2=_.clientX-k,f.current.data.y2=_.clientY-S,i.top!==f.current?a.push(f.current):a.set(i)}}},[h,i,o,a]),w=d.useCallback(()=>{h&&(f.current&&a.clearSelect(),f.current=null,p.current=null)},[h,a]);return ux(v),ab(y),ob(b),sb(w),x.jsx(Mu,{title:e.operation_arrow_title,icon:"icon-arrow",checked:h,onClick:g,option:x.jsx(cx,{size:s,color:c,onSizeChange:l,onColorChange:u})})}function y4e(e){let{x1:t,y1:n,x2:r,y2:i}=e.data;return e.editHistory.forEach(({data:a})=>{const o=a.x2-a.x1,s=a.y2-a.y1;a.type===Fu.Move?(t+=o,n+=s,r+=o,i+=s):a.type===Fu.ResizeTop?n+=s:a.type===Fu.ResizeRightTop?(r+=o,n+=s):a.type===Fu.ResizeRight?r+=o:a.type===Fu.ResizeRightBottom?(r+=o,i+=s):a.type===Fu.ResizeBottom?i+=s:a.type===Fu.ResizeLeftBottom?(t+=o,i+=s):a.type===Fu.ResizeLeft?t+=o:a.type===Fu.ResizeLeftTop&&(t+=o,n+=s)}),{...e.data,x1:t,x2:r,y1:n,y2:i}}function Kqt(e,t){const{size:n,color:r,x1:i,y1:a,x2:o,y2:s}=y4e(t);e.lineCap="butt",e.lineJoin="miter",e.lineWidth=n,e.strokeStyle=r;const l=(i+o)/2,c=(a+s)/2,u=Math.abs(o-i)/2,f=Math.abs(s-a)/2,p=.5522848,h=u*p,m=f*p;e.beginPath(),e.moveTo(l-u,c),e.bezierCurveTo(l-u,c-m,l-h,c-f,l,c-f),e.bezierCurveTo(l+h,c-f,l+u,c-m,l+u,c),e.bezierCurveTo(l+u,c+m,l+h,c+f,l,c+f),e.bezierCurveTo(l-h,c+f,l-u,c+m,l-u,c),e.closePath(),e.stroke(),t.isSelected&&(e.lineWidth=1,e.strokeStyle="#000000",e.fillStyle="#ffffff",e.beginPath(),e.moveTo(i,a),e.lineTo(o,a),e.lineTo(o,s),e.lineTo(i,s),e.closePath(),e.stroke(),no(e,(i+o)/2,a),no(e,o,a),no(e,o,(a+s)/2),no(e,o,s),no(e,(i+o)/2,s),no(e,i,s),no(e,i,(a+s)/2),no(e,i,a))}var Fu=(e=>(e[e.Move=0]="Move",e[e.ResizeTop=1]="ResizeTop",e[e.ResizeRightTop=2]="ResizeRightTop",e[e.ResizeRight=3]="ResizeRight",e[e.ResizeRightBottom=4]="ResizeRightBottom",e[e.ResizeBottom=5]="ResizeBottom",e[e.ResizeLeftBottom=6]="ResizeLeftBottom",e[e.ResizeLeft=7]="ResizeLeft",e[e.ResizeLeftTop=8]="ResizeLeftTop",e))(Fu||{});function Gqt(){const e=Id(),[t,n]=Tc(),[r,i]=Ph(),[,a]=Th(),o=Oh(),[s,l]=d.useState(3),[c,u]=d.useState("#ee5126"),f=d.useRef(null),p=d.useRef(null),h=r==="Ellipse",m=d.useCallback(()=>{i.set("Ellipse"),a.set("crosshair")},[i,a]),g=d.useCallback(()=>{h||(m(),n.clearSelect())},[h,m,n]),v=d.useCallback((_,k)=>{if(_.name!=="Ellipse"||!o.current)return;const S=_;m();const{x1:C,y1:E,x2:$,y2:M}=y4e(S);let P=0;ro(o.current.canvas,k,{x:(C+$)/2,y:E})?P=1:ro(o.current.canvas,k,{x:$,y:E})?P=2:ro(o.current.canvas,k,{x:$,y:(E+M)/2})?P=3:ro(o.current.canvas,k,{x:$,y:M})?P=4:ro(o.current.canvas,k,{x:(C+$)/2,y:M})?P=5:ro(o.current.canvas,k,{x:C,y:M})?P=6:ro(o.current.canvas,k,{x:C,y:(E+M)/2})?P=7:ro(o.current.canvas,k,{x:C,y:E})&&(P=8),p.current={type:Yi.Edit,data:{type:P,x1:k.clientX,y1:k.clientY,x2:k.clientX,y2:k.clientY},source:S},n.select(_)},[o,m,n]),y=d.useCallback(_=>{if(!h||!o.current||f.current)return;const{left:k,top:S}=o.current.canvas.getBoundingClientRect(),C=_.clientX-k,E=_.clientY-S;f.current={name:"Ellipse",type:Yi.Source,data:{size:s,color:c,x1:C,y1:E,x2:C,y2:E},editHistory:[],draw:Kqt,isHit:n7}},[h,s,c,o]),b=d.useCallback(_=>{if(!(!h||!o.current)){if(p.current)p.current.data.x2=_.clientX,p.current.data.y2=_.clientY,t.top!==p.current?(p.current.source.editHistory.push(p.current),n.push(p.current)):n.set(t);else if(f.current){const{left:k,top:S}=o.current.canvas.getBoundingClientRect();f.current.data.x2=_.clientX-k,f.current.data.y2=_.clientY-S,t.top!==f.current?n.push(f.current):n.set(t)}}},[h,o,t,n]),w=d.useCallback(()=>{h&&(f.current&&n.clearSelect(),f.current=null,p.current=null)},[h,n]);return ux(v),ab(y),ob(b),sb(w),x.jsx(Mu,{title:e.operation_ellipse_title,icon:"icon-ellipse",checked:h,onClick:g,option:x.jsx(cx,{size:s,color:c,onSizeChange:l,onColorChange:u})})}function b4e(e){let{x1:t,y1:n,x2:r,y2:i}=e.data;return e.editHistory.forEach(({data:a})=>{const o=a.x2-a.x1,s=a.y2-a.y1;a.type===Lu.Move?(t+=o,n+=s,r+=o,i+=s):a.type===Lu.ResizeTop?n+=s:a.type===Lu.ResizeRightTop?(r+=o,n+=s):a.type===Lu.ResizeRight?r+=o:a.type===Lu.ResizeRightBottom?(r+=o,i+=s):a.type===Lu.ResizeBottom?i+=s:a.type===Lu.ResizeLeftBottom?(t+=o,i+=s):a.type===Lu.ResizeLeft?t+=o:a.type===Lu.ResizeLeftTop&&(t+=o,n+=s)}),{...e.data,x1:t,x2:r,y1:n,y2:i}}function Yqt(e,t){const{size:n,color:r,x1:i,y1:a,x2:o,y2:s}=b4e(t);e.lineCap="butt",e.lineJoin="miter",e.lineWidth=n,e.strokeStyle=r,e.beginPath(),e.moveTo(i,a),e.lineTo(o,a),e.lineTo(o,s),e.lineTo(i,s),e.closePath(),e.stroke(),t.isSelected&&(e.lineWidth=1,e.strokeStyle="#000000",e.fillStyle="#ffffff",no(e,(i+o)/2,a),no(e,o,a),no(e,o,(a+s)/2),no(e,o,s),no(e,(i+o)/2,s),no(e,i,s),no(e,i,(a+s)/2),no(e,i,a))}var Lu=(e=>(e[e.Move=0]="Move",e[e.ResizeTop=1]="ResizeTop",e[e.ResizeRightTop=2]="ResizeRightTop",e[e.ResizeRight=3]="ResizeRight",e[e.ResizeRightBottom=4]="ResizeRightBottom",e[e.ResizeBottom=5]="ResizeBottom",e[e.ResizeLeftBottom=6]="ResizeLeftBottom",e[e.ResizeLeft=7]="ResizeLeft",e[e.ResizeLeftTop=8]="ResizeLeftTop",e))(Lu||{});function Xqt(){const e=Id(),[t,n]=Tc(),[r,i]=Ph(),[,a]=Th(),o=Oh(),[s,l]=d.useState(3),[c,u]=d.useState("#ee5126"),f=d.useRef(null),p=d.useRef(null),h=r==="Rectangle",m=d.useCallback(()=>{i.set("Rectangle"),a.set("crosshair")},[i,a]),g=d.useCallback(()=>{h||(m(),n.clearSelect())},[h,m,n]),v=d.useCallback((_,k)=>{if(_.name!=="Rectangle"||!o.current)return;const S=_;m();const{x1:C,y1:E,x2:$,y2:M}=b4e(S);let P=0;ro(o.current.canvas,k,{x:(C+$)/2,y:E})?P=1:ro(o.current.canvas,k,{x:$,y:E})?P=2:ro(o.current.canvas,k,{x:$,y:(E+M)/2})?P=3:ro(o.current.canvas,k,{x:$,y:M})?P=4:ro(o.current.canvas,k,{x:(C+$)/2,y:M})?P=5:ro(o.current.canvas,k,{x:C,y:M})?P=6:ro(o.current.canvas,k,{x:C,y:(E+M)/2})?P=7:ro(o.current.canvas,k,{x:C,y:E})&&(P=8),p.current={type:Yi.Edit,data:{type:P,x1:k.clientX,y1:k.clientY,x2:k.clientX,y2:k.clientY},source:_},n.select(_)},[o,m,n]),y=d.useCallback(_=>{if(!h||!o.current||f.current)return;const{left:k,top:S}=o.current.canvas.getBoundingClientRect(),C=_.clientX-k,E=_.clientY-S;f.current={name:"Rectangle",type:Yi.Source,data:{size:s,color:c,x1:C,y1:E,x2:C,y2:E},editHistory:[],draw:Yqt,isHit:n7}},[h,s,c,o]),b=d.useCallback(_=>{if(!(!h||!o.current)){if(p.current)p.current.data.x2=_.clientX,p.current.data.y2=_.clientY,t.top!==p.current?(p.current.source.editHistory.push(p.current),n.push(p.current)):n.set(t);else if(f.current){const{left:k,top:S}=o.current.canvas.getBoundingClientRect(),C=f.current.data;C.x2=_.clientX-k,C.y2=_.clientY-S,t.top!==f.current?n.push(f.current):n.set(t)}}},[h,o,t,n]),w=d.useCallback(()=>{h&&(f.current&&n.clearSelect(),f.current=null,p.current=null)},[h,n]);return ux(v),ab(y),ob(b),sb(w),x.jsx(Mu,{title:e.operation_rectangle_title,icon:"icon-rectangle",checked:h,onClick:g,option:x.jsx(cx,{size:s,color:c,onSizeChange:l,onColorChange:u})})}const Zqt=[Xqt,Gqt,qqt,Wqt,Hqt,Rqt,"|",Oqt,Pqt,"|",Tqt,Mqt,$qt],w4e=te.createContext(null),Qqt=d.memo(function(){const{width:t,height:n}=Zs(),[r]=rb(),[i,a]=d.useState(null),[o,s]=d.useState(null),l=d.useRef(null),c=d.useCallback(f=>{f.stopPropagation()},[]),u=d.useCallback(f=>{f.preventDefault(),f.stopPropagation()},[]);return d.useEffect(()=>{if(!r||!l.current)return;const f=l.current.getBoundingClientRect();let p=r.x+r.width-f.width,h=r.y+r.height+10;p<0&&(p=0),p>t-f.width&&(p=t-f.width),h>n-f.height&&(h=n-f.height-10),(!o||Math.abs(o.x-p)>1||Math.abs(o.y-h)>1)&&s({x:p,y:h}),(!i||Math.abs(i.x-f.x)>1||Math.abs(i.y-f.y)>1||Math.abs(i.width-f.width)>1||Math.abs(i.height-f.height)>1)&&a({x:f.x,y:f.y,width:f.width,height:f.height})}),r?x.jsx(w4e.Provider,{value:i,children:x.jsx("div",{ref:l,className:"screenshots-operations",style:{visibility:o?"visible":"hidden",transform:`translate(${(o==null?void 0:o.x)??0}px, ${(o==null?void 0:o.y)??0}px)`},onDoubleClick:c,onContextMenu:u,children:x.jsx("div",{className:"screenshots-operations-buttons",children:Zqt.map((f,p)=>f==="|"?x.jsx("div",{className:"screenshots-operations-divider"},p):x.jsx(f,{},p))})})}):null});function Jqt(e){const[t,n]=d.useState(null);return d.useEffect(()=>{if(n(null),e==null)return;const r=document.createElement("img"),i=()=>n(r),a=()=>n(null);return r.addEventListener("load",i),r.addEventListener("error",a),r.src=e,()=>{r.removeEventListener("load",i),r.removeEventListener("error",a)}},[e]),t}function eKt({url:e,width:t,height:n,lang:r,className:i,...a}){const o=Jqt(e),s=d.useRef(null),l=d.useRef({}),[c,u]=d.useState({index:-1,stack:[]}),[f,p]=d.useState(null),[h,m]=d.useState("move"),[g,v]=d.useState(void 0),y={url:e,width:t,height:n,image:o,lang:{...h4e,...r},emiterRef:l,canvasContextRef:s,history:c,bounds:f,cursor:h,operation:g},b=d.useCallback((E,...$)=>{const M=a[E];typeof M=="function"&&M(...$)},[a]),w={call:b,setHistory:u,setBounds:p,setCursor:m,setOperation:v},_=["screenshots"];i&&_.push(i);const k=()=>{l.current={},u({index:-1,stack:[]}),p(null),m("move"),v(void 0)},S=d.useCallback(async E=>{if(!(E.button!==0||!o))if(f&&s.current)f5({image:o,width:t,height:n,history:c,bounds:f}).then($=>{b("onOk",$,f),k()});else{const $={x:0,y:0,width:t,height:n};f5({image:o,width:t,height:n,history:c,bounds:$}).then(M=>{b("onOk",M,$),k()})}},[o,c,f,t,n,b]),C=d.useCallback(E=>{E.button===2&&(E.preventDefault(),b("onCancel"),k())},[b]);return d.useLayoutEffect(()=>{k()},[e]),x.jsx(uU.Provider,{value:{store:y,dispatcher:w},children:x.jsxs("div",{className:_.join(" "),style:{width:t,height:n},onDoubleClick:S,onContextMenu:C,children:[x.jsx(bqt,{}),x.jsx(kqt,{ref:s}),x.jsx(Qqt,{})]})})}const tKt=({open:e,screenShotImg:t,onOk:n,onCancel:r})=>{const i=d.useCallback((u,f)=>{if(console.log("onScreenSave",u,f),u){const p=URL.createObjectURL(u);console.log(p),N0(p)}},[]),a=d.useCallback(()=>{console.log("onScreenCancel")},[]),o=d.useCallback((u,f)=>{console.log("onScreenOk",u,f),u&&c(u)},[]),s=()=>{if(t.startsWith("data:image/png;base64,")){const u=t.split(",")[1],f=atob(u),p=[];for(let m=0;m{r()},c=async u=>{const f=tn(new Date).format("YYYYMMDDHHmmss")+"_screenshot.png",p=new FormData;p.append("file",u,f),p.append("file_name",f),p.append("file_type","image/png"),p.append("is_avatar","false"),p.append("kb_type",xF),p.append("category_uid",""),p.append("kb_uid",""),p.append("client",Sn),console.log("handleUpload formData",p),fetch(dy(),{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},body:p}).then(h=>(console.log("upload response:",h),h.json())).then(h=>{console.log("upload data:",h),En.emit(TC,h.data.fileUrl),n()})};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"截屏录屏",open:e,okText:"发送",onOk:s,onCancel:l,children:x.jsx(eKt,{url:t,width:470,height:400,onSave:i,onCancel:a,onOk:o})})})},nKt=()=>x.jsx("div",{children:x.jsx("h1",{children:"TabThread"})}),rKt=()=>x.jsx("div",{children:x.jsx("h1",{children:"TabContact"})}),iKt=()=>x.jsx("div",{children:x.jsx("h1",{children:"TabGroup"})}),aKt=e=>{console.log(e)},oKt=[{key:"1",label:"会话",children:x.jsx(nKt,{})},{key:"2",label:"联系人",children:x.jsx(rKt,{})},{key:"3",label:"群聊",children:x.jsx(iKt,{})}],sKt=({open:e,onOk:t,onCancel:n})=>{const r=()=>{t()},i=()=>{n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"转发消息",open:e,onOk:r,onCancel:i,children:x.jsx(wh,{defaultActiveKey:"1",items:oKt,onChange:aKt})})})},lKt=({open:e,onOk:t,onCancel:n})=>{qn.useForm();const r=()=>{t()},i=()=>{n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"TODO:历史消息",open:e,onOk:r,onCancel:i})})},cKt=({open:e,onOk:t,onCancel:n})=>{const[r]=qn.useForm(),i=()=>{t()},a=()=>{n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"转发消息",open:e,onOk:i,onCancel:a,children:x.jsx(qn,{form:r,submitter:{render:!1}})})})},{TextArea:uKt}=Wr,dKt=({open:e,onOk:t,onCancel:n})=>{const r=Pn(),{isDarkMode:i}=Ag(),a=Nr(R=>R.currentOrg),{translateStringTranct:o,translateString:s}=Gr(),[l,c]=d.useState({uid:""}),[u,f]=d.useState(),[p,h]=d.useState(""),{userInfo:m}=e1(),{agentInfo:g}=Si(),v=fr(R=>R.currentThread),[y,b]=d.useState(120),[w,_]=d.useState(0),[k,S]=d.useState(10),C=d.useMemo(()=>{const R=u==null?void 0:u.data.content;if(R){const j=R.filter(N=>(N==null?void 0:N.userUid)!==(m==null?void 0:m.uid));return j.length>0&&c(j[0]),j}else return[]},[u]),E=async()=>{Re.loading(r.formatMessage({id:"querying",defaultMessage:"查询中..."}));const R={pageNumber:w,pageSize:k,orgUid:a==null?void 0:a.uid},j=await IF(R);console.log("queryAgentsByOrg:",j.data),j.data.code===200?(Re.destroy(),f(j.data),j.data.data.content.length===0&&j.data.data.totalPages>0&&_(0)):(Re.destroy(),Re.error(j.data.message))};d.useEffect(()=>{e&&E()},[e,w,k]);const $=(R,j)=>{console.log("list on click",R,j),c(R)},M=()=>{E()},P=async()=>{if((l==null?void 0:l.uid)!==""){const R=Ua(),j={note:p,sender:{uid:g==null?void 0:g.uid,nickname:g==null?void 0:g.nickname,avatar:g==null?void 0:g.avatar,type:$f},receiver:{uid:l==null?void 0:l.uid,nickname:l==null?void 0:l.nickname,avatar:l==null?void 0:l.avatar,type:$f},thread:{uid:v==null?void 0:v.uid,topic:v==null?void 0:v.topic,type:v==null?void 0:v.type,state:v==null?void 0:v.state,user:v==null?void 0:v.user},status:G6e,messageUid:R,expireTime:y,orgUid:a==null?void 0:a.uid},N=await uqt(j);if(console.log("transferThread:",N.data),N.data.code===200){Re.success("发起转接成功");const D=JSON.stringify(j);$ct(R,D,v),t()}else Re.error(s(N.data.message))}else Re.warning("请选择转接客服")},I=()=>{n()},O=R=>x.jsx(x.Fragment,{children:x.jsxs("span",{style:{color:"#999999",fontSize:12},children:[R.status===m0&&"[✅接待]",R.status===gk&&"[忙碌]",R.status===Dm&&"[下线]",R.connected?"✅连接":"❌断开"]})}),A=(R,j)=>{_(R-1),j&&j!==k&&S(j)};return x.jsx(x.Fragment,{children:x.jsxs(yr,{title:r.formatMessage({id:"transfer",defaultMessage:"Transfer"}),open:e,onOk:P,onCancel:I,width:400,footer:[x.jsx(Yt,{onClick:I,children:r.formatMessage({id:"cancel",defaultMessage:"Cancel"})},"cancel"),x.jsx(Yt,{onClick:M,children:r.formatMessage({id:"refresh",defaultMessage:"Refresh"})},"refresh"),x.jsx(Yt,{type:"primary",onClick:P,disabled:(l==null?void 0:l.uid)==="",children:r.formatMessage({id:"transfer",defaultMessage:"Transfer"})},"submit")],children:[x.jsx(Gn,{itemLayout:"horizontal",dataSource:C,locale:{emptyText:r.formatMessage({id:"noAgent",defaultMessage:"No Agent available"})},renderItem:(R,j)=>x.jsx(Gn.Item,{style:l.uid===R.uid?{backgroundColor:i?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>$(R,j),children:x.jsx(Gn.Item.Meta,{avatar:x.jsx(Oi,{src:R.avatar}),title:o(R.nickname),description:O(R)})})}),u&&u.data&&u.data.totalElements>k&&x.jsx("div",{style:{marginTop:16,textAlign:"right"},children:x.jsx(O4,{current:w+1,pageSize:k,total:u.data.totalElements,onChange:A,size:"small",showSizeChanger:!0,showQuickJumper:!1,showTotal:R=>r.formatMessage({id:"pagination.total",defaultMessage:"共 {total} 条"},{total:R})})}),x.jsx(uKt,{rows:2,style:{marginTop:5,marginBottom:5},placeholder:r.formatMessage({id:"transfer.reason",defaultMessage:"Transfer Reason"}),value:p,onChange:R=>{h(R.target.value)}}),!1]})})},{TextArea:fKt}=Wr,pKt=({open:e,onOk:t,onCancel:n})=>{const r=Pn(),{isDarkMode:i}=Ag(),a=Nr(R=>R.currentOrg),{translateStringTranct:o,translateString:s}=Gr(),[l,c]=d.useState({uid:""}),[u,f]=d.useState(),[p,h]=d.useState(""),{userInfo:m}=e1(),{agentInfo:g}=Si(),v=fr(R=>R.currentThread),[y,b]=d.useState(120),[w,_]=d.useState(0),[k,S]=d.useState(10),C=d.useMemo(()=>{const R=u==null?void 0:u.data.content;if(R){const j=R.filter(N=>(N==null?void 0:N.userUid)!==(m==null?void 0:m.uid));return j.length>0&&c(j[0]),j}else return[]},[u]),E=async()=>{Re.loading(r.formatMessage({id:"querying",defaultMessage:"查询中..."}));const R={pageNumber:w,pageSize:k,orgUid:a==null?void 0:a.uid},j=await IF(R);console.log("queryAgentsByOrg:",j.data),j.data.code===200?(Re.destroy(),f(j.data),j.data.data.content.length===0&&j.data.data.totalPages>0&&_(0)):(Re.destroy(),Re.error(j.data.message))};d.useEffect(()=>{e&&E()},[e,w,k]);const $=(R,j)=>{console.log("list on click",R,j),c(R)},M=()=>{E()},P=async()=>{if(console.log("invite note:",p,l),(l==null?void 0:l.uid)!==""){const R=Ua(),j={note:p,sender:{uid:g==null?void 0:g.uid,nickname:g==null?void 0:g.nickname,avatar:g==null?void 0:g.avatar,type:$f},receiver:{uid:l==null?void 0:l.uid,nickname:l==null?void 0:l.nickname,avatar:l==null?void 0:l.avatar,type:$f},thread:{uid:v==null?void 0:v.uid,topic:v==null?void 0:v.topic,type:v==null?void 0:v.type,state:v==null?void 0:v.state,user:v==null?void 0:v.user},status:Y6e,messageUid:R,expireTime:y,orgUid:a==null?void 0:a.uid},N=await lqt(j);if(console.log("inviteThread:",N.data),N.data.code===200){Re.success("发起转接成功");const D=JSON.stringify(j);Mct(R,D,v),t()}else Re.error(s(N.data.message))}else Re.warning("请选择转接客服")},I=()=>{n()},O=R=>x.jsx(x.Fragment,{children:x.jsxs("span",{style:{color:"#999999",fontSize:12},children:[R.status===m0&&"[✅接待]",R.status===gk&&"[忙碌]",R.status===Dm&&"[下线]",R.connected?"✅连接":"❌断开"]})}),A=(R,j)=>{_(R-1),j&&j!==k&&S(j)};return x.jsx(x.Fragment,{children:x.jsxs(yr,{title:r.formatMessage({id:"invite",defaultMessage:"Invite"}),open:e,onOk:P,onCancel:I,width:400,footer:[x.jsx(Yt,{onClick:I,children:r.formatMessage({id:"cancel",defaultMessage:"Cancel"})},"cancel"),x.jsx(Yt,{onClick:M,children:r.formatMessage({id:"refresh",defaultMessage:"Refresh"})},"refresh"),x.jsx(Yt,{type:"primary",onClick:P,disabled:(l==null?void 0:l.uid)==="",children:r.formatMessage({id:"invite",defaultMessage:"Invite"})},"submit")],children:[x.jsx(Gn,{itemLayout:"horizontal",dataSource:C,locale:{emptyText:r.formatMessage({id:"noAgent",defaultMessage:"No Agent available"})},renderItem:(R,j)=>x.jsx(Gn.Item,{style:l.uid===R.uid?{backgroundColor:i?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>$(R,j),children:x.jsx(Gn.Item.Meta,{avatar:x.jsx(Oi,{src:R.avatar}),title:o(R.nickname),description:O(R)})})}),u&&u.data&&u.data.totalElements>k&&x.jsx("div",{style:{marginTop:16,textAlign:"right"},children:x.jsx(O4,{current:w+1,pageSize:k,total:u.data.totalElements,onChange:A,size:"small",showSizeChanger:!0,showQuickJumper:!1,showTotal:R=>r.formatMessage({id:"pagination.total",defaultMessage:"共 {total} 条"},{total:R})})}),x.jsx(fKt,{rows:2,style:{marginTop:5,marginBottom:5},placeholder:r.formatMessage({id:"invite.reason",defaultMessage:"Invite Reason"}),value:p,onChange:R=>{h(R.target.value)}}),!1]})})},hKt=({open:e,onOk:t,onCancel:n})=>{qn.useForm();const r=()=>{t()},i=()=>{n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"TODO:录音/音视频通话",open:e,onOk:r,onCancel:i})})};async function x4e(e){return dn("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:Sn}})}const{Dragger:mKt}=Jg,gKt=({type:e,acceptType:t,maxCount:n=5,isModalOpen:r,attachments:i,handleSubmit:a,handleCancel:o})=>{const s=Pn(),[l,c]=d.useState([]),[u,f]=d.useState([]),[p,h]=d.useState({file:null,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:e,category_uid:"",kb_uid:"",client:Sn});console.log("acceptType",t);const m=d.useMemo(()=>({name:"file",multiple:!0,action:dy(),headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},data:p,showUploadList:!1,beforeUpload(y){if(l.length>=n)return Re.error(s.formatMessage({id:"upload.maxCount"},{maxCount:n})),!1;c(w=>[...w,y]);const b=tn(new Date).format("YYYYMMDDHHmmss")+"_"+y.name;return h(w=>({...w,file:y,file_name:b,file_type:y.type,category_uid:""})),!0},onChange(y){y.file.status==="uploading"&&Re.loading(s.formatMessage({id:"upload.uploading"},{filename:y.file.name})),y.file.status==="done"?y.file.response.code===200?(Re.destroy(),Re.success(s.formatMessage({id:"upload.success"},{filename:y.file.name})),f(b=>[...b,y.file.response.data])):(Re.destroy(),Re.error(s.formatMessage({id:"upload.failed"},{filename:y.file.name}))):y.file.status==="error"&&Re.error(s.formatMessage({id:"upload.failed"},{filename:y.file.name}))},onDrop(y){console.log("Dropped files",y.dataTransfer.files)}}),[p,s]);d.useEffect(()=>{h(y=>({...y,kb_type:e,category_uid:""})),i&&f(i.map(y=>y.upload))},[e]);const g=()=>{a(l,u)},v=y=>{console.log("handleDelete",y);const b=u.find(_=>_.uid===y);if(!b)return;const w=b.fileName.split("_").slice(1).join("_");c(_=>_.filter(k=>k.name!==w)),f(_=>_.filter(k=>k.uid!==y))};return x.jsxs(yr,{title:s.formatMessage({id:"upload.modal.title"}),open:r,onOk:g,onCancel:o,children:[x.jsxs(mKt,{...m,children:[x.jsx("p",{className:"ant-upload-drag-icon",children:x.jsx(pve,{})}),x.jsx("p",{className:"ant-upload-text",children:s.formatMessage({id:"upload.drag.text"})}),x.jsx("p",{className:"ant-upload-hint",children:s.formatMessage({id:"upload.drag.hint"})})]}),x.jsx("div",{style:{marginTop:"16px",maxHeight:"200px",overflowY:"auto"},children:x.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:u.map(y=>x.jsx(sU,{file:y,onDelete:v},y.uid))})})]})};async function vKt(e){return dn("/api/v1/ticket/process/query/org",{method:"GET",params:{...e}})}const S4e=({open:e,isEdit:t=!1,currentTicket:n,onSuccess:r,onCancel:i})=>{const[a]=qn.useForm(),o=Pn(),{translateString:s}=Gr(),l=Nr(j=>j.currentOrg),c=Si(j=>j.agentInfo),u=fr(j=>j.currentThread),f=fr(j=>j.threads),[p,h]=d.useState([]),[m,g]=d.useState([]),[v,y]=d.useState([]),{refreshTickets:b}=Aa(),[w,_]=d.useState(!1),[k,S]=d.useState([]),[C,E]=d.useState([]);d.useEffect(()=>{var j,N,D,V;if(t&&n)a.setFieldsValue({title:n.title,description:n.description,status:n.status,priority:n.priority,threadUid:n==null?void 0:n.threadUid,workgroupUid:(j=n==null?void 0:n.workgroup)==null?void 0:j.uid,categoryUid:n==null?void 0:n.categoryUid,assigneeUid:(N=n.assignee)==null?void 0:N.uid,uploadUids:(D=n.attachments)==null?void 0:D.map(F=>{var K;return(K=F.upload)==null?void 0:K.uid}),processEntityUid:n==null?void 0:n.processEntityUid}),S((V=n.attachments)==null?void 0:V.map(F=>F.upload));else{const F=localStorage.getItem("ticketDraft");F&&a.setFieldsValue({description:F}),a.setFieldsValue({status:lg,priority:bk,processEntityUid:(l==null?void 0:l.uid)+"_"+E5e.toLowerCase()}),yf(u)&&a.setFieldsValue({threadUid:u==null?void 0:u.uid}),S([])}},[e,t,n]);const $=async()=>{var j,N,D;try{const V=await J$({type:vk,orgUid:l==null?void 0:l.uid,pageNumber:0,pageSize:100});((j=V.data)==null?void 0:j.code)===200&&((D=(N=V.data)==null?void 0:N.data)!=null&&D.content)&&(h(V.data.data.content),!t&&V.data.data.content.length>0&&a.setFieldValue("categoryUid",V.data.data.content[0].uid))}catch(V){console.error("Fetch categories error:",V),Re.error(o.formatMessage({id:"ticket.category.load.error"}))}},M=async()=>{var j,N,D;try{const V=await x4e({orgUid:l==null?void 0:l.uid,pageNumber:0,pageSize:100});((j=V.data)==null?void 0:j.code)===200&&((D=(N=V.data)==null?void 0:N.data)!=null&&D.content)&&(g(V.data.data.content),!t&&V.data.data.content.length>0&&a.setFieldValue("workgroupUid",V.data.data.content[0].uid),y(V.data.data.content.reduce((F,K)=>{var B;return(B=K.agents)==null||B.forEach(U=>{F.find(Z=>Z.uid===U.uid)||F.push(U)}),F},[])))}catch(V){console.error("Fetch workgroups error:",V),Re.error(o.formatMessage({id:"ticket.workgroup.load.error"}))}},P=async()=>{var D,V,F;const j={pageNumber:0,pageSize:100,orgUid:l==null?void 0:l.uid},N=await vKt(j);console.log("queryProcessesByOrg response:",N.data,j),((D=N.data)==null?void 0:D.code)===200&&((F=(V=N.data)==null?void 0:V.data)!=null&&F.content)?(E(N.data.data.content),N.data.data.content.length>0&&a.setFieldValue("processEntityUid",N.data.data.content[0].uid)):Re.error(o.formatMessage({id:"ticket.process.load.error"}))},I=j=>{const N=m.find(D=>D.uid===j);N!=null&&N.agents?(y(N.agents),a.setFieldValue("assigneeUid",void 0)):y([])};d.useEffect(()=>{e&&(M(),$(),P())},[e]);const O=async()=>{try{const j=await a.validateFields();Re.loading(o.formatMessage({id:"ticket.submitting"}),0);const N=j.threadUid,D=f.find(F=>F.uid===N);D&&(j.topic=D.topic);const V={...j,orgUid:l==null?void 0:l.uid,reporter:JSON.stringify({uid:c==null?void 0:c.uid,nickname:c==null?void 0:c.nickname,avatar:c==null?void 0:c.avatar,type:$f}),uploadUids:[...new Set(k.map(F=>F.uid))]};if(console.log("ticketRequest",V),t&&n){V.uid=n.uid;const F=await ZUt(V);console.log("updateTicket response",F.data),F.data.code===200?(Re.destroy(),Re.success(o.formatMessage({id:"ticket.update.success"})),b(),r()):(Re.destroy(),Re.error(o.formatMessage({id:"ticket.update.failed"})))}else{const F=await XUt(V);console.log("createTicket response",F.data),F.data.code===200?(Re.destroy(),Re.success(o.formatMessage({id:"ticket.create.success"})),b(),r()):(Re.destroy(),Re.error(o.formatMessage({id:"ticket.create.failed"})))}}catch(j){Re.destroy(),console.error("Submit ticket error:",j),Re.error(o.formatMessage({id:"ticket.submit.error"}))}finally{localStorage.removeItem("ticketDraft")}},A=j=>{console.log("handleDelete",j),S(N=>N.filter(D=>D.uid!==j))},R=()=>{console.log("handleDescriptionBlur",a.getFieldsValue());const j=a.getFieldValue("description");localStorage.setItem("ticketDraft",j)};return x.jsx(xh,{title:o.formatMessage({id:t?"ticket.edit.title":"ticket.create.title",defaultMessage:t?"编辑工单":"创建工单"}),width:600,open:e,onClose:i,extra:x.jsxs(Zr,{children:[x.jsx(Yt,{onClick:i,children:o.formatMessage({id:"common.cancel"})}),x.jsx(Yt,{type:"primary",onClick:O,children:o.formatMessage({id:"common.confirm"})})]}),children:x.jsxs(qn,{form:a,submitter:!1,children:[x.jsx(Pr,{name:"title",label:o.formatMessage({id:"ticket.form.title"}),rules:[{required:!0}]}),x.jsx(wd,{name:"description",label:o.formatMessage({id:"ticket.form.description"}),rules:[{required:!0}],fieldProps:{onBlur:R}}),x.jsx(za,{name:"status",label:o.formatMessage({id:"ticket.form.status"}),disabled:!0,options:[{label:o.formatMessage({id:"ticket.status.new"}),value:lg},{label:o.formatMessage({id:"ticket.status.claimed"}),value:q3},{label:o.formatMessage({id:"ticket.status.processing"}),value:sy},{label:o.formatMessage({id:"ticket.status.pending"}),value:K3},{label:o.formatMessage({id:"ticket.status.holding"}),value:G3},{label:o.formatMessage({id:"ticket.status.reopened"}),value:Y3},{label:o.formatMessage({id:"ticket.status.resolved"}),value:X3},{label:o.formatMessage({id:"ticket.status.closed"}),value:Z3},{label:o.formatMessage({id:"ticket.status.cancelled"}),value:Q3}],rules:[{required:!0}]}),x.jsx(za,{name:"priority",label:o.formatMessage({id:"ticket.form.priority"}),options:[{label:o.formatMessage({id:"ticket.priority.lowest"}),value:$se},{label:o.formatMessage({id:"ticket.priority.low"}),value:SF},{label:o.formatMessage({id:"ticket.priority.medium"}),value:bk},{label:o.formatMessage({id:"ticket.priority.high"}),value:CF},{label:o.formatMessage({id:"ticket.priority.urgent"}),value:_F},{label:o.formatMessage({id:"ticket.priority.critical"}),value:kF}],rules:[{required:!0}]}),x.jsx(za,{name:"categoryUid",label:o.formatMessage({id:"ticket.form.category"}),rules:[{required:!0}],options:p.map(j=>({label:s(j.name),value:j.uid})),placeholder:o.formatMessage({id:"ticket.form.category.placeholder"})}),x.jsx(za,{name:"workgroupUid",label:o.formatMessage({id:"ticket.form.workgroup"}),rules:[{required:!0}],options:m.map(j=>({label:s(j.nickname),value:j.uid})),placeholder:o.formatMessage({id:"ticket.form.workgroup.placeholder"}),onChange:I}),x.jsx(za,{name:"assigneeUid",label:o.formatMessage({id:"ticket.form.assignee"}),options:v.map(j=>({label:j.nickname,value:j.uid})),placeholder:o.formatMessage({id:"ticket.form.assignee.placeholder"}),disabled:v.length===0}),x.jsx(za,{name:"threadUid",label:o.formatMessage({id:"ticket.form.thread"}),options:[{label:o.formatMessage({id:"ticket.form.thread.none"}),value:""},...(f==null?void 0:f.filter(yf).map(j=>{var N;return{label:((N=j.user)==null?void 0:N.nickname)||j.uid,value:j.uid}}))||[]],placeholder:o.formatMessage({id:"ticket.form.thread.placeholder"})}),x.jsx(za,{name:"processEntityUid",label:o.formatMessage({id:"ticket.form.process"}),rules:[{required:!0}],options:C.map(j=>({label:s(j.name),value:j.uid})),placeholder:o.formatMessage({id:"ticket.form.process.placeholder"})}),w&&x.jsx(gKt,{type:vk,isModalOpen:w,attachments:n==null?void 0:n.attachments,handleSubmit:(j,N)=>{if(console.log("handleSubmit",j,N),t&&n){const D=N.filter(V=>{var F;return!((F=n.attachments)!=null&&F.some(K=>{var B;return((B=K.upload)==null?void 0:B.uid)===V.uid}))});S(D)}else{const D=N.filter(V=>{var F;return!((F=n.attachments)!=null&&F.some(K=>{var B;return((B=K.upload)==null?void 0:B.uid)===V.uid}))});S(D)}_(!1)},handleCancel:()=>{_(!1)}}),x.jsx("div",{style:{marginTop:"16px",marginBottom:"16px",maxHeight:"200px",overflowY:"auto"},children:x.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:k.map(j=>x.jsx(sU,{file:j,onDelete:A},j.uid))})}),x.jsx(Yt,{icon:x.jsx(N4,{}),onClick:()=>_(!0),children:o.formatMessage({id:"ticket.form.upload.button"})})]})})},yKt=({group:e})=>x.jsx("div",{children:"GroupNotice"}),bKt=({group:e})=>x.jsx(x.Fragment,{children:x.jsx(Gn,{itemLayout:"horizontal",dataSource:e==null?void 0:e.members,renderItem:(t,n)=>x.jsx(Gn.Item,{children:x.jsx(Gn.Item.Meta,{avatar:x.jsx(Oi,{src:t==null?void 0:t.avatar}),title:x.jsx(x.Fragment,{children:t==null?void 0:t.nickname})})})})}),wKt=({group:e})=>x.jsx(x.Fragment,{children:x.jsx(Gn,{itemLayout:"horizontal",dataSource:e==null?void 0:e.admins,renderItem:(t,n)=>x.jsx(Gn.Item,{children:x.jsx(Gn.Item.Meta,{avatar:x.jsx(Oi,{src:t==null?void 0:t.avatar}),title:x.jsx(x.Fragment,{children:t==null?void 0:t.nickname})})})})}),xKt=({group:e})=>x.jsx(x.Fragment,{children:x.jsx(Gn,{itemLayout:"horizontal",dataSource:e==null?void 0:e.robots,renderItem:(t,n)=>x.jsx(Gn.Item,{children:x.jsx(Gn.Item.Meta,{avatar:x.jsx(Oi,{src:t==null?void 0:t.avatar}),title:x.jsx(x.Fragment,{children:t==null?void 0:t.nickname})})})})}),SKt=({group:e})=>(console.log("group",e),x.jsx("div",{style:{textAlign:"center"},children:x.jsx(rz,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"./logo.png"})})),CKt=({open:e,onClose:t})=>{const n=Pn(),r=fr(c=>c.currentThread),[i,a]=d.useState(),o=[{key:"notice",label:n.formatMessage({id:"chat.group.notice"}),children:x.jsx(yKt,{group:i})},{key:"members",label:n.formatMessage({id:"chat.group.members"}),children:x.jsx(bKt,{group:i})},{key:"admins",label:n.formatMessage({id:"chat.group.admins"}),children:x.jsx(wKt,{group:i})},{key:"robots",label:n.formatMessage({id:"chat.group.robots"}),children:x.jsx(xKt,{group:i})},{key:"qrcode",label:n.formatMessage({id:"chat.group.qrcode"}),children:x.jsx(SKt,{group:i})}],s=async()=>{var p,h;const c=(r==null?void 0:r.topic.split("/")[2])||"";c===""&&Re.warning(n.formatMessage({id:"chat.group.uid.error"}));const u={uid:c},f=await $Wt(u);console.log("queryGroupByUid:",f.data,u),f.data.code===200?a((p=f==null?void 0:f.data)==null?void 0:p.data):Re.error((h=f==null?void 0:f.data)==null?void 0:h.message)};d.useEffect(()=>{Do(r)&&s()},[r]);const l=c=>{console.log(c)};return x.jsx(xh,{title:"群组资料",width:500,onClose:t,open:e,children:x.jsx(s8,{bordered:!1,items:o,defaultActiveKey:["1"],onChange:l})})},_Kt=({open:e,onClose:t})=>{const n=fr(l=>l.currentThread),[r,i]=d.useState(),{translateString:a}=Gr(),o=[{key:"nickname",label:"昵称",children:(r==null?void 0:r.nickname)||"暂无"},{key:"jobNo",label:"jobNo",children:(r==null?void 0:r.jobNo)||"暂无"},{key:"jobTitle",label:"jobTitle",children:(r==null?void 0:r.jobTitle)||"暂无"},{key:"seatNo",label:"seatNo",children:(r==null?void 0:r.seatNo)||"暂无"},{key:"telephone",label:"telephone",children:(r==null?void 0:r.telephone)||"暂无"},{key:"email",label:"email",children:(r==null?void 0:r.email)||"暂无"},{key:"mobile",label:"mobile",children:(r==null?void 0:r.mobile)||"暂无"},{key:"description",label:"description",children:a(r==null?void 0:r.description)||"暂无"}],s=async()=>{var u,f,p,h;const l=(u=n==null?void 0:n.user)==null?void 0:u.uid,c=await TWt(l);console.log("response:",c==null?void 0:c.data,l),((f=c==null?void 0:c.data)==null?void 0:f.code)===200?i((p=c==null?void 0:c.data)==null?void 0:p.data):Re.error((h=c==null?void 0:c.data)==null?void 0:h.message)};return d.useEffect(()=>{Nk(n)&&s()},[n]),x.jsx(xh,{title:"成员资料",width:500,onClose:t,open:e,children:x.jsx(Ja,{column:1,items:o,bordered:!1})})};async function kKt(e){return dn("/api/v1/model/query/org",{method:"GET",params:{...e,client:Sn}})}async function EKt(e){return dn("/api/v1/provider/query/org",{method:"GET",params:{...e,client:Sn}})}async function $Kt(){return dn("/api/v1/ollama4j/ping",{method:"GET",params:{client:Sn}})}async function MKt(){return dn("/api/v1/ollama4j/local-models",{method:"GET",params:{client:Sn}})}const TKt=So()(Ss(Cs(_s((e,t)=>({llmproviderResult:{data:{content:[]}},currentLlmProvider:{uid:"",nickname:""},insertLlmProvider(n){e(r=>{r.llmproviderResult.data.content.unshift(n)})},setLlmProviderResult:n=>{var i,a;e({llmproviderResult:n});const r=t().currentLlmProvider;(r.uid===""||r===void 0)&&((a=(i=n.data)==null?void 0:i.content)==null?void 0:a.length)>0&&e({currentLlmProvider:n.data.content[0]})},setCurrentLlmProvider(n){const r=t().llmproviderResult.data.content,i=r.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...r.slice(0,i),n,...r.slice(i+1)],o={...t().llmproviderResult,data:{content:a}};e({llmproviderResult:o,currentLlmProvider:n})}else console.warn("LlmProvider with the specified uid not found."),e({currentLlmProvider:n})},deleteCurrentLlmProvider(n){const r=t().llmproviderResult.data.content,i=r.findIndex(a=>a.uid===n);i!==-1?e({llmproviderResult:{...t().llmproviderResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("LlmProvider not found in cache:",n),t().currentLlmProvider.uid===n&&e({currentLlmProvider:{uid:""}})},deleteLlmProviderCache:()=>e({},!0)})),{name:P6e}))),PKt=({open:e,onClose:t})=>{var E;const n=Pn(),[r]=qn.useForm(),{translateString:i}=Gr(),a=Nr($=>$.currentOrg),{currentThread:o,setCurrentThread:s}=fr($=>({currentThread:$.currentThread,setCurrentThread:$.setCurrentThread})),{llmproviderResult:l,setLlmProviderResult:c}=TKt($=>({llmproviderResult:$.llmproviderResult,setLlmProviderResult:$.setLlmProviderResult})),[u,f]=d.useState({}),[p,h]=d.useState(),[m,g]=d.useState({});d.useEffect(()=>{h(o);const $=o==null?void 0:o.agent;let M;try{M=JSON.parse($)}catch(P){console.error("解析content为JSON时出错:",P)}f(M)},[o]);const v=async()=>{console.log("getLlmProviders");const $={pageNumber:0,pageSize:50,level:Dw,orgUid:a==null?void 0:a.uid},M=await EKt($);console.log("queryLlmProvidersByOrg: ",M.data),M.data.code===200?c(M.data):Re.error(M.data.message)};d.useEffect(()=>{var M,P,I,O,A;r.setFieldsValue({provider:(M=u==null?void 0:u.llm)==null?void 0:M.provider,model:(P=u==null?void 0:u.llm)==null?void 0:P.model,temperature:(I=u==null?void 0:u.llm)==null?void 0:I.temperature,prompt:i((O=u==null?void 0:u.llm)==null?void 0:O.prompt),contextMsgCount:(A=u==null?void 0:u.llm)==null?void 0:A.contextMsgCount}),v(),k({uid:"",name:"zhipu"})},[u]);const y=async $=>{console.log("llm handleSubmit",$),u.llm={...u.llm,...$},console.log("llm handleSubmit robot:",u);const M=JSON.stringify(u),P={...p,agent:M};console.log("llm handleSubmit threadRequest:",P);const I=await HFt(P);console.log("llm updateThread response:",I.data,P),I.data.code===200?(Re.success("更新成功"),s(I.data.data),t()):Re.error(I.data.message)},b=($,M)=>[x.jsx(Yt,{type:"default",onClick:()=>{var P,I,O,A,R;r.setFieldsValue({provider:(P=u==null?void 0:u.llm)==null?void 0:P.provider,model:(I=u==null?void 0:u.llm)==null?void 0:I.model,temperature:(O=u==null?void 0:u.llm)==null?void 0:O.temperature,prompt:i((A=u==null?void 0:u.llm)==null?void 0:A.prompt),contextMsgCount:(R=u==null?void 0:u.llm)==null?void 0:R.contextMsgCount})},children:"重置"},"reset"),x.jsx(Yt,{type:"primary",onClick:()=>{var P;(P=$.form)==null||P.submit()},children:"保存"},"submit")],w=async()=>{const $=await $Kt();console.log("getOllamaServerStatus: ",$.data),$.data.code===200&&$.data.data?_():Re.error($.data.message)},_=async()=>{const $=await MKt();if(console.log("requestLocalModels: ",$.data),$.data.code===200){const M=$.data.data.map(P=>({value:P.name,label:P.name}));g(P=>({...P,ollama:M})),M.length===0?r.setFieldValue("model",void 0):r.getFieldValue("model")||r.setFieldValue("model",M[0].value)}else Re.error($.data.message)},k=async $=>{Re.loading(n.formatMessage({id:"loading"}));try{const M={pageNumber:0,pageSize:50,providerUid:$.uid,orgUid:a==null?void 0:a.uid,level:Dw},P=await kKt(M);if(console.log("queryLlmModelsByOrg response:",P.data),P.data.code===200){const I=P.data.data.content.map(O=>({value:O.name,label:O.nickname}));g(O=>({...O,[$.name]:I})),I.length===0?r.setFieldValue("model",void 0):r.getFieldValue("model")||r.setFieldValue("model",I[0].value)}else Re.error(P.data.message)}catch(M){console.error("Failed to fetch models:",M),Re.error(n.formatMessage({id:"error"}))}finally{Re.destroy()}},S=$=>{var P;const M=(P=l==null?void 0:l.data)==null?void 0:P.content.find(I=>I.name===$);console.log("selectedProvider:",M),M!=null&&M.name&&(M.name==="ollama"?w():k(M))},C=$=>{console.log("handleModelSelected:",$)};return x.jsx(xh,{title:"大模型设置",width:500,onClose:t,open:e,children:x.jsxs(qn,{form:r,submitter:{render:b,submitButtonProps:{size:"large",htmlType:"button"}},onFinish:y,children:[x.jsx(wd,{width:"lg",name:"prompt",label:"提示词",placeholder:"请输入prompt",rules:[{required:!0,message:"请输入prompt"}],fieldProps:{autoSize:!0,rows:3}}),x.jsx(za,{width:"lg",name:"provider",label:"提供商",allowClear:!0,options:(E=l==null?void 0:l.data)==null?void 0:E.content.map($=>({value:$.name,label:$.nickname})),fieldProps:{onChange($,M){console.log("provider value:",$,M),S($)}},rules:[{required:!0,message:"请选择大模型"}]}),x.jsx(za,{width:"lg",name:"model",label:"模型",allowClear:!0,options:m[r.getFieldValue("provider")]||[],fieldProps:{onChange($,M){console.log("model value:",$,M),C($)}},rules:[{required:!0,message:"请选择大模型"}]}),x.jsx(Oee,{width:"lg",label:"温度",name:"temperature",min:0,max:1,fieldProps:{precision:1,step:.1},rules:[{required:!0,message:"请输入温度"}]}),x.jsx(Oee,{width:"lg",label:"上下文消息数",name:"contextMsgCount",min:0,max:10,fieldProps:{precision:0,step:1},rules:[{required:!0,message:"请输入上下文消息数"}]})]})})},OKt=[{id:"people",emojis:["grinning","smiley","smile","grin","laughing","sweat_smile","rolling_on_the_floor_laughing","joy","slightly_smiling_face","upside_down_face","melting_face","wink","blush","innocent","smiling_face_with_3_hearts","heart_eyes","star-struck","kissing_heart","kissing","relaxed","kissing_closed_eyes","kissing_smiling_eyes","smiling_face_with_tear","yum","stuck_out_tongue","stuck_out_tongue_winking_eye","zany_face","stuck_out_tongue_closed_eyes","money_mouth_face","hugging_face","face_with_hand_over_mouth","face_with_open_eyes_and_hand_over_mouth","face_with_peeking_eye","shushing_face","thinking_face","saluting_face","zipper_mouth_face","face_with_raised_eyebrow","neutral_face","expressionless","no_mouth","dotted_line_face","face_in_clouds","smirk","unamused","face_with_rolling_eyes","grimacing","face_exhaling","lying_face","shaking_face","relieved","pensive","sleepy","drooling_face","sleeping","mask","face_with_thermometer","face_with_head_bandage","nauseated_face","face_vomiting","sneezing_face","hot_face","cold_face","woozy_face","dizzy_face","face_with_spiral_eyes","exploding_head","face_with_cowboy_hat","partying_face","disguised_face","sunglasses","nerd_face","face_with_monocle","confused","face_with_diagonal_mouth","worried","slightly_frowning_face","white_frowning_face","open_mouth","hushed","astonished","flushed","pleading_face","face_holding_back_tears","frowning","anguished","fearful","cold_sweat","disappointed_relieved","cry","sob","scream","confounded","persevere","disappointed","sweat","weary","tired_face","yawning_face","triumph","rage","angry","face_with_symbols_on_mouth","smiling_imp","imp","skull","skull_and_crossbones","hankey","clown_face","japanese_ogre","japanese_goblin","ghost","alien","space_invader","wave","raised_back_of_hand","raised_hand_with_fingers_splayed","hand","spock-hand","rightwards_hand","leftwards_hand","palm_down_hand","palm_up_hand","leftwards_pushing_hand","rightwards_pushing_hand","ok_hand","pinched_fingers","pinching_hand","v","crossed_fingers","hand_with_index_finger_and_thumb_crossed","i_love_you_hand_sign","the_horns","call_me_hand","point_left","point_right","point_up_2","middle_finger","point_down","point_up","index_pointing_at_the_viewer","+1","-1","fist","facepunch","left-facing_fist","right-facing_fist","clap","raised_hands","heart_hands","open_hands","palms_up_together","handshake","pray","writing_hand","nail_care","selfie","muscle","mechanical_arm","mechanical_leg","leg","foot","ear","ear_with_hearing_aid","nose","brain","anatomical_heart","lungs","tooth","bone","eyes","eye","tongue","lips","biting_lip","baby","child","boy","girl","adult","person_with_blond_hair","man","bearded_person","man_with_beard","woman_with_beard","red_haired_man","curly_haired_man","white_haired_man","bald_man","woman","red_haired_woman","red_haired_person","curly_haired_woman","curly_haired_person","white_haired_woman","white_haired_person","bald_woman","bald_person","blond-haired-woman","blond-haired-man","older_adult","older_man","older_woman","person_frowning","man-frowning","woman-frowning","person_with_pouting_face","man-pouting","woman-pouting","no_good","man-gesturing-no","woman-gesturing-no","ok_woman","man-gesturing-ok","woman-gesturing-ok","information_desk_person","man-tipping-hand","woman-tipping-hand","raising_hand","man-raising-hand","woman-raising-hand","deaf_person","deaf_man","deaf_woman","bow","man-bowing","woman-bowing","face_palm","man-facepalming","woman-facepalming","shrug","man-shrugging","woman-shrugging","health_worker","male-doctor","female-doctor","student","male-student","female-student","teacher","male-teacher","female-teacher","judge","male-judge","female-judge","farmer","male-farmer","female-farmer","cook","male-cook","female-cook","mechanic","male-mechanic","female-mechanic","factory_worker","male-factory-worker","female-factory-worker","office_worker","male-office-worker","female-office-worker","scientist","male-scientist","female-scientist","technologist","male-technologist","female-technologist","singer","male-singer","female-singer","artist","male-artist","female-artist","pilot","male-pilot","female-pilot","astronaut","male-astronaut","female-astronaut","firefighter","male-firefighter","female-firefighter","cop","male-police-officer","female-police-officer","sleuth_or_spy","male-detective","female-detective","guardsman","male-guard","female-guard","ninja","construction_worker","male-construction-worker","female-construction-worker","person_with_crown","prince","princess","man_with_turban","man-wearing-turban","woman-wearing-turban","man_with_gua_pi_mao","person_with_headscarf","person_in_tuxedo","man_in_tuxedo","woman_in_tuxedo","bride_with_veil","man_with_veil","woman_with_veil","pregnant_woman","pregnant_man","pregnant_person","breast-feeding","woman_feeding_baby","man_feeding_baby","person_feeding_baby","angel","santa","mrs_claus","mx_claus","superhero","male_superhero","female_superhero","supervillain","male_supervillain","female_supervillain","mage","male_mage","female_mage","fairy","male_fairy","female_fairy","vampire","male_vampire","female_vampire","merperson","merman","mermaid","elf","male_elf","female_elf","genie","male_genie","female_genie","zombie","male_zombie","female_zombie","troll","massage","man-getting-massage","woman-getting-massage","haircut","man-getting-haircut","woman-getting-haircut","walking","man-walking","woman-walking","standing_person","man_standing","woman_standing","kneeling_person","man_kneeling","woman_kneeling","person_with_probing_cane","man_with_probing_cane","woman_with_probing_cane","person_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_in_motorized_wheelchair","person_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_manual_wheelchair","runner","man-running","woman-running","dancer","man_dancing","man_in_business_suit_levitating","dancers","men-with-bunny-ears-partying","women-with-bunny-ears-partying","person_in_steamy_room","man_in_steamy_room","woman_in_steamy_room","person_climbing","man_climbing","woman_climbing","fencer","horse_racing","skier","snowboarder","golfer","man-golfing","woman-golfing","surfer","man-surfing","woman-surfing","rowboat","man-rowing-boat","woman-rowing-boat","swimmer","man-swimming","woman-swimming","person_with_ball","man-bouncing-ball","woman-bouncing-ball","weight_lifter","man-lifting-weights","woman-lifting-weights","bicyclist","man-biking","woman-biking","mountain_bicyclist","man-mountain-biking","woman-mountain-biking","person_doing_cartwheel","man-cartwheeling","woman-cartwheeling","wrestlers","man-wrestling","woman-wrestling","water_polo","man-playing-water-polo","woman-playing-water-polo","handball","man-playing-handball","woman-playing-handball","juggling","man-juggling","woman-juggling","person_in_lotus_position","man_in_lotus_position","woman_in_lotus_position","bath","sleeping_accommodation","people_holding_hands","two_women_holding_hands","man_and_woman_holding_hands","two_men_holding_hands","couplekiss","woman-kiss-man","man-kiss-man","woman-kiss-woman","couple_with_heart","woman-heart-man","man-heart-man","woman-heart-woman","family","man-woman-boy","man-woman-girl","man-woman-girl-boy","man-woman-boy-boy","man-woman-girl-girl","man-man-boy","man-man-girl","man-man-girl-boy","man-man-boy-boy","man-man-girl-girl","woman-woman-boy","woman-woman-girl","woman-woman-girl-boy","woman-woman-boy-boy","woman-woman-girl-girl","man-boy","man-boy-boy","man-girl","man-girl-boy","man-girl-girl","woman-boy","woman-boy-boy","woman-girl","woman-girl-boy","woman-girl-girl","speaking_head_in_silhouette","bust_in_silhouette","busts_in_silhouette","people_hugging","footprints","robot_face","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","see_no_evil","hear_no_evil","speak_no_evil","love_letter","cupid","gift_heart","sparkling_heart","heartpulse","heartbeat","revolving_hearts","two_hearts","heart_decoration","heavy_heart_exclamation_mark_ornament","broken_heart","heart_on_fire","mending_heart","heart","pink_heart","orange_heart","yellow_heart","green_heart","blue_heart","light_blue_heart","purple_heart","brown_heart","black_heart","grey_heart","white_heart","kiss","100","anger","boom","dizzy","sweat_drops","dash","hole","speech_balloon","eye-in-speech-bubble","left_speech_bubble","right_anger_bubble","thought_balloon","zzz"]},{id:"nature",emojis:["monkey_face","monkey","gorilla","orangutan","dog","dog2","guide_dog","service_dog","poodle","wolf","fox_face","raccoon","cat","cat2","black_cat","lion_face","tiger","tiger2","leopard","horse","moose","donkey","racehorse","unicorn_face","zebra_face","deer","bison","cow","ox","water_buffalo","cow2","pig","pig2","boar","pig_nose","ram","sheep","goat","dromedary_camel","camel","llama","giraffe_face","elephant","mammoth","rhinoceros","hippopotamus","mouse","mouse2","rat","hamster","rabbit","rabbit2","chipmunk","beaver","hedgehog","bat","bear","polar_bear","koala","panda_face","sloth","otter","skunk","kangaroo","badger","feet","turkey","chicken","rooster","hatching_chick","baby_chick","hatched_chick","bird","penguin","dove_of_peace","eagle","duck","swan","owl","dodo","feather","flamingo","peacock","parrot","wing","black_bird","goose","frog","crocodile","turtle","lizard","snake","dragon_face","dragon","sauropod","t-rex","whale","whale2","dolphin","seal","fish","tropical_fish","blowfish","shark","octopus","shell","coral","jellyfish","snail","butterfly","bug","ant","bee","beetle","ladybug","cricket","cockroach","spider","spider_web","scorpion","mosquito","fly","worm","microbe","bouquet","cherry_blossom","white_flower","lotus","rosette","rose","wilted_flower","hibiscus","sunflower","blossom","tulip","hyacinth","seedling","potted_plant","evergreen_tree","deciduous_tree","palm_tree","cactus","ear_of_rice","herb","shamrock","four_leaf_clover","maple_leaf","fallen_leaf","leaves","empty_nest","nest_with_eggs","mushroom"]},{id:"foods",emojis:["grapes","melon","watermelon","tangerine","lemon","banana","pineapple","mango","apple","green_apple","pear","peach","cherries","strawberry","blueberries","kiwifruit","tomato","olive","coconut","avocado","eggplant","potato","carrot","corn","hot_pepper","bell_pepper","cucumber","leafy_green","broccoli","garlic","onion","peanuts","beans","chestnut","ginger_root","pea_pod","bread","croissant","baguette_bread","flatbread","pretzel","bagel","pancakes","waffle","cheese_wedge","meat_on_bone","poultry_leg","cut_of_meat","bacon","hamburger","fries","pizza","hotdog","sandwich","taco","burrito","tamale","stuffed_flatbread","falafel","egg","fried_egg","shallow_pan_of_food","stew","fondue","bowl_with_spoon","green_salad","popcorn","butter","salt","canned_food","bento","rice_cracker","rice_ball","rice","curry","ramen","spaghetti","sweet_potato","oden","sushi","fried_shrimp","fish_cake","moon_cake","dango","dumpling","fortune_cookie","takeout_box","crab","lobster","shrimp","squid","oyster","icecream","shaved_ice","ice_cream","doughnut","cookie","birthday","cake","cupcake","pie","chocolate_bar","candy","lollipop","custard","honey_pot","baby_bottle","glass_of_milk","coffee","teapot","tea","sake","champagne","wine_glass","cocktail","tropical_drink","beer","beers","clinking_glasses","tumbler_glass","pouring_liquid","cup_with_straw","bubble_tea","beverage_box","mate_drink","ice_cube","chopsticks","knife_fork_plate","fork_and_knife","spoon","hocho","jar","amphora"]},{id:"activity",emojis:["jack_o_lantern","christmas_tree","fireworks","sparkler","firecracker","sparkles","balloon","tada","confetti_ball","tanabata_tree","bamboo","dolls","flags","wind_chime","rice_scene","red_envelope","ribbon","gift","reminder_ribbon","admission_tickets","ticket","medal","trophy","sports_medal","first_place_medal","second_place_medal","third_place_medal","soccer","baseball","softball","basketball","volleyball","football","rugby_football","tennis","flying_disc","bowling","cricket_bat_and_ball","field_hockey_stick_and_ball","ice_hockey_stick_and_puck","lacrosse","table_tennis_paddle_and_ball","badminton_racquet_and_shuttlecock","boxing_glove","martial_arts_uniform","goal_net","golf","ice_skate","fishing_pole_and_fish","diving_mask","running_shirt_with_sash","ski","sled","curling_stone","dart","yo-yo","kite","gun","8ball","crystal_ball","magic_wand","video_game","joystick","slot_machine","game_die","jigsaw","teddy_bear","pinata","mirror_ball","nesting_dolls","spades","hearts","diamonds","clubs","chess_pawn","black_joker","mahjong","flower_playing_cards","performing_arts","frame_with_picture","art","thread","sewing_needle","yarn","knot"]},{id:"places",emojis:["earth_africa","earth_americas","earth_asia","globe_with_meridians","world_map","japan","compass","snow_capped_mountain","mountain","volcano","mount_fuji","camping","beach_with_umbrella","desert","desert_island","national_park","stadium","classical_building","building_construction","bricks","rock","wood","hut","house_buildings","derelict_house_building","house","house_with_garden","office","post_office","european_post_office","hospital","bank","hotel","love_hotel","convenience_store","school","department_store","factory","japanese_castle","european_castle","wedding","tokyo_tower","statue_of_liberty","church","mosque","hindu_temple","synagogue","shinto_shrine","kaaba","fountain","tent","foggy","night_with_stars","cityscape","sunrise_over_mountains","sunrise","city_sunset","city_sunrise","bridge_at_night","hotsprings","carousel_horse","playground_slide","ferris_wheel","roller_coaster","barber","circus_tent","steam_locomotive","railway_car","bullettrain_side","bullettrain_front","train2","metro","light_rail","station","tram","monorail","mountain_railway","train","bus","oncoming_bus","trolleybus","minibus","ambulance","fire_engine","police_car","oncoming_police_car","taxi","oncoming_taxi","car","oncoming_automobile","blue_car","pickup_truck","truck","articulated_lorry","tractor","racing_car","racing_motorcycle","motor_scooter","manual_wheelchair","motorized_wheelchair","auto_rickshaw","bike","scooter","skateboard","roller_skate","busstop","motorway","railway_track","oil_drum","fuelpump","wheel","rotating_light","traffic_light","vertical_traffic_light","octagonal_sign","construction","anchor","ring_buoy","boat","canoe","speedboat","passenger_ship","ferry","motor_boat","ship","airplane","small_airplane","airplane_departure","airplane_arriving","parachute","seat","helicopter","suspension_railway","mountain_cableway","aerial_tramway","satellite","rocket","flying_saucer","bellhop_bell","luggage","hourglass","hourglass_flowing_sand","watch","alarm_clock","stopwatch","timer_clock","mantelpiece_clock","clock12","clock1230","clock1","clock130","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","clock10","clock1030","clock11","clock1130","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","crescent_moon","new_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","thermometer","sunny","full_moon_with_face","sun_with_face","ringed_planet","star","star2","stars","milky_way","cloud","partly_sunny","thunder_cloud_and_rain","mostly_sunny","barely_sunny","partly_sunny_rain","rain_cloud","snow_cloud","lightning","tornado","fog","wind_blowing_face","cyclone","rainbow","closed_umbrella","umbrella","umbrella_with_rain_drops","umbrella_on_ground","zap","snowflake","snowman","snowman_without_snow","comet","fire","droplet","ocean"]},{id:"objects",emojis:["eyeglasses","dark_sunglasses","goggles","lab_coat","safety_vest","necktie","shirt","jeans","scarf","gloves","coat","socks","dress","kimono","sari","one-piece_swimsuit","briefs","shorts","bikini","womans_clothes","folding_hand_fan","purse","handbag","pouch","shopping_bags","school_satchel","thong_sandal","mans_shoe","athletic_shoe","hiking_boot","womans_flat_shoe","high_heel","sandal","ballet_shoes","boot","hair_pick","crown","womans_hat","tophat","mortar_board","billed_cap","military_helmet","helmet_with_white_cross","prayer_beads","lipstick","ring","gem","mute","speaker","sound","loud_sound","loudspeaker","mega","postal_horn","bell","no_bell","musical_score","musical_note","notes","studio_microphone","level_slider","control_knobs","microphone","headphones","radio","saxophone","accordion","guitar","musical_keyboard","trumpet","violin","banjo","drum_with_drumsticks","long_drum","maracas","flute","iphone","calling","phone","telephone_receiver","pager","fax","battery","low_battery","electric_plug","computer","desktop_computer","printer","keyboard","three_button_mouse","trackball","minidisc","floppy_disk","cd","dvd","abacus","movie_camera","film_frames","film_projector","clapper","tv","camera","camera_with_flash","video_camera","vhs","mag","mag_right","candle","bulb","flashlight","izakaya_lantern","diya_lamp","notebook_with_decorative_cover","closed_book","book","green_book","blue_book","orange_book","books","notebook","ledger","page_with_curl","scroll","page_facing_up","newspaper","rolled_up_newspaper","bookmark_tabs","bookmark","label","moneybag","coin","yen","dollar","euro","pound","money_with_wings","credit_card","receipt","chart","email","e-mail","incoming_envelope","envelope_with_arrow","outbox_tray","inbox_tray","package","mailbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","postbox","ballot_box_with_ballot","pencil2","black_nib","lower_left_fountain_pen","lower_left_ballpoint_pen","lower_left_paintbrush","lower_left_crayon","memo","briefcase","file_folder","open_file_folder","card_index_dividers","date","calendar","spiral_note_pad","spiral_calendar_pad","card_index","chart_with_upwards_trend","chart_with_downwards_trend","bar_chart","clipboard","pushpin","round_pushpin","paperclip","linked_paperclips","straight_ruler","triangular_ruler","scissors","card_file_box","file_cabinet","wastebasket","lock","unlock","lock_with_ink_pen","closed_lock_with_key","key","old_key","hammer","axe","pick","hammer_and_pick","hammer_and_wrench","dagger_knife","crossed_swords","bomb","boomerang","bow_and_arrow","shield","carpentry_saw","wrench","screwdriver","nut_and_bolt","gear","compression","scales","probing_cane","link","chains","hook","toolbox","magnet","ladder","alembic","test_tube","petri_dish","dna","microscope","telescope","satellite_antenna","syringe","drop_of_blood","pill","adhesive_bandage","crutch","stethoscope","x-ray","door","elevator","mirror","window","bed","couch_and_lamp","chair","toilet","plunger","shower","bathtub","mouse_trap","razor","lotion_bottle","safety_pin","broom","basket","roll_of_paper","bucket","soap","bubbles","toothbrush","sponge","fire_extinguisher","shopping_trolley","smoking","coffin","headstone","funeral_urn","nazar_amulet","hamsa","moyai","placard","identification_card"]},{id:"symbols",emojis:["atm","put_litter_in_its_place","potable_water","wheelchair","mens","womens","restroom","baby_symbol","wc","passport_control","customs","baggage_claim","left_luggage","warning","children_crossing","no_entry","no_entry_sign","no_bicycles","no_smoking","do_not_litter","non-potable_water","no_pedestrians","no_mobile_phones","underage","radioactive_sign","biohazard_sign","arrow_up","arrow_upper_right","arrow_right","arrow_lower_right","arrow_down","arrow_lower_left","arrow_left","arrow_upper_left","arrow_up_down","left_right_arrow","leftwards_arrow_with_hook","arrow_right_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","arrows_counterclockwise","back","end","on","soon","top","place_of_worship","atom_symbol","om_symbol","star_of_david","wheel_of_dharma","yin_yang","latin_cross","orthodox_cross","star_and_crescent","peace_symbol","menorah_with_nine_branches","six_pointed_star","khanda","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","twisted_rightwards_arrows","repeat","repeat_one","arrow_forward","fast_forward","black_right_pointing_double_triangle_with_vertical_bar","black_right_pointing_triangle_with_double_vertical_bar","arrow_backward","rewind","black_left_pointing_double_triangle_with_vertical_bar","arrow_up_small","arrow_double_up","arrow_down_small","arrow_double_down","double_vertical_bar","black_square_for_stop","black_circle_for_record","eject","cinema","low_brightness","high_brightness","signal_strength","wireless","vibration_mode","mobile_phone_off","female_sign","male_sign","transgender_symbol","heavy_multiplication_x","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_equals_sign","infinity","bangbang","interrobang","question","grey_question","grey_exclamation","exclamation","wavy_dash","currency_exchange","heavy_dollar_sign","medical_symbol","recycle","fleur_de_lis","trident","name_badge","beginner","o","white_check_mark","ballot_box_with_check","heavy_check_mark","x","negative_squared_cross_mark","curly_loop","loop","part_alternation_mark","eight_spoked_asterisk","eight_pointed_black_star","sparkle","copyright","registered","tm","hash","keycap_star","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","capital_abcd","abcd","1234","symbols","abc","a","ab","b","cl","cool","free","information_source","id","m","new","ng","o2","ok","parking","sos","up","vs","koko","sa","u6708","u6709","u6307","ideograph_advantage","u5272","u7121","u7981","accept","u7533","u5408","u7a7a","congratulations","secret","u55b6","u6e80","red_circle","large_orange_circle","large_yellow_circle","large_green_circle","large_blue_circle","large_purple_circle","large_brown_circle","black_circle","white_circle","large_red_square","large_orange_square","large_yellow_square","large_green_square","large_blue_square","large_purple_square","large_brown_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_small_square","white_small_square","large_orange_diamond","large_blue_diamond","small_orange_diamond","small_blue_diamond","small_red_triangle","small_red_triangle_down","diamond_shape_with_a_dot_inside","radio_button","white_square_button","black_square_button"]},{id:"flags",emojis:["checkered_flag","cn","crossed_flags","de","es","flag-ac","flag-ad","flag-ae","flag-af","flag-ag","flag-ai","flag-al","flag-am","flag-ao","flag-aq","flag-ar","flag-as","flag-at","flag-au","flag-aw","flag-ax","flag-az","flag-ba","flag-bb","flag-bd","flag-be","flag-bf","flag-bg","flag-bh","flag-bi","flag-bj","flag-bl","flag-bm","flag-bn","flag-bo","flag-bq","flag-br","flag-bs","flag-bt","flag-bv","flag-bw","flag-by","flag-bz","flag-ca","flag-cc","flag-cd","flag-cf","flag-cg","flag-ch","flag-ci","flag-ck","flag-cl","flag-cm","flag-co","flag-cp","flag-cr","flag-cu","flag-cv","flag-cw","flag-cx","flag-cy","flag-cz","flag-dg","flag-dj","flag-dk","flag-dm","flag-do","flag-dz","flag-ea","flag-ec","flag-ee","flag-eg","flag-eh","flag-england","flag-er","flag-et","flag-eu","flag-fi","flag-fj","flag-fk","flag-fm","flag-fo","flag-ga","flag-gd","flag-ge","flag-gf","flag-gg","flag-gh","flag-gi","flag-gl","flag-gm","flag-gn","flag-gp","flag-gq","flag-gr","flag-gs","flag-gt","flag-gu","flag-gw","flag-gy","flag-hk","flag-hm","flag-hn","flag-hr","flag-ht","flag-hu","flag-ic","flag-id","flag-ie","flag-il","flag-im","flag-in","flag-io","flag-iq","flag-ir","flag-is","flag-je","flag-jm","flag-jo","flag-ke","flag-kg","flag-kh","flag-ki","flag-km","flag-kn","flag-kp","flag-kw","flag-ky","flag-kz","flag-la","flag-lb","flag-lc","flag-li","flag-lk","flag-lr","flag-ls","flag-lt","flag-lu","flag-lv","flag-ly","flag-ma","flag-mc","flag-md","flag-me","flag-mf","flag-mg","flag-mh","flag-mk","flag-ml","flag-mm","flag-mn","flag-mo","flag-mp","flag-mq","flag-mr","flag-ms","flag-mt","flag-mu","flag-mv","flag-mw","flag-mx","flag-my","flag-mz","flag-na","flag-nc","flag-ne","flag-nf","flag-ng","flag-ni","flag-nl","flag-no","flag-np","flag-nr","flag-nu","flag-nz","flag-om","flag-pa","flag-pe","flag-pf","flag-pg","flag-ph","flag-pk","flag-pl","flag-pm","flag-pn","flag-pr","flag-ps","flag-pt","flag-pw","flag-py","flag-qa","flag-re","flag-ro","flag-rs","flag-rw","flag-sa","flag-sb","flag-sc","flag-scotland","flag-sd","flag-se","flag-sg","flag-sh","flag-si","flag-sj","flag-sk","flag-sl","flag-sm","flag-sn","flag-so","flag-sr","flag-ss","flag-st","flag-sv","flag-sx","flag-sy","flag-sz","flag-ta","flag-tc","flag-td","flag-tf","flag-tg","flag-th","flag-tj","flag-tk","flag-tl","flag-tm","flag-tn","flag-to","flag-tr","flag-tt","flag-tv","flag-tw","flag-tz","flag-ua","flag-ug","flag-um","flag-un","flag-uy","flag-uz","flag-va","flag-vc","flag-ve","flag-vg","flag-vi","flag-vn","flag-vu","flag-wales","flag-wf","flag-ws","flag-xk","flag-ye","flag-yt","flag-za","flag-zm","flag-zw","fr","gb","it","jp","kr","pirate_flag","rainbow-flag","ru","transgender_flag","triangular_flag_on_post","us","waving_black_flag","waving_white_flag"]}],IKt={100:{id:"100",name:"Hundred Points",keywords:["100","score","perfect","numbers","century","exam","quiz","test","pass"],skins:[{unified:"1f4af",native:"💯"}],version:1},1234:{id:"1234",name:"Input Numbers",keywords:["1234","blue","square","1","2","3","4"],skins:[{unified:"1f522",native:"🔢"}],version:1},grinning:{id:"grinning",name:"Grinning Face",emoticons:[":D"],keywords:["smile","happy","joy",":D","grin"],skins:[{unified:"1f600",native:"😀"}],version:1},smiley:{id:"smiley",name:"Grinning Face with Big Eyes",emoticons:[":)","=)","=-)"],keywords:["smiley","happy","joy","haha",":D",":)","smile","funny"],skins:[{unified:"1f603",native:"😃"}],version:1},smile:{id:"smile",name:"Grinning Face with Smiling Eyes",emoticons:[":)","C:","c:",":D",":-D"],keywords:["smile","happy","joy","funny","haha","laugh","like",":D",":)"],skins:[{unified:"1f604",native:"😄"}],version:1},grin:{id:"grin",name:"Beaming Face with Smiling Eyes",keywords:["grin","happy","smile","joy","kawaii"],skins:[{unified:"1f601",native:"😁"}],version:1},laughing:{id:"laughing",name:"Grinning Squinting Face",emoticons:[":>",":->"],keywords:["laughing","satisfied","happy","joy","lol","haha","glad","XD","laugh"],skins:[{unified:"1f606",native:"😆"}],version:1},sweat_smile:{id:"sweat_smile",name:"Grinning Face with Sweat",keywords:["smile","hot","happy","laugh","relief"],skins:[{unified:"1f605",native:"😅"}],version:1},rolling_on_the_floor_laughing:{id:"rolling_on_the_floor_laughing",name:"Rolling on the Floor Laughing",keywords:["face","lol","haha","rofl"],skins:[{unified:"1f923",native:"🤣"}],version:3},joy:{id:"joy",name:"Face with Tears of Joy",keywords:["cry","weep","happy","happytears","haha"],skins:[{unified:"1f602",native:"😂"}],version:1},slightly_smiling_face:{id:"slightly_smiling_face",name:"Slightly Smiling Face",emoticons:[":)","(:",":-)"],keywords:["smile"],skins:[{unified:"1f642",native:"🙂"}],version:1},upside_down_face:{id:"upside_down_face",name:"Upside-Down Face",keywords:["upside","down","flipped","silly","smile"],skins:[{unified:"1f643",native:"🙃"}],version:1},melting_face:{id:"melting_face",name:"Melting Face",keywords:["hot","heat"],skins:[{unified:"1fae0",native:"🫠"}],version:14},wink:{id:"wink",name:"Winking Face",emoticons:[";)",";-)"],keywords:["wink","happy","mischievous","secret",";)","smile","eye"],skins:[{unified:"1f609",native:"😉"}],version:1},blush:{id:"blush",name:"Smiling Face with Smiling Eyes",emoticons:[":)"],keywords:["blush","smile","happy","flushed","crush","embarrassed","shy","joy"],skins:[{unified:"1f60a",native:"😊"}],version:1},innocent:{id:"innocent",name:"Smiling Face with Halo",keywords:["innocent","angel","heaven"],skins:[{unified:"1f607",native:"😇"}],version:1},smiling_face_with_3_hearts:{id:"smiling_face_with_3_hearts",name:"Smiling Face with Hearts",keywords:["3","love","like","affection","valentines","infatuation","crush","adore"],skins:[{unified:"1f970",native:"🥰"}],version:11},heart_eyes:{id:"heart_eyes",name:"Smiling Face with Heart-Eyes",keywords:["heart","eyes","love","like","affection","valentines","infatuation","crush"],skins:[{unified:"1f60d",native:"😍"}],version:1},"star-struck":{id:"star-struck",name:"Star-Struck",keywords:["star","struck","grinning","face","with","eyes","smile","starry"],skins:[{unified:"1f929",native:"🤩"}],version:5},kissing_heart:{id:"kissing_heart",name:"Face Blowing a Kiss",emoticons:[":*",":-*"],keywords:["kissing","heart","love","like","affection","valentines","infatuation"],skins:[{unified:"1f618",native:"😘"}],version:1},kissing:{id:"kissing",name:"Kissing Face",keywords:["love","like","3","valentines","infatuation","kiss"],skins:[{unified:"1f617",native:"😗"}],version:1},relaxed:{id:"relaxed",name:"Smiling Face",keywords:["relaxed","blush","massage","happiness"],skins:[{unified:"263a-fe0f",native:"☺️"}],version:1},kissing_closed_eyes:{id:"kissing_closed_eyes",name:"Kissing Face with Closed Eyes",keywords:["love","like","affection","valentines","infatuation","kiss"],skins:[{unified:"1f61a",native:"😚"}],version:1},kissing_smiling_eyes:{id:"kissing_smiling_eyes",name:"Kissing Face with Smiling Eyes",keywords:["affection","valentines","infatuation","kiss"],skins:[{unified:"1f619",native:"😙"}],version:1},smiling_face_with_tear:{id:"smiling_face_with_tear",name:"Smiling Face with Tear",keywords:["sad","cry","pretend"],skins:[{unified:"1f972",native:"🥲"}],version:13},yum:{id:"yum",name:"Face Savoring Food",keywords:["yum","happy","joy","tongue","smile","silly","yummy","nom","delicious","savouring"],skins:[{unified:"1f60b",native:"😋"}],version:1},stuck_out_tongue:{id:"stuck_out_tongue",name:"Face with Tongue",emoticons:[":p",":-p",":P",":-P",":b",":-b"],keywords:["stuck","out","prank","childish","playful","mischievous","smile"],skins:[{unified:"1f61b",native:"😛"}],version:1},stuck_out_tongue_winking_eye:{id:"stuck_out_tongue_winking_eye",name:"Winking Face with Tongue",emoticons:[";p",";-p",";b",";-b",";P",";-P"],keywords:["stuck","out","eye","prank","childish","playful","mischievous","smile","wink"],skins:[{unified:"1f61c",native:"😜"}],version:1},zany_face:{id:"zany_face",name:"Zany Face",keywords:["grinning","with","one","large","and","small","eye","goofy","crazy"],skins:[{unified:"1f92a",native:"🤪"}],version:5},stuck_out_tongue_closed_eyes:{id:"stuck_out_tongue_closed_eyes",name:"Squinting Face with Tongue",keywords:["stuck","out","closed","eyes","prank","playful","mischievous","smile"],skins:[{unified:"1f61d",native:"😝"}],version:1},money_mouth_face:{id:"money_mouth_face",name:"Money-Mouth Face",keywords:["money","mouth","rich","dollar"],skins:[{unified:"1f911",native:"🤑"}],version:1},hugging_face:{id:"hugging_face",name:"Hugging Face",keywords:["smile","hug"],skins:[{unified:"1f917",native:"🤗"}],version:1},face_with_hand_over_mouth:{id:"face_with_hand_over_mouth",name:"Face with Hand over Mouth",keywords:["smiling","eyes","and","covering","whoops","shock","surprise"],skins:[{unified:"1f92d",native:"🤭"}],version:5},face_with_open_eyes_and_hand_over_mouth:{id:"face_with_open_eyes_and_hand_over_mouth",name:"Face with Open Eyes and Hand over Mouth",keywords:["silence","secret","shock","surprise"],skins:[{unified:"1fae2",native:"🫢"}],version:14},face_with_peeking_eye:{id:"face_with_peeking_eye",name:"Face with Peeking Eye",keywords:["scared","frightening","embarrassing","shy"],skins:[{unified:"1fae3",native:"🫣"}],version:14},shushing_face:{id:"shushing_face",name:"Shushing Face",keywords:["with","finger","covering","closed","lips","quiet","shhh"],skins:[{unified:"1f92b",native:"🤫"}],version:5},thinking_face:{id:"thinking_face",name:"Thinking Face",keywords:["hmmm","think","consider"],skins:[{unified:"1f914",native:"🤔"}],version:1},saluting_face:{id:"saluting_face",name:"Saluting Face",keywords:["respect","salute"],skins:[{unified:"1fae1",native:"🫡"}],version:14},zipper_mouth_face:{id:"zipper_mouth_face",name:"Zipper-Mouth Face",keywords:["zipper","mouth","sealed","secret"],skins:[{unified:"1f910",native:"🤐"}],version:1},face_with_raised_eyebrow:{id:"face_with_raised_eyebrow",name:"Face with Raised Eyebrow",keywords:["one","distrust","scepticism","disapproval","disbelief","surprise"],skins:[{unified:"1f928",native:"🤨"}],version:5},neutral_face:{id:"neutral_face",name:"Neutral Face",emoticons:[":|",":-|"],keywords:["indifference","meh",":",""],skins:[{unified:"1f610",native:"😐"}],version:1},expressionless:{id:"expressionless",name:"Expressionless Face",emoticons:["-_-"],keywords:["indifferent","-","","meh","deadpan"],skins:[{unified:"1f611",native:"😑"}],version:1},no_mouth:{id:"no_mouth",name:"Face Without Mouth",keywords:["no","hellokitty"],skins:[{unified:"1f636",native:"😶"}],version:1},dotted_line_face:{id:"dotted_line_face",name:"Dotted Line Face",keywords:["invisible","lonely","isolation","depression"],skins:[{unified:"1fae5",native:"🫥"}],version:14},face_in_clouds:{id:"face_in_clouds",name:"Face in Clouds",keywords:["shower","steam","dream"],skins:[{unified:"1f636-200d-1f32b-fe0f",native:"😶‍🌫️"}],version:13.1},smirk:{id:"smirk",name:"Smirking Face",keywords:["smirk","smile","mean","prank","smug","sarcasm"],skins:[{unified:"1f60f",native:"😏"}],version:1},unamused:{id:"unamused",name:"Unamused Face",emoticons:[":("],keywords:["indifference","bored","straight","serious","sarcasm","unimpressed","skeptical","dubious","side","eye"],skins:[{unified:"1f612",native:"😒"}],version:1},face_with_rolling_eyes:{id:"face_with_rolling_eyes",name:"Face with Rolling Eyes",keywords:["eyeroll","frustrated"],skins:[{unified:"1f644",native:"🙄"}],version:1},grimacing:{id:"grimacing",name:"Grimacing Face",keywords:["grimace","teeth"],skins:[{unified:"1f62c",native:"😬"}],version:1},face_exhaling:{id:"face_exhaling",name:"Face Exhaling",keywords:["relieve","relief","tired","sigh"],skins:[{unified:"1f62e-200d-1f4a8",native:"😮‍💨"}],version:13.1},lying_face:{id:"lying_face",name:"Lying Face",keywords:["lie","pinocchio"],skins:[{unified:"1f925",native:"🤥"}],version:3},shaking_face:{id:"shaking_face",name:"Shaking Face",keywords:["dizzy","shock","blurry","earthquake"],skins:[{unified:"1fae8",native:"🫨"}],version:15},relieved:{id:"relieved",name:"Relieved Face",keywords:["relaxed","phew","massage","happiness"],skins:[{unified:"1f60c",native:"😌"}],version:1},pensive:{id:"pensive",name:"Pensive Face",keywords:["sad","depressed","upset"],skins:[{unified:"1f614",native:"😔"}],version:1},sleepy:{id:"sleepy",name:"Sleepy Face",keywords:["tired","rest","nap"],skins:[{unified:"1f62a",native:"😪"}],version:1},drooling_face:{id:"drooling_face",name:"Drooling Face",keywords:[],skins:[{unified:"1f924",native:"🤤"}],version:3},sleeping:{id:"sleeping",name:"Sleeping Face",keywords:["tired","sleepy","night","zzz"],skins:[{unified:"1f634",native:"😴"}],version:1},mask:{id:"mask",name:"Face with Medical Mask",keywords:["sick","ill","disease","covid"],skins:[{unified:"1f637",native:"😷"}],version:1},face_with_thermometer:{id:"face_with_thermometer",name:"Face with Thermometer",keywords:["sick","temperature","cold","fever","covid"],skins:[{unified:"1f912",native:"🤒"}],version:1},face_with_head_bandage:{id:"face_with_head_bandage",name:"Face with Head-Bandage",keywords:["head","bandage","injured","clumsy","hurt"],skins:[{unified:"1f915",native:"🤕"}],version:1},nauseated_face:{id:"nauseated_face",name:"Nauseated Face",keywords:["vomit","gross","green","sick","throw","up","ill"],skins:[{unified:"1f922",native:"🤢"}],version:3},face_vomiting:{id:"face_vomiting",name:"Face Vomiting",keywords:["with","open","mouth","sick"],skins:[{unified:"1f92e",native:"🤮"}],version:5},sneezing_face:{id:"sneezing_face",name:"Sneezing Face",keywords:["gesundheit","sneeze","sick","allergy"],skins:[{unified:"1f927",native:"🤧"}],version:3},hot_face:{id:"hot_face",name:"Hot Face",keywords:["feverish","heat","red","sweating"],skins:[{unified:"1f975",native:"🥵"}],version:11},cold_face:{id:"cold_face",name:"Cold Face",keywords:["blue","freezing","frozen","frostbite","icicles"],skins:[{unified:"1f976",native:"🥶"}],version:11},woozy_face:{id:"woozy_face",name:"Woozy Face",keywords:["dizzy","intoxicated","tipsy","wavy"],skins:[{unified:"1f974",native:"🥴"}],version:11},dizzy_face:{id:"dizzy_face",name:"Dizzy Face",keywords:["spent","unconscious","xox"],skins:[{unified:"1f635",native:"😵"}],version:1},face_with_spiral_eyes:{id:"face_with_spiral_eyes",name:"Face with Spiral Eyes",keywords:["sick","ill","confused","nauseous","nausea"],skins:[{unified:"1f635-200d-1f4ab",native:"😵‍💫"}],version:13.1},exploding_head:{id:"exploding_head",name:"Exploding Head",keywords:["shocked","face","with","mind","blown"],skins:[{unified:"1f92f",native:"🤯"}],version:5},face_with_cowboy_hat:{id:"face_with_cowboy_hat",name:"Cowboy Hat Face",keywords:["with","cowgirl"],skins:[{unified:"1f920",native:"🤠"}],version:3},partying_face:{id:"partying_face",name:"Partying Face",keywords:["celebration","woohoo"],skins:[{unified:"1f973",native:"🥳"}],version:11},disguised_face:{id:"disguised_face",name:"Disguised Face",keywords:["pretent","brows","glasses","moustache"],skins:[{unified:"1f978",native:"🥸"}],version:13},sunglasses:{id:"sunglasses",name:"Smiling Face with Sunglasses",emoticons:["8)"],keywords:["cool","smile","summer","beach","sunglass"],skins:[{unified:"1f60e",native:"😎"}],version:1},nerd_face:{id:"nerd_face",name:"Nerd Face",keywords:["nerdy","geek","dork"],skins:[{unified:"1f913",native:"🤓"}],version:1},face_with_monocle:{id:"face_with_monocle",name:"Face with Monocle",keywords:["stuffy","wealthy"],skins:[{unified:"1f9d0",native:"🧐"}],version:5},confused:{id:"confused",name:"Confused Face",emoticons:[":\\",":-\\",":/",":-/"],keywords:["indifference","huh","weird","hmmm",":/"],skins:[{unified:"1f615",native:"😕"}],version:1},face_with_diagonal_mouth:{id:"face_with_diagonal_mouth",name:"Face with Diagonal Mouth",keywords:["skeptic","confuse","frustrated","indifferent"],skins:[{unified:"1fae4",native:"🫤"}],version:14},worried:{id:"worried",name:"Worried Face",keywords:["concern","nervous",":("],skins:[{unified:"1f61f",native:"😟"}],version:1},slightly_frowning_face:{id:"slightly_frowning_face",name:"Slightly Frowning Face",keywords:["disappointed","sad","upset"],skins:[{unified:"1f641",native:"🙁"}],version:1},white_frowning_face:{id:"white_frowning_face",name:"Frowning Face",keywords:["white","sad","upset","frown"],skins:[{unified:"2639-fe0f",native:"☹️"}],version:1},open_mouth:{id:"open_mouth",name:"Face with Open Mouth",emoticons:[":o",":-o",":O",":-O"],keywords:["surprise","impressed","wow","whoa",":O"],skins:[{unified:"1f62e",native:"😮"}],version:1},hushed:{id:"hushed",name:"Hushed Face",keywords:["woo","shh"],skins:[{unified:"1f62f",native:"😯"}],version:1},astonished:{id:"astonished",name:"Astonished Face",keywords:["xox","surprised","poisoned"],skins:[{unified:"1f632",native:"😲"}],version:1},flushed:{id:"flushed",name:"Flushed Face",keywords:["blush","shy","flattered"],skins:[{unified:"1f633",native:"😳"}],version:1},pleading_face:{id:"pleading_face",name:"Pleading Face",keywords:["begging","mercy","cry","tears","sad","grievance"],skins:[{unified:"1f97a",native:"🥺"}],version:11},face_holding_back_tears:{id:"face_holding_back_tears",name:"Face Holding Back Tears",keywords:["touched","gratitude","cry"],skins:[{unified:"1f979",native:"🥹"}],version:14},frowning:{id:"frowning",name:"Frowning Face with Open Mouth",keywords:["aw","what"],skins:[{unified:"1f626",native:"😦"}],version:1},anguished:{id:"anguished",name:"Anguished Face",emoticons:["D:"],keywords:["stunned","nervous"],skins:[{unified:"1f627",native:"😧"}],version:1},fearful:{id:"fearful",name:"Fearful Face",keywords:["scared","terrified","nervous"],skins:[{unified:"1f628",native:"😨"}],version:1},cold_sweat:{id:"cold_sweat",name:"Anxious Face with Sweat",keywords:["cold","nervous"],skins:[{unified:"1f630",native:"😰"}],version:1},disappointed_relieved:{id:"disappointed_relieved",name:"Sad but Relieved Face",keywords:["disappointed","phew","sweat","nervous"],skins:[{unified:"1f625",native:"😥"}],version:1},cry:{id:"cry",name:"Crying Face",emoticons:[":'("],keywords:["cry","tears","sad","depressed","upset",":'("],skins:[{unified:"1f622",native:"😢"}],version:1},sob:{id:"sob",name:"Loudly Crying Face",emoticons:[":'("],keywords:["sob","cry","tears","sad","upset","depressed"],skins:[{unified:"1f62d",native:"😭"}],version:1},scream:{id:"scream",name:"Face Screaming in Fear",keywords:["scream","munch","scared","omg"],skins:[{unified:"1f631",native:"😱"}],version:1},confounded:{id:"confounded",name:"Confounded Face",keywords:["confused","sick","unwell","oops",":S"],skins:[{unified:"1f616",native:"😖"}],version:1},persevere:{id:"persevere",name:"Persevering Face",keywords:["persevere","sick","no","upset","oops"],skins:[{unified:"1f623",native:"😣"}],version:1},disappointed:{id:"disappointed",name:"Disappointed Face",emoticons:["):",":(",":-("],keywords:["sad","upset","depressed",":("],skins:[{unified:"1f61e",native:"😞"}],version:1},sweat:{id:"sweat",name:"Face with Cold Sweat",keywords:["downcast","hot","sad","tired","exercise"],skins:[{unified:"1f613",native:"😓"}],version:1},weary:{id:"weary",name:"Weary Face",keywords:["tired","sleepy","sad","frustrated","upset"],skins:[{unified:"1f629",native:"😩"}],version:1},tired_face:{id:"tired_face",name:"Tired Face",keywords:["sick","whine","upset","frustrated"],skins:[{unified:"1f62b",native:"😫"}],version:1},yawning_face:{id:"yawning_face",name:"Yawning Face",keywords:["tired","sleepy"],skins:[{unified:"1f971",native:"🥱"}],version:12},triumph:{id:"triumph",name:"Face with Look of Triumph",keywords:["steam","from","nose","gas","phew","proud","pride"],skins:[{unified:"1f624",native:"😤"}],version:1},rage:{id:"rage",name:"Pouting Face",keywords:["rage","angry","mad","hate","despise"],skins:[{unified:"1f621",native:"😡"}],version:1},angry:{id:"angry",name:"Angry Face",emoticons:[">:(",">:-("],keywords:["mad","annoyed","frustrated"],skins:[{unified:"1f620",native:"😠"}],version:1},face_with_symbols_on_mouth:{id:"face_with_symbols_on_mouth",name:"Face with Symbols on Mouth",keywords:["serious","covering","swearing","cursing","cussing","profanity","expletive"],skins:[{unified:"1f92c",native:"🤬"}],version:5},smiling_imp:{id:"smiling_imp",name:"Smiling Face with Horns",keywords:["imp","devil"],skins:[{unified:"1f608",native:"😈"}],version:1},imp:{id:"imp",name:"Imp",keywords:["angry","face","with","horns","devil"],skins:[{unified:"1f47f",native:"👿"}],version:1},skull:{id:"skull",name:"Skull",keywords:["dead","skeleton","creepy","death"],skins:[{unified:"1f480",native:"💀"}],version:1},skull_and_crossbones:{id:"skull_and_crossbones",name:"Skull and Crossbones",keywords:["poison","danger","deadly","scary","death","pirate","evil"],skins:[{unified:"2620-fe0f",native:"☠️"}],version:1},hankey:{id:"hankey",name:"Pile of Poo",keywords:["hankey","poop","shit","shitface","fail","turd"],skins:[{unified:"1f4a9",native:"💩"}],version:1},clown_face:{id:"clown_face",name:"Clown Face",keywords:[],skins:[{unified:"1f921",native:"🤡"}],version:3},japanese_ogre:{id:"japanese_ogre",name:"Ogre",keywords:["japanese","monster","red","mask","halloween","scary","creepy","devil","demon"],skins:[{unified:"1f479",native:"👹"}],version:1},japanese_goblin:{id:"japanese_goblin",name:"Goblin",keywords:["japanese","red","evil","mask","monster","scary","creepy"],skins:[{unified:"1f47a",native:"👺"}],version:1},ghost:{id:"ghost",name:"Ghost",keywords:["halloween","spooky","scary"],skins:[{unified:"1f47b",native:"👻"}],version:1},alien:{id:"alien",name:"Alien",keywords:["UFO","paul","weird","outer","space"],skins:[{unified:"1f47d",native:"👽"}],version:1},space_invader:{id:"space_invader",name:"Alien Monster",keywords:["space","invader","game","arcade","play"],skins:[{unified:"1f47e",native:"👾"}],version:1},robot_face:{id:"robot_face",name:"Robot",keywords:["face","computer","machine","bot"],skins:[{unified:"1f916",native:"🤖"}],version:1},smiley_cat:{id:"smiley_cat",name:"Grinning Cat",keywords:["smiley","animal","cats","happy","smile"],skins:[{unified:"1f63a",native:"😺"}],version:1},smile_cat:{id:"smile_cat",name:"Grinning Cat with Smiling Eyes",keywords:["smile","animal","cats"],skins:[{unified:"1f638",native:"😸"}],version:1},joy_cat:{id:"joy_cat",name:"Cat with Tears of Joy",keywords:["animal","cats","haha","happy"],skins:[{unified:"1f639",native:"😹"}],version:1},heart_eyes_cat:{id:"heart_eyes_cat",name:"Smiling Cat with Heart-Eyes",keywords:["heart","eyes","animal","love","like","affection","cats","valentines"],skins:[{unified:"1f63b",native:"😻"}],version:1},smirk_cat:{id:"smirk_cat",name:"Cat with Wry Smile",keywords:["smirk","animal","cats"],skins:[{unified:"1f63c",native:"😼"}],version:1},kissing_cat:{id:"kissing_cat",name:"Kissing Cat",keywords:["animal","cats","kiss"],skins:[{unified:"1f63d",native:"😽"}],version:1},scream_cat:{id:"scream_cat",name:"Weary Cat",keywords:["scream","animal","cats","munch","scared"],skins:[{unified:"1f640",native:"🙀"}],version:1},crying_cat_face:{id:"crying_cat_face",name:"Crying Cat",keywords:["face","animal","tears","weep","sad","cats","upset","cry"],skins:[{unified:"1f63f",native:"😿"}],version:1},pouting_cat:{id:"pouting_cat",name:"Pouting Cat",keywords:["animal","cats"],skins:[{unified:"1f63e",native:"😾"}],version:1},see_no_evil:{id:"see_no_evil",name:"See-No-Evil Monkey",keywords:["see","no","evil","animal","nature","haha"],skins:[{unified:"1f648",native:"🙈"}],version:1},hear_no_evil:{id:"hear_no_evil",name:"Hear-No-Evil Monkey",keywords:["hear","no","evil","animal","nature"],skins:[{unified:"1f649",native:"🙉"}],version:1},speak_no_evil:{id:"speak_no_evil",name:"Speak-No-Evil Monkey",keywords:["speak","no","evil","animal","nature","omg"],skins:[{unified:"1f64a",native:"🙊"}],version:1},love_letter:{id:"love_letter",name:"Love Letter",keywords:["email","like","affection","envelope","valentines"],skins:[{unified:"1f48c",native:"💌"}],version:1},cupid:{id:"cupid",name:"Heart with Arrow",keywords:["cupid","love","like","affection","valentines"],skins:[{unified:"1f498",native:"💘"}],version:1},gift_heart:{id:"gift_heart",name:"Heart with Ribbon",keywords:["gift","love","valentines"],skins:[{unified:"1f49d",native:"💝"}],version:1},sparkling_heart:{id:"sparkling_heart",name:"Sparkling Heart",keywords:["love","like","affection","valentines"],skins:[{unified:"1f496",native:"💖"}],version:1},heartpulse:{id:"heartpulse",name:"Growing Heart",keywords:["heartpulse","like","love","affection","valentines","pink"],skins:[{unified:"1f497",native:"💗"}],version:1},heartbeat:{id:"heartbeat",name:"Beating Heart",keywords:["heartbeat","love","like","affection","valentines","pink"],skins:[{unified:"1f493",native:"💓"}],version:1},revolving_hearts:{id:"revolving_hearts",name:"Revolving Hearts",keywords:["love","like","affection","valentines"],skins:[{unified:"1f49e",native:"💞"}],version:1},two_hearts:{id:"two_hearts",name:"Two Hearts",keywords:["love","like","affection","valentines","heart"],skins:[{unified:"1f495",native:"💕"}],version:1},heart_decoration:{id:"heart_decoration",name:"Heart Decoration",keywords:["purple","square","love","like"],skins:[{unified:"1f49f",native:"💟"}],version:1},heavy_heart_exclamation_mark_ornament:{id:"heavy_heart_exclamation_mark_ornament",name:"Heart Exclamation",keywords:["heavy","mark","ornament","decoration","love"],skins:[{unified:"2763-fe0f",native:"❣️"}],version:1},broken_heart:{id:"broken_heart",name:"Broken Heart",emoticons:["2&&(o.children=arguments.length>3?r7.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return M_(e,o,r,i,null)}function M_(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++_4e};return i==null&&lr.vnode!=null&&lr.vnode(a),a}function Wd(){return{current:null}}function X0(e){return e.children}function ud(e,t){this.props=e,this.context=t}function Z0(e,t){if(t==null)return e.__?Z0(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?M_(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(p=y[u])===null||p&&h.key==p.key&&h.type===p.type)y[u]=void 0;else for(f=0;f{let e=null;try{navigator.userAgent.includes("jsdom")||(e=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!e)return()=>!1;const t=25,n=20,r=Math.floor(t/2);return e.font=r+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=n*2,e.canvas.height=t,i=>{e.clearRect(0,0,n*2,t),e.fillStyle="#FF0000",e.fillText(i,0,22),e.fillStyle="#0000FF",e.fillText(i,n,22);const a=e.getImageData(0,0,n,t).data,o=a.length;let s=0;for(;s=o)return!1;const l=n+s/4%n,c=Math.floor(s/4/n),u=e.getImageData(l,c,1,1).data;return!(a[s]!==u[0]||a[s+2]!==u[2]||e.measureText(i).width>=n)}})();var Cre={latestVersion:WKt,noCountryFlags:VKt};const zA=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let mo=null;function KKt(e){mo||(mo=ah.get("frequently")||{});const t=e.id||e;t&&(mo[t]||(mo[t]=0),mo[t]+=1,ah.set("last",t),ah.set("frequently",mo))}function GKt({maxFrequentRows:e,perLine:t}){if(!e)return[];mo||(mo=ah.get("frequently"));let n=[];if(!mo){mo={};for(let a in zA.slice(0,t)){const o=zA[a];mo[o]=t-a,n.push(o)}return n}const r=e*t,i=ah.get("last");for(let a in mo)n.push(a);if(n.sort((a,o)=>{const s=mo[o],l=mo[a];return s==l?a.localeCompare(o):s-l}),n.length>r){const a=n.slice(r);n=n.slice(0,r);for(let o of a)o!=i&&delete mo[o];i&&n.indexOf(i)==-1&&(delete mo[n[n.length-1]],n.splice(-1,1,i)),ah.set("frequently",mo)}return n}var D4e={add:KKt,get:GKt,DEFAULTS:zA},F4e={};F4e=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var sf={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let No=null,Rr=null;const TP={};async function _re(e){if(TP[e])return TP[e];const n=await(await fetch(e)).json();return TP[e]=n,n}let PP=null,L4e=null,B4e=!1;function i7(e,{caller:t}={}){return PP||(PP=new Promise(n=>{L4e=n})),e?YKt(e):t&&!B4e&&console.warn(`\`${t}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),PP}async function YKt(e){B4e=!0;let{emojiVersion:t,set:n,locale:r}=e;if(t||(t=sf.emojiVersion.value),n||(n=sf.set.value),r||(r=sf.locale.value),Rr)Rr.categories=Rr.categories.filter(l=>!l.name);else{Rr=(typeof e.data=="function"?await e.data():e.data)||await _re(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${n}.json`),Rr.emoticons={},Rr.natives={},Rr.categories.unshift({id:"frequent",emojis:[]});for(const l in Rr.aliases){const c=Rr.aliases[l],u=Rr.emojis[c];u&&(u.aliases||(u.aliases=[]),u.aliases.push(l))}Rr.originalCategories=Rr.categories}if(No=(typeof e.i18n=="function"?await e.i18n():e.i18n)||(r=="en"?C4e(F4e):await _re(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${r}.json`)),e.custom)for(let l in e.custom){l=parseInt(l);const c=e.custom[l],u=e.custom[l-1];if(!(!c.emojis||!c.emojis.length)){c.id||(c.id=`custom_${l+1}`),c.name||(c.name=No.categories.custom),u&&!c.icon&&(c.target=u.target||u),Rr.categories.push(c);for(const f of c.emojis)Rr.emojis[f.id]=f}}e.categories&&(Rr.categories=Rr.originalCategories.filter(l=>e.categories.indexOf(l.id)!=-1).sort((l,c)=>{const u=e.categories.indexOf(l.id),f=e.categories.indexOf(c.id);return u-f}));let i=null,a=null;n=="native"&&(i=Cre.latestVersion(),a=e.noCountryFlags||Cre.noCountryFlags());let o=Rr.categories.length,s=!1;for(;o--;){const l=Rr.categories[o];if(l.id=="frequent"){let{maxFrequentRows:f,perLine:p}=e;f=f>=0?f:sf.maxFrequentRows.value,p||(p=sf.perLine.value),l.emojis=D4e.get({maxFrequentRows:f,perLine:p})}if(!l.emojis||!l.emojis.length){Rr.categories.splice(o,1);continue}const{categoryIcons:c}=e;if(c){const f=c[l.id];f&&!l.icon&&(l.icon=f)}let u=l.emojis.length;for(;u--;){const f=l.emojis[u],p=f.id?f:Rr.emojis[f],h=()=>{l.emojis.splice(u,1)};if(!p||e.exceptEmojis&&e.exceptEmojis.includes(p.id)){h();continue}if(i&&p.version>i){h();continue}if(a&&l.id=="flags"&&!eGt.includes(p.id)){h();continue}if(!p.search){if(s=!0,p.search=","+[[p.id,!1],[p.name,!0],[p.keywords,!1],[p.emoticons,!1]].map(([g,v])=>{if(g)return(Array.isArray(g)?g:[g]).map(y=>(v?y.split(/[-|_|\s]+/):[y]).map(b=>b.toLowerCase())).flat()}).flat().filter(g=>g&&g.trim()).join(","),p.emoticons)for(const g of p.emoticons)Rr.emoticons[g]||(Rr.emoticons[g]=p.id);let m=0;for(const g of p.skins){if(!g)continue;m++;const{native:v}=g;v&&(Rr.natives[v]=p.id,p.search+=`,${v}`);const y=m==1?"":`:skin-tone-${m}:`;g.shortcodes=`:${p.id}:${y}`}}}}s&&Uv.reset(),L4e()}function z4e(e,t,n){e||(e={});const r={};for(let i in t)r[i]=H4e(i,e,t,n);return r}function H4e(e,t,n,r){const i=n[e];let a=r&&r.getAttribute(e)||(t[e]!=null&&t[e]!=null?t[e]:null);return i&&(a!=null&&i.value&&typeof i.value!=typeof a&&(typeof i.value=="boolean"?a=a!="false":a=i.value.constructor(a)),i.transform&&a&&(a=i.transform(a)),(a==null||i.choices&&i.choices.indexOf(a)==-1)&&(a=i.value)),a}const XKt=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let HA=null;function ZKt(e){return e.id?e:Rr.emojis[e]||Rr.emojis[Rr.aliases[e]]||Rr.emojis[Rr.natives[e]]}function QKt(){HA=null}async function JKt(e,{maxResults:t,caller:n}={}){if(!e||!e.trim().length)return null;t||(t=90),await i7(null,{caller:n||"SearchIndex.search"});const r=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((s,l,c)=>s.trim()&&c.indexOf(s)==l);if(!r.length)return;let i=HA||(HA=Object.values(Rr.emojis)),a,o;for(const s of r){if(!i.length)break;a=[],o={};for(const l of i){if(!l.search)continue;const c=l.search.indexOf(`,${s}`);c!=-1&&(a.push(l),o[l.id]||(o[l.id]=0),o[l.id]+=l.id==s?0:c+1)}i=a}return a.length<2||(a.sort((s,l)=>{const c=o[s.id],u=o[l.id];return c==u?s.id.localeCompare(l.id):c-u}),a.length>t&&(a=a.slice(0,t))),a}var Uv={search:JKt,get:ZKt,reset:QKt,SHORTCODES_REGEX:XKt};const eGt=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function tGt(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((n,r)=>n==t[r])}async function nGt(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}function rGt(e,{skinIndex:t=0}={}){const n=e.skins[t]||(t=0,e.skins[t]),r={id:e.id,name:e.name,native:n.native,unified:n.unified,keywords:e.keywords,shortcodes:n.shortcodes||e.shortcodes};return e.skins.length>1&&(r.skin=t+1),n.src&&(r.src=n.src),e.aliases&&e.aliases.length&&(r.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(r.emoticons=e.emoticons),r}const iGt={activity:{outline:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:rn("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:rn("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:rn("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:rn("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:rn("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:rn("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:rn("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[rn("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),rn("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:rn("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[rn("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),rn("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:rn("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[rn("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),rn("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:rn("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[rn("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),rn("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:rn("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[rn("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),rn("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:rn("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:rn("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:rn("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},aGt={loupe:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:rn("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:rn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:rn("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var v5={categories:iGt,search:aGt};function UA(e){let{id:t,skin:n,emoji:r}=e;if(e.shortcodes){const s=e.shortcodes.match(Uv.SHORTCODES_REGEX);s&&(t=s[1],s[2]&&(n=s[2]))}if(r||(r=Uv.get(t||e.native)),!r)return e.fallback;const i=r.skins[n-1]||r.skins[0],a=i.src||(e.set!="native"&&!e.spritesheet?typeof e.getImageURL=="function"?e.getImageURL(e.set,i.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/64/${i.unified}.png`:void 0),o=typeof e.getSpritesheetURL=="function"?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/sheets-256/64.png`;return rn("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:a?rn("img",{style:{maxWidth:e.size||"1em",maxHeight:e.size||"1em",display:"inline-block"},alt:i.native||i.shortcodes,src:a}):e.set=="native"?rn("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:i.native}):rn("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${o})`,backgroundSize:`${100*Rr.sheet.cols}% ${100*Rr.sheet.rows}%`,backgroundPosition:`${100/(Rr.sheet.cols-1)*i.x}% ${100/(Rr.sheet.rows-1)*i.y}%`}})})}const oGt=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class U4e extends oGt{static get observedAttributes(){return Object.keys(this.Props)}update(t={}){for(let n in t)this.attributeChangedCallback(n,null,t[n])}attributeChangedCallback(t,n,r){if(!this.component)return;const i=H4e(t,{[t]:r},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[t]:i}):(this.component.props[t]=i,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(t={}){if(super(),this.props=t,t.parent||t.ref){let n=null;const r=t.parent||(n=t.ref&&t.ref.current);n&&(n.innerHTML=""),r&&r.appendChild(this)}}}class sGt extends U4e{setShadow(){this.attachShadow({mode:"open"})}injectStyles(t){if(!t)return;const n=document.createElement("style");n.textContent=t,this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild)}constructor(t,{styles:n}={}){super(t),this.setShadow(),this.injectStyles(n)}}var W4e={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:e=>/\D/.test(e)?e:`${e}px`},set:sf.set,skin:sf.skin};class V4e extends U4e{async connectedCallback(){const t=z4e(this.props,W4e,this);t.element=this,t.ref=n=>{this.component=n},await i7(),!this.disconnected&&N4e(rn(UA,{...t}),this)}constructor(t){super(t)}}Xl(V4e,"Props",W4e);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",V4e);var kre,WA=[],Ere=lr.__b,$re=lr.__r,Mre=lr.diffed,Tre=lr.__c,Pre=lr.unmount;function lGt(){var e;for(WA.sort(function(t,n){return t.__v.__b-n.__v.__b});e=WA.pop();)if(e.__P)try{e.__H.__h.forEach(T_),e.__H.__h.forEach(VA),e.__H.__h=[]}catch(t){e.__H.__h=[],lr.__e(t,e.__v)}}lr.__b=function(e){Ere&&Ere(e)},lr.__r=function(e){$re&&$re(e);var t=e.__c.__H;t&&(t.__h.forEach(T_),t.__h.forEach(VA),t.__h=[])},lr.diffed=function(e){Mre&&Mre(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(WA.push(t)!==1&&kre===lr.requestAnimationFrame||((kre=lr.requestAnimationFrame)||function(n){var r,i=function(){clearTimeout(a),Ore&&cancelAnimationFrame(r),setTimeout(n)},a=setTimeout(i,100);Ore&&(r=requestAnimationFrame(i))})(lGt))},lr.__c=function(e,t){t.some(function(n){try{n.__h.forEach(T_),n.__h=n.__h.filter(function(r){return!r.__||VA(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],lr.__e(r,n.__v)}}),Tre&&Tre(e,t)},lr.unmount=function(e){Pre&&Pre(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{T_(r)}catch(i){t=i}}),t&&lr.__e(t,n.__v))};var Ore=typeof requestAnimationFrame=="function";function T_(e){var t=e.__c;typeof t=="function"&&(e.__c=void 0,t())}function VA(e){e.__c=e.__()}function cGt(e,t){for(var n in t)e[n]=t[n];return e}function Ire(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function y5(e){this.props=e}(y5.prototype=new ud).isPureReactComponent=!0,y5.prototype.shouldComponentUpdate=function(e,t){return Ire(this.props,e)||Ire(this.state,t)};var Rre=lr.__b;lr.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Rre&&Rre(e)};var uGt=lr.__e;lr.__e=function(e,t,n){if(e.then){for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}uGt(e,t,n)};var jre=lr.unmount;function OP(){this.__u=0,this.t=null,this.__b=null}function q4e(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function sC(){this.u=null,this.o=null}lr.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),jre&&jre(e)},(OP.prototype=new ud).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=q4e(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__e){var c=r.state.__e;r.__v.__k[0]=function f(p,h,m){return p&&(p.__v=null,p.__k=p.__k&&p.__k.map(function(g){return f(g,h,m)}),p.__c&&p.__c.__P===h&&(p.__e&&m.insertBefore(p.__e,p.__d),p.__c.__e=!0,p.__c.__P=m)),p}(c,c.__c.__P,c.__c.__O)}var u;for(r.setState({__e:r.__b=null});u=r.t.pop();)u.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(o,o)},OP.prototype.componentWillUnmount=function(){this.t=[]},OP.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function a(o,s,l){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(c){typeof c.__c=="function"&&c.__c()}),o.__c.__H=null),(o=cGt({},o)).__c!=null&&(o.__c.__P===l&&(o.__c.__P=s),o.__c=null),o.__k=o.__k&&o.__k.map(function(c){return a(c,s,l)})),o}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__e&&BA(X0,null,e.fallback);return i&&(i.__h=null),[BA(X0,null,t.__e?null:e.children),i]};var Nre=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]{const i=n.name||No.categories[n.id],a=!this.props.unfocused&&n.id==this.state.categoryId;return a&&(t=r),rn("button",{"aria-label":i,"aria-selected":a||void 0,title:i,type:"button",class:"flex flex-grow flex-center",onMouseDown:o=>o.preventDefault(),onClick:()=>{this.props.onClick({category:n,i:r})},children:this.renderIcon(n)})}),rn("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:t==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${t*100}%)`:`translateX(${t*100}%)`}})]})})}constructor(){super(),this.categories=Rr.categories.filter(t=>!t.target),this.state={categoryId:this.categories[0].id}}}class wGt extends y5{shouldComponentUpdate(t){for(let n in t)if(n!="children"&&t[n]!=this.props[n])return!0;return!1}render(){return this.props.children}}const lC={rowsPerRender:10};class xGt extends ud{getInitialState(t=this.props){return{skin:ah.get("skin")||t.skin,theme:this.initTheme(t.theme)}}componentWillMount(){this.dir=No.rtl?"rtl":"ltr",this.refs={menu:Wd(),navigation:Wd(),scroll:Wd(),search:Wd(),searchInput:Wd(),skinToneButton:Wd(),skinToneRadio:Wd()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:t}=this.refs;t.current&&t.current.focus()}}componentWillReceiveProps(t){this.nextState||(this.nextState={});for(const n in t)this.nextState[n]=t[n];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let n=!1;for(const i in this.nextState)this.props[i]=this.nextState[i],(i==="custom"||i==="categories")&&(n=!0);delete this.nextState;const r=this.getInitialState();if(n)return this.reset(r);this.setState(r)})}componentWillUnmount(){this.unregister()}async reset(t={}){await i7(this.props),this.initGrid(),this.unobserve(),this.setState(t,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var t;document.removeEventListener("click",this.handleClickOutside),(t=this.darkMedia)==null||t.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:t=[]}={}){Array.isArray(t)||(t=[t]);for(const n of this.observers)t.includes(n)||n.disconnect();this.observers=[].concat(t)}initGrid(){const{categories:t}=Rr;this.refs.categories=new Map;const n=Rr.categories.map(i=>i.id).join(",");this.navKey&&this.navKey!=n&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=n,this.grid=[],this.grid.setsize=0;const r=(i,a)=>{const o=[];o.__categoryId=a.id,o.__index=i.length,this.grid.push(o);const s=this.grid.length-1,l=s%lC.rowsPerRender?{}:Wd();return l.index=s,l.posinset=this.grid.setsize+1,i.push(l),o};for(let i of t){const a=[];let o=r(a,i);for(let s of i.emojis)o.length==this.getPerLine()&&(o=r(a,i)),this.grid.setsize+=1,o.push(s);this.refs.categories.set(i.id,{root:Wd(),rows:a})}}initTheme(t){if(t!="auto")return t;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(t=this.props){if(!t.dynamicWidth)return;const{element:n,emojiButtonSize:r}=t,i=()=>{const{width:o}=n.getBoundingClientRect();return Math.floor(o/r)},a=new ResizeObserver(()=>{this.unobserve({except:a}),this.setState({perLine:i()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return a.observe(n),this.observers.push(a),i()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([t,n]){const r=this.state.searchResults||this.grid,i=r[t]&&r[t][n];if(i)return Uv.get(i)}observeCategories(){const t=this.refs.navigation.current;if(!t)return;const n=new Map,r=o=>{o!=t.state.categoryId&&t.setState({categoryId:o})},i={root:this.refs.scroll.current,threshold:[0,1]},a=new IntersectionObserver(o=>{for(const l of o){const c=l.target.dataset.id;n.set(c,l.intersectionRatio)}const s=[...n];for(const[l,c]of s)if(c){r(l);break}},i);for(const{root:o}of this.refs.categories.values())a.observe(o.current);this.observers.push(a)}observeRows(){const t={...this.state.visibleRows},n=new IntersectionObserver(r=>{for(const i of r){const a=parseInt(i.target.dataset.index);i.isIntersecting?t[a]=!0:delete t[a]}this.setState({visibleRows:t})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(lC.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*lC.rowsPerRender}px`});for(const{rows:r}of this.refs.categories.values())for(const i of r)i.current&&n.observe(i.current);this.observers.push(n)}preventDefault(t){t.preventDefault()}unfocusSearch(){const t=this.refs.searchInput.current;t&&t.blur()}navigate({e:t,input:n,left:r,right:i,up:a,down:o}){const s=this.state.searchResults||this.grid;if(!s.length)return;let[l,c]=this.state.pos;const u=(()=>{if(l==0&&c==0&&!t.repeat&&(r||a))return null;if(l==-1)return!t.repeat&&(i||o)&&n.selectionStart==n.value.length?[0,0]:null;if(r||i){let f=s[l];const p=r?-1:1;if(c+=p,!f[c]){if(l+=p,f=s[l],!f)return l=r?0:s.length-1,c=r?0:s[l].length-1,[l,c];c=r?f.length-1:0}return[l,c]}if(a||o){l+=a?-1:1;const f=s[l];return f?(f[c]||(c=f.length-1),[l,c]):(l=a?0:s.length-1,c=a?0:s[l].length-1,[l,c])}})();if(u)t.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:u,keyboard:!0},()=>{this.scrollTo({row:u[0]})})}scrollTo({categoryId:t,row:n}){const r=this.state.searchResults||this.grid;if(!r.length)return;const i=this.refs.scroll.current,a=i.getBoundingClientRect();let o=0;if(n>=0&&(t=r[n].__categoryId),t&&(o=(this.refs[t]||this.refs.categories.get(t).root).current.getBoundingClientRect().top-(a.top-i.scrollTop)+1),n>=0)if(!n)o=0;else{const s=r[n].__index,l=o+s*this.props.emojiButtonSize,c=l+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(li.scrollTop+a.height)o=c-a.height;else return}this.ignoreMouse(),i.scrollTop=o}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(t){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:t||[-1,-1],keyboard:!1})}handleEmojiClick({e:t,emoji:n,pos:r}){if(this.props.onEmojiSelect&&(!n&&r&&(n=this.getEmojiByPos(r)),n)){const i=rGt(n,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&D4e.add(i,this.props),this.props.onEmojiSelect(i,t)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(t){this.setState({tempSkin:t})}handleSkinClick(t){this.ignoreMouse(),this.closeSkins(),this.setState({skin:t,tempSkin:null}),ah.set("skin",t)}renderNav(){return rn(bGt,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const t=this.getEmojiByPos(this.state.pos),n=this.state.searchResults&&!this.state.searchResults.length;return rn("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[rn("div",{class:"flex flex-middle flex-grow",children:[rn("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:rn(UA,{emoji:t,id:n?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),rn("div",{class:`margin-${this.dir[0]}`,children:t||n?rn("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[rn("div",{class:"preview-title ellipsis",children:t?t.name:No.search_no_results_1}),rn("div",{class:"preview-subtitle ellipsis color-c",children:t?t.skins[0].shortcodes:No.search_no_results_2})]}):rn("div",{class:"preview-placeholder color-c",children:No.pick})})]}),!t&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(t,{pos:n,posinset:r,grid:i}){const a=this.props.emojiButtonSize,o=this.state.tempSkin||this.state.skin,l=(t.skins[o-1]||t.skins[0]).native,c=tGt(this.state.pos,n),u=n.concat(t.id).join("");return rn(wGt,{selected:c,skin:o,size:a,children:rn("button",{"aria-label":l,"aria-selected":c||void 0,"aria-posinset":r,"aria-setsize":i.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?t.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:f=>this.handleEmojiClick({e:f,emoji:t}),onMouseEnter:()=>this.handleEmojiOver(n),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[rn("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(r-1)%this.props.emojiButtonColors.length]:void 0}}),rn(UA,{emoji:t,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},u)}renderSearch(){const t=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return rn("div",{children:[rn("div",{class:"spacer"}),rn("div",{class:"flex flex-middle",children:[rn("div",{class:"search relative flex-grow",children:[rn("input",{type:"search",ref:this.refs.searchInput,placeholder:No.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),rn("span",{class:"icon loupe flex",children:v5.search.loupe}),this.state.searchResults&&rn("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:v5.search.delete})]}),t&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:t}=this.state;return t?rn("div",{class:"category",ref:this.refs.search,children:[rn("div",{class:`sticky padding-small align-${this.dir[0]}`,children:No.categories.search}),rn("div",{children:t.length?t.map((n,r)=>rn("div",{class:"flex",children:n.map((i,a)=>this.renderEmojiButton(i,{pos:[r,a],posinset:r*this.props.perLine+a+1,grid:t}))})):rn("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&rn("a",{onClick:this.props.onAddCustomEmoji,children:No.add_custom})})})]}):null}renderCategories(){const{categories:t}=Rr,n=!!this.state.searchResults,r=this.getPerLine();return rn("div",{style:{visibility:n?"hidden":void 0,display:n?"none":void 0,height:"100%"},children:t.map(i=>{const{root:a,rows:o}=this.refs.categories.get(i.id);return rn("div",{"data-id":i.target?i.target.id:i.id,class:"category",ref:a,children:[rn("div",{class:`sticky padding-small align-${this.dir[0]}`,children:i.name||No.categories[i.id]}),rn("div",{class:"relative",style:{height:o.length*this.props.emojiButtonSize},children:o.map((s,l)=>{const c=s.index-s.index%lC.rowsPerRender,u=this.state.visibleRows[c],f="current"in s?s:void 0;if(!u&&!f)return null;const p=l*r,h=p+r,m=i.emojis.slice(p,h);return m.length{if(!g)return rn("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const y=Uv.get(g);return this.renderEmojiButton(y,{pos:[s.index,v],posinset:s.posinset+v,grid:this.grid})})},s.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:rn("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:rn("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":No.skins.choose,title:No.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:rn("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const t=this.getEmojiByPos(this.state.pos),n=t?t.name:"";return rn("div",{"aria-live":"polite",class:"sr-only",children:n})}renderSkins(){const n=this.refs.skinToneButton.current.getBoundingClientRect(),r=this.base.getBoundingClientRect(),i={};return this.dir=="ltr"?i.right=r.right-n.right-3:i.left=n.left-r.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?i.bottom=r.bottom-n.top+6:(i.top=n.bottom-r.top+3,i.bottom="auto"),rn("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":No.skins.choose,class:"menu hidden","data-position":i.top?"top":"bottom",style:i,children:[...Array(6).keys()].map(a=>{const o=a+1,s=this.state.skin==o;return rn("div",{children:[rn("input",{type:"radio",name:"skin-tone",value:o,"aria-label":No.skins[o],ref:s?this.refs.skinToneRadio:null,defaultChecked:s,onChange:()=>this.handleSkinMouseOver(o),onKeyDown:l=>{(l.code=="Enter"||l.code=="Space"||l.code=="Tab")&&(l.preventDefault(),this.handleSkinClick(o))}}),rn("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(o),onMouseEnter:()=>this.handleSkinMouseOver(o),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[rn("span",{class:`skin-tone skin-tone-${o}`}),rn("span",{class:"margin-small-lr",children:No.skins[o]})]})]})})})}render(){const t=this.props.perLine*this.props.emojiButtonSize;return rn("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${t}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&rn("div",{class:"padding-lr",children:this.renderSearch()}),rn("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:rn("div",{style:{width:this.props.dynamicWidth?"100%":t,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(t){super(),Xl(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),Xl(this,"handleClickOutside",n=>{const{element:r}=this.props;n.target!=r&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(n))}),Xl(this,"handleBaseClick",n=>{this.state.showSkins&&(n.target.closest(".menu")||(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins()))}),Xl(this,"handleBaseKeydown",n=>{this.state.showSkins&&n.key=="Escape"&&(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins())}),Xl(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),Xl(this,"handleSearchInput",async()=>{const n=this.refs.searchInput.current;if(!n)return;const{value:r}=n,i=await Uv.search(r),a=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!i)return this.setState({searchResults:i,pos:[-1,-1]},a);const o=n.selectionStart==n.value.length?[0,0]:[-1,-1],s=[];s.setsize=i.length;let l=null;for(let c of i)(!s.length||l.length==this.getPerLine())&&(l=[],l.__categoryId="search",l.__index=s.length,s.push(l)),l.push(c);this.ignoreMouse(),this.setState({searchResults:s,pos:o},a)}),Xl(this,"handleSearchKeyDown",n=>{const r=n.currentTarget;switch(n.stopImmediatePropagation(),n.key){case"ArrowLeft":this.navigate({e:n,input:r,left:!0});break;case"ArrowRight":this.navigate({e:n,input:r,right:!0});break;case"ArrowUp":this.navigate({e:n,input:r,up:!0});break;case"ArrowDown":this.navigate({e:n,input:r,down:!0});break;case"Enter":n.preventDefault(),this.handleEmojiClick({e:n,pos:this.state.pos});break;case"Escape":n.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),Xl(this,"clearSearch",()=>{const n=this.refs.searchInput.current;n&&(n.value="",n.focus(),this.handleSearchInput())}),Xl(this,"handleCategoryClick",({category:n,i:r})=>{this.scrollTo(r==0?{row:-1}:{categoryId:n.id})}),Xl(this,"openSkins",n=>{const{currentTarget:r}=n,i=r.getBoundingClientRect();this.setState({showSkins:i},async()=>{await nGt(2);const a=this.refs.menu.current;a&&(a.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(t),visibleRows:{0:!0},...this.getInitialState(t)}}}class hU extends sGt{async connectedCallback(){const t=z4e(this.props,sf,this);t.element=this,t.ref=n=>{this.component=n},await i7(t),!this.disconnected&&N4e(rn(xGt,{...t}),this.shadowRoot)}constructor(t){super(t,{styles:C4e(K4e)})}}Xl(hU,"Props",sf);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",hU);var K4e={};K4e=`:host { +`,Nqt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","text-indent","padding-left","padding-right","border-width","box-sizing","white-space","word-break"];let dp;function Aqt(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing")||t.getPropertyValue("-moz-box-sizing")||t.getPropertyValue("-webkit-box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width"));return{sizingStyle:Nqt.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function Dqt(e,t,n,r){dp||(dp=document.createElement("textarea"),dp.setAttribute("tab-index","-1"),document.body.appendChild(dp));const{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=Aqt(e);dp.setAttribute("style",`${s};${jqt};max-width:${n}px;max-height:${r}px`),dp.value=t||" ";let l=dp.scrollWidth,c=dp.scrollHeight;return o==="border-box"?(l+=a,c+=a):o==="content-box"&&(l-=i,c-=i),{width:Math.min(l,n),height:Math.min(c,r)}}const Fqt=d.memo(function({x:t,y:n,maxWidth:r,maxHeight:i,size:a,color:o,value:s,onChange:l,onBlur:c}){const u=d.useRef(null),f=d.useRef(null),[p,h]=d.useState(0),[m,g]=d.useState(0),v=()=>(u.current||(u.current=document.createElement("div")),u.current);return d.useLayoutEffect(()=>(u.current&&(document.body.appendChild(u.current),requestAnimationFrame(()=>{var y;(y=f.current)==null||y.focus()})),()=>{var y;(y=u.current)==null||y.remove()}),[]),d.useLayoutEffect(()=>{if(!f.current)return;const{width:y,height:w}=Dqt(f.current,s,r,i);h(y),g(w)},[s,r,i]),Va.createPortal(x.jsx("textarea",{ref:f,className:"screenshots-textarea",style:{color:o,width:p,height:m,maxWidth:r,maxHeight:i,fontSize:a,lineHeight:`${a}px`,transform:`translate(${t}px, ${n}px)`},value:s,onChange:y=>l&&l(y.target.value),onBlur:y=>c&&c(y)}),v())});function fx(e){const t=ab();d.useEffect(()=>(t.on("drawselect",e),()=>{t.off("drawselect",e)}),[e,t])}const PP={3:18,6:32,9:46};function Lqt(e,t){const{size:n,color:r,fontFamily:i,x:a,y:o,text:s}=t.data;e.fillStyle=r,e.textAlign="left",e.textBaseline="top",e.font=`${n}px ${i}`;const l=t.editHistory.reduce((c,{data:u})=>({x:c.x+u.x2-u.x1,y:c.y+u.y2-u.y1}),{x:0,y:0});s.split(` +`).forEach((c,u)=>{e.fillText(c,a+l.x,o+l.y+u*n)})}function Bqt(e,t,n){e.textAlign="left",e.textBaseline="top",e.font=`${t.data.size}px ${t.data.fontFamily}`;let r=0,i=0;t.data.text.split(` +`).forEach(f=>{const p=e.measureText(f);r({x:f.x+p.x2-p.x1,y:f.y+p.y2-p.y1}),{x:0,y:0}),s=t.data.x+a,l=t.data.y+o,c=s+r,u=l+i;return n.x>=s&&n.x<=c&&n.y>=l&&n.y<=u}function zqt(){const e=Nd(),[t,n]=Rc(),[r]=ib(),[i,a]=Rh(),[,o]=Oh(),s=Ih(),[l,c]=d.useState(3),[u,f]=d.useState("#ee5126"),p=d.useRef(null),h=d.useRef(null),[m,g]=d.useState(null),[v,y]=d.useState(""),w=i==="Text",b=d.useCallback(()=>{a.set("Text"),o.set("default")},[a,o]),C=d.useCallback(()=>{w||(b(),n.clearSelect())},[w,b,n]),k=d.useCallback(O=>{p.current&&(p.current.data.size=PP[O]),c(O)},[]),S=d.useCallback(O=>{p.current&&(p.current.data.color=O),f(O)},[]),_=d.useCallback(O=>{y(O),w&&p.current&&(p.current.data.text=O)},[w]),E=d.useCallback(()=>{p.current&&p.current.data.text&&n.push(p.current),p.current=null,y(""),g(null)},[n]),$=d.useCallback((O,j)=>{O.name==="Text"&&(b(),h.current={type:Gi.Edit,data:{x1:j.clientX,y1:j.clientY,x2:j.clientX,y2:j.clientY},source:O},n.select(O))},[b,n]),M=d.useCallback(O=>{if(!w||!s.current||p.current||!r)return;const{left:j,top:I}=s.current.canvas.getBoundingClientRect(),A=window.getComputedStyle(s.current.canvas).fontFamily,N=O.clientX-j,F=O.clientY-I;p.current={name:"Text",type:Gi.Source,data:{size:PP[l],color:u,fontFamily:A,x:N,y:F,text:""},editHistory:[],draw:Lqt,isHit:Bqt},g({x:O.clientX,y:O.clientY,maxWidth:r.width-N,maxHeight:r.height-F})},[w,l,u,r,s]),P=d.useCallback(O=>{w&&h.current&&(h.current.data.x2=O.clientX,h.current.data.y2=O.clientY,t.top!==h.current?(h.current.source.editHistory.push(h.current),n.push(h.current)):n.set(t))},[w,t,n]),R=d.useCallback(()=>{w&&(h.current=null)},[w]);return fx($),ob(M),sb(P),lb(R),x.jsxs(x.Fragment,{children:[x.jsx(Ou,{title:e.operation_text_title,icon:"icon-text",checked:w,onClick:C,option:x.jsx(dx,{size:l,color:u,onSizeChange:k,onColorChange:S})}),w&&m&&x.jsx(Fqt,{x:m.x,y:m.y,maxWidth:m.maxWidth,maxHeight:m.maxHeight,size:PP[l],color:u,value:v,onChange:_,onBlur:E})]})}const b4e=4;function eo(e,t,n){e.lineWidth=1,e.strokeStyle="#000000",e.fillStyle="#ffffff",e.beginPath(),e.arc(t,n,b4e,0,2*Math.PI),e.fill(),e.stroke()}function a7(e,t,n){t.draw(e,t);const{data:r}=e.getImageData(n.x,n.y,1,1);return r.some(i=>i!==0)}function to(e,t,n){if(!e)return!1;const{left:r,top:i}=e.getBoundingClientRect(),a=t.clientX-r,o=t.clientY-i;return(n.x-a)**2+(n.y-o)**2({x:o.x+s.x2-s.x1,y:o.y+s.y2-s.y1}),{x:0,y:0});e.beginPath(),i.forEach((o,s)=>{s===0?e.moveTo(o.x+a.x,o.y+a.y):e.lineTo(o.x+a.x,o.y+a.y)}),e.stroke(),t.isSelected&&(e.lineWidth=1,e.strokeStyle="#000000",e.beginPath(),i.forEach((o,s)=>{s===0?e.moveTo(o.x+a.x,o.y+a.y):e.lineTo(o.x+a.x,o.y+a.y)}),e.stroke())}function Uqt(){const e=Nd(),[,t]=Oh(),[n,r]=Rh(),i=Ih(),[a,o]=Rc(),[s,l]=d.useState(3),[c,u]=d.useState("#ee5126"),f=d.useRef(null),p=d.useRef(null),h=n==="Brush",m=d.useCallback(()=>{r.set("Brush"),t.set("default")},[r,t]),g=d.useCallback(()=>{h||(m(),o.clearSelect())},[h,m,o]),v=d.useCallback((C,k)=>{C.name==="Brush"&&(m(),p.current={type:Gi.Edit,data:{x1:k.clientX,y1:k.clientY,x2:k.clientX,y2:k.clientY},source:C},o.select(C))},[m,o]),y=d.useCallback(C=>{if(!h||f.current||!i.current)return;const{left:k,top:S}=i.current.canvas.getBoundingClientRect();f.current={name:"Brush",type:Gi.Source,data:{size:s,color:c,points:[{x:C.clientX-k,y:C.clientY-S}]},editHistory:[],draw:Hqt,isHit:a7}},[h,i,s,c]),w=d.useCallback(C=>{if(!(!h||!i.current)){if(p.current)p.current.data.x2=C.clientX,p.current.data.y2=C.clientY,a.top!==p.current?(p.current.source.editHistory.push(p.current),o.push(p.current)):o.set(a);else if(f.current){const{left:k,top:S}=i.current.canvas.getBoundingClientRect();f.current.data.points.push({x:C.clientX-k,y:C.clientY-S}),a.top!==f.current?o.push(f.current):o.set(a)}}},[h,a,i,o]),b=d.useCallback(()=>{h&&(f.current&&o.clearSelect(),f.current=null,p.current=null)},[h,o]);return fx(v),ob(y),sb(w),lb(b),x.jsx(Ou,{title:e.operation_brush_title,icon:"icon-brush",checked:h,onClick:g,option:x.jsx(dx,{size:s,color:c,onSizeChange:l,onColorChange:u})})}function w4e(e){let{x1:t,y1:n,x2:r,y2:i}=e.data;return e.editHistory.forEach(({data:a})=>{const o=a.x2-a.x1,s=a.y2-a.y1;a.type===M_.Move?(t+=o,n+=s,r+=o,i+=s):a.type===M_.MoveStart?(t+=o,n+=s):a.type===M_.MoveEnd&&(r+=o,i+=s)}),{...e.data,x1:t,x2:r,y1:n,y2:i}}function Wqt(e,t){const{size:n,color:r,x1:i,x2:a,y1:o,y2:s}=w4e(t);e.lineCap="round",e.lineJoin="bevel",e.lineWidth=n,e.strokeStyle=r;const l=a-i,c=s-o,u=n*3,f=Math.atan2(c,l);e.beginPath(),e.moveTo(i,o),e.lineTo(a,s),e.lineTo(a-u*Math.cos(f-Math.PI/6),s-u*Math.sin(f-Math.PI/6)),e.moveTo(a,s),e.lineTo(a-u*Math.cos(f+Math.PI/6),s-u*Math.sin(f+Math.PI/6)),e.stroke(),t.isSelected&&(eo(e,i,o),eo(e,a,s))}var M_=(e=>(e[e.Move=0]="Move",e[e.MoveStart=1]="MoveStart",e[e.MoveEnd=2]="MoveEnd",e))(M_||{});function Vqt(){const e=Nd(),[,t]=Oh(),[n,r]=Rh(),[i,a]=Rc(),o=Ih(),[s,l]=d.useState(3),[c,u]=d.useState("#ee5126"),f=d.useRef(null),p=d.useRef(null),h=n==="Arrow",m=d.useCallback(()=>{r.set("Arrow"),t.set("default")},[r,t]),g=d.useCallback(()=>{h||(m(),a.clearSelect())},[h,m,a]),v=d.useCallback((C,k)=>{if(C.name!=="Arrow"||!o.current)return;const S=C;m();const{x1:_,y1:E,x2:$,y2:M}=w4e(S);let P=0;to(o.current.canvas,k,{x:_,y:E})?P=1:to(o.current.canvas,k,{x:$,y:M})&&(P=2),p.current={type:Gi.Edit,data:{type:P,x1:k.clientX,y1:k.clientY,x2:k.clientX,y2:k.clientY},source:S},a.select(C)},[o,m,a]),y=d.useCallback(C=>{if(!h||f.current||!o.current)return;const{left:k,top:S}=o.current.canvas.getBoundingClientRect();f.current={name:"Arrow",type:Gi.Source,data:{size:s,color:c,x1:C.clientX-k,y1:C.clientY-S,x2:C.clientX-k,y2:C.clientY-S},editHistory:[],draw:Wqt,isHit:a7}},[h,c,s,o]),w=d.useCallback(C=>{if(!(!h||!o.current)){if(p.current)p.current.data.x2=C.clientX,p.current.data.y2=C.clientY,i.top!==p.current?(p.current.source.editHistory.push(p.current),a.push(p.current)):a.set(i);else if(f.current){const{left:k,top:S}=o.current.canvas.getBoundingClientRect();f.current.data.x2=C.clientX-k,f.current.data.y2=C.clientY-S,i.top!==f.current?a.push(f.current):a.set(i)}}},[h,i,o,a]),b=d.useCallback(()=>{h&&(f.current&&a.clearSelect(),f.current=null,p.current=null)},[h,a]);return fx(v),ob(y),sb(w),lb(b),x.jsx(Ou,{title:e.operation_arrow_title,icon:"icon-arrow",checked:h,onClick:g,option:x.jsx(dx,{size:s,color:c,onSizeChange:l,onColorChange:u})})}function x4e(e){let{x1:t,y1:n,x2:r,y2:i}=e.data;return e.editHistory.forEach(({data:a})=>{const o=a.x2-a.x1,s=a.y2-a.y1;a.type===zu.Move?(t+=o,n+=s,r+=o,i+=s):a.type===zu.ResizeTop?n+=s:a.type===zu.ResizeRightTop?(r+=o,n+=s):a.type===zu.ResizeRight?r+=o:a.type===zu.ResizeRightBottom?(r+=o,i+=s):a.type===zu.ResizeBottom?i+=s:a.type===zu.ResizeLeftBottom?(t+=o,i+=s):a.type===zu.ResizeLeft?t+=o:a.type===zu.ResizeLeftTop&&(t+=o,n+=s)}),{...e.data,x1:t,x2:r,y1:n,y2:i}}function qqt(e,t){const{size:n,color:r,x1:i,y1:a,x2:o,y2:s}=x4e(t);e.lineCap="butt",e.lineJoin="miter",e.lineWidth=n,e.strokeStyle=r;const l=(i+o)/2,c=(a+s)/2,u=Math.abs(o-i)/2,f=Math.abs(s-a)/2,p=.5522848,h=u*p,m=f*p;e.beginPath(),e.moveTo(l-u,c),e.bezierCurveTo(l-u,c-m,l-h,c-f,l,c-f),e.bezierCurveTo(l+h,c-f,l+u,c-m,l+u,c),e.bezierCurveTo(l+u,c+m,l+h,c+f,l,c+f),e.bezierCurveTo(l-h,c+f,l-u,c+m,l-u,c),e.closePath(),e.stroke(),t.isSelected&&(e.lineWidth=1,e.strokeStyle="#000000",e.fillStyle="#ffffff",e.beginPath(),e.moveTo(i,a),e.lineTo(o,a),e.lineTo(o,s),e.lineTo(i,s),e.closePath(),e.stroke(),eo(e,(i+o)/2,a),eo(e,o,a),eo(e,o,(a+s)/2),eo(e,o,s),eo(e,(i+o)/2,s),eo(e,i,s),eo(e,i,(a+s)/2),eo(e,i,a))}var zu=(e=>(e[e.Move=0]="Move",e[e.ResizeTop=1]="ResizeTop",e[e.ResizeRightTop=2]="ResizeRightTop",e[e.ResizeRight=3]="ResizeRight",e[e.ResizeRightBottom=4]="ResizeRightBottom",e[e.ResizeBottom=5]="ResizeBottom",e[e.ResizeLeftBottom=6]="ResizeLeftBottom",e[e.ResizeLeft=7]="ResizeLeft",e[e.ResizeLeftTop=8]="ResizeLeftTop",e))(zu||{});function Kqt(){const e=Nd(),[t,n]=Rc(),[r,i]=Rh(),[,a]=Oh(),o=Ih(),[s,l]=d.useState(3),[c,u]=d.useState("#ee5126"),f=d.useRef(null),p=d.useRef(null),h=r==="Ellipse",m=d.useCallback(()=>{i.set("Ellipse"),a.set("crosshair")},[i,a]),g=d.useCallback(()=>{h||(m(),n.clearSelect())},[h,m,n]),v=d.useCallback((C,k)=>{if(C.name!=="Ellipse"||!o.current)return;const S=C;m();const{x1:_,y1:E,x2:$,y2:M}=x4e(S);let P=0;to(o.current.canvas,k,{x:(_+$)/2,y:E})?P=1:to(o.current.canvas,k,{x:$,y:E})?P=2:to(o.current.canvas,k,{x:$,y:(E+M)/2})?P=3:to(o.current.canvas,k,{x:$,y:M})?P=4:to(o.current.canvas,k,{x:(_+$)/2,y:M})?P=5:to(o.current.canvas,k,{x:_,y:M})?P=6:to(o.current.canvas,k,{x:_,y:(E+M)/2})?P=7:to(o.current.canvas,k,{x:_,y:E})&&(P=8),p.current={type:Gi.Edit,data:{type:P,x1:k.clientX,y1:k.clientY,x2:k.clientX,y2:k.clientY},source:S},n.select(C)},[o,m,n]),y=d.useCallback(C=>{if(!h||!o.current||f.current)return;const{left:k,top:S}=o.current.canvas.getBoundingClientRect(),_=C.clientX-k,E=C.clientY-S;f.current={name:"Ellipse",type:Gi.Source,data:{size:s,color:c,x1:_,y1:E,x2:_,y2:E},editHistory:[],draw:qqt,isHit:a7}},[h,s,c,o]),w=d.useCallback(C=>{if(!(!h||!o.current)){if(p.current)p.current.data.x2=C.clientX,p.current.data.y2=C.clientY,t.top!==p.current?(p.current.source.editHistory.push(p.current),n.push(p.current)):n.set(t);else if(f.current){const{left:k,top:S}=o.current.canvas.getBoundingClientRect();f.current.data.x2=C.clientX-k,f.current.data.y2=C.clientY-S,t.top!==f.current?n.push(f.current):n.set(t)}}},[h,o,t,n]),b=d.useCallback(()=>{h&&(f.current&&n.clearSelect(),f.current=null,p.current=null)},[h,n]);return fx(v),ob(y),sb(w),lb(b),x.jsx(Ou,{title:e.operation_ellipse_title,icon:"icon-ellipse",checked:h,onClick:g,option:x.jsx(dx,{size:s,color:c,onSizeChange:l,onColorChange:u})})}function S4e(e){let{x1:t,y1:n,x2:r,y2:i}=e.data;return e.editHistory.forEach(({data:a})=>{const o=a.x2-a.x1,s=a.y2-a.y1;a.type===Hu.Move?(t+=o,n+=s,r+=o,i+=s):a.type===Hu.ResizeTop?n+=s:a.type===Hu.ResizeRightTop?(r+=o,n+=s):a.type===Hu.ResizeRight?r+=o:a.type===Hu.ResizeRightBottom?(r+=o,i+=s):a.type===Hu.ResizeBottom?i+=s:a.type===Hu.ResizeLeftBottom?(t+=o,i+=s):a.type===Hu.ResizeLeft?t+=o:a.type===Hu.ResizeLeftTop&&(t+=o,n+=s)}),{...e.data,x1:t,x2:r,y1:n,y2:i}}function Gqt(e,t){const{size:n,color:r,x1:i,y1:a,x2:o,y2:s}=S4e(t);e.lineCap="butt",e.lineJoin="miter",e.lineWidth=n,e.strokeStyle=r,e.beginPath(),e.moveTo(i,a),e.lineTo(o,a),e.lineTo(o,s),e.lineTo(i,s),e.closePath(),e.stroke(),t.isSelected&&(e.lineWidth=1,e.strokeStyle="#000000",e.fillStyle="#ffffff",eo(e,(i+o)/2,a),eo(e,o,a),eo(e,o,(a+s)/2),eo(e,o,s),eo(e,(i+o)/2,s),eo(e,i,s),eo(e,i,(a+s)/2),eo(e,i,a))}var Hu=(e=>(e[e.Move=0]="Move",e[e.ResizeTop=1]="ResizeTop",e[e.ResizeRightTop=2]="ResizeRightTop",e[e.ResizeRight=3]="ResizeRight",e[e.ResizeRightBottom=4]="ResizeRightBottom",e[e.ResizeBottom=5]="ResizeBottom",e[e.ResizeLeftBottom=6]="ResizeLeftBottom",e[e.ResizeLeft=7]="ResizeLeft",e[e.ResizeLeftTop=8]="ResizeLeftTop",e))(Hu||{});function Yqt(){const e=Nd(),[t,n]=Rc(),[r,i]=Rh(),[,a]=Oh(),o=Ih(),[s,l]=d.useState(3),[c,u]=d.useState("#ee5126"),f=d.useRef(null),p=d.useRef(null),h=r==="Rectangle",m=d.useCallback(()=>{i.set("Rectangle"),a.set("crosshair")},[i,a]),g=d.useCallback(()=>{h||(m(),n.clearSelect())},[h,m,n]),v=d.useCallback((C,k)=>{if(C.name!=="Rectangle"||!o.current)return;const S=C;m();const{x1:_,y1:E,x2:$,y2:M}=S4e(S);let P=0;to(o.current.canvas,k,{x:(_+$)/2,y:E})?P=1:to(o.current.canvas,k,{x:$,y:E})?P=2:to(o.current.canvas,k,{x:$,y:(E+M)/2})?P=3:to(o.current.canvas,k,{x:$,y:M})?P=4:to(o.current.canvas,k,{x:(_+$)/2,y:M})?P=5:to(o.current.canvas,k,{x:_,y:M})?P=6:to(o.current.canvas,k,{x:_,y:(E+M)/2})?P=7:to(o.current.canvas,k,{x:_,y:E})&&(P=8),p.current={type:Gi.Edit,data:{type:P,x1:k.clientX,y1:k.clientY,x2:k.clientX,y2:k.clientY},source:C},n.select(C)},[o,m,n]),y=d.useCallback(C=>{if(!h||!o.current||f.current)return;const{left:k,top:S}=o.current.canvas.getBoundingClientRect(),_=C.clientX-k,E=C.clientY-S;f.current={name:"Rectangle",type:Gi.Source,data:{size:s,color:c,x1:_,y1:E,x2:_,y2:E},editHistory:[],draw:Gqt,isHit:a7}},[h,s,c,o]),w=d.useCallback(C=>{if(!(!h||!o.current)){if(p.current)p.current.data.x2=C.clientX,p.current.data.y2=C.clientY,t.top!==p.current?(p.current.source.editHistory.push(p.current),n.push(p.current)):n.set(t);else if(f.current){const{left:k,top:S}=o.current.canvas.getBoundingClientRect(),_=f.current.data;_.x2=C.clientX-k,_.y2=C.clientY-S,t.top!==f.current?n.push(f.current):n.set(t)}}},[h,o,t,n]),b=d.useCallback(()=>{h&&(f.current&&n.clearSelect(),f.current=null,p.current=null)},[h,n]);return fx(v),ob(y),sb(w),lb(b),x.jsx(Ou,{title:e.operation_rectangle_title,icon:"icon-rectangle",checked:h,onClick:g,option:x.jsx(dx,{size:s,color:c,onSizeChange:l,onColorChange:u})})}const Xqt=[Yqt,Kqt,Vqt,Uqt,zqt,Rqt,"|",Pqt,Tqt,"|",Mqt,$qt,Eqt],C4e=te.createContext(null),Zqt=d.memo(function(){const{width:t,height:n}=Zs(),[r]=ib(),[i,a]=d.useState(null),[o,s]=d.useState(null),l=d.useRef(null),c=d.useCallback(f=>{f.stopPropagation()},[]),u=d.useCallback(f=>{f.preventDefault(),f.stopPropagation()},[]);return d.useEffect(()=>{if(!r||!l.current)return;const f=l.current.getBoundingClientRect();let p=r.x+r.width-f.width,h=r.y+r.height+10;p<0&&(p=0),p>t-f.width&&(p=t-f.width),h>n-f.height&&(h=n-f.height-10),(!o||Math.abs(o.x-p)>1||Math.abs(o.y-h)>1)&&s({x:p,y:h}),(!i||Math.abs(i.x-f.x)>1||Math.abs(i.y-f.y)>1||Math.abs(i.width-f.width)>1||Math.abs(i.height-f.height)>1)&&a({x:f.x,y:f.y,width:f.width,height:f.height})}),r?x.jsx(C4e.Provider,{value:i,children:x.jsx("div",{ref:l,className:"screenshots-operations",style:{visibility:o?"visible":"hidden",transform:`translate(${(o==null?void 0:o.x)??0}px, ${(o==null?void 0:o.y)??0}px)`},onDoubleClick:c,onContextMenu:u,children:x.jsx("div",{className:"screenshots-operations-buttons",children:Xqt.map((f,p)=>f==="|"?x.jsx("div",{className:"screenshots-operations-divider"},p):x.jsx(f,{},p))})})}):null});function Qqt(e){const[t,n]=d.useState(null);return d.useEffect(()=>{if(n(null),e==null)return;const r=document.createElement("img"),i=()=>n(r),a=()=>n(null);return r.addEventListener("load",i),r.addEventListener("error",a),r.src=e,()=>{r.removeEventListener("load",i),r.removeEventListener("error",a)}},[e]),t}function Jqt({url:e,width:t,height:n,lang:r,className:i,...a}){const o=Qqt(e),s=d.useRef(null),l=d.useRef({}),[c,u]=d.useState({index:-1,stack:[]}),[f,p]=d.useState(null),[h,m]=d.useState("move"),[g,v]=d.useState(void 0),y={url:e,width:t,height:n,image:o,lang:{...v4e,...r},emiterRef:l,canvasContextRef:s,history:c,bounds:f,cursor:h,operation:g},w=d.useCallback((E,...$)=>{const M=a[E];typeof M=="function"&&M(...$)},[a]),b={call:w,setHistory:u,setBounds:p,setCursor:m,setOperation:v},C=["screenshots"];i&&C.push(i);const k=()=>{l.current={},u({index:-1,stack:[]}),p(null),m("move"),v(void 0)},S=d.useCallback(async E=>{if(!(E.button!==0||!o))if(f&&s.current)p5({image:o,width:t,height:n,history:c,bounds:f}).then($=>{w("onOk",$,f),k()});else{const $={x:0,y:0,width:t,height:n};p5({image:o,width:t,height:n,history:c,bounds:$}).then(M=>{w("onOk",M,$),k()})}},[o,c,f,t,n,w]),_=d.useCallback(E=>{E.button===2&&(E.preventDefault(),w("onCancel"),k())},[w]);return d.useLayoutEffect(()=>{k()},[e]),x.jsx(pU.Provider,{value:{store:y,dispatcher:b},children:x.jsxs("div",{className:C.join(" "),style:{width:t,height:n},onDoubleClick:S,onContextMenu:_,children:[x.jsx(yqt,{}),x.jsx(_qt,{ref:s}),x.jsx(Zqt,{})]})})}const eKt=({open:e,screenShotImg:t,onOk:n,onCancel:r})=>{const i=d.useCallback((u,f)=>{if(console.log("onScreenSave",u,f),u){const p=URL.createObjectURL(u);console.log(p),F0(p)}},[]),a=d.useCallback(()=>{console.log("onScreenCancel")},[]),o=d.useCallback((u,f)=>{console.log("onScreenOk",u,f),u&&c(u)},[]),s=()=>{if(t.startsWith("data:image/png;base64,")){const u=t.split(",")[1],f=atob(u),p=[];for(let m=0;m{r()},c=async u=>{const f=en(new Date).format("YYYYMMDDHHmmss")+"_screenshot.png",p=new FormData;p.append("file",u,f),p.append("file_name",f),p.append("file_type","image/png"),p.append("is_avatar","false"),p.append("kb_type",_F),p.append("category_uid",""),p.append("kb_uid",""),p.append("client",kn),console.log("handleUpload formData",p),fetch(fy(),{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},body:p}).then(h=>(console.log("upload response:",h),h.json())).then(h=>{console.log("upload data:",h),$n.emit(OC,h.data.fileUrl),n()})};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"截屏录屏",open:e,okText:"发送",onOk:s,onCancel:l,children:x.jsx(Jqt,{url:t,width:470,height:400,onSave:i,onCancel:a,onOk:o})})})},tKt=()=>x.jsx("div",{children:x.jsx("h1",{children:"TabThread"})}),nKt=()=>x.jsx("div",{children:x.jsx("h1",{children:"TabContact"})}),rKt=()=>x.jsx("div",{children:x.jsx("h1",{children:"TabGroup"})}),iKt=e=>{console.log(e)},aKt=[{key:"1",label:"会话",children:x.jsx(tKt,{})},{key:"2",label:"联系人",children:x.jsx(nKt,{})},{key:"3",label:"群聊",children:x.jsx(rKt,{})}],oKt=({open:e,onOk:t,onCancel:n})=>{const r=()=>{t()},i=()=>{n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"转发消息",open:e,onOk:r,onCancel:i,children:x.jsx(Sh,{defaultActiveKey:"1",items:aKt,onChange:iKt})})})},sKt=({open:e,onOk:t,onCancel:n})=>{Kn.useForm();const r=()=>{t()},i=()=>{n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"TODO:历史消息",open:e,onOk:r,onCancel:i})})},lKt=({open:e,onOk:t,onCancel:n})=>{const[r]=Kn.useForm(),i=()=>{t()},a=()=>{n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"转发消息",open:e,onOk:i,onCancel:a,children:x.jsx(Kn,{form:r,submitter:{render:!1}})})})},{TextArea:cKt}=Ur,uKt=({open:e,onOk:t,onCancel:n})=>{const r=Rn(),{isDarkMode:i}=Dg(),a=Vr(I=>I.currentOrg),{translateStringTranct:o,translateString:s}=Zr(),[l,c]=d.useState({uid:""}),[u,f]=d.useState(),[p,h]=d.useState(""),{userInfo:m}=t1(),{agentInfo:g}=Eo(),v=fr(I=>I.currentThread),[y,w]=d.useState(120),[b,C]=d.useState(0),[k,S]=d.useState(10),_=d.useMemo(()=>{const I=u==null?void 0:u.data.content;if(I){const A=I.filter(N=>(N==null?void 0:N.userUid)!==(m==null?void 0:m.uid));return A.length>0&&c(A[0]),A}else return[]},[u]),E=async()=>{je.loading(r.formatMessage({id:"querying",defaultMessage:"查询中..."}));const I={pageNumber:b,pageSize:k,orgUid:a==null?void 0:a.uid},A=await kle(I);console.log("queryAgentsByOrg:",A.data),A.data.code===200?(je.destroy(),f(A.data),A.data.data.content.length===0&&A.data.data.totalPages>0&&C(0)):(je.destroy(),je.error(A.data.message))};d.useEffect(()=>{e&&E()},[e,b,k]);const $=(I,A)=>{console.log("list on click",I,A),c(I)},M=()=>{E()},P=async()=>{if((l==null?void 0:l.uid)!==""){const I=Ba(),A={note:p,sender:{uid:g==null?void 0:g.uid,nickname:g==null?void 0:g.nickname,avatar:g==null?void 0:g.avatar,type:uh},receiver:{uid:l==null?void 0:l.uid,nickname:l==null?void 0:l.nickname,avatar:l==null?void 0:l.avatar,type:uh},thread:{uid:v==null?void 0:v.uid,topic:v==null?void 0:v.topic,type:v==null?void 0:v.type,state:v==null?void 0:v.state,user:v==null?void 0:v.user},status:Z6e,messageUid:I,expireTime:y,orgUid:a==null?void 0:a.uid},N=await cqt(A);if(console.log("transferThread:",N.data),N.data.code===200){je.success("发起转接成功");const F=JSON.stringify(A);Tct(I,F,v),t()}else je.error(s(N.data.message))}else je.warning("请选择转接客服")},R=()=>{n()},O=I=>x.jsx(x.Fragment,{children:x.jsxs("span",{style:{color:"#999999",fontSize:12},children:[I.status===y0&&"[✅接待]",I.status===vk&&"[忙碌]",I.status===Fm&&"[下线]",I.connected?"✅连接":"❌断开"]})}),j=(I,A)=>{C(I-1),A&&A!==k&&S(A)};return x.jsx(x.Fragment,{children:x.jsxs(yr,{title:r.formatMessage({id:"transfer",defaultMessage:"Transfer"}),open:e,onOk:P,onCancel:R,width:400,footer:[x.jsx(Yt,{onClick:R,children:r.formatMessage({id:"cancel",defaultMessage:"Cancel"})},"cancel"),x.jsx(Yt,{onClick:M,children:r.formatMessage({id:"refresh",defaultMessage:"Refresh"})},"refresh"),x.jsx(Yt,{type:"primary",onClick:P,disabled:(l==null?void 0:l.uid)==="",children:r.formatMessage({id:"transfer",defaultMessage:"Transfer"})},"submit")],children:[x.jsx(Yn,{itemLayout:"horizontal",dataSource:_,locale:{emptyText:r.formatMessage({id:"noAgent",defaultMessage:"No Agent available"})},renderItem:(I,A)=>x.jsx(Yn.Item,{style:l.uid===I.uid?{backgroundColor:i?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>$(I,A),children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:I.avatar}),title:o(I.nickname),description:O(I)})})}),u&&u.data&&u.data.totalElements>k&&x.jsx("div",{style:{marginTop:16,textAlign:"right"},children:x.jsx(I4,{current:b+1,pageSize:k,total:u.data.totalElements,onChange:j,size:"small",showSizeChanger:!0,showQuickJumper:!1,showTotal:I=>r.formatMessage({id:"pagination.total",defaultMessage:"共 {total} 条"},{total:I})})}),x.jsx(cKt,{rows:2,style:{marginTop:5,marginBottom:5},placeholder:r.formatMessage({id:"transfer.reason",defaultMessage:"Transfer Reason"}),value:p,onChange:I=>{h(I.target.value)}}),!1]})})},{TextArea:dKt}=Ur,fKt=({open:e,onOk:t,onCancel:n})=>{const r=Rn(),{isDarkMode:i}=Dg(),a=Vr(I=>I.currentOrg),{translateStringTranct:o,translateString:s}=Zr(),[l,c]=d.useState({uid:""}),[u,f]=d.useState(),[p,h]=d.useState(""),{userInfo:m}=t1(),{agentInfo:g}=Eo(),v=fr(I=>I.currentThread),[y,w]=d.useState(120),[b,C]=d.useState(0),[k,S]=d.useState(10),_=d.useMemo(()=>{const I=u==null?void 0:u.data.content;if(I){const A=I.filter(N=>(N==null?void 0:N.userUid)!==(m==null?void 0:m.uid));return A.length>0&&c(A[0]),A}else return[]},[u]),E=async()=>{je.loading(r.formatMessage({id:"querying",defaultMessage:"查询中..."}));const I={pageNumber:b,pageSize:k,orgUid:a==null?void 0:a.uid},A=await kle(I);console.log("queryAgentsByOrg:",A.data),A.data.code===200?(je.destroy(),f(A.data),A.data.data.content.length===0&&A.data.data.totalPages>0&&C(0)):(je.destroy(),je.error(A.data.message))};d.useEffect(()=>{e&&E()},[e,b,k]);const $=(I,A)=>{console.log("list on click",I,A),c(I)},M=()=>{E()},P=async()=>{if(console.log("invite note:",p,l),(l==null?void 0:l.uid)!==""){const I=Ba(),A={note:p,sender:{uid:g==null?void 0:g.uid,nickname:g==null?void 0:g.nickname,avatar:g==null?void 0:g.avatar,type:uh},receiver:{uid:l==null?void 0:l.uid,nickname:l==null?void 0:l.nickname,avatar:l==null?void 0:l.avatar,type:uh},thread:{uid:v==null?void 0:v.uid,topic:v==null?void 0:v.topic,type:v==null?void 0:v.type,state:v==null?void 0:v.state,user:v==null?void 0:v.user},status:Q6e,messageUid:I,expireTime:y,orgUid:a==null?void 0:a.uid},N=await sqt(A);if(console.log("inviteThread:",N.data),N.data.code===200){je.success("发起转接成功");const F=JSON.stringify(A);Pct(I,F,v),t()}else je.error(s(N.data.message))}else je.warning("请选择转接客服")},R=()=>{n()},O=I=>x.jsx(x.Fragment,{children:x.jsxs("span",{style:{color:"#999999",fontSize:12},children:[I.status===y0&&"[✅接待]",I.status===vk&&"[忙碌]",I.status===Fm&&"[下线]",I.connected?"✅连接":"❌断开"]})}),j=(I,A)=>{C(I-1),A&&A!==k&&S(A)};return x.jsx(x.Fragment,{children:x.jsxs(yr,{title:r.formatMessage({id:"invite",defaultMessage:"Invite"}),open:e,onOk:P,onCancel:R,width:400,footer:[x.jsx(Yt,{onClick:R,children:r.formatMessage({id:"cancel",defaultMessage:"Cancel"})},"cancel"),x.jsx(Yt,{onClick:M,children:r.formatMessage({id:"refresh",defaultMessage:"Refresh"})},"refresh"),x.jsx(Yt,{type:"primary",onClick:P,disabled:(l==null?void 0:l.uid)==="",children:r.formatMessage({id:"invite",defaultMessage:"Invite"})},"submit")],children:[x.jsx(Yn,{itemLayout:"horizontal",dataSource:_,locale:{emptyText:r.formatMessage({id:"noAgent",defaultMessage:"No Agent available"})},renderItem:(I,A)=>x.jsx(Yn.Item,{style:l.uid===I.uid?{backgroundColor:i?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>$(I,A),children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:I.avatar}),title:o(I.nickname),description:O(I)})})}),u&&u.data&&u.data.totalElements>k&&x.jsx("div",{style:{marginTop:16,textAlign:"right"},children:x.jsx(I4,{current:b+1,pageSize:k,total:u.data.totalElements,onChange:j,size:"small",showSizeChanger:!0,showQuickJumper:!1,showTotal:I=>r.formatMessage({id:"pagination.total",defaultMessage:"共 {total} 条"},{total:I})})}),x.jsx(dKt,{rows:2,style:{marginTop:5,marginBottom:5},placeholder:r.formatMessage({id:"invite.reason",defaultMessage:"Invite Reason"}),value:p,onChange:I=>{h(I.target.value)}}),!1]})})},pKt=({open:e,onOk:t,onCancel:n})=>{Kn.useForm();const r=()=>{t()},i=()=>{n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"TODO:录音/音视频通话",open:e,onOk:r,onCancel:i})})},{Dragger:hKt}=e1,mKt=({type:e,acceptType:t,maxCount:n=5,isModalOpen:r,attachments:i,handleSubmit:a,handleCancel:o})=>{const s=Rn(),[l,c]=d.useState([]),[u,f]=d.useState([]),[p,h]=d.useState({file:null,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:e,category_uid:"",kb_uid:"",client:kn});console.log("acceptType",t);const m=d.useMemo(()=>({name:"file",multiple:!0,action:fy(),headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},data:p,showUploadList:!1,beforeUpload(y){if(l.length>=n)return je.error(s.formatMessage({id:"upload.maxCount"},{maxCount:n})),!1;c(b=>[...b,y]);const w=en(new Date).format("YYYYMMDDHHmmss")+"_"+y.name;return h(b=>({...b,file:y,file_name:w,file_type:y.type,category_uid:""})),!0},onChange(y){y.file.status==="uploading"&&je.loading(s.formatMessage({id:"upload.uploading"},{filename:y.file.name})),y.file.status==="done"?y.file.response.code===200?(je.destroy(),je.success(s.formatMessage({id:"upload.success"},{filename:y.file.name})),f(w=>[...w,y.file.response.data])):(je.destroy(),je.error(s.formatMessage({id:"upload.failed"},{filename:y.file.name}))):y.file.status==="error"&&je.error(s.formatMessage({id:"upload.failed"},{filename:y.file.name}))},onDrop(y){console.log("Dropped files",y.dataTransfer.files)}}),[p,s]);d.useEffect(()=>{h(y=>({...y,kb_type:e,category_uid:""})),i&&f(i.map(y=>y.upload))},[e]);const g=()=>{a(l,u)},v=y=>{console.log("handleDelete",y);const w=u.find(C=>C.uid===y);if(!w)return;const b=w.fileName.split("_").slice(1).join("_");c(C=>C.filter(k=>k.name!==b)),f(C=>C.filter(k=>k.uid!==y))};return x.jsxs(yr,{title:s.formatMessage({id:"upload.modal.title"}),open:r,onOk:g,onCancel:o,children:[x.jsxs(hKt,{...m,children:[x.jsx("p",{className:"ant-upload-drag-icon",children:x.jsx(vve,{})}),x.jsx("p",{className:"ant-upload-text",children:s.formatMessage({id:"upload.drag.text"})}),x.jsx("p",{className:"ant-upload-hint",children:s.formatMessage({id:"upload.drag.hint"})})]}),x.jsx("div",{style:{marginTop:"16px",maxHeight:"200px",overflowY:"auto"},children:x.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:u.map(y=>x.jsx(uU,{file:y,onDelete:v},y.uid))})})]})};async function gKt(e){return bn("/api/v1/ticket/process/query/org",{method:"GET",params:{...e}})}async function vKt(e){return bn("/api/v1/department/query/org",{method:"GET",params:{...e,client:kn}})}const yKt=so()(es(ts(ns((e,t)=>({departmentResult:{data:{content:[]}},currentDepartment:{uid:fv,nickname:fv},insertDepartment(n){e(r=>{const i=r.departmentResult.data.content;if(n.parentUid){const a=i.find(o=>o.uid===n.parentUid);a&&(a.children||(a.children=[]),a.children.push(n))}else i.push(n)})},upgradeDepartment(n){e(r=>{const i=r.departmentResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i[a]=n:i.forEach(o=>{if(o.children){const s=o.children.findIndex(l=>l.uid===n.uid);s!==-1&&(o.children[s]=n)}})})},setDepartmentResult:n=>{var a,o;e({departmentResult:{...n,data:{content:[{uid:fv,name:fv},...n.data.content]}}}),t().currentDepartment.uid===""&&((o=(a=n.data)==null?void 0:a.content)==null?void 0:o.length)>0&&e({currentDepartment:n.data.content[0]})},setCurrentDepartment(n){const r=t().departmentResult.data.content,i=r.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...r.slice(0,i),n,...r.slice(i+1)],o={...t().departmentResult,data:{content:a}};e({departmentResult:o,currentDepartment:n})}else console.warn("Department with the specified uid not found."),e({currentDepartment:n})},removeDepartment(n){e(r=>{const i=r.departmentResult.data.content,a=(o,s)=>o.filter(l=>l.uid===s?!1:(l.children&&(l.children=a(l.children,s)),!0));r.departmentResult.data.content=a(i,n)}),t().currentDepartment.uid===n&&e({currentDepartment:{uid:""}})},setCurrentDepUid(n){var a,o,s,l,c;const r=(s=(o=(a=t().departmentResult)==null?void 0:a.data)==null?void 0:o.content)==null?void 0:s.find(u=>u.uid===n);if(r){e({currentDepartment:r});return}const i=u=>{for(const f of u){if(f.uid===n){e({currentDepartment:f});return}f.children&&f.children.length>0&&i(f.children)}};i(((c=(l=t().departmentResult)==null?void 0:l.data)==null?void 0:c.content)||[])},deleteDepartmentCache:()=>e({},!0)})),{name:x6e}))),_4e=({open:e,isEdit:t=!1,currentTicket:n,onSuccess:r,onCancel:i})=>{const[a]=Kn.useForm(),o=Rn(),{translateString:s}=Zr(),l=Vr(V=>V.currentOrg),c=Na(V=>V.memberInfo),u=fr(V=>V.currentThread),f=fr(V=>V.threads),[p,h]=d.useState([]),[m,g]=d.useState([]),[v,y]=d.useState({uid:"",nickname:"",avatar:""}),{refreshTickets:w}=ja(),[b,C]=d.useState(!1),[k,S]=d.useState([]),[_,E]=d.useState([]),{departmentResult:$,setDepartmentResult:M}=yKt(V=>({departmentResult:V.departmentResult,setDepartmentResult:V.setDepartmentResult}));d.useEffect(()=>{var V,B,U;if(t&&n)a.setFieldsValue({title:n.title,description:n.description,status:n.status,priority:n.priority,threadUid:n==null?void 0:n.threadUid,departmentUid:n==null?void 0:n.departmentUid,categoryUid:n==null?void 0:n.categoryUid,assigneeUid:(V=n.assignee)==null?void 0:V.uid,uploadUids:(B=n.attachments)==null?void 0:B.map(Y=>{var ee;return(ee=Y.upload)==null?void 0:ee.uid}),processEntityUid:n==null?void 0:n.processEntityUid}),S((U=n.attachments)==null?void 0:U.map(Y=>Y.upload));else{const Y=localStorage.getItem("ticketDraft");Y&&a.setFieldsValue({description:Y}),a.setFieldsValue({status:cg,priority:bk,processEntityUid:(l==null?void 0:l.uid)+"_"+E5e.toLowerCase()}),u!=null&&u.uid&&f.some(ee=>ee.uid===(u==null?void 0:u.uid))?Rf(u)&&a.setFieldsValue({threadUid:u==null?void 0:u.uid}):a.setFieldsValue({threadUid:""}),S([])}},[e,t,n]);const P=async()=>{var V,B,U;try{const Y=await n7({type:yk,orgUid:l==null?void 0:l.uid,pageNumber:0,pageSize:100});((V=Y.data)==null?void 0:V.code)===200&&((U=(B=Y.data)==null?void 0:B.data)!=null&&U.content)&&(h(Y.data.data.content),!t&&Y.data.data.content.length>0&&a.setFieldValue("categoryUid",Y.data.data.content[0].uid))}catch(Y){console.error("Fetch categories error:",Y),je.error(o.formatMessage({id:"ticket.category.load.error"}))}},R=(V,B)=>{if(V.name.startsWith(Iw)?B.title=o.formatMessage({id:V.name,defaultMessage:V.name}):B.title=V.name,B.key=V.uid,B.value=V.uid,V.children){B.children=[];for(let U=0;U{const V=[];for(let B=0;B<$.data.content.length;B++){const U={title:"",key:"",children:[]};R($.data.content[B],U),V.push(U)}return V},[$]),j=async()=>{try{const V={pageNumber:0,pageSize:100,orgUid:l==null?void 0:l.uid},B=await vKt(V);console.log("queryDepartmentsByOrg response:",B.data,V),B.data.code===200?M(B.data):je.error(B.data.message)}catch(V){console.error("Fetch departments error:",V),je.error(o.formatMessage({id:"ticket.department.load.error"}))}},I=async()=>{var U,Y,ee;const V={pageNumber:0,pageSize:100,orgUid:l==null?void 0:l.uid},B=await gKt(V);console.log("queryProcessesByOrg response:",B.data,V),((U=B.data)==null?void 0:U.code)===200&&((ee=(Y=B.data)==null?void 0:Y.data)!=null&&ee.content)?(E(B.data.data.content),B.data.data.content.length>0&&a.setFieldValue("processEntityUid",B.data.data.content[0].uid)):je.error(o.formatMessage({id:"ticket.process.load.error"}))},A=async V=>{var B,U,Y;try{const ee={pageNumber:0,pageSize:100,orgUid:l==null?void 0:l.uid,deptUid:V},ie=await t$(ee);console.log("queryMembersByOrg response:",ie.data,ee),((B=ie.data)==null?void 0:B.code)===200&&((Y=(U=ie.data)==null?void 0:U.data)!=null&&Y.content)&&(g(ie.data.data.content),a.setFieldValue("assigneeUid",void 0))}catch(ee){console.error("Fetch members error:",ee),je.error(o.formatMessage({id:"ticket.member.load.error"}))}},N=V=>{A(V===fv?"":V)};d.useEffect(()=>{e&&(j(),P(),I(),n!=null&&n.departmentUid&&A(n==null?void 0:n.departmentUid))},[e]);const F=async()=>{try{const V=await a.validateFields();je.loading(o.formatMessage({id:"ticket.submitting"}),0);const B=V.threadUid,U=f.find(ee=>ee.uid===B);U&&(V.topic=U.topic);const Y={...V,departmentUid:V.departmentUid===fv?"":V.departmentUid,orgUid:l==null?void 0:l.uid,assignee:{uid:v==null?void 0:v.uid,nickname:v==null?void 0:v.nickname,avatar:v==null?void 0:v.avatar,type:mk},reporter:{uid:c==null?void 0:c.uid,nickname:c==null?void 0:c.nickname,avatar:c==null?void 0:c.avatar,type:mk},uploadUids:[...new Set(k.map(ee=>ee.uid))]};if(console.log("ticketRequest",Y),t&&n){Y.uid=n.uid;const ee=await rWt(Y);console.log("updateTicket response",ee.data),ee.data.code===200?(je.destroy(),je.success(o.formatMessage({id:"ticket.update.success"})),w(),r()):(je.destroy(),je.error(o.formatMessage({id:"ticket.update.failed"})))}else{const ee=await nWt(Y);console.log("createTicket response",ee.data),ee.data.code===200?(je.destroy(),je.success(o.formatMessage({id:"ticket.create.success"})),w(),r()):(je.destroy(),je.error(o.formatMessage({id:"ticket.create.failed"})))}}catch(V){je.destroy(),console.error("Submit ticket error:",V),je.error(o.formatMessage({id:"ticket.submit.error"}))}finally{localStorage.removeItem("ticketDraft")}},K=V=>{console.log("handleDelete",V),S(B=>B.filter(U=>U.uid!==V))},L=()=>{console.log("handleDescriptionBlur",a.getFieldsValue());const V=a.getFieldValue("description");localStorage.setItem("ticketDraft",V)};return x.jsx(Ch,{title:o.formatMessage({id:t?"ticket.edit.title":"ticket.create.title",defaultMessage:t?"编辑工单":"创建工单"}),width:600,open:e,onClose:i,extra:x.jsxs(Xr,{children:[x.jsx(Yt,{onClick:i,children:o.formatMessage({id:"common.cancel"})}),x.jsx(Yt,{type:"primary",onClick:F,children:o.formatMessage({id:"common.confirm"})})]}),children:x.jsxs(Kn,{form:a,submitter:!1,children:[x.jsx(Or,{name:"title",label:o.formatMessage({id:"ticket.form.title"}),rules:[{required:!0}]}),x.jsx(Cd,{name:"description",label:o.formatMessage({id:"ticket.form.description"}),rules:[{required:!0}],fieldProps:{onBlur:L}}),x.jsx(ro,{name:"status",label:o.formatMessage({id:"ticket.form.status"}),disabled:!0,options:[{label:o.formatMessage({id:"ticket.status.new"}),value:cg},{label:o.formatMessage({id:"ticket.status.claimed"}),value:G3},{label:o.formatMessage({id:"ticket.status.processing"}),value:ly},{label:o.formatMessage({id:"ticket.status.pending"}),value:Y3},{label:o.formatMessage({id:"ticket.status.holding"}),value:X3},{label:o.formatMessage({id:"ticket.status.reopened"}),value:Z3},{label:o.formatMessage({id:"ticket.status.resolved"}),value:Q3},{label:o.formatMessage({id:"ticket.status.closed"}),value:J3},{label:o.formatMessage({id:"ticket.status.cancelled"}),value:e4}],rules:[{required:!0}]}),x.jsx(ro,{name:"priority",label:o.formatMessage({id:"ticket.form.priority"}),options:[{label:o.formatMessage({id:"ticket.priority.lowest"}),value:Pse},{label:o.formatMessage({id:"ticket.priority.low"}),value:kF},{label:o.formatMessage({id:"ticket.priority.medium"}),value:bk},{label:o.formatMessage({id:"ticket.priority.high"}),value:EF},{label:o.formatMessage({id:"ticket.priority.urgent"}),value:$F},{label:o.formatMessage({id:"ticket.priority.critical"}),value:MF}],rules:[{required:!0}]}),x.jsx(ro,{name:"categoryUid",label:o.formatMessage({id:"ticket.form.category"}),rules:[{required:!0}],options:p.map(V=>({label:s(V.name),value:V.uid})),placeholder:o.formatMessage({id:"ticket.form.category.placeholder"})}),x.jsx(WTt,{name:"departmentUid",label:o.formatMessage({id:"ticket.form.department"}),rules:[{required:!0}],fieldProps:{treeData:O,treeDefaultExpandAll:!0,onChange:N,placeholder:o.formatMessage({id:"ticket.form.department.placeholder"})}}),x.jsx(ro,{name:"assigneeUid",label:o.formatMessage({id:"ticket.form.assignee"}),options:m.map(V=>{var B;return{label:V.nickname||((B=V.user)==null?void 0:B.nickname),value:V.uid}}),placeholder:o.formatMessage({id:"ticket.form.assignee.placeholder"}),fieldProps:{onChange:V=>{const B=m.find(U=>U.uid===V);y(B||{uid:"",nickname:"",avatar:""})}},disabled:m.length===0}),x.jsx(ro,{name:"threadUid",label:o.formatMessage({id:"ticket.form.thread"}),options:[{label:o.formatMessage({id:"ticket.form.thread.none"}),value:""},...(f==null?void 0:f.filter(Rf).map(V=>{var B;return{label:((B=V.user)==null?void 0:B.nickname)||V.uid,value:V.uid}}))||[]],placeholder:o.formatMessage({id:"ticket.form.thread.placeholder"})}),x.jsx(ro,{name:"processEntityUid",label:o.formatMessage({id:"ticket.form.process"}),rules:[{required:!0}],options:_.map(V=>({label:s(V.name),value:V.uid})),placeholder:o.formatMessage({id:"ticket.form.process.placeholder"})}),b&&x.jsx(mKt,{type:yk,isModalOpen:b,attachments:n==null?void 0:n.attachments,handleSubmit:(V,B)=>{if(console.log("handleSubmit",V,B),t&&n){const U=B.filter(Y=>{var ee;return!((ee=n.attachments)!=null&&ee.some(ie=>{var Z;return((Z=ie.upload)==null?void 0:Z.uid)===Y.uid}))});S(U)}else{const U=B.filter(Y=>{var ee;return!((ee=n.attachments)!=null&&ee.some(ie=>{var Z;return((Z=ie.upload)==null?void 0:Z.uid)===Y.uid}))});S(U)}C(!1)},handleCancel:()=>{C(!1)}}),x.jsx("div",{style:{marginTop:"16px",marginBottom:"16px",maxHeight:"200px",overflowY:"auto"},children:x.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:k.map(V=>x.jsx(uU,{file:V,onDelete:K},V.uid))})}),x.jsx(Yt,{icon:x.jsx(D4,{}),onClick:()=>C(!0),children:o.formatMessage({id:"ticket.form.upload.button"})})]})})},bKt=({group:e})=>x.jsx("div",{children:"GroupNotice"}),wKt=({group:e})=>x.jsx(x.Fragment,{children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:e==null?void 0:e.members,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:t==null?void 0:t.avatar}),title:x.jsx(x.Fragment,{children:t==null?void 0:t.nickname})})})})}),xKt=({group:e})=>x.jsx(x.Fragment,{children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:e==null?void 0:e.admins,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:t==null?void 0:t.avatar}),title:x.jsx(x.Fragment,{children:t==null?void 0:t.nickname})})})})}),SKt=({group:e})=>x.jsx(x.Fragment,{children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:e==null?void 0:e.robots,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:t==null?void 0:t.avatar}),title:x.jsx(x.Fragment,{children:t==null?void 0:t.nickname})})})})}),CKt=({group:e})=>(console.log("group",e),x.jsx("div",{style:{textAlign:"center"},children:x.jsx(az,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"./logo.png"})})),_Kt=({open:e,onClose:t})=>{const n=Rn(),r=fr(c=>c.currentThread),[i,a]=d.useState(),o=[{key:"notice",label:n.formatMessage({id:"chat.group.notice"}),children:x.jsx(bKt,{group:i})},{key:"members",label:n.formatMessage({id:"chat.group.members"}),children:x.jsx(wKt,{group:i})},{key:"admins",label:n.formatMessage({id:"chat.group.admins"}),children:x.jsx(xKt,{group:i})},{key:"robots",label:n.formatMessage({id:"chat.group.robots"}),children:x.jsx(SKt,{group:i})},{key:"qrcode",label:n.formatMessage({id:"chat.group.qrcode"}),children:x.jsx(CKt,{group:i})}],s=async()=>{var p,h;const c=(r==null?void 0:r.topic.split("/")[2])||"";c===""&&je.warning(n.formatMessage({id:"chat.group.uid.error"}));const u={uid:c},f=await $Wt(u);console.log("queryGroupByUid:",f.data,u),f.data.code===200?a((p=f==null?void 0:f.data)==null?void 0:p.data):je.error((h=f==null?void 0:f.data)==null?void 0:h.message)};d.useEffect(()=>{Fo(r)&&s()},[r]);const l=c=>{console.log(c)};return x.jsx(Ch,{title:"群组资料",width:500,onClose:t,open:e,children:x.jsx(l8,{bordered:!1,items:o,defaultActiveKey:["1"],onChange:l})})},kKt=({open:e,onClose:t})=>{const n=fr(s=>s.currentThread),[r,i]=d.useState(),a=[{key:"nickname",label:"昵称",children:(r==null?void 0:r.nickname)||"暂无"},{key:"jobNo",label:"jobNo",children:(r==null?void 0:r.jobNo)||"暂无"},{key:"jobTitle",label:"jobTitle",children:(r==null?void 0:r.jobTitle)||"暂无"},{key:"seatNo",label:"seatNo",children:(r==null?void 0:r.seatNo)||"暂无"},{key:"telephone",label:"telephone",children:(r==null?void 0:r.telephone)||"暂无"},{key:"email",label:"email",children:(r==null?void 0:r.email)||"暂无"},{key:"mobile",label:"mobile",children:(r==null?void 0:r.mobile)||"暂无"}],o=async()=>{var c,u,f,p;const s=(c=n==null?void 0:n.user)==null?void 0:c.uid,l=await Jct(s);console.log("response:",l==null?void 0:l.data,s),((u=l==null?void 0:l.data)==null?void 0:u.code)===200?i((f=l==null?void 0:l.data)==null?void 0:f.data):je.error((p=l==null?void 0:l.data)==null?void 0:p.message)};return d.useEffect(()=>{Nk(n)&&o()},[n]),x.jsx(Ch,{title:"成员资料",width:500,onClose:t,open:e,children:x.jsx(ls,{column:1,items:a,bordered:!1})})};async function EKt(e){return bn("/api/v1/model/query/org",{method:"GET",params:{...e,client:kn}})}async function $Kt(e){return bn("/api/v1/provider/query/org",{method:"GET",params:{...e,client:kn}})}async function MKt(){return bn("/api/v1/ollama4j/ping",{method:"GET",params:{client:kn}})}async function TKt(){return bn("/api/v1/ollama4j/local-models",{method:"GET",params:{client:kn}})}const PKt=so()(es(ts(ns((e,t)=>({llmproviderResult:{data:{content:[]}},currentLlmProvider:{uid:"",nickname:""},insertLlmProvider(n){e(r=>{r.llmproviderResult.data.content.unshift(n)})},setLlmProviderResult:n=>{var i,a;e({llmproviderResult:n});const r=t().currentLlmProvider;(r.uid===""||r===void 0)&&((a=(i=n.data)==null?void 0:i.content)==null?void 0:a.length)>0&&e({currentLlmProvider:n.data.content[0]})},setCurrentLlmProvider(n){const r=t().llmproviderResult.data.content,i=r.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...r.slice(0,i),n,...r.slice(i+1)],o={...t().llmproviderResult,data:{content:a}};e({llmproviderResult:o,currentLlmProvider:n})}else console.warn("LlmProvider with the specified uid not found."),e({currentLlmProvider:n})},deleteCurrentLlmProvider(n){const r=t().llmproviderResult.data.content,i=r.findIndex(a=>a.uid===n);i!==-1?e({llmproviderResult:{...t().llmproviderResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("LlmProvider not found in cache:",n),t().currentLlmProvider.uid===n&&e({currentLlmProvider:{uid:""}})},deleteLlmProviderCache:()=>e({},!0)})),{name:I6e}))),OKt=({open:e,onClose:t})=>{var E;const n=Rn(),[r]=Kn.useForm(),{translateString:i}=Zr(),a=Vr($=>$.currentOrg),{currentThread:o,setCurrentThread:s}=fr($=>({currentThread:$.currentThread,setCurrentThread:$.setCurrentThread})),{llmproviderResult:l,setLlmProviderResult:c}=PKt($=>({llmproviderResult:$.llmproviderResult,setLlmProviderResult:$.setLlmProviderResult})),[u,f]=d.useState({}),[p,h]=d.useState(),[m,g]=d.useState({});d.useEffect(()=>{h(o);const $=o==null?void 0:o.agent;let M;try{M=JSON.parse($)}catch(P){console.error("解析content为JSON时出错:",P)}f(M)},[o]);const v=async()=>{console.log("getLlmProviders");const $={pageNumber:0,pageSize:50,level:Lw,orgUid:a==null?void 0:a.uid},M=await $Kt($);console.log("queryLlmProvidersByOrg: ",M.data),M.data.code===200?c(M.data):je.error(M.data.message)};d.useEffect(()=>{var M,P,R,O,j;r.setFieldsValue({provider:(M=u==null?void 0:u.llm)==null?void 0:M.provider,model:(P=u==null?void 0:u.llm)==null?void 0:P.model,temperature:(R=u==null?void 0:u.llm)==null?void 0:R.temperature,prompt:i((O=u==null?void 0:u.llm)==null?void 0:O.prompt),contextMsgCount:(j=u==null?void 0:u.llm)==null?void 0:j.contextMsgCount}),v(),k({uid:"",name:"zhipu"})},[u]);const y=async $=>{console.log("llm handleSubmit",$),u.llm={...u.llm,...$},console.log("llm handleSubmit robot:",u);const M=JSON.stringify(u),P={...p,agent:M};console.log("llm handleSubmit threadRequest:",P);const R=await KFt(P);console.log("llm updateThread response:",R.data,P),R.data.code===200?(je.success("更新成功"),s(R.data.data),t()):je.error(R.data.message)},w=($,M)=>[x.jsx(Yt,{type:"default",onClick:()=>{var P,R,O,j,I;r.setFieldsValue({provider:(P=u==null?void 0:u.llm)==null?void 0:P.provider,model:(R=u==null?void 0:u.llm)==null?void 0:R.model,temperature:(O=u==null?void 0:u.llm)==null?void 0:O.temperature,prompt:i((j=u==null?void 0:u.llm)==null?void 0:j.prompt),contextMsgCount:(I=u==null?void 0:u.llm)==null?void 0:I.contextMsgCount})},children:"重置"},"reset"),x.jsx(Yt,{type:"primary",onClick:()=>{var P;(P=$.form)==null||P.submit()},children:"保存"},"submit")],b=async()=>{const $=await MKt();console.log("getOllamaServerStatus: ",$.data),$.data.code===200&&$.data.data?C():je.error($.data.message)},C=async()=>{const $=await TKt();if(console.log("requestLocalModels: ",$.data),$.data.code===200){const M=$.data.data.map(P=>({value:P.name,label:P.name}));g(P=>({...P,ollama:M})),M.length===0?r.setFieldValue("model",void 0):r.getFieldValue("model")||r.setFieldValue("model",M[0].value)}else je.error($.data.message)},k=async $=>{je.loading(n.formatMessage({id:"loading"}));try{const M={pageNumber:0,pageSize:50,providerUid:$.uid,orgUid:a==null?void 0:a.uid,level:Lw},P=await EKt(M);if(console.log("queryLlmModelsByOrg response:",P.data),P.data.code===200){const R=P.data.data.content.map(O=>({value:O.name,label:O.nickname}));g(O=>({...O,[$.name]:R})),R.length===0?r.setFieldValue("model",void 0):r.getFieldValue("model")||r.setFieldValue("model",R[0].value)}else je.error(P.data.message)}catch(M){console.error("Failed to fetch models:",M),je.error(n.formatMessage({id:"error"}))}finally{je.destroy()}},S=$=>{var P;const M=(P=l==null?void 0:l.data)==null?void 0:P.content.find(R=>R.name===$);console.log("selectedProvider:",M),M!=null&&M.name&&(M.name==="ollama"?b():k(M))},_=$=>{console.log("handleModelSelected:",$)};return x.jsx(Ch,{title:"大模型设置",width:500,onClose:t,open:e,children:x.jsxs(Kn,{form:r,submitter:{render:w,submitButtonProps:{size:"large",htmlType:"button"}},onFinish:y,children:[x.jsx(Cd,{width:"lg",name:"prompt",label:"提示词",placeholder:"请输入prompt",rules:[{required:!0,message:"请输入prompt"}],fieldProps:{autoSize:!0,rows:3}}),x.jsx(ro,{width:"lg",name:"provider",label:"提供商",allowClear:!0,options:(E=l==null?void 0:l.data)==null?void 0:E.content.map($=>({value:$.name,label:$.nickname})),fieldProps:{onChange($,M){console.log("provider value:",$,M),S($)}},rules:[{required:!0,message:"请选择大模型"}]}),x.jsx(ro,{width:"lg",name:"model",label:"模型",allowClear:!0,options:m[r.getFieldValue("provider")]||[],fieldProps:{onChange($,M){console.log("model value:",$,M),_($)}},rules:[{required:!0,message:"请选择大模型"}]}),x.jsx(jee,{width:"lg",label:"温度",name:"temperature",min:0,max:1,fieldProps:{precision:1,step:.1},rules:[{required:!0,message:"请输入温度"}]}),x.jsx(jee,{width:"lg",label:"上下文消息数",name:"contextMsgCount",min:0,max:10,fieldProps:{precision:0,step:1},rules:[{required:!0,message:"请输入上下文消息数"}]})]})})},RKt=[{id:"people",emojis:["grinning","smiley","smile","grin","laughing","sweat_smile","rolling_on_the_floor_laughing","joy","slightly_smiling_face","upside_down_face","melting_face","wink","blush","innocent","smiling_face_with_3_hearts","heart_eyes","star-struck","kissing_heart","kissing","relaxed","kissing_closed_eyes","kissing_smiling_eyes","smiling_face_with_tear","yum","stuck_out_tongue","stuck_out_tongue_winking_eye","zany_face","stuck_out_tongue_closed_eyes","money_mouth_face","hugging_face","face_with_hand_over_mouth","face_with_open_eyes_and_hand_over_mouth","face_with_peeking_eye","shushing_face","thinking_face","saluting_face","zipper_mouth_face","face_with_raised_eyebrow","neutral_face","expressionless","no_mouth","dotted_line_face","face_in_clouds","smirk","unamused","face_with_rolling_eyes","grimacing","face_exhaling","lying_face","shaking_face","relieved","pensive","sleepy","drooling_face","sleeping","mask","face_with_thermometer","face_with_head_bandage","nauseated_face","face_vomiting","sneezing_face","hot_face","cold_face","woozy_face","dizzy_face","face_with_spiral_eyes","exploding_head","face_with_cowboy_hat","partying_face","disguised_face","sunglasses","nerd_face","face_with_monocle","confused","face_with_diagonal_mouth","worried","slightly_frowning_face","white_frowning_face","open_mouth","hushed","astonished","flushed","pleading_face","face_holding_back_tears","frowning","anguished","fearful","cold_sweat","disappointed_relieved","cry","sob","scream","confounded","persevere","disappointed","sweat","weary","tired_face","yawning_face","triumph","rage","angry","face_with_symbols_on_mouth","smiling_imp","imp","skull","skull_and_crossbones","hankey","clown_face","japanese_ogre","japanese_goblin","ghost","alien","space_invader","wave","raised_back_of_hand","raised_hand_with_fingers_splayed","hand","spock-hand","rightwards_hand","leftwards_hand","palm_down_hand","palm_up_hand","leftwards_pushing_hand","rightwards_pushing_hand","ok_hand","pinched_fingers","pinching_hand","v","crossed_fingers","hand_with_index_finger_and_thumb_crossed","i_love_you_hand_sign","the_horns","call_me_hand","point_left","point_right","point_up_2","middle_finger","point_down","point_up","index_pointing_at_the_viewer","+1","-1","fist","facepunch","left-facing_fist","right-facing_fist","clap","raised_hands","heart_hands","open_hands","palms_up_together","handshake","pray","writing_hand","nail_care","selfie","muscle","mechanical_arm","mechanical_leg","leg","foot","ear","ear_with_hearing_aid","nose","brain","anatomical_heart","lungs","tooth","bone","eyes","eye","tongue","lips","biting_lip","baby","child","boy","girl","adult","person_with_blond_hair","man","bearded_person","man_with_beard","woman_with_beard","red_haired_man","curly_haired_man","white_haired_man","bald_man","woman","red_haired_woman","red_haired_person","curly_haired_woman","curly_haired_person","white_haired_woman","white_haired_person","bald_woman","bald_person","blond-haired-woman","blond-haired-man","older_adult","older_man","older_woman","person_frowning","man-frowning","woman-frowning","person_with_pouting_face","man-pouting","woman-pouting","no_good","man-gesturing-no","woman-gesturing-no","ok_woman","man-gesturing-ok","woman-gesturing-ok","information_desk_person","man-tipping-hand","woman-tipping-hand","raising_hand","man-raising-hand","woman-raising-hand","deaf_person","deaf_man","deaf_woman","bow","man-bowing","woman-bowing","face_palm","man-facepalming","woman-facepalming","shrug","man-shrugging","woman-shrugging","health_worker","male-doctor","female-doctor","student","male-student","female-student","teacher","male-teacher","female-teacher","judge","male-judge","female-judge","farmer","male-farmer","female-farmer","cook","male-cook","female-cook","mechanic","male-mechanic","female-mechanic","factory_worker","male-factory-worker","female-factory-worker","office_worker","male-office-worker","female-office-worker","scientist","male-scientist","female-scientist","technologist","male-technologist","female-technologist","singer","male-singer","female-singer","artist","male-artist","female-artist","pilot","male-pilot","female-pilot","astronaut","male-astronaut","female-astronaut","firefighter","male-firefighter","female-firefighter","cop","male-police-officer","female-police-officer","sleuth_or_spy","male-detective","female-detective","guardsman","male-guard","female-guard","ninja","construction_worker","male-construction-worker","female-construction-worker","person_with_crown","prince","princess","man_with_turban","man-wearing-turban","woman-wearing-turban","man_with_gua_pi_mao","person_with_headscarf","person_in_tuxedo","man_in_tuxedo","woman_in_tuxedo","bride_with_veil","man_with_veil","woman_with_veil","pregnant_woman","pregnant_man","pregnant_person","breast-feeding","woman_feeding_baby","man_feeding_baby","person_feeding_baby","angel","santa","mrs_claus","mx_claus","superhero","male_superhero","female_superhero","supervillain","male_supervillain","female_supervillain","mage","male_mage","female_mage","fairy","male_fairy","female_fairy","vampire","male_vampire","female_vampire","merperson","merman","mermaid","elf","male_elf","female_elf","genie","male_genie","female_genie","zombie","male_zombie","female_zombie","troll","massage","man-getting-massage","woman-getting-massage","haircut","man-getting-haircut","woman-getting-haircut","walking","man-walking","woman-walking","standing_person","man_standing","woman_standing","kneeling_person","man_kneeling","woman_kneeling","person_with_probing_cane","man_with_probing_cane","woman_with_probing_cane","person_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_in_motorized_wheelchair","person_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_manual_wheelchair","runner","man-running","woman-running","dancer","man_dancing","man_in_business_suit_levitating","dancers","men-with-bunny-ears-partying","women-with-bunny-ears-partying","person_in_steamy_room","man_in_steamy_room","woman_in_steamy_room","person_climbing","man_climbing","woman_climbing","fencer","horse_racing","skier","snowboarder","golfer","man-golfing","woman-golfing","surfer","man-surfing","woman-surfing","rowboat","man-rowing-boat","woman-rowing-boat","swimmer","man-swimming","woman-swimming","person_with_ball","man-bouncing-ball","woman-bouncing-ball","weight_lifter","man-lifting-weights","woman-lifting-weights","bicyclist","man-biking","woman-biking","mountain_bicyclist","man-mountain-biking","woman-mountain-biking","person_doing_cartwheel","man-cartwheeling","woman-cartwheeling","wrestlers","man-wrestling","woman-wrestling","water_polo","man-playing-water-polo","woman-playing-water-polo","handball","man-playing-handball","woman-playing-handball","juggling","man-juggling","woman-juggling","person_in_lotus_position","man_in_lotus_position","woman_in_lotus_position","bath","sleeping_accommodation","people_holding_hands","two_women_holding_hands","man_and_woman_holding_hands","two_men_holding_hands","couplekiss","woman-kiss-man","man-kiss-man","woman-kiss-woman","couple_with_heart","woman-heart-man","man-heart-man","woman-heart-woman","family","man-woman-boy","man-woman-girl","man-woman-girl-boy","man-woman-boy-boy","man-woman-girl-girl","man-man-boy","man-man-girl","man-man-girl-boy","man-man-boy-boy","man-man-girl-girl","woman-woman-boy","woman-woman-girl","woman-woman-girl-boy","woman-woman-boy-boy","woman-woman-girl-girl","man-boy","man-boy-boy","man-girl","man-girl-boy","man-girl-girl","woman-boy","woman-boy-boy","woman-girl","woman-girl-boy","woman-girl-girl","speaking_head_in_silhouette","bust_in_silhouette","busts_in_silhouette","people_hugging","footprints","robot_face","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","see_no_evil","hear_no_evil","speak_no_evil","love_letter","cupid","gift_heart","sparkling_heart","heartpulse","heartbeat","revolving_hearts","two_hearts","heart_decoration","heavy_heart_exclamation_mark_ornament","broken_heart","heart_on_fire","mending_heart","heart","pink_heart","orange_heart","yellow_heart","green_heart","blue_heart","light_blue_heart","purple_heart","brown_heart","black_heart","grey_heart","white_heart","kiss","100","anger","boom","dizzy","sweat_drops","dash","hole","speech_balloon","eye-in-speech-bubble","left_speech_bubble","right_anger_bubble","thought_balloon","zzz"]},{id:"nature",emojis:["monkey_face","monkey","gorilla","orangutan","dog","dog2","guide_dog","service_dog","poodle","wolf","fox_face","raccoon","cat","cat2","black_cat","lion_face","tiger","tiger2","leopard","horse","moose","donkey","racehorse","unicorn_face","zebra_face","deer","bison","cow","ox","water_buffalo","cow2","pig","pig2","boar","pig_nose","ram","sheep","goat","dromedary_camel","camel","llama","giraffe_face","elephant","mammoth","rhinoceros","hippopotamus","mouse","mouse2","rat","hamster","rabbit","rabbit2","chipmunk","beaver","hedgehog","bat","bear","polar_bear","koala","panda_face","sloth","otter","skunk","kangaroo","badger","feet","turkey","chicken","rooster","hatching_chick","baby_chick","hatched_chick","bird","penguin","dove_of_peace","eagle","duck","swan","owl","dodo","feather","flamingo","peacock","parrot","wing","black_bird","goose","frog","crocodile","turtle","lizard","snake","dragon_face","dragon","sauropod","t-rex","whale","whale2","dolphin","seal","fish","tropical_fish","blowfish","shark","octopus","shell","coral","jellyfish","snail","butterfly","bug","ant","bee","beetle","ladybug","cricket","cockroach","spider","spider_web","scorpion","mosquito","fly","worm","microbe","bouquet","cherry_blossom","white_flower","lotus","rosette","rose","wilted_flower","hibiscus","sunflower","blossom","tulip","hyacinth","seedling","potted_plant","evergreen_tree","deciduous_tree","palm_tree","cactus","ear_of_rice","herb","shamrock","four_leaf_clover","maple_leaf","fallen_leaf","leaves","empty_nest","nest_with_eggs","mushroom"]},{id:"foods",emojis:["grapes","melon","watermelon","tangerine","lemon","banana","pineapple","mango","apple","green_apple","pear","peach","cherries","strawberry","blueberries","kiwifruit","tomato","olive","coconut","avocado","eggplant","potato","carrot","corn","hot_pepper","bell_pepper","cucumber","leafy_green","broccoli","garlic","onion","peanuts","beans","chestnut","ginger_root","pea_pod","bread","croissant","baguette_bread","flatbread","pretzel","bagel","pancakes","waffle","cheese_wedge","meat_on_bone","poultry_leg","cut_of_meat","bacon","hamburger","fries","pizza","hotdog","sandwich","taco","burrito","tamale","stuffed_flatbread","falafel","egg","fried_egg","shallow_pan_of_food","stew","fondue","bowl_with_spoon","green_salad","popcorn","butter","salt","canned_food","bento","rice_cracker","rice_ball","rice","curry","ramen","spaghetti","sweet_potato","oden","sushi","fried_shrimp","fish_cake","moon_cake","dango","dumpling","fortune_cookie","takeout_box","crab","lobster","shrimp","squid","oyster","icecream","shaved_ice","ice_cream","doughnut","cookie","birthday","cake","cupcake","pie","chocolate_bar","candy","lollipop","custard","honey_pot","baby_bottle","glass_of_milk","coffee","teapot","tea","sake","champagne","wine_glass","cocktail","tropical_drink","beer","beers","clinking_glasses","tumbler_glass","pouring_liquid","cup_with_straw","bubble_tea","beverage_box","mate_drink","ice_cube","chopsticks","knife_fork_plate","fork_and_knife","spoon","hocho","jar","amphora"]},{id:"activity",emojis:["jack_o_lantern","christmas_tree","fireworks","sparkler","firecracker","sparkles","balloon","tada","confetti_ball","tanabata_tree","bamboo","dolls","flags","wind_chime","rice_scene","red_envelope","ribbon","gift","reminder_ribbon","admission_tickets","ticket","medal","trophy","sports_medal","first_place_medal","second_place_medal","third_place_medal","soccer","baseball","softball","basketball","volleyball","football","rugby_football","tennis","flying_disc","bowling","cricket_bat_and_ball","field_hockey_stick_and_ball","ice_hockey_stick_and_puck","lacrosse","table_tennis_paddle_and_ball","badminton_racquet_and_shuttlecock","boxing_glove","martial_arts_uniform","goal_net","golf","ice_skate","fishing_pole_and_fish","diving_mask","running_shirt_with_sash","ski","sled","curling_stone","dart","yo-yo","kite","gun","8ball","crystal_ball","magic_wand","video_game","joystick","slot_machine","game_die","jigsaw","teddy_bear","pinata","mirror_ball","nesting_dolls","spades","hearts","diamonds","clubs","chess_pawn","black_joker","mahjong","flower_playing_cards","performing_arts","frame_with_picture","art","thread","sewing_needle","yarn","knot"]},{id:"places",emojis:["earth_africa","earth_americas","earth_asia","globe_with_meridians","world_map","japan","compass","snow_capped_mountain","mountain","volcano","mount_fuji","camping","beach_with_umbrella","desert","desert_island","national_park","stadium","classical_building","building_construction","bricks","rock","wood","hut","house_buildings","derelict_house_building","house","house_with_garden","office","post_office","european_post_office","hospital","bank","hotel","love_hotel","convenience_store","school","department_store","factory","japanese_castle","european_castle","wedding","tokyo_tower","statue_of_liberty","church","mosque","hindu_temple","synagogue","shinto_shrine","kaaba","fountain","tent","foggy","night_with_stars","cityscape","sunrise_over_mountains","sunrise","city_sunset","city_sunrise","bridge_at_night","hotsprings","carousel_horse","playground_slide","ferris_wheel","roller_coaster","barber","circus_tent","steam_locomotive","railway_car","bullettrain_side","bullettrain_front","train2","metro","light_rail","station","tram","monorail","mountain_railway","train","bus","oncoming_bus","trolleybus","minibus","ambulance","fire_engine","police_car","oncoming_police_car","taxi","oncoming_taxi","car","oncoming_automobile","blue_car","pickup_truck","truck","articulated_lorry","tractor","racing_car","racing_motorcycle","motor_scooter","manual_wheelchair","motorized_wheelchair","auto_rickshaw","bike","scooter","skateboard","roller_skate","busstop","motorway","railway_track","oil_drum","fuelpump","wheel","rotating_light","traffic_light","vertical_traffic_light","octagonal_sign","construction","anchor","ring_buoy","boat","canoe","speedboat","passenger_ship","ferry","motor_boat","ship","airplane","small_airplane","airplane_departure","airplane_arriving","parachute","seat","helicopter","suspension_railway","mountain_cableway","aerial_tramway","satellite","rocket","flying_saucer","bellhop_bell","luggage","hourglass","hourglass_flowing_sand","watch","alarm_clock","stopwatch","timer_clock","mantelpiece_clock","clock12","clock1230","clock1","clock130","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","clock10","clock1030","clock11","clock1130","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","crescent_moon","new_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","thermometer","sunny","full_moon_with_face","sun_with_face","ringed_planet","star","star2","stars","milky_way","cloud","partly_sunny","thunder_cloud_and_rain","mostly_sunny","barely_sunny","partly_sunny_rain","rain_cloud","snow_cloud","lightning","tornado","fog","wind_blowing_face","cyclone","rainbow","closed_umbrella","umbrella","umbrella_with_rain_drops","umbrella_on_ground","zap","snowflake","snowman","snowman_without_snow","comet","fire","droplet","ocean"]},{id:"objects",emojis:["eyeglasses","dark_sunglasses","goggles","lab_coat","safety_vest","necktie","shirt","jeans","scarf","gloves","coat","socks","dress","kimono","sari","one-piece_swimsuit","briefs","shorts","bikini","womans_clothes","folding_hand_fan","purse","handbag","pouch","shopping_bags","school_satchel","thong_sandal","mans_shoe","athletic_shoe","hiking_boot","womans_flat_shoe","high_heel","sandal","ballet_shoes","boot","hair_pick","crown","womans_hat","tophat","mortar_board","billed_cap","military_helmet","helmet_with_white_cross","prayer_beads","lipstick","ring","gem","mute","speaker","sound","loud_sound","loudspeaker","mega","postal_horn","bell","no_bell","musical_score","musical_note","notes","studio_microphone","level_slider","control_knobs","microphone","headphones","radio","saxophone","accordion","guitar","musical_keyboard","trumpet","violin","banjo","drum_with_drumsticks","long_drum","maracas","flute","iphone","calling","phone","telephone_receiver","pager","fax","battery","low_battery","electric_plug","computer","desktop_computer","printer","keyboard","three_button_mouse","trackball","minidisc","floppy_disk","cd","dvd","abacus","movie_camera","film_frames","film_projector","clapper","tv","camera","camera_with_flash","video_camera","vhs","mag","mag_right","candle","bulb","flashlight","izakaya_lantern","diya_lamp","notebook_with_decorative_cover","closed_book","book","green_book","blue_book","orange_book","books","notebook","ledger","page_with_curl","scroll","page_facing_up","newspaper","rolled_up_newspaper","bookmark_tabs","bookmark","label","moneybag","coin","yen","dollar","euro","pound","money_with_wings","credit_card","receipt","chart","email","e-mail","incoming_envelope","envelope_with_arrow","outbox_tray","inbox_tray","package","mailbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","postbox","ballot_box_with_ballot","pencil2","black_nib","lower_left_fountain_pen","lower_left_ballpoint_pen","lower_left_paintbrush","lower_left_crayon","memo","briefcase","file_folder","open_file_folder","card_index_dividers","date","calendar","spiral_note_pad","spiral_calendar_pad","card_index","chart_with_upwards_trend","chart_with_downwards_trend","bar_chart","clipboard","pushpin","round_pushpin","paperclip","linked_paperclips","straight_ruler","triangular_ruler","scissors","card_file_box","file_cabinet","wastebasket","lock","unlock","lock_with_ink_pen","closed_lock_with_key","key","old_key","hammer","axe","pick","hammer_and_pick","hammer_and_wrench","dagger_knife","crossed_swords","bomb","boomerang","bow_and_arrow","shield","carpentry_saw","wrench","screwdriver","nut_and_bolt","gear","compression","scales","probing_cane","link","chains","hook","toolbox","magnet","ladder","alembic","test_tube","petri_dish","dna","microscope","telescope","satellite_antenna","syringe","drop_of_blood","pill","adhesive_bandage","crutch","stethoscope","x-ray","door","elevator","mirror","window","bed","couch_and_lamp","chair","toilet","plunger","shower","bathtub","mouse_trap","razor","lotion_bottle","safety_pin","broom","basket","roll_of_paper","bucket","soap","bubbles","toothbrush","sponge","fire_extinguisher","shopping_trolley","smoking","coffin","headstone","funeral_urn","nazar_amulet","hamsa","moyai","placard","identification_card"]},{id:"symbols",emojis:["atm","put_litter_in_its_place","potable_water","wheelchair","mens","womens","restroom","baby_symbol","wc","passport_control","customs","baggage_claim","left_luggage","warning","children_crossing","no_entry","no_entry_sign","no_bicycles","no_smoking","do_not_litter","non-potable_water","no_pedestrians","no_mobile_phones","underage","radioactive_sign","biohazard_sign","arrow_up","arrow_upper_right","arrow_right","arrow_lower_right","arrow_down","arrow_lower_left","arrow_left","arrow_upper_left","arrow_up_down","left_right_arrow","leftwards_arrow_with_hook","arrow_right_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","arrows_counterclockwise","back","end","on","soon","top","place_of_worship","atom_symbol","om_symbol","star_of_david","wheel_of_dharma","yin_yang","latin_cross","orthodox_cross","star_and_crescent","peace_symbol","menorah_with_nine_branches","six_pointed_star","khanda","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","twisted_rightwards_arrows","repeat","repeat_one","arrow_forward","fast_forward","black_right_pointing_double_triangle_with_vertical_bar","black_right_pointing_triangle_with_double_vertical_bar","arrow_backward","rewind","black_left_pointing_double_triangle_with_vertical_bar","arrow_up_small","arrow_double_up","arrow_down_small","arrow_double_down","double_vertical_bar","black_square_for_stop","black_circle_for_record","eject","cinema","low_brightness","high_brightness","signal_strength","wireless","vibration_mode","mobile_phone_off","female_sign","male_sign","transgender_symbol","heavy_multiplication_x","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_equals_sign","infinity","bangbang","interrobang","question","grey_question","grey_exclamation","exclamation","wavy_dash","currency_exchange","heavy_dollar_sign","medical_symbol","recycle","fleur_de_lis","trident","name_badge","beginner","o","white_check_mark","ballot_box_with_check","heavy_check_mark","x","negative_squared_cross_mark","curly_loop","loop","part_alternation_mark","eight_spoked_asterisk","eight_pointed_black_star","sparkle","copyright","registered","tm","hash","keycap_star","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","capital_abcd","abcd","1234","symbols","abc","a","ab","b","cl","cool","free","information_source","id","m","new","ng","o2","ok","parking","sos","up","vs","koko","sa","u6708","u6709","u6307","ideograph_advantage","u5272","u7121","u7981","accept","u7533","u5408","u7a7a","congratulations","secret","u55b6","u6e80","red_circle","large_orange_circle","large_yellow_circle","large_green_circle","large_blue_circle","large_purple_circle","large_brown_circle","black_circle","white_circle","large_red_square","large_orange_square","large_yellow_square","large_green_square","large_blue_square","large_purple_square","large_brown_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_small_square","white_small_square","large_orange_diamond","large_blue_diamond","small_orange_diamond","small_blue_diamond","small_red_triangle","small_red_triangle_down","diamond_shape_with_a_dot_inside","radio_button","white_square_button","black_square_button"]},{id:"flags",emojis:["checkered_flag","cn","crossed_flags","de","es","flag-ac","flag-ad","flag-ae","flag-af","flag-ag","flag-ai","flag-al","flag-am","flag-ao","flag-aq","flag-ar","flag-as","flag-at","flag-au","flag-aw","flag-ax","flag-az","flag-ba","flag-bb","flag-bd","flag-be","flag-bf","flag-bg","flag-bh","flag-bi","flag-bj","flag-bl","flag-bm","flag-bn","flag-bo","flag-bq","flag-br","flag-bs","flag-bt","flag-bv","flag-bw","flag-by","flag-bz","flag-ca","flag-cc","flag-cd","flag-cf","flag-cg","flag-ch","flag-ci","flag-ck","flag-cl","flag-cm","flag-co","flag-cp","flag-cr","flag-cu","flag-cv","flag-cw","flag-cx","flag-cy","flag-cz","flag-dg","flag-dj","flag-dk","flag-dm","flag-do","flag-dz","flag-ea","flag-ec","flag-ee","flag-eg","flag-eh","flag-england","flag-er","flag-et","flag-eu","flag-fi","flag-fj","flag-fk","flag-fm","flag-fo","flag-ga","flag-gd","flag-ge","flag-gf","flag-gg","flag-gh","flag-gi","flag-gl","flag-gm","flag-gn","flag-gp","flag-gq","flag-gr","flag-gs","flag-gt","flag-gu","flag-gw","flag-gy","flag-hk","flag-hm","flag-hn","flag-hr","flag-ht","flag-hu","flag-ic","flag-id","flag-ie","flag-il","flag-im","flag-in","flag-io","flag-iq","flag-ir","flag-is","flag-je","flag-jm","flag-jo","flag-ke","flag-kg","flag-kh","flag-ki","flag-km","flag-kn","flag-kp","flag-kw","flag-ky","flag-kz","flag-la","flag-lb","flag-lc","flag-li","flag-lk","flag-lr","flag-ls","flag-lt","flag-lu","flag-lv","flag-ly","flag-ma","flag-mc","flag-md","flag-me","flag-mf","flag-mg","flag-mh","flag-mk","flag-ml","flag-mm","flag-mn","flag-mo","flag-mp","flag-mq","flag-mr","flag-ms","flag-mt","flag-mu","flag-mv","flag-mw","flag-mx","flag-my","flag-mz","flag-na","flag-nc","flag-ne","flag-nf","flag-ng","flag-ni","flag-nl","flag-no","flag-np","flag-nr","flag-nu","flag-nz","flag-om","flag-pa","flag-pe","flag-pf","flag-pg","flag-ph","flag-pk","flag-pl","flag-pm","flag-pn","flag-pr","flag-ps","flag-pt","flag-pw","flag-py","flag-qa","flag-re","flag-ro","flag-rs","flag-rw","flag-sa","flag-sb","flag-sc","flag-scotland","flag-sd","flag-se","flag-sg","flag-sh","flag-si","flag-sj","flag-sk","flag-sl","flag-sm","flag-sn","flag-so","flag-sr","flag-ss","flag-st","flag-sv","flag-sx","flag-sy","flag-sz","flag-ta","flag-tc","flag-td","flag-tf","flag-tg","flag-th","flag-tj","flag-tk","flag-tl","flag-tm","flag-tn","flag-to","flag-tr","flag-tt","flag-tv","flag-tw","flag-tz","flag-ua","flag-ug","flag-um","flag-un","flag-uy","flag-uz","flag-va","flag-vc","flag-ve","flag-vg","flag-vi","flag-vn","flag-vu","flag-wales","flag-wf","flag-ws","flag-xk","flag-ye","flag-yt","flag-za","flag-zm","flag-zw","fr","gb","it","jp","kr","pirate_flag","rainbow-flag","ru","transgender_flag","triangular_flag_on_post","us","waving_black_flag","waving_white_flag"]}],IKt={100:{id:"100",name:"Hundred Points",keywords:["100","score","perfect","numbers","century","exam","quiz","test","pass"],skins:[{unified:"1f4af",native:"💯"}],version:1},1234:{id:"1234",name:"Input Numbers",keywords:["1234","blue","square","1","2","3","4"],skins:[{unified:"1f522",native:"🔢"}],version:1},grinning:{id:"grinning",name:"Grinning Face",emoticons:[":D"],keywords:["smile","happy","joy",":D","grin"],skins:[{unified:"1f600",native:"😀"}],version:1},smiley:{id:"smiley",name:"Grinning Face with Big Eyes",emoticons:[":)","=)","=-)"],keywords:["smiley","happy","joy","haha",":D",":)","smile","funny"],skins:[{unified:"1f603",native:"😃"}],version:1},smile:{id:"smile",name:"Grinning Face with Smiling Eyes",emoticons:[":)","C:","c:",":D",":-D"],keywords:["smile","happy","joy","funny","haha","laugh","like",":D",":)"],skins:[{unified:"1f604",native:"😄"}],version:1},grin:{id:"grin",name:"Beaming Face with Smiling Eyes",keywords:["grin","happy","smile","joy","kawaii"],skins:[{unified:"1f601",native:"😁"}],version:1},laughing:{id:"laughing",name:"Grinning Squinting Face",emoticons:[":>",":->"],keywords:["laughing","satisfied","happy","joy","lol","haha","glad","XD","laugh"],skins:[{unified:"1f606",native:"😆"}],version:1},sweat_smile:{id:"sweat_smile",name:"Grinning Face with Sweat",keywords:["smile","hot","happy","laugh","relief"],skins:[{unified:"1f605",native:"😅"}],version:1},rolling_on_the_floor_laughing:{id:"rolling_on_the_floor_laughing",name:"Rolling on the Floor Laughing",keywords:["face","lol","haha","rofl"],skins:[{unified:"1f923",native:"🤣"}],version:3},joy:{id:"joy",name:"Face with Tears of Joy",keywords:["cry","weep","happy","happytears","haha"],skins:[{unified:"1f602",native:"😂"}],version:1},slightly_smiling_face:{id:"slightly_smiling_face",name:"Slightly Smiling Face",emoticons:[":)","(:",":-)"],keywords:["smile"],skins:[{unified:"1f642",native:"🙂"}],version:1},upside_down_face:{id:"upside_down_face",name:"Upside-Down Face",keywords:["upside","down","flipped","silly","smile"],skins:[{unified:"1f643",native:"🙃"}],version:1},melting_face:{id:"melting_face",name:"Melting Face",keywords:["hot","heat"],skins:[{unified:"1fae0",native:"🫠"}],version:14},wink:{id:"wink",name:"Winking Face",emoticons:[";)",";-)"],keywords:["wink","happy","mischievous","secret",";)","smile","eye"],skins:[{unified:"1f609",native:"😉"}],version:1},blush:{id:"blush",name:"Smiling Face with Smiling Eyes",emoticons:[":)"],keywords:["blush","smile","happy","flushed","crush","embarrassed","shy","joy"],skins:[{unified:"1f60a",native:"😊"}],version:1},innocent:{id:"innocent",name:"Smiling Face with Halo",keywords:["innocent","angel","heaven"],skins:[{unified:"1f607",native:"😇"}],version:1},smiling_face_with_3_hearts:{id:"smiling_face_with_3_hearts",name:"Smiling Face with Hearts",keywords:["3","love","like","affection","valentines","infatuation","crush","adore"],skins:[{unified:"1f970",native:"🥰"}],version:11},heart_eyes:{id:"heart_eyes",name:"Smiling Face with Heart-Eyes",keywords:["heart","eyes","love","like","affection","valentines","infatuation","crush"],skins:[{unified:"1f60d",native:"😍"}],version:1},"star-struck":{id:"star-struck",name:"Star-Struck",keywords:["star","struck","grinning","face","with","eyes","smile","starry"],skins:[{unified:"1f929",native:"🤩"}],version:5},kissing_heart:{id:"kissing_heart",name:"Face Blowing a Kiss",emoticons:[":*",":-*"],keywords:["kissing","heart","love","like","affection","valentines","infatuation"],skins:[{unified:"1f618",native:"😘"}],version:1},kissing:{id:"kissing",name:"Kissing Face",keywords:["love","like","3","valentines","infatuation","kiss"],skins:[{unified:"1f617",native:"😗"}],version:1},relaxed:{id:"relaxed",name:"Smiling Face",keywords:["relaxed","blush","massage","happiness"],skins:[{unified:"263a-fe0f",native:"☺️"}],version:1},kissing_closed_eyes:{id:"kissing_closed_eyes",name:"Kissing Face with Closed Eyes",keywords:["love","like","affection","valentines","infatuation","kiss"],skins:[{unified:"1f61a",native:"😚"}],version:1},kissing_smiling_eyes:{id:"kissing_smiling_eyes",name:"Kissing Face with Smiling Eyes",keywords:["affection","valentines","infatuation","kiss"],skins:[{unified:"1f619",native:"😙"}],version:1},smiling_face_with_tear:{id:"smiling_face_with_tear",name:"Smiling Face with Tear",keywords:["sad","cry","pretend"],skins:[{unified:"1f972",native:"🥲"}],version:13},yum:{id:"yum",name:"Face Savoring Food",keywords:["yum","happy","joy","tongue","smile","silly","yummy","nom","delicious","savouring"],skins:[{unified:"1f60b",native:"😋"}],version:1},stuck_out_tongue:{id:"stuck_out_tongue",name:"Face with Tongue",emoticons:[":p",":-p",":P",":-P",":b",":-b"],keywords:["stuck","out","prank","childish","playful","mischievous","smile"],skins:[{unified:"1f61b",native:"😛"}],version:1},stuck_out_tongue_winking_eye:{id:"stuck_out_tongue_winking_eye",name:"Winking Face with Tongue",emoticons:[";p",";-p",";b",";-b",";P",";-P"],keywords:["stuck","out","eye","prank","childish","playful","mischievous","smile","wink"],skins:[{unified:"1f61c",native:"😜"}],version:1},zany_face:{id:"zany_face",name:"Zany Face",keywords:["grinning","with","one","large","and","small","eye","goofy","crazy"],skins:[{unified:"1f92a",native:"🤪"}],version:5},stuck_out_tongue_closed_eyes:{id:"stuck_out_tongue_closed_eyes",name:"Squinting Face with Tongue",keywords:["stuck","out","closed","eyes","prank","playful","mischievous","smile"],skins:[{unified:"1f61d",native:"😝"}],version:1},money_mouth_face:{id:"money_mouth_face",name:"Money-Mouth Face",keywords:["money","mouth","rich","dollar"],skins:[{unified:"1f911",native:"🤑"}],version:1},hugging_face:{id:"hugging_face",name:"Hugging Face",keywords:["smile","hug"],skins:[{unified:"1f917",native:"🤗"}],version:1},face_with_hand_over_mouth:{id:"face_with_hand_over_mouth",name:"Face with Hand over Mouth",keywords:["smiling","eyes","and","covering","whoops","shock","surprise"],skins:[{unified:"1f92d",native:"🤭"}],version:5},face_with_open_eyes_and_hand_over_mouth:{id:"face_with_open_eyes_and_hand_over_mouth",name:"Face with Open Eyes and Hand over Mouth",keywords:["silence","secret","shock","surprise"],skins:[{unified:"1fae2",native:"🫢"}],version:14},face_with_peeking_eye:{id:"face_with_peeking_eye",name:"Face with Peeking Eye",keywords:["scared","frightening","embarrassing","shy"],skins:[{unified:"1fae3",native:"🫣"}],version:14},shushing_face:{id:"shushing_face",name:"Shushing Face",keywords:["with","finger","covering","closed","lips","quiet","shhh"],skins:[{unified:"1f92b",native:"🤫"}],version:5},thinking_face:{id:"thinking_face",name:"Thinking Face",keywords:["hmmm","think","consider"],skins:[{unified:"1f914",native:"🤔"}],version:1},saluting_face:{id:"saluting_face",name:"Saluting Face",keywords:["respect","salute"],skins:[{unified:"1fae1",native:"🫡"}],version:14},zipper_mouth_face:{id:"zipper_mouth_face",name:"Zipper-Mouth Face",keywords:["zipper","mouth","sealed","secret"],skins:[{unified:"1f910",native:"🤐"}],version:1},face_with_raised_eyebrow:{id:"face_with_raised_eyebrow",name:"Face with Raised Eyebrow",keywords:["one","distrust","scepticism","disapproval","disbelief","surprise"],skins:[{unified:"1f928",native:"🤨"}],version:5},neutral_face:{id:"neutral_face",name:"Neutral Face",emoticons:[":|",":-|"],keywords:["indifference","meh",":",""],skins:[{unified:"1f610",native:"😐"}],version:1},expressionless:{id:"expressionless",name:"Expressionless Face",emoticons:["-_-"],keywords:["indifferent","-","","meh","deadpan"],skins:[{unified:"1f611",native:"😑"}],version:1},no_mouth:{id:"no_mouth",name:"Face Without Mouth",keywords:["no","hellokitty"],skins:[{unified:"1f636",native:"😶"}],version:1},dotted_line_face:{id:"dotted_line_face",name:"Dotted Line Face",keywords:["invisible","lonely","isolation","depression"],skins:[{unified:"1fae5",native:"🫥"}],version:14},face_in_clouds:{id:"face_in_clouds",name:"Face in Clouds",keywords:["shower","steam","dream"],skins:[{unified:"1f636-200d-1f32b-fe0f",native:"😶‍🌫️"}],version:13.1},smirk:{id:"smirk",name:"Smirking Face",keywords:["smirk","smile","mean","prank","smug","sarcasm"],skins:[{unified:"1f60f",native:"😏"}],version:1},unamused:{id:"unamused",name:"Unamused Face",emoticons:[":("],keywords:["indifference","bored","straight","serious","sarcasm","unimpressed","skeptical","dubious","side","eye"],skins:[{unified:"1f612",native:"😒"}],version:1},face_with_rolling_eyes:{id:"face_with_rolling_eyes",name:"Face with Rolling Eyes",keywords:["eyeroll","frustrated"],skins:[{unified:"1f644",native:"🙄"}],version:1},grimacing:{id:"grimacing",name:"Grimacing Face",keywords:["grimace","teeth"],skins:[{unified:"1f62c",native:"😬"}],version:1},face_exhaling:{id:"face_exhaling",name:"Face Exhaling",keywords:["relieve","relief","tired","sigh"],skins:[{unified:"1f62e-200d-1f4a8",native:"😮‍💨"}],version:13.1},lying_face:{id:"lying_face",name:"Lying Face",keywords:["lie","pinocchio"],skins:[{unified:"1f925",native:"🤥"}],version:3},shaking_face:{id:"shaking_face",name:"Shaking Face",keywords:["dizzy","shock","blurry","earthquake"],skins:[{unified:"1fae8",native:"🫨"}],version:15},relieved:{id:"relieved",name:"Relieved Face",keywords:["relaxed","phew","massage","happiness"],skins:[{unified:"1f60c",native:"😌"}],version:1},pensive:{id:"pensive",name:"Pensive Face",keywords:["sad","depressed","upset"],skins:[{unified:"1f614",native:"😔"}],version:1},sleepy:{id:"sleepy",name:"Sleepy Face",keywords:["tired","rest","nap"],skins:[{unified:"1f62a",native:"😪"}],version:1},drooling_face:{id:"drooling_face",name:"Drooling Face",keywords:[],skins:[{unified:"1f924",native:"🤤"}],version:3},sleeping:{id:"sleeping",name:"Sleeping Face",keywords:["tired","sleepy","night","zzz"],skins:[{unified:"1f634",native:"😴"}],version:1},mask:{id:"mask",name:"Face with Medical Mask",keywords:["sick","ill","disease","covid"],skins:[{unified:"1f637",native:"😷"}],version:1},face_with_thermometer:{id:"face_with_thermometer",name:"Face with Thermometer",keywords:["sick","temperature","cold","fever","covid"],skins:[{unified:"1f912",native:"🤒"}],version:1},face_with_head_bandage:{id:"face_with_head_bandage",name:"Face with Head-Bandage",keywords:["head","bandage","injured","clumsy","hurt"],skins:[{unified:"1f915",native:"🤕"}],version:1},nauseated_face:{id:"nauseated_face",name:"Nauseated Face",keywords:["vomit","gross","green","sick","throw","up","ill"],skins:[{unified:"1f922",native:"🤢"}],version:3},face_vomiting:{id:"face_vomiting",name:"Face Vomiting",keywords:["with","open","mouth","sick"],skins:[{unified:"1f92e",native:"🤮"}],version:5},sneezing_face:{id:"sneezing_face",name:"Sneezing Face",keywords:["gesundheit","sneeze","sick","allergy"],skins:[{unified:"1f927",native:"🤧"}],version:3},hot_face:{id:"hot_face",name:"Hot Face",keywords:["feverish","heat","red","sweating"],skins:[{unified:"1f975",native:"🥵"}],version:11},cold_face:{id:"cold_face",name:"Cold Face",keywords:["blue","freezing","frozen","frostbite","icicles"],skins:[{unified:"1f976",native:"🥶"}],version:11},woozy_face:{id:"woozy_face",name:"Woozy Face",keywords:["dizzy","intoxicated","tipsy","wavy"],skins:[{unified:"1f974",native:"🥴"}],version:11},dizzy_face:{id:"dizzy_face",name:"Dizzy Face",keywords:["spent","unconscious","xox"],skins:[{unified:"1f635",native:"😵"}],version:1},face_with_spiral_eyes:{id:"face_with_spiral_eyes",name:"Face with Spiral Eyes",keywords:["sick","ill","confused","nauseous","nausea"],skins:[{unified:"1f635-200d-1f4ab",native:"😵‍💫"}],version:13.1},exploding_head:{id:"exploding_head",name:"Exploding Head",keywords:["shocked","face","with","mind","blown"],skins:[{unified:"1f92f",native:"🤯"}],version:5},face_with_cowboy_hat:{id:"face_with_cowboy_hat",name:"Cowboy Hat Face",keywords:["with","cowgirl"],skins:[{unified:"1f920",native:"🤠"}],version:3},partying_face:{id:"partying_face",name:"Partying Face",keywords:["celebration","woohoo"],skins:[{unified:"1f973",native:"🥳"}],version:11},disguised_face:{id:"disguised_face",name:"Disguised Face",keywords:["pretent","brows","glasses","moustache"],skins:[{unified:"1f978",native:"🥸"}],version:13},sunglasses:{id:"sunglasses",name:"Smiling Face with Sunglasses",emoticons:["8)"],keywords:["cool","smile","summer","beach","sunglass"],skins:[{unified:"1f60e",native:"😎"}],version:1},nerd_face:{id:"nerd_face",name:"Nerd Face",keywords:["nerdy","geek","dork"],skins:[{unified:"1f913",native:"🤓"}],version:1},face_with_monocle:{id:"face_with_monocle",name:"Face with Monocle",keywords:["stuffy","wealthy"],skins:[{unified:"1f9d0",native:"🧐"}],version:5},confused:{id:"confused",name:"Confused Face",emoticons:[":\\",":-\\",":/",":-/"],keywords:["indifference","huh","weird","hmmm",":/"],skins:[{unified:"1f615",native:"😕"}],version:1},face_with_diagonal_mouth:{id:"face_with_diagonal_mouth",name:"Face with Diagonal Mouth",keywords:["skeptic","confuse","frustrated","indifferent"],skins:[{unified:"1fae4",native:"🫤"}],version:14},worried:{id:"worried",name:"Worried Face",keywords:["concern","nervous",":("],skins:[{unified:"1f61f",native:"😟"}],version:1},slightly_frowning_face:{id:"slightly_frowning_face",name:"Slightly Frowning Face",keywords:["disappointed","sad","upset"],skins:[{unified:"1f641",native:"🙁"}],version:1},white_frowning_face:{id:"white_frowning_face",name:"Frowning Face",keywords:["white","sad","upset","frown"],skins:[{unified:"2639-fe0f",native:"☹️"}],version:1},open_mouth:{id:"open_mouth",name:"Face with Open Mouth",emoticons:[":o",":-o",":O",":-O"],keywords:["surprise","impressed","wow","whoa",":O"],skins:[{unified:"1f62e",native:"😮"}],version:1},hushed:{id:"hushed",name:"Hushed Face",keywords:["woo","shh"],skins:[{unified:"1f62f",native:"😯"}],version:1},astonished:{id:"astonished",name:"Astonished Face",keywords:["xox","surprised","poisoned"],skins:[{unified:"1f632",native:"😲"}],version:1},flushed:{id:"flushed",name:"Flushed Face",keywords:["blush","shy","flattered"],skins:[{unified:"1f633",native:"😳"}],version:1},pleading_face:{id:"pleading_face",name:"Pleading Face",keywords:["begging","mercy","cry","tears","sad","grievance"],skins:[{unified:"1f97a",native:"🥺"}],version:11},face_holding_back_tears:{id:"face_holding_back_tears",name:"Face Holding Back Tears",keywords:["touched","gratitude","cry"],skins:[{unified:"1f979",native:"🥹"}],version:14},frowning:{id:"frowning",name:"Frowning Face with Open Mouth",keywords:["aw","what"],skins:[{unified:"1f626",native:"😦"}],version:1},anguished:{id:"anguished",name:"Anguished Face",emoticons:["D:"],keywords:["stunned","nervous"],skins:[{unified:"1f627",native:"😧"}],version:1},fearful:{id:"fearful",name:"Fearful Face",keywords:["scared","terrified","nervous"],skins:[{unified:"1f628",native:"😨"}],version:1},cold_sweat:{id:"cold_sweat",name:"Anxious Face with Sweat",keywords:["cold","nervous"],skins:[{unified:"1f630",native:"😰"}],version:1},disappointed_relieved:{id:"disappointed_relieved",name:"Sad but Relieved Face",keywords:["disappointed","phew","sweat","nervous"],skins:[{unified:"1f625",native:"😥"}],version:1},cry:{id:"cry",name:"Crying Face",emoticons:[":'("],keywords:["cry","tears","sad","depressed","upset",":'("],skins:[{unified:"1f622",native:"😢"}],version:1},sob:{id:"sob",name:"Loudly Crying Face",emoticons:[":'("],keywords:["sob","cry","tears","sad","upset","depressed"],skins:[{unified:"1f62d",native:"😭"}],version:1},scream:{id:"scream",name:"Face Screaming in Fear",keywords:["scream","munch","scared","omg"],skins:[{unified:"1f631",native:"😱"}],version:1},confounded:{id:"confounded",name:"Confounded Face",keywords:["confused","sick","unwell","oops",":S"],skins:[{unified:"1f616",native:"😖"}],version:1},persevere:{id:"persevere",name:"Persevering Face",keywords:["persevere","sick","no","upset","oops"],skins:[{unified:"1f623",native:"😣"}],version:1},disappointed:{id:"disappointed",name:"Disappointed Face",emoticons:["):",":(",":-("],keywords:["sad","upset","depressed",":("],skins:[{unified:"1f61e",native:"😞"}],version:1},sweat:{id:"sweat",name:"Face with Cold Sweat",keywords:["downcast","hot","sad","tired","exercise"],skins:[{unified:"1f613",native:"😓"}],version:1},weary:{id:"weary",name:"Weary Face",keywords:["tired","sleepy","sad","frustrated","upset"],skins:[{unified:"1f629",native:"😩"}],version:1},tired_face:{id:"tired_face",name:"Tired Face",keywords:["sick","whine","upset","frustrated"],skins:[{unified:"1f62b",native:"😫"}],version:1},yawning_face:{id:"yawning_face",name:"Yawning Face",keywords:["tired","sleepy"],skins:[{unified:"1f971",native:"🥱"}],version:12},triumph:{id:"triumph",name:"Face with Look of Triumph",keywords:["steam","from","nose","gas","phew","proud","pride"],skins:[{unified:"1f624",native:"😤"}],version:1},rage:{id:"rage",name:"Pouting Face",keywords:["rage","angry","mad","hate","despise"],skins:[{unified:"1f621",native:"😡"}],version:1},angry:{id:"angry",name:"Angry Face",emoticons:[">:(",">:-("],keywords:["mad","annoyed","frustrated"],skins:[{unified:"1f620",native:"😠"}],version:1},face_with_symbols_on_mouth:{id:"face_with_symbols_on_mouth",name:"Face with Symbols on Mouth",keywords:["serious","covering","swearing","cursing","cussing","profanity","expletive"],skins:[{unified:"1f92c",native:"🤬"}],version:5},smiling_imp:{id:"smiling_imp",name:"Smiling Face with Horns",keywords:["imp","devil"],skins:[{unified:"1f608",native:"😈"}],version:1},imp:{id:"imp",name:"Imp",keywords:["angry","face","with","horns","devil"],skins:[{unified:"1f47f",native:"👿"}],version:1},skull:{id:"skull",name:"Skull",keywords:["dead","skeleton","creepy","death"],skins:[{unified:"1f480",native:"💀"}],version:1},skull_and_crossbones:{id:"skull_and_crossbones",name:"Skull and Crossbones",keywords:["poison","danger","deadly","scary","death","pirate","evil"],skins:[{unified:"2620-fe0f",native:"☠️"}],version:1},hankey:{id:"hankey",name:"Pile of Poo",keywords:["hankey","poop","shit","shitface","fail","turd"],skins:[{unified:"1f4a9",native:"💩"}],version:1},clown_face:{id:"clown_face",name:"Clown Face",keywords:[],skins:[{unified:"1f921",native:"🤡"}],version:3},japanese_ogre:{id:"japanese_ogre",name:"Ogre",keywords:["japanese","monster","red","mask","halloween","scary","creepy","devil","demon"],skins:[{unified:"1f479",native:"👹"}],version:1},japanese_goblin:{id:"japanese_goblin",name:"Goblin",keywords:["japanese","red","evil","mask","monster","scary","creepy"],skins:[{unified:"1f47a",native:"👺"}],version:1},ghost:{id:"ghost",name:"Ghost",keywords:["halloween","spooky","scary"],skins:[{unified:"1f47b",native:"👻"}],version:1},alien:{id:"alien",name:"Alien",keywords:["UFO","paul","weird","outer","space"],skins:[{unified:"1f47d",native:"👽"}],version:1},space_invader:{id:"space_invader",name:"Alien Monster",keywords:["space","invader","game","arcade","play"],skins:[{unified:"1f47e",native:"👾"}],version:1},robot_face:{id:"robot_face",name:"Robot",keywords:["face","computer","machine","bot"],skins:[{unified:"1f916",native:"🤖"}],version:1},smiley_cat:{id:"smiley_cat",name:"Grinning Cat",keywords:["smiley","animal","cats","happy","smile"],skins:[{unified:"1f63a",native:"😺"}],version:1},smile_cat:{id:"smile_cat",name:"Grinning Cat with Smiling Eyes",keywords:["smile","animal","cats"],skins:[{unified:"1f638",native:"😸"}],version:1},joy_cat:{id:"joy_cat",name:"Cat with Tears of Joy",keywords:["animal","cats","haha","happy"],skins:[{unified:"1f639",native:"😹"}],version:1},heart_eyes_cat:{id:"heart_eyes_cat",name:"Smiling Cat with Heart-Eyes",keywords:["heart","eyes","animal","love","like","affection","cats","valentines"],skins:[{unified:"1f63b",native:"😻"}],version:1},smirk_cat:{id:"smirk_cat",name:"Cat with Wry Smile",keywords:["smirk","animal","cats"],skins:[{unified:"1f63c",native:"😼"}],version:1},kissing_cat:{id:"kissing_cat",name:"Kissing Cat",keywords:["animal","cats","kiss"],skins:[{unified:"1f63d",native:"😽"}],version:1},scream_cat:{id:"scream_cat",name:"Weary Cat",keywords:["scream","animal","cats","munch","scared"],skins:[{unified:"1f640",native:"🙀"}],version:1},crying_cat_face:{id:"crying_cat_face",name:"Crying Cat",keywords:["face","animal","tears","weep","sad","cats","upset","cry"],skins:[{unified:"1f63f",native:"😿"}],version:1},pouting_cat:{id:"pouting_cat",name:"Pouting Cat",keywords:["animal","cats"],skins:[{unified:"1f63e",native:"😾"}],version:1},see_no_evil:{id:"see_no_evil",name:"See-No-Evil Monkey",keywords:["see","no","evil","animal","nature","haha"],skins:[{unified:"1f648",native:"🙈"}],version:1},hear_no_evil:{id:"hear_no_evil",name:"Hear-No-Evil Monkey",keywords:["hear","no","evil","animal","nature"],skins:[{unified:"1f649",native:"🙉"}],version:1},speak_no_evil:{id:"speak_no_evil",name:"Speak-No-Evil Monkey",keywords:["speak","no","evil","animal","nature","omg"],skins:[{unified:"1f64a",native:"🙊"}],version:1},love_letter:{id:"love_letter",name:"Love Letter",keywords:["email","like","affection","envelope","valentines"],skins:[{unified:"1f48c",native:"💌"}],version:1},cupid:{id:"cupid",name:"Heart with Arrow",keywords:["cupid","love","like","affection","valentines"],skins:[{unified:"1f498",native:"💘"}],version:1},gift_heart:{id:"gift_heart",name:"Heart with Ribbon",keywords:["gift","love","valentines"],skins:[{unified:"1f49d",native:"💝"}],version:1},sparkling_heart:{id:"sparkling_heart",name:"Sparkling Heart",keywords:["love","like","affection","valentines"],skins:[{unified:"1f496",native:"💖"}],version:1},heartpulse:{id:"heartpulse",name:"Growing Heart",keywords:["heartpulse","like","love","affection","valentines","pink"],skins:[{unified:"1f497",native:"💗"}],version:1},heartbeat:{id:"heartbeat",name:"Beating Heart",keywords:["heartbeat","love","like","affection","valentines","pink"],skins:[{unified:"1f493",native:"💓"}],version:1},revolving_hearts:{id:"revolving_hearts",name:"Revolving Hearts",keywords:["love","like","affection","valentines"],skins:[{unified:"1f49e",native:"💞"}],version:1},two_hearts:{id:"two_hearts",name:"Two Hearts",keywords:["love","like","affection","valentines","heart"],skins:[{unified:"1f495",native:"💕"}],version:1},heart_decoration:{id:"heart_decoration",name:"Heart Decoration",keywords:["purple","square","love","like"],skins:[{unified:"1f49f",native:"💟"}],version:1},heavy_heart_exclamation_mark_ornament:{id:"heavy_heart_exclamation_mark_ornament",name:"Heart Exclamation",keywords:["heavy","mark","ornament","decoration","love"],skins:[{unified:"2763-fe0f",native:"❣️"}],version:1},broken_heart:{id:"broken_heart",name:"Broken Heart",emoticons:["2&&(o.children=arguments.length>3?o7.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return T_(e,o,r,i,null)}function T_(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++E4e};return i==null&&sr.vnode!=null&&sr.vnode(a),a}function Kd(){return{current:null}}function J0(e){return e.children}function pd(e,t){this.props=e,this.context=t}function ey(e,t){if(t==null)return e.__?ey(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?T_(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(p=y[u])===null||p&&h.key==p.key&&h.type===p.type)y[u]=void 0;else for(f=0;f{let e=null;try{navigator.userAgent.includes("jsdom")||(e=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!e)return()=>!1;const t=25,n=20,r=Math.floor(t/2);return e.font=r+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=n*2,e.canvas.height=t,i=>{e.clearRect(0,0,n*2,t),e.fillStyle="#FF0000",e.fillText(i,0,22),e.fillStyle="#0000FF",e.fillText(i,n,22);const a=e.getImageData(0,0,n,t).data,o=a.length;let s=0;for(;s=o)return!1;const l=n+s/4%n,c=Math.floor(s/4/n),u=e.getImageData(l,c,1,1).data;return!(a[s]!==u[0]||a[s+2]!==u[2]||e.measureText(i).width>=n)}})();var Ere={latestVersion:VKt,noCountryFlags:qKt};const WA=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let mo=null;function GKt(e){mo||(mo=oh.get("frequently")||{});const t=e.id||e;t&&(mo[t]||(mo[t]=0),mo[t]+=1,oh.set("last",t),oh.set("frequently",mo))}function YKt({maxFrequentRows:e,perLine:t}){if(!e)return[];mo||(mo=oh.get("frequently"));let n=[];if(!mo){mo={};for(let a in WA.slice(0,t)){const o=WA[a];mo[o]=t-a,n.push(o)}return n}const r=e*t,i=oh.get("last");for(let a in mo)n.push(a);if(n.sort((a,o)=>{const s=mo[o],l=mo[a];return s==l?a.localeCompare(o):s-l}),n.length>r){const a=n.slice(r);n=n.slice(0,r);for(let o of a)o!=i&&delete mo[o];i&&n.indexOf(i)==-1&&(delete mo[n[n.length-1]],n.splice(-1,1,i)),oh.set("frequently",mo)}return n}var L4e={add:GKt,get:YKt,DEFAULTS:WA},B4e={};B4e=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var lf={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let Ao=null,Ir=null;const RP={};async function $re(e){if(RP[e])return RP[e];const n=await(await fetch(e)).json();return RP[e]=n,n}let IP=null,z4e=null,H4e=!1;function s7(e,{caller:t}={}){return IP||(IP=new Promise(n=>{z4e=n})),e?XKt(e):t&&!H4e&&console.warn(`\`${t}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),IP}async function XKt(e){H4e=!0;let{emojiVersion:t,set:n,locale:r}=e;if(t||(t=lf.emojiVersion.value),n||(n=lf.set.value),r||(r=lf.locale.value),Ir)Ir.categories=Ir.categories.filter(l=>!l.name);else{Ir=(typeof e.data=="function"?await e.data():e.data)||await $re(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${n}.json`),Ir.emoticons={},Ir.natives={},Ir.categories.unshift({id:"frequent",emojis:[]});for(const l in Ir.aliases){const c=Ir.aliases[l],u=Ir.emojis[c];u&&(u.aliases||(u.aliases=[]),u.aliases.push(l))}Ir.originalCategories=Ir.categories}if(Ao=(typeof e.i18n=="function"?await e.i18n():e.i18n)||(r=="en"?k4e(B4e):await $re(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${r}.json`)),e.custom)for(let l in e.custom){l=parseInt(l);const c=e.custom[l],u=e.custom[l-1];if(!(!c.emojis||!c.emojis.length)){c.id||(c.id=`custom_${l+1}`),c.name||(c.name=Ao.categories.custom),u&&!c.icon&&(c.target=u.target||u),Ir.categories.push(c);for(const f of c.emojis)Ir.emojis[f.id]=f}}e.categories&&(Ir.categories=Ir.originalCategories.filter(l=>e.categories.indexOf(l.id)!=-1).sort((l,c)=>{const u=e.categories.indexOf(l.id),f=e.categories.indexOf(c.id);return u-f}));let i=null,a=null;n=="native"&&(i=Ere.latestVersion(),a=e.noCountryFlags||Ere.noCountryFlags());let o=Ir.categories.length,s=!1;for(;o--;){const l=Ir.categories[o];if(l.id=="frequent"){let{maxFrequentRows:f,perLine:p}=e;f=f>=0?f:lf.maxFrequentRows.value,p||(p=lf.perLine.value),l.emojis=L4e.get({maxFrequentRows:f,perLine:p})}if(!l.emojis||!l.emojis.length){Ir.categories.splice(o,1);continue}const{categoryIcons:c}=e;if(c){const f=c[l.id];f&&!l.icon&&(l.icon=f)}let u=l.emojis.length;for(;u--;){const f=l.emojis[u],p=f.id?f:Ir.emojis[f],h=()=>{l.emojis.splice(u,1)};if(!p||e.exceptEmojis&&e.exceptEmojis.includes(p.id)){h();continue}if(i&&p.version>i){h();continue}if(a&&l.id=="flags"&&!tGt.includes(p.id)){h();continue}if(!p.search){if(s=!0,p.search=","+[[p.id,!1],[p.name,!0],[p.keywords,!1],[p.emoticons,!1]].map(([g,v])=>{if(g)return(Array.isArray(g)?g:[g]).map(y=>(v?y.split(/[-|_|\s]+/):[y]).map(w=>w.toLowerCase())).flat()}).flat().filter(g=>g&&g.trim()).join(","),p.emoticons)for(const g of p.emoticons)Ir.emoticons[g]||(Ir.emoticons[g]=p.id);let m=0;for(const g of p.skins){if(!g)continue;m++;const{native:v}=g;v&&(Ir.natives[v]=p.id,p.search+=`,${v}`);const y=m==1?"":`:skin-tone-${m}:`;g.shortcodes=`:${p.id}:${y}`}}}}s&&qv.reset(),z4e()}function U4e(e,t,n){e||(e={});const r={};for(let i in t)r[i]=W4e(i,e,t,n);return r}function W4e(e,t,n,r){const i=n[e];let a=r&&r.getAttribute(e)||(t[e]!=null&&t[e]!=null?t[e]:null);return i&&(a!=null&&i.value&&typeof i.value!=typeof a&&(typeof i.value=="boolean"?a=a!="false":a=i.value.constructor(a)),i.transform&&a&&(a=i.transform(a)),(a==null||i.choices&&i.choices.indexOf(a)==-1)&&(a=i.value)),a}const ZKt=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let VA=null;function QKt(e){return e.id?e:Ir.emojis[e]||Ir.emojis[Ir.aliases[e]]||Ir.emojis[Ir.natives[e]]}function JKt(){VA=null}async function eGt(e,{maxResults:t,caller:n}={}){if(!e||!e.trim().length)return null;t||(t=90),await s7(null,{caller:n||"SearchIndex.search"});const r=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((s,l,c)=>s.trim()&&c.indexOf(s)==l);if(!r.length)return;let i=VA||(VA=Object.values(Ir.emojis)),a,o;for(const s of r){if(!i.length)break;a=[],o={};for(const l of i){if(!l.search)continue;const c=l.search.indexOf(`,${s}`);c!=-1&&(a.push(l),o[l.id]||(o[l.id]=0),o[l.id]+=l.id==s?0:c+1)}i=a}return a.length<2||(a.sort((s,l)=>{const c=o[s.id],u=o[l.id];return c==u?s.id.localeCompare(l.id):c-u}),a.length>t&&(a=a.slice(0,t))),a}var qv={search:eGt,get:QKt,reset:JKt,SHORTCODES_REGEX:ZKt};const tGt=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function nGt(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((n,r)=>n==t[r])}async function rGt(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}function iGt(e,{skinIndex:t=0}={}){const n=e.skins[t]||(t=0,e.skins[t]),r={id:e.id,name:e.name,native:n.native,unified:n.unified,keywords:e.keywords,shortcodes:n.shortcodes||e.shortcodes};return e.skins.length>1&&(r.skin=t+1),n.src&&(r.src=n.src),e.aliases&&e.aliases.length&&(r.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(r.emoticons=e.emoticons),r}const aGt={activity:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:nn("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:nn("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:nn("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:nn("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[nn("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),nn("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[nn("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),nn("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:nn("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[nn("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),nn("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:nn("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[nn("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),nn("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[nn("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),nn("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:nn("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},oGt={loupe:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:nn("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:nn("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var y5={categories:aGt,search:oGt};function qA(e){let{id:t,skin:n,emoji:r}=e;if(e.shortcodes){const s=e.shortcodes.match(qv.SHORTCODES_REGEX);s&&(t=s[1],s[2]&&(n=s[2]))}if(r||(r=qv.get(t||e.native)),!r)return e.fallback;const i=r.skins[n-1]||r.skins[0],a=i.src||(e.set!="native"&&!e.spritesheet?typeof e.getImageURL=="function"?e.getImageURL(e.set,i.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/64/${i.unified}.png`:void 0),o=typeof e.getSpritesheetURL=="function"?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/sheets-256/64.png`;return nn("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:a?nn("img",{style:{maxWidth:e.size||"1em",maxHeight:e.size||"1em",display:"inline-block"},alt:i.native||i.shortcodes,src:a}):e.set=="native"?nn("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:i.native}):nn("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${o})`,backgroundSize:`${100*Ir.sheet.cols}% ${100*Ir.sheet.rows}%`,backgroundPosition:`${100/(Ir.sheet.cols-1)*i.x}% ${100/(Ir.sheet.rows-1)*i.y}%`}})})}const sGt=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class V4e extends sGt{static get observedAttributes(){return Object.keys(this.Props)}update(t={}){for(let n in t)this.attributeChangedCallback(n,null,t[n])}attributeChangedCallback(t,n,r){if(!this.component)return;const i=W4e(t,{[t]:r},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[t]:i}):(this.component.props[t]=i,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(t={}){if(super(),this.props=t,t.parent||t.ref){let n=null;const r=t.parent||(n=t.ref&&t.ref.current);n&&(n.innerHTML=""),r&&r.appendChild(this)}}}class lGt extends V4e{setShadow(){this.attachShadow({mode:"open"})}injectStyles(t){if(!t)return;const n=document.createElement("style");n.textContent=t,this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild)}constructor(t,{styles:n}={}){super(t),this.setShadow(),this.injectStyles(n)}}var q4e={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:e=>/\D/.test(e)?e:`${e}px`},set:lf.set,skin:lf.skin};class K4e extends V4e{async connectedCallback(){const t=U4e(this.props,q4e,this);t.element=this,t.ref=n=>{this.component=n},await s7(),!this.disconnected&&D4e(nn(qA,{...t}),this)}constructor(t){super(t)}}Ql(K4e,"Props",q4e);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",K4e);var Mre,KA=[],Tre=sr.__b,Pre=sr.__r,Ore=sr.diffed,Rre=sr.__c,Ire=sr.unmount;function cGt(){var e;for(KA.sort(function(t,n){return t.__v.__b-n.__v.__b});e=KA.pop();)if(e.__P)try{e.__H.__h.forEach(P_),e.__H.__h.forEach(GA),e.__H.__h=[]}catch(t){e.__H.__h=[],sr.__e(t,e.__v)}}sr.__b=function(e){Tre&&Tre(e)},sr.__r=function(e){Pre&&Pre(e);var t=e.__c.__H;t&&(t.__h.forEach(P_),t.__h.forEach(GA),t.__h=[])},sr.diffed=function(e){Ore&&Ore(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(KA.push(t)!==1&&Mre===sr.requestAnimationFrame||((Mre=sr.requestAnimationFrame)||function(n){var r,i=function(){clearTimeout(a),jre&&cancelAnimationFrame(r),setTimeout(n)},a=setTimeout(i,100);jre&&(r=requestAnimationFrame(i))})(cGt))},sr.__c=function(e,t){t.some(function(n){try{n.__h.forEach(P_),n.__h=n.__h.filter(function(r){return!r.__||GA(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],sr.__e(r,n.__v)}}),Rre&&Rre(e,t)},sr.unmount=function(e){Ire&&Ire(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{P_(r)}catch(i){t=i}}),t&&sr.__e(t,n.__v))};var jre=typeof requestAnimationFrame=="function";function P_(e){var t=e.__c;typeof t=="function"&&(e.__c=void 0,t())}function GA(e){e.__c=e.__()}function uGt(e,t){for(var n in t)e[n]=t[n];return e}function Nre(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function b5(e){this.props=e}(b5.prototype=new pd).isPureReactComponent=!0,b5.prototype.shouldComponentUpdate=function(e,t){return Nre(this.props,e)||Nre(this.state,t)};var Are=sr.__b;sr.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Are&&Are(e)};var dGt=sr.__e;sr.__e=function(e,t,n){if(e.then){for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}dGt(e,t,n)};var Dre=sr.unmount;function jP(){this.__u=0,this.t=null,this.__b=null}function G4e(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function cC(){this.u=null,this.o=null}sr.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Dre&&Dre(e)},(jP.prototype=new pd).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=G4e(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__e){var c=r.state.__e;r.__v.__k[0]=function f(p,h,m){return p&&(p.__v=null,p.__k=p.__k&&p.__k.map(function(g){return f(g,h,m)}),p.__c&&p.__c.__P===h&&(p.__e&&m.insertBefore(p.__e,p.__d),p.__c.__e=!0,p.__c.__P=m)),p}(c,c.__c.__P,c.__c.__O)}var u;for(r.setState({__e:r.__b=null});u=r.t.pop();)u.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(o,o)},jP.prototype.componentWillUnmount=function(){this.t=[]},jP.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function a(o,s,l){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(c){typeof c.__c=="function"&&c.__c()}),o.__c.__H=null),(o=uGt({},o)).__c!=null&&(o.__c.__P===l&&(o.__c.__P=s),o.__c=null),o.__k=o.__k&&o.__k.map(function(c){return a(c,s,l)})),o}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__e&&UA(J0,null,e.fallback);return i&&(i.__h=null),[UA(J0,null,t.__e?null:e.children),i]};var Fre=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]{const i=n.name||Ao.categories[n.id],a=!this.props.unfocused&&n.id==this.state.categoryId;return a&&(t=r),nn("button",{"aria-label":i,"aria-selected":a||void 0,title:i,type:"button",class:"flex flex-grow flex-center",onMouseDown:o=>o.preventDefault(),onClick:()=>{this.props.onClick({category:n,i:r})},children:this.renderIcon(n)})}),nn("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:t==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${t*100}%)`:`translateX(${t*100}%)`}})]})})}constructor(){super(),this.categories=Ir.categories.filter(t=>!t.target),this.state={categoryId:this.categories[0].id}}}class xGt extends b5{shouldComponentUpdate(t){for(let n in t)if(n!="children"&&t[n]!=this.props[n])return!0;return!1}render(){return this.props.children}}const uC={rowsPerRender:10};class SGt extends pd{getInitialState(t=this.props){return{skin:oh.get("skin")||t.skin,theme:this.initTheme(t.theme)}}componentWillMount(){this.dir=Ao.rtl?"rtl":"ltr",this.refs={menu:Kd(),navigation:Kd(),scroll:Kd(),search:Kd(),searchInput:Kd(),skinToneButton:Kd(),skinToneRadio:Kd()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:t}=this.refs;t.current&&t.current.focus()}}componentWillReceiveProps(t){this.nextState||(this.nextState={});for(const n in t)this.nextState[n]=t[n];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let n=!1;for(const i in this.nextState)this.props[i]=this.nextState[i],(i==="custom"||i==="categories")&&(n=!0);delete this.nextState;const r=this.getInitialState();if(n)return this.reset(r);this.setState(r)})}componentWillUnmount(){this.unregister()}async reset(t={}){await s7(this.props),this.initGrid(),this.unobserve(),this.setState(t,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var t;document.removeEventListener("click",this.handleClickOutside),(t=this.darkMedia)==null||t.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:t=[]}={}){Array.isArray(t)||(t=[t]);for(const n of this.observers)t.includes(n)||n.disconnect();this.observers=[].concat(t)}initGrid(){const{categories:t}=Ir;this.refs.categories=new Map;const n=Ir.categories.map(i=>i.id).join(",");this.navKey&&this.navKey!=n&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=n,this.grid=[],this.grid.setsize=0;const r=(i,a)=>{const o=[];o.__categoryId=a.id,o.__index=i.length,this.grid.push(o);const s=this.grid.length-1,l=s%uC.rowsPerRender?{}:Kd();return l.index=s,l.posinset=this.grid.setsize+1,i.push(l),o};for(let i of t){const a=[];let o=r(a,i);for(let s of i.emojis)o.length==this.getPerLine()&&(o=r(a,i)),this.grid.setsize+=1,o.push(s);this.refs.categories.set(i.id,{root:Kd(),rows:a})}}initTheme(t){if(t!="auto")return t;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(t=this.props){if(!t.dynamicWidth)return;const{element:n,emojiButtonSize:r}=t,i=()=>{const{width:o}=n.getBoundingClientRect();return Math.floor(o/r)},a=new ResizeObserver(()=>{this.unobserve({except:a}),this.setState({perLine:i()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return a.observe(n),this.observers.push(a),i()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([t,n]){const r=this.state.searchResults||this.grid,i=r[t]&&r[t][n];if(i)return qv.get(i)}observeCategories(){const t=this.refs.navigation.current;if(!t)return;const n=new Map,r=o=>{o!=t.state.categoryId&&t.setState({categoryId:o})},i={root:this.refs.scroll.current,threshold:[0,1]},a=new IntersectionObserver(o=>{for(const l of o){const c=l.target.dataset.id;n.set(c,l.intersectionRatio)}const s=[...n];for(const[l,c]of s)if(c){r(l);break}},i);for(const{root:o}of this.refs.categories.values())a.observe(o.current);this.observers.push(a)}observeRows(){const t={...this.state.visibleRows},n=new IntersectionObserver(r=>{for(const i of r){const a=parseInt(i.target.dataset.index);i.isIntersecting?t[a]=!0:delete t[a]}this.setState({visibleRows:t})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(uC.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*uC.rowsPerRender}px`});for(const{rows:r}of this.refs.categories.values())for(const i of r)i.current&&n.observe(i.current);this.observers.push(n)}preventDefault(t){t.preventDefault()}unfocusSearch(){const t=this.refs.searchInput.current;t&&t.blur()}navigate({e:t,input:n,left:r,right:i,up:a,down:o}){const s=this.state.searchResults||this.grid;if(!s.length)return;let[l,c]=this.state.pos;const u=(()=>{if(l==0&&c==0&&!t.repeat&&(r||a))return null;if(l==-1)return!t.repeat&&(i||o)&&n.selectionStart==n.value.length?[0,0]:null;if(r||i){let f=s[l];const p=r?-1:1;if(c+=p,!f[c]){if(l+=p,f=s[l],!f)return l=r?0:s.length-1,c=r?0:s[l].length-1,[l,c];c=r?f.length-1:0}return[l,c]}if(a||o){l+=a?-1:1;const f=s[l];return f?(f[c]||(c=f.length-1),[l,c]):(l=a?0:s.length-1,c=a?0:s[l].length-1,[l,c])}})();if(u)t.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:u,keyboard:!0},()=>{this.scrollTo({row:u[0]})})}scrollTo({categoryId:t,row:n}){const r=this.state.searchResults||this.grid;if(!r.length)return;const i=this.refs.scroll.current,a=i.getBoundingClientRect();let o=0;if(n>=0&&(t=r[n].__categoryId),t&&(o=(this.refs[t]||this.refs.categories.get(t).root).current.getBoundingClientRect().top-(a.top-i.scrollTop)+1),n>=0)if(!n)o=0;else{const s=r[n].__index,l=o+s*this.props.emojiButtonSize,c=l+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(li.scrollTop+a.height)o=c-a.height;else return}this.ignoreMouse(),i.scrollTop=o}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(t){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:t||[-1,-1],keyboard:!1})}handleEmojiClick({e:t,emoji:n,pos:r}){if(this.props.onEmojiSelect&&(!n&&r&&(n=this.getEmojiByPos(r)),n)){const i=iGt(n,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&L4e.add(i,this.props),this.props.onEmojiSelect(i,t)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(t){this.setState({tempSkin:t})}handleSkinClick(t){this.ignoreMouse(),this.closeSkins(),this.setState({skin:t,tempSkin:null}),oh.set("skin",t)}renderNav(){return nn(wGt,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const t=this.getEmojiByPos(this.state.pos),n=this.state.searchResults&&!this.state.searchResults.length;return nn("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[nn("div",{class:"flex flex-middle flex-grow",children:[nn("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:nn(qA,{emoji:t,id:n?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),nn("div",{class:`margin-${this.dir[0]}`,children:t||n?nn("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[nn("div",{class:"preview-title ellipsis",children:t?t.name:Ao.search_no_results_1}),nn("div",{class:"preview-subtitle ellipsis color-c",children:t?t.skins[0].shortcodes:Ao.search_no_results_2})]}):nn("div",{class:"preview-placeholder color-c",children:Ao.pick})})]}),!t&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(t,{pos:n,posinset:r,grid:i}){const a=this.props.emojiButtonSize,o=this.state.tempSkin||this.state.skin,l=(t.skins[o-1]||t.skins[0]).native,c=nGt(this.state.pos,n),u=n.concat(t.id).join("");return nn(xGt,{selected:c,skin:o,size:a,children:nn("button",{"aria-label":l,"aria-selected":c||void 0,"aria-posinset":r,"aria-setsize":i.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?t.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:f=>this.handleEmojiClick({e:f,emoji:t}),onMouseEnter:()=>this.handleEmojiOver(n),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[nn("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(r-1)%this.props.emojiButtonColors.length]:void 0}}),nn(qA,{emoji:t,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},u)}renderSearch(){const t=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return nn("div",{children:[nn("div",{class:"spacer"}),nn("div",{class:"flex flex-middle",children:[nn("div",{class:"search relative flex-grow",children:[nn("input",{type:"search",ref:this.refs.searchInput,placeholder:Ao.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),nn("span",{class:"icon loupe flex",children:y5.search.loupe}),this.state.searchResults&&nn("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:y5.search.delete})]}),t&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:t}=this.state;return t?nn("div",{class:"category",ref:this.refs.search,children:[nn("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Ao.categories.search}),nn("div",{children:t.length?t.map((n,r)=>nn("div",{class:"flex",children:n.map((i,a)=>this.renderEmojiButton(i,{pos:[r,a],posinset:r*this.props.perLine+a+1,grid:t}))})):nn("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&nn("a",{onClick:this.props.onAddCustomEmoji,children:Ao.add_custom})})})]}):null}renderCategories(){const{categories:t}=Ir,n=!!this.state.searchResults,r=this.getPerLine();return nn("div",{style:{visibility:n?"hidden":void 0,display:n?"none":void 0,height:"100%"},children:t.map(i=>{const{root:a,rows:o}=this.refs.categories.get(i.id);return nn("div",{"data-id":i.target?i.target.id:i.id,class:"category",ref:a,children:[nn("div",{class:`sticky padding-small align-${this.dir[0]}`,children:i.name||Ao.categories[i.id]}),nn("div",{class:"relative",style:{height:o.length*this.props.emojiButtonSize},children:o.map((s,l)=>{const c=s.index-s.index%uC.rowsPerRender,u=this.state.visibleRows[c],f="current"in s?s:void 0;if(!u&&!f)return null;const p=l*r,h=p+r,m=i.emojis.slice(p,h);return m.length{if(!g)return nn("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const y=qv.get(g);return this.renderEmojiButton(y,{pos:[s.index,v],posinset:s.posinset+v,grid:this.grid})})},s.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:nn("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:nn("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":Ao.skins.choose,title:Ao.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:nn("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const t=this.getEmojiByPos(this.state.pos),n=t?t.name:"";return nn("div",{"aria-live":"polite",class:"sr-only",children:n})}renderSkins(){const n=this.refs.skinToneButton.current.getBoundingClientRect(),r=this.base.getBoundingClientRect(),i={};return this.dir=="ltr"?i.right=r.right-n.right-3:i.left=n.left-r.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?i.bottom=r.bottom-n.top+6:(i.top=n.bottom-r.top+3,i.bottom="auto"),nn("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Ao.skins.choose,class:"menu hidden","data-position":i.top?"top":"bottom",style:i,children:[...Array(6).keys()].map(a=>{const o=a+1,s=this.state.skin==o;return nn("div",{children:[nn("input",{type:"radio",name:"skin-tone",value:o,"aria-label":Ao.skins[o],ref:s?this.refs.skinToneRadio:null,defaultChecked:s,onChange:()=>this.handleSkinMouseOver(o),onKeyDown:l=>{(l.code=="Enter"||l.code=="Space"||l.code=="Tab")&&(l.preventDefault(),this.handleSkinClick(o))}}),nn("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(o),onMouseEnter:()=>this.handleSkinMouseOver(o),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[nn("span",{class:`skin-tone skin-tone-${o}`}),nn("span",{class:"margin-small-lr",children:Ao.skins[o]})]})]})})})}render(){const t=this.props.perLine*this.props.emojiButtonSize;return nn("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${t}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&nn("div",{class:"padding-lr",children:this.renderSearch()}),nn("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:nn("div",{style:{width:this.props.dynamicWidth?"100%":t,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(t){super(),Ql(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),Ql(this,"handleClickOutside",n=>{const{element:r}=this.props;n.target!=r&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(n))}),Ql(this,"handleBaseClick",n=>{this.state.showSkins&&(n.target.closest(".menu")||(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins()))}),Ql(this,"handleBaseKeydown",n=>{this.state.showSkins&&n.key=="Escape"&&(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins())}),Ql(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),Ql(this,"handleSearchInput",async()=>{const n=this.refs.searchInput.current;if(!n)return;const{value:r}=n,i=await qv.search(r),a=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!i)return this.setState({searchResults:i,pos:[-1,-1]},a);const o=n.selectionStart==n.value.length?[0,0]:[-1,-1],s=[];s.setsize=i.length;let l=null;for(let c of i)(!s.length||l.length==this.getPerLine())&&(l=[],l.__categoryId="search",l.__index=s.length,s.push(l)),l.push(c);this.ignoreMouse(),this.setState({searchResults:s,pos:o},a)}),Ql(this,"handleSearchKeyDown",n=>{const r=n.currentTarget;switch(n.stopImmediatePropagation(),n.key){case"ArrowLeft":this.navigate({e:n,input:r,left:!0});break;case"ArrowRight":this.navigate({e:n,input:r,right:!0});break;case"ArrowUp":this.navigate({e:n,input:r,up:!0});break;case"ArrowDown":this.navigate({e:n,input:r,down:!0});break;case"Enter":n.preventDefault(),this.handleEmojiClick({e:n,pos:this.state.pos});break;case"Escape":n.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),Ql(this,"clearSearch",()=>{const n=this.refs.searchInput.current;n&&(n.value="",n.focus(),this.handleSearchInput())}),Ql(this,"handleCategoryClick",({category:n,i:r})=>{this.scrollTo(r==0?{row:-1}:{categoryId:n.id})}),Ql(this,"openSkins",n=>{const{currentTarget:r}=n,i=r.getBoundingClientRect();this.setState({showSkins:i},async()=>{await rGt(2);const a=this.refs.menu.current;a&&(a.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(t),visibleRows:{0:!0},...this.getInitialState(t)}}}class vU extends lGt{async connectedCallback(){const t=U4e(this.props,lf,this);t.element=this,t.ref=n=>{this.component=n},await s7(t),!this.disconnected&&D4e(nn(SGt,{...t}),this.shadowRoot)}constructor(t){super(t,{styles:k4e(Y4e)})}}Ql(vU,"Props",lf);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",vU);var Y4e={};Y4e=`:host { width: min-content; height: 435px; min-height: 230px; @@ -1427,16 +1427,16 @@ button { background-color: #61493f; } -`;function SGt(e){const t=d.useRef(null),n=d.useRef(null);return n.current&&n.current.update(e),d.useEffect(()=>(n.current=new hU({...e,ref:t}),()=>{n.current=null}),[]),te.createElement("div",{ref:t})}const CGt=({onSelect:e,onClose:t})=>{const[n,r]=d.useState(!0),i=a=>{r(!1),e(a.native)};return x.jsx(kAt,{className:"EmojiPicker",active:n,onClose:()=>{r(!1),t()},title:"请选择表情",children:x.jsx("div",{children:x.jsx(SGt,{data:NKt,onEmojiSelect:i})})})},_Gt=({isAutoReplyModelOpen:e,handleAutoReplyModelOk:t,handleAutoReplyModelCancel:n,isTransferThreadModelOpen:r,handleTransferThreadModelOk:i,handleTransferThreadModelCancel:a,isInviteThreadModelOpen:o,handleInviteThreadModelOk:s,handleInviteThreadModelCancel:l,isForwardMessageModelOpen:c,handleForwardMessageModelOk:u,handleForwardMessageModelCancel:f,isTransferMessageModelOpen:p,handleTransferMessageModelOk:h,handleTransferMessageModelCancel:m,isHistoryMessageModelOpen:g,handleHistoryMessageModelOk:v,handleHistoryMessageModelCancel:y,isTicketCreateModelOpen:b,handleTicketCreateModelSuccess:w,handleTicketCreateModelCancel:_,isBlockModelOpen:k,handleBlockModelOk:S,handleBlockModelCancel:C,isWebRtcModelOpen:E,handleWebRtcModelOk:$,handleWebRtcModelCancel:M,isScreenRecorderModelOpen:P,screenShotImg:I,handleScreenRecorderModelOk:O,handleScreenRecorderModelCancel:A,isGroupInfoDrawerOpen:R,setIsGroupInfoDrawerOpen:j,isMemberInfoDrawerOpen:N,setIsMemberInfoDrawerOpen:D,isRobotInfoDrawerOpen:V,setIsRobotInfoDrawerOpen:F,showEmoji:K,handleEmojiSelect:B,setShowEmoji:U})=>x.jsxs(x.Fragment,{children:[e&&x.jsx(gqt,{open:e,onOk:t,onCancel:n}),r&&x.jsx(dKt,{open:r,onOk:i,onCancel:a}),o&&x.jsx(pKt,{open:o,onOk:s,onCancel:l}),c&&x.jsx(sKt,{open:c,onOk:u,onCancel:f}),p&&x.jsx(cKt,{open:p,onOk:h,onCancel:m}),g&&x.jsx(lKt,{open:g,onOk:v,onCancel:y}),b&&x.jsx(S4e,{open:b,onSuccess:w,onCancel:_}),k&&x.jsx(V3e,{open:k,onOk:S,onCancel:C}),E&&x.jsx(hKt,{open:E,onOk:$,onCancel:M}),P&&x.jsx(tKt,{open:P,screenShotImg:I,onOk:O,onCancel:A}),R&&x.jsx(CKt,{open:R,onClose:()=>j(!1)}),N&&x.jsx(_Kt,{open:N,onClose:()=>D(!1)}),V&&x.jsx(PKt,{open:V,onClose:()=>F(!1)}),K&&x.jsx(CGt,{onSelect:B,onClose:()=>U(!1)})]}),kGt=({contextMessage:e,handleRightClick:t})=>{const n=Pn(),{isDarkMode:r,hasRoleAgent:i}=d.useContext(Ma);return x.jsx(x.Fragment,{children:x.jsxs(H3e,{id:sse,theme:r?"dark":"light",children:[x.jsx(ci,{id:"copy",onClick:t,children:n.formatMessage({id:"chat.menu.copy",defaultMessage:"复制"})}),(e==null?void 0:e.type)===Uo&&x.jsx(ci,{id:"translate",onClick:t,children:n.formatMessage({id:"chat.menu.translate",defaultMessage:"翻译"})}),(e==null?void 0:e.position)==="right"&&x.jsx(ci,{id:"recall",onClick:t,children:n.formatMessage({id:"chat.menu.recall",defaultMessage:"撤回"})}),ma&&(e==null?void 0:e.type)===Uo&&x.jsx(ci,{id:"enlarge",onClick:t,children:n.formatMessage({id:"chat.menu.enlarge",defaultMessage:"放大阅读"})}),i&&x.jsx(ci,{id:"addquickreply",onClick:t,children:n.formatMessage({id:"chat.menu.quickreply.add",defaultMessage:"添加快捷回复..."})}),(e==null?void 0:e.type)===Sl&&x.jsxs(x.Fragment,{children:[x.jsx(zv,{}),x.jsx(ci,{id:"browser-open",onClick:t,children:n.formatMessage({id:"chat.menu.browser.open",defaultMessage:"浏览器打开"})})]}),Xo&&x.jsxs(x.Fragment,{children:[x.jsx(zv,{}),x.jsx(ci,{id:"forward",onClick:t,children:n.formatMessage({id:"chat.menu.forward",defaultMessage:"转发..."})}),x.jsx(ci,{id:"collect",onClick:t,children:n.formatMessage({id:"chat.menu.collect",defaultMessage:"收藏"})}),x.jsx(ci,{id:"quote",onClick:t,children:n.formatMessage({id:"chat.menu.quote",defaultMessage:"引用"})})]}),x.jsx(zv,{}),x.jsx(ci,{id:"ai",onClick:t,children:n.formatMessage({id:"chat.menu.ai",defaultMessage:"问AI"})}),x.jsx(ci,{id:"searchQuickReply",onClick:t,children:n.formatMessage({id:"chat.menu.quickreply.search",defaultMessage:"搜索知识库"})})]})})},EGt=({isDarkMode:e,imageInputRef:t,fileInputRef:n,handleImageChange:r,handleFileChange:i})=>x.jsxs(x.Fragment,{children:[e&&x.jsx(UH,{children:x.jsx("link",{rel:"stylesheet",type:"text/css",href:gse})}),x.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},ref:t,onChange:r}),x.jsx("input",{type:"file",style:{display:"none"},ref:n,onChange:i})]}),$Gt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"邀请会话"}),x.jsx(tp,{children:r})]})})},MGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"同意转接会话"}),x.jsx(tp,{children:r})]})})},TGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"拒绝转接会话"}),x.jsx(tp,{children:r})]})})},PGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"同意邀请会话"}),x.jsx(tp,{children:r})]})})},OGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"拒绝邀请会话"}),x.jsx(tp,{children:r})]})})},qA=({fromTicketTab:e=!1,ticket:t})=>{const n=Pn(),{translateString:r}=Gr(),i=e7(),[a,o]=d.useState(""),[s]=FVt(a,1e3),l=aa(Je=>Je.userInfo),c=Si(Je=>Je.agentInfo),[u,f]=d.useState(0),{messages:p,appendMsg:h,updateMsg:m,resetList:g}=awe([]),{currentThread:v,currentTicketThread:y,setCurrentTicketThread:b}=fr(Je=>({currentThread:Je.currentThread,currentTicketThread:Je.currentTicketThread,setCurrentTicketThread:Je.setCurrentTicketThread})),[w,_]=d.useState(e?y:v),[k,S]=d.useState(!1),[C,E]=d.useState(""),[$,M]=d.useState(r("i18n.load.more")),P=d.useRef(null),I=d.useRef(null),O=d.useRef(!1),A=d.useRef(null),R=d.useRef(null),{isDarkMode:j,locale:N}=d.useContext(Ma),[D,V]=d.useState(null),[F,K]=yr.useModal(),[B,U]=d.useState(""),[Z,ee]=d.useState(!1),[ie,Y]=d.useState(!1),[X,ae]=d.useState(!1),[oe,le]=d.useState(!1),[ce,pe]=d.useState(!1),[me,re]=d.useState(!1),[fe,ve]=d.useState(!1),[$e,Ce]=d.useState(!1),[be,Se]=d.useState(!1),[we,se]=d.useState(!1),[ye,Oe]=d.useState(""),[z,H]=d.useState(!1),[G,de]=d.useState(!1),[xe,he]=d.useState(!1),[Ue,We]=d.useState(!1),ge=Aa(Je=>Je.currentTicket),{messageList:ze,addMessage:Ve,addMessageProtobuf:Be,addMessageList:Xe,updateMessage:Ke}=Ed(Je=>({messageList:Je.messageList,addMessage:Je.addMessage,addMessageProtobuf:Je.addMessageProtobuf,addMessageList:Je.addMessageList,updateMessage:Je.updateMessage})),qe=async Je=>{if(console.log("ChatPage fetchTicketThread",Je),Je==null){g(),_(null),b(null);return}Re.loading(r("i18n.loading"));const ot=await _Ut(Je);if(console.log("ChatPage fetchTicketThread:",Je,ot.data),ot.data.code===200){const Xt=ot.data.data;_(Xt),b(Xt)}else Re.error(ot.data.message);Re.destroy()};d.useEffect(()=>{e&&qe(t==null?void 0:t.threadUid),((t==null?void 0:t.threadUid)===null||(t==null?void 0:t.threadUid)===void 0)&&(g(),_(null),b(null))},[t,e]),d.useEffect(()=>{!e&&v&&_(v)},[v]);let Et=[{name:n.formatMessage({id:"chat.toolbar.emoji",defaultMessage:"表情"}),type:"emoji",code:"emoji",icon:"smile",isHighlight:!1},{name:n.formatMessage({id:"chat.toolbar.image",defaultMessage:"图片"}),type:"image",code:"image",icon:"image",isHighlight:!1},{name:n.formatMessage({id:"chat.toolbar.file",defaultMessage:"文件"}),type:"file",code:"file",icon:"file",isHighlight:!1}];const[dt,vt]=d.useState(Et),{show:Ze}=B3e({id:sse}),nt=(Je,ot)=>{console.log("handleContextMenu:",Je," item:",ot),V(ot),Ze({event:Je,props:{key:ot==null?void 0:ot._id.toString()}})},jt=({id:Je,event:ot,props:Xt})=>{console.log("handleRightClick:",Je,ot,Xt);const xn=D==null?void 0:D._id.toString();switch(Je){case"copy":navigator.clipboard.writeText(r(D==null?void 0:D.content)).then(()=>{Re.success(n.formatMessage({id:"chat.copy.success",defaultMessage:"复制成功"}))}).catch(Rn=>{console.error("无法复制文本: ",Rn),Re.error(Rn)});break;case"enlarge":Gct(D==null?void 0:D.content);break;case"translate":Lt(xn,D==null?void 0:D.content);break;case"forward":pe(!0);break;case"browser-open":N0(D==null?void 0:D.content);break;case"recall":Tct(xn,w);break;case"addquickreply":Bt();break;case"ai":Ht();break;case"searchQuickReply":Ne();break;case"collect":case"quote":case"delete":default:Re.warning("TODO: 即将上线,敬请期待");break}},Lt=async(Je,ot)=>{var xn,Rn,An;const Xt=await s$e(Je,ot);if(console.log("ChatPage handleTranslate",Xt.data),Xt.data.code===200){const kn=(xn=Xt==null?void 0:Xt.data)==null?void 0:xn.data.msgUid,Or=(Rn=Xt==null?void 0:Xt.data)==null?void 0:Rn.data.result,tr=ze.find(Yn=>Yn.uid===kn);tr&&(tr.content=tr.content+` -`+Or,Ke(tr),m(kn,{_id:D==null?void 0:D._id,type:D==null?void 0:D.type,hasTime:D==null?void 0:D.hasTime,createdAt:D==null?void 0:D.createdAt,content:tr==null?void 0:tr.content,position:D==null?void 0:D.position,user:D==null?void 0:D.user,status:tr==null?void 0:tr.type}))}else Re.error((An=Xt==null?void 0:Xt.data)==null?void 0:An.message)},Bt=()=>{const Je=JSON.stringify(D);En.emit(QO,Je)},Ht=Je=>{const ot=JSON.stringify(Je||D);En.emit(jw,ot)},Ne=Je=>{const ot=JSON.stringify(Je||D);En.emit(Nw,ot)},He=async()=>{var Xt;Re.loading(n.formatMessage({id:"chat.thread.closing",defaultMessage:"结束会话中..."}));const Je={uid:w==null?void 0:w.uid},ot=await TUt(Je);console.log("handleCloseThread",ot.data),ot.data.code===200?(_((Xt=ot==null?void 0:ot.data)==null?void 0:Xt.data),Re.destroy(),Re.success(n.formatMessage({id:"chat.thread.close.success",defaultMessage:"结束会话成功"}))):(Re.destroy(),Re.error(ot.data.message))},Le=()=>{var Je;F.confirm({title:n.formatMessage({id:"chat.thread.close.confirm.title",defaultMessage:"确定要结束会话?"}),icon:x.jsx(qf,{}),content:x.jsx(x.Fragment,{children:(Je=w==null?void 0:w.user)==null?void 0:Je.nickname}),onOk(){console.log("OK"),He()},onCancel(){console.log("Cancel")}})},Qe=async()=>{if(O.current)return;O.current=!0,Re.loading(r("i18n.loading"));const Je={pageNumber:u,pageSize:20,topic:w==null?void 0:w.topic},ot=await a$e(Je);console.log("ChatPage getHistoryMessages: ",ot.data,Je),Re.destroy(),ot.data.code===200?(Xe(ot.data.data.content),ot.data.data.last?(M(""),Re.success(r("i18n.load.nomore"))):f(u+1)):ot.data.code===601||Re.error(ot.data.message),O.current=!1};d.useEffect(()=>{f(0),M(r("i18n.load.more")),ze.length===0&&Qe();let Je=[];if(Xo){const ot={name:n.formatMessage({id:"chat.toolbar.audio",defaultMessage:"录音"}),type:"audio",code:"audio",icon:"mic",isHighlight:!1};Je.push(ot);const Xt={name:n.formatMessage({id:"chat.toolbar.webrtc",defaultMessage:"视频会话"}),type:"webrtc",code:"webrtc",icon:"play-circle",isHighlight:!1};Je.push(Xt)}if(yf(w)){const ot={name:n.formatMessage({id:"chat.toolbar.autoreply",defaultMessage:"自动回复"}),type:"autoreply",code:"autoreply",icon:"apps"};Je.push(ot);const Xt={name:n.formatMessage({id:"chat.toolbar.invite.rate",defaultMessage:"邀请评价"}),type:dv,code:dv,icon:"thumbs-up",isHighlight:!1};Je.push(Xt);const xn={name:n.formatMessage({id:"chat.toolbar.block",defaultMessage:"拉黑"}),type:"block",code:"block",icon:"thumbs-down"};if(Je.push(xn),Xo){const Rn={name:n.formatMessage({id:"chat.toolbar.history",defaultMessage:"历史消息"}),type:"history",code:"history",icon:"message"};Je.push(Rn)}}if(Ak(w)&&(Et=[],Je=[]),ma){const ot={name:n.formatMessage({id:"chat.toolbar.screenshot",defaultMessage:"截图"}),type:"screenshot",code:"screenshot",icon:"camera",isHighlight:!1};Je.push(ot)}vt([...Et,...Je]),P.current&&P.current.scrollToEnd()},[w,N]);const ht=(Je,ot)=>{if(console.log("handleSend",Je,ot),U(""),!i){Re.error(n.formatMessage({id:"chat.network.error",defaultMessage:"网络连接失败,请检查网络"}));return}Je===Uo.toLowerCase()&&ot.trim()?xt(ot):Re.error("暂不支持消息类型")},xt=Je=>{const ot=Ua();if(ZOe(w)){Ct();const Xt=hde(w,l,c,ot,Uo,Je,Uw());Ve(Xt);const xn=bL(w,l,c,ot,Uo,Je,Uw());Sle(JSON.stringify(xn),function(Rn){console.log("sendSseMessage receive: ",Rn),Be(Rn),kt()})}else h({_id:ot,type:Uo,status:im,hasTime:!0,createdAt:tn().toDate().getTime(),content:Je,position:"right",user:{avatar:yf(w)?c.avatar:l.avatar}}),xct(ot,Je);P.current.scrollToEnd()};d.useEffect(()=>{var Je;((Je=w==null?void 0:w.topic)==null?void 0:Je.length)>0&&s.trim().length>0&&Ect(w)},[s,w]);const Nt=Je=>{U(Je),o(Je)},Ot=Je=>(console.log("ChatPage handleImageSend",Je),WC(Je,ot=>{qt(ot.data.fileUrl,Sl)}),null),Pt=Je=>{var Xt;console.log("handleImageChange event: ",Je);const ot=(Xt=Je.target.files)==null?void 0:Xt.item(0);ot&&(console.log("handleImageChange file: ",ot),WC(ot,xn=>{qt(xn.data.fileUrl,Sl)}))},lt=Je=>{var Xt;console.log("handleFileChange event: ",Je);const ot=(Xt=Je.target.files)==null?void 0:Xt.item(0);ot&&(console.log("handleFileChange file: ",ot),WC(ot,xn=>{qt(xn.data.fileUrl,od)}))},Ct=()=>{S(!0)},kt=()=>{S(!1)},qt=(Je,ot)=>{console.log("handleImageDropSend",Je);const Xt=Ua();h({_id:Xt,type:ot,status:im,hasTime:!0,createdAt:tn().toDate().getTime(),content:Je,position:"right",user:{avatar:l.avatar}}),bo(Xt,ot,Je,w),P.current.scrollToEnd(),console.log("scrollToEnd:",P)},yt=()=>{console.log("handleAutoReplyModelOk"),Y(!1)},At=()=>{console.log("handleAutoReplyModelCancel"),Y(!1)},ft=()=>{console.log("handleTransferThreadModelOk"),ae(!1)},De=()=>{console.log("handleTransferThreadModelCancel"),ae(!1)},Ye=()=>{console.log("handleInviteThreadModelOk"),le(!1)},st=()=>{console.log("handleInviteThreadModelCancel"),le(!1)},Ie=()=>{console.log("handleForwardMessageModelOk"),pe(!1)},Rt=()=>{console.log("handleForwardMessageModelCancel"),pe(!1)},rt=()=>{console.log("handleTransferMessageModelOk"),re(!1)},$t=()=>{console.log("handleTransferMessageModelCancel"),re(!1)},Mt=()=>{console.log("handleHistoryMessageModelOk"),ve(!1)},cn=()=>{console.log("handleHistoryMessageModelCancel"),ve(!1)},fn=()=>{console.log("handleTicketCreateModelSuccess"),Ce(!1)},T=()=>{console.log("handleTicketCreateModelCancel"),Ce(!1)},L=()=>{console.log("handleBlockModelOk"),Se(!1)},J=()=>{console.log("handleBlockModelCancel"),Se(!1)},ke=()=>{console.log("handleWebRtcModelOk"),se(!1)},je=()=>{console.log("handleWebRtcModelCancel"),se(!1)},it=()=>{console.log("handleScreenRecorderModelOk"),H(!1)},Ft=()=>{console.log("handleScreenRecorderModelCancel"),H(!1)},an=Je=>{console.log("handleEmojiSelect",Je),ee(!1),U(B+Je),I.current.setText(B+Je)},Tn=(Je,ot)=>{console.log("QuickButton:",Je,ot),Je.code===dv?F.confirm({title:n.formatMessage({id:"chat.rate.invite.confirm.title",defaultMessage:"确认要邀请评价?"}),okText:n.formatMessage({id:"common.confirm",defaultMessage:"确认"}),cancelText:n.formatMessage({id:"common.cancel",defaultMessage:"取消"}),onOk:()=>{kct(w)},onCancel:()=>{console.log("onCancel")}}):Je.code==="autoreply"?Y(!0):Je.type==="emoji"?ee(!0):Je.type==="image"?A.current.click():Je.type==="file"?R.current.click():Je.type==="screenshot"?(Yct(),ma||bn()):Je.type==="audio"||Je.type==="webrtc"?se(!0):Je.type==="history"?ve(!0):Je.type==="block"&&Se(!0)},Er=Je=>{var ot,Xt;return(Je==null?void 0:Je.type)===FV?"left":yf(w)?((ot=Je==null?void 0:Je.user)==null?void 0:ot.uid)===(c==null?void 0:c.uid)?"right":"left":((Xt=Je==null?void 0:Je.user)==null?void 0:Xt.uid)===(l==null?void 0:l.uid)?"right":"left"};d.useEffect(()=>{const Je=[];ze.forEach(ot=>{var xn,Rn;let Xt=!1;if(sIe(w==null?void 0:w.topic)){const An=lIe(w==null?void 0:w.topic);console.log("useEffect messageList :",ot==null?void 0:ot.topic,w==null?void 0:w.topic,An),((ot==null?void 0:ot.topic)===(w==null?void 0:w.topic)||(ot==null?void 0:ot.topic)===An)&&(Xt=!0)}else(ot==null?void 0:ot.topic)===(w==null?void 0:w.topic)&&(Xt=!0);Xt&&Je.push({_id:ot==null?void 0:ot.uid,type:ot==null?void 0:ot.type,status:ot==null?void 0:ot.status,hasTime:!0,createdAt:tn(ot==null?void 0:ot.createdAt).toDate().getTime(),content:r(ot==null?void 0:ot.content),position:Er(ot),user:{avatar:(xn=ot==null?void 0:ot.user)==null?void 0:xn.avatar,name:r((Rn=ot==null?void 0:ot.user)==null?void 0:Rn.nickname)}})}),g(Je)},[ze,w]);const or=Je=>{console.log("handleResendMessage",Je);const{_id:ot,type:Xt,content:xn}=Je;bo(ot.toString(),Xt,xn,w)},ri=Je=>{console.log("handlePhoneClick",Je),Je&&(navigator.clipboard.writeText(Je),Re.success("电话号码:"+Je+" 已复制到剪贴板"))},hr=Je=>{console.log("handleEmailClick",Je),Je&&(navigator.clipboard.writeText(Je),Re.success("邮箱:"+Je+" 已复制到剪贴板"))},sn=Je=>{const{_id:ot,type:Xt,content:xn,position:Rn,status:An,createdAt:kn}=Je;switch(Xt){case wse:case Uo:return x.jsxs(x.Fragment,{children:[x.jsx(Uu,{content:r(xn),isRichText:pde(xn),onPhoneClick:ri,onEmailClick:hr,onContextMenu:()=>nt(event,Je),onAiClick:()=>{Ht(Je)},onSearchClick:()=>{Ne(Je)},showFunctionButtons:Rn==="left"}),Rn==="right"&&!Do(w)&&x.jsx(ll,{status:An,onRetry:()=>or(Je)})]});case Mf:return x.jsxs(x.Fragment,{children:[x.jsx($3e,{uid:ot.toString(),content:xn,thread:w}),Rn==="right"&&x.jsx(ll,{status:An,onRetry:()=>or(Je)})]});case xse:return x.jsx(x.Fragment,{children:x.jsx(dqt,{content:xn,createdAt:kn})});case Sl:return x.jsxs(x.Fragment,{children:[x.jsx(Uu,{type:"image",onContextMenu:()=>nt(event,Je),children:x.jsx(c4e,{src:xn,children:x.jsx("img",{src:xn,alt:""})})}),Rn==="right"&&!Do(w)&&x.jsx(ll,{status:An,onRetry:()=>or(Je)})]});case od:return x.jsxs(x.Fragment,{children:[x.jsx(Uu,{type:"file",onContextMenu:()=>nt(event,Je),children:x.jsx(vwe,{fileUrl:xn,children:x.jsx(Yt,{onClick:()=>N0(xn),children:"下载文件"})})}),Rn==="right"&&!Do(w)&&x.jsx(ll,{status:An,onRetry:()=>or(Je)})]});case sg:return x.jsxs(x.Fragment,{children:[x.jsx(Uu,{style:{maxWidth:200},onContextMenu:()=>nt(event,Je),children:x.jsx(WAt,{src:Je.content})}),Rn==="right"&&!Do(w)&&x.jsx(ll,{status:An,onRetry:()=>or(Je)})]});case Z6e:return x.jsx(x.Fragment,{children:x.jsx(Xs,{size:"xl",children:x.jsx(VAt,{img:"//gw.alicdn.com/tfs/TB1p_nirYr1gK0jSZR0XXbP8XXa-300-300.png",name:"这个商品名称非常非常长长到会换行",desc:"商品描述",tags:[{name:"3个月免息"},{name:"4.1折"},{name:"黑卡再省33.96"}],currency:"¥",meta:"7人付款",count:6,unit:"kg",onClick:Or=>console.log(Or),action:{onClick(Or){console.log(Or),Or.stopPropagation()}}})})});case FV:return x.jsx(x.Fragment,{children:x.jsx(iqt,{content:xn,status:An,type:Xt})});case Sse:return x.jsx(x.Fragment,{children:x.jsx(Uu,{onContextMenu:()=>nt(event,Je),children:x.jsx(oqt,{uid:ot.toString(),content:xn})})});case t5e:return x.jsx(x.Fragment,{children:x.jsx(Uu,{onContextMenu:()=>nt(event,Je),children:x.jsx(aqt,{uid:ot.toString()})})});case i5e:case dv:return x.jsxs(x.Fragment,{children:[x.jsx(LVt,{uid:ot.toString(),content:xn,status:An,type:Xt}),Rn==="right"&&!Do(w)&&x.jsx(ll,{status:An,onRetry:()=>or(Je)})]});case hF:return x.jsxs(x.Fragment,{children:[x.jsx(sqt,{uid:ot.toString(),content:r(xn),status:An,position:Rn}),Rn==="right"&&!Do(w)&&x.jsx(ll,{status:An,onRetry:()=>or(Je)})]});case mF:return x.jsxs(x.Fragment,{children:[x.jsx(MGt,{uid:ot.toString(),content:r(xn),status:An,position:Rn}),Rn==="right"&&!Do(w)&&x.jsx(ll,{status:An,onRetry:()=>or(Je)})]});case gF:return x.jsxs(x.Fragment,{children:[x.jsx(TGt,{uid:ot.toString(),content:r(xn),status:An,position:Rn}),Rn==="right"&&!Do(w)&&x.jsx(ll,{status:An,onRetry:()=>or(Je)})]});case vF:return x.jsxs(x.Fragment,{children:[x.jsx($Gt,{uid:ot.toString(),content:r(xn),status:An,position:Rn}),Rn==="right"&&!Do(w)&&x.jsx(ll,{status:An,onRetry:()=>or(Je)})]});case yF:return x.jsxs(x.Fragment,{children:[x.jsx(PGt,{uid:ot.toString(),content:r(xn),status:An,position:Rn}),Rn==="right"&&!Do(w)&&x.jsx(ll,{status:An,onRetry:()=>or(Je)})]});case bF:return x.jsxs(x.Fragment,{children:[x.jsx(OGt,{uid:ot.toString(),content:r(xn),status:An,position:Rn}),Rn==="right"&&!Do(w)&&x.jsx(ll,{status:An,onRetry:()=>or(Je)})]});default:return x.jsxs(x.Fragment,{children:[x.jsx(Uu,{content:r(xn),onContextMenu:()=>nt(event,Je)}),Rn==="right"&&!Do(w)&&x.jsx(ll,{status:An,onRetry:()=>or(Je)})]})}};async function bn(){navigator.mediaDevices.getDisplayMedia({video:!0}).then(Je=>{const ot=document.createElement("canvas");ot.width=window.innerWidth,ot.height=window.innerHeight;const Xt=document.createElement("video");Xt.srcObject=Je,Xt.play(),Xt.addEventListener("loadedmetadata",()=>{ot.getContext("2d").drawImage(Xt,0,0,ot.width,ot.height);const Rn=ot.toDataURL("image/png");console.log("dataURL:",Rn),Oe(Rn),H(!0),Je.getTracks().forEach(An=>An.stop())})}).catch(Je=>{console.error("Error accessing screen:",Je)})}d.useEffect(()=>{const Je=An=>{var Yn;const kn=JSON.parse(An),Or=(Yn=kn==null?void 0:kn.uid)==null?void 0:Yn.toString(),tr=p.find(Dn=>Dn._id.toString()===Or);tr?m(kn==null?void 0:kn.uid,{_id:tr==null?void 0:tr._id,type:tr==null?void 0:tr.type,hasTime:tr==null?void 0:tr.hasTime,createdAt:tr==null?void 0:tr.createdAt,content:tr==null?void 0:tr.content,position:tr==null?void 0:tr.position,user:tr==null?void 0:tr.user,status:kn==null?void 0:kn.type}):console.log("handleMessageTypeStatus msg is undefined")},ot=An=>{console.log("EVENT_BUS_SEND_IMAGE_MESSAGE",An);const kn=Ua();h({_id:kn,type:Sl,status:im,createdAt:tn().toDate().getTime(),content:An,position:"right",user:{avatar:l==null?void 0:l.avatar,name:l==null?void 0:l.nickname}}),Sct(kn,An)},Xt=An=>{console.log("EVENT_BUS_SEND_FILE_MESSAGE",An);const kn=Ua();h({_id:kn,type:od,status:im,createdAt:tn().toDate().getTime(),content:An,position:"right",user:{avatar:l==null?void 0:l.avatar,name:l==null?void 0:l.nickname}}),Cct(kn,An)},xn=An=>{console.log("handleScreenCaptureImage",An),Oe(An),H(!0)},Rn=An=>{console.log("handleQuickButtonClick",An);const kn=JSON.parse(An),Or=Ua();h({_id:Or,type:kn.type,status:im,createdAt:tn().toDate().getTime(),content:kn.content,position:"right",user:{avatar:l==null?void 0:l.avatar,name:l==null?void 0:l.nickname}}),bo(Or,kn.type,kn.content,w)};return En.on(pk,Je),En.on(TC,ot),En.on(PM,Xt),En.on(XO,xn),En.on(ZO,Rn),()=>{En.off(TC),En.off(PM),En.off(pk,Je),En.off(TC,ot),En.off(PM,Xt),En.off(XO,xn),En.off(ZO,Rn)}},[p]);const gr={"@":[{value:"all",label:"所有人"},{value:"one",label:"Person"}],"/":[{value:"test1",label:"Test1"},{value:"test2",label:"Test2"}]};return e&&!ge?x.jsx(Ca,{style:{marginTop:200},description:!1}):x.jsxs(x.Fragment,{children:[x.jsx(EGt,{isDarkMode:j,imageInputRef:A,fileInputRef:R,handleImageChange:Pt,handleFileChange:lt}),x.jsxs(NVt,{onImageSend:qt,children:[x.jsx(pqt,{fromTicketTab:e,chatThread:w,typing:k,previewContent:C,setIsTransferThreadModelOpen:ae,setIsInviteThreadModelOpen:le,setIsTicketCreateModelOpen:Ce,showCloseThreadConfirm:Le,setIsGroupInfoDrawerOpen:de,setIsMemberInfoDrawerOpen:he,setIsRobotInfoDrawerOpen:We}),(w==null?void 0:w.topic)===""?x.jsx(x.Fragment,{children:x.jsx(Ca,{style:{marginTop:200},description:!1})}):x.jsxs(x.Fragment,{children:[x.jsx(rqt,{children:x.jsx(Swe,{elderMode:!1,loadMoreText:$,onRefresh:Qe,messages:p,isTyping:k,showTransition:!1,translationPlaceholder:n.formatMessage({id:"chat.translation.placeholder",defaultMessage:"请输入翻译内容..."}),messagesRef:P,renderMessageContent:sn,text:B,composerRef:I,inputOptions:{showCount:!0},quickReplies:dt,onQuickReplyClick:Tn,onSend:ht,placeholder:n.formatMessage({id:"chat.input.placeholder",defaultMessage:"请输入内容, Ctrl+V 粘贴截图/图片"}),onInputChange:Nt,onImageSend:Ot,wideBreakpoint:"600px",recorder:{canRecord:!1},metionOptions:gr,fromTicketTab:e,chatThread:w})}),x.jsx(kGt,{fromTicketTab:e,chatThread:w,contextMessage:D,handleRightClick:jt})]}),x.jsx(_Gt,{fromTicketTab:e,chatThread:w,isAutoReplyModelOpen:ie,handleAutoReplyModelOk:yt,handleAutoReplyModelCancel:At,isTransferThreadModelOpen:X,handleTransferThreadModelOk:ft,handleTransferThreadModelCancel:De,isInviteThreadModelOpen:oe,handleInviteThreadModelOk:Ye,handleInviteThreadModelCancel:st,isForwardMessageModelOpen:ce,handleForwardMessageModelOk:Ie,handleForwardMessageModelCancel:Rt,isTransferMessageModelOpen:me,handleTransferMessageModelOk:rt,handleTransferMessageModelCancel:$t,isHistoryMessageModelOpen:fe,handleHistoryMessageModelOk:Mt,handleHistoryMessageModelCancel:cn,isTicketCreateModelOpen:$e,handleTicketCreateModelSuccess:fn,handleTicketCreateModelCancel:T,isBlockModelOpen:be,handleBlockModelOk:L,handleBlockModelCancel:J,isWebRtcModelOpen:we,handleWebRtcModelOk:ke,handleWebRtcModelCancel:je,isScreenRecorderModelOpen:z,screenShotImg:ye,handleScreenRecorderModelOk:it,handleScreenRecorderModelCancel:Ft,isGroupInfoDrawerOpen:G,setIsGroupInfoDrawerOpen:de,isMemberInfoDrawerOpen:xe,setIsMemberInfoDrawerOpen:he,isRobotInfoDrawerOpen:Ue,setIsRobotInfoDrawerOpen:We,showEmoji:Z,handleEmojiSelect:an,setShowEmoji:ee}),K]})]})},{Sider:IGt,Header:RGt,Content:Bre}=Qn,KA=()=>{const e=Pn(),{leftSiderStyle:t,leftSiderWidth:n,headerStyle:r,contentStyle:i}=co(),{currentThread:a,queuingThreads:o,showQueueList:s}=fr(l=>({currentThread:l.currentThread,queuingThreads:l.queuingThreads,showQueueList:l.showQueueList,showRightPanel:l.showRightPanel}));return x.jsxs(Qn,{children:[x.jsx(IGt,{style:t,width:n,id:"scrollableDiv",children:x.jsx(NWt,{})}),x.jsxs(Qn,{children:[s&&x.jsxs(x.Fragment,{children:[x.jsx(RGt,{style:r,children:x.jsxs(Zr,{children:[x.jsx(gve,{}),e.formatMessage({id:"i18n.queue.tip"})+"("+o.length+")"]})}),x.jsx(Bre,{style:i,children:x.jsx(AWt,{})})]}),!s&&x.jsxs(x.Fragment,{children:[VR(a)&&x.jsxs(Lp,{children:[x.jsx(Lp.Panel,{children:x.jsx(qA,{})}),x.jsx(Lp.Panel,{defaultSize:"40%",children:x.jsx(gWt,{})})]}),!VR(a)&&x.jsx(Bre,{style:i,children:x.jsx(qA,{})})]})]})]})};function mU(){const[e,t]=d.useState(!1),[n,r]=d.useState(!1),i=async(o,s)=>{ma?await Vct()?console.log("showWebNotification handleNewMessage isWindowActive"):(console.log("showWebNotification handleNewMessage not isWindowActive"),qct(o,s)):n?(console.log("showWebNotification handleNewMessage isBrowserTabHidden"),a(o,s)):console.log("showWebNotification handleNewMessage not isBrowserTabHidden")},a=(o,s)=>{if(localStorage.getItem(EC)!="true"){console.log("showWebNotification not showNetNotification");return}console.log("showWebNotification");const c=new Notification(o,{body:s,icon:"./logo.png"});c.onshow=function(){console.log("Notification shown")},c.onclick=function(){console.log("notification click")},c.onclose=function(){console.log("notification close")},c.onerror=function(){console.log("notification error")}};return d.useEffect(()=>(ma||(console.log("showWebNotification Notification.permission"),window.Notification&&Notification.permission!=="granted"?Notification.requestPermission(function(o){t(o==="granted")}):(console.log("已经授权或浏览器不支持通知"),t(!0)),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?r(!0):document.visibilityState==="visible"&&r(!1)},!1)),()=>{document.removeEventListener("visibilitychange",()=>{})}),[]),{isNotificationGranted:e,showWebNotification:a,showNotification:i}}var hf={},G4e={exports:{}},Y4e={exports:{}};(function(e){var t=zbe;function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Y4e);var jGt=Y4e.exports,X4e={exports:{}};(function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(X4e);var Z4e=X4e.exports,Q4e={exports:{}};(function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Q4e);var NGt=Q4e.exports;(function(e){var t=jGt,n=Z4e,r=dH,i=NGt;function a(o){return t(o)||n(o)||r(o)||i()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(G4e);var J4e=G4e.exports,a7={};Object.defineProperty(a7,"__esModule",{value:!0});a7.default=AGt;function AGt(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}var gU={};const Ih=B3(Mje);var o7={},DGt=Ta.default;Object.defineProperty(o7,"__esModule",{value:!0});o7.default=LGt;var FGt=DGt(d);function LGt(e,t,n){var r=FGt.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var s7={},exe={exports:{}};(function(e){var t=Dbe,n=Z4e,r=dH,i=Ube;function a(o){return t(o)||n(o)||r(o)||i()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(exe);var BGt=exe.exports,vU={};Object.defineProperty(vU,"__esModule",{value:!0});vU.default=zGt;function zGt(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!(0,GA.default)(e,t.slice(0,-1))?e:rxe(e,t,n,r)}function WGt(e){return(0,txe.default)(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function zre(e){return Array.isArray(e)?[]:{}}var VGt=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function qGt(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=yU,e};dc.default=XGt;var l7={};Object.defineProperty(l7,"__esModule",{value:!0});l7.default=void 0;var ZGt=d;l7.default=(0,ZGt.createContext)(void 0);var axe={},c7={},QGt=br.default;Object.defineProperty(c7,"__esModule",{value:!0});c7.changeConfirmLocale=JGt;c7.getConfirmLocale=eYt;var bU=QGt(Rg);let O_=Object.assign({},bU.default.Modal),I_=[];const Hre=()=>I_.reduce((e,t)=>Object.assign(Object.assign({},e),t),bU.default.Modal);function JGt(e){if(e){const t=Object.assign({},e);return I_.push(t),O_=Hre(),()=>{I_=I_.filter(n=>n!==t),O_=Hre()}}O_=Object.assign({},bU.default.Modal)}function eYt(){return O_}var lb={};Object.defineProperty(lb,"__esModule",{value:!0});lb.default=void 0;var tYt=d;const nYt=(0,tYt.createContext)(void 0);lb.default=nYt;var u7={},oxe=br.default,rYt=Ta.default;Object.defineProperty(u7,"__esModule",{value:!0});u7.default=void 0;var IP=rYt(d),iYt=oxe(lb),Ure=oxe(Rg);const aYt=(e,t)=>{const n=IP.useContext(iYt.default),r=IP.useMemo(()=>{var a;const o=t||Ure.default[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),i=IP.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Ure.default.locale:a},[n]);return[r,i]};u7.default=aYt;(function(e){"use client";var t=br.default,n=Ta.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0,Object.defineProperty(e,"useLocale",{enumerable:!0,get:function(){return o.default}});var r=n(d),i=c7,a=t(lb),o=t(u7);e.ANT_MARK="internalMark";const s=l=>{const{locale:c={},children:u,_ANT_MARK__:f}=l;r.useEffect(()=>(0,i.changeConfirmLocale)(c==null?void 0:c.Modal),[c]);const p=r.useMemo(()=>Object.assign(Object.assign({},c),{exist:!0}),[c]);return r.createElement(a.default.Provider,{value:p},u)};e.default=s})(axe);var dd={},wU={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});Cd.defaultPresetColors=Cd.default=void 0;const oYt=Cd.defaultPresetColors={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},sYt=Object.assign(Object.assign({},oYt),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +`;function CGt(e){const t=d.useRef(null),n=d.useRef(null);return n.current&&n.current.update(e),d.useEffect(()=>(n.current=new vU({...e,ref:t}),()=>{n.current=null}),[]),te.createElement("div",{ref:t})}const _Gt=({onSelect:e,onClose:t})=>{const[n,r]=d.useState(!0),i=a=>{r(!1),e(a.native)};return x.jsx(OAt,{className:"EmojiPicker",active:n,onClose:()=>{r(!1),t()},title:"请选择表情",children:x.jsx("div",{children:x.jsx(CGt,{data:AKt,onEmojiSelect:i})})})},kGt=({isAutoReplyModelOpen:e,handleAutoReplyModelOk:t,handleAutoReplyModelCancel:n,isTransferThreadModelOpen:r,handleTransferThreadModelOk:i,handleTransferThreadModelCancel:a,isInviteThreadModelOpen:o,handleInviteThreadModelOk:s,handleInviteThreadModelCancel:l,isForwardMessageModelOpen:c,handleForwardMessageModelOk:u,handleForwardMessageModelCancel:f,isTransferMessageModelOpen:p,handleTransferMessageModelOk:h,handleTransferMessageModelCancel:m,isHistoryMessageModelOpen:g,handleHistoryMessageModelOk:v,handleHistoryMessageModelCancel:y,isTicketCreateModelOpen:w,handleTicketCreateModelSuccess:b,handleTicketCreateModelCancel:C,isBlockModelOpen:k,handleBlockModelOk:S,handleBlockModelCancel:_,isWebRtcModelOpen:E,handleWebRtcModelOk:$,handleWebRtcModelCancel:M,isScreenRecorderModelOpen:P,screenShotImg:R,handleScreenRecorderModelOk:O,handleScreenRecorderModelCancel:j,isGroupInfoDrawerOpen:I,setIsGroupInfoDrawerOpen:A,isMemberInfoDrawerOpen:N,setIsMemberInfoDrawerOpen:F,isRobotInfoDrawerOpen:K,setIsRobotInfoDrawerOpen:L,showEmoji:V,handleEmojiSelect:B,setShowEmoji:U})=>x.jsxs(x.Fragment,{children:[e&&x.jsx(mqt,{open:e,onOk:t,onCancel:n}),r&&x.jsx(uKt,{open:r,onOk:i,onCancel:a}),o&&x.jsx(fKt,{open:o,onOk:s,onCancel:l}),c&&x.jsx(oKt,{open:c,onOk:u,onCancel:f}),p&&x.jsx(lKt,{open:p,onOk:h,onCancel:m}),g&&x.jsx(sKt,{open:g,onOk:v,onCancel:y}),w&&x.jsx(_4e,{open:w,onSuccess:b,onCancel:C}),k&&x.jsx(G3e,{open:k,onOk:S,onCancel:_}),E&&x.jsx(pKt,{open:E,onOk:$,onCancel:M}),P&&x.jsx(eKt,{open:P,screenShotImg:R,onOk:O,onCancel:j}),I&&x.jsx(_Kt,{open:I,onClose:()=>A(!1)}),N&&x.jsx(kKt,{open:N,onClose:()=>F(!1)}),K&&x.jsx(OKt,{open:K,onClose:()=>L(!1)}),V&&x.jsx(_Gt,{onSelect:B,onClose:()=>U(!1)})]}),EGt=({contextMessage:e,handleRightClick:t})=>{const n=Rn(),{isDarkMode:r,hasRoleAgent:i}=d.useContext(Ea);return x.jsx(x.Fragment,{children:x.jsxs(q3e,{id:use,theme:r?"dark":"light",children:[x.jsx(ci,{id:"copy",onClick:t,children:n.formatMessage({id:"chat.menu.copy",defaultMessage:"复制"})}),(e==null?void 0:e.type)===vo&&x.jsx(ci,{id:"translate",onClick:t,children:n.formatMessage({id:"chat.menu.translate",defaultMessage:"翻译"})}),(e==null?void 0:e.position)==="right"&&x.jsx(ci,{id:"recall",onClick:t,children:n.formatMessage({id:"chat.menu.recall",defaultMessage:"撤回"})}),ha&&(e==null?void 0:e.type)===vo&&x.jsx(ci,{id:"enlarge",onClick:t,children:n.formatMessage({id:"chat.menu.enlarge",defaultMessage:"放大阅读"})}),i&&x.jsx(ci,{id:"addquickreply",onClick:t,children:n.formatMessage({id:"chat.menu.quickreply.add",defaultMessage:"添加快捷回复..."})}),(e==null?void 0:e.type)===Cl&&x.jsxs(x.Fragment,{children:[x.jsx(Wv,{}),x.jsx(ci,{id:"browser-open",onClick:t,children:n.formatMessage({id:"chat.menu.browser.open",defaultMessage:"浏览器打开"})})]}),Nl&&x.jsxs(x.Fragment,{children:[x.jsx(Wv,{}),x.jsx(ci,{id:"forward",onClick:t,children:n.formatMessage({id:"chat.menu.forward",defaultMessage:"转发..."})}),x.jsx(ci,{id:"collect",onClick:t,children:n.formatMessage({id:"chat.menu.collect",defaultMessage:"收藏"})}),x.jsx(ci,{id:"quote",onClick:t,children:n.formatMessage({id:"chat.menu.quote",defaultMessage:"引用"})})]}),x.jsx(Wv,{}),x.jsx(ci,{id:"ai",onClick:t,children:n.formatMessage({id:"chat.menu.ai",defaultMessage:"问AI"})}),x.jsx(ci,{id:"searchQuickReply",onClick:t,children:n.formatMessage({id:"chat.menu.quickreply.search",defaultMessage:"搜索知识库"})})]})})},$Gt=({isDarkMode:e,imageInputRef:t,fileInputRef:n,handleImageChange:r,handleFileChange:i})=>x.jsxs(x.Fragment,{children:[e&&x.jsx(VH,{children:x.jsx("link",{rel:"stylesheet",type:"text/css",href:bse})}),x.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},ref:t,onChange:r}),x.jsx("input",{type:"file",style:{display:"none"},ref:n,onChange:i})]}),MGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"邀请会话"}),x.jsx(tp,{children:r})]})})},TGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"同意转接会话"}),x.jsx(tp,{children:r})]})})},PGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"拒绝转接会话"}),x.jsx(tp,{children:r})]})})},OGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"同意邀请会话"}),x.jsx(tp,{children:r})]})})},RGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"拒绝邀请会话"}),x.jsx(tp,{children:r})]})})},YA=({fromTicketTab:e=!1,ticket:t})=>{const n=Rn(),{translateString:r}=Zr(),i=r7(),[a,o]=d.useState(""),[s]=DVt(a,1e3),l=ia(Je=>Je.userInfo),c=Eo(Je=>Je.agentInfo),u=Na(Je=>Je.memberInfo),[f,p]=d.useState(0),{messages:h,appendMsg:m,updateMsg:g,resetList:v}=uwe([]),{currentThread:y,currentTicketThread:w,setCurrentTicketThread:b}=fr(Je=>({currentThread:Je.currentThread,currentTicketThread:Je.currentTicketThread,setCurrentTicketThread:Je.setCurrentTicketThread})),[C,k]=d.useState(e?w:y),[S,_]=d.useState(!1),[E]=d.useState(""),[$,M]=d.useState(r("i18n.load.more")),P=d.useRef(null),R=d.useRef(null),O=d.useRef(!1),j=d.useRef(null),I=d.useRef(null),{isDarkMode:A,locale:N}=d.useContext(Ea),[F,K]=d.useState(null),[L,V]=yr.useModal(),[B,U]=d.useState(""),[Y,ee]=d.useState(!1),[ie,Z]=d.useState(!1),[X,ae]=d.useState(!1),[oe,le]=d.useState(!1),[ce,pe]=d.useState(!1),[me,re]=d.useState(!1),[fe,ve]=d.useState(!1),[$e,Ce]=d.useState(!1),[be,Se]=d.useState(!1),[we,se]=d.useState(!1),[ye,Oe]=d.useState(""),[z,H]=d.useState(!1),[G,de]=d.useState(!1),[xe,he]=d.useState(!1),[Ue,We]=d.useState(!1),ge=ja(Je=>Je.currentTicket),{messageList:ze,addMessage:Ve,addMessageProtobuf:Be,addMessageList:Xe,updateMessage:Ke}=Td(Je=>({messageList:Je.messageList,addMessage:Je.addMessage,addMessageProtobuf:Je.addMessageProtobuf,addMessageList:Je.addMessageList,updateMessage:Je.updateMessage})),qe=async Je=>{if(Je==null){v(),k(null),b(null);return}je.loading(r("i18n.loading"));const bt=await TUt(Je);if(console.log("ChatPage fetchTicketThread:",Je,bt.data),bt.data.code===200){const sn=bt.data.data;k(sn),b(sn)}else je.error(bt.data.message);je.destroy()};d.useEffect(()=>{e&&qe(t==null?void 0:t.threadUid),((t==null?void 0:t.threadUid)===null||(t==null?void 0:t.threadUid)===void 0)&&(v(),k(null),b(null))},[t,e]),d.useEffect(()=>{!e&&y&&k(y)},[y]);let Et=[{name:n.formatMessage({id:"chat.toolbar.emoji",defaultMessage:"表情"}),type:"emoji",code:"emoji",icon:"smile",isHighlight:!1},{name:n.formatMessage({id:"chat.toolbar.image",defaultMessage:"图片"}),type:"image",code:"image",icon:"image",isHighlight:!1},{name:n.formatMessage({id:"chat.toolbar.file",defaultMessage:"文件"}),type:"file",code:"file",icon:"file",isHighlight:!1}];const[ut,gt]=d.useState(Et),{show:Ze}=W3e({id:use}),nt=(Je,bt)=>{console.log("handleContextMenu:",Je," item:",bt),K(bt),Ze({event:Je,props:{key:bt==null?void 0:bt._id.toString()}})},jt=({id:Je,event:bt,props:sn})=>{console.log("handleRightClick:",Je,bt,sn);const Pn=F==null?void 0:F._id.toString();switch(Je){case"copy":navigator.clipboard.writeText(r(F==null?void 0:F.content)).then(()=>{je.success(n.formatMessage({id:"chat.copy.success",defaultMessage:"复制成功"}))}).catch(qn=>{console.error("无法复制文本: ",qn),je.error(qn)});break;case"enlarge":Xct(F==null?void 0:F.content);break;case"translate":Lt(Pn,F==null?void 0:F.content);break;case"forward":pe(!0);break;case"browser-open":F0(F==null?void 0:F.content);break;case"recall":Oct(Pn,C);break;case"addquickreply":Bt();break;case"ai":Ut();break;case"searchQuickReply":Ne();break;case"collect":case"quote":case"delete":default:je.warning("TODO: 即将上线,敬请期待");break}},Lt=async(Je,bt)=>{var Pn,qn,ln;const sn=await l$e(Je,bt);if(console.log("ChatPage handleTranslate",sn.data),sn.data.code===200){const or=(Pn=sn==null?void 0:sn.data)==null?void 0:Pn.data.msgUid,ri=(qn=sn==null?void 0:sn.data)==null?void 0:qn.data.result,wn=ze.find(An=>An.uid===or);wn&&(wn.content=wn.content+` +`+ri,Ke(wn),g(or,{_id:F==null?void 0:F._id,type:F==null?void 0:F.type,hasTime:F==null?void 0:F.hasTime,createdAt:F==null?void 0:F.createdAt,content:wn==null?void 0:wn.content,position:F==null?void 0:F.position,user:F==null?void 0:F.user,status:wn==null?void 0:wn.type}))}else je.error((ln=sn==null?void 0:sn.data)==null?void 0:ln.message)},Bt=()=>{const Je=JSON.stringify(F);$n.emit(eR,Je)},Ut=Je=>{const bt=JSON.stringify(Je||F);$n.emit(Nw,bt)},Ne=Je=>{const bt=JSON.stringify(Je||F);$n.emit(Aw,bt)},He=async()=>{var sn;je.loading(n.formatMessage({id:"chat.thread.closing",defaultMessage:"结束会话中..."}));const Je={uid:C==null?void 0:C.uid},bt=await jUt(Je);console.log("handleCloseThread",bt.data),bt.data.code===200?(k((sn=bt==null?void 0:bt.data)==null?void 0:sn.data),je.destroy(),je.success(n.formatMessage({id:"chat.thread.close.success",defaultMessage:"结束会话成功"}))):(je.destroy(),je.error(bt.data.message))},Le=()=>{var Je;L.confirm({title:n.formatMessage({id:"chat.thread.close.confirm.title",defaultMessage:"确定要结束会话?"}),icon:x.jsx(qf,{}),content:x.jsx(x.Fragment,{children:(Je=C==null?void 0:C.user)==null?void 0:Je.nickname}),onOk(){console.log("OK"),He()},onCancel(){console.log("Cancel")}})},Qe=async()=>{if(O.current)return;O.current=!0,je.loading(r("i18n.loading"));const Je={pageNumber:f,pageSize:20,topic:C==null?void 0:C.topic},bt=await o$e(Je);console.log("ChatPage getHistoryMessages: ",bt.data,Je),je.destroy(),bt.data.code===200?(Xe(bt.data.data.content),bt.data.data.last?(M(""),je.success(r("i18n.load.nomore"))):p(f+1)):bt.data.code===601||je.error(bt.data.message),O.current=!1};d.useEffect(()=>{p(0),M(r("i18n.load.more")),ze.length===0&&Qe();let Je=[];if(Nl){const bt={name:n.formatMessage({id:"chat.toolbar.audio",defaultMessage:"录音"}),type:"audio",code:"audio",icon:"mic",isHighlight:!1};Je.push(bt);const sn={name:n.formatMessage({id:"chat.toolbar.webrtc",defaultMessage:"视频会话"}),type:"webrtc",code:"webrtc",icon:"play-circle",isHighlight:!1};Je.push(sn)}if(Rf(C)){const bt={name:n.formatMessage({id:"chat.toolbar.autoreply",defaultMessage:"自动回复"}),type:"autoreply",code:"autoreply",icon:"apps"};Je.push(bt);const sn={name:n.formatMessage({id:"chat.toolbar.invite.rate",defaultMessage:"邀请评价"}),type:pv,code:pv,icon:"thumbs-up",isHighlight:!1};Je.push(sn);const Pn={name:n.formatMessage({id:"chat.toolbar.block",defaultMessage:"拉黑"}),type:"block",code:"block",icon:"thumbs-down"};if(Je.push(Pn),Nl){const qn={name:n.formatMessage({id:"chat.toolbar.history",defaultMessage:"历史消息"}),type:"history",code:"history",icon:"message"};Je.push(qn)}}if(Dk(C)&&(Et=[],Je=[]),ha){const bt={name:n.formatMessage({id:"chat.toolbar.screenshot",defaultMessage:"截图"}),type:"screenshot",code:"screenshot",icon:"camera",isHighlight:!1};Je.push(bt)}gt([...Et,...Je]),P.current&&P.current.scrollToEnd()},[C,N]);const pt=(Je,bt)=>{if(console.log("handleSend",Je,bt),U(""),!i){je.error(n.formatMessage({id:"chat.network.error",defaultMessage:"网络连接失败,请检查网络"}));return}Je===vo.toLowerCase()&&bt.trim()?xt(bt):je.error("暂不支持消息类型")},xt=Je=>{const bt=Ba();if(QOe(C)){Ct();const sn=yde(C,l,c,bt,vo,Je,Pv());Ve(sn);const Pn=xL(C,l,c,bt,vo,Je,Pv());$le(JSON.stringify(Pn),function(qn){console.log("sendSseMessage receive: ",qn),Be(qn),kt()})}else m({_id:bt,type:vo,status:$p,hasTime:!0,createdAt:en().toDate().getTime(),content:Je,position:"right",user:Mr()}),Cct(bt,Je,e,C);P.current.scrollToEnd()};d.useEffect(()=>{var Je;((Je=C==null?void 0:C.topic)==null?void 0:Je.length)>0&&s.trim().length>0&&Mct(C,e)},[s,C]);const Nt=Je=>{U(Je),o(Je)},Ot=Je=>(console.log("ChatPage handleImageSend",Je),qC(Je,bt=>{qt(bt.data.fileUrl,Cl)}),null),Pt=Je=>{var sn;console.log("handleImageChange event: ",Je);const bt=(sn=Je.target.files)==null?void 0:sn.item(0);bt&&(console.log("handleImageChange file: ",bt),qC(bt,Pn=>{qt(Pn.data.fileUrl,Cl)}))},st=Je=>{var sn;console.log("handleFileChange event: ",Je);const bt=(sn=Je.target.files)==null?void 0:sn.item(0);bt&&(console.log("handleFileChange file: ",bt),qC(bt,Pn=>{qt(Pn.data.fileUrl,cd)}))},Ct=()=>{_(!0)},kt=()=>{_(!1)},qt=(Je,bt)=>{console.log("handleImageDropSend",Je);const sn=Ba();m({_id:sn,type:bt,status:$p,hasTime:!0,createdAt:en().toDate().getTime(),content:Je,position:"right",user:{avatar:l.avatar}}),wo(sn,bt,Je,C,e),P.current.scrollToEnd(),console.log("scrollToEnd:",P)},vt=()=>{console.log("handleAutoReplyModelOk"),Z(!1)},At=()=>{console.log("handleAutoReplyModelCancel"),Z(!1)},dt=()=>{console.log("handleTransferThreadModelOk"),ae(!1)},De=()=>{console.log("handleTransferThreadModelCancel"),ae(!1)},Ye=()=>{console.log("handleInviteThreadModelOk"),le(!1)},ot=()=>{console.log("handleInviteThreadModelCancel"),le(!1)},Re=()=>{console.log("handleForwardMessageModelOk"),pe(!1)},It=()=>{console.log("handleForwardMessageModelCancel"),pe(!1)},rt=()=>{console.log("handleTransferMessageModelOk"),re(!1)},$t=()=>{console.log("handleTransferMessageModelCancel"),re(!1)},Mt=()=>{console.log("handleHistoryMessageModelOk"),ve(!1)},dn=()=>{console.log("handleHistoryMessageModelCancel"),ve(!1)},pn=()=>{console.log("handleTicketCreateModelSuccess"),Ce(!1)},T=()=>{console.log("handleTicketCreateModelCancel"),Ce(!1)},D=()=>{console.log("handleBlockModelOk"),Se(!1)},J=()=>{console.log("handleBlockModelCancel"),Se(!1)},ke=()=>{console.log("handleWebRtcModelOk"),se(!1)},Ie=()=>{console.log("handleWebRtcModelCancel"),se(!1)},it=()=>{console.log("handleScreenRecorderModelOk"),H(!1)},Ft=()=>{console.log("handleScreenRecorderModelCancel"),H(!1)},rn=Je=>{console.log("handleEmojiSelect",Je),ee(!1),U(B+Je),R.current.setText(B+Je)},On=(Je,bt)=>{console.log("QuickButton:",Je,bt),Je.code===pv?L.confirm({title:n.formatMessage({id:"chat.rate.invite.confirm.title",defaultMessage:"确认要邀请评价?"}),okText:n.formatMessage({id:"common.confirm",defaultMessage:"确认"}),cancelText:n.formatMessage({id:"common.cancel",defaultMessage:"取消"}),onOk:()=>{$ct(C)},onCancel:()=>{console.log("onCancel")}}):Je.code==="autoreply"?Z(!0):Je.type==="emoji"?ee(!0):Je.type==="image"?j.current.click():Je.type==="file"?I.current.click():Je.type==="screenshot"?(Zct(),ha||gr()):Je.type==="audio"||Je.type==="webrtc"?se(!0):Je.type==="history"?ve(!0):Je.type==="block"&&Se(!0)},Er=Je=>{var bt,sn,Pn;return(Je==null?void 0:Je.type)===zV?"left":((bt=Je==null?void 0:Je.user)==null?void 0:bt.uid)===(l==null?void 0:l.uid)||((sn=Je==null?void 0:Je.user)==null?void 0:sn.uid)===(c==null?void 0:c.uid)||((Pn=Je==null?void 0:Je.user)==null?void 0:Pn.uid)===(u==null?void 0:u.uid)?"right":"left"},Mr=()=>e?{avatar:u==null?void 0:u.avatar,name:u==null?void 0:u.nickname}:Rf(C)?{avatar:c==null?void 0:c.avatar,name:c==null?void 0:c.nickname}:{avatar:l==null?void 0:l.avatar,name:l==null?void 0:l.nickname};d.useEffect(()=>{const Je=[];ze.forEach(bt=>{var Pn,qn;let sn=!1;if(lRe(C==null?void 0:C.topic)){const ln=cRe(C==null?void 0:C.topic);console.log("useEffect messageList :",bt==null?void 0:bt.topic,C==null?void 0:C.topic,ln),((bt==null?void 0:bt.topic)===(C==null?void 0:C.topic)||(bt==null?void 0:bt.topic)===ln)&&(sn=!0)}else(bt==null?void 0:bt.topic)===(C==null?void 0:C.topic)&&(sn=!0);sn&&Je.push({_id:bt==null?void 0:bt.uid,type:bt==null?void 0:bt.type,status:bt==null?void 0:bt.status,hasTime:!0,createdAt:en(bt==null?void 0:bt.createdAt).toDate().getTime(),content:r(bt==null?void 0:bt.content),position:Er(bt),user:{avatar:(Pn=bt==null?void 0:bt.user)==null?void 0:Pn.avatar,name:r((qn=bt==null?void 0:bt.user)==null?void 0:qn.nickname)}})}),v(Je)},[ze,C]);const mr=Je=>{console.log("handleResendMessage",Je);const{_id:bt,type:sn,content:Pn}=Je;wo(bt.toString(),sn,Pn,C,e)},pr=Je=>{console.log("handlePhoneClick",Je),Je&&(navigator.clipboard.writeText(Je),je.success("电话号码:"+Je+" 已复制到剪贴板"))},cn=Je=>{console.log("handleEmailClick",Je),Je&&(navigator.clipboard.writeText(Je),je.success("邮箱:"+Je+" 已复制到剪贴板"))},Sn=Je=>{const{_id:bt,type:sn,content:Pn,position:qn,status:ln,createdAt:or}=Je;switch(sn){case Cse:case vo:return x.jsxs(x.Fragment,{children:[x.jsx(qu,{content:r(Pn),isRichText:vde(Pn),onPhoneClick:pr,onEmailClick:cn,onContextMenu:()=>nt(event,Je),onAiClick:()=>{Ut(Je)},onSearchClick:()=>{Ne(Je)},showFunctionButtons:qn==="left"}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Je)})]});case $f:return x.jsxs(x.Fragment,{children:[x.jsx(O3e,{uid:bt.toString(),content:Pn,thread:C}),qn==="right"&&x.jsx(ll,{status:ln,onRetry:()=>mr(Je)})]});case _se:return x.jsx(x.Fragment,{children:x.jsx(uqt,{content:Pn,createdAt:or})});case Cl:return x.jsxs(x.Fragment,{children:[x.jsx(qu,{type:"image",onContextMenu:()=>nt(event,Je),children:x.jsx(f4e,{src:Pn,children:x.jsx("img",{src:Pn,alt:""})})}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Je)})]});case cd:return x.jsxs(x.Fragment,{children:[x.jsx(qu,{type:"file",onContextMenu:()=>nt(event,Je),children:x.jsx(Swe,{fileUrl:Pn,children:x.jsx(Yt,{onClick:()=>F0(Pn),children:"下载文件"})})}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Je)})]});case lg:return x.jsxs(x.Fragment,{children:[x.jsx(qu,{style:{maxWidth:200},onContextMenu:()=>nt(event,Je),children:x.jsx(XAt,{src:Je.content})}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Je)})]});case e5e:return x.jsx(x.Fragment,{children:x.jsx(Xs,{size:"xl",children:x.jsx(ZAt,{img:"//gw.alicdn.com/tfs/TB1p_nirYr1gK0jSZR0XXbP8XXa-300-300.png",name:"这个商品名称非常非常长长到会换行",desc:"商品描述",tags:[{name:"3个月免息"},{name:"4.1折"},{name:"黑卡再省33.96"}],currency:"¥",meta:"7人付款",count:6,unit:"kg",onClick:ri=>console.log(ri),action:{onClick(ri){console.log(ri),ri.stopPropagation()}}})})});case zV:return x.jsx(x.Fragment,{children:x.jsx(rqt,{content:Pn,status:ln,type:sn})});case kse:return x.jsx(x.Fragment,{children:x.jsx(qu,{onContextMenu:()=>nt(event,Je),children:x.jsx(aqt,{uid:bt.toString(),content:Pn})})});case i5e:return x.jsx(x.Fragment,{children:x.jsx(qu,{onContextMenu:()=>nt(event,Je),children:x.jsx(iqt,{uid:bt.toString()})})});case s5e:case pv:return x.jsxs(x.Fragment,{children:[x.jsx(FVt,{uid:bt.toString(),content:Pn,status:ln,type:sn}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Je)})]});case vF:return x.jsxs(x.Fragment,{children:[x.jsx(oqt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Je)})]});case yF:return x.jsxs(x.Fragment,{children:[x.jsx(TGt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Je)})]});case bF:return x.jsxs(x.Fragment,{children:[x.jsx(PGt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Je)})]});case wF:return x.jsxs(x.Fragment,{children:[x.jsx(MGt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Je)})]});case xF:return x.jsxs(x.Fragment,{children:[x.jsx(OGt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Je)})]});case SF:return x.jsxs(x.Fragment,{children:[x.jsx(RGt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Je)})]});default:return x.jsxs(x.Fragment,{children:[x.jsx(qu,{content:r(Pn),onContextMenu:()=>nt(event,Je)}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Je)})]})}};async function gr(){navigator.mediaDevices.getDisplayMedia({video:!0}).then(Je=>{const bt=document.createElement("canvas");bt.width=window.innerWidth,bt.height=window.innerHeight;const sn=document.createElement("video");sn.srcObject=Je,sn.play(),sn.addEventListener("loadedmetadata",()=>{bt.getContext("2d").drawImage(sn,0,0,bt.width,bt.height);const qn=bt.toDataURL("image/png");console.log("dataURL:",qn),Oe(qn),H(!0),Je.getTracks().forEach(ln=>ln.stop())})}).catch(Je=>{console.error("Error accessing screen:",Je)})}d.useEffect(()=>{const Je=ln=>{var An;const or=JSON.parse(ln),ri=(An=or==null?void 0:or.uid)==null?void 0:An.toString(),wn=h.find(tr=>tr._id.toString()===ri);wn?g(or==null?void 0:or.uid,{_id:wn==null?void 0:wn._id,type:wn==null?void 0:wn.type,hasTime:wn==null?void 0:wn.hasTime,createdAt:wn==null?void 0:wn.createdAt,content:wn==null?void 0:wn.content,position:wn==null?void 0:wn.position,user:wn==null?void 0:wn.user,status:or==null?void 0:or.type}):console.log("handleMessageTypeStatus msg is undefined")},bt=ln=>{console.log("EVENT_BUS_SEND_IMAGE_MESSAGE",ln);const or=Ba();m({_id:or,type:Cl,status:$p,createdAt:en().toDate().getTime(),content:ln,position:"right",user:{avatar:l==null?void 0:l.avatar,name:l==null?void 0:l.nickname}}),_ct(or,ln,e,C)},sn=ln=>{console.log("EVENT_BUS_SEND_FILE_MESSAGE",ln);const or=Ba();m({_id:or,type:cd,status:$p,createdAt:en().toDate().getTime(),content:ln,position:"right",user:{avatar:l==null?void 0:l.avatar,name:l==null?void 0:l.nickname}}),kct(or,ln,e,C)},Pn=ln=>{console.log("handleScreenCaptureImage",ln),Oe(ln),H(!0)},qn=ln=>{console.log("handleQuickButtonClick",ln);const or=JSON.parse(ln),ri=Ba();m({_id:ri,type:or.type,status:$p,createdAt:en().toDate().getTime(),content:or.content,position:"right",user:{avatar:l==null?void 0:l.avatar,name:l==null?void 0:l.nickname}}),wo(ri,or.type,or.content,C,e)};return $n.on(hk,Je),$n.on(OC,bt),$n.on(IM,sn),$n.on(QO,Pn),$n.on(JO,qn),()=>{$n.off(OC),$n.off(IM),$n.off(hk,Je),$n.off(OC,bt),$n.off(IM,sn),$n.off(QO,Pn),$n.off(JO,qn)}},[h]);const on={"@":[{value:"all",label:"所有人"},{value:"one",label:"Person"}],"/":[{value:"test1",label:"Test1"},{value:"test2",label:"Test2"}]};return e&&!ge?x.jsx(za,{style:{marginTop:200},description:!1}):x.jsxs(x.Fragment,{children:[x.jsx($Gt,{isDarkMode:A,imageInputRef:j,fileInputRef:I,handleImageChange:Pt,handleFileChange:st}),x.jsxs(jVt,{onImageSend:qt,children:[x.jsx(fqt,{fromTicketTab:e,chatThread:C,typing:S,previewContent:E,setIsTransferThreadModelOpen:ae,setIsInviteThreadModelOpen:le,setIsTicketCreateModelOpen:Ce,showCloseThreadConfirm:Le,setIsGroupInfoDrawerOpen:de,setIsMemberInfoDrawerOpen:he,setIsRobotInfoDrawerOpen:We}),(C==null?void 0:C.topic)===""?x.jsx(x.Fragment,{children:x.jsx(za,{style:{marginTop:200},description:!1})}):x.jsxs(x.Fragment,{children:[x.jsx(nqt,{children:x.jsx($we,{elderMode:!1,loadMoreText:$,onRefresh:Qe,messages:h,isTyping:S,showTransition:!1,translationPlaceholder:n.formatMessage({id:"chat.translation.placeholder",defaultMessage:"请输入翻译内容..."}),messagesRef:P,renderMessageContent:Sn,text:B,composerRef:R,inputOptions:{showCount:!0},quickReplies:ut,onQuickReplyClick:On,onSend:pt,placeholder:n.formatMessage({id:"chat.input.placeholder",defaultMessage:"请输入内容, Ctrl+V 粘贴截图/图片"}),onInputChange:Nt,onImageSend:Ot,wideBreakpoint:"600px",recorder:{canRecord:!1},metionOptions:on,fromTicketTab:e,chatThread:C})}),x.jsx(EGt,{fromTicketTab:e,chatThread:C,contextMessage:F,handleRightClick:jt})]}),x.jsx(kGt,{fromTicketTab:e,chatThread:C,isAutoReplyModelOpen:ie,handleAutoReplyModelOk:vt,handleAutoReplyModelCancel:At,isTransferThreadModelOpen:X,handleTransferThreadModelOk:dt,handleTransferThreadModelCancel:De,isInviteThreadModelOpen:oe,handleInviteThreadModelOk:Ye,handleInviteThreadModelCancel:ot,isForwardMessageModelOpen:ce,handleForwardMessageModelOk:Re,handleForwardMessageModelCancel:It,isTransferMessageModelOpen:me,handleTransferMessageModelOk:rt,handleTransferMessageModelCancel:$t,isHistoryMessageModelOpen:fe,handleHistoryMessageModelOk:Mt,handleHistoryMessageModelCancel:dn,isTicketCreateModelOpen:$e,handleTicketCreateModelSuccess:pn,handleTicketCreateModelCancel:T,isBlockModelOpen:be,handleBlockModelOk:D,handleBlockModelCancel:J,isWebRtcModelOpen:we,handleWebRtcModelOk:ke,handleWebRtcModelCancel:Ie,isScreenRecorderModelOpen:z,screenShotImg:ye,handleScreenRecorderModelOk:it,handleScreenRecorderModelCancel:Ft,isGroupInfoDrawerOpen:G,setIsGroupInfoDrawerOpen:de,isMemberInfoDrawerOpen:xe,setIsMemberInfoDrawerOpen:he,isRobotInfoDrawerOpen:Ue,setIsRobotInfoDrawerOpen:We,showEmoji:Y,handleEmojiSelect:rn,setShowEmoji:ee}),V]})]})},{Sider:IGt,Header:jGt,Content:Ure}=Qn,XA=()=>{const e=Rn(),{leftSiderStyle:t,leftSiderWidth:n,headerStyle:r,contentStyle:i}=co(),{currentThread:a,queuingThreads:o,showQueueList:s}=fr(l=>({currentThread:l.currentThread,queuingThreads:l.queuingThreads,showQueueList:l.showQueueList,showRightPanel:l.showRightPanel}));return x.jsxs(Qn,{children:[x.jsx(IGt,{style:t,width:n,id:"scrollableDiv",children:x.jsx(jWt,{})}),x.jsxs(Qn,{children:[s&&x.jsxs(x.Fragment,{children:[x.jsx(jGt,{style:r,children:x.jsxs(Xr,{children:[x.jsx(wve,{}),e.formatMessage({id:"i18n.queue.tip"})+"("+o.length+")"]})}),x.jsx(Ure,{style:i,children:x.jsx(NWt,{})})]}),!s&&x.jsxs(x.Fragment,{children:[GI(a)&&x.jsxs(Bp,{children:[x.jsx(Bp.Panel,{children:x.jsx(YA,{})}),x.jsx(Bp.Panel,{defaultSize:"40%",children:x.jsx(gWt,{})})]}),!GI(a)&&x.jsx(Ure,{style:i,children:x.jsx(YA,{})})]})]})]})};function yU(){const[e,t]=d.useState(!1),[n,r]=d.useState(!1),i=async(o,s)=>{ha?await Kct()?console.log("showWebNotification handleNewMessage isWindowActive"):(console.log("showWebNotification handleNewMessage not isWindowActive"),Gct(o,s)):n?(console.log("showWebNotification handleNewMessage isBrowserTabHidden"),a(o,s)):console.log("showWebNotification handleNewMessage not isBrowserTabHidden")},a=(o,s)=>{if(localStorage.getItem(MC)!="true"){console.log("showWebNotification not showNetNotification");return}console.log("showWebNotification");const c=new Notification(o,{body:s,icon:"./logo.png"});c.onshow=function(){console.log("Notification shown")},c.onclick=function(){console.log("notification click")},c.onclose=function(){console.log("notification close")},c.onerror=function(){console.log("notification error")}};return d.useEffect(()=>(ha||(console.log("showWebNotification Notification.permission"),window.Notification&&Notification.permission!=="granted"?Notification.requestPermission(function(o){t(o==="granted")}):(console.log("已经授权或浏览器不支持通知"),t(!0)),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?r(!0):document.visibilityState==="visible"&&r(!1)},!1)),()=>{document.removeEventListener("visibilitychange",()=>{})}),[]),{isNotificationGranted:e,showWebNotification:a,showNotification:i}}var mf={},X4e={exports:{}},Z4e={exports:{}};(function(e){var t=qbe;function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Z4e);var NGt=Z4e.exports,Q4e={exports:{}};(function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Q4e);var J4e=Q4e.exports,exe={exports:{}};(function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(exe);var AGt=exe.exports;(function(e){var t=NGt,n=J4e,r=pH,i=AGt;function a(o){return t(o)||n(o)||r(o)||i()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(X4e);var txe=X4e.exports,l7={};Object.defineProperty(l7,"__esModule",{value:!0});l7.default=DGt;function DGt(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}var bU={};const jh=B3(Pje);var c7={},FGt=$a.default;Object.defineProperty(c7,"__esModule",{value:!0});c7.default=BGt;var LGt=FGt(d);function BGt(e,t,n){var r=LGt.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var u7={},nxe={exports:{}};(function(e){var t=Hbe,n=J4e,r=pH,i=Gbe;function a(o){return t(o)||n(o)||r(o)||i()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(nxe);var zGt=nxe.exports,wU={};Object.defineProperty(wU,"__esModule",{value:!0});wU.default=HGt;function HGt(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!(0,ZA.default)(e,t.slice(0,-1))?e:axe(e,t,n,r)}function VGt(e){return(0,rxe.default)(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Wre(e){return Array.isArray(e)?[]:{}}var qGt=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function KGt(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=xU,e};pc.default=ZGt;var d7={};Object.defineProperty(d7,"__esModule",{value:!0});d7.default=void 0;var QGt=d;d7.default=(0,QGt.createContext)(void 0);var sxe={},f7={},JGt=br.default;Object.defineProperty(f7,"__esModule",{value:!0});f7.changeConfirmLocale=eYt;f7.getConfirmLocale=tYt;var SU=JGt(jg);let R_=Object.assign({},SU.default.Modal),I_=[];const Vre=()=>I_.reduce((e,t)=>Object.assign(Object.assign({},e),t),SU.default.Modal);function eYt(e){if(e){const t=Object.assign({},e);return I_.push(t),R_=Vre(),()=>{I_=I_.filter(n=>n!==t),R_=Vre()}}R_=Object.assign({},SU.default.Modal)}function tYt(){return R_}var cb={};Object.defineProperty(cb,"__esModule",{value:!0});cb.default=void 0;var nYt=d;const rYt=(0,nYt.createContext)(void 0);cb.default=rYt;var p7={},lxe=br.default,iYt=$a.default;Object.defineProperty(p7,"__esModule",{value:!0});p7.default=void 0;var NP=iYt(d),aYt=lxe(cb),qre=lxe(jg);const oYt=(e,t)=>{const n=NP.useContext(aYt.default),r=NP.useMemo(()=>{var a;const o=t||qre.default[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),i=NP.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?qre.default.locale:a},[n]);return[r,i]};p7.default=oYt;(function(e){"use client";var t=br.default,n=$a.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0,Object.defineProperty(e,"useLocale",{enumerable:!0,get:function(){return o.default}});var r=n(d),i=f7,a=t(cb),o=t(p7);e.ANT_MARK="internalMark";const s=l=>{const{locale:c={},children:u,_ANT_MARK__:f}=l;r.useEffect(()=>(0,i.changeConfirmLocale)(c==null?void 0:c.Modal),[c]);const p=r.useMemo(()=>Object.assign(Object.assign({},c),{exist:!0}),[c]);return r.createElement(a.default.Provider,{value:p},u)};e.default=s})(sxe);var hd={},CU={},Ed={};Object.defineProperty(Ed,"__esModule",{value:!0});Ed.defaultPresetColors=Ed.default=void 0;const sYt=Ed.defaultPresetColors={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},lYt=Object.assign(Object.assign({},sYt),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});Cd.default=sYt;var xU={};const fx=B3(Dje);Object.defineProperty(xU,"__esModule",{value:!0});xU.default=lYt;var RP=fx;function lYt(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),p=n(i),h=n(a),m=n(o),g=n(s),v=r(c,u),y=e.colorLink||e.colorInfo,b=n(y),w=new RP.FastColor(m[1]).mix(new RP.FastColor(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:w,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new RP.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var SU={},d7={};Object.defineProperty(d7,"__esModule",{value:!0});d7.default=void 0;const cYt=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};d7.default=cYt;var uYt=br.default;Object.defineProperty(SU,"__esModule",{value:!0});SU.default=fYt;var dYt=uYt(d7);function fYt(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},(0,dYt.default)(r))}var f7={};Object.defineProperty(f7,"__esModule",{value:!0});f7.default=void 0;const pYt=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};f7.default=pYt;var p7={},px={};Object.defineProperty(px,"__esModule",{value:!0});px.default=hYt;px.getLineHeight=sxe;function sxe(e){return(e+8)/e}function hYt(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:sxe(n)}))}var mYt=br.default;Object.defineProperty(p7,"__esModule",{value:!0});p7.default=void 0;var gYt=mYt(px);const vYt=e=>{const t=(0,gYt.default)(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};p7.default=vYt;var CU={};Object.defineProperty(CU,"__esModule",{value:!0});CU.default=yYt;function yYt(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}var Q0={},J0={};Object.defineProperty(J0,"__esModule",{value:!0});J0.getSolidColor=J0.getAlphaColor=void 0;var lxe=fx;const bYt=(e,t)=>new lxe.FastColor(e).setA(t).toRgbString();J0.getAlphaColor=bYt;const wYt=(e,t)=>new lxe.FastColor(e).darken(t).toHexString();J0.getSolidColor=wYt;Object.defineProperty(Q0,"__esModule",{value:!0});Q0.generateNeutralColorPalettes=Q0.generateColorPalettes=void 0;var xYt=J4,fo=J0;const SYt=e=>{const t=(0,xYt.generate)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}};Q0.generateColorPalettes=SYt;const CYt=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:(0,fo.getAlphaColor)(r,.88),colorTextSecondary:(0,fo.getAlphaColor)(r,.65),colorTextTertiary:(0,fo.getAlphaColor)(r,.45),colorTextQuaternary:(0,fo.getAlphaColor)(r,.25),colorFill:(0,fo.getAlphaColor)(r,.15),colorFillSecondary:(0,fo.getAlphaColor)(r,.06),colorFillTertiary:(0,fo.getAlphaColor)(r,.04),colorFillQuaternary:(0,fo.getAlphaColor)(r,.02),colorBgSolid:(0,fo.getAlphaColor)(r,1),colorBgSolidHover:(0,fo.getAlphaColor)(r,.75),colorBgSolidActive:(0,fo.getAlphaColor)(r,.95),colorBgLayout:(0,fo.getSolidColor)(n,4),colorBgContainer:(0,fo.getSolidColor)(n,0),colorBgElevated:(0,fo.getSolidColor)(n,0),colorBgSpotlight:(0,fo.getAlphaColor)(r,.85),colorBgBlur:"transparent",colorBorder:(0,fo.getSolidColor)(n,15),colorBorderSecondary:(0,fo.getSolidColor)(n,6)}};Q0.generateNeutralColorPalettes=CYt;var hx=br.default;Object.defineProperty(wU,"__esModule",{value:!0});wU.default=PYt;var Xh=J4,_Yt=Cd,kYt=hx(xU),EYt=hx(SU),$Yt=hx(f7),MYt=hx(p7),TYt=hx(CU),Wre=Q0;function PYt(e){Xh.presetPrimaryColors.pink=Xh.presetPrimaryColors.magenta,Xh.presetPalettes.pink=Xh.presetPalettes.magenta;const t=Object.keys(_Yt.defaultPresetColors).map(n=>{const r=e[n]===Xh.presetPrimaryColors[n]?Xh.presetPalettes[n]:(0,Xh.generate)(e[n]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),(0,kYt.default)(e,{generateColorPalettes:Wre.generateColorPalettes,generateNeutralColorPalettes:Wre.generateNeutralColorPalettes})),(0,MYt.default)(e.fontSize)),(0,TYt.default)(e)),(0,$Yt.default)(e)),(0,EYt.default)(e))}var _U=br.default;Object.defineProperty(dd,"__esModule",{value:!0});dd.defaultTheme=dd.defaultConfig=dd.DesignTokenContext=void 0;var OYt=_U(d),IYt=Ih,RYt=_U(wU),Vre=_U(Cd);dd.defaultTheme=(0,IYt.createTheme)(RYt.default);const jYt=dd.defaultConfig={token:Vre.default,override:{override:Vre.default},hashed:!0};dd.DesignTokenContext=OYt.default.createContext(jYt);var wl={},NYt=Ta.default;Object.defineProperty(wl,"__esModule",{value:!0});wl.defaultPrefixCls=wl.defaultIconPrefixCls=wl.Variants=wl.ConfigContext=wl.ConfigConsumer=void 0;var AYt=NYt(d);const qre=wl.defaultPrefixCls="ant",DYt=wl.defaultIconPrefixCls="anticon";wl.Variants=["outlined","borderless","filled"];const FYt=(e,t)=>t||(e?`${qre}-${e}`:qre),LYt=wl.ConfigContext=AYt.createContext({getPrefixCls:FYt,iconPrefixCls:DYt}),{Consumer:BYt}=LYt;wl.ConfigConsumer=BYt;var h7={},cxe=br.default;Object.defineProperty(h7,"__esModule",{value:!0});h7.getStyle=uxe;h7.registerTheme=WYt;var Kre=J4,jP=fx,zYt=cxe($$),HYt=c1;cxe(dc);const UYt=`-ant-${Date.now()}-${Math.random()}`;function uxe(e,t){const n={},r=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(o,s)=>{const l=new jP.FastColor(o),c=(0,Kre.generate)(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new jP.FastColor(t.primaryColor),s=(0,Kre.generate)(o.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(o,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(o,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(o,c=>c.setA(c.a*.12));const l=new jP.FastColor(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` +'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});Ed.default=lYt;var _U={};const hx=B3(Lje);Object.defineProperty(_U,"__esModule",{value:!0});_U.default=cYt;var AP=hx;function cYt(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),p=n(i),h=n(a),m=n(o),g=n(s),v=r(c,u),y=e.colorLink||e.colorInfo,w=n(y),b=new AP.FastColor(m[1]).mix(new AP.FastColor(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:b,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new AP.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var kU={},h7={};Object.defineProperty(h7,"__esModule",{value:!0});h7.default=void 0;const uYt=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};h7.default=uYt;var dYt=br.default;Object.defineProperty(kU,"__esModule",{value:!0});kU.default=pYt;var fYt=dYt(h7);function pYt(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},(0,fYt.default)(r))}var m7={};Object.defineProperty(m7,"__esModule",{value:!0});m7.default=void 0;const hYt=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};m7.default=hYt;var g7={},mx={};Object.defineProperty(mx,"__esModule",{value:!0});mx.default=mYt;mx.getLineHeight=cxe;function cxe(e){return(e+8)/e}function mYt(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:cxe(n)}))}var gYt=br.default;Object.defineProperty(g7,"__esModule",{value:!0});g7.default=void 0;var vYt=gYt(mx);const yYt=e=>{const t=(0,vYt.default)(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};g7.default=yYt;var EU={};Object.defineProperty(EU,"__esModule",{value:!0});EU.default=bYt;function bYt(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}var ty={},ny={};Object.defineProperty(ny,"__esModule",{value:!0});ny.getSolidColor=ny.getAlphaColor=void 0;var uxe=hx;const wYt=(e,t)=>new uxe.FastColor(e).setA(t).toRgbString();ny.getAlphaColor=wYt;const xYt=(e,t)=>new uxe.FastColor(e).darken(t).toHexString();ny.getSolidColor=xYt;Object.defineProperty(ty,"__esModule",{value:!0});ty.generateNeutralColorPalettes=ty.generateColorPalettes=void 0;var SYt=tx,fo=ny;const CYt=e=>{const t=(0,SYt.generate)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}};ty.generateColorPalettes=CYt;const _Yt=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:(0,fo.getAlphaColor)(r,.88),colorTextSecondary:(0,fo.getAlphaColor)(r,.65),colorTextTertiary:(0,fo.getAlphaColor)(r,.45),colorTextQuaternary:(0,fo.getAlphaColor)(r,.25),colorFill:(0,fo.getAlphaColor)(r,.15),colorFillSecondary:(0,fo.getAlphaColor)(r,.06),colorFillTertiary:(0,fo.getAlphaColor)(r,.04),colorFillQuaternary:(0,fo.getAlphaColor)(r,.02),colorBgSolid:(0,fo.getAlphaColor)(r,1),colorBgSolidHover:(0,fo.getAlphaColor)(r,.75),colorBgSolidActive:(0,fo.getAlphaColor)(r,.95),colorBgLayout:(0,fo.getSolidColor)(n,4),colorBgContainer:(0,fo.getSolidColor)(n,0),colorBgElevated:(0,fo.getSolidColor)(n,0),colorBgSpotlight:(0,fo.getAlphaColor)(r,.85),colorBgBlur:"transparent",colorBorder:(0,fo.getSolidColor)(n,15),colorBorderSecondary:(0,fo.getSolidColor)(n,6)}};ty.generateNeutralColorPalettes=_Yt;var gx=br.default;Object.defineProperty(CU,"__esModule",{value:!0});CU.default=OYt;var Qh=tx,kYt=Ed,EYt=gx(_U),$Yt=gx(kU),MYt=gx(m7),TYt=gx(g7),PYt=gx(EU),Kre=ty;function OYt(e){Qh.presetPrimaryColors.pink=Qh.presetPrimaryColors.magenta,Qh.presetPalettes.pink=Qh.presetPalettes.magenta;const t=Object.keys(kYt.defaultPresetColors).map(n=>{const r=e[n]===Qh.presetPrimaryColors[n]?Qh.presetPalettes[n]:(0,Qh.generate)(e[n]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),(0,EYt.default)(e,{generateColorPalettes:Kre.generateColorPalettes,generateNeutralColorPalettes:Kre.generateNeutralColorPalettes})),(0,TYt.default)(e.fontSize)),(0,PYt.default)(e)),(0,MYt.default)(e)),(0,$Yt.default)(e))}var $U=br.default;Object.defineProperty(hd,"__esModule",{value:!0});hd.defaultTheme=hd.defaultConfig=hd.DesignTokenContext=void 0;var RYt=$U(d),IYt=jh,jYt=$U(CU),Gre=$U(Ed);hd.defaultTheme=(0,IYt.createTheme)(jYt.default);const NYt=hd.defaultConfig={token:Gre.default,override:{override:Gre.default},hashed:!0};hd.DesignTokenContext=RYt.default.createContext(NYt);var xl={},AYt=$a.default;Object.defineProperty(xl,"__esModule",{value:!0});xl.defaultPrefixCls=xl.defaultIconPrefixCls=xl.Variants=xl.ConfigContext=xl.ConfigConsumer=void 0;var DYt=AYt(d);const Yre=xl.defaultPrefixCls="ant",FYt=xl.defaultIconPrefixCls="anticon";xl.Variants=["outlined","borderless","filled"];const LYt=(e,t)=>t||(e?`${Yre}-${e}`:Yre),BYt=xl.ConfigContext=DYt.createContext({getPrefixCls:LYt,iconPrefixCls:FYt}),{Consumer:zYt}=BYt;xl.ConfigConsumer=zYt;var v7={},dxe=br.default;Object.defineProperty(v7,"__esModule",{value:!0});v7.getStyle=fxe;v7.registerTheme=VYt;var Xre=tx,DP=hx,HYt=dxe(P$),UYt=u1;dxe(pc);const WYt=`-ant-${Date.now()}-${Math.random()}`;function fxe(e,t){const n={},r=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(o,s)=>{const l=new DP.FastColor(o),c=(0,Xre.generate)(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new DP.FastColor(t.primaryColor),s=(0,Xre.generate)(o.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(o,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(o,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(o,c=>c.setA(c.a*.12));const l=new DP.FastColor(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` :root { ${Object.keys(n).map(o=>`--${e}-${o}: ${n[o]};`).join(` `)} } - `.trim()}function WYt(e,t){const n=uxe(e,t);(0,zYt.default)()&&(0,HYt.updateCSS)(n,`${UYt}-dynamic-theme`)}var Tg={},VYt=Ta.default;Object.defineProperty(Tg,"__esModule",{value:!0});Tg.default=Tg.DisabledContextProvider=void 0;var YA=VYt(d);const XA=YA.createContext(!1),qYt=e=>{let{children:t,disabled:n}=e;const r=YA.useContext(XA);return YA.createElement(XA.Provider,{value:n??r},t)};Tg.DisabledContextProvider=qYt;Tg.default=XA;var m7={},Pg={},KYt=Ta.default;Object.defineProperty(Pg,"__esModule",{value:!0});Pg.default=Pg.SizeContextProvider=void 0;var ZA=KYt(d);const QA=ZA.createContext(void 0),GYt=e=>{let{children:t,size:n}=e;const r=ZA.useContext(QA);return ZA.createElement(QA.Provider,{value:n||r},t)};Pg.SizeContextProvider=GYt;Pg.default=QA;var dxe=br.default;Object.defineProperty(m7,"__esModule",{value:!0});m7.default=void 0;var Gre=d,YYt=dxe(Tg),XYt=dxe(Pg);function ZYt(){const e=(0,Gre.useContext)(YYt.default),t=(0,Gre.useContext)(XYt.default);return{componentDisabled:e,componentSize:t}}m7.default=ZYt;var kU={},g7={},fxe=br.default;Object.defineProperty(g7,"__esModule",{value:!0});g7.default=void 0;var Yre=fxe(jg),QYt=fxe(Ys);function JYt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if((0,QYt.default)(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var u=0;u=0&&e<=255}function nXt(e,t){const{r:n,g:r,b:i,a}=new cC.FastColor(e).toRgb();if(a<1)return e;const{r:o,g:s,b:l}=new cC.FastColor(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-o*(1-c))/c),f=Math.round((r-s*(1-c))/c),p=Math.round((i-l*(1-c))/c);if(NP(u)&&NP(f)&&NP(p))return new cC.FastColor({r:u,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new cC.FastColor({r:n,g:r,b:i,a:1}).toRgbString()}w7.default=nXt;var hxe=br.default;Object.defineProperty($U,"__esModule",{value:!0});$U.default=aXt;var AP=fx,rXt=hxe(Cd),uC=hxe(w7),iXt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{delete r[p]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const p="0s";i.motionDurationFast=p,i.motionDurationMid=p,i.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:(0,uC.default)(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:(0,uC.default)(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:(0,uC.default)(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:(0,uC.default)(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` + `.trim()}function VYt(e,t){const n=fxe(e,t);(0,HYt.default)()&&(0,UYt.updateCSS)(n,`${WYt}-dynamic-theme`)}var Pg={},qYt=$a.default;Object.defineProperty(Pg,"__esModule",{value:!0});Pg.default=Pg.DisabledContextProvider=void 0;var QA=qYt(d);const JA=QA.createContext(!1),KYt=e=>{let{children:t,disabled:n}=e;const r=QA.useContext(JA);return QA.createElement(JA.Provider,{value:n??r},t)};Pg.DisabledContextProvider=KYt;Pg.default=JA;var y7={},Og={},GYt=$a.default;Object.defineProperty(Og,"__esModule",{value:!0});Og.default=Og.SizeContextProvider=void 0;var eD=GYt(d);const tD=eD.createContext(void 0),YYt=e=>{let{children:t,size:n}=e;const r=eD.useContext(tD);return eD.createElement(tD.Provider,{value:n||r},t)};Og.SizeContextProvider=YYt;Og.default=tD;var pxe=br.default;Object.defineProperty(y7,"__esModule",{value:!0});y7.default=void 0;var Zre=d,XYt=pxe(Pg),ZYt=pxe(Og);function QYt(){const e=(0,Zre.useContext)(XYt.default),t=(0,Zre.useContext)(ZYt.default);return{componentDisabled:e,componentSize:t}}y7.default=QYt;var MU={},b7={},hxe=br.default;Object.defineProperty(b7,"__esModule",{value:!0});b7.default=void 0;var Qre=hxe(Ng),JYt=hxe(Ys);function eXt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if((0,JYt.default)(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var u=0;u=0&&e<=255}function rXt(e,t){const{r:n,g:r,b:i,a}=new dC.FastColor(e).toRgb();if(a<1)return e;const{r:o,g:s,b:l}=new dC.FastColor(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-o*(1-c))/c),f=Math.round((r-s*(1-c))/c),p=Math.round((i-l*(1-c))/c);if(FP(u)&&FP(f)&&FP(p))return new dC.FastColor({r:u,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new dC.FastColor({r:n,g:r,b:i,a:1}).toRgbString()}C7.default=rXt;var gxe=br.default;Object.defineProperty(PU,"__esModule",{value:!0});PU.default=oXt;var LP=hx,iXt=gxe(Ed),fC=gxe(C7),aXt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{delete r[p]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const p="0s";i.motionDurationFast=p,i.motionDurationMid=p,i.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:(0,fC.default)(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:(0,fC.default)(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:(0,fC.default)(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:(0,fC.default)(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) @@ -1449,9 +1449,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,screenXS:a,screenXSMin:a,screenXSMax:o-1,screenSM:o,screenSMMin:o,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` - 0 1px 2px -2px ${new AP.FastColor("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new AP.FastColor("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new AP.FastColor("rgba(0, 0, 0, 0.09)").toRgbString()} + 0 1px 2px -2px ${new LP.FastColor("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new LP.FastColor("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new LP.FastColor("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), @@ -1468,7 +1468,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var x7=br.default;Object.defineProperty(cu,"__esModule",{value:!0});cu.default=pXt;cu.unitless=cu.ignore=cu.getComputedToken=void 0;var oXt=x7(d),sXt=Ih,lXt=x7(y7),Xre=dd,cXt=x7(Cd),mxe=x7($U),Zre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,a=Zre(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=(0,mxe.default)(o),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=Zre(c,["theme"]);let p=f;u&&(p=MU(Object.assign(Object.assign({},o),f),{override:f},u)),o[l]=p}),o};cu.getComputedToken=MU;function pXt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=oXt.default.useContext(Xre.DesignTokenContext),a=`${lXt.default}-${t||""}`,o=n||Xre.defaultTheme,[s,l,c]=(0,sXt.useCacheToken)(o,[cXt.default,e],{salt:a,override:r,getComputedToken:MU,formatToken:mxe.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:uXt,ignore:dXt,preserve:fXt}});return[o,c,t?l:"",s,i]}var oh={},ta={};Object.defineProperty(ta,"__esModule",{value:!0});ta.textEllipsis=ta.resetIcon=ta.resetComponent=ta.operationUnit=ta.genLinkStyle=ta.genIconStyle=ta.genFocusStyle=ta.genFocusOutline=ta.genCommonStyle=ta.clearFix=void 0;var hXt=Ih;ta.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const mXt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}};ta.resetComponent=mXt;const gxe=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});ta.resetIcon=gxe;const gXt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});ta.clearFix=gXt;const vXt=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}});ta.genLinkStyle=vXt;const yXt=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}};ta.genCommonStyle=yXt;const vxe=(e,t)=>({outline:`${(0,hXt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});ta.genFocusOutline=vxe;const yxe=(e,t)=>({"&:focus-visible":Object.assign({},vxe(e,t))});ta.genFocusStyle=yxe;const bXt=e=>({[`.${e}`]:Object.assign(Object.assign({},gxe()),{[`.${e} .${e}-icon`]:{display:"block"}})});ta.genIconStyle=bXt;const wXt=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},yxe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});ta.operationUnit=wXt;var xXt=Ta.default;Object.defineProperty(oh,"__esModule",{value:!0});oh.genSubStyleComponent=oh.genStyleHooks=oh.genComponentStyleHook=void 0;var Qre=d,SXt=pxe,DP=wl,FP=ta,Jre=xXt(cu);const{genStyleHooks:CXt,genComponentStyleHook:_Xt,genSubStyleComponent:kXt}=(0,SXt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,Qre.useContext)(DP.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,Jre.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,Qre.useContext)(DP.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,FP.genLinkStyle)(e)},(0,FP.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:DP.defaultIconPrefixCls)]},getCommonStyle:FP.genCommonStyle,getCompUnitless:()=>Jre.unitless});oh.genSubStyleComponent=kXt;oh.genComponentStyleHook=_Xt;oh.genStyleHooks=CXt;var TU={};Object.defineProperty(TU,"__esModule",{value:!0});TU.default=$Xt;var EXt=EU;function $Xt(e,t){return EXt.PresetColors.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}var S7={},MXt=br.default;Object.defineProperty(S7,"__esModule",{value:!0});S7.default=void 0;var TXt=Ih,PXt=ta,OXt=MXt(cu);const IXt=(e,t)=>{const[n,r]=(0,OXt.default)();return(0,TXt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,PXt.genIconStyle)(e)])};S7.default=IXt;(function(e){var t=br.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DesignTokenContext",{enumerable:!0,get:function(){return u.DesignTokenContext}}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return i.PresetColors}}),Object.defineProperty(e,"calc",{enumerable:!0,get:function(){return r.genCalc}}),Object.defineProperty(e,"defaultConfig",{enumerable:!0,get:function(){return u.defaultConfig}}),Object.defineProperty(e,"genComponentStyleHook",{enumerable:!0,get:function(){return s.genComponentStyleHook}}),Object.defineProperty(e,"genPresetColor",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"genStyleHooks",{enumerable:!0,get:function(){return s.genStyleHooks}}),Object.defineProperty(e,"genSubStyleComponent",{enumerable:!0,get:function(){return s.genSubStyleComponent}}),Object.defineProperty(e,"getLineHeight",{enumerable:!0,get:function(){return a.getLineHeight}}),Object.defineProperty(e,"mergeToken",{enumerable:!0,get:function(){return r.mergeToken}}),Object.defineProperty(e,"statistic",{enumerable:!0,get:function(){return r.statistic}}),Object.defineProperty(e,"statisticToken",{enumerable:!0,get:function(){return r.statisticToken}}),Object.defineProperty(e,"useResetIconStyle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useStyleRegister",{enumerable:!0,get:function(){return n.useStyleRegister}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return o.default}});var n=Ih,r=pxe,i=EU,a=px,o=t(cu),s=oh,l=t(TU),c=t(S7),u=dd})(cb);var C7={},RXt=Ta.default;Object.defineProperty(C7,"__esModule",{value:!0});C7.default=void 0;var jXt=RXt(d);const NXt=Object.assign({},jXt),{useId:eie}=NXt,AXt=()=>"",DXt=typeof eie>"u"?AXt:eie;C7.default=DXt;var PU=br.default;Object.defineProperty(kU,"__esModule",{value:!0});kU.default=HXt;var FXt=PU(o7),LXt=PU(g7),BXt=dc,tie=cb,zXt=PU(C7);function HXt(e,t,n){var r;(0,BXt.devUseWarning)("ConfigProvider");const i=e||{},a=i.inherit===!1||!t?Object.assign(Object.assign({},tie.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:tie.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=(0,zXt.default)();return(0,FXt.default)(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{c[p]=Object.assign(Object.assign({},c[p]),e.components[p])});const u=`css-var-${o.replace(/:/g,"")}`,f=((s=i.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),i),{token:Object.assign(Object.assign({},a.token),i.token),components:c,cssVar:f})},[i,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!(0,LXt.default)(c,f,!0)}))}var OU={};const UXt=B3(KNe);var WXt=Ta.default;Object.defineProperty(OU,"__esModule",{value:!0});OU.default=KXt;var nie=WXt(d),VXt=UXt,qXt=cb;function KXt(e){const{children:t}=e,[,n]=(0,qXt.useToken)(),{motion:r}=n,i=nie.useRef(!1);return i.current=i.current||r===!1,i.current?nie.createElement(VXt.Provider,{motion:r},t):t}var _7={},GXt=Ta.default;Object.defineProperty(_7,"__esModule",{value:!0});_7.default=void 0;GXt(d);_7.default=()=>null;var bxe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=cb})(bxe);(function(e){"use client";var t=br.default,n=Ta.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return g.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return g.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return g.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return g.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return g.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var r=n(d),i=Ih,a=t(Zy),o=t(o7),s=s7,l=n(dc),c=t(l7),u=n(axe),f=t(lb),p=t(Rg),h=dd,m=t(Cd),g=wl,v=h7,y=Tg,b=t(m7),w=t(kU),_=t(OU),k=t(_7),S=n(Pg),C=t(bxe),E=function(K,B){var U={};for(var Z in K)Object.prototype.hasOwnProperty.call(K,Z)&&B.indexOf(Z)<0&&(U[Z]=K[Z]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,Z=Object.getOwnPropertySymbols(K);eeB.endsWith("Color"))}const N=K=>{const{prefixCls:B,iconPrefixCls:U,theme:Z,holderRender:ee}=K;B!==void 0&&(M=B),U!==void 0&&(P=U),"holderRender"in K&&(O=ee),Z&&(j(Z)?(0,v.registerTheme)(A(),Z):I=Z)},D=()=>({getPrefixCls:(K,B)=>B||(K?`${A()}-${K}`:A()),getIconPrefixCls:R,getRootPrefixCls:()=>M||A(),getTheme:()=>I,holderRender:O});e.globalConfig=D;const V=K=>{const{children:B,csp:U,autoInsertSpaceInButton:Z,alert:ee,anchor:ie,form:Y,locale:X,componentSize:ae,direction:oe,space:le,splitter:ce,virtual:pe,dropdownMatchSelectWidth:me,popupMatchSelectWidth:re,popupOverflow:fe,legacyLocale:ve,parentContext:$e,iconPrefixCls:Ce,theme:be,componentDisabled:Se,segmented:we,statistic:se,spin:ye,calendar:Oe,carousel:z,cascader:H,collapse:G,typography:de,checkbox:xe,descriptions:he,divider:Ue,drawer:We,skeleton:ge,steps:ze,image:Ve,layout:Be,list:Xe,mentions:Ke,modal:qe,progress:Et,result:dt,slider:vt,breadcrumb:Ze,menu:nt,pagination:jt,input:Lt,textArea:Bt,empty:Ht,badge:Ne,radio:He,rate:Le,switch:Qe,transfer:ht,avatar:xt,message:Nt,tag:Ot,table:Pt,card:lt,tabs:Ct,timeline:kt,timePicker:qt,upload:yt,notification:At,tree:ft,colorPicker:De,datePicker:Ye,rangePicker:st,flex:Ie,wave:Rt,dropdown:rt,warning:$t,tour:Mt,tooltip:cn,popover:fn,popconfirm:T,floatButtonGroup:L,variant:J,inputNumber:ke,treeSelect:je}=K,it=r.useCallback((Je,ot)=>{const{prefixCls:Xt}=K;if(ot)return ot;const xn=Xt||$e.getPrefixCls("");return Je?`${xn}-${Je}`:xn},[$e.getPrefixCls,K.prefixCls]),Ft=Ce||$e.iconPrefixCls||g.defaultIconPrefixCls,an=U||$e.csp;(0,C.default)(Ft,an);const Tn=(0,w.default)(be,$e.theme,{prefixCls:it("")}),Er={csp:an,autoInsertSpaceInButton:Z,alert:ee,anchor:ie,locale:X||ve,direction:oe,space:le,splitter:ce,virtual:pe,popupMatchSelectWidth:re??me,popupOverflow:fe,getPrefixCls:it,iconPrefixCls:Ft,theme:Tn,segmented:we,statistic:se,spin:ye,calendar:Oe,carousel:z,cascader:H,collapse:G,typography:de,checkbox:xe,descriptions:he,divider:Ue,drawer:We,skeleton:ge,steps:ze,image:Ve,input:Lt,textArea:Bt,layout:Be,list:Xe,mentions:Ke,modal:qe,progress:Et,result:dt,slider:vt,breadcrumb:Ze,menu:nt,pagination:jt,empty:Ht,badge:Ne,radio:He,rate:Le,switch:Qe,transfer:ht,avatar:xt,message:Nt,tag:Ot,table:Pt,card:lt,tabs:Ct,timeline:kt,timePicker:qt,upload:yt,notification:At,tree:ft,colorPicker:De,datePicker:Ye,rangePicker:st,flex:Ie,wave:Rt,dropdown:rt,warning:$t,tour:Mt,tooltip:cn,popover:fn,popconfirm:T,floatButtonGroup:L,variant:J,inputNumber:ke,treeSelect:je},or=Object.assign({},$e);Object.keys(Er).forEach(Je=>{Er[Je]!==void 0&&(or[Je]=Er[Je])}),$.forEach(Je=>{const ot=K[Je];ot&&(or[Je]=ot)}),typeof Z<"u"&&(or.button=Object.assign({autoInsertSpace:Z},or.button));const ri=(0,o.default)(()=>or,or,(Je,ot)=>{const Xt=Object.keys(Je),xn=Object.keys(ot);return Xt.length!==xn.length||Xt.some(Rn=>Je[Rn]!==ot[Rn])}),hr=r.useMemo(()=>({prefixCls:Ft,csp:an}),[Ft,an]);let sn=r.createElement(r.Fragment,null,r.createElement(k.default,{dropdownMatchSelectWidth:me}),B);const bn=r.useMemo(()=>{var Je,ot,Xt,xn;return(0,s.merge)(((Je=p.default.Form)===null||Je===void 0?void 0:Je.defaultValidateMessages)||{},((Xt=(ot=ri.locale)===null||ot===void 0?void 0:ot.Form)===null||Xt===void 0?void 0:Xt.defaultValidateMessages)||{},((xn=ri.form)===null||xn===void 0?void 0:xn.validateMessages)||{},(Y==null?void 0:Y.validateMessages)||{})},[ri,Y==null?void 0:Y.validateMessages]);Object.keys(bn).length>0&&(sn=r.createElement(c.default.Provider,{value:bn},sn)),X&&(sn=r.createElement(u.default,{locale:X,_ANT_MARK__:u.ANT_MARK},sn)),(Ft||an)&&(sn=r.createElement(a.default.Provider,{value:hr},sn)),ae&&(sn=r.createElement(S.SizeContextProvider,{size:ae},sn)),sn=r.createElement(_.default,null,sn);const gr=r.useMemo(()=>{const Je=Tn||{},{algorithm:ot,token:Xt,components:xn,cssVar:Rn}=Je,An=E(Je,["algorithm","token","components","cssVar"]),kn=ot&&(!Array.isArray(ot)||ot.length>0)?(0,i.createTheme)(ot):h.defaultTheme,Or={};Object.entries(xn||{}).forEach(Yn=>{let[Dn,sr]=Yn;const _r=Object.assign({},sr);"algorithm"in _r&&(_r.algorithm===!0?_r.theme=kn:(Array.isArray(_r.algorithm)||typeof _r.algorithm=="function")&&(_r.theme=(0,i.createTheme)(_r.algorithm)),delete _r.algorithm),Or[Dn]=_r});const tr=Object.assign(Object.assign({},m.default),Xt);return Object.assign(Object.assign({},An),{theme:kn,token:tr,components:Or,override:Object.assign({override:tr},Or),cssVar:Rn})},[Tn]);return be&&(sn=r.createElement(h.DesignTokenContext.Provider,{value:gr},sn)),ri.warning&&(sn=r.createElement(l.WarningContext.Provider,{value:ri.warning},sn)),Se!==void 0&&(sn=r.createElement(y.DisabledContextProvider,{disabled:Se},sn)),r.createElement(g.ConfigContext.Provider,{value:ri},sn)},F=K=>{const B=r.useContext(g.ConfigContext),U=r.useContext(f.default);return r.createElement(V,Object.assign({parentContext:B,legacyLocale:U},K))};F.ConfigContext=g.ConfigContext,F.SizeContext=S.default,F.config=N,F.useConfig=b.default,Object.defineProperty(F,"SizeContext",{get:()=>S.default}),e.default=F})(gU);var mx={},YXt=Ta.default;Object.defineProperty(mx,"__esModule",{value:!0});mx.LayoutContext=void 0;var XXt=YXt(d);mx.LayoutContext=XXt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var IU={},RU={},jU={},ZXt=br.default;Object.defineProperty(jU,"__esModule",{value:!0});jU.default=nZt;var QXt=ZXt(jg),JXt=Symbol.for("react.element"),eZt=Symbol.for("react.transitional.element"),tZt=Symbol.for("react.fragment");function nZt(e){return e&&(0,QXt.default)(e)==="object"&&(e.$$typeof===JXt||e.$$typeof===eZt)&&e.type===tZt}var wxe=br.default;Object.defineProperty(RU,"__esModule",{value:!0});RU.default=JA;var rZt=wxe(jU),iZt=wxe(d);function JA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return iZt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(JA(r)):(0,rZt.default)(r)&&r.props?n=n.concat(JA(r.props.children,t)):n.push(r))}),n}var ey={},eD={exports:{}},k7={},NU={};Object.defineProperty(NU,"__esModule",{value:!0});var aZt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};NU.default=aZt;var oZt=Ta.default,AU=br.default;Object.defineProperty(k7,"__esModule",{value:!0});k7.default=void 0;var sZt=AU(E$),xxe=oZt(d),lZt=AU(NU),cZt=AU(Xy),uZt=function(t,n){return xxe.createElement(cZt.default,(0,sZt.default)({},t,{ref:n,icon:lZt.default}))},dZt=xxe.forwardRef(uZt);k7.default=dZt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(k7);function r(a){return a&&a.__esModule?a:{default:a}}const i=n;t.default=i,e.exports=i})(eD,eD.exports);var fZt=eD.exports,tD={exports:{}},E7={},DU={};Object.defineProperty(DU,"__esModule",{value:!0});var pZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};DU.default=pZt;var hZt=Ta.default,FU=br.default;Object.defineProperty(E7,"__esModule",{value:!0});E7.default=void 0;var mZt=FU(E$),Sxe=hZt(d),gZt=FU(DU),vZt=FU(Xy),yZt=function(t,n){return Sxe.createElement(vZt.default,(0,mZt.default)({},t,{ref:n,icon:gZt.default}))},bZt=Sxe.forwardRef(yZt);E7.default=bZt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(E7);function r(a){return a&&a.__esModule?a:{default:a}}const i=n;t.default=i,e.exports=i})(tD,tD.exports);var wZt=tD.exports,nD={exports:{}},$7={},LU={};Object.defineProperty(LU,"__esModule",{value:!0});var xZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};LU.default=xZt;var SZt=Ta.default,BU=br.default;Object.defineProperty($7,"__esModule",{value:!0});$7.default=void 0;var CZt=BU(E$),Cxe=SZt(d),_Zt=BU(LU),kZt=BU(Xy),EZt=function(t,n){return Cxe.createElement(kZt.default,(0,CZt.default)({},t,{ref:n,icon:_Zt.default}))},$Zt=Cxe.forwardRef(EZt);$7.default=$Zt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r($7);function r(a){return a&&a.__esModule?a:{default:a}}const i=n;t.default=i,e.exports=i})(nD,nD.exports);var MZt=nD.exports,M7={},xf={};Object.defineProperty(xf,"__esModule",{value:!0});xf.prepareComponentToken=xf.default=xf.DEPRECATED_TOKENS=void 0;var TZt=Ih,PZt=cb;const OZt=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:(0,TZt.unit)(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},_xe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${a}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}};xf.prepareComponentToken=_xe;const IZt=xf.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];xf.default=(0,PZt.genStyleHooks)("Layout",e=>[OZt(e)],_xe,{deprecatedTokens:IZt});Object.defineProperty(M7,"__esModule",{value:!0});M7.default=void 0;var s2=Ih,rie=xf,RZt=cb;const jZt=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:p,lightSiderBg:h,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:o,color:s,lineHeight:(0,s2.unit)(o),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,s2.unit)(p)} ${(0,s2.unit)(p)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,s2.unit)(p)} 0 0 ${(0,s2.unit)(p)}`}}},"&-light":{background:h,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};M7.default=(0,RZt.genStyleHooks)(["Layout","Sider"],e=>[jZt(e)],rie.prepareComponentToken,{deprecatedTokens:rie.DEPRECATED_TOKENS});var ub=br.default,NZt=Ta.default;Object.defineProperty(ey,"__esModule",{value:!0});ey.default=ey.SiderContext=void 0;var Yd=NZt(d),pl=Yd,AZt=ub(fZt),iie=ub(wZt),aie=ub(MZt),oie=ub(ME),DZt=ub(a7),FZt=gU,LZt=mx,BZt=ub(M7),zZt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i!Number.isNaN(Number.parseFloat(e))&&isFinite(e),UZt=ey.SiderContext=pl.createContext({}),WZt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),VZt=pl.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=zZt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,Yd.useContext)(LZt.LayoutContext),[w,_]=(0,Yd.useState)("collapsed"in e?e.collapsed:o),[k,S]=(0,Yd.useState)(!1);(0,Yd.useEffect)(()=>{"collapsed"in e&&_(e.collapsed)},[e.collapsed]);const C=(X,ae)=>{"collapsed"in e||_(X),g==null||g(X,ae)},{getPrefixCls:E,direction:$}=(0,Yd.useContext)(FZt.ConfigContext),M=E("layout-sider",n),[P,I,O]=(0,BZt.default)(M),A=(0,Yd.useRef)(null);A.current=X=>{S(X.matches),v==null||v(X.matches),w!==X.matches&&C(X.matches,"responsive")},(0,Yd.useEffect)(()=>{function X(oe){return A.current(oe)}let ae;if(typeof window<"u"){const{matchMedia:oe}=window;if(oe&&m&&m in sie){ae=oe(`screen and (max-width: ${sie[m]})`);try{ae.addEventListener("change",X)}catch{ae.addListener(X)}X(ae)}}return()=>{try{ae==null||ae.removeEventListener("change",X)}catch{ae==null||ae.removeListener(X)}}},[m]),(0,Yd.useEffect)(()=>{const X=WZt("ant-sider-");return b.addSider(X),()=>b.removeSider(X)},[]);const R=()=>{C(!w,"clickTrigger")},j=(0,DZt.default)(y,["collapsed"]),N=w?p:f,D=HZt(N)?`${N}px`:String(N),V=parseFloat(String(p||0))===0?pl.createElement("span",{onClick:R,className:(0,oie.default)(`${M}-zero-width-trigger`,`${M}-zero-width-trigger-${u?"right":"left"}`),style:h},i||pl.createElement(AZt.default,null)):null,F=$==="rtl"==!u,U={expanded:F?pl.createElement(aie.default,null):pl.createElement(iie.default,null),collapsed:F?pl.createElement(iie.default,null):pl.createElement(aie.default,null)}[w?"collapsed":"expanded"],Z=i!==null?V||pl.createElement("div",{className:`${M}-trigger`,onClick:R,style:{width:D}},i||U):null,ee=Object.assign(Object.assign({},l),{flex:`0 0 ${D}`,maxWidth:D,minWidth:D,width:D}),ie=(0,oie.default)(M,`${M}-${s}`,{[`${M}-collapsed`]:!!w,[`${M}-has-trigger`]:c&&i!==null&&!V,[`${M}-below`]:!!k,[`${M}-zero-width`]:parseFloat(D)===0},r,I,O),Y=pl.useMemo(()=>({siderCollapsed:w}),[w]);return P(pl.createElement(UZt.Provider,{value:Y},pl.createElement("aside",Object.assign({className:ie},j,{style:ee,ref:t}),pl.createElement("div",{className:`${M}-children`},a),c||k&&V?Z:null)))});ey.default=VZt;var kxe=br.default;Object.defineProperty(IU,"__esModule",{value:!0});IU.default=GZt;var qZt=kxe(RU),KZt=kxe(ey);function GZt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,qZt.default)(t).some(i=>i.type===KZt.default)}var T7,P7,YZt=Ta.default,gx=br.default;Object.defineProperty(hf,"__esModule",{value:!0});hf.default=hf.Header=P7=hf.Footer=T7=hf.Content=void 0;var XZt=gx(J4e),ec=YZt(d),Exe=gx(ME),ZZt=gx(a7),rD=gU,QZt=mx,JZt=gx(IU),$xe=gx(xf),Mxe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iec.forwardRef((o,s)=>ec.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},o)))}const zU=ec.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,o=Mxe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=ec.useContext(rD.ConfigContext),l=s("layout",n),[c,u,f]=(0,$xe.default)(l),p=r?`${l}-${r}`:l;return c(ec.createElement(a,Object.assign({className:(0,Exe.default)(n||p,i,u,f),ref:t},o)))}),eQt=ec.forwardRef((e,t)=>{const{direction:n}=ec.useContext(rD.ConfigContext),[r,i]=ec.useState([]),{prefixCls:a,className:o,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,p=Mxe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=(0,ZZt.default)(p,["suffixCls"]),{getPrefixCls:m,layout:g}=ec.useContext(rD.ConfigContext),v=m("layout",a),y=(0,JZt.default)(r,l,c),[b,w,_]=(0,$xe.default)(v),k=(0,Exe.default)(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,o,s,w,_),S=ec.useMemo(()=>({siderHook:{addSider:C=>{i(E=>[].concat((0,XZt.default)(E),[C]))},removeSider:C=>{i(E=>E.filter($=>$!==C))}}}),[]);return b(ec.createElement(QZt.LayoutContext.Provider,{value:S},ec.createElement(u,Object.assign({ref:t,className:k,style:Object.assign(Object.assign({},g==null?void 0:g.style),f)},h),l)))}),tQt=O7({tagName:"div",displayName:"Layout"})(eQt);hf.Header=O7({suffixCls:"header",tagName:"header",displayName:"Header"})(zU);P7=hf.Footer=O7({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(zU);T7=hf.Content=O7({suffixCls:"content",tagName:"main",displayName:"Content"})(zU);hf.default=tQt;const nQt=()=>{const e=[];return x.jsx("div",{children:e.length>0?x.jsx(Gn,{itemLayout:"horizontal",dataSource:e,renderItem:(t,n)=>x.jsx(Gn.Item,{children:x.jsx(Gn.Item.Meta,{avatar:x.jsx(Oi,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${n}`}),title:x.jsx("a",{children:t.title}),description:"Ant Design"})})}):x.jsx(x.Fragment,{children:x.jsx(Ca,{})})})},HU=So()(Ss(Cs(_s((e,t)=>({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}},addNewfriend(n){console.log("addNewfriend",n)},addDevice(n){var r;if(n.type===mse){const i=t().devices.some(a=>a.device.uid===n.device.uid);e(i?{devices:[n,...t().devices.filter(a=>a.device.uid!==n.device.uid)]}:{devices:[n,...t().devices]}),((r=t().currentContact.device)==null?void 0:r.uid)===n.device.uid&&e({currentContact:n})}},addGroup(n){console.log("addGroup",n)},addChannel(n){console.log("addChannel",n)},addMember(n){if(n.type===I6e){const r=t().members.some(i=>i.member.uid===n.member.uid);e(r?{members:[n,...t().members.filter(i=>i.member.uid!==n.member.uid)]}:{members:[...t().members,n]})}},addFriend(n){console.log("addFriend",n)},setCurrentContact:n=>{e({currentContact:n})},setMemberSelf:n=>{e({memberSelf:n})},resetContactInfo(){e({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}}})}})),{name:S6e}))),rQt=e=>{const t=n=>{var r,i,a,o,s,l,c;return((r=n==null?void 0:n.user)==null?void 0:r.avatar)===null||((i=n==null?void 0:n.user)==null?void 0:i.avatar)===void 0||((a=n==null?void 0:n.user)==null?void 0:a.avatar)===""?x.jsx("img",{src:Rk((o=n==null?void 0:n.user)==null?void 0:o.uid),alt:"Avatar"}):((s=n==null?void 0:n.user)==null?void 0:s.avatar.indexOf("local"))>-1?x.jsx("img",{src:Rk((l=n==null?void 0:n.user)==null?void 0:l.uid),alt:"Avatar"}):x.jsx(Oi,{shape:"square",size:"large",src:(c=n==null?void 0:n.user)==null?void 0:c.avatar})};return x.jsx("div",{children:t(e)})},UU=()=>{const{devices:e,currentContact:t,setCurrentContact:n}=HU(a=>({devices:a.devices,currentContact:a.currentContact,setCurrentContact:a.setCurrentContact})),r=(a,o)=>{console.log("handleContactClick",a,o),n(a)},i=(a,o)=>{console.log("handleContactDoubleClick",a,o)};return x.jsx("div",{children:e.length>0?x.jsx(Gn,{itemLayout:"horizontal",dataSource:e,renderItem:(a,o)=>{var s,l,c;return x.jsx(Gn.Item,{onClick:()=>r(a,o),onDoubleClick:()=>i(a,o),children:x.jsx(Gn.Item.Meta,{style:((s=t==null?void 0:t.device)==null?void 0:s.uid)===((l=a==null?void 0:a.device)==null?void 0:l.uid)?{backgroundColor:"#f0f2f5"}:{},avatar:rQt(a),title:(c=a==null?void 0:a.user)==null?void 0:c.nickname,description:a==null?void 0:a.createdAt})})}}):x.jsx(x.Fragment,{children:x.jsx(Ca,{})})})},iQt=()=>{const e=[];return x.jsx("div",{children:e.length>0?x.jsx(Gn,{itemLayout:"horizontal",dataSource:e,renderItem:(t,n)=>x.jsx(Gn.Item,{children:x.jsx(Gn.Item.Meta,{avatar:x.jsx(Oi,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${n}`}),title:x.jsx("a",{children:t.title}),description:"Ant Design"})})}):x.jsx(x.Fragment,{children:x.jsx(Ca,{})})})},aQt=()=>{const e=[];return x.jsx("div",{children:e.length>0?x.jsx(Gn,{itemLayout:"horizontal",dataSource:e,renderItem:(t,n)=>x.jsx(Gn.Item,{children:x.jsx(Gn.Item.Meta,{avatar:x.jsx(Oi,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${n}`}),title:x.jsx("a",{children:t.title}),description:"Ant Design"})})}):x.jsx(x.Fragment,{children:x.jsx(Ca,{})})})},oQt=()=>{console.log("MemberList");const{userInfo:e}=e1(),{translateString:t}=Gr(),{isDarkMode:n}=d.useContext(Ma),{currentMember:r,memberResult:i,setCurrentMember:a,setMemberSelf:o,setMemberResult:s}=R3(f=>({currentMember:f.currentMember,memberResult:f.memberResult,setCurrentMember:f.setCurrentMember,setMemberSelf:f.setMemberSelf,setMemberResult:f.setMemberResult})),l=d.useMemo(()=>{const f=i==null?void 0:i.data.content;return f?(console.log("membersWithoutSelf",f,e==null?void 0:e.uid),f.filter(p=>{var h;return((h=p==null?void 0:p.user)==null?void 0:h.uid)!=(e==null?void 0:e.uid)})):[]},[i,e]),c=async()=>{var m,g;if(console.log("getAllMembers"),(e==null?void 0:e.currentOrganization)==null||(e==null?void 0:e.currentOrganization)===void 0){console.log("userInfo.organizations is empty");return}const p={pageNumber:0,pageSize:50,orgUid:(m=e==null?void 0:e.currentOrganization)==null?void 0:m.uid},h=await U3e(p);if(console.log("queryMembersByOrg:",p,h.data),h.data.code===200){for(let v=0;v{c()},[]);const u=f=>{console.log("handleMemberClick",f),a(f)};return x.jsx("div",{children:x.jsx(Gn,{itemLayout:"horizontal",dataSource:l,renderItem:f=>x.jsx(Gn.Item,{style:(r==null?void 0:r.uid)===(f==null?void 0:f.uid)?{backgroundColor:n?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>u(f),children:x.jsx(Gn.Item.Meta,{avatar:x.jsx(Oi,{src:f==null?void 0:f.avatar}),title:x.jsx("a",{children:f==null?void 0:f.nickname}),description:t(f==null?void 0:f.description)})})})})},sQt=()=>{const e=[];return x.jsx("div",{children:e.length>0?x.jsx(Gn,{itemLayout:"horizontal",dataSource:e,renderItem:(t,n)=>x.jsx(Gn.Item,{children:x.jsx(Gn.Item.Meta,{avatar:x.jsx(Oi,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${n}`}),title:x.jsx("a",{children:t.title}),description:"Ant Design"})})}):x.jsx(x.Fragment,{children:x.jsx(Ca,{})})})},lQt=()=>{const e=Pn(),t=[{key:"new",label:e.formatMessage({id:"contact.list.new",defaultMessage:"New Friends"}),children:x.jsx(nQt,{})},{key:"device",label:e.formatMessage({id:"contact.list.device",defaultMessage:"LAN Devices"}),children:x.jsx(UU,{})},{key:"group",label:e.formatMessage({id:"contact.list.group",defaultMessage:"Groups"}),children:x.jsx(iQt,{})},{key:"channel",label:e.formatMessage({id:"contact.list.channel",defaultMessage:"Channels"}),children:x.jsx(aQt,{})},{key:"company",label:e.formatMessage({id:"contact.list.company",defaultMessage:"Company Contacts"}),children:x.jsx(oQt,{})},{key:"friend",label:e.formatMessage({id:"contact.list.friend",defaultMessage:"Contacts"}),children:x.jsx(sQt,{})}],n=()=>{console.log("handleContactManager"),Re.warning(e.formatMessage({id:"contact.manager.coming",defaultMessage:"Coming soon..."}))};return x.jsxs("div",{style:{padding:10},children:[x.jsx(Wr.Search,{style:{paddingBottom:10},placeholder:e.formatMessage({id:"contact.search.placeholder",defaultMessage:"Search contacts..."})}),Xo&&x.jsx(Yt,{icon:x.jsx(Xnt,{}),block:!0,onClick:n,children:e.formatMessage({id:"contact.manager.button",defaultMessage:"Contact Manager"})}),x.jsx(s8,{items:t,bordered:!1,defaultActiveKey:["1"]})]})},cQt=()=>{var u,f;const e=Pn(),t=$o(),{currentMember:n,memberSelf:r}=R3(p=>({currentMember:p.currentMember,memberSelf:p.memberSelf})),i=fr(p=>p.addThread),a=fr(p=>p.setCurrentThread),o=$F(p=>p.setCurrentMenu),s=aa(p=>p.userInfo),l=[{key:"1",label:e.formatMessage({id:"member.detail.nickname",defaultMessage:"Nickname"}),children:n==null?void 0:n.nickname},{key:"2",label:"Email",children:n==null?void 0:n.email},{key:"3",label:e.formatMessage({id:"member.detail.jobno",defaultMessage:"Job No."}),children:n==null?void 0:n.jobNo},{key:"4",label:e.formatMessage({id:"member.detail.seatno",defaultMessage:"Seat No."}),children:n==null?void 0:n.seatNo},{key:"5",label:e.formatMessage({id:"member.detail.telephone",defaultMessage:"Telephone"}),children:n==null?void 0:n.telephone}],c=async()=>{var m;console.log("createMemberThread"),Re.loading(e.formatMessage({id:"member.detail.loading",defaultMessage:"Loading..."}));const p={user:{uid:(m=n==null?void 0:n.user)==null?void 0:m.uid,nickname:n==null?void 0:n.nickname,avatar:n==null?void 0:n.avatar},topic:_se+(r==null?void 0:r.uid)+"/"+(n==null?void 0:n.uid),content:"",type:vse,extra:"",client:Sn};console.log("thread request:",p);const h=await T3e(p);console.log("response:",h.data),h.data.code===200?(Re.destroy(),i(h.data.data),a(h.data.data),o("chat"),t("/chat")):(Re.destroy(),Re.error(h.data.message))};return x.jsxs("div",{style:{textAlign:"center",overflowY:"auto",marginBottom:100},children:[x.jsx(Oi,{size:50,src:n==null?void 0:n.avatar}),x.jsx(Ja,{style:{width:"50%",margin:"20px auto auto",overflowY:"auto"},bordered:!0,column:1,items:l}),((u=n==null?void 0:n.user)==null?void 0:u.uid)!==(s==null?void 0:s.uid)&&x.jsx(Yt,{style:{marginTop:"20px"},onClick:c,disabled:((f=n==null?void 0:n.user)==null?void 0:f.uid)==="",children:e.formatMessage({id:"member.detail.chat.button",defaultMessage:"Start Chat"})})]})},uQt=()=>x.jsx("div",{style:{overflowY:"auto",marginTop:60},children:x.jsx(cQt,{})}),{Sider:dQt,Header:fQt,Content:pQt}=Qn,Txe=()=>{const e=Pn(),{headerStyle:t,leftSiderStyle:n,leftSiderWidth:r,contentStyle:i}=co();return x.jsxs(Qn,{children:[x.jsx(dQt,{style:n,width:r,children:x.jsx(lQt,{})}),x.jsxs(Qn,{children:[x.jsx(fQt,{style:t,children:e.formatMessage({id:"menu.dashboard.contact"})}),x.jsx(pQt,{style:i,children:x.jsx(uQt,{})})]})]})},{Header:hQt,Sider:mQt,Content:gQt}=Qn,Pxe=()=>{const e=Pn(),{isLoggedIn:t,hasRoleAgent:n}=d.useContext(Ma),r=$o(),{headerStyle:i,leftSiderStyle:a,leftSiderWidth:o,contentStyle:s}=co(),l=Nr(p=>p.currentOrg),[c,u]=d.useState([]);d.useEffect(()=>{const p=[{label:e.formatMessage({id:"setting.menu.title",defaultMessage:"设置"}),key:"setting",children:[{label:e.formatMessage({id:"setting.menu.profile",defaultMessage:"个人信息"}),key:"profile"},{label:e.formatMessage({id:"setting.menu.basic",defaultMessage:"基本设置"}),key:"basic"}]}];u(p)},[e]),d.useEffect(()=>{var g,v,y,b;if(!t||(l==null?void 0:l.uid)===""||!n)return;const p=[...c];if(p.length===0)return;const h={label:e.formatMessage({id:"setting.menu.agent",defaultMessage:"客服设置"}),key:"agentProfile"};((v=(g=p[0])==null?void 0:g.children)==null?void 0:v.some(w=>w.key===h.key))||((b=(y=p[0])==null?void 0:y.children)==null||b.splice(1,0,h),u(p))},[l,c,e,t,n]),d.useEffect(()=>{if(!Xo)return;const p=[...c];if(p.length===0)return;p.some(m=>m.key==="model")||(p.push({label:e.formatMessage({id:"setting.menu.model",defaultMessage:"大模型"}),key:"model"}),u(p))},[c,e]);const f=p=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),p),r("/setting/"+p.key)};return x.jsxs(Qn,{children:[x.jsx(mQt,{style:a,width:o,children:x.jsx(ks,{mode:"inline",onClick:f,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:c})}),x.jsxs(Qn,{children:[x.jsx(hQt,{style:i,children:e.formatMessage({id:"menu.dashboard.mine"})}),x.jsx(gQt,{style:s,children:x.jsx(F4,{})})]})]})},vQt=()=>{const e=Nr(u=>u.deleteOrg),t=fr(u=>u.resetThreads),n=Ed(u=>u.resetMessageList),r=R3(u=>u.resetMembers),i=J3(u=>u.removeAccessToken),a=aa(u=>u.resetUserInfo),o=HU(u=>u.resetContactInfo),s=Si(u=>u.resetAgentInfo),l=lU(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),i(),a(),o(),s(),l()}}};function WU(){const e=J3(b=>b.accessToken),t=aa(b=>b.userInfo),n=Si(b=>b.agentInfo),r=e7(),[i,a]=d.useState(!1),{showNotification:o}=mU(),{translateString:s}=Gr(),l=fr(b=>b.threads),[c,u]=d.useState(l),f=d.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!Pct()&&r&&e&&g()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",r," accessToken:",e)},[r,e]),p=async()=>{},h=d.useRef(n==null?void 0:n.uid),m=d.useCallback(()=>{if(!i&&e)return setInterval(async()=>{h.current?p():console.log("useMqtt autoPingMessage currentUidRef.current:",h.current)},1e4)},[i,e,t,n]),g=()=>{wct({uid:t.uid,username:t.username,accessToken:e})},v=()=>{yT()},y=b=>{var w,_;(b==null?void 0:b.type)!==p0&&((w=b==null?void 0:b.user)==null?void 0:w.uid)!==(t==null?void 0:t.uid)&&((_=b==null?void 0:b.user)==null?void 0:_.uid)!==(n==null?void 0:n.uid)&&(YOe(),console.log("playAudio"))};return d.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?g():yT()},[r]),d.useEffect(()=>{if(n!=null&&n.uid){h.current=n==null?void 0:n.uid;const b=m();return()=>{clearInterval(b)}}else h.current=null},[n]),d.useEffect(()=>{console.log("useMqtt useEffect accessToken"),g();const b=f();return()=>{yT(),clearInterval(b)}},[e,t]),d.useEffect(()=>{u(l)},[l]),d.useEffect(()=>{const b=function(w){if(console.log("useMqtt handleNewMessage",w),w.type===Mf||w.type===W5||w.type===f0||w.type===p0||w.type===h0)return;const _=w.topic,k=c.find(S=>S.topic===_);k?k.mute?console.log("useMqtt matchingThread muted",_):(console.log("useMqtt matchingThread no mute",_),o(s(Yx),s(Yx)),y(w)):(console.log("useMqtt matchingThread no"),o(s(Yx),s(Yx)),y(w))};return En.on(Rw,b),()=>{En.off(Rw)}},[c]),d.useEffect(()=>{console.log("useMqtt useEffect");const b=function(){console.log("handleMqttConnected"),a(!0)},w=function(){console.log("handleMqttDisconnected"),a(!1)};return En.on(WO,b),En.on(qO,w),En.on(KO,w),En.on(VO,w),En.on(GO,w),En.on(YO,w),()=>{console.log("un - useEffect mqttDisconnect"),En.off(WO),En.off(qO),En.off(KO),En.off(VO),En.off(GO),En.off(YO)}},[]),{doConnect:g,doDisconnect:v,isMqttConnected:i}}function Oxe(){const{clearStorage:e}=vQt(),{doDisconnect:t}=WU(),{setPingLoading:n}=d.useContext(Ma),r=d.useCallback(async()=>{try{const i=await pNt();console.log("logout result:",i.data),n(!1),t(),e(),Xct()}catch(i){console.log("logout error:",i)}},[]);return d.useEffect(()=>{const i=function(a){console.log("token过期,强制刷新登录",a),En.off(Jp,i),r()};return En.on(Jp,i),()=>{console.log("un - useEffect mqttDisconnect"),En.off(Jp)}},[]),{doLogout:r}}const Ixe=()=>{const e=Pn(),{isLoggedIn:t,mode:n}=d.useContext(Ma),{doLogout:r}=Oxe(),[i,a]=d.useState("✅"),[o,s]=d.useState(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"})),l=e7();d.useEffect(()=>{l?(a("✅"),s(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"}))):(a("❌"),s(e.formatMessage({id:"footbar.network.disconnected",defaultMessage:"网络断开"})))},[l,e]);const c=x.jsx("div",{children:x.jsx("p",{children:e.formatMessage({id:"footbar.anonymous.tip",defaultMessage:"匿名状态,仅支持同一个局域网内在线设备之间通信"})})}),u=x.jsx("div",{children:x.jsx("p",{children:e.formatMessage({id:"footbar.login.tip",defaultMessage:"登录后,支持离线消息和更多功能"})})}),[f,p]=d.useState(!1),h=()=>{p(!0)},m=()=>{p(!1)},g=()=>{console.log("handleShowLoginModel"),h()},v=b=>{console.log(b),r()},y=b=>{console.log(b)};return x.jsxs(x.Fragment,{children:[x.jsx(yr,{open:f&&!t,onOk:m,onCancel:m,footer:[x.jsx(Yt,{onClick:m,children:e.formatMessage({id:"footbar.login.skip",defaultMessage:"暂不登录"})},"back")],children:x.jsx(lA,{isModel:!0})}),x.jsxs("span",{children:[!t&&x.jsxs(x.Fragment,{children:[x.jsx(yc,{content:c,title:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"}),children:x.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"})})}),x.jsx(yc,{content:u,children:x.jsx("span",{className:"footerLeftButton",onClick:g,children:e.formatMessage({id:"footbar.login",defaultMessage:"登录"})})})]}),t&&x.jsx(x.Fragment,{children:x.jsx(Q1e,{title:e.formatMessage({id:"footbar.logout.title",defaultMessage:"退出登录"}),description:e.formatMessage({id:"footbar.logout.confirm",defaultMessage:"确定要退出登录?"}),onConfirm:v,onCancel:y,okText:e.formatMessage({id:"common.confirm",defaultMessage:"确定"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"}),children:x.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.logout",defaultMessage:"退出登录"})})})}),n===Iw&&Xo&&x.jsx("span",{style:{marginLeft:10},children:x.jsx(Ea,{title:e.formatMessage({id:"footbar.serving.count",defaultMessage:"当前接待人数"}),children:x.jsx("span",{children:e.formatMessage({id:"footbar.serving.text",defaultMessage:"当前接待人数:0"})})})})]}),x.jsxs("span",{className:"footerRightButton",children:[x.jsx(Ea,{title:o,children:x.jsx("span",{children:i})}),x.jsxs("span",{style:{marginLeft:"10px"},children:["v",GOe()]})]})]})},Rxe=()=>{const e=$o(),{userInfo:t}=e1(),{translateString:n}=Gr(),{mode:r}=d.useContext(Ma),[i,a]=d.useState(""),[o,s]=d.useState(""),[l,c]=d.useState(""),u=()=>{e("/setting")};return d.useEffect(()=>{a(n(t==null?void 0:t.nickname)),s(n(t==null?void 0:t.description)),c(t==null?void 0:t.avatar)},[r,t]),x.jsx(x.Fragment,{children:x.jsx(yc,{title:i,content:o,placement:"rightBottom",children:x.jsx(x.Fragment,{children:x.jsx(Oi,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function jxe(){const e=$o(),t=aa(r=>r.userInfo),n=HU(r=>r.addDevice);d.useEffect(()=>(ma?(window.electronAPI.loginSuccess(),window.electronAPI.onNewWindowCreated(r=>{console.log("Dashboard onNewWindowCreated content:",r),e("/enlarge",{state:{content:r}})}),window.electronAPI.onMulticastMessage(r=>{const i=JSON.parse(r);if(i.user.uid!==t.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",r);const a={type:mse,device:i.device,user:i.user,createdAt:i.createdAt};n(a)}}),window.electronAPI.onWebSocketMessage(r=>{console.log("Dashboard onWebSocketMessage content:",r)}),window.electronAPI.onHttpMessage(r=>{console.log("Dashboard onHttpMessage content:",r)}),window.electronAPI.onNotificationMessage(r=>{if(console.log("Dashboard onNotificationMessage content:",r),r.type===f6e){Re.success("截图成功");const i=r.data;En.emit(XO,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),ma?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const yQt=()=>{const e=Pn(),{doLogout:t}=Oxe(),{isLoggedIn:n,locale:r,changeLocale:i,mode:a,changeMode:o,handleUpdateAgentStatus:s}=d.useContext(Ma),{agentInfo:l}=Si(h=>({agentInfo:h.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:x.jsx(yve,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[u,f]=d.useState(c);d.useEffect(()=>{if(f(c),l.uid!==""&&a===Iw){console.log("agentInfo changed",l);const h=[...c],m={key:"status",label:e.formatMessage({id:"menu.agent.status",defaultMessage:"Agent Status"}),type:"group",children:[{key:m0,icon:l.status===m0?x.jsx(sd,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:gk,icon:l.status===gk?x.jsx(sd,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:Dm,icon:l.status===Dm?x.jsx(sd,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},g=h[0].children,v=g.findIndex(y=>y.key===m.key);v!==-1?g[v]=m:g.splice(0,0,m),h[0].children=g,f(h)}},[l,r,a]);const p=async h=>{console.log("click",h.key),h.key==="logout"?t():h.key==="zh-cn"||h.key==="zh-tw"||h.key==="en"?i(h.key):h.key===_C||h.key===Iw||h.key===ase?(console.log("mode",h.key),o(h.key)):(console.log("status"),h.key===Dm&&l3.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(h.key))};return x.jsx(x.Fragment,{children:n?x.jsx(x.Fragment,{children:x.jsx(ks,{inlineCollapsed:!0,onClick:p,style:{width:64,height:34},mode:"inline",items:u})}):x.jsx(x.Fragment,{})})},bQt=({open:e,notice:t,onAccept:n,onReject:r})=>{var h;const{translateString:i}=Gr(),[a,o]=d.useState(null),[s,l]=d.useState(null),c=fr(m=>m.addThread),u=Ed(m=>m.updateMessageStatus);d.useEffect(()=>{var m,g,v,y,b;if(t){const w=JSON.parse(t.extra);o(w);const _={uid:(m=w==null?void 0:w.thread)==null?void 0:m.uid,topic:(g=w==null?void 0:w.thread)==null?void 0:g.topic,type:(v=w==null?void 0:w.thread)==null?void 0:v.type,state:(y=w==null?void 0:w.thread)==null?void 0:y.state,user:(b=w==null?void 0:w.thread)==null?void 0:b.user};l(_)}},[t]);const f=async()=>{[a.sender,a.receiver]=[a.receiver,a.sender],a.status=u0;const m=await f4e(a);if(console.log("acceptThread response:",m),m.data.code===200){const g=m.data.data;console.log("acceptedThread:",g),Re.success("同意转接会话成功"),Vve(JSON.stringify(a),g),c(g),u(a.messageUid,u0),n()}else Re.error(i(m.data.message))},p=async()=>{[a.sender,a.receiver]=[a.receiver,a.sender],a.status=d0;const m=await p4e(a);console.log("transferThreadReject response:",m),m.data.code===200?(Re.success("拒绝转接会话成功"),qve(JSON.stringify(a),s),u(a.messageUid,d0),r()):Re.error(i(m.data.message))};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:`${(h=a==null?void 0:a.sender)==null?void 0:h.nickname}请求转接会话`,open:e,okText:"同意",onOk:f,cancelText:"拒绝",onCancel:p,children:x.jsx(Gn,{itemLayout:"horizontal",dataSource:[{}],renderItem:()=>{var m,g;return x.jsx(Gn.Item,{style:{cursor:"pointer"},children:x.jsx(Gn.Item.Meta,{avatar:x.jsx(Oi,{src:(m=s==null?void 0:s.user)==null?void 0:m.avatar}),title:(g=s==null?void 0:s.user)==null?void 0:g.nickname,description:a==null?void 0:a.note})})}})})})},Nxe=()=>{const[e,t]=d.useState([]),n=new Uve;d.useEffect(()=>{(async()=>{try{const s=await n.getAllMessages();t(s)}catch(s){console.error("Error fetching messages from IndexedDB:",s)}})()},[]);const r=async o=>{try{await n.createMessage(o);const s=await n.getAllMessages();console.log("useIndexedDB createMessage newMessages: ",s),t(s)}catch(s){console.error("Error creating message in IndexedDB:",s)}},i=async(o,s)=>{try{await n.updateMessage(o,s);const l=await n.getAllMessages();t(l)}catch(l){console.error("Error updating message in IndexedDB:",l)}},a=async o=>{try{await n.deleteMessage(o);const s=await n.getAllMessages();t(s)}catch(s){console.error("Error deleting message in IndexedDB:",s)}};return d.useEffect(()=>{console.log("useIndexedDB useEffect");const o=function(s){console.log("useIndexedDB handleNewMessage",s),r(s)};return En.on(Rw,o),()=>{console.log("useIndexedDB useEffect return"),En.off(Rw,o)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:a}},{Search:wQt}=Wr,{Paragraph:lie}=Zf,xQt=({onSelect:e,onCreateTicket:t})=>{const n=Pn(),{isDarkMode:r,hasRoleAgent:i}=mz(),a=Nr(y=>y.currentOrg),{tickets:o,loading:s,error:l,filters:c,setFilter:u,currentTicket:f,setSearchText:p}=Aa();d.useEffect(()=>{a!=null&&a.uid&&eo.loadTickets(a.uid)},[a==null?void 0:a.uid,c]);const h=y=>{p(y),eo.loadTicketsWithFilters({searchText:y})},m=y=>{let b="";switch(y){case"status":b=g0;break;case"priority":b=v0;break;case"assignment":b=y0;break;case"time":b=b0;break}u(y,b),eo.loadTicketsWithFilters({[y]:b})},g=y=>r?y?"#1f1f1f":"#141414":y?"#e6f7ff":"#ffffff",v=()=>{const y=[];return c!=null&&c.status&&c.status!==g0&&y.push(x.jsx(Di,{color:Ww(c.status),closable:!0,onClose:()=>m("status"),children:n.formatMessage({id:`ticket.filter.status_${c.status.toLowerCase()}`})},"status")),c!=null&&c.priority&&c.priority!==v0&&y.push(x.jsx(Di,{color:Dk(c.priority),closable:!0,onClose:()=>m("priority"),children:n.formatMessage({id:`ticket.filter.priority_${c.priority.toLowerCase()}`})},"priority")),c!=null&&c.assignment&&c.assignment!==y0&&y.push(x.jsx(Di,{color:"blue",closable:!0,onClose:()=>m("assignment"),children:n.formatMessage({id:`ticket.filter.assignment_${c.assignment.toLowerCase()}`})},"assignment")),c!=null&&c.time&&c.time!==b0&&y.push(x.jsx(Di,{color:"purple",closable:!0,onClose:()=>m("time"),children:n.formatMessage({id:`ticket.filter.time_${c.time.toLowerCase()}`})},"time")),y};return x.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[x.jsxs("div",{style:{padding:"10px 16px 16px",backgroundColor:r?"#141414":"#ffffff",borderBottom:"1px solid #f0f0f0"},children:[x.jsx(Yt,{type:"primary",block:!0,icon:x.jsx(jy,{}),onClick:t,style:{marginBottom:16,width:"100%"},disabled:!i,children:n.formatMessage({id:"ticket.list.create"})}),x.jsx(wQt,{placeholder:n.formatMessage({id:"ticket.list.search.placeholder"}),onSearch:h,style:{width:"100%"},allowClear:!0,enterButton:x.jsx(vve,{})}),x.jsx("div",{style:{marginTop:10},children:x.jsxs(Zr,{direction:"vertical",style:{width:"100%"},children:[v(),x.jsx("div",{children:x.jsxs(Di,{color:"blue",children:[n.formatMessage({id:"ticket.list.total"}),": ",o.length]})})]})})]}),x.jsx("div",{style:{flex:1,overflow:"auto",position:"relative"},children:s?x.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:x.jsx(Qo,{tip:n.formatMessage({id:"ticket.loading"}),size:"large",spinning:!0,children:x.jsx("div",{style:{padding:"50px"}})})}):l?x.jsx(QE,{type:"error",message:n.formatMessage({id:"ticket.load.error"}),description:l}):x.jsx(Gn,{dataSource:o,renderItem:y=>x.jsx(Gn.Item,{onClick:()=>e(y),style:{cursor:"pointer",padding:"8px 16px",backgroundColor:g((f==null?void 0:f.uid)===y.uid),transition:"background-color 0.3s"},children:x.jsx(Gn.Item.Meta,{title:x.jsxs(x.Fragment,{children:[x.jsx("span",{style:{marginRight:10,color:r?"#ffffff":void 0},children:y.title}),x.jsx(Di,{color:Ww(y.status),children:n.formatMessage({id:`ticket.filter.status_${y.status.toLowerCase()}`})}),x.jsx(Di,{color:Dk(y.priority),children:n.formatMessage({id:`ticket.filter.priority_${y.priority.toLowerCase()}`})})]}),description:x.jsxs(x.Fragment,{children:[x.jsx(lie,{ellipsis:{rows:1},style:{margin:0},children:y.description}),x.jsx(lie,{ellipsis:{rows:1},style:{margin:0},children:new Date(y.updatedAt).toLocaleString()})]})})}),locale:{emptyText:n.formatMessage({id:"ticket.list.empty"})}})})]})},SQt=({ticket:e,onEdit:t,onDelete:n})=>{const r=Pn();return x.jsx(wh,{centered:!0,defaultActiveKey:"details",items:[{key:"details",label:r.formatMessage({id:"ticket.details.title"}),children:x.jsx("div",{style:{flex:1,overflow:"auto"},children:x.jsx(R3e,{ticket:e,isThreadTicket:!1,onEdit:t,onDelete:n})})},{key:"steps",label:r.formatMessage({id:"ticket.steps.title"}),children:x.jsx("div",{style:{flex:1,overflow:"auto"},children:x.jsx(j3e,{ticket:e,isThreadTicket:!1})})}]})},{Sider:CQt,Content:_Qt,Header:kQt}=Qn,Axe=()=>{const{leftSiderStyle:e,headerStyle:t}=co(),n=Pn(),{currentTicket:r,setCurrentTicket:i,filters:a,setFilter:o,refreshTickets:s}=Aa(),[l,c]=d.useState(!1),[u,f]=d.useState(!1),p=[{key:"status",label:n.formatMessage({id:"ticket.filter.by.status"}),children:[{key:g0,label:n.formatMessage({id:"ticket.filter.status_all"})},{key:lg,label:n.formatMessage({id:"ticket.filter.status_new"})},{key:q3,label:n.formatMessage({id:"ticket.filter.status_claimed"})},{key:sy,label:n.formatMessage({id:"ticket.filter.status_processing"})},{key:K3,label:n.formatMessage({id:"ticket.filter.status_pending"})},{key:G3,label:n.formatMessage({id:"ticket.filter.status_holding"})},{key:Y3,label:n.formatMessage({id:"ticket.filter.status_reopened"})},{key:X3,label:n.formatMessage({id:"ticket.filter.status_resolved"})},{key:Z3,label:n.formatMessage({id:"ticket.filter.status_closed"})},{key:Q3,label:n.formatMessage({id:"ticket.filter.status_cancelled"})}]},{key:"priority",label:n.formatMessage({id:"ticket.filter.by.priority"}),children:[{key:v0,label:n.formatMessage({id:"ticket.filter.priority_all"})},{key:$se,label:n.formatMessage({id:"ticket.filter.priority_lowest"})},{key:SF,label:n.formatMessage({id:"ticket.filter.priority_low"})},{key:bk,label:n.formatMessage({id:"ticket.filter.priority_medium"})},{key:CF,label:n.formatMessage({id:"ticket.filter.priority_high"})},{key:_F,label:n.formatMessage({id:"ticket.filter.priority_urgent"})},{key:kF,label:n.formatMessage({id:"ticket.filter.priority_critical"})}]},{key:"assignment",label:n.formatMessage({id:"ticket.filter.by.assignment"}),children:[{key:y0,label:n.formatMessage({id:"ticket.filter.assignment_all"})},{key:Tse,label:n.formatMessage({id:"ticket.filter.assignment_my_created"})},{key:Pse,label:n.formatMessage({id:"ticket.filter.assignment_my_assigned"})},{key:aI,label:n.formatMessage({id:"ticket.filter.assignment_unassigned"})}]},{key:"time",label:n.formatMessage({id:"ticket.filter.by.time"}),children:[{key:b0,label:n.formatMessage({id:"ticket.filter.time_all"})},{key:Ose,label:n.formatMessage({id:"ticket.filter.time_today"})},{key:Ise,label:n.formatMessage({id:"ticket.filter.time_yesterday"})},{key:Rse,label:n.formatMessage({id:"ticket.filter.time_this_week"})},{key:jse,label:n.formatMessage({id:"ticket.filter.time_last_week"})},{key:Nse,label:n.formatMessage({id:"ticket.filter.time_this_month"})},{key:Ase,label:n.formatMessage({id:"ticket.filter.time_last_month"})}]}],h=w=>{console.log("handleTicketSelect",w),i(w)},m=()=>{c(!0),f(!1)},g=()=>{c(!1)},v=()=>{c(!0),f(!0)},y=()=>{console.log("handleDeleteTicket",r),yr.confirm({title:n.formatMessage({id:"ticket.delete.title"}),content:x.jsxs("div",{children:[x.jsx("p",{children:n.formatMessage({id:"ticket.delete.content"})}),x.jsxs("p",{style:{marginTop:"8px",color:"#666"},children:[n.formatMessage({id:"ticket.content.title"}),": ",r.title]})]}),onOk:async()=>{(await QUt(r.uid)).data.code===200?(Re.success(n.formatMessage({id:"ticket.delete.success"})),s(),i(void 0)):Re.error(n.formatMessage({id:"ticket.delete.failed"}))}})},b=({keyPath:w})=>{console.log("handleFilterClick",w);const[_,k]=w;o(k,_)};return x.jsxs(Qn,{children:[x.jsxs(CQt,{style:{...e,position:"relative",zIndex:2},width:156,children:[x.jsx(kQt,{style:t,children:n.formatMessage({id:"chat.navbar.ticket"})}),x.jsx(ks,{onClick:b,style:{width:156,position:"relative",zIndex:3},mode:"inline",selectedKeys:Object.values(a),items:p})]}),x.jsx(Qn,{children:x.jsx(_Qt,{style:{position:"relative",zIndex:1},children:x.jsxs(Lp,{children:[x.jsx(Lp.Panel,{defaultSize:"20%",children:x.jsx(xQt,{onSelect:h,onCreateTicket:m})}),x.jsx(Lp.Panel,{defaultSize:"55%",children:x.jsx(qA,{fromTicketTab:!0,ticket:r})}),x.jsx(Lp.Panel,{children:x.jsx(SQt,{ticket:r,onEdit:v,onDelete:y})})]})})}),l&&x.jsx(S4e,{open:l,isEdit:u,currentTicket:r,onSuccess:g,onCancel:()=>c(!1)})]})},EQt=()=>{const e=Pn(),{locale:t,changeLocale:n}=d.useContext(Ma),r=[{key:"lang",icon:x.jsx(Brt,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?x.jsx(sd,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?x.jsx(sd,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?x.jsx(sd,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=a=>{const o=a.key;n(o)};return x.jsx(ks,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})},$Qt=({open:e,notice:t,onAccept:n,onReject:r})=>{var h;const{translateString:i}=Gr(),[a,o]=d.useState(null),[s,l]=d.useState(null),c=fr(m=>m.addThread),u=Ed(m=>m.updateMessageStatus);d.useEffect(()=>{var m,g,v,y,b;if(t){const w=JSON.parse(t.extra);o(w);const _={uid:(m=w==null?void 0:w.thread)==null?void 0:m.uid,topic:(g=w==null?void 0:w.thread)==null?void 0:g.topic,type:(v=w==null?void 0:w.thread)==null?void 0:v.type,state:(y=w==null?void 0:w.thread)==null?void 0:y.state,user:(b=w==null?void 0:w.thread)==null?void 0:b.user};l(_)}},[t]);const f=async()=>{[a.sender,a.receiver]=[a.receiver,a.sender],a.status=u0;const m=await u4e(a);if(console.log("acceptThread response:",m),m.data.code===200){const g=m.data.data;console.log("acceptedThread:",g),Re.success("同意邀请会话成功"),Kve(JSON.stringify(a),g),c(g),u(a.messageUid,u0),n()}else Re.error(i(m.data.message))},p=async()=>{[a.sender,a.receiver]=[a.receiver,a.sender],a.status=d0;const m=await d4e(a);console.log("inviteThreadReject response:",m),m.data.code===200?(Re.success("拒绝邀请会话成功"),Gve(JSON.stringify(a),s),u(a.messageUid,d0),r()):Re.error(i(m.data.message))};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:`${(h=a==null?void 0:a.sender)==null?void 0:h.nickname}请求邀请会话`,open:e,okText:"同意",onOk:f,cancelText:"拒绝",onCancel:p,children:x.jsx(Gn,{itemLayout:"horizontal",dataSource:[{}],renderItem:()=>{var m,g;return x.jsx(Gn.Item,{style:{cursor:"pointer"},children:x.jsx(Gn.Item.Meta,{avatar:x.jsx(Oi,{src:(m=s==null?void 0:s.user)==null?void 0:m.avatar}),title:(g=s==null?void 0:s.user)==null?void 0:g.nickname,description:a==null?void 0:a.note})})}})})})};async function MQt(e){return dn("/api/v1/org/create",{method:"POST",data:{...e,client:Sn}})}const TQt=({open:e,onClose:t,onSuccess:n})=>{const r=Pn(),{userInfo:i}=e1(),[a,o]=d.useState(!1),[s,l]=d.useState(""),[c,u]=d.useState(!1),f=()=>{t()},p=()=>{Re.error(r.formatMessage({id:"welcome.message.org.required"}))},h=async()=>{if(s===""){Re.error(r.formatMessage({id:"welcome.message.org.name.required"}));return}o(!0),Re.loading(r.formatMessage({id:"welcome.message.org.creating"}));const g=i!=null&&i.mobile?i==null?void 0:i.mobile:i==null?void 0:i.email,v={name:s,code:g,logo:"https://www.weiyuai.cn/logo.png",description:s+"description"};try{const y=await MQt(v);y.data.code===200?(o(!1),Re.destroy(),Re.success(r.formatMessage({id:"welcome.message.create.success"})),n(y.data.data),t()):(o(!1),Re.destroy(),Re.error(r.formatMessage({id:"welcome.message.create.failed"})))}catch{o(!1),Re.destroy(),Re.error(r.formatMessage({id:"welcome.message.create.failed"}))}},m=()=>{c?h():(u(!0),o(!1))};return x.jsxs(yr,{title:r.formatMessage({id:"welcome.modal.title"}),closable:!1,open:e,onCancel:p,maskClosable:!1,footer:[x.jsx(Yt,{type:"primary",onClick:f,disabled:!0,children:r.formatMessage({id:"welcome.modal.join"})},"join"),x.jsx(Yt,{type:"primary",loading:a,onClick:m,children:r.formatMessage({id:"welcome.modal.create"})},"create")],children:[x.jsx("p",{children:r.formatMessage({id:"welcome.modal.description"})}),c&&x.jsx(Wr,{placeholder:r.formatMessage({id:"welcome.modal.input.placeholder"}),value:s,onChange:g=>l(g.target.value),onPressEnter:h,autoFocus:!0})]})},PQt=({open:e,onClose:t})=>{const n=Pn(),r=$o(),i=()=>{t(),r("/setting/certification")},a=()=>{localStorage.setItem("skipVerification","true"),t()};return x.jsx(yr,{title:n.formatMessage({id:"welcome.verify.modal.title",defaultMessage:"账号验证提示"}),open:e,onCancel:a,footer:[x.jsx(Yt,{onClick:a,children:n.formatMessage({id:"welcome.verify.later",defaultMessage:"稍后验证"})},"later"),x.jsx(Yt,{type:"primary",onClick:i,children:n.formatMessage({id:"welcome.verify.now",defaultMessage:"立即验证"})},"now")],children:x.jsx("p",{children:n.formatMessage({id:"welcome.verify.modal.description",defaultMessage:"您的邮箱和手机号尚未验证,为保障账号安全,建议您尽快完成验证。"})})})},OQt=()=>{const e=Pn(),{locale:t,isLoggedIn:n,hasRoleAgent:r}=d.useContext(Ma),i=$o(),{footerStyle:a}=co(),{currentOrg:o,setCurrentOrg:s}=Nr(Y=>({currentOrg:Y.currentOrg,setCurrentOrg:Y.setCurrentOrg})),{userInfo:l,setUserInfo:c}=aa(Y=>({userInfo:Y.userInfo,setUserInfo:Y.setUserInfo})),{setAgentInfo:u}=Si(Y=>({setAgentInfo:Y.setAgentInfo})),{threads:f,removeThread:p}=fr(Y=>({threads:Y.threads,removeThread:Y.removeThread})),{setWorkgroupResult:h}=lU(Y=>({setWorkgroupResult:Y.setWorkgroupResult})),m=localStorage.getItem(gq),[g,v]=d.useState(m||"/chat"),[y,b]=d.useState(!1),[w,_]=d.useState(!1),[k,S]=d.useState(!1),[C,E]=d.useState(!1),[$,M]=d.useState(!1),[P,I]=d.useState({}),[O,A]=d.useState({});Nxe(),WU(),jxe(),mU();const R=d.useMemo(()=>[{path:"/chat",name:e.formatMessage({id:"menu.dashboard.chat"}),icon:x.jsx(mve,{}),component:x.jsx(KA,{})},{path:"/contact",name:e.formatMessage({id:"menu.dashboard.contact"}),icon:x.jsx(lrt,{}),component:x.jsx(Txe,{})},{path:"/ticket",name:e.formatMessage({id:"menu.dashboard.ticket"}),icon:x.jsx(nrt,{}),component:x.jsx(Axe,{})},{path:"/setting",name:e.formatMessage({id:"menu.dashboard.mine"}),icon:x.jsx(yve,{}),component:x.jsx(Pxe,{})}],[e,t]);d.useEffect(()=>{const Y=f.some(X=>X.unreadCount>0);b(Y)},[f]);const j=d.useCallback(async()=>{if(n)try{const Y=await RF();Y.data.code===200?c(Y.data.data):Re.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))}catch(Y){console.error("Failed to fetch user profile:",Y)}},[n,c,e]),N=d.useCallback(async()=>{var Y;if(!(!n||!l)){if(!l.currentOrganization){_(!0);return}if(s(l.currentOrganization),r&&((Y=l.currentOrganization)!=null&&Y.uid))try{const X=await xle(l.currentOrganization.uid);X.data.code===200&&u(X.data.data)}catch(X){console.error("Failed to fetch agent info:",X)}V()}},[n,l,r,s,u]),D=d.useCallback(async()=>{if(!(!n||!(o!=null&&o.uid)||!r))try{const Y={pageNumber:0,pageSize:20,orgUid:o==null?void 0:o.uid},X=await x4e(Y);X.data.code===200?h(X.data):console.log("获取工作组失败")}catch(Y){console.error("Failed to fetch workgroups:",Y)}},[n,o,r,h]);d.useEffect(()=>{j()},[j]),d.useEffect(()=>{N()},[N]),d.useEffect(()=>{D()},[D]);const V=d.useCallback(()=>{localStorage.getItem("skipVerification")!=="true"&&l&&!l.emailVerified&&!l.mobileVerified&&S(!0)},[l]);d.useEffect(()=>{const Y={[cse]:X=>{console.log("handleTransfer:",X);const ae=JSON.parse(X);I(ae),E(!0)},[use]:X=>{var ce,pe,me,re,fe;console.log("handleTransferAccept:",X),Re.success("转接会话成功");const ae=JSON.parse(X),oe=JSON.parse(ae.extra),le={uid:(ce=oe==null?void 0:oe.thread)==null?void 0:ce.uid,topic:(pe=oe==null?void 0:oe.thread)==null?void 0:pe.topic,type:(me=oe==null?void 0:oe.thread)==null?void 0:me.type,state:(re=oe==null?void 0:oe.thread)==null?void 0:re.state,user:(fe=oe==null?void 0:oe.thread)==null?void 0:fe.user};p(le)},[dse]:()=>{console.log("handleTransferReject"),Re.warning("转接会话已被拒绝")},[fse]:X=>{console.log("handInvite:",X);const ae=JSON.parse(X);A(ae),M(!0)},[pse]:()=>{console.log("handInviteAccept"),Re.success("邀请会话成功")},[hse]:()=>{console.log("handInviteReject"),Re.warning("邀请会话已被拒绝")}};return Object.entries(Y).forEach(([X,ae])=>{En.on(X,ae)}),()=>{Object.entries(Y).forEach(([X,ae])=>{En.off(X,ae)})}},[p]);const F=d.useCallback(()=>{E(!1)},[]),K=d.useCallback(()=>{E(!1)},[]),B=d.useCallback(()=>{M(!1)},[]),U=d.useCallback(()=>{M(!1)},[]),Z=d.useCallback(Y=>{s(Y)},[s]),ee=d.useCallback(Y=>{v(Y),i(Y),localStorage.setItem(gq,Y)},[i]),ie=d.useCallback((Y,X)=>x.jsx("div",{onClick:()=>ee(Y.path),children:Y.path==="/chat"&&y?x.jsx(Fo,{size:"small",dot:!0,offset:[-5,5],children:X}):X}),[ee,y]);return x.jsxs(v2e,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:R},location:{pathname:g},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:()=>[x.jsx(EQt,{},"language"),x.jsx(yQt,{},"menu")],menuHeaderRender:()=>x.jsx(Rxe,{}),menuFooterRender:()=>null,menuItemRender:ie,children:[x.jsx(T7,{children:x.jsx(F4,{},t.locale)}),x.jsx(P7,{style:a,children:x.jsx(Ixe,{})}),C&&x.jsx(bQt,{open:C,notice:P,onAccept:F,onReject:K}),$&&x.jsx($Qt,{open:$,notice:O,onAccept:B,onReject:U}),x.jsx(TQt,{open:w,onClose:()=>_(!1),onSuccess:Z}),x.jsx(PQt,{open:k,onClose:()=>S(!1)}),x.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},IQt=()=>x.jsx(x.Fragment,{children:x.jsx(F4,{})}),RQt=({open:e,onClose:t})=>{const n=Pn(),{translateString:r}=Gr(),i=()=>{t()},a=()=>{t()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:n.formatMessage({id:"profile.password.change.title",defaultMessage:"Change Password"}),forceRender:!0,open:e,footer:null,onCancel:a,children:x.jsxs(qn,{initialValues:{oldPassword:"",newPassword:"",confirmPassword:""},onFinish:async o=>{if(console.log("changePassword:",o),o.newPassword.trim().length<6){Re.error(n.formatMessage({id:"profile.password.length.error",defaultMessage:"Password must be at least 6 characters"}));return}if(o.newPassword!==o.confirmPassword){Re.error(n.formatMessage({id:"profile.password.mismatch",defaultMessage:"The two passwords do not match"}));return}const s={oldPassword:o.oldPassword,newPassword:o.newPassword},l=await c$e(s);console.log("changePassword response:",l),l.data.code===200?(Re.success(n.formatMessage({id:"profile.password.change.success",defaultMessage:"Password changed successfully!"})),i()):Re.error(r(l.data.message))},children:[x.jsx(Pr.Password,{name:"oldPassword",label:n.formatMessage({id:"profile.password.old",defaultMessage:"Old Password"}),extra:n.formatMessage({id:"profile.password.old.empty",defaultMessage:"Old password can be empty for phone login users"})}),x.jsx(Pr.Password,{name:"newPassword",label:n.formatMessage({id:"profile.password.new",defaultMessage:"New Password"})}),x.jsx(Pr.Password,{name:"confirmPassword",label:n.formatMessage({id:"profile.password.confirm",defaultMessage:"Confirm Password"})})]})})})},VU=({children:e,onSuccess:t,onError:n})=>{const r={file:null,file_name:"test.png",file_type:"image/png",is_avatar:"true",kb_type:xF,category_uid:"",kb_uid:"",client:Sn},i={name:"file",accept:"image/*",action:dy(),headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},data:r,showUploadList:!1,beforeUpload(a){console.log("beforeUpload",a);const o=tn(new Date).format("YYYYMMDDHHmmss")+"_"+a.name;r.file=a,r.file_name=o,r.file_type=a.type,console.log("beforeUpload",r)},onChange(a){if(a.file.status!=="uploading"&&console.log("not uploading:",a.file),a.file.status==="done")if(console.log("response: ",a.file.response),a.file.response.code===200){const o=a.file.response.data.fileUrl;t(o),Re.success(`${a.file.name} 上传成功`)}else n(a.file),Re.error(`${a.file.name} 上传失败`);else a.file.status==="error"&&(Re.error(`${a.file.name} 上传失败`),n(a.file))}};return x.jsx(Jg,{...i,children:e})},jQt=({open:e,onSubmit:t,onClose:n})=>{const r=Pn(),[i]=qn.useForm(),{translateString:a}=Gr(),{userInfo:o,deviceUid:s}=aa(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=Nr(S=>S.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[p,h]=d.useState(""),[m,g]=d.useState(!1),v=async(S,C)=>{console.log("captchaUid",S," captchaValue",C),f(S),h(C)},y=async S=>{console.log("captcha check result",S),g(S)},b=()=>{n()},w=()=>{n()},_=async()=>{i.validateFields().then(async S=>{if(console.log("changeEmail:",S),o.email===S.email){Re.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"}));return}const C={email:S.email,code:S.code,platform:hc},E=await _le(C);console.log("changeEmail response:",E),E.data.code===200?(Re.success(r.formatMessage({id:"profile.email.change.success",defaultMessage:"Email changed successfully!"})),t(S.email),b()):Re.error(a(E.data.message))})},k=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"profile.email.change.title",defaultMessage:"Change Email"}),forceRender:!0,open:e,footer:null,onCancel:w,children:x.jsxs(qn,{form:i,onFinish:async S=>{console.log("changeEmail:",S),_()},children:[x.jsx(Pr,{fieldProps:{size:"large",prefix:x.jsx(j4,{})},name:"email",placeholder:r.formatMessage({id:"profile.email.placeholder",defaultMessage:"Enter email address"}),rules:[{required:!0,message:r.formatMessage({id:"profile.email.required",defaultMessage:"Please enter email address!"})},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:r.formatMessage({id:"profile.email.format.invalid",defaultMessage:"Invalid email format"})},{max:50,message:r.formatMessage({id:"profile.email.length.limit",defaultMessage:"Email cannot exceed 50 characters"})}]}),x.jsx(qn.Item,{name:"captchaCode",children:x.jsx(Jy,{onKaptchaChange:v,onKaptchaCheck:y})}),x.jsx(H4,{fieldProps:{size:"large",prefix:x.jsx(Xg,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.email.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(S,C)=>S?`${C} ${r.formatMessage({id:"profile.email.verification.code.countdown",defaultMessage:"seconds"})}`:r.formatMessage({id:"profile.email.verification.code.get",defaultMessage:"Get Code"}),phoneName:"email",name:"code",rules:[{required:!0,message:r.formatMessage({id:"profile.email.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:c,onGetCaptcha:async S=>{if(S){if(o.email===S){Re.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"})),k();return}const C={email:S,type:A6e,captchaUid:u,captchaCode:p,deviceUid:s,userUid:o.uid,orgUid:l.uid,platform:hc},E=await Z2e(C);if(E.data.code!==200){Re.error(E.data.message),k();return}Re.success(E.data.message)}else Re.error(r.formatMessage({id:"profile.email.format.error",defaultMessage:"Invalid email format"}))}})]})})})},NQt=({open:e,onSubmit:t,onClose:n})=>{const r=Pn(),[i]=qn.useForm(),{translateString:a}=Gr(),{userInfo:o,deviceUid:s}=aa(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=Nr(S=>S.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[p,h]=d.useState(""),[m,g]=d.useState(!1),v=async(S,C)=>{console.log("captchaUid",S," captchaValue",C),f(S),h(C)},y=async S=>{console.log("captcha check result",S),g(S)},b=()=>{n()},w=()=>{n()},_=async()=>{i.validateFields().then(async S=>{if(console.log("changeMobile:",S),o.mobile===S.mobile){Re.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"}));return}const C={mobile:S.mobile,code:S.code,platform:hc},E=await kle(C);console.log("changeMobile response:",E),E.data.code===200?(Re.success(r.formatMessage({id:"profile.mobile.change.success",defaultMessage:"Mobile number changed successfully!"})),t(S.mobile),b()):Re.error(a(E.data.message))})},k=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"profile.mobile.change.title",defaultMessage:"Change Mobile"}),forceRender:!0,open:e,footer:null,onCancel:w,children:x.jsxs(qn,{form:i,onFinish:async S=>{console.log("changeMobile:",S),_()},children:[x.jsx(Pr,{fieldProps:{size:"large",prefix:x.jsx(j4,{})},name:"mobile",placeholder:r.formatMessage({id:"profile.mobile.placeholder",defaultMessage:"Enter mobile number"}),rules:[{required:!0,message:r.formatMessage({id:"profile.mobile.required",defaultMessage:"Please enter mobile number!"})},{pattern:/^1\d{10}$/,message:r.formatMessage({id:"profile.mobile.format.invalid",defaultMessage:"Invalid mobile format"})}]}),x.jsx(qn.Item,{name:"captchaCode",children:x.jsx(Jy,{onKaptchaChange:v,onKaptchaCheck:y})}),x.jsx(H4,{fieldProps:{size:"large",prefix:x.jsx(Xg,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.mobile.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(S,C)=>S?`${C} ${r.formatMessage({id:"profile.mobile.verification.code.countdown",defaultMessage:"seconds"})}`:r.formatMessage({id:"profile.mobile.verification.code.get",defaultMessage:"Get Code"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:r.formatMessage({id:"profile.mobile.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:c,onGetCaptcha:async S=>{if(S&&S.length===11){if(o.mobile===S){Re.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"})),k();return}const C={mobile:S,type:j6e,captchaUid:u,captchaCode:p,deviceUid:s,userUid:o.uid,orgUid:l.uid,platform:hc},E=await AH(C);if(E.data.code!==200){Re.error(E.data.message),k();return}Re.success(E.data.message)}else Re.error(r.formatMessage({id:"profile.mobile.format.error",defaultMessage:"Invalid mobile format"}))}})]})})})},AQt={labelCol:{span:8},wrapperCol:{span:8}},cie=()=>{const e=Pn(),[t]=qn.useForm(),{translateString:n}=Gr(),{userInfo:r,setUserInfo:i}=aa(M=>({userInfo:M.userInfo,setUserInfo:M.setUserInfo})),[a,o]=d.useState(""),[s,l]=d.useState(!1),[c,u]=d.useState(!1),[f,p]=d.useState(!1),h=()=>{l(!0)},m=()=>{u(!0)},g=()=>{p(!0)},v=()=>{l(!1)},y=()=>{u(!1)},b=M=>{u(!1),r.email=M,i(r),t.setFieldValue("email",M)},w=()=>{p(!1)},_=M=>{p(!1),r.mobile=M,i(r),t.setFieldValue("mobile",M)},k=M=>{console.log("handleUploadSuccess:",M),o(M)},S=M=>{console.log("handleUploadError:",M)},C=async M=>{const P={...r,...M,avatar:a};console.log(P);const I=await Cle(P);console.log("updateProfile response:",I.data),I.data.code===200?(Re.success(e.formatMessage({id:"profile.update.success",defaultMessage:"Profile updated successfully"})),i(I.data.data)):Re.error(I.data.message)},E=M=>Array.isArray(M)?M:M==null?void 0:M.fileList;d.useEffect(()=>{r&&o(r.avatar)},[r]);const $=async()=>{const M=await RF();console.log("handleRefreshProfile getProfile response:",M.data),M.data.code===200?(i(M.data.data),t.setFieldsValue({uid:M.data.data.uid,username:M.data.data.username,nickname:n(M.data.data.nickname),email:M.data.data.email,mobile:M.data.data.mobile,description:n(M.data.data.description)})):Re.error(M.data.message)};return d.useEffect(()=>{$()},[]),x.jsxs("div",{className:"profile-container",children:[x.jsxs(qn,{...AQt,form:t,onFinish:C,children:[x.jsx(Pr,{name:"uid",label:"UID",readonly:!0}),x.jsx(qn.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:E,label:e.formatMessage({id:"profile.form.avatar",defaultMessage:"Avatar"}),children:x.jsxs(VU,{onSuccess:k,onError:S,children:[x.jsx(Oi,{src:a}),x.jsx(Yt,{icon:x.jsx(N4,{}),children:e.formatMessage({id:"profile.form.upload",defaultMessage:"Upload"})})]},"avatar")}),x.jsx(Pr,{name:"username",label:e.formatMessage({id:"profile.form.username",defaultMessage:"Username"}),rules:[{required:!0}]}),x.jsx(Yt,{onClick:h,children:e.formatMessage({id:"profile.button.change.password",defaultMessage:"Change Password"})}),x.jsx(Pr,{name:"nickname",label:e.formatMessage({id:"profile.form.nickname",defaultMessage:"Nickname"}),rules:[{required:!0}]}),x.jsx(Pr,{name:"email",label:r.emailVerified?e.formatMessage({id:"profile.email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"profile.email.unverified",defaultMessage:"Email Unverified"}),rules:[{type:"email"}],readonly:!0}),x.jsx(Yt,{onClick:m,children:e.formatMessage({id:"profile.button.change.email",defaultMessage:"Change Email"})}),x.jsx(Pr,{name:"mobile",label:r.mobileVerified?e.formatMessage({id:"profile.mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"profile.mobile.unverified",defaultMessage:"Mobile Unverified"}),readonly:!0}),x.jsx(Yt,{onClick:g,children:e.formatMessage({id:"profile.button.change.mobile",defaultMessage:"Change Mobile"})}),x.jsx(wd,{name:"description",label:e.formatMessage({id:"profile.form.description",defaultMessage:"Description"})})]}),s&&x.jsx(RQt,{open:s,onClose:v}),c&&x.jsx(jQt,{open:c,onSubmit:b,onClose:y}),f&&x.jsx(NQt,{open:f,onSubmit:_,onClose:w})]})},Dxe=d.createContext(null),qU=d.createContext(null);function DQt({children:e}){const[t,n]=d.useReducer(BQt,zQt);return x.jsx(Dxe.Provider,{value:t,children:x.jsx(qU.Provider,{value:n,children:e})})}function FQt(){return d.useContext(Dxe)}function LQt(){return d.useContext(qU)}function BQt(e,t){switch(t.type){case"added":return[...e,{id:t.id,text:t.text,done:!1}];case"changed":return e.map(n=>n.id===t.task.id?t.task:n);case"deleted":return e.filter(n=>n.id!==t.id);default:throw Error("Unknown action: "+t.type)}}const zQt=[{id:0,text:"Philosopher’s Path",done:!0},{id:1,text:"Visit the temple",done:!1},{id:2,text:"Drink matcha",done:!1}];let HQt=3;function UQt(){const[e,t]=d.useState(""),n=LQt();return x.jsxs(x.Fragment,{children:[x.jsx("input",{placeholder:"添加任务",value:e,onChange:r=>t(r.target.value)}),x.jsx("button",{onClick:()=>{t(""),n({type:"added",id:HQt++,text:e})},children:"添加"})]})}function WQt(){const e=FQt();return x.jsx("ul",{children:e.map(t=>x.jsx("li",{children:x.jsx(VQt,{task:t})},t.id))})}function VQt({task:e}){const[t,n]=d.useState(!1),r=d.useContext(qU);let i;return t?i=x.jsxs(x.Fragment,{children:[x.jsx("input",{value:e.text,onChange:a=>{r({type:"changed",task:{...e,text:a.target.value}})}}),x.jsx("button",{onClick:()=>n(!1),children:"保存"})]}):i=x.jsxs(x.Fragment,{children:[e.text,x.jsx("button",{onClick:()=>n(!0),children:"编辑"})]}),x.jsxs("label",{children:[x.jsx("input",{type:"checkbox",checked:e.done,onChange:a=>{r({type:"changed",task:{...e,done:a.target.value}})}}),i,x.jsx("button",{onClick:()=>{r({type:"deleted",id:e.id})},children:"删除"})]})}function qQt(){return x.jsxs(DQt,{children:[x.jsx("h1",{children:"任务列表"}),x.jsx(UQt,{}),x.jsx(WQt,{})]})}const KQt=()=>x.jsx(x.Fragment,{children:"Note"}),GQt=()=>x.jsx(Zg,{status:"warning",title:"TODO: 即将上线,敬请期待."}),uie=()=>x.jsx(Zg,{status:"warning",title:"TODO: 即将上线,敬请期待."}),YQt=()=>{const e=Pn(),{isMqttConnected:t}=WU(),[n,r]=d.useState(!0),[i,a]=d.useState(!0),[o,s]=d.useState(!1),l=b=>{console.log("radio checked",b.target.value),s(b.target.value),ma?window.electronAPI.setOpenAtLogin(b.target.value):console.log("not electron")},c=async()=>{if(ma){const b=await window.electronAPI.getOpenAtLogin();console.log("openAtLogin:",b),s(b)}};d.useEffect(()=>{c(),Wct(),Yve();const b=localStorage.getItem(kC);b===null?(localStorage.setItem(kC,"true"),r(!0)):r(b==="true");const w=localStorage.getItem(EC);w===null?(localStorage.setItem(EC,"true"),a(!0)):a(w==="true")},[]);const{themeMode:u,setThemeMode:f,locale:p,changeLocale:h}=d.useContext(Ma),m=b=>{console.log("radio checked",b.target.value),f(b.target.value),Kct(b.target.value)},g=b=>{console.log("language change",b.target.value),h(b.target.value)},v=b=>{console.log("play audio switch",b),localStorage.setItem(kC,b?"true":"false"),r(b)},y=b=>{console.log("show network status notification",b),localStorage.setItem(EC,b?"true":"false"),a(b)};return x.jsxs("div",{className:"profile-container",children:[x.jsx("p",{children:x.jsx(P6,{checkedChildren:e.formatMessage({id:"setting.basic.sound.on",defaultMessage:"已开启消息提示音"}),unCheckedChildren:e.formatMessage({id:"setting.basic.sound.off",defaultMessage:"已关闭消息提示音"}),value:n,onChange:v})}),x.jsx("p",{children:x.jsx(P6,{checkedChildren:e.formatMessage({id:"setting.basic.notification.on",defaultMessage:"已开启网络状态通知"}),unCheckedChildren:e.formatMessage({id:"setting.basic.notification.off",defaultMessage:"已关闭网络状态通知"}),value:i,onChange:y})}),Xo&&x.jsxs(x.Fragment,{children:[x.jsx("p",{children:e.formatMessage({id:"setting.basic.connection.status",defaultMessage:"长链接状态:"})}),x.jsx("div",{children:t?e.formatMessage({id:"setting.basic.connection.connected",defaultMessage:"✅连接正常"}):e.formatMessage({id:"setting.basic.connection.disconnected",defaultMessage:"❌连接断开"})})]}),ma&&x.jsxs(x.Fragment,{children:[x.jsx("p",{children:e.formatMessage({id:"setting.basic.startup",defaultMessage:"开机启动:"})}),x.jsxs(ss.Group,{onChange:l,value:o,children:[x.jsx(ss,{value:!0,children:e.formatMessage({id:"setting.basic.startup.on",defaultMessage:"开机启动"})}),x.jsx(ss,{value:!1,children:e.formatMessage({id:"setting.basic.startup.off",defaultMessage:"不开机启动"})})]})]}),x.jsx("p",{children:e.formatMessage({id:"setting.basic.theme",defaultMessage:"颜色主题:"})}),x.jsxs(ss.Group,{onChange:m,value:u,children:[x.jsx(ss,{value:"light",children:x.jsx(Qc,{id:"theme.light"})}),x.jsx(ss,{value:"dark",children:x.jsx(Qc,{id:"theme.dark"})}),x.jsx(ss,{value:"system",children:x.jsx(Qc,{id:"theme.system"})})]}),x.jsxs("div",{children:[x.jsx("p",{children:e.formatMessage({id:"setting.basic.language",defaultMessage:"语言设置:"})}),x.jsxs(ss.Group,{value:p.locale,onChange:g,children:[x.jsx(ss,{value:"en",children:e.formatMessage({id:"i18n.lang.en-US"})},"en"),x.jsx(ss,{value:"zh-cn",children:e.formatMessage({id:"i18n.lang.zh-CN"})},"zh-cn"),x.jsx(ss,{value:"zh-tw",children:e.formatMessage({id:"i18n.lang.zh-TW"})},"zh-tw")]})]})]})},{Header:XQt,Sider:ZQt,Content:QQt}=Qn,JQt=()=>{const e=Pn(),t=$o(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:i,contentStyle:a}=co(),o=[{label:"剪贴板",key:"clipboard"},{label:"收藏",key:"collect"}],s=l=>{console.log("menu click ",l),t("/plugins/"+l.key)};return d.useEffect(()=>{},[]),x.jsxs(Qn,{children:[x.jsxs(ZQt,{style:r,width:i,children:[x.jsx(Wr.Search,{style:{padding:10}}),x.jsx(ks,{mode:"inline",onClick:s,defaultSelectedKeys:["clipboard"],defaultOpenKeys:["plugins"],items:o})]}),x.jsxs(Qn,{children:[x.jsx(XQt,{style:n,children:e.formatMessage({id:"menu.dashboard.plugins"})}),x.jsx(QQt,{style:a,children:x.jsx(F4,{})})]})]})},eJt=()=>{const e=aa(n=>n.userInfo),t=()=>{var r;console.log("downloadQRCode");const n=(r=document.getElementById("myqrcode"))==null?void 0:r.querySelector("canvas");if(n){const i=n.toDataURL(),a=document.createElement("a");a.download=e.username+"_profile.png",a.href=i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}else console.log("canvas is null")};return x.jsxs("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[x.jsx(rz,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"/agent/logo.png"}),x.jsx(Yt,{type:"primary",onClick:t,style:{marginTop:"20px"},children:"下载二维码"})]})},tJt=()=>x.jsx(x.Fragment,{children:x.jsx("div",{children:"ShortcutAdmin"})}),nJt=()=>{const e=$o();return x.jsx(Zg,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:x.jsx(Yt,{type:"primary",onClick:()=>e("/"),children:"返回主页"})})},rJt={labelCol:{span:8},wrapperCol:{span:8}},iJt=()=>{const e=Pn(),[t]=qn.useForm(),{userInfo:n,setUserInfo:r}=aa(u=>({userInfo:u.userInfo,setUserInfo:u.setUserInfo})),[i,a]=d.useState(""),o={file:null,file_name:"test.png",file_type:"image/png"},s={name:"file",action:dy(),headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},showUploadList:!1,data:o,beforeUpload(u){const f=tn(new Date).format("YYYYMMDDHHmmss")+"_"+u.name;o.file=u,o.file_name=f,o.file_type=u.type,console.log("beforeUpload",o)},onChange(u){if(u.file.status!=="uploading"&&console.log(u.file,u.fileList),u.file.status==="done"){const f=u.file.response.data.fileUrl;console.log("url: ",f),a(f),Re.success(`${u.file.name} file uploaded successfully`)}else u.file.status==="error"&&Re.error(`${u.file.name} file upload failed.`)}},l=async u=>{const f={...n,...u,avatar:i};console.log(f);const p=await Cle(f);console.log("updateProfile response:",p),p.data.code===200?(Re.success("修改成功"),r(p.data.data)):Re.error("修改失败")},c=u=>Array.isArray(u)?u:u==null?void 0:u.fileList;return d.useEffect(()=>{n&&a(n.avatar)},[n]),x.jsxs("div",{className:"profile-container",children:[x.jsx("p",{children:"员工信息"}),x.jsxs(qn,{...rJt,style:{marginLeft:20},form:t,onFinish:l,initialValues:{nickname:n.nickname,email:n.email,mobile:n.mobile,description:n.description},children:[x.jsx(Qi.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:c,label:e.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:x.jsxs(Jg,{...s,children:[x.jsx(Oi,{src:i}),x.jsx(Yt,{icon:x.jsx(N4,{}),children:e.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),x.jsx(Pr,{name:"nickname",label:"昵称",rules:[{required:!0}],children:x.jsx(Wr,{})}),x.jsx(Pr,{name:"email",label:"邮箱",rules:[{type:"email"}],disabled:!0,children:x.jsx(Wr,{})}),x.jsx(Pr,{name:"mobile",label:"手机号",disabled:!0,children:x.jsx(Wr,{})}),x.jsx(wd,{name:"description",label:"描述",children:x.jsx(Wr.TextArea,{})})]})]})},aJt=()=>{const e=t1(),{content:t}=e.state||{},[n,r]=d.useState(30),i=()=>{r(c=>c+2)},a=()=>{n>30&&r(c=>c-2)},o=()=>{navigator.clipboard.writeText(t).then(()=>{Re.success("复制成功")}).catch(c=>{console.error("无法复制文本: ",c),Re.error(c)})},s=()=>{Re.warning("TODO: 即将上线,敬请期待")},l=()=>{Re.warning("TODO: 即将上线,敬请期待")};return x.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100vh"},children:[x.jsx("div",{style:{marginBottom:"1rem"},children:x.jsxs(Zr,{children:[x.jsx(Yt,{shape:"circle",onClick:i,style:{marginRight:"0.5rem"},children:"+"}),x.jsx(Yt,{shape:"circle",onClick:a,children:"-"}),x.jsx(Yt,{onClick:o,children:"复制"}),Xo&&x.jsx(Yt,{onClick:s,children:"转发"}),Xo&&x.jsx(Yt,{onClick:l,children:"收藏"})]})}),x.jsx("div",{style:{fontSize:`${n}px`},dangerouslySetInnerHTML:{__html:t}})]})},{Sider:oJt,Content:sJt}=Qn,lJt=[{key:"grp",label:"留言管理",type:"group",children:[{key:"13",label:"待分配"},{key:"14",label:"待处理"},{key:"15",label:"处理中"},{key:"16",label:"处理完毕"}]}],cJt=()=>{const{leftSiderStyle:e,leftSiderWidth:t}=co(),n=r=>{console.log("click ",r)};return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(oJt,{style:e,width:t,children:x.jsx(ks,{onClick:n,style:{width:256},mode:"inline",items:lJt})}),x.jsx(Qn,{children:x.jsx(sJt,{children:"leavemsg"})})]})})},{Sider:uJt,Content:dJt}=Qn,fJt=[{key:"grp",label:"实时监控",type:"group",children:[{key:"13",label:"当前在线"},{key:"14",label:"已离线"}]}],pJt=()=>{const{leftSiderStyle:e,leftSiderWidth:t}=co(),n=r=>{console.log("click ",r)};return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(uJt,{style:e,width:t,children:x.jsx(ks,{onClick:n,mode:"inline",items:fJt})}),x.jsx(Qn,{children:x.jsx(dJt,{children:"监控"})})]})})},{Sider:hJt,Content:mJt}=Qn,gJt=()=>{const{leftSiderStyle:e,leftSiderWidth:t,contentStyle:n}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(hJt,{style:e,width:t}),x.jsx(Qn,{children:x.jsx(mJt,{style:n})})]})})},I7=So()(Ss(Cs(_s((e,t)=>({categoryResult:{data:{content:[]}},categoryTreeOptions:[],categorySelectOptions:[],currentCategory:{uid:""},setCategoryResult(n){var s,l;const r=yJt(n),a={...n,data:{content:[{uid:"all",name:"i18n.all"},...n.data.content]}},o=vJt(a);e({categoryResult:a,categoryTreeOptions:o,categorySelectOptions:r}),((l=(s=n.data)==null?void 0:s.content)==null?void 0:l.length)>0?e({currentCategory:n.data.content[0]}):e({currentCategory:{uid:""}})},insertCategory(n){e(r=>{r.categoryResult.data.content.unshift(n)})},upgradeCategory(n){e(r=>{const i=r.categoryResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i[a]=n:console.warn(`Category with uid ${n.uid} not found.`)})},setCurrentCategory(n){e({currentCategory:n})},setCurrentCategoryUid(n){const r=t().categoryResult.data.content.find(i=>i.uid===n);e({currentCategory:r})},deleteCategoryCache:()=>e({},!0)})),{name:M6e})));function vJt(e){const t=[];return e.data.content.forEach(n=>{const r={title:n.name,key:n.uid,children:[]};n.children&&Array.isArray(n.children)&&(r.children=n.children.map(i=>({title:i.name,key:i.uid,children:[]}))),t.push(r)}),t}function yJt(e){const t=[];return e.data.content.forEach(n=>{const r={label:n.name,value:n.uid};t.push(r)}),t}const bJt=({open:e,level:t,type:n,isEdit:r,onCancel:i,onSubmit:a})=>{const[o]=qn.useForm(),s=Pn(),{translateString:l}=Gr(),c=Nr(h=>h.currentOrg),u=I7(h=>h.currentCategory);d.useEffect(()=>{r?o.setFieldsValue({name:l(u==null?void 0:u.name)}):o.resetFields()},[e,r]);const f=()=>{o.validateFields().then(async h=>{console.log("handleSaveDep:",h);const m={uid:r?u==null?void 0:u.uid:"",name:h.name,level:t,type:n,kbUid:h.kbUid,orgUid:c==null?void 0:c.uid};a(m)}).catch(h=>{console.log("Failed:",h),Re.error(s.formatMessage({id:"category.create.failed",defaultMessage:"Failed to create category"}))})},p=h=>{h.key==="Enter"&&f()};return x.jsx("div",{children:x.jsx(yr,{title:r?s.formatMessage({id:"category.form.edit.title",defaultMessage:"Edit Category"}):s.formatMessage({id:"category.form.create.title",defaultMessage:"Create Category"}),open:e,forceRender:!0,onOk:f,onCancel:i,getContainer:!1,children:x.jsx(qn,{form:o,name:"categoryForm",submitter:!1,children:x.jsx(Pr,{label:s.formatMessage({id:"category.form.name",defaultMessage:"Category Name"}),name:"name",rules:[{required:!0,message:s.formatMessage({id:"category.form.name.required",defaultMessage:"Please enter category name!"})}],fieldProps:{onKeyDown:p,placeholder:s.formatMessage({id:"category.form.name.placeholder",defaultMessage:"Enter category name"})}})})})})},wJt=({level:e,type:t})=>{var I;const{isDarkMode:n}=Ag(),r=Pn(),[i,a]=d.useState(!0),o=Nr(O=>O.currentOrg),{translateString:s}=Gr(),[l,c]=d.useState(!1),[u,f]=yr.useModal(),{categoryResult:p,currentCategory:h,setCategoryResult:m,setCurrentCategory:g,insertCategory:v,upgradeCategory:y}=I7(O=>({categoryResult:O.categoryResult,currentCategory:O.currentCategory,setCategoryResult:O.setCategoryResult,setCurrentCategory:O.setCurrentCategory,insertCategory:O.insertCategory,upgradeCategory:O.upgradeCategory})),b=O=>{u.confirm({title:r.formatMessage({id:"deleteTip"}),icon:x.jsx(dve,{}),content:`${r.formatMessage({id:"deleteAffirm",defaultMessage:"Delete"})}【${s(O.name)}】?`,onOk(){_(O)},onCancel(){},okText:r.formatMessage({id:"ok"}),cancelText:r.formatMessage({id:"cancel"})})},w=async()=>{console.log("handleEditCategory: ",h),a(!0),c(!0)},_=async O=>{console.log("handleDeleteCategory: ",O);const A={uid:O==null?void 0:O.uid,orgUid:o==null?void 0:o.uid},R=await UUt(A);console.log("deleteCategory: ",R),R.data.code===200?(Re.success(R.data.message),k()):Re.error(R.data.message)},k=async()=>{const O={pageNumber:0,pageSize:100,orgUid:o==null?void 0:o.uid,level:e,type:t},A=await J$(O);console.log("queryCategoriesByOrg: ",e,t,A.data),A.data.code===200?m(A.data):Re.error(A.data.message)};d.useEffect(()=>{k()},[]);const S=()=>{c(!1)},C=()=>{a(!1),c(!0)},E=async O=>{console.log("handleSubmit: ",O),Re.loading(r.formatMessage({id:"creating"}));const A=await I3e(O);console.log("createCategory response: ",A),A.data.code===200?(Re.destroy(),Re.success(r.formatMessage({id:"create.success"})),v(A.data.data),c(!1)):(Re.destroy(),Re.error(A.data.message))},$=async O=>{console.log("handleUpdateCategory: ",O),Re.loading(r.formatMessage({id:"updating"}));const A=await HUt(O);console.log("createCategory response: ",A),A.data.code===200?(Re.destroy(),Re.success(r.formatMessage({id:"update.success"})),y(A.data.data),c(!1)):(Re.destroy(),Re.error(A.data.message))},M=async O=>{console.log("handleSubmit: ",O),i?$(O):E(O)},P=(O,A)=>{console.log("list on click",O,A),g(O)};return x.jsxs(x.Fragment,{children:[x.jsxs(a3,{gap:"small",wrap:"wrap",style:{margin:5},children:[x.jsx(Yt,{type:"primary",size:"small",icon:x.jsx(git,{}),onClick:C,children:r.formatMessage({id:"create"})}),(h==null?void 0:h.uid)!==""&&(h==null?void 0:h.uid)!=="all"&&x.jsx(Yt,{size:"small",onClick:w,children:r.formatMessage({id:"pages.robot.edit"})}),(h==null?void 0:h.uid)!==""&&(h==null?void 0:h.uid)!=="all"&&x.jsx(Yt,{onClick:()=>b(h),size:"small",style:{float:"right"},danger:!0,children:r.formatMessage({id:"pages.robot.delete",defaultMessage:"Delete"})})]}),x.jsx(Gn,{itemLayout:"horizontal",dataSource:(I=p==null?void 0:p.data)==null?void 0:I.content,renderItem:(O,A)=>x.jsx(Gn.Item,{style:(h==null?void 0:h.uid)===O.uid?{backgroundColor:n?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>P(O,A),children:x.jsx(Gn.Item.Meta,{style:{marginLeft:"10px"},title:s(O.name)})})}),l&&x.jsx(bJt,{open:l,level:e,type:t,isEdit:i,onCancel:S,onSubmit:M}),f]})},xJt=({isEdit:e,robot:t,open:n,level:r,onClose:i,onSubmit:a})=>{var b,w,_;const[o]=qn.useForm(),s=Pn(),l=Nr(k=>k.currentOrg),[c]=d.useState("https://cdn.weiyuai.cn/assets/images/llm/provider/zhipu.png"),[u,f]=d.useState(),p=I7(k=>k.categoryResult),{translateString:h}=Gr();d.useEffect(()=>{var k,S,C;if(e&&t&&o){o.setFieldsValue({uid:t==null?void 0:t.uid,nickname:t==null?void 0:t.nickname,prompt:(k=t==null?void 0:t.llm)==null?void 0:k.prompt,description:t==null?void 0:t.description,categoryUid:t==null?void 0:t.categoryUid});const E=(C=(S=p==null?void 0:p.data)==null?void 0:S.content)==null?void 0:C.find($=>$.uid===(t==null?void 0:t.categoryUid));f(E)}else console.log("form resetFields"),o.resetFields()},[t]);const m=()=>{console.log("handleSubmit"),o.validateFields().then(k=>{console.log("Form values:",k);const S={uid:e?t==null?void 0:t.uid:"",nickname:k.nickname,avatar:c,categoryUid:u==null?void 0:u.uid,llm:{prompt:k.prompt},description:k.description,type:wF,level:r,orgUid:l==null?void 0:l.uid};console.log("robotObject:",S),a(S)}).catch(k=>{console.log("Form errors:",k)})};d.useEffect(()=>{},[t]);const g=k=>{console.log("handleUploadSuccess:",k)},v=k=>{console.log("handleUploadError:",k),Re.error(k)},y=k=>Array.isArray(k)?k:k==null?void 0:k.fileList;return x.jsx("div",{children:x.jsx(xh,{title:e?"编辑提示语":"新建提示语",onClose:i,open:n,extra:x.jsxs(Zr,{children:[x.jsx(Yt,{onClick:i,children:"取消"}),x.jsx(Yt,{onClick:m,type:"primary",children:"保存"})]}),children:x.jsxs(qn,{form:o,name:"model",submitter:!1,children:[x.jsx(za,{label:"类别",name:"categoryUid",required:!0,options:(_=(w=(b=p==null?void 0:p.data)==null?void 0:b.content)==null?void 0:w.filter(k=>k.uid!=="all"))==null?void 0:_.map(k=>({label:h(k==null?void 0:k.name),value:k==null?void 0:k.uid})),fieldProps:{allowClear:!0,onChange:k=>{var S,C;console.log("handleChange:",k),f((C=(S=p==null?void 0:p.data)==null?void 0:S.content)==null?void 0:C.find(E=>E.uid===k))}}}),x.jsx(Pr,{label:"昵称",name:"nickname",required:!0}),x.jsx(qn.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:y,label:s.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:x.jsxs(VU,{onSuccess:g,onError:v,children:[x.jsx(Oi,{src:c}),x.jsx(Yt,{icon:x.jsx(N4,{}),children:s.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),x.jsx(wd,{label:"提示语Prompt",name:"prompt",required:!0}),x.jsx(wd,{label:"简介描述",name:"description"})]})})})},SJt=({level:e,type:t})=>{console.log("RobotList",e,t);const n=d.useRef(!1),r=Pn(),{isDarkMode:i}=Ag(),[a,o]=d.useState(!0),{translateString:s}=Gr(),[l,c]=d.useState(!1),[u,f]=d.useState(),[p,h]=d.useState({}),m=I7(R=>R.currentCategory),g=Nr(R=>R.currentOrg),[v,y]=yr.useModal(),b=$o(),w=fr(R=>R.addThread),_=fr(R=>R.setCurrentThread),k=$F(R=>R.setCurrentMenu),S=aa(R=>R.userInfo),C=R=>{v.confirm({title:r.formatMessage({id:"deleteTip"}),icon:x.jsx(dve,{}),content:r.formatMessage({id:"robot.list.delete.confirm",defaultMessage:"Delete【{name}】?"},{name:s(R.nickname)}),onOk(){E(R)},onCancel(){console.log("取消")},okText:r.formatMessage({id:"ok"}),cancelText:r.formatMessage({id:"cancel"})})},E=async R=>{var N;console.log("delete robot",R),Re.loading(r.formatMessage({id:"robot.list.deleting",defaultMessage:"Deleting"}));const j=await UFt(R);if(console.log("delete robot response",j),j.data.code===200){Re.destroy(),Re.success(r.formatMessage({id:"robot.list.delete.success",defaultMessage:"Delete success"}));const D=[...(N=u==null?void 0:u.data)==null?void 0:N.content];for(const V in D)if(D[V].uid===R.uid){D.splice(Number(V),1);break}f({...u,data:{content:D}})}else Re.destroy(),Re.error(j.data.message)},$=async()=>{if(n.current){console.log("isLoading: 1",n.current);return}n.current=!0,Re.loading(r.formatMessage({id:"robot.list.loading",defaultMessage:"Loading"}));const R={pageNumber:0,pageSize:100,orgUid:g==null?void 0:g.uid,categoryUid:(m==null?void 0:m.uid)==="all"?"":m==null?void 0:m.uid,type:wF,level:e},j=await zwe(R);console.log("getPlatformRobots queryRobotsByOrg: ",j),j.data.code===200?(Re.destroy(),f(j.data)):(Re.destroy(),Re.error(j.data.message)),n.current=!1};d.useEffect(()=>{$()},[m]);const M=async R=>{var j,N,D,V;if(console.log("handleSubmit"),a){const F=await zFt(R);if(console.log("updatePromptRobot:",F),F.data.code===200){Re.success(r.formatMessage({id:"robot.list.update.success",defaultMessage:"Update success"}));const K=[...(j=u==null?void 0:u.data)==null?void 0:j.content];for(const B in K)if(K[B].uid===R.uid){K[B]=(N=F==null?void 0:F.data)==null?void 0:N.data;break}f({...u,data:{content:K}}),c(!1)}else Re.error(F.data.message)}else{const F=await BFt(R);if(console.log("createPromptRobot:",F),F.data.code===200){Re.success(r.formatMessage({id:"robot.list.create.success",defaultMessage:"Create success"}));const K=[...(D=u==null?void 0:u.data)==null?void 0:D.content];K.unshift((V=F==null?void 0:F.data)==null?void 0:V.data),f({...u,data:{content:K}}),c(!1)}else Re.error(F.data.message)}},P=(R,j)=>{console.log("list on click",R,j),h(R)},I=(R,j)=>{console.log("list on edit",R,j),o(!0),h(R),c(!0)},O=(R,j)=>{console.log("list on delete",R,j),h(R),C(R)},A=async(R,j)=>{console.log("startRobotChat",R,j);const N={user:{uid:R==null?void 0:R.uid,nickname:R==null?void 0:R.nickname,avatar:R==null?void 0:R.avatar,type:U5},topic:Ese+(R==null?void 0:R.uid)+"/"+(S==null?void 0:S.uid),content:"",type:pF,extra:"",client:Sn};console.log("startRobotChat request:",N);const D=await Hwe(N);console.log("startRobotChat response:",D.data),D.data.code===200?(w(D.data.data),_(D.data.data),k("chat"),b("/chat")):Re.error(D.data.message)};return x.jsxs(x.Fragment,{children:[x.jsx(Zr,{children:x.jsx(Yt,{icon:x.jsx(jy,{}),type:"primary",style:{marginLeft:10,marginTop:10},onClick:()=>{o(!1),c(!0)},children:r.formatMessage({id:"robot.list.add",defaultMessage:"Add AI Agent"})})}),x.jsx(Gn,{dataSource:u==null?void 0:u.data.content,style:{marginTop:10},renderItem:(R,j)=>{var N;return x.jsx(Gn.Item,{style:(p==null?void 0:p.uid)===R.uid?{backgroundColor:i?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>P(R,j),actions:[x.jsx(Yt,{onClick:()=>A(R,j),children:r.formatMessage({id:"robot.list.chat",defaultMessage:"Chat"})}),x.jsx(Yt,{type:"link",onClick:()=>I(R,j),children:r.formatMessage({id:"robot.list.edit",defaultMessage:"Edit"})},"edit"),x.jsx(Yt,{type:"link",onClick:()=>O(R,j),children:r.formatMessage({id:"robot.list.delete",defaultMessage:"Delete"})},"delete")],children:x.jsx(Gn.Item.Meta,{style:{marginLeft:"10px"},title:s(R==null?void 0:R.nickname)+" "+s(R==null?void 0:R.description),description:s((N=R==null?void 0:R.llm)==null?void 0:N.prompt)})},R==null?void 0:R.uid)}}),l&&x.jsx(xJt,{isEdit:a,robot:p,level:e,open:l,onClose:()=>c(!1),onSubmit:M}),y]})},{Sider:CJt,Header:die,Content:_Jt}=Qn,kJt=()=>{const e=Pn(),{leftSiderStyle:t,leftSiderWidth:n,headerStyle:r,contentStyle:i}=co();return x.jsxs(Qn,{children:[x.jsxs(CJt,{width:n,style:t,children:[x.jsx(die,{style:r,children:e.formatMessage({id:"chat.navbar.category"})}),x.jsx(wJt,{level:Dw,type:b5e})]}),x.jsxs(Qn,{children:[x.jsx(die,{style:r,children:e.formatMessage({id:"chat.navbar.ai"})}),x.jsx(_Jt,{style:i,children:x.jsx(SJt,{level:Dw})})]})]})},EJt=({open:e,onSubmit:t,onClose:n})=>{const r=Pn(),[i]=qn.useForm(),{translateString:a}=Gr(),{userInfo:o,deviceUid:s}=aa(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=Nr(S=>S.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[p,h]=d.useState(""),[m,g]=d.useState(!1);d.useEffect(()=>{e?i.setFieldsValue({email:o==null?void 0:o.email}):(i.resetFields(),k())},[e]);const v=async(S,C)=>{console.log("captchaUid",S," captchaValue",C),f(S),h(C)},y=async S=>{console.log("captcha check result",S),g(S)},b=()=>{n()},w=()=>{n()},_=async()=>{i.validateFields().then(async S=>{console.log("changeEmail:",S);const C={email:S.email,code:S.code,platform:hc},E=await _le(C);console.log("changeEmail response:",E),E.data.code===200?(Re.success("Email verify successfully!"),t(S.email),b()):Re.error(a(E.data.message))})},k=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"}),forceRender:!0,open:e,footer:null,onCancel:w,children:x.jsxs(qn,{form:i,onFinish:async S=>{console.log("changeEmail:",S),_()},children:[x.jsx(Pr,{fieldProps:{size:"large",prefix:x.jsx(j4,{})},name:"email",placeholder:r.formatMessage({id:"pages.login.email.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:"邮箱格式不正确"},{max:50,message:"邮箱不得超过50字符"}],readonly:!0}),x.jsx(qn.Item,{name:"captchaCode",rules:[],children:x.jsx(Jy,{onKaptchaChange:v,onKaptchaCheck:y})}),x.jsx(H4,{fieldProps:{size:"large",prefix:x.jsx(Xg,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(S,C)=>S?`${C} ${r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"email",name:"code",rules:[{required:!0}],fieldRef:c,onGetCaptcha:async S=>{if(console.log("email:",S),S){const C={email:S,type:D6e,captchaUid:u,captchaCode:p,deviceUid:s,userUid:o==null?void 0:o.uid,orgUid:l.uid,platform:hc},E=await Z2e(C);if(console.log("sendEmailCode",E),E.data.code!==200){Re.error(a(E.data.message)),k();return}Re.success(a(E.data.message))}else Re.error("手机号格式错误")}})]})})})},$Jt=({open:e,onSubmit:t,onClose:n})=>{const r=Pn(),[i]=qn.useForm(),{translateString:a}=Gr(),{userInfo:o,deviceUid:s}=aa(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=Nr(S=>S.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[p,h]=d.useState(""),[m,g]=d.useState(!1);d.useEffect(()=>{e?i.setFieldsValue({mobile:o==null?void 0:o.mobile}):(i.resetFields(),k())},[e]);const v=async(S,C)=>{console.log("captchaUid",S," captchaValue",C),f(S),h(C)},y=async S=>{console.log("captcha check result",S),g(S)},b=()=>{n()},w=()=>{n()},_=async()=>{i.validateFields().then(async S=>{console.log("changeMobile:",S);const C={mobile:S.mobile,code:S.code,platform:hc},E=await kle(C);console.log("changeMobile response:",E),E.data.code===200?(Re.success("Mobile verify successfully!"),t(S.mobile),b()):Re.error(a(E.data.message))})},k=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"}),forceRender:!0,open:e,footer:null,onCancel:w,children:x.jsxs(qn,{form:i,onFinish:async S=>{console.log("changeMobile:",S),_()},children:[x.jsx(Pr,{fieldProps:{size:"large",prefix:x.jsx(j4,{})},name:"mobile",placeholder:r.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0},{pattern:/^1\d{10}$/}],readonly:!0}),x.jsx(qn.Item,{name:"captchaCode",rules:[],children:x.jsx(Jy,{onKaptchaChange:v,onKaptchaCheck:y})}),x.jsx(H4,{fieldProps:{size:"large",prefix:x.jsx(Xg,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(S,C)=>S?`${C} ${r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0}],fieldRef:c,onGetCaptcha:async S=>{if(console.log("mobile:",S),S&&S.length===11){const C={mobile:S,type:N6e,captchaUid:u,captchaCode:p,deviceUid:s,userUid:o==null?void 0:o.uid,orgUid:l.uid,platform:hc},E=await AH(C);if(console.log("sendMobileCode",E),E.data.code!==200){Re.error(a(E.data.message)),k();return}Re.success(a(E.data.message))}else Re.error("手机号格式错误")}})]})})})},MJt=()=>{const e=Pn(),t=$o(),[n]=qn.useForm(),{userInfo:r,setUserInfo:i}=aa(y=>({userInfo:y.userInfo,setUserInfo:y.setUserInfo})),[a,o]=d.useState(!1),[s,l]=d.useState(!1),c=()=>{o(!0)},u=()=>{l(!0)},f=()=>{o(!1)},p=y=>{o(!1),r.email=y,r.emailVerified=!0,i(r),n.setFieldValue("email",y)},h=()=>{l(!1)},m=y=>{l(!1),r.mobile=y,r.mobileVerified=!0,i(r),n.setFieldValue("mobile",y)};d.useEffect(()=>{n.setFieldsValue({uid:r.uid,username:r.username,nickname:r.nickname,email:r.email,mobile:r.mobile})},[]);const g=()=>{t("/setting/profile")},v=()=>{t("/setting/profile")};return x.jsxs("div",{children:[x.jsxs(qn,{form:n,submitter:!1,children:[x.jsx(Pr,{name:"email",label:r!=null&&r.emailVerified?e.formatMessage({id:"email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"email.unverified",defaultMessage:"email unverified"}),readonly:!0}),!(r!=null&&r.emailVerified)&&r.email!=null&&x.jsx(Yt,{onClick:c,children:e.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"})}),x.jsx(Yt,{type:"link",onClick:g,children:"重置邮箱"}),x.jsx(Pr,{name:"mobile",label:r!=null&&r.mobileVerified?e.formatMessage({id:"mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"mobile.unverified",defaultMessage:"mobile unverified"}),readonly:!0}),!(r!=null&&r.mobileVerified)&&r.mobile!=null&&x.jsx(Yt,{onClick:u,children:e.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"})}),x.jsx(Yt,{type:"link",onClick:v,children:"重置手机号"})]}),a&&x.jsx(EJt,{open:a,onSubmit:p,onClose:f}),s&&x.jsx($Jt,{open:s,onSubmit:m,onClose:h})]})},TJt=e=>{console.log(e)},PJt=[{key:"personal",label:"个人认证",children:x.jsx(MJt,{})}],OJt=()=>x.jsx("div",{className:"profile-container",children:x.jsx(wh,{defaultActiveKey:"personal",items:PJt,onChange:TJt})}),IJt=()=>{const[e]=qn.useForm(),t=Pn(),{translateString:n}=Gr(),{agentInfo:r,setAgentInfo:i}=Si(f=>({agentInfo:f.agentInfo,setAgentInfo:f.setAgentInfo})),[a,o]=d.useState("");d.useEffect(()=>{var f;r&&e.setFieldsValue({nickname:n(r==null?void 0:r.nickname),email:r==null?void 0:r.email,mobile:r==null?void 0:r.mobile,description:n(r==null?void 0:r.description),memberUid:(f=r==null?void 0:r.member)==null?void 0:f.uid})},[r]);const s=f=>{console.log("handleUploadSuccess:",f),o(f)},l=f=>{console.log("handleUploadError:",f),Re.error(f)},c=async f=>{var m,g,v,y,b,w,_,k,S,C,E,$,M,P;console.log("onFinish:",f),Re.loading(t.formatMessage({id:"updating"}));const p={...r,...f,avatar:a,serviceSettings:{...r.serviceSettings,quickFaqUids:(g=(m=r==null?void 0:r.serviceSettings)==null?void 0:m.quickFaqs)==null?void 0:g.map(I=>I.uid),faqUids:(y=(v=r==null?void 0:r.serviceSettings)==null?void 0:v.faqs)==null?void 0:y.map(I=>I.uid),guessFaqUids:(w=(b=r==null?void 0:r.serviceSettings)==null?void 0:b.guessFaqs)==null?void 0:w.map(I=>I.uid),hotFaqUids:(k=(_=r==null?void 0:r.serviceSettings)==null?void 0:_.hotFaqs)==null?void 0:k.map(I=>I.uid),shortcutFaqUids:(C=(S=r==null?void 0:r.serviceSettings)==null?void 0:S.shortcutFaqs)==null?void 0:C.map(I=>I.uid)},robotSettings:{...r.robotSettings,robotUid:($=(E=r==null?void 0:r.robotSettings)==null?void 0:E.robot)==null?void 0:$.uid},leaveMsgSettings:{...r.leaveMsgSettings,worktimeUids:(P=(M=r==null?void 0:r.leaveMsgSettings)==null?void 0:M.worktimes)==null?void 0:P.map(I=>I.uid)},autoReplySettings:{...r.autoReplySettings}};console.log("agentObject:",p);const h=await n$e(p);console.log("updateAgent response:",h),h.data.code===200?(Re.destroy(),Re.success(t.formatMessage({id:"update.success"})),i(h.data.data)):(Re.destroy(),Re.error(h.data.message))},u=f=>Array.isArray(f)?f:f==null?void 0:f.fileList;return d.useEffect(()=>{var f;r&&(o(r.avatar),e.setFieldsValue({member:(f=r==null?void 0:r.member)==null?void 0:f.nickname}))},[r]),x.jsx(x.Fragment,{children:x.jsxs(qn,{form:e,style:{marginLeft:"20px"},onFinish:c,children:[x.jsx(qn.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:u,label:t.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:x.jsxs(VU,{onSuccess:s,onError:l,children:[x.jsx(Oi,{src:a}),x.jsx(Yt,{icon:x.jsx(N4,{}),children:t.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),x.jsx(Pr,{width:"md",name:"nickname",label:"客服卡片-展示客服昵称",rules:[{required:!0,message:"请输入客服昵称"}]}),x.jsx(Pr,{width:"md",name:"email",label:"客服卡片-展示邮箱",rules:[{required:!0,message:"请输入邮箱"}]}),x.jsx(Pr,{width:"md",name:"mobile",label:"客服卡片-展示手机号",rules:[{required:!0,message:"请输入手机号"}]}),x.jsx(wd,{width:"md",name:"description",label:"客服卡片-展示描述",rules:[{required:!0,message:"请输入描述"}]})]})})},RJt=()=>{const e=Pn(),[t,n]=d.useState([]),r=[{key:"basic",label:e.formatMessage({id:"pages.agent.tab.basic",defaultMessage:"Basic"}),children:x.jsx(IJt,{})}];return d.useEffect(()=>{n(r)},[]),x.jsx(x.Fragment,{children:x.jsx(wh,{style:{marginLeft:20},defaultActiveKey:"basic",items:t})})},{Sider:jJt,Content:NJt}=Qn,iD=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsxs(jJt,{style:e,width:t,children:[x.jsx(xg,{style:n,children:"home"}),x.jsx(UU,{})]}),x.jsxs(Qn,{children:[x.jsx(xg,{style:n,children:"home"}),x.jsx(NJt,{style:r,children:"home"})]})]})})},AJt=()=>{console.log("useMulticast");const e=()=>setInterval(()=>{},5e3);d.useEffect(()=>{console.log("useMulticast useEffect");const t=e();return()=>{console.log("un - useEffect"),clearInterval(t)}},[])};class DJt{constructor(){this.encoder=new TextEncoder,this._pieces=[],this._parts=[]}append_buffer(t){this.flush(),this._parts.push(t)}append(t){this._pieces.push(t)}flush(){if(this._pieces.length>0){const t=new Uint8Array(this._pieces);this._parts.push(t),this._pieces=[]}}toArrayBuffer(){const t=[];for(const n of this._parts)t.push(n);return FJt(t).buffer}}function FJt(e){let t=0;for(const i of e)t+=i.byteLength;const n=new Uint8Array(t);let r=0;for(const i of e){const a=new Uint8Array(i.buffer,i.byteOffset,i.byteLength);n.set(a,r),r+=i.byteLength}return n}function Fxe(e){return new LJt(e).unpack()}function Lxe(e){const t=new BJt,n=t.pack(e);return n instanceof Promise?n.then(()=>t.getBuffer()):t.getBuffer()}class LJt{constructor(t){this.index=0,this.dataBuffer=t,this.dataView=new Uint8Array(this.dataBuffer),this.length=this.dataBuffer.byteLength}unpack(){const t=this.unpack_uint8();if(t<128)return t;if((t^224)<32)return(t^224)-32;let n;if((n=t^160)<=15)return this.unpack_raw(n);if((n=t^176)<=15)return this.unpack_string(n);if((n=t^144)<=15)return this.unpack_array(n);if((n=t^128)<=15)return this.unpack_map(n);switch(t){case 192:return null;case 193:return;case 194:return!1;case 195:return!0;case 202:return this.unpack_float();case 203:return this.unpack_double();case 204:return this.unpack_uint8();case 205:return this.unpack_uint16();case 206:return this.unpack_uint32();case 207:return this.unpack_uint64();case 208:return this.unpack_int8();case 209:return this.unpack_int16();case 210:return this.unpack_int32();case 211:return this.unpack_int64();case 212:return;case 213:return;case 214:return;case 215:return;case 216:return n=this.unpack_uint16(),this.unpack_string(n);case 217:return n=this.unpack_uint32(),this.unpack_string(n);case 218:return n=this.unpack_uint16(),this.unpack_raw(n);case 219:return n=this.unpack_uint32(),this.unpack_raw(n);case 220:return n=this.unpack_uint16(),this.unpack_array(n);case 221:return n=this.unpack_uint32(),this.unpack_array(n);case 222:return n=this.unpack_uint16(),this.unpack_map(n);case 223:return n=this.unpack_uint32(),this.unpack_map(n)}}unpack_uint8(){const t=this.dataView[this.index]&255;return this.index++,t}unpack_uint16(){const t=this.read(2),n=(t[0]&255)*256+(t[1]&255);return this.index+=2,n}unpack_uint32(){const t=this.read(4),n=((t[0]*256+t[1])*256+t[2])*256+t[3];return this.index+=4,n}unpack_uint64(){const t=this.read(8),n=((((((t[0]*256+t[1])*256+t[2])*256+t[3])*256+t[4])*256+t[5])*256+t[6])*256+t[7];return this.index+=8,n}unpack_int8(){const t=this.unpack_uint8();return t<128?t:t-256}unpack_int16(){const t=this.unpack_uint16();return t<32768?t:t-65536}unpack_int32(){const t=this.unpack_uint32();return t<2**31?t:t-2**32}unpack_int64(){const t=this.unpack_uint64();return t<2**63?t:t-2**64}unpack_raw(t){if(this.length>31,r=(t>>23&255)-127,i=t&8388607|8388608;return(n===0?1:-1)*i*2**(r-23)}unpack_double(){const t=this.unpack_uint32(),n=this.unpack_uint32(),r=t>>31,i=(t>>20&2047)-1023,o=(t&1048575|1048576)*2**(i-20)+n*2**(i-52);return(r===0?1:-1)*o}read(t){const n=this.index;if(n+t<=this.length)return this.dataView.subarray(n,n+t);throw new Error("BinaryPackFailure: read index out of range")}}class BJt{getBuffer(){return this._bufferBuilder.toArrayBuffer()}pack(t){if(typeof t=="string")this.pack_string(t);else if(typeof t=="number")Math.floor(t)===t?this.pack_integer(t):this.pack_double(t);else if(typeof t=="boolean")t===!0?this._bufferBuilder.append(195):t===!1&&this._bufferBuilder.append(194);else if(t===void 0)this._bufferBuilder.append(192);else if(typeof t=="object")if(t===null)this._bufferBuilder.append(192);else{const n=t.constructor;if(t instanceof Array){const r=this.pack_array(t);if(r instanceof Promise)return r.then(()=>this._bufferBuilder.flush())}else if(t instanceof ArrayBuffer)this.pack_bin(new Uint8Array(t));else if("BYTES_PER_ELEMENT"in t){const r=t;this.pack_bin(new Uint8Array(r.buffer,r.byteOffset,r.byteLength))}else if(t instanceof Date)this.pack_string(t.toString());else{if(t instanceof Blob)return t.arrayBuffer().then(r=>{this.pack_bin(new Uint8Array(r)),this._bufferBuilder.flush()});if(n==Object||n.toString().startsWith("class")){const r=this.pack_object(t);if(r instanceof Promise)return r.then(()=>this._bufferBuilder.flush())}else throw new Error(`Type "${n.toString()}" not yet supported`)}}else throw new Error(`Type "${typeof t}" not yet supported`);this._bufferBuilder.flush()}pack_bin(t){const n=t.length;if(n<=15)this.pack_uint8(160+n);else if(n<=65535)this._bufferBuilder.append(218),this.pack_uint16(n);else if(n<=4294967295)this._bufferBuilder.append(219),this.pack_uint32(n);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(t)}pack_string(t){const n=this._textEncoder.encode(t),r=n.length;if(r<=15)this.pack_uint8(176+r);else if(r<=65535)this._bufferBuilder.append(216),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(217),this.pack_uint32(r);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(n)}pack_array(t){const n=t.length;if(n<=15)this.pack_uint8(144+n);else if(n<=65535)this._bufferBuilder.append(220),this.pack_uint16(n);else if(n<=4294967295)this._bufferBuilder.append(221),this.pack_uint32(n);else throw new Error("Invalid length");const r=i=>{if(ir(i+1)):r(i+1)}};return r(0)}pack_integer(t){if(t>=-32&&t<=127)this._bufferBuilder.append(t&255);else if(t>=0&&t<=255)this._bufferBuilder.append(204),this.pack_uint8(t);else if(t>=-128&&t<=127)this._bufferBuilder.append(208),this.pack_int8(t);else if(t>=0&&t<=65535)this._bufferBuilder.append(205),this.pack_uint16(t);else if(t>=-32768&&t<=32767)this._bufferBuilder.append(209),this.pack_int16(t);else if(t>=0&&t<=4294967295)this._bufferBuilder.append(206),this.pack_uint32(t);else if(t>=-2147483648&&t<=2147483647)this._bufferBuilder.append(210),this.pack_int32(t);else if(t>=-9223372036854776e3&&t<=9223372036854776e3)this._bufferBuilder.append(211),this.pack_int64(t);else if(t>=0&&t<=18446744073709552e3)this._bufferBuilder.append(207),this.pack_uint64(t);else throw new Error("Invalid integer")}pack_double(t){let n=0;t<0&&(n=1,t=-t);const r=Math.floor(Math.log(t)/Math.LN2),i=t/2**r-1,a=Math.floor(i*2**52),o=2**32,s=n<<31|r+1023<<20|a/o&1048575,l=a%o;this._bufferBuilder.append(203),this.pack_int32(s),this.pack_int32(l)}pack_object(t){const n=Object.keys(t),r=n.length;if(r<=15)this.pack_uint8(128+r);else if(r<=65535)this._bufferBuilder.append(222),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(223),this.pack_uint32(r);else throw new Error("Invalid length");const i=a=>{if(ai(a+1))}return i(a+1)}};return i(0)}pack_uint8(t){this._bufferBuilder.append(t)}pack_uint16(t){this._bufferBuilder.append(t>>8),this._bufferBuilder.append(t&255)}pack_uint32(t){const n=t&4294967295;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255)}pack_uint64(t){const n=t/4294967296,r=t%2**32;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255),this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}pack_int8(t){this._bufferBuilder.append(t&255)}pack_int16(t){this._bufferBuilder.append((t&65280)>>8),this._bufferBuilder.append(t&255)}pack_int32(t){this._bufferBuilder.append(t>>>24&255),this._bufferBuilder.append((t&16711680)>>>16),this._bufferBuilder.append((t&65280)>>>8),this._bufferBuilder.append(t&255)}pack_int64(t){const n=Math.floor(t/4294967296),r=t%2**32;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255),this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}constructor(){this._bufferBuilder=new DJt,this._textEncoder=new TextEncoder}}let Bxe=!0,zxe=!0;function R_(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function v1(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(o,s){if(o!==t)return i.apply(this,arguments);const l=c=>{const u=n(c);u&&(s.handleEvent?s.handleEvent(u):s(u))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(s,l),i.apply(this,[o,l])};const a=r.removeEventListener;r.removeEventListener=function(o,s){if(o!==t||!this._eventMap||!this._eventMap[t])return a.apply(this,arguments);if(!this._eventMap[t].has(s))return a.apply(this,arguments);const l=this._eventMap[t].get(s);return this._eventMap[t].delete(s),this._eventMap[t].size===0&&delete this._eventMap[t],Object.keys(this._eventMap).length===0&&delete this._eventMap,a.apply(this,[o,l])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(o){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),o&&this.addEventListener(t,this["_on"+t]=o)},enumerable:!0,configurable:!0})}function zJt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(Bxe=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function HJt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(zxe=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function Hxe(){if(typeof window=="object"){if(Bxe)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function KU(e,t){zxe&&console.warn(e+" is deprecated, please use "+t+" instead.")}function UJt(e){const t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.userAgentData&&n.userAgentData.brands){const r=n.userAgentData.brands.find(i=>i.brand==="Chromium");if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=R_(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=R_(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=R_(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;else return t.browser="Not a supported browser.",t;return t}function fie(e){return Object.prototype.toString.call(e)==="[object Object]"}function Uxe(e){return fie(e)?Object.keys(e).reduce(function(t,n){const r=fie(e[n]),i=r?Uxe(e[n]):e[n],a=r&&!Object.keys(i).length;return i===void 0||a?t:Object.assign(t,{[n]:i})},{}):e}function aD(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?aD(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(i=>{aD(e,e.get(i),n)})}))}function pie(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(t===null)return i;const a=[];return e.forEach(o=>{o.type==="track"&&o.trackIdentifier===t.id&&a.push(o)}),a.forEach(o=>{e.forEach(s=>{s.type===r&&s.trackId===o.id&&aD(e,s,i)})}),i}const hie=Hxe;function Wxe(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(s){if(typeof s!="object"||s.mandatory||s.optional)return s;const l={};return Object.keys(s).forEach(c=>{if(c==="require"||c==="advanced"||c==="mediaSource")return;const u=typeof s[c]=="object"?s[c]:{ideal:s[c]};u.exact!==void 0&&typeof u.exact=="number"&&(u.min=u.max=u.exact);const f=function(p,h){return p?p+h.charAt(0).toUpperCase()+h.slice(1):h==="deviceId"?"sourceId":h};if(u.ideal!==void 0){l.optional=l.optional||[];let p={};typeof u.ideal=="number"?(p[f("min",c)]=u.ideal,l.optional.push(p),p={},p[f("max",c)]=u.ideal,l.optional.push(p)):(p[f("",c)]=u.ideal,l.optional.push(p))}u.exact!==void 0&&typeof u.exact!="number"?(l.mandatory=l.mandatory||{},l.mandatory[f("",c)]=u.exact):["min","max"].forEach(p=>{u[p]!==void 0&&(l.mandatory=l.mandatory||{},l.mandatory[f(p,c)]=u[p])})}),s.advanced&&(l.optional=(l.optional||[]).concat(s.advanced)),l},i=function(s,l){if(t.version>=61)return l(s);if(s=JSON.parse(JSON.stringify(s)),s&&typeof s.audio=="object"){const c=function(u,f,p){f in u&&!(p in u)&&(u[p]=u[f],delete u[f])};s=JSON.parse(JSON.stringify(s)),c(s.audio,"autoGainControl","googAutoGainControl"),c(s.audio,"noiseSuppression","googNoiseSuppression"),s.audio=r(s.audio)}if(s&&typeof s.video=="object"){let c=s.video.facingMode;c=c&&(typeof c=="object"?c:{ideal:c});const u=t.version<66;if(c&&(c.exact==="user"||c.exact==="environment"||c.ideal==="user"||c.ideal==="environment")&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!u)){delete s.video.facingMode;let f;if(c.exact==="environment"||c.ideal==="environment"?f=["back","rear"]:(c.exact==="user"||c.ideal==="user")&&(f=["front"]),f)return n.mediaDevices.enumerateDevices().then(p=>{p=p.filter(m=>m.kind==="videoinput");let h=p.find(m=>f.some(g=>m.label.toLowerCase().includes(g)));return!h&&p.length&&f.includes("back")&&(h=p[p.length-1]),h&&(s.video.deviceId=c.exact?{exact:h.deviceId}:{ideal:h.deviceId}),s.video=r(s.video),hie("chrome: "+JSON.stringify(s)),l(s)})}s.video=r(s.video)}return hie("chrome: "+JSON.stringify(s)),l(s)},a=function(s){return t.version>=64?s:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[s.name]||s.name,message:s.message,constraint:s.constraint||s.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},o=function(s,l,c){i(s,u=>{n.webkitGetUserMedia(u,l,f=>{c&&c(a(f))})})};if(n.getUserMedia=o.bind(n),n.mediaDevices.getUserMedia){const s=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(l){return i(l,c=>s(c).then(u=>{if(c.audio&&!u.getAudioTracks().length||c.video&&!u.getVideoTracks().length)throw u.getTracks().forEach(f=>{f.stop()}),new DOMException("","NotFoundError");return u},u=>Promise.reject(a(u))))}}}function Vxe(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function qxe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(n){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=n)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=r=>{r.stream.addEventListener("addtrack",i=>{let a;e.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(s=>s.track&&s.track.id===i.track.id):a={track:i.track};const o=new Event("track");o.track=i.track,o.receiver=a,o.transceiver={receiver:a},o.streams=[r.stream],this.dispatchEvent(o)}),r.stream.getTracks().forEach(i=>{let a;e.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(s=>s.track&&s.track.id===i.id):a={track:i};const o=new Event("track");o.track=i,o.receiver=a,o.transceiver={receiver:a},o.streams=[r.stream],this.dispatchEvent(o)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else v1(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function Kxe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(i,a){return{track:a,get dtmf(){return this._dtmf===void 0&&(a.kind==="audio"?this._dtmf=i.createDTMFSender(a):this._dtmf=null),this._dtmf},_pc:i}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const i=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(s,l){let c=i.apply(this,arguments);return c||(c=t(this,s),this._senders.push(c)),c};const a=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(s){a.apply(this,arguments);const l=this._senders.indexOf(s);l!==-1&&this._senders.splice(l,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(a){this._senders=this._senders||[],n.apply(this,[a]),a.getTracks().forEach(o=>{this._senders.push(t(this,o))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(a){this._senders=this._senders||[],r.apply(this,[a]),a.getTracks().forEach(o=>{const s=this._senders.find(l=>l.track===o);s&&this._senders.splice(this._senders.indexOf(s),1)})}}else if(typeof e=="object"&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const r=t.apply(this,[]);return r.forEach(i=>i._pc=this),r},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function Gxe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const n=e.RTCPeerConnection.prototype.getSenders;n&&(e.RTCPeerConnection.prototype.getSenders=function(){const a=n.apply(this,[]);return a.forEach(o=>o._pc=this),a});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const a=r.apply(this,arguments);return a._pc=this,a}),e.RTCRtpSender.prototype.getStats=function(){const a=this;return this._pc.getStats().then(o=>pie(o,a.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){const i=n.apply(this,[]);return i.forEach(a=>a._pc=this),i}),v1(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){const i=this;return this._pc.getStats().then(a=>pie(a,i.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const r=arguments[0];let i,a,o;return this.getSenders().forEach(s=>{s.track===r&&(i?o=!0:i=s)}),this.getReceivers().forEach(s=>(s.track===r&&(a?o=!0:a=s),s.track===r)),o||i&&a?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):i?i.getStats():a?a.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function Yxe(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(o=>this._shimmedLocalStreams[o][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(o,s){if(!s)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const l=t.apply(this,arguments);return this._shimmedLocalStreams[s.id]?this._shimmedLocalStreams[s.id].indexOf(l)===-1&&this._shimmedLocalStreams[s.id].push(l):this._shimmedLocalStreams[s.id]=[s,l],l};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(o){this._shimmedLocalStreams=this._shimmedLocalStreams||{},o.getTracks().forEach(c=>{if(this.getSenders().find(f=>f.track===c))throw new DOMException("Track already exists.","InvalidAccessError")});const s=this.getSenders();n.apply(this,arguments);const l=this.getSenders().filter(c=>s.indexOf(c)===-1);this._shimmedLocalStreams[o.id]=[o].concat(l)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(o){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[o.id],r.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(o){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},o&&Object.keys(this._shimmedLocalStreams).forEach(s=>{const l=this._shimmedLocalStreams[s].indexOf(o);l!==-1&&this._shimmedLocalStreams[s].splice(l,1),this._shimmedLocalStreams[s].length===1&&delete this._shimmedLocalStreams[s]}),i.apply(this,arguments)}}function Xxe(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return Yxe(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const u=n.apply(this);return this._reverseStreams=this._reverseStreams||{},u.map(f=>this._reverseStreams[f.id])};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(u){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},u.getTracks().forEach(f=>{if(this.getSenders().find(h=>h.track===f))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[u.id]){const f=new e.MediaStream(u.getTracks());this._streams[u.id]=f,this._reverseStreams[f.id]=u,u=f}r.apply(this,[u])};const i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(u){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[u.id]||u]),delete this._reverseStreams[this._streams[u.id]?this._streams[u.id].id:u.id],delete this._streams[u.id]},e.RTCPeerConnection.prototype.addTrack=function(u,f){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const p=[].slice.call(arguments,1);if(p.length!==1||!p[0].getTracks().find(g=>g===u))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(g=>g.track===u))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const m=this._streams[f.id];if(m)m.addTrack(u),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const g=new e.MediaStream([u]);this._streams[f.id]=g,this._reverseStreams[g.id]=f,this.addStream(g)}return this.getSenders().find(g=>g.track===u)};function a(c,u){let f=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(p=>{const h=c._reverseStreams[p],m=c._streams[h.id];f=f.replace(new RegExp(m.id,"g"),h.id)}),new RTCSessionDescription({type:u.type,sdp:f})}function o(c,u){let f=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(p=>{const h=c._reverseStreams[p],m=c._streams[h.id];f=f.replace(new RegExp(h.id,"g"),m.id)}),new RTCSessionDescription({type:u.type,sdp:f})}["createOffer","createAnswer"].forEach(function(c){const u=e.RTCPeerConnection.prototype[c],f={[c](){const p=arguments;return arguments.length&&typeof arguments[0]=="function"?u.apply(this,[m=>{const g=a(this,m);p[0].apply(null,[g])},m=>{p[1]&&p[1].apply(null,m)},arguments[2]]):u.apply(this,arguments).then(m=>a(this,m))}};e.RTCPeerConnection.prototype[c]=f[c]});const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?s.apply(this,arguments):(arguments[0]=o(this,arguments[0]),s.apply(this,arguments))};const l=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const c=l.get.apply(this);return c.type===""?c:a(this,c)}}),e.RTCPeerConnection.prototype.removeTrack=function(u){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!u._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(u._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let p;Object.keys(this._streams).forEach(h=>{this._streams[h].getTracks().find(g=>u.track===g)&&(p=this._streams[h])}),p&&(p.getTracks().length===1?this.removeStream(this._reverseStreams[p.id]):p.removeTrack(u.track),this.dispatchEvent(new Event("negotiationneeded")))}}function oD(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){const r=e.RTCPeerConnection.prototype[n],i={[n](){return arguments[0]=new(n==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[n]=i[n]})}function Zxe(e,t){v1(e,"negotiationneeded",n=>{const r=n.target;if(!((t.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}const mie=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:Zxe,shimAddTrackRemoveTrack:Xxe,shimAddTrackRemoveTrackWithNative:Yxe,shimGetSendersWithDtmf:Kxe,shimGetUserMedia:Wxe,shimMediaStream:Vxe,shimOnTrack:qxe,shimPeerConnection:oD,shimSenderReceiverGetStats:Gxe},Symbol.toStringTag,{value:"Module"}));function Qxe(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(i,a,o){KU("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(i).then(a,o)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const i=function(o,s,l){s in o&&!(l in o)&&(o[l]=o[s],delete o[s])},a=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(o){return typeof o=="object"&&typeof o.audio=="object"&&(o=JSON.parse(JSON.stringify(o)),i(o.audio,"autoGainControl","mozAutoGainControl"),i(o.audio,"noiseSuppression","mozNoiseSuppression")),a(o)},r&&r.prototype.getSettings){const o=r.prototype.getSettings;r.prototype.getSettings=function(){const s=o.apply(this,arguments);return i(s,"mozAutoGainControl","autoGainControl"),i(s,"mozNoiseSuppression","noiseSuppression"),s}}if(r&&r.prototype.applyConstraints){const o=r.prototype.applyConstraints;r.prototype.applyConstraints=function(s){return this.kind==="audio"&&typeof s=="object"&&(s=JSON.parse(JSON.stringify(s)),i(s,"autoGainControl","mozAutoGainControl"),i(s,"noiseSuppression","mozNoiseSuppression")),o.apply(this,[s])}}}}function WJt(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){const i=new DOMException("getDisplayMedia without video constraints is undefined");return i.name="NotFoundError",i.code=8,Promise.reject(i)}return r.video===!0?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}function Jxe(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function sD(e,t){if(typeof e!="object"||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(i){const a=e.RTCPeerConnection.prototype[i],o={[i](){return arguments[0]=new(i==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),a.apply(this,arguments)}};e.RTCPeerConnection.prototype[i]=o[i]});const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[a,o,s]=arguments;return r.apply(this,[a||null]).then(l=>{if(t.version<53&&!o)try{l.forEach(c=>{c.type=n[c.type]||c.type})}catch(c){if(c.name!=="TypeError")throw c;l.forEach((u,f)=>{l.set(f,Object.assign({},u,{type:n[u.type]||u.type}))})}return l}).then(o,s)}}function eSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const i=t.apply(this,[]);return i.forEach(a=>a._pc=this),i});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const i=n.apply(this,arguments);return i._pc=this,i}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function tSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const r=t.apply(this,[]);return r.forEach(i=>i._pc=this),r}),v1(e,"track",n=>(n.receiver._pc=n.srcElement,n)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function nSe(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){KU("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function rSe(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function iSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let r=arguments[1]&&arguments[1].sendEncodings;r===void 0&&(r=[]),r=[...r];const i=r.length>0;i&&r.forEach(o=>{if("rid"in o&&!/^[a-z0-9]{0,16}$/i.test(o.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in o&&!(parseFloat(o.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in o&&!(parseFloat(o.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const a=t.apply(this,arguments);if(i){const{sender:o}=a,s=o.getParameters();(!("encodings"in s)||s.encodings.length===1&&Object.keys(s.encodings[0]).length===0)&&(s.encodings=r,o.sendEncodings=r,this.setParametersPromises.push(o.setParameters(s).then(()=>{delete o.sendEncodings}).catch(()=>{delete o.sendEncodings})))}return a})}function aSe(e){if(!(typeof e=="object"&&e.RTCRtpSender))return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const r=t.apply(this,arguments);return"encodings"in r||(r.encodings=[].concat(this.sendEncodings||[{}])),r})}function oSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function sSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}const gie=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:iSe,shimCreateAnswer:sSe,shimCreateOffer:oSe,shimGetDisplayMedia:WJt,shimGetParameters:aSe,shimGetUserMedia:Qxe,shimOnTrack:Jxe,shimPeerConnection:sD,shimRTCDataChannel:rSe,shimReceiverGetStats:tSe,shimRemoveStream:nSe,shimSenderGetStats:eSe},Symbol.toStringTag,{value:"Module"}));function lSe(e){if(!(typeof e!="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(r){this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(i=>t.call(this,i,r)),r.getVideoTracks().forEach(i=>t.call(this,i,r))},e.RTCPeerConnection.prototype.addTrack=function(r,...i){return i&&i.forEach(a=>{this._localStreams?this._localStreams.includes(a)||this._localStreams.push(a):this._localStreams=[a]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){this._localStreams||(this._localStreams=[]);const r=this._localStreams.indexOf(n);if(r===-1)return;this._localStreams.splice(r,1);const i=n.getTracks();this.getSenders().forEach(a=>{i.includes(a.track)&&this.removeTrack(a)})})}}function cSe(e){if(!(typeof e!="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(n){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=n),this.addEventListener("track",this._onaddstreampoly=r=>{r.streams.forEach(i=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(i))return;this._remoteStreams.push(i);const a=new Event("addstream");a.stream=i,this.dispatchEvent(a)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(i){i.streams.forEach(a=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(a)>=0)return;r._remoteStreams.push(a);const o=new Event("addstream");o.stream=a,r.dispatchEvent(o)})}),t.apply(r,arguments)}}}function uSe(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,a=t.setRemoteDescription,o=t.addIceCandidate;t.createOffer=function(c,u){const f=arguments.length>=2?arguments[2]:arguments[0],p=n.apply(this,[f]);return u?(p.then(c,u),Promise.resolve()):p},t.createAnswer=function(c,u){const f=arguments.length>=2?arguments[2]:arguments[0],p=r.apply(this,[f]);return u?(p.then(c,u),Promise.resolve()):p};let s=function(l,c,u){const f=i.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f};t.setLocalDescription=s,s=function(l,c,u){const f=a.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f},t.setRemoteDescription=s,s=function(l,c,u){const f=o.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f},t.addIceCandidate=s}function dSe(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=i=>r(fSe(i))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(r,i,a){t.mediaDevices.getUserMedia(r).then(i,a)}).bind(t))}function fSe(e){return e&&e.video!==void 0?Object.assign({},e,{video:Uxe(e.video)}):e}function pSe(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(r,i){if(r&&r.iceServers){const a=[];for(let o=0;oo.receiver.track.kind==="audio");r.offerToReceiveAudio===!1&&i?i.direction==="sendrecv"?i.setDirection?i.setDirection("sendonly"):i.direction="sendonly":i.direction==="recvonly"&&(i.setDirection?i.setDirection("inactive"):i.direction="inactive"):r.offerToReceiveAudio===!0&&!i&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);const a=this.getTransceivers().find(o=>o.receiver.track.kind==="video");r.offerToReceiveVideo===!1&&a?a.direction==="sendrecv"?a.setDirection?a.setDirection("sendonly"):a.direction="sendonly":a.direction==="recvonly"&&(a.setDirection?a.setDirection("inactive"):a.direction="inactive"):r.offerToReceiveVideo===!0&&!a&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function gSe(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const vie=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:gSe,shimCallbacksAPI:uSe,shimConstraints:fSe,shimCreateOfferLegacy:mSe,shimGetUserMedia:dSe,shimLocalStreamsAPI:lSe,shimRTCIceServerUrls:pSe,shimRemoteStreamsAPI:cSe,shimTrackEventTransceiver:hSe},Symbol.toStringTag,{value:"Module"}));var vSe={exports:{}};(function(e){const t={};t.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},t.localCName=t.generateIdentifier(),t.splitLines=function(n){return n.trim().split(` + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var _7=br.default;Object.defineProperty(pu,"__esModule",{value:!0});pu.default=hXt;pu.unitless=pu.ignore=pu.getComputedToken=void 0;var sXt=_7(d),lXt=jh,cXt=_7(x7),Jre=hd,uXt=_7(Ed),vxe=_7(PU),eie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,a=eie(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=(0,vxe.default)(o),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=eie(c,["theme"]);let p=f;u&&(p=OU(Object.assign(Object.assign({},o),f),{override:f},u)),o[l]=p}),o};pu.getComputedToken=OU;function hXt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=sXt.default.useContext(Jre.DesignTokenContext),a=`${cXt.default}-${t||""}`,o=n||Jre.defaultTheme,[s,l,c]=(0,lXt.useCacheToken)(o,[uXt.default,e],{salt:a,override:r,getComputedToken:OU,formatToken:vxe.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:dXt,ignore:fXt,preserve:pXt}});return[o,c,t?l:"",s,i]}var sh={},ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.textEllipsis=ea.resetIcon=ea.resetComponent=ea.operationUnit=ea.genLinkStyle=ea.genIconStyle=ea.genFocusStyle=ea.genFocusOutline=ea.genCommonStyle=ea.clearFix=void 0;var mXt=jh;ea.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const gXt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}};ea.resetComponent=gXt;const yxe=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});ea.resetIcon=yxe;const vXt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});ea.clearFix=vXt;const yXt=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}});ea.genLinkStyle=yXt;const bXt=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}};ea.genCommonStyle=bXt;const bxe=(e,t)=>({outline:`${(0,mXt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});ea.genFocusOutline=bxe;const wxe=(e,t)=>({"&:focus-visible":Object.assign({},bxe(e,t))});ea.genFocusStyle=wxe;const wXt=e=>({[`.${e}`]:Object.assign(Object.assign({},yxe()),{[`.${e} .${e}-icon`]:{display:"block"}})});ea.genIconStyle=wXt;const xXt=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},wxe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});ea.operationUnit=xXt;var SXt=$a.default;Object.defineProperty(sh,"__esModule",{value:!0});sh.genSubStyleComponent=sh.genStyleHooks=sh.genComponentStyleHook=void 0;var tie=d,CXt=mxe,BP=xl,zP=ea,nie=SXt(pu);const{genStyleHooks:_Xt,genComponentStyleHook:kXt,genSubStyleComponent:EXt}=(0,CXt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,tie.useContext)(BP.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,nie.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,tie.useContext)(BP.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,zP.genLinkStyle)(e)},(0,zP.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:BP.defaultIconPrefixCls)]},getCommonStyle:zP.genCommonStyle,getCompUnitless:()=>nie.unitless});sh.genSubStyleComponent=EXt;sh.genComponentStyleHook=kXt;sh.genStyleHooks=_Xt;var RU={};Object.defineProperty(RU,"__esModule",{value:!0});RU.default=MXt;var $Xt=TU;function MXt(e,t){return $Xt.PresetColors.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}var k7={},TXt=br.default;Object.defineProperty(k7,"__esModule",{value:!0});k7.default=void 0;var PXt=jh,OXt=ea,RXt=TXt(pu);const IXt=(e,t)=>{const[n,r]=(0,RXt.default)();return(0,PXt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,OXt.genIconStyle)(e)])};k7.default=IXt;(function(e){var t=br.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DesignTokenContext",{enumerable:!0,get:function(){return u.DesignTokenContext}}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return i.PresetColors}}),Object.defineProperty(e,"calc",{enumerable:!0,get:function(){return r.genCalc}}),Object.defineProperty(e,"defaultConfig",{enumerable:!0,get:function(){return u.defaultConfig}}),Object.defineProperty(e,"genComponentStyleHook",{enumerable:!0,get:function(){return s.genComponentStyleHook}}),Object.defineProperty(e,"genPresetColor",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"genStyleHooks",{enumerable:!0,get:function(){return s.genStyleHooks}}),Object.defineProperty(e,"genSubStyleComponent",{enumerable:!0,get:function(){return s.genSubStyleComponent}}),Object.defineProperty(e,"getLineHeight",{enumerable:!0,get:function(){return a.getLineHeight}}),Object.defineProperty(e,"mergeToken",{enumerable:!0,get:function(){return r.mergeToken}}),Object.defineProperty(e,"statistic",{enumerable:!0,get:function(){return r.statistic}}),Object.defineProperty(e,"statisticToken",{enumerable:!0,get:function(){return r.statisticToken}}),Object.defineProperty(e,"useResetIconStyle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useStyleRegister",{enumerable:!0,get:function(){return n.useStyleRegister}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return o.default}});var n=jh,r=mxe,i=TU,a=mx,o=t(pu),s=sh,l=t(RU),c=t(k7),u=hd})(ub);var E7={},jXt=$a.default;Object.defineProperty(E7,"__esModule",{value:!0});E7.default=void 0;var NXt=jXt(d);const AXt=Object.assign({},NXt),{useId:rie}=AXt,DXt=()=>"",FXt=typeof rie>"u"?DXt:rie;E7.default=FXt;var IU=br.default;Object.defineProperty(MU,"__esModule",{value:!0});MU.default=UXt;var LXt=IU(c7),BXt=IU(b7),zXt=pc,iie=ub,HXt=IU(E7);function UXt(e,t,n){var r;(0,zXt.devUseWarning)("ConfigProvider");const i=e||{},a=i.inherit===!1||!t?Object.assign(Object.assign({},iie.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:iie.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=(0,HXt.default)();return(0,LXt.default)(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{c[p]=Object.assign(Object.assign({},c[p]),e.components[p])});const u=`css-var-${o.replace(/:/g,"")}`,f=((s=i.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),i),{token:Object.assign(Object.assign({},a.token),i.token),components:c,cssVar:f})},[i,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!(0,BXt.default)(c,f,!0)}))}var jU={};const WXt=B3(YNe);var VXt=$a.default;Object.defineProperty(jU,"__esModule",{value:!0});jU.default=GXt;var aie=VXt(d),qXt=WXt,KXt=ub;function GXt(e){const{children:t}=e,[,n]=(0,KXt.useToken)(),{motion:r}=n,i=aie.useRef(!1);return i.current=i.current||r===!1,i.current?aie.createElement(qXt.Provider,{motion:r},t):t}var $7={},YXt=$a.default;Object.defineProperty($7,"__esModule",{value:!0});$7.default=void 0;YXt(d);$7.default=()=>null;var xxe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=ub})(xxe);(function(e){"use client";var t=br.default,n=$a.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return g.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return g.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return g.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return g.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return g.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var r=n(d),i=jh,a=t(Qy),o=t(c7),s=u7,l=n(pc),c=t(d7),u=n(sxe),f=t(cb),p=t(jg),h=hd,m=t(Ed),g=xl,v=v7,y=Pg,w=t(y7),b=t(MU),C=t(jU),k=t($7),S=n(Og),_=t(xxe),E=function(V,B){var U={};for(var Y in V)Object.prototype.hasOwnProperty.call(V,Y)&&B.indexOf(Y)<0&&(U[Y]=V[Y]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,Y=Object.getOwnPropertySymbols(V);eeB.endsWith("Color"))}const N=V=>{const{prefixCls:B,iconPrefixCls:U,theme:Y,holderRender:ee}=V;B!==void 0&&(M=B),U!==void 0&&(P=U),"holderRender"in V&&(O=ee),Y&&(A(Y)?(0,v.registerTheme)(j(),Y):R=Y)},F=()=>({getPrefixCls:(V,B)=>B||(V?`${j()}-${V}`:j()),getIconPrefixCls:I,getRootPrefixCls:()=>M||j(),getTheme:()=>R,holderRender:O});e.globalConfig=F;const K=V=>{const{children:B,csp:U,autoInsertSpaceInButton:Y,alert:ee,anchor:ie,form:Z,locale:X,componentSize:ae,direction:oe,space:le,splitter:ce,virtual:pe,dropdownMatchSelectWidth:me,popupMatchSelectWidth:re,popupOverflow:fe,legacyLocale:ve,parentContext:$e,iconPrefixCls:Ce,theme:be,componentDisabled:Se,segmented:we,statistic:se,spin:ye,calendar:Oe,carousel:z,cascader:H,collapse:G,typography:de,checkbox:xe,descriptions:he,divider:Ue,drawer:We,skeleton:ge,steps:ze,image:Ve,layout:Be,list:Xe,mentions:Ke,modal:qe,progress:Et,result:ut,slider:gt,breadcrumb:Ze,menu:nt,pagination:jt,input:Lt,textArea:Bt,empty:Ut,badge:Ne,radio:He,rate:Le,switch:Qe,transfer:pt,avatar:xt,message:Nt,tag:Ot,table:Pt,card:st,tabs:Ct,timeline:kt,timePicker:qt,upload:vt,notification:At,tree:dt,colorPicker:De,datePicker:Ye,rangePicker:ot,flex:Re,wave:It,dropdown:rt,warning:$t,tour:Mt,tooltip:dn,popover:pn,popconfirm:T,floatButtonGroup:D,variant:J,inputNumber:ke,treeSelect:Ie}=V,it=r.useCallback((on,Je)=>{const{prefixCls:bt}=V;if(Je)return Je;const sn=bt||$e.getPrefixCls("");return on?`${sn}-${on}`:sn},[$e.getPrefixCls,V.prefixCls]),Ft=Ce||$e.iconPrefixCls||g.defaultIconPrefixCls,rn=U||$e.csp;(0,_.default)(Ft,rn);const On=(0,b.default)(be,$e.theme,{prefixCls:it("")}),Er={csp:rn,autoInsertSpaceInButton:Y,alert:ee,anchor:ie,locale:X||ve,direction:oe,space:le,splitter:ce,virtual:pe,popupMatchSelectWidth:re??me,popupOverflow:fe,getPrefixCls:it,iconPrefixCls:Ft,theme:On,segmented:we,statistic:se,spin:ye,calendar:Oe,carousel:z,cascader:H,collapse:G,typography:de,checkbox:xe,descriptions:he,divider:Ue,drawer:We,skeleton:ge,steps:ze,image:Ve,input:Lt,textArea:Bt,layout:Be,list:Xe,mentions:Ke,modal:qe,progress:Et,result:ut,slider:gt,breadcrumb:Ze,menu:nt,pagination:jt,empty:Ut,badge:Ne,radio:He,rate:Le,switch:Qe,transfer:pt,avatar:xt,message:Nt,tag:Ot,table:Pt,card:st,tabs:Ct,timeline:kt,timePicker:qt,upload:vt,notification:At,tree:dt,colorPicker:De,datePicker:Ye,rangePicker:ot,flex:Re,wave:It,dropdown:rt,warning:$t,tour:Mt,tooltip:dn,popover:pn,popconfirm:T,floatButtonGroup:D,variant:J,inputNumber:ke,treeSelect:Ie},Mr=Object.assign({},$e);Object.keys(Er).forEach(on=>{Er[on]!==void 0&&(Mr[on]=Er[on])}),$.forEach(on=>{const Je=V[on];Je&&(Mr[on]=Je)}),typeof Y<"u"&&(Mr.button=Object.assign({autoInsertSpace:Y},Mr.button));const mr=(0,o.default)(()=>Mr,Mr,(on,Je)=>{const bt=Object.keys(on),sn=Object.keys(Je);return bt.length!==sn.length||bt.some(Pn=>on[Pn]!==Je[Pn])}),pr=r.useMemo(()=>({prefixCls:Ft,csp:rn}),[Ft,rn]);let cn=r.createElement(r.Fragment,null,r.createElement(k.default,{dropdownMatchSelectWidth:me}),B);const Sn=r.useMemo(()=>{var on,Je,bt,sn;return(0,s.merge)(((on=p.default.Form)===null||on===void 0?void 0:on.defaultValidateMessages)||{},((bt=(Je=mr.locale)===null||Je===void 0?void 0:Je.Form)===null||bt===void 0?void 0:bt.defaultValidateMessages)||{},((sn=mr.form)===null||sn===void 0?void 0:sn.validateMessages)||{},(Z==null?void 0:Z.validateMessages)||{})},[mr,Z==null?void 0:Z.validateMessages]);Object.keys(Sn).length>0&&(cn=r.createElement(c.default.Provider,{value:Sn},cn)),X&&(cn=r.createElement(u.default,{locale:X,_ANT_MARK__:u.ANT_MARK},cn)),(Ft||rn)&&(cn=r.createElement(a.default.Provider,{value:pr},cn)),ae&&(cn=r.createElement(S.SizeContextProvider,{size:ae},cn)),cn=r.createElement(C.default,null,cn);const gr=r.useMemo(()=>{const on=On||{},{algorithm:Je,token:bt,components:sn,cssVar:Pn}=on,qn=E(on,["algorithm","token","components","cssVar"]),ln=Je&&(!Array.isArray(Je)||Je.length>0)?(0,i.createTheme)(Je):h.defaultTheme,or={};Object.entries(sn||{}).forEach(wn=>{let[An,tr]=wn;const wr=Object.assign({},tr);"algorithm"in wr&&(wr.algorithm===!0?wr.theme=ln:(Array.isArray(wr.algorithm)||typeof wr.algorithm=="function")&&(wr.theme=(0,i.createTheme)(wr.algorithm)),delete wr.algorithm),or[An]=wr});const ri=Object.assign(Object.assign({},m.default),bt);return Object.assign(Object.assign({},qn),{theme:ln,token:ri,components:or,override:Object.assign({override:ri},or),cssVar:Pn})},[On]);return be&&(cn=r.createElement(h.DesignTokenContext.Provider,{value:gr},cn)),mr.warning&&(cn=r.createElement(l.WarningContext.Provider,{value:mr.warning},cn)),Se!==void 0&&(cn=r.createElement(y.DisabledContextProvider,{disabled:Se},cn)),r.createElement(g.ConfigContext.Provider,{value:mr},cn)},L=V=>{const B=r.useContext(g.ConfigContext),U=r.useContext(f.default);return r.createElement(K,Object.assign({parentContext:B,legacyLocale:U},V))};L.ConfigContext=g.ConfigContext,L.SizeContext=S.default,L.config=N,L.useConfig=w.default,Object.defineProperty(L,"SizeContext",{get:()=>S.default}),e.default=L})(bU);var vx={},XXt=$a.default;Object.defineProperty(vx,"__esModule",{value:!0});vx.LayoutContext=void 0;var ZXt=XXt(d);vx.LayoutContext=ZXt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var NU={},AU={},DU={},QXt=br.default;Object.defineProperty(DU,"__esModule",{value:!0});DU.default=rZt;var JXt=QXt(Ng),eZt=Symbol.for("react.element"),tZt=Symbol.for("react.transitional.element"),nZt=Symbol.for("react.fragment");function rZt(e){return e&&(0,JXt.default)(e)==="object"&&(e.$$typeof===eZt||e.$$typeof===tZt)&&e.type===nZt}var Sxe=br.default;Object.defineProperty(AU,"__esModule",{value:!0});AU.default=nD;var iZt=Sxe(DU),aZt=Sxe(d);function nD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return aZt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(nD(r)):(0,iZt.default)(r)&&r.props?n=n.concat(nD(r.props.children,t)):n.push(r))}),n}var ry={},rD={exports:{}},M7={},FU={};Object.defineProperty(FU,"__esModule",{value:!0});var oZt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};FU.default=oZt;var sZt=$a.default,LU=br.default;Object.defineProperty(M7,"__esModule",{value:!0});M7.default=void 0;var lZt=LU(T$),Cxe=sZt(d),cZt=LU(FU),uZt=LU(Zy),dZt=function(t,n){return Cxe.createElement(uZt.default,(0,lZt.default)({},t,{ref:n,icon:cZt.default}))},fZt=Cxe.forwardRef(dZt);M7.default=fZt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(M7);function r(a){return a&&a.__esModule?a:{default:a}}const i=n;t.default=i,e.exports=i})(rD,rD.exports);var pZt=rD.exports,iD={exports:{}},T7={},BU={};Object.defineProperty(BU,"__esModule",{value:!0});var hZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};BU.default=hZt;var mZt=$a.default,zU=br.default;Object.defineProperty(T7,"__esModule",{value:!0});T7.default=void 0;var gZt=zU(T$),_xe=mZt(d),vZt=zU(BU),yZt=zU(Zy),bZt=function(t,n){return _xe.createElement(yZt.default,(0,gZt.default)({},t,{ref:n,icon:vZt.default}))},wZt=_xe.forwardRef(bZt);T7.default=wZt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(T7);function r(a){return a&&a.__esModule?a:{default:a}}const i=n;t.default=i,e.exports=i})(iD,iD.exports);var xZt=iD.exports,aD={exports:{}},P7={},HU={};Object.defineProperty(HU,"__esModule",{value:!0});var SZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};HU.default=SZt;var CZt=$a.default,UU=br.default;Object.defineProperty(P7,"__esModule",{value:!0});P7.default=void 0;var _Zt=UU(T$),kxe=CZt(d),kZt=UU(HU),EZt=UU(Zy),$Zt=function(t,n){return kxe.createElement(EZt.default,(0,_Zt.default)({},t,{ref:n,icon:kZt.default}))},MZt=kxe.forwardRef($Zt);P7.default=MZt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(P7);function r(a){return a&&a.__esModule?a:{default:a}}const i=n;t.default=i,e.exports=i})(aD,aD.exports);var TZt=aD.exports,O7={},xf={};Object.defineProperty(xf,"__esModule",{value:!0});xf.prepareComponentToken=xf.default=xf.DEPRECATED_TOKENS=void 0;var PZt=jh,OZt=ub;const RZt=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:(0,PZt.unit)(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Exe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${a}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}};xf.prepareComponentToken=Exe;const IZt=xf.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];xf.default=(0,OZt.genStyleHooks)("Layout",e=>[RZt(e)],Exe,{deprecatedTokens:IZt});Object.defineProperty(O7,"__esModule",{value:!0});O7.default=void 0;var l2=jh,oie=xf,jZt=ub;const NZt=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:p,lightSiderBg:h,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:o,color:s,lineHeight:(0,l2.unit)(o),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,l2.unit)(p)} ${(0,l2.unit)(p)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,l2.unit)(p)} 0 0 ${(0,l2.unit)(p)}`}}},"&-light":{background:h,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};O7.default=(0,jZt.genStyleHooks)(["Layout","Sider"],e=>[NZt(e)],oie.prepareComponentToken,{deprecatedTokens:oie.DEPRECATED_TOKENS});var db=br.default,AZt=$a.default;Object.defineProperty(ry,"__esModule",{value:!0});ry.default=ry.SiderContext=void 0;var Qd=AZt(d),pl=Qd,DZt=db(pZt),sie=db(xZt),lie=db(TZt),cie=db(TE),FZt=db(l7),LZt=bU,BZt=vx,zZt=db(O7),HZt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i!Number.isNaN(Number.parseFloat(e))&&isFinite(e),WZt=ry.SiderContext=pl.createContext({}),VZt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),qZt=pl.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=HZt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=(0,Qd.useContext)(BZt.LayoutContext),[b,C]=(0,Qd.useState)("collapsed"in e?e.collapsed:o),[k,S]=(0,Qd.useState)(!1);(0,Qd.useEffect)(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const _=(X,ae)=>{"collapsed"in e||C(X),g==null||g(X,ae)},{getPrefixCls:E,direction:$}=(0,Qd.useContext)(LZt.ConfigContext),M=E("layout-sider",n),[P,R,O]=(0,zZt.default)(M),j=(0,Qd.useRef)(null);j.current=X=>{S(X.matches),v==null||v(X.matches),b!==X.matches&&_(X.matches,"responsive")},(0,Qd.useEffect)(()=>{function X(oe){return j.current(oe)}let ae;if(typeof window<"u"){const{matchMedia:oe}=window;if(oe&&m&&m in uie){ae=oe(`screen and (max-width: ${uie[m]})`);try{ae.addEventListener("change",X)}catch{ae.addListener(X)}X(ae)}}return()=>{try{ae==null||ae.removeEventListener("change",X)}catch{ae==null||ae.removeListener(X)}}},[m]),(0,Qd.useEffect)(()=>{const X=VZt("ant-sider-");return w.addSider(X),()=>w.removeSider(X)},[]);const I=()=>{_(!b,"clickTrigger")},A=(0,FZt.default)(y,["collapsed"]),N=b?p:f,F=UZt(N)?`${N}px`:String(N),K=parseFloat(String(p||0))===0?pl.createElement("span",{onClick:I,className:(0,cie.default)(`${M}-zero-width-trigger`,`${M}-zero-width-trigger-${u?"right":"left"}`),style:h},i||pl.createElement(DZt.default,null)):null,L=$==="rtl"==!u,U={expanded:L?pl.createElement(lie.default,null):pl.createElement(sie.default,null),collapsed:L?pl.createElement(sie.default,null):pl.createElement(lie.default,null)}[b?"collapsed":"expanded"],Y=i!==null?K||pl.createElement("div",{className:`${M}-trigger`,onClick:I,style:{width:F}},i||U):null,ee=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),ie=(0,cie.default)(M,`${M}-${s}`,{[`${M}-collapsed`]:!!b,[`${M}-has-trigger`]:c&&i!==null&&!K,[`${M}-below`]:!!k,[`${M}-zero-width`]:parseFloat(F)===0},r,R,O),Z=pl.useMemo(()=>({siderCollapsed:b}),[b]);return P(pl.createElement(WZt.Provider,{value:Z},pl.createElement("aside",Object.assign({className:ie},A,{style:ee,ref:t}),pl.createElement("div",{className:`${M}-children`},a),c||k&&K?Y:null)))});ry.default=qZt;var $xe=br.default;Object.defineProperty(NU,"__esModule",{value:!0});NU.default=YZt;var KZt=$xe(AU),GZt=$xe(ry);function YZt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,KZt.default)(t).some(i=>i.type===GZt.default)}var R7,I7,XZt=$a.default,yx=br.default;Object.defineProperty(mf,"__esModule",{value:!0});mf.default=mf.Header=I7=mf.Footer=R7=mf.Content=void 0;var ZZt=yx(txe),nc=XZt(d),Mxe=yx(TE),QZt=yx(l7),oD=bU,JZt=vx,eQt=yx(NU),Txe=yx(xf),Pxe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);inc.forwardRef((o,s)=>nc.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},o)))}const WU=nc.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,o=Pxe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=nc.useContext(oD.ConfigContext),l=s("layout",n),[c,u,f]=(0,Txe.default)(l),p=r?`${l}-${r}`:l;return c(nc.createElement(a,Object.assign({className:(0,Mxe.default)(n||p,i,u,f),ref:t},o)))}),tQt=nc.forwardRef((e,t)=>{const{direction:n}=nc.useContext(oD.ConfigContext),[r,i]=nc.useState([]),{prefixCls:a,className:o,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,p=Pxe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=(0,QZt.default)(p,["suffixCls"]),{getPrefixCls:m,layout:g}=nc.useContext(oD.ConfigContext),v=m("layout",a),y=(0,eQt.default)(r,l,c),[w,b,C]=(0,Txe.default)(v),k=(0,Mxe.default)(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,o,s,b,C),S=nc.useMemo(()=>({siderHook:{addSider:_=>{i(E=>[].concat((0,ZZt.default)(E),[_]))},removeSider:_=>{i(E=>E.filter($=>$!==_))}}}),[]);return w(nc.createElement(JZt.LayoutContext.Provider,{value:S},nc.createElement(u,Object.assign({ref:t,className:k,style:Object.assign(Object.assign({},g==null?void 0:g.style),f)},h),l)))}),nQt=j7({tagName:"div",displayName:"Layout"})(tQt);mf.Header=j7({suffixCls:"header",tagName:"header",displayName:"Header"})(WU);I7=mf.Footer=j7({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(WU);R7=mf.Content=j7({suffixCls:"content",tagName:"main",displayName:"Content"})(WU);mf.default=nQt;const rQt=()=>{const e=[];return x.jsx("div",{children:e.length>0?x.jsx(Yn,{itemLayout:"horizontal",dataSource:e,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${n}`}),title:x.jsx("a",{children:t.title}),description:"Ant Design"})})}):x.jsx(x.Fragment,{children:x.jsx(za,{})})})},VU=so()(es(ts(ns((e,t)=>({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}},addNewfriend(n){console.log("addNewfriend",n)},addDevice(n){var r;if(n.type===yse){const i=t().devices.some(a=>a.device.uid===n.device.uid);e(i?{devices:[n,...t().devices.filter(a=>a.device.uid!==n.device.uid)]}:{devices:[n,...t().devices]}),((r=t().currentContact.device)==null?void 0:r.uid)===n.device.uid&&e({currentContact:n})}},addGroup(n){console.log("addGroup",n)},addChannel(n){console.log("addChannel",n)},addMember(n){if(n.type===N6e){const r=t().members.some(i=>i.member.uid===n.member.uid);e(r?{members:[n,...t().members.filter(i=>i.member.uid!==n.member.uid)]}:{members:[...t().members,n]})}},addFriend(n){console.log("addFriend",n)},setCurrentContact:n=>{e({currentContact:n})},setMemberSelf:n=>{e({memberSelf:n})},resetContactInfo(){e({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}}})}})),{name:k6e}))),iQt=e=>{const t=n=>{var r,i,a,o,s,l,c;return((r=n==null?void 0:n.user)==null?void 0:r.avatar)===null||((i=n==null?void 0:n.user)==null?void 0:i.avatar)===void 0||((a=n==null?void 0:n.user)==null?void 0:a.avatar)===""?x.jsx("img",{src:Ik((o=n==null?void 0:n.user)==null?void 0:o.uid),alt:"Avatar"}):((s=n==null?void 0:n.user)==null?void 0:s.avatar.indexOf("local"))>-1?x.jsx("img",{src:Ik((l=n==null?void 0:n.user)==null?void 0:l.uid),alt:"Avatar"}):x.jsx(Pi,{shape:"square",size:"large",src:(c=n==null?void 0:n.user)==null?void 0:c.avatar})};return x.jsx("div",{children:t(e)})},qU=()=>{const{devices:e,currentContact:t,setCurrentContact:n}=VU(a=>({devices:a.devices,currentContact:a.currentContact,setCurrentContact:a.setCurrentContact})),r=(a,o)=>{console.log("handleContactClick",a,o),n(a)},i=(a,o)=>{console.log("handleContactDoubleClick",a,o)};return x.jsx("div",{children:e.length>0?x.jsx(Yn,{itemLayout:"horizontal",dataSource:e,renderItem:(a,o)=>{var s,l,c;return x.jsx(Yn.Item,{onClick:()=>r(a,o),onDoubleClick:()=>i(a,o),children:x.jsx(Yn.Item.Meta,{style:((s=t==null?void 0:t.device)==null?void 0:s.uid)===((l=a==null?void 0:a.device)==null?void 0:l.uid)?{backgroundColor:"#f0f2f5"}:{},avatar:iQt(a),title:(c=a==null?void 0:a.user)==null?void 0:c.nickname,description:a==null?void 0:a.createdAt})})}}):x.jsx(x.Fragment,{children:x.jsx(za,{})})})},aQt=()=>{const e=[];return x.jsx("div",{children:e.length>0?x.jsx(Yn,{itemLayout:"horizontal",dataSource:e,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${n}`}),title:x.jsx("a",{children:t.title}),description:"Ant Design"})})}):x.jsx(x.Fragment,{children:x.jsx(za,{})})})},oQt=()=>{const e=[];return x.jsx("div",{children:e.length>0?x.jsx(Yn,{itemLayout:"horizontal",dataSource:e,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${n}`}),title:x.jsx("a",{children:t.title}),description:"Ant Design"})})}):x.jsx(x.Fragment,{children:x.jsx(za,{})})})},sQt=()=>{console.log("MemberList");const{userInfo:e}=t1(),{translateString:t}=Zr(),{isDarkMode:n}=d.useContext(Ea),{currentMember:r,memberResult:i,setCurrentMember:a,setMemberSelf:o,setMemberResult:s}=Na(f=>({currentMember:f.currentMember,memberResult:f.memberResult,setCurrentMember:f.setCurrentMember,setMemberSelf:f.setMemberInfo,setMemberResult:f.setMemberResult})),l=d.useMemo(()=>{const f=i==null?void 0:i.data.content;return f?(console.log("membersWithoutSelf",f,e==null?void 0:e.uid),f.filter(p=>{var h;return((h=p==null?void 0:p.user)==null?void 0:h.uid)!=(e==null?void 0:e.uid)})):[]},[i,e]),c=async()=>{var m,g;if(console.log("getAllMembers"),(e==null?void 0:e.currentOrganization)==null||(e==null?void 0:e.currentOrganization)===void 0){console.log("userInfo.organizations is empty");return}const p={pageNumber:0,pageSize:100,orgUid:(m=e==null?void 0:e.currentOrganization)==null?void 0:m.uid},h=await t$(p);if(console.log("queryMembersByOrg:",p,h.data),h.data.code===200){for(let v=0;v{c()},[]);const u=f=>{console.log("handleMemberClick",f),a(f)};return x.jsx("div",{children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:l,renderItem:f=>x.jsx(Yn.Item,{style:(r==null?void 0:r.uid)===(f==null?void 0:f.uid)?{backgroundColor:n?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>u(f),children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:f==null?void 0:f.avatar}),title:x.jsx("a",{children:f==null?void 0:f.nickname}),description:t(f==null?void 0:f.description)})})})})},lQt=()=>{const e=[];return x.jsx("div",{children:e.length>0?x.jsx(Yn,{itemLayout:"horizontal",dataSource:e,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${n}`}),title:x.jsx("a",{children:t.title}),description:"Ant Design"})})}):x.jsx(x.Fragment,{children:x.jsx(za,{})})})},cQt=()=>{const e=Rn(),t=[{key:"new",label:e.formatMessage({id:"contact.list.new",defaultMessage:"New Friends"}),children:x.jsx(rQt,{})},{key:"device",label:e.formatMessage({id:"contact.list.device",defaultMessage:"LAN Devices"}),children:x.jsx(qU,{})},{key:"group",label:e.formatMessage({id:"contact.list.group",defaultMessage:"Groups"}),children:x.jsx(aQt,{})},{key:"channel",label:e.formatMessage({id:"contact.list.channel",defaultMessage:"Channels"}),children:x.jsx(oQt,{})},{key:"company",label:e.formatMessage({id:"contact.list.company",defaultMessage:"Company Contacts"}),children:x.jsx(sQt,{})},{key:"friend",label:e.formatMessage({id:"contact.list.friend",defaultMessage:"Contacts"}),children:x.jsx(lQt,{})}],n=()=>{console.log("handleContactManager"),je.warning(e.formatMessage({id:"contact.manager.coming",defaultMessage:"Coming soon..."}))};return x.jsxs("div",{style:{padding:10},children:[x.jsx(Ur.Search,{style:{paddingBottom:10},placeholder:e.formatMessage({id:"contact.search.placeholder",defaultMessage:"Search contacts..."})}),Nl&&x.jsx(Yt,{icon:x.jsx(Qnt,{}),block:!0,onClick:n,children:e.formatMessage({id:"contact.manager.button",defaultMessage:"Contact Manager"})}),x.jsx(l8,{items:t,bordered:!1,defaultActiveKey:["1"]})]})},uQt=()=>{var u,f;const e=Rn(),t=Mo(),{currentMember:n,memberInfo:r}=Na(p=>({currentMember:p.currentMember,memberInfo:p.memberInfo})),i=fr(p=>p.addThread),a=fr(p=>p.setCurrentThread),o=PF(p=>p.setCurrentMenu),s=ia(p=>p.userInfo),l=[{key:"1",label:e.formatMessage({id:"member.detail.nickname",defaultMessage:"Nickname"}),children:n==null?void 0:n.nickname},{key:"2",label:"Email",children:n==null?void 0:n.email},{key:"3",label:e.formatMessage({id:"member.detail.jobno",defaultMessage:"Job No."}),children:n==null?void 0:n.jobNo},{key:"4",label:e.formatMessage({id:"member.detail.seatno",defaultMessage:"Seat No."}),children:n==null?void 0:n.seatNo},{key:"5",label:e.formatMessage({id:"member.detail.telephone",defaultMessage:"Telephone"}),children:n==null?void 0:n.telephone}],c=async()=>{var m;console.log("createMemberThread"),je.loading(e.formatMessage({id:"member.detail.loading",defaultMessage:"Loading..."}));const p={user:{uid:(m=n==null?void 0:n.user)==null?void 0:m.uid,nickname:n==null?void 0:n.nickname,avatar:n==null?void 0:n.avatar},topic:$se+(r==null?void 0:r.uid)+"/"+(n==null?void 0:n.uid),content:"",type:wse,extra:"",client:kn};console.log("thread request:",p);const h=await I3e(p);console.log("response:",h.data),h.data.code===200?(je.destroy(),i(h.data.data),a(h.data.data),o("chat"),t("/chat")):(je.destroy(),je.error(h.data.message))};return x.jsxs("div",{style:{textAlign:"center",overflowY:"auto",marginBottom:100},children:[x.jsx(Pi,{size:50,src:n==null?void 0:n.avatar}),x.jsx(ls,{style:{width:"50%",margin:"20px auto auto",overflowY:"auto"},bordered:!0,column:1,items:l}),((u=n==null?void 0:n.user)==null?void 0:u.uid)!==(s==null?void 0:s.uid)&&x.jsx(Yt,{style:{marginTop:"20px"},onClick:c,disabled:((f=n==null?void 0:n.user)==null?void 0:f.uid)==="",children:e.formatMessage({id:"member.detail.chat.button",defaultMessage:"Start Chat"})})]})},dQt=()=>x.jsx("div",{style:{overflowY:"auto",marginTop:60},children:x.jsx(uQt,{})}),{Sider:fQt,Header:pQt,Content:hQt}=Qn,Oxe=()=>{const e=Rn(),{headerStyle:t,leftSiderStyle:n,leftSiderWidth:r,contentStyle:i}=co();return x.jsxs(Qn,{children:[x.jsx(fQt,{style:n,width:r,children:x.jsx(cQt,{})}),x.jsxs(Qn,{children:[x.jsx(pQt,{style:t,children:e.formatMessage({id:"menu.dashboard.contact"})}),x.jsx(hQt,{style:i,children:x.jsx(dQt,{})})]})]})},{Header:mQt,Sider:gQt,Content:vQt}=Qn,Rxe=()=>{const e=Rn(),{isLoggedIn:t,hasRoleAgent:n}=d.useContext(Ea),r=Mo(),{headerStyle:i,leftSiderStyle:a,leftSiderWidth:o,contentStyle:s}=co(),l=Vr(p=>p.currentOrg),[c,u]=d.useState([]);d.useEffect(()=>{const p=[{label:e.formatMessage({id:"setting.menu.title",defaultMessage:"设置"}),key:"setting",children:[{label:e.formatMessage({id:"setting.menu.profile",defaultMessage:"个人信息"}),key:"profile"},{label:e.formatMessage({id:"setting.menu.basic",defaultMessage:"基本设置"}),key:"basic"}]}];u(p)},[e]),d.useEffect(()=>{var g,v,y,w;if(!t||(l==null?void 0:l.uid)===""||!n)return;const p=[...c];if(p.length===0)return;const h={label:e.formatMessage({id:"setting.menu.agent",defaultMessage:"客服设置"}),key:"agentProfile"};((v=(g=p[0])==null?void 0:g.children)==null?void 0:v.some(b=>b.key===h.key))||((w=(y=p[0])==null?void 0:y.children)==null||w.splice(1,0,h),u(p))},[l,c,e,t,n]),d.useEffect(()=>{if(!Nl)return;const p=[...c];if(p.length===0)return;p.some(m=>m.key==="model")||(p.push({label:e.formatMessage({id:"setting.menu.model",defaultMessage:"大模型"}),key:"model"}),u(p))},[c,e]);const f=p=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),p),r("/setting/"+p.key)};return x.jsxs(Qn,{children:[x.jsx(gQt,{style:a,width:o,children:x.jsx(ks,{mode:"inline",onClick:f,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:c})}),x.jsxs(Qn,{children:[x.jsx(mQt,{style:i,children:e.formatMessage({id:"menu.dashboard.mine"})}),x.jsx(vQt,{style:s,children:x.jsx(B4,{})})]})]})},yQt=()=>{const e=Vr(u=>u.deleteOrg),t=fr(u=>u.resetThreads),n=Td(u=>u.resetMessageList),r=Na(u=>u.resetMembers),i=t4(u=>u.removeAccessToken),a=ia(u=>u.resetUserInfo),o=VU(u=>u.resetContactInfo),s=Eo(u=>u.resetAgentInfo),l=dU(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),i(),a(),o(),s(),l()}}};function KU(){const e=t4(w=>w.accessToken),t=ia(w=>w.userInfo),n=Eo(w=>w.agentInfo),r=r7(),[i,a]=d.useState(!1),{showNotification:o}=yU(),{translateString:s}=Zr(),l=fr(w=>w.threads),[c,u]=d.useState(l),f=d.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!Rct()&&r&&e&&g()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",r," accessToken:",e)},[r,e]),p=async()=>{},h=d.useRef(n==null?void 0:n.uid),m=d.useCallback(()=>{if(!i&&e)return setInterval(async()=>{h.current?p():console.log("useMqtt autoPingMessage currentUidRef.current:",h.current)},1e4)},[i,e,t,n]),g=()=>{Sct({uid:t.uid,username:t.username,accessToken:e})},v=()=>{xT()},y=w=>{var b,C;(w==null?void 0:w.type)!==g0&&((b=w==null?void 0:w.user)==null?void 0:b.uid)!==(t==null?void 0:t.uid)&&((C=w==null?void 0:w.user)==null?void 0:C.uid)!==(n==null?void 0:n.uid)&&(XOe(),console.log("playAudio"))};return d.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?g():xT()},[r]),d.useEffect(()=>{if(n!=null&&n.uid){h.current=n==null?void 0:n.uid;const w=m();return()=>{clearInterval(w)}}else h.current=null},[n]),d.useEffect(()=>{console.log("useMqtt useEffect accessToken"),g();const w=f();return()=>{xT(),clearInterval(w)}},[e,t]),d.useEffect(()=>{u(l)},[l]),d.useEffect(()=>{const w=function(b){if(console.log("useMqtt handleNewMessage",b),b.type===$f||b.type===V5||b.type===m0||b.type===g0||b.type===v0)return;const C=b.topic,k=c.find(S=>S.topic===C);k?k.mute?console.log("useMqtt matchingThread muted",C):(console.log("useMqtt matchingThread no mute",C),o(s(Zx),s(Zx)),y(b)):(console.log("useMqtt matchingThread no"),o(s(Zx),s(Zx)),y(b))};return $n.on(jw,w),()=>{$n.off(jw)}},[c]),d.useEffect(()=>{console.log("useMqtt useEffect");const w=function(){console.log("handleMqttConnected"),a(!0)},b=function(){console.log("handleMqttDisconnected"),a(!1)};return $n.on(qO,w),$n.on(GO,b),$n.on(YO,b),$n.on(KO,b),$n.on(XO,b),$n.on(ZO,b),()=>{console.log("un - useEffect mqttDisconnect"),$n.off(qO),$n.off(GO),$n.off(YO),$n.off(KO),$n.off(XO),$n.off(ZO)}},[]),{doConnect:g,doDisconnect:v,isMqttConnected:i}}function Ixe(){const{clearStorage:e}=yQt(),{doDisconnect:t}=KU(),{setPingLoading:n}=d.useContext(Ea),r=d.useCallback(async()=>{try{const i=await bNt();console.log("logout result:",i.data),n(!1),t(),e(),Qct()}catch(i){console.log("logout error:",i)}},[]);return d.useEffect(()=>{const i=function(a){console.log("token过期,强制刷新登录",a),$n.off(eh,i),r()};return $n.on(eh,i),()=>{console.log("un - useEffect mqttDisconnect"),$n.off(eh)}},[]),{doLogout:r}}const jxe=()=>{const e=Rn(),{isLoggedIn:t,mode:n}=d.useContext(Ea),{doLogout:r}=Ixe(),[i,a]=d.useState("✅"),[o,s]=d.useState(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"})),l=r7();d.useEffect(()=>{l?(a("✅"),s(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"}))):(a("❌"),s(e.formatMessage({id:"footbar.network.disconnected",defaultMessage:"网络断开"})))},[l,e]);const c=x.jsx("div",{children:x.jsx("p",{children:e.formatMessage({id:"footbar.anonymous.tip",defaultMessage:"匿名状态,仅支持同一个局域网内在线设备之间通信"})})}),u=x.jsx("div",{children:x.jsx("p",{children:e.formatMessage({id:"footbar.login.tip",defaultMessage:"登录后,支持离线消息和更多功能"})})}),[f,p]=d.useState(!1),h=()=>{p(!0)},m=()=>{p(!1)},g=()=>{console.log("handleShowLoginModel"),h()},v=w=>{console.log(w),r()},y=w=>{console.log(w)};return x.jsxs(x.Fragment,{children:[x.jsx(yr,{open:f&&!t,onOk:m,onCancel:m,footer:[x.jsx(Yt,{onClick:m,children:e.formatMessage({id:"footbar.login.skip",defaultMessage:"暂不登录"})},"back")],children:x.jsx(dA,{isModel:!0})}),x.jsxs("span",{children:[!t&&x.jsxs(x.Fragment,{children:[x.jsx(wc,{content:c,title:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"}),children:x.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"})})}),x.jsx(wc,{content:u,children:x.jsx("span",{className:"footerLeftButton",onClick:g,children:e.formatMessage({id:"footbar.login",defaultMessage:"登录"})})})]}),t&&x.jsx(x.Fragment,{children:x.jsx(nve,{title:e.formatMessage({id:"footbar.logout.title",defaultMessage:"退出登录"}),description:e.formatMessage({id:"footbar.logout.confirm",defaultMessage:"确定要退出登录?"}),onConfirm:v,onCancel:y,okText:e.formatMessage({id:"common.confirm",defaultMessage:"确定"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"}),children:x.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.logout",defaultMessage:"退出登录"})})})}),n===Rw&&Nl&&x.jsx("span",{style:{marginLeft:10},children:x.jsx(_a,{title:e.formatMessage({id:"footbar.serving.count",defaultMessage:"当前接待人数"}),children:x.jsx("span",{children:e.formatMessage({id:"footbar.serving.text",defaultMessage:"当前接待人数:0"})})})})]}),x.jsxs("span",{className:"footerRightButton",children:[x.jsx(_a,{title:o,children:x.jsx("span",{children:i})}),x.jsxs("span",{style:{marginLeft:"10px"},children:["v",YOe()]})]})]})},Nxe=()=>{const e=Mo(),{userInfo:t}=t1(),{translateString:n}=Zr(),{mode:r}=d.useContext(Ea),[i,a]=d.useState(""),[o,s]=d.useState(""),[l,c]=d.useState(""),u=()=>{e("/setting")};return d.useEffect(()=>{a(n(t==null?void 0:t.nickname)),s(n(t==null?void 0:t.description)),c(t==null?void 0:t.avatar)},[r,t]),x.jsx(x.Fragment,{children:x.jsx(wc,{title:i,content:o,placement:"rightBottom",children:x.jsx(x.Fragment,{children:x.jsx(Pi,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function Axe(){const e=Mo(),t=ia(r=>r.userInfo),n=VU(r=>r.addDevice);d.useEffect(()=>(ha?(window.electronAPI.loginSuccess(),window.electronAPI.onNewWindowCreated(r=>{console.log("Dashboard onNewWindowCreated content:",r),e("/enlarge",{state:{content:r}})}),window.electronAPI.onMulticastMessage(r=>{const i=JSON.parse(r);if(i.user.uid!==t.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",r);const a={type:yse,device:i.device,user:i.user,createdAt:i.createdAt};n(a)}}),window.electronAPI.onWebSocketMessage(r=>{console.log("Dashboard onWebSocketMessage content:",r)}),window.electronAPI.onHttpMessage(r=>{console.log("Dashboard onHttpMessage content:",r)}),window.electronAPI.onNotificationMessage(r=>{if(console.log("Dashboard onNotificationMessage content:",r),r.type===h6e){je.success("截图成功");const i=r.data;$n.emit(QO,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),ha?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const bQt=()=>{const e=Rn(),{doLogout:t}=Ixe(),{isLoggedIn:n,locale:r,changeLocale:i,mode:a,changeMode:o,handleUpdateAgentStatus:s}=d.useContext(Ea),{agentInfo:l}=Eo(h=>({agentInfo:h.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:x.jsx(xve,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[u,f]=d.useState(c);d.useEffect(()=>{if(f(c),l.uid!==""&&a===Rw){console.log("agentInfo changed",l);const h=[...c],m={key:"status",label:e.formatMessage({id:"menu.agent.status",defaultMessage:"Agent Status"}),type:"group",children:[{key:y0,icon:l.status===y0?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:vk,icon:l.status===vk?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:Fm,icon:l.status===Fm?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},g=h[0].children,v=g.findIndex(y=>y.key===m.key);v!==-1?g[v]=m:g.splice(0,0,m),h[0].children=g,f(h)}},[l,r,a]);const p=async h=>{console.log("click",h.key),h.key==="logout"?t():h.key==="zh-cn"||h.key==="zh-tw"||h.key==="en"?i(h.key):h.key===EC||h.key===Rw||h.key===lse?(console.log("mode",h.key),o(h.key)):(console.log("status"),h.key===Fm&&c3.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(h.key))};return x.jsx(x.Fragment,{children:n?x.jsx(x.Fragment,{children:x.jsx(ks,{inlineCollapsed:!0,onClick:p,style:{width:64,height:34},mode:"inline",items:u})}):x.jsx(x.Fragment,{})})},wQt=({open:e,notice:t,onAccept:n,onReject:r})=>{var h;const{translateString:i}=Zr(),[a,o]=d.useState(null),[s,l]=d.useState(null),c=fr(m=>m.addThread),u=Td(m=>m.updateMessageStatus);d.useEffect(()=>{var m,g,v,y,w;if(t){const b=JSON.parse(t.extra);o(b);const C={uid:(m=b==null?void 0:b.thread)==null?void 0:m.uid,topic:(g=b==null?void 0:b.thread)==null?void 0:g.topic,type:(v=b==null?void 0:b.thread)==null?void 0:v.type,state:(y=b==null?void 0:b.thread)==null?void 0:y.state,user:(w=b==null?void 0:b.thread)==null?void 0:w.user};l(C)}},[t]);const f=async()=>{[a.sender,a.receiver]=[a.receiver,a.sender],a.status=p0;const m=await m4e(a);if(console.log("acceptThread response:",m),m.data.code===200){const g=m.data.data;console.log("acceptedThread:",g),je.success("同意转接会话成功"),Yve(JSON.stringify(a),g),c(g),u(a.messageUid,p0),n()}else je.error(i(m.data.message))},p=async()=>{[a.sender,a.receiver]=[a.receiver,a.sender],a.status=h0;const m=await g4e(a);console.log("transferThreadReject response:",m),m.data.code===200?(je.success("拒绝转接会话成功"),Xve(JSON.stringify(a),s),u(a.messageUid,h0),r()):je.error(i(m.data.message))};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:`${(h=a==null?void 0:a.sender)==null?void 0:h.nickname}请求转接会话`,open:e,okText:"同意",onOk:f,cancelText:"拒绝",onCancel:p,children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:[{}],renderItem:()=>{var m,g;return x.jsx(Yn.Item,{style:{cursor:"pointer"},children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:(m=s==null?void 0:s.user)==null?void 0:m.avatar}),title:(g=s==null?void 0:s.user)==null?void 0:g.nickname,description:a==null?void 0:a.note})})}})})})};async function xQt(e){return bn("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:kn}})}const Dxe=()=>{const[e,t]=d.useState([]),n=new Kve;d.useEffect(()=>{(async()=>{try{const s=await n.getAllMessages();t(s)}catch(s){console.error("Error fetching messages from IndexedDB:",s)}})()},[]);const r=async o=>{try{await n.createMessage(o);const s=await n.getAllMessages();console.log("useIndexedDB createMessage newMessages: ",s),t(s)}catch(s){console.error("Error creating message in IndexedDB:",s)}},i=async(o,s)=>{try{await n.updateMessage(o,s);const l=await n.getAllMessages();t(l)}catch(l){console.error("Error updating message in IndexedDB:",l)}},a=async o=>{try{await n.deleteMessage(o);const s=await n.getAllMessages();t(s)}catch(s){console.error("Error deleting message in IndexedDB:",s)}};return d.useEffect(()=>{console.log("useIndexedDB useEffect");const o=function(s){console.log("useIndexedDB handleNewMessage",s),r(s)};return $n.on(jw,o),()=>{console.log("useIndexedDB useEffect return"),$n.off(jw,o)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:a}},{Search:SQt}=Ur,{Paragraph:die}=Zf,CQt=({onSelect:e,onCreateTicket:t})=>{const n=Rn(),{isDarkMode:r}=vz(),i=Vr(v=>v.currentOrg),{tickets:a,loading:o,error:s,filters:l,setFilter:c,currentTicket:u,setSearchText:f}=ja();d.useEffect(()=>{i!=null&&i.uid&&Za.loadTickets(i.uid)},[i==null?void 0:i.uid,l]);const p=v=>{f(v),Za.loadTicketsWithFilters({searchText:v})},h=v=>{let y="";switch(v){case"status":y=b0;break;case"priority":y=w0;break;case"assignment":y=x0;break;case"time":y=S0;break}c(v,y),Za.loadTicketsWithFilters({[v]:y})},m=v=>r?v?"#1f1f1f":"#141414":v?"#e6f7ff":"#ffffff",g=()=>{const v=[];return l!=null&&l.status&&l.status!==b0&&v.push(x.jsx(Vi,{color:Vw(l.status),closable:!0,onClose:()=>h("status"),children:n.formatMessage({id:`ticket.filter.status_${l.status.toLowerCase()}`})},"status")),l!=null&&l.priority&&l.priority!==w0&&v.push(x.jsx(Vi,{color:Fk(l.priority),closable:!0,onClose:()=>h("priority"),children:n.formatMessage({id:`ticket.filter.priority_${l.priority.toLowerCase()}`})},"priority")),l!=null&&l.assignment&&l.assignment!==x0&&v.push(x.jsx(Vi,{color:"blue",closable:!0,onClose:()=>h("assignment"),children:n.formatMessage({id:`ticket.filter.assignment_${l.assignment.toLowerCase()}`})},"assignment")),l!=null&&l.time&&l.time!==S0&&v.push(x.jsx(Vi,{color:"purple",closable:!0,onClose:()=>h("time"),children:n.formatMessage({id:`ticket.filter.time_${l.time.toLowerCase()}`})},"time")),v};return x.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[x.jsxs("div",{style:{padding:"10px 16px 16px",backgroundColor:r?"#141414":"#ffffff",borderBottom:"1px solid #f0f0f0"},children:[x.jsx(Yt,{type:"primary",block:!0,icon:x.jsx(Ny,{}),onClick:t,style:{marginBottom:16,width:"100%"},children:n.formatMessage({id:"ticket.list.create"})}),x.jsx(SQt,{placeholder:n.formatMessage({id:"ticket.list.search.placeholder"}),onSearch:p,style:{width:"100%"},allowClear:!0,enterButton:x.jsx(X8,{})}),x.jsx("div",{style:{marginTop:10},children:x.jsxs(Xr,{direction:"vertical",style:{width:"100%"},children:[g(),x.jsx("div",{children:x.jsxs(Vi,{color:"blue",children:[n.formatMessage({id:"ticket.list.total"}),": ",a.length]})})]})})]}),x.jsx("div",{style:{flex:1,overflow:"auto",position:"relative"},children:o?x.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:x.jsx(Zo,{tip:n.formatMessage({id:"ticket.loading"}),size:"large",spinning:!0,children:x.jsx("div",{style:{padding:"50px"}})})}):s?x.jsx(JE,{type:"error",message:n.formatMessage({id:"ticket.load.error"}),description:s}):x.jsx(Yn,{dataSource:a,renderItem:v=>x.jsx(Yn.Item,{onClick:()=>e(v),style:{cursor:"pointer",padding:"8px 16px",backgroundColor:m((u==null?void 0:u.uid)===v.uid),transition:"background-color 0.3s"},children:x.jsx(Yn.Item.Meta,{title:x.jsxs(x.Fragment,{children:[x.jsx("span",{style:{marginRight:10,color:r?"#ffffff":void 0},children:v.title}),x.jsx(Vi,{color:Vw(v.status),children:n.formatMessage({id:`ticket.filter.status_${v.status.toLowerCase()}`})}),x.jsx(Vi,{color:Fk(v.priority),children:n.formatMessage({id:`ticket.filter.priority_${v.priority.toLowerCase()}`})})]}),description:x.jsxs(x.Fragment,{children:[x.jsx(die,{ellipsis:{rows:1},style:{margin:0},children:v.description}),x.jsx(die,{ellipsis:{rows:1},style:{margin:0},children:new Date(v.updatedAt).toLocaleString()})]})})}),locale:{emptyText:n.formatMessage({id:"ticket.list.empty"})}})})]})},_Qt=({ticket:e,onEdit:t,onDelete:n})=>{const r=Rn();return x.jsx(Sh,{centered:!0,defaultActiveKey:"details",items:[{key:"details",label:r.formatMessage({id:"ticket.details.title"}),children:x.jsx("div",{style:{flex:1,overflow:"auto"},children:x.jsx(D3e,{ticket:e,isThreadTicket:!1,onEdit:t,onDelete:n})})},{key:"steps",label:r.formatMessage({id:"ticket.steps.title"}),children:x.jsx("div",{style:{flex:1,overflow:"auto"},children:x.jsx(F3e,{ticket:e,isThreadTicket:!1})})}]})},{Sider:kQt,Content:EQt,Header:$Qt}=Qn,Fxe=()=>{const{leftSiderStyle:e,headerStyle:t}=co(),n=Rn(),{currentTicket:r,setCurrentTicket:i,filters:a,setFilter:o,refreshTickets:s}=ja(),[l,c]=d.useState(!1),[u,f]=d.useState(!1),p=[{key:"status",label:n.formatMessage({id:"ticket.filter.by.status"}),children:[{key:b0,label:n.formatMessage({id:"ticket.filter.status_all"})},{key:cg,label:n.formatMessage({id:"ticket.filter.status_new"})},{key:G3,label:n.formatMessage({id:"ticket.filter.status_claimed"})},{key:ly,label:n.formatMessage({id:"ticket.filter.status_processing"})},{key:Y3,label:n.formatMessage({id:"ticket.filter.status_pending"})},{key:X3,label:n.formatMessage({id:"ticket.filter.status_holding"})},{key:Z3,label:n.formatMessage({id:"ticket.filter.status_reopened"})},{key:Q3,label:n.formatMessage({id:"ticket.filter.status_resolved"})},{key:J3,label:n.formatMessage({id:"ticket.filter.status_closed"})},{key:e4,label:n.formatMessage({id:"ticket.filter.status_cancelled"})}]},{key:"priority",label:n.formatMessage({id:"ticket.filter.by.priority"}),children:[{key:w0,label:n.formatMessage({id:"ticket.filter.priority_all"})},{key:Pse,label:n.formatMessage({id:"ticket.filter.priority_lowest"})},{key:kF,label:n.formatMessage({id:"ticket.filter.priority_low"})},{key:bk,label:n.formatMessage({id:"ticket.filter.priority_medium"})},{key:EF,label:n.formatMessage({id:"ticket.filter.priority_high"})},{key:$F,label:n.formatMessage({id:"ticket.filter.priority_urgent"})},{key:MF,label:n.formatMessage({id:"ticket.filter.priority_critical"})}]},{key:"assignment",label:n.formatMessage({id:"ticket.filter.by.assignment"}),children:[{key:x0,label:n.formatMessage({id:"ticket.filter.assignment_all"})},{key:Ise,label:n.formatMessage({id:"ticket.filter.assignment_my_created"})},{key:jse,label:n.formatMessage({id:"ticket.filter.assignment_my_assigned"})},{key:lR,label:n.formatMessage({id:"ticket.filter.assignment_unassigned"})}]},{key:"time",label:n.formatMessage({id:"ticket.filter.by.time"}),children:[{key:S0,label:n.formatMessage({id:"ticket.filter.time_all"})},{key:Nse,label:n.formatMessage({id:"ticket.filter.time_today"})},{key:Ase,label:n.formatMessage({id:"ticket.filter.time_yesterday"})},{key:Dse,label:n.formatMessage({id:"ticket.filter.time_this_week"})},{key:Fse,label:n.formatMessage({id:"ticket.filter.time_last_week"})},{key:Lse,label:n.formatMessage({id:"ticket.filter.time_this_month"})},{key:Bse,label:n.formatMessage({id:"ticket.filter.time_last_month"})}]}],h=b=>{console.log("handleTicketSelect",b),i(b)},m=()=>{c(!0),f(!1)},g=()=>{c(!1)},v=()=>{c(!0),f(!0)},y=()=>{console.log("handleDeleteTicket",r),yr.confirm({title:n.formatMessage({id:"ticket.delete.title"}),content:x.jsxs("div",{children:[x.jsx("p",{children:n.formatMessage({id:"ticket.delete.content"})}),x.jsxs("p",{style:{marginTop:"8px",color:"#666"},children:[n.formatMessage({id:"ticket.content.title"}),": ",r.title]})]}),onOk:async()=>{(await iWt(r.uid)).data.code===200?(je.success(n.formatMessage({id:"ticket.delete.success"})),s(),i(void 0)):je.error(n.formatMessage({id:"ticket.delete.failed"}))}})},w=({keyPath:b})=>{console.log("handleFilterClick",b);const[C,k]=b;o(k,C)};return x.jsxs(Qn,{children:[x.jsxs(kQt,{style:{...e,position:"relative",zIndex:2},width:156,children:[x.jsx($Qt,{style:t,children:n.formatMessage({id:"chat.navbar.ticket"})}),x.jsx(ks,{onClick:w,style:{width:156,position:"relative",zIndex:3},mode:"inline",selectedKeys:Object.values(a),items:p})]}),x.jsx(Qn,{children:x.jsx(EQt,{style:{position:"relative",zIndex:1},children:x.jsxs(Bp,{children:[x.jsx(Bp.Panel,{defaultSize:"20%",children:x.jsx(CQt,{onSelect:h,onCreateTicket:m})}),x.jsx(Bp.Panel,{defaultSize:"55%",children:x.jsx(YA,{fromTicketTab:!0,ticket:r})}),x.jsx(Bp.Panel,{children:x.jsx(_Qt,{ticket:r,onEdit:v,onDelete:y})})]})})}),l&&x.jsx(_4e,{open:l,isEdit:u,currentTicket:r,onSuccess:g,onCancel:()=>c(!1)})]})},MQt=()=>{const e=Rn(),{locale:t,changeLocale:n}=d.useContext(Ea),r=[{key:"lang",icon:x.jsx(Hrt,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=a=>{const o=a.key;n(o)};return x.jsx(ks,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})},TQt=({open:e,notice:t,onAccept:n,onReject:r})=>{var h;const{translateString:i}=Zr(),[a,o]=d.useState(null),[s,l]=d.useState(null),c=fr(m=>m.addThread),u=Td(m=>m.updateMessageStatus);d.useEffect(()=>{var m,g,v,y,w;if(t){const b=JSON.parse(t.extra);o(b);const C={uid:(m=b==null?void 0:b.thread)==null?void 0:m.uid,topic:(g=b==null?void 0:b.thread)==null?void 0:g.topic,type:(v=b==null?void 0:b.thread)==null?void 0:v.type,state:(y=b==null?void 0:b.thread)==null?void 0:y.state,user:(w=b==null?void 0:b.thread)==null?void 0:w.user};l(C)}},[t]);const f=async()=>{[a.sender,a.receiver]=[a.receiver,a.sender],a.status=p0;const m=await p4e(a);if(console.log("acceptThread response:",m),m.data.code===200){const g=m.data.data;console.log("acceptedThread:",g),je.success("同意邀请会话成功"),Zve(JSON.stringify(a),g),c(g),u(a.messageUid,p0),n()}else je.error(i(m.data.message))},p=async()=>{[a.sender,a.receiver]=[a.receiver,a.sender],a.status=h0;const m=await h4e(a);console.log("inviteThreadReject response:",m),m.data.code===200?(je.success("拒绝邀请会话成功"),Qve(JSON.stringify(a),s),u(a.messageUid,h0),r()):je.error(i(m.data.message))};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:`${(h=a==null?void 0:a.sender)==null?void 0:h.nickname}请求邀请会话`,open:e,okText:"同意",onOk:f,cancelText:"拒绝",onCancel:p,children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:[{}],renderItem:()=>{var m,g;return x.jsx(Yn.Item,{style:{cursor:"pointer"},children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:(m=s==null?void 0:s.user)==null?void 0:m.avatar}),title:(g=s==null?void 0:s.user)==null?void 0:g.nickname,description:a==null?void 0:a.note})})}})})})};async function PQt(e){return bn("/api/v1/org/create",{method:"POST",data:{...e,client:kn}})}const OQt=({open:e,onClose:t,onSuccess:n})=>{const r=Rn(),{userInfo:i}=t1(),[a,o]=d.useState(!1),[s,l]=d.useState(""),[c,u]=d.useState(!1),f=()=>{t()},p=()=>{je.error(r.formatMessage({id:"welcome.message.org.required"}))},h=async()=>{if(s===""){je.error(r.formatMessage({id:"welcome.message.org.name.required"}));return}o(!0),je.loading(r.formatMessage({id:"welcome.message.org.creating"}));const g=i!=null&&i.mobile?i==null?void 0:i.mobile:i==null?void 0:i.email,v={name:s,code:g,logo:"https://www.weiyuai.cn/logo.png",description:s+"description"};try{const y=await PQt(v);y.data.code===200?(o(!1),je.destroy(),je.success(r.formatMessage({id:"welcome.message.create.success"})),n(y.data.data),t()):(o(!1),je.destroy(),je.error(r.formatMessage({id:"welcome.message.create.failed"})))}catch{o(!1),je.destroy(),je.error(r.formatMessage({id:"welcome.message.create.failed"}))}},m=()=>{c?h():(u(!0),o(!1))};return x.jsxs(yr,{title:r.formatMessage({id:"welcome.modal.title"}),closable:!1,open:e,onCancel:p,maskClosable:!1,footer:[x.jsx(Yt,{type:"primary",onClick:f,disabled:!0,children:r.formatMessage({id:"welcome.modal.join"})},"join"),x.jsx(Yt,{type:"primary",loading:a,onClick:m,children:r.formatMessage({id:"welcome.modal.create"})},"create")],children:[x.jsx("p",{children:r.formatMessage({id:"welcome.modal.description"})}),c&&x.jsx(Ur,{placeholder:r.formatMessage({id:"welcome.modal.input.placeholder"}),value:s,onChange:g=>l(g.target.value),onPressEnter:h,autoFocus:!0})]})},RQt=({open:e,onClose:t})=>{const n=Rn(),r=Mo(),i=()=>{t(),r("/setting/certification")},a=()=>{localStorage.setItem("skipVerification","true"),t()};return x.jsx(yr,{title:n.formatMessage({id:"welcome.verify.modal.title",defaultMessage:"账号验证提示"}),open:e,onCancel:a,footer:[x.jsx(Yt,{onClick:a,children:n.formatMessage({id:"welcome.verify.later",defaultMessage:"稍后验证"})},"later"),x.jsx(Yt,{type:"primary",onClick:i,children:n.formatMessage({id:"welcome.verify.now",defaultMessage:"立即验证"})},"now")],children:x.jsx("p",{children:n.formatMessage({id:"welcome.verify.modal.description",defaultMessage:"您的邮箱和手机号尚未验证,为保障账号安全,建议您尽快完成验证。"})})})},IQt=()=>{const e=Rn(),{locale:t,isLoggedIn:n,hasRoleAgent:r}=d.useContext(Ea),i=Mo(),{footerStyle:a}=co(),{currentOrg:o,setCurrentOrg:s}=Vr(X=>({currentOrg:X.currentOrg,setCurrentOrg:X.setCurrentOrg})),{userInfo:l,setUserInfo:c}=ia(X=>({userInfo:X.userInfo,setUserInfo:X.setUserInfo})),u=Eo(X=>X.setAgentInfo),f=Na(X=>X.setMemberInfo),{threads:p,removeThread:h}=fr(X=>({threads:X.threads,removeThread:X.removeThread})),m=dU(X=>X.setWorkgroupResult),g=localStorage.getItem(bq),[v,y]=d.useState(g||"/chat"),[w,b]=d.useState(!1),[C,k]=d.useState(!1),[S,_]=d.useState(!1),[E,$]=d.useState(!1),[M,P]=d.useState(!1),[R,O]=d.useState({}),[j,I]=d.useState({});Dxe(),KU(),Axe(),yU();const A=d.useMemo(()=>[{path:"/chat",name:e.formatMessage({id:"menu.dashboard.chat"}),icon:x.jsx(bve,{}),component:x.jsx(XA,{})},{path:"/contact",name:e.formatMessage({id:"menu.dashboard.contact"}),icon:x.jsx(urt,{}),component:x.jsx(Oxe,{})},{path:"/ticket",name:e.formatMessage({id:"menu.dashboard.ticket"}),icon:x.jsx(irt,{}),component:x.jsx(Fxe,{})},{path:"/setting",name:e.formatMessage({id:"menu.dashboard.mine"}),icon:x.jsx(xve,{}),component:x.jsx(Rxe,{})}],[e,t]);d.useEffect(()=>{const X=p.some(ae=>ae.unreadCount>0);b(X)},[p]);const N=d.useCallback(async()=>{if(n)try{const X=await NF();X.data.code===200?c(X.data.data):je.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))}catch(X){console.error("Failed to fetch user profile:",X)}},[n,c,e]),F=d.useCallback(async()=>{var X,ae,oe;if(!(!n||!l)){if(!l.currentOrganization){k(!0);return}if(s(l.currentOrganization),r&&((X=l.currentOrganization)!=null&&X.uid))try{const le=await Ele((ae=l==null?void 0:l.currentOrganization)==null?void 0:ae.uid);console.log("agentResponse:",le.data),le.data.code===200&&u(le.data.data)}catch(le){console.error("Failed to fetch agent info:",le)}try{const le=await e0e((oe=l==null?void 0:l.currentOrganization)==null?void 0:oe.uid);console.log("memberResponse:",le.data),le.data.code===200&&f(le.data.data)}catch(le){console.error("Failed to fetch member info:",le)}L()}},[n,l,r,s,u]),K=d.useCallback(async()=>{if(!(!n||!(o!=null&&o.uid)))try{const X={pageNumber:0,pageSize:100,orgUid:o==null?void 0:o.uid},ae=await xQt(X);console.log("workgroupResponse:",ae.data,X),ae.data.code===200?m(ae.data):console.log("获取工作组失败")}catch(X){console.error("Failed to fetch workgroups:",X)}},[n,o,r,m]);d.useEffect(()=>{N()},[N]),d.useEffect(()=>{F()},[F]),d.useEffect(()=>{K()},[K]);const L=d.useCallback(()=>{localStorage.getItem("skipVerification")!=="true"&&l&&!l.emailVerified&&!l.mobileVerified&&_(!0)},[l]);d.useEffect(()=>{const X={[fse]:ae=>{console.log("handleTransfer:",ae);const oe=JSON.parse(ae);O(oe),$(!0)},[pse]:ae=>{var pe,me,re,fe,ve;console.log("handleTransferAccept:",ae),je.success("转接会话成功");const oe=JSON.parse(ae),le=JSON.parse(oe.extra),ce={uid:(pe=le==null?void 0:le.thread)==null?void 0:pe.uid,topic:(me=le==null?void 0:le.thread)==null?void 0:me.topic,type:(re=le==null?void 0:le.thread)==null?void 0:re.type,state:(fe=le==null?void 0:le.thread)==null?void 0:fe.state,user:(ve=le==null?void 0:le.thread)==null?void 0:ve.user};h(ce)},[hse]:()=>{console.log("handleTransferReject"),je.warning("转接会话已被拒绝")},[mse]:ae=>{console.log("handInvite:",ae);const oe=JSON.parse(ae);I(oe),P(!0)},[gse]:()=>{console.log("handInviteAccept"),je.success("邀请会话成功")},[vse]:()=>{console.log("handInviteReject"),je.warning("邀请会话已被拒绝")}};return Object.entries(X).forEach(([ae,oe])=>{$n.on(ae,oe)}),()=>{Object.entries(X).forEach(([ae,oe])=>{$n.off(ae,oe)})}},[h]);const V=d.useCallback(()=>{$(!1)},[]),B=d.useCallback(()=>{$(!1)},[]),U=d.useCallback(()=>{P(!1)},[]),Y=d.useCallback(()=>{P(!1)},[]),ee=d.useCallback(X=>{s(X)},[s]),ie=d.useCallback(X=>{y(X),i(X),localStorage.setItem(bq,X)},[i]),Z=d.useCallback((X,ae)=>x.jsx("div",{onClick:()=>ie(X.path),children:X.path==="/chat"&&w?x.jsx(Lo,{size:"small",dot:!0,offset:[-5,5],children:ae}):ae}),[ie,w]);return x.jsxs(S2e,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:A},location:{pathname:v},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:()=>[x.jsx(MQt,{},"language"),x.jsx(bQt,{},"menu")],menuHeaderRender:()=>x.jsx(Nxe,{}),menuFooterRender:()=>null,menuItemRender:Z,children:[x.jsx(R7,{children:x.jsx(B4,{},t.locale)}),x.jsx(I7,{style:a,children:x.jsx(jxe,{})}),E&&x.jsx(wQt,{open:E,notice:R,onAccept:V,onReject:B}),M&&x.jsx(TQt,{open:M,notice:j,onAccept:U,onReject:Y}),x.jsx(OQt,{open:C,onClose:()=>k(!1),onSuccess:ee}),x.jsx(RQt,{open:S,onClose:()=>_(!1)}),x.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},jQt=()=>x.jsx(x.Fragment,{children:x.jsx(B4,{})}),NQt=({open:e,onClose:t})=>{const n=Rn(),{translateString:r}=Zr(),i=()=>{t()},a=()=>{t()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:n.formatMessage({id:"profile.password.change.title",defaultMessage:"Change Password"}),forceRender:!0,open:e,footer:null,onCancel:a,children:x.jsxs(Kn,{initialValues:{oldPassword:"",newPassword:"",confirmPassword:""},onFinish:async o=>{if(console.log("changePassword:",o),o.newPassword.trim().length<6){je.error(n.formatMessage({id:"profile.password.length.error",defaultMessage:"Password must be at least 6 characters"}));return}if(o.newPassword!==o.confirmPassword){je.error(n.formatMessage({id:"profile.password.mismatch",defaultMessage:"The two passwords do not match"}));return}const s={oldPassword:o.oldPassword,newPassword:o.newPassword},l=await u$e(s);console.log("changePassword response:",l),l.data.code===200?(je.success(n.formatMessage({id:"profile.password.change.success",defaultMessage:"Password changed successfully!"})),i()):je.error(r(l.data.message))},children:[x.jsx(Or.Password,{name:"oldPassword",label:n.formatMessage({id:"profile.password.old",defaultMessage:"Old Password"}),extra:n.formatMessage({id:"profile.password.old.empty",defaultMessage:"Old password can be empty for phone login users"})}),x.jsx(Or.Password,{name:"newPassword",label:n.formatMessage({id:"profile.password.new",defaultMessage:"New Password"})}),x.jsx(Or.Password,{name:"confirmPassword",label:n.formatMessage({id:"profile.password.confirm",defaultMessage:"Confirm Password"})})]})})})},GU=({children:e,onSuccess:t,onError:n})=>{const r={file:null,file_name:"test.png",file_type:"image/png",is_avatar:"true",kb_type:_F,category_uid:"",kb_uid:"",client:kn},i={name:"file",accept:"image/*",action:fy(),headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},data:r,showUploadList:!1,beforeUpload(a){console.log("beforeUpload",a);const o=en(new Date).format("YYYYMMDDHHmmss")+"_"+a.name;r.file=a,r.file_name=o,r.file_type=a.type,console.log("beforeUpload",r)},onChange(a){if(a.file.status!=="uploading"&&console.log("not uploading:",a.file),a.file.status==="done")if(console.log("response: ",a.file.response),a.file.response.code===200){const o=a.file.response.data.fileUrl;t(o),je.success(`${a.file.name} 上传成功`)}else n(a.file),je.error(`${a.file.name} 上传失败`);else a.file.status==="error"&&(je.error(`${a.file.name} 上传失败`),n(a.file))}};return x.jsx(e1,{...i,children:e})},AQt=({open:e,onSubmit:t,onClose:n})=>{const r=Rn(),[i]=Kn.useForm(),{translateString:a}=Zr(),{userInfo:o,deviceUid:s}=ia(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=Vr(S=>S.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[p,h]=d.useState(""),[m,g]=d.useState(!1),v=async(S,_)=>{console.log("captchaUid",S," captchaValue",_),f(S),h(_)},y=async S=>{console.log("captcha check result",S),g(S)},w=()=>{n()},b=()=>{n()},C=async()=>{i.validateFields().then(async S=>{if(console.log("changeEmail:",S),o.email===S.email){je.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"}));return}const _={email:S.email,code:S.code,platform:gc},E=await Tle(_);console.log("changeEmail response:",E),E.data.code===200?(je.success(r.formatMessage({id:"profile.email.change.success",defaultMessage:"Email changed successfully!"})),t(S.email),w()):je.error(a(E.data.message))})},k=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"profile.email.change.title",defaultMessage:"Change Email"}),forceRender:!0,open:e,footer:null,onCancel:b,children:x.jsxs(Kn,{form:i,onFinish:async S=>{console.log("changeEmail:",S),C()},children:[x.jsx(Or,{fieldProps:{size:"large",prefix:x.jsx(A4,{})},name:"email",placeholder:r.formatMessage({id:"profile.email.placeholder",defaultMessage:"Enter email address"}),rules:[{required:!0,message:r.formatMessage({id:"profile.email.required",defaultMessage:"Please enter email address!"})},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:r.formatMessage({id:"profile.email.format.invalid",defaultMessage:"Invalid email format"})},{max:50,message:r.formatMessage({id:"profile.email.length.limit",defaultMessage:"Email cannot exceed 50 characters"})}]}),x.jsx(Kn.Item,{name:"captchaCode",children:x.jsx(eb,{onKaptchaChange:v,onKaptchaCheck:y})}),x.jsx(W4,{fieldProps:{size:"large",prefix:x.jsx(Zg,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.email.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(S,_)=>S?`${_} ${r.formatMessage({id:"profile.email.verification.code.countdown",defaultMessage:"seconds"})}`:r.formatMessage({id:"profile.email.verification.code.get",defaultMessage:"Get Code"}),phoneName:"email",name:"code",rules:[{required:!0,message:r.formatMessage({id:"profile.email.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:c,onGetCaptcha:async S=>{if(S){if(o.email===S){je.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"})),k();return}const _={email:S,type:L6e,captchaUid:u,captchaCode:p,deviceUid:s,userUid:o.uid,orgUid:l.uid,platform:gc},E=await nwe(_);if(E.data.code!==200){je.error(E.data.message),k();return}je.success(E.data.message)}else je.error(r.formatMessage({id:"profile.email.format.error",defaultMessage:"Invalid email format"}))}})]})})})},DQt=({open:e,onSubmit:t,onClose:n})=>{const r=Rn(),[i]=Kn.useForm(),{translateString:a}=Zr(),{userInfo:o,deviceUid:s}=ia(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=Vr(S=>S.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[p,h]=d.useState(""),[m,g]=d.useState(!1),v=async(S,_)=>{console.log("captchaUid",S," captchaValue",_),f(S),h(_)},y=async S=>{console.log("captcha check result",S),g(S)},w=()=>{n()},b=()=>{n()},C=async()=>{i.validateFields().then(async S=>{if(console.log("changeMobile:",S),o.mobile===S.mobile){je.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"}));return}const _={mobile:S.mobile,code:S.code,platform:gc},E=await Ple(_);console.log("changeMobile response:",E),E.data.code===200?(je.success(r.formatMessage({id:"profile.mobile.change.success",defaultMessage:"Mobile number changed successfully!"})),t(S.mobile),w()):je.error(a(E.data.message))})},k=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"profile.mobile.change.title",defaultMessage:"Change Mobile"}),forceRender:!0,open:e,footer:null,onCancel:b,children:x.jsxs(Kn,{form:i,onFinish:async S=>{console.log("changeMobile:",S),C()},children:[x.jsx(Or,{fieldProps:{size:"large",prefix:x.jsx(A4,{})},name:"mobile",placeholder:r.formatMessage({id:"profile.mobile.placeholder",defaultMessage:"Enter mobile number"}),rules:[{required:!0,message:r.formatMessage({id:"profile.mobile.required",defaultMessage:"Please enter mobile number!"})},{pattern:/^1\d{10}$/,message:r.formatMessage({id:"profile.mobile.format.invalid",defaultMessage:"Invalid mobile format"})}]}),x.jsx(Kn.Item,{name:"captchaCode",children:x.jsx(eb,{onKaptchaChange:v,onKaptchaCheck:y})}),x.jsx(W4,{fieldProps:{size:"large",prefix:x.jsx(Zg,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.mobile.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(S,_)=>S?`${_} ${r.formatMessage({id:"profile.mobile.verification.code.countdown",defaultMessage:"seconds"})}`:r.formatMessage({id:"profile.mobile.verification.code.get",defaultMessage:"Get Code"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:r.formatMessage({id:"profile.mobile.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:c,onGetCaptcha:async S=>{if(S&&S.length===11){if(o.mobile===S){je.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"})),k();return}const _={mobile:S,type:D6e,captchaUid:u,captchaCode:p,deviceUid:s,userUid:o.uid,orgUid:l.uid,platform:gc},E=await FH(_);if(E.data.code!==200){je.error(E.data.message),k();return}je.success(E.data.message)}else je.error(r.formatMessage({id:"profile.mobile.format.error",defaultMessage:"Invalid mobile format"}))}})]})})})},FQt={labelCol:{span:8},wrapperCol:{span:8}},fie=()=>{const e=Rn(),[t]=Kn.useForm(),{translateString:n}=Zr(),{userInfo:r,setUserInfo:i}=ia(M=>({userInfo:M.userInfo,setUserInfo:M.setUserInfo})),[a,o]=d.useState(""),[s,l]=d.useState(!1),[c,u]=d.useState(!1),[f,p]=d.useState(!1),h=()=>{l(!0)},m=()=>{u(!0)},g=()=>{p(!0)},v=()=>{l(!1)},y=()=>{u(!1)},w=M=>{u(!1),r.email=M,i(r),t.setFieldValue("email",M)},b=()=>{p(!1)},C=M=>{p(!1),r.mobile=M,i(r),t.setFieldValue("mobile",M)},k=M=>{console.log("handleUploadSuccess:",M),o(M)},S=M=>{console.log("handleUploadError:",M)},_=async M=>{const P={...r,...M,avatar:a};console.log(P);const R=await Mle(P);console.log("updateProfile response:",R.data),R.data.code===200?(je.success(e.formatMessage({id:"profile.update.success",defaultMessage:"Profile updated successfully"})),i(R.data.data)):je.error(R.data.message)},E=M=>Array.isArray(M)?M:M==null?void 0:M.fileList;d.useEffect(()=>{r&&o(r.avatar)},[r]);const $=async()=>{const M=await NF();console.log("handleRefreshProfile getProfile response:",M.data),M.data.code===200?(i(M.data.data),t.setFieldsValue({uid:M.data.data.uid,username:M.data.data.username,nickname:n(M.data.data.nickname),email:M.data.data.email,mobile:M.data.data.mobile,description:n(M.data.data.description)})):je.error(M.data.message)};return d.useEffect(()=>{$()},[]),x.jsxs("div",{className:"profile-container",children:[x.jsxs(Kn,{...FQt,form:t,onFinish:_,children:[x.jsx(Or,{name:"uid",label:"UID",readonly:!0}),x.jsx(Kn.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:E,label:e.formatMessage({id:"profile.form.avatar",defaultMessage:"Avatar"}),children:x.jsxs(GU,{onSuccess:k,onError:S,children:[x.jsx(Pi,{src:a}),x.jsx(Yt,{icon:x.jsx(D4,{}),children:e.formatMessage({id:"profile.form.upload",defaultMessage:"Upload"})})]},"avatar")}),x.jsx(Or,{name:"username",label:e.formatMessage({id:"profile.form.username",defaultMessage:"Username"}),rules:[{required:!0}]}),x.jsx(Yt,{onClick:h,children:e.formatMessage({id:"profile.button.change.password",defaultMessage:"Change Password"})}),x.jsx(Or,{name:"nickname",label:e.formatMessage({id:"profile.form.nickname",defaultMessage:"Nickname"}),rules:[{required:!0}]}),x.jsx(Or,{name:"email",label:r.emailVerified?e.formatMessage({id:"profile.email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"profile.email.unverified",defaultMessage:"Email Unverified"}),rules:[{type:"email"}],readonly:!0}),x.jsx(Yt,{onClick:m,children:e.formatMessage({id:"profile.button.change.email",defaultMessage:"Change Email"})}),x.jsx(Or,{name:"mobile",label:r.mobileVerified?e.formatMessage({id:"profile.mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"profile.mobile.unverified",defaultMessage:"Mobile Unverified"}),readonly:!0}),x.jsx(Yt,{onClick:g,children:e.formatMessage({id:"profile.button.change.mobile",defaultMessage:"Change Mobile"})}),x.jsx(Cd,{name:"description",label:e.formatMessage({id:"profile.form.description",defaultMessage:"Description"})})]}),s&&x.jsx(NQt,{open:s,onClose:v}),c&&x.jsx(AQt,{open:c,onSubmit:w,onClose:y}),f&&x.jsx(DQt,{open:f,onSubmit:C,onClose:b})]})},Lxe=d.createContext(null),YU=d.createContext(null);function LQt({children:e}){const[t,n]=d.useReducer(HQt,UQt);return x.jsx(Lxe.Provider,{value:t,children:x.jsx(YU.Provider,{value:n,children:e})})}function BQt(){return d.useContext(Lxe)}function zQt(){return d.useContext(YU)}function HQt(e,t){switch(t.type){case"added":return[...e,{id:t.id,text:t.text,done:!1}];case"changed":return e.map(n=>n.id===t.task.id?t.task:n);case"deleted":return e.filter(n=>n.id!==t.id);default:throw Error("Unknown action: "+t.type)}}const UQt=[{id:0,text:"Philosopher’s Path",done:!0},{id:1,text:"Visit the temple",done:!1},{id:2,text:"Drink matcha",done:!1}];let WQt=3;function VQt(){const[e,t]=d.useState(""),n=zQt();return x.jsxs(x.Fragment,{children:[x.jsx("input",{placeholder:"添加任务",value:e,onChange:r=>t(r.target.value)}),x.jsx("button",{onClick:()=>{t(""),n({type:"added",id:WQt++,text:e})},children:"添加"})]})}function qQt(){const e=BQt();return x.jsx("ul",{children:e.map(t=>x.jsx("li",{children:x.jsx(KQt,{task:t})},t.id))})}function KQt({task:e}){const[t,n]=d.useState(!1),r=d.useContext(YU);let i;return t?i=x.jsxs(x.Fragment,{children:[x.jsx("input",{value:e.text,onChange:a=>{r({type:"changed",task:{...e,text:a.target.value}})}}),x.jsx("button",{onClick:()=>n(!1),children:"保存"})]}):i=x.jsxs(x.Fragment,{children:[e.text,x.jsx("button",{onClick:()=>n(!0),children:"编辑"})]}),x.jsxs("label",{children:[x.jsx("input",{type:"checkbox",checked:e.done,onChange:a=>{r({type:"changed",task:{...e,done:a.target.value}})}}),i,x.jsx("button",{onClick:()=>{r({type:"deleted",id:e.id})},children:"删除"})]})}function GQt(){return x.jsxs(LQt,{children:[x.jsx("h1",{children:"任务列表"}),x.jsx(VQt,{}),x.jsx(qQt,{})]})}const YQt=()=>x.jsx(x.Fragment,{children:"Note"}),XQt=()=>x.jsx(Qg,{status:"warning",title:"TODO: 即将上线,敬请期待."}),pie=()=>x.jsx(Qg,{status:"warning",title:"TODO: 即将上线,敬请期待."}),ZQt=()=>{const e=Rn(),{isMqttConnected:t}=KU(),[n,r]=d.useState(!0),[i,a]=d.useState(!0),[o,s]=d.useState(!1),l=w=>{console.log("radio checked",w.target.value),s(w.target.value),ha?window.electronAPI.setOpenAtLogin(w.target.value):console.log("not electron")},c=async()=>{if(ha){const w=await window.electronAPI.getOpenAtLogin();console.log("openAtLogin:",w),s(w)}};d.useEffect(()=>{c(),qct(),Jve();const w=localStorage.getItem($C);w===null?(localStorage.setItem($C,"true"),r(!0)):r(w==="true");const b=localStorage.getItem(MC);b===null?(localStorage.setItem(MC,"true"),a(!0)):a(b==="true")},[]);const{themeMode:u,setThemeMode:f,locale:p,changeLocale:h}=d.useContext(Ea),m=w=>{console.log("radio checked",w.target.value),f(w.target.value),Yct(w.target.value)},g=w=>{console.log("language change",w.target.value),h(w.target.value)},v=w=>{console.log("play audio switch",w),localStorage.setItem($C,w?"true":"false"),r(w)},y=w=>{console.log("show network status notification",w),localStorage.setItem(MC,w?"true":"false"),a(w)};return x.jsxs("div",{className:"profile-container",children:[x.jsx("p",{children:x.jsx(O6,{checkedChildren:e.formatMessage({id:"setting.basic.sound.on",defaultMessage:"已开启消息提示音"}),unCheckedChildren:e.formatMessage({id:"setting.basic.sound.off",defaultMessage:"已关闭消息提示音"}),value:n,onChange:v})}),x.jsx("p",{children:x.jsx(O6,{checkedChildren:e.formatMessage({id:"setting.basic.notification.on",defaultMessage:"已开启网络状态通知"}),unCheckedChildren:e.formatMessage({id:"setting.basic.notification.off",defaultMessage:"已关闭网络状态通知"}),value:i,onChange:y})}),Nl&&x.jsxs(x.Fragment,{children:[x.jsx("p",{children:e.formatMessage({id:"setting.basic.connection.status",defaultMessage:"长链接状态:"})}),x.jsx("div",{children:t?e.formatMessage({id:"setting.basic.connection.connected",defaultMessage:"✅连接正常"}):e.formatMessage({id:"setting.basic.connection.disconnected",defaultMessage:"❌连接断开"})})]}),ha&&x.jsxs(x.Fragment,{children:[x.jsx("p",{children:e.formatMessage({id:"setting.basic.startup",defaultMessage:"开机启动:"})}),x.jsxs(us.Group,{onChange:l,value:o,children:[x.jsx(us,{value:!0,children:e.formatMessage({id:"setting.basic.startup.on",defaultMessage:"开机启动"})}),x.jsx(us,{value:!1,children:e.formatMessage({id:"setting.basic.startup.off",defaultMessage:"不开机启动"})})]})]}),x.jsx("p",{children:e.formatMessage({id:"setting.basic.theme",defaultMessage:"颜色主题:"})}),x.jsxs(us.Group,{onChange:m,value:u,children:[x.jsx(us,{value:"light",children:x.jsx(nu,{id:"theme.light"})}),x.jsx(us,{value:"dark",children:x.jsx(nu,{id:"theme.dark"})}),x.jsx(us,{value:"system",children:x.jsx(nu,{id:"theme.system"})})]}),x.jsxs("div",{children:[x.jsx("p",{children:e.formatMessage({id:"setting.basic.language",defaultMessage:"语言设置:"})}),x.jsxs(us.Group,{value:p.locale,onChange:g,children:[x.jsx(us,{value:"en",children:e.formatMessage({id:"i18n.lang.en-US"})},"en"),x.jsx(us,{value:"zh-cn",children:e.formatMessage({id:"i18n.lang.zh-CN"})},"zh-cn"),x.jsx(us,{value:"zh-tw",children:e.formatMessage({id:"i18n.lang.zh-TW"})},"zh-tw")]})]})]})},{Header:QQt,Sider:JQt,Content:eJt}=Qn,tJt=()=>{const e=Rn(),t=Mo(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:i,contentStyle:a}=co(),o=[{label:"剪贴板",key:"clipboard"},{label:"收藏",key:"collect"}],s=l=>{console.log("menu click ",l),t("/plugins/"+l.key)};return d.useEffect(()=>{},[]),x.jsxs(Qn,{children:[x.jsxs(JQt,{style:r,width:i,children:[x.jsx(Ur.Search,{style:{padding:10}}),x.jsx(ks,{mode:"inline",onClick:s,defaultSelectedKeys:["clipboard"],defaultOpenKeys:["plugins"],items:o})]}),x.jsxs(Qn,{children:[x.jsx(QQt,{style:n,children:e.formatMessage({id:"menu.dashboard.plugins"})}),x.jsx(eJt,{style:a,children:x.jsx(B4,{})})]})]})},nJt=()=>{const e=ia(n=>n.userInfo),t=()=>{var r;console.log("downloadQRCode");const n=(r=document.getElementById("myqrcode"))==null?void 0:r.querySelector("canvas");if(n){const i=n.toDataURL(),a=document.createElement("a");a.download=e.username+"_profile.png",a.href=i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}else console.log("canvas is null")};return x.jsxs("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[x.jsx(az,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"/agent/logo.png"}),x.jsx(Yt,{type:"primary",onClick:t,style:{marginTop:"20px"},children:"下载二维码"})]})},rJt=()=>x.jsx(x.Fragment,{children:x.jsx("div",{children:"ShortcutAdmin"})}),iJt=()=>{const e=Mo();return x.jsx(Qg,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:x.jsx(Yt,{type:"primary",onClick:()=>e("/"),children:"返回主页"})})},aJt={labelCol:{span:8},wrapperCol:{span:8}},oJt=()=>{const e=Rn(),[t]=Kn.useForm(),{userInfo:n,setUserInfo:r}=ia(u=>({userInfo:u.userInfo,setUserInfo:u.setUserInfo})),[i,a]=d.useState(""),o={file:null,file_name:"test.png",file_type:"image/png"},s={name:"file",action:fy(),headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},showUploadList:!1,data:o,beforeUpload(u){const f=en(new Date).format("YYYYMMDDHHmmss")+"_"+u.name;o.file=u,o.file_name=f,o.file_type=u.type,console.log("beforeUpload",o)},onChange(u){if(u.file.status!=="uploading"&&console.log(u.file,u.fileList),u.file.status==="done"){const f=u.file.response.data.fileUrl;console.log("url: ",f),a(f),je.success(`${u.file.name} file uploaded successfully`)}else u.file.status==="error"&&je.error(`${u.file.name} file upload failed.`)}},l=async u=>{const f={...n,...u,avatar:i};console.log(f);const p=await Mle(f);console.log("updateProfile response:",p),p.data.code===200?(je.success("修改成功"),r(p.data.data)):je.error("修改失败")},c=u=>Array.isArray(u)?u:u==null?void 0:u.fileList;return d.useEffect(()=>{n&&a(n.avatar)},[n]),x.jsxs("div",{className:"profile-container",children:[x.jsx("p",{children:"员工信息"}),x.jsxs(Kn,{...aJt,style:{marginLeft:20},form:t,onFinish:l,initialValues:{nickname:n.nickname,email:n.email,mobile:n.mobile,description:n.description},children:[x.jsx(Zi.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:c,label:e.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:x.jsxs(e1,{...s,children:[x.jsx(Pi,{src:i}),x.jsx(Yt,{icon:x.jsx(D4,{}),children:e.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),x.jsx(Or,{name:"nickname",label:"昵称",rules:[{required:!0}],children:x.jsx(Ur,{})}),x.jsx(Or,{name:"email",label:"邮箱",rules:[{type:"email"}],disabled:!0,children:x.jsx(Ur,{})}),x.jsx(Or,{name:"mobile",label:"手机号",disabled:!0,children:x.jsx(Ur,{})}),x.jsx(Cd,{name:"description",label:"描述",children:x.jsx(Ur.TextArea,{})})]})]})},sJt=()=>{const e=n1(),{content:t}=e.state||{},[n,r]=d.useState(30),i=()=>{r(c=>c+2)},a=()=>{n>30&&r(c=>c-2)},o=()=>{navigator.clipboard.writeText(t).then(()=>{je.success("复制成功")}).catch(c=>{console.error("无法复制文本: ",c),je.error(c)})},s=()=>{je.warning("TODO: 即将上线,敬请期待")},l=()=>{je.warning("TODO: 即将上线,敬请期待")};return x.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100vh"},children:[x.jsx("div",{style:{marginBottom:"1rem"},children:x.jsxs(Xr,{children:[x.jsx(Yt,{shape:"circle",onClick:i,style:{marginRight:"0.5rem"},children:"+"}),x.jsx(Yt,{shape:"circle",onClick:a,children:"-"}),x.jsx(Yt,{onClick:o,children:"复制"}),Nl&&x.jsx(Yt,{onClick:s,children:"转发"}),Nl&&x.jsx(Yt,{onClick:l,children:"收藏"})]})}),x.jsx("div",{style:{fontSize:`${n}px`},dangerouslySetInnerHTML:{__html:t}})]})},{Sider:lJt,Content:cJt}=Qn,uJt=[{key:"grp",label:"留言管理",type:"group",children:[{key:"13",label:"待分配"},{key:"14",label:"待处理"},{key:"15",label:"处理中"},{key:"16",label:"处理完毕"}]}],dJt=()=>{const{leftSiderStyle:e,leftSiderWidth:t}=co(),n=r=>{console.log("click ",r)};return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(lJt,{style:e,width:t,children:x.jsx(ks,{onClick:n,style:{width:256},mode:"inline",items:uJt})}),x.jsx(Qn,{children:x.jsx(cJt,{children:"leavemsg"})})]})})},{Sider:fJt,Content:pJt}=Qn,hJt=[{key:"grp",label:"实时监控",type:"group",children:[{key:"13",label:"当前在线"},{key:"14",label:"已离线"}]}],mJt=()=>{const{leftSiderStyle:e,leftSiderWidth:t}=co(),n=r=>{console.log("click ",r)};return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(fJt,{style:e,width:t,children:x.jsx(ks,{onClick:n,mode:"inline",items:hJt})}),x.jsx(Qn,{children:x.jsx(pJt,{children:"监控"})})]})})},{Sider:gJt,Content:vJt}=Qn,yJt=()=>{const{leftSiderStyle:e,leftSiderWidth:t,contentStyle:n}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(gJt,{style:e,width:t}),x.jsx(Qn,{children:x.jsx(vJt,{style:n})})]})})},N7=so()(es(ts(ns((e,t)=>({categoryResult:{data:{content:[]}},categoryTreeOptions:[],categorySelectOptions:[],currentCategory:{uid:""},setCategoryResult(n){var s,l;const r=wJt(n),a={...n,data:{content:[{uid:"all",name:"i18n.all"},...n.data.content]}},o=bJt(a);e({categoryResult:a,categoryTreeOptions:o,categorySelectOptions:r}),((l=(s=n.data)==null?void 0:s.content)==null?void 0:l.length)>0?e({currentCategory:n.data.content[0]}):e({currentCategory:{uid:""}})},insertCategory(n){e(r=>{r.categoryResult.data.content.unshift(n)})},upgradeCategory(n){e(r=>{const i=r.categoryResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i[a]=n:console.warn(`Category with uid ${n.uid} not found.`)})},setCurrentCategory(n){e({currentCategory:n})},setCurrentCategoryUid(n){const r=t().categoryResult.data.content.find(i=>i.uid===n);e({currentCategory:r})},deleteCategoryCache:()=>e({},!0)})),{name:O6e})));function bJt(e){const t=[];return e.data.content.forEach(n=>{const r={title:n.name,key:n.uid,children:[]};n.children&&Array.isArray(n.children)&&(r.children=n.children.map(i=>({title:i.name,key:i.uid,children:[]}))),t.push(r)}),t}function wJt(e){const t=[];return e.data.content.forEach(n=>{const r={label:n.name,value:n.uid};t.push(r)}),t}const xJt=({open:e,level:t,type:n,isEdit:r,onCancel:i,onSubmit:a})=>{const[o]=Kn.useForm(),s=Rn(),{translateString:l}=Zr(),c=Vr(h=>h.currentOrg),u=N7(h=>h.currentCategory);d.useEffect(()=>{r?o.setFieldsValue({name:l(u==null?void 0:u.name)}):o.resetFields()},[e,r]);const f=()=>{o.validateFields().then(async h=>{console.log("handleSaveDep:",h);const m={uid:r?u==null?void 0:u.uid:"",name:h.name,level:t,type:n,kbUid:h.kbUid,orgUid:c==null?void 0:c.uid};a(m)}).catch(h=>{console.log("Failed:",h),je.error(s.formatMessage({id:"category.create.failed",defaultMessage:"Failed to create category"}))})},p=h=>{h.key==="Enter"&&f()};return x.jsx("div",{children:x.jsx(yr,{title:r?s.formatMessage({id:"category.form.edit.title",defaultMessage:"Edit Category"}):s.formatMessage({id:"category.form.create.title",defaultMessage:"Create Category"}),open:e,forceRender:!0,onOk:f,onCancel:i,getContainer:!1,children:x.jsx(Kn,{form:o,name:"categoryForm",submitter:!1,children:x.jsx(Or,{label:s.formatMessage({id:"category.form.name",defaultMessage:"Category Name"}),name:"name",rules:[{required:!0,message:s.formatMessage({id:"category.form.name.required",defaultMessage:"Please enter category name!"})}],fieldProps:{onKeyDown:p,placeholder:s.formatMessage({id:"category.form.name.placeholder",defaultMessage:"Enter category name"})}})})})})},SJt=({level:e,type:t})=>{var R;const{isDarkMode:n}=Dg(),r=Rn(),[i,a]=d.useState(!0),o=Vr(O=>O.currentOrg),{translateString:s}=Zr(),[l,c]=d.useState(!1),[u,f]=yr.useModal(),{categoryResult:p,currentCategory:h,setCategoryResult:m,setCurrentCategory:g,insertCategory:v,upgradeCategory:y}=N7(O=>({categoryResult:O.categoryResult,currentCategory:O.currentCategory,setCategoryResult:O.setCategoryResult,setCurrentCategory:O.setCurrentCategory,insertCategory:O.insertCategory,upgradeCategory:O.upgradeCategory})),w=O=>{u.confirm({title:r.formatMessage({id:"deleteTip"}),icon:x.jsx(mve,{}),content:`${r.formatMessage({id:"deleteAffirm",defaultMessage:"Delete"})}【${s(O.name)}】?`,onOk(){C(O)},onCancel(){},okText:r.formatMessage({id:"ok"}),cancelText:r.formatMessage({id:"cancel"})})},b=async()=>{console.log("handleEditCategory: ",h),a(!0),c(!0)},C=async O=>{console.log("handleDeleteCategory: ",O);const j={uid:O==null?void 0:O.uid,orgUid:o==null?void 0:o.uid},I=await GUt(j);console.log("deleteCategory: ",I),I.data.code===200?(je.success(I.data.message),k()):je.error(I.data.message)},k=async()=>{const O={pageNumber:0,pageSize:100,orgUid:o==null?void 0:o.uid,level:e,type:t},j=await n7(O);console.log("queryCategoriesByOrg: ",e,t,j.data),j.data.code===200?m(j.data):je.error(j.data.message)};d.useEffect(()=>{k()},[]);const S=()=>{c(!1)},_=()=>{a(!1),c(!0)},E=async O=>{console.log("handleSubmit: ",O),je.loading(r.formatMessage({id:"creating"}));const j=await A3e(O);console.log("createCategory response: ",j),j.data.code===200?(je.destroy(),je.success(r.formatMessage({id:"create.success"})),v(j.data.data),c(!1)):(je.destroy(),je.error(j.data.message))},$=async O=>{console.log("handleUpdateCategory: ",O),je.loading(r.formatMessage({id:"updating"}));const j=await KUt(O);console.log("createCategory response: ",j),j.data.code===200?(je.destroy(),je.success(r.formatMessage({id:"update.success"})),y(j.data.data),c(!1)):(je.destroy(),je.error(j.data.message))},M=async O=>{console.log("handleSubmit: ",O),i?$(O):E(O)},P=(O,j)=>{console.log("list on click",O,j),g(O)};return x.jsxs(x.Fragment,{children:[x.jsxs(o3,{gap:"small",wrap:"wrap",style:{margin:5},children:[x.jsx(Yt,{type:"primary",size:"small",icon:x.jsx(yit,{}),onClick:_,children:r.formatMessage({id:"create"})}),(h==null?void 0:h.uid)!==""&&(h==null?void 0:h.uid)!=="all"&&x.jsx(Yt,{size:"small",onClick:b,children:r.formatMessage({id:"pages.robot.edit"})}),(h==null?void 0:h.uid)!==""&&(h==null?void 0:h.uid)!=="all"&&x.jsx(Yt,{onClick:()=>w(h),size:"small",style:{float:"right"},danger:!0,children:r.formatMessage({id:"pages.robot.delete",defaultMessage:"Delete"})})]}),x.jsx(Yn,{itemLayout:"horizontal",dataSource:(R=p==null?void 0:p.data)==null?void 0:R.content,renderItem:(O,j)=>x.jsx(Yn.Item,{style:(h==null?void 0:h.uid)===O.uid?{backgroundColor:n?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>P(O,j),children:x.jsx(Yn.Item.Meta,{style:{marginLeft:"10px"},title:s(O.name)})})}),l&&x.jsx(xJt,{open:l,level:e,type:t,isEdit:i,onCancel:S,onSubmit:M}),f]})},CJt=({isEdit:e,robot:t,open:n,level:r,onClose:i,onSubmit:a})=>{var w,b,C;const[o]=Kn.useForm(),s=Rn(),l=Vr(k=>k.currentOrg),[c]=d.useState("https://cdn.weiyuai.cn/assets/images/llm/provider/zhipu.png"),[u,f]=d.useState(),p=N7(k=>k.categoryResult),{translateString:h}=Zr();d.useEffect(()=>{var k,S,_;if(e&&t&&o){o.setFieldsValue({uid:t==null?void 0:t.uid,nickname:t==null?void 0:t.nickname,prompt:(k=t==null?void 0:t.llm)==null?void 0:k.prompt,description:t==null?void 0:t.description,categoryUid:t==null?void 0:t.categoryUid});const E=(_=(S=p==null?void 0:p.data)==null?void 0:S.content)==null?void 0:_.find($=>$.uid===(t==null?void 0:t.categoryUid));f(E)}else console.log("form resetFields"),o.resetFields()},[t]);const m=()=>{console.log("handleSubmit"),o.validateFields().then(k=>{console.log("Form values:",k);const S={uid:e?t==null?void 0:t.uid:"",nickname:k.nickname,avatar:c,categoryUid:u==null?void 0:u.uid,llm:{prompt:k.prompt},description:k.description,type:CF,level:r,orgUid:l==null?void 0:l.uid};console.log("robotObject:",S),a(S)}).catch(k=>{console.log("Form errors:",k)})};d.useEffect(()=>{},[t]);const g=k=>{console.log("handleUploadSuccess:",k)},v=k=>{console.log("handleUploadError:",k),je.error(k)},y=k=>Array.isArray(k)?k:k==null?void 0:k.fileList;return x.jsx("div",{children:x.jsx(Ch,{title:e?"编辑提示语":"新建提示语",onClose:i,open:n,extra:x.jsxs(Xr,{children:[x.jsx(Yt,{onClick:i,children:"取消"}),x.jsx(Yt,{onClick:m,type:"primary",children:"保存"})]}),children:x.jsxs(Kn,{form:o,name:"model",submitter:!1,children:[x.jsx(ro,{label:"类别",name:"categoryUid",required:!0,options:(C=(b=(w=p==null?void 0:p.data)==null?void 0:w.content)==null?void 0:b.filter(k=>k.uid!=="all"))==null?void 0:C.map(k=>({label:h(k==null?void 0:k.name),value:k==null?void 0:k.uid})),fieldProps:{allowClear:!0,onChange:k=>{var S,_;console.log("handleChange:",k),f((_=(S=p==null?void 0:p.data)==null?void 0:S.content)==null?void 0:_.find(E=>E.uid===k))}}}),x.jsx(Or,{label:"昵称",name:"nickname",required:!0}),x.jsx(Kn.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:y,label:s.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:x.jsxs(GU,{onSuccess:g,onError:v,children:[x.jsx(Pi,{src:c}),x.jsx(Yt,{icon:x.jsx(D4,{}),children:s.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),x.jsx(Cd,{label:"提示语Prompt",name:"prompt",required:!0}),x.jsx(Cd,{label:"简介描述",name:"description"})]})})})},_Jt=({level:e,type:t})=>{console.log("RobotList",e,t);const n=d.useRef(!1),r=Rn(),{isDarkMode:i}=Dg(),[a,o]=d.useState(!0),{translateString:s}=Zr(),[l,c]=d.useState(!1),[u,f]=d.useState(),[p,h]=d.useState({}),m=N7(I=>I.currentCategory),g=Vr(I=>I.currentOrg),[v,y]=yr.useModal(),w=Mo(),b=fr(I=>I.addThread),C=fr(I=>I.setCurrentThread),k=PF(I=>I.setCurrentMenu),S=ia(I=>I.userInfo),_=I=>{v.confirm({title:r.formatMessage({id:"deleteTip"}),icon:x.jsx(mve,{}),content:r.formatMessage({id:"robot.list.delete.confirm",defaultMessage:"Delete【{name}】?"},{name:s(I.nickname)}),onOk(){E(I)},onCancel(){console.log("取消")},okText:r.formatMessage({id:"ok"}),cancelText:r.formatMessage({id:"cancel"})})},E=async I=>{var N;console.log("delete robot",I),je.loading(r.formatMessage({id:"robot.list.deleting",defaultMessage:"Deleting"}));const A=await GFt(I);if(console.log("delete robot response",A),A.data.code===200){je.destroy(),je.success(r.formatMessage({id:"robot.list.delete.success",defaultMessage:"Delete success"}));const F=[...(N=u==null?void 0:u.data)==null?void 0:N.content];for(const K in F)if(F[K].uid===I.uid){F.splice(Number(K),1);break}f({...u,data:{content:F}})}else je.destroy(),je.error(A.data.message)},$=async()=>{if(n.current){console.log("isLoading: 1",n.current);return}n.current=!0,je.loading(r.formatMessage({id:"robot.list.loading",defaultMessage:"Loading"}));const I={pageNumber:0,pageSize:100,orgUid:g==null?void 0:g.uid,categoryUid:(m==null?void 0:m.uid)==="all"?"":m==null?void 0:m.uid,type:CF,level:e},A=await qwe(I);console.log("getPlatformRobots queryRobotsByOrg: ",A),A.data.code===200?(je.destroy(),f(A.data)):(je.destroy(),je.error(A.data.message)),n.current=!1};d.useEffect(()=>{$()},[m]);const M=async I=>{var A,N,F,K;if(console.log("handleSubmit"),a){const L=await qFt(I);if(console.log("updatePromptRobot:",L),L.data.code===200){je.success(r.formatMessage({id:"robot.list.update.success",defaultMessage:"Update success"}));const V=[...(A=u==null?void 0:u.data)==null?void 0:A.content];for(const B in V)if(V[B].uid===I.uid){V[B]=(N=L==null?void 0:L.data)==null?void 0:N.data;break}f({...u,data:{content:V}}),c(!1)}else je.error(L.data.message)}else{const L=await VFt(I);if(console.log("createPromptRobot:",L),L.data.code===200){je.success(r.formatMessage({id:"robot.list.create.success",defaultMessage:"Create success"}));const V=[...(F=u==null?void 0:u.data)==null?void 0:F.content];V.unshift((K=L==null?void 0:L.data)==null?void 0:K.data),f({...u,data:{content:V}}),c(!1)}else je.error(L.data.message)}},P=(I,A)=>{console.log("list on click",I,A),h(I)},R=(I,A)=>{console.log("list on edit",I,A),o(!0),h(I),c(!0)},O=(I,A)=>{console.log("list on delete",I,A),h(I),_(I)},j=async(I,A)=>{console.log("startRobotChat",I,A);const N={user:{uid:I==null?void 0:I.uid,nickname:I==null?void 0:I.nickname,avatar:I==null?void 0:I.avatar,type:W5},topic:Tse+(I==null?void 0:I.uid)+"/"+(S==null?void 0:S.uid),content:"",type:gF,extra:"",client:kn};console.log("startRobotChat request:",N);const F=await YH(N);console.log("startRobotChat response:",F.data),F.data.code===200?(b(F.data.data),C(F.data.data),k("chat"),w("/chat")):je.error(F.data.message)};return x.jsxs(x.Fragment,{children:[x.jsx(Xr,{children:x.jsx(Yt,{icon:x.jsx(Ny,{}),type:"primary",style:{marginLeft:10,marginTop:10},onClick:()=>{o(!1),c(!0)},children:r.formatMessage({id:"robot.list.add",defaultMessage:"Add AI Agent"})})}),x.jsx(Yn,{dataSource:u==null?void 0:u.data.content,style:{marginTop:10},renderItem:(I,A)=>{var N;return x.jsx(Yn.Item,{style:(p==null?void 0:p.uid)===I.uid?{backgroundColor:i?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>P(I,A),actions:[x.jsx(Yt,{onClick:()=>j(I,A),children:r.formatMessage({id:"robot.list.chat",defaultMessage:"Chat"})}),x.jsx(Yt,{type:"link",onClick:()=>R(I,A),children:r.formatMessage({id:"robot.list.edit",defaultMessage:"Edit"})},"edit"),x.jsx(Yt,{type:"link",onClick:()=>O(I,A),children:r.formatMessage({id:"robot.list.delete",defaultMessage:"Delete"})},"delete")],children:x.jsx(Yn.Item.Meta,{style:{marginLeft:"10px"},title:s(I==null?void 0:I.nickname)+" "+s(I==null?void 0:I.description),description:s((N=I==null?void 0:I.llm)==null?void 0:N.prompt)})},I==null?void 0:I.uid)}}),l&&x.jsx(CJt,{isEdit:a,robot:p,level:e,open:l,onClose:()=>c(!1),onSubmit:M}),y]})},{Sider:kJt,Header:hie,Content:EJt}=Qn,$Jt=()=>{const e=Rn(),{leftSiderStyle:t,leftSiderWidth:n,headerStyle:r,contentStyle:i}=co();return x.jsxs(Qn,{children:[x.jsxs(kJt,{width:n,style:t,children:[x.jsx(hie,{style:r,children:e.formatMessage({id:"chat.navbar.category"})}),x.jsx(SJt,{level:Lw,type:w5e})]}),x.jsxs(Qn,{children:[x.jsx(hie,{style:r,children:e.formatMessage({id:"chat.navbar.ai"})}),x.jsx(EJt,{style:i,children:x.jsx(_Jt,{level:Lw})})]})]})},MJt=({open:e,onSubmit:t,onClose:n})=>{const r=Rn(),[i]=Kn.useForm(),{translateString:a}=Zr(),{userInfo:o,deviceUid:s}=ia(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=Vr(S=>S.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[p,h]=d.useState(""),[m,g]=d.useState(!1);d.useEffect(()=>{e?i.setFieldsValue({email:o==null?void 0:o.email}):(i.resetFields(),k())},[e]);const v=async(S,_)=>{console.log("captchaUid",S," captchaValue",_),f(S),h(_)},y=async S=>{console.log("captcha check result",S),g(S)},w=()=>{n()},b=()=>{n()},C=async()=>{i.validateFields().then(async S=>{console.log("changeEmail:",S);const _={email:S.email,code:S.code,platform:gc},E=await Tle(_);console.log("changeEmail response:",E),E.data.code===200?(je.success("Email verify successfully!"),t(S.email),w()):je.error(a(E.data.message))})},k=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"}),forceRender:!0,open:e,footer:null,onCancel:b,children:x.jsxs(Kn,{form:i,onFinish:async S=>{console.log("changeEmail:",S),C()},children:[x.jsx(Or,{fieldProps:{size:"large",prefix:x.jsx(A4,{})},name:"email",placeholder:r.formatMessage({id:"pages.login.email.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:"邮箱格式不正确"},{max:50,message:"邮箱不得超过50字符"}],readonly:!0}),x.jsx(Kn.Item,{name:"captchaCode",rules:[],children:x.jsx(eb,{onKaptchaChange:v,onKaptchaCheck:y})}),x.jsx(W4,{fieldProps:{size:"large",prefix:x.jsx(Zg,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(S,_)=>S?`${_} ${r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"email",name:"code",rules:[{required:!0}],fieldRef:c,onGetCaptcha:async S=>{if(console.log("email:",S),S){const _={email:S,type:B6e,captchaUid:u,captchaCode:p,deviceUid:s,userUid:o==null?void 0:o.uid,orgUid:l.uid,platform:gc},E=await nwe(_);if(console.log("sendEmailCode",E),E.data.code!==200){je.error(a(E.data.message)),k();return}je.success(a(E.data.message))}else je.error("手机号格式错误")}})]})})})},TJt=({open:e,onSubmit:t,onClose:n})=>{const r=Rn(),[i]=Kn.useForm(),{translateString:a}=Zr(),{userInfo:o,deviceUid:s}=ia(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=Vr(S=>S.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[p,h]=d.useState(""),[m,g]=d.useState(!1);d.useEffect(()=>{e?i.setFieldsValue({mobile:o==null?void 0:o.mobile}):(i.resetFields(),k())},[e]);const v=async(S,_)=>{console.log("captchaUid",S," captchaValue",_),f(S),h(_)},y=async S=>{console.log("captcha check result",S),g(S)},w=()=>{n()},b=()=>{n()},C=async()=>{i.validateFields().then(async S=>{console.log("changeMobile:",S);const _={mobile:S.mobile,code:S.code,platform:gc},E=await Ple(_);console.log("changeMobile response:",E),E.data.code===200?(je.success("Mobile verify successfully!"),t(S.mobile),w()):je.error(a(E.data.message))})},k=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"}),forceRender:!0,open:e,footer:null,onCancel:b,children:x.jsxs(Kn,{form:i,onFinish:async S=>{console.log("changeMobile:",S),C()},children:[x.jsx(Or,{fieldProps:{size:"large",prefix:x.jsx(A4,{})},name:"mobile",placeholder:r.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0},{pattern:/^1\d{10}$/}],readonly:!0}),x.jsx(Kn.Item,{name:"captchaCode",rules:[],children:x.jsx(eb,{onKaptchaChange:v,onKaptchaCheck:y})}),x.jsx(W4,{fieldProps:{size:"large",prefix:x.jsx(Zg,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(S,_)=>S?`${_} ${r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0}],fieldRef:c,onGetCaptcha:async S=>{if(console.log("mobile:",S),S&&S.length===11){const _={mobile:S,type:F6e,captchaUid:u,captchaCode:p,deviceUid:s,userUid:o==null?void 0:o.uid,orgUid:l.uid,platform:gc},E=await FH(_);if(console.log("sendMobileCode",E),E.data.code!==200){je.error(a(E.data.message)),k();return}je.success(a(E.data.message))}else je.error("手机号格式错误")}})]})})})},PJt=()=>{const e=Rn(),t=Mo(),[n]=Kn.useForm(),{userInfo:r,setUserInfo:i}=ia(y=>({userInfo:y.userInfo,setUserInfo:y.setUserInfo})),[a,o]=d.useState(!1),[s,l]=d.useState(!1),c=()=>{o(!0)},u=()=>{l(!0)},f=()=>{o(!1)},p=y=>{o(!1),r.email=y,r.emailVerified=!0,i(r),n.setFieldValue("email",y)},h=()=>{l(!1)},m=y=>{l(!1),r.mobile=y,r.mobileVerified=!0,i(r),n.setFieldValue("mobile",y)};d.useEffect(()=>{n.setFieldsValue({uid:r.uid,username:r.username,nickname:r.nickname,email:r.email,mobile:r.mobile})},[]);const g=()=>{t("/setting/profile")},v=()=>{t("/setting/profile")};return x.jsxs("div",{children:[x.jsxs(Kn,{form:n,submitter:!1,children:[x.jsx(Or,{name:"email",label:r!=null&&r.emailVerified?e.formatMessage({id:"email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"email.unverified",defaultMessage:"email unverified"}),readonly:!0}),!(r!=null&&r.emailVerified)&&r.email!=null&&x.jsx(Yt,{onClick:c,children:e.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"})}),x.jsx(Yt,{type:"link",onClick:g,children:"重置邮箱"}),x.jsx(Or,{name:"mobile",label:r!=null&&r.mobileVerified?e.formatMessage({id:"mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"mobile.unverified",defaultMessage:"mobile unverified"}),readonly:!0}),!(r!=null&&r.mobileVerified)&&r.mobile!=null&&x.jsx(Yt,{onClick:u,children:e.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"})}),x.jsx(Yt,{type:"link",onClick:v,children:"重置手机号"})]}),a&&x.jsx(MJt,{open:a,onSubmit:p,onClose:f}),s&&x.jsx(TJt,{open:s,onSubmit:m,onClose:h})]})},OJt=e=>{console.log(e)},RJt=[{key:"personal",label:"个人认证",children:x.jsx(PJt,{})}],IJt=()=>x.jsx("div",{className:"profile-container",children:x.jsx(Sh,{defaultActiveKey:"personal",items:RJt,onChange:OJt})}),jJt=()=>{const[e]=Kn.useForm(),t=Rn(),{translateString:n}=Zr(),{agentInfo:r,setAgentInfo:i}=Eo(f=>({agentInfo:f.agentInfo,setAgentInfo:f.setAgentInfo})),[a,o]=d.useState("");d.useEffect(()=>{var f;r&&e.setFieldsValue({nickname:n(r==null?void 0:r.nickname),email:r==null?void 0:r.email,mobile:r==null?void 0:r.mobile,description:n(r==null?void 0:r.description),memberUid:(f=r==null?void 0:r.member)==null?void 0:f.uid})},[r]);const s=f=>{console.log("handleUploadSuccess:",f),o(f)},l=f=>{console.log("handleUploadError:",f),je.error(f)},c=async f=>{var m,g,v,y,w,b,C,k,S,_,E,$,M,P;console.log("onFinish:",f),je.loading(t.formatMessage({id:"updating"}));const p={...r,...f,avatar:a,serviceSettings:{...r.serviceSettings,quickFaqUids:(g=(m=r==null?void 0:r.serviceSettings)==null?void 0:m.quickFaqs)==null?void 0:g.map(R=>R.uid),faqUids:(y=(v=r==null?void 0:r.serviceSettings)==null?void 0:v.faqs)==null?void 0:y.map(R=>R.uid),guessFaqUids:(b=(w=r==null?void 0:r.serviceSettings)==null?void 0:w.guessFaqs)==null?void 0:b.map(R=>R.uid),hotFaqUids:(k=(C=r==null?void 0:r.serviceSettings)==null?void 0:C.hotFaqs)==null?void 0:k.map(R=>R.uid),shortcutFaqUids:(_=(S=r==null?void 0:r.serviceSettings)==null?void 0:S.shortcutFaqs)==null?void 0:_.map(R=>R.uid)},robotSettings:{...r.robotSettings,robotUid:($=(E=r==null?void 0:r.robotSettings)==null?void 0:E.robot)==null?void 0:$.uid},leaveMsgSettings:{...r.leaveMsgSettings,worktimeUids:(P=(M=r==null?void 0:r.leaveMsgSettings)==null?void 0:M.worktimes)==null?void 0:P.map(R=>R.uid)},autoReplySettings:{...r.autoReplySettings}};console.log("agentObject:",p);const h=await r$e(p);console.log("updateAgent response:",h),h.data.code===200?(je.destroy(),je.success(t.formatMessage({id:"update.success"})),i(h.data.data)):(je.destroy(),je.error(h.data.message))},u=f=>Array.isArray(f)?f:f==null?void 0:f.fileList;return d.useEffect(()=>{var f;r&&(o(r.avatar),e.setFieldsValue({member:(f=r==null?void 0:r.member)==null?void 0:f.nickname}))},[r]),x.jsx(x.Fragment,{children:x.jsxs(Kn,{form:e,style:{marginLeft:"20px"},onFinish:c,children:[x.jsx(Kn.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:u,label:t.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:x.jsxs(GU,{onSuccess:s,onError:l,children:[x.jsx(Pi,{src:a}),x.jsx(Yt,{icon:x.jsx(D4,{}),children:t.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),x.jsx(Or,{width:"md",name:"nickname",label:"客服卡片-展示客服昵称",rules:[{required:!0,message:"请输入客服昵称"}]}),x.jsx(Or,{width:"md",name:"email",label:"客服卡片-展示邮箱",rules:[{required:!0,message:"请输入邮箱"}]}),x.jsx(Or,{width:"md",name:"mobile",label:"客服卡片-展示手机号",rules:[{required:!0,message:"请输入手机号"}]}),x.jsx(Cd,{width:"md",name:"description",label:"客服卡片-展示描述",rules:[{required:!0,message:"请输入描述"}]})]})})},NJt=()=>{const e=Rn(),[t,n]=d.useState([]),r=[{key:"basic",label:e.formatMessage({id:"pages.agent.tab.basic",defaultMessage:"Basic"}),children:x.jsx(jJt,{})}];return d.useEffect(()=>{n(r)},[]),x.jsx(x.Fragment,{children:x.jsx(Sh,{style:{marginLeft:20},defaultActiveKey:"basic",items:t})})},{Sider:AJt,Content:DJt}=Qn,sD=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsxs(AJt,{style:e,width:t,children:[x.jsx(Sg,{style:n,children:"home"}),x.jsx(qU,{})]}),x.jsxs(Qn,{children:[x.jsx(Sg,{style:n,children:"home"}),x.jsx(DJt,{style:r,children:"home"})]})]})})},FJt=()=>{console.log("useMulticast");const e=()=>setInterval(()=>{},5e3);d.useEffect(()=>{console.log("useMulticast useEffect");const t=e();return()=>{console.log("un - useEffect"),clearInterval(t)}},[])};class LJt{constructor(){this.encoder=new TextEncoder,this._pieces=[],this._parts=[]}append_buffer(t){this.flush(),this._parts.push(t)}append(t){this._pieces.push(t)}flush(){if(this._pieces.length>0){const t=new Uint8Array(this._pieces);this._parts.push(t),this._pieces=[]}}toArrayBuffer(){const t=[];for(const n of this._parts)t.push(n);return BJt(t).buffer}}function BJt(e){let t=0;for(const i of e)t+=i.byteLength;const n=new Uint8Array(t);let r=0;for(const i of e){const a=new Uint8Array(i.buffer,i.byteOffset,i.byteLength);n.set(a,r),r+=i.byteLength}return n}function Bxe(e){return new zJt(e).unpack()}function zxe(e){const t=new HJt,n=t.pack(e);return n instanceof Promise?n.then(()=>t.getBuffer()):t.getBuffer()}class zJt{constructor(t){this.index=0,this.dataBuffer=t,this.dataView=new Uint8Array(this.dataBuffer),this.length=this.dataBuffer.byteLength}unpack(){const t=this.unpack_uint8();if(t<128)return t;if((t^224)<32)return(t^224)-32;let n;if((n=t^160)<=15)return this.unpack_raw(n);if((n=t^176)<=15)return this.unpack_string(n);if((n=t^144)<=15)return this.unpack_array(n);if((n=t^128)<=15)return this.unpack_map(n);switch(t){case 192:return null;case 193:return;case 194:return!1;case 195:return!0;case 202:return this.unpack_float();case 203:return this.unpack_double();case 204:return this.unpack_uint8();case 205:return this.unpack_uint16();case 206:return this.unpack_uint32();case 207:return this.unpack_uint64();case 208:return this.unpack_int8();case 209:return this.unpack_int16();case 210:return this.unpack_int32();case 211:return this.unpack_int64();case 212:return;case 213:return;case 214:return;case 215:return;case 216:return n=this.unpack_uint16(),this.unpack_string(n);case 217:return n=this.unpack_uint32(),this.unpack_string(n);case 218:return n=this.unpack_uint16(),this.unpack_raw(n);case 219:return n=this.unpack_uint32(),this.unpack_raw(n);case 220:return n=this.unpack_uint16(),this.unpack_array(n);case 221:return n=this.unpack_uint32(),this.unpack_array(n);case 222:return n=this.unpack_uint16(),this.unpack_map(n);case 223:return n=this.unpack_uint32(),this.unpack_map(n)}}unpack_uint8(){const t=this.dataView[this.index]&255;return this.index++,t}unpack_uint16(){const t=this.read(2),n=(t[0]&255)*256+(t[1]&255);return this.index+=2,n}unpack_uint32(){const t=this.read(4),n=((t[0]*256+t[1])*256+t[2])*256+t[3];return this.index+=4,n}unpack_uint64(){const t=this.read(8),n=((((((t[0]*256+t[1])*256+t[2])*256+t[3])*256+t[4])*256+t[5])*256+t[6])*256+t[7];return this.index+=8,n}unpack_int8(){const t=this.unpack_uint8();return t<128?t:t-256}unpack_int16(){const t=this.unpack_uint16();return t<32768?t:t-65536}unpack_int32(){const t=this.unpack_uint32();return t<2**31?t:t-2**32}unpack_int64(){const t=this.unpack_uint64();return t<2**63?t:t-2**64}unpack_raw(t){if(this.length>31,r=(t>>23&255)-127,i=t&8388607|8388608;return(n===0?1:-1)*i*2**(r-23)}unpack_double(){const t=this.unpack_uint32(),n=this.unpack_uint32(),r=t>>31,i=(t>>20&2047)-1023,o=(t&1048575|1048576)*2**(i-20)+n*2**(i-52);return(r===0?1:-1)*o}read(t){const n=this.index;if(n+t<=this.length)return this.dataView.subarray(n,n+t);throw new Error("BinaryPackFailure: read index out of range")}}class HJt{getBuffer(){return this._bufferBuilder.toArrayBuffer()}pack(t){if(typeof t=="string")this.pack_string(t);else if(typeof t=="number")Math.floor(t)===t?this.pack_integer(t):this.pack_double(t);else if(typeof t=="boolean")t===!0?this._bufferBuilder.append(195):t===!1&&this._bufferBuilder.append(194);else if(t===void 0)this._bufferBuilder.append(192);else if(typeof t=="object")if(t===null)this._bufferBuilder.append(192);else{const n=t.constructor;if(t instanceof Array){const r=this.pack_array(t);if(r instanceof Promise)return r.then(()=>this._bufferBuilder.flush())}else if(t instanceof ArrayBuffer)this.pack_bin(new Uint8Array(t));else if("BYTES_PER_ELEMENT"in t){const r=t;this.pack_bin(new Uint8Array(r.buffer,r.byteOffset,r.byteLength))}else if(t instanceof Date)this.pack_string(t.toString());else{if(t instanceof Blob)return t.arrayBuffer().then(r=>{this.pack_bin(new Uint8Array(r)),this._bufferBuilder.flush()});if(n==Object||n.toString().startsWith("class")){const r=this.pack_object(t);if(r instanceof Promise)return r.then(()=>this._bufferBuilder.flush())}else throw new Error(`Type "${n.toString()}" not yet supported`)}}else throw new Error(`Type "${typeof t}" not yet supported`);this._bufferBuilder.flush()}pack_bin(t){const n=t.length;if(n<=15)this.pack_uint8(160+n);else if(n<=65535)this._bufferBuilder.append(218),this.pack_uint16(n);else if(n<=4294967295)this._bufferBuilder.append(219),this.pack_uint32(n);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(t)}pack_string(t){const n=this._textEncoder.encode(t),r=n.length;if(r<=15)this.pack_uint8(176+r);else if(r<=65535)this._bufferBuilder.append(216),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(217),this.pack_uint32(r);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(n)}pack_array(t){const n=t.length;if(n<=15)this.pack_uint8(144+n);else if(n<=65535)this._bufferBuilder.append(220),this.pack_uint16(n);else if(n<=4294967295)this._bufferBuilder.append(221),this.pack_uint32(n);else throw new Error("Invalid length");const r=i=>{if(ir(i+1)):r(i+1)}};return r(0)}pack_integer(t){if(t>=-32&&t<=127)this._bufferBuilder.append(t&255);else if(t>=0&&t<=255)this._bufferBuilder.append(204),this.pack_uint8(t);else if(t>=-128&&t<=127)this._bufferBuilder.append(208),this.pack_int8(t);else if(t>=0&&t<=65535)this._bufferBuilder.append(205),this.pack_uint16(t);else if(t>=-32768&&t<=32767)this._bufferBuilder.append(209),this.pack_int16(t);else if(t>=0&&t<=4294967295)this._bufferBuilder.append(206),this.pack_uint32(t);else if(t>=-2147483648&&t<=2147483647)this._bufferBuilder.append(210),this.pack_int32(t);else if(t>=-9223372036854776e3&&t<=9223372036854776e3)this._bufferBuilder.append(211),this.pack_int64(t);else if(t>=0&&t<=18446744073709552e3)this._bufferBuilder.append(207),this.pack_uint64(t);else throw new Error("Invalid integer")}pack_double(t){let n=0;t<0&&(n=1,t=-t);const r=Math.floor(Math.log(t)/Math.LN2),i=t/2**r-1,a=Math.floor(i*2**52),o=2**32,s=n<<31|r+1023<<20|a/o&1048575,l=a%o;this._bufferBuilder.append(203),this.pack_int32(s),this.pack_int32(l)}pack_object(t){const n=Object.keys(t),r=n.length;if(r<=15)this.pack_uint8(128+r);else if(r<=65535)this._bufferBuilder.append(222),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(223),this.pack_uint32(r);else throw new Error("Invalid length");const i=a=>{if(ai(a+1))}return i(a+1)}};return i(0)}pack_uint8(t){this._bufferBuilder.append(t)}pack_uint16(t){this._bufferBuilder.append(t>>8),this._bufferBuilder.append(t&255)}pack_uint32(t){const n=t&4294967295;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255)}pack_uint64(t){const n=t/4294967296,r=t%2**32;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255),this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}pack_int8(t){this._bufferBuilder.append(t&255)}pack_int16(t){this._bufferBuilder.append((t&65280)>>8),this._bufferBuilder.append(t&255)}pack_int32(t){this._bufferBuilder.append(t>>>24&255),this._bufferBuilder.append((t&16711680)>>>16),this._bufferBuilder.append((t&65280)>>>8),this._bufferBuilder.append(t&255)}pack_int64(t){const n=Math.floor(t/4294967296),r=t%2**32;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255),this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}constructor(){this._bufferBuilder=new LJt,this._textEncoder=new TextEncoder}}let Hxe=!0,Uxe=!0;function j_(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function y1(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(o,s){if(o!==t)return i.apply(this,arguments);const l=c=>{const u=n(c);u&&(s.handleEvent?s.handleEvent(u):s(u))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(s,l),i.apply(this,[o,l])};const a=r.removeEventListener;r.removeEventListener=function(o,s){if(o!==t||!this._eventMap||!this._eventMap[t])return a.apply(this,arguments);if(!this._eventMap[t].has(s))return a.apply(this,arguments);const l=this._eventMap[t].get(s);return this._eventMap[t].delete(s),this._eventMap[t].size===0&&delete this._eventMap[t],Object.keys(this._eventMap).length===0&&delete this._eventMap,a.apply(this,[o,l])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(o){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),o&&this.addEventListener(t,this["_on"+t]=o)},enumerable:!0,configurable:!0})}function UJt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(Hxe=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function WJt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(Uxe=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function Wxe(){if(typeof window=="object"){if(Hxe)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function XU(e,t){Uxe&&console.warn(e+" is deprecated, please use "+t+" instead.")}function VJt(e){const t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.userAgentData&&n.userAgentData.brands){const r=n.userAgentData.brands.find(i=>i.brand==="Chromium");if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=j_(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=j_(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=j_(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;else return t.browser="Not a supported browser.",t;return t}function mie(e){return Object.prototype.toString.call(e)==="[object Object]"}function Vxe(e){return mie(e)?Object.keys(e).reduce(function(t,n){const r=mie(e[n]),i=r?Vxe(e[n]):e[n],a=r&&!Object.keys(i).length;return i===void 0||a?t:Object.assign(t,{[n]:i})},{}):e}function lD(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?lD(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(i=>{lD(e,e.get(i),n)})}))}function gie(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(t===null)return i;const a=[];return e.forEach(o=>{o.type==="track"&&o.trackIdentifier===t.id&&a.push(o)}),a.forEach(o=>{e.forEach(s=>{s.type===r&&s.trackId===o.id&&lD(e,s,i)})}),i}const vie=Wxe;function qxe(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(s){if(typeof s!="object"||s.mandatory||s.optional)return s;const l={};return Object.keys(s).forEach(c=>{if(c==="require"||c==="advanced"||c==="mediaSource")return;const u=typeof s[c]=="object"?s[c]:{ideal:s[c]};u.exact!==void 0&&typeof u.exact=="number"&&(u.min=u.max=u.exact);const f=function(p,h){return p?p+h.charAt(0).toUpperCase()+h.slice(1):h==="deviceId"?"sourceId":h};if(u.ideal!==void 0){l.optional=l.optional||[];let p={};typeof u.ideal=="number"?(p[f("min",c)]=u.ideal,l.optional.push(p),p={},p[f("max",c)]=u.ideal,l.optional.push(p)):(p[f("",c)]=u.ideal,l.optional.push(p))}u.exact!==void 0&&typeof u.exact!="number"?(l.mandatory=l.mandatory||{},l.mandatory[f("",c)]=u.exact):["min","max"].forEach(p=>{u[p]!==void 0&&(l.mandatory=l.mandatory||{},l.mandatory[f(p,c)]=u[p])})}),s.advanced&&(l.optional=(l.optional||[]).concat(s.advanced)),l},i=function(s,l){if(t.version>=61)return l(s);if(s=JSON.parse(JSON.stringify(s)),s&&typeof s.audio=="object"){const c=function(u,f,p){f in u&&!(p in u)&&(u[p]=u[f],delete u[f])};s=JSON.parse(JSON.stringify(s)),c(s.audio,"autoGainControl","googAutoGainControl"),c(s.audio,"noiseSuppression","googNoiseSuppression"),s.audio=r(s.audio)}if(s&&typeof s.video=="object"){let c=s.video.facingMode;c=c&&(typeof c=="object"?c:{ideal:c});const u=t.version<66;if(c&&(c.exact==="user"||c.exact==="environment"||c.ideal==="user"||c.ideal==="environment")&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!u)){delete s.video.facingMode;let f;if(c.exact==="environment"||c.ideal==="environment"?f=["back","rear"]:(c.exact==="user"||c.ideal==="user")&&(f=["front"]),f)return n.mediaDevices.enumerateDevices().then(p=>{p=p.filter(m=>m.kind==="videoinput");let h=p.find(m=>f.some(g=>m.label.toLowerCase().includes(g)));return!h&&p.length&&f.includes("back")&&(h=p[p.length-1]),h&&(s.video.deviceId=c.exact?{exact:h.deviceId}:{ideal:h.deviceId}),s.video=r(s.video),vie("chrome: "+JSON.stringify(s)),l(s)})}s.video=r(s.video)}return vie("chrome: "+JSON.stringify(s)),l(s)},a=function(s){return t.version>=64?s:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[s.name]||s.name,message:s.message,constraint:s.constraint||s.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},o=function(s,l,c){i(s,u=>{n.webkitGetUserMedia(u,l,f=>{c&&c(a(f))})})};if(n.getUserMedia=o.bind(n),n.mediaDevices.getUserMedia){const s=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(l){return i(l,c=>s(c).then(u=>{if(c.audio&&!u.getAudioTracks().length||c.video&&!u.getVideoTracks().length)throw u.getTracks().forEach(f=>{f.stop()}),new DOMException("","NotFoundError");return u},u=>Promise.reject(a(u))))}}}function Kxe(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function Gxe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(n){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=n)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=r=>{r.stream.addEventListener("addtrack",i=>{let a;e.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(s=>s.track&&s.track.id===i.track.id):a={track:i.track};const o=new Event("track");o.track=i.track,o.receiver=a,o.transceiver={receiver:a},o.streams=[r.stream],this.dispatchEvent(o)}),r.stream.getTracks().forEach(i=>{let a;e.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(s=>s.track&&s.track.id===i.id):a={track:i};const o=new Event("track");o.track=i,o.receiver=a,o.transceiver={receiver:a},o.streams=[r.stream],this.dispatchEvent(o)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else y1(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function Yxe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(i,a){return{track:a,get dtmf(){return this._dtmf===void 0&&(a.kind==="audio"?this._dtmf=i.createDTMFSender(a):this._dtmf=null),this._dtmf},_pc:i}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const i=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(s,l){let c=i.apply(this,arguments);return c||(c=t(this,s),this._senders.push(c)),c};const a=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(s){a.apply(this,arguments);const l=this._senders.indexOf(s);l!==-1&&this._senders.splice(l,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(a){this._senders=this._senders||[],n.apply(this,[a]),a.getTracks().forEach(o=>{this._senders.push(t(this,o))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(a){this._senders=this._senders||[],r.apply(this,[a]),a.getTracks().forEach(o=>{const s=this._senders.find(l=>l.track===o);s&&this._senders.splice(this._senders.indexOf(s),1)})}}else if(typeof e=="object"&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const r=t.apply(this,[]);return r.forEach(i=>i._pc=this),r},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function Xxe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const n=e.RTCPeerConnection.prototype.getSenders;n&&(e.RTCPeerConnection.prototype.getSenders=function(){const a=n.apply(this,[]);return a.forEach(o=>o._pc=this),a});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const a=r.apply(this,arguments);return a._pc=this,a}),e.RTCRtpSender.prototype.getStats=function(){const a=this;return this._pc.getStats().then(o=>gie(o,a.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){const i=n.apply(this,[]);return i.forEach(a=>a._pc=this),i}),y1(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){const i=this;return this._pc.getStats().then(a=>gie(a,i.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const r=arguments[0];let i,a,o;return this.getSenders().forEach(s=>{s.track===r&&(i?o=!0:i=s)}),this.getReceivers().forEach(s=>(s.track===r&&(a?o=!0:a=s),s.track===r)),o||i&&a?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):i?i.getStats():a?a.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function Zxe(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(o=>this._shimmedLocalStreams[o][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(o,s){if(!s)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const l=t.apply(this,arguments);return this._shimmedLocalStreams[s.id]?this._shimmedLocalStreams[s.id].indexOf(l)===-1&&this._shimmedLocalStreams[s.id].push(l):this._shimmedLocalStreams[s.id]=[s,l],l};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(o){this._shimmedLocalStreams=this._shimmedLocalStreams||{},o.getTracks().forEach(c=>{if(this.getSenders().find(f=>f.track===c))throw new DOMException("Track already exists.","InvalidAccessError")});const s=this.getSenders();n.apply(this,arguments);const l=this.getSenders().filter(c=>s.indexOf(c)===-1);this._shimmedLocalStreams[o.id]=[o].concat(l)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(o){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[o.id],r.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(o){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},o&&Object.keys(this._shimmedLocalStreams).forEach(s=>{const l=this._shimmedLocalStreams[s].indexOf(o);l!==-1&&this._shimmedLocalStreams[s].splice(l,1),this._shimmedLocalStreams[s].length===1&&delete this._shimmedLocalStreams[s]}),i.apply(this,arguments)}}function Qxe(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return Zxe(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const u=n.apply(this);return this._reverseStreams=this._reverseStreams||{},u.map(f=>this._reverseStreams[f.id])};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(u){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},u.getTracks().forEach(f=>{if(this.getSenders().find(h=>h.track===f))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[u.id]){const f=new e.MediaStream(u.getTracks());this._streams[u.id]=f,this._reverseStreams[f.id]=u,u=f}r.apply(this,[u])};const i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(u){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[u.id]||u]),delete this._reverseStreams[this._streams[u.id]?this._streams[u.id].id:u.id],delete this._streams[u.id]},e.RTCPeerConnection.prototype.addTrack=function(u,f){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const p=[].slice.call(arguments,1);if(p.length!==1||!p[0].getTracks().find(g=>g===u))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(g=>g.track===u))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const m=this._streams[f.id];if(m)m.addTrack(u),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const g=new e.MediaStream([u]);this._streams[f.id]=g,this._reverseStreams[g.id]=f,this.addStream(g)}return this.getSenders().find(g=>g.track===u)};function a(c,u){let f=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(p=>{const h=c._reverseStreams[p],m=c._streams[h.id];f=f.replace(new RegExp(m.id,"g"),h.id)}),new RTCSessionDescription({type:u.type,sdp:f})}function o(c,u){let f=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(p=>{const h=c._reverseStreams[p],m=c._streams[h.id];f=f.replace(new RegExp(h.id,"g"),m.id)}),new RTCSessionDescription({type:u.type,sdp:f})}["createOffer","createAnswer"].forEach(function(c){const u=e.RTCPeerConnection.prototype[c],f={[c](){const p=arguments;return arguments.length&&typeof arguments[0]=="function"?u.apply(this,[m=>{const g=a(this,m);p[0].apply(null,[g])},m=>{p[1]&&p[1].apply(null,m)},arguments[2]]):u.apply(this,arguments).then(m=>a(this,m))}};e.RTCPeerConnection.prototype[c]=f[c]});const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?s.apply(this,arguments):(arguments[0]=o(this,arguments[0]),s.apply(this,arguments))};const l=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const c=l.get.apply(this);return c.type===""?c:a(this,c)}}),e.RTCPeerConnection.prototype.removeTrack=function(u){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!u._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(u._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let p;Object.keys(this._streams).forEach(h=>{this._streams[h].getTracks().find(g=>u.track===g)&&(p=this._streams[h])}),p&&(p.getTracks().length===1?this.removeStream(this._reverseStreams[p.id]):p.removeTrack(u.track),this.dispatchEvent(new Event("negotiationneeded")))}}function cD(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){const r=e.RTCPeerConnection.prototype[n],i={[n](){return arguments[0]=new(n==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[n]=i[n]})}function Jxe(e,t){y1(e,"negotiationneeded",n=>{const r=n.target;if(!((t.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}const yie=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:Jxe,shimAddTrackRemoveTrack:Qxe,shimAddTrackRemoveTrackWithNative:Zxe,shimGetSendersWithDtmf:Yxe,shimGetUserMedia:qxe,shimMediaStream:Kxe,shimOnTrack:Gxe,shimPeerConnection:cD,shimSenderReceiverGetStats:Xxe},Symbol.toStringTag,{value:"Module"}));function eSe(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(i,a,o){XU("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(i).then(a,o)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const i=function(o,s,l){s in o&&!(l in o)&&(o[l]=o[s],delete o[s])},a=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(o){return typeof o=="object"&&typeof o.audio=="object"&&(o=JSON.parse(JSON.stringify(o)),i(o.audio,"autoGainControl","mozAutoGainControl"),i(o.audio,"noiseSuppression","mozNoiseSuppression")),a(o)},r&&r.prototype.getSettings){const o=r.prototype.getSettings;r.prototype.getSettings=function(){const s=o.apply(this,arguments);return i(s,"mozAutoGainControl","autoGainControl"),i(s,"mozNoiseSuppression","noiseSuppression"),s}}if(r&&r.prototype.applyConstraints){const o=r.prototype.applyConstraints;r.prototype.applyConstraints=function(s){return this.kind==="audio"&&typeof s=="object"&&(s=JSON.parse(JSON.stringify(s)),i(s,"autoGainControl","mozAutoGainControl"),i(s,"noiseSuppression","mozNoiseSuppression")),o.apply(this,[s])}}}}function qJt(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){const i=new DOMException("getDisplayMedia without video constraints is undefined");return i.name="NotFoundError",i.code=8,Promise.reject(i)}return r.video===!0?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}function tSe(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function uD(e,t){if(typeof e!="object"||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(i){const a=e.RTCPeerConnection.prototype[i],o={[i](){return arguments[0]=new(i==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),a.apply(this,arguments)}};e.RTCPeerConnection.prototype[i]=o[i]});const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[a,o,s]=arguments;return r.apply(this,[a||null]).then(l=>{if(t.version<53&&!o)try{l.forEach(c=>{c.type=n[c.type]||c.type})}catch(c){if(c.name!=="TypeError")throw c;l.forEach((u,f)=>{l.set(f,Object.assign({},u,{type:n[u.type]||u.type}))})}return l}).then(o,s)}}function nSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const i=t.apply(this,[]);return i.forEach(a=>a._pc=this),i});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const i=n.apply(this,arguments);return i._pc=this,i}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function rSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const r=t.apply(this,[]);return r.forEach(i=>i._pc=this),r}),y1(e,"track",n=>(n.receiver._pc=n.srcElement,n)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function iSe(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){XU("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function aSe(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function oSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let r=arguments[1]&&arguments[1].sendEncodings;r===void 0&&(r=[]),r=[...r];const i=r.length>0;i&&r.forEach(o=>{if("rid"in o&&!/^[a-z0-9]{0,16}$/i.test(o.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in o&&!(parseFloat(o.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in o&&!(parseFloat(o.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const a=t.apply(this,arguments);if(i){const{sender:o}=a,s=o.getParameters();(!("encodings"in s)||s.encodings.length===1&&Object.keys(s.encodings[0]).length===0)&&(s.encodings=r,o.sendEncodings=r,this.setParametersPromises.push(o.setParameters(s).then(()=>{delete o.sendEncodings}).catch(()=>{delete o.sendEncodings})))}return a})}function sSe(e){if(!(typeof e=="object"&&e.RTCRtpSender))return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const r=t.apply(this,arguments);return"encodings"in r||(r.encodings=[].concat(this.sendEncodings||[{}])),r})}function lSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function cSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}const bie=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:oSe,shimCreateAnswer:cSe,shimCreateOffer:lSe,shimGetDisplayMedia:qJt,shimGetParameters:sSe,shimGetUserMedia:eSe,shimOnTrack:tSe,shimPeerConnection:uD,shimRTCDataChannel:aSe,shimReceiverGetStats:rSe,shimRemoveStream:iSe,shimSenderGetStats:nSe},Symbol.toStringTag,{value:"Module"}));function uSe(e){if(!(typeof e!="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(r){this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(i=>t.call(this,i,r)),r.getVideoTracks().forEach(i=>t.call(this,i,r))},e.RTCPeerConnection.prototype.addTrack=function(r,...i){return i&&i.forEach(a=>{this._localStreams?this._localStreams.includes(a)||this._localStreams.push(a):this._localStreams=[a]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){this._localStreams||(this._localStreams=[]);const r=this._localStreams.indexOf(n);if(r===-1)return;this._localStreams.splice(r,1);const i=n.getTracks();this.getSenders().forEach(a=>{i.includes(a.track)&&this.removeTrack(a)})})}}function dSe(e){if(!(typeof e!="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(n){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=n),this.addEventListener("track",this._onaddstreampoly=r=>{r.streams.forEach(i=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(i))return;this._remoteStreams.push(i);const a=new Event("addstream");a.stream=i,this.dispatchEvent(a)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(i){i.streams.forEach(a=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(a)>=0)return;r._remoteStreams.push(a);const o=new Event("addstream");o.stream=a,r.dispatchEvent(o)})}),t.apply(r,arguments)}}}function fSe(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,a=t.setRemoteDescription,o=t.addIceCandidate;t.createOffer=function(c,u){const f=arguments.length>=2?arguments[2]:arguments[0],p=n.apply(this,[f]);return u?(p.then(c,u),Promise.resolve()):p},t.createAnswer=function(c,u){const f=arguments.length>=2?arguments[2]:arguments[0],p=r.apply(this,[f]);return u?(p.then(c,u),Promise.resolve()):p};let s=function(l,c,u){const f=i.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f};t.setLocalDescription=s,s=function(l,c,u){const f=a.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f},t.setRemoteDescription=s,s=function(l,c,u){const f=o.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f},t.addIceCandidate=s}function pSe(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=i=>r(hSe(i))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(r,i,a){t.mediaDevices.getUserMedia(r).then(i,a)}).bind(t))}function hSe(e){return e&&e.video!==void 0?Object.assign({},e,{video:Vxe(e.video)}):e}function mSe(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(r,i){if(r&&r.iceServers){const a=[];for(let o=0;oo.receiver.track.kind==="audio");r.offerToReceiveAudio===!1&&i?i.direction==="sendrecv"?i.setDirection?i.setDirection("sendonly"):i.direction="sendonly":i.direction==="recvonly"&&(i.setDirection?i.setDirection("inactive"):i.direction="inactive"):r.offerToReceiveAudio===!0&&!i&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);const a=this.getTransceivers().find(o=>o.receiver.track.kind==="video");r.offerToReceiveVideo===!1&&a?a.direction==="sendrecv"?a.setDirection?a.setDirection("sendonly"):a.direction="sendonly":a.direction==="recvonly"&&(a.setDirection?a.setDirection("inactive"):a.direction="inactive"):r.offerToReceiveVideo===!0&&!a&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function ySe(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const wie=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:ySe,shimCallbacksAPI:fSe,shimConstraints:hSe,shimCreateOfferLegacy:vSe,shimGetUserMedia:pSe,shimLocalStreamsAPI:uSe,shimRTCIceServerUrls:mSe,shimRemoteStreamsAPI:dSe,shimTrackEventTransceiver:gSe},Symbol.toStringTag,{value:"Module"}));var bSe={exports:{}};(function(e){const t={};t.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},t.localCName=t.generateIdentifier(),t.splitLines=function(n){return n.trim().split(` `).map(r=>r.trim())},t.splitSections=function(n){return n.split(` m=`).map((i,a)=>(a>0?"m="+i:i).trim()+`\r `)},t.getDescription=function(n){const r=t.splitSections(n);return r&&r[0]},t.getMediaSections=function(n){const r=t.splitSections(n);return r.shift(),r},t.matchPrefix=function(n,r){return t.splitLines(n).filter(i=>i.indexOf(r)===0)},t.parseCandidate=function(n){let r;n.indexOf("a=candidate:")===0?r=n.substring(12).split(" "):r=n.substring(10).split(" ");const i={foundation:r[0],component:{1:"rtp",2:"rtcp"}[r[1]]||r[1],protocol:r[2].toLowerCase(),priority:parseInt(r[3],10),ip:r[4],address:r[4],port:parseInt(r[5],10),type:r[7]};for(let a=8;a(n.candidate&&Object.defineProperty(n,"candidate",{value:new e.RTCIceCandidate(n.candidate),writable:"false"}),n))}function lD(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||v1(e,"icecandidate",t=>{if(t.candidate){const n=Wv.parseCandidate(t.candidate.candidate);n.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[n.priority>>24])}return t})}function N_(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const n=function(s){if(!s||!s.sdp)return!1;const l=Wv.splitSections(s.sdp);return l.shift(),l.some(c=>{const u=Wv.parseMLine(c);return u&&u.kind==="application"&&u.protocol.indexOf("SCTP")!==-1})},r=function(s){const l=s.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(l===null||l.length<2)return-1;const c=parseInt(l[1],10);return c!==c?-1:c},i=function(s){let l=65536;return t.browser==="firefox"&&(t.version<57?s===-1?l=16384:l=2147483637:t.version<60?l=t.version===57?65535:65536:l=2147483637),l},a=function(s,l){let c=65536;t.browser==="firefox"&&t.version===57&&(c=65535);const u=Wv.matchPrefix(s.sdp,"a=max-message-size:");return u.length>0?c=parseInt(u[0].substring(19),10):t.browser==="firefox"&&l!==-1&&(c=2147483637),c},o=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,t.browser==="chrome"&&t.version>=76){const{sdpSemantics:l}=this.getConfiguration();l==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const l=r(arguments[0]),c=i(l),u=a(arguments[0],l);let f;c===0&&u===0?f=Number.POSITIVE_INFINITY:c===0||u===0?f=Math.max(c,u):f=Math.min(c,u);const p={};Object.defineProperty(p,"maxMessageSize",{get(){return f}}),this._sctp=p}return o.apply(this,arguments)}}function A_(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(r,i){const a=r.send;r.send=function(){const s=arguments[0],l=s.length||s.size||s.byteLength;if(r.readyState==="open"&&i.sctp&&l>i.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+i.sctp.maxMessageSize+" bytes)");return a.apply(r,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const i=n.apply(this,arguments);return t(i,this),i},v1(e,"datachannel",r=>(t(r.channel,r.target),r))}function cD(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(n){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),n&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=n)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(n=>{const r=t[n];t[n]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=i=>{const a=i.target;if(a._lastConnectionState!==a.connectionState){a._lastConnectionState=a.connectionState;const o=new Event("connectionstatechange",i);a.dispatchEvent(o)}return i},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}})}function uD(e,t){if(!e.RTCPeerConnection||t.browser==="chrome"&&t.version>=71||t.browser==="safari"&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(i){if(i&&i.sdp&&i.sdp.indexOf(` +`},t.getDirection=function(n,r){const i=t.splitLines(n);for(let a=0;a(n.candidate&&Object.defineProperty(n,"candidate",{value:new e.RTCIceCandidate(n.candidate),writable:"false"}),n))}function dD(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||y1(e,"icecandidate",t=>{if(t.candidate){const n=Kv.parseCandidate(t.candidate.candidate);n.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[n.priority>>24])}return t})}function A_(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const n=function(s){if(!s||!s.sdp)return!1;const l=Kv.splitSections(s.sdp);return l.shift(),l.some(c=>{const u=Kv.parseMLine(c);return u&&u.kind==="application"&&u.protocol.indexOf("SCTP")!==-1})},r=function(s){const l=s.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(l===null||l.length<2)return-1;const c=parseInt(l[1],10);return c!==c?-1:c},i=function(s){let l=65536;return t.browser==="firefox"&&(t.version<57?s===-1?l=16384:l=2147483637:t.version<60?l=t.version===57?65535:65536:l=2147483637),l},a=function(s,l){let c=65536;t.browser==="firefox"&&t.version===57&&(c=65535);const u=Kv.matchPrefix(s.sdp,"a=max-message-size:");return u.length>0?c=parseInt(u[0].substring(19),10):t.browser==="firefox"&&l!==-1&&(c=2147483637),c},o=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,t.browser==="chrome"&&t.version>=76){const{sdpSemantics:l}=this.getConfiguration();l==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const l=r(arguments[0]),c=i(l),u=a(arguments[0],l);let f;c===0&&u===0?f=Number.POSITIVE_INFINITY:c===0||u===0?f=Math.max(c,u):f=Math.min(c,u);const p={};Object.defineProperty(p,"maxMessageSize",{get(){return f}}),this._sctp=p}return o.apply(this,arguments)}}function D_(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(r,i){const a=r.send;r.send=function(){const s=arguments[0],l=s.length||s.size||s.byteLength;if(r.readyState==="open"&&i.sctp&&l>i.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+i.sctp.maxMessageSize+" bytes)");return a.apply(r,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const i=n.apply(this,arguments);return t(i,this),i},y1(e,"datachannel",r=>(t(r.channel,r.target),r))}function fD(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(n){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),n&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=n)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(n=>{const r=t[n];t[n]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=i=>{const a=i.target;if(a._lastConnectionState!==a.connectionState){a._lastConnectionState=a.connectionState;const o=new Event("connectionstatechange",i);a.dispatchEvent(o)}return i},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}})}function pD(e,t){if(!e.RTCPeerConnection||t.browser==="chrome"&&t.version>=71||t.browser==="safari"&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(i){if(i&&i.sdp&&i.sdp.indexOf(` a=extmap-allow-mixed`)!==-1){const a=i.sdp.split(` `).filter(o=>o.trim()!=="a=extmap-allow-mixed").join(` -`);e.RTCSessionDescription&&i instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:i.type,sdp:a}):i.sdp=a}return n.apply(this,arguments)}}function D_(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.addIceCandidate;!n||n.length===0||(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(t.browser==="chrome"&&t.version<78||t.browser==="firefox"&&t.version<68||t.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function F_(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.setLocalDescription;!n||n.length===0||(e.RTCPeerConnection.prototype.setLocalDescription=function(){let i=arguments[0]||{};if(typeof i!="object"||i.type&&i.sdp)return n.apply(this,arguments);if(i={type:i.type,sdp:i.sdp},!i.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":i.type="offer";break;default:i.type="answer";break}return i.sdp||i.type!=="offer"&&i.type!=="answer"?n.apply(this,[i]):(i.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(o=>n.apply(this,[o]))})}const qJt=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:uD,shimAddIceCandidateNullOrEmpty:D_,shimConnectionState:cD,shimMaxMessageSize:N_,shimParameterlessSetLocalDescription:F_,shimRTCIceCandidate:j_,shimRTCIceCandidateRelayProtocol:lD,shimSendThrowTypeError:A_},Symbol.toStringTag,{value:"Module"}));function KJt({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=Hxe,r=UJt(e),i={browserDetails:r,commonShim:qJt,extractVersion:R_,disableLog:zJt,disableWarnings:HJt,sdp:VJt};switch(r.browser){case"chrome":if(!mie||!oD||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),i;if(r.version===null)return n("Chrome shim can not determine version, not shimming."),i;n("adapter.js shimming chrome."),i.browserShim=mie,D_(e,r),F_(e),Wxe(e,r),Vxe(e),oD(e,r),qxe(e),Xxe(e,r),Kxe(e),Gxe(e),Zxe(e,r),j_(e),lD(e),cD(e),N_(e,r),A_(e),uD(e,r);break;case"firefox":if(!gie||!sD||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),i;n("adapter.js shimming firefox."),i.browserShim=gie,D_(e,r),F_(e),Qxe(e,r),sD(e,r),Jxe(e),nSe(e),eSe(e),tSe(e),rSe(e),iSe(e),aSe(e),oSe(e),sSe(e),j_(e),cD(e),N_(e,r),A_(e);break;case"safari":if(!vie||!t.shimSafari)return n("Safari shim is not included in this adapter release."),i;n("adapter.js shimming safari."),i.browserShim=vie,D_(e,r),F_(e),pSe(e),mSe(e),uSe(e),lSe(e),cSe(e),hSe(e),dSe(e),gSe(e),j_(e),lD(e),N_(e,r),A_(e),uD(e,r);break;default:n("Unsupported browser!");break}return i}const yie=KJt({window:typeof window>"u"?void 0:window});function y1(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}class bSe{constructor(){this.chunkedMTU=16300,this._dataCount=1,this.chunk=t=>{const n=[],r=t.byteLength,i=Math.ceil(r/this.chunkedMTU);let a=0,o=0;for(;o=this.minChromeVersion:e==="firefox"?t>=this.minFirefoxVersion:e==="safari"?!this.isIOS&&t>=this.minSafariVersion:!1:!1}getBrowser(){return LP.browserDetails.browser}getVersion(){return LP.browserDetails.version||0}isUnifiedPlanSupported(){const e=this.getBrowser(),t=LP.browserDetails.version||0;if(e==="chrome"&&t=this.minFirefoxVersion)return!0;if(!window.RTCRtpTransceiver||!("currentDirection"in RTCRtpTransceiver.prototype))return!1;let n,r=!1;try{n=new RTCPeerConnection,n.addTransceiver("audio"),r=!0}catch{}finally{n&&n.close()}return r}toString(){return`Supports: +`);e.RTCSessionDescription&&i instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:i.type,sdp:a}):i.sdp=a}return n.apply(this,arguments)}}function F_(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.addIceCandidate;!n||n.length===0||(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(t.browser==="chrome"&&t.version<78||t.browser==="firefox"&&t.version<68||t.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function L_(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.setLocalDescription;!n||n.length===0||(e.RTCPeerConnection.prototype.setLocalDescription=function(){let i=arguments[0]||{};if(typeof i!="object"||i.type&&i.sdp)return n.apply(this,arguments);if(i={type:i.type,sdp:i.sdp},!i.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":i.type="offer";break;default:i.type="answer";break}return i.sdp||i.type!=="offer"&&i.type!=="answer"?n.apply(this,[i]):(i.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(o=>n.apply(this,[o]))})}const GJt=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:pD,shimAddIceCandidateNullOrEmpty:F_,shimConnectionState:fD,shimMaxMessageSize:A_,shimParameterlessSetLocalDescription:L_,shimRTCIceCandidate:N_,shimRTCIceCandidateRelayProtocol:dD,shimSendThrowTypeError:D_},Symbol.toStringTag,{value:"Module"}));function YJt({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=Wxe,r=VJt(e),i={browserDetails:r,commonShim:GJt,extractVersion:j_,disableLog:UJt,disableWarnings:WJt,sdp:KJt};switch(r.browser){case"chrome":if(!yie||!cD||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),i;if(r.version===null)return n("Chrome shim can not determine version, not shimming."),i;n("adapter.js shimming chrome."),i.browserShim=yie,F_(e,r),L_(e),qxe(e,r),Kxe(e),cD(e,r),Gxe(e),Qxe(e,r),Yxe(e),Xxe(e),Jxe(e,r),N_(e),dD(e),fD(e),A_(e,r),D_(e),pD(e,r);break;case"firefox":if(!bie||!uD||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),i;n("adapter.js shimming firefox."),i.browserShim=bie,F_(e,r),L_(e),eSe(e,r),uD(e,r),tSe(e),iSe(e),nSe(e),rSe(e),aSe(e),oSe(e),sSe(e),lSe(e),cSe(e),N_(e),fD(e),A_(e,r),D_(e);break;case"safari":if(!wie||!t.shimSafari)return n("Safari shim is not included in this adapter release."),i;n("adapter.js shimming safari."),i.browserShim=wie,F_(e,r),L_(e),mSe(e),vSe(e),fSe(e),uSe(e),dSe(e),gSe(e),pSe(e),ySe(e),N_(e),dD(e),A_(e,r),D_(e),pD(e,r);break;default:n("Unsupported browser!");break}return i}const xie=YJt({window:typeof window>"u"?void 0:window});function b1(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}class xSe{constructor(){this.chunkedMTU=16300,this._dataCount=1,this.chunk=t=>{const n=[],r=t.byteLength,i=Math.ceil(r/this.chunkedMTU);let a=0,o=0;for(;o=this.minChromeVersion:e==="firefox"?t>=this.minFirefoxVersion:e==="safari"?!this.isIOS&&t>=this.minSafariVersion:!1:!1}getBrowser(){return HP.browserDetails.browser}getVersion(){return HP.browserDetails.version||0}isUnifiedPlanSupported(){const e=this.getBrowser(),t=HP.browserDetails.version||0;if(e==="chrome"&&t=this.minFirefoxVersion)return!0;if(!window.RTCRtpTransceiver||!("currentDirection"in RTCRtpTransceiver.prototype))return!1;let n,r=!1;try{n=new RTCPeerConnection,n.addTransceiver("audio"),r=!0}catch{}finally{n&&n.close()}return r}toString(){return`Supports: browser:${this.getBrowser()} version:${this.getVersion()} isIOS:${this.isIOS} isWebRTCSupported:${this.isWebRTCSupported()} isBrowserSupported:${this.isBrowserSupported()} - isUnifiedPlanSupported:${this.isUnifiedPlanSupported()}`}constructor(){this.isIOS=typeof navigator<"u"?["iPad","iPhone","iPod"].includes(navigator.platform):!1,this.supportedBrowsers=["firefox","chrome","safari"],this.minFirefoxVersion=59,this.minChromeVersion=72,this.minSafariVersion=605}},YJt=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),wSe=()=>Math.random().toString(36).slice(2),bie={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:["turn:eu-0.turn.peerjs.com:3478","turn:us-0.turn.peerjs.com:3478"],username:"peerjs",credential:"peerjsp"}],sdpSemantics:"unified-plan"};class XJt extends bSe{noop(){}blobToArrayBuffer(t,n){const r=new FileReader;return r.onload=function(i){i.target&&n(i.target.result)},r.readAsArrayBuffer(t),r}binaryStringToArrayBuffer(t){const n=new Uint8Array(t.length);for(let r=0;r=3&&this._print(3,...t)}warn(...t){this._logLevel>=2&&this._print(2,...t)}error(...t){this._logLevel>=1&&this._print(1,...t)}setLogFunction(t){this._print=t}_print(t,...n){const r=[ZJt,...n];for(const i in r)r[i]instanceof Error&&(r[i]="("+r[i].name+") "+r[i].message);t>=3?console.log(...r):t>=2?console.warn("WARNING",...r):t>=1&&console.error("ERROR",...r)}constructor(){this._logLevel=0}}var Wn=new QJt,GU={},JJt=Object.prototype.hasOwnProperty,bs="~";function N3(){}Object.create&&(N3.prototype=Object.create(null),new N3().__proto__||(bs=!1));function een(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function xSe(e,t,n,r,i){if(typeof n!="function")throw new TypeError("The listener must be a function");var a=new een(n,r||e,i),o=bs?bs+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],a]:e._events[o].push(a):(e._events[o]=a,e._eventsCount++),e}function L_(e,t){--e._eventsCount===0?e._events=new N3:delete e._events[t]}function es(){this._events=new N3,this._eventsCount=0}es.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)JJt.call(n,r)&&t.push(bs?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};es.prototype.listeners=function(t){var n=bs?bs+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=new Array(a);ifd);y1(b1,"PeerErrorType",()=>fa);y1(b1,"BaseConnectionErrorType",()=>A3);y1(b1,"DataConnectionErrorType",()=>D3);y1(b1,"SerializationType",()=>ty);y1(b1,"SocketEventType",()=>rd);y1(b1,"ServerMessageType",()=>io);var fd;(function(e){e.Data="data",e.Media="media"})(fd||(fd={}));var fa;(function(e){e.BrowserIncompatible="browser-incompatible",e.Disconnected="disconnected",e.InvalidID="invalid-id",e.InvalidKey="invalid-key",e.Network="network",e.PeerUnavailable="peer-unavailable",e.SslUnavailable="ssl-unavailable",e.ServerError="server-error",e.SocketError="socket-error",e.SocketClosed="socket-closed",e.UnavailableID="unavailable-id",e.WebRTC="webrtc"})(fa||(fa={}));var A3;(function(e){e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed"})(A3||(A3={}));var D3;(function(e){e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big"})(D3||(D3={}));var ty;(function(e){e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw"})(ty||(ty={}));var rd;(function(e){e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close"})(rd||(rd={}));var io;(function(e){e.Heartbeat="HEARTBEAT",e.Candidate="CANDIDATE",e.Offer="OFFER",e.Answer="ANSWER",e.Open="OPEN",e.Error="ERROR",e.IdTaken="ID-TAKEN",e.InvalidKey="INVALID-KEY",e.Leave="LEAVE",e.Expire="EXPIRE"})(io||(io={}));var YU={};YU=JSON.parse('{"name":"peerjs","version":"1.5.4","keywords":["peerjs","webrtc","p2p","rtc"],"description":"PeerJS client","homepage":"https://peerjs.com","bugs":{"url":"https://github.com/peers/peerjs/issues"},"repository":{"type":"git","url":"https://github.com/peers/peerjs"},"license":"MIT","contributors":["Michelle Bu ","afrokick ","ericz ","Jairo ","Jonas Gloning <34194370+jonasgloning@users.noreply.github.com>","Jairo Caro-Accino Viciana ","Carlos Caballero ","hc ","Muhammad Asif ","PrashoonB ","Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com>","akotynski ","lmb ","Jairooo ","Moritz Stückler ","Simon ","Denis Lukov ","Philipp Hancke ","Hans Oksendahl ","Jess ","khankuan ","DUODVK ","XiZhao ","Matthias Lohr ","=frank tree <=frnktrb@googlemail.com>","Andre Eckardt ","Chris Cowan ","Alex Chuev ","alxnull ","Yemel Jardi ","Ben Parnell ","Benny Lichtner ","fresheneesz ","bob.barstead@exaptive.com ","chandika ","emersion ","Christopher Van ","eddieherm ","Eduardo Pinho ","Evandro Zanatta ","Gardner Bickford ","Gian Luca ","PatrickJS ","jonnyf ","Hizkia Felix ","Hristo Oskov ","Isaac Madwed ","Ilya Konanykhin ","jasonbarry ","Jonathan Burke ","Josh Hamit ","Jordan Austin ","Joel Wetzell ","xizhao ","Alberto Torres ","Jonathan Mayol ","Jefferson Felix ","Rolf Erik Lekang ","Kevin Mai-Husan Chia ","Pepijn de Vos ","JooYoung ","Tobias Speicher ","Steve Blaurock ","Kyrylo Shegeda ","Diwank Singh Tomer ","Sören Balko ","Arpit Solanki ","Yuki Ito ","Artur Zayats "],"funding":{"type":"opencollective","url":"https://opencollective.com/peer"},"collective":{"type":"opencollective","url":"https://opencollective.com/peer"},"files":["dist/*"],"sideEffects":["lib/global.ts","lib/supports.ts"],"main":"dist/bundler.cjs","module":"dist/bundler.mjs","browser-minified":"dist/peerjs.min.js","browser-unminified":"dist/peerjs.js","browser-minified-msgpack":"dist/serializer.msgpack.mjs","types":"dist/types.d.ts","engines":{"node":">= 14"},"targets":{"types":{"source":"lib/exports.ts"},"main":{"source":"lib/exports.ts","sourceMap":{"inlineSources":true}},"module":{"source":"lib/exports.ts","includeNodeModules":["eventemitter3"],"sourceMap":{"inlineSources":true}},"browser-minified":{"context":"browser","outputFormat":"global","optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-unminified":{"context":"browser","outputFormat":"global","optimize":false,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-minified-msgpack":{"context":"browser","outputFormat":"esmodule","isLibrary":true,"optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 102, safari >= 15"},"source":"lib/dataconnection/StreamConnection/MsgPack.ts"}},"scripts":{"contributors":"git-authors-cli --print=false && prettier --write package.json && git add package.json package-lock.json && git commit -m \\"chore(contributors): update and sort contributors list\\"","check":"tsc --noEmit && tsc -p e2e/tsconfig.json --noEmit","watch":"parcel watch","build":"rm -rf dist && parcel build","prepublishOnly":"npm run build","test":"jest","test:watch":"jest --watch","coverage":"jest --coverage --collectCoverageFrom=\\"./lib/**\\"","format":"prettier --write .","format:check":"prettier --check .","semantic-release":"semantic-release","e2e":"wdio run e2e/wdio.local.conf.ts","e2e:bstack":"wdio run e2e/wdio.bstack.conf.ts"},"devDependencies":{"@parcel/config-default":"^2.9.3","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-tsc":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@swc/core":"^1.3.27","@swc/jest":"^0.2.24","@types/jasmine":"^4.3.4","@wdio/browserstack-service":"^8.11.2","@wdio/cli":"^8.11.2","@wdio/globals":"^8.11.2","@wdio/jasmine-framework":"^8.11.2","@wdio/local-runner":"^8.11.2","@wdio/spec-reporter":"^8.11.2","@wdio/types":"^8.10.4","http-server":"^14.1.1","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","mock-socket":"^9.0.0","parcel":"^2.9.3","prettier":"^3.0.0","semantic-release":"^21.0.0","ts-node":"^10.9.1","typescript":"^5.0.0","wdio-geckodriver-service":"^5.0.1"},"dependencies":{"@msgpack/msgpack":"^2.8.0","eventemitter3":"^4.0.7","peerjs-js-binarypack":"^2.1.0","webrtc-adapter":"^9.0.0"},"alias":{"process":false,"buffer":false}}');class ten extends GU.EventEmitter{constructor(t,n,r,i,a,o=5e3){super(),this.pingInterval=o,this._disconnected=!0,this._messagesQueue=[];const s=t?"wss://":"ws://";this._baseUrl=s+n+":"+r+i+"peerjs?key="+a}start(t,n){this._id=t;const r=`${this._baseUrl}&id=${t}&token=${n}`;this._socket||!this._disconnected||(this._socket=new WebSocket(r+"&version="+YU.version),this._disconnected=!1,this._socket.onmessage=i=>{let a;try{a=JSON.parse(i.data),Wn.log("Server message received:",a)}catch{Wn.log("Invalid server message",i.data);return}this.emit(rd.Message,a)},this._socket.onclose=i=>{this._disconnected||(Wn.log("Socket closed.",i),this._cleanup(),this._disconnected=!0,this.emit(rd.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),Wn.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){Wn.log("Cannot send heartbeat, because socket closed");return}const t=JSON.stringify({type:io.Heartbeat});this._socket.send(t),this._scheduleHeartbeat()}_wsOpen(){return!!this._socket&&this._socket.readyState===1}_sendQueuedMessages(){const t=[...this._messagesQueue];this._messagesQueue=[];for(const n of t)this.send(n)}send(t){if(this._disconnected)return;if(!this._id){this._messagesQueue.push(t);return}if(!t.type){this.emit(rd.Error,"Invalid message");return}if(!this._wsOpen())return;const n=JSON.stringify(t);this._socket.send(n)}close(){this._disconnected||(this._cleanup(),this._disconnected=!0)}_cleanup(){this._socket&&(this._socket.onopen=this._socket.onmessage=this._socket.onclose=null,this._socket.close(),this._socket=void 0),clearTimeout(this._wsPingTimer)}}class SSe{constructor(t){this.connection=t}startConnection(t){const n=this._startPeerConnection();if(this.connection.peerConnection=n,this.connection.type===fd.Media&&t._stream&&this._addTracksToConnection(t._stream,n),t.originator){const r=this.connection,i={ordered:!!t.reliable},a=n.createDataChannel(r.label,i);r._initializeDataChannel(a),this._makeOffer()}else this.handleSDP("OFFER",t.sdp)}_startPeerConnection(){Wn.log("Creating RTCPeerConnection.");const t=new RTCPeerConnection(this.connection.provider.options.config);return this._setupListeners(t),t}_setupListeners(t){const n=this.connection.peer,r=this.connection.connectionId,i=this.connection.type,a=this.connection.provider;Wn.log("Listening for ICE candidates."),t.onicecandidate=o=>{!o.candidate||!o.candidate.candidate||(Wn.log(`Received ICE candidates for ${n}:`,o.candidate),a.socket.send({type:io.Candidate,payload:{candidate:o.candidate,type:i,connectionId:r},dst:n}))},t.oniceconnectionstatechange=()=>{switch(t.iceConnectionState){case"failed":Wn.log("iceConnectionState is failed, closing connections to "+n),this.connection.emitError(A3.NegotiationFailed,"Negotiation of connection to "+n+" failed."),this.connection.close();break;case"closed":Wn.log("iceConnectionState is closed, closing connections to "+n),this.connection.emitError(A3.ConnectionClosed,"Connection to "+n+" closed."),this.connection.close();break;case"disconnected":Wn.log("iceConnectionState changed to disconnected on the connection with "+n);break;case"completed":t.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",t.iceConnectionState)},Wn.log("Listening for data channel"),t.ondatachannel=o=>{Wn.log("Received data channel");const s=o.channel;a.getConnection(n,r)._initializeDataChannel(s)},Wn.log("Listening for remote stream"),t.ontrack=o=>{Wn.log("Received remote stream");const s=o.streams[0],l=a.getConnection(n,r);if(l.type===fd.Media){const c=l;this._addStreamToMediaConnection(s,c)}}}cleanup(){Wn.log("Cleaning up PeerConnection to "+this.connection.peer);const t=this.connection.peerConnection;if(!t)return;this.connection.peerConnection=null,t.onicecandidate=t.oniceconnectionstatechange=t.ondatachannel=t.ontrack=()=>{};const n=t.signalingState!=="closed";let r=!1;const i=this.connection.dataChannel;i&&(r=!!i.readyState&&i.readyState!=="closed"),(n||r)&&t.close()}async _makeOffer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createOffer(this.connection.options.constraints);Wn.log("Created offer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(r.sdp=this.connection.options.sdpTransform(r.sdp)||r.sdp);try{await t.setLocalDescription(r),Wn.log("Set localDescription:",r,`for:${this.connection.peer}`);let i={sdp:r,type:this.connection.type,connectionId:this.connection.connectionId,metadata:this.connection.metadata};if(this.connection.type===fd.Data){const a=this.connection;i={...i,label:a.label,reliable:a.reliable,serialization:a.serialization}}n.socket.send({type:io.Offer,payload:i,dst:this.connection.peer})}catch(i){i!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(n.emitError(fa.WebRTC,i),Wn.log("Failed to setLocalDescription, ",i))}}catch(r){n.emitError(fa.WebRTC,r),Wn.log("Failed to createOffer, ",r)}}async _makeAnswer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createAnswer();Wn.log("Created answer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(r.sdp=this.connection.options.sdpTransform(r.sdp)||r.sdp);try{await t.setLocalDescription(r),Wn.log("Set localDescription:",r,`for:${this.connection.peer}`),n.socket.send({type:io.Answer,payload:{sdp:r,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(i){n.emitError(fa.WebRTC,i),Wn.log("Failed to setLocalDescription, ",i)}}catch(r){n.emitError(fa.WebRTC,r),Wn.log("Failed to create answer, ",r)}}async handleSDP(t,n){n=new RTCSessionDescription(n);const r=this.connection.peerConnection,i=this.connection.provider;Wn.log("Setting remote description",n);const a=this;try{await r.setRemoteDescription(n),Wn.log(`Set remoteDescription:${t} for:${this.connection.peer}`),t==="OFFER"&&await a._makeAnswer()}catch(o){i.emitError(fa.WebRTC,o),Wn.log("Failed to setRemoteDescription, ",o)}}async handleCandidate(t){Wn.log("handleCandidate:",t);try{await this.connection.peerConnection.addIceCandidate(t),Wn.log(`Added ICE candidate for:${this.connection.peer}`)}catch(n){this.connection.provider.emitError(fa.WebRTC,n),Wn.log("Failed to handleCandidate, ",n)}}_addTracksToConnection(t,n){if(Wn.log(`add tracks from stream ${t.id} to peer connection`),!n.addTrack)return Wn.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");t.getTracks().forEach(r=>{n.addTrack(r,t)})}_addStreamToMediaConnection(t,n){Wn.log(`add stream ${t.id} to media connection ${n.connectionId}`),n.addStream(t)}}class CSe extends GU.EventEmitter{emitError(t,n){Wn.error("Error:",n),this.emit("error",new nen(`${t}`,n))}}class nen extends Error{constructor(t,n){typeof n=="string"?super(n):(super(),Object.assign(this,n)),this.type=t}}class _Se extends CSe{get open(){return this._open}constructor(t,n,r){super(),this.peer=t,this.provider=n,this.options=r,this._open=!1,this.metadata=r.metadata}}var fD;const uw=class uw extends _Se{get type(){return fd.Media}get localStream(){return this._localStream}get remoteStream(){return this._remoteStream}constructor(t,n,r){super(t,n,r),this._localStream=this.options._stream,this.connectionId=this.options.connectionId||uw.ID_PREFIX+Is.randomToken(),this._negotiator=new SSe(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{Wn.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{Wn.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(t){Wn.log("Receiving stream",t),this._remoteStream=t,super.emit("stream",t)}handleMessage(t){const n=t.type,r=t.payload;switch(t.type){case io.Answer:this._negotiator.handleSDP(n,r.sdp),this._open=!0;break;case io.Candidate:this._negotiator.handleCandidate(r.candidate);break;default:Wn.warn(`Unrecognized message type:${n} from peer:${this.peer}`);break}}answer(t,n={}){if(this._localStream){Wn.warn("Local stream already exists on this MediaConnection. Are you answering a call twice?");return}this._localStream=t,n&&n.sdpTransform&&(this.options.sdpTransform=n.sdpTransform),this._negotiator.startConnection({...this.options._payload,_stream:t});const r=this.provider._getMessages(this.connectionId);for(const i of r)this.handleMessage(i);this._open=!0}close(){this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this._localStream=null,this._remoteStream=null,this.provider&&(this.provider._removeConnection(this),this.provider=null),this.options&&this.options._stream&&(this.options._stream=null),this.open&&(this._open=!1,super.emit("close"))}};fD=new WeakMap,Un(uw,fD,uw.ID_PREFIX="mc_");let b5=uw;class ren{constructor(t){this._options=t}_buildRequest(t){const n=this._options.secure?"https":"http",{host:r,port:i,path:a,key:o}=this._options,s=new URL(`${n}://${r}:${i}${a}${o}/${t}`);return s.searchParams.set("ts",`${Date.now()}${Math.random()}`),s.searchParams.set("version",YU.version),fetch(s.href,{referrerPolicy:this._options.referrerPolicy})}async retrieveId(){try{const t=await this._buildRequest("id");if(t.status!==200)throw new Error(`Error. Status:${t.status}`);return t.text()}catch(t){Wn.error("Error retrieving ID",t);let n="";throw this._options.path==="/"&&this._options.host!==Is.CLOUD_HOST&&(n=" If you passed in a `path` to your self-hosted PeerServer, you'll also need to pass in that same path when creating a new Peer."),new Error("Could not get an ID from the server."+n)}}async listAllPeers(){try{const t=await this._buildRequest("peers");if(t.status!==200){if(t.status===401){let n="";throw this._options.host===Is.CLOUD_HOST?n="It looks like you're using the cloud server. You can email team@peerjs.com to enable peer listing for your API key.":n="You need to enable `allow_discovery` on your self-hosted PeerServer to use this feature.",new Error("It doesn't look like you have permission to list peers IDs. "+n)}throw new Error(`Error. Status:${t.status}`)}return t.json()}catch(t){throw Wn.error("Error retrieving list peers",t),new Error("Could not get list peers from the server."+t)}}}var pD,hD;const pm=class pm extends _Se{get type(){return fd.Data}constructor(t,n,r){super(t,n,r),this.connectionId=this.options.connectionId||pm.ID_PREFIX+wSe(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new SSe(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{Wn.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=n=>{Wn.log(`DC#${this.connectionId} dc onmessage:`,n.data)},this.dataChannel.onclose=()=>{Wn.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this.provider&&(this.provider._removeConnection(this),this.provider=null),this.dataChannel&&(this.dataChannel.onopen=null,this.dataChannel.onmessage=null,this.dataChannel.onclose=null,this.dataChannel=null),this.open&&(this._open=!1,super.emit("close"))}send(t,n=!1){if(!this.open){this.emitError(D3.NotOpenYet,"Connection is not open. You should listen for the `open` event before sending messages.");return}return this._send(t,n)}async handleMessage(t){const n=t.payload;switch(t.type){case io.Answer:await this._negotiator.handleSDP(t.type,n.sdp);break;case io.Candidate:await this._negotiator.handleCandidate(n.candidate);break;default:Wn.warn("Unrecognized message type:",t.type,"from peer:",this.peer);break}}};pD=new WeakMap,hD=new WeakMap,Un(pm,pD,pm.ID_PREFIX="dc_"),Un(pm,hD,pm.MAX_BUFFERED_AMOUNT=8388608);let w5=pm;class XU extends w5{get bufferSize(){return this._bufferSize}_initializeDataChannel(t){super._initializeDataChannel(t),this.dataChannel.binaryType="arraybuffer",this.dataChannel.addEventListener("message",n=>this._handleDataMessage(n))}_bufferedSend(t){(this._buffering||!this._trySend(t))&&(this._buffer.push(t),this._bufferSize=this._buffer.length)}_trySend(t){if(!this.open)return!1;if(this.dataChannel.bufferedAmount>w5.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(t)}catch(n){return Wn.error(`DC#:${this.connectionId} Error when sending:`,n),this._buffering=!0,this.close(),!1}return!0}_tryBuffer(){if(!this.open||this._buffer.length===0)return;const t=this._buffer[0];this._trySend(t)&&(this._buffer.shift(),this._bufferSize=this._buffer.length,this._tryBuffer())}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._buffer=[],this._bufferSize=0,super.close()}constructor(...t){super(...t),this._buffer=[],this._bufferSize=0,this._buffering=!1}}class BP extends XU{close(t){super.close(t),this._chunkedData={}}constructor(t,n,r){super(t,n,r),this.chunker=new bSe,this.serialization=ty.Binary,this._chunkedData={}}_handleDataMessage({data:t}){const n=Fxe(t),r=n.__peerData;if(r){if(r.type==="close"){this.close();return}this._handleChunk(n);return}this.emit("data",n)}_handleChunk(t){const n=t.__peerData,r=this._chunkedData[n]||{data:[],count:0,total:t.total};if(r.data[t.n]=new Uint8Array(t.data),r.count++,this._chunkedData[n]=r,r.total===r.count){delete this._chunkedData[n];const i=GJt(r.data);this._handleDataMessage({data:i})}}_send(t,n){const r=Lxe(t);if(r instanceof Promise)return this._send_blob(r);if(!n&&r.byteLength>this.chunker.chunkedMTU){this._sendChunks(r);return}this._bufferedSend(r)}async _send_blob(t){const n=await t;if(n.byteLength>this.chunker.chunkedMTU){this._sendChunks(n);return}this._bufferedSend(n)}_sendChunks(t){const n=this.chunker.chunk(t);Wn.log(`DC#${this.connectionId} Try to send ${n.length} chunks...`);for(const r of n)this.send(r,!0)}}class ien extends XU{_handleDataMessage({data:t}){super.emit("data",t)}_send(t,n){this._bufferedSend(t)}constructor(...t){super(...t),this.serialization=ty.None}}class aen extends XU{_handleDataMessage({data:t}){const n=this.parse(this.decoder.decode(t)),r=n.__peerData;if(r&&r.type==="close"){this.close();return}this.emit("data",n)}_send(t,n){const r=this.encoder.encode(this.stringify(t));if(r.byteLength>=Is.chunkedMTU){this.emitError(D3.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(r)}constructor(...t){super(...t),this.serialization=ty.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}}var mD;const dw=class dw extends CSe{get id(){return this._id}get options(){return this._options}get open(){return this._open}get socket(){return this._socket}get connections(){const t=Object.create(null);for(const[n,r]of this._connections)t[n]=r;return t}get destroyed(){return this._destroyed}get disconnected(){return this._disconnected}constructor(t,n){super(),this._serializers={raw:ien,json:aen,binary:BP,"binary-utf8":BP,default:BP},this._id=null,this._lastServerId=null,this._destroyed=!1,this._disconnected=!1,this._open=!1,this._connections=new Map,this._lostMessages=new Map;let r;if(t&&t.constructor==Object?n=t:t&&(r=t.toString()),n={debug:0,host:Is.CLOUD_HOST,port:Is.CLOUD_PORT,path:"/",key:dw.DEFAULT_KEY,token:Is.randomToken(),config:Is.defaultConfig,referrerPolicy:"strict-origin-when-cross-origin",serializers:{},...n},this._options=n,this._serializers={...this._serializers,...this.options.serializers},this._options.host==="/"&&(this._options.host=window.location.hostname),this._options.path&&(this._options.path[0]!=="/"&&(this._options.path="/"+this._options.path),this._options.path[this._options.path.length-1]!=="/"&&(this._options.path+="/")),this._options.secure===void 0&&this._options.host!==Is.CLOUD_HOST?this._options.secure=Is.isSecure():this._options.host==Is.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&Wn.setLogFunction(this._options.logFunction),Wn.logLevel=this._options.debug||0,this._api=new ren(n),this._socket=this._createServerConnection(),!Is.supports.audioVideo&&!Is.supports.data){this._delayedAbort(fa.BrowserIncompatible,"The current browser does not support WebRTC");return}if(r&&!Is.validateId(r)){this._delayedAbort(fa.InvalidID,`ID "${r}" is invalid`);return}r?this._initialize(r):this._api.retrieveId().then(i=>this._initialize(i)).catch(i=>this._abort(fa.ServerError,i))}_createServerConnection(){const t=new ten(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return t.on(rd.Message,n=>{this._handleMessage(n)}),t.on(rd.Error,n=>{this._abort(fa.SocketError,n)}),t.on(rd.Disconnected,()=>{this.disconnected||(this.emitError(fa.Network,"Lost connection to server."),this.disconnect())}),t.on(rd.Close,()=>{this.disconnected||this._abort(fa.SocketClosed,"Underlying socket is already closed.")}),t}_initialize(t){this._id=t,this.socket.start(t,this._options.token)}_handleMessage(t){const n=t.type,r=t.payload,i=t.src;switch(n){case io.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case io.Error:this._abort(fa.ServerError,r.msg);break;case io.IdTaken:this._abort(fa.UnavailableID,`ID "${this.id}" is taken`);break;case io.InvalidKey:this._abort(fa.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case io.Leave:Wn.log(`Received leave message from ${i}`),this._cleanupPeer(i),this._connections.delete(i);break;case io.Expire:this.emitError(fa.PeerUnavailable,`Could not connect to peer ${i}`);break;case io.Offer:{const a=r.connectionId;let o=this.getConnection(i,a);if(o&&(o.close(),Wn.warn(`Offer received for existing Connection ID:${a}`)),r.type===fd.Media){const l=new b5(i,this,{connectionId:a,_payload:r,metadata:r.metadata});o=l,this._addConnection(i,o),this.emit("call",l)}else if(r.type===fd.Data){const l=new this._serializers[r.serialization](i,this,{connectionId:a,_payload:r,metadata:r.metadata,label:r.label,serialization:r.serialization,reliable:r.reliable});o=l,this._addConnection(i,o),this.emit("connection",l)}else{Wn.warn(`Received malformed connection type:${r.type}`);return}const s=this._getMessages(a);for(const l of s)o.handleMessage(l);break}default:{if(!r){Wn.warn(`You received a malformed message from ${i} of type ${n}`);return}const a=r.connectionId,o=this.getConnection(i,a);o&&o.peerConnection?o.handleMessage(t):a?this._storeMessage(a,t):Wn.warn("You received an unrecognized message:",t);break}}}_storeMessage(t,n){this._lostMessages.has(t)||this._lostMessages.set(t,[]),this._lostMessages.get(t).push(n)}_getMessages(t){const n=this._lostMessages.get(t);return n?(this._lostMessages.delete(t),n):[]}connect(t,n={}){if(n={serialization:"default",...n},this.disconnected){Wn.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect, or call reconnect on this peer if you believe its ID to still be available."),this.emitError(fa.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}const r=new this._serializers[n.serialization](t,this,n);return this._addConnection(t,r),r}call(t,n,r={}){if(this.disconnected){Wn.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect."),this.emitError(fa.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!n){Wn.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}const i=new b5(t,this,{...r,_stream:n});return this._addConnection(t,i),i}_addConnection(t,n){Wn.log(`add connection ${n.type}:${n.connectionId} to peerId:${t}`),this._connections.has(t)||this._connections.set(t,[]),this._connections.get(t).push(n)}_removeConnection(t){const n=this._connections.get(t.peer);if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}this._lostMessages.delete(t.connectionId)}getConnection(t,n){const r=this._connections.get(t);if(!r)return null;for(const i of r)if(i.connectionId===n)return i;return null}_delayedAbort(t,n){setTimeout(()=>{this._abort(t,n)},0)}_abort(t,n){Wn.error("Aborting!"),this.emitError(t,n),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(Wn.log(`Destroy peer with ID:${this.id}`),this.disconnect(),this._cleanup(),this._destroyed=!0,this.emit("close"))}_cleanup(){for(const t of this._connections.keys())this._cleanupPeer(t),this._connections.delete(t);this.socket.removeAllListeners()}_cleanupPeer(t){const n=this._connections.get(t);if(n)for(const r of n)r.close()}disconnect(){if(this.disconnected)return;const t=this.id;Wn.log(`Disconnect peer with ID:${t}`),this._disconnected=!0,this._open=!1,this.socket.close(),this._lastServerId=t,this._id=null,this.emit("disconnected",t)}reconnect(){if(this.disconnected&&!this.destroyed)Wn.log(`Attempting reconnection to server with ID ${this._lastServerId}`),this._disconnected=!1,this._initialize(this._lastServerId);else{if(this.destroyed)throw new Error("This peer cannot reconnect to the server. It has already been destroyed.");if(!this.disconnected&&!this.open)Wn.error("In a hurry? We're still trying to make the initial connection!");else throw new Error(`Peer ${this.id} cannot reconnect because it is not disconnected from the server!`)}}listAllPeers(t=n=>{}){this._api.listAllPeers().then(n=>t(n)).catch(n=>this._abort(fa.ServerError,n))}};mD=new WeakMap,Un(dw,mD,dw.DEFAULT_KEY="peerjs");let dD=dw,oen="127.0.0.1",sen=9e3,len="/";function cen(){console.log("usePeer");const e=aa(o=>o.userInfo);let t=null,n=null;const r=o=>{n=t.connect(o),n.on("open",()=>{console.log("Connected to peer with ID:",o),n.send("hi!")})},i=o=>{n?(console.log("sending message:",o),n.send(o)):console.error("no connection to send message")},a=o=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(s=>{t.call(o,s).on("stream",c=>{})}).catch(s=>{console.error("Failed to get local stream",s)})};return d.useEffect(()=>{const o=new dD(e.uid,{host:oen,port:sen,path:len});console.log("Starting self peer with ID:",e.uid),o.on("open",function(){console.log("self peer opened!")}),o.on("connection",s=>{s.on("data",l=>{console.log("connection data:",l)}),s.on("open",()=>{s.send("connection data open!")})}),o.on("call",s=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(l=>{s.answer(l),s.on("stream",c=>{})}).catch(l=>{console.error("Failed to get local stream",l)})})},[e]),{peer:t,connectOtherPeer:r,sendMessage:i,callOtherPeer:a}}const uen=()=>{const e=Pn(),[t,n]=d.useState("/chat"),r=$o(),{isLoggedIn:i,mode:a}=d.useContext(Ma),{footerStyle:o}=co(),[s,l]=d.useState(!1),c=fr(h=>h.threads);d.useEffect(()=>{const h=c.some(m=>m.unreadCount>0);l(h)},[c]);const u=[{path:"/anonymous/home",name:e.formatMessage({id:"menu.dashboard.chat"}),icon:x.jsx(mve,{}),component:x.jsx(iD,{})}],[f,p]=d.useState(u);return Nxe(),jxe(),AJt(),cen(),mU(),d.useEffect(()=>{p(u)},[a]),d.useEffect(()=>(i&&r("/chat"),()=>{console.log("un - useEffect")}),[i]),x.jsxs(v2e,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:f},location:{pathname:t},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:h=>h.isMobile?[]:[x.jsx(Sit,{onClick:Uct},"QuestionCircleFilled")],menuHeaderRender:()=>x.jsx(Rxe,{}),menuFooterRender:h=>{h!=null&&h.collapsed},onMenuHeaderClick:h=>{console.log("onMenuHeaderClick",h)},menuItemRender:(h,m)=>x.jsx(x.Fragment,{children:x.jsxs("a",{onClick:()=>{n(h.path),r(h.path)},children:[s&&x.jsxs(x.Fragment,{children:[h.path==="/anonymous/home"&&x.jsx(Fo,{size:"small",dot:s,offset:[-5,5],children:m}),h.path!=="/anonymous/home"&&m]}),!s&&x.jsx(x.Fragment,{children:m})]})}),children:[x.jsx(T7,{children:x.jsx(F4,{})}),x.jsx(P7,{style:o,children:x.jsx(Ixe,{})}),x.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},{Sider:den,Content:fen}=Qn,pen=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsxs(den,{style:e,width:t,children:[x.jsx(xg,{style:n,children:"contact"}),x.jsx(UU,{})]}),x.jsxs(Qn,{children:[x.jsx(xg,{style:n,children:"contact"}),x.jsx(fen,{style:r,children:"contact"})]})]})})},{Sider:hen,Content:men}=Qn,gen=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(hen,{style:e,width:t}),x.jsxs(Qn,{children:[x.jsx(xg,{style:n,children:"robot"}),x.jsx(men,{style:r,children:"robot"})]})]})})},{Sider:ven,Content:yen}=Qn,ben=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(ven,{style:e,width:t}),x.jsxs(Qn,{children:[x.jsx(xg,{style:n,children:"setting"}),x.jsx(yen,{style:r,children:"setting"})]})]})})},{Sider:wen,Header:xie,Content:xen}=Qn,Sen=()=>{const e=Pn(),{leftSiderStyle:t,leftSiderWidth:n,headerStyle:r,contentStyle:i}=co();return x.jsxs(Qn,{children:[x.jsx(wen,{width:n,style:t,children:x.jsx(xie,{style:r,children:e.formatMessage({id:"chat.navbar.kbase"})})}),x.jsxs(Qn,{children:[x.jsx(xie,{style:r,children:e.formatMessage({id:"chat.navbar.kbase"})}),x.jsx(xen,{style:i})]})]})},{Title:Cen,Text:_en}=Zf,ken=bu.div` + isUnifiedPlanSupported:${this.isUnifiedPlanSupported()}`}constructor(){this.isIOS=typeof navigator<"u"?["iPad","iPhone","iPod"].includes(navigator.platform):!1,this.supportedBrowsers=["firefox","chrome","safari"],this.minFirefoxVersion=59,this.minChromeVersion=72,this.minSafariVersion=605}},ZJt=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),SSe=()=>Math.random().toString(36).slice(2),Sie={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:["turn:eu-0.turn.peerjs.com:3478","turn:us-0.turn.peerjs.com:3478"],username:"peerjs",credential:"peerjsp"}],sdpSemantics:"unified-plan"};class QJt extends xSe{noop(){}blobToArrayBuffer(t,n){const r=new FileReader;return r.onload=function(i){i.target&&n(i.target.result)},r.readAsArrayBuffer(t),r}binaryStringToArrayBuffer(t){const n=new Uint8Array(t.length);for(let r=0;r=3&&this._print(3,...t)}warn(...t){this._logLevel>=2&&this._print(2,...t)}error(...t){this._logLevel>=1&&this._print(1,...t)}setLogFunction(t){this._print=t}_print(t,...n){const r=[JJt,...n];for(const i in r)r[i]instanceof Error&&(r[i]="("+r[i].name+") "+r[i].message);t>=3?console.log(...r):t>=2?console.warn("WARNING",...r):t>=1&&console.error("ERROR",...r)}constructor(){this._logLevel=0}}var Wn=new een,ZU={},ten=Object.prototype.hasOwnProperty,Ss="~";function N3(){}Object.create&&(N3.prototype=Object.create(null),new N3().__proto__||(Ss=!1));function nen(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function CSe(e,t,n,r,i){if(typeof n!="function")throw new TypeError("The listener must be a function");var a=new nen(n,r||e,i),o=Ss?Ss+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],a]:e._events[o].push(a):(e._events[o]=a,e._eventsCount++),e}function B_(e,t){--e._eventsCount===0?e._events=new N3:delete e._events[t]}function Jo(){this._events=new N3,this._eventsCount=0}Jo.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)ten.call(n,r)&&t.push(Ss?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};Jo.prototype.listeners=function(t){var n=Ss?Ss+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=new Array(a);imd);b1(w1,"PeerErrorType",()=>da);b1(w1,"BaseConnectionErrorType",()=>A3);b1(w1,"DataConnectionErrorType",()=>D3);b1(w1,"SerializationType",()=>iy);b1(w1,"SocketEventType",()=>od);b1(w1,"ServerMessageType",()=>no);var md;(function(e){e.Data="data",e.Media="media"})(md||(md={}));var da;(function(e){e.BrowserIncompatible="browser-incompatible",e.Disconnected="disconnected",e.InvalidID="invalid-id",e.InvalidKey="invalid-key",e.Network="network",e.PeerUnavailable="peer-unavailable",e.SslUnavailable="ssl-unavailable",e.ServerError="server-error",e.SocketError="socket-error",e.SocketClosed="socket-closed",e.UnavailableID="unavailable-id",e.WebRTC="webrtc"})(da||(da={}));var A3;(function(e){e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed"})(A3||(A3={}));var D3;(function(e){e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big"})(D3||(D3={}));var iy;(function(e){e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw"})(iy||(iy={}));var od;(function(e){e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close"})(od||(od={}));var no;(function(e){e.Heartbeat="HEARTBEAT",e.Candidate="CANDIDATE",e.Offer="OFFER",e.Answer="ANSWER",e.Open="OPEN",e.Error="ERROR",e.IdTaken="ID-TAKEN",e.InvalidKey="INVALID-KEY",e.Leave="LEAVE",e.Expire="EXPIRE"})(no||(no={}));var QU={};QU=JSON.parse('{"name":"peerjs","version":"1.5.4","keywords":["peerjs","webrtc","p2p","rtc"],"description":"PeerJS client","homepage":"https://peerjs.com","bugs":{"url":"https://github.com/peers/peerjs/issues"},"repository":{"type":"git","url":"https://github.com/peers/peerjs"},"license":"MIT","contributors":["Michelle Bu ","afrokick ","ericz ","Jairo ","Jonas Gloning <34194370+jonasgloning@users.noreply.github.com>","Jairo Caro-Accino Viciana ","Carlos Caballero ","hc ","Muhammad Asif ","PrashoonB ","Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com>","akotynski ","lmb ","Jairooo ","Moritz Stückler ","Simon ","Denis Lukov ","Philipp Hancke ","Hans Oksendahl ","Jess ","khankuan ","DUODVK ","XiZhao ","Matthias Lohr ","=frank tree <=frnktrb@googlemail.com>","Andre Eckardt ","Chris Cowan ","Alex Chuev ","alxnull ","Yemel Jardi ","Ben Parnell ","Benny Lichtner ","fresheneesz ","bob.barstead@exaptive.com ","chandika ","emersion ","Christopher Van ","eddieherm ","Eduardo Pinho ","Evandro Zanatta ","Gardner Bickford ","Gian Luca ","PatrickJS ","jonnyf ","Hizkia Felix ","Hristo Oskov ","Isaac Madwed ","Ilya Konanykhin ","jasonbarry ","Jonathan Burke ","Josh Hamit ","Jordan Austin ","Joel Wetzell ","xizhao ","Alberto Torres ","Jonathan Mayol ","Jefferson Felix ","Rolf Erik Lekang ","Kevin Mai-Husan Chia ","Pepijn de Vos ","JooYoung ","Tobias Speicher ","Steve Blaurock ","Kyrylo Shegeda ","Diwank Singh Tomer ","Sören Balko ","Arpit Solanki ","Yuki Ito ","Artur Zayats "],"funding":{"type":"opencollective","url":"https://opencollective.com/peer"},"collective":{"type":"opencollective","url":"https://opencollective.com/peer"},"files":["dist/*"],"sideEffects":["lib/global.ts","lib/supports.ts"],"main":"dist/bundler.cjs","module":"dist/bundler.mjs","browser-minified":"dist/peerjs.min.js","browser-unminified":"dist/peerjs.js","browser-minified-msgpack":"dist/serializer.msgpack.mjs","types":"dist/types.d.ts","engines":{"node":">= 14"},"targets":{"types":{"source":"lib/exports.ts"},"main":{"source":"lib/exports.ts","sourceMap":{"inlineSources":true}},"module":{"source":"lib/exports.ts","includeNodeModules":["eventemitter3"],"sourceMap":{"inlineSources":true}},"browser-minified":{"context":"browser","outputFormat":"global","optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-unminified":{"context":"browser","outputFormat":"global","optimize":false,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-minified-msgpack":{"context":"browser","outputFormat":"esmodule","isLibrary":true,"optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 102, safari >= 15"},"source":"lib/dataconnection/StreamConnection/MsgPack.ts"}},"scripts":{"contributors":"git-authors-cli --print=false && prettier --write package.json && git add package.json package-lock.json && git commit -m \\"chore(contributors): update and sort contributors list\\"","check":"tsc --noEmit && tsc -p e2e/tsconfig.json --noEmit","watch":"parcel watch","build":"rm -rf dist && parcel build","prepublishOnly":"npm run build","test":"jest","test:watch":"jest --watch","coverage":"jest --coverage --collectCoverageFrom=\\"./lib/**\\"","format":"prettier --write .","format:check":"prettier --check .","semantic-release":"semantic-release","e2e":"wdio run e2e/wdio.local.conf.ts","e2e:bstack":"wdio run e2e/wdio.bstack.conf.ts"},"devDependencies":{"@parcel/config-default":"^2.9.3","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-tsc":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@swc/core":"^1.3.27","@swc/jest":"^0.2.24","@types/jasmine":"^4.3.4","@wdio/browserstack-service":"^8.11.2","@wdio/cli":"^8.11.2","@wdio/globals":"^8.11.2","@wdio/jasmine-framework":"^8.11.2","@wdio/local-runner":"^8.11.2","@wdio/spec-reporter":"^8.11.2","@wdio/types":"^8.10.4","http-server":"^14.1.1","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","mock-socket":"^9.0.0","parcel":"^2.9.3","prettier":"^3.0.0","semantic-release":"^21.0.0","ts-node":"^10.9.1","typescript":"^5.0.0","wdio-geckodriver-service":"^5.0.1"},"dependencies":{"@msgpack/msgpack":"^2.8.0","eventemitter3":"^4.0.7","peerjs-js-binarypack":"^2.1.0","webrtc-adapter":"^9.0.0"},"alias":{"process":false,"buffer":false}}');class ren extends ZU.EventEmitter{constructor(t,n,r,i,a,o=5e3){super(),this.pingInterval=o,this._disconnected=!0,this._messagesQueue=[];const s=t?"wss://":"ws://";this._baseUrl=s+n+":"+r+i+"peerjs?key="+a}start(t,n){this._id=t;const r=`${this._baseUrl}&id=${t}&token=${n}`;this._socket||!this._disconnected||(this._socket=new WebSocket(r+"&version="+QU.version),this._disconnected=!1,this._socket.onmessage=i=>{let a;try{a=JSON.parse(i.data),Wn.log("Server message received:",a)}catch{Wn.log("Invalid server message",i.data);return}this.emit(od.Message,a)},this._socket.onclose=i=>{this._disconnected||(Wn.log("Socket closed.",i),this._cleanup(),this._disconnected=!0,this.emit(od.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),Wn.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){Wn.log("Cannot send heartbeat, because socket closed");return}const t=JSON.stringify({type:no.Heartbeat});this._socket.send(t),this._scheduleHeartbeat()}_wsOpen(){return!!this._socket&&this._socket.readyState===1}_sendQueuedMessages(){const t=[...this._messagesQueue];this._messagesQueue=[];for(const n of t)this.send(n)}send(t){if(this._disconnected)return;if(!this._id){this._messagesQueue.push(t);return}if(!t.type){this.emit(od.Error,"Invalid message");return}if(!this._wsOpen())return;const n=JSON.stringify(t);this._socket.send(n)}close(){this._disconnected||(this._cleanup(),this._disconnected=!0)}_cleanup(){this._socket&&(this._socket.onopen=this._socket.onmessage=this._socket.onclose=null,this._socket.close(),this._socket=void 0),clearTimeout(this._wsPingTimer)}}class _Se{constructor(t){this.connection=t}startConnection(t){const n=this._startPeerConnection();if(this.connection.peerConnection=n,this.connection.type===md.Media&&t._stream&&this._addTracksToConnection(t._stream,n),t.originator){const r=this.connection,i={ordered:!!t.reliable},a=n.createDataChannel(r.label,i);r._initializeDataChannel(a),this._makeOffer()}else this.handleSDP("OFFER",t.sdp)}_startPeerConnection(){Wn.log("Creating RTCPeerConnection.");const t=new RTCPeerConnection(this.connection.provider.options.config);return this._setupListeners(t),t}_setupListeners(t){const n=this.connection.peer,r=this.connection.connectionId,i=this.connection.type,a=this.connection.provider;Wn.log("Listening for ICE candidates."),t.onicecandidate=o=>{!o.candidate||!o.candidate.candidate||(Wn.log(`Received ICE candidates for ${n}:`,o.candidate),a.socket.send({type:no.Candidate,payload:{candidate:o.candidate,type:i,connectionId:r},dst:n}))},t.oniceconnectionstatechange=()=>{switch(t.iceConnectionState){case"failed":Wn.log("iceConnectionState is failed, closing connections to "+n),this.connection.emitError(A3.NegotiationFailed,"Negotiation of connection to "+n+" failed."),this.connection.close();break;case"closed":Wn.log("iceConnectionState is closed, closing connections to "+n),this.connection.emitError(A3.ConnectionClosed,"Connection to "+n+" closed."),this.connection.close();break;case"disconnected":Wn.log("iceConnectionState changed to disconnected on the connection with "+n);break;case"completed":t.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",t.iceConnectionState)},Wn.log("Listening for data channel"),t.ondatachannel=o=>{Wn.log("Received data channel");const s=o.channel;a.getConnection(n,r)._initializeDataChannel(s)},Wn.log("Listening for remote stream"),t.ontrack=o=>{Wn.log("Received remote stream");const s=o.streams[0],l=a.getConnection(n,r);if(l.type===md.Media){const c=l;this._addStreamToMediaConnection(s,c)}}}cleanup(){Wn.log("Cleaning up PeerConnection to "+this.connection.peer);const t=this.connection.peerConnection;if(!t)return;this.connection.peerConnection=null,t.onicecandidate=t.oniceconnectionstatechange=t.ondatachannel=t.ontrack=()=>{};const n=t.signalingState!=="closed";let r=!1;const i=this.connection.dataChannel;i&&(r=!!i.readyState&&i.readyState!=="closed"),(n||r)&&t.close()}async _makeOffer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createOffer(this.connection.options.constraints);Wn.log("Created offer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(r.sdp=this.connection.options.sdpTransform(r.sdp)||r.sdp);try{await t.setLocalDescription(r),Wn.log("Set localDescription:",r,`for:${this.connection.peer}`);let i={sdp:r,type:this.connection.type,connectionId:this.connection.connectionId,metadata:this.connection.metadata};if(this.connection.type===md.Data){const a=this.connection;i={...i,label:a.label,reliable:a.reliable,serialization:a.serialization}}n.socket.send({type:no.Offer,payload:i,dst:this.connection.peer})}catch(i){i!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(n.emitError(da.WebRTC,i),Wn.log("Failed to setLocalDescription, ",i))}}catch(r){n.emitError(da.WebRTC,r),Wn.log("Failed to createOffer, ",r)}}async _makeAnswer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createAnswer();Wn.log("Created answer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(r.sdp=this.connection.options.sdpTransform(r.sdp)||r.sdp);try{await t.setLocalDescription(r),Wn.log("Set localDescription:",r,`for:${this.connection.peer}`),n.socket.send({type:no.Answer,payload:{sdp:r,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(i){n.emitError(da.WebRTC,i),Wn.log("Failed to setLocalDescription, ",i)}}catch(r){n.emitError(da.WebRTC,r),Wn.log("Failed to create answer, ",r)}}async handleSDP(t,n){n=new RTCSessionDescription(n);const r=this.connection.peerConnection,i=this.connection.provider;Wn.log("Setting remote description",n);const a=this;try{await r.setRemoteDescription(n),Wn.log(`Set remoteDescription:${t} for:${this.connection.peer}`),t==="OFFER"&&await a._makeAnswer()}catch(o){i.emitError(da.WebRTC,o),Wn.log("Failed to setRemoteDescription, ",o)}}async handleCandidate(t){Wn.log("handleCandidate:",t);try{await this.connection.peerConnection.addIceCandidate(t),Wn.log(`Added ICE candidate for:${this.connection.peer}`)}catch(n){this.connection.provider.emitError(da.WebRTC,n),Wn.log("Failed to handleCandidate, ",n)}}_addTracksToConnection(t,n){if(Wn.log(`add tracks from stream ${t.id} to peer connection`),!n.addTrack)return Wn.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");t.getTracks().forEach(r=>{n.addTrack(r,t)})}_addStreamToMediaConnection(t,n){Wn.log(`add stream ${t.id} to media connection ${n.connectionId}`),n.addStream(t)}}class kSe extends ZU.EventEmitter{emitError(t,n){Wn.error("Error:",n),this.emit("error",new ien(`${t}`,n))}}class ien extends Error{constructor(t,n){typeof n=="string"?super(n):(super(),Object.assign(this,n)),this.type=t}}class ESe extends kSe{get open(){return this._open}constructor(t,n,r){super(),this.peer=t,this.provider=n,this.options=r,this._open=!1,this.metadata=r.metadata}}var mD;const uw=class uw extends ESe{get type(){return md.Media}get localStream(){return this._localStream}get remoteStream(){return this._remoteStream}constructor(t,n,r){super(t,n,r),this._localStream=this.options._stream,this.connectionId=this.options.connectionId||uw.ID_PREFIX+Rs.randomToken(),this._negotiator=new _Se(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{Wn.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{Wn.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(t){Wn.log("Receiving stream",t),this._remoteStream=t,super.emit("stream",t)}handleMessage(t){const n=t.type,r=t.payload;switch(t.type){case no.Answer:this._negotiator.handleSDP(n,r.sdp),this._open=!0;break;case no.Candidate:this._negotiator.handleCandidate(r.candidate);break;default:Wn.warn(`Unrecognized message type:${n} from peer:${this.peer}`);break}}answer(t,n={}){if(this._localStream){Wn.warn("Local stream already exists on this MediaConnection. Are you answering a call twice?");return}this._localStream=t,n&&n.sdpTransform&&(this.options.sdpTransform=n.sdpTransform),this._negotiator.startConnection({...this.options._payload,_stream:t});const r=this.provider._getMessages(this.connectionId);for(const i of r)this.handleMessage(i);this._open=!0}close(){this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this._localStream=null,this._remoteStream=null,this.provider&&(this.provider._removeConnection(this),this.provider=null),this.options&&this.options._stream&&(this.options._stream=null),this.open&&(this._open=!1,super.emit("close"))}};mD=new WeakMap,Un(uw,mD,uw.ID_PREFIX="mc_");let w5=uw;class aen{constructor(t){this._options=t}_buildRequest(t){const n=this._options.secure?"https":"http",{host:r,port:i,path:a,key:o}=this._options,s=new URL(`${n}://${r}:${i}${a}${o}/${t}`);return s.searchParams.set("ts",`${Date.now()}${Math.random()}`),s.searchParams.set("version",QU.version),fetch(s.href,{referrerPolicy:this._options.referrerPolicy})}async retrieveId(){try{const t=await this._buildRequest("id");if(t.status!==200)throw new Error(`Error. Status:${t.status}`);return t.text()}catch(t){Wn.error("Error retrieving ID",t);let n="";throw this._options.path==="/"&&this._options.host!==Rs.CLOUD_HOST&&(n=" If you passed in a `path` to your self-hosted PeerServer, you'll also need to pass in that same path when creating a new Peer."),new Error("Could not get an ID from the server."+n)}}async listAllPeers(){try{const t=await this._buildRequest("peers");if(t.status!==200){if(t.status===401){let n="";throw this._options.host===Rs.CLOUD_HOST?n="It looks like you're using the cloud server. You can email team@peerjs.com to enable peer listing for your API key.":n="You need to enable `allow_discovery` on your self-hosted PeerServer to use this feature.",new Error("It doesn't look like you have permission to list peers IDs. "+n)}throw new Error(`Error. Status:${t.status}`)}return t.json()}catch(t){throw Wn.error("Error retrieving list peers",t),new Error("Could not get list peers from the server."+t)}}}var gD,vD;const hm=class hm extends ESe{get type(){return md.Data}constructor(t,n,r){super(t,n,r),this.connectionId=this.options.connectionId||hm.ID_PREFIX+SSe(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new _Se(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{Wn.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=n=>{Wn.log(`DC#${this.connectionId} dc onmessage:`,n.data)},this.dataChannel.onclose=()=>{Wn.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this.provider&&(this.provider._removeConnection(this),this.provider=null),this.dataChannel&&(this.dataChannel.onopen=null,this.dataChannel.onmessage=null,this.dataChannel.onclose=null,this.dataChannel=null),this.open&&(this._open=!1,super.emit("close"))}send(t,n=!1){if(!this.open){this.emitError(D3.NotOpenYet,"Connection is not open. You should listen for the `open` event before sending messages.");return}return this._send(t,n)}async handleMessage(t){const n=t.payload;switch(t.type){case no.Answer:await this._negotiator.handleSDP(t.type,n.sdp);break;case no.Candidate:await this._negotiator.handleCandidate(n.candidate);break;default:Wn.warn("Unrecognized message type:",t.type,"from peer:",this.peer);break}}};gD=new WeakMap,vD=new WeakMap,Un(hm,gD,hm.ID_PREFIX="dc_"),Un(hm,vD,hm.MAX_BUFFERED_AMOUNT=8388608);let x5=hm;class JU extends x5{get bufferSize(){return this._bufferSize}_initializeDataChannel(t){super._initializeDataChannel(t),this.dataChannel.binaryType="arraybuffer",this.dataChannel.addEventListener("message",n=>this._handleDataMessage(n))}_bufferedSend(t){(this._buffering||!this._trySend(t))&&(this._buffer.push(t),this._bufferSize=this._buffer.length)}_trySend(t){if(!this.open)return!1;if(this.dataChannel.bufferedAmount>x5.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(t)}catch(n){return Wn.error(`DC#:${this.connectionId} Error when sending:`,n),this._buffering=!0,this.close(),!1}return!0}_tryBuffer(){if(!this.open||this._buffer.length===0)return;const t=this._buffer[0];this._trySend(t)&&(this._buffer.shift(),this._bufferSize=this._buffer.length,this._tryBuffer())}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._buffer=[],this._bufferSize=0,super.close()}constructor(...t){super(...t),this._buffer=[],this._bufferSize=0,this._buffering=!1}}class UP extends JU{close(t){super.close(t),this._chunkedData={}}constructor(t,n,r){super(t,n,r),this.chunker=new xSe,this.serialization=iy.Binary,this._chunkedData={}}_handleDataMessage({data:t}){const n=Bxe(t),r=n.__peerData;if(r){if(r.type==="close"){this.close();return}this._handleChunk(n);return}this.emit("data",n)}_handleChunk(t){const n=t.__peerData,r=this._chunkedData[n]||{data:[],count:0,total:t.total};if(r.data[t.n]=new Uint8Array(t.data),r.count++,this._chunkedData[n]=r,r.total===r.count){delete this._chunkedData[n];const i=XJt(r.data);this._handleDataMessage({data:i})}}_send(t,n){const r=zxe(t);if(r instanceof Promise)return this._send_blob(r);if(!n&&r.byteLength>this.chunker.chunkedMTU){this._sendChunks(r);return}this._bufferedSend(r)}async _send_blob(t){const n=await t;if(n.byteLength>this.chunker.chunkedMTU){this._sendChunks(n);return}this._bufferedSend(n)}_sendChunks(t){const n=this.chunker.chunk(t);Wn.log(`DC#${this.connectionId} Try to send ${n.length} chunks...`);for(const r of n)this.send(r,!0)}}class oen extends JU{_handleDataMessage({data:t}){super.emit("data",t)}_send(t,n){this._bufferedSend(t)}constructor(...t){super(...t),this.serialization=iy.None}}class sen extends JU{_handleDataMessage({data:t}){const n=this.parse(this.decoder.decode(t)),r=n.__peerData;if(r&&r.type==="close"){this.close();return}this.emit("data",n)}_send(t,n){const r=this.encoder.encode(this.stringify(t));if(r.byteLength>=Rs.chunkedMTU){this.emitError(D3.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(r)}constructor(...t){super(...t),this.serialization=iy.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}}var yD;const dw=class dw extends kSe{get id(){return this._id}get options(){return this._options}get open(){return this._open}get socket(){return this._socket}get connections(){const t=Object.create(null);for(const[n,r]of this._connections)t[n]=r;return t}get destroyed(){return this._destroyed}get disconnected(){return this._disconnected}constructor(t,n){super(),this._serializers={raw:oen,json:sen,binary:UP,"binary-utf8":UP,default:UP},this._id=null,this._lastServerId=null,this._destroyed=!1,this._disconnected=!1,this._open=!1,this._connections=new Map,this._lostMessages=new Map;let r;if(t&&t.constructor==Object?n=t:t&&(r=t.toString()),n={debug:0,host:Rs.CLOUD_HOST,port:Rs.CLOUD_PORT,path:"/",key:dw.DEFAULT_KEY,token:Rs.randomToken(),config:Rs.defaultConfig,referrerPolicy:"strict-origin-when-cross-origin",serializers:{},...n},this._options=n,this._serializers={...this._serializers,...this.options.serializers},this._options.host==="/"&&(this._options.host=window.location.hostname),this._options.path&&(this._options.path[0]!=="/"&&(this._options.path="/"+this._options.path),this._options.path[this._options.path.length-1]!=="/"&&(this._options.path+="/")),this._options.secure===void 0&&this._options.host!==Rs.CLOUD_HOST?this._options.secure=Rs.isSecure():this._options.host==Rs.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&Wn.setLogFunction(this._options.logFunction),Wn.logLevel=this._options.debug||0,this._api=new aen(n),this._socket=this._createServerConnection(),!Rs.supports.audioVideo&&!Rs.supports.data){this._delayedAbort(da.BrowserIncompatible,"The current browser does not support WebRTC");return}if(r&&!Rs.validateId(r)){this._delayedAbort(da.InvalidID,`ID "${r}" is invalid`);return}r?this._initialize(r):this._api.retrieveId().then(i=>this._initialize(i)).catch(i=>this._abort(da.ServerError,i))}_createServerConnection(){const t=new ren(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return t.on(od.Message,n=>{this._handleMessage(n)}),t.on(od.Error,n=>{this._abort(da.SocketError,n)}),t.on(od.Disconnected,()=>{this.disconnected||(this.emitError(da.Network,"Lost connection to server."),this.disconnect())}),t.on(od.Close,()=>{this.disconnected||this._abort(da.SocketClosed,"Underlying socket is already closed.")}),t}_initialize(t){this._id=t,this.socket.start(t,this._options.token)}_handleMessage(t){const n=t.type,r=t.payload,i=t.src;switch(n){case no.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case no.Error:this._abort(da.ServerError,r.msg);break;case no.IdTaken:this._abort(da.UnavailableID,`ID "${this.id}" is taken`);break;case no.InvalidKey:this._abort(da.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case no.Leave:Wn.log(`Received leave message from ${i}`),this._cleanupPeer(i),this._connections.delete(i);break;case no.Expire:this.emitError(da.PeerUnavailable,`Could not connect to peer ${i}`);break;case no.Offer:{const a=r.connectionId;let o=this.getConnection(i,a);if(o&&(o.close(),Wn.warn(`Offer received for existing Connection ID:${a}`)),r.type===md.Media){const l=new w5(i,this,{connectionId:a,_payload:r,metadata:r.metadata});o=l,this._addConnection(i,o),this.emit("call",l)}else if(r.type===md.Data){const l=new this._serializers[r.serialization](i,this,{connectionId:a,_payload:r,metadata:r.metadata,label:r.label,serialization:r.serialization,reliable:r.reliable});o=l,this._addConnection(i,o),this.emit("connection",l)}else{Wn.warn(`Received malformed connection type:${r.type}`);return}const s=this._getMessages(a);for(const l of s)o.handleMessage(l);break}default:{if(!r){Wn.warn(`You received a malformed message from ${i} of type ${n}`);return}const a=r.connectionId,o=this.getConnection(i,a);o&&o.peerConnection?o.handleMessage(t):a?this._storeMessage(a,t):Wn.warn("You received an unrecognized message:",t);break}}}_storeMessage(t,n){this._lostMessages.has(t)||this._lostMessages.set(t,[]),this._lostMessages.get(t).push(n)}_getMessages(t){const n=this._lostMessages.get(t);return n?(this._lostMessages.delete(t),n):[]}connect(t,n={}){if(n={serialization:"default",...n},this.disconnected){Wn.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect, or call reconnect on this peer if you believe its ID to still be available."),this.emitError(da.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}const r=new this._serializers[n.serialization](t,this,n);return this._addConnection(t,r),r}call(t,n,r={}){if(this.disconnected){Wn.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect."),this.emitError(da.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!n){Wn.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}const i=new w5(t,this,{...r,_stream:n});return this._addConnection(t,i),i}_addConnection(t,n){Wn.log(`add connection ${n.type}:${n.connectionId} to peerId:${t}`),this._connections.has(t)||this._connections.set(t,[]),this._connections.get(t).push(n)}_removeConnection(t){const n=this._connections.get(t.peer);if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}this._lostMessages.delete(t.connectionId)}getConnection(t,n){const r=this._connections.get(t);if(!r)return null;for(const i of r)if(i.connectionId===n)return i;return null}_delayedAbort(t,n){setTimeout(()=>{this._abort(t,n)},0)}_abort(t,n){Wn.error("Aborting!"),this.emitError(t,n),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(Wn.log(`Destroy peer with ID:${this.id}`),this.disconnect(),this._cleanup(),this._destroyed=!0,this.emit("close"))}_cleanup(){for(const t of this._connections.keys())this._cleanupPeer(t),this._connections.delete(t);this.socket.removeAllListeners()}_cleanupPeer(t){const n=this._connections.get(t);if(n)for(const r of n)r.close()}disconnect(){if(this.disconnected)return;const t=this.id;Wn.log(`Disconnect peer with ID:${t}`),this._disconnected=!0,this._open=!1,this.socket.close(),this._lastServerId=t,this._id=null,this.emit("disconnected",t)}reconnect(){if(this.disconnected&&!this.destroyed)Wn.log(`Attempting reconnection to server with ID ${this._lastServerId}`),this._disconnected=!1,this._initialize(this._lastServerId);else{if(this.destroyed)throw new Error("This peer cannot reconnect to the server. It has already been destroyed.");if(!this.disconnected&&!this.open)Wn.error("In a hurry? We're still trying to make the initial connection!");else throw new Error(`Peer ${this.id} cannot reconnect because it is not disconnected from the server!`)}}listAllPeers(t=n=>{}){this._api.listAllPeers().then(n=>t(n)).catch(n=>this._abort(da.ServerError,n))}};yD=new WeakMap,Un(dw,yD,dw.DEFAULT_KEY="peerjs");let hD=dw,len="127.0.0.1",cen=9e3,uen="/";function den(){console.log("usePeer");const e=ia(o=>o.userInfo);let t=null,n=null;const r=o=>{n=t.connect(o),n.on("open",()=>{console.log("Connected to peer with ID:",o),n.send("hi!")})},i=o=>{n?(console.log("sending message:",o),n.send(o)):console.error("no connection to send message")},a=o=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(s=>{t.call(o,s).on("stream",c=>{})}).catch(s=>{console.error("Failed to get local stream",s)})};return d.useEffect(()=>{const o=new hD(e.uid,{host:len,port:cen,path:uen});console.log("Starting self peer with ID:",e.uid),o.on("open",function(){console.log("self peer opened!")}),o.on("connection",s=>{s.on("data",l=>{console.log("connection data:",l)}),s.on("open",()=>{s.send("connection data open!")})}),o.on("call",s=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(l=>{s.answer(l),s.on("stream",c=>{})}).catch(l=>{console.error("Failed to get local stream",l)})})},[e]),{peer:t,connectOtherPeer:r,sendMessage:i,callOtherPeer:a}}const fen=()=>{const e=Rn(),[t,n]=d.useState("/chat"),r=Mo(),{isLoggedIn:i,mode:a}=d.useContext(Ea),{footerStyle:o}=co(),[s,l]=d.useState(!1),c=fr(h=>h.threads);d.useEffect(()=>{const h=c.some(m=>m.unreadCount>0);l(h)},[c]);const u=[{path:"/anonymous/home",name:e.formatMessage({id:"menu.dashboard.chat"}),icon:x.jsx(bve,{}),component:x.jsx(sD,{})}],[f,p]=d.useState(u);return Dxe(),Axe(),FJt(),den(),yU(),d.useEffect(()=>{p(u)},[a]),d.useEffect(()=>(i&&r("/chat"),()=>{console.log("un - useEffect")}),[i]),x.jsxs(S2e,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:f},location:{pathname:t},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:h=>h.isMobile?[]:[x.jsx(_it,{onClick:Vct},"QuestionCircleFilled")],menuHeaderRender:()=>x.jsx(Nxe,{}),menuFooterRender:h=>{h!=null&&h.collapsed},onMenuHeaderClick:h=>{console.log("onMenuHeaderClick",h)},menuItemRender:(h,m)=>x.jsx(x.Fragment,{children:x.jsxs("a",{onClick:()=>{n(h.path),r(h.path)},children:[s&&x.jsxs(x.Fragment,{children:[h.path==="/anonymous/home"&&x.jsx(Lo,{size:"small",dot:s,offset:[-5,5],children:m}),h.path!=="/anonymous/home"&&m]}),!s&&x.jsx(x.Fragment,{children:m})]})}),children:[x.jsx(R7,{children:x.jsx(B4,{})}),x.jsx(I7,{style:o,children:x.jsx(jxe,{})}),x.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},{Sider:pen,Content:hen}=Qn,men=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsxs(pen,{style:e,width:t,children:[x.jsx(Sg,{style:n,children:"contact"}),x.jsx(qU,{})]}),x.jsxs(Qn,{children:[x.jsx(Sg,{style:n,children:"contact"}),x.jsx(hen,{style:r,children:"contact"})]})]})})},{Sider:gen,Content:ven}=Qn,yen=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(gen,{style:e,width:t}),x.jsxs(Qn,{children:[x.jsx(Sg,{style:n,children:"robot"}),x.jsx(ven,{style:r,children:"robot"})]})]})})},{Sider:ben,Content:wen}=Qn,xen=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(ben,{style:e,width:t}),x.jsxs(Qn,{children:[x.jsx(Sg,{style:n,children:"setting"}),x.jsx(wen,{style:r,children:"setting"})]})]})})},{Sider:Sen,Header:_ie,Content:Cen}=Qn,_en=()=>{const e=Rn(),{leftSiderStyle:t,leftSiderWidth:n,headerStyle:r,contentStyle:i}=co();return x.jsxs(Qn,{children:[x.jsx(Sen,{width:n,style:t,children:x.jsx(_ie,{style:r,children:e.formatMessage({id:"chat.navbar.kbase"})})}),x.jsxs(Qn,{children:[x.jsx(_ie,{style:r,children:e.formatMessage({id:"chat.navbar.kbase"})}),x.jsx(Cen,{style:i})]})]})},{Title:ken,Text:Een}=Zf,$en=Su.div` min-height: 100vh; display: flex; justify-content: center; @@ -1516,14 +1516,14 @@ a=extmap-allow-mixed`)!==-1){const a=i.sdp.split(` background: linear-gradient(135deg, #2b1055 0%, #4365e0 100%); position: relative; overflow: hidden; -`,Een=bu(zB)` +`,Men=Su(UB)` width: 400px; background: rgba(32, 34, 37, 0.9); border-radius: 8px; text-align: center; padding: 24px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); -`,$en=bu.div` +`,Ten=Su.div` width: 80px; height: 80px; background: #7289da; @@ -1534,14 +1534,14 @@ a=extmap-allow-mixed`)!==-1){const a=i.sdp.split(` justify-content: center; font-size: 32px; color: white; -`,Sie=bu(Cen)` +`,kie=Su(ken)` color: white !important; margin-bottom: 8px !important; -`,Cie=bu(_en)` +`,Eie=Su(Een)` color: #b9bbbe !important; display: block; margin-bottom: 24px; -`,Men=bu(Yt)` +`,Pen=Su(Yt)` background: #5865f2; border: none; height: 44px; @@ -1550,7 +1550,7 @@ a=extmap-allow-mixed`)!==-1){const a=i.sdp.split(` &:hover { background: #4752c4 !important; } -`,Ten=bu.div` +`,Oen=Su.div` position: absolute; width: 2px; height: 2px; @@ -1564,9 +1564,9 @@ a=extmap-allow-mixed`)!==-1){const a=i.sdp.split(` 50% { opacity: 1; } 100% { opacity: 0.5; } } -`,Pen=()=>{const{groupUid:e}=Sdt(),t=$o(),n=()=>{const i=[];for(let a=0;a<50;a++){const o={left:`${Math.random()*100}%`,top:`${Math.random()*100}%`,animationDelay:`${Math.random()*2}s`};i.push(x.jsx(Ten,{style:o},a))}return i},r=()=>{console.log("Accept invite:",e),t("/chat?groupUid="+e)};return x.jsxs(ken,{children:[n(),x.jsx(Een,{children:x.jsxs(Zr,{direction:"vertical",size:"large",style:{width:"100%"},children:[x.jsx($en,{children:x.jsx(nz,{})}),x.jsxs("div",{children:[x.jsx(Sie,{level:4,children:"Korey (koreyspace) 邀请您加入"}),x.jsx(Sie,{level:3,children:"Bytedesk AI Community"})]}),x.jsxs(Zr,{direction:"vertical",size:"small",style:{width:"100%"},children:[x.jsxs(Cie,{children:[x.jsx("span",{style:{color:"#3ba55c"},children:"● "}),"1,343 人在线"]}),x.jsxs(Cie,{children:[x.jsx("span",{style:{color:"#747f8d"},children:"● "}),"16,449 位成员"]})]}),x.jsx(Men,{type:"primary",size:"large",onClick:r,children:"接受邀请"})]})})]})},{Sider:Oen,Content:Ien}=Qn,Ren=[{key:"grp",label:"质检",type:"group",children:[{key:"13",label:"当前在线"},{key:"14",label:"已离线"}]}],jen=()=>{const{leftSiderStyle:e,leftSiderWidth:t}=co(),n=r=>{console.log("click ",r)};return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(Oen,{style:e,width:t,children:x.jsx(ks,{onClick:n,mode:"inline",items:Ren})}),x.jsx(Qn,{children:x.jsx(Ien,{children:"质检"})})]})})};function Nen({children:e}){const{isLoggedIn:t}=d.useContext(Ma),n=t1();return t?e:x.jsx(Adt,{to:"/auth/login",replace:!0,state:{from:n}})}const Aen=[{path:"/",element:x.jsx(x.Fragment,{children:x.jsx(Nen,{children:x.jsx(OQt,{})})}),children:[{path:"/",element:x.jsx(KA,{})},{path:"/chat",element:x.jsx(KA,{})},{path:"/contact",element:x.jsx(Txe,{})},{path:"/robot",element:x.jsx(kJt,{})},{path:"/ticket",element:x.jsx(Axe,{})},{path:"/leavemsg",element:x.jsx(cJt,{})},{path:"/notebase",element:x.jsx(Sen,{})},{path:"monitor",element:x.jsx(pJt,{})},{path:"quality",element:x.jsx(jen,{})},{path:"/plugins",element:x.jsx(JQt,{}),children:[{path:"/plugins",element:x.jsx(uie,{})},{path:"/plugins/collect",element:x.jsx(uie,{})},{path:"/plugins/task",element:x.jsx(qQt,{})},{path:"/plugins/note",element:x.jsx(KQt,{})},{path:"/plugins/clipboard",element:x.jsx(GQt,{})}]},{path:"/setting",element:x.jsx(Pxe,{}),children:[{path:"/setting",element:x.jsx(cie,{})},{path:"/setting/profile",element:x.jsx(cie,{})},{path:"/setting/agentProfile",element:x.jsx(RJt,{})},{path:"/setting/memberProfile",element:x.jsx(iJt,{})},{path:"/setting/basic",element:x.jsx(YQt,{})},{path:"/setting/certification",element:x.jsx(OJt,{})},{path:"/setting/qrcode",element:x.jsx(eJt,{})},{path:"/setting/shortcut",element:x.jsx(tJt,{})},{path:"/setting/model",element:x.jsx(gJt,{})}]}]},{path:"/auth",element:x.jsx(IQt,{}),children:[{path:"/auth",element:x.jsx(lA,{isModel:!1})},{path:"/auth/login",element:x.jsx(lA,{isModel:!1})},{path:"/auth/register",element:x.jsx(vNt,{})},{path:"/auth/server",element:x.jsx(Q2e,{})}]},{path:"/anonymous",element:x.jsx(uen,{}),children:[{path:"/anonymous",element:x.jsx(iD,{})},{path:"/anonymous/home",element:x.jsx(iD,{})},{path:"/anonymous/contact",element:x.jsx(pen,{})},{path:"/anonymous/robot",element:x.jsx(gen,{})},{path:"/anonymous/setting",element:x.jsx(ben,{})}]},{path:"/invite/:groupUid",element:x.jsx(Pen,{})},{path:"/enlarge",element:x.jsx(aJt,{})},{path:"*",element:x.jsx(nJt,{})}],kSe=!1;console.log("router isElectron:",kSe);let ESe;console.log("isElectron web:",kSe),ESe=Wdt(Aen,{basename:"/agent",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}});const Den=ESe,Fen={i18_file_assistant:"文件助手",slogan:"对话即服务","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"客服助手","chat.right.quickreply":"快捷回复/知识库","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服机器人(对外)",MARKETING:"营销机器人(对外)",KNOWLEDGEBASE:"知识库机器人(内部)",QA:"问答机器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"加载中",create:"创建",creating:"创建中...","create.success":"创建成功","create.fail":"创建失败",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失败",save:"保存",saving:"正在保存...",email:"邮箱","email.verified":"邮箱(已验证)","email.unverified":"邮箱(待验证)",mobile:"手机号","mobile.verified":"手机号(已验证)","mobile.unverified":"手机号(待验证)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登录用户名(修改用户名之后,需要重新登录)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"导入",export:"导出","download.template":"下载模板",open:"打开",copy:"复制","copy.success":"复制成功",ok:"确定",cancel:"取消",bind:"绑定",edit:"编辑",editing:"修改中...","edit.success":"修改成功","edit.fail":"修改失败",delete:"删除",deleting:"删除中...",deleteTip:"删除提示",deleteAffirm:"确定要删除","delete.success":"删除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"预览",close:"关闭",closing:"关闭中...",closeTip:"关闭提示",closeASure:"确定要关闭","close.success":"关闭成功",choose:"选择","leavemsg.enabled":"留言启用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"暂无客服在线",invite:"邀请","invite.success":"邀请成功","invite.fail":"邀请失败","invite.reason":"邀请原因","invite.no.agent":"暂无客服在线"},Len={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"聊天","menu.dashboard.contact":"联系人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"笔记","menu.dashboard.kbase":"知识库","menu.dashboard.mine":"设置","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.dashboard.quality":"质检","menu.settings":"设置","menu.settings.logout":"登出","menu.agent.status":"客服状态","menu.agent.status.available":"在线","menu.agent.status.rest":"小休","menu.agent.status.offline":"离线","menu.language":"语言","menu.mode":"模式","menu.mode.team":"团队模式","menu.mode.personal":"个人模式","menu.mode.agent":"客服模式","menu.agent.offline.warning":"请在离线前结束所有正在進行中的会话","menu.mode.personal.coming":"即将推出..."},Ben={"pages.login.title":"登录","pages.login.subtitle":"欢迎使用微语客服系统","pages.login.accountLogin.tab":"账户密码登录","pages.login.accountLogin.errorMessage":"错误的用户名和密码","pages.login.failure":"登录失败,请检查用户名密码!","pages.login.failureCode":"验证错误","pages.login.success":"登录成功!","pages.login.username.placeholder":"请输入用户名","pages.login.username.required":"用户名是必填项!","pages.login.password.placeholder":"请输入密码","pages.login.repassword.placeholder":"确认密码","pages.login.password.required":"密码是必填项!","pages.login.repassword.required":"确认密码是必填项!","pages.login.phoneLogin.tab":"手机号登录","pages.login.phoneLogin.errorMessage":"验证码错误","pages.login.phoneNumber.placeholder":"请输入手机号!","pages.login.phoneNumber.required":"手机号是必填项!","pages.login.phoneNumber.invalid":"不合法的手机号!","pages.login.captcha.placeholder":"请输入验证码!","pages.login.captcha.required":"验证码是必填项!","pages.login.phoneLogin.getVerificationCode":"获取验证码","pages.login.anonymousLogin":"匿名登录","pages.getCaptchaSecondText":"秒后重新获取","pages.login.scanLogin.tab":"扫码登录","pages.login.rememberMe":"自动登录","pages.login.forgotPassword":"忘记密码","pages.login.submit":"登录","pages.login.loginWith":"其他登录方式 :","pages.login.register":"注册账号","pages.login.registerAccount":"注册账户","pages.login.auto.register":"未注册手机号会自动注册","pages.welcome.link":"欢迎使用","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"删除","pages.robot.upload":"上传","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知识库","pages.robot.tab.channel":"渠道对接","pages.robot.tab.statistic":"数据统计","pages.robot.tab.advanced":"高级设置","pages.robot.tab.flow":"流程设计","pages.robot.tab.avatar":"头像","pages.robot.tab.title":"标题","pages.robot.tab.welcomeTip":"欢迎语","pages.robot.tab.description":"简介","pages.robot.tab.preview":"实时预览","pages.robot.tab.website":"官网","pages.robot.tab.helpdesk":"帮助文档","pages.robot.tab.icp":"京ICP备案 17041763号-1","pages.robot.tab.police":"粤公安备案 44030502008688号","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"问答","pages.robot.kb.web":"网站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件类型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"删除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上传中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件内容","pages.setting":"设置","pages.logout":"退出登录","pages.footer.website":"微语官网","pages.footer.helpcenter":"帮助文档","pages.login.remember":"记住密码","pages.agent.tab.basic":"基本信息","pages.agent.robot":"机器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常见问题","pages.advanced.quickButton":"快捷按钮","pages.advanced.faqGuess":"智能推荐","pages.advanced.faqHot":"热门问题","pages.advanced.faqShortcut":"快捷回复/知识库","pages.advanced.rate":"满意度评价","pages.advanced.autoreply":"自动回复","pages.advanced.leaveMsg":"留言设置","pages.advanced.survey":"调查问卷","pages.advanced.history":"历史记录","pages.advanced.inputAssociation":"输入联想","pages.advanced.antiHarassment":"验证码设置","pages.advanced.captcha":"验证码设置","pages.advanced.showPreForm":"显示预览","pages.advanced.showHistory":"显示历史","pages.advanced.showInputAssociation":"显示输入联想","pages.advanced.showCaptcha":"显示验证码","pages.login.country.placeholder":"选择国家/地区","pages.login.country.china":"中国大陆","pages.login.country.hongkong":"中国香港","pages.login.country.taiwan":"中国台湾","pages.login.country.macao":"中国澳门","pages.login.country.japan":"日本","pages.login.country.korea":"韩国","pages.login.country.usa":"美国","pages.login.country.canada":"加拿大","pages.login.country.uk":"英国","pages.login.country.germany":"德国","pages.login.country.france":"法国","pages.login.country.australia":"澳大利亚","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"马来西亚","pages.login.country.thailand":"泰国","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律宾","pages.login.country.indonesia":"印度尼西亚","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄罗斯","pages.login.country.newzealand":"新西兰","pages.anonymous.title":"匿名模式","pages.anonymous.home":"首页","pages.anonymous.contact":"联系人","pages.anonymous.robot":"机器人","pages.anonymous.setting":"设置","pages.anonymous.welcome":"欢迎使用匿名模式","pages.anonymous.description":"您可以在此模式下匿名使用系统功能","block.title":"拉黑设置","block.type":"拉黑类型","block.user":"拉黑用户","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"请选择封禁结束时间","pages.register.title":"注册","pages.register.subtitle":"创建您的账号","pages.register.username":"用户名","pages.register.password":"密码","pages.register.confirm":"确认密码","pages.register.email":"邮箱","pages.register.mobile":"手机号","pages.register.code":"验证码","pages.register.agreement":"我已阅读并同意","pages.register.agreement.terms":"服务条款","pages.register.submit":"注册","pages.register.login":"使用已有账号登录","pages.404.title":"404","pages.404.subtitle":"抱歉,您访问的页面不存在","pages.404.description":"您可以尝试以下操作:","pages.404.actions.back":"返回上一页","pages.404.actions.home":"返回首页","pages.403.title":"403","pages.403.subtitle":"抱歉,您没有访问该页面的权限","pages.403.description":"请联系管理员获取权限","pages.403.actions.back":"返回上一页","pages.500.title":"500","pages.500.subtitle":"抱歉,服务器出错了","pages.500.description":"请稍后再试或联系技术支持","pages.500.actions.back":"返回上一页","pages.500.actions.home":"返回首页","pages.welcome.title":"欢迎","pages.welcome.description":"微语客服系统是一个开源的客服系统","pages.welcome.getting-started":"开始使用","pages.welcome.view-docs":"查看文档"},zen={"app.title":"微语","app.logout":"登出","app.copyright.produced":"微语出品","app.preview.down.block":"下载此页面到本地项目","app.welcome.link.fetch-blocks":"获取全部区块","app.welcome.link.block-list":"基于 block 开发,快速构建标准页面","navBar.lang":"语言","layout.user.link.help":"帮助","layout.user.link.privacy":"隐私","layout.user.link.terms":"条款","theme.light":"浅色","theme.dark":"深色","theme.system":"自动","setting.lang":"Languages","setting.theme":"主题","app.name":"微语客服","app.description":"新一代智能客服系统","app.welcome":"欢迎使用微语客服系统","app.copyright":"© 2024 微语客服. 保留所有权利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"确认","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"编辑","app.action.delete":"删除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"设置","app.action.help":"帮助","app.tip.loading":"加载中...","app.tip.success":"操作成功","app.tip.error":"操作失败","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"确认要执行此操作吗?","app.tip.nodata":"暂无数据","app.tip.network.error":"网络连接失败","app.tip.server.error":"服务器错误","app.status.online":"在线","app.status.offline":"离线","app.status.busy":"忙碌","app.status.away":"离开","app.status.invisible":"隐身","app.status.disabled":"已禁用","app.status.expired":"已过期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"刚刚","app.time.minutes":"{count} 分钟前","app.time.hours":"{count} 小时前","app.time.days":"{count} 天前","app.file.upload":"上传文件","app.file.download":"下载文件","app.file.preview":"预览文件","app.file.size.limit":"文件大小不能超过 {size}","app.file.type.unsupported":"不支持的文件类型","app.file.upload.success":"上传成功","app.file.upload.failed":"上传失败","app.file.download.success":"下载成功","app.file.download.failed":"下载失败","app.layout.sidebar.collapse":"收起侧边栏","app.layout.sidebar.expand":"展开侧边栏","app.layout.header.profile":"个人中心","app.layout.header.logout":"退出登录","app.layout.footer.copyright":"版权所有","app.layout.footer.terms":"服务条款","app.layout.footer.privacy":"隐私政策","category.form.title":"新建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!"},Hen={"auth.login.title":"登录","auth.login.subtitle":"欢迎使用微语客服系统","auth.login.username":"用户名","auth.login.username.required":"请输入用户名","auth.login.password":"密码","auth.login.password.required":"请输入密码","auth.login.remember":"记住密码","auth.login.forgot":"忘记密码?","auth.login.submit":"登录","auth.login.other":"其他登录方式","auth.login.register":"注册账号","auth.login.success":"登录成功","auth.login.failed":"登录失败","auth.register.title":"注册","auth.register.subtitle":"创建新账号","auth.register.username":"用户名","auth.register.username.required":"请输入用户名","auth.register.email":"邮箱","auth.register.email.required":"请输入邮箱","auth.register.password":"密码","auth.register.password.required":"请输入密码","auth.register.confirm":"确认密码","auth.register.confirm.required":"请确认密码","auth.register.submit":"注册","auth.register.login":"已有账号?登录","auth.register.success":"注册成功","auth.register.failed":"注册失败","auth.forgot.title":"忘记密码","auth.forgot.subtitle":"重置密码","auth.forgot.email":"邮箱","auth.forgot.email.required":"请输入邮箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登录","auth.forgot.success":"重置密码邮件已发送","auth.forgot.failed":"重置密码失败","auth.reset.title":"重置密码","auth.reset.subtitle":"设置新密码","auth.reset.password":"新密码","auth.reset.password.required":"请输入新密码","auth.reset.confirm":"确认密码","auth.reset.confirm.required":"请确认新密码","auth.reset.submit":"提交","auth.reset.success":"密码重置成功","auth.reset.failed":"密码重置失败","auth.verify.code":"验证码","auth.verify.code.required":"请输入验证码","auth.verify.code.send":"发送验证码","auth.verify.code.resend":"重新发送","auth.verify.code.success":"验证码发送成功","auth.verify.code.failed":"验证码发送失败","auth.password.strength.weak":"密码强度:弱","auth.password.strength.medium":"密码强度:中","auth.password.strength.strong":"密码强度:强","auth.agreement.text":"我已阅读并同意","auth.agreement.terms":"服务条款","auth.agreement.privacy":"隐私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"帮助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢复默认云服务器","server.custom.enable":"启用自定义服务器","server.api.url.label":"API服务器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服务器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"请输入正确的服务器地址"},Uen={"chat.title":"会话","chat.empty":"暂无会话","chat.loading":"加载中...","chat.load.error":"加载失败","chat.load.more":"加载更多","chat.no.more":"没有更多了","chat.refresh":"刷新","chat.status.connecting":"连接中...","chat.status.connected":"已连接","chat.status.disconnected":"连接断开","chat.status.reconnecting":"重新连接中...","chat.network.error":"网络连接失败,请检查网络","chat.thread.closing":"结束会话中...","chat.thread.close.success":"结束会话成功","chat.thread.close.failed":"结束会话失败","chat.thread.close.confirm.title":"确定要结束会话?","chat.rate.invite.confirm.title":"确认要邀请评价?","chat.message.send.failed":"发送失败","chat.message.resend":"重新发送","chat.message.recall":"撤回消息","chat.message.copy.success":"复制成功","chat.copy.success":"复制成功","chat.menu.copy":"复制","chat.menu.translate":"翻译","chat.menu.recall":"撤回","chat.menu.enlarge":"放大阅读","chat.menu.quickreply.add":"添加快捷回复...","chat.menu.browser.open":"浏览器打开","chat.menu.forward":"转发...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.menu.ai":"问AI","chat.menu.quickreply.search":"搜索知识库","chat.input.placeholder":"请输入内容, Ctrl+V 粘贴截图/图片","chat.translation.placeholder":"请输入翻译内容...","chat.input.send":"发送","chat.input.sending":"发送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截图","chat.toolbar.autoreply":"自动回复","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频会话","chat.toolbar.history":"历史","chat.toolbar.block":"拉黑","chat.toolbar.invite.rate":"邀请评价","chat.navbar.transfer":"转接","chat.navbar.close":"结束","chat.navbar.note":"笔记","chat.navbar.kbase":"知识库","chat.right.quickreply":"快捷回复/知识库","chat.right.userinfo":"访客信息","chat.right.ai":"AI助手","chat.right.ticket":"工单","chat.right.llm":"大模型","chat.right.group":"群组信息","chat.right.member":"成员信息","chat.right.docview":"文档查看","chat.upload.size.limit":"文件大小不能超过 {size}","chat.upload.type.unsupported":"不支持的文件类型","chat.upload.failed":"上传失败","chat.upload.success":"上传成功","chat.upload.progress":"上传中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"来电...","chat.webrtc.connected":"通话中...","chat.webrtc.ended":"通话结束","chat.webrtc.rejected":"对方拒绝","chat.webrtc.busy":"对方忙","chat.webrtc.failed":"通话失败","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒绝","chat.webrtc.hangup":"挂断","chat.group.notice":"群公告","chat.group.members":"群成员","chat.group.admins":"管理员","chat.group.robots":"机器人","chat.group.qrcode":"二维码","chat.group.uid.error":"群组ID错误","chat.header.group.unnamed":"未命名群组","chat.header.member.unnamed":"未命名成员","chat.header.robot.unnamed":"未命名机器人","chat.header.user.unnamed":"未命名用户","chat.header.typing":"正在输入...","chat.header.no.message":"暂无消息","chat.header.action.transfer":"转接","chat.header.action.invite":"邀请","chat.header.action.create.ticket":"创建工单","chat.header.action.close":"结束","chat.header.action.exit":"退出","chat.header.type.not.supported":"当前聊天类型不支持"},Wen={"common.confirm":"确认","common.cancel":"取消","common.submit":"提交","common.reset":"重置","common.save":"保存","common.delete":"删除","common.edit":"编辑","common.add":"添加","common.search":"搜索","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.loading":"加载中...","common.success":"操作成功","common.failed":"操作失败","common.error":"错误","common.warning":"警告","common.info":"提示","common.status.online":"在线","common.status.offline":"离线","common.status.busy":"忙碌","common.status.away":"离开","common.status.invisible":"隐身","common.operation.success":"操作成功","common.operation.failed":"操作失败","common.operation.confirm":"确认要执行此操作吗?","common.operation.processing":"处理中...","common.operation.completed":"处理完成","common.operation.error":"处理出错","common.form.required":"此项为必填项","common.form.optional":"选填","common.form.invalid":"输入无效","common.form.validate.error":"表单验证失败","common.form.validate.success":"表单验证通过"},Ven={"customer.list.title":"客户列表","customer.list.empty":"暂无客户","customer.list.loading":"加载中...","customer.list.load.error":"加载失败","customer.list.load.more":"加载更多","customer.list.no.more":"没有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"昵称","customer.info.gender":"性别","customer.info.age":"年龄","customer.info.birthday":"生日","customer.info.mobile":"手机号","customer.info.email":"邮箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"职位","customer.info.remark":"备注","customer.info.tags":"标签","customer.info.extra":"其他信息","customer.info.source":"来源","customer.info.created":"创建时间","customer.info.updated":"更新时间","customer.status.online":"在线","customer.status.offline":"离线","customer.status.away":"离开","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"编辑","customer.action.delete":"删除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"转移","customer.action.merge":"合并","customer.action.export":"导出","customer.form.name":"姓名","customer.form.name.required":"请输入姓名","customer.form.nickname":"昵称","customer.form.gender":"性别","customer.form.age":"年龄","customer.form.birthday":"生日","customer.form.mobile":"手机号","customer.form.email":"邮箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"职位","customer.form.remark":"备注","customer.form.tags":"标签","customer.form.source":"来源","customer.create.success":"客户创建成功","customer.create.failed":"客户创建失败","customer.update.success":"客户更新成功","customer.update.failed":"客户更新失败","customer.delete.success":"客户删除成功","customer.delete.failed":"客户删除失败","customer.block.success":"客户拉黑成功","customer.block.failed":"客户拉黑失败","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失败","customer.transfer.success":"客户转移成功","customer.transfer.failed":"客户转移失败","customer.merge.success":"客户合并成功","customer.merge.failed":"客户合并失败","customer.export.success":"客户导出成功","customer.export.failed":"客户导出失败","black.title":"拉黑设置","black.type":"拉黑类型","black.type.required":"请选择至少一种拉黑类型","black.user":"拉黑用户","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"请选择拉黑截至时间","black.reason":"拉黑原因","black.reason.required":"请输入拉黑原因","black.reason.placeholder":"请输入拉黑原因","black.success":"拉黑成功","customer.info.browser":"浏览器信息","customer.info.os":"操作系统信息","customer.info.device":"设备信息","customer.info.browse.record":"浏览记录","customer.info.tag":"标签信息","customer.info.load.error":"加载访客信息失败","customer.basic.title":"基本信息","customer.basic.nickname":"昵称","customer.basic.empty":"无","customer.basic.edit":"编辑","customer.basic.update.success":"更新成功","customer.basic.update.failed":"更新失败","customer.basic.note":"备注"},qen={"dashboard.error.message":"获取数据失败","dashboard.init.organization":"初始化组织","dashboard.init.profile":"初始化个人信息","dashboard.init.workgroups":"初始化工作组","dashboard.init.agent":"初始化客服信息","dashboard.transfer.accept":"{nickname} 已接受转接","dashboard.transfer.reject":"{nickname} 已拒绝转接","dashboard.transfer.success":"转接请求已发送,等待对方响应"},Ken={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁体中文","i18n.all":"全部","i18n.queue.tip":"排队队列","i18n.queue.message.template":"当前排队人数:{0},大约等待时间:{1} 分钟","i18n.queue.empty":"暂无排队用户","i18n.queue.accept":"接入","i18n.system.notification":"系统通知","i18n.old.password.wrong":"旧密码错误","i18n.change.password":"修改密码","i18n.auth.captcha.send.success":"验证码发送成功","i18n.auth.captcha.error":"验证码错误","i18n.auth.captcha.expired":"验证码过期","i18n.auth.captcha.already.send":"验证码已经发送,请等待","i18n.auth.captcha.validate.failed":"验证码验证失败","i18n.faq":"常见问题","i18n.rate":"评价","i18n.input.placeholder":"请输入内容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在输入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀请评价","i18n.ticket":"[工单]","i18n.ticket.thread":"[工单会话]","i18n.notice":"通知","i18n.notice.title":"标题","i18n.notice.content":"内容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.login_notification":"登录通知","i18n.login_time":"登录时间","i18n.login_ip":"登录IP","i18n.login_location":"登录地点","i18n.if_not_you_please_change_password":"如果这不是您的操作,请立即修改密码。","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理员","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技术部","i18n.DEPT.MONEY":"财务部","i18n.DEPT.MARKETING":"市场部","i18n.DEPT.SALES":"销售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"图片","i18n.thread.content.file":"文件","i18n.top.tip":"默认置顶语","i18n.top.make":"置顶","i18n.top.cancel":"取消置顶","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开-123","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"无客服在线,请留言","i18n.welcome.tip":"您好,有什么可以帮您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"开发中...","i18n.user.description":"默认用户描述","i18n.robot.nickname":"默认机器人","i18n.robot.description":"默认机器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一个聪明、对人类有帮助的人工智能,你可以对人类提出的问题给出有用、详细、礼貌的回答","i18n.agent.nickname":"默认客服","i18n.agent.description":"默认客服描述","i18n.workgroup.nickname":"默认技能组","i18n.workgroup.before.nickname":"售前技能组","i18n.workgroup.after.nickname":"售后技能组","i18n.workgroup.description":"默认技能组描述","i18n.workgroup.before.description":"售前技能组描述","i18n.workgroup.after.description":"售后技能组描述","i18n.contact":"询问联系方式","i18n.thanks":"感谢","i18n.welcome":"问候","i18n.bye":"告别","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开-123","i18n.tip.network.connected":"网络已连接-123","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的话请您提供一下您的联系电话","i18n.contact.content":"方便的话请您提供一下您的联系电话,我电话给您沟通一下,这样更加直观","i18n.thanks.title":"感谢光临","i18n.thanks.content":"感谢光临,欢迎再来","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什么可以帮您的","i18n.bye.title":"您的满意一直是我们的目标","i18n.bye.content":"您的满意一直是我们的目标,如果有任何疑问欢迎您随时联系","i18n.vip.api":"VIP接口,暂无权限,请联系:weiyuai.cn","i18n.faq.category.demo.1":"常见问题分类Demo1","i18n.faq.category.demo.2":"常见问题分类Demo2","i18n.faq.demo.title.1":"常见问题文字Demo1","i18n.faq.demo.content.1":"常见问题文字Demo1","i18n.faq.demo.title.2":"常见问题图片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按钮文字Demo1","i18n.quick.button.demo.content.1":"快捷按钮文字Demo1","i18n.quick.button.demo.title.2":"快捷按钮链接Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"预览","i18n.cancel":"取消","i18n.confirm":"确定","i18n.send":"发送","i18n.transferToAgent":"转人工服务","i18n.auto.closed":"会话自动关闭","i18n.agent.closed":"客服关闭会话","i18n.online.chat":"在线客服","i18n.JOB":"工作","i18n.LANGUAGE":"语言","i18n.TOOL":"工具","i18n.WRITING":"写作","i18n.RAG":"知识库问答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工单","i18n.black.user.already.exists":"用户已拉黑","i18n.ticket.category.technical_support":"技术支持","i18n.ticket.category.service_request":"服务请求","i18n.ticket.category.consultation":"咨询","i18n.ticket.category.complaint_suggestion":"投诉建议","i18n.ticket.category.operation_maintenance":"运维","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP组件, 联系我们了解更多详情","i18n.vip.contactUs":"联系我们","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html","i18n.ticket.process.name.group":"技能组流程","i18n.ticket.process.name.group.simple":"技能组简易流程","i18n.ticket.process.name.agent":"一对一流程","i18n.username.or.password.incorrect":"用户名或密码错误","i18n.system_notification":"系统通知","i18n.transfer_notification":"会话转接请求","i18n.transfer_accepted":"会话转接已接受","i18n.transfer_rejected":"会话转接已拒绝","i18n.transfer_timeout":"会话转接请求超时","i18n.transfer_cancelled":"会话转接已取消","i18n.confirm_accept_transfer":"确定接受转接","i18n.confirm_accept_transfer_desc":"确定接受转接请求吗?","i18n.confirm_reject_transfer":"确定拒绝转接","i18n.confirm_reject_transfer_desc":"确定拒绝转接请求吗?","i18n.confirm_cancel_transfer":"确定取消转接","i18n.confirm_cancel_transfer_desc":"确定取消转接请求吗?","i18n.transfer.notice.title":"会话转接","i18n.transfer.notice.content":"客服希望将您的会话转接给其他客服","i18n.transfer.accept.notice.title":"转接已接受","i18n.transfer.accept.notice.content":"会话转接请求已被接受","i18n.transfer.reject.notice.title":"转接已拒绝","i18n.transfer.reject.notice.content":"会话转接请求已被拒绝","i18n.transfer.timeout.notice.title":"转接已超时","i18n.transfer.timeout.notice.content":"会话转接请求已超时","i18n.transfer.cancel.notice.title":"转接已取消","i18n.transfer.cancel.notice.content":"会话转接请求已取消","i18n.already.in.transfer.pending.state":"会话已处于转接等待状态","i18n.already.in.transfer.accepted.state":"会话已处于转接接受状态","i18n.already.in.transfer.rejected.state":"会话已处于转接拒绝状态","i18n.already.in.transfer.timeout.state":"会话已处于转接超时状态","i18n.already.in.transfer.canceled.state":"会话已处于转接取消状态","i18n.invite_notification":"邀请请求","i18n.invite_accepted":"邀请已接受","i18n.invite_rejected":"邀请已拒绝","i18n.invite_timeout":"邀请请求超时","i18n.invite_cancelled":"邀请已取消","i18n.confirm_accept_invite":"确定接受邀请","i18n.confirm_accept_invite_desc":"确定接受邀请请求吗?","i18n.confirm_reject_invite":"确定拒绝邀请","i18n.confirm_reject_invite_desc":"确定拒绝邀请请求吗?","i18n.visitor_invite_notification":"访客邀请","i18n.visitor_invite_accepted":"访客邀请已接受","i18n.visitor_invite_rejected":"访客邀请已拒绝","i18n.visitor_invite_timeout":"访客邀请超时","i18n.visitor_invite_cancelled":"访客邀请已取消","i18n.group_invite_notification":"群组邀请","i18n.group_invite_accepted":"群组邀请已接受","i18n.group_invite_rejected":"群组邀请已拒绝","i18n.group_invite_timeout":"群组邀请超时","i18n.group_invite_cancelled":"群组邀请已取消","i18n.kbase_invite_notification":"知识库邀请","i18n.kbase_invite_accepted":"知识库邀请已接受","i18n.kbase_invite_rejected":"知识库邀请已拒绝","i18n.kbase_invite_timeout":"知识库邀请超时","i18n.kbase_invite_cancelled":"知识库邀请已取消","i18n.organization_invite_notification":"组织邀请","i18n.organization_invite_accepted":"组织邀请已接受","i18n.organization_invite_rejected":"组织邀请已拒绝","i18n.organization_invite_timeout":"组织邀请超时","i18n.organization_invite_cancelled":"组织邀请已取消","i18n.from":"来自","i18n.to":"至","i18n.note":"备注","i18n.status":"状态","i18n.time":"时间","i18n.inviter":"邀请人","i18n.invitee":"被邀请人","i18n.visitor":"访客","i18n.group_name":"群组名称","i18n.kbase_name":"知识库名称","i18n.organization_name":"组织名称","i18n.auto.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.agent.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.accept":"接受","i18n.reject":"拒绝","i18n.user.signup.first":"请先注册","i18n.email.signup.first":"请先验证邮箱","i18n.mobile.signup.first":"请先验证手机号","i18n.resource.not.found":"资源未找到","i18n.user.disabled":"用户已被禁用","i18n.forbidden.access":"禁止访问","i18n.user.blocked":"用户已被封禁","i18n.sensitive.content":"检测到敏感内容","i18n.message.processing.failed":"消息处理失败","i18n.null.pointer.exception":"空指针异常","i18n.response.status.exception":"响应状态异常","i18n.websocket.timeout.exception":"WebSocket超时异常","i18n.http.method.not.supported":"不支持的HTTP方法","i18n.authorization.denied":"授权被拒绝","i18n.request.rejected":"请求被拒绝","i18n.entity.not.found":"实体未找到","i18n.internal.server.error":"服务器内部错误"},Gen={"message.type.text":"文本消息","message.type.image":"图片消息","message.type.file":"文件消息","message.type.voice":"语音消息","message.type.video":"视频消息","message.type.location":"位置消息","message.type.link":"链接消息","message.type.card":"卡片消息","message.type.system":"系统消息","message.type.notification":"通知消息","message.type.custom":"自定义消息","message.status.sending":"发送中","message.status.sent":"已发送","message.status.delivered":"已送达","message.status.read":"已读","message.status.failed":"发送失败","message.status.recalled":"已撤回","message.status.deleted":"已删除","message.action.send":"发送","message.action.recall":"撤回","message.action.delete":"删除","message.action.resend":"重新发送","message.action.forward":"转发","message.action.quote":"引用","message.action.copy":"复制","message.action.translate":"翻译","message.action.download":"下载","message.action.preview":"预览","message.tip.sending":"消息发送中...","message.tip.sent":"消息已发送","message.tip.delivered":"消息已送达","message.tip.read":"消息已读","message.tip.failed":"消息发送失败","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已删除","message.tip.copy.success":"复制成功","message.tip.download.start":"开始下载...","message.tip.download.success":"下载成功","message.tip.download.failed":"下载失败","message.input.placeholder":"请输入消息","message.input.send.button":"发送","message.input.emoji.button":"表情","message.input.image.button":"图片","message.input.file.button":"文件","message.input.voice.button":"语音","message.input.video.button":"视频","message.input.location.button":"位置","message.list.load.more":"加载更多","message.list.loading":"加载中...","message.list.no.more":"没有更多消息","message.list.empty":"暂无消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相关消息","message.time.just":"刚刚","message.time.minutes":"{count}分钟前","message.time.hours":"{count}小时前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}个月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超过 {size}","message.file.type.unsupported":"不支持的文件类型","message.file.uploading":"上传中...","message.file.download":"下载文件","message.file.preview":"预览文件","message.image.loading":"图片加载中","message.image.load.error":"图片加载失败","message.image.save":"保存图片","message.image.save.success":"图片保存成功","message.image.save.failed":"图片保存失败","quickreply.search.placeholder":"搜索","quickreply.button.send":"发送","quickreply.button.copy":"复制","quickreply.button.create.category":"创建分类","quickreply.button.create.reply":"创建快捷回复","quickreply.copy.success":"{content} 已复制到剪贴板","category.form.edit.title":"编辑分类","category.form.create.title":"创建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!","category.form.name.placeholder":"输入分类名称","category.create.failed":"创建分类失败","quickreply.drawer.title":"快捷回复","quickreply.form.category":"分类","quickreply.form.category.required":"请选择分类","quickreply.form.category.placeholder":"选择分类","quickreply.form.type":"类型","quickreply.form.type.required":"请选择类型","quickreply.form.type.placeholder":"选择类型","quickreply.form.title":"标题","quickreply.form.title.required":"请输入标题","quickreply.form.content":"内容","quickreply.type.text":"文本","quickreply.type.image":"图片","quickreply.type.video":"视频","quickreply.type.audio":"音频","quickreply.type.file":"文件","quickreply.upload.text":"点击或拖拽文件上传","quickreply.upload.success":"{filename} 上传成功","quickreply.upload.error":"{filename} 上传失败","quickreply.upload.uploading":"{filename} 上传中","quickreply.form.validate.error":"请检查表单"},Yen={"profile.update.success":"个人信息更新成功","profile.form.avatar":"头像","profile.form.upload":"上传","profile.form.username":"用户名","profile.form.nickname":"昵称","profile.form.description":"描述","profile.button.change.password":"修改密码","profile.button.change.email":"修改邮箱","profile.button.change.mobile":"修改手机号","profile.email.verified":"邮箱已验证","profile.email.unverified":"邮箱未验证","profile.mobile.verified":"手机已验证","profile.mobile.unverified":"手机未验证","profile.email.change.title":"修改邮箱","profile.email.placeholder":"请输入邮箱地址","profile.email.required":"请输入邮箱地址!","profile.email.format.invalid":"邮箱格式不正确","profile.email.length.limit":"邮箱不得超过50字符","profile.email.verification.code.placeholder":"请输入验证码","profile.email.verification.code.countdown":"秒后重新获取","profile.email.verification.code.get":"获取验证码","profile.email.verification.code.required":"请输入验证码!","profile.email.not.changed":"邮箱未更改!","profile.email.change.success":"邮箱修改成功!","profile.email.format.error":"邮箱格式错误","profile.mobile.change.title":"修改手机号","profile.mobile.placeholder":"请输入手机号","profile.mobile.required":"请输入手机号!","profile.mobile.format.invalid":"手机号格式错误!","profile.mobile.verification.code.placeholder":"请输入验证码","profile.mobile.verification.code.countdown":"秒后重新获取","profile.mobile.verification.code.get":"获取验证码","profile.mobile.verification.code.required":"请输入验证码!","profile.mobile.not.changed":"手机号未更改!","profile.mobile.change.success":"手机号修改成功!","profile.mobile.format.error":"手机号格式错误","profile.password.change.title":"修改密码","profile.password.old":"原密码","profile.password.old.empty":"手机号直接登录用户,可以留空","profile.password.new":"新密码","profile.password.confirm":"确认密码","profile.password.length.error":"密码最小长度不能小于6","profile.password.mismatch":"两次输入密码不一致","profile.password.change.success":"密码修改成功!"},Xen={"setting.menu.title":"设置","setting.menu.profile":"个人信息","setting.menu.basic":"基本设置","setting.menu.agent":"客服设置","setting.menu.model":"大模型","setting.menu.certification":"实名认证","setting.menu.qrcode":"二维码","setting.menu.shortcut":"快捷键","setting.menu.click":"菜单点击","setting.save.success":"设置保存成功","setting.save.error":"设置保存失败","setting.load.error":"设置加载失败","setting.header.profile":"个人信息","setting.header.basic":"基本设置","setting.header.agent":"客服设置","setting.header.model":"大模型设置","setting.basic.sound.on":"已开启消息提示音","setting.basic.sound.off":"已关闭消息提示音","setting.basic.notification.on":"已开启网络状态通知","setting.basic.notification.off":"已关闭网络状态通知","setting.basic.connection.status":"长链接状态:","setting.basic.connection.connected":"✅连接正常","setting.basic.connection.disconnected":"❌连接断开","setting.basic.startup":"开机启动:","setting.basic.startup.on":"开机启动","setting.basic.startup.off":"不开机启动","setting.basic.theme":"颜色主题:","setting.basic.language":"语言设置:","setting.basic.mode":"模式设置:","setting.basic.mode.team":"团队模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"个人模式"},Zen={"thread.error.message":"获取数据失败","thread.feature.unavailable":"TODO: 该功能暂未开放","thread.menu.top":"置顶","thread.menu.untop":"取消置顶","thread.menu.read":"标记已读","thread.menu.unread":"标记未读","thread.menu.mute":"静音","thread.menu.unmute":"取消静音","thread.menu.transfer":"转接","thread.menu.block":"拉黑","thread.menu.unblock":"取消拉黑","thread.menu.remark":"备注","thread.menu.ticket":"创建工单","thread.menu.crm":"查看CRM","thread.menu.summary":"会话总结","thread.status.robot":"[机器人]","thread.status.agent":"[一对一]","thread.status.workgroup":"[工作组]","thread.search.placeholder":"搜索会话...","thread.menu.filter":"会话过滤","thread.menu.groupThread":"群聊会话","thread.menu.robotThread":"机器人会话","thread.menu.workgroupThread":"工作组会话","thread.menu.agentThread":"一对一会话","thread.menu.ticketThread":"工单会话","thread.menu.memberThread":"成员会话","thread.menu.deviceThread":"设备会话","thread.menu.systemThread":"系统会话","thread.dropdown.create.group":"创建群聊","thread.dropdown.create.ai":"创建AI对话","thread.agent.status.online":"😀 - 在线接待","thread.agent.status.offline":"🔻 - 客服下线","thread.agent.status.busy":"🏃‍♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 松开刷新","thread.list.no.more":"没有更多了","thread.coming.soon":"即将上线,敬请期待","thread.set.success":"设置成功","thread.set.error":"设置失败","thread.menu.star":"星标","thread.menu.star.1":"星标1","thread.menu.star.2":"星标2","thread.menu.star.3":"星标3","thread.menu.star.4":"星标4","thread.menu.hide":"隐藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下线","thread.status.busy":"🏃‍♀️忙碌","thread.status.loading":"加载中...","thread.status.empty":"暂无会话","thread.status.error":"加载会话失败","thread.status.queue":"排队({count})","thread.status.network.offline":"网络已断开-234","thread.status.network.online":"网络已连接-234","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暂无消息","thread.status.message.error":"加载消息失败","thread.status.message.end":"没有更多消息","thread.status.message.typing":"正在输入...","thread.status.message.transfer":"转接中...","thread.status.message.transferred":"已转接","thread.status.message.closed":"会话已关闭","thread.menu.star.cancel":"取消星标","thread.loading.more":"加载更多..."},Qen={"ticket.create.title":"创建工单","ticket.edit.title":"编辑工单","ticket.form.uid":"编号","ticket.form.title":"标题","ticket.form.title.required":"请输入工单标题","ticket.form.title.placeholder":"请输入工单标题","ticket.form.description":"描述","ticket.form.description.required":"请输入工单描述","ticket.form.description.placeholder":"请输入工单描述","ticket.form.status":"状态","ticket.form.status.required":"请选择工单状态","ticket.form.priority":"优先级","ticket.form.priority.required":"请选择优先级","ticket.form.category":"分类","ticket.form.category.required":"请选择工单分类","ticket.form.category.placeholder":"请选择工单分类","ticket.form.user":"客户","ticket.form.user.placeholder":"请选择客户","ticket.form.assignee":"处理人","ticket.form.assignee.placeholder":"请选择处理人","ticket.form.reporter":"报告人","ticket.form.reporter.placeholder":"请选择报告人","ticket.form.workgroup":"技能组","ticket.form.workgroup.required":"请选择技能组","ticket.form.workgroup.placeholder":"请选择技能组","ticket.workgroup.load.error":"加载技能组失败","ticket.status.all":"全部状态","ticket.status.new":"待认领","ticket.status.claimed":"已分配","ticket.status.unclaimed":"被退回","ticket.status.processing":"处理中","ticket.status.pending":"待处理","ticket.status.holding":"挂起","ticket.status.resumed":"恢复","ticket.status.reopened":"重新打开","ticket.status.resolved":"已解决","ticket.status.closed":"已关闭","ticket.status.cancelled":"已取消","ticket.status.label":"状态","ticket.status.escalated":"已升级","ticket.priority.all":"全部优先级","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"紧急","ticket.priority.critical":"严重","ticket.create.success":"工单创建成功","ticket.create.failed":"工单创建失败","ticket.update.success":"工单更新成功","ticket.update.failed":"工单更新失败","ticket.submit.error":"工单提交失败","ticket.delete.success":"工单删除成功","ticket.delete.error":"工单删除失败","ticket.load.error":"工单数据加载失败","ticket.submitting":"提交工单中...","ticket.list.title":"工单列表","ticket.list.empty":"暂无工单","ticket.list.search.placeholder":"搜索工单","ticket.list.filter.all":"全部工单","ticket.list.filter.my":"我的工单","ticket.list.filter.unassigned":"未分配","ticket.list.create":"创建工单","ticket.list.total":"工单总数","ticket.action.edit":"编辑","ticket.action.delete":"删除","ticket.action.assign":"分配","ticket.action.close":"关闭","ticket.action.reopen":"重新打开","ticket.action.verify":"验证","ticket.action.verify.success":"验证成功","ticket.delete.confirm":"确定要删除此工单吗?","ticket.category.load.error":"加载工单分类失败","ticket.action.invite":"邀请","ticket.conversation.title":"工单对话","ticket.conversation.empty":"请选择工单查看对话","ticket.conversation.input.placeholder":"请输入消息...","ticket.details.title":"工单详情","ticket.details.empty":"请选择工单查看详情","ticket.messages.load.error":"加载工单消息失败","ticket.message.send.error":"发送消息失败","ticket.form.thread":"关联会话","ticket.form.thread.placeholder":"选择关联会话","ticket.form.thread.none":"不关联","ticket.form.createdAt":"创建时间","ticket.form.updatedAt":"更新时间","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能组","ticket.assignee":"处理人","ticket.reporter":"报告人","ticket.type":"类型","ticket.category":"分类","ticket.steps.title":"流转过程","ticket.form.upload.button":"上传附件","ticket.upload.success":"文件上传成功","ticket.upload.failed":"文件上传失败","ticket.current.filters":"当前筛选","ticket.filter.by.status":"按状态筛选","ticket.filter.by.priority":"按优先级筛选","ticket.filter.by.assignment":"按分配筛选","ticket.filter.by.time":"按时间筛选","ticket.filter.status_all":"全部状态","ticket.filter.status_new":"待认领","ticket.filter.status_claimed":"已分配","ticket.filter.status_unclaimed":"被退回","ticket.filter.status_processing":"处理中","ticket.filter.status_pending":"待处理","ticket.filter.status_holding":"挂起","ticket.filter.status_resumed":"恢复","ticket.filter.status_reopened":"重新打开","ticket.filter.status_resolved":"已解决","ticket.filter.status_closed":"已关闭","ticket.filter.status_cancelled":"已取消","ticket.filter.priority_all":"全部优先级","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"紧急","ticket.filter.priority_critical":"严重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工单","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能组","ticket.filter.assignment_my_created":"我创建的","ticket.filter.assignment_my_assigned":"待我处理","ticket.filter.time_all":"全部时间","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本周","ticket.filter.time_last_week":"上周","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工单","ticket.content.number":"编号","ticket.delete.title":"删除工单","ticket.delete.content":"确定要删除此工单吗?","ticket.delete.failed":"工单删除失败","ticket.loading":"加载工单...","ticket.empty":"暂无工单","ticket.form.process":"流程","ticket.form.process.placeholder":"选择流程","ticket.process.load.error":"加载流程失败","ticket.action.claim":"认领","ticket.action.claim.todo":"TODO: 认领工单","ticket.action.process":"开始处理","ticket.action.process.todo":"TODO: 开始处理工单","ticket.action.resolve":"解决","ticket.action.resolve.todo":"TODO: 解决工单","ticket.action.pending":"待处理","ticket.action.pending.todo":"TODO: 设置工单为待处理","ticket.action.hold":"挂起","ticket.action.resume":"继续处理","ticket.action.resume.todo":"TODO: 继续处理工单","ticket.action.close.todo":"TODO: 关闭工单","ticket.action.reopen.todo":"TODO: 重新打开工单","ticket.action.escalate":"升级","ticket.action.escalate.todo":"TODO: 升级工单","ticket.action.unclaim":"退回","ticket.action.unclaim.todo":"TODO: 退回工单","ticket.action.claim.success":"工单认领成功","ticket.action.claim.confirm.title":"认领工单","ticket.action.claim.confirm.content":"确定要认领该工单吗?","ticket.action.claim.loading":"认领中...","ticket.action.claim.error":"工单认领失败","ticket.verify.title":"验证工单","ticket.verify.content":"请验证此工单","ticket.verify.pass":"通过","ticket.verify.reject":"不通过","ticket.verify.success":"工单验证通过","ticket.verify.reject.success":"工单验证未通过","ticket.verify.error":"工单验证失败","ticket.verify.later":"稍后决定"},Jen={"contact.list.new":"新朋友","contact.list.device":"内网设备","contact.list.group":"群聊","contact.list.channel":"频道","contact.list.company":"企业联系人","contact.list.friend":"联系人","contact.search.placeholder":"搜索联系人...","contact.manager.button":"通讯录管理","contact.manager.coming":"敬请期待","member.detail.nickname":"昵称","member.detail.jobno":"工号","member.detail.seatno":"座位号","member.detail.telephone":"电话","member.detail.loading":"加载中...","member.detail.chat.button":"开始聊天"},etn={"group.create.title":"发起群聊","group.create.contacts":"好友","group.create.members":"群成员","group.create.members.min":"至少选择2名成员","group.create.creating":"创建群组中...","group.create.org.empty":"未选择组织","group.create.success":"创建群组成功","group.create.failed":"创建群组失败","group.create.loading":"加载成员中...","group.create.error":"加载成员失败"},ttn={"robot.create.title":"创建机器人","robot.create.available":"可选机器人","robot.create.selected":"已选机器人","robot.create.success":"创建机器人成功","robot.create.failed":"创建机器人失败","robot.create.loading":"创建机器人中...","robot.create.error":"加载机器人失败","robot.create.empty":"暂无可用机器人","robot.create.min":"请至少选择一个机器人","robot.list.add":"添加机器人","robot.list.chat":"聊天","robot.list.edit":"编辑","robot.list.delete":"删除"},ntn={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},rtn={"upload.modal.title":"上传文件","upload.drag.text":"点击或拖拽文件至此处上传","upload.drag.hint":"支持单个或批量上传","upload.uploading":"{filename} 上传中...","upload.success":"{filename} 上传成功","upload.failed":"{filename} 上传失败","upload.delete.confirm":"确定要删除此文件吗?","upload.preview.image":"图片预览","upload.preview.file":"文件预览","upload.button.ok":"确定","upload.button.cancel":"取消","upload.maxCount":"最多只能上传 {maxCount} 个文件","upload.maxSize":"文件大小不能超过 {maxSize}MB"},itn={"welcome.modal.title":"未发现所在组织","welcome.modal.description":"您需要创建或加入已有组织","welcome.modal.join":"加入已有组织(即将上线)","welcome.modal.create":"创建组织","welcome.modal.input.placeholder":"请输入组织名称","welcome.message.org.required":"请创建或加入组织","welcome.message.create.success":"创建组织成功","welcome.message.create.failed":"创建组织失败","welcome.message.verify.email":"请先验证邮箱","welcome.message.verify.mobile":"请先验证手机号","welcome.message.org.name.required":"请输入组织名称","welcome.message.org.creating":"创建组织中,请稍后...","welcome.verify.modal.title":"账号验证提示","welcome.verify.modal.description":"您的邮箱和手机号尚未验证,为保障账号安全,建议您尽快完成验证。","welcome.verify.now":"立即验证","welcome.verify.later":"稍后验证"},atn={...zen,...Hen,...Uen,...Wen,...Ven,...qen,...Ken,...Len,...Gen,...Ben,...Yen,...Xen,...Zen,...Qen,...Fen,...Jen,...etn,...ttn,...ntn,...rtn,...itn},otn={i18_file_assistant:"檔案助手",slogan:"对话即服务","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"客服助手","chat.right.quickreply":"快捷回复/知识库","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服機器人",MARKETING:"營銷機器人",KNOWLEDGEBASE:"知識庫機器人(内部)",QA:"問答機器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"載入中",create:"新增",creating:"新增中...","create.success":"新增成功","create.fail":"新增失敗",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失敗",save:"儲存",saving:"正在儲存...",email:"電子郵件","email.verified":"電子郵件(已驗證)","email.unverified":"電子郵件(待驗證)",mobile:"手機號碼","mobile.verified":"手機號碼(已驗證)","mobile.unverified":"手機號碼(待驗證)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登入用戶名(修改用戶名之後,需要重新登入)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"匯入",export:"匯出","download.template":"下载模板",open:"開啟",copy:"複製","copy.success":"複製成功",ok:"確定",cancel:"取消",bind:"綁定",edit:"編輯",editing:"編輯中...","edit.success":"編輯成功","edit.fail":"編輯失敗",delete:"刪除",deleting:"删除中...",deleteTip:"刪除提示",deleteAffirm:"確定要刪除","delete.success":"刪除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"預覽",close:"關閉",closing:"關閉中...",closeTip:"關閉提示",closeASure:"確定要關閉","close.success":"關閉成功",choose:"選擇","leavemsg.enabled":"留言啟用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"无客服在线",invite:"邀请","invite.success":"邀请成功","invite.fail":"邀请失败","invite.reason":"邀请原因","invite.no.agent":"无客服在线"},stn={"menu.anonymous.title":"匿名模式","menu.anonymous.home":"訊息","menu.anonymous.contact":"聯絡人","menu.anonymous.robot":"機器人","menu.anonymous.setting":"設定","menu.anonymous.status":"匿名狀態","menu.anonymous.status.tip":"匿名模式僅支援同一區域網內的在線設備之間的通訊","menu.anonymous.login.tip":"登入以訪問離線訊息和更多功能","menu.anonymous.login":"登入","menu.anonymous.current.users":"當前用戶","menu.dashboard.chat":"聊天","menu.dashboard.contact":"聯絡人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"筆記","menu.dashboard.kbase":"知識庫","menu.dashboard.mine":"設定","menu.dashboard.queue":"排隊","menu.dashboard.ticket":"工單","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"訪客","menu.dashboard.monitor":"監控","menu.dashboard.plugins":"插件","menu.dashboard.quality":"質檢","menu.settings":"設定","menu.settings.logout":"登出","menu.agent.status":"客服狀態","menu.agent.status.available":"可用","menu.agent.status.rest":"休息","menu.agent.status.offline":"離線","menu.language":"語言","menu.mode":"模式","menu.mode.team":"團隊模式","menu.mode.agent":"一對一模式","menu.mode.personal":"個人模式","menu.agent.offline.warning":"請在離線前結束所有正在進行中的會話","menu.mode.personal.coming":"即將推出..."},ltn={"pages.login.title":"登錄","pages.login.subtitle":"歡迎使用微語客服系統","pages.layouts.userLayout.title":"對話即服務","pages.login.accountLogin.tab":"帳戶密碼登錄","pages.login.accountLogin.errorMessage":"錯誤的用戶名和密碼","pages.login.failure":"登錄失敗,請檢查用戶名密碼!","pages.login.failureCode":"驗證碼錯誤","pages.login.success":"登錄成功!","pages.login.username.placeholder":"請輸入用戶名","pages.login.username.required":"用戶名是必填項!","pages.login.password.placeholder":"請輸入密碼","pages.login.repassword.placeholder":"確認密碼","pages.login.password.required":"密碼是必填項!","pages.login.repassword.required":"確認密碼是必填項!","pages.login.phoneLogin.tab":"手機號登錄","pages.login.phoneLogin.errorMessage":"驗證碼錯誤","pages.login.phoneNumber.placeholder":"請輸入手機號!","pages.login.phoneNumber.required":"手機號是必填項!","pages.login.phoneNumber.invalid":"不合法的手機號!","pages.login.captcha.placeholder":"請輸入驗證碼!","pages.login.captcha.required":"驗證碼是必填項!","pages.login.phoneLogin.getVerificationCode":"獲取驗證碼","pages.login.anonymousLogin":"匿名登錄","pages.getCaptchaSecondText":"秒後重新獲取","pages.login.scanLogin.tab":"掃碼登錄","pages.login.rememberMe":"自動登錄","pages.login.forgot":"忘記密碼","pages.login.submit":"登錄","pages.login.loginWith":"其他登錄方式 :","pages.login.register":"註冊賬號","pages.login.registerAccount":" 註冊帳戶","pages.login.auto.register":"未註冊手機號會自動註冊","pages.welcome.link":"歡迎使用","pages.welcome.title":"歡迎","pages.welcome.description":"微語客服系統是一個開源的客服系統","pages.welcome.getting-started":"開始使用","pages.welcome.view-docs":"查看文檔","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"刪除","pages.robot.upload":"上傳","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知識庫","pages.robot.tab.channel":"渠道對接","pages.robot.tab.statistic":"數據統計","pages.robot.tab.advanced":"高級設置","pages.robot.tab.flow":"流程設計","pages.robot.tab.avatar":"頭像","pages.robot.tab.title":"標題","pages.robot.tab.welcomeTip":"歡迎語","pages.robot.tab.description":"簡介","pages.robot.tab.preview":"實時預覽","pages.robot.tab.website":"官網","pages.robot.tab.helpdesk":"幫助文檔","pages.robot.tab.icp":"京ICP備案 17041763號-1","pages.robot.tab.police":"粵公安備案 44030502008688號","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"問答","pages.robot.kb.web":"網站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件類型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"刪除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上傳中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件內容","pages.setting":"設置","pages.logout":"退出登錄","pages.footer.website":"微語官網","pages.footer.helpcenter":"帮助文档","pages.login.remember":"記住密碼","pages.agent.tab.basic":"基本信息","pages.agent.robot":"機器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常見問題","pages.advanced.quickButton":"快捷按鈕","pages.advanced.faqGuess":"智能推薦","pages.advanced.faqHot":"熱門問題","pages.advanced.faqShortcut":"快捷回覆","pages.advanced.rate":"滿意度評價","pages.advanced.autoreply":"自動回覆","pages.advanced.leaveMsg":"留言設置","pages.advanced.survey":"調查問卷","pages.advanced.history":"歷史記錄","pages.advanced.inputAssociation":"輸入聯想","pages.advanced.antiHarassment":"驗證碼設置","pages.advanced.captcha":"驗證碼設置","pages.advanced.showPreForm":"顯示預覽","pages.advanced.showHistory":"顯示歷史","pages.advanced.showInputAssociation":"顯示輸入聯想","pages.advanced.showCaptcha":"顯示驗證碼","pages.login.country.placeholder":"選擇國家/地區","pages.login.country.china":"中國大陸","pages.login.country.hongkong":"中國香港","pages.login.country.taiwan":"中國台灣","pages.login.country.macao":"中國澳門","pages.login.country.japan":"日本","pages.login.country.korea":"韓國","pages.login.country.usa":"美國","pages.login.country.canada":"加拿大","pages.login.country.uk":"英國","pages.login.country.germany":"德國","pages.login.country.france":"法國","pages.login.country.australia":"澳大利亞","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"馬來西亞","pages.login.country.thailand":"泰國","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律賓","pages.login.country.indonesia":"印度尼西亞","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄羅斯","pages.login.country.newzealand":"新西蘭","block.title":"拉黑設置","block.type":"拉黑類型","block.user":"拉黑用戶","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"請選擇封禁結束時間","pages.register.title":"註冊","pages.register.subtitle":"創建您的賬號","pages.register.username":"用戶名","pages.register.password":"密碼","pages.register.confirm":"確認密碼","pages.register.email":"郵箱","pages.register.mobile":"手機號","pages.register.code":"驗證碼","pages.register.agreement":"我已閱讀並同意","pages.register.agreement.terms":"服務條款","pages.register.submit":"註冊","pages.register.login":"使用已有賬號登錄","pages.404.title":"404","pages.404.subtitle":"抱歉,您訪問的頁面不存在","pages.404.description":"您可以嘗試以下操作:","pages.404.actions.back":"返回上一頁","pages.404.actions.home":"返回首頁","pages.403.title":"403","pages.403.subtitle":"抱歉,您沒有訪問該頁面的權限","pages.403.description":"請聯繫管理員獲取權限","pages.403.actions.back":"返回上一頁","pages.500.title":"500","pages.500.subtitle":"抱歉,服務器出錯了","pages.500.description":"請稍後再試或聯繫技術支持","pages.500.actions.back":"返回上一頁","pages.500.actions.home":"返回首頁"},ctn={"app.title":"微語","app.logout":"登出","app.copyright.produced":"微語出品","app.preview.down.block":"下載此頁面到本地項目","app.welcome.link.fetch-blocks":"獲取全部區塊","app.welcome.link.block-list":"基於 block 開發,快速構建標準頁面","navBar.lang":"語言","layout.user.link.help":"幫助","layout.user.link.privacy":"隱私","layout.user.link.terms":"條款","theme.light":"淺色","theme.dark":"深色","theme.system":"自動","setting.lang":"Languages","setting.theme":"主題","app.name":"微語客服","app.description":"新一代智能客服系統","app.welcome":"歡迎使用微語客服系統","app.copyright":"© 2024 微語客服. 保留所有權利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"確認","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"編輯","app.action.delete":"刪除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"設置","app.action.help":"幫助","app.tip.loading":"加載中...","app.tip.success":"操作成功","app.tip.error":"操作失敗","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"確認要執行此操作嗎?","app.tip.nodata":"暫無數據","app.tip.network.error":"網絡連接失敗","app.tip.server.error":"服務器錯誤","app.status.online":"在線","app.status.offline":"離線","app.status.busy":"忙碌","app.status.away":"離開","app.status.invisible":"隱身","app.status.disabled":"已禁用","app.status.expired":"已過期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"剛剛","app.time.minutes":"{count} 分鐘前","app.time.hours":"{count} 小時前","app.time.days":"{count} 天前","app.file.upload":"上傳文件","app.file.download":"下載文件","app.file.preview":"預覽文件","app.file.size.limit":"文件大小不能超過 {size}","app.file.type.unsupported":"不支持的文件類型","app.file.upload.success":"上傳成功","app.file.upload.failed":"上傳失敗","app.file.download.success":"下載成功","app.file.download.failed":"下載失敗","app.layout.sidebar.collapse":"收起側邊欄","app.layout.sidebar.expand":"展開側邊欄","app.layout.header.profile":"個人中心","app.layout.header.logout":"退出登錄","app.layout.footer.copyright":"版權所有","app.layout.footer.terms":"服務條款","app.layout.footer.privacy":"隱私政策","category.form.title":"新建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!"},utn={"auth.login.title":"登錄","auth.login.subtitle":"歡迎使用微語客服系統","auth.login.username":"用戶名","auth.login.username.required":"請輸入用戶名","auth.login.password":"密碼","auth.login.password.required":"請輸入密碼","auth.login.remember":"記住密碼","auth.login.forgot":"忘記密碼?","auth.login.submit":"登錄","auth.login.other":"其他登錄方式","auth.login.register":"註冊賬號","auth.login.success":"登錄成功","auth.login.failed":"登錄失敗","auth.register.title":"註冊","auth.register.subtitle":"創建新賬號","auth.register.username":"用戶名","auth.register.username.required":"請輸入用戶名","auth.register.email":"郵箱","auth.register.email.required":"請輸入郵箱","auth.register.password":"密碼","auth.register.password.required":"請輸入密碼","auth.register.confirm":"確認密碼","auth.register.confirm.required":"請確認密碼","auth.register.submit":"註冊","auth.register.login":"已有賬號?登錄","auth.register.success":"註冊成功","auth.register.failed":"註冊失敗","auth.forgot.title":"忘記密碼","auth.forgot.subtitle":"重置密碼","auth.forgot.email":"郵箱","auth.forgot.email.required":"請輸入郵箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登錄","auth.forgot.success":"重置密碼郵件已發送","auth.forgot.failed":"重置密碼失敗","auth.reset.title":"重置密碼","auth.reset.subtitle":"設置新密碼","auth.reset.password":"新密碼","auth.reset.password.required":"請輸入新密碼","auth.reset.confirm":"確認密碼","auth.reset.confirm.required":"請確認新密碼","auth.reset.submit":"提交","auth.reset.success":"密碼重置成功","auth.reset.failed":"密碼重置失敗","auth.verify.code":"驗證碼","auth.verify.code.required":"請輸入驗證碼","auth.verify.code.send":"發送驗證碼","auth.verify.code.resend":"重新發送","auth.verify.code.success":"驗證碼發送成功","auth.verify.code.failed":"驗證碼發送失敗","auth.password.strength.weak":"密碼強度:弱","auth.password.strength.medium":"密碼強度:中","auth.password.strength.strong":"密碼強度:強","auth.agreement.text":"我已閱讀並同意","auth.agreement.terms":"服務條款","auth.agreement.privacy":"隱私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"幫助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢復默認雲服務器","server.custom.enable":"啟用自定義服務器","server.api.url.label":"API服務器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服務器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"請輸入正確的服務器地址"},dtn={"chat.title":"會話","chat.empty":"暫無會話","chat.loading":"加載中...","chat.load.error":"加載失敗","chat.load.more":"加載更多","chat.no.more":"沒有更多了","chat.refresh":"刷新","chat.status.connecting":"連接中...","chat.status.connected":"已連接","chat.status.disconnected":"連接斷開","chat.status.reconnecting":"重新連接中...","chat.network.error":"網絡連接失敗,請檢查網絡","chat.thread.closing":"結束會話中...","chat.thread.close.success":"結束會話成功","chat.thread.close.failed":"結束會話失敗","chat.thread.close.confirm.title":"確定要結束會話?","chat.rate.invite.confirm.title":"確認要邀請評價?","chat.message.send.failed":"發送失敗","chat.message.resend":"重新發送","chat.message.recall":"撤回消息","chat.message.copy.success":"複製成功","chat.copy.success":"複製成功","chat.menu.copy":"複製","chat.menu.translate":"翻譯","chat.menu.recall":"撤回","chat.menu.enlarge":"放大閱讀","chat.menu.quickreply.add":"添加快捷回復...","chat.menu.browser.open":"瀏覽器打開","chat.menu.forward":"轉發...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.menu.ai":"問AI","chat.menu.quickreply.search":"搜索知識庫","chat.input.placeholder":"請輸入內容, Ctrl+V 粘貼截圖/圖片","chat.translation.placeholder":"請輸入翻譯內容...","chat.input.send":"發送","chat.input.sending":"發送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"圖片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截圖","chat.toolbar.autoreply":"自動回復","chat.toolbar.audio":"錄音","chat.toolbar.webrtc":"視頻會話","chat.upload.size.limit":"文件大小不能超過 {size}","chat.upload.type.unsupported":"不支持的文件類型","chat.upload.failed":"上傳失敗","chat.upload.success":"上傳成功","chat.upload.progress":"上傳中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"來電...","chat.webrtc.connected":"通話中...","chat.webrtc.ended":"通話結束","chat.webrtc.rejected":"對方拒絕","chat.webrtc.busy":"對方忙","chat.webrtc.failed":"通話失敗","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒絕","chat.webrtc.hangup":"掛斷","chat.navbar.transfer":"轉接","chat.navbar.close":"結束","chat.navbar.note":"筆記","chat.navbar.kbase":"知識庫","chat.right.quickreply":"快捷回覆","chat.right.userinfo":"訪客信息","chat.right.ai":"客服助手","chat.right.ticket":"工單","chat.right.llm":"大模型","chat.right.docview":"文檔查看","chat.right.group":"群組信息","chat.right.member":"成員信息","chat.group.notice":"群公告","chat.group.members":"群成員","chat.group.admins":"管理員","chat.group.robots":"機器人","chat.group.qrcode":"二維碼","chat.group.uid.error":"群組ID錯誤","chat.header.group.unnamed":"未命名群組","chat.header.member.unnamed":"未命名成員","chat.header.robot.unnamed":"未命名機器人","chat.header.user.unnamed":"未命名用戶","chat.header.typing":"正在輸入...","chat.header.no.message":"暫無消息","chat.header.action.transfer":"轉接","chat.header.action.invite":"邀請","chat.header.action.create.ticket":"創建工單","chat.header.action.close":"結束","chat.header.action.exit":"退出","chat.header.type.not.supported":"當前聊天類型不支持"},ftn={"common.confirm":"確認","common.cancel":"取消","common.submit":"提交","common.reset":"重置","common.save":"保存","common.delete":"刪除","common.edit":"編輯","common.add":"添加","common.search":"搜索","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.loading":"加載中...","common.success":"操作成功","common.failed":"操作失敗","common.error":"錯誤","common.warning":"警告","common.info":"提示","common.status.online":"在線","common.status.offline":"離線","common.status.busy":"忙碌","common.status.away":"離開","common.status.invisible":"隱身","common.operation.success":"操作成功","common.operation.failed":"操作失敗","common.operation.confirm":"確認要執行此操作嗎?","common.operation.processing":"處理中...","common.operation.completed":"處理完成","common.operation.error":"處理出錯","common.form.required":"此項為必填項","common.form.optional":"選填","common.form.invalid":"輸入無效","common.form.validate.error":"表單驗證失敗","common.form.validate.success":"表單驗證通過"},ptn={"customer.list.title":"客戶列表","customer.list.empty":"暫無客戶","customer.list.loading":"加載中...","customer.list.load.error":"加載失敗","customer.list.load.more":"加載更多","customer.list.no.more":"沒有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"暱稱","customer.info.gender":"性別","customer.info.age":"年齡","customer.info.birthday":"生日","customer.info.mobile":"手機號","customer.info.email":"郵箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"職位","customer.info.remark":"備註","customer.info.tags":"標籤","customer.info.extra":"其他信息","customer.info.source":"來源","customer.info.created":"創建時間","customer.info.updated":"更新時間","customer.status.online":"在線","customer.status.offline":"離線","customer.status.away":"離開","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"編輯","customer.action.delete":"刪除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"轉移","customer.action.merge":"合併","customer.action.export":"導出","customer.form.name":"姓名","customer.form.name.required":"請輸入姓名","customer.form.nickname":"暱稱","customer.form.gender":"性別","customer.form.age":"年齡","customer.form.birthday":"生日","customer.form.mobile":"手機號","customer.form.email":"郵箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"職位","customer.form.remark":"備註","customer.form.tags":"標籤","customer.form.source":"來源","customer.create.success":"客戶創建成功","customer.create.failed":"客戶創建失敗","customer.update.success":"客戶更新成功","customer.update.failed":"客戶更新失敗","customer.delete.success":"客戶刪除成功","customer.delete.failed":"客戶刪除失敗","customer.block.success":"客戶拉黑成功","customer.block.failed":"客戶拉黑失敗","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失敗","customer.transfer.success":"客戶轉移成功","customer.transfer.failed":"客戶轉移失敗","customer.merge.success":"客戶合併成功","customer.merge.failed":"客戶合併失敗","customer.export.success":"客戶導出成功","customer.export.failed":"客戶導出失敗","black.title":"拉黑設置","black.type":"拉黑類型","black.type.required":"請選擇至少一種拉黑類型","black.user":"拉黑用戶","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"請選擇拉黑截至時間","black.reason":"拉黑原因","black.reason.required":"請輸入拉黑原因","black.reason.placeholder":"請輸入拉黑原因","black.success":"拉黑成功","customer.info.browser":"瀏覽器資訊","customer.info.os":"作業系統資訊","customer.info.device":"裝置資訊","customer.info.browse.record":"瀏覽記錄","customer.info.tag":"標籤資訊","customer.info.load.error":"載入訪客資訊失敗","customer.basic.title":"基本資訊","customer.basic.nickname":"暱稱","customer.basic.empty":"無","customer.basic.edit":"編輯","customer.basic.update.success":"更新成功","customer.basic.update.failed":"更新失敗","customer.basic.note":"備註"},htn={"dashboard.menu.overview":"總覽","dashboard.menu.workbench":"工作台","dashboard.menu.monitor":"監控台","dashboard.menu.workplace":"工作區","dashboard.menu.message":"消息中心","dashboard.menu.settings":"系統設置","dashboard.overview.title":"總覽","dashboard.overview.total.conversations":"總會話數","dashboard.overview.total.customers":"總客戶數","dashboard.overview.total.tickets":"總工單數","dashboard.overview.total.agents":"總客服數","dashboard.overview.online.agents":"在線客服","dashboard.overview.waiting.customers":"排隊訪客","dashboard.overview.avg.response.time":"平均響應時間","dashboard.overview.avg.handle.time":"平均處理時間","dashboard.stats.title":"數據統計","dashboard.stats.realtime":"實時數據","dashboard.stats.today":"今日統計","dashboard.stats.yesterday":"昨日統計","dashboard.stats.week":"本週統計","dashboard.stats.month":"本月統計","dashboard.stats.custom":"自定義時段","dashboard.workbench.online":"在線狀態","dashboard.workbench.offline":"離線狀態","dashboard.workbench.busy":"忙碌狀態","dashboard.workbench.away":"離開狀態","dashboard.workbench.auto.distribution":"自動分配","dashboard.workbench.manual.distribution":"手動分配","dashboard.workbench.max.session":"最大會話數","dashboard.workbench.current.session":"當前會話數","dashboard.monitor.system":"系統監控","dashboard.monitor.performance":"性能監控","dashboard.monitor.network":"網絡監控","dashboard.monitor.server":"服務器狀態","dashboard.monitor.database":"數據庫狀態","dashboard.monitor.cache":"緩存狀態","dashboard.monitor.queue":"隊列狀態","dashboard.workplace.quick.start":"快速開始","dashboard.workplace.recent":"最近訪問","dashboard.workplace.todo":"待辦事項","dashboard.workplace.announcement":"系統公告","dashboard.workplace.calendar":"工作日曆","dashboard.workplace.links":"常用鏈接","dashboard.message.all":"全部消息","dashboard.message.unread":"未讀消息","dashboard.message.system":"系統消息","dashboard.message.business":"業務消息","dashboard.message.operation":"運營消息","dashboard.monitor.title":"實時監控","dashboard.monitor.online.status":"在線狀態","dashboard.monitor.conversation.status":"會話狀態","dashboard.monitor.queue.status":"排隊狀態","dashboard.monitor.system.status":"系統狀態","dashboard.monitor.refresh":"刷新","dashboard.monitor.auto.refresh":"自動刷新","dashboard.analysis.title":"數據分析","dashboard.analysis.conversation.trend":"會話趨勢","dashboard.analysis.customer.trend":"客戶趨勢","dashboard.analysis.ticket.trend":"工單趨勢","dashboard.analysis.satisfaction.trend":"滿意度趨勢","dashboard.analysis.time.range":"時間範圍","dashboard.analysis.export":"導出數據","dashboard.workplace.title":"工作台","dashboard.workplace.my.conversations":"我的會話","dashboard.workplace.my.tickets":"我的工單","dashboard.workplace.my.tasks":"我的任務","dashboard.workplace.my.performance":"我的績效","dashboard.workplace.quick.actions":"快捷操作","dashboard.workplace.announcements":"公告通知","dashboard.report.title":"統計報表","dashboard.report.conversation":"會話報表","dashboard.report.customer":"客戶報表","dashboard.report.ticket":"工單報表","dashboard.report.agent":"客服報表","dashboard.report.satisfaction":"滿意度報表","dashboard.report.export":"導出報表","dashboard.chart.today":"今日","dashboard.chart.yesterday":"昨日","dashboard.chart.last7days":"最近7天","dashboard.chart.last30days":"最近30天","dashboard.chart.thisMonth":"本月","dashboard.chart.lastMonth":"上月","dashboard.chart.custom":"自定義","dashboard.chart.loading":"加載中...","dashboard.chart.no.data":"暫無數據","dashboard.tip.refresh.success":"刷新成功","dashboard.tip.refresh.failed":"刷新失敗","dashboard.tip.export.success":"導出成功","dashboard.tip.export.failed":"導出失敗","dashboard.tip.data.loading":"數據加載中...","dashboard.tip.data.load.failed":"數據加載失敗"},mtn={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.all":"全部","i18n.queue.tip":"排隊隊列","i18n.queue.message.template":"當前排隊人數:{0},大約等待時間:{1} 分鐘","i18n.queue.empty":"隊列為空","i18n.queue.accept":"接入","i18n.system.notification":"系統通知","i18n.system.notification.tip":"系統通知","i18n.old.password.wrong":"舊密碼錯誤","i18n.change.password":"修改密碼","i18n.auth.captcha.send.success":"驗證碼發送成功","i18n.auth.captcha.error":"驗證碼錯誤","i18n.auth.captcha.expired":"驗證碼過期","i18n.auth.captcha.already.send":"驗證碼已發送,請等待","i18n.auth.captcha.validate.failed":"驗證碼驗證失敗","i18n.faq":"常見問題","i18n.rate":"評價","i18n.input.placeholder":"請輸入內容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在輸入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀請評價","i18n.ticket":"[工單]","i18n.ticket.thread":"[工單會話]","i18n.notice":"通知","i18n.notice.title":"通知標題","i18n.notice.content":"通知內容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.login_notification":"登錄通知","i18n.login_time":"登錄時間","i18n.login_ip":"登錄IP","i18n.login_location":"登錄地點","i18n.if_not_you_please_change_password":"如果這不是您的操作,請立即修改密碼。","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理員","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技術部","i18n.DEPT.MONEY":"財務部","i18n.DEPT.MARKETING":"市場部","i18n.DEPT.SALES":"銷售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"圖片","i18n.thread.content.file":"文件","i18n.top.tip":"默認置顶語","i18n.top.make":"置頂","i18n.top.cancel":"取消置頂","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开-456","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"無客服在線,請留言","i18n.welcome.tip":"您好,有什麼可以幫您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"開發中...","i18n.user.description":"默認用戶描述","i18n.robot.nickname":"默認機器人","i18n.robot.description":"默認機器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一個聰明、對人類有幫助的人工智能,你可以對人類提出的問題給出有用、詳細、禮貌的回答","i18n.agent.nickname":"默認客服","i18n.agent.description":"默認客服描述","i18n.workgroup.nickname":"預設技能組","i18n.workgroup.before.nickname":"售前技能組","i18n.workgroup.after.nickname":"售后技能組","i18n.workgroup.description":"預設技能組描述","i18n.workgroup.description.before":"售前技能組描述","i18n.workgroup.description.after":"售后技能組描述","i18n.contact":"詢問聯繫方式","i18n.thanks":"感謝","i18n.welcome":"問候","i18n.bye":"告別","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开-456","i18n.tip.network.connected":"网络已连接-456","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的話請您提供一下您的聯繫電話","i18n.contact.content":"方便的話請您提供一下您的聯繫電話,我電話給您溝通一下,這樣更加直觀","i18n.thanks.title":"感謝光臨","i18n.thanks.content":"感謝光臨,歡迎再來","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什麼可以幫您的","i18n.bye.title":"您的滿意一直是我們的目標","i18n.bye.content":"您的滿意一直是我們的目標,如果有任何疑問歡迎您隨時聯繫","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"常見問題分類Demo1","i18n.faq.category.demo.2":"常見問題分類Demo2","i18n.faq.demo.title.1":"常見問題文字Demo1","i18n.faq.demo.content.1":"常見問題文字Demo1","i18n.faq.demo.title.2":"常見問題圖片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.content.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.title.2":"快捷按鈕連結Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"預覽","i18n.cancel":"取消","i18n.confirm":"確定","i18n.send":"發送","i18n.transferToAgent":"轉人工服務","i18n.auto.closed":"會話自動關閉","i18n.agent.closed":"客服關閉會話","i18n.online.chat":"在線客服","i18n.JOB":"工作","i18n.LANGUAGE":"語言","i18n.TOOL":"工具","i18n.WRITING":"寫作","i18n.RAG":"知識庫問答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工單","i18n.black.user.already.exists":"用戶已拉黑","i18n.ticket.category.technical_support":"技術支持","i18n.ticket.category.service_request":"服務請求","i18n.ticket.category.consultation":"咨詢","i18n.ticket.category.complaint_suggestion":"投訴建議","i18n.ticket.category.operation_maintenance":"運維","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP組件, 聯繫我們了解更多詳情","i18n.vip.contactUs":"聯繫我們","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html","i18n.ticket.process.name.group":"技能組流程","i18n.ticket.process.name.group.simple":"技能組簡易流程","i18n.ticket.process.name.agent":"一對一流程","i18n.username.or.password.incorrect":"用戶名或密碼不正確","i18n.system_notification":"系統通知","i18n.transfer_notification":"會話轉接請求","i18n.transfer_accepted":"會話轉接已接受","i18n.transfer_rejected":"會話轉接已拒絕","i18n.transfer_timeout":"會話轉接請求超時","i18n.transfer_cancelled":"會話轉接已取消","i18n.confirm_accept_transfer":"确定接受转接","i18n.confirm_accept_transfer_desc":"确定接受转接请求吗?","i18n.confirm_reject_transfer":"确定拒绝转接","i18n.confirm_reject_transfer_desc":"确定拒绝转接请求吗?","i18n.confirm_cancel_transfer":"确定取消转接","i18n.confirm_cancel_transfer_desc":"确定取消转接请求吗?","i18n.transfer.notice.title":"会话转接","i18n.transfer.notice.content":"客服希望将您的会话转接给其他客服","i18n.transfer.accept.notice.title":"转接已接受","i18n.transfer.accept.notice.content":"会话转接请求已被接受","i18n.transfer.reject.notice.title":"转接已拒绝","i18n.transfer.reject.notice.content":"会话转接请求已被拒绝","i18n.transfer.timeout.notice.title":"转接已超时","i18n.transfer.timeout.notice.content":"会话转接请求已超时","i18n.transfer.cancel.notice.title":"转接已取消","i18n.transfer.cancel.notice.content":"会话转接请求已取消","i18n.already.in.transfer.pending.state":"会话已处于转接等待状态","i18n.already.in.transfer.accepted.state":"会话已处于转接接受状态","i18n.already.in.transfer.rejected.state":"会话已处于转接拒绝状态","i18n.already.in.transfer.timeout.state":"会话已处于转接超时状态","i18n.already.in.transfer.canceled.state":"会话已处于转接取消状态","i18n.invite_notification":"邀請請求","i18n.invite_accepted":"邀請已接受","i18n.invite_rejected":"邀請已拒絕","i18n.invite_timeout":"邀請請求超時","i18n.invite_cancelled":"邀請已取消","i18n.confirm_accept_invite":"确定接受邀请","i18n.confirm_accept_invite_desc":"确定接受邀请请求吗?","i18n.confirm_reject_invite":"确定拒绝邀请","i18n.confirm_reject_invite_desc":"确定拒绝邀请请求吗?","i18n.visitor_invite_notification":"訪客邀請","i18n.visitor_invite_accepted":"訪客邀請已接受","i18n.visitor_invite_rejected":"訪客邀請已拒絕","i18n.visitor_invite_timeout":"訪客邀請超時","i18n.visitor_invite_cancelled":"訪客邀請已取消","i18n.group_invite_notification":"群組邀請","i18n.group_invite_accepted":"群組邀請已接受","i18n.group_invite_rejected":"群組邀請已拒絕","i18n.group_invite_timeout":"群組邀請超時","i18n.group_invite_cancelled":"群組邀請已取消","i18n.kbase_invite_notification":"知識庫邀請","i18n.kbase_invite_accepted":"知識庫邀請已接受","i18n.kbase_invite_rejected":"知識庫邀請已拒絕","i18n.kbase_invite_timeout":"知識庫邀請超時","i18n.kbase_invite_cancelled":"知識庫邀請已取消","i18n.organization_invite_notification":"組織邀請","i18n.organization_invite_accepted":"組織邀請已接受","i18n.organization_invite_rejected":"組織邀請已拒絕","i18n.organization_invite_timeout":"組織邀請超時","i18n.organization_invite_cancelled":"組織邀請已取消","i18n.from":"來自","i18n.to":"至","i18n.note":"备注","i18n.status":"状态","i18n.time":"時間","i18n.inviter":"邀請人","i18n.invitee":"被邀請人","i18n.visitor":"訪客","i18n.group_name":"群組名稱","i18n.kbase_name":"知識庫名稱","i18n.organization_name":"組織名稱","i18n.auto.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.agent.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.accept":"接受","i18n.reject":"拒絕","i18n.user.signup.first":"請先註冊","i18n.email.signup.first":"請先驗證郵箱","i18n.mobile.signup.first":"請先驗證手機號","i18n.resource.not.found":"資源未找到","i18n.user.disabled":"用戶已被禁用","i18n.forbidden.access":"禁止訪問","i18n.user.blocked":"用戶已被封禁","i18n.sensitive.content":"檢測到敏感內容","i18n.message.processing.failed":"訊息處理失敗","i18n.null.pointer.exception":"空指針異常","i18n.response.status.exception":"響應狀態異常","i18n.websocket.timeout.exception":"WebSocket超時異常","i18n.http.method.not.supported":"不支持的HTTP方法","i18n.authorization.denied":"授權被拒絕","i18n.request.rejected":"請求被拒絕","i18n.entity.not.found":"實體未找到","i18n.internal.server.error":"伺服器內部錯誤"},gtn={"message.type.text":"文本消息","message.type.image":"圖片消息","message.type.file":"文件消息","message.type.voice":"語音消息","message.type.video":"視頻消息","message.type.location":"位置消息","message.type.link":"鏈接消息","message.type.card":"卡片消息","message.type.system":"系統消息","message.type.notification":"通知消息","message.type.custom":"自定義消息","message.status.sending":"發送中","message.status.sent":"已發送","message.status.delivered":"已送達","message.status.read":"已讀","message.status.failed":"發送失敗","message.status.recalled":"已撤回","message.status.deleted":"已刪除","quickreply.search.placeholder":"搜索","quickreply.button.send":"發送","quickreply.button.copy":"複製","quickreply.button.create.category":"創建分類","quickreply.button.create.reply":"創建快捷回復","quickreply.copy.success":"{content} 已複製到剪貼板","category.form.edit.title":"編輯分類","category.form.create.title":"創建分類","category.form.name":"分類名稱","category.form.name.required":"請輸入分類名稱!","category.form.name.placeholder":"輸入分類名稱","category.create.failed":"創建分類失敗","quickreply.drawer.title":"{isEdit, select, true {編輯快捷回復} other {新建快捷回復}}","quickreply.form.category":"分類","quickreply.form.category.required":"請選擇分類","quickreply.form.category.placeholder":"選擇分類","quickreply.form.type":"類型","quickreply.form.type.required":"請選擇類型","quickreply.form.type.placeholder":"選擇類型","quickreply.form.title":"標題","quickreply.form.title.required":"請輸入標題","quickreply.form.content":"內容","quickreply.type.text":"文本","quickreply.type.image":"圖片","quickreply.type.video":"視頻","quickreply.type.audio":"音頻","quickreply.type.file":"文件","quickreply.upload.text":"點擊或拖拽文件上傳","quickreply.upload.success":"{filename} 上傳成功","quickreply.upload.error":"{filename} 上傳失敗","quickreply.upload.uploading":"{filename} 上傳中","quickreply.form.validate.error":"請檢查表單","message.action.send":"發送","message.action.recall":"撤回","message.action.delete":"刪除","message.action.resend":"重新發送","message.action.forward":"轉發","message.action.quote":"引用","message.action.copy":"複製","message.action.translate":"翻譯","message.action.download":"下載","message.action.preview":"預覽","message.tip.sending":"消息發送中...","message.tip.sent":"消息已發送","message.tip.delivered":"消息已送達","message.tip.read":"消息已讀","message.tip.failed":"消息發送失敗","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已刪除","message.tip.copy.success":"複製成功","message.tip.download.start":"開始下載...","message.tip.download.success":"下載成功","message.tip.download.failed":"下載失敗","message.input.placeholder":"請輸入消息","message.input.send.button":"發送","message.input.emoji.button":"表情","message.input.image.button":"圖片","message.input.file.button":"文件","message.input.voice.button":"語音","message.input.video.button":"視頻","message.input.location.button":"位置","message.list.load.more":"加載更多","message.list.loading":"加載中...","message.list.no.more":"沒有更多消息","message.list.empty":"暫無消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相關消息","message.time.just":"剛剛","message.time.minutes":"{count}分鐘前","message.time.hours":"{count}小時前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}個月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超過 {size}","message.file.type.unsupported":"不支持的文件類型","message.file.uploading":"上傳中...","message.file.download":"下載文件","message.file.preview":"預覽文件","message.image.loading":"圖片加載中","message.image.load.error":"圖片加載失敗","message.image.save":"保存圖片","message.image.save.success":"圖片保存成功","message.image.save.failed":"圖片保存失敗"},vtn={"profile.update.success":"個人信息更新成功","profile.form.avatar":"頭像","profile.form.upload":"上傳","profile.form.username":"用戶名","profile.form.nickname":"暱稱","profile.form.description":"描述","profile.button.change.password":"修改密碼","profile.button.change.email":"修改郵箱","profile.button.change.mobile":"修改手機號","profile.email.verified":"郵箱已驗證","profile.email.unverified":"郵箱未驗證","profile.mobile.verified":"手機已驗證","profile.mobile.unverified":"手機未驗證","profile.email.change.title":"修改郵箱","profile.email.placeholder":"請輸入郵箱地址","profile.email.required":"請輸入郵箱地址!","profile.email.format.invalid":"郵箱格式不正確","profile.email.length.limit":"郵箱不得超過50字符","profile.email.verification.code.placeholder":"請輸入驗證碼","profile.email.verification.code.countdown":"秒後重新獲取","profile.email.verification.code.get":"獲取驗證碼","profile.email.verification.code.required":"請輸入驗證碼!","profile.email.not.changed":"郵箱未更改!","profile.email.change.success":"郵箱修改成功!","profile.email.format.error":"郵箱格式錯誤","profile.mobile.change.title":"修改手機號","profile.mobile.placeholder":"請輸入手機號","profile.mobile.required":"請輸入手機號!","profile.mobile.format.invalid":"手機號格式錯誤!","profile.mobile.verification.code.placeholder":"請輸入驗證碼","profile.mobile.verification.code.countdown":"秒後重新獲取","profile.mobile.verification.code.get":"獲取驗證碼","profile.mobile.verification.code.required":"請輸入驗證碼!","profile.mobile.not.changed":"手機號未更改!","profile.mobile.change.success":"手機號修改成功!","profile.mobile.format.error":"手機號格式錯誤","profile.password.change.title":"修改密碼","profile.password.old":"原密碼","profile.password.old.empty":"手機號直接登錄用戶,可以留空","profile.password.new":"新密碼","profile.password.confirm":"確認密碼","profile.password.length.error":"密碼最小長度不能小於6","profile.password.mismatch":"兩次輸入密碼不一致","profile.password.change.success":"密碼修改成功!"},ytn={"setting.menu.title":"設置","setting.menu.profile":"個人信息","setting.menu.basic":"基本設置","setting.menu.agent":"客服設置","setting.menu.model":"大模型","setting.menu.certification":"實名認證","setting.menu.qrcode":"二維碼","setting.menu.shortcut":"快捷鍵","setting.menu.click":"菜單點擊","setting.save.success":"設置保存成功","setting.save.error":"設置保存失敗","setting.load.error":"設置加載失敗","setting.header.profile":"個人信息","setting.header.basic":"基本設置","setting.header.agent":"客服設置","setting.header.model":"大模型設置","setting.basic.sound.on":"已開啟消息提示音","setting.basic.sound.off":"已關閉消息提示音","setting.basic.notification.on":"已開啟網絡狀態通知","setting.basic.notification.off":"已關閉網絡狀態通知","setting.basic.connection.status":"長鏈接狀態:","setting.basic.connection.connected":"✅連接正常","setting.basic.connection.disconnected":"❌連接斷開","setting.basic.startup":"開機啟動:","setting.basic.startup.on":"開機啟動","setting.basic.startup.off":"不開機啟動","setting.basic.theme":"顏色主題:","setting.basic.language":"語言設置:","setting.basic.mode":"模式設置:","setting.basic.mode.team":"團隊模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"個人模式"},btn={"thread.error.message":"獲取數據失敗","thread.feature.unavailable":"TODO: 該功能暫未開放","thread.menu.top":"置頂","thread.menu.untop":"取消置頂","thread.menu.read":"標記已讀","thread.menu.unread":"標記未讀","thread.menu.mute":"靜音","thread.menu.unmute":"取消靜音","thread.menu.transfer":"轉接","thread.menu.block":"拉黑","thread.menu.remark":"備註","thread.menu.ticket":"創建工單","thread.menu.crm":"查看CRM","thread.menu.summary":"會話總結","thread.menu.filter":"會話過濾","thread.menu.groupThread":"群聊會話","thread.menu.robotThread":"機器人會話","thread.menu.workgroupThread":"工作組會話","thread.menu.agentThread":"一對一會話","thread.menu.ticketThread":"工單會話","thread.menu.memberThread":"成員會話","thread.menu.deviceThread":"設備會話","thread.menu.systemThread":"系統會話","thread.status.robot":"[機器人]","thread.status.agent":"[一對一]","thread.status.workgroup":"[工作組]","thread.search.placeholder":"搜索會話...","thread.dropdown.create.group":"創建群聊","thread.dropdown.create.ai":"創建AI對話","thread.agent.status.online":"😀 - 在線接待","thread.agent.status.offline":"🔻 - 客服下線","thread.agent.status.busy":"🏃‍♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 鬆開刷新","thread.list.no.more":"沒有更多了","thread.coming.soon":"即將上線,敬請期待","thread.set.success":"設置成功","thread.set.error":"設置失敗","thread.menu.star":"星標","thread.menu.star.1":"星標1","thread.menu.star.2":"星標2","thread.menu.star.3":"星標3","thread.menu.star.4":"星標4","thread.menu.hide":"隱藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下線","thread.status.busy":"🏃‍♀️忙碌","thread.status.loading":"加載中...","thread.status.empty":"暫無會話","thread.status.error":"加載會話失敗","thread.status.queue":"排隊({count})","thread.status.network.offline":"網絡已斷開","thread.status.network.online":"網絡已連接","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暫無消息","thread.status.message.error":"加載消息失敗","thread.status.message.end":"沒有更多消息","thread.status.message.typing":"正在輸入...","thread.status.message.transfer":"轉接中...","thread.status.message.transferred":"已轉接","thread.status.message.closed":"會話已關閉","thread.menu.star.cancel":"取消星標","thread.loading.more":"加載更多..."},wtn={"ticket.create.title":"創建工單","ticket.edit.title":"編輯工單","ticket.form.uid":"編號","ticket.form.title":"標題","ticket.form.title.required":"請輸入工單標題","ticket.form.title.placeholder":"請輸入工單標題","ticket.form.description":"描述","ticket.form.description.required":"請輸入工單描述","ticket.form.description.placeholder":"請輸入工單描述","ticket.form.status":"狀態","ticket.form.status.required":"請選擇工單狀態","ticket.form.priority":"優先級","ticket.form.priority.required":"請選擇優先級","ticket.form.category":"分類","ticket.form.category.required":"請選擇工單分類","ticket.form.category.placeholder":"請選擇工單分類","ticket.form.user":"客戶","ticket.form.user.placeholder":"請選擇客戶","ticket.form.assignee":"處理人","ticket.form.assignee.placeholder":"請選擇處理人","ticket.form.reporter":"報告人","ticket.form.reporter.placeholder":"請選擇報告人","ticket.form.workgroup":"技能組","ticket.form.workgroup.required":"請選擇技能組","ticket.form.workgroup.placeholder":"請選擇技能組","ticket.workgroup.load.error":"加載技能組失敗","ticket.status.all":"全部狀態","ticket.status.new":"待认领","ticket.status.claimed":"已分配","ticket.status.unclaimed":"被退回","ticket.status.processing":"處理中","ticket.status.pending":"待處理","ticket.status.holding":"掛起","ticket.status.resumed":"恢復","ticket.status.reopened":"重新打開","ticket.status.resolved":"已解決","ticket.status.closed":"已關閉","ticket.status.cancelled":"已取消","ticket.status.label":"狀態","ticket.status.escalated":"已升級","ticket.priority.all":"全部優先級","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"緊急","ticket.priority.critical":"嚴重","ticket.create.success":"工單創建成功","ticket.create.failed":"工單創建失敗","ticket.update.success":"工單更新成功","ticket.update.failed":"工單更新失敗","ticket.submit.error":"工單提交失敗","ticket.delete.success":"工單刪除成功","ticket.delete.error":"工單刪除失敗","ticket.load.error":"工單數據加載失敗","ticket.messages.load.error":"工單消息加載失敗","ticket.message.send.error":"消息發送失敗","ticket.category.load.error":"分類加載失敗","ticket.submitting":"提交工单中...","ticket.list.title":"工單列表","ticket.list.empty":"暫無工單","ticket.list.search.placeholder":"搜索工單","ticket.list.create":"創建工單","ticket.list.total":"工單總數","ticket.action.edit":"編輯","ticket.action.delete":"刪除","ticket.action.assign":"分配","ticket.action.close":"關閉","ticket.action.reopen":"重新打開","ticket.action.verify":"驗證","ticket.action.verify.success":"驗證成功","ticket.delete.confirm":"確定要刪除此工單嗎?","ticket.action.invite":"邀請","ticket.conversation.title":"工單對話","ticket.conversation.empty":"請選擇工單查看對話","ticket.conversation.input.placeholder":"請輸入消息...","ticket.details.title":"工單詳情","ticket.details.empty":"請選擇工單查看詳情","ticket.category.technical_support":"技術支持","ticket.category.service_request":"服務請求","ticket.category.consultation":"咨詢","ticket.category.complaint_suggestion":"投訴建議","ticket.category.operation_maintenance":"運維","ticket.category.other":"其他","ticket.form.thread":"關聯會話","ticket.form.thread.placeholder":"選擇關聯會話","ticket.form.thread.none":"不關聯","ticket.form.createdAt":"創建時間","ticket.form.updatedAt":"更新時間","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能組","ticket.assignee":"處理人","ticket.reporter":"報告人","ticket.type":"類型","ticket.category":"分類","ticket.steps.title":"轉移過程","ticket.filter.by.status":"按狀態篩選","ticket.filter.by.priority":"按優先級篩選","ticket.filter.by.assignment":"按分配篩選","ticket.filter.by.time":"按時間篩選","ticket.filter.status_all":"全部狀態","ticket.filter.status_new":"待认领","ticket.filter.status_claimed":"已分配","ticket.filter.status_unclaimed":"被退回","ticket.filter.status_processing":"處理中","ticket.filter.status_pending":"待處理","ticket.filter.status_holding":"掛起","ticket.filter.status_resumed":"恢復","ticket.filter.status_reopened":"重新打開","ticket.filter.status_resolved":"已解決","ticket.filter.status_closed":"已關閉","ticket.filter.status_cancelled":"已取消","ticket.filter.priority_all":"全部優先級","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"緊急","ticket.filter.priority_critical":"嚴重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工單","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能組","ticket.filter.assignment_my_created":"我創建的","ticket.filter.assignment_my_assigned":"待我處理","ticket.filter.time_all":"全部時間","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本週","ticket.filter.time_last_week":"上週","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工單","ticket.content.number":"編號","ticket.delete.title":"刪除工單","ticket.delete.content":"確定要刪除此工單嗎?","ticket.delete.failed":"工單刪除失敗","ticket.loading":"加載工單...","ticket.empty":"暫無工單","ticket.form.process":"流程","ticket.form.process.placeholder":"選擇流程","ticket.process.load.error":"加載流程失敗","ticket.action.claim":"認領","ticket.action.claim.todo":"TODO: 認領工單","ticket.action.process":"開始處理","ticket.action.process.todo":"TODO: 開始處理工單","ticket.action.resolve":"解決","ticket.action.resolve.todo":"TODO: 解決工單","ticket.action.pending":"待處理","ticket.action.pending.todo":"TODO: 設置工單為待處理","ticket.action.hold":"掛起","ticket.action.hold.todo":"TODO: 設置工單為掛起","ticket.action.resume":"繼續處理","ticket.action.resume.todo":"TODO: 繼續處理工單","ticket.action.close.todo":"TODO: 關閉工單","ticket.action.reopen.todo":"TODO: 重新打開工單","ticket.action.escalate":"升級","ticket.action.escalate.todo":"TODO: 升級工單","ticket.action.unclaim":"退回","ticket.action.unclaim.todo":"TODO: 退回工單","ticket.action.claim.success":"工單認領成功","ticket.action.claim.confirm.title":"認領工單","ticket.action.claim.confirm.content":"確定要認領該工單嗎?","ticket.action.claim.loading":"認領中...","ticket.action.claim.error":"工單認領失敗","ticket.verify.title":"驗證工單","ticket.verify.content":"請驗證此工單","ticket.verify.pass":"通過","ticket.verify.reject":"不通過","ticket.verify.success":"工單驗證通過","ticket.verify.reject.success":"工單驗證未通過","ticket.verify.error":"工單驗證失敗","ticket.verify.later":"稍後決定"},xtn={"contact.list.new":"新朋友","contact.list.device":"內網設備","contact.list.group":"群聊","contact.list.channel":"頻道","contact.list.company":"企業聯繫人","contact.list.friend":"聯繫人","contact.search.placeholder":"搜索聯繫人...","contact.manager.button":"通訊錄管理","contact.manager.coming":"敬請期待","member.detail.nickname":"暱稱","member.detail.jobno":"工號","member.detail.seatno":"座位號","member.detail.telephone":"電話","member.detail.loading":"加載中...","member.detail.chat.button":"開始聊天"},Stn={"group.create.title":"發起群聊","group.create.contacts":"好友","group.create.members":"群成員","group.create.members.min":"至少選擇2名成員","group.create.creating":"創建群組中...","group.create.org.empty":"未選擇組織","group.create.success":"創建群組成功","group.create.failed":"創建群組失敗","group.create.loading":"加載成員中...","group.create.error":"加載成員失敗"},Ctn={"robot.list.add":"添加智能體","robot.list.loading":"加載中","robot.list.delete.confirm":"刪除【{name}】?","robot.list.deleting":"刪除中","robot.list.delete.success":"刪除成功","robot.list.update.success":"更新成功","robot.list.create.success":"創建成功","robot.list.chat":"對話","robot.list.edit":"編輯","robot.list.delete":"刪除","robot.list.create":"創建"},_tn={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},ktn={"upload.modal.title":"上傳文件","upload.drag.text":"點擊或拖拽文件至此處上傳","upload.drag.hint":"支持單個或批量上傳","upload.uploading":"{filename} 上傳中...","upload.success":"{filename} 上傳成功","upload.failed":"{filename} 上傳失敗","upload.delete.confirm":"確定要刪除此文件嗎?","upload.preview.image":"圖片預覽","upload.preview.file":"文件預覽","upload.button.ok":"確定","upload.button.cancel":"取消","upload.maxCount":"最多只能上傳 {maxCount} 個文件","upload.maxSize":"文件大小不能超過 {maxSize}MB"},Etn={"welcome.modal.title":"未發現所在組織","welcome.modal.description":"您需要創建或加入已有組織","welcome.modal.join":"加入已有組織(即將上線)","welcome.modal.create":"創建組織","welcome.modal.input.placeholder":"請輸入組織名稱","welcome.message.org.required":"請創建或加入組織","welcome.message.create.success":"創建組織成功","welcome.message.create.failed":"創建組織失敗","welcome.message.verify.email":"請先驗證郵箱","welcome.message.verify.mobile":"請先驗證手機號","welcome.message.org.name.required":"請輸入組織名稱","welcome.message.org.creating":"創建組織中,請稍後...","welcome.verify.modal.title":"賬號驗證提示","welcome.verify.modal.description":"您的郵箱和手機號尚未驗證,為保障賬號安全,建議您儘快完成驗證。","welcome.verify.now":"立即驗證","welcome.verify.later":"稍後驗證"},$tn={...ctn,...utn,...dtn,...ftn,...ptn,...htn,...mtn,...stn,...gtn,...ltn,...vtn,...ytn,...btn,...wtn,...otn,...xtn,...Stn,...Ctn,..._tn,...ktn,...Etn},Mtn={"app.title":"Bytedesk","app.logout":"Logout","app.copyright.produced":"Produced by Bytedesk.com","app.preview.down.block":"Download this page to your local project","app.welcome.link.fetch-blocks":"Get all block","app.welcome.link.block-list":"Quickly build standard, pages based on `block` development","footbar.network.normal":"Network Normal","footbar.network.disconnected":"Network Disconnected","footbar.anonymous.tip":"Anonymous mode, only supports communication between online devices in the same LAN","footbar.login.tip":"After login, supports offline messages and more features","footbar.login.skip":"Skip Login","footbar.anonymous.status":"Anonymous","footbar.login":"Login","footbar.logout":"Logout","footbar.logout.title":"Logout","footbar.logout.confirm":"Are you sure to logout?","footbar.serving.count":"Current serving count","footbar.serving.text":"Current serving: 0","category.form.title":"New Category","category.form.name":"category name","category.form.name.required":"please enter category name!"},Ttn={"common.confirm":"Confirm","common.cancel":"Cancel","navBar.lang":"Languages","layout.user.link.help":"Help","layout.user.link.privacy":"Privacy","layout.user.link.terms":"Terms","theme.light":"Light","theme.dark":"Dark","theme.system":"System"},Ptn={"chat.copy.success":"Copy successful","chat.network.error":"Network connection failed, please check network","chat.thread.closing":"Ending conversation...","chat.thread.close.success":"Conversation ended successfully","chat.thread.close.confirm.title":"Are you sure to end the conversation?","chat.rate.invite.confirm.title":"Confirm to invite rating?","chat.menu.copy":"Copy","chat.menu.translate":"Translate","chat.menu.recall":"Recall","chat.menu.enlarge":"Enlarge","chat.menu.quickreply.add":"Add Quick Reply...","chat.menu.browser.open":"Open in Browser","chat.menu.forward":"Forward...","chat.menu.collect":"Collect","chat.menu.quote":"Quote","chat.menu.ai":"Ask AI","chat.menu.quickreply.search":"Search Kbase","chat.translation.placeholder":"Please enter translation content...","chat.input.placeholder":"Please enter content, Ctrl+V to paste screenshot/image","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.screenshot":"Screenshot","chat.toolbar.autoreply":"Auto Reply","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Video Call","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.invite.rate":"Invite Rating","chat.navbar.transfer":"Transfer","chat.navbar.close":"End","chat.navbar.note":"Notebase","chat.navbar.kbase":"Knowledge Base","chat.right.quickreply":"Quick Reply","chat.right.userinfo":"User Info","chat.right.ai":"Copilot","chat.right.ticket":"Ticket","chat.right.llm":"LLM","chat.right.group":"Group Info","chat.right.member":"Member Info","chat.right.docview":"Doc View","chat.group.notice":"Notice","chat.group.members":"Members","chat.group.admins":"Admins","chat.group.robots":"Robots","chat.group.qrcode":"QR Code","chat.group.uid.error":"Group ID error","chat.header.group.unnamed":"Unnamed Group","chat.header.member.unnamed":"Unnamed Member","chat.header.robot.unnamed":"Unnamed Robot","chat.header.user.unnamed":"Unnamed User","chat.header.typing":"Typing...","chat.header.no.message":"No messages yet","chat.header.action.transfer":"Transfer","chat.header.action.invite":"Invite","chat.header.action.create.ticket":"Create Ticket","chat.header.action.close":"Close","chat.header.action.exit":"Exit","chat.header.type.not.supported":"Current chat type not supported"},Otn={"dashboard.error.message":"Failed to get data","dashboard.init.organization":"Initializing organization","dashboard.init.profile":"Initializing profile","dashboard.init.workgroups":"Initializing workgroups","dashboard.init.agent":"Initializing agent profile","dashboard.transfer.accept":"{nickname} has accepted the transfer","dashboard.transfer.reject":"{nickname} has rejected the transfer","dashboard.transfer.success":"Transfer request sent successfully, waiting for response"},Itn={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"Chat","menu.dashboard.contact":"Contact","menu.dashboard.ai":"AI Assistant","menu.dashboard.note":"Notebase","menu.dashboard.kbase":"Knowledge","menu.dashboard.mine":"Settings","menu.dashboard.queue":"Queue","menu.dashboard.ticket":"Tickets","menu.dashboard.leavemsg":"Messages","menu.dashboard.visitor":"Visitors","menu.dashboard.monitor":"Monitor","menu.dashboard.plugins":"Plugins","menu.dashboard.quality":"Quality","menu.settings":"Settings","menu.settings.logout":"Logout","menu.agent.status":"Agent Status","menu.agent.status.available":"Available","menu.agent.status.rest":"Rest","menu.agent.status.offline":"Offline","menu.language":"Language","menu.mode":"Mode","menu.mode.team":"Team Mode","menu.mode.agent":"Agent Mode","menu.mode.personal":"Personal Mode","menu.agent.offline.warning":"Please end all ongoing conversations before going offline","menu.mode.personal.coming":"Coming soon..."},Rtn={"profile.update.success":"Profile updated successfully","profile.form.avatar":"Avatar","profile.form.upload":"Upload","profile.form.username":"Username","profile.form.nickname":"Nickname","profile.form.description":"Description","profile.button.change.password":"Change Password","profile.button.change.email":"Change Email","profile.button.change.mobile":"Change Mobile","profile.email.verified":"Email Verified","profile.email.unverified":"Email Unverified","profile.mobile.verified":"Mobile Verified","profile.mobile.unverified":"Mobile Unverified","profile.email.change.title":"Change Email","profile.email.placeholder":"Enter email address","profile.email.required":"Please enter email address!","profile.email.format.invalid":"Invalid email format","profile.email.length.limit":"Email cannot exceed 50 characters","profile.email.verification.code.placeholder":"Enter verification code","profile.email.verification.code.countdown":"seconds","profile.email.verification.code.get":"Get Code","profile.email.verification.code.required":"Please enter verification code!","profile.email.not.changed":"Email is not changed!","profile.email.change.success":"Email changed successfully!","profile.email.format.error":"Invalid email format","profile.mobile.change.title":"Change Mobile","profile.mobile.placeholder":"Enter mobile number","profile.mobile.required":"Please enter mobile number!","profile.mobile.format.invalid":"Invalid mobile format","profile.mobile.verification.code.placeholder":"Enter verification code","profile.mobile.verification.code.countdown":"seconds","profile.mobile.verification.code.get":"Get Code","profile.mobile.verification.code.required":"Please enter verification code!","profile.mobile.not.changed":"Mobile number is not changed!","profile.mobile.change.success":"Mobile number changed successfully!","profile.mobile.format.error":"Invalid mobile format","profile.password.change.title":"Change Password","profile.password.old":"Old Password","profile.password.old.empty":"Old password can be empty for phone login users","profile.password.new":"New Password","profile.password.confirm":"Confirm Password","profile.password.length.error":"Password must be at least 6 characters","profile.password.mismatch":"The two passwords do not match","profile.password.change.success":"Password changed successfully!"},jtn={"setting.menu.title":"Settings","setting.menu.profile":"Profile","setting.menu.basic":"Basic Settings","setting.menu.agent":"Agent Settings","setting.menu.model":"AI Model","setting.menu.certification":"Certification","setting.menu.qrcode":"QR Code","setting.menu.shortcut":"Shortcuts","setting.menu.click":"Menu clicked","setting.save.success":"Settings saved successfully","setting.save.error":"Failed to save settings","setting.load.error":"Failed to load settings","setting.header.profile":"Personal Profile","setting.header.basic":"Basic Settings","setting.header.agent":"Agent Settings","setting.header.model":"AI Model Settings","setting.basic.sound.on":"Message Sound On","setting.basic.sound.off":"Message Sound Off","setting.basic.notification.on":"Network Status Notification On","setting.basic.notification.off":"Network Status Notification Off","setting.basic.connection.status":"Connection Status:","setting.basic.connection.connected":"✅Connected","setting.basic.connection.disconnected":"❌Disconnected","setting.basic.startup":"Start on Boot:","setting.basic.startup.on":"Enable","setting.basic.startup.off":"Disable","setting.basic.theme":"Theme:","setting.basic.language":"Language:","setting.basic.mode":"Mode:","setting.basic.mode.team":"Team Mode","setting.basic.mode.agent":"Agent Mode","setting.basic.mode.personal":"Personal Mode"},Ntn={"ticket.create.title":"Create Ticket","ticket.edit.title":"Edit Ticket","ticket.form.uid":"UID","ticket.form.title":"Title","ticket.form.title.required":"Please enter ticket title","ticket.form.title.placeholder":"Enter ticket title","ticket.form.description":"Description","ticket.form.description.required":"Please enter ticket description","ticket.form.description.placeholder":"Enter ticket description","ticket.form.status":"Status","ticket.form.status.required":"Please select ticket status","ticket.form.priority":"Priority","ticket.form.priority.required":"Please select priority","ticket.form.category":"Category","ticket.form.category.required":"Please select category","ticket.form.category.placeholder":"Select category","ticket.form.user":"Customer","ticket.form.user.placeholder":"Select customer","ticket.form.assignee":"Assignee","ticket.form.assignee.placeholder":"Select assignee","ticket.form.reporter":"Reporter","ticket.form.reporter.placeholder":"Select reporter","ticket.form.workgroup":"Workgroup","ticket.form.workgroup.required":"Please select workgroup","ticket.form.workgroup.placeholder":"Select workgroup","ticket.form.thread":"Related Conversation","ticket.form.thread.placeholder":"Select related conversation","ticket.form.thread.none":"No Association","ticket.create.success":"Ticket created successfully","ticket.create.failed":"Failed to create ticket","ticket.update.success":"Ticket updated successfully","ticket.update.failed":"Failed to update ticket","ticket.submit.error":"Failed to submit ticket","ticket.delete.success":"Ticket deleted successfully","ticket.delete.error":"Failed to delete ticket","ticket.load.error":"Failed to load tickets","ticket.messages.load.error":"Failed to load ticket messages","ticket.message.send.error":"Failed to send message","ticket.workgroup.load.error":"Failed to load workgroups","ticket.category.load.error":"Failed to load categories","ticket.submitting":"Ticket Submitting","ticket.list.title":"Tickets","ticket.list.empty":"No tickets found","ticket.list.search.placeholder":"Search tickets","ticket.list.create":"Create Ticket","ticket.list.total":"Total","ticket.action.edit":"Edit","ticket.action.delete":"Delete","ticket.action.assign":"Assign","ticket.action.close":"Close","ticket.action.reopen":"Reopen","ticket.action.verify":"Verify","ticket.action.verify.success":"Verify successfully","ticket.delete.confirm":"Are you sure to delete this ticket?","ticket.action.invite":"Invite","ticket.conversation.title":"Conversation","ticket.conversation.empty":"Select a ticket to view conversation","ticket.conversation.input.placeholder":"Type your message...","ticket.details.title":"Ticket Details","ticket.details.empty":"Select a ticket to view details","ticket.form.createdAt":"Created At","ticket.form.updatedAt":"Updated At","ticket.type.agent":"Agent","ticket.type.workgroup":"Workgroup","ticket.type":"Type","ticket.assignee":"Assignee","ticket.reporter":"Reporter","ticket.category":"Category","ticket.steps.title":"Processing Steps","ticket.form.upload.button":"Upload Attachments","ticket.upload.success":"File uploaded successfully","ticket.upload.failed":"File upload failed","ticket.current.filters":"Current Filters","ticket.filter.by.status":"Filter by Status","ticket.filter.by.priority":"Filter by Priority","ticket.filter.by.assignment":"Filter by Assignment","ticket.filter.by.time":"Filter by Time","ticket.filter.status_all":"All Status","ticket.filter.status_new":"Unassigned","ticket.filter.status_claimed":"Assigned","ticket.filter.status_unclaimed":"Unclaimed","ticket.filter.status_processing":"In Progress","ticket.filter.status_pending":"Pending","ticket.filter.status_holding":"On Hold","ticket.filter.status_resumed":"Resumed ","ticket.filter.status_reopened":"Reopened","ticket.filter.status_resolved":"Resolved","ticket.filter.status_closed":"Closed","ticket.filter.status_cancelled":"Cancelled","ticket.filter.priority_all":"All Priority","ticket.filter.priority_lowest":"Lowest","ticket.filter.priority_low":"Low","ticket.filter.priority_medium":"Medium","ticket.filter.priority_high":"High","ticket.filter.priority_urgent":"Urgent","ticket.filter.priority_critical":"Critical","ticket.filter.assignment_all":"All","ticket.filter.assignment_my_tickets":"My Tickets","ticket.filter.assignment_unassigned":"Unassigned","ticket.filter.assignment_my_workgroup":"My Workgroup","ticket.filter.assignment_my_created":"Created by Me","ticket.filter.assignment_my_assigned":"Assigned to Me","ticket.filter.time_all":"All Time","ticket.filter.time_today":"Today","ticket.filter.time_yesterday":"Yesterday","ticket.filter.time_this_week":"This Week","ticket.filter.time_last_week":"Last Week","ticket.filter.time_this_month":"This Month","ticket.filter.time_last_month":"Last Month","ticket.content.title":"Ticket","ticket.content.number":"No.","ticket.delete.title":"Delete Ticket","ticket.delete.content":"Are you sure you want to delete this ticket?","ticket.delete.failed":"Failed to delete ticket","ticket.loading":"Loading tickets...","ticket.empty":"No tickets found","ticket.form.process":"Process","ticket.form.process.placeholder":"Select process","ticket.process.load.error":"Failed to load processes","ticket.status.label":"Status","ticket.status.new":"Unassigned","ticket.status.claimed":"Assigned","ticket.status.unclaimed":"Unclaimed","ticket.status.processing":"In Progress","ticket.status.pending":"Pending","ticket.status.holding":"Holding","ticket.status.resumed":"Resumed","ticket.status.reopened":"Reopened","ticket.status.resolved":"Resolved","ticket.status.escalated":"Escalated","ticket.status.closed":"Closed","ticket.status.cancelled":"Cancelled","ticket.action.claim":"Claim","ticket.action.claim.todo":"TODO: Claim ticket","ticket.action.process":"Start Process","ticket.action.process.todo":"TODO: Start process ticket","ticket.action.resolve":"Resolve","ticket.action.resolve.todo":"TODO: Resolve ticket","ticket.action.pending":"Pending","ticket.action.pending.todo":"TODO: Set ticket to pending","ticket.action.hold":"Hold","ticket.action.hold.todo":"TODO: Set ticket to hold","ticket.action.resume":"Resume","ticket.action.resume.todo":"TODO: Resume ticket","ticket.action.close.todo":"TODO: Close ticket","ticket.action.reopen.todo":"TODO: Reopen ticket","ticket.action.escalate":"Escalate","ticket.action.escalate.todo":"TODO: Escalate ticket","ticket.action.unclaim":"Unclaim","ticket.action.unclaim.todo":"TODO: Unclaim ticket","ticket.action.claim.confirm.title":"Claim Ticket","ticket.action.claim.confirm.content":"Are you sure you want to claim this ticket?","ticket.action.claim.loading":"Claiming ticket...","ticket.action.claim.success":"Ticket claimed successfully","ticket.action.claim.error":"Failed to claim ticket","ticket.verify.title":"Verify Ticket","ticket.verify.content":"Please verify this ticket","ticket.verify.pass":"Pass","ticket.verify.reject":"Reject","ticket.verify.success":"Ticket verified successfully","ticket.verify.reject.success":"Ticket rejected successfully","ticket.verify.error":"Failed to verify ticket","ticket.verify.later":"Decide Later"},Atn={i18_file_assistant:"File Assistant",slogan:"Chat As A Service","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Webrtc","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.screenshot":"Screenshot","chat.toolbar.invite.rate":"InviteRate","chat.toolbar.autoreply":"AutoReply","chat.toolbar.autoreply.on":"AutoReply(On)","chat.navbar.transfer":"Transfer","chat.navbar.ticket":"Ticket","chat.navbar.crm":"Crm","chat.navbar.close":"Close","chat.navbar.category":"Category","chat.navbar.ai":"AI","chat.navbar.queue":"Queue","chat.right.ai":"Copilot","chat.right.quickreply":"QuickReply","chat.right.ticket":"Ticket","chat.right.userinfo":"UserInfo","chat.right.llm":"Llm","chat.right.docview":"DocView","chat.right.group":"Group","chat.right.member":"Member","chat.ai.summary":"Thread Summary","chat.ai.switch":"Switch","chat.thread.nomore":"No More","chat.message.loadmore":"Load More","dashboard.footbar.logout":"Logout",SERVICE:"Customer Service Robot",MARKETING:"Marketing Robot",KNOWLEDGEBASE:"Knowledgebase Robot",QA:"QA Robot",AGENT_ASSISTANT:"Agent Asistant",loading:"Loading",create:"Create",creating:"Creating","create.success":"Create success","create.fail":"Create fail",update:"Update",updating:"Updating","update.success":"Update success","update.fail":"Update fail",save:"Save",saving:"Saving",email:"Email","email.verified":"Email Verified","email.unverified":"Email Unverified",mobile:"Mobile","mobile.verified":"Mobile Verified","mobile.unverified":"Mobile Unverified",captcha:"Captcha",logging:"Logging","login.success":"Login Success","login.error":"Login Failed",registering:"Registering","register.success":"Register Success","register.error":"Register Failed","username.change.tip":"Username(should re login after changed)",createKb:"Create Knowledge Base",createDept:"Create Department",upload:"Upload",import:"Import",export:"Export","download.template":"Download Template",open:"Open",copy:"Copy","copy.success":"Copy success",ok:"OK",cancel:"Cancel",bind:"Bind",edit:"Edit",editing:"Editing","edit.success":"Edit success","edit.fail":"Edit fail",delete:"Delete",deleting:"Deleting",deleteTip:"Delete Tip",deleteAffirm:"Are u sure to delete","delete.success":"Delete success","delete.fail":"Delete fail","process.success":"Process success","process.fail":"Process fail",preview:"Preview",close:"Close",closing:"Closing",closeTip:"Close Tip",closeASure:"Are u sure to close","close.success":"Close success",choose:"Choose","leavemsg.enabled":"Leave Message Enabled",transfer:"Transfer","transfer.success":"Transfer success","transfer.fail":"Transfer fail","transfer.reason":"Transfer Reason",refresh:"Refresh",noAgent:"No Agent Available",invite:"Invite","invite.success":"Invite success","invite.fail":"Invite fail","invite.reason":"Invite Reason","invite.no.agent":"No Agent Available"},Dtn={"pages.login.title":"Bytedesk","pages.layouts.userLayout.title":"Chat As A Service","pages.login.accountLogin.tab":"Account Login","pages.login.accountLogin.errorMessage":"Incorrect username/password(admin/ant.design)","pages.login.failure":"Login failed, please try again!","pages.login.success":"Login successful!","pages.login.username.placeholder":"Email","pages.login.username.required":"Please input your username!","pages.login.password.placeholder":"Password","pages.login.repassword.placeholder":"RePassword","pages.login.password.required":"Please input your password!","pages.login.repassword.required":"Please input your password!","pages.login.phoneLogin.tab":"Phone Login","pages.login.phoneLogin.errorMessage":"Verification Code Error","pages.login.phoneNumber.placeholder":"Phone Number","pages.login.phoneNumber.required":"Please input your phone number!","pages.login.phoneNumber.invalid":"Phone number is invalid!","pages.login.captcha.placeholder":"Verification Code","pages.login.captcha.required":"Please input verification code!","pages.login.phoneLogin.getVerificationCode":"Get Code","pages.login.anonymousLogin":"Anonymous Login","pages.getCaptchaSecondText":"sec(s)","pages.login.scanLogin.tab":"Scan Login","pages.login.rememberMe":"Remember me","pages.login.forgotPassword":"Forgot Password ?","pages.login.submit":"Login","pages.login.loginWith":"Login with :","pages.login.register":"Register","pages.login.registerAccount":"Register Account","pages.login.auto.register":"Unregisterd Mobile will auto register","pages.welcome.link":"Welcome","pages.robot.new":"New","pages.robot.chat":"Chat","pages.robot.edit":"Edit","pages.robot.delete":"Delete","pages.robot.upload":"Upload","pages.robot.tab.basic":"Basic","pages.robot.tab.kb":"Knowledge Base","pages.robot.tab.channel":"Channel","pages.robot.tab.statistic":"Statistic","pages.robot.tab.advanced":"Advanced","pages.robot.tab.flow":"Flow","pages.robot.tab.avatar":"Avatar","pages.robot.tab.title":"Title","pages.robot.tab.welcomeTip":"welcomeTip","pages.robot.tab.description":"Description","pages.robot.tab.preview":"Preview","pages.robot.tab.website":"Website","pages.robot.tab.helpdesk":"Helpdesk","pages.robot.tab.icp":"ICP 17041763-1","pages.robot.tab.police":"44030502008688","pages.robot.kb.file":"File","pages.robot.kb.text":"Text","pages.robot.kb.qa":"Q&A","pages.robot.kb.web":"Website","pages.robot.file.title":"Title","pages.robot.file.content":"Content","pages.robot.file.type":"Type","pages.robot.file.size":"Size","pages.robot.file.action":"Action","pages.robot.file.delete":"Delete","pages.robot.file.save":"Save","pages.robot.file.cancel":"Cancel","pages.robot.file.uploading":"Uploading...","pages.robot.file.name_invalid":"File name should not contain _","pages.robot.file.parse":"Parse File Content","pages.setting":"Settings","pages.logout":"Logout","pages.footer.website":"Bytedesk","pages.footer.helpcenter":"help","pages.login.remember":"remember me","pages.agent.tab.basic":"Basic","pages.agent.robot":"Robot","pages.agent.service.settings":"Service Settings","pages.agent.service.settings.topTip":"Top Tip","pages.agent.service.settings.welcomeTip":"Welcome Tip","pages.agent.service.settings.leavemsgTip":"Leavemsg Tip","pages.agent.service.settings.autoCloseMin":"Auto Close Min","pages.agent.service.settings.showLogo":"Show Logo","pages.agent.service.settings.maxThreadCount":"Max Thread Count","pages.advanced.faq":"FAQ","pages.advanced.quickButton":"Quick Buttons","pages.advanced.faqGuess":"Smart Suggestions","pages.advanced.faqHot":"Hot Questions","pages.advanced.faqShortcut":"Quick Replies","pages.advanced.rate":"Satisfaction Rating","pages.advanced.autoreply":"Auto Reply","pages.advanced.leaveMsg":"Leave Message","pages.advanced.survey":"Survey","pages.advanced.history":"History","pages.advanced.inputAssociation":"Input Association","pages.advanced.antiHarassment":"Captcha Settings","pages.advanced.captcha":"Captcha Settings","pages.advanced.showPreForm":"Show PreForm","pages.advanced.showHistory":"Show History","pages.advanced.showInputAssociation":"Show Input Association","pages.advanced.showCaptcha":"Show Captcha","pages.login.country.placeholder":"Select Country/Region","pages.login.country.china":"China","pages.login.country.hongkong":"Hong Kong","pages.login.country.taiwan":"Taiwan","pages.login.country.macao":"Macao","pages.login.country.japan":"Japan","pages.login.country.korea":"Korea","pages.login.country.usa":"United States","pages.login.country.canada":"Canada","pages.login.country.uk":"United Kingdom","pages.login.country.germany":"Germany","pages.login.country.france":"France","pages.login.country.australia":"Australia","pages.login.country.singapore":"Singapore","pages.login.country.malaysia":"Malaysia","pages.login.country.thailand":"Thailand","pages.login.country.vietnam":"Vietnam","pages.login.country.philippines":"Philippines","pages.login.country.indonesia":"Indonesia","pages.login.country.italy":"Italy","pages.login.country.spain":"Spain","pages.login.country.russia":"Russia","pages.login.country.newzealand":"New Zealand","pages.anonymous.title":"Anonymous Mode","pages.anonymous.home":"Home","pages.anonymous.contact":"Contacts","pages.anonymous.robot":"Robot","pages.anonymous.setting":"Settings","pages.anonymous.welcome":"Welcome to Anonymous Mode","pages.anonymous.description":"You can use system features anonymously in this mode","block.title":"Block Settings","block.type":"Block Type","block.user":"Block User","block.ip":"Block IP","block.permanent":"Permanent Block","block.until":"Block Until","block.until.required":"Please select block end time"},Ftn={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.all":"All","i18n.queue.tip":"Queue","i18n.queue.message.template":"Current Queuing: {0} people, Wait {1} minutes","i18n.queue.empty":"Queue empty","i18n.queue.accept":"accept","i18n.system.notification":"System Notification","i18n.old.password.wrong":"Old password is incorrect","i18n.change.password":"Change Password","i18n.auth.captcha.send.success":"Captcha Send success","i18n.auth.captcha.error":"Captcha Error","i18n.auth.captcha.expired":"Captcha Expired","i18n.auth.captcha.already.send":"Captcha Already Send","i18n.auth.captcha.validate.failed":"Captcha Validate Failed","i18n.faq":"Faq","i18n.rate":"Rate","i18n.input.placeholder":"Please input","i18n.loading":"Loading","i18n.load.more":"Load more","i18n.load.nomore":"No more","i18n.typing":"Typing","i18n.robot":"Robot","i18n.agent":"Agent","i18n.workgroup":"WorkGroup","i18n.group":"Group","i18n.rate.invite":"Rate Invite","i18n.ticket":"Ticket","i18n.ticket.thread":"Ticket Thread","i18n.notice":"Notice","i18n.notice.title":"Notice","i18n.notice.content":"Notice Content","i18n.notice.ip":"IP Address","i18n.notice.ipLocation":"IP Location","i18n.notice.parse.file.success":"Parse file success","i18n.notice.parse.file.error":"Parse file error","i18n.login_notification":"登录通知","i18n.login_time":"登录时间","i18n.login_ip":"登录IP","i18n.login_location":"登录地点","i18n.if_not_you_please_change_password":"如果这不是您的操作,请立即修改密码。","i18n.DEPT.ALL":"All","i18n.DEPT.ADMIN":"Admin","i18n.DEPT.HR":"HR","i18n.DEPT.ORG":"Org","i18n.DEPT.IT":"IT","i18n.DEPT.MONEY":"Money","i18n.DEPT.MARKETING":"Marketing","i18n.DEPT.SALES":"Sales","i18n.DEPT.CS":"CustomerService","i18n.new.message":"New Message","i18n.file.assistant":"file assistant","i18n.clipboard.assistant":"clipboard assistant","i18n.thread.content.image":"image","i18n.thread.content.file":"file","i18n.top.tip":"Top Tip","i18n.top.make":"Make Top","i18n.top.cancel":"Cancel Top","i18n.unread.make":"Mark as unread","i18n.unread.cancel":"Mark as read","i18n.star.make":"Make Star","i18n.star.cancel":"Cancel Star","i18n.disturb.make":"Make Disturb","i18n.disturb.cancel":"Cancel Disturb","i18n.transfer":"Transfer","i18n.hide":"Hide","i18n.network.disconnected":"Network disconnected","i18n.message.pulling":"Message pulling","i18n.leavemsg.tip":"Leave a message","i18n.welcome.tip":"What can i help you?","i18n.reenter.tip":"continue chat","i18n.under.development":"Under development","i18n.user.description":"User Description","i18n.robot.nickname":"DefaultRobot","i18n.robot.description":"Default Robot Description","i18n.robot.noreply":"Answer Not Found","i18n.robot.agent.assistant.nickname":"DefaultRobotAgent","i18n.llm.prompt":"You are a smart and helpful artificial intelligence, capable of providing useful, detailed, and polite answers to human questions.","i18n.agent.nickname":"DefaultAgent","i18n.agent.description":"Default Agent Description","i18n.workgroup.nickname":"DefaultWorkgroup","i18n.workgroup.before.nickname":"BeforeWorkgroup","i18n.workgroup.after.nickname":"AfterWorkgroup","i18n.workgroup.description":"Default Workgroup Description","i18n.workgroup.before.description":"BeforeWorkgroup Description","i18n.workgroup.after.description":"AfterWorkgroup Description","i18n.contact":"Ask Contact","i18n.thanks":"Thanks","i18n.welcome":"Welcome","i18n.bye":"Bye","i18n.tip.title":"Tip","i18n.tip.network.disconnected":"Network disconnected","i18n.tip.network.connected":"Network connected","i18n.kb.name":"KbName","i18n.kb.platform.name":"Platform KbName","i18n.kb.helpcenter.name":"Helpdoc KbName","i18n.kb.llm.name":"Llm KbName","i18n.kb.keyword.name":"Keyword KbName","i18n.kb.faq.name":"Faq KbName","i18n.kb.autoreply.name":"AutoReply KbName","i18n.kb.quickreply.name":"QuickReply KbName","i18n.kb.taboo.name":"Taboo KbName","i18n.kb.description":"KbDescription","i18n.agent.nicknameKb":"DefaultAgentKbName","i18n.contact.title":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.contact.content":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.thanks.title":"Thank you for visiting, we look forward to seeing you again.","i18n.thanks.content":"Thank you for visiting, we look forward to seeing you again.","i18n.welcome.title":"Hello, how can I assist you?","i18n.welcome.content":"Hello, how can I assist you?","i18n.bye.title":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.bye.content":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"CategoryDemo1","i18n.faq.category.demo.2":"CategoryDemo2","i18n.faq.demo.title.1":"FaqTitleText1","i18n.faq.demo.content.1":"FaqContentText1","i18n.faq.demo.title.2":"FaqTitleImage2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"QuickButtonTitleText1","i18n.quick.button.demo.content.1":"QuickButtonContentText1","i18n.quick.button.demo.title.2":"QuickButtonTitleUrl2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"Preview","i18n.cancel":"Cancel","i18n.confirm":"Confirm","i18n.send":"Send","i18n.transferToAgent":"Transfer to Agent","i18n.auto.closed":"Auto closed","i18n.agent.closed":"Agent closed","i18n.online.chat":"Online Chat","i18n.JOB":"Job","i18n.LANGUAGE":"Language","i18n.TOOL":"Tool","i18n.WRITING":"Writing","i18n.RAG":"RAG","i18n.module.ai":"AI","i18n.module.void":"Void","i18n.module.service":"Service","i18n.module.ticket":"Ticket","i18n.black.user.already.exists":"User already blocked","i18n.ticket.category.technical_support":"Technical Support","i18n.ticket.category.service_request":"Service Request","i18n.ticket.category.consultation":"Consultation","i18n.ticket.category.complaint_suggestion":"Complaint Suggestion","i18n.ticket.category.operation_maintenance":"Operation Maintenance","i18n.ticket.category.other":"Other","i18n.vip.component":"VIP Component, Contact us for more details","i18n.vip.contactUs":"Contact us","i18n.vip.contactUrl":"https://www.bytedesk.com","i18n.ticket.process.name.group":"WorkGroup Process","i18n.ticket.process.name.group.simple":"WorkGroup Simple Process","i18n.ticket.process.name.agent":"Agent Process","i18n.username.or.password.incorrect":"Username or password incorrect","i18n.system_notification":"System Notification","i18n.transfer_notification":"Transfer Request","i18n.transfer_accepted":"Transfer Accepted","i18n.transfer_rejected":"Transfer Rejected","i18n.transfer_timeout":"Transfer Request Timeout","i18n.transfer_cancelled":"Transfer Cancelled","i18n.confirm_accept_transfer":"Confirm Accept Transfer","i18n.confirm_accept_transfer_desc":"Are you sure to accept the transfer request?","i18n.confirm_reject_transfer":"Confirm Reject Transfer","i18n.confirm_reject_transfer_desc":"Are you sure to reject the transfer request?","i18n.confirm_cancel_transfer":"Confirm Cancel Transfer","i18n.confirm_cancel_transfer_desc":"Are you sure to cancel the transfer request?","i18n.transfer.notice.title":"Transfer Notice","i18n.transfer.notice.content":"Transfer Notice Content","i18n.transfer.accept.notice.title":"Transfer Accept Notice","i18n.transfer.accept.notice.content":"Transfer Accept Notice Content","i18n.transfer.reject.notice.title":"Transfer Reject Notice","i18n.transfer.reject.notice.content":"Transfer Reject Notice Content","i18n.transfer.timeout.notice.title":"Transfer Timeout Notice","i18n.transfer.timeout.notice.content":"Transfer Timeout Notice Content","i18n.transfer.cancel.notice.title":"Transfer Cancel Notice","i18n.transfer.cancel.notice.content":"Transfer Cancel Notice Content","i18n.already.in.transfer.pending.state":"Already in transfer pending state","i18n.already.in.transfer.accepted.state":"Already in transfer accepted state","i18n.already.in.transfer.rejected.state":"Already in transfer rejected state","i18n.already.in.transfer.timeout.state":"Already in transfer timeout state","i18n.already.in.transfer.canceled.state":"Already in transfer canceled state","i18n.invite_notification":"Invite Request","i18n.invite_accepted":"Invite Accepted","i18n.invite_rejected":"Invite Rejected","i18n.invite_timeout":"Invite Request Timeout","i18n.invite_cancelled":"Invite Cancelled","i18n.confirm_accept_invite":"Confirm Accept Invite","i18n.confirm_accept_invite_desc":"Are you sure to accept the invite request?","i18n.confirm_reject_invite":"Confirm Reject Invite","i18n.confirm_reject_invite_desc":"Are you sure to reject the invite request?","i18n.visitor_invite_notification":"Visitor Invite","i18n.visitor_invite_accepted":"Visitor Invite Accepted","i18n.visitor_invite_rejected":"Visitor Invite Rejected","i18n.visitor_invite_timeout":"Visitor Invite Timeout","i18n.visitor_invite_cancelled":"Visitor Invite Cancelled","i18n.group_invite_notification":"Group Invite","i18n.group_invite_accepted":"Group Invite Accepted","i18n.group_invite_rejected":"Group Invite Rejected","i18n.group_invite_timeout":"Group Invite Timeout","i18n.group_invite_cancelled":"Group Invite Cancelled","i18n.kbase_invite_notification":"Knowledge Base Invite","i18n.kbase_invite_accepted":"Knowledge Base Invite Accepted","i18n.kbase_invite_rejected":"Knowledge Base Invite Rejected","i18n.kbase_invite_timeout":"Knowledge Base Invite Timeout","i18n.kbase_invite_cancelled":"Knowledge Base Invite Cancelled","i18n.organization_invite_notification":"Organization Invite","i18n.organization_invite_accepted":"Organization Invite Accepted","i18n.organization_invite_rejected":"Organization Invite Rejected","i18n.organization_invite_timeout":"Organization Invite Timeout","i18n.organization_invite_cancelled":"Organization Invite Cancelled","i18n.from":"From","i18n.to":"To","i18n.note":"Note","i18n.status":"Status","i18n.time":"Time","i18n.inviter":"Inviter","i18n.invitee":"Invitee","i18n.visitor":"Visitor","i18n.group_name":"Group Name","i18n.kbase_name":"Knowledge Base Name","i18n.organization_name":"Organization Name","i18n.auto.close.tip":"The conversation has been automatically closed","i18n.agent.close.tip":"The conversation has been closed by the agent","i18n.accept":"Accept","i18n.reject":"Reject","i18n.user.signup.first":"Please sign up first","i18n.email.signup.first":"Please verify your email first","i18n.mobile.signup.first":"Please verify your mobile first","i18n.resource.not.found":"Resource not found","i18n.user.disabled":"User is disabled","i18n.forbidden.access":"Forbidden access","i18n.user.blocked":"User is blocked","i18n.sensitive.content":"Sensitive content detected","i18n.message.processing.failed":"Message processing failed","i18n.null.pointer.exception":"Null pointer exception","i18n.response.status.exception":"Response status exception","i18n.websocket.timeout.exception":"WebSocket timeout exception","i18n.http.method.not.supported":"HTTP method not supported","i18n.authorization.denied":"Authorization denied","i18n.request.rejected":"Request rejected","i18n.entity.not.found":"Entity not found","i18n.internal.server.error":"Internal server error"},Ltn={"login.privacy.required":"Please read and agree to the privacy agreement","login.privacy.agreement":"Agree to Privacy Agreement","login.switch.server":"Switch Server","login.success":"Login successful","login.failed":"Login failed","login.anonymous":"Anonymous Login","login.other.methods":"Other login methods","login.remember":"Remember me","login.forgot":"Forgot password?","login.register":"Register account","server.button.back":"Back","server.button.save":"Save","server.button.reset":"Reset","server.button.help":"Help","server.save.success":"Save successfully","server.reset.success":"Reset successfully, restored to default cloud server","server.custom.enable":"Enable Custom Server","server.api.url.label":"API Server URL (e.g. http://127.0.0.1:9003 or https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket Server URL (e.g. ws://127.0.0.1:9885/websocket or wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"Please enter correct server address"},Btn={"thread.error.message":"Failed to get data","thread.feature.unavailable":"TODO: This feature is not available yet","thread.menu.top":"Pin to Top","thread.menu.untop":"Unpin","thread.menu.read":"Mark as Read","thread.menu.unread":"Mark as Unread","thread.menu.mute":"Mute","thread.menu.unmute":"Unmute","thread.menu.transfer":"Transfer","thread.menu.block":"Block","thread.menu.remark":"Remark","thread.menu.ticket":"Create Ticket","thread.menu.crm":"View in CRM","thread.menu.summary":"Summary","thread.status.robot":"[Robot]","thread.status.agent":"[1-on-1]","thread.status.workgroup":"[Group]","thread.search.placeholder":"Search conversations...","thread.menu.filter":"Filter Threads","thread.menu.groupThread":"Group Thread","thread.menu.robotThread":"Robot Thread","thread.menu.workgroupThread":"Workgroup Thread","thread.menu.agentThread":"Agent Thread","thread.menu.ticketThread":"Ticket Thread","thread.menu.memberThread":"Member Thread","thread.menu.deviceThread":"Device Thread","thread.menu.systemThread":"System Thread","thread.status.loading":"Loading...","thread.status.empty":"No conversations","thread.status.error":"Failed to load conversations","thread.status.queue":"Queue ({count})","thread.status.network.offline":"Network disconnected","thread.status.network.online":"Network connected","thread.status.message.pulling":"Pulling messages...","thread.status.message.empty":"No messages","thread.status.message.error":"Failed to load messages","thread.status.message.end":"No more messages","thread.status.message.typing":"Typing...","thread.status.message.transfer":"Transferring...","thread.status.message.transferred":"Transferred","thread.status.message.closed":"Conversation closed","thread.dropdown.create.group":"Create Group Chat","thread.dropdown.create.ai":"Create AI Chat","thread.agent.status.online":"Online","thread.agent.status.offline":"Offline","thread.agent.status.busy":"Busy","thread.refresh.pull":"↓ Pull to refresh","thread.refresh.release":"↑ Release to refresh","thread.list.no.more":"No more data","thread.set.success":"Set successfully","thread.set.error":"Set failed","thread.menu.star":"Star","thread.menu.star.1":"Star Level 1","thread.menu.star.2":"Star Level 2","thread.menu.star.3":"Star Level 3","thread.menu.star.4":"Star Level 4","thread.menu.hide":"Hide","thread.status.text":"{status}","thread.status.online":"Online","thread.status.offline":"Offline","thread.status.busy":"🏃‍♀️Busy","thread.coming.soon":"Coming soon...","thread.menu.star.cancel":"Remove Star","thread.loading.more":"Loading more..."},ztn={"message.status.read":"Read","message.status.delivered":"Delivered","message.status.sending":"Sending","message.status.sent":"Sent","message.status.failed":"Failed to send","message.status.retry":"Retry","quickreply.search.placeholder":"Search","quickreply.button.send":"Send","quickreply.button.copy":"Copy","quickreply.button.create.category":"Create Category","quickreply.button.create.reply":"Create Quick Reply","quickreply.copy.success":"{content} copied to clipboard","category.form.edit.title":"Edit Category","category.form.create.title":"Create Category","category.form.name":"Category Name","category.form.name.required":"Please enter category name!","category.form.name.placeholder":"Enter category name","category.create.failed":"Failed to create category","quickreply.drawer.title":"{isEdit, select, true {Edit Quick Reply} other {New Quick Reply}}","quickreply.form.category":"Category","quickreply.form.category.required":"Please select a category","quickreply.form.category.placeholder":"Select a category","quickreply.form.type":"Type","quickreply.form.type.required":"Please select a type","quickreply.form.type.placeholder":"Select a type","quickreply.form.title":"Title","quickreply.form.title.required":"Please enter a title","quickreply.form.content":"Content","quickreply.type.text":"Text","quickreply.type.image":"Image","quickreply.type.video":"Video","quickreply.type.audio":"Audio","quickreply.type.file":"File","quickreply.upload.text":"Click or drag file to upload","quickreply.upload.success":"{filename} uploaded successfully","quickreply.upload.error":"{filename} upload failed","quickreply.upload.uploading":"{filename} uploading","quickreply.form.validate.error":"Please check the form"},Htn={"customer.info.basic":"Basic Info","customer.info.browser":"Browser Info","customer.info.os":"OS Info","customer.info.device":"Device Info","customer.info.browse.record":"Browse Record","customer.info.tag":"Tag Info","customer.info.extra":"Extra Info","customer.info.load.error":"Failed to load visitor info","customer.info.add.crm":"Add to CRM","customer.info.add.tag":"Add Tag","customer.basic.nickname":"Nickname","customer.basic.location":"IP Location","customer.basic.note":"Note","customer.basic.client":"Client","customer.basic.status":"Status","customer.basic.empty":"N/A","black.title":"Block Settings","black.type":"Block Type","black.type.required":"Please select at least one block type","black.user":"Block User","black.ip":"Block IP","black.permanent":"Permanent Block","black.until":"Block Until","black.until.required":"Please select block end time","black.reason":"Block Reason","black.reason.required":"Please enter block reason","black.success":"Block successfully"},Utn={"contact.list.new":"New Friends","contact.list.device":"LAN Devices","contact.list.group":"Groups","contact.list.channel":"Channels","contact.list.company":"Company Contacts","contact.list.friend":"Contacts","contact.search.placeholder":"Search contacts...","contact.manager.button":"Contact Manager","contact.manager.coming":"Coming soon...","member.detail.nickname":"Nickname","member.detail.jobno":"Job No.","member.detail.seatno":"Seat No.","member.detail.telephone":"Telephone","member.detail.loading":"Loading...","member.detail.chat.button":"Start Chat"},Wtn={"autoreply.title":"Auto Reply","autoreply.enable.label":"Enable Auto Reply","autoreply.type.label":"Auto Reply Type","autoreply.type.fixed":"Fixed Reply","autoreply.type.keyword":"Keyword Match","autoreply.type.llm":"AI Model Reply","autoreply.fixed.add":"Add Fixed Reply","autoreply.fixed.select":"Select Fixed Reply","autoreply.fixed.type":"Fixed Reply Type","autoreply.fixed.content":"Fixed Reply Content","autoreply.content.text":"Text","autoreply.content.image":"Image","autoreply.content.video":"Video","autoreply.content.audio":"Audio","autoreply.content.file":"File","autoreply.save.loading":"Saving...","autoreply.save.success":"Saved successfully","autoreply.save.error":"Failed to save","autoreply.keyword.add":"Add Keyword Knowledge Base","autoreply.keyword.select":"Select Keyword Knowledge Base","autoreply.llm.add":"Add AI Model Knowledge Base","autoreply.llm.select":"Select AI Model Knowledge Base"},Vtn={"queue.accepting":"Accepting...","queue.accept.success":"Accepted successfully","queue.accept.failed":"Failed to accept","queue.accept":"Accept","queue.empty":"No queuing visitors","queue.loading":"Loading queue...","queue.error":"Failed to load queue","queue.count":"{count} visitors queuing","queue.wait.time":"Estimated wait time: {minutes} minutes"},qtn={"group.create.title":"Create Group Chat","group.create.contacts":"Contacts","group.create.members":"Members","group.create.members.min":"Please select at least 2 members","group.create.creating":"Creating group...","group.create.org.empty":"No organization selected","group.create.success":"Group created successfully","group.create.failed":"Failed to create group","group.create.loading":"Loading members...","group.create.error":"Failed to load members"},Ktn={"upload.modal.title":"Upload Files","upload.drag.text":"Click or drag files here to upload","upload.drag.hint":"Support for single or bulk upload","upload.uploading":"{filename} uploading...","upload.success":"{filename} uploaded successfully","upload.failed":"{filename} upload failed","upload.delete.confirm":"Are you sure to delete this file?","upload.preview.image":"Image Preview","upload.preview.file":"File Preview","upload.button.ok":"OK","upload.button.cancel":"Cancel","upload.maxCount":"Cannot upload more than {maxCount} files","upload.maxSize":"File size cannot exceed {maxSize}MB"},Gtn={"robot.list.add":"Add AI Agent","robot.list.chat":"Chat","robot.list.edit":"Edit","robot.list.delete":"Delete","robot.list.create":"Create"},Ytn={"welcome.modal.title":"No Organization Found","welcome.modal.description":"You need to create or join an organization","welcome.modal.join":"Join Organization (Coming Soon)","welcome.modal.create":"Create Organization","welcome.modal.input.placeholder":"Please enter organization name","welcome.message.org.required":"Please create or join an organization","welcome.message.create.success":"Organization created successfully","welcome.message.create.failed":"Failed to create organization","welcome.message.verify.email":"Please verify your email first","welcome.message.verify.mobile":"Please verify your mobile number first","welcome.message.org.name.required":"Please enter organization name","welcome.message.org.creating":"Creating organization, please wait...","welcome.verify.modal.title":"Account Verification","welcome.verify.modal.description":"Your email and mobile number have not been verified. For account security, we recommend completing verification as soon as possible.","welcome.verify.now":"Verify Now","welcome.verify.later":"Verify Later"},Xtn={...Mtn,...Ttn,...Ptn,...Otn,...Itn,...Rtn,...jtn,...Ntn,...Atn,...Dtn,...Ftn,...Ltn,...Btn,...ztn,...Htn,...Utn,...Wtn,...Vtn,...qtn,...Ktn,...Gtn,...Ytn},Ztn={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},$Se={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},ba={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},as={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},wp={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class nn{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=nn.getVersionPrecision(t),a=nn.getVersionPrecision(n);let o=Math.max(i,a),s=0;const l=nn.map([t,n],c=>{const u=o-nn.getVersionPrecision(c),f=c+new Array(u+1).join(".0");return nn.map(f.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(s=o-Math.min(i,a)),o-=1;o>=s;){if(l[0][o]>l[1][o])return 1;if(l[0][o]===l[1][o]){if(o===s)return 0;o-=1}else if(l[0][o]{r[l]=o[l]})}return t}static getBrowserAlias(t){return Ztn[t]}static getBrowserTypeByAlias(t){return $Se[t]||""}}const xi=/version\/(\d+(\.?_?\d+)+)/i,Qtn=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=nn.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||nn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=nn.getFirstMatch(xi,e)||nn.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=nn.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||nn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=nn.getFirstMatch(xi,e)||nn.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=nn.getFirstMatch(xi,e)||nn.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=nn.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||nn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=nn.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||nn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=nn.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||nn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=nn.getFirstMatch(xi,e)||nn.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=nn.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||nn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=nn.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||nn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=nn.getFirstMatch(xi,e)||nn.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=nn.getFirstMatch(xi,e)||nn.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=nn.getFirstMatch(xi,e)||nn.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=nn.getFirstMatch(xi,e)||nn.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=nn.getFirstMatch(xi,e)||nn.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=nn.getFirstMatch(xi,e)||nn.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=nn.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||nn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=nn.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||nn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=nn.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=nn.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=nn.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=nn.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=nn.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=nn.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=nn.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=nn.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=nn.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=nn.getFirstMatch(xi,e)||nn.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=nn.getFirstMatch(xi,e)||nn.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=nn.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=nn.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||nn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=nn.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||nn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=nn.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=nn.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=nn.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=nn.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||nn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=nn.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=nn.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=nn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=nn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=nn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:nn.getFirstMatch(i,e),version:nn.getSecondMatch(i,e)}}}],Jtn=[{test:[/Roku\/DVP/],describe(e){const t=nn.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:as.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=nn.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:as.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=nn.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=nn.getWindowsVersionName(t);return{name:as.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:as.iOS},n=nn.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=nn.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=nn.getMacOSVersionName(t),r={name:as.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=nn.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:as.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=nn.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=nn.getAndroidVersionName(t),r={name:as.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=nn.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:as.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=nn.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||nn.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||nn.getFirstMatch(/\bbb(\d+)/i,e);return{name:as.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=nn.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:as.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=nn.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:as.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:as.Linux}}},{test:[/CrOS/],describe(){return{name:as.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=nn.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:as.PlayStation4,version:t}}}],enn=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=nn.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:ba.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:ba.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:ba.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:ba.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:ba.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:ba.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:ba.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=nn.getFirstMatch(/(ipod|iphone)/i,e);return{type:ba.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:ba.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:ba.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:ba.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:ba.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:ba.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:ba.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:ba.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:ba.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:ba.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:ba.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:ba.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:ba.tv}}}],tnn=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:wp.Blink};const n=nn.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:wp.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:wp.Trident},n=nn.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:wp.Presto},n=nn.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:wp.Gecko},n=nn.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:wp.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:wp.WebKit},n=nn.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class _ie{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=nn.find(Qtn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=nn.find(Jtn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=nn.find(enn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=nn.find(tnn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return nn.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let a=0;if(Object.keys(t).forEach(s=>{const l=t[s];typeof l=="string"?(i[s]=l,a+=1):typeof l=="object"&&(n[s]=l,r+=1)}),r>0){const s=Object.keys(n),l=nn.find(s,u=>this.isOS(u));if(l){const u=this.satisfies(n[l]);if(u!==void 0)return u}const c=nn.find(s,u=>this.isPlatform(u));if(c){const u=this.satisfies(n[c]);if(u!==void 0)return u}}if(a>0){const s=Object.keys(i),l=nn.find(s,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const a=nn.getBrowserTypeByAlias(i);return n&&a&&(i=a.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const a=this.getBrowserVersion();if(typeof a=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(nn.compareVersions(a,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*! +`,Ren=()=>{const{groupUid:e}=kdt(),t=Mo(),n=()=>{const i=[];for(let a=0;a<50;a++){const o={left:`${Math.random()*100}%`,top:`${Math.random()*100}%`,animationDelay:`${Math.random()*2}s`};i.push(x.jsx(Oen,{style:o},a))}return i},r=()=>{console.log("Accept invite:",e),t("/chat?groupUid="+e)};return x.jsxs($en,{children:[n(),x.jsx(Men,{children:x.jsxs(Xr,{direction:"vertical",size:"large",style:{width:"100%"},children:[x.jsx(Ten,{children:x.jsx(iz,{})}),x.jsxs("div",{children:[x.jsx(kie,{level:4,children:"Korey (koreyspace) 邀请您加入"}),x.jsx(kie,{level:3,children:"Bytedesk AI Community"})]}),x.jsxs(Xr,{direction:"vertical",size:"small",style:{width:"100%"},children:[x.jsxs(Eie,{children:[x.jsx("span",{style:{color:"#3ba55c"},children:"● "}),"1,343 人在线"]}),x.jsxs(Eie,{children:[x.jsx("span",{style:{color:"#747f8d"},children:"● "}),"16,449 位成员"]})]}),x.jsx(Pen,{type:"primary",size:"large",onClick:r,children:"接受邀请"})]})})]})},{Sider:Ien,Content:jen}=Qn,Nen=[{key:"grp",label:"质检",type:"group",children:[{key:"13",label:"当前在线"},{key:"14",label:"已离线"}]}],Aen=()=>{const{leftSiderStyle:e,leftSiderWidth:t}=co(),n=r=>{console.log("click ",r)};return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(Ien,{style:e,width:t,children:x.jsx(ks,{onClick:n,mode:"inline",items:Nen})}),x.jsx(Qn,{children:x.jsx(jen,{children:"质检"})})]})})};function Den({children:e}){const{isLoggedIn:t}=d.useContext(Ea),n=n1();return t?e:x.jsx(Ldt,{to:"/auth/login",replace:!0,state:{from:n}})}const Fen=[{path:"/",element:x.jsx(x.Fragment,{children:x.jsx(Den,{children:x.jsx(IQt,{})})}),children:[{path:"/",element:x.jsx(XA,{})},{path:"/chat",element:x.jsx(XA,{})},{path:"/contact",element:x.jsx(Oxe,{})},{path:"/robot",element:x.jsx($Jt,{})},{path:"/ticket",element:x.jsx(Fxe,{})},{path:"/leavemsg",element:x.jsx(dJt,{})},{path:"/notebase",element:x.jsx(_en,{})},{path:"monitor",element:x.jsx(mJt,{})},{path:"quality",element:x.jsx(Aen,{})},{path:"/plugins",element:x.jsx(tJt,{}),children:[{path:"/plugins",element:x.jsx(pie,{})},{path:"/plugins/collect",element:x.jsx(pie,{})},{path:"/plugins/task",element:x.jsx(GQt,{})},{path:"/plugins/note",element:x.jsx(YQt,{})},{path:"/plugins/clipboard",element:x.jsx(XQt,{})}]},{path:"/setting",element:x.jsx(Rxe,{}),children:[{path:"/setting",element:x.jsx(fie,{})},{path:"/setting/profile",element:x.jsx(fie,{})},{path:"/setting/agentProfile",element:x.jsx(NJt,{})},{path:"/setting/memberProfile",element:x.jsx(oJt,{})},{path:"/setting/basic",element:x.jsx(ZQt,{})},{path:"/setting/certification",element:x.jsx(IJt,{})},{path:"/setting/qrcode",element:x.jsx(nJt,{})},{path:"/setting/shortcut",element:x.jsx(rJt,{})},{path:"/setting/model",element:x.jsx(yJt,{})}]}]},{path:"/auth",element:x.jsx(jQt,{}),children:[{path:"/auth",element:x.jsx(dA,{isModel:!1})},{path:"/auth/login",element:x.jsx(dA,{isModel:!1})},{path:"/auth/register",element:x.jsx(CNt,{})},{path:"/auth/server",element:x.jsx(rwe,{})}]},{path:"/anonymous",element:x.jsx(fen,{}),children:[{path:"/anonymous",element:x.jsx(sD,{})},{path:"/anonymous/home",element:x.jsx(sD,{})},{path:"/anonymous/contact",element:x.jsx(men,{})},{path:"/anonymous/robot",element:x.jsx(yen,{})},{path:"/anonymous/setting",element:x.jsx(xen,{})}]},{path:"/invite/:groupUid",element:x.jsx(Ren,{})},{path:"/enlarge",element:x.jsx(sJt,{})},{path:"*",element:x.jsx(iJt,{})}],$Se=!1;console.log("router isElectron:",$Se);let MSe;console.log("isElectron web:",$Se),MSe=Kdt(Fen,{basename:"/agent",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}});const Len=MSe,Ben={i18_file_assistant:"文件助手",slogan:"对话即服务","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"客服助手","chat.right.quickreply":"快捷回复/知识库","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服机器人(对外)",MARKETING:"营销机器人(对外)",KNOWLEDGEBASE:"知识库机器人(内部)",QA:"问答机器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"加载中",create:"创建",creating:"创建中...","create.success":"创建成功","create.fail":"创建失败",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失败",save:"保存",saving:"正在保存...",email:"邮箱","email.verified":"邮箱(已验证)","email.unverified":"邮箱(待验证)",mobile:"手机号","mobile.verified":"手机号(已验证)","mobile.unverified":"手机号(待验证)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登录用户名(修改用户名之后,需要重新登录)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"导入",export:"导出","download.template":"下载模板",open:"打开",copy:"复制","copy.success":"复制成功",ok:"确定",cancel:"取消",bind:"绑定",edit:"编辑",editing:"修改中...","edit.success":"修改成功","edit.fail":"修改失败",delete:"删除",deleting:"删除中...",deleteTip:"删除提示",deleteAffirm:"确定要删除","delete.success":"删除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"预览",close:"关闭",closing:"关闭中...",closeTip:"关闭提示",closeASure:"确定要关闭","close.success":"关闭成功",choose:"选择","leavemsg.enabled":"留言启用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"暂无客服在线",invite:"邀请","invite.success":"邀请成功","invite.fail":"邀请失败","invite.reason":"邀请原因","invite.no.agent":"暂无客服在线"},zen={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"聊天","menu.dashboard.contact":"联系人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"笔记","menu.dashboard.kbase":"知识库","menu.dashboard.mine":"设置","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.dashboard.quality":"质检","menu.settings":"设置","menu.settings.logout":"登出","menu.agent.status":"客服状态","menu.agent.status.available":"在线","menu.agent.status.rest":"小休","menu.agent.status.offline":"离线","menu.language":"语言","menu.mode":"模式","menu.mode.team":"团队模式","menu.mode.personal":"个人模式","menu.mode.agent":"客服模式","menu.agent.offline.warning":"请在离线前结束所有正在進行中的会话","menu.mode.personal.coming":"即将推出..."},Hen={"pages.login.title":"登录","pages.login.subtitle":"欢迎使用微语客服系统","pages.login.accountLogin.tab":"账户密码登录","pages.login.accountLogin.errorMessage":"错误的用户名和密码","pages.login.failure":"登录失败,请检查用户名密码!","pages.login.failureCode":"验证错误","pages.login.success":"登录成功!","pages.login.username.placeholder":"请输入用户名","pages.login.username.required":"用户名是必填项!","pages.login.password.placeholder":"请输入密码","pages.login.repassword.placeholder":"确认密码","pages.login.password.required":"密码是必填项!","pages.login.repassword.required":"确认密码是必填项!","pages.login.phoneLogin.tab":"手机号登录","pages.login.phoneLogin.errorMessage":"验证码错误","pages.login.phoneNumber.placeholder":"请输入手机号!","pages.login.phoneNumber.required":"手机号是必填项!","pages.login.phoneNumber.invalid":"不合法的手机号!","pages.login.captcha.placeholder":"请输入验证码!","pages.login.captcha.required":"验证码是必填项!","pages.login.phoneLogin.getVerificationCode":"获取验证码","pages.login.anonymousLogin":"匿名登录","pages.getCaptchaSecondText":"秒后重新获取","pages.login.scanLogin.tab":"扫码登录","pages.login.rememberMe":"自动登录","pages.login.forgotPassword":"忘记密码","pages.login.submit":"登录","pages.login.loginWith":"其他登录方式 :","pages.login.register":"注册账号","pages.login.registerAccount":"注册账户","pages.login.auto.register":"未注册手机号会自动注册","pages.welcome.link":"欢迎使用","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"删除","pages.robot.upload":"上传","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知识库","pages.robot.tab.channel":"渠道对接","pages.robot.tab.statistic":"数据统计","pages.robot.tab.advanced":"高级设置","pages.robot.tab.flow":"流程设计","pages.robot.tab.avatar":"头像","pages.robot.tab.title":"标题","pages.robot.tab.welcomeTip":"欢迎语","pages.robot.tab.description":"简介","pages.robot.tab.preview":"实时预览","pages.robot.tab.website":"官网","pages.robot.tab.helpdesk":"帮助文档","pages.robot.tab.icp":"京ICP备案 17041763号-1","pages.robot.tab.police":"粤公安备案 44030502008688号","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"问答","pages.robot.kb.web":"网站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件类型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"删除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上传中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件内容","pages.setting":"设置","pages.logout":"退出登录","pages.footer.website":"微语官网","pages.footer.helpcenter":"帮助文档","pages.login.remember":"记住密码","pages.agent.tab.basic":"基本信息","pages.agent.robot":"机器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常见问题","pages.advanced.quickButton":"快捷按钮","pages.advanced.faqGuess":"智能推荐","pages.advanced.faqHot":"热门问题","pages.advanced.faqShortcut":"快捷回复/知识库","pages.advanced.rate":"满意度评价","pages.advanced.autoreply":"自动回复","pages.advanced.leaveMsg":"留言设置","pages.advanced.survey":"调查问卷","pages.advanced.history":"历史记录","pages.advanced.inputAssociation":"输入联想","pages.advanced.antiHarassment":"验证码设置","pages.advanced.captcha":"验证码设置","pages.advanced.showPreForm":"显示预览","pages.advanced.showHistory":"显示历史","pages.advanced.showInputAssociation":"显示输入联想","pages.advanced.showCaptcha":"显示验证码","pages.login.country.placeholder":"选择国家/地区","pages.login.country.china":"中国大陆","pages.login.country.hongkong":"中国香港","pages.login.country.taiwan":"中国台湾","pages.login.country.macao":"中国澳门","pages.login.country.japan":"日本","pages.login.country.korea":"韩国","pages.login.country.usa":"美国","pages.login.country.canada":"加拿大","pages.login.country.uk":"英国","pages.login.country.germany":"德国","pages.login.country.france":"法国","pages.login.country.australia":"澳大利亚","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"马来西亚","pages.login.country.thailand":"泰国","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律宾","pages.login.country.indonesia":"印度尼西亚","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄罗斯","pages.login.country.newzealand":"新西兰","pages.anonymous.title":"匿名模式","pages.anonymous.home":"首页","pages.anonymous.contact":"联系人","pages.anonymous.robot":"机器人","pages.anonymous.setting":"设置","pages.anonymous.welcome":"欢迎使用匿名模式","pages.anonymous.description":"您可以在此模式下匿名使用系统功能","block.title":"拉黑设置","block.type":"拉黑类型","block.user":"拉黑用户","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"请选择封禁结束时间","pages.register.title":"注册","pages.register.subtitle":"创建您的账号","pages.register.username":"用户名","pages.register.password":"密码","pages.register.confirm":"确认密码","pages.register.email":"邮箱","pages.register.mobile":"手机号","pages.register.code":"验证码","pages.register.agreement":"我已阅读并同意","pages.register.agreement.terms":"服务条款","pages.register.submit":"注册","pages.register.login":"使用已有账号登录","pages.404.title":"404","pages.404.subtitle":"抱歉,您访问的页面不存在","pages.404.description":"您可以尝试以下操作:","pages.404.actions.back":"返回上一页","pages.404.actions.home":"返回首页","pages.403.title":"403","pages.403.subtitle":"抱歉,您没有访问该页面的权限","pages.403.description":"请联系管理员获取权限","pages.403.actions.back":"返回上一页","pages.500.title":"500","pages.500.subtitle":"抱歉,服务器出错了","pages.500.description":"请稍后再试或联系技术支持","pages.500.actions.back":"返回上一页","pages.500.actions.home":"返回首页","pages.welcome.title":"欢迎","pages.welcome.description":"微语客服系统是一个开源的客服系统","pages.welcome.getting-started":"开始使用","pages.welcome.view-docs":"查看文档"},Uen={"app.title":"微语","app.logout":"登出","app.copyright.produced":"微语出品","app.preview.down.block":"下载此页面到本地项目","app.welcome.link.fetch-blocks":"获取全部区块","app.welcome.link.block-list":"基于 block 开发,快速构建标准页面","navBar.lang":"语言","layout.user.link.help":"帮助","layout.user.link.privacy":"隐私","layout.user.link.terms":"条款","theme.light":"浅色","theme.dark":"深色","theme.system":"自动","setting.lang":"Languages","setting.theme":"主题","app.name":"微语客服","app.description":"新一代智能客服系统","app.welcome":"欢迎使用微语客服系统","app.copyright":"© 2024 微语客服. 保留所有权利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"确认","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"编辑","app.action.delete":"删除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"设置","app.action.help":"帮助","app.tip.loading":"加载中...","app.tip.success":"操作成功","app.tip.error":"操作失败","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"确认要执行此操作吗?","app.tip.nodata":"暂无数据","app.tip.network.error":"网络连接失败","app.tip.server.error":"服务器错误","app.status.online":"在线","app.status.offline":"离线","app.status.busy":"忙碌","app.status.away":"离开","app.status.invisible":"隐身","app.status.disabled":"已禁用","app.status.expired":"已过期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"刚刚","app.time.minutes":"{count} 分钟前","app.time.hours":"{count} 小时前","app.time.days":"{count} 天前","app.file.upload":"上传文件","app.file.download":"下载文件","app.file.preview":"预览文件","app.file.size.limit":"文件大小不能超过 {size}","app.file.type.unsupported":"不支持的文件类型","app.file.upload.success":"上传成功","app.file.upload.failed":"上传失败","app.file.download.success":"下载成功","app.file.download.failed":"下载失败","app.layout.sidebar.collapse":"收起侧边栏","app.layout.sidebar.expand":"展开侧边栏","app.layout.header.profile":"个人中心","app.layout.header.logout":"退出登录","app.layout.footer.copyright":"版权所有","app.layout.footer.terms":"服务条款","app.layout.footer.privacy":"隐私政策","category.form.title":"新建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!"},Wen={"auth.login.title":"登录","auth.login.subtitle":"欢迎使用微语客服系统","auth.login.username":"用户名","auth.login.username.required":"请输入用户名","auth.login.password":"密码","auth.login.password.required":"请输入密码","auth.login.remember":"记住密码","auth.login.forgot":"忘记密码?","auth.login.submit":"登录","auth.login.other":"其他登录方式","auth.login.register":"注册账号","auth.login.success":"登录成功","auth.login.failed":"登录失败","auth.register.title":"注册","auth.register.subtitle":"创建新账号","auth.register.username":"用户名","auth.register.username.required":"请输入用户名","auth.register.email":"邮箱","auth.register.email.required":"请输入邮箱","auth.register.password":"密码","auth.register.password.required":"请输入密码","auth.register.confirm":"确认密码","auth.register.confirm.required":"请确认密码","auth.register.submit":"注册","auth.register.login":"已有账号?登录","auth.register.success":"注册成功","auth.register.failed":"注册失败","auth.forgot.title":"忘记密码","auth.forgot.subtitle":"重置密码","auth.forgot.email":"邮箱","auth.forgot.email.required":"请输入邮箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登录","auth.forgot.success":"重置密码邮件已发送","auth.forgot.failed":"重置密码失败","auth.reset.title":"重置密码","auth.reset.subtitle":"设置新密码","auth.reset.password":"新密码","auth.reset.password.required":"请输入新密码","auth.reset.confirm":"确认密码","auth.reset.confirm.required":"请确认新密码","auth.reset.submit":"提交","auth.reset.success":"密码重置成功","auth.reset.failed":"密码重置失败","auth.verify.code":"验证码","auth.verify.code.required":"请输入验证码","auth.verify.code.send":"发送验证码","auth.verify.code.resend":"重新发送","auth.verify.code.success":"验证码发送成功","auth.verify.code.failed":"验证码发送失败","auth.password.strength.weak":"密码强度:弱","auth.password.strength.medium":"密码强度:中","auth.password.strength.strong":"密码强度:强","auth.agreement.text":"我已阅读并同意","auth.agreement.terms":"服务条款","auth.agreement.privacy":"隐私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"帮助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢复默认云服务器","server.custom.enable":"启用自定义服务器","server.api.url.label":"API服务器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服务器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"请输入正确的服务器地址"},Ven={"chat.title":"会话","chat.empty":"暂无会话","chat.loading":"加载中...","chat.load.error":"加载失败","chat.load.more":"加载更多","chat.no.more":"没有更多了","chat.refresh":"刷新","chat.status.connecting":"连接中...","chat.status.connected":"已连接","chat.status.disconnected":"连接断开","chat.status.reconnecting":"重新连接中...","chat.network.error":"网络连接失败,请检查网络","chat.thread.closing":"结束会话中...","chat.thread.close.success":"结束会话成功","chat.thread.close.failed":"结束会话失败","chat.thread.close.confirm.title":"确定要结束会话?","chat.rate.invite.confirm.title":"确认要邀请评价?","chat.message.send.failed":"发送失败","chat.message.resend":"重新发送","chat.message.recall":"撤回消息","chat.message.copy.success":"复制成功","chat.copy.success":"复制成功","chat.menu.copy":"复制","chat.menu.translate":"翻译","chat.menu.recall":"撤回","chat.menu.enlarge":"放大阅读","chat.menu.quickreply.add":"添加快捷回复...","chat.menu.browser.open":"浏览器打开","chat.menu.forward":"转发...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.menu.ai":"问AI","chat.menu.quickreply.search":"搜索知识库","chat.input.placeholder":"请输入内容, Ctrl+V 粘贴截图/图片","chat.translation.placeholder":"请输入翻译内容...","chat.input.send":"发送","chat.input.sending":"发送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截图","chat.toolbar.autoreply":"自动回复","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频会话","chat.toolbar.history":"历史","chat.toolbar.block":"拉黑","chat.toolbar.invite.rate":"邀请评价","chat.navbar.transfer":"转接","chat.navbar.close":"结束","chat.navbar.note":"笔记","chat.navbar.kbase":"知识库","chat.right.quickreply":"快捷回复/知识库","chat.right.userinfo":"访客信息","chat.right.ai":"AI助手","chat.right.ticket":"工单","chat.right.llm":"大模型","chat.right.group":"群组信息","chat.right.member":"成员信息","chat.right.docview":"文档查看","chat.upload.size.limit":"文件大小不能超过 {size}","chat.upload.type.unsupported":"不支持的文件类型","chat.upload.failed":"上传失败","chat.upload.success":"上传成功","chat.upload.progress":"上传中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"来电...","chat.webrtc.connected":"通话中...","chat.webrtc.ended":"通话结束","chat.webrtc.rejected":"对方拒绝","chat.webrtc.busy":"对方忙","chat.webrtc.failed":"通话失败","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒绝","chat.webrtc.hangup":"挂断","chat.group.notice":"群公告","chat.group.members":"群成员","chat.group.admins":"管理员","chat.group.robots":"机器人","chat.group.qrcode":"二维码","chat.group.uid.error":"群组ID错误","chat.header.group.unnamed":"未命名群组","chat.header.member.unnamed":"未命名成员","chat.header.robot.unnamed":"未命名机器人","chat.header.user.unnamed":"未命名用户","chat.header.typing":"正在输入...","chat.header.no.message":"暂无消息","chat.header.action.transfer":"转接","chat.header.action.invite":"邀请","chat.header.action.create.ticket":"创建工单","chat.header.action.close":"结束","chat.header.action.exit":"退出","chat.header.type.not.supported":"当前聊天类型不支持"},qen={"common.confirm":"确认","common.cancel":"取消","common.submit":"提交","common.reset":"重置","common.save":"保存","common.delete":"删除","common.edit":"编辑","common.add":"添加","common.search":"搜索","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.loading":"加载中...","common.success":"操作成功","common.failed":"操作失败","common.error":"错误","common.warning":"警告","common.info":"提示","common.status.online":"在线","common.status.offline":"离线","common.status.busy":"忙碌","common.status.away":"离开","common.status.invisible":"隐身","common.operation.success":"操作成功","common.operation.failed":"操作失败","common.operation.confirm":"确认要执行此操作吗?","common.operation.processing":"处理中...","common.operation.completed":"处理完成","common.operation.error":"处理出错","common.form.required":"此项为必填项","common.form.optional":"选填","common.form.invalid":"输入无效","common.form.validate.error":"表单验证失败","common.form.validate.success":"表单验证通过","common.refresh":"刷新"},Ken={"customer.list.title":"客户列表","customer.list.empty":"暂无客户","customer.list.loading":"加载中...","customer.list.load.error":"加载失败","customer.list.load.more":"加载更多","customer.list.no.more":"没有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"昵称","customer.info.gender":"性别","customer.info.age":"年龄","customer.info.birthday":"生日","customer.info.mobile":"手机号","customer.info.email":"邮箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"职位","customer.info.remark":"备注","customer.info.tags":"标签","customer.info.extra":"其他信息","customer.info.source":"来源","customer.info.created":"创建时间","customer.info.updated":"更新时间","customer.status.online":"在线","customer.status.offline":"离线","customer.status.away":"离开","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"编辑","customer.action.delete":"删除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"转移","customer.action.merge":"合并","customer.action.export":"导出","customer.form.name":"姓名","customer.form.name.required":"请输入姓名","customer.form.nickname":"昵称","customer.form.gender":"性别","customer.form.age":"年龄","customer.form.birthday":"生日","customer.form.mobile":"手机号","customer.form.email":"邮箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"职位","customer.form.remark":"备注","customer.form.tags":"标签","customer.form.source":"来源","customer.create.success":"客户创建成功","customer.create.failed":"客户创建失败","customer.update.success":"客户更新成功","customer.update.failed":"客户更新失败","customer.delete.success":"客户删除成功","customer.delete.failed":"客户删除失败","customer.block.success":"客户拉黑成功","customer.block.failed":"客户拉黑失败","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失败","customer.transfer.success":"客户转移成功","customer.transfer.failed":"客户转移失败","customer.merge.success":"客户合并成功","customer.merge.failed":"客户合并失败","customer.export.success":"客户导出成功","customer.export.failed":"客户导出失败","black.title":"拉黑设置","black.type":"拉黑类型","black.type.required":"请选择至少一种拉黑类型","black.user":"拉黑用户","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"请选择拉黑截至时间","black.reason":"拉黑原因","black.reason.required":"请输入拉黑原因","black.reason.placeholder":"请输入拉黑原因","black.success":"拉黑成功","customer.info.browser":"浏览器信息","customer.info.os":"操作系统信息","customer.info.device":"设备信息","customer.info.browse.record":"浏览记录","customer.info.tag":"标签信息","customer.info.load.error":"加载访客信息失败","customer.basic.title":"基本信息","customer.basic.nickname":"昵称","customer.basic.empty":"无","customer.basic.edit":"编辑","customer.basic.update.success":"更新成功","customer.basic.update.failed":"更新失败","customer.basic.note":"备注"},Gen={"dashboard.error.message":"获取数据失败","dashboard.init.organization":"初始化组织","dashboard.init.profile":"初始化个人信息","dashboard.init.workgroups":"初始化工作组","dashboard.init.agent":"初始化客服信息","dashboard.transfer.accept":"{nickname} 已接受转接","dashboard.transfer.reject":"{nickname} 已拒绝转接","dashboard.transfer.success":"转接请求已发送,等待对方响应"},Yen={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁体中文","i18n.all":"全部","i18n.queue.tip":"排队队列","i18n.queue.message.template":"当前排队人数:{0},大约等待时间:{1} 分钟","i18n.queue.empty":"暂无排队用户","i18n.queue.accept":"接入","i18n.system.notification":"系统通知","i18n.old.password.wrong":"旧密码错误","i18n.change.password":"修改密码","i18n.auth.captcha.send.success":"验证码发送成功","i18n.auth.captcha.error":"验证码错误","i18n.auth.captcha.expired":"验证码过期","i18n.auth.captcha.already.send":"验证码已经发送,请等待","i18n.auth.captcha.validate.failed":"验证码验证失败","i18n.faq":"常见问题","i18n.rate":"评价","i18n.input.placeholder":"请输入内容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在输入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀请评价","i18n.ticket":"[工单]","i18n.ticket.thread":"[工单会话]","i18n.DEPT_ALL":"全部","i18n.DEPT_ADMIN":"管理部","i18n.DEPT_CS":"客服部",ROLE_SUPER:"超级管理员",ROLE_ADMIN:"管理员",ROLE_MEMBER:"成员",ROLE_AGENT:"客服",ROLE_USER:"用户",ROLE_VISITOR:"访客","i18n.notice":"通知","i18n.notice.title":"标题","i18n.notice.content":"内容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.login_notification":"登录通知","i18n.login_time":"登录时间","i18n.login_ip":"登录IP","i18n.login_location":"登录地点","i18n.if_not_you_please_change_password":"如果这不是您的操作,请立即修改密码。","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理员","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技术部","i18n.DEPT.MONEY":"财务部","i18n.DEPT.MARKETING":"市场部","i18n.DEPT.SALES":"销售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"图片","i18n.thread.content.file":"文件","i18n.top.tip":"默认置顶语","i18n.top.make":"置顶","i18n.top.cancel":"取消置顶","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开-123","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"无客服在线,请留言","i18n.welcome.tip":"您好,有什么可以帮您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"开发中...","i18n.user.description":"默认用户描述","i18n.robot.nickname":"默认机器人","i18n.robot.description":"默认机器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一个聪明、对人类有帮助的人工智能,你可以对人类提出的问题给出有用、详细、礼貌的回答","i18n.agent.nickname":"默认客服","i18n.agent.description":"默认客服描述","i18n.workgroup.nickname":"默认技能组","i18n.workgroup.before.nickname":"售前技能组","i18n.workgroup.after.nickname":"售后技能组","i18n.workgroup.description":"默认技能组描述","i18n.workgroup.before.description":"售前技能组描述","i18n.workgroup.after.description":"售后技能组描述","i18n.contact":"询问联系方式","i18n.thanks":"感谢","i18n.welcome":"问候","i18n.bye":"告别","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开-123","i18n.tip.network.connected":"网络已连接-123","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的话请您提供一下您的联系电话","i18n.contact.content":"方便的话请您提供一下您的联系电话,我电话给您沟通一下,这样更加直观","i18n.thanks.title":"感谢光临","i18n.thanks.content":"感谢光临,欢迎再来","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什么可以帮您的","i18n.bye.title":"您的满意一直是我们的目标","i18n.bye.content":"您的满意一直是我们的目标,如果有任何疑问欢迎您随时联系","i18n.vip.api":"VIP接口,暂无权限,请联系:weiyuai.cn","i18n.faq.category.demo.1":"常见问题分类Demo1","i18n.faq.category.demo.2":"常见问题分类Demo2","i18n.faq.demo.title.1":"常见问题文字Demo1","i18n.faq.demo.content.1":"常见问题文字Demo1","i18n.faq.demo.title.2":"常见问题图片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按钮文字Demo1","i18n.quick.button.demo.content.1":"快捷按钮文字Demo1","i18n.quick.button.demo.title.2":"快捷按钮链接Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"预览","i18n.cancel":"取消","i18n.confirm":"确定","i18n.send":"发送","i18n.transferToAgent":"转人工服务","i18n.auto.closed":"会话自动关闭","i18n.agent.closed":"客服关闭会话","i18n.online.chat":"在线客服","i18n.JOB":"工作","i18n.LANGUAGE":"语言","i18n.TOOL":"工具","i18n.WRITING":"写作","i18n.RAG":"知识库问答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工单","i18n.black.user.already.exists":"用户已拉黑","i18n.ticket.category.technical_support":"技术支持","i18n.ticket.category.service_request":"服务请求","i18n.ticket.category.consultation":"咨询","i18n.ticket.category.complaint_suggestion":"投诉建议","i18n.ticket.category.operation_maintenance":"运维","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP组件, 联系我们了解更多详情","i18n.vip.contactUs":"联系我们","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html","i18n.ticket.process.name.group":"技能组流程","i18n.ticket.process.name.group.simple":"技能组简易流程","i18n.ticket.process.name.agent":"一对一流程","i18n.username.or.password.incorrect":"用户名或密码错误","i18n.system_notification":"系统通知","i18n.transfer_notification":"会话转接请求","i18n.transfer_accepted":"会话转接已接受","i18n.transfer_rejected":"会话转接已拒绝","i18n.transfer_timeout":"会话转接请求超时","i18n.transfer_cancelled":"会话转接已取消","i18n.confirm_accept_transfer":"确定接受转接","i18n.confirm_accept_transfer_desc":"确定接受转接请求吗?","i18n.confirm_reject_transfer":"确定拒绝转接","i18n.confirm_reject_transfer_desc":"确定拒绝转接请求吗?","i18n.confirm_cancel_transfer":"确定取消转接","i18n.confirm_cancel_transfer_desc":"确定取消转接请求吗?","i18n.transfer.notice.title":"会话转接","i18n.transfer.notice.content":"客服希望将您的会话转接给其他客服","i18n.transfer.accept.notice.title":"转接已接受","i18n.transfer.accept.notice.content":"会话转接请求已被接受","i18n.transfer.reject.notice.title":"转接已拒绝","i18n.transfer.reject.notice.content":"会话转接请求已被拒绝","i18n.transfer.timeout.notice.title":"转接已超时","i18n.transfer.timeout.notice.content":"会话转接请求已超时","i18n.transfer.cancel.notice.title":"转接已取消","i18n.transfer.cancel.notice.content":"会话转接请求已取消","i18n.already.in.transfer.pending.state":"会话已处于转接等待状态","i18n.already.in.transfer.accepted.state":"会话已处于转接接受状态","i18n.already.in.transfer.rejected.state":"会话已处于转接拒绝状态","i18n.already.in.transfer.timeout.state":"会话已处于转接超时状态","i18n.already.in.transfer.canceled.state":"会话已处于转接取消状态","i18n.invite_notification":"邀请请求","i18n.invite_accepted":"邀请已接受","i18n.invite_rejected":"邀请已拒绝","i18n.invite_timeout":"邀请请求超时","i18n.invite_cancelled":"邀请已取消","i18n.confirm_accept_invite":"确定接受邀请","i18n.confirm_accept_invite_desc":"确定接受邀请请求吗?","i18n.confirm_reject_invite":"确定拒绝邀请","i18n.confirm_reject_invite_desc":"确定拒绝邀请请求吗?","i18n.visitor_invite_notification":"访客邀请","i18n.visitor_invite_accepted":"访客邀请已接受","i18n.visitor_invite_rejected":"访客邀请已拒绝","i18n.visitor_invite_timeout":"访客邀请超时","i18n.visitor_invite_cancelled":"访客邀请已取消","i18n.group_invite_notification":"群组邀请","i18n.group_invite_accepted":"群组邀请已接受","i18n.group_invite_rejected":"群组邀请已拒绝","i18n.group_invite_timeout":"群组邀请超时","i18n.group_invite_cancelled":"群组邀请已取消","i18n.kbase_invite_notification":"知识库邀请","i18n.kbase_invite_accepted":"知识库邀请已接受","i18n.kbase_invite_rejected":"知识库邀请已拒绝","i18n.kbase_invite_timeout":"知识库邀请超时","i18n.kbase_invite_cancelled":"知识库邀请已取消","i18n.organization_invite_notification":"组织邀请","i18n.organization_invite_accepted":"组织邀请已接受","i18n.organization_invite_rejected":"组织邀请已拒绝","i18n.organization_invite_timeout":"组织邀请超时","i18n.organization_invite_cancelled":"组织邀请已取消","i18n.from":"来自","i18n.to":"至","i18n.note":"备注","i18n.status":"状态","i18n.time":"时间","i18n.inviter":"邀请人","i18n.invitee":"被邀请人","i18n.visitor":"访客","i18n.group_name":"群组名称","i18n.kbase_name":"知识库名称","i18n.organization_name":"组织名称","i18n.auto.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.agent.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.accept":"接受","i18n.reject":"拒绝","i18n.user.signup.first":"请先注册","i18n.email.signup.first":"请先验证邮箱","i18n.mobile.signup.first":"请先验证手机号","i18n.resource.not.found":"资源未找到","i18n.user.disabled":"用户已被禁用","i18n.forbidden.access":"禁止访问","i18n.user.blocked":"用户已被封禁","i18n.sensitive.content":"检测到敏感内容","i18n.message.processing.failed":"消息处理失败","i18n.null.pointer.exception":"空指针异常","i18n.response.status.exception":"响应状态异常","i18n.websocket.timeout.exception":"WebSocket超时异常","i18n.http.method.not.supported":"不支持的HTTP方法","i18n.authorization.denied":"授权被拒绝","i18n.request.rejected":"请求被拒绝","i18n.entity.not.found":"实体未找到","i18n.internal.server.error":"服务器内部错误"},Xen={"message.type.text":"文本消息","message.type.image":"图片消息","message.type.file":"文件消息","message.type.voice":"语音消息","message.type.video":"视频消息","message.type.location":"位置消息","message.type.link":"链接消息","message.type.card":"卡片消息","message.type.system":"系统消息","message.type.notification":"通知消息","message.type.custom":"自定义消息","message.status.sending":"发送中","message.status.sent":"已发送","message.status.delivered":"已送达","message.status.read":"已读","message.status.failed":"发送失败","message.status.recalled":"已撤回","message.status.deleted":"已删除","message.action.send":"发送","message.action.recall":"撤回","message.action.delete":"删除","message.action.resend":"重新发送","message.action.forward":"转发","message.action.quote":"引用","message.action.copy":"复制","message.action.translate":"翻译","message.action.download":"下载","message.action.preview":"预览","message.tip.sending":"消息发送中...","message.tip.sent":"消息已发送","message.tip.delivered":"消息已送达","message.tip.read":"消息已读","message.tip.failed":"消息发送失败","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已删除","message.tip.copy.success":"复制成功","message.tip.download.start":"开始下载...","message.tip.download.success":"下载成功","message.tip.download.failed":"下载失败","message.input.placeholder":"请输入消息","message.input.send.button":"发送","message.input.emoji.button":"表情","message.input.image.button":"图片","message.input.file.button":"文件","message.input.voice.button":"语音","message.input.video.button":"视频","message.input.location.button":"位置","message.list.load.more":"加载更多","message.list.loading":"加载中...","message.list.no.more":"没有更多消息","message.list.empty":"暂无消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相关消息","message.time.just":"刚刚","message.time.minutes":"{count}分钟前","message.time.hours":"{count}小时前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}个月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超过 {size}","message.file.type.unsupported":"不支持的文件类型","message.file.uploading":"上传中...","message.file.download":"下载文件","message.file.preview":"预览文件","message.image.loading":"图片加载中","message.image.load.error":"图片加载失败","message.image.save":"保存图片","message.image.save.success":"图片保存成功","message.image.save.failed":"图片保存失败","quickreply.search.placeholder":"搜索","quickreply.button.send":"发送","quickreply.button.copy":"复制","quickreply.button.create.category":"创建分类","quickreply.button.create.reply":"创建快捷回复","quickreply.copy.success":"{content} 已复制到剪贴板","category.form.edit.title":"编辑分类","category.form.create.title":"创建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!","category.form.name.placeholder":"输入分类名称","category.create.failed":"创建分类失败","quickreply.drawer.title":"快捷回复","quickreply.form.category":"分类","quickreply.form.category.required":"请选择分类","quickreply.form.category.placeholder":"选择分类","quickreply.form.type":"类型","quickreply.form.type.required":"请选择类型","quickreply.form.type.placeholder":"选择类型","quickreply.form.title":"标题","quickreply.form.title.required":"请输入标题","quickreply.form.content":"内容","quickreply.type.text":"文本","quickreply.type.image":"图片","quickreply.type.video":"视频","quickreply.type.audio":"音频","quickreply.type.file":"文件","quickreply.upload.text":"点击或拖拽文件上传","quickreply.upload.success":"{filename} 上传成功","quickreply.upload.error":"{filename} 上传失败","quickreply.upload.uploading":"{filename} 上传中","quickreply.form.validate.error":"请检查表单"},Zen={"profile.update.success":"个人信息更新成功","profile.form.avatar":"头像","profile.form.upload":"上传","profile.form.username":"用户名","profile.form.nickname":"昵称","profile.form.description":"描述","profile.button.change.password":"修改密码","profile.button.change.email":"修改邮箱","profile.button.change.mobile":"修改手机号","profile.email.verified":"邮箱已验证","profile.email.unverified":"邮箱未验证","profile.mobile.verified":"手机已验证","profile.mobile.unverified":"手机未验证","profile.email.change.title":"修改邮箱","profile.email.placeholder":"请输入邮箱地址","profile.email.required":"请输入邮箱地址!","profile.email.format.invalid":"邮箱格式不正确","profile.email.length.limit":"邮箱不得超过50字符","profile.email.verification.code.placeholder":"请输入验证码","profile.email.verification.code.countdown":"秒后重新获取","profile.email.verification.code.get":"获取验证码","profile.email.verification.code.required":"请输入验证码!","profile.email.not.changed":"邮箱未更改!","profile.email.change.success":"邮箱修改成功!","profile.email.format.error":"邮箱格式错误","profile.mobile.change.title":"修改手机号","profile.mobile.placeholder":"请输入手机号","profile.mobile.required":"请输入手机号!","profile.mobile.format.invalid":"手机号格式错误!","profile.mobile.verification.code.placeholder":"请输入验证码","profile.mobile.verification.code.countdown":"秒后重新获取","profile.mobile.verification.code.get":"获取验证码","profile.mobile.verification.code.required":"请输入验证码!","profile.mobile.not.changed":"手机号未更改!","profile.mobile.change.success":"手机号修改成功!","profile.mobile.format.error":"手机号格式错误","profile.password.change.title":"修改密码","profile.password.old":"原密码","profile.password.old.empty":"手机号直接登录用户,可以留空","profile.password.new":"新密码","profile.password.confirm":"确认密码","profile.password.length.error":"密码最小长度不能小于6","profile.password.mismatch":"两次输入密码不一致","profile.password.change.success":"密码修改成功!"},Qen={"setting.menu.title":"设置","setting.menu.profile":"个人信息","setting.menu.basic":"基本设置","setting.menu.agent":"客服设置","setting.menu.model":"大模型","setting.menu.certification":"实名认证","setting.menu.qrcode":"二维码","setting.menu.shortcut":"快捷键","setting.menu.click":"菜单点击","setting.save.success":"设置保存成功","setting.save.error":"设置保存失败","setting.load.error":"设置加载失败","setting.header.profile":"个人信息","setting.header.basic":"基本设置","setting.header.agent":"客服设置","setting.header.model":"大模型设置","setting.basic.sound.on":"已开启消息提示音","setting.basic.sound.off":"已关闭消息提示音","setting.basic.notification.on":"已开启网络状态通知","setting.basic.notification.off":"已关闭网络状态通知","setting.basic.connection.status":"长链接状态:","setting.basic.connection.connected":"✅连接正常","setting.basic.connection.disconnected":"❌连接断开","setting.basic.startup":"开机启动:","setting.basic.startup.on":"开机启动","setting.basic.startup.off":"不开机启动","setting.basic.theme":"颜色主题:","setting.basic.language":"语言设置:","setting.basic.mode":"模式设置:","setting.basic.mode.team":"团队模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"个人模式"},Jen={"thread.error.message":"获取数据失败","thread.feature.unavailable":"TODO: 该功能暂未开放","thread.menu.top":"置顶","thread.menu.untop":"取消置顶","thread.menu.read":"标记已读","thread.menu.unread":"标记未读","thread.menu.mute":"静音","thread.menu.unmute":"取消静音","thread.menu.transfer":"转接","thread.menu.block":"拉黑","thread.menu.unblock":"取消拉黑","thread.menu.remark":"备注","thread.menu.ticket":"创建工单","thread.menu.crm":"查看CRM","thread.menu.summary":"会话总结","thread.status.robot":"[机器人]","thread.status.agent":"[一对一]","thread.status.workgroup":"[工作组]","thread.search.placeholder":"搜索会话...","thread.menu.filter":"会话过滤","thread.menu.groupThread":"群聊会话","thread.menu.robotThread":"机器人会话","thread.menu.workgroupThread":"工作组会话","thread.menu.agentThread":"一对一会话","thread.menu.ticketThread":"工单会话","thread.menu.memberThread":"成员会话","thread.menu.deviceThread":"设备会话","thread.menu.systemThread":"系统会话","thread.dropdown.create.group":"创建群聊","thread.dropdown.create.ai":"创建AI对话","thread.agent.status.online":"😀 - 在线接待","thread.agent.status.offline":"🔻 - 客服下线","thread.agent.status.busy":"🏃‍♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 松开刷新","thread.list.no.more":"没有更多了","thread.coming.soon":"即将上线,敬请期待","thread.set.success":"设置成功","thread.set.error":"设置失败","thread.menu.star":"星标","thread.menu.star.1":"星标1","thread.menu.star.2":"星标2","thread.menu.star.3":"星标3","thread.menu.star.4":"星标4","thread.menu.hide":"隐藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下线","thread.status.busy":"🏃‍♀️忙碌","thread.status.loading":"加载中...","thread.status.empty":"暂无会话","thread.status.error":"加载会话失败","thread.status.queue":"排队({count})","thread.status.network.offline":"网络已断开-234","thread.status.network.online":"网络已连接-234","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暂无消息","thread.status.message.error":"加载消息失败","thread.status.message.end":"没有更多消息","thread.status.message.typing":"正在输入...","thread.status.message.transfer":"转接中...","thread.status.message.transferred":"已转接","thread.status.message.closed":"会话已关闭","thread.menu.star.cancel":"取消星标","thread.loading.more":"加载更多..."},etn={"ticket.create.title":"创建工单","ticket.edit.title":"编辑工单","ticket.form.uid":"编号","ticket.form.title":"标题","ticket.form.title.required":"请输入工单标题","ticket.form.title.placeholder":"请输入工单标题","ticket.form.description":"描述","ticket.form.description.required":"请输入工单描述","ticket.form.description.placeholder":"请输入工单描述","ticket.form.status":"状态","ticket.form.status.required":"请选择工单状态","ticket.form.priority":"优先级","ticket.form.priority.required":"请选择优先级","ticket.form.category":"分类","ticket.form.category.required":"请选择工单分类","ticket.form.category.placeholder":"请选择工单分类","ticket.form.user":"客户","ticket.form.user.placeholder":"请选择客户","ticket.form.assignee":"处理人","ticket.form.assignee.placeholder":"请选择处理人","ticket.form.reporter":"报告人","ticket.form.reporter.placeholder":"请选择报告人","ticket.form.workgroup":"技能组","ticket.form.workgroup.required":"请选择技能组","ticket.form.workgroup.placeholder":"请选择技能组","ticket.form.department":"部门","ticket.form.department.required":"请选择部门","ticket.form.department.placeholder":"请选择部门","ticket.workgroup.load.error":"加载技能组失败","ticket.status.all":"全部状态","ticket.status.new":"待认领","ticket.status.assigned":"已分配","ticket.status.claimed":"已认领","ticket.status.unclaimed":"被退回","ticket.status.processing":"处理中","ticket.status.pending":"待处理","ticket.status.holding":"挂起","ticket.status.resumed":"恢复","ticket.status.reopened":"重新打开","ticket.status.resolved":"已解决","ticket.status.closed":"已关闭","ticket.status.cancelled":"已取消","ticket.status.label":"状态","ticket.status.escalated":"已升级","ticket.priority.all":"全部优先级","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"紧急","ticket.priority.critical":"严重","ticket.create.success":"工单创建成功","ticket.create.failed":"工单创建失败","ticket.update.success":"工单更新成功","ticket.update.failed":"工单更新失败","ticket.submit.error":"工单提交失败","ticket.delete.success":"工单删除成功","ticket.delete.error":"工单删除失败","ticket.load.error":"工单数据加载失败","ticket.submitting":"提交工单中...","ticket.list.title":"工单列表","ticket.list.empty":"暂无工单","ticket.list.search.placeholder":"搜索工单","ticket.list.filter.all":"全部工单","ticket.list.filter.my":"我的工单","ticket.list.filter.unassigned":"未分配","ticket.list.create":"创建工单","ticket.list.total":"工单总数","ticket.action.edit":"编辑","ticket.action.delete":"删除","ticket.action.assign":"分配","ticket.action.close":"关闭","ticket.action.reopen":"重新打开","ticket.action.verify":"验证","ticket.action.verify.success":"验证成功","ticket.delete.confirm":"确定要删除此工单吗?","ticket.category.load.error":"加载工单分类失败","ticket.action.invite":"邀请","ticket.conversation.title":"工单对话","ticket.conversation.empty":"请选择工单查看对话","ticket.conversation.input.placeholder":"请输入消息...","ticket.details.title":"工单详情","ticket.details.empty":"请选择工单查看详情","ticket.messages.load.error":"加载工单消息失败","ticket.message.send.error":"发送消息失败","ticket.form.thread":"关联会话","ticket.form.thread.placeholder":"选择关联会话","ticket.form.thread.none":"不关联","ticket.form.createdAt":"创建时间","ticket.form.updatedAt":"更新时间","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能组","ticket.type.department":"部门","ticket.assignee":"处理人","ticket.reporter":"报告人","ticket.type":"类型","ticket.category":"分类","ticket.steps.title":"流转过程","ticket.form.upload.button":"上传附件","ticket.upload.success":"文件上传成功","ticket.upload.failed":"文件上传失败","ticket.current.filters":"当前筛选","ticket.filter.by.status":"按状态筛选","ticket.filter.by.priority":"按优先级筛选","ticket.filter.by.assignment":"按分配筛选","ticket.filter.by.time":"按时间筛选","ticket.filter.status_all":"全部状态","ticket.filter.status_new":"待认领","ticket.filter.status_assigned":"已分配","ticket.filter.status_claimed":"已认领","ticket.filter.status_unclaimed":"被退回","ticket.filter.status_processing":"处理中","ticket.filter.status_pending":"待处理","ticket.filter.status_holding":"挂起","ticket.filter.status_resumed":"恢复","ticket.filter.status_reopened":"重新打开","ticket.filter.status_resolved":"已解决","ticket.filter.status_closed":"已关闭","ticket.filter.status_cancelled":"已取消","ticket.filter.priority_all":"全部优先级","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"紧急","ticket.filter.priority_critical":"严重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工单","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能组","ticket.filter.assignment_my_created":"我创建的","ticket.filter.assignment_my_assigned":"待我处理","ticket.filter.time_all":"全部时间","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本周","ticket.filter.time_last_week":"上周","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工单","ticket.content.number":"编号","ticket.delete.title":"删除工单","ticket.delete.content":"确定要删除此工单吗?","ticket.delete.failed":"工单删除失败","ticket.loading":"加载工单...","ticket.empty":"暂无工单","ticket.form.process":"流程","ticket.form.process.placeholder":"选择流程","ticket.process.load.error":"加载流程失败","ticket.action.claim":"认领","ticket.action.claim.todo":"TODO: 认领工单","ticket.action.process":"开始处理","ticket.action.process.todo":"TODO: 开始处理工单","ticket.action.resolve":"解决","ticket.action.resolve.todo":"TODO: 解决工单","ticket.action.pending":"待处理","ticket.action.pending.todo":"TODO: 设置工单为待处理","ticket.action.hold":"挂起","ticket.action.resume":"继续处理","ticket.action.resume.todo":"TODO: 继续处理工单","ticket.action.close.todo":"TODO: 关闭工单","ticket.action.reopen.todo":"TODO: 重新打开工单","ticket.action.escalate":"升级","ticket.action.escalate.todo":"TODO: 升级工单","ticket.action.unclaim":"退回","ticket.action.unclaim.todo":"TODO: 退回工单","ticket.action.claim.success":"工单认领成功","ticket.action.claim.confirm.title":"认领工单","ticket.action.claim.confirm.content":"确定要认领该工单吗?","ticket.action.claim.loading":"认领中...","ticket.action.claim.error":"工单认领失败","ticket.verify.title":"验证工单","ticket.verify.content":"请验证此工单","ticket.verify.pass":"通过","ticket.verify.reject":"不通过","ticket.verify.success":"工单验证通过","ticket.verify.reject.success":"工单验证未通过","ticket.verify.error":"工单验证失败","ticket.verify.later":"稍后决定","create.title":"創建工單","edit.title":"編輯工單","form.title":"標題","form.description":"描述","form.status":"狀態","form.priority":"優先級","form.category":"分類","form.category.placeholder":"請選擇分類","form.department":"部門","form.department.placeholder":"請選擇部門","form.assignee":"處理人","form.assignee.placeholder":"請選擇處理人","form.thread":"會話","form.thread.placeholder":"請選擇會話","form.thread.none":"無","form.process":"流程","form.process.placeholder":"請選擇流程","form.upload.button":"上傳文件","status.new":"新建","status.claimed":"已認領","status.processing":"處理中","status.pending":"待處理","status.holding":"掛起","status.reopened":"重新打開","status.resolved":"已解決","status.closed":"已關閉","status.cancelled":"已取消","priority.lowest":"最低","priority.low":"低","priority.medium":"中","priority.high":"高","priority.urgent":"緊急","priority.critical":"嚴重","create.success":"工單創建成功","create.failed":"工單創建失敗","update.success":"工單更新成功","update.failed":"工單更新失敗","submit.error":"工單提交失敗",submitting:"正在提交工單...","category.load.error":"加載分類失敗","department.load.error":"加載部門失敗","member.load.error":"加載成員失敗","process.load.error":"加載流程失敗","ticket.department.load.error":"加载部门失败","ticket.member.load.error":"加载部门成员失败","ticket.activity.history":"工单活动记录"},ttn={"contact.list.new":"新朋友","contact.list.device":"内网设备","contact.list.group":"群聊","contact.list.channel":"频道","contact.list.company":"企业联系人","contact.list.friend":"联系人","contact.search.placeholder":"搜索联系人...","contact.manager.button":"通讯录管理","contact.manager.coming":"敬请期待","member.detail.nickname":"昵称","member.detail.jobno":"工号","member.detail.seatno":"座位号","member.detail.telephone":"电话","member.detail.loading":"加载中...","member.detail.chat.button":"开始聊天"},ntn={"group.create.title":"发起群聊","group.create.contacts":"好友","group.create.members":"群成员","group.create.members.min":"至少选择2名成员","group.create.creating":"创建群组中...","group.create.org.empty":"未选择组织","group.create.success":"创建群组成功","group.create.failed":"创建群组失败","group.create.loading":"加载成员中...","group.create.error":"加载成员失败"},rtn={"robot.create.title":"创建机器人","robot.create.available":"可选机器人","robot.create.selected":"已选机器人","robot.create.success":"创建机器人成功","robot.create.failed":"创建机器人失败","robot.create.loading":"创建机器人中...","robot.create.error":"加载机器人失败","robot.create.empty":"暂无可用机器人","robot.create.min":"请至少选择一个机器人","robot.list.add":"添加机器人","robot.list.chat":"聊天","robot.list.edit":"编辑","robot.list.delete":"删除"},itn={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},atn={"upload.modal.title":"上传文件","upload.drag.text":"点击或拖拽文件至此处上传","upload.drag.hint":"支持单个或批量上传","upload.uploading":"{filename} 上传中...","upload.success":"{filename} 上传成功","upload.failed":"{filename} 上传失败","upload.delete.confirm":"确定要删除此文件吗?","upload.preview.image":"图片预览","upload.preview.file":"文件预览","upload.button.ok":"确定","upload.button.cancel":"取消","upload.maxCount":"最多只能上传 {maxCount} 个文件","upload.maxSize":"文件大小不能超过 {maxSize}MB"},otn={"welcome.modal.title":"未发现所在组织","welcome.modal.description":"您需要创建或加入已有组织","welcome.modal.join":"加入已有组织(即将上线)","welcome.modal.create":"创建组织","welcome.modal.input.placeholder":"请输入组织名称","welcome.message.org.required":"请创建或加入组织","welcome.message.create.success":"创建组织成功","welcome.message.create.failed":"创建组织失败","welcome.message.verify.email":"请先验证邮箱","welcome.message.verify.mobile":"请先验证手机号","welcome.message.org.name.required":"请输入组织名称","welcome.message.org.creating":"创建组织中,请稍后...","welcome.verify.modal.title":"账号验证提示","welcome.verify.modal.description":"您的邮箱和手机号尚未验证,为保障账号安全,建议您尽快完成验证。","welcome.verify.now":"立即验证","welcome.verify.later":"稍后验证"},stn={...Uen,...Wen,...Ven,...qen,...Ken,...Gen,...Yen,...zen,...Xen,...Hen,...Zen,...Qen,...Jen,...etn,...Ben,...ttn,...ntn,...rtn,...itn,...atn,...otn},ltn={i18_file_assistant:"檔案助手",slogan:"对话即服务","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"客服助手","chat.right.quickreply":"快捷回复/知识库","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服機器人",MARKETING:"營銷機器人",KNOWLEDGEBASE:"知識庫機器人(内部)",QA:"問答機器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"載入中",create:"新增",creating:"新增中...","create.success":"新增成功","create.fail":"新增失敗",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失敗",save:"儲存",saving:"正在儲存...",email:"電子郵件","email.verified":"電子郵件(已驗證)","email.unverified":"電子郵件(待驗證)",mobile:"手機號碼","mobile.verified":"手機號碼(已驗證)","mobile.unverified":"手機號碼(待驗證)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登入用戶名(修改用戶名之後,需要重新登入)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"匯入",export:"匯出","download.template":"下载模板",open:"開啟",copy:"複製","copy.success":"複製成功",ok:"確定",cancel:"取消",bind:"綁定",edit:"編輯",editing:"編輯中...","edit.success":"編輯成功","edit.fail":"編輯失敗",delete:"刪除",deleting:"删除中...",deleteTip:"刪除提示",deleteAffirm:"確定要刪除","delete.success":"刪除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"預覽",close:"關閉",closing:"關閉中...",closeTip:"關閉提示",closeASure:"確定要關閉","close.success":"關閉成功",choose:"選擇","leavemsg.enabled":"留言啟用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"无客服在线",invite:"邀请","invite.success":"邀请成功","invite.fail":"邀请失败","invite.reason":"邀请原因","invite.no.agent":"无客服在线"},ctn={"menu.anonymous.title":"匿名模式","menu.anonymous.home":"訊息","menu.anonymous.contact":"聯絡人","menu.anonymous.robot":"機器人","menu.anonymous.setting":"設定","menu.anonymous.status":"匿名狀態","menu.anonymous.status.tip":"匿名模式僅支援同一區域網內的在線設備之間的通訊","menu.anonymous.login.tip":"登入以訪問離線訊息和更多功能","menu.anonymous.login":"登入","menu.anonymous.current.users":"當前用戶","menu.dashboard.chat":"聊天","menu.dashboard.contact":"聯絡人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"筆記","menu.dashboard.kbase":"知識庫","menu.dashboard.mine":"設定","menu.dashboard.queue":"排隊","menu.dashboard.ticket":"工單","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"訪客","menu.dashboard.monitor":"監控","menu.dashboard.plugins":"插件","menu.dashboard.quality":"質檢","menu.settings":"設定","menu.settings.logout":"登出","menu.agent.status":"客服狀態","menu.agent.status.available":"可用","menu.agent.status.rest":"休息","menu.agent.status.offline":"離線","menu.language":"語言","menu.mode":"模式","menu.mode.team":"團隊模式","menu.mode.agent":"一對一模式","menu.mode.personal":"個人模式","menu.agent.offline.warning":"請在離線前結束所有正在進行中的會話","menu.mode.personal.coming":"即將推出..."},utn={"pages.login.title":"登錄","pages.login.subtitle":"歡迎使用微語客服系統","pages.layouts.userLayout.title":"對話即服務","pages.login.accountLogin.tab":"帳戶密碼登錄","pages.login.accountLogin.errorMessage":"錯誤的用戶名和密碼","pages.login.failure":"登錄失敗,請檢查用戶名密碼!","pages.login.failureCode":"驗證碼錯誤","pages.login.success":"登錄成功!","pages.login.username.placeholder":"請輸入用戶名","pages.login.username.required":"用戶名是必填項!","pages.login.password.placeholder":"請輸入密碼","pages.login.repassword.placeholder":"確認密碼","pages.login.password.required":"密碼是必填項!","pages.login.repassword.required":"確認密碼是必填項!","pages.login.phoneLogin.tab":"手機號登錄","pages.login.phoneLogin.errorMessage":"驗證碼錯誤","pages.login.phoneNumber.placeholder":"請輸入手機號!","pages.login.phoneNumber.required":"手機號是必填項!","pages.login.phoneNumber.invalid":"不合法的手機號!","pages.login.captcha.placeholder":"請輸入驗證碼!","pages.login.captcha.required":"驗證碼是必填項!","pages.login.phoneLogin.getVerificationCode":"獲取驗證碼","pages.login.anonymousLogin":"匿名登錄","pages.getCaptchaSecondText":"秒後重新獲取","pages.login.scanLogin.tab":"掃碼登錄","pages.login.rememberMe":"自動登錄","pages.login.forgot":"忘記密碼","pages.login.submit":"登錄","pages.login.loginWith":"其他登錄方式 :","pages.login.register":"註冊賬號","pages.login.registerAccount":" 註冊帳戶","pages.login.auto.register":"未註冊手機號會自動註冊","pages.welcome.link":"歡迎使用","pages.welcome.title":"歡迎","pages.welcome.description":"微語客服系統是一個開源的客服系統","pages.welcome.getting-started":"開始使用","pages.welcome.view-docs":"查看文檔","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"刪除","pages.robot.upload":"上傳","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知識庫","pages.robot.tab.channel":"渠道對接","pages.robot.tab.statistic":"數據統計","pages.robot.tab.advanced":"高級設置","pages.robot.tab.flow":"流程設計","pages.robot.tab.avatar":"頭像","pages.robot.tab.title":"標題","pages.robot.tab.welcomeTip":"歡迎語","pages.robot.tab.description":"簡介","pages.robot.tab.preview":"實時預覽","pages.robot.tab.website":"官網","pages.robot.tab.helpdesk":"幫助文檔","pages.robot.tab.icp":"京ICP備案 17041763號-1","pages.robot.tab.police":"粵公安備案 44030502008688號","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"問答","pages.robot.kb.web":"網站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件類型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"刪除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上傳中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件內容","pages.setting":"設置","pages.logout":"退出登錄","pages.footer.website":"微語官網","pages.footer.helpcenter":"帮助文档","pages.login.remember":"記住密碼","pages.agent.tab.basic":"基本信息","pages.agent.robot":"機器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常見問題","pages.advanced.quickButton":"快捷按鈕","pages.advanced.faqGuess":"智能推薦","pages.advanced.faqHot":"熱門問題","pages.advanced.faqShortcut":"快捷回覆","pages.advanced.rate":"滿意度評價","pages.advanced.autoreply":"自動回覆","pages.advanced.leaveMsg":"留言設置","pages.advanced.survey":"調查問卷","pages.advanced.history":"歷史記錄","pages.advanced.inputAssociation":"輸入聯想","pages.advanced.antiHarassment":"驗證碼設置","pages.advanced.captcha":"驗證碼設置","pages.advanced.showPreForm":"顯示預覽","pages.advanced.showHistory":"顯示歷史","pages.advanced.showInputAssociation":"顯示輸入聯想","pages.advanced.showCaptcha":"顯示驗證碼","pages.login.country.placeholder":"選擇國家/地區","pages.login.country.china":"中國大陸","pages.login.country.hongkong":"中國香港","pages.login.country.taiwan":"中國台灣","pages.login.country.macao":"中國澳門","pages.login.country.japan":"日本","pages.login.country.korea":"韓國","pages.login.country.usa":"美國","pages.login.country.canada":"加拿大","pages.login.country.uk":"英國","pages.login.country.germany":"德國","pages.login.country.france":"法國","pages.login.country.australia":"澳大利亞","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"馬來西亞","pages.login.country.thailand":"泰國","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律賓","pages.login.country.indonesia":"印度尼西亞","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄羅斯","pages.login.country.newzealand":"新西蘭","block.title":"拉黑設置","block.type":"拉黑類型","block.user":"拉黑用戶","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"請選擇封禁結束時間","pages.register.title":"註冊","pages.register.subtitle":"創建您的賬號","pages.register.username":"用戶名","pages.register.password":"密碼","pages.register.confirm":"確認密碼","pages.register.email":"郵箱","pages.register.mobile":"手機號","pages.register.code":"驗證碼","pages.register.agreement":"我已閱讀並同意","pages.register.agreement.terms":"服務條款","pages.register.submit":"註冊","pages.register.login":"使用已有賬號登錄","pages.404.title":"404","pages.404.subtitle":"抱歉,您訪問的頁面不存在","pages.404.description":"您可以嘗試以下操作:","pages.404.actions.back":"返回上一頁","pages.404.actions.home":"返回首頁","pages.403.title":"403","pages.403.subtitle":"抱歉,您沒有訪問該頁面的權限","pages.403.description":"請聯繫管理員獲取權限","pages.403.actions.back":"返回上一頁","pages.500.title":"500","pages.500.subtitle":"抱歉,服務器出錯了","pages.500.description":"請稍後再試或聯繫技術支持","pages.500.actions.back":"返回上一頁","pages.500.actions.home":"返回首頁"},dtn={"app.title":"微語","app.logout":"登出","app.copyright.produced":"微語出品","app.preview.down.block":"下載此頁面到本地項目","app.welcome.link.fetch-blocks":"獲取全部區塊","app.welcome.link.block-list":"基於 block 開發,快速構建標準頁面","navBar.lang":"語言","layout.user.link.help":"幫助","layout.user.link.privacy":"隱私","layout.user.link.terms":"條款","theme.light":"淺色","theme.dark":"深色","theme.system":"自動","setting.lang":"Languages","setting.theme":"主題","app.name":"微語客服","app.description":"新一代智能客服系統","app.welcome":"歡迎使用微語客服系統","app.copyright":"© 2024 微語客服. 保留所有權利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"確認","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"編輯","app.action.delete":"刪除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"設置","app.action.help":"幫助","app.tip.loading":"加載中...","app.tip.success":"操作成功","app.tip.error":"操作失敗","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"確認要執行此操作嗎?","app.tip.nodata":"暫無數據","app.tip.network.error":"網絡連接失敗","app.tip.server.error":"服務器錯誤","app.status.online":"在線","app.status.offline":"離線","app.status.busy":"忙碌","app.status.away":"離開","app.status.invisible":"隱身","app.status.disabled":"已禁用","app.status.expired":"已過期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"剛剛","app.time.minutes":"{count} 分鐘前","app.time.hours":"{count} 小時前","app.time.days":"{count} 天前","app.file.upload":"上傳文件","app.file.download":"下載文件","app.file.preview":"預覽文件","app.file.size.limit":"文件大小不能超過 {size}","app.file.type.unsupported":"不支持的文件類型","app.file.upload.success":"上傳成功","app.file.upload.failed":"上傳失敗","app.file.download.success":"下載成功","app.file.download.failed":"下載失敗","app.layout.sidebar.collapse":"收起側邊欄","app.layout.sidebar.expand":"展開側邊欄","app.layout.header.profile":"個人中心","app.layout.header.logout":"退出登錄","app.layout.footer.copyright":"版權所有","app.layout.footer.terms":"服務條款","app.layout.footer.privacy":"隱私政策","category.form.title":"新建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!"},ftn={"auth.login.title":"登錄","auth.login.subtitle":"歡迎使用微語客服系統","auth.login.username":"用戶名","auth.login.username.required":"請輸入用戶名","auth.login.password":"密碼","auth.login.password.required":"請輸入密碼","auth.login.remember":"記住密碼","auth.login.forgot":"忘記密碼?","auth.login.submit":"登錄","auth.login.other":"其他登錄方式","auth.login.register":"註冊賬號","auth.login.success":"登錄成功","auth.login.failed":"登錄失敗","auth.register.title":"註冊","auth.register.subtitle":"創建新賬號","auth.register.username":"用戶名","auth.register.username.required":"請輸入用戶名","auth.register.email":"郵箱","auth.register.email.required":"請輸入郵箱","auth.register.password":"密碼","auth.register.password.required":"請輸入密碼","auth.register.confirm":"確認密碼","auth.register.confirm.required":"請確認密碼","auth.register.submit":"註冊","auth.register.login":"已有賬號?登錄","auth.register.success":"註冊成功","auth.register.failed":"註冊失敗","auth.forgot.title":"忘記密碼","auth.forgot.subtitle":"重置密碼","auth.forgot.email":"郵箱","auth.forgot.email.required":"請輸入郵箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登錄","auth.forgot.success":"重置密碼郵件已發送","auth.forgot.failed":"重置密碼失敗","auth.reset.title":"重置密碼","auth.reset.subtitle":"設置新密碼","auth.reset.password":"新密碼","auth.reset.password.required":"請輸入新密碼","auth.reset.confirm":"確認密碼","auth.reset.confirm.required":"請確認新密碼","auth.reset.submit":"提交","auth.reset.success":"密碼重置成功","auth.reset.failed":"密碼重置失敗","auth.verify.code":"驗證碼","auth.verify.code.required":"請輸入驗證碼","auth.verify.code.send":"發送驗證碼","auth.verify.code.resend":"重新發送","auth.verify.code.success":"驗證碼發送成功","auth.verify.code.failed":"驗證碼發送失敗","auth.password.strength.weak":"密碼強度:弱","auth.password.strength.medium":"密碼強度:中","auth.password.strength.strong":"密碼強度:強","auth.agreement.text":"我已閱讀並同意","auth.agreement.terms":"服務條款","auth.agreement.privacy":"隱私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"幫助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢復默認雲服務器","server.custom.enable":"啟用自定義服務器","server.api.url.label":"API服務器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服務器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"請輸入正確的服務器地址"},ptn={"chat.title":"會話","chat.empty":"暫無會話","chat.loading":"加載中...","chat.load.error":"加載失敗","chat.load.more":"加載更多","chat.no.more":"沒有更多了","chat.refresh":"刷新","chat.status.connecting":"連接中...","chat.status.connected":"已連接","chat.status.disconnected":"連接斷開","chat.status.reconnecting":"重新連接中...","chat.network.error":"網絡連接失敗,請檢查網絡","chat.thread.closing":"結束會話中...","chat.thread.close.success":"結束會話成功","chat.thread.close.failed":"結束會話失敗","chat.thread.close.confirm.title":"確定要結束會話?","chat.rate.invite.confirm.title":"確認要邀請評價?","chat.message.send.failed":"發送失敗","chat.message.resend":"重新發送","chat.message.recall":"撤回消息","chat.message.copy.success":"複製成功","chat.copy.success":"複製成功","chat.menu.copy":"複製","chat.menu.translate":"翻譯","chat.menu.recall":"撤回","chat.menu.enlarge":"放大閱讀","chat.menu.quickreply.add":"添加快捷回復...","chat.menu.browser.open":"瀏覽器打開","chat.menu.forward":"轉發...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.menu.ai":"問AI","chat.menu.quickreply.search":"搜索知識庫","chat.input.placeholder":"請輸入內容, Ctrl+V 粘貼截圖/圖片","chat.translation.placeholder":"請輸入翻譯內容...","chat.input.send":"發送","chat.input.sending":"發送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"圖片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截圖","chat.toolbar.autoreply":"自動回復","chat.toolbar.audio":"錄音","chat.toolbar.webrtc":"視頻會話","chat.upload.size.limit":"文件大小不能超過 {size}","chat.upload.type.unsupported":"不支持的文件類型","chat.upload.failed":"上傳失敗","chat.upload.success":"上傳成功","chat.upload.progress":"上傳中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"來電...","chat.webrtc.connected":"通話中...","chat.webrtc.ended":"通話結束","chat.webrtc.rejected":"對方拒絕","chat.webrtc.busy":"對方忙","chat.webrtc.failed":"通話失敗","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒絕","chat.webrtc.hangup":"掛斷","chat.navbar.transfer":"轉接","chat.navbar.close":"結束","chat.navbar.note":"筆記","chat.navbar.kbase":"知識庫","chat.right.quickreply":"快捷回覆","chat.right.userinfo":"訪客信息","chat.right.ai":"客服助手","chat.right.ticket":"工單","chat.right.llm":"大模型","chat.right.docview":"文檔查看","chat.right.group":"群組信息","chat.right.member":"成員信息","chat.group.notice":"群公告","chat.group.members":"群成員","chat.group.admins":"管理員","chat.group.robots":"機器人","chat.group.qrcode":"二維碼","chat.group.uid.error":"群組ID錯誤","chat.header.group.unnamed":"未命名群組","chat.header.member.unnamed":"未命名成員","chat.header.robot.unnamed":"未命名機器人","chat.header.user.unnamed":"未命名用戶","chat.header.typing":"正在輸入...","chat.header.no.message":"暫無消息","chat.header.action.transfer":"轉接","chat.header.action.invite":"邀請","chat.header.action.create.ticket":"創建工單","chat.header.action.close":"結束","chat.header.action.exit":"退出","chat.header.type.not.supported":"當前聊天類型不支持"},htn={"common.confirm":"確認","common.cancel":"取消","common.submit":"提交","common.reset":"重置","common.save":"保存","common.delete":"刪除","common.edit":"編輯","common.add":"添加","common.search":"搜索","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.loading":"加載中...","common.success":"操作成功","common.failed":"操作失敗","common.error":"錯誤","common.warning":"警告","common.info":"提示","common.status.online":"在線","common.status.offline":"離線","common.status.busy":"忙碌","common.status.away":"離開","common.status.invisible":"隱身","common.operation.success":"操作成功","common.operation.failed":"操作失敗","common.operation.confirm":"確認要執行此操作嗎?","common.operation.processing":"處理中...","common.operation.completed":"處理完成","common.operation.error":"處理出錯","common.form.required":"此項為必填項","common.form.optional":"選填","common.form.invalid":"輸入無效","common.form.validate.error":"表單驗證失敗","common.form.validate.success":"表單驗證通過","common.refresh":"刷新"},mtn={"customer.list.title":"客戶列表","customer.list.empty":"暫無客戶","customer.list.loading":"加載中...","customer.list.load.error":"加載失敗","customer.list.load.more":"加載更多","customer.list.no.more":"沒有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"暱稱","customer.info.gender":"性別","customer.info.age":"年齡","customer.info.birthday":"生日","customer.info.mobile":"手機號","customer.info.email":"郵箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"職位","customer.info.remark":"備註","customer.info.tags":"標籤","customer.info.extra":"其他信息","customer.info.source":"來源","customer.info.created":"創建時間","customer.info.updated":"更新時間","customer.status.online":"在線","customer.status.offline":"離線","customer.status.away":"離開","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"編輯","customer.action.delete":"刪除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"轉移","customer.action.merge":"合併","customer.action.export":"導出","customer.form.name":"姓名","customer.form.name.required":"請輸入姓名","customer.form.nickname":"暱稱","customer.form.gender":"性別","customer.form.age":"年齡","customer.form.birthday":"生日","customer.form.mobile":"手機號","customer.form.email":"郵箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"職位","customer.form.remark":"備註","customer.form.tags":"標籤","customer.form.source":"來源","customer.create.success":"客戶創建成功","customer.create.failed":"客戶創建失敗","customer.update.success":"客戶更新成功","customer.update.failed":"客戶更新失敗","customer.delete.success":"客戶刪除成功","customer.delete.failed":"客戶刪除失敗","customer.block.success":"客戶拉黑成功","customer.block.failed":"客戶拉黑失敗","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失敗","customer.transfer.success":"客戶轉移成功","customer.transfer.failed":"客戶轉移失敗","customer.merge.success":"客戶合併成功","customer.merge.failed":"客戶合併失敗","customer.export.success":"客戶導出成功","customer.export.failed":"客戶導出失敗","black.title":"拉黑設置","black.type":"拉黑類型","black.type.required":"請選擇至少一種拉黑類型","black.user":"拉黑用戶","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"請選擇拉黑截至時間","black.reason":"拉黑原因","black.reason.required":"請輸入拉黑原因","black.reason.placeholder":"請輸入拉黑原因","black.success":"拉黑成功","customer.info.browser":"瀏覽器資訊","customer.info.os":"作業系統資訊","customer.info.device":"裝置資訊","customer.info.browse.record":"瀏覽記錄","customer.info.tag":"標籤資訊","customer.info.load.error":"載入訪客資訊失敗","customer.basic.title":"基本資訊","customer.basic.nickname":"暱稱","customer.basic.empty":"無","customer.basic.edit":"編輯","customer.basic.update.success":"更新成功","customer.basic.update.failed":"更新失敗","customer.basic.note":"備註"},gtn={"dashboard.menu.overview":"總覽","dashboard.menu.workbench":"工作台","dashboard.menu.monitor":"監控台","dashboard.menu.workplace":"工作區","dashboard.menu.message":"消息中心","dashboard.menu.settings":"系統設置","dashboard.overview.title":"總覽","dashboard.overview.total.conversations":"總會話數","dashboard.overview.total.customers":"總客戶數","dashboard.overview.total.tickets":"總工單數","dashboard.overview.total.agents":"總客服數","dashboard.overview.online.agents":"在線客服","dashboard.overview.waiting.customers":"排隊訪客","dashboard.overview.avg.response.time":"平均響應時間","dashboard.overview.avg.handle.time":"平均處理時間","dashboard.stats.title":"數據統計","dashboard.stats.realtime":"實時數據","dashboard.stats.today":"今日統計","dashboard.stats.yesterday":"昨日統計","dashboard.stats.week":"本週統計","dashboard.stats.month":"本月統計","dashboard.stats.custom":"自定義時段","dashboard.workbench.online":"在線狀態","dashboard.workbench.offline":"離線狀態","dashboard.workbench.busy":"忙碌狀態","dashboard.workbench.away":"離開狀態","dashboard.workbench.auto.distribution":"自動分配","dashboard.workbench.manual.distribution":"手動分配","dashboard.workbench.max.session":"最大會話數","dashboard.workbench.current.session":"當前會話數","dashboard.monitor.system":"系統監控","dashboard.monitor.performance":"性能監控","dashboard.monitor.network":"網絡監控","dashboard.monitor.server":"服務器狀態","dashboard.monitor.database":"數據庫狀態","dashboard.monitor.cache":"緩存狀態","dashboard.monitor.queue":"隊列狀態","dashboard.workplace.quick.start":"快速開始","dashboard.workplace.recent":"最近訪問","dashboard.workplace.todo":"待辦事項","dashboard.workplace.announcement":"系統公告","dashboard.workplace.calendar":"工作日曆","dashboard.workplace.links":"常用鏈接","dashboard.message.all":"全部消息","dashboard.message.unread":"未讀消息","dashboard.message.system":"系統消息","dashboard.message.business":"業務消息","dashboard.message.operation":"運營消息","dashboard.monitor.title":"實時監控","dashboard.monitor.online.status":"在線狀態","dashboard.monitor.conversation.status":"會話狀態","dashboard.monitor.queue.status":"排隊狀態","dashboard.monitor.system.status":"系統狀態","dashboard.monitor.refresh":"刷新","dashboard.monitor.auto.refresh":"自動刷新","dashboard.analysis.title":"數據分析","dashboard.analysis.conversation.trend":"會話趨勢","dashboard.analysis.customer.trend":"客戶趨勢","dashboard.analysis.ticket.trend":"工單趨勢","dashboard.analysis.satisfaction.trend":"滿意度趨勢","dashboard.analysis.time.range":"時間範圍","dashboard.analysis.export":"導出數據","dashboard.workplace.title":"工作台","dashboard.workplace.my.conversations":"我的會話","dashboard.workplace.my.tickets":"我的工單","dashboard.workplace.my.tasks":"我的任務","dashboard.workplace.my.performance":"我的績效","dashboard.workplace.quick.actions":"快捷操作","dashboard.workplace.announcements":"公告通知","dashboard.report.title":"統計報表","dashboard.report.conversation":"會話報表","dashboard.report.customer":"客戶報表","dashboard.report.ticket":"工單報表","dashboard.report.agent":"客服報表","dashboard.report.satisfaction":"滿意度報表","dashboard.report.export":"導出報表","dashboard.chart.today":"今日","dashboard.chart.yesterday":"昨日","dashboard.chart.last7days":"最近7天","dashboard.chart.last30days":"最近30天","dashboard.chart.thisMonth":"本月","dashboard.chart.lastMonth":"上月","dashboard.chart.custom":"自定義","dashboard.chart.loading":"加載中...","dashboard.chart.no.data":"暫無數據","dashboard.tip.refresh.success":"刷新成功","dashboard.tip.refresh.failed":"刷新失敗","dashboard.tip.export.success":"導出成功","dashboard.tip.export.failed":"導出失敗","dashboard.tip.data.loading":"數據加載中...","dashboard.tip.data.load.failed":"數據加載失敗"},vtn={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.all":"全部","i18n.queue.tip":"排隊隊列","i18n.queue.message.template":"當前排隊人數:{0},大約等待時間:{1} 分鐘","i18n.queue.empty":"隊列為空","i18n.queue.accept":"接入","i18n.system.notification":"系統通知","i18n.system.notification.tip":"系統通知","i18n.old.password.wrong":"舊密碼錯誤","i18n.change.password":"修改密碼","i18n.auth.captcha.send.success":"驗證碼發送成功","i18n.auth.captcha.error":"驗證碼錯誤","i18n.auth.captcha.expired":"驗證碼過期","i18n.auth.captcha.already.send":"驗證碼已發送,請等待","i18n.auth.captcha.validate.failed":"驗證碼驗證失敗","i18n.faq":"常見問題","i18n.rate":"評價","i18n.input.placeholder":"請輸入內容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在輸入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀請評價","i18n.ticket":"[工單]","i18n.ticket.thread":"[工單會話]","i18n.DEPT_ALL":"全部","i18n.DEPT_ADMIN":"管理員","i18n.DEPT_MEMBER":"所有成员","i18n.DEPT_CS":"客服部",ROLE_SUPER:"超級管理員",ROLE_ADMIN:"管理員",ROLE_MEMBER:"成员",ROLE_AGENT:"客服",ROLE_USER:"用戶",ROLE_VISITOR:"訪客","i18n.notice":"通知","i18n.notice.title":"通知標題","i18n.notice.content":"通知內容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.login_notification":"登錄通知","i18n.login_time":"登錄時間","i18n.login_ip":"登錄IP","i18n.login_location":"登錄地點","i18n.if_not_you_please_change_password":"如果這不是您的操作,請立即修改密碼。","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理員","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技術部","i18n.DEPT.MONEY":"財務部","i18n.DEPT.MARKETING":"市場部","i18n.DEPT.SALES":"銷售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"圖片","i18n.thread.content.file":"文件","i18n.top.tip":"默認置顶語","i18n.top.make":"置頂","i18n.top.cancel":"取消置頂","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开-456","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"無客服在線,請留言","i18n.welcome.tip":"您好,有什麼可以幫您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"開發中...","i18n.user.description":"默認用戶描述","i18n.robot.nickname":"默認機器人","i18n.robot.description":"默認機器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一個聰明、對人類有幫助的人工智能,你可以對人類提出的問題給出有用、詳細、禮貌的回答","i18n.agent.nickname":"默認客服","i18n.agent.description":"默認客服描述","i18n.workgroup.nickname":"預設技能組","i18n.workgroup.before.nickname":"售前技能組","i18n.workgroup.after.nickname":"售后技能組","i18n.workgroup.description":"預設技能組描述","i18n.workgroup.description.before":"售前技能組描述","i18n.workgroup.description.after":"售后技能組描述","i18n.contact":"詢問聯繫方式","i18n.thanks":"感謝","i18n.welcome":"問候","i18n.bye":"告別","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开-456","i18n.tip.network.connected":"网络已连接-456","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的話請您提供一下您的聯繫電話","i18n.contact.content":"方便的話請您提供一下您的聯繫電話,我電話給您溝通一下,這樣更加直觀","i18n.thanks.title":"感謝光臨","i18n.thanks.content":"感謝光臨,歡迎再來","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什麼可以幫您的","i18n.bye.title":"您的滿意一直是我們的目標","i18n.bye.content":"您的滿意一直是我們的目標,如果有任何疑問歡迎您隨時聯繫","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"常見問題分類Demo1","i18n.faq.category.demo.2":"常見問題分類Demo2","i18n.faq.demo.title.1":"常見問題文字Demo1","i18n.faq.demo.content.1":"常見問題文字Demo1","i18n.faq.demo.title.2":"常見問題圖片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.content.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.title.2":"快捷按鈕連結Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"預覽","i18n.cancel":"取消","i18n.confirm":"確定","i18n.send":"發送","i18n.transferToAgent":"轉人工服務","i18n.auto.closed":"會話自動關閉","i18n.agent.closed":"客服關閉會話","i18n.online.chat":"在線客服","i18n.JOB":"工作","i18n.LANGUAGE":"語言","i18n.TOOL":"工具","i18n.WRITING":"寫作","i18n.RAG":"知識庫問答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工單","i18n.black.user.already.exists":"用戶已拉黑","i18n.ticket.category.technical_support":"技術支持","i18n.ticket.category.service_request":"服務請求","i18n.ticket.category.consultation":"咨詢","i18n.ticket.category.complaint_suggestion":"投訴建議","i18n.ticket.category.operation_maintenance":"運維","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP組件, 聯繫我們了解更多詳情","i18n.vip.contactUs":"聯繫我們","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html","i18n.ticket.process.name.group":"技能組流程","i18n.ticket.process.name.group.simple":"技能組簡易流程","i18n.ticket.process.name.agent":"一對一流程","i18n.username.or.password.incorrect":"用戶名或密碼不正確","i18n.system_notification":"系統通知","i18n.transfer_notification":"會話轉接請求","i18n.transfer_accepted":"會話轉接已接受","i18n.transfer_rejected":"會話轉接已拒絕","i18n.transfer_timeout":"會話轉接請求超時","i18n.transfer_cancelled":"會話轉接已取消","i18n.confirm_accept_transfer":"确定接受转接","i18n.confirm_accept_transfer_desc":"确定接受转接请求吗?","i18n.confirm_reject_transfer":"确定拒绝转接","i18n.confirm_reject_transfer_desc":"确定拒绝转接请求吗?","i18n.confirm_cancel_transfer":"确定取消转接","i18n.confirm_cancel_transfer_desc":"确定取消转接请求吗?","i18n.transfer.notice.title":"会话转接","i18n.transfer.notice.content":"客服希望将您的会话转接给其他客服","i18n.transfer.accept.notice.title":"转接已接受","i18n.transfer.accept.notice.content":"会话转接请求已被接受","i18n.transfer.reject.notice.title":"转接已拒绝","i18n.transfer.reject.notice.content":"会话转接请求已被拒绝","i18n.transfer.timeout.notice.title":"转接已超时","i18n.transfer.timeout.notice.content":"会话转接请求已超时","i18n.transfer.cancel.notice.title":"转接已取消","i18n.transfer.cancel.notice.content":"会话转接请求已取消","i18n.already.in.transfer.pending.state":"会话已处于转接等待状态","i18n.already.in.transfer.accepted.state":"会话已处于转接接受状态","i18n.already.in.transfer.rejected.state":"会话已处于转接拒绝状态","i18n.already.in.transfer.timeout.state":"会话已处于转接超时状态","i18n.already.in.transfer.canceled.state":"会话已处于转接取消状态","i18n.invite_notification":"邀請請求","i18n.invite_accepted":"邀請已接受","i18n.invite_rejected":"邀請已拒絕","i18n.invite_timeout":"邀請請求超時","i18n.invite_cancelled":"邀請已取消","i18n.confirm_accept_invite":"确定接受邀请","i18n.confirm_accept_invite_desc":"确定接受邀请请求吗?","i18n.confirm_reject_invite":"确定拒绝邀请","i18n.confirm_reject_invite_desc":"确定拒绝邀请请求吗?","i18n.visitor_invite_notification":"訪客邀請","i18n.visitor_invite_accepted":"訪客邀請已接受","i18n.visitor_invite_rejected":"訪客邀請已拒絕","i18n.visitor_invite_timeout":"訪客邀請超時","i18n.visitor_invite_cancelled":"訪客邀請已取消","i18n.group_invite_notification":"群組邀請","i18n.group_invite_accepted":"群組邀請已接受","i18n.group_invite_rejected":"群組邀請已拒絕","i18n.group_invite_timeout":"群組邀請超時","i18n.group_invite_cancelled":"群組邀請已取消","i18n.kbase_invite_notification":"知識庫邀請","i18n.kbase_invite_accepted":"知識庫邀請已接受","i18n.kbase_invite_rejected":"知識庫邀請已拒絕","i18n.kbase_invite_timeout":"知識庫邀請超時","i18n.kbase_invite_cancelled":"知識庫邀請已取消","i18n.organization_invite_notification":"組織邀請","i18n.organization_invite_accepted":"組織邀請已接受","i18n.organization_invite_rejected":"組織邀請已拒絕","i18n.organization_invite_timeout":"組織邀請超時","i18n.organization_invite_cancelled":"組織邀請已取消","i18n.from":"來自","i18n.to":"至","i18n.note":"备注","i18n.status":"状态","i18n.time":"時間","i18n.inviter":"邀請人","i18n.invitee":"被邀請人","i18n.visitor":"訪客","i18n.group_name":"群組名稱","i18n.kbase_name":"知識庫名稱","i18n.organization_name":"組織名稱","i18n.auto.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.agent.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.accept":"接受","i18n.reject":"拒絕","i18n.user.signup.first":"請先註冊","i18n.email.signup.first":"請先驗證郵箱","i18n.mobile.signup.first":"請先驗證手機號","i18n.resource.not.found":"資源未找到","i18n.user.disabled":"用戶已被禁用","i18n.forbidden.access":"禁止訪問","i18n.user.blocked":"用戶已被封禁","i18n.sensitive.content":"檢測到敏感內容","i18n.message.processing.failed":"訊息處理失敗","i18n.null.pointer.exception":"空指針異常","i18n.response.status.exception":"響應狀態異常","i18n.websocket.timeout.exception":"WebSocket超時異常","i18n.http.method.not.supported":"不支持的HTTP方法","i18n.authorization.denied":"授權被拒絕","i18n.request.rejected":"請求被拒絕","i18n.entity.not.found":"實體未找到","i18n.internal.server.error":"伺服器內部錯誤"},ytn={"message.type.text":"文本消息","message.type.image":"圖片消息","message.type.file":"文件消息","message.type.voice":"語音消息","message.type.video":"視頻消息","message.type.location":"位置消息","message.type.link":"鏈接消息","message.type.card":"卡片消息","message.type.system":"系統消息","message.type.notification":"通知消息","message.type.custom":"自定義消息","message.status.sending":"發送中","message.status.sent":"已發送","message.status.delivered":"已送達","message.status.read":"已讀","message.status.failed":"發送失敗","message.status.recalled":"已撤回","message.status.deleted":"已刪除","quickreply.search.placeholder":"搜索","quickreply.button.send":"發送","quickreply.button.copy":"複製","quickreply.button.create.category":"創建分類","quickreply.button.create.reply":"創建快捷回復","quickreply.copy.success":"{content} 已複製到剪貼板","category.form.edit.title":"編輯分類","category.form.create.title":"創建分類","category.form.name":"分類名稱","category.form.name.required":"請輸入分類名稱!","category.form.name.placeholder":"輸入分類名稱","category.create.failed":"創建分類失敗","quickreply.drawer.title":"{isEdit, select, true {編輯快捷回復} other {新建快捷回復}}","quickreply.form.category":"分類","quickreply.form.category.required":"請選擇分類","quickreply.form.category.placeholder":"選擇分類","quickreply.form.type":"類型","quickreply.form.type.required":"請選擇類型","quickreply.form.type.placeholder":"選擇類型","quickreply.form.title":"標題","quickreply.form.title.required":"請輸入標題","quickreply.form.content":"內容","quickreply.type.text":"文本","quickreply.type.image":"圖片","quickreply.type.video":"視頻","quickreply.type.audio":"音頻","quickreply.type.file":"文件","quickreply.upload.text":"點擊或拖拽文件上傳","quickreply.upload.success":"{filename} 上傳成功","quickreply.upload.error":"{filename} 上傳失敗","quickreply.upload.uploading":"{filename} 上傳中","quickreply.form.validate.error":"請檢查表單","message.action.send":"發送","message.action.recall":"撤回","message.action.delete":"刪除","message.action.resend":"重新發送","message.action.forward":"轉發","message.action.quote":"引用","message.action.copy":"複製","message.action.translate":"翻譯","message.action.download":"下載","message.action.preview":"預覽","message.tip.sending":"消息發送中...","message.tip.sent":"消息已發送","message.tip.delivered":"消息已送達","message.tip.read":"消息已讀","message.tip.failed":"消息發送失敗","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已刪除","message.tip.copy.success":"複製成功","message.tip.download.start":"開始下載...","message.tip.download.success":"下載成功","message.tip.download.failed":"下載失敗","message.input.placeholder":"請輸入消息","message.input.send.button":"發送","message.input.emoji.button":"表情","message.input.image.button":"圖片","message.input.file.button":"文件","message.input.voice.button":"語音","message.input.video.button":"視頻","message.input.location.button":"位置","message.list.load.more":"加載更多","message.list.loading":"加載中...","message.list.no.more":"沒有更多消息","message.list.empty":"暫無消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相關消息","message.time.just":"剛剛","message.time.minutes":"{count}分鐘前","message.time.hours":"{count}小時前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}個月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超過 {size}","message.file.type.unsupported":"不支持的文件類型","message.file.uploading":"上傳中...","message.file.download":"下載文件","message.file.preview":"預覽文件","message.image.loading":"圖片加載中","message.image.load.error":"圖片加載失敗","message.image.save":"保存圖片","message.image.save.success":"圖片保存成功","message.image.save.failed":"圖片保存失敗"},btn={"profile.update.success":"個人信息更新成功","profile.form.avatar":"頭像","profile.form.upload":"上傳","profile.form.username":"用戶名","profile.form.nickname":"暱稱","profile.form.description":"描述","profile.button.change.password":"修改密碼","profile.button.change.email":"修改郵箱","profile.button.change.mobile":"修改手機號","profile.email.verified":"郵箱已驗證","profile.email.unverified":"郵箱未驗證","profile.mobile.verified":"手機已驗證","profile.mobile.unverified":"手機未驗證","profile.email.change.title":"修改郵箱","profile.email.placeholder":"請輸入郵箱地址","profile.email.required":"請輸入郵箱地址!","profile.email.format.invalid":"郵箱格式不正確","profile.email.length.limit":"郵箱不得超過50字符","profile.email.verification.code.placeholder":"請輸入驗證碼","profile.email.verification.code.countdown":"秒後重新獲取","profile.email.verification.code.get":"獲取驗證碼","profile.email.verification.code.required":"請輸入驗證碼!","profile.email.not.changed":"郵箱未更改!","profile.email.change.success":"郵箱修改成功!","profile.email.format.error":"郵箱格式錯誤","profile.mobile.change.title":"修改手機號","profile.mobile.placeholder":"請輸入手機號","profile.mobile.required":"請輸入手機號!","profile.mobile.format.invalid":"手機號格式錯誤!","profile.mobile.verification.code.placeholder":"請輸入驗證碼","profile.mobile.verification.code.countdown":"秒後重新獲取","profile.mobile.verification.code.get":"獲取驗證碼","profile.mobile.verification.code.required":"請輸入驗證碼!","profile.mobile.not.changed":"手機號未更改!","profile.mobile.change.success":"手機號修改成功!","profile.mobile.format.error":"手機號格式錯誤","profile.password.change.title":"修改密碼","profile.password.old":"原密碼","profile.password.old.empty":"手機號直接登錄用戶,可以留空","profile.password.new":"新密碼","profile.password.confirm":"確認密碼","profile.password.length.error":"密碼最小長度不能小於6","profile.password.mismatch":"兩次輸入密碼不一致","profile.password.change.success":"密碼修改成功!"},wtn={"setting.menu.title":"設置","setting.menu.profile":"個人信息","setting.menu.basic":"基本設置","setting.menu.agent":"客服設置","setting.menu.model":"大模型","setting.menu.certification":"實名認證","setting.menu.qrcode":"二維碼","setting.menu.shortcut":"快捷鍵","setting.menu.click":"菜單點擊","setting.save.success":"設置保存成功","setting.save.error":"設置保存失敗","setting.load.error":"設置加載失敗","setting.header.profile":"個人信息","setting.header.basic":"基本設置","setting.header.agent":"客服設置","setting.header.model":"大模型設置","setting.basic.sound.on":"已開啟消息提示音","setting.basic.sound.off":"已關閉消息提示音","setting.basic.notification.on":"已開啟網絡狀態通知","setting.basic.notification.off":"已關閉網絡狀態通知","setting.basic.connection.status":"長鏈接狀態:","setting.basic.connection.connected":"✅連接正常","setting.basic.connection.disconnected":"❌連接斷開","setting.basic.startup":"開機啟動:","setting.basic.startup.on":"開機啟動","setting.basic.startup.off":"不開機啟動","setting.basic.theme":"顏色主題:","setting.basic.language":"語言設置:","setting.basic.mode":"模式設置:","setting.basic.mode.team":"團隊模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"個人模式"},xtn={"thread.error.message":"獲取數據失敗","thread.feature.unavailable":"TODO: 該功能暫未開放","thread.menu.top":"置頂","thread.menu.untop":"取消置頂","thread.menu.read":"標記已讀","thread.menu.unread":"標記未讀","thread.menu.mute":"靜音","thread.menu.unmute":"取消靜音","thread.menu.transfer":"轉接","thread.menu.block":"拉黑","thread.menu.remark":"備註","thread.menu.ticket":"創建工單","thread.menu.crm":"查看CRM","thread.menu.summary":"會話總結","thread.menu.filter":"會話過濾","thread.menu.groupThread":"群聊會話","thread.menu.robotThread":"機器人會話","thread.menu.workgroupThread":"工作組會話","thread.menu.agentThread":"一對一會話","thread.menu.ticketThread":"工單會話","thread.menu.memberThread":"成員會話","thread.menu.deviceThread":"設備會話","thread.menu.systemThread":"系統會話","thread.status.robot":"[機器人]","thread.status.agent":"[一對一]","thread.status.workgroup":"[工作組]","thread.search.placeholder":"搜索會話...","thread.dropdown.create.group":"創建群聊","thread.dropdown.create.ai":"創建AI對話","thread.agent.status.online":"😀 - 在線接待","thread.agent.status.offline":"🔻 - 客服下線","thread.agent.status.busy":"🏃‍♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 鬆開刷新","thread.list.no.more":"沒有更多了","thread.coming.soon":"即將上線,敬請期待","thread.set.success":"設置成功","thread.set.error":"設置失敗","thread.menu.star":"星標","thread.menu.star.1":"星標1","thread.menu.star.2":"星標2","thread.menu.star.3":"星標3","thread.menu.star.4":"星標4","thread.menu.hide":"隱藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下線","thread.status.busy":"🏃‍♀️忙碌","thread.status.loading":"加載中...","thread.status.empty":"暫無會話","thread.status.error":"加載會話失敗","thread.status.queue":"排隊({count})","thread.status.network.offline":"網絡已斷開","thread.status.network.online":"網絡已連接","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暫無消息","thread.status.message.error":"加載消息失敗","thread.status.message.end":"沒有更多消息","thread.status.message.typing":"正在輸入...","thread.status.message.transfer":"轉接中...","thread.status.message.transferred":"已轉接","thread.status.message.closed":"會話已關閉","thread.menu.star.cancel":"取消星標","thread.loading.more":"加載更多..."},Stn={"ticket.create.title":"創建工單","ticket.edit.title":"編輯工單","ticket.form.uid":"編號","ticket.form.title":"標題","ticket.form.title.required":"請輸入工單標題","ticket.form.title.placeholder":"請輸入工單標題","ticket.form.description":"描述","ticket.form.description.required":"請輸入工單描述","ticket.form.description.placeholder":"請輸入工單描述","ticket.form.status":"狀態","ticket.form.status.required":"請選擇工單狀態","ticket.form.priority":"優先級","ticket.form.priority.required":"請選擇優先級","ticket.form.category":"分類","ticket.form.category.required":"請選擇工單分類","ticket.form.category.placeholder":"請選擇工單分類","ticket.form.user":"客戶","ticket.form.user.placeholder":"請選擇客戶","ticket.form.assignee":"處理人","ticket.form.assignee.placeholder":"請選擇處理人","ticket.form.reporter":"報告人","ticket.form.reporter.placeholder":"請選擇報告人","ticket.form.workgroup":"技能組","ticket.form.workgroup.required":"請選擇技能組","ticket.form.workgroup.placeholder":"請選擇技能組","ticket.form.department":"部門","ticket.form.department.required":"請選擇部門","ticket.form.department.placeholder":"請選擇部門","ticket.workgroup.load.error":"加載技能組失敗","ticket.status.all":"全部狀態","ticket.status.new":"待认领","ticket.status.assigned":"已分配","ticket.status.claimed":"已认领","ticket.status.unclaimed":"被退回","ticket.status.processing":"處理中","ticket.status.pending":"待處理","ticket.status.holding":"掛起","ticket.status.resumed":"恢復","ticket.status.reopened":"重新打開","ticket.status.resolved":"已解決","ticket.status.closed":"已關閉","ticket.status.cancelled":"已取消","ticket.status.label":"狀態","ticket.status.escalated":"已升級","ticket.priority.all":"全部優先級","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"緊急","ticket.priority.critical":"嚴重","ticket.create.success":"工單創建成功","ticket.create.failed":"工單創建失敗","ticket.update.success":"工單更新成功","ticket.update.failed":"工單更新失敗","ticket.submit.error":"工單提交失敗","ticket.delete.success":"工單刪除成功","ticket.delete.error":"工單刪除失敗","ticket.load.error":"工單數據加載失敗","ticket.messages.load.error":"工單消息加載失敗","ticket.message.send.error":"消息發送失敗","ticket.category.load.error":"分類加載失敗","ticket.submitting":"提交工单中...","ticket.list.title":"工單列表","ticket.list.empty":"暫無工單","ticket.list.search.placeholder":"搜索工單","ticket.list.create":"創建工單","ticket.list.total":"工單總數","ticket.action.edit":"編輯","ticket.action.delete":"刪除","ticket.action.assign":"分配","ticket.action.close":"關閉","ticket.action.reopen":"重新打開","ticket.action.verify":"驗證","ticket.action.verify.success":"驗證成功","ticket.delete.confirm":"確定要刪除此工單嗎?","ticket.action.invite":"邀請","ticket.conversation.title":"工單對話","ticket.conversation.empty":"請選擇工單查看對話","ticket.conversation.input.placeholder":"請輸入消息...","ticket.details.title":"工單詳情","ticket.details.empty":"請選擇工單查看詳情","ticket.category.technical_support":"技術支持","ticket.category.service_request":"服務請求","ticket.category.consultation":"咨詢","ticket.category.complaint_suggestion":"投訴建議","ticket.category.operation_maintenance":"運維","ticket.category.other":"其他","ticket.form.thread":"關聯會話","ticket.form.thread.placeholder":"選擇關聯會話","ticket.form.thread.none":"不關聯","ticket.form.createdAt":"創建時間","ticket.form.updatedAt":"更新時間","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能組","ticket.type.department":"部門","ticket.assignee":"處理人","ticket.reporter":"報告人","ticket.type":"類型","ticket.category":"分類","ticket.steps.title":"轉移過程","ticket.filter.by.status":"按狀態篩選","ticket.filter.by.priority":"按優先級篩選","ticket.filter.by.assignment":"按分配篩選","ticket.filter.by.time":"按時間篩選","ticket.filter.status_all":"全部狀態","ticket.filter.status_new":"待认领","ticket.filter.status_assigned":"已分配","ticket.filter.status_claimed":"已认领","ticket.filter.status_unclaimed":"被退回","ticket.filter.status_processing":"處理中","ticket.filter.status_pending":"待處理","ticket.filter.status_holding":"掛起","ticket.filter.status_resumed":"恢復","ticket.filter.status_reopened":"重新打開","ticket.filter.status_resolved":"已解決","ticket.filter.status_closed":"已關閉","ticket.filter.status_cancelled":"已取消","ticket.filter.priority_all":"全部優先級","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"緊急","ticket.filter.priority_critical":"嚴重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工單","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能組","ticket.filter.assignment_my_created":"我創建的","ticket.filter.assignment_my_assigned":"待我處理","ticket.filter.time_all":"全部時間","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本週","ticket.filter.time_last_week":"上週","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工單","ticket.content.number":"編號","ticket.delete.title":"刪除工單","ticket.delete.content":"確定要刪除此工單嗎?","ticket.delete.failed":"工單刪除失敗","ticket.loading":"加載工單...","ticket.empty":"暫無工單","ticket.form.process":"流程","ticket.form.process.placeholder":"選擇流程","ticket.process.load.error":"加載流程失敗","ticket.action.claim":"認領","ticket.action.claim.todo":"TODO: 認領工單","ticket.action.process":"開始處理","ticket.action.process.todo":"TODO: 開始處理工單","ticket.action.resolve":"解決","ticket.action.resolve.todo":"TODO: 解決工單","ticket.action.pending":"待處理","ticket.action.pending.todo":"TODO: 設置工單為待處理","ticket.action.hold":"掛起","ticket.action.hold.todo":"TODO: 設置工單為掛起","ticket.action.resume":"繼續處理","ticket.action.resume.todo":"TODO: 繼續處理工單","ticket.action.close.todo":"TODO: 關閉工單","ticket.action.reopen.todo":"TODO: 重新打開工單","ticket.action.escalate":"升級","ticket.action.escalate.todo":"TODO: 升級工單","ticket.action.unclaim":"退回","ticket.action.unclaim.todo":"TODO: 退回工單","ticket.action.claim.success":"工單認領成功","ticket.action.claim.confirm.title":"認領工單","ticket.action.claim.confirm.content":"確定要認領該工單嗎?","ticket.action.claim.loading":"認領中...","ticket.action.claim.error":"工單認領失敗","ticket.verify.title":"驗證工單","ticket.verify.content":"請驗證此工單","ticket.verify.pass":"通過","ticket.verify.reject":"不通過","ticket.verify.success":"工單驗證通過","ticket.verify.reject.success":"工單驗證未通過","ticket.verify.error":"工單驗證失敗","ticket.verify.later":"稍後決定","ticket.department.load.error":"加载部门失败","ticket.member.load.error":"加载部门成员失败","ticket.activity.history":"工单活动记录"},Ctn={"contact.list.new":"新朋友","contact.list.device":"內網設備","contact.list.group":"群聊","contact.list.channel":"頻道","contact.list.company":"企業聯繫人","contact.list.friend":"聯繫人","contact.search.placeholder":"搜索聯繫人...","contact.manager.button":"通訊錄管理","contact.manager.coming":"敬請期待","member.detail.nickname":"暱稱","member.detail.jobno":"工號","member.detail.seatno":"座位號","member.detail.telephone":"電話","member.detail.loading":"加載中...","member.detail.chat.button":"開始聊天"},_tn={"group.create.title":"發起群聊","group.create.contacts":"好友","group.create.members":"群成員","group.create.members.min":"至少選擇2名成員","group.create.creating":"創建群組中...","group.create.org.empty":"未選擇組織","group.create.success":"創建群組成功","group.create.failed":"創建群組失敗","group.create.loading":"加載成員中...","group.create.error":"加載成員失敗"},ktn={"robot.list.add":"添加智能體","robot.list.loading":"加載中","robot.list.delete.confirm":"刪除【{name}】?","robot.list.deleting":"刪除中","robot.list.delete.success":"刪除成功","robot.list.update.success":"更新成功","robot.list.create.success":"創建成功","robot.list.chat":"對話","robot.list.edit":"編輯","robot.list.delete":"刪除","robot.list.create":"創建"},Etn={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},$tn={"upload.modal.title":"上傳文件","upload.drag.text":"點擊或拖拽文件至此處上傳","upload.drag.hint":"支持單個或批量上傳","upload.uploading":"{filename} 上傳中...","upload.success":"{filename} 上傳成功","upload.failed":"{filename} 上傳失敗","upload.delete.confirm":"確定要刪除此文件嗎?","upload.preview.image":"圖片預覽","upload.preview.file":"文件預覽","upload.button.ok":"確定","upload.button.cancel":"取消","upload.maxCount":"最多只能上傳 {maxCount} 個文件","upload.maxSize":"文件大小不能超過 {maxSize}MB"},Mtn={"welcome.modal.title":"未發現所在組織","welcome.modal.description":"您需要創建或加入已有組織","welcome.modal.join":"加入已有組織(即將上線)","welcome.modal.create":"創建組織","welcome.modal.input.placeholder":"請輸入組織名稱","welcome.message.org.required":"請創建或加入組織","welcome.message.create.success":"創建組織成功","welcome.message.create.failed":"創建組織失敗","welcome.message.verify.email":"請先驗證郵箱","welcome.message.verify.mobile":"請先驗證手機號","welcome.message.org.name.required":"請輸入組織名稱","welcome.message.org.creating":"創建組織中,請稍後...","welcome.verify.modal.title":"賬號驗證提示","welcome.verify.modal.description":"您的郵箱和手機號尚未驗證,為保障賬號安全,建議您儘快完成驗證。","welcome.verify.now":"立即驗證","welcome.verify.later":"稍後驗證"},Ttn={...dtn,...ftn,...ptn,...htn,...mtn,...gtn,...vtn,...ctn,...ytn,...utn,...btn,...wtn,...xtn,...Stn,...ltn,...Ctn,..._tn,...ktn,...Etn,...$tn,...Mtn},Ptn={"app.title":"Bytedesk","app.logout":"Logout","app.copyright.produced":"Produced by Bytedesk.com","app.preview.down.block":"Download this page to your local project","app.welcome.link.fetch-blocks":"Get all block","app.welcome.link.block-list":"Quickly build standard, pages based on `block` development","footbar.network.normal":"Network Normal","footbar.network.disconnected":"Network Disconnected","footbar.anonymous.tip":"Anonymous mode, only supports communication between online devices in the same LAN","footbar.login.tip":"After login, supports offline messages and more features","footbar.login.skip":"Skip Login","footbar.anonymous.status":"Anonymous","footbar.login":"Login","footbar.logout":"Logout","footbar.logout.title":"Logout","footbar.logout.confirm":"Are you sure to logout?","footbar.serving.count":"Current serving count","footbar.serving.text":"Current serving: 0","category.form.title":"New Category","category.form.name":"category name","category.form.name.required":"please enter category name!"},Otn={"common.confirm":"Confirm","common.cancel":"Cancel","navBar.lang":"Languages","layout.user.link.help":"Help","layout.user.link.privacy":"Privacy","layout.user.link.terms":"Terms","theme.light":"Light","theme.dark":"Dark","theme.system":"System","common.refresh":"Refresh"},Rtn={"chat.copy.success":"Copy successful","chat.network.error":"Network connection failed, please check network","chat.thread.closing":"Ending conversation...","chat.thread.close.success":"Conversation ended successfully","chat.thread.close.confirm.title":"Are you sure to end the conversation?","chat.rate.invite.confirm.title":"Confirm to invite rating?","chat.menu.copy":"Copy","chat.menu.translate":"Translate","chat.menu.recall":"Recall","chat.menu.enlarge":"Enlarge","chat.menu.quickreply.add":"Add Quick Reply...","chat.menu.browser.open":"Open in Browser","chat.menu.forward":"Forward...","chat.menu.collect":"Collect","chat.menu.quote":"Quote","chat.menu.ai":"Ask AI","chat.menu.quickreply.search":"Search Kbase","chat.translation.placeholder":"Please enter translation content...","chat.input.placeholder":"Please enter content, Ctrl+V to paste screenshot/image","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.screenshot":"Screenshot","chat.toolbar.autoreply":"Auto Reply","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Video Call","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.invite.rate":"Invite Rating","chat.navbar.transfer":"Transfer","chat.navbar.close":"End","chat.navbar.note":"Notebase","chat.navbar.kbase":"Knowledge Base","chat.right.quickreply":"Quick Reply","chat.right.userinfo":"User Info","chat.right.ai":"Copilot","chat.right.ticket":"Ticket","chat.right.llm":"LLM","chat.right.group":"Group Info","chat.right.member":"Member Info","chat.right.docview":"Doc View","chat.group.notice":"Notice","chat.group.members":"Members","chat.group.admins":"Admins","chat.group.robots":"Robots","chat.group.qrcode":"QR Code","chat.group.uid.error":"Group ID error","chat.header.group.unnamed":"Unnamed Group","chat.header.member.unnamed":"Unnamed Member","chat.header.robot.unnamed":"Unnamed Robot","chat.header.user.unnamed":"Unnamed User","chat.header.typing":"Typing...","chat.header.no.message":"No messages yet","chat.header.action.transfer":"Transfer","chat.header.action.invite":"Invite","chat.header.action.create.ticket":"Create Ticket","chat.header.action.close":"Close","chat.header.action.exit":"Exit","chat.header.type.not.supported":"Current chat type not supported"},Itn={"dashboard.error.message":"Failed to get data","dashboard.init.organization":"Initializing organization","dashboard.init.profile":"Initializing profile","dashboard.init.workgroups":"Initializing workgroups","dashboard.init.agent":"Initializing agent profile","dashboard.transfer.accept":"{nickname} has accepted the transfer","dashboard.transfer.reject":"{nickname} has rejected the transfer","dashboard.transfer.success":"Transfer request sent successfully, waiting for response"},jtn={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"Chat","menu.dashboard.contact":"Contact","menu.dashboard.ai":"AI Assistant","menu.dashboard.note":"Notebase","menu.dashboard.kbase":"Knowledge","menu.dashboard.mine":"Settings","menu.dashboard.queue":"Queue","menu.dashboard.ticket":"Tickets","menu.dashboard.leavemsg":"Messages","menu.dashboard.visitor":"Visitors","menu.dashboard.monitor":"Monitor","menu.dashboard.plugins":"Plugins","menu.dashboard.quality":"Quality","menu.settings":"Settings","menu.settings.logout":"Logout","menu.agent.status":"Agent Status","menu.agent.status.available":"Available","menu.agent.status.rest":"Rest","menu.agent.status.offline":"Offline","menu.language":"Language","menu.mode":"Mode","menu.mode.team":"Team Mode","menu.mode.agent":"Agent Mode","menu.mode.personal":"Personal Mode","menu.agent.offline.warning":"Please end all ongoing conversations before going offline","menu.mode.personal.coming":"Coming soon..."},Ntn={"profile.update.success":"Profile updated successfully","profile.form.avatar":"Avatar","profile.form.upload":"Upload","profile.form.username":"Username","profile.form.nickname":"Nickname","profile.form.description":"Description","profile.button.change.password":"Change Password","profile.button.change.email":"Change Email","profile.button.change.mobile":"Change Mobile","profile.email.verified":"Email Verified","profile.email.unverified":"Email Unverified","profile.mobile.verified":"Mobile Verified","profile.mobile.unverified":"Mobile Unverified","profile.email.change.title":"Change Email","profile.email.placeholder":"Enter email address","profile.email.required":"Please enter email address!","profile.email.format.invalid":"Invalid email format","profile.email.length.limit":"Email cannot exceed 50 characters","profile.email.verification.code.placeholder":"Enter verification code","profile.email.verification.code.countdown":"seconds","profile.email.verification.code.get":"Get Code","profile.email.verification.code.required":"Please enter verification code!","profile.email.not.changed":"Email is not changed!","profile.email.change.success":"Email changed successfully!","profile.email.format.error":"Invalid email format","profile.mobile.change.title":"Change Mobile","profile.mobile.placeholder":"Enter mobile number","profile.mobile.required":"Please enter mobile number!","profile.mobile.format.invalid":"Invalid mobile format","profile.mobile.verification.code.placeholder":"Enter verification code","profile.mobile.verification.code.countdown":"seconds","profile.mobile.verification.code.get":"Get Code","profile.mobile.verification.code.required":"Please enter verification code!","profile.mobile.not.changed":"Mobile number is not changed!","profile.mobile.change.success":"Mobile number changed successfully!","profile.mobile.format.error":"Invalid mobile format","profile.password.change.title":"Change Password","profile.password.old":"Old Password","profile.password.old.empty":"Old password can be empty for phone login users","profile.password.new":"New Password","profile.password.confirm":"Confirm Password","profile.password.length.error":"Password must be at least 6 characters","profile.password.mismatch":"The two passwords do not match","profile.password.change.success":"Password changed successfully!"},Atn={"setting.menu.title":"Settings","setting.menu.profile":"Profile","setting.menu.basic":"Basic Settings","setting.menu.agent":"Agent Settings","setting.menu.model":"AI Model","setting.menu.certification":"Certification","setting.menu.qrcode":"QR Code","setting.menu.shortcut":"Shortcuts","setting.menu.click":"Menu clicked","setting.save.success":"Settings saved successfully","setting.save.error":"Failed to save settings","setting.load.error":"Failed to load settings","setting.header.profile":"Personal Profile","setting.header.basic":"Basic Settings","setting.header.agent":"Agent Settings","setting.header.model":"AI Model Settings","setting.basic.sound.on":"Message Sound On","setting.basic.sound.off":"Message Sound Off","setting.basic.notification.on":"Network Status Notification On","setting.basic.notification.off":"Network Status Notification Off","setting.basic.connection.status":"Connection Status:","setting.basic.connection.connected":"✅Connected","setting.basic.connection.disconnected":"❌Disconnected","setting.basic.startup":"Start on Boot:","setting.basic.startup.on":"Enable","setting.basic.startup.off":"Disable","setting.basic.theme":"Theme:","setting.basic.language":"Language:","setting.basic.mode":"Mode:","setting.basic.mode.team":"Team Mode","setting.basic.mode.agent":"Agent Mode","setting.basic.mode.personal":"Personal Mode"},Dtn={"ticket.create.title":"Create Ticket","ticket.edit.title":"Edit Ticket","ticket.form.uid":"UID","ticket.form.title":"Title","ticket.form.title.required":"Please enter ticket title","ticket.form.title.placeholder":"Enter ticket title","ticket.form.description":"Description","ticket.form.description.required":"Please enter ticket description","ticket.form.description.placeholder":"Enter ticket description","ticket.form.status":"Status","ticket.form.status.required":"Please select ticket status","ticket.form.priority":"Priority","ticket.form.priority.required":"Please select priority","ticket.form.category":"Category","ticket.form.category.required":"Please select category","ticket.form.category.placeholder":"Select category","ticket.form.user":"Customer","ticket.form.user.placeholder":"Select customer","ticket.form.assignee":"Assignee","ticket.form.assignee.placeholder":"Select assignee","ticket.form.reporter":"Reporter","ticket.form.reporter.placeholder":"Select reporter","ticket.form.workgroup":"Workgroup","ticket.form.workgroup.required":"Please select workgroup","ticket.form.workgroup.placeholder":"Select workgroup","ticket.form.department":"Department","ticket.form.department.required":"Please select department","ticket.form.department.placeholder":"Select department","ticket.form.thread":"Related Conversation","ticket.form.thread.placeholder":"Select related conversation","ticket.form.thread.none":"No Association","ticket.create.success":"Ticket created successfully","ticket.create.failed":"Failed to create ticket","ticket.update.success":"Ticket updated successfully","ticket.update.failed":"Failed to update ticket","ticket.submit.error":"Failed to submit ticket","ticket.delete.success":"Ticket deleted successfully","ticket.delete.error":"Failed to delete ticket","ticket.load.error":"Failed to load tickets","ticket.messages.load.error":"Failed to load ticket messages","ticket.message.send.error":"Failed to send message","ticket.workgroup.load.error":"Failed to load workgroups","ticket.category.load.error":"Failed to load categories","ticket.submitting":"Ticket Submitting","ticket.list.title":"Tickets","ticket.list.empty":"No tickets found","ticket.list.search.placeholder":"Search tickets","ticket.list.create":"Create Ticket","ticket.list.total":"Total","ticket.action.edit":"Edit","ticket.action.delete":"Delete","ticket.action.assign":"Assign","ticket.action.close":"Close","ticket.action.reopen":"Reopen","ticket.action.verify":"Verify","ticket.action.verify.success":"Verify successfully","ticket.delete.confirm":"Are you sure to delete this ticket?","ticket.action.invite":"Invite","ticket.conversation.title":"Conversation","ticket.conversation.empty":"Select a ticket to view conversation","ticket.conversation.input.placeholder":"Type your message...","ticket.details.title":"Ticket Details","ticket.details.empty":"Select a ticket to view details","ticket.form.createdAt":"Created At","ticket.form.updatedAt":"Updated At","ticket.type.agent":"Agent","ticket.type.workgroup":"Workgroup","ticket.type.department":"Department","ticket.type":"Type","ticket.assignee":"Assignee","ticket.reporter":"Reporter","ticket.category":"Category","ticket.steps.title":"Processing Steps","ticket.form.upload.button":"Upload Attachments","ticket.upload.success":"File uploaded successfully","ticket.upload.failed":"File upload failed","ticket.current.filters":"Current Filters","ticket.filter.by.status":"Filter by Status","ticket.filter.by.priority":"Filter by Priority","ticket.filter.by.assignment":"Filter by Assignment","ticket.filter.by.time":"Filter by Time","ticket.filter.status_all":"All Status","ticket.filter.status_new":"Unassigned","ticket.filter.status_assigned":"Assigned","ticket.filter.status_claimed":"Claimed","ticket.filter.status_unclaimed":"Unclaimed","ticket.filter.status_processing":"In Progress","ticket.filter.status_pending":"Pending","ticket.filter.status_holding":"On Hold","ticket.filter.status_resumed":"Resumed ","ticket.filter.status_reopened":"Reopened","ticket.filter.status_resolved":"Resolved","ticket.filter.status_closed":"Closed","ticket.filter.status_cancelled":"Cancelled","ticket.filter.priority_all":"All Priority","ticket.filter.priority_lowest":"Lowest","ticket.filter.priority_low":"Low","ticket.filter.priority_medium":"Medium","ticket.filter.priority_high":"High","ticket.filter.priority_urgent":"Urgent","ticket.filter.priority_critical":"Critical","ticket.filter.assignment_all":"All","ticket.filter.assignment_my_tickets":"My Tickets","ticket.filter.assignment_unassigned":"Unassigned","ticket.filter.assignment_my_workgroup":"My Workgroup","ticket.filter.assignment_my_created":"Created by Me","ticket.filter.assignment_my_assigned":"Assigned to Me","ticket.filter.time_all":"All Time","ticket.filter.time_today":"Today","ticket.filter.time_yesterday":"Yesterday","ticket.filter.time_this_week":"This Week","ticket.filter.time_last_week":"Last Week","ticket.filter.time_this_month":"This Month","ticket.filter.time_last_month":"Last Month","ticket.content.title":"Ticket","ticket.content.number":"No.","ticket.delete.title":"Delete Ticket","ticket.delete.content":"Are you sure you want to delete this ticket?","ticket.delete.failed":"Failed to delete ticket","ticket.loading":"Loading tickets...","ticket.empty":"No tickets found","ticket.form.process":"Process","ticket.form.process.placeholder":"Select process","ticket.process.load.error":"Failed to load processes","ticket.status.label":"Status","ticket.status.new":"Unassigned","ticket.status.assigned":"Assigned","ticket.status.claimed":"Claimed","ticket.status.unclaimed":"Unclaimed","ticket.status.processing":"In Progress","ticket.status.pending":"Pending","ticket.status.holding":"Holding","ticket.status.resumed":"Resumed","ticket.status.reopened":"Reopened","ticket.status.resolved":"Resolved","ticket.status.escalated":"Escalated","ticket.status.closed":"Closed","ticket.status.cancelled":"Cancelled","ticket.action.claim":"Claim","ticket.action.claim.todo":"TODO: Claim ticket","ticket.action.process":"Start Process","ticket.action.process.todo":"TODO: Start process ticket","ticket.action.resolve":"Resolve","ticket.action.resolve.todo":"TODO: Resolve ticket","ticket.action.pending":"Pending","ticket.action.pending.todo":"TODO: Set ticket to pending","ticket.action.hold":"Hold","ticket.action.hold.todo":"TODO: Set ticket to hold","ticket.action.resume":"Resume","ticket.action.resume.todo":"TODO: Resume ticket","ticket.action.close.todo":"TODO: Close ticket","ticket.action.reopen.todo":"TODO: Reopen ticket","ticket.action.escalate":"Escalate","ticket.action.escalate.todo":"TODO: Escalate ticket","ticket.action.unclaim":"Unclaim","ticket.action.unclaim.todo":"TODO: Unclaim ticket","ticket.action.claim.confirm.title":"Claim Ticket","ticket.action.claim.confirm.content":"Are you sure you want to claim this ticket?","ticket.action.claim.loading":"Claiming ticket...","ticket.action.claim.success":"Ticket claimed successfully","ticket.action.claim.error":"Failed to claim ticket","ticket.verify.title":"Verify Ticket","ticket.verify.content":"Please verify this ticket","ticket.verify.pass":"Pass","ticket.verify.reject":"Reject","ticket.verify.success":"Ticket verified successfully","ticket.verify.reject.success":"Ticket rejected successfully","ticket.verify.error":"Failed to verify ticket","ticket.verify.later":"Decide Later","ticket.priority.lowest":"Lowest","ticket.priority.low":"Low","ticket.priority.medium":"Medium","ticket.priority.high":"High","ticket.priority.urgent":"Urgent","ticket.priority.critical":"Critical","ticket.department.load.error":"Failed to load departments","ticket.member.load.error":"Failed to load members","ticket.activity.history":"Ticket Activity History"},Ftn={i18_file_assistant:"File Assistant",slogan:"Chat As A Service","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Webrtc","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.screenshot":"Screenshot","chat.toolbar.invite.rate":"InviteRate","chat.toolbar.autoreply":"AutoReply","chat.toolbar.autoreply.on":"AutoReply(On)","chat.navbar.transfer":"Transfer","chat.navbar.ticket":"Ticket","chat.navbar.crm":"Crm","chat.navbar.close":"Close","chat.navbar.category":"Category","chat.navbar.ai":"AI","chat.navbar.queue":"Queue","chat.right.ai":"Copilot","chat.right.quickreply":"QuickReply","chat.right.ticket":"Ticket","chat.right.userinfo":"UserInfo","chat.right.llm":"Llm","chat.right.docview":"DocView","chat.right.group":"Group","chat.right.member":"Member","chat.ai.summary":"Thread Summary","chat.ai.switch":"Switch","chat.thread.nomore":"No More","chat.message.loadmore":"Load More","dashboard.footbar.logout":"Logout",SERVICE:"Customer Service Robot",MARKETING:"Marketing Robot",KNOWLEDGEBASE:"Knowledgebase Robot",QA:"QA Robot",AGENT_ASSISTANT:"Agent Asistant",loading:"Loading",create:"Create",creating:"Creating","create.success":"Create success","create.fail":"Create fail",update:"Update",updating:"Updating","update.success":"Update success","update.fail":"Update fail",save:"Save",saving:"Saving",email:"Email","email.verified":"Email Verified","email.unverified":"Email Unverified",mobile:"Mobile","mobile.verified":"Mobile Verified","mobile.unverified":"Mobile Unverified",captcha:"Captcha",logging:"Logging","login.success":"Login Success","login.error":"Login Failed",registering:"Registering","register.success":"Register Success","register.error":"Register Failed","username.change.tip":"Username(should re login after changed)",createKb:"Create Knowledge Base",createDept:"Create Department",upload:"Upload",import:"Import",export:"Export","download.template":"Download Template",open:"Open",copy:"Copy","copy.success":"Copy success",ok:"OK",cancel:"Cancel",bind:"Bind",edit:"Edit",editing:"Editing","edit.success":"Edit success","edit.fail":"Edit fail",delete:"Delete",deleting:"Deleting",deleteTip:"Delete Tip",deleteAffirm:"Are u sure to delete","delete.success":"Delete success","delete.fail":"Delete fail","process.success":"Process success","process.fail":"Process fail",preview:"Preview",close:"Close",closing:"Closing",closeTip:"Close Tip",closeASure:"Are u sure to close","close.success":"Close success",choose:"Choose","leavemsg.enabled":"Leave Message Enabled",transfer:"Transfer","transfer.success":"Transfer success","transfer.fail":"Transfer fail","transfer.reason":"Transfer Reason",refresh:"Refresh",noAgent:"No Agent Available",invite:"Invite","invite.success":"Invite success","invite.fail":"Invite fail","invite.reason":"Invite Reason","invite.no.agent":"No Agent Available"},Ltn={"pages.login.title":"Bytedesk","pages.layouts.userLayout.title":"Chat As A Service","pages.login.accountLogin.tab":"Account Login","pages.login.accountLogin.errorMessage":"Incorrect username/password(admin/ant.design)","pages.login.failure":"Login failed, please try again!","pages.login.success":"Login successful!","pages.login.username.placeholder":"Email","pages.login.username.required":"Please input your username!","pages.login.password.placeholder":"Password","pages.login.repassword.placeholder":"RePassword","pages.login.password.required":"Please input your password!","pages.login.repassword.required":"Please input your password!","pages.login.phoneLogin.tab":"Phone Login","pages.login.phoneLogin.errorMessage":"Verification Code Error","pages.login.phoneNumber.placeholder":"Phone Number","pages.login.phoneNumber.required":"Please input your phone number!","pages.login.phoneNumber.invalid":"Phone number is invalid!","pages.login.captcha.placeholder":"Verification Code","pages.login.captcha.required":"Please input verification code!","pages.login.phoneLogin.getVerificationCode":"Get Code","pages.login.anonymousLogin":"Anonymous Login","pages.getCaptchaSecondText":"sec(s)","pages.login.scanLogin.tab":"Scan Login","pages.login.rememberMe":"Remember me","pages.login.forgotPassword":"Forgot Password ?","pages.login.submit":"Login","pages.login.loginWith":"Login with :","pages.login.register":"Register","pages.login.registerAccount":"Register Account","pages.login.auto.register":"Unregisterd Mobile will auto register","pages.welcome.link":"Welcome","pages.robot.new":"New","pages.robot.chat":"Chat","pages.robot.edit":"Edit","pages.robot.delete":"Delete","pages.robot.upload":"Upload","pages.robot.tab.basic":"Basic","pages.robot.tab.kb":"Knowledge Base","pages.robot.tab.channel":"Channel","pages.robot.tab.statistic":"Statistic","pages.robot.tab.advanced":"Advanced","pages.robot.tab.flow":"Flow","pages.robot.tab.avatar":"Avatar","pages.robot.tab.title":"Title","pages.robot.tab.welcomeTip":"welcomeTip","pages.robot.tab.description":"Description","pages.robot.tab.preview":"Preview","pages.robot.tab.website":"Website","pages.robot.tab.helpdesk":"Helpdesk","pages.robot.tab.icp":"ICP 17041763-1","pages.robot.tab.police":"44030502008688","pages.robot.kb.file":"File","pages.robot.kb.text":"Text","pages.robot.kb.qa":"Q&A","pages.robot.kb.web":"Website","pages.robot.file.title":"Title","pages.robot.file.content":"Content","pages.robot.file.type":"Type","pages.robot.file.size":"Size","pages.robot.file.action":"Action","pages.robot.file.delete":"Delete","pages.robot.file.save":"Save","pages.robot.file.cancel":"Cancel","pages.robot.file.uploading":"Uploading...","pages.robot.file.name_invalid":"File name should not contain _","pages.robot.file.parse":"Parse File Content","pages.setting":"Settings","pages.logout":"Logout","pages.footer.website":"Bytedesk","pages.footer.helpcenter":"help","pages.login.remember":"remember me","pages.agent.tab.basic":"Basic","pages.agent.robot":"Robot","pages.agent.service.settings":"Service Settings","pages.agent.service.settings.topTip":"Top Tip","pages.agent.service.settings.welcomeTip":"Welcome Tip","pages.agent.service.settings.leavemsgTip":"Leavemsg Tip","pages.agent.service.settings.autoCloseMin":"Auto Close Min","pages.agent.service.settings.showLogo":"Show Logo","pages.agent.service.settings.maxThreadCount":"Max Thread Count","pages.advanced.faq":"FAQ","pages.advanced.quickButton":"Quick Buttons","pages.advanced.faqGuess":"Smart Suggestions","pages.advanced.faqHot":"Hot Questions","pages.advanced.faqShortcut":"Quick Replies","pages.advanced.rate":"Satisfaction Rating","pages.advanced.autoreply":"Auto Reply","pages.advanced.leaveMsg":"Leave Message","pages.advanced.survey":"Survey","pages.advanced.history":"History","pages.advanced.inputAssociation":"Input Association","pages.advanced.antiHarassment":"Captcha Settings","pages.advanced.captcha":"Captcha Settings","pages.advanced.showPreForm":"Show PreForm","pages.advanced.showHistory":"Show History","pages.advanced.showInputAssociation":"Show Input Association","pages.advanced.showCaptcha":"Show Captcha","pages.login.country.placeholder":"Select Country/Region","pages.login.country.china":"China","pages.login.country.hongkong":"Hong Kong","pages.login.country.taiwan":"Taiwan","pages.login.country.macao":"Macao","pages.login.country.japan":"Japan","pages.login.country.korea":"Korea","pages.login.country.usa":"United States","pages.login.country.canada":"Canada","pages.login.country.uk":"United Kingdom","pages.login.country.germany":"Germany","pages.login.country.france":"France","pages.login.country.australia":"Australia","pages.login.country.singapore":"Singapore","pages.login.country.malaysia":"Malaysia","pages.login.country.thailand":"Thailand","pages.login.country.vietnam":"Vietnam","pages.login.country.philippines":"Philippines","pages.login.country.indonesia":"Indonesia","pages.login.country.italy":"Italy","pages.login.country.spain":"Spain","pages.login.country.russia":"Russia","pages.login.country.newzealand":"New Zealand","pages.anonymous.title":"Anonymous Mode","pages.anonymous.home":"Home","pages.anonymous.contact":"Contacts","pages.anonymous.robot":"Robot","pages.anonymous.setting":"Settings","pages.anonymous.welcome":"Welcome to Anonymous Mode","pages.anonymous.description":"You can use system features anonymously in this mode","block.title":"Block Settings","block.type":"Block Type","block.user":"Block User","block.ip":"Block IP","block.permanent":"Permanent Block","block.until":"Block Until","block.until.required":"Please select block end time"},Btn={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.all":"All","i18n.queue.tip":"Queue","i18n.queue.message.template":"Current Queuing: {0} people, Wait {1} minutes","i18n.queue.empty":"Queue empty","i18n.queue.accept":"accept","i18n.system.notification":"System Notification","i18n.old.password.wrong":"Old password is incorrect","i18n.change.password":"Change Password","i18n.auth.captcha.send.success":"Captcha Send success","i18n.auth.captcha.error":"Captcha Error","i18n.auth.captcha.expired":"Captcha Expired","i18n.auth.captcha.already.send":"Captcha Already Send","i18n.auth.captcha.validate.failed":"Captcha Validate Failed","i18n.DEPT_ALL":"All","i18n.DEPT_ADMIN":"Admin","i18n.DEPT_MEMBER":"Member","i18n.DEPT_CS":"CustomerService",ROLE_SUPER:"Super",ROLE_ADMIN:"Admin",ROLE_MEMBER:"Member",ROLE_AGENT:"Agent",ROLE_USER:"User",ROLE_VISITOR:"Visitor","i18n.faq":"Faq","i18n.rate":"Rate","i18n.input.placeholder":"Please input","i18n.loading":"Loading","i18n.load.more":"Load more","i18n.load.nomore":"No more","i18n.typing":"Typing","i18n.robot":"Robot","i18n.agent":"Agent","i18n.workgroup":"WorkGroup","i18n.group":"Group","i18n.rate.invite":"Rate Invite","i18n.ticket":"Ticket","i18n.ticket.thread":"Ticket Thread","i18n.notice":"Notice","i18n.notice.title":"Notice","i18n.notice.content":"Notice Content","i18n.notice.ip":"IP Address","i18n.notice.ipLocation":"IP Location","i18n.notice.parse.file.success":"Parse file success","i18n.notice.parse.file.error":"Parse file error","i18n.login_notification":"登录通知","i18n.login_time":"登录时间","i18n.login_ip":"登录IP","i18n.login_location":"登录地点","i18n.if_not_you_please_change_password":"如果这不是您的操作,请立即修改密码。","i18n.DEPT.ALL":"All","i18n.DEPT.ADMIN":"Admin","i18n.DEPT.HR":"HR","i18n.DEPT.ORG":"Org","i18n.DEPT.IT":"IT","i18n.DEPT.MONEY":"Money","i18n.DEPT.MARKETING":"Marketing","i18n.DEPT.SALES":"Sales","i18n.DEPT.CS":"CustomerService","i18n.new.message":"New Message","i18n.file.assistant":"file assistant","i18n.clipboard.assistant":"clipboard assistant","i18n.thread.content.image":"image","i18n.thread.content.file":"file","i18n.top.tip":"Top Tip","i18n.top.make":"Make Top","i18n.top.cancel":"Cancel Top","i18n.unread.make":"Mark as unread","i18n.unread.cancel":"Mark as read","i18n.star.make":"Make Star","i18n.star.cancel":"Cancel Star","i18n.disturb.make":"Make Disturb","i18n.disturb.cancel":"Cancel Disturb","i18n.transfer":"Transfer","i18n.hide":"Hide","i18n.network.disconnected":"Network disconnected","i18n.message.pulling":"Message pulling","i18n.leavemsg.tip":"Leave a message","i18n.welcome.tip":"What can i help you?","i18n.reenter.tip":"continue chat","i18n.under.development":"Under development","i18n.user.description":"User Description","i18n.robot.nickname":"DefaultRobot","i18n.robot.description":"Default Robot Description","i18n.robot.noreply":"Answer Not Found","i18n.robot.agent.assistant.nickname":"DefaultRobotAgent","i18n.llm.prompt":"You are a smart and helpful artificial intelligence, capable of providing useful, detailed, and polite answers to human questions.","i18n.agent.nickname":"DefaultAgent","i18n.agent.description":"Default Agent Description","i18n.workgroup.nickname":"DefaultWorkgroup","i18n.workgroup.before.nickname":"BeforeWorkgroup","i18n.workgroup.after.nickname":"AfterWorkgroup","i18n.workgroup.description":"Default Workgroup Description","i18n.workgroup.before.description":"BeforeWorkgroup Description","i18n.workgroup.after.description":"AfterWorkgroup Description","i18n.contact":"Ask Contact","i18n.thanks":"Thanks","i18n.welcome":"Welcome","i18n.bye":"Bye","i18n.tip.title":"Tip","i18n.tip.network.disconnected":"Network disconnected","i18n.tip.network.connected":"Network connected","i18n.kb.name":"KbName","i18n.kb.platform.name":"Platform KbName","i18n.kb.helpcenter.name":"Helpdoc KbName","i18n.kb.llm.name":"Llm KbName","i18n.kb.keyword.name":"Keyword KbName","i18n.kb.faq.name":"Faq KbName","i18n.kb.autoreply.name":"AutoReply KbName","i18n.kb.quickreply.name":"QuickReply KbName","i18n.kb.taboo.name":"Taboo KbName","i18n.kb.description":"KbDescription","i18n.agent.nicknameKb":"DefaultAgentKbName","i18n.contact.title":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.contact.content":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.thanks.title":"Thank you for visiting, we look forward to seeing you again.","i18n.thanks.content":"Thank you for visiting, we look forward to seeing you again.","i18n.welcome.title":"Hello, how can I assist you?","i18n.welcome.content":"Hello, how can I assist you?","i18n.bye.title":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.bye.content":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"CategoryDemo1","i18n.faq.category.demo.2":"CategoryDemo2","i18n.faq.demo.title.1":"FaqTitleText1","i18n.faq.demo.content.1":"FaqContentText1","i18n.faq.demo.title.2":"FaqTitleImage2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"QuickButtonTitleText1","i18n.quick.button.demo.content.1":"QuickButtonContentText1","i18n.quick.button.demo.title.2":"QuickButtonTitleUrl2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"Preview","i18n.cancel":"Cancel","i18n.confirm":"Confirm","i18n.send":"Send","i18n.transferToAgent":"Transfer to Agent","i18n.auto.closed":"Auto closed","i18n.agent.closed":"Agent closed","i18n.online.chat":"Online Chat","i18n.JOB":"Job","i18n.LANGUAGE":"Language","i18n.TOOL":"Tool","i18n.WRITING":"Writing","i18n.RAG":"RAG","i18n.module.ai":"AI","i18n.module.void":"Void","i18n.module.service":"Service","i18n.module.ticket":"Ticket","i18n.black.user.already.exists":"User already blocked","i18n.ticket.category.technical_support":"Technical Support","i18n.ticket.category.service_request":"Service Request","i18n.ticket.category.consultation":"Consultation","i18n.ticket.category.complaint_suggestion":"Complaint Suggestion","i18n.ticket.category.operation_maintenance":"Operation Maintenance","i18n.ticket.category.other":"Other","i18n.vip.component":"VIP Component, Contact us for more details","i18n.vip.contactUs":"Contact us","i18n.vip.contactUrl":"https://www.bytedesk.com","i18n.ticket.process.name.group":"WorkGroup Process","i18n.ticket.process.name.group.simple":"WorkGroup Simple Process","i18n.ticket.process.name.agent":"Agent Process","i18n.username.or.password.incorrect":"Username or password incorrect","i18n.system_notification":"System Notification","i18n.transfer_notification":"Transfer Request","i18n.transfer_accepted":"Transfer Accepted","i18n.transfer_rejected":"Transfer Rejected","i18n.transfer_timeout":"Transfer Request Timeout","i18n.transfer_cancelled":"Transfer Cancelled","i18n.confirm_accept_transfer":"Confirm Accept Transfer","i18n.confirm_accept_transfer_desc":"Are you sure to accept the transfer request?","i18n.confirm_reject_transfer":"Confirm Reject Transfer","i18n.confirm_reject_transfer_desc":"Are you sure to reject the transfer request?","i18n.confirm_cancel_transfer":"Confirm Cancel Transfer","i18n.confirm_cancel_transfer_desc":"Are you sure to cancel the transfer request?","i18n.transfer.notice.title":"Transfer Notice","i18n.transfer.notice.content":"Transfer Notice Content","i18n.transfer.accept.notice.title":"Transfer Accept Notice","i18n.transfer.accept.notice.content":"Transfer Accept Notice Content","i18n.transfer.reject.notice.title":"Transfer Reject Notice","i18n.transfer.reject.notice.content":"Transfer Reject Notice Content","i18n.transfer.timeout.notice.title":"Transfer Timeout Notice","i18n.transfer.timeout.notice.content":"Transfer Timeout Notice Content","i18n.transfer.cancel.notice.title":"Transfer Cancel Notice","i18n.transfer.cancel.notice.content":"Transfer Cancel Notice Content","i18n.already.in.transfer.pending.state":"Already in transfer pending state","i18n.already.in.transfer.accepted.state":"Already in transfer accepted state","i18n.already.in.transfer.rejected.state":"Already in transfer rejected state","i18n.already.in.transfer.timeout.state":"Already in transfer timeout state","i18n.already.in.transfer.canceled.state":"Already in transfer canceled state","i18n.invite_notification":"Invite Request","i18n.invite_accepted":"Invite Accepted","i18n.invite_rejected":"Invite Rejected","i18n.invite_timeout":"Invite Request Timeout","i18n.invite_cancelled":"Invite Cancelled","i18n.confirm_accept_invite":"Confirm Accept Invite","i18n.confirm_accept_invite_desc":"Are you sure to accept the invite request?","i18n.confirm_reject_invite":"Confirm Reject Invite","i18n.confirm_reject_invite_desc":"Are you sure to reject the invite request?","i18n.visitor_invite_notification":"Visitor Invite","i18n.visitor_invite_accepted":"Visitor Invite Accepted","i18n.visitor_invite_rejected":"Visitor Invite Rejected","i18n.visitor_invite_timeout":"Visitor Invite Timeout","i18n.visitor_invite_cancelled":"Visitor Invite Cancelled","i18n.group_invite_notification":"Group Invite","i18n.group_invite_accepted":"Group Invite Accepted","i18n.group_invite_rejected":"Group Invite Rejected","i18n.group_invite_timeout":"Group Invite Timeout","i18n.group_invite_cancelled":"Group Invite Cancelled","i18n.kbase_invite_notification":"Knowledge Base Invite","i18n.kbase_invite_accepted":"Knowledge Base Invite Accepted","i18n.kbase_invite_rejected":"Knowledge Base Invite Rejected","i18n.kbase_invite_timeout":"Knowledge Base Invite Timeout","i18n.kbase_invite_cancelled":"Knowledge Base Invite Cancelled","i18n.organization_invite_notification":"Organization Invite","i18n.organization_invite_accepted":"Organization Invite Accepted","i18n.organization_invite_rejected":"Organization Invite Rejected","i18n.organization_invite_timeout":"Organization Invite Timeout","i18n.organization_invite_cancelled":"Organization Invite Cancelled","i18n.from":"From","i18n.to":"To","i18n.note":"Note","i18n.status":"Status","i18n.time":"Time","i18n.inviter":"Inviter","i18n.invitee":"Invitee","i18n.visitor":"Visitor","i18n.group_name":"Group Name","i18n.kbase_name":"Knowledge Base Name","i18n.organization_name":"Organization Name","i18n.auto.close.tip":"The conversation has been automatically closed","i18n.agent.close.tip":"The conversation has been closed by the agent","i18n.accept":"Accept","i18n.reject":"Reject","i18n.user.signup.first":"Please sign up first","i18n.email.signup.first":"Please verify your email first","i18n.mobile.signup.first":"Please verify your mobile first","i18n.resource.not.found":"Resource not found","i18n.user.disabled":"User is disabled","i18n.forbidden.access":"Forbidden access","i18n.user.blocked":"User is blocked","i18n.sensitive.content":"Sensitive content detected","i18n.message.processing.failed":"Message processing failed","i18n.null.pointer.exception":"Null pointer exception","i18n.response.status.exception":"Response status exception","i18n.websocket.timeout.exception":"WebSocket timeout exception","i18n.http.method.not.supported":"HTTP method not supported","i18n.authorization.denied":"Authorization denied","i18n.request.rejected":"Request rejected","i18n.entity.not.found":"Entity not found","i18n.internal.server.error":"Internal server error"},ztn={"login.privacy.required":"Please read and agree to the privacy agreement","login.privacy.agreement":"Agree to Privacy Agreement","login.switch.server":"Switch Server","login.success":"Login successful","login.failed":"Login failed","login.anonymous":"Anonymous Login","login.other.methods":"Other login methods","login.remember":"Remember me","login.forgot":"Forgot password?","login.register":"Register account","server.button.back":"Back","server.button.save":"Save","server.button.reset":"Reset","server.button.help":"Help","server.save.success":"Save successfully","server.reset.success":"Reset successfully, restored to default cloud server","server.custom.enable":"Enable Custom Server","server.api.url.label":"API Server URL (e.g. http://127.0.0.1:9003 or https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket Server URL (e.g. ws://127.0.0.1:9885/websocket or wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"Please enter correct server address"},Htn={"thread.error.message":"Failed to get data","thread.feature.unavailable":"TODO: This feature is not available yet","thread.menu.top":"Pin to Top","thread.menu.untop":"Unpin","thread.menu.read":"Mark as Read","thread.menu.unread":"Mark as Unread","thread.menu.mute":"Mute","thread.menu.unmute":"Unmute","thread.menu.transfer":"Transfer","thread.menu.block":"Block","thread.menu.remark":"Remark","thread.menu.ticket":"Create Ticket","thread.menu.crm":"View in CRM","thread.menu.summary":"Summary","thread.status.robot":"[Robot]","thread.status.agent":"[1-on-1]","thread.status.workgroup":"[Group]","thread.search.placeholder":"Search conversations...","thread.menu.filter":"Filter Threads","thread.menu.groupThread":"Group Thread","thread.menu.robotThread":"Robot Thread","thread.menu.workgroupThread":"Workgroup Thread","thread.menu.agentThread":"Agent Thread","thread.menu.ticketThread":"Ticket Thread","thread.menu.memberThread":"Member Thread","thread.menu.deviceThread":"Device Thread","thread.menu.systemThread":"System Thread","thread.status.loading":"Loading...","thread.status.empty":"No conversations","thread.status.error":"Failed to load conversations","thread.status.queue":"Queue ({count})","thread.status.network.offline":"Network disconnected","thread.status.network.online":"Network connected","thread.status.message.pulling":"Pulling messages...","thread.status.message.empty":"No messages","thread.status.message.error":"Failed to load messages","thread.status.message.end":"No more messages","thread.status.message.typing":"Typing...","thread.status.message.transfer":"Transferring...","thread.status.message.transferred":"Transferred","thread.status.message.closed":"Conversation closed","thread.dropdown.create.group":"Create Group Chat","thread.dropdown.create.ai":"Create AI Chat","thread.agent.status.online":"Online","thread.agent.status.offline":"Offline","thread.agent.status.busy":"Busy","thread.refresh.pull":"↓ Pull to refresh","thread.refresh.release":"↑ Release to refresh","thread.list.no.more":"No more data","thread.set.success":"Set successfully","thread.set.error":"Set failed","thread.menu.star":"Star","thread.menu.star.1":"Star Level 1","thread.menu.star.2":"Star Level 2","thread.menu.star.3":"Star Level 3","thread.menu.star.4":"Star Level 4","thread.menu.hide":"Hide","thread.status.text":"{status}","thread.status.online":"Online","thread.status.offline":"Offline","thread.status.busy":"🏃‍♀️Busy","thread.coming.soon":"Coming soon...","thread.menu.star.cancel":"Remove Star","thread.loading.more":"Loading more..."},Utn={"message.status.read":"Read","message.status.delivered":"Delivered","message.status.sending":"Sending","message.status.sent":"Sent","message.status.failed":"Failed to send","message.status.retry":"Retry","quickreply.search.placeholder":"Search","quickreply.button.send":"Send","quickreply.button.copy":"Copy","quickreply.button.create.category":"Create Category","quickreply.button.create.reply":"Create Quick Reply","quickreply.copy.success":"{content} copied to clipboard","category.form.edit.title":"Edit Category","category.form.create.title":"Create Category","category.form.name":"Category Name","category.form.name.required":"Please enter category name!","category.form.name.placeholder":"Enter category name","category.create.failed":"Failed to create category","quickreply.drawer.title":"{isEdit, select, true {Edit Quick Reply} other {New Quick Reply}}","quickreply.form.category":"Category","quickreply.form.category.required":"Please select a category","quickreply.form.category.placeholder":"Select a category","quickreply.form.type":"Type","quickreply.form.type.required":"Please select a type","quickreply.form.type.placeholder":"Select a type","quickreply.form.title":"Title","quickreply.form.title.required":"Please enter a title","quickreply.form.content":"Content","quickreply.type.text":"Text","quickreply.type.image":"Image","quickreply.type.video":"Video","quickreply.type.audio":"Audio","quickreply.type.file":"File","quickreply.upload.text":"Click or drag file to upload","quickreply.upload.success":"{filename} uploaded successfully","quickreply.upload.error":"{filename} upload failed","quickreply.upload.uploading":"{filename} uploading","quickreply.form.validate.error":"Please check the form"},Wtn={"customer.info.basic":"Basic Info","customer.info.browser":"Browser Info","customer.info.os":"OS Info","customer.info.device":"Device Info","customer.info.browse.record":"Browse Record","customer.info.tag":"Tag Info","customer.info.extra":"Extra Info","customer.info.load.error":"Failed to load visitor info","customer.info.add.crm":"Add to CRM","customer.info.add.tag":"Add Tag","customer.basic.nickname":"Nickname","customer.basic.location":"IP Location","customer.basic.note":"Note","customer.basic.client":"Client","customer.basic.status":"Status","customer.basic.empty":"N/A","black.title":"Block Settings","black.type":"Block Type","black.type.required":"Please select at least one block type","black.user":"Block User","black.ip":"Block IP","black.permanent":"Permanent Block","black.until":"Block Until","black.until.required":"Please select block end time","black.reason":"Block Reason","black.reason.required":"Please enter block reason","black.success":"Block successfully"},Vtn={"contact.list.new":"New Friends","contact.list.device":"LAN Devices","contact.list.group":"Groups","contact.list.channel":"Channels","contact.list.company":"Company Contacts","contact.list.friend":"Contacts","contact.search.placeholder":"Search contacts...","contact.manager.button":"Contact Manager","contact.manager.coming":"Coming soon...","member.detail.nickname":"Nickname","member.detail.jobno":"Job No.","member.detail.seatno":"Seat No.","member.detail.telephone":"Telephone","member.detail.loading":"Loading...","member.detail.chat.button":"Start Chat"},qtn={"autoreply.title":"Auto Reply","autoreply.enable.label":"Enable Auto Reply","autoreply.type.label":"Auto Reply Type","autoreply.type.fixed":"Fixed Reply","autoreply.type.keyword":"Keyword Match","autoreply.type.llm":"AI Model Reply","autoreply.fixed.add":"Add Fixed Reply","autoreply.fixed.select":"Select Fixed Reply","autoreply.fixed.type":"Fixed Reply Type","autoreply.fixed.content":"Fixed Reply Content","autoreply.content.text":"Text","autoreply.content.image":"Image","autoreply.content.video":"Video","autoreply.content.audio":"Audio","autoreply.content.file":"File","autoreply.save.loading":"Saving...","autoreply.save.success":"Saved successfully","autoreply.save.error":"Failed to save","autoreply.keyword.add":"Add Keyword Knowledge Base","autoreply.keyword.select":"Select Keyword Knowledge Base","autoreply.llm.add":"Add AI Model Knowledge Base","autoreply.llm.select":"Select AI Model Knowledge Base"},Ktn={"queue.accepting":"Accepting...","queue.accept.success":"Accepted successfully","queue.accept.failed":"Failed to accept","queue.accept":"Accept","queue.empty":"No queuing visitors","queue.loading":"Loading queue...","queue.error":"Failed to load queue","queue.count":"{count} visitors queuing","queue.wait.time":"Estimated wait time: {minutes} minutes"},Gtn={"group.create.title":"Create Group Chat","group.create.contacts":"Contacts","group.create.members":"Members","group.create.members.min":"Please select at least 2 members","group.create.creating":"Creating group...","group.create.org.empty":"No organization selected","group.create.success":"Group created successfully","group.create.failed":"Failed to create group","group.create.loading":"Loading members...","group.create.error":"Failed to load members"},Ytn={"upload.modal.title":"Upload Files","upload.drag.text":"Click or drag files here to upload","upload.drag.hint":"Support for single or bulk upload","upload.uploading":"{filename} uploading...","upload.success":"{filename} uploaded successfully","upload.failed":"{filename} upload failed","upload.delete.confirm":"Are you sure to delete this file?","upload.preview.image":"Image Preview","upload.preview.file":"File Preview","upload.button.ok":"OK","upload.button.cancel":"Cancel","upload.maxCount":"Cannot upload more than {maxCount} files","upload.maxSize":"File size cannot exceed {maxSize}MB"},Xtn={"robot.list.add":"Add AI Agent","robot.list.chat":"Chat","robot.list.edit":"Edit","robot.list.delete":"Delete","robot.list.create":"Create"},Ztn={"welcome.modal.title":"No Organization Found","welcome.modal.description":"You need to create or join an organization","welcome.modal.join":"Join Organization (Coming Soon)","welcome.modal.create":"Create Organization","welcome.modal.input.placeholder":"Please enter organization name","welcome.message.org.required":"Please create or join an organization","welcome.message.create.success":"Organization created successfully","welcome.message.create.failed":"Failed to create organization","welcome.message.verify.email":"Please verify your email first","welcome.message.verify.mobile":"Please verify your mobile number first","welcome.message.org.name.required":"Please enter organization name","welcome.message.org.creating":"Creating organization, please wait...","welcome.verify.modal.title":"Account Verification","welcome.verify.modal.description":"Your email and mobile number have not been verified. For account security, we recommend completing verification as soon as possible.","welcome.verify.now":"Verify Now","welcome.verify.later":"Verify Later"},Qtn={...Ptn,...Otn,...Rtn,...Itn,...jtn,...Ntn,...Atn,...Dtn,...Ftn,...Ltn,...Btn,...ztn,...Htn,...Utn,...Wtn,...Vtn,...qtn,...Ktn,...Gtn,...Ytn,...Xtn,...Ztn},Jtn={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},TSe={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},ya={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},ss={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},wp={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class tn{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=tn.getVersionPrecision(t),a=tn.getVersionPrecision(n);let o=Math.max(i,a),s=0;const l=tn.map([t,n],c=>{const u=o-tn.getVersionPrecision(c),f=c+new Array(u+1).join(".0");return tn.map(f.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(s=o-Math.min(i,a)),o-=1;o>=s;){if(l[0][o]>l[1][o])return 1;if(l[0][o]===l[1][o]){if(o===s)return 0;o-=1}else if(l[0][o]{r[l]=o[l]})}return t}static getBrowserAlias(t){return Jtn[t]}static getBrowserTypeByAlias(t){return TSe[t]||""}}const xi=/version\/(\d+(\.?_?\d+)+)/i,enn=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=tn.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=tn.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=tn.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=tn.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=tn.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=tn.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=tn.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=tn.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=tn.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=tn.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=tn.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=tn.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=tn.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=tn.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=tn.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=tn.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=tn.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=tn.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=tn.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=tn.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=tn.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=tn.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=tn.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=tn.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=tn.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=tn.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=tn.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:tn.getFirstMatch(i,e),version:tn.getSecondMatch(i,e)}}}],tnn=[{test:[/Roku\/DVP/],describe(e){const t=tn.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:ss.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=tn.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:ss.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=tn.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=tn.getWindowsVersionName(t);return{name:ss.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:ss.iOS},n=tn.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=tn.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=tn.getMacOSVersionName(t),r={name:ss.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=tn.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:ss.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=tn.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=tn.getAndroidVersionName(t),r={name:ss.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=tn.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:ss.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=tn.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||tn.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||tn.getFirstMatch(/\bbb(\d+)/i,e);return{name:ss.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=tn.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:ss.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=tn.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:ss.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:ss.Linux}}},{test:[/CrOS/],describe(){return{name:ss.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=tn.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:ss.PlayStation4,version:t}}}],nnn=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=tn.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:ya.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:ya.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:ya.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:ya.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:ya.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:ya.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:ya.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=tn.getFirstMatch(/(ipod|iphone)/i,e);return{type:ya.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:ya.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:ya.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:ya.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:ya.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:ya.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:ya.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:ya.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:ya.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:ya.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:ya.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:ya.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:ya.tv}}}],rnn=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:wp.Blink};const n=tn.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:wp.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:wp.Trident},n=tn.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:wp.Presto},n=tn.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:wp.Gecko},n=tn.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:wp.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:wp.WebKit},n=tn.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class $ie{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=tn.find(enn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=tn.find(tnn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=tn.find(nnn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=tn.find(rnn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return tn.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let a=0;if(Object.keys(t).forEach(s=>{const l=t[s];typeof l=="string"?(i[s]=l,a+=1):typeof l=="object"&&(n[s]=l,r+=1)}),r>0){const s=Object.keys(n),l=tn.find(s,u=>this.isOS(u));if(l){const u=this.satisfies(n[l]);if(u!==void 0)return u}const c=tn.find(s,u=>this.isPlatform(u));if(c){const u=this.satisfies(n[c]);if(u!==void 0)return u}}if(a>0){const s=Object.keys(i),l=tn.find(s,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const a=tn.getBrowserTypeByAlias(i);return n&&a&&(i=a.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const a=this.getBrowserVersion();if(typeof a=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(tn.compareVersions(a,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*! * Bowser - a browser detector * https://github.com/lancedikson/bowser * MIT License | (c) Dustin Diaz 2012-2015 * MIT License | (c) Denis Demchenko 2015-2019 - */class nnn{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new _ie(t,n)}static parse(t){return new _ie(t).getResult()}static get BROWSER_MAP(){return $Se}static get ENGINE_MAP(){return wp}static get OS_MAP(){return as}static get PLATFORMS_MAP(){return ba}}const{defaultAlgorithm:rnn,darkAlgorithm:inn}=zo,zP={"zh-cn":atn,"zh-tw":$tn,en:Xtn},ann=()=>{const{isDarkMode:e,locale:t}=d.useContext(Ma),n=(t==null?void 0:t.locale)||pIe(),r=new but({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),[i,a]=d.useState(!1),o=()=>{const c=nnn.getParser(window.navigator.userAgent);console.log("browser:",c),ma?console.log("OsName:",c.getOSName()):console.log("BrowserName:",c.getBrowserName()),c.getOSName().toLocaleLowerCase().indexOf("mac")===-1&&a(!0)},s=c=>{document.title=c||zP[n]["app.title"]},l=async()=>{var p,h;console.log("getConfig");const c=await wle();console.log("getConfig config: ",c);const u=(p=c==null?void 0:c.custom)==null?void 0:p.enabled,f=(h=c==null?void 0:c.custom)==null?void 0:h.name;if(s(u&&f?f:zP[n]["app.title"]),ma)console.log("is electron");else{await ble();const m=l4();console.log("Base URL:",m)}};return d.useEffect(()=>{fde(),o(),l()},[]),x.jsx(zn,{locale:t,theme:{algorithm:e?inn:rnn},children:x.jsx(xut,{client:r,children:x.jsx(Twe,{children:x.jsx(d.Suspense,{fallback:x.jsx("div",{children:"loading..."}),children:x.jsxs(oNt,{messages:zP[t.locale],locale:t.locale,defaultLocale:"zh-cn",children:[i&&x.jsx(UH,{children:x.jsx("link",{rel:"stylesheet",type:"text/css",href:U6e})}),x.jsxs(g8,{children:[x.jsx(vct,{}),x.jsx(Jdt,{router:Den})]})]})})})})})},onn=()=>x.jsx("div",{className:"App",children:x.jsx(Zct,{children:x.jsx(ann,{})})});UP.createRoot(document.getElementById("root")).render(x.jsx(onn,{}));postMessage({payload:"removeLoading"},"*")});export default snn(); + */class inn{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new $ie(t,n)}static parse(t){return new $ie(t).getResult()}static get BROWSER_MAP(){return TSe}static get ENGINE_MAP(){return wp}static get OS_MAP(){return ss}static get PLATFORMS_MAP(){return ya}}const{defaultAlgorithm:ann,darkAlgorithm:onn}=Ho,WP={"zh-cn":stn,"zh-tw":Ttn,en:Qtn},snn=()=>{const{isDarkMode:e,locale:t}=d.useContext(Ea),n=(t==null?void 0:t.locale)||hRe(),r=new Sut({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),[i,a]=d.useState(!1),o=()=>{const c=inn.getParser(window.navigator.userAgent);console.log("browser:",c),ha?console.log("OsName:",c.getOSName()):console.log("BrowserName:",c.getBrowserName()),c.getOSName().toLocaleLowerCase().indexOf("mac")===-1&&a(!0)},s=c=>{document.title=c||WP[n]["app.title"]},l=async()=>{var p,h;console.log("getConfig");const c=await _le();console.log("getConfig config: ",c);const u=(p=c==null?void 0:c.custom)==null?void 0:p.enabled,f=(h=c==null?void 0:c.custom)==null?void 0:h.name;if(s(u&&f?f:WP[n]["app.title"]),ha)console.log("is electron");else{await Cle();const m=u4();console.log("Base URL:",m)}};return d.useEffect(()=>{gde(),o(),l()},[]),x.jsx(zn,{locale:t,theme:{algorithm:e?onn:ann},children:x.jsx(_ut,{client:r,children:x.jsx(jwe,{children:x.jsx(d.Suspense,{fallback:x.jsx("div",{children:"loading..."}),children:x.jsxs(fNt,{messages:WP[t.locale],locale:t.locale,defaultLocale:"zh-cn",children:[i&&x.jsx(VH,{children:x.jsx("link",{rel:"stylesheet",type:"text/css",href:q6e})}),x.jsxs(v8,{children:[x.jsx(bct,{}),x.jsx(nft,{router:Len})]})]})})})})})},lnn=()=>x.jsx("div",{className:"App",children:x.jsx(eut,{children:x.jsx(snn,{})})});qP.createRoot(document.getElementById("root")).render(x.jsx(lnn,{}));postMessage({payload:"removeLoading"},"*")});export default cnn(); diff --git a/starter/src/main/resources/templates/agent/index.html b/starter/src/main/resources/templates/agent/index.html index 509e878b91..287436ab41 100644 --- a/starter/src/main/resources/templates/agent/index.html +++ b/starter/src/main/resources/templates/agent/index.html @@ -1 +1 @@ -微语
      \ No newline at end of file +微语
      \ No newline at end of file diff --git a/starter/src/main/resources/templates/chat/assets/index-CB6ihBaG.js b/starter/src/main/resources/templates/chat/assets/index-vsC2L-CE.js similarity index 99% rename from starter/src/main/resources/templates/chat/assets/index-CB6ihBaG.js rename to starter/src/main/resources/templates/chat/assets/index-vsC2L-CE.js index 34d1c46bd9..d5bfe3b263 100644 --- a/starter/src/main/resources/templates/chat/assets/index-CB6ihBaG.js +++ b/starter/src/main/resources/templates/chat/assets/index-vsC2L-CE.js @@ -1308,7 +1308,7 @@ button { background-color: #61493f; } -`;function hQe(e){const t=u.useRef(null),n=u.useRef(null);return n.current&&n.current.update(e),u.useEffect(()=>(n.current=new fN({...e,ref:t}),()=>{n.current=null}),[]),A.createElement("div",{ref:t})}const vQe=({onSelect:e,onClose:t})=>{const[n,r]=u.useState(!0),i=a=>{r(!1),e(a.native)};return P.jsx(HG,{className:"EmojiPicker",active:n,onClose:()=>{r(!1),t()},title:"请选择表情",children:P.jsx("div",{children:P.jsx(hQe,{data:PXe,onEmojiSelect:i})})})},gQe=({showEmoji:e,setShowEmoji:t,handleEmojiSelect:n})=>P.jsx(P.Fragment,{children:e&&P.jsx(vQe,{onSelect:n,onClose:()=>t(!1)})}),yQe=({isDarkMode:e,imageInputRef:t,fileInputRef:n,handleImageChange:r,handleFileChange:i})=>P.jsxs(P.Fragment,{children:[e&&P.jsx(eue,{children:P.jsx("link",{rel:"stylesheet",type:"text/css",href:na?"./assets/css/chatui/chatui-theme-dark.css":"/chat/assets/css/chatui/chatui-theme-dark.css"})}),P.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},ref:t,onChange:r}),P.jsx("input",{type:"file",style:{display:"none"},ref:n,onChange:i})]}),Dre=()=>{const e=cf(),t=[{type:"smile",icon:"smile",title:e.formatMessage({id:"chat.toolbar.emoji"})},{type:"image",title:e.formatMessage({id:"chat.toolbar.image"}),icon:"image"},{type:"file",title:e.formatMessage({id:"chat.toolbar.file"}),icon:"file"}],[n,r]=u.useState(t),{isDarkMode:i,themeMode:a,setThemeMode:o,locale:s,changeLocale:l}=u.useContext(GC),[c,d]=u.useState("zh-cn");console.log("themeMode:",a,"locale: ",s==null?void 0:s.locale,"lang:",c);const[f]=e2(),{translateString:m}=H0(),[p,h]=u.useState(""),[v]=r2e(p,1e3),[g,w]=u.useState("Chat"),[b,y]=u.useState({}),[x,C]=u.useState({}),[S,k]=u.useState({}),[_,E]=u.useState([]),[$,T]=u.useState(!1),[N,D]=u.useState([]),[R,M]=u.useState([]),[O,F]=u.useState(!1),[L,B]=u.useState(""),[I,H]=u.useState(!1),[V,z]=u.useState("i18n.input.placeholder"),[W,K]=u.useState(!1),[X,q]=u.useState(""),Y=u.useRef(null),ne=u.useRef(null),U=u.useRef({orgUid:"df_org_uid",type:"1",sid:""}),[Q,J]=u.useState(0),{messages:Z,appendMsg:te,updateMsg:ee,resetList:oe}=Jwe([]),[ae,de]=u.useState(!1),[he,xe]=u.useState(""),[me,Se]=u.useState(m("i18n.load.more")),ue=u.useRef(null),ce=u.useRef(null),Ee=u.useRef(!1),se=u.useRef(!1),[pe,ve]=u.useState(""),[_e,we]=u.useState(!1),[$e,Ne]=u.useState(!1),[be,ye]=u.useState(!0),Pe=u.useRef(!1),Te=f.get(iD)==="1",ke=f.get(tD)||"",Fe=f.get(nD)||"",He=f.get(rD)||"",[Le,at]=u.useState(null),{messageList:We,addMessage:Ke,addMessageList:Me,updateMessageStatus:Be}=BC(Ae=>({messageList:Ae.messageList,addMessage:Ae.addMessage,addMessageList:Ae.addMessageList,updateMessageStatus:Ae.updateMessageStatus})),{show:et}=MUe({id:sD}),Je=(Ae,lt)=>{console.log("handleContextMenu:",Ae," item:",lt),at(lt),et({event:Ae,props:{key:lt==null?void 0:lt._id.toString()}})},tt=({id:Ae,event:lt,props:$t})=>{switch(console.log("handleRightClick:",Ae,lt,$t),Ae){case"copy":Qa.success("复制成功"),navigator.clipboard.writeText(m(Le==null?void 0:Le.content));break}},nt=async()=>{var $t;console.log("shouldPreload: ",Te);const Ae=await KCe({orgUid:U.current.orgUid||"",type:U.current.type||"",sid:U.current.sid||"",uid:U.current.uid,nickname:U.current.nickname,avatar:U.current.avatar,referrer:ke,url:He,title:Fe,extra:U.current.extra||""});console.log("browse response: ",Ae.data);const lt={username:($t=U.current)==null?void 0:$t.uid,topic:U.current.uid||"",orgUid:U.current.orgUid||""};T9(lt)},ge=()=>{const Ae={};for(const Rt of f.entries())Ae[Rt[0]]=Rt[1];if(Ae[ey]){const Rt=Ae[ey].toLowerCase();npe.includes(Rt)?(d(Rt),l(Rt)):console.warn(`Invalid language value: ${Ae[ey]}`)}else d(Eb),l(Eb);if(Ae[aD]===tpe&&ye(!1),Ae[ty]){const Rt=Ae[ty].toLowerCase();rpe.includes(Rt)?o(Rt):console.warn(`Invalid theme value: ${Ae[ty]}`)}Ae[q_]&&Vt(Ae[q_]);const $t=new USe().getResult();U.current={orgUid:Ae[Z8],type:Ae[J8],sid:Ae[eD],uid:localStorage.getItem(Em)||"",nickname:localStorage.getItem(j4)||"",avatar:localStorage.getItem(mv)||"",lang:(s==null?void 0:s.locale)||Eb,browser:JSON.stringify($t.browser),os:JSON.stringify($t.os),device:JSON.stringify($t.device),referrer:document.referrer,vipLevel:Ae[oD]||"0",extra:""},localStorage.setItem(Np,U.current.orgUid||""),Ae[K_]&&(U.current.uid=Ae[K_]),Ae[G_]&&(U.current.nickname=Ae[G_]),Ae[Y_]&&(U.current.avatar=Ae[Y_]);const Ct={};for(const Rt in Ae)[Z8,J8,eD,ey,ty,Gme,Yme,tD,nD,rD,iD,aD,q_,K_,G_,Y_,oD].includes(Rt)||(Ct[Rt]=Ae[Rt]);U.current.extra=JSON.stringify(Ct),console.log("initInfoParams: ",U.current)},Oe=async()=>{var lt,$t,Ct,Rt,Yt,ht,vt,Lt,Gt,un,pn,Dr,Qr,Zr;const Ae=await UCe(U.current);console.log("initVisitor: ",Ae==null?void 0:Ae.data),Ae&&((lt=Ae==null?void 0:Ae.data)==null?void 0:lt.code)===200?(localStorage.setItem(Em,((Ct=($t=Ae==null?void 0:Ae.data)==null?void 0:$t.data)==null?void 0:Ct.uid)||""),localStorage.setItem(j4,((Yt=(Rt=Ae==null?void 0:Ae.data)==null?void 0:Rt.data)==null?void 0:Yt.nickname)||""),localStorage.setItem(mv,((vt=(ht=Ae==null?void 0:Ae.data)==null?void 0:ht.data)==null?void 0:vt.avatar)||""),k({uid:(Gt=(Lt=Ae==null?void 0:Ae.data)==null?void 0:Lt.data)==null?void 0:Gt.uid,nickname:(pn=(un=Ae==null?void 0:Ae.data)==null?void 0:un.data)==null?void 0:pn.nickname,avatar:(Qr=(Dr=Ae==null?void 0:Ae.data)==null?void 0:Dr.data)==null?void 0:Qr.avatar,type:hme}),ge(),Ce(!1)):Ae!=null&&Ae.data?(Qa.fail(((Zr=Ae==null?void 0:Ae.data)==null?void 0:Zr.message)||"初始化失败"),localStorage.removeItem(Em)):Qa.fail("初始化失败")},Ce=async Ae=>{var Ct,Rt,Yt,ht,vt,Lt,Gt,un,pn,Dr,Qr,Zr;if(Te){nt();return}const lt={orgUid:U.current.orgUid||"",type:U.current.type||"",sid:U.current.sid||"",uid:U.current.uid,nickname:U.current.nickname,avatar:U.current.avatar,referrer:U.current.referrer,forceAgent:Ae},$t=await qCe(lt);if(console.log("initThread response: ",$t.data),$t.data.code===200){Ae&&(Ca.destroy(),Ca.success("转人工成功"));const _n=(Ct=$t==null?void 0:$t.data)==null?void 0:Ct.data;zye(_n)?Pe.current=!0:Pe.current=!1;const So={uid:(Rt=_n==null?void 0:_n.thread)==null?void 0:Rt.uid,topic:(Yt=_n==null?void 0:_n.thread)==null?void 0:Yt.topic,type:(ht=_n==null?void 0:_n.thread)==null?void 0:ht.type,state:(vt=_n==null?void 0:_n.thread)==null?void 0:vt.state,user:(Lt=_n==null?void 0:_n.thread)==null?void 0:Lt.user};y(So),(So==null?void 0:So.state)===gme&&(H(!0),z("i18n.leavemsg.tip"));const Pn=_n==null?void 0:_n.user,Ec=[];if(cE(So)){const en=JSON.parse((Gt=_n==null?void 0:_n.user)==null?void 0:Gt.extra);Ee.current=(en==null?void 0:en.llm)||!1}else if((Pn==null?void 0:Pn.type)===Rq){const en={name:m("i18n.transferToAgent"),code:"transferToAgent",type:"transferToAgent"};Ec.push(en)}C(Pn),w(m((Pn==null?void 0:Pn.nickname)||""));const kt=JSON.parse(((un=_n==null?void 0:_n.thread)==null?void 0:un.extra)||"{}");if(console.log("extra welcomeFaqs:",kt.welcomeFaqs),kt.welcomeFaqs&&M(kt.welcomeFaqs),kt.showQuickFaqs&&((pn=kt==null?void 0:kt.quickFaqs)==null||pn.forEach(en=>{const vn={name:m((en==null?void 0:en.question)||""),code:en.uid,type:en.type,content:m((en==null?void 0:en.answer)||"")};Ec.push(vn)})),kt.showRateBtn){const en={name:m("i18n.rate"),code:"rate",type:_b};Ec.push(en)}if(E(Ec),kt.showFaqs){const en=[];kt.faqs.forEach(vn=>{const In={question:m(vn.question),answer:m(vn.answer),uid:vn.uid,type:vn.type};en.push(In)}),D(en)}if(T((kt==null?void 0:kt.showFaqs)||!1),kt.showRightIframe&&(F(!0),B(kt.rightIframeUrl)),kt.showGuessFaqs){const en=[];kt.guessFaqs.forEach(vn=>{const In={question:m(vn.question),answer:m(vn.answer),uid:vn.uid,type:vn.type};en.push(In)}),en.length>0&&te({_id:ea(),type:Y8,content:JSON.stringify(en),createdAt:jt().toDate().getTime(),user:{uid:Pn==null?void 0:Pn.uid,nickname:Pn==null?void 0:Pn.nickname,avatar:Pn==null?void 0:Pn.avatar},position:"left"})}if(kt.showHotFaqs){const en=[];if(kt.hotFaqs.forEach(vn=>{const In={question:m(vn.question),answer:m(vn.answer),uid:vn.uid,type:vn.type};en.push(In)}),console.log("show hot faqs:",en),en.length>0){console.log("show hot faqs appendMsg");const In={uid:ea(),type:X8,content:JSON.stringify(en),status:G8,createdAt:rl(),client:lr,thread:So,user:{uid:Pn==null?void 0:Pn.uid,nickname:Pn==null?void 0:Pn.nickname,avatar:Pn==null?void 0:Pn.avatar}};Ke(In)}}if(kt.showShortcutFaqs){const en=[];if(kt.shortcutFaqs.forEach(vn=>{const In={question:m(vn.question),answer:m(vn.answer),code:vn.uid,type:vn.type};en.push(In)}),en.length>0){const In={uid:ea(),type:Q8,content:JSON.stringify(en),status:G8,createdAt:rl(),client:lr,thread:So,user:{uid:Pn==null?void 0:Pn.uid,nickname:Pn==null?void 0:Pn.nickname,avatar:Pn==null?void 0:Pn.avatar}};Ke(In)}}kt.showHistory&&console.log("showHistory: 允许拉取历史消息"),kt.showTopTip&&q((kt==null?void 0:kt.topTip)||""),K((kt==null?void 0:kt.showTopTip)||!1),Ke(_n);const dn={username:(Dr=U.current)==null?void 0:Dr.uid,topic:((Qr=_n==null?void 0:_n.thread)==null?void 0:Qr.topic)||"",orgUid:U.current.orgUid||""};T9(dn)}else Qa.fail(((Zr=$t==null?void 0:$t.data)==null?void 0:Zr.message)||"获取信息败")},Ie=()=>{if(na){const Ae=[...t];[].forEach($t=>{Ae.some(Ct=>Ct.type===$t.type)||Ae.push($t)}),r(Ae)}},Ge=()=>{const Ae=localStorage.getItem(Gw);Ae===null?(localStorage.setItem(Gw,"true"),Ne(!0)):Ne(Ae==="true")},Ye=async()=>{var $t,Ct,Rt,Yt;if(se.current){console.log("isLoadingMessage.current: ",se.current);return}se.current=!0,Ca.loading(m("i18n.loading"));const Ae={pageNumber:Q,pageSize:20,topic:b==null?void 0:b.topic,componentType:ipe},lt=await OSe(Ae);console.log("queryMessagesByThreadTopic: ",lt.data,Ae),lt.data.code===200?(Me((Ct=($t=lt==null?void 0:lt.data)==null?void 0:$t.data)==null?void 0:Ct.content),(Yt=(Rt=lt==null?void 0:lt.data)==null?void 0:Rt.data)!=null&&Yt.last?Se(""):J(Q+1),Ca.destroy()):(lt.data.code,Ca.destroy()),se.current=!1};u.useEffect(()=>(ge(),Oe(),Ie(),Ge(),()=>{jSe()}),[]);const it=(Ae,lt)=>{if(console.log("handleSend",Ae,lt),I){Qa.fail("客服已离线,请通过上方留言框联系我们");return}ve(""),It(!1),Ae===Yf.toLowerCase()&<.trim()?Ze(lt):Qa.fail("暂不支持此类型")},Ze=Ae=>{var Rt;const lt=ea(),$t={orgUid:U.current.orgUid},Ct={uid:lt,type:Yf,content:Ae,status:Ql,createdAt:rl(),client:lr,extra:JSON.stringify($t),thread:b,user:S};Pe.current===!0?(console.log("handleSendText: isRobot"),pt(),Ke(Ct),NSe(JSON.stringify(Ct),function(Yt){console.log("sendSseMessage: ",Yt),Bt(),Be(Ct==null?void 0:Ct.uid,uR),Ke(Yt)})):(console.log("handleSendText: isAgent"),Ke(Ct),ec(JSON.stringify(Ct))),(Rt=ue==null?void 0:ue.current)==null||Rt.scrollToEnd()},Xe=async Ae=>{ve(Ae),h(Ae)},Ue=Ae=>(console.log("handleImageSend",Ae),Lv(Ae,lt=>{xt(lt.data.fileUrl,du)}),Promise.resolve()),rt=Ae=>{var $t;console.log("handleImageChange event: ",Ae);const lt=($t=Ae.target.files)==null?void 0:$t.item(0);lt&&(console.log("handleImageChange file: ",lt),Lv(lt,Ct=>{xt(Ct.data.fileUrl,du)}))},ft=Ae=>{var $t;console.log("handleFileChange event: ",Ae);const lt=($t=Ae.target.files)==null?void 0:$t.item(0);lt&&(console.log("handleFileChange file: ",lt),Lv(lt,Ct=>{xt(Ct.data.fileUrl,Xm)}))},pt=()=>{de(!0),xe(m("i18n.typing")),setTimeout(()=>{de(!1),xe("")},5e3)},Bt=()=>{de(!1),xe("")},xt=(Ae,lt)=>{var Yt;console.log("handleDropSend",Ae);const $t=ea(),Ct={orgUid:U.current.orgUid},Rt={uid:$t,type:lt,content:Ae,status:Ql,createdAt:rl(),client:lr,extra:JSON.stringify(Ct),thread:b,user:S};ec(JSON.stringify(Rt)),(Yt=ue==null?void 0:ue.current)==null||Yt.scrollToEnd()},Ve=(Ae,lt)=>{if(console.log("handleQuickReplyClick",Ae,lt),Ae.type===_b)BSe({thread:b,visitor:S});else if(Ae.type==="transferToAgent")Ca.loading("转接中..."),Ce(!0);else{const $t={uid:Ae.code,type:Ae.type,question:Ae.name,answer:Ae.name};ze($t,lt)}},fe=(Ae,lt)=>{var $t,Ct;console.log("handleToolbarClick",Ae,lt),Ae.type==="smile"?we(!0):Ae.type==="orderSelector"?te({_id:ea(),type:"order-selector",content:{},position:"pop"}):Ae.type==="image"?($t=Y==null?void 0:Y.current)==null||$t.click():Ae.type==="file"?(Ct=ne==null?void 0:ne.current)==null||Ct.click():ne.current&&ne.current.click()},De=Ae=>{var lt;console.log("handleEmojiSelect",pe,Ae),we(!1),ve(pe+Ae),(lt=ce==null?void 0:ce.current)==null||lt.setText(pe+Ae)},ze=async(Ae,lt)=>{var ht,vt;console.log("handleFaqClick",lt);const $t=await XCe(Ae.uid);console.log("queryByUid response:",$t.data);const Ct=(ht=$t==null?void 0:$t.data)==null?void 0:ht.data;$t.data.code===200?(te({_id:ea(),type:Yf,hasTime:!0,createdAt:jt().toDate().getTime(),content:Ct.question,position:"right",user:{avatar:localStorage.getItem(mv)||""}}),te({_id:ea(),type:Yw,hasTime:!0,createdAt:jt().toDate().getTime(),content:JSON.stringify(Ct),position:"left",user:{avatar:x.avatar}})):Ca.error($t.data.message);const Yt={uid:ea(),faq:Ae,thread:b,visitor:S};ASe(Yt),(vt=ue==null?void 0:ue.current)==null||vt.scrollToEnd()},yt=()=>{console.log("handleTransferToAgent"),Ce(!0)},ct=(Ae,lt)=>{console.log("handleStreamQaClick",Ae,lt),te({_id:ea(),type:Yf,hasTime:!0,createdAt:jt().toDate().getTime(),content:Ae,position:"right",user:{avatar:localStorage.getItem(mv)||""}}),te({_id:ea(),type:Cg,hasTime:!0,createdAt:jt().toDate().getTime(),content:lt,position:"left",user:{avatar:x.avatar}})},Qe=Ae=>{const{_id:lt,type:$t,content:Ct}=Ae,Rt={orgUid:U.current.orgUid},Yt={uid:lt.toString(),type:$t,content:Ct,status:Ql,createdAt:rl(),client:lr,extra:JSON.stringify(Rt),thread:b,user:S},ht=JSON.stringify(Yt);ec(ht)};u.useEffect(()=>{const Ae=[];We.forEach(lt=>{var $t;Ae.push({_id:lt==null?void 0:lt.uid,type:lt==null?void 0:lt.type,status:lt==null?void 0:lt.status,hasTime:!0,createdAt:jt(lt==null?void 0:lt.createdAt).toDate().getTime(),content:m((lt==null?void 0:lt.content)||""),position:Bye(lt),user:{avatar:($t=lt==null?void 0:lt.user)==null?void 0:$t.avatar}})}),oe(Ae)},[We]);const mt=Ae=>{var ht;const{_id:lt,type:$t,content:Ct,position:Rt,status:Yt}=Ae;switch($t){case wme:return P.jsx(yXe,{uid:lt.toString(),content:Ct,welcomeFaqs:R,thread:b,visitor:S,orgUid:U.current.orgUid,onFaqClick:ze});case Yf:return P.jsxs(P.Fragment,{children:[P.jsx(Zu,{content:Ct,isRichText:cG(Ct),onContextMenu:()=>Je(event,Ae)}),Rt==="right"&&P.jsx(Pc,{status:Yt,onRetry:()=>Qe(Ae)})]});case Cg:return P.jsxs(P.Fragment,{children:[P.jsx(gXe,{uid:lt.toString(),content:Ct,thread:b,visitor:S,onQuestionClick:ct}),Rt==="right"&&P.jsx(Pc,{status:Yt,onRetry:()=>Qe(Ae)})]});case du:return P.jsxs(P.Fragment,{children:[P.jsx(Zu,{type:"image",onContextMenu:()=>Je(event,Ae),children:P.jsx(mY,{src:Ct,children:P.jsx("img",{src:Ct,alt:""})})}),Rt==="right"&&P.jsx(Pc,{status:Yt,onRetry:()=>Qe(Ae)})]});case Xm:return P.jsxs(P.Fragment,{children:[P.jsx(Zu,{type:"file",onContextMenu:()=>Je(event,Ae),children:P.jsx(iSe,{fileUrl:Ct,children:P.jsx(po,{onClick:()=>Aye(Ct),children:"下载文件"})})}),Rt==="right"&&P.jsx(Pc,{status:Yt,onRetry:()=>Qe(Ae)})]});case Sg:return P.jsxs(P.Fragment,{children:[P.jsx(Zu,{style:{maxWidth:200},onContextMenu:()=>Je(event,Ae),children:P.jsx(rSe,{src:Ae.content})}),Rt==="right"&&P.jsx(Pc,{status:Yt,onRetry:()=>Qe(Ae)})]});case Sme:return P.jsxs(P.Fragment,{children:[P.jsx(es,{size:"xl",children:P.jsx(qG,{img:"//gw.alicdn.com/tfs/TB1p_nirYr1gK0jSZR0XXbP8XXa-300-300.png",name:"这个商品名称非常非常长长到会换行",desc:"商品描述",tags:[{name:"3个月免息"},{name:"4.1折"},{name:"黑卡再省33.96"}],currency:"¥",meta:"7人付款",count:6,unit:"kg",onClick:vt=>console.log(vt),action:{onClick(vt){console.log(vt),vt.stopPropagation()}}})}),Rt==="right"&&P.jsx(Pc,{status:Yt,onRetry:()=>Qe(Ae)})]});case Cme:return P.jsxs(P.Fragment,{children:[I&&P.jsx(P.Fragment,{children:P.jsx($Ue,{uid:lt.toString(),content:Ct,status:Yt,thread:b,visitor:S})}),!I&&P.jsxs(P.Fragment,{children:[P.jsx(Zu,{content:m(Ct)}),Rt==="right"&&P.jsx(Pc,{status:Yt})]})]});case Yw:return P.jsx(_2e,{uid:lt.toString(),vipLevel:((ht=U==null?void 0:U.current)==null?void 0:ht.vipLevel)||"0",content:Ct,thread:b,visitor:S,onFaqClick:ze,onTransferToAgent:yt});case Ome:return P.jsx(o2e,{uid:lt.toString(),content:Hye(Ct),thread:b,visitor:S});case _b:case Nq:return P.jsx(a2e,{uid:lt.toString(),content:Ct,status:Yt,type:$t,thread:b,visitor:S});case Y8:return P.jsx(BUe,{content:Ct,onFaqClick:ze});case X8:return P.jsx(zUe,{content:Ct,onFaqClick:ze});case Q8:return P.jsx(HUe,{content:Ct,onFaqClick:ze});case"order-selector":return P.jsx(VUe,{});default:return console.log("renderMessageContent: default",Ae),P.jsxs(P.Fragment,{children:[P.jsx(Zu,{content:m(Ct)}),Rt==="right"&&P.jsx(Pc,{status:Yt})]})}};u.useEffect(()=>{if((v==null?void 0:v.length)>0&&!I&&!cE(b)){console.log("debouncedPreviewText",v);const Ae={orgUid:U.current.orgUid},lt={uid:ea(),type:mR,content:v,status:Ql,createdAt:rl(),client:lr,extra:JSON.stringify(Ae),thread:b,user:S},$t=JSON.stringify(lt);ec($t)}Et(v)},[v,S,b]);const Et=async Ae=>{var lt,$t,Ct;if((v==null?void 0:v.length)>0){const Rt={question:Ae,orgUid:U.current.orgUid},Yt=await GCe(Rt);console.log("handleSearchAutoComplete response:",Yt.data),((lt=Yt.data)==null?void 0:lt.code)===200&&((Ct=($t=Yt.data)==null?void 0:$t.data)==null?void 0:Ct.length)>0?(Mt(Yt.data.data),It(!0)):(Mt([]),It(!1))}else Mt([]),It(!1)},At=u.useCallback(()=>setInterval(async()=>{var Ae;if(!I&&!cE(b)){const lt=await RSe(S==null?void 0:S.uid);if(((Ae=lt==null?void 0:lt.data)==null?void 0:Ae.data)>0){const Ct=await ISe(S==null?void 0:S.uid);if(console.log("autoPingMessage 拉取未读消息",S==null?void 0:S.uid,Ct),Ct!=null&&Ct.data){const Rt=Ct==null?void 0:Ct.data.data;console.log("autoPingMessage 拉取未读消息",S==null?void 0:S.uid,Rt),Rt==null||Rt.forEach(Yt=>{Ke(Yt)})}}}},1e4),[I,b,S==null?void 0:S.uid,Ke]);u.useEffect(()=>{const Ae=At();return()=>{clearInterval(Ae)}},[At]),u.useEffect(()=>{const Ae=Ct=>{var vt;const Rt=JSON.parse(Ct),Yt=(vt=Rt==null?void 0:Rt.uid)==null?void 0:vt.toString(),ht=Z.find(Lt=>Lt._id.toString()===Yt);ht?ee(Rt==null?void 0:Rt.uid,{type:ht==null?void 0:ht.type,hasTime:ht==null?void 0:ht.hasTime,createdAt:ht==null?void 0:ht.createdAt,content:ht==null?void 0:ht.content,position:ht==null?void 0:ht.position,user:ht==null?void 0:ht.user,status:Rt==null?void 0:Rt.type}):console.log("handleMessageTypeStatus msg is undefined")},lt=Ct=>{var vt;console.log("handleMessageTypeContent",Ct);const Rt=JSON.parse(Ct),Yt=(vt=Rt==null?void 0:Rt.uid)==null?void 0:vt.toString(),ht=Z.find(Lt=>{const Gt=Lt._id.toString();return console.log(`Comparing ${Gt} with ${Yt}`),Gt===Yt});ht?(console.log("handleMessageTypeContent msg",Rt),ee(Rt==null?void 0:Rt.uid,{_id:ht==null?void 0:ht._id,type:dR,hasTime:ht==null?void 0:ht.hasTime,createdAt:ht==null?void 0:ht.createdAt,content:Rt==null?void 0:Rt.content,position:ht==null?void 0:ht.position,user:ht==null?void 0:ht.user,status:ht==null?void 0:ht.status})):console.log("handleMessageTypeStatus msg is undefined")},$t=Ct=>{console.log("handleHttpError",Ct),Qa.fail("http error with code: "+Ct)};return xi.on(A4,Ae),xi.on(L4,lt),xi.on(_d,$t),()=>{xi.off(A4,Ae),xi.off(L4,lt),xi.off(_d,$t)}},[Z,ee]);const Ht=()=>{console.log("handleRecordStart")},wt=Ae=>{console.log("handleRecordEnd",Ae)},st=()=>{console.log("handleRecordCancel")},[St,Vt]=u.useState(""),[Dt]=u.useState(""),nn=f.get("backgroundColor"),gn=f.get("textColor"),bn=()=>i?{backgroundColor:"#333333",textColor:"#ffffff"}:{backgroundColor:"#ffffff",textColor:"#333333"},Er=()=>{if(St)switch(St.toLowerCase()){case"light":return{backgroundColor:"#ffffff",textColor:"#333333"};case"dark":return{backgroundColor:"#333333",textColor:"#ffffff"};case"blue":return{backgroundColor:"#0066FF",textColor:"#ffffff"};default:return bn()}return bn()},gr=u.useMemo(()=>{const Ae=Er();return{backgroundColor:nn||Ae.backgroundColor,color:gn||Ae.textColor}},[nn,gn]),rr=()=>{window.parent!==window?window.parent.postMessage({type:Hme},"*"):window.close()},zr=()=>{window.parent!==window&&window.parent.postMessage({type:Vme},"*")},yn=()=>{window.parent!==window&&window.parent.postMessage({type:Wme},"*")},[Ft,Mt]=u.useState([]),[Cn,It]=u.useState(!1),Nt=()=>window.innerWidth<=580;return P.jsxs(P.Fragment,{children:[P.jsx(yQe,{isDarkMode:i,imageInputRef:Y,fileInputRef:ne,handleImageChange:rt,handleFileChange:ft}),P.jsxs(WCe,{onImageSend:xt,children:[be&&P.jsx(bXe,{title:g,description:Dt,typing:ae,typingTip:he,agent:x,isPlayAudio:$e,setIsPlayAudio:Ne,handleMinimize:yn,handleMaximize:zr,handleClose:rr,navbarStyle:gr,navbarTheme:St}),P.jsxs("div",{className:"chat-container",style:{position:"relative"},children:[Cn&&Ft.length>0&&pe.trim().length>0&&P.jsx(wXe,{isDarkMode:i,searchResults:Ft,isMobile:Nt(),handleFaqClick:ze,setShowSearchResults:It,setInputText:ve,setPreviewText:h,debouncedPreviewText:v}),P.jsx(k2e,{children:P.jsx(kSe,{elderMode:!1,showTopTip:W,topTipContent:X,loadMoreText:me,onRefresh:Ye,messages:Z,isTyping:ae,messagesRef:ue,renderMessageContent:mt,text:pe,composerRef:ce,inputOptions:{showCount:!1},quickReplies:_,onQuickReplyClick:Ve,placeholder:m(V),onSend:it,onImageSend:Ue,onInputChange:Xe,toolbar:n,onToolbarClick:fe,wideBreakpoint:"600px",recorder:{canRecord:na,volume:.5,onStart:Ht,onEnd:wt,onCancel:st}})}),$&&(N==null?void 0:N.length)>0&&P.jsx(xXe,{faqs:N,isDarkMode:i,handleFaqClick:ze}),O&&P.jsx(SXe,{isDarkMode:i,rightIframeUrl:L}),P.jsx(CXe,{menuId:sD,handleRightClick:tt})]}),P.jsx(gQe,{showEmoji:_e,setShowEmoji:we,handleEmojiSelect:De})]})]})},bQe=()=>P.jsx("h1",{children:"404"}),wQe=()=>P.jsx("div",{children:"TicketBox"}),xQe=[{key:"after",label:"售后支持",children:[{key:"chat",label:"在线服务"},{key:"tickets",label:"我的工单"},{key:"tickets-create",label:"提交工单"}]},{key:"before",label:"售前服务",children:[{key:"chat-pre",label:"在线服务"}]}],SQe=()=>{const e=t=>{console.log("click ",t)};return P.jsx(gf,{onClick:e,defaultSelectedKeys:["chat"],defaultOpenKeys:["after","before"],mode:"inline",items:xQe})},CQe=()=>P.jsxs(P.Fragment,{children:[P.jsx("div",{style:{float:"left"},children:P.jsx(Dn,{type:"text",style:{color:"white"},children:"微语客服中心"})}),P.jsx(Go,{}),P.jsx("div",{style:{float:"right"},children:P.jsx(J2,{size:44})})]}),kQe=()=>{const e=t=>{window.open(t,"_blank")};return P.jsx(P.Fragment,{children:P.jsx("div",{style:{cursor:"pointer",fontSize:15,color:"white"},onClick:()=>e("https:/www.weiyuai.cn"),children:"微语AI"})})},_Qe=()=>P.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:P.jsx("iframe",{src:"/chat/?org=df_org_uid&t=1&sid=df_wg_uid&",width:"100%",height:"100%",frameBorder:"0",style:{boxShadow:"0 0 7px rgba(0, 0, 0, 0.4)",borderRadius:"inherit"}})}),{Header:EQe,Footer:$Qe,Sider:PQe,Content:TQe}=_u,OQe={color:"#fff",height:64,paddingInline:48,lineHeight:"64px",backgroundColor:"#4096ff"},RQe={textAlign:"center",color:"#fff",backgroundColor:"#0958d9"},IQe={textAlign:"center",lineHeight:"120px",color:"#fff",backgroundColor:"#1677ff"},MQe={height:20,textAlign:"center",color:"#fff",backgroundColor:"#4096ff"},NQe={overflow:"hidden",with:"100%",height:"100%"},DQe=()=>P.jsx(P.Fragment,{children:P.jsxs(_u,{style:NQe,children:[P.jsx(EQe,{style:OQe,children:P.jsx(CQe,{})}),P.jsxs(_u,{children:[P.jsx(PQe,{width:"15%",style:IQe,children:P.jsx(SQe,{})}),P.jsx(TQe,{style:RQe,children:P.jsx(_Qe,{})})]}),P.jsx($Qe,{style:MQe,children:P.jsx(kQe,{})})]})}),FQe=[{title:"技能组",dataIndex:"workgroup"},{title:"提示",dataIndex:"waiting"},{title:"操作",dataIndex:"action"}],jQe=[{key:"1",workgroup:"技能组1",waiting:"前面有0人,无需等待",action:P.jsx(Dn,{type:"primary",children:"取号"})},{key:"2",workgroup:"技能组2",waiting:"前面有3人,大概等待时长20分钟",action:P.jsx(Dn,{type:"primary",children:"取号"})}],AQe=(e,t,n,r)=>{console.log("params",e,t,n,r)},LQe=()=>P.jsxs(P.Fragment,{children:[P.jsx("h2",{children:"技能组取号"}),P.jsxs(eh,{children:[P.jsx(ua,{span:4}),P.jsx(ua,{span:16,children:P.jsx(wo,{columns:FQe,dataSource:jQe,onChange:AQe,showSorterTooltip:{target:"sorter-icon"}})}),P.jsx(ua,{span:4})]})]}),BQe=[{title:"客服",dataIndex:"agent"},{title:"提示",dataIndex:"waiting"},{title:"操作",dataIndex:"action"}],zQe=[{key:"1",agent:"客服1",waiting:"前面有0人,无需等待",action:P.jsx(Dn,{type:"primary",children:"取号"})},{key:"2",agent:"客服2",waiting:"前面有3人,大概等待时长20分钟",action:P.jsx(Dn,{type:"primary",children:"取号"})}],HQe=(e,t,n,r)=>{console.log("params",e,t,n,r)},VQe=()=>P.jsxs(P.Fragment,{children:[P.jsx("h2",{children:"一对一取号"}),P.jsxs(eh,{children:[P.jsx(ua,{span:4}),P.jsx(ua,{span:16,children:P.jsx(wo,{columns:BQe,dataSource:zQe,onChange:HQe,showSorterTooltip:{target:"sorter-icon"}})}),P.jsx(ua,{span:4})]})]}),WQe=()=>P.jsxs(P.Fragment,{children:[P.jsx("h1",{children:"取号"}),P.jsx(LQe,{}),P.jsx(VQe,{})]}),UQe=[{title:"技能组",dataIndex:"workgroup"},{title:"下一个",dataIndex:"next"},{title:"队列",dataIndex:"queue"}],qQe=[{key:"1",workgroup:"技能组1",next:"访客1",queue:"访客2,访客3,访客4"},{key:"2",workgroup:"技能组2",next:"访客5",queue:"访客6,访客7,访客8"}],KQe=(e,t,n,r)=>{console.log("params",e,t,n,r)},GQe=()=>P.jsxs(P.Fragment,{children:[P.jsx("h2",{children:"技能组排队队列"}),P.jsxs(eh,{children:[P.jsx(ua,{span:4}),P.jsx(ua,{span:16,children:P.jsx(wo,{columns:UQe,dataSource:qQe,onChange:KQe,showSorterTooltip:{target:"sorter-icon"}})}),P.jsx(ua,{span:4})]})]}),YQe=[{title:"客服",dataIndex:"agent"},{title:"下一个",dataIndex:"next"},{title:"队列",dataIndex:"queue"}],XQe=[{key:"1",agent:"客服1",next:"访客1",queue:"访客2,访客3,访客4"},{key:"2",agent:"客服2",next:"访客5",queue:"访客6,访客7,访客8"}],QQe=(e,t,n,r)=>{console.log("params",e,t,n,r)},ZQe=()=>P.jsxs(P.Fragment,{children:[P.jsx("h2",{children:"一对一排队队列"}),P.jsxs(eh,{children:[P.jsx(ua,{span:4}),P.jsx(ua,{span:16,children:P.jsx(wo,{columns:YQe,dataSource:XQe,onChange:QQe,showSorterTooltip:{target:"sorter-icon"}})}),P.jsx(ua,{span:4})]})]}),JQe=()=>P.jsxs(P.Fragment,{children:[P.jsx("h1",{children:"排队队列"}),P.jsx(GQe,{}),P.jsx(ZQe,{})]}),eZe=()=>P.jsx("div",{children:P.jsx("h1",{children:"Feedback"})});var $a=function(){return $a=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?bi(sh,--Yo):0,yp--,ri===10&&(yp=1,Ik--),ri}function Ts(){return ri=Yo2||h6(ri)>3?"":" "}function uZe(e,t){for(;--t&&Ts()&&!(ri<48||ri>102||ri>57&&ri<65||ri>70&&ri<97););return Nk(e,cw()+(t<6&&Id()==32&&Ts()==32))}function v6(e){for(;Ts();)switch(ri){case e:return Yo;case 34:case 39:e!==34&&e!==39&&v6(ri);break;case 40:e===41&&v6(e);break;case 92:Ts();break}return Yo}function dZe(e,t){for(;Ts()&&e+ri!==57;)if(e+ri===84&&Id()===47)break;return"/*"+Nk(t,Yo-1)+"*"+pN(e===47?e:Ts())}function fZe(e){for(;!h6(Id());)Ts();return Nk(e,Yo)}function mZe(e){return lZe(uw("",null,null,null,[""],e=sZe(e),0,[0],e))}function uw(e,t,n,r,i,a,o,s,l){for(var c=0,d=0,f=o,m=0,p=0,h=0,v=1,g=1,w=1,b=0,y="",x=i,C=a,S=r,k=y;g;)switch(h=b,b=Ts()){case 40:if(h!=108&&bi(k,f-1)==58){lw(k+=En(t3(b),"&","&\f"),"&\f",Are(c?s[c-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:k+=t3(b);break;case 9:case 10:case 13:case 32:k+=cZe(h);break;case 92:k+=uZe(cw()-1,7);continue;case 47:switch(Id()){case 42:case 47:Ev(pZe(dZe(Ts(),cw()),t,n,l),l);break;default:k+="/"}break;case 123*v:s[c++]=il(k)*w;case 125*v:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+d:w==-1&&(k=En(k,/\f/g,"")),p>0&&il(k)-f&&Ev(p>32?fB(k+";",r,n,f-1,l):fB(En(k," ","")+";",r,n,f-2,l),l);break;case 59:k+=";";default:if(Ev(S=dB(k,t,n,c,d,i,s,y,x=[],C=[],f,a),a),b===123)if(d===0)uw(k,t,S,S,x,a,f,s,C);else switch(m===99&&bi(k,3)===110?100:m){case 100:case 108:case 109:case 115:uw(e,S,S,r&&Ev(dB(e,S,S,0,0,i,s,y,i,x=[],f,C),C),i,C,f,s,r?x:C);break;default:uw(k,S,S,S,[""],C,0,s,C)}}c=d=p=0,v=w=1,y=k="",f=o;break;case 58:f=1+il(k),p=h;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&oZe()==125)continue}switch(k+=pN(b),b*v){case 38:w=d>0?1:(k+="\f",-1);break;case 44:s[c++]=(il(k)-1)*w,w=1;break;case 64:Id()===45&&(k+=t3(Ts())),m=Id(),d=f=il(y=k+=fZe(cw())),b++;break;case 45:h===45&&il(k)==2&&(v=0)}}return a}function dB(e,t,n,r,i,a,o,s,l,c,d,f){for(var m=i-1,p=i===0?a:[""],h=Bre(p),v=0,g=0,w=0;v0?p[b]+" "+y:En(y,/&\f/g,p[b])))&&(l[w++]=x);return Mk(e,t,n,i===0?Rk:s,l,c,d,f)}function pZe(e,t,n,r){return Mk(e,t,n,Fre,pN(aZe()),gp(e,2,-2),0,r)}function fB(e,t,n,r,i){return Mk(e,t,n,mN,gp(e,0,r),gp(e,r+1,-1),r,i)}function Hre(e,t,n){switch(rZe(e,t)){case 5103:return Jn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Jn+e+e;case 4789:return tg+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Jn+e+tg+e+br+e+e;case 5936:switch(bi(e,t+11)){case 114:return Jn+e+br+En(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Jn+e+br+En(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Jn+e+br+En(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Jn+e+br+e+e;case 6165:return Jn+e+br+"flex-"+e+e;case 5187:return Jn+e+En(e,/(\w+).+(:[^]+)/,Jn+"box-$1$2"+br+"flex-$1$2")+e;case 5443:return Jn+e+br+"flex-item-"+En(e,/flex-|-self/g,"")+(Hl(e,/flex-|baseline/)?"":br+"grid-row-"+En(e,/flex-|-self/g,""))+e;case 4675:return Jn+e+br+"flex-line-pack"+En(e,/align-content|flex-|-self/g,"")+e;case 5548:return Jn+e+br+En(e,"shrink","negative")+e;case 5292:return Jn+e+br+En(e,"basis","preferred-size")+e;case 6060:return Jn+"box-"+En(e,"-grow","")+Jn+e+br+En(e,"grow","positive")+e;case 4554:return Jn+En(e,/([^-])(transform)/g,"$1"+Jn+"$2")+e;case 6187:return En(En(En(e,/(zoom-|grab)/,Jn+"$1"),/(image-set)/,Jn+"$1"),e,"")+e;case 5495:case 3959:return En(e,/(image-set\([^]*)/,Jn+"$1$`$1");case 4968:return En(En(e,/(.+:)(flex-)?(.*)/,Jn+"box-pack:$3"+br+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Jn+e+e;case 4200:if(!Hl(e,/flex-|baseline/))return br+"grid-column-align"+gp(e,t)+e;break;case 2592:case 3360:return br+En(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Hl(r.props,/grid-\w+-end/)})?~lw(e+(n=n[t].value),"span",0)?e:br+En(e,"-start","")+e+br+"grid-row-span:"+(~lw(n,"span",0)?Hl(n,/\d+/):+Hl(n,/\d+/)-+Hl(e,/\d+/))+";":br+En(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Hl(r.props,/grid-\w+-start/)})?e:br+En(En(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return En(e,/(.+)-inline(.+)/,Jn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(il(e)-1-t>6)switch(bi(e,t+1)){case 109:if(bi(e,t+4)!==45)break;case 102:return En(e,/(.+:)(.+)-([^]+)/,"$1"+Jn+"$2-$3$1"+tg+(bi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~lw(e,"stretch",0)?Hre(En(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return En(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,a,o,s,l,c){return br+i+":"+a+c+(o?br+i+"-span:"+(s?l:+l-+a)+c:"")+e});case 4949:if(bi(e,t+6)===121)return En(e,":",":"+Jn)+e;break;case 6444:switch(bi(e,bi(e,14)===45?18:11)){case 120:return En(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Jn+(bi(e,14)===45?"inline-":"")+"box$3$1"+Jn+"$2$3$1"+br+"$2box$3")+e;case 100:return En(e,":",":"+br)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return En(e,"scroll-","scroll-snap-")+e}return e}function tS(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case mN:e.return=Hre(e.value,e.length,n);return;case jre:return tS([Ac(e,{value:En(e.value,"@","@"+Jn)})],r);case Rk:if(e.length)return iZe(n=e.props,function(i){switch(Hl(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":qf(Ac(e,{props:[En(i,/:(read-\w+)/,":"+tg+"$1")]})),qf(Ac(e,{props:[i]})),p6(e,{props:uB(n,r)});break;case"::placeholder":qf(Ac(e,{props:[En(i,/:(plac\w+)/,":"+Jn+"input-$1")]})),qf(Ac(e,{props:[En(i,/:(plac\w+)/,":"+tg+"$1")]})),qf(Ac(e,{props:[En(i,/:(plac\w+)/,br+"input-$1")]})),qf(Ac(e,{props:[i]})),p6(e,{props:uB(n,r)});break}return""})}}var bZe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ga={ELECTRON_MIRROR:"http://npm.taobao.org/mirrors/electron/",NVM_INC:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/include/node",npm_package_dependencies_emoji_mart:"^5.6.0",npm_package_dependencies_use_debounce:"^10.0.1",npm_package_devDependencies__types_sockjs_client:"^1.5.4",TERM_PROGRAM:"vscode",rvm_bin_path:"/Users/ningjinpeng/.rvm/bin",NODE:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",PYENV_ROOT:"/Users/ningjinpeng/.pyenv",NVM_CD_FLAGS:"-q",GEM_HOME:"/Users/ningjinpeng/.gem/ruby",npm_package_dependencies_axios:"^1.7.2",npm_package_dependencies_moment:"^2.30.1",npm_package_devDependencies_typescript:"^5.2.2",INIT_CWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/visitor",TERM:"xterm-256color",SHELL:"/bin/zsh",npm_package_devDependencies_vite:"^5.2.0",HOMEBREW_BOTTLE_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles",HOMEBREW_API_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api",npm_config_shamefully_hoist:"true",TMPDIR:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/",HOMEBREW_REPOSITORY:"/opt/homebrew",npm_package_scripts_release:"sh cicd/scripts/build-upload.sh",npm_package_scripts_lint:"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",npm_package_dependencies__ant_design_x:"^1.0.5",TERM_PROGRAM_VERSION:"1.98.2",npm_package_dependencies_dompurify:"^3.1.4",npm_package_devDependencies__vitejs_plugin_react:"^4.2.1",npm_package_scripts_dev:"vite --host --mode dev",ZDOTDIR:"/Users/ningjinpeng",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",MallocNanoZone:"0",npm_package_dependencies_uuid:"^9.0.1",npm_package_private:"true",npm_config_registry:"https://registry.npmmirror.com/",PNPM_HOME:"/Users/ningjinpeng/Library/pnpm",npm_package_dependencies_react_dom:"^18.2.0",npm_package_devDependencies_eslint_plugin_react_refresh:"^0.4.6",OBJC_DISABLE_INITIALIZE_FORK_SAFETY:"YES",npm_package_dependencies_react_dropzone:"^14.2.3",USER:"ningjinpeng",NVM_DIR:"/Users/ningjinpeng/.nvm",npm_package_devDependencies__testing_library_react:"^15.0.7",npm_package_devDependencies__types_react:"^18.2.66",COMMAND_MODE:"unix2003",npm_package_dependencies_intersection_observer:"^0.12.2",npm_package_dependencies_react_helmet_async:"^2.0.5",npm_package_scripts_release_open:"sh cicd/scripts/build-open.sh",PNPM_SCRIPT_SRC_DIR:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/visitor",rvm_path:"/Users/ningjinpeng/.rvm",HOMEBREW_INSTALL_FROM_API:"1",HOMEBREW_CORE_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",FLUTTER_ROOT:"/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/flutter",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.yibVKLTnXr/Listeners",npm_package_dependencies_zustand:"^4.5.2",VSCODE_PROFILE_INITIALIZED:"1",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",PUB_HOSTED_URL:"https://pub.flutter-io.cn",npm_package_dependencies_styled_components:"^6.1.13",npm_package_devDependencies__types_jest:"^29.5.12",npm_package_devDependencies_eslint:"^8.57.0",npm_package_devDependencies_less:"^4.2.0",npm_package_devDependencies__typescript_eslint_eslint_plugin:"^7.2.0",npm_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/pnpm/bin/pnpm.cjs",npm_package_scripts_build_open:"tsc && vite build --mode open",npm_package_devDependencies__types_react_dom:"^18.2.22",npm_config_frozen_lockfile:"",rvm_prefix:"/Users/ningjinpeng",npm_package_devDependencies__typescript_eslint_parser:"^7.2.0",PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/visitor/node_modules/.bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/usr/local/bin",npm_package_dependencies__emoji_mart_react:"^1.1.1",npm_package_dependencies_immer:"^10.1.1",npm_package_dependencies__repo_chatui:"workspace:*",USER_ZDOTDIR:"/Users/ningjinpeng",__CFBundleIdentifier:"com.microsoft.VSCode",npm_package_dependencies_react_contexify:"^6.0.0",npm_config_auto_install_peers:"true",PWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/visitor",npm_package_dependencies__repo_api:"workspace:*",npm_command:"run-script",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home",FLUTTER_STORAGE_BASE_URL:"https://storage.flutter-io.cn",npm_package_scripts_preview:"vite preview",npm_package_devDependencies_eslint_plugin_react_hooks:"^4.6.0",npm_package_dependencies_ua_parser_js:"^1.0.37",npm_lifecycle_event:"build:open",LANG:"zh_CN.UTF-8",LOCAL_GIT_DIRECTORY:"/Applications/GitHub Desktop.app/Contents/Resources/app/git",npm_package_name:"visitor",npm_package_dependencies_react_intl:"^6.6.8",npm_package_scripts_release_quanjing:"sh cicd/scripts/build-quanjing.sh",NODE_PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/bin/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/node_modules",npm_package_scripts_build:"tsc && vite build --mode prod",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XPC_FLAGS:"0x0",npm_package_dependencies_react_router_dom:"^6.23.1",npm_package_devDependencies__types_ua_parser_js:"^0.7.39",npm_package_devDependencies__rollup_plugin_alias:"^5.1.0",npm_config_electron_mirror:"https://npmmirror.com/mirrors/electron/",npm_config_node_gyp:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",XPC_SERVICE_NAME:"0",npm_package_version:"0.0.0",npm_package_dependencies_ws:"^8.17.1",VSCODE_INJECTION:"1",rvm_version:"1.29.12 (latest)",SHLVL:"3",PYENV_SHELL:"zsh",HOME:"/Users/ningjinpeng",npm_package_type:"module",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",HOMEBREW_BREW_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",npm_package_dependencies_react_markdown:"^9.0.1",npm_package_dependencies_mitt:"^3.0.1",npm_config_strict_ssl:"",HOMEBREW_PREFIX:"/opt/homebrew",npm_package_dependencies__emoji_mart_data:"^1.2.1",npm_package_devDependencies_cross_env:"^7.0.3",npm_package_dependencies_react_photo_view:"^1.2.6",LOGNAME:"ningjinpeng",npm_lifecycle_script:"tsc && vite build --mode open",VSCODE_GIT_IPC_HANDLE:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/vscode-git-7f4d23a467.sock",npm_package_dependencies_react:"^18.2.0",npm_package_dependencies_sockjs_client:"^1.6.1",NVM_BIN:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin",BUN_INSTALL:"/Users/ningjinpeng/.bun",npm_config_user_agent:"pnpm/9.12.3 npm/? node/v20.0.0 darwin arm64",VSCODE_GIT_ASKPASS_NODE:"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)",GIT_ASKPASS:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",npm_package_dependencies_clsx:"^2.1.1",npm_package_scripts_build_quanjing:"tsc && vite build --mode quanjing",npm_package_dependencies__stomp_stompjs:"^7.0.0",npm_package_dependencies_antd:"^5.23.2",npm_package_devDependencies__types_dompurify:"^3.2.0",COLORTERM:"truecolor",npm_node_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",NODE_ENV:"production"},bp=typeof process<"u"&&Ga!==void 0&&(Ga.REACT_APP_SC_ATTR||Ga.SC_ATTR)||"data-styled",Vre="active",Wre="data-styled-version",Dk="6.1.13",hN=`/*!sc*/ +`;function hQe(e){const t=u.useRef(null),n=u.useRef(null);return n.current&&n.current.update(e),u.useEffect(()=>(n.current=new fN({...e,ref:t}),()=>{n.current=null}),[]),A.createElement("div",{ref:t})}const vQe=({onSelect:e,onClose:t})=>{const[n,r]=u.useState(!0),i=a=>{r(!1),e(a.native)};return P.jsx(HG,{className:"EmojiPicker",active:n,onClose:()=>{r(!1),t()},title:"请选择表情",children:P.jsx("div",{children:P.jsx(hQe,{data:PXe,onEmojiSelect:i})})})},gQe=({showEmoji:e,setShowEmoji:t,handleEmojiSelect:n})=>P.jsx(P.Fragment,{children:e&&P.jsx(vQe,{onSelect:n,onClose:()=>t(!1)})}),yQe=({isDarkMode:e,imageInputRef:t,fileInputRef:n,handleImageChange:r,handleFileChange:i})=>P.jsxs(P.Fragment,{children:[e&&P.jsx(eue,{children:P.jsx("link",{rel:"stylesheet",type:"text/css",href:na?"./assets/css/chatui/chatui-theme-dark.css":"/chat/assets/css/chatui/chatui-theme-dark.css"})}),P.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},ref:t,onChange:r}),P.jsx("input",{type:"file",style:{display:"none"},ref:n,onChange:i})]}),Dre=()=>{const e=cf(),t=[{type:"smile",icon:"smile",title:e.formatMessage({id:"chat.toolbar.emoji"})},{type:"image",title:e.formatMessage({id:"chat.toolbar.image"}),icon:"image"},{type:"file",title:e.formatMessage({id:"chat.toolbar.file"}),icon:"file"}],[n,r]=u.useState(t),{isDarkMode:i,themeMode:a,setThemeMode:o,locale:s,changeLocale:l}=u.useContext(GC),[c,d]=u.useState("zh-cn");console.log("themeMode:",a,"locale: ",s==null?void 0:s.locale,"lang:",c);const[f]=e2(),{translateString:m}=H0(),[p,h]=u.useState(""),[v]=r2e(p,1e3),[g,w]=u.useState("Chat"),[b,y]=u.useState({}),[x,C]=u.useState({}),[S,k]=u.useState({}),[_,E]=u.useState([]),[$,T]=u.useState(!1),[N,D]=u.useState([]),[R,M]=u.useState([]),[O,F]=u.useState(!1),[L,B]=u.useState(""),[I,H]=u.useState(!1),[V,z]=u.useState("i18n.input.placeholder"),[W,K]=u.useState(!1),[X,q]=u.useState(""),Y=u.useRef(null),ne=u.useRef(null),U=u.useRef({orgUid:"df_org_uid",type:"1",sid:""}),[Q,J]=u.useState(0),{messages:Z,appendMsg:te,updateMsg:ee,resetList:oe}=Jwe([]),[ae,de]=u.useState(!1),[he,xe]=u.useState(""),[me,Se]=u.useState(m("i18n.load.more")),ue=u.useRef(null),ce=u.useRef(null),Ee=u.useRef(!1),se=u.useRef(!1),[pe,ve]=u.useState(""),[_e,we]=u.useState(!1),[$e,Ne]=u.useState(!1),[be,ye]=u.useState(!0),Pe=u.useRef(!1),Te=f.get(iD)==="1",ke=f.get(tD)||"",Fe=f.get(nD)||"",He=f.get(rD)||"",[Le,at]=u.useState(null),{messageList:We,addMessage:Ke,addMessageList:Me,updateMessageStatus:Be}=BC(Ae=>({messageList:Ae.messageList,addMessage:Ae.addMessage,addMessageList:Ae.addMessageList,updateMessageStatus:Ae.updateMessageStatus})),{show:et}=MUe({id:sD}),Je=(Ae,lt)=>{console.log("handleContextMenu:",Ae," item:",lt),at(lt),et({event:Ae,props:{key:lt==null?void 0:lt._id.toString()}})},tt=({id:Ae,event:lt,props:$t})=>{switch(console.log("handleRightClick:",Ae,lt,$t),Ae){case"copy":Qa.success("复制成功"),navigator.clipboard.writeText(m(Le==null?void 0:Le.content));break}},nt=async()=>{var $t;console.log("shouldPreload: ",Te);const Ae=await KCe({orgUid:U.current.orgUid||"",type:U.current.type||"",sid:U.current.sid||"",uid:U.current.uid,nickname:U.current.nickname,avatar:U.current.avatar,referrer:ke,url:He,title:Fe,extra:U.current.extra||""});console.log("browse response: ",Ae.data);const lt={username:($t=U.current)==null?void 0:$t.uid,topic:U.current.uid||"",orgUid:U.current.orgUid||""};T9(lt)},ge=()=>{const Ae={};for(const Rt of f.entries())Ae[Rt[0]]=Rt[1];if(Ae[ey]){const Rt=Ae[ey].toLowerCase();npe.includes(Rt)?(d(Rt),l(Rt)):console.warn(`Invalid language value: ${Ae[ey]}`)}else d(Eb),l(Eb);if(Ae[aD]===tpe&&ye(!1),Ae[ty]){const Rt=Ae[ty].toLowerCase();rpe.includes(Rt)?o(Rt):console.warn(`Invalid theme value: ${Ae[ty]}`)}Ae[q_]&&Vt(Ae[q_]);const $t=new USe().getResult();U.current={orgUid:Ae[Z8],type:Ae[J8],sid:Ae[eD],uid:localStorage.getItem(Em)||"",nickname:localStorage.getItem(j4)||"",avatar:localStorage.getItem(mv)||"",lang:(s==null?void 0:s.locale)||Eb,browser:JSON.stringify($t.browser),os:JSON.stringify($t.os),device:JSON.stringify($t.device),referrer:document.referrer,vipLevel:Ae[oD]||"0",extra:""},localStorage.setItem(Np,U.current.orgUid||""),Ae[K_]&&(U.current.uid=Ae[K_]),Ae[G_]&&(U.current.nickname=Ae[G_]),Ae[Y_]&&(U.current.avatar=Ae[Y_]);const Ct={};for(const Rt in Ae)[Z8,J8,eD,ey,ty,Gme,Yme,tD,nD,rD,iD,aD,q_,K_,G_,Y_,oD].includes(Rt)||(Ct[Rt]=Ae[Rt]);U.current.extra=JSON.stringify(Ct),console.log("initInfoParams: ",U.current)},Oe=async()=>{var lt,$t,Ct,Rt,Yt,ht,vt,Lt,Gt,un,pn,Dr,Qr,Zr;const Ae=await UCe(U.current);console.log("initVisitor: ",Ae==null?void 0:Ae.data),Ae&&((lt=Ae==null?void 0:Ae.data)==null?void 0:lt.code)===200?(localStorage.setItem(Em,((Ct=($t=Ae==null?void 0:Ae.data)==null?void 0:$t.data)==null?void 0:Ct.uid)||""),localStorage.setItem(j4,((Yt=(Rt=Ae==null?void 0:Ae.data)==null?void 0:Rt.data)==null?void 0:Yt.nickname)||""),localStorage.setItem(mv,((vt=(ht=Ae==null?void 0:Ae.data)==null?void 0:ht.data)==null?void 0:vt.avatar)||""),k({uid:(Gt=(Lt=Ae==null?void 0:Ae.data)==null?void 0:Lt.data)==null?void 0:Gt.uid,nickname:(pn=(un=Ae==null?void 0:Ae.data)==null?void 0:un.data)==null?void 0:pn.nickname,avatar:(Qr=(Dr=Ae==null?void 0:Ae.data)==null?void 0:Dr.data)==null?void 0:Qr.avatar,type:hme}),ge(),Ce(!1)):Ae!=null&&Ae.data?(Qa.fail(((Zr=Ae==null?void 0:Ae.data)==null?void 0:Zr.message)||"初始化失败"),localStorage.removeItem(Em)):Qa.fail("初始化失败")},Ce=async Ae=>{var Ct,Rt,Yt,ht,vt,Lt,Gt,un,pn,Dr,Qr,Zr;if(Te){nt();return}const lt={orgUid:U.current.orgUid||"",type:U.current.type||"",sid:U.current.sid||"",uid:U.current.uid,nickname:U.current.nickname,avatar:U.current.avatar,referrer:U.current.referrer,forceAgent:Ae},$t=await qCe(lt);if(console.log("initThread response: ",$t.data),$t.data.code===200){Ae&&(Ca.destroy(),Ca.success("转人工成功"));const _n=(Ct=$t==null?void 0:$t.data)==null?void 0:Ct.data;zye(_n)?Pe.current=!0:Pe.current=!1;const So={uid:(Rt=_n==null?void 0:_n.thread)==null?void 0:Rt.uid,topic:(Yt=_n==null?void 0:_n.thread)==null?void 0:Yt.topic,type:(ht=_n==null?void 0:_n.thread)==null?void 0:ht.type,state:(vt=_n==null?void 0:_n.thread)==null?void 0:vt.state,user:(Lt=_n==null?void 0:_n.thread)==null?void 0:Lt.user};y(So),(So==null?void 0:So.state)===gme&&(H(!0),z("i18n.leavemsg.tip"));const Pn=_n==null?void 0:_n.user,Ec=[];if(cE(So)){const en=JSON.parse((Gt=_n==null?void 0:_n.user)==null?void 0:Gt.extra);Ee.current=(en==null?void 0:en.llm)||!1}else if((Pn==null?void 0:Pn.type)===Rq){const en={name:m("i18n.transferToAgent"),code:"transferToAgent",type:"transferToAgent"};Ec.push(en)}C(Pn),w(m((Pn==null?void 0:Pn.nickname)||""));const kt=JSON.parse(((un=_n==null?void 0:_n.thread)==null?void 0:un.extra)||"{}");if(console.log("extra welcomeFaqs:",kt.welcomeFaqs),kt.welcomeFaqs&&M(kt.welcomeFaqs),kt.showQuickFaqs&&((pn=kt==null?void 0:kt.quickFaqs)==null||pn.forEach(en=>{const vn={name:m((en==null?void 0:en.question)||""),code:en.uid,type:en.type,content:m((en==null?void 0:en.answer)||"")};Ec.push(vn)})),kt.showRateBtn){const en={name:m("i18n.rate"),code:"rate",type:_b};Ec.push(en)}if(E(Ec),kt.showFaqs){const en=[];kt.faqs.forEach(vn=>{const In={question:m(vn.question),answer:m(vn.answer),uid:vn.uid,type:vn.type};en.push(In)}),D(en)}if(T((kt==null?void 0:kt.showFaqs)||!1),kt.showRightIframe&&(F(!0),B(kt.rightIframeUrl)),kt.showGuessFaqs){const en=[];kt.guessFaqs.forEach(vn=>{const In={question:m(vn.question),answer:m(vn.answer),uid:vn.uid,type:vn.type};en.push(In)}),en.length>0&&te({_id:ea(),type:Y8,content:JSON.stringify(en),createdAt:jt().toDate().getTime(),user:{uid:Pn==null?void 0:Pn.uid,nickname:Pn==null?void 0:Pn.nickname,avatar:Pn==null?void 0:Pn.avatar},position:"left"})}if(kt.showHotFaqs){const en=[];if(kt.hotFaqs.forEach(vn=>{const In={question:m(vn.question),answer:m(vn.answer),uid:vn.uid,type:vn.type};en.push(In)}),console.log("show hot faqs:",en),en.length>0){console.log("show hot faqs appendMsg");const In={uid:ea(),type:X8,content:JSON.stringify(en),status:G8,createdAt:rl(),client:lr,thread:So,user:{uid:Pn==null?void 0:Pn.uid,nickname:Pn==null?void 0:Pn.nickname,avatar:Pn==null?void 0:Pn.avatar}};Ke(In)}}if(kt.showShortcutFaqs){const en=[];if(kt.shortcutFaqs.forEach(vn=>{const In={question:m(vn.question),answer:m(vn.answer),code:vn.uid,type:vn.type};en.push(In)}),en.length>0){const In={uid:ea(),type:Q8,content:JSON.stringify(en),status:G8,createdAt:rl(),client:lr,thread:So,user:{uid:Pn==null?void 0:Pn.uid,nickname:Pn==null?void 0:Pn.nickname,avatar:Pn==null?void 0:Pn.avatar}};Ke(In)}}kt.showHistory&&console.log("showHistory: 允许拉取历史消息"),kt.showTopTip&&q((kt==null?void 0:kt.topTip)||""),K((kt==null?void 0:kt.showTopTip)||!1),Ke(_n);const dn={username:(Dr=U.current)==null?void 0:Dr.uid,topic:((Qr=_n==null?void 0:_n.thread)==null?void 0:Qr.topic)||"",orgUid:U.current.orgUid||""};T9(dn)}else Qa.fail(((Zr=$t==null?void 0:$t.data)==null?void 0:Zr.message)||"获取信息败")},Ie=()=>{if(na){const Ae=[...t];[].forEach($t=>{Ae.some(Ct=>Ct.type===$t.type)||Ae.push($t)}),r(Ae)}},Ge=()=>{const Ae=localStorage.getItem(Gw);Ae===null?(localStorage.setItem(Gw,"true"),Ne(!0)):Ne(Ae==="true")},Ye=async()=>{var $t,Ct,Rt,Yt;if(se.current){console.log("isLoadingMessage.current: ",se.current);return}se.current=!0,Ca.loading(m("i18n.loading"));const Ae={pageNumber:Q,pageSize:20,topic:b==null?void 0:b.topic,componentType:ipe},lt=await OSe(Ae);console.log("queryMessagesByThreadTopic: ",lt.data,Ae),lt.data.code===200?(Me((Ct=($t=lt==null?void 0:lt.data)==null?void 0:$t.data)==null?void 0:Ct.content),(Yt=(Rt=lt==null?void 0:lt.data)==null?void 0:Rt.data)!=null&&Yt.last?Se(""):J(Q+1),Ca.destroy()):(lt.data.code,Ca.destroy()),se.current=!1};u.useEffect(()=>(ge(),Oe(),Ie(),Ge(),()=>{jSe()}),[]);const it=(Ae,lt)=>{if(console.log("handleSend",Ae,lt),I){Qa.fail("客服已离线,请通过上方留言框联系我们");return}ve(""),It(!1),Ae===Yf.toLowerCase()&<.trim()?Ze(lt):Qa.fail("暂不支持此类型")},Ze=Ae=>{var Rt;const lt=ea(),$t={orgUid:U.current.orgUid},Ct={uid:lt,type:Yf,content:Ae,status:Ql,createdAt:rl(),client:lr,extra:JSON.stringify($t),thread:b,user:S};Pe.current===!0?(console.log("handleSendText: isRobot"),pt(),Ke(Ct),NSe(JSON.stringify(Ct),function(Yt){console.log("sendSseMessage: ",Yt),Bt(),Be(Ct==null?void 0:Ct.uid,uR),Ke(Yt)})):(console.log("handleSendText: isAgent"),Ke(Ct),ec(JSON.stringify(Ct))),(Rt=ue==null?void 0:ue.current)==null||Rt.scrollToEnd()},Xe=async Ae=>{ve(Ae),h(Ae)},Ue=Ae=>(console.log("handleImageSend",Ae),Lv(Ae,lt=>{xt(lt.data.fileUrl,du)}),Promise.resolve()),rt=Ae=>{var $t;console.log("handleImageChange event: ",Ae);const lt=($t=Ae.target.files)==null?void 0:$t.item(0);lt&&(console.log("handleImageChange file: ",lt),Lv(lt,Ct=>{xt(Ct.data.fileUrl,du)}))},ft=Ae=>{var $t;console.log("handleFileChange event: ",Ae);const lt=($t=Ae.target.files)==null?void 0:$t.item(0);lt&&(console.log("handleFileChange file: ",lt),Lv(lt,Ct=>{xt(Ct.data.fileUrl,Xm)}))},pt=()=>{de(!0),xe(m("i18n.typing")),setTimeout(()=>{de(!1),xe("")},5e3)},Bt=()=>{de(!1),xe("")},xt=(Ae,lt)=>{var Yt;console.log("handleDropSend",Ae);const $t=ea(),Ct={orgUid:U.current.orgUid},Rt={uid:$t,type:lt,content:Ae,status:Ql,createdAt:rl(),client:lr,extra:JSON.stringify(Ct),thread:b,user:S};ec(JSON.stringify(Rt)),(Yt=ue==null?void 0:ue.current)==null||Yt.scrollToEnd()},Ve=(Ae,lt)=>{if(console.log("handleQuickReplyClick",Ae,lt),Ae.type===_b)BSe({thread:b,visitor:S});else if(Ae.type==="transferToAgent")Ca.loading("转接中..."),Ce(!0);else{const $t={uid:Ae.code,type:Ae.type,question:Ae.name,answer:Ae.name};ze($t,lt)}},fe=(Ae,lt)=>{var $t,Ct;console.log("handleToolbarClick",Ae,lt),Ae.type==="smile"?we(!0):Ae.type==="orderSelector"?te({_id:ea(),type:"order-selector",content:{},position:"pop"}):Ae.type==="image"?($t=Y==null?void 0:Y.current)==null||$t.click():Ae.type==="file"?(Ct=ne==null?void 0:ne.current)==null||Ct.click():ne.current&&ne.current.click()},De=Ae=>{var lt;console.log("handleEmojiSelect",pe,Ae),we(!1),ve(pe+Ae),(lt=ce==null?void 0:ce.current)==null||lt.setText(pe+Ae)},ze=async(Ae,lt)=>{var ht,vt;console.log("handleFaqClick",lt);const $t=await XCe(Ae.uid);console.log("queryByUid response:",$t.data);const Ct=(ht=$t==null?void 0:$t.data)==null?void 0:ht.data;$t.data.code===200?(te({_id:ea(),type:Yf,hasTime:!0,createdAt:jt().toDate().getTime(),content:Ct.question,position:"right",user:{avatar:localStorage.getItem(mv)||""}}),te({_id:ea(),type:Yw,hasTime:!0,createdAt:jt().toDate().getTime(),content:JSON.stringify(Ct),position:"left",user:{avatar:x.avatar}})):Ca.error($t.data.message);const Yt={uid:ea(),faq:Ae,thread:b,visitor:S};ASe(Yt),(vt=ue==null?void 0:ue.current)==null||vt.scrollToEnd()},yt=()=>{console.log("handleTransferToAgent"),Ce(!0)},ct=(Ae,lt)=>{console.log("handleStreamQaClick",Ae,lt),te({_id:ea(),type:Yf,hasTime:!0,createdAt:jt().toDate().getTime(),content:Ae,position:"right",user:{avatar:localStorage.getItem(mv)||""}}),te({_id:ea(),type:Cg,hasTime:!0,createdAt:jt().toDate().getTime(),content:lt,position:"left",user:{avatar:x.avatar}})},Qe=Ae=>{const{_id:lt,type:$t,content:Ct}=Ae,Rt={orgUid:U.current.orgUid},Yt={uid:lt.toString(),type:$t,content:Ct,status:Ql,createdAt:rl(),client:lr,extra:JSON.stringify(Rt),thread:b,user:S},ht=JSON.stringify(Yt);ec(ht)};u.useEffect(()=>{const Ae=[];We.forEach(lt=>{var $t;Ae.push({_id:lt==null?void 0:lt.uid,type:lt==null?void 0:lt.type,status:lt==null?void 0:lt.status,hasTime:!0,createdAt:jt(lt==null?void 0:lt.createdAt).toDate().getTime(),content:m((lt==null?void 0:lt.content)||""),position:Bye(lt),user:{avatar:($t=lt==null?void 0:lt.user)==null?void 0:$t.avatar}})}),oe(Ae)},[We]);const mt=Ae=>{var ht;const{_id:lt,type:$t,content:Ct,position:Rt,status:Yt}=Ae;switch($t){case wme:return P.jsx(yXe,{uid:lt.toString(),content:Ct,welcomeFaqs:R,thread:b,visitor:S,orgUid:U.current.orgUid,onFaqClick:ze});case Yf:return P.jsxs(P.Fragment,{children:[P.jsx(Zu,{content:Ct,isRichText:cG(Ct),onContextMenu:()=>Je(event,Ae)}),Rt==="right"&&P.jsx(Pc,{status:Yt,onRetry:()=>Qe(Ae)})]});case Cg:return P.jsxs(P.Fragment,{children:[P.jsx(gXe,{uid:lt.toString(),content:Ct,thread:b,visitor:S,onQuestionClick:ct}),Rt==="right"&&P.jsx(Pc,{status:Yt,onRetry:()=>Qe(Ae)})]});case du:return P.jsxs(P.Fragment,{children:[P.jsx(Zu,{type:"image",onContextMenu:()=>Je(event,Ae),children:P.jsx(mY,{src:Ct,children:P.jsx("img",{src:Ct,alt:""})})}),Rt==="right"&&P.jsx(Pc,{status:Yt,onRetry:()=>Qe(Ae)})]});case Xm:return P.jsxs(P.Fragment,{children:[P.jsx(Zu,{type:"file",onContextMenu:()=>Je(event,Ae),children:P.jsx(iSe,{fileUrl:Ct,children:P.jsx(po,{onClick:()=>Aye(Ct),children:"下载文件"})})}),Rt==="right"&&P.jsx(Pc,{status:Yt,onRetry:()=>Qe(Ae)})]});case Sg:return P.jsxs(P.Fragment,{children:[P.jsx(Zu,{style:{maxWidth:200},onContextMenu:()=>Je(event,Ae),children:P.jsx(rSe,{src:Ae.content})}),Rt==="right"&&P.jsx(Pc,{status:Yt,onRetry:()=>Qe(Ae)})]});case Sme:return P.jsxs(P.Fragment,{children:[P.jsx(es,{size:"xl",children:P.jsx(qG,{img:"//gw.alicdn.com/tfs/TB1p_nirYr1gK0jSZR0XXbP8XXa-300-300.png",name:"这个商品名称非常非常长长到会换行",desc:"商品描述",tags:[{name:"3个月免息"},{name:"4.1折"},{name:"黑卡再省33.96"}],currency:"¥",meta:"7人付款",count:6,unit:"kg",onClick:vt=>console.log(vt),action:{onClick(vt){console.log(vt),vt.stopPropagation()}}})}),Rt==="right"&&P.jsx(Pc,{status:Yt,onRetry:()=>Qe(Ae)})]});case Cme:return P.jsxs(P.Fragment,{children:[I&&P.jsx(P.Fragment,{children:P.jsx($Ue,{uid:lt.toString(),content:Ct,status:Yt,thread:b,visitor:S})}),!I&&P.jsxs(P.Fragment,{children:[P.jsx(Zu,{content:m(Ct)}),Rt==="right"&&P.jsx(Pc,{status:Yt})]})]});case Yw:return P.jsx(_2e,{uid:lt.toString(),vipLevel:((ht=U==null?void 0:U.current)==null?void 0:ht.vipLevel)||"0",content:Ct,thread:b,visitor:S,onFaqClick:ze,onTransferToAgent:yt});case Ome:return P.jsx(o2e,{uid:lt.toString(),content:Hye(Ct),thread:b,visitor:S});case _b:case Nq:return P.jsx(a2e,{uid:lt.toString(),content:Ct,status:Yt,type:$t,thread:b,visitor:S});case Y8:return P.jsx(BUe,{content:Ct,onFaqClick:ze});case X8:return P.jsx(zUe,{content:Ct,onFaqClick:ze});case Q8:return P.jsx(HUe,{content:Ct,onFaqClick:ze});case"order-selector":return P.jsx(VUe,{});default:return console.log("renderMessageContent: default",Ae),P.jsxs(P.Fragment,{children:[P.jsx(Zu,{content:m(Ct)}),Rt==="right"&&P.jsx(Pc,{status:Yt})]})}};u.useEffect(()=>{if((v==null?void 0:v.length)>0&&!I&&!cE(b)){console.log("debouncedPreviewText",v);const Ae={orgUid:U.current.orgUid},lt={uid:ea(),type:mR,content:v,status:Ql,createdAt:rl(),client:lr,extra:JSON.stringify(Ae),thread:b,user:S},$t=JSON.stringify(lt);ec($t)}Et(v)},[v,S,b]);const Et=async Ae=>{var lt,$t,Ct;if((v==null?void 0:v.length)>0){const Rt={question:Ae,orgUid:U.current.orgUid},Yt=await GCe(Rt);console.log("handleSearchAutoComplete response:",Yt.data),((lt=Yt.data)==null?void 0:lt.code)===200&&((Ct=($t=Yt.data)==null?void 0:$t.data)==null?void 0:Ct.length)>0?(Mt(Yt.data.data),It(!0)):(Mt([]),It(!1))}else Mt([]),It(!1)},At=u.useCallback(()=>setInterval(async()=>{var Ae;if(!I&&!cE(b)){const lt=await RSe(S==null?void 0:S.uid);if(((Ae=lt==null?void 0:lt.data)==null?void 0:Ae.data)>0){const Ct=await ISe(S==null?void 0:S.uid);if(console.log("autoPingMessage 拉取未读消息",S==null?void 0:S.uid,Ct),Ct!=null&&Ct.data){const Rt=Ct==null?void 0:Ct.data.data;console.log("autoPingMessage 拉取未读消息",S==null?void 0:S.uid,Rt),Rt==null||Rt.forEach(Yt=>{Ke(Yt)})}}}},1e4),[I,b,S==null?void 0:S.uid,Ke]);u.useEffect(()=>{const Ae=At();return()=>{clearInterval(Ae)}},[At]),u.useEffect(()=>{const Ae=Ct=>{var vt;const Rt=JSON.parse(Ct),Yt=(vt=Rt==null?void 0:Rt.uid)==null?void 0:vt.toString(),ht=Z.find(Lt=>Lt._id.toString()===Yt);ht?ee(Rt==null?void 0:Rt.uid,{type:ht==null?void 0:ht.type,hasTime:ht==null?void 0:ht.hasTime,createdAt:ht==null?void 0:ht.createdAt,content:ht==null?void 0:ht.content,position:ht==null?void 0:ht.position,user:ht==null?void 0:ht.user,status:Rt==null?void 0:Rt.type}):console.log("handleMessageTypeStatus msg is undefined")},lt=Ct=>{var vt;console.log("handleMessageTypeContent",Ct);const Rt=JSON.parse(Ct),Yt=(vt=Rt==null?void 0:Rt.uid)==null?void 0:vt.toString(),ht=Z.find(Lt=>{const Gt=Lt._id.toString();return console.log(`Comparing ${Gt} with ${Yt}`),Gt===Yt});ht?(console.log("handleMessageTypeContent msg",Rt),ee(Rt==null?void 0:Rt.uid,{_id:ht==null?void 0:ht._id,type:dR,hasTime:ht==null?void 0:ht.hasTime,createdAt:ht==null?void 0:ht.createdAt,content:Rt==null?void 0:Rt.content,position:ht==null?void 0:ht.position,user:ht==null?void 0:ht.user,status:ht==null?void 0:ht.status})):console.log("handleMessageTypeStatus msg is undefined")},$t=Ct=>{console.log("handleHttpError",Ct),Qa.fail("http error with code: "+Ct)};return xi.on(A4,Ae),xi.on(L4,lt),xi.on(_d,$t),()=>{xi.off(A4,Ae),xi.off(L4,lt),xi.off(_d,$t)}},[Z,ee]);const Ht=()=>{console.log("handleRecordStart")},wt=Ae=>{console.log("handleRecordEnd",Ae)},st=()=>{console.log("handleRecordCancel")},[St,Vt]=u.useState(""),[Dt]=u.useState(""),nn=f.get("backgroundColor"),gn=f.get("textColor"),bn=()=>i?{backgroundColor:"#333333",textColor:"#ffffff"}:{backgroundColor:"#ffffff",textColor:"#333333"},Er=()=>{if(St)switch(St.toLowerCase()){case"light":return{backgroundColor:"#ffffff",textColor:"#333333"};case"dark":return{backgroundColor:"#333333",textColor:"#ffffff"};case"blue":return{backgroundColor:"#0066FF",textColor:"#ffffff"};default:return bn()}return bn()},gr=u.useMemo(()=>{const Ae=Er();return{backgroundColor:nn||Ae.backgroundColor,color:gn||Ae.textColor}},[nn,gn]),rr=()=>{window.parent!==window?window.parent.postMessage({type:Hme},"*"):window.close()},zr=()=>{window.parent!==window&&window.parent.postMessage({type:Vme},"*")},yn=()=>{window.parent!==window&&window.parent.postMessage({type:Wme},"*")},[Ft,Mt]=u.useState([]),[Cn,It]=u.useState(!1),Nt=()=>window.innerWidth<=580;return P.jsxs(P.Fragment,{children:[P.jsx(yQe,{isDarkMode:i,imageInputRef:Y,fileInputRef:ne,handleImageChange:rt,handleFileChange:ft}),P.jsxs(WCe,{onImageSend:xt,children:[be&&P.jsx(bXe,{title:g,description:Dt,typing:ae,typingTip:he,agent:x,isPlayAudio:$e,setIsPlayAudio:Ne,handleMinimize:yn,handleMaximize:zr,handleClose:rr,navbarStyle:gr,navbarTheme:St}),P.jsxs("div",{className:"chat-container",style:{position:"relative"},children:[Cn&&Ft.length>0&&pe.trim().length>0&&P.jsx(wXe,{isDarkMode:i,searchResults:Ft,isMobile:Nt(),handleFaqClick:ze,setShowSearchResults:It,setInputText:ve,setPreviewText:h,debouncedPreviewText:v}),P.jsx(k2e,{children:P.jsx(kSe,{elderMode:!1,showTopTip:W,topTipContent:X,loadMoreText:me,onRefresh:Ye,messages:Z,isTyping:ae,messagesRef:ue,renderMessageContent:mt,text:pe,composerRef:ce,inputOptions:{showCount:!1},quickReplies:_,onQuickReplyClick:Ve,placeholder:m(V),onSend:it,onImageSend:Ue,onInputChange:Xe,toolbar:n,onToolbarClick:fe,wideBreakpoint:"600px",recorder:{canRecord:na,volume:.5,onStart:Ht,onEnd:wt,onCancel:st}})}),$&&(N==null?void 0:N.length)>0&&P.jsx(xXe,{faqs:N,isDarkMode:i,handleFaqClick:ze}),O&&P.jsx(SXe,{isDarkMode:i,rightIframeUrl:L}),P.jsx(CXe,{menuId:sD,handleRightClick:tt})]}),P.jsx(gQe,{showEmoji:_e,setShowEmoji:we,handleEmojiSelect:De})]})]})},bQe=()=>P.jsx("h1",{children:"404"}),wQe=()=>P.jsx("div",{children:"TicketBox"}),xQe=[{key:"after",label:"售后支持",children:[{key:"chat",label:"在线服务"},{key:"tickets",label:"我的工单"},{key:"tickets-create",label:"提交工单"}]},{key:"before",label:"售前服务",children:[{key:"chat-pre",label:"在线服务"}]}],SQe=()=>{const e=t=>{console.log("click ",t)};return P.jsx(gf,{onClick:e,defaultSelectedKeys:["chat"],defaultOpenKeys:["after","before"],mode:"inline",items:xQe})},CQe=()=>P.jsxs(P.Fragment,{children:[P.jsx("div",{style:{float:"left"},children:P.jsx(Dn,{type:"text",style:{color:"white"},children:"微语客服中心"})}),P.jsx(Go,{}),P.jsx("div",{style:{float:"right"},children:P.jsx(J2,{size:44})})]}),kQe=()=>{const e=t=>{window.open(t,"_blank")};return P.jsx(P.Fragment,{children:P.jsx("div",{style:{cursor:"pointer",fontSize:15,color:"white"},onClick:()=>e("https:/www.weiyuai.cn"),children:"微语AI"})})},_Qe=()=>P.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:P.jsx("iframe",{src:"/chat/?org=df_org_uid&t=1&sid=df_wg_uid&",width:"100%",height:"100%",frameBorder:"0",style:{boxShadow:"0 0 7px rgba(0, 0, 0, 0.4)",borderRadius:"inherit"}})}),{Header:EQe,Footer:$Qe,Sider:PQe,Content:TQe}=_u,OQe={color:"#fff",height:64,paddingInline:48,lineHeight:"64px",backgroundColor:"#4096ff"},RQe={textAlign:"center",color:"#fff",backgroundColor:"#0958d9"},IQe={textAlign:"center",lineHeight:"120px",color:"#fff",backgroundColor:"#1677ff"},MQe={height:20,textAlign:"center",color:"#fff",backgroundColor:"#4096ff"},NQe={overflow:"hidden",with:"100%",height:"100%"},DQe=()=>P.jsx(P.Fragment,{children:P.jsxs(_u,{style:NQe,children:[P.jsx(EQe,{style:OQe,children:P.jsx(CQe,{})}),P.jsxs(_u,{children:[P.jsx(PQe,{width:"15%",style:IQe,children:P.jsx(SQe,{})}),P.jsx(TQe,{style:RQe,children:P.jsx(_Qe,{})})]}),P.jsx($Qe,{style:MQe,children:P.jsx(kQe,{})})]})}),FQe=[{title:"技能组",dataIndex:"workgroup"},{title:"提示",dataIndex:"waiting"},{title:"操作",dataIndex:"action"}],jQe=[{key:"1",workgroup:"技能组1",waiting:"前面有0人,无需等待",action:P.jsx(Dn,{type:"primary",children:"取号"})},{key:"2",workgroup:"技能组2",waiting:"前面有3人,大概等待时长20分钟",action:P.jsx(Dn,{type:"primary",children:"取号"})}],AQe=(e,t,n,r)=>{console.log("params",e,t,n,r)},LQe=()=>P.jsxs(P.Fragment,{children:[P.jsx("h2",{children:"技能组取号"}),P.jsxs(eh,{children:[P.jsx(ua,{span:4}),P.jsx(ua,{span:16,children:P.jsx(wo,{columns:FQe,dataSource:jQe,onChange:AQe,showSorterTooltip:{target:"sorter-icon"}})}),P.jsx(ua,{span:4})]})]}),BQe=[{title:"客服",dataIndex:"agent"},{title:"提示",dataIndex:"waiting"},{title:"操作",dataIndex:"action"}],zQe=[{key:"1",agent:"客服1",waiting:"前面有0人,无需等待",action:P.jsx(Dn,{type:"primary",children:"取号"})},{key:"2",agent:"客服2",waiting:"前面有3人,大概等待时长20分钟",action:P.jsx(Dn,{type:"primary",children:"取号"})}],HQe=(e,t,n,r)=>{console.log("params",e,t,n,r)},VQe=()=>P.jsxs(P.Fragment,{children:[P.jsx("h2",{children:"一对一取号"}),P.jsxs(eh,{children:[P.jsx(ua,{span:4}),P.jsx(ua,{span:16,children:P.jsx(wo,{columns:BQe,dataSource:zQe,onChange:HQe,showSorterTooltip:{target:"sorter-icon"}})}),P.jsx(ua,{span:4})]})]}),WQe=()=>P.jsxs(P.Fragment,{children:[P.jsx("h1",{children:"取号"}),P.jsx(LQe,{}),P.jsx(VQe,{})]}),UQe=[{title:"技能组",dataIndex:"workgroup"},{title:"下一个",dataIndex:"next"},{title:"队列",dataIndex:"queue"}],qQe=[{key:"1",workgroup:"技能组1",next:"访客1",queue:"访客2,访客3,访客4"},{key:"2",workgroup:"技能组2",next:"访客5",queue:"访客6,访客7,访客8"}],KQe=(e,t,n,r)=>{console.log("params",e,t,n,r)},GQe=()=>P.jsxs(P.Fragment,{children:[P.jsx("h2",{children:"技能组排队队列"}),P.jsxs(eh,{children:[P.jsx(ua,{span:4}),P.jsx(ua,{span:16,children:P.jsx(wo,{columns:UQe,dataSource:qQe,onChange:KQe,showSorterTooltip:{target:"sorter-icon"}})}),P.jsx(ua,{span:4})]})]}),YQe=[{title:"客服",dataIndex:"agent"},{title:"下一个",dataIndex:"next"},{title:"队列",dataIndex:"queue"}],XQe=[{key:"1",agent:"客服1",next:"访客1",queue:"访客2,访客3,访客4"},{key:"2",agent:"客服2",next:"访客5",queue:"访客6,访客7,访客8"}],QQe=(e,t,n,r)=>{console.log("params",e,t,n,r)},ZQe=()=>P.jsxs(P.Fragment,{children:[P.jsx("h2",{children:"一对一排队队列"}),P.jsxs(eh,{children:[P.jsx(ua,{span:4}),P.jsx(ua,{span:16,children:P.jsx(wo,{columns:YQe,dataSource:XQe,onChange:QQe,showSorterTooltip:{target:"sorter-icon"}})}),P.jsx(ua,{span:4})]})]}),JQe=()=>P.jsxs(P.Fragment,{children:[P.jsx("h1",{children:"排队队列"}),P.jsx(GQe,{}),P.jsx(ZQe,{})]}),eZe=()=>P.jsx("div",{children:P.jsx("h1",{children:"Feedback"})});var $a=function(){return $a=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?bi(sh,--Yo):0,yp--,ri===10&&(yp=1,Ik--),ri}function Ts(){return ri=Yo2||h6(ri)>3?"":" "}function uZe(e,t){for(;--t&&Ts()&&!(ri<48||ri>102||ri>57&&ri<65||ri>70&&ri<97););return Nk(e,cw()+(t<6&&Id()==32&&Ts()==32))}function v6(e){for(;Ts();)switch(ri){case e:return Yo;case 34:case 39:e!==34&&e!==39&&v6(ri);break;case 40:e===41&&v6(e);break;case 92:Ts();break}return Yo}function dZe(e,t){for(;Ts()&&e+ri!==57;)if(e+ri===84&&Id()===47)break;return"/*"+Nk(t,Yo-1)+"*"+pN(e===47?e:Ts())}function fZe(e){for(;!h6(Id());)Ts();return Nk(e,Yo)}function mZe(e){return lZe(uw("",null,null,null,[""],e=sZe(e),0,[0],e))}function uw(e,t,n,r,i,a,o,s,l){for(var c=0,d=0,f=o,m=0,p=0,h=0,v=1,g=1,w=1,b=0,y="",x=i,C=a,S=r,k=y;g;)switch(h=b,b=Ts()){case 40:if(h!=108&&bi(k,f-1)==58){lw(k+=En(t3(b),"&","&\f"),"&\f",Are(c?s[c-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:k+=t3(b);break;case 9:case 10:case 13:case 32:k+=cZe(h);break;case 92:k+=uZe(cw()-1,7);continue;case 47:switch(Id()){case 42:case 47:Ev(pZe(dZe(Ts(),cw()),t,n,l),l);break;default:k+="/"}break;case 123*v:s[c++]=il(k)*w;case 125*v:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+d:w==-1&&(k=En(k,/\f/g,"")),p>0&&il(k)-f&&Ev(p>32?fB(k+";",r,n,f-1,l):fB(En(k," ","")+";",r,n,f-2,l),l);break;case 59:k+=";";default:if(Ev(S=dB(k,t,n,c,d,i,s,y,x=[],C=[],f,a),a),b===123)if(d===0)uw(k,t,S,S,x,a,f,s,C);else switch(m===99&&bi(k,3)===110?100:m){case 100:case 108:case 109:case 115:uw(e,S,S,r&&Ev(dB(e,S,S,0,0,i,s,y,i,x=[],f,C),C),i,C,f,s,r?x:C);break;default:uw(k,S,S,S,[""],C,0,s,C)}}c=d=p=0,v=w=1,y=k="",f=o;break;case 58:f=1+il(k),p=h;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&oZe()==125)continue}switch(k+=pN(b),b*v){case 38:w=d>0?1:(k+="\f",-1);break;case 44:s[c++]=(il(k)-1)*w,w=1;break;case 64:Id()===45&&(k+=t3(Ts())),m=Id(),d=f=il(y=k+=fZe(cw())),b++;break;case 45:h===45&&il(k)==2&&(v=0)}}return a}function dB(e,t,n,r,i,a,o,s,l,c,d,f){for(var m=i-1,p=i===0?a:[""],h=Bre(p),v=0,g=0,w=0;v0?p[b]+" "+y:En(y,/&\f/g,p[b])))&&(l[w++]=x);return Mk(e,t,n,i===0?Rk:s,l,c,d,f)}function pZe(e,t,n,r){return Mk(e,t,n,Fre,pN(aZe()),gp(e,2,-2),0,r)}function fB(e,t,n,r,i){return Mk(e,t,n,mN,gp(e,0,r),gp(e,r+1,-1),r,i)}function Hre(e,t,n){switch(rZe(e,t)){case 5103:return Jn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Jn+e+e;case 4789:return tg+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Jn+e+tg+e+br+e+e;case 5936:switch(bi(e,t+11)){case 114:return Jn+e+br+En(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Jn+e+br+En(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Jn+e+br+En(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Jn+e+br+e+e;case 6165:return Jn+e+br+"flex-"+e+e;case 5187:return Jn+e+En(e,/(\w+).+(:[^]+)/,Jn+"box-$1$2"+br+"flex-$1$2")+e;case 5443:return Jn+e+br+"flex-item-"+En(e,/flex-|-self/g,"")+(Hl(e,/flex-|baseline/)?"":br+"grid-row-"+En(e,/flex-|-self/g,""))+e;case 4675:return Jn+e+br+"flex-line-pack"+En(e,/align-content|flex-|-self/g,"")+e;case 5548:return Jn+e+br+En(e,"shrink","negative")+e;case 5292:return Jn+e+br+En(e,"basis","preferred-size")+e;case 6060:return Jn+"box-"+En(e,"-grow","")+Jn+e+br+En(e,"grow","positive")+e;case 4554:return Jn+En(e,/([^-])(transform)/g,"$1"+Jn+"$2")+e;case 6187:return En(En(En(e,/(zoom-|grab)/,Jn+"$1"),/(image-set)/,Jn+"$1"),e,"")+e;case 5495:case 3959:return En(e,/(image-set\([^]*)/,Jn+"$1$`$1");case 4968:return En(En(e,/(.+:)(flex-)?(.*)/,Jn+"box-pack:$3"+br+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Jn+e+e;case 4200:if(!Hl(e,/flex-|baseline/))return br+"grid-column-align"+gp(e,t)+e;break;case 2592:case 3360:return br+En(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Hl(r.props,/grid-\w+-end/)})?~lw(e+(n=n[t].value),"span",0)?e:br+En(e,"-start","")+e+br+"grid-row-span:"+(~lw(n,"span",0)?Hl(n,/\d+/):+Hl(n,/\d+/)-+Hl(e,/\d+/))+";":br+En(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Hl(r.props,/grid-\w+-start/)})?e:br+En(En(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return En(e,/(.+)-inline(.+)/,Jn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(il(e)-1-t>6)switch(bi(e,t+1)){case 109:if(bi(e,t+4)!==45)break;case 102:return En(e,/(.+:)(.+)-([^]+)/,"$1"+Jn+"$2-$3$1"+tg+(bi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~lw(e,"stretch",0)?Hre(En(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return En(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,a,o,s,l,c){return br+i+":"+a+c+(o?br+i+"-span:"+(s?l:+l-+a)+c:"")+e});case 4949:if(bi(e,t+6)===121)return En(e,":",":"+Jn)+e;break;case 6444:switch(bi(e,bi(e,14)===45?18:11)){case 120:return En(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Jn+(bi(e,14)===45?"inline-":"")+"box$3$1"+Jn+"$2$3$1"+br+"$2box$3")+e;case 100:return En(e,":",":"+br)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return En(e,"scroll-","scroll-snap-")+e}return e}function tS(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case mN:e.return=Hre(e.value,e.length,n);return;case jre:return tS([Ac(e,{value:En(e.value,"@","@"+Jn)})],r);case Rk:if(e.length)return iZe(n=e.props,function(i){switch(Hl(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":qf(Ac(e,{props:[En(i,/:(read-\w+)/,":"+tg+"$1")]})),qf(Ac(e,{props:[i]})),p6(e,{props:uB(n,r)});break;case"::placeholder":qf(Ac(e,{props:[En(i,/:(plac\w+)/,":"+Jn+"input-$1")]})),qf(Ac(e,{props:[En(i,/:(plac\w+)/,":"+tg+"$1")]})),qf(Ac(e,{props:[En(i,/:(plac\w+)/,br+"input-$1")]})),qf(Ac(e,{props:[i]})),p6(e,{props:uB(n,r)});break}return""})}}var bZe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ga={NVM_INC:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/include/node",ELECTRON_MIRROR:"http://npm.taobao.org/mirrors/electron/",npm_package_dependencies_emoji_mart:"^5.6.0",npm_package_dependencies_use_debounce:"^10.0.1",npm_package_devDependencies__types_sockjs_client:"^1.5.4",rvm_bin_path:"/Users/ningjinpeng/.rvm/bin",TERM_PROGRAM:"vscode",NODE:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",GEM_HOME:"/Users/ningjinpeng/.gem/ruby",NVM_CD_FLAGS:"-q",PYENV_ROOT:"/Users/ningjinpeng/.pyenv",npm_package_dependencies_axios:"^1.7.2",npm_package_dependencies_moment:"^2.30.1",npm_package_devDependencies_typescript:"^5.2.2",INIT_CWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/visitor",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_package_devDependencies_vite:"^5.2.0",HOMEBREW_API_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api",HOMEBREW_BOTTLE_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles",npm_config_shamefully_hoist:"true",HOMEBREW_REPOSITORY:"/opt/homebrew",TMPDIR:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/",npm_package_scripts_release:"sh cicd/scripts/build-upload.sh",npm_package_scripts_lint:"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",npm_package_dependencies__ant_design_x:"^1.0.5",TERM_PROGRAM_VERSION:"1.98.2",npm_package_dependencies_dompurify:"^3.1.4",npm_package_devDependencies__vitejs_plugin_react:"^4.2.1",npm_package_scripts_dev:"vite --host --mode dev",MallocNanoZone:"0",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",ZDOTDIR:"/Users/ningjinpeng",npm_package_dependencies_uuid:"^9.0.1",npm_package_private:"true",npm_config_registry:"https://registry.npmmirror.com/",PNPM_HOME:"/Users/ningjinpeng/Library/pnpm",npm_package_dependencies_react_dom:"^18.2.0",npm_package_devDependencies_eslint_plugin_react_refresh:"^0.4.6",OBJC_DISABLE_INITIALIZE_FORK_SAFETY:"YES",npm_package_dependencies_react_dropzone:"^14.2.3",NVM_DIR:"/Users/ningjinpeng/.nvm",USER:"ningjinpeng",npm_package_devDependencies__testing_library_react:"^15.0.7",npm_package_devDependencies__types_react:"^18.2.66",COMMAND_MODE:"unix2003",npm_package_dependencies_intersection_observer:"^0.12.2",npm_package_dependencies_react_helmet_async:"^2.0.5",npm_package_scripts_release_open:"sh cicd/scripts/build-open.sh",PNPM_SCRIPT_SRC_DIR:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/visitor",FLUTTER_ROOT:"/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/flutter",HOMEBREW_CORE_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",HOMEBREW_INSTALL_FROM_API:"1",rvm_path:"/Users/ningjinpeng/.rvm",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.zLKVH3rvH7/Listeners",npm_package_dependencies_zustand:"^4.5.2",PUB_HOSTED_URL:"https://pub.flutter-io.cn",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",VSCODE_PROFILE_INITIALIZED:"1",npm_package_dependencies_styled_components:"^6.1.13",npm_package_devDependencies__types_jest:"^29.5.12",npm_package_devDependencies_eslint:"^8.57.0",npm_package_devDependencies_less:"^4.2.0",npm_package_devDependencies__typescript_eslint_eslint_plugin:"^7.2.0",npm_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/pnpm/bin/pnpm.cjs",npm_package_scripts_build_open:"tsc && vite build --mode open",npm_package_devDependencies__types_react_dom:"^18.2.22",npm_config_frozen_lockfile:"",rvm_prefix:"/Users/ningjinpeng",npm_package_devDependencies__typescript_eslint_parser:"^7.2.0",PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/visitor/node_modules/.bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/usr/local/bin",npm_package_dependencies__emoji_mart_react:"^1.1.1",npm_package_dependencies_immer:"^10.1.1",npm_package_dependencies__repo_chatui:"workspace:*",__CFBundleIdentifier:"com.microsoft.VSCode",USER_ZDOTDIR:"/Users/ningjinpeng",npm_package_dependencies_react_contexify:"^6.0.0",npm_config_auto_install_peers:"true",PWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/visitor",npm_package_dependencies__repo_api:"workspace:*",npm_command:"run-script",FLUTTER_STORAGE_BASE_URL:"https://storage.flutter-io.cn",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home",npm_package_scripts_preview:"vite preview",npm_package_devDependencies_eslint_plugin_react_hooks:"^4.6.0",npm_package_dependencies_ua_parser_js:"^1.0.37",npm_lifecycle_event:"build:open",LOCAL_GIT_DIRECTORY:"/Applications/GitHub Desktop.app/Contents/Resources/app/git",LANG:"zh_CN.UTF-8",npm_package_name:"visitor",npm_package_dependencies_react_intl:"^6.6.8",npm_package_scripts_release_quanjing:"sh cicd/scripts/build-quanjing.sh",NODE_PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/bin/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/node_modules",npm_package_scripts_build:"tsc && vite build --mode prod",XPC_FLAGS:"0x0",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",npm_package_dependencies_react_router_dom:"^6.23.1",npm_package_devDependencies__types_ua_parser_js:"^0.7.39",npm_package_devDependencies__rollup_plugin_alias:"^5.1.0",npm_config_electron_mirror:"https://npmmirror.com/mirrors/electron/",npm_config_node_gyp:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",XPC_SERVICE_NAME:"0",npm_package_version:"0.0.0",npm_package_dependencies_ws:"^8.17.1",rvm_version:"1.29.12 (latest)",VSCODE_INJECTION:"1",HOME:"/Users/ningjinpeng",PYENV_SHELL:"zsh",SHLVL:"4",npm_package_type:"module",HOMEBREW_BREW_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",npm_package_dependencies_react_markdown:"^9.0.1",npm_package_dependencies_mitt:"^3.0.1",npm_config_strict_ssl:"",HOMEBREW_PREFIX:"/opt/homebrew",npm_package_dependencies__emoji_mart_data:"^1.2.1",npm_package_devDependencies_cross_env:"^7.0.3",npm_package_dependencies_react_photo_view:"^1.2.6",LOGNAME:"ningjinpeng",npm_lifecycle_script:"tsc && vite build --mode open",VSCODE_GIT_IPC_HANDLE:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/vscode-git-7f4d23a467.sock",npm_package_dependencies_react:"^18.2.0",npm_package_dependencies_sockjs_client:"^1.6.1",BUN_INSTALL:"/Users/ningjinpeng/.bun",NVM_BIN:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin",npm_config_user_agent:"pnpm/9.12.3 npm/? node/v20.0.0 darwin arm64",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:",GIT_ASKPASS:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh",VSCODE_GIT_ASKPASS_NODE:"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)",npm_package_dependencies_clsx:"^2.1.1",npm_package_scripts_build_quanjing:"tsc && vite build --mode quanjing",npm_package_dependencies__stomp_stompjs:"^7.0.0",npm_package_dependencies_antd:"^5.23.2",npm_package_devDependencies__types_dompurify:"^3.2.0",COLORTERM:"truecolor",npm_node_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",NODE_ENV:"production"},bp=typeof process<"u"&&Ga!==void 0&&(Ga.REACT_APP_SC_ATTR||Ga.SC_ATTR)||"data-styled",Vre="active",Wre="data-styled-version",Dk="6.1.13",hN=`/*!sc*/ `,nS=typeof window<"u"&&"HTMLElement"in window,wZe=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Ga!==void 0&&Ga.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Ga.REACT_APP_SC_DISABLE_SPEEDY!==""?Ga.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Ga.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Ga!==void 0&&Ga.SC_DISABLE_SPEEDY!==void 0&&Ga.SC_DISABLE_SPEEDY!==""&&Ga.SC_DISABLE_SPEEDY!=="false"&&Ga.SC_DISABLE_SPEEDY),Fk=Object.freeze([]),wp=Object.freeze({});function xZe(e,t,n){return n===void 0&&(n=wp),e.theme!==n.theme&&e.theme||t||n.theme}var Ure=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),SZe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,CZe=/(^-|-$)/g;function mB(e){return e.replace(SZe,"-").replace(CZe,"")}var kZe=/(a)(d)/gi,Gy=52,pB=function(e){return String.fromCharCode(e+(e>25?39:97))};function g6(e){var t,n="";for(t=Math.abs(e);t>Gy;t=t/Gy|0)n=pB(t%Gy)+n;return(pB(t%Gy)+n).replace(kZe,"$1-$2")}var n3,qre=5381,vm=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Kre=function(e){return vm(qre,e)};function _Ze(e){return g6(Kre(e)>>>0)}function EZe(e){return e.displayName||e.name||"Component"}function r3(e){return typeof e=="string"&&!0}var Gre=typeof Symbol=="function"&&Symbol.for,Yre=Gre?Symbol.for("react.memo"):60115,$Ze=Gre?Symbol.for("react.forward_ref"):60112,PZe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},TZe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xre={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},OZe=((n3={})[$Ze]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n3[Yre]=Xre,n3);function hB(e){return("type"in(t=e)&&t.type.$$typeof)===Yre?Xre:"$$typeof"in e?OZe[e.$$typeof]:PZe;var t}var RZe=Object.defineProperty,IZe=Object.getOwnPropertyNames,vB=Object.getOwnPropertySymbols,MZe=Object.getOwnPropertyDescriptor,NZe=Object.getPrototypeOf,gB=Object.prototype;function Qre(e,t,n){if(typeof t!="string"){if(gB){var r=NZe(t);r&&r!==gB&&Qre(e,r,n)}var i=IZe(t);vB&&(i=i.concat(vB(t)));for(var a=hB(e),o=hB(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var DZe=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,a=i;t>=a;)if((a<<=1)<0)throw h1(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var o=i;o=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),a=i+r,o=i;o=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(g+="".concat(w,","))}),l+="".concat(h).concat(v,'{content:"').concat(g,'"}').concat(hN)},d=0;d0?".".concat(t):m},d=l.slice();d.push(function(m){m.type===Rk&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(qZe,n).replace(r,c))}),o.prefix&&d.push(yZe),d.push(hZe);var f=function(m,p,h,v){p===void 0&&(p=""),h===void 0&&(h=""),v===void 0&&(v="&"),t=v,n=p,r=new RegExp("\\".concat(n,"\\b"),"g");var g=m.replace(KZe,""),w=mZe(h||p?"".concat(h," ").concat(p," { ").concat(g," }"):g);o.namespace&&(w=eie(w,o.namespace));var b=[];return tS(w,vZe(d.concat(gZe(function(y){return b.push(y)})))),b};return f.hash=l.length?l.reduce(function(m,p){return p.name||h1(15),vm(m,p.name)},qre).toString():"",f}var YZe=new Jre,b6=GZe(),tie=A.createContext({shouldForwardProp:void 0,styleSheet:YZe,stylis:b6});tie.Consumer;A.createContext(void 0);function xB(){return u.useContext(tie)}var XZe=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=b6);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,gN(this,function(){throw h1(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=b6),this.name+t.hash},e}(),QZe=function(e){return e>="A"&&e<="Z"};function SB(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,o)){var s=r(a,".".concat(o),void 0,this.componentId);n.insertRules(this.componentId,o,s)}i=bd(i,o),this.staticRulesId=o}else{for(var l=vm(this.baseHash,r.hash),c="",d=0;d>>0);n.hasNameForId(this.componentId,p)||n.insertRules(this.componentId,p,r(c,".".concat(p),void 0,this.componentId)),i=bd(i,p)}}return i},e}(),iie=A.createContext(void 0);iie.Consumer;var i3={};function tJe(e,t,n){var r=vN(e),i=e,a=!r3(e),o=t.attrs,s=o===void 0?Fk:o,l=t.componentId,c=l===void 0?function(x,C){var S=typeof x!="string"?"sc":mB(x);i3[S]=(i3[S]||0)+1;var k="".concat(S,"-").concat(_Ze(Dk+S+i3[S]));return C?"".concat(C,"-").concat(k):k}(t.displayName,t.parentComponentId):l,d=t.displayName,f=d===void 0?function(x){return r3(x)?"styled.".concat(x):"Styled(".concat(EZe(x),")")}(e):d,m=t.displayName&&t.componentId?"".concat(mB(t.displayName),"-").concat(t.componentId):t.componentId||c,p=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(r&&i.shouldForwardProp){var v=i.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(x,C){return v(x,C)&&g(x,C)}}else h=v}var w=new eJe(n,m,r?i.componentStyle:void 0);function b(x,C){return function(S,k,_){var E=S.attrs,$=S.componentStyle,T=S.defaultProps,N=S.foldedComponentIds,D=S.styledComponentId,R=S.target,M=A.useContext(iie),O=xB(),F=S.shouldForwardProp||O.shouldForwardProp,L=xZe(k,M,T)||wp,B=function(K,X,q){for(var Y,ne=$a($a({},X),{className:void 0,theme:q}),U=0;U ByteDesk - + diff --git a/starter/src/main/resources/templates/notebase/assets/arc-DCwD3PI6.js b/starter/src/main/resources/templates/notebase/assets/arc-UQ4BAf3M.js similarity index 98% rename from starter/src/main/resources/templates/notebase/assets/arc-DCwD3PI6.js rename to starter/src/main/resources/templates/notebase/assets/arc-UQ4BAf3M.js index d3dfbccc94..cf2c64a80b 100644 --- a/starter/src/main/resources/templates/notebase/assets/arc-DCwD3PI6.js +++ b/starter/src/main/resources/templates/notebase/assets/arc-UQ4BAf3M.js @@ -1 +1 @@ -import{w as ln,c as z}from"./path-CbwjOpE9.js";import{a9 as an,aa as G,ab as O,ac as rn,ad as g,O as on,ae as K,af as _,ag as un,ah as t,ai as sn,aj as tn,ak as fn}from"./mermaid.core-BajzCmnv.js";function cn(l){return l.innerRadius}function gn(l){return l.outerRadius}function yn(l){return l.startAngle}function mn(l){return l.endAngle}function pn(l){return l&&l.padAngle}function dn(l,h,D,j,v,A,B,a){var E=D-l,i=j-h,n=B-v,m=a-A,r=m*E-n*i;if(!(r*ru*u+F*F&&(S=w,k=d),{cx:S,cy:k,x01:-n,y01:-m,x11:S*(v/T-1),y11:k*(v/T-1)}}function vn(){var l=cn,h=gn,D=z(0),j=null,v=yn,A=mn,B=pn,a=null,E=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=A.apply(this,arguments)-rn,C=un(c-f),o=c>f;if(a||(a=n=E()),sg))a.moveTo(0,0);else if(C>on-g)a.moveTo(s*G(f),s*O(f)),a.arc(0,0,s,f,c,!o),r>g&&(a.moveTo(r*G(c),r*O(c)),a.arc(0,0,r,c,f,o));else{var p=f,y=c,R=f,T=c,P=C,I=C,S=B.apply(this,arguments)/2,k=S>g&&(j?+j.apply(this,arguments):K(r*r+s*s)),w=_(un(s-r)/2,+D.apply(this,arguments)),d=w,x=w,e,u;if(k>g){var F=sn(k/r*O(S)),L=sn(k/s*O(S));(P-=F*2)>g?(F*=o?1:-1,R+=F,T-=F):(P=0,R=T=(f+c)/2),(I-=L*2)>g?(L*=o?1:-1,p+=L,y-=L):(I=0,p=y=(f+c)/2)}var H=s*G(p),J=s*O(p),M=r*G(T),N=r*O(T);if(w>g){var Q=s*G(y),U=s*O(y),W=r*G(R),X=r*O(R),q;if(Cg?x>g?(e=V(W,X,H,J,s,x,o),u=V(Q,U,M,N,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),xg)||!(P>g)?a.lineTo(M,N):d>g?(e=V(M,N,Q,U,r,-d,o),u=V(H,J,W,X,r,-d,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),du*u+F*F&&(S=w,k=d),{cx:S,cy:k,x01:-n,y01:-m,x11:S*(v/T-1),y11:k*(v/T-1)}}function vn(){var l=cn,h=gn,D=z(0),j=null,v=yn,A=mn,B=pn,a=null,E=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=A.apply(this,arguments)-rn,C=un(c-f),o=c>f;if(a||(a=n=E()),sg))a.moveTo(0,0);else if(C>on-g)a.moveTo(s*G(f),s*O(f)),a.arc(0,0,s,f,c,!o),r>g&&(a.moveTo(r*G(c),r*O(c)),a.arc(0,0,r,c,f,o));else{var p=f,y=c,R=f,T=c,P=C,I=C,S=B.apply(this,arguments)/2,k=S>g&&(j?+j.apply(this,arguments):K(r*r+s*s)),w=_(un(s-r)/2,+D.apply(this,arguments)),d=w,x=w,e,u;if(k>g){var F=sn(k/r*O(S)),L=sn(k/s*O(S));(P-=F*2)>g?(F*=o?1:-1,R+=F,T-=F):(P=0,R=T=(f+c)/2),(I-=L*2)>g?(L*=o?1:-1,p+=L,y-=L):(I=0,p=y=(f+c)/2)}var H=s*G(p),J=s*O(p),M=r*G(T),N=r*O(T);if(w>g){var Q=s*G(y),U=s*O(y),W=r*G(R),X=r*O(R),q;if(Cg?x>g?(e=V(W,X,H,J,s,x,o),u=V(Q,U,M,N,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),xg)||!(P>g)?a.lineTo(M,N):d>g?(e=V(M,N,Q,U,r,-d,o),u=V(H,J,W,X,r,-d,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),d"u"&&(w.yylloc={});var J=w.yylloc;t.push(J);var me=w.options&&w.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(){var P;return P=u.pop()||w.lex()||C,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}for(var I,M,z,Q,W={},X,B,ae,G;;){if(M=i[i.length-1],this.defaultActions[M]?z=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=_e()),z=m[M]&&m[M][I]),typeof z>"u"||!z.length||!z[0]){var $="";G=[];for(X in m[M])this.terminals_[X]&&X>F&&G.push("'"+this.terminals_[X]+"'");w.showPosition?$="Parse error on line "+(R+1)+`: +import{c as he,V as se,h as H,i as ye,l as S,C as Ee,z as we,j as De,o as ve}from"./mermaid.core-DacimPk4.js";import{c as Ne}from"./clone-CVBlNrV8.js";import{i as ke,c as Ie,b as Oe,d as Te,a as ge,p as ze}from"./edges-e0da2a9e---EYFhqg.js";import{G as Ce}from"./graph-Cryfb0BU.js";import"./index-bOgutTC1.js";import{o as Ae}from"./ordinal-Cboi1Yqb.js";import{c as Re}from"./channel-CFSrZVj_.js";import{s as Be}from"./Tableau10-B-NsZVaP.js";import"./createText-2e5e7dd3-sebYv4r1.js";import"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./init-Gi6I4Gst.js";var le,oe,ee=function(){var e=function(D,o,s,i){for(s=s||{},i=D.length;i--;s[D[i]]=o);return s},a=[1,7],d=[1,13],c=[1,14],n=[1,15],g=[1,19],l=[1,16],f=[1,17],b=[1,18],p=[8,30],x=[8,21,28,29,30,31,32,40,44,47],y=[1,23],T=[1,24],v=[8,15,16,21,28,29,30,31,32,40,44,47],N=[8,15,16,21,27,28,29,30,31,32,40,44,47],E=[1,49],L={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(o,s,i,u,h,t,m){var r=t.length-1;switch(h){case 4:u.getLogger().debug("Rule: separator (NL) ");break;case 5:u.getLogger().debug("Rule: separator (Space) ");break;case 6:u.getLogger().debug("Rule: separator (EOF) ");break;case 7:u.getLogger().debug("Rule: hierarchy: ",t[r-1]),u.setHierarchy(t[r-1]);break;case 8:u.getLogger().debug("Stop NL ");break;case 9:u.getLogger().debug("Stop EOF ");break;case 10:u.getLogger().debug("Stop NL2 ");break;case 11:u.getLogger().debug("Stop EOF2 ");break;case 12:u.getLogger().debug("Rule: statement: ",t[r]),typeof t[r].length=="number"?this.$=t[r]:this.$=[t[r]];break;case 13:u.getLogger().debug("Rule: statement #2: ",t[r-1]),this.$=[t[r-1]].concat(t[r]);break;case 14:u.getLogger().debug("Rule: link: ",t[r],o),this.$={edgeTypeStr:t[r],label:""};break;case 15:u.getLogger().debug("Rule: LABEL link: ",t[r-3],t[r-1],t[r]),this.$={edgeTypeStr:t[r],label:t[r-1]};break;case 18:const R=parseInt(t[r]),Y=u.generateId();this.$={id:Y,type:"space",label:"",width:R,children:[]};break;case 23:u.getLogger().debug("Rule: (nodeStatement link node) ",t[r-2],t[r-1],t[r]," typestr: ",t[r-1].edgeTypeStr);const F=u.edgeStrToEdgeData(t[r-1].edgeTypeStr);this.$=[{id:t[r-2].id,label:t[r-2].label,type:t[r-2].type,directions:t[r-2].directions},{id:t[r-2].id+"-"+t[r].id,start:t[r-2].id,end:t[r].id,label:t[r-1].label,type:"edge",directions:t[r].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions}];break;case 24:u.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[r-1],t[r]),this.$={id:t[r-1].id,label:t[r-1].label,type:u.typeStr2Type(t[r-1].typeStr),directions:t[r-1].directions,widthInColumns:parseInt(t[r],10)};break;case 25:u.getLogger().debug("Rule: nodeStatement (node) ",t[r]),this.$={id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions,widthInColumns:1};break;case 26:u.getLogger().debug("APA123",this?this:"na"),u.getLogger().debug("COLUMNS: ",t[r]),this.$={type:"column-setting",columns:t[r]==="auto"?-1:parseInt(t[r])};break;case 27:u.getLogger().debug("Rule: id-block statement : ",t[r-2],t[r-1]),u.generateId(),this.$={...t[r-2],type:"composite",children:t[r-1]};break;case 28:u.getLogger().debug("Rule: blockStatement : ",t[r-2],t[r-1],t[r]);const C=u.generateId();this.$={id:C,type:"composite",label:"",children:t[r-1]};break;case 29:u.getLogger().debug("Rule: node (NODE_ID separator): ",t[r]),this.$={id:t[r]};break;case 30:u.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[r-1],t[r]),this.$={id:t[r-1],label:t[r].label,typeStr:t[r].typeStr,directions:t[r].directions};break;case 31:u.getLogger().debug("Rule: dirList: ",t[r]),this.$=[t[r]];break;case 32:u.getLogger().debug("Rule: dirList: ",t[r-1],t[r]),this.$=[t[r-1]].concat(t[r]);break;case 33:u.getLogger().debug("Rule: nodeShapeNLabel: ",t[r-2],t[r-1],t[r]),this.$={typeStr:t[r-2]+t[r],label:t[r-1]};break;case 34:u.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[r-3],t[r-2]," #3:",t[r-1],t[r]),this.$={typeStr:t[r-3]+t[r],label:t[r-2],directions:t[r-1]};break;case 35:case 36:this.$={type:"classDef",id:t[r-1].trim(),css:t[r].trim()};break;case 37:this.$={type:"applyClass",id:t[r-1].trim(),styleClass:t[r].trim()};break;case 38:this.$={type:"applyStyles",id:t[r-1].trim(),stylesStr:t[r].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:l,44:f,47:b},{8:[1,20]},e(p,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:a,28:d,29:c,31:n,32:g,40:l,44:f,47:b}),e(x,[2,16],{14:22,15:y,16:T}),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),e(x,[2,21]),e(x,[2,22]),e(v,[2,25],{27:[1,25]}),e(x,[2,26]),{19:26,26:12,32:g},{11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:l,44:f,47:b},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(N,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,32:g},{32:[2,14]},{17:[1,36]},e(v,[2,24]),{11:37,13:4,14:22,15:y,16:T,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:l,44:f,47:b},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(N,[2,30]),{18:[1,43]},{18:[1,44]},e(v,[2,23]),{18:[1,45]},{30:[1,46]},e(x,[2,28]),e(x,[2,35]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),{37:[1,47]},{34:48,35:E},{15:[1,50]},e(x,[2,27]),e(N,[2,33]),{39:[1,51]},{34:52,35:E,39:[2,31]},{32:[2,15]},e(N,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(o,s){if(s.recoverable)this.trace(o);else{var i=new Error(o);throw i.hash=s,i}},parse:function(o){var s=this,i=[0],u=[],h=[null],t=[],m=this.table,r="",R=0,Y=0,F=2,C=1,Le=t.slice.call(arguments,1),w=Object.create(this.lexer),K={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&(K.yy[Z]=this.yy[Z]);w.setInput(o,K.yy),K.yy.lexer=w,K.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var J=w.yylloc;t.push(J);var me=w.options&&w.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(){var P;return P=u.pop()||w.lex()||C,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}for(var I,M,z,Q,W={},X,B,ae,G;;){if(M=i[i.length-1],this.defaultActions[M]?z=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=_e()),z=m[M]&&m[M][I]),typeof z>"u"||!z.length||!z[0]){var $="";G=[];for(X in m[M])this.terminals_[X]&&X>F&&G.push("'"+this.terminals_[X]+"'");w.showPosition?$="Parse error on line "+(R+1)+`: `+w.showPosition()+` Expecting `+G.join(", ")+", got '"+(this.terminals_[I]||I)+"'":$="Parse error on line "+(R+1)+": Unexpected "+(I==C?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError($,{text:w.match,token:this.terminals_[I]||I,line:w.yylineno,loc:J,expected:G})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+I);switch(z[0]){case 1:i.push(I),h.push(w.yytext),t.push(w.yylloc),i.push(z[1]),I=null,Y=w.yyleng,r=w.yytext,R=w.yylineno,J=w.yylloc;break;case 2:if(B=this.productions_[z[1]][1],W.$=h[h.length-B],W._$={first_line:t[t.length-(B||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(B||1)].first_column,last_column:t[t.length-1].last_column},me&&(W._$.range=[t[t.length-(B||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(W,[r,Y,R,K.yy,z[1],h,t].concat(Le)),typeof Q<"u")return Q;B&&(i=i.slice(0,-1*B*2),h=h.slice(0,-1*B),t=t.slice(0,-1*B)),i.push(this.productions_[z[1]][0]),h.push(W.$),t.push(W._$),ae=m[i[i.length-2]][i[i.length-1]],i.push(ae);break;case 3:return!0}}return!0}},A=function(){var D={EOF:1,parseError:function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},setInput:function(o,s){return this.yy=s||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var s=o.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var s=o.length,i=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),s=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/c4Diagram-3d4e48cf-CGakpSmd.js b/starter/src/main/resources/templates/notebase/assets/c4Diagram-3d4e48cf-CFkKbH2w.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/c4Diagram-3d4e48cf-CGakpSmd.js rename to starter/src/main/resources/templates/notebase/assets/c4Diagram-3d4e48cf-CFkKbH2w.js index 6ea586cc6b..2b6f633a84 100644 --- a/starter/src/main/resources/templates/notebase/assets/c4Diagram-3d4e48cf-CGakpSmd.js +++ b/starter/src/main/resources/templates/notebase/assets/c4Diagram-3d4e48cf-CFkKbH2w.js @@ -1,4 +1,4 @@ -import{s as we,g as Oe,a as Te,b as Re,c as Dt,d as ue,e as De,f as wt,h as Nt,l as le,i as Se,w as Pe,j as Kt,k as oe,m as Me}from"./mermaid.core-BajzCmnv.js";import{d as Le,g as Ne}from"./svgDrawCommon-08f97a94-Cb_6H50Z.js";import"./index-CLWgAZNI.js";var Yt=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],L=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],At=[14,42],Vt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],ne=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],mt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(_,x,m,g,T,u,Tt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(At,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(At,[2,14]),e(Vt,[2,16],{12:[1,76]}),e(At,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(At,[2,15]),e(Vt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(At,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ot,[2,21]),e(Ot,[2,22]),e(w,[2,39]),e(ne,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Vt,[2,18]),e(At,[2,38]),e(ne,[2,72]),e(Pt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Tt=this.table,y="",Et=0,se=0,ve=2,ae=1,ke=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(vt.yy[Qt]=this.yy[Qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var Ae=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ce(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ce()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>ve&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`: +import{s as we,g as Oe,a as Te,b as Re,c as Dt,d as ue,e as De,f as wt,h as Nt,l as le,i as Se,w as Pe,j as Kt,k as oe,m as Me}from"./mermaid.core-DacimPk4.js";import{d as Le,g as Ne}from"./svgDrawCommon-08f97a94-CD3fOJ0l.js";import"./index-bOgutTC1.js";var Yt=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],L=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],At=[14,42],Vt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],ne=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],mt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(_,x,m,g,T,u,Tt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(At,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(At,[2,14]),e(Vt,[2,16],{12:[1,76]}),e(At,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(At,[2,15]),e(Vt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(At,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ot,[2,21]),e(Ot,[2,22]),e(w,[2,39]),e(ne,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Vt,[2,18]),e(At,[2,38]),e(ne,[2,72]),e(Pt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Tt=this.table,y="",Et=0,se=0,ve=2,ae=1,ke=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(vt.yy[Qt]=this.yy[Qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var Ae=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ce(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ce()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>ve&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`: `+D.showPosition()+` Expecting `+Lt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Gt="Parse error on line "+(Et+1)+": Unexpected "+(M==ae?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Gt,{text:D.match,token:this.terminals_[M]||M,line:D.yylineno,loc:Ht,expected:Lt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+M);switch(N[0]){case 1:m.push(M),T.push(D.yytext),u.push(D.yylloc),m.push(N[1]),M=null,se=D.yyleng,y=D.yytext,Et=D.yylineno,Ht=D.yylloc;break;case 2:if(z=this.productions_[N[1]][1],Ct.$=T[T.length-z],Ct._$={first_line:u[u.length-(z||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(z||1)].first_column,last_column:u[u.length-1].last_column},Ae&&(Ct._$.range=[u[u.length-(z||1)].range[0],u[u.length-1].range[1]]),qt=this.performAction.apply(Ct,[y,se,Et,vt.yy,N[1],T,u].concat(ke)),typeof qt<"u")return qt;z&&(m=m.slice(0,-1*z*2),T=T.slice(0,-1*z),u=u.slice(0,-1*z)),m.push(this.productions_[N[1]][0]),T.push(Ct.$),u.push(Ct._$),re=Tt[m[m.length-2]][m[m.length-1]],m.push(re);break;case 3:return!0}}return!0}},Ee=function(){var bt={EOF:1,parseError:function(x,m){if(this.yy.parser)this.yy.parser.parseError(x,m);else throw new Error(x)},setInput:function(_,x){return this.yy=x||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var x=_.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},unput:function(_){var x=_.length,m=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_){this.unput(this.match.slice(_))},pastInput:function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _=this.pastInput(),x=new Array(_.length+1).join("-");return _+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/channel--_OxL60w.js b/starter/src/main/resources/templates/notebase/assets/channel--_OxL60w.js deleted file mode 100644 index 4f290221dc..0000000000 --- a/starter/src/main/resources/templates/notebase/assets/channel--_OxL60w.js +++ /dev/null @@ -1 +0,0 @@ -import{al as o,am as n}from"./mermaid.core-BajzCmnv.js";const l=(a,r)=>o.lang.round(n.parse(a)[r]);export{l as c}; diff --git a/starter/src/main/resources/templates/notebase/assets/channel-CFSrZVj_.js b/starter/src/main/resources/templates/notebase/assets/channel-CFSrZVj_.js new file mode 100644 index 0000000000..7bcdc5b5fc --- /dev/null +++ b/starter/src/main/resources/templates/notebase/assets/channel-CFSrZVj_.js @@ -0,0 +1 @@ +import{al as o,am as n}from"./mermaid.core-DacimPk4.js";const l=(a,r)=>o.lang.round(n.parse(a)[r]);export{l as c}; diff --git a/starter/src/main/resources/templates/notebase/assets/classDiagram-70f12bd4-BwtI_QSR.js b/starter/src/main/resources/templates/notebase/assets/classDiagram-70f12bd4-i-AU2IWv.js similarity index 97% rename from starter/src/main/resources/templates/notebase/assets/classDiagram-70f12bd4-BwtI_QSR.js rename to starter/src/main/resources/templates/notebase/assets/classDiagram-70f12bd4-i-AU2IWv.js index f9471890bf..0a616996e5 100644 --- a/starter/src/main/resources/templates/notebase/assets/classDiagram-70f12bd4-BwtI_QSR.js +++ b/starter/src/main/resources/templates/notebase/assets/classDiagram-70f12bd4-i-AU2IWv.js @@ -1,2 +1,2 @@ -import{p as A,d as S,s as G}from"./styles-9a916d00-BHajR6jW.js";import{c as v,l as y,h as B,i as W,D as $,y as M,E as I}from"./mermaid.core-BajzCmnv.js";import{G as O}from"./graph-CNSoCPH1.js";import{l as P}from"./layout-Cg9I2QIy.js";import"./index-CLWgAZNI.js";import{l as X}from"./line-CH9gKq5B.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(` +import{p as A,d as S,s as G}from"./styles-9a916d00-DJJSKZVB.js";import{c as v,l as y,h as B,i as W,D as $,y as M,E as I}from"./mermaid.core-DacimPk4.js";import{G as O}from"./graph-Cryfb0BU.js";import{l as P}from"./layout-DPudLDYQ.js";import"./index-bOgutTC1.js";import{l as X}from"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(` `);n.forEach(function(x){y.debug(`Adding line: ${x}`),c.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const r=s.node().getBBox(),h=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",r.width+2*t.padding).attr("height",r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return c.node().childNodes.forEach(function(x){x.setAttribute("x",(h-x.getBBox().width)/2)}),g.width=h,g.height=r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,g},_=function(i,a,t,o){const{displayText:p,cssStyle:g}=a.getDisplayDetails(),s=i.append("tspan").attr("x",o.padding).text(p);g!==""&&s.attr("style",a.cssStyle),t||s.attr("dy",o.textHeight)},N={getClassTitleString:C,drawClass:J,drawEdge:Y,drawNote:Z};let T={};const L=20,E=function(i){const a=Object.entries(T).find(t=>t[1].label===i);if(a)return a[0]},R=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},F=function(i,a,t,o){const p=v().class;T={},y.info("Rendering diagram "+i);const g=v().securityLevel;let s;g==="sandbox"&&(s=B("#i"+a));const c=g==="sandbox"?B(s.nodes()[0].contentDocument.body):B("body"),n=c.select(`[id='${a}']`);R(n);const r=new O({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const f=o.db.getClasses(),h=Object.keys(f);for(const e of h){const d=f[e],l=N.drawClass(n,d,p,o);T[l.id]=l,r.setNode(l.id,l),y.info("Org height: "+l.height)}o.db.getRelations().forEach(function(e){y.info("tjoho"+E(e.id1)+E(e.id2)+JSON.stringify(e)),r.setEdge(E(e.id1),E(e.id2),{relation:e},e.title||"DEFAULT")}),o.db.getNotes().forEach(function(e){y.debug(`Adding note: ${JSON.stringify(e)}`);const d=N.drawNote(n,e,p,o);T[d.id]=d,r.setNode(d.id,d),e.class&&e.class in f&&r.setEdge(e.id,E(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),P(r),r.nodes().forEach(function(e){e!==void 0&&r.node(e)!==void 0&&(y.debug("Node "+e+": "+JSON.stringify(r.node(e))),c.select("#"+(o.db.lookUpDomId(e)||e)).attr("transform","translate("+(r.node(e).x-r.node(e).width/2)+","+(r.node(e).y-r.node(e).height/2)+" )"))}),r.edges().forEach(function(e){e!==void 0&&r.edge(e)!==void 0&&(y.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r.edge(e))),N.drawEdge(n,r.edge(e),r.edge(e).relation,p,o))});const u=n.node().getBBox(),m=u.width+L*2,w=u.height+L*2;W(n,w,m,p.useMaxWidth);const k=`${u.x-L} ${u.y-L} ${m} ${w}`;y.debug(`viewBox ${k}`),n.attr("viewBox",k)},U={draw:F},et={parser:A,db:S,renderer:U,styles:G,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,S.clear()}};export{et as diagram}; diff --git a/starter/src/main/resources/templates/notebase/assets/classDiagram-v2-f2320105-CNrZSAbx.js b/starter/src/main/resources/templates/notebase/assets/classDiagram-v2-f2320105-BaXoILhn.js similarity index 92% rename from starter/src/main/resources/templates/notebase/assets/classDiagram-v2-f2320105-CNrZSAbx.js rename to starter/src/main/resources/templates/notebase/assets/classDiagram-v2-f2320105-BaXoILhn.js index 47b44ffeb6..8085b61878 100644 --- a/starter/src/main/resources/templates/notebase/assets/classDiagram-v2-f2320105-CNrZSAbx.js +++ b/starter/src/main/resources/templates/notebase/assets/classDiagram-v2-f2320105-BaXoILhn.js @@ -1,2 +1,2 @@ -import{p as M,d as _,s as R}from"./styles-9a916d00-BHajR6jW.js";import{l as d,c,h as w,y as B,t as G,o as D,q as E,n as C,j as A}from"./mermaid.core-BajzCmnv.js";import{G as q}from"./graph-CNSoCPH1.js";import{r as z}from"./index-3862675e-C5iJKLK2.js";import"./index-CLWgAZNI.js";import"./layout-Cg9I2QIy.js";import"./clone-CJLsyeCN.js";import"./edges-e0da2a9e-121Kky2V.js";import"./createText-2e5e7dd3-CXwUql3o.js";import"./line-CH9gKq5B.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const S=s=>A.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,t,y,a){const e=Object.keys(s);d.info("keys:",e),d.info(s),e.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};t.setNode(l.id,p),$(l.classes,t,y,a,l.id),d.info("setNode",p)})},$=function(s,t,y,a,e){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==e).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),f=D(n.styles),h=n.label??n.id,u=0,b={labelStyle:f.labelStyle,shape:"class_box",labelText:S(h),classData:n,rx:u,ry:u,class:p,style:f.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,e)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};t.setNode(n.id,b),e&&t.setParent(n.id,e),d.info("setNode",b)})},F=function(s,t,y,a){d.info(s),s.forEach(function(e,i){var o,r;const l=e,n="",p={labelStyle:"",style:""},f=l.text,h=0,m={labelStyle:p.labelStyle,shape:"note",labelText:S(f),noteData:l,rx:h,ry:h,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(t.setNode(l.id,m),d.info("setNode",m),!l.class||!(l.class in a))return;const b=y+i,x={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,C)};t.setEdge(l.id,l.class,x,b)})},H=function(s,t){const y=c().flowchart;let a=0;s.forEach(function(e){var i;a++;const o={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:`id_${e.id1}_${e.id2}_${a}`,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:N(e.relation.type1),arrowTypeEnd:N(e.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,C)};if(d.info(o,e),e.style!==void 0){const r=D(e.style);o.style=r.style,o.labelStyle=r.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label=''+e.text+""):(o.labelType="text",o.label=e.text.replace(A.lineBreakRegex,` +import{p as M,d as _,s as R}from"./styles-9a916d00-DJJSKZVB.js";import{l as d,c,h as w,y as B,t as G,o as D,q as E,n as C,j as A}from"./mermaid.core-DacimPk4.js";import{G as q}from"./graph-Cryfb0BU.js";import{r as z}from"./index-3862675e-BtvAzWCw.js";import"./index-bOgutTC1.js";import"./layout-DPudLDYQ.js";import"./clone-CVBlNrV8.js";import"./edges-e0da2a9e---EYFhqg.js";import"./createText-2e5e7dd3-sebYv4r1.js";import"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const S=s=>A.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,t,y,a){const e=Object.keys(s);d.info("keys:",e),d.info(s),e.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};t.setNode(l.id,p),$(l.classes,t,y,a,l.id),d.info("setNode",p)})},$=function(s,t,y,a,e){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==e).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),f=D(n.styles),h=n.label??n.id,u=0,b={labelStyle:f.labelStyle,shape:"class_box",labelText:S(h),classData:n,rx:u,ry:u,class:p,style:f.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,e)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};t.setNode(n.id,b),e&&t.setParent(n.id,e),d.info("setNode",b)})},F=function(s,t,y,a){d.info(s),s.forEach(function(e,i){var o,r;const l=e,n="",p={labelStyle:"",style:""},f=l.text,h=0,m={labelStyle:p.labelStyle,shape:"note",labelText:S(f),noteData:l,rx:h,ry:h,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(t.setNode(l.id,m),d.info("setNode",m),!l.class||!(l.class in a))return;const b=y+i,x={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,C)};t.setEdge(l.id,l.class,x,b)})},H=function(s,t){const y=c().flowchart;let a=0;s.forEach(function(e){var i;a++;const o={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:`id_${e.id1}_${e.id2}_${a}`,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:N(e.relation.type1),arrowTypeEnd:N(e.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,C)};if(d.info(o,e),e.style!==void 0){const r=D(e.style);o.style=r.style,o.labelStyle=r.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label=''+e.text+""):(o.labelType="text",o.label=e.text.replace(A.lineBreakRegex,` `),e.style===void 0&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:"))),t.setEdge(e.id1,e.id2,o,a)})},V=function(s){k={...k,...s}},W=async function(s,t,y,a){d.info("Drawing class - ",t);const e=c().flowchart??c().class,i=c().securityLevel;d.info("config:",e);const o=(e==null?void 0:e.nodeSpacing)??50,r=(e==null?void 0:e.rankSpacing)??50,l=new q({multigraph:!0,compound:!0}).setGraph({rankdir:a.db.getDirection(),nodesep:o,ranksep:r,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=a.db.getNamespaces(),p=a.db.getClasses(),f=a.db.getRelations(),h=a.db.getNotes();d.info(f),P(n,l,t,a),$(p,l,t,a),H(f,l),F(h,l,f.length+1,p);let u;i==="sandbox"&&(u=w("#i"+t));const m=i==="sandbox"?w(u.nodes()[0].contentDocument.body):w("body"),b=m.select(`[id="${t}"]`),x=m.select("#"+t+" g");if(await z(x,l,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),B.insertTitle(b,"classTitleText",(e==null?void 0:e.titleTopMargin)??5,a.db.getDiagramTitle()),G(l,b,e==null?void 0:e.diagramPadding,e==null?void 0:e.useMaxWidth),!(e!=null&&e.htmlLabels)){const T=i==="sandbox"?u.nodes()[0].contentDocument:document,I=T.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const g of I){const L=g.getBBox(),v=T.createElementNS("http://www.w3.org/2000/svg","rect");v.setAttribute("rx",0),v.setAttribute("ry",0),v.setAttribute("width",L.width),v.setAttribute("height",L.height),g.insertBefore(v,g.firstChild)}}};function N(s){let t;switch(s){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}const J={setConf:V,draw:W},se={parser:M,db:_,renderer:J,styles:R,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,_.clear()}};export{se as diagram}; diff --git a/starter/src/main/resources/templates/notebase/assets/clone-CJLsyeCN.js b/starter/src/main/resources/templates/notebase/assets/clone-CJLsyeCN.js deleted file mode 100644 index bb2ad3f20b..0000000000 --- a/starter/src/main/resources/templates/notebase/assets/clone-CJLsyeCN.js +++ /dev/null @@ -1 +0,0 @@ -import{c as r}from"./graph-CNSoCPH1.js";var e=4;function a(o){return r(o,e)}export{a as c}; diff --git a/starter/src/main/resources/templates/notebase/assets/clone-CVBlNrV8.js b/starter/src/main/resources/templates/notebase/assets/clone-CVBlNrV8.js new file mode 100644 index 0000000000..96a6a304fd --- /dev/null +++ b/starter/src/main/resources/templates/notebase/assets/clone-CVBlNrV8.js @@ -0,0 +1 @@ +import{c as r}from"./graph-Cryfb0BU.js";var e=4;function a(o){return r(o,e)}export{a as c}; diff --git a/starter/src/main/resources/templates/notebase/assets/createText-2e5e7dd3-CXwUql3o.js b/starter/src/main/resources/templates/notebase/assets/createText-2e5e7dd3-sebYv4r1.js similarity index 96% rename from starter/src/main/resources/templates/notebase/assets/createText-2e5e7dd3-CXwUql3o.js rename to starter/src/main/resources/templates/notebase/assets/createText-2e5e7dd3-sebYv4r1.js index fd1f66b071..030f29195b 100644 --- a/starter/src/main/resources/templates/notebase/assets/createText-2e5e7dd3-CXwUql3o.js +++ b/starter/src/main/resources/templates/notebase/assets/createText-2e5e7dd3-sebYv4r1.js @@ -1,4 +1,4 @@ -import{l as b,as as T,at as W}from"./mermaid.core-BajzCmnv.js";import{a5 as x}from"./index-CLWgAZNI.js";function E(n){const t=n.replace(/\n{2,}/g,` +import{l as b,as as T,at as W}from"./mermaid.core-DacimPk4.js";import{a5 as x}from"./index-bOgutTC1.js";function E(n){const t=n.replace(/\n{2,}/g,` `);return W(t)}function w(n){const t=E(n),{children:e}=x(t),o=[[]];let i=0;function s(r,a="normal"){r.type==="text"?r.value.split(` `).forEach((l,p)=>{p!==0&&(i++,o.push([])),l.split(" ").forEach(f=>{f&&o[i].push({content:f,type:a})})}):(r.type==="strong"||r.type==="emphasis")&&r.children.forEach(c=>{s(c,r.type)})}return e.forEach(r=>{r.type==="paragraph"&&r.children.forEach(a=>{s(a)})}),o}function S(n){const{children:t}=x(n);function e(o){return o.type==="text"?o.value.replace(/\n/g,"
      "):o.type==="strong"?`${o.children.map(e).join("")}`:o.type==="emphasis"?`${o.children.map(e).join("")}`:o.type==="paragraph"?`

      ${o.children.map(e).join("")}

      `:`Unsupported markdown: ${o.type}`}return t.map(e).join("")}function j(n){return Intl.Segmenter?[...new Intl.Segmenter().segment(n)].map(t=>t.segment):[...n]}function v(n,t){const e=j(t.content);return g(n,[],e,t.type)}function g(n,t,e,o){if(e.length===0)return[{content:t.join(""),type:o},{content:"",type:o}];const[i,...s]=e,r=[...t,i];return n([{content:r.join(""),type:o}])?g(n,r,s,o):(t.length===0&&i&&(t.push(i),e.shift()),[{content:t.join(""),type:o},{content:e.join(""),type:o}])}function L(n,t){if(n.some(({content:e})=>e.includes(` `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return h(n,t)}function h(n,t,e=[],o=[]){if(n.length===0)return o.length>0&&e.push(o),e.length>0?e:[];let i="";n[0].content===" "&&(i=" ",n.shift());const s=n.shift()??{content:" ",type:"normal"},r=[...o];if(i!==""&&r.push({content:i,type:"normal"}),r.push(s),t(r))return h(n,t,e,r);if(o.length>0)e.push(o),n.unshift(s);else if(s.content){const[a,c]=v(t,s);e.push([a]),c.content&&n.unshift(c)}return h(n,t,e)}function $(n,t){t&&n.attr("style",t)}function k(n,t,e,o,i=!1){const s=n.append("foreignObject"),r=s.append("xhtml:div"),a=t.label,c=t.isNode?"nodeLabel":"edgeLabel";r.html(` diff --git a/starter/src/main/resources/templates/notebase/assets/edges-e0da2a9e-121Kky2V.js b/starter/src/main/resources/templates/notebase/assets/edges-e0da2a9e---EYFhqg.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/edges-e0da2a9e-121Kky2V.js rename to starter/src/main/resources/templates/notebase/assets/edges-e0da2a9e---EYFhqg.js index c5079cb3d4..e755d14344 100644 --- a/starter/src/main/resources/templates/notebase/assets/edges-e0da2a9e-121Kky2V.js +++ b/starter/src/main/resources/templates/notebase/assets/edges-e0da2a9e---EYFhqg.js @@ -1,4 +1,4 @@ -import{p as H,c as b,d as q,as as Q,h as E,l as g,y as j,D as lt}from"./mermaid.core-BajzCmnv.js";import{a as st}from"./createText-2e5e7dd3-CXwUql3o.js";import{l as ct}from"./line-CH9gKq5B.js";const ht=(e,t,a,i)=>{t.forEach(l=>{wt[l](e,a,i)})},ot=(e,t,a)=>{g.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},yt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ft=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},xt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},dt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},gt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ut=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},bt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},wt={extension:ot,composition:yt,aggregation:pt,dependency:ft,lollipop:xt,point:dt,circle:gt,cross:ut,barb:bt},hr=ht;function mt(e,t){t&&e.attr("style",t)}function kt(e){const t=E(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=t.append("xhtml:div"),i=e.label,l=e.isNode?"nodeLabel":"edgeLabel";return a.html('"+i+""),mt(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const vt=(e,t,a,i)=>{let l=e||"";if(typeof l=="object"&&(l=l[0]),H(b().flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"
      "),g.debug("vertexText"+l);const r={isNode:i,label:Q(l).replace(/fa[blrs]?:fa-[\w-]+/g,n=>``),labelStyle:t.replace("fill:","color:")};return kt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof l=="string"?s=l.split(/\\n|\n|/gi):Array.isArray(l)?s=l:s=[];for(const n of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),a?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}return r}},R=vt,M=async(e,t,a,i)=>{let l;const r=t.useHtmlLabels||H(b().flowchart.htmlLabels);a?l=a:l="node default";const s=e.insert("g").attr("class",l).attr("id",t.domId||t.id),n=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=n.node();let h;t.labelType==="markdown"?h=st(n,q(Q(c),b()),{useHtmlLabels:r,width:t.width||b().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(R(q(Q(c),b()),t.labelStyle,!1,i));let y=h.getBBox();const f=t.padding/2;if(H(b().flowchart.htmlLabels)){const p=h.children[0],d=E(h),k=p.getElementsByTagName("img");if(k){const x=c.replace(/]*>/g,"").trim()==="";await Promise.all([...k].map(u=>new Promise(S=>{function B(){if(u.style.display="flex",u.style.flexDirection="column",x){const C=b().fontSize?b().fontSize:window.getComputedStyle(document.body).fontSize,D=parseInt(C,10)*5+"px";u.style.minWidth=D,u.style.maxWidth=D}else u.style.width="100%";S(u)}setTimeout(()=>{u.complete&&B()}),u.addEventListener("error",B),u.addEventListener("load",B)})))}y=p.getBoundingClientRect(),d.attr("width",y.width),d.attr("height",y.height)}return r?n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):n.attr("transform","translate(0, "+-y.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:s,bbox:y,halfPadding:f,label:n}},m=(e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height};function I(e,t,a,i){return e.insert("polygon",":first-child").attr("points",i.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}function Lt(e,t){return e.intersect(t)}function it(e,t,a,i){var l=e.x,r=e.y,s=l-i.x,n=r-i.y,c=Math.sqrt(t*t*n*n+a*a*s*s),o=Math.abs(t*a*s/c);i.x0}function Tt(e,t,a){var i=e.x,l=e.y,r=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){s=Math.min(s,d.x),n=Math.min(n,d.y)}):(s=Math.min(s,t.x),n=Math.min(n,t.y));for(var c=i-e.width/2-s,o=l-e.height/2-n,h=0;h1&&r.sort(function(d,k){var x=d.x-a.x,u=d.y-a.y,S=Math.sqrt(x*x+u*u),B=k.x-a.x,C=k.y-a.y,X=Math.sqrt(B*B+C*C);return S{var a=e.x,i=e.y,l=t.x-a,r=t.y-i,s=e.width/2,n=e.height/2,c,o;return Math.abs(r)*s>Math.abs(l)*n?(r<0&&(n=-n),c=r===0?0:n*l/r,o=n):(l<0&&(s=-s),c=s,o=l===0?0:s*r/l),{x:a+c,y:i+o}},Et=Bt,w={node:Lt,circle:St,ellipse:it,polygon:Tt,rect:Et},Ct=async(e,t)=>{t.useHtmlLabels||b().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:i,bbox:l,halfPadding:r}=await M(e,t,"node "+t.classes,!0);g.info("Classes = ",t.classes);const s=i.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-r).attr("y",-l.height/2-r).attr("width",l.width+t.padding).attr("height",l.height+t.padding),m(t,s),t.intersect=function(n){return w.rect(t,n)},i},$t=Ct,_t=e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},Rt=(e,t,a)=>{const i=_t(e),l=2,r=t.height+2*a.padding,s=r/l,n=t.width+2*s+a.padding,c=a.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:s,y:0},{x:n/2,y:2*c},{x:n-s,y:0},{x:n,y:0},{x:n,y:-r/3},{x:n+2*c,y:-r/2},{x:n,y:-2*r/3},{x:n,y:-r},{x:n-s,y:-r},{x:n/2,y:-r-2*c},{x:s,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*c,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:s,y:-r},{x:n-s,y:-r},{x:n,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:n,y:-r+s},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:n,y:0},{x:0,y:-s},{x:0,y:-r+s},{x:n,y:-r}]:i.has("right")&&i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:n,y:-s},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:n,y:0},{x:0,y:-s},{x:n,y:-r}]:i.has("left")&&i.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-r}]:i.has("right")?[{x:s,y:-c},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r+c}]:i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c}]:i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:[{x:0,y:0}]},K=e=>e?" "+e:"",_=(e,t)=>`node default${K(e.classes)} ${K(e.class)}`,P=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=l+r,n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];g.info("Question main (Circle)");const c=I(a,s,s,n);return c.attr("style",t.style),m(t,c),t.intersect=function(o){return g.warn("Intersect called"),w.polygon(t,n,o)},a},Ht=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,l=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return a.insert("polygon",":first-child").attr("points",l.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return w.circle(t,14,s)},a},It=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=4,r=i.height+t.padding,s=r/l,n=i.width+2*s+t.padding,c=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}],o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Nt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,void 0,!0),l=2,r=i.height+2*t.padding,s=r/l,n=i.width+2*s+t.padding,c=Rt(t.directions,i,t),o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Ot=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return I(a,l,r,s).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(c){return w.polygon(t,s,c)},a},Wt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Xt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Yt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Dt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},At=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},jt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=l/2,s=r/(2.5+l/50),n=i.height+s+t.padding,c="M 0,"+s+" a "+r+","+s+" 0,0,0 "+l+" 0 a "+r+","+s+" 0,0,0 "+-l+" 0 l 0,"+n+" a "+r+","+s+" 0,0,0 "+l+" 0 l 0,"+-n,o=a.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-l/2+","+-(n/2+s)+")");return m(t,o),t.intersect=function(h){const y=w.rect(t,h),f=y.x-t.x;if(r!=0&&(Math.abs(f)t.height/2-s)){let p=s*s*(1-f*f/(r*r));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),y.y+=p}return y},a},Ut=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes+" "+t.class,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},zt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},Zt=async(e,t)=>{const{shapeSvg:a}=await M(e,t,"label",!0);g.trace("Classes = ",t.class);const i=a.insert("rect",":first-child"),l=0,r=0;if(i.attr("width",l).attr("height",r),a.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(V(i,t.props.borders,l,r),s.delete("borders")),s.forEach(n=>{g.warn(`Unknown node property ${n}`)})}return m(t,i),t.intersect=function(s){return w.rect(t,s)},a};function V(e,t,a,i){const l=[],r=n=>{l.push(n,0)},s=n=>{l.push(0,n)};t.includes("t")?(g.debug("add top border"),r(a)):s(a),t.includes("r")?(g.debug("add right border"),r(i)):s(i),t.includes("b")?(g.debug("add bottom border"),r(a)):s(a),t.includes("l")?(g.debug("add left border"),r(i)):s(i),e.attr("stroke-dasharray",l.join(" "))}const Gt=(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),r=i.insert("line"),s=i.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,g.info("Label text abc79",c,n,typeof n=="object");const o=s.node().appendChild(R(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(b().flowchart.htmlLabels)){const k=o.children[0],x=E(o);h=k.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}g.info("Text 2",n);const y=n.slice(1,n.length);let f=o.getBBox();const p=s.node().appendChild(R(y.join?y.join("
      "):y,t.labelStyle,!0,!0));if(H(b().flowchart.htmlLabels)){const k=p.children[0],x=E(p);h=k.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}const d=t.padding/2;return E(p).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+d+5)+")"),E(o).attr("transform","translate( "+(h.width{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.height+t.padding,r=i.width+l/4+t.padding,s=a.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return m(t,s),t.intersect=function(n){return w.rect(t,n)},a},Qt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t),!0),r=a.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("Circle main"),m(t,r),t.intersect=function(s){return g.info("Circle intersect",t,i.width/2+l,s),w.circle(t,i.width/2+l,s)},a},Vt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t),!0),r=5,s=a.insert("g",":first-child"),n=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l+r).attr("width",i.width+t.padding+r*2).attr("height",i.height+t.padding+r*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("DoubleCircle main"),m(t,n),t.intersect=function(o){return g.info("DoubleCircle intersect",t,i.width/2+l+r,o),w.circle(t,i.width/2+l+r,o)},a},qt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Jt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),m(t,i),t.intersect=function(l){return w.circle(t,7,l)},a},tt=(e,t,a)=>{const i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;a==="LR"&&(l=10,r=70);const s=i.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return m(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return w.rect(t,n)},i},Kt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child"),l=a.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),m(t,l),t.intersect=function(r){return w.circle(t,7,r)},a},Pt=(e,t)=>{const a=t.padding/2,i=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,y=i;const f=s.insert("g").attr("class","label");let p=0;const d=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",x=f.node().appendChild(R(k,t.labelStyle,!0,!0));let u=x.getBBox();if(H(b().flowchart.htmlLabels)){const v=x.children[0],L=E(x);u=v.getBoundingClientRect(),L.attr("width",u.width),L.attr("height",u.height)}t.classData.annotations[0]&&(y+=u.height+i,h+=u.width);let S=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(b().flowchart.htmlLabels?S+="<"+t.classData.type+">":S+="<"+t.classData.type+">");const B=f.node().appendChild(R(S,t.labelStyle,!0,!0));E(B).attr("class","classTitle");let C=B.getBBox();if(H(b().flowchart.htmlLabels)){const v=B.children[0],L=E(B);C=v.getBoundingClientRect(),L.attr("width",C.width),L.attr("height",C.height)}y+=C.height+i,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(//g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const F=N.children[0],A=E(N);$=F.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,X.push(N)}),y+=l;const D=[];if(t.classData.methods.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(//g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const F=N.children[0],A=E(N);$=F.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,D.push(N)}),y+=l,d){let v=(h-u.width)/2;E(x).attr("transform","translate( "+(-1*h/2+v)+", "+-1*y/2+")"),p=u.height+i}let nt=(h-C.width)/2;return E(B).attr("transform","translate( "+(-1*h/2+nt)+", "+(-1*y/2+p)+")"),p+=C.height+i,c.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,X.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p+l/2)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),p+=l,o.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,D.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),n.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-a).attr("y",-(y/2)-a).attr("width",h+t.padding).attr("height",y+t.padding),m(t,n),t.intersect=function(v){return w.rect(t,v)},s},rt={rhombus:P,composite:zt,question:P,rect:Ut,labelRect:Zt,rectWithTitle:Gt,choice:Ht,circle:Qt,doublecircle:Vt,stadium:Ft,hexagon:It,block_arrow:Nt,rect_left_inv_arrow:Ot,lean_right:Wt,lean_left:Xt,trapezoid:Yt,inv_trapezoid:Dt,rect_right_inv_arrow:At,cylinder:jt,start:Jt,end:Kt,note:$t,subroutine:qt,fork:tt,join:tt,class_box:Pt};let Y={};const or=async(e,t,a)=>{let i,l;if(t.link){let r;b().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await rt[t.shape](i,t,a)}else l=await rt[t.shape](e,t,a),i=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),i.attr("data-node","true"),i.attr("data-id",t.id),Y[t.id]=i,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),i},yr=(e,t)=>{Y[t.id]=e},pr=()=>{Y={}},fr=e=>{const t=Y[e.id];g.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},tr=({flowchart:e})=>{var t,a;const i=((t=e==null?void 0:e.subGraphTitleMargin)==null?void 0:t.top)??0,l=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,r=i+l;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function U(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Z(e),t=Z(t);const[a,i]=[e.x,e.y],[l,r]=[t.x,t.y],s=l-a,n=r-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}const Z=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,rr=e=>({x:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaX:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.cos(r)*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaX:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.cos(r)*(s>=0?1:-1)}return Z(t).x+l},y:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaY:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.abs(Math.sin(r))*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaY:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.abs(Math.sin(r))*(s>=0?1:-1)}return Z(t).y+l}}),ar=(e,t,a,i,l)=>{t.arrowTypeStart&&at(e,"start",t.arrowTypeStart,a,i,l),t.arrowTypeEnd&&at(e,"end",t.arrowTypeEnd,a,i,l)},er={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},at=(e,t,a,i,l,r)=>{const s=er[a];if(!s){g.warn(`Unknown arrow type: ${a}`);return}const n=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${l}_${r}-${s}${n})`)};let G={},T={};const xr=()=>{G={},T={}},dr=(e,t)=>{const a=H(b().flowchart.htmlLabels),i=t.labelType==="markdown"?st(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0}):R(t.label,t.labelStyle),l=e.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(i);let s=i.getBBox();if(a){const c=i.children[0],o=E(i);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),G[t.id]=l,t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){const c=R(t.startLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startLeft=o,z(n,t.startLabelLeft)}if(t.startLabelRight){const c=R(t.startLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=o.node().appendChild(c),h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startRight=o,z(n,t.startLabelRight)}if(t.endLabelLeft){const c=R(t.endLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endLeft=o,z(n,t.endLabelLeft)}if(t.endLabelRight){const c=R(t.endLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endRight=o,z(n,t.endLabelRight)}return i};function z(e,t){b().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const gr=(e,t)=>{g.debug("Moving label abc88 ",e.id,e.label,G[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const i=b(),{subGraphTitleTotalMargin:l}=tr(i);if(e.label){const r=G[e.id];let s=e.x,n=e.y;if(a){const c=j.calcLabelPosition(a);g.debug("Moving label "+e.label+" from (",s,",",n,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,n=c.y)}r.attr("transform",`translate(${s}, ${n+l/2})`)}if(e.startLabelLeft){const r=T[e.id].startLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.startLabelRight){const r=T[e.id].startRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelLeft){const r=T[e.id].endLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelRight){const r=T[e.id].endRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}},sr=(e,t)=>{const a=e.x,i=e.y,l=Math.abs(t.x-a),r=Math.abs(t.y-i),s=e.width/2,n=e.height/2;return l>=s||r>=n},ir=(e,t,a)=>{g.debug(`intersection calc abc89: +import{p as H,c as b,d as q,as as Q,h as E,l as g,y as j,D as lt}from"./mermaid.core-DacimPk4.js";import{a as st}from"./createText-2e5e7dd3-sebYv4r1.js";import{l as ct}from"./line-Dno7JaPM.js";const ht=(e,t,a,i)=>{t.forEach(l=>{wt[l](e,a,i)})},ot=(e,t,a)=>{g.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},yt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ft=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},xt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},dt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},gt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ut=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},bt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},wt={extension:ot,composition:yt,aggregation:pt,dependency:ft,lollipop:xt,point:dt,circle:gt,cross:ut,barb:bt},hr=ht;function mt(e,t){t&&e.attr("style",t)}function kt(e){const t=E(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=t.append("xhtml:div"),i=e.label,l=e.isNode?"nodeLabel":"edgeLabel";return a.html('"+i+""),mt(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const vt=(e,t,a,i)=>{let l=e||"";if(typeof l=="object"&&(l=l[0]),H(b().flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"
      "),g.debug("vertexText"+l);const r={isNode:i,label:Q(l).replace(/fa[blrs]?:fa-[\w-]+/g,n=>``),labelStyle:t.replace("fill:","color:")};return kt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof l=="string"?s=l.split(/\\n|\n|/gi):Array.isArray(l)?s=l:s=[];for(const n of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),a?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}return r}},R=vt,M=async(e,t,a,i)=>{let l;const r=t.useHtmlLabels||H(b().flowchart.htmlLabels);a?l=a:l="node default";const s=e.insert("g").attr("class",l).attr("id",t.domId||t.id),n=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=n.node();let h;t.labelType==="markdown"?h=st(n,q(Q(c),b()),{useHtmlLabels:r,width:t.width||b().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(R(q(Q(c),b()),t.labelStyle,!1,i));let y=h.getBBox();const f=t.padding/2;if(H(b().flowchart.htmlLabels)){const p=h.children[0],d=E(h),k=p.getElementsByTagName("img");if(k){const x=c.replace(/]*>/g,"").trim()==="";await Promise.all([...k].map(u=>new Promise(S=>{function B(){if(u.style.display="flex",u.style.flexDirection="column",x){const C=b().fontSize?b().fontSize:window.getComputedStyle(document.body).fontSize,D=parseInt(C,10)*5+"px";u.style.minWidth=D,u.style.maxWidth=D}else u.style.width="100%";S(u)}setTimeout(()=>{u.complete&&B()}),u.addEventListener("error",B),u.addEventListener("load",B)})))}y=p.getBoundingClientRect(),d.attr("width",y.width),d.attr("height",y.height)}return r?n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):n.attr("transform","translate(0, "+-y.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:s,bbox:y,halfPadding:f,label:n}},m=(e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height};function I(e,t,a,i){return e.insert("polygon",":first-child").attr("points",i.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}function Lt(e,t){return e.intersect(t)}function it(e,t,a,i){var l=e.x,r=e.y,s=l-i.x,n=r-i.y,c=Math.sqrt(t*t*n*n+a*a*s*s),o=Math.abs(t*a*s/c);i.x0}function Tt(e,t,a){var i=e.x,l=e.y,r=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){s=Math.min(s,d.x),n=Math.min(n,d.y)}):(s=Math.min(s,t.x),n=Math.min(n,t.y));for(var c=i-e.width/2-s,o=l-e.height/2-n,h=0;h1&&r.sort(function(d,k){var x=d.x-a.x,u=d.y-a.y,S=Math.sqrt(x*x+u*u),B=k.x-a.x,C=k.y-a.y,X=Math.sqrt(B*B+C*C);return S{var a=e.x,i=e.y,l=t.x-a,r=t.y-i,s=e.width/2,n=e.height/2,c,o;return Math.abs(r)*s>Math.abs(l)*n?(r<0&&(n=-n),c=r===0?0:n*l/r,o=n):(l<0&&(s=-s),c=s,o=l===0?0:s*r/l),{x:a+c,y:i+o}},Et=Bt,w={node:Lt,circle:St,ellipse:it,polygon:Tt,rect:Et},Ct=async(e,t)=>{t.useHtmlLabels||b().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:i,bbox:l,halfPadding:r}=await M(e,t,"node "+t.classes,!0);g.info("Classes = ",t.classes);const s=i.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-r).attr("y",-l.height/2-r).attr("width",l.width+t.padding).attr("height",l.height+t.padding),m(t,s),t.intersect=function(n){return w.rect(t,n)},i},$t=Ct,_t=e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},Rt=(e,t,a)=>{const i=_t(e),l=2,r=t.height+2*a.padding,s=r/l,n=t.width+2*s+a.padding,c=a.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:s,y:0},{x:n/2,y:2*c},{x:n-s,y:0},{x:n,y:0},{x:n,y:-r/3},{x:n+2*c,y:-r/2},{x:n,y:-2*r/3},{x:n,y:-r},{x:n-s,y:-r},{x:n/2,y:-r-2*c},{x:s,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*c,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:s,y:-r},{x:n-s,y:-r},{x:n,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:n,y:-r+s},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:n,y:0},{x:0,y:-s},{x:0,y:-r+s},{x:n,y:-r}]:i.has("right")&&i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:n,y:-s},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:n,y:0},{x:0,y:-s},{x:n,y:-r}]:i.has("left")&&i.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-r}]:i.has("right")?[{x:s,y:-c},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r+c}]:i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c}]:i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:[{x:0,y:0}]},K=e=>e?" "+e:"",_=(e,t)=>`node default${K(e.classes)} ${K(e.class)}`,P=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=l+r,n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];g.info("Question main (Circle)");const c=I(a,s,s,n);return c.attr("style",t.style),m(t,c),t.intersect=function(o){return g.warn("Intersect called"),w.polygon(t,n,o)},a},Ht=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,l=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return a.insert("polygon",":first-child").attr("points",l.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return w.circle(t,14,s)},a},It=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=4,r=i.height+t.padding,s=r/l,n=i.width+2*s+t.padding,c=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}],o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Nt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,void 0,!0),l=2,r=i.height+2*t.padding,s=r/l,n=i.width+2*s+t.padding,c=Rt(t.directions,i,t),o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Ot=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return I(a,l,r,s).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(c){return w.polygon(t,s,c)},a},Wt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Xt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Yt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Dt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},At=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},jt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=l/2,s=r/(2.5+l/50),n=i.height+s+t.padding,c="M 0,"+s+" a "+r+","+s+" 0,0,0 "+l+" 0 a "+r+","+s+" 0,0,0 "+-l+" 0 l 0,"+n+" a "+r+","+s+" 0,0,0 "+l+" 0 l 0,"+-n,o=a.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-l/2+","+-(n/2+s)+")");return m(t,o),t.intersect=function(h){const y=w.rect(t,h),f=y.x-t.x;if(r!=0&&(Math.abs(f)t.height/2-s)){let p=s*s*(1-f*f/(r*r));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),y.y+=p}return y},a},Ut=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes+" "+t.class,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},zt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},Zt=async(e,t)=>{const{shapeSvg:a}=await M(e,t,"label",!0);g.trace("Classes = ",t.class);const i=a.insert("rect",":first-child"),l=0,r=0;if(i.attr("width",l).attr("height",r),a.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(V(i,t.props.borders,l,r),s.delete("borders")),s.forEach(n=>{g.warn(`Unknown node property ${n}`)})}return m(t,i),t.intersect=function(s){return w.rect(t,s)},a};function V(e,t,a,i){const l=[],r=n=>{l.push(n,0)},s=n=>{l.push(0,n)};t.includes("t")?(g.debug("add top border"),r(a)):s(a),t.includes("r")?(g.debug("add right border"),r(i)):s(i),t.includes("b")?(g.debug("add bottom border"),r(a)):s(a),t.includes("l")?(g.debug("add left border"),r(i)):s(i),e.attr("stroke-dasharray",l.join(" "))}const Gt=(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),r=i.insert("line"),s=i.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,g.info("Label text abc79",c,n,typeof n=="object");const o=s.node().appendChild(R(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(b().flowchart.htmlLabels)){const k=o.children[0],x=E(o);h=k.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}g.info("Text 2",n);const y=n.slice(1,n.length);let f=o.getBBox();const p=s.node().appendChild(R(y.join?y.join("
      "):y,t.labelStyle,!0,!0));if(H(b().flowchart.htmlLabels)){const k=p.children[0],x=E(p);h=k.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}const d=t.padding/2;return E(p).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+d+5)+")"),E(o).attr("transform","translate( "+(h.width{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.height+t.padding,r=i.width+l/4+t.padding,s=a.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return m(t,s),t.intersect=function(n){return w.rect(t,n)},a},Qt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t),!0),r=a.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("Circle main"),m(t,r),t.intersect=function(s){return g.info("Circle intersect",t,i.width/2+l,s),w.circle(t,i.width/2+l,s)},a},Vt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t),!0),r=5,s=a.insert("g",":first-child"),n=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l+r).attr("width",i.width+t.padding+r*2).attr("height",i.height+t.padding+r*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("DoubleCircle main"),m(t,n),t.intersect=function(o){return g.info("DoubleCircle intersect",t,i.width/2+l+r,o),w.circle(t,i.width/2+l+r,o)},a},qt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Jt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),m(t,i),t.intersect=function(l){return w.circle(t,7,l)},a},tt=(e,t,a)=>{const i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;a==="LR"&&(l=10,r=70);const s=i.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return m(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return w.rect(t,n)},i},Kt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child"),l=a.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),m(t,l),t.intersect=function(r){return w.circle(t,7,r)},a},Pt=(e,t)=>{const a=t.padding/2,i=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,y=i;const f=s.insert("g").attr("class","label");let p=0;const d=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",x=f.node().appendChild(R(k,t.labelStyle,!0,!0));let u=x.getBBox();if(H(b().flowchart.htmlLabels)){const v=x.children[0],L=E(x);u=v.getBoundingClientRect(),L.attr("width",u.width),L.attr("height",u.height)}t.classData.annotations[0]&&(y+=u.height+i,h+=u.width);let S=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(b().flowchart.htmlLabels?S+="<"+t.classData.type+">":S+="<"+t.classData.type+">");const B=f.node().appendChild(R(S,t.labelStyle,!0,!0));E(B).attr("class","classTitle");let C=B.getBBox();if(H(b().flowchart.htmlLabels)){const v=B.children[0],L=E(B);C=v.getBoundingClientRect(),L.attr("width",C.width),L.attr("height",C.height)}y+=C.height+i,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(//g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const F=N.children[0],A=E(N);$=F.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,X.push(N)}),y+=l;const D=[];if(t.classData.methods.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(//g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const F=N.children[0],A=E(N);$=F.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,D.push(N)}),y+=l,d){let v=(h-u.width)/2;E(x).attr("transform","translate( "+(-1*h/2+v)+", "+-1*y/2+")"),p=u.height+i}let nt=(h-C.width)/2;return E(B).attr("transform","translate( "+(-1*h/2+nt)+", "+(-1*y/2+p)+")"),p+=C.height+i,c.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,X.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p+l/2)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),p+=l,o.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,D.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),n.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-a).attr("y",-(y/2)-a).attr("width",h+t.padding).attr("height",y+t.padding),m(t,n),t.intersect=function(v){return w.rect(t,v)},s},rt={rhombus:P,composite:zt,question:P,rect:Ut,labelRect:Zt,rectWithTitle:Gt,choice:Ht,circle:Qt,doublecircle:Vt,stadium:Ft,hexagon:It,block_arrow:Nt,rect_left_inv_arrow:Ot,lean_right:Wt,lean_left:Xt,trapezoid:Yt,inv_trapezoid:Dt,rect_right_inv_arrow:At,cylinder:jt,start:Jt,end:Kt,note:$t,subroutine:qt,fork:tt,join:tt,class_box:Pt};let Y={};const or=async(e,t,a)=>{let i,l;if(t.link){let r;b().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await rt[t.shape](i,t,a)}else l=await rt[t.shape](e,t,a),i=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),i.attr("data-node","true"),i.attr("data-id",t.id),Y[t.id]=i,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),i},yr=(e,t)=>{Y[t.id]=e},pr=()=>{Y={}},fr=e=>{const t=Y[e.id];g.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},tr=({flowchart:e})=>{var t,a;const i=((t=e==null?void 0:e.subGraphTitleMargin)==null?void 0:t.top)??0,l=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,r=i+l;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function U(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Z(e),t=Z(t);const[a,i]=[e.x,e.y],[l,r]=[t.x,t.y],s=l-a,n=r-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}const Z=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,rr=e=>({x:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaX:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.cos(r)*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaX:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.cos(r)*(s>=0?1:-1)}return Z(t).x+l},y:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaY:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.abs(Math.sin(r))*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaY:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.abs(Math.sin(r))*(s>=0?1:-1)}return Z(t).y+l}}),ar=(e,t,a,i,l)=>{t.arrowTypeStart&&at(e,"start",t.arrowTypeStart,a,i,l),t.arrowTypeEnd&&at(e,"end",t.arrowTypeEnd,a,i,l)},er={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},at=(e,t,a,i,l,r)=>{const s=er[a];if(!s){g.warn(`Unknown arrow type: ${a}`);return}const n=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${l}_${r}-${s}${n})`)};let G={},T={};const xr=()=>{G={},T={}},dr=(e,t)=>{const a=H(b().flowchart.htmlLabels),i=t.labelType==="markdown"?st(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0}):R(t.label,t.labelStyle),l=e.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(i);let s=i.getBBox();if(a){const c=i.children[0],o=E(i);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),G[t.id]=l,t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){const c=R(t.startLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startLeft=o,z(n,t.startLabelLeft)}if(t.startLabelRight){const c=R(t.startLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=o.node().appendChild(c),h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startRight=o,z(n,t.startLabelRight)}if(t.endLabelLeft){const c=R(t.endLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endLeft=o,z(n,t.endLabelLeft)}if(t.endLabelRight){const c=R(t.endLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endRight=o,z(n,t.endLabelRight)}return i};function z(e,t){b().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const gr=(e,t)=>{g.debug("Moving label abc88 ",e.id,e.label,G[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const i=b(),{subGraphTitleTotalMargin:l}=tr(i);if(e.label){const r=G[e.id];let s=e.x,n=e.y;if(a){const c=j.calcLabelPosition(a);g.debug("Moving label "+e.label+" from (",s,",",n,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,n=c.y)}r.attr("transform",`translate(${s}, ${n+l/2})`)}if(e.startLabelLeft){const r=T[e.id].startLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.startLabelRight){const r=T[e.id].startRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelLeft){const r=T[e.id].endLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelRight){const r=T[e.id].endRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}},sr=(e,t)=>{const a=e.x,i=e.y,l=Math.abs(t.x-a),r=Math.abs(t.y-i),s=e.width/2,n=e.height/2;return l>=s||r>=n},ir=(e,t,a)=>{g.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(t)} insidePoint : ${JSON.stringify(a)} node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,l=e.y,r=Math.abs(i-a.x),s=e.width/2;let n=a.xMath.abs(i-t.x)*c){let y=a.y{g.debug("abc88 cutPathAtIntersect",e,t);let a=[],i=e[0],l=!1;return e.forEach(r=>{if(!sr(t,r)&&!l){const s=ir(t,i,r);let n=!1;a.forEach(c=>{n=n||c.x===s.x&&c.y===s.y}),a.some(c=>c.x===s.x&&c.y===s.y)||a.push(s),l=!0}else i=r,l||a.push(r)}),a},ur=function(e,t,a,i,l,r,s){let n=a.points;g.debug("abc88 InsertEdge: edge=",a,"e=",t);let c=!1;const o=r.node(t.v);var h=r.node(t.w);h!=null&&h.intersect&&(o!=null&&o.intersect)&&(n=n.slice(1,a.points.length-1),n.unshift(o.intersect(n[0])),n.push(h.intersect(n[n.length-1]))),a.toCluster&&(g.debug("to cluster abc88",i[a.toCluster]),n=et(a.points,i[a.toCluster].node),c=!0),a.fromCluster&&(g.debug("from cluster abc88",i[a.fromCluster]),n=et(n.reverse(),i[a.fromCluster].node).reverse(),c=!0);const y=n.filter(C=>!Number.isNaN(C.y));let f=lt;a.curve&&(l==="graph"||l==="flowchart")&&(f=a.curve);const{x:p,y:d}=rr(a),k=ct().x(p).y(d).curve(f);let x;switch(a.thickness){case"normal":x="edge-thickness-normal";break;case"thick":x="edge-thickness-thick";break;case"invisible":x="edge-thickness-thick";break;default:x=""}switch(a.pattern){case"solid":x+=" edge-pattern-solid";break;case"dotted":x+=" edge-pattern-dotted";break;case"dashed":x+=" edge-pattern-dashed";break}const u=e.append("path").attr("d",k(y)).attr("id",a.id).attr("class"," "+x+(a.classes?" "+a.classes:"")).attr("style",a.style);let S="";(b().flowchart.arrowMarkerAbsolute||b().state.arrowMarkerAbsolute)&&(S=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,S=S.replace(/\(/g,"\\("),S=S.replace(/\)/g,"\\)")),ar(u,a,S,s,l);let B={};return c&&(B.updatedPath=n),B.originalPath=a.points,B};export{or as a,dr as b,ur as c,gr as d,pr as e,xr as f,tr as g,R as h,hr as i,Et as j,rr as k,M as l,ar as m,fr as p,yr as s,m as u}; diff --git a/deploy/server/notebase/assets/erDiagram-9861fffd-DqfFxAvA.js b/starter/src/main/resources/templates/notebase/assets/erDiagram-9861fffd-BcE67OC0.js similarity index 99% rename from deploy/server/notebase/assets/erDiagram-9861fffd-DqfFxAvA.js rename to starter/src/main/resources/templates/notebase/assets/erDiagram-9861fffd-BcE67OC0.js index 23d5504d07..9391e2b376 100644 --- a/deploy/server/notebase/assets/erDiagram-9861fffd-DqfFxAvA.js +++ b/starter/src/main/resources/templates/notebase/assets/erDiagram-9861fffd-BcE67OC0.js @@ -1,4 +1,4 @@ -import{c as Y,s as _t,g as Et,b as mt,a as gt,A as kt,B as xt,l as K,C as Rt,h as et,y as Ot,i as bt,D as Nt,E as Tt}from"./mermaid.core-BajzCmnv.js";import{G as At}from"./graph-CNSoCPH1.js";import{l as Mt}from"./layout-Cg9I2QIy.js";import{x as wt}from"./index-CLWgAZNI.js";import{l as It}from"./line-CH9gKq5B.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const St=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Dt(t){return typeof t=="string"&&St.test(t)}function vt(t){if(!Dt(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}function Lt(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e>>32-r}function Zt(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const u=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=g,g=m,m=rt(_,30)>>>0,_=h,h=I}e[0]=e[0]+h>>>0,e[1]=e[1]+_>>>0,e[2]=e[2]+m>>>0,e[3]=e[3]+g>>>0,e[4]=e[4]+x>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}const Ft=Pt("v5",80,Zt);var at=function(){var t=function(M,i,n,c){for(n=n||{},c=M.length;c--;n[M[c]]=i);return n},r=[6,8,10,20,22,24,26,27,28],e=[1,10],f=[1,11],l=[1,12],p=[1,13],u=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],x=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],N=[1,34],I=[27,28,46,47],Z=[41,42,43,44,45],F=[17,34],B=[1,54],T=[1,53],A=[17,34,36,38],R={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(i,n,c,d,E,a,H){var s=a.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(a[s-4]),d.addEntity(a[s-2]),d.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:d.addEntity(a[s-3]),d.addAttributes(a[s-3],a[s-1]);break;case 10:d.addEntity(a[s-2]);break;case 11:d.addEntity(a[s]);break;case 12:d.addEntity(a[s-6],a[s-4]),d.addAttributes(a[s-6],a[s-1]);break;case 13:d.addEntity(a[s-5],a[s-3]);break;case 14:d.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:e,22:f,24:l,26:p,27:u,28:o},t(r,[2,7],{1:[2,1]}),t(r,[2,3]),{9:16,11:9,20:e,22:f,24:l,26:p,27:u,28:o},t(r,[2,5]),t(r,[2,6]),t(r,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:g,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(r,[2,18]),t(y,[2,19]),t(y,[2,20]),t(r,[2,4]),{11:29,27:u,28:o},{16:30,17:[1,31],29:32,30:33,34:N},{11:35,27:u,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(r,[2,15]),t(r,[2,16]),t(r,[2,17]),{13:[1,39]},{17:[1,40]},t(r,[2,10]),{16:41,17:[2,21],29:32,30:33,34:N},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:x},t(Z,[2,39]),t(Z,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(r,[2,9]),{17:[2,22]},t(F,[2,23],{32:50,33:51,35:52,37:B,38:T}),t([17,34,37,38],[2,28]),t(r,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(r,[2,8]),t(r,[2,41]),t(r,[2,42]),t(r,[2,43]),t(F,[2,24],{33:56,36:[1,57],38:T}),t(F,[2,25]),t(A,[2,29]),t(F,[2,32]),t(A,[2,31]),{16:58,17:[1,59],29:32,30:33,34:N},t(F,[2,26]),{35:60,37:B},{17:[1,61]},t(r,[2,13]),t(A,[2,30]),t(r,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=n,c}},parse:function(i){var n=this,c=[0],d=[],E=[null],a=[],H=this.table,s="",X=0,nt=0,ft=2,st=1,ut=a.slice.call(arguments,1),b=Object.create(this.lexer),U={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(U.yy[q]=this.yy[q]);b.setInput(i,U.yy),U.yy.lexer=b,U.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var J=b.yylloc;a.push(J);var yt=b.options&&b.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(){var P;return P=d.pop()||b.lex()||st,typeof P!="number"&&(P instanceof Array&&(d=P,P=d.pop()),P=n.symbols_[P]||P),P}for(var w,z,S,$,G={},Q,C,ot,j;;){if(z=c[c.length-1],this.defaultActions[z]?S=this.defaultActions[z]:((w===null||typeof w>"u")&&(w=pt()),S=H[z]&&H[z][w]),typeof S>"u"||!S.length||!S[0]){var tt="";j=[];for(Q in H[z])this.terminals_[Q]&&Q>ft&&j.push("'"+this.terminals_[Q]+"'");b.showPosition?tt="Parse error on line "+(X+1)+`: +import{c as Y,s as _t,g as Et,b as mt,a as gt,A as kt,B as xt,l as K,C as Rt,h as et,y as Ot,i as bt,D as Nt,E as Tt}from"./mermaid.core-DacimPk4.js";import{G as At}from"./graph-Cryfb0BU.js";import{l as Mt}from"./layout-DPudLDYQ.js";import{x as wt}from"./index-bOgutTC1.js";import{l as It}from"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const St=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Dt(t){return typeof t=="string"&&St.test(t)}function vt(t){if(!Dt(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}function Lt(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e>>32-r}function Zt(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const u=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=g,g=m,m=rt(_,30)>>>0,_=h,h=I}e[0]=e[0]+h>>>0,e[1]=e[1]+_>>>0,e[2]=e[2]+m>>>0,e[3]=e[3]+g>>>0,e[4]=e[4]+x>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}const Ft=Pt("v5",80,Zt);var at=function(){var t=function(M,i,n,c){for(n=n||{},c=M.length;c--;n[M[c]]=i);return n},r=[6,8,10,20,22,24,26,27,28],e=[1,10],f=[1,11],l=[1,12],p=[1,13],u=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],x=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],N=[1,34],I=[27,28,46,47],Z=[41,42,43,44,45],F=[17,34],B=[1,54],T=[1,53],A=[17,34,36,38],R={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(i,n,c,d,E,a,H){var s=a.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(a[s-4]),d.addEntity(a[s-2]),d.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:d.addEntity(a[s-3]),d.addAttributes(a[s-3],a[s-1]);break;case 10:d.addEntity(a[s-2]);break;case 11:d.addEntity(a[s]);break;case 12:d.addEntity(a[s-6],a[s-4]),d.addAttributes(a[s-6],a[s-1]);break;case 13:d.addEntity(a[s-5],a[s-3]);break;case 14:d.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:e,22:f,24:l,26:p,27:u,28:o},t(r,[2,7],{1:[2,1]}),t(r,[2,3]),{9:16,11:9,20:e,22:f,24:l,26:p,27:u,28:o},t(r,[2,5]),t(r,[2,6]),t(r,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:g,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(r,[2,18]),t(y,[2,19]),t(y,[2,20]),t(r,[2,4]),{11:29,27:u,28:o},{16:30,17:[1,31],29:32,30:33,34:N},{11:35,27:u,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(r,[2,15]),t(r,[2,16]),t(r,[2,17]),{13:[1,39]},{17:[1,40]},t(r,[2,10]),{16:41,17:[2,21],29:32,30:33,34:N},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:x},t(Z,[2,39]),t(Z,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(r,[2,9]),{17:[2,22]},t(F,[2,23],{32:50,33:51,35:52,37:B,38:T}),t([17,34,37,38],[2,28]),t(r,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(r,[2,8]),t(r,[2,41]),t(r,[2,42]),t(r,[2,43]),t(F,[2,24],{33:56,36:[1,57],38:T}),t(F,[2,25]),t(A,[2,29]),t(F,[2,32]),t(A,[2,31]),{16:58,17:[1,59],29:32,30:33,34:N},t(F,[2,26]),{35:60,37:B},{17:[1,61]},t(r,[2,13]),t(A,[2,30]),t(r,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=n,c}},parse:function(i){var n=this,c=[0],d=[],E=[null],a=[],H=this.table,s="",X=0,nt=0,ft=2,st=1,ut=a.slice.call(arguments,1),b=Object.create(this.lexer),U={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(U.yy[q]=this.yy[q]);b.setInput(i,U.yy),U.yy.lexer=b,U.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var J=b.yylloc;a.push(J);var yt=b.options&&b.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(){var P;return P=d.pop()||b.lex()||st,typeof P!="number"&&(P instanceof Array&&(d=P,P=d.pop()),P=n.symbols_[P]||P),P}for(var w,z,S,$,G={},Q,C,ot,j;;){if(z=c[c.length-1],this.defaultActions[z]?S=this.defaultActions[z]:((w===null||typeof w>"u")&&(w=pt()),S=H[z]&&H[z][w]),typeof S>"u"||!S.length||!S[0]){var tt="";j=[];for(Q in H[z])this.terminals_[Q]&&Q>ft&&j.push("'"+this.terminals_[Q]+"'");b.showPosition?tt="Parse error on line "+(X+1)+`: `+b.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[w]||w)+"'":tt="Parse error on line "+(X+1)+": Unexpected "+(w==st?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(tt,{text:b.match,token:this.terminals_[w]||w,line:b.yylineno,loc:J,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+w);switch(S[0]){case 1:c.push(w),E.push(b.yytext),a.push(b.yylloc),c.push(S[1]),w=null,nt=b.yyleng,s=b.yytext,X=b.yylineno,J=b.yylloc;break;case 2:if(C=this.productions_[S[1]][1],G.$=E[E.length-C],G._$={first_line:a[a.length-(C||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(C||1)].first_column,last_column:a[a.length-1].last_column},yt&&(G._$.range=[a[a.length-(C||1)].range[0],a[a.length-1].range[1]]),$=this.performAction.apply(G,[s,nt,X,U.yy,S[1],E,a].concat(ut)),typeof $<"u")return $;C&&(c=c.slice(0,-1*C*2),E=E.slice(0,-1*C),a=a.slice(0,-1*C)),c.push(this.productions_[S[1]][0]),E.push(G.$),a.push(G._$),ot=H[c[c.length-2]][c[c.length-1]],c.push(ot);break;case 3:return!0}}return!0}},O=function(){var M={EOF:1,parseError:function(n,c){if(this.yy.parser)this.yy.parser.parseError(n,c);else throw new Error(n)},setInput:function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var n=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/flowDb-956e92f1-AKrTXLR1.js b/starter/src/main/resources/templates/notebase/assets/flowDb-956e92f1-_Zo9VT9Z.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/flowDb-956e92f1-AKrTXLR1.js rename to starter/src/main/resources/templates/notebase/assets/flowDb-956e92f1-_Zo9VT9Z.js index f20c5bb0e6..3acb9cb209 100644 --- a/starter/src/main/resources/templates/notebase/assets/flowDb-956e92f1-AKrTXLR1.js +++ b/starter/src/main/resources/templates/notebase/assets/flowDb-956e92f1-_Zo9VT9Z.js @@ -1,4 +1,4 @@ -import{c as et,a4 as me,s as ye,g as ve,a as Ve,b as Le,A as Ie,B as Re,l as J1,y as dt,C as Ne,j as we,h as w1}from"./mermaid.core-BajzCmnv.js";var pt=function(){var e=function(f1,a,o,f){for(o=o||{},f=f1.length;f--;o[f1[f]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],w=[1,16],X=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],S=[1,49],k=[1,48],l1=[1,29],U1=[1,30],G1=[1,31],M1=[1,32],K1=[1,33],x=[1,44],B=[1,46],m=[1,42],y=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],Y1=[1,34],j1=[1,35],z1=[1,36],X1=[1,37],I1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],q=[1,61],Q=[1,60],Z=[1,62],H1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],C1=[1,87],S1=[1,94],_1=[1,90],x1=[1,95],B1=[1,86],W1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],R1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],Ct=[1,145],St=[1,130],_t=[1,132],xt=[1,136],Bt=[1,137],mt=[1,138],yt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],wt=[1,134],Ot=[1,129],Pt=[1,133],Ut=[1,131],nt=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],O=[1,165],P=[1,166],A=[1,170],d=[1,167],E=[1,168],m1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],J=[1,235],$=[1,233],t1=[1,237],e1=[1,231],s1=[1,232],u1=[1,234],i1=[1,236],r1=[1,238],y1=[1,255],Kt=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],at={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,r,C,t,N1){var s=t.length-1;switch(C){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var Y=r.destructLink(t[s],t[s-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var Y=r.destructLink(t[s]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:I1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:q,9:Q,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:q,9:Q,11:Z,21:66},{8:q,9:Q,11:Z,21:67},{8:q,9:Q,11:Z,21:68},{8:q,9:Q,11:Z,21:69},{8:q,9:Q,11:Z,21:70},{8:q,9:Q,10:[1,71],11:Z,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(H1,[2,46],{18:75,10:I1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(W1,[2,47]),e(W1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:I1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(R1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:Ct,42:St,58:_t,73:xt,77:[1,124],78:[1,125],80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(nt,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(H1,[2,45],{42:Gt}),{42:S,45:150,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{42:S,45:155,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:S,45:162,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:171,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:174,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:175,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:176,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:181,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:182,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:183,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(H1,[2,43],{18:184,10:I1}),e(R1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(m1,[2,73]),e(m1,[2,75]),e(m1,[2,76]),e(m1,[2,161]),e(m1,[2,162]),{8:q,9:Q,10:gt,11:Z,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:Ct,42:St,58:_t,73:xt,80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:I1,18:194},{10:[1,195],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(W1,[2,50],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(h1,[2,79]),e(h1,[2,81]),e(h1,[2,82]),e(h1,[2,146]),e(h1,[2,147]),e(h1,[2,148]),e(h1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(H1,[2,44],{42:Gt}),e(R1,[2,70]),e(R1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(R1,[2,72]),e(m1,[2,74]),{30:225,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(nt,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{10:J,58:$,81:t1,89:228,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:239,101:[1,240],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:241,101:[1,242],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{102:[1,243]},{10:J,58:$,81:t1,89:244,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{42:S,45:245,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(h1,[2,80]),e(N,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(W1,[2,48]),e(T,[2,114],{103:y1}),e(Kt,[2,123],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(W,[2,125]),e(W,[2,127]),e(W,[2,128]),e(W,[2,129]),e(W,[2,130]),e(W,[2,131]),e(W,[2,132]),e(W,[2,133]),e(W,[2,134]),e(T,[2,115],{103:y1}),{10:[1,257]},e(T,[2,116],{103:y1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:y1}),e(T,[2,99],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:q,9:Q,11:Z,21:264},e(b,[2,34]),{10:J,58:$,81:t1,102:e1,104:265,105:230,106:s1,107:u1,108:i1,109:r1},e(W,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(N,[2,61]),e(nt,l,{5:270}),e(Kt,[2,124],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:J,58:$,81:t1,89:275,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:276,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:y1}),e(T,[2,118],{103:y1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var f=new Error(a);throw f.hash=o,f}},parse:function(a){var o=this,f=[0],r=[],C=[null],t=[],N1=this.table,s="",Y=0,Yt=0,Se=2,jt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(d1.yy[ot]=this.yy[ot]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var lt=_.yylloc;t.push(lt);var xe=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var a1;return a1=r.pop()||_.lex()||jt,typeof a1!="number"&&(a1 instanceof Array&&(r=a1,a1=r.pop()),a1=o.symbols_[a1]||a1),a1}for(var G,E1,j,ht,v1={},q1,n1,zt,Q1;;){if(E1=f[f.length-1],this.defaultActions[E1]?j=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=Be()),j=N1[E1]&&N1[E1][G]),typeof j>"u"||!j.length||!j[0]){var ft="";Q1=[];for(q1 in N1[E1])this.terminals_[q1]&&q1>Se&&Q1.push("'"+this.terminals_[q1]+"'");_.showPosition?ft="Parse error on line "+(Y+1)+`: +import{c as et,a4 as me,s as ye,g as ve,a as Ve,b as Le,A as Ie,B as Re,l as J1,y as dt,C as Ne,j as we,h as w1}from"./mermaid.core-DacimPk4.js";var pt=function(){var e=function(f1,a,o,f){for(o=o||{},f=f1.length;f--;o[f1[f]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],w=[1,16],X=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],S=[1,49],k=[1,48],l1=[1,29],U1=[1,30],G1=[1,31],M1=[1,32],K1=[1,33],x=[1,44],B=[1,46],m=[1,42],y=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],Y1=[1,34],j1=[1,35],z1=[1,36],X1=[1,37],I1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],q=[1,61],Q=[1,60],Z=[1,62],H1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],C1=[1,87],S1=[1,94],_1=[1,90],x1=[1,95],B1=[1,86],W1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],R1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],Ct=[1,145],St=[1,130],_t=[1,132],xt=[1,136],Bt=[1,137],mt=[1,138],yt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],wt=[1,134],Ot=[1,129],Pt=[1,133],Ut=[1,131],nt=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],O=[1,165],P=[1,166],A=[1,170],d=[1,167],E=[1,168],m1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],J=[1,235],$=[1,233],t1=[1,237],e1=[1,231],s1=[1,232],u1=[1,234],i1=[1,236],r1=[1,238],y1=[1,255],Kt=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],at={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,r,C,t,N1){var s=t.length-1;switch(C){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var Y=r.destructLink(t[s],t[s-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var Y=r.destructLink(t[s]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:I1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:q,9:Q,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:q,9:Q,11:Z,21:66},{8:q,9:Q,11:Z,21:67},{8:q,9:Q,11:Z,21:68},{8:q,9:Q,11:Z,21:69},{8:q,9:Q,11:Z,21:70},{8:q,9:Q,10:[1,71],11:Z,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(H1,[2,46],{18:75,10:I1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(W1,[2,47]),e(W1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:I1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(R1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:Ct,42:St,58:_t,73:xt,77:[1,124],78:[1,125],80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(nt,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(H1,[2,45],{42:Gt}),{42:S,45:150,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{42:S,45:155,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:S,45:162,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:171,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:174,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:175,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:176,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:181,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:182,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:183,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(H1,[2,43],{18:184,10:I1}),e(R1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(m1,[2,73]),e(m1,[2,75]),e(m1,[2,76]),e(m1,[2,161]),e(m1,[2,162]),{8:q,9:Q,10:gt,11:Z,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:Ct,42:St,58:_t,73:xt,80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:I1,18:194},{10:[1,195],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(W1,[2,50],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(h1,[2,79]),e(h1,[2,81]),e(h1,[2,82]),e(h1,[2,146]),e(h1,[2,147]),e(h1,[2,148]),e(h1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(H1,[2,44],{42:Gt}),e(R1,[2,70]),e(R1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(R1,[2,72]),e(m1,[2,74]),{30:225,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(nt,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{10:J,58:$,81:t1,89:228,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:239,101:[1,240],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:241,101:[1,242],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{102:[1,243]},{10:J,58:$,81:t1,89:244,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{42:S,45:245,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(h1,[2,80]),e(N,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(W1,[2,48]),e(T,[2,114],{103:y1}),e(Kt,[2,123],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(W,[2,125]),e(W,[2,127]),e(W,[2,128]),e(W,[2,129]),e(W,[2,130]),e(W,[2,131]),e(W,[2,132]),e(W,[2,133]),e(W,[2,134]),e(T,[2,115],{103:y1}),{10:[1,257]},e(T,[2,116],{103:y1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:y1}),e(T,[2,99],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:q,9:Q,11:Z,21:264},e(b,[2,34]),{10:J,58:$,81:t1,102:e1,104:265,105:230,106:s1,107:u1,108:i1,109:r1},e(W,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(N,[2,61]),e(nt,l,{5:270}),e(Kt,[2,124],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:J,58:$,81:t1,89:275,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:276,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:y1}),e(T,[2,118],{103:y1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var f=new Error(a);throw f.hash=o,f}},parse:function(a){var o=this,f=[0],r=[],C=[null],t=[],N1=this.table,s="",Y=0,Yt=0,Se=2,jt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(d1.yy[ot]=this.yy[ot]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var lt=_.yylloc;t.push(lt);var xe=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var a1;return a1=r.pop()||_.lex()||jt,typeof a1!="number"&&(a1 instanceof Array&&(r=a1,a1=r.pop()),a1=o.symbols_[a1]||a1),a1}for(var G,E1,j,ht,v1={},q1,n1,zt,Q1;;){if(E1=f[f.length-1],this.defaultActions[E1]?j=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=Be()),j=N1[E1]&&N1[E1][G]),typeof j>"u"||!j.length||!j[0]){var ft="";Q1=[];for(q1 in N1[E1])this.terminals_[q1]&&q1>Se&&Q1.push("'"+this.terminals_[q1]+"'");_.showPosition?ft="Parse error on line "+(Y+1)+`: `+_.showPosition()+` Expecting `+Q1.join(", ")+", got '"+(this.terminals_[G]||G)+"'":ft="Parse error on line "+(Y+1)+": Unexpected "+(G==jt?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(ft,{text:_.match,token:this.terminals_[G]||G,line:_.yylineno,loc:lt,expected:Q1})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E1+", token: "+G);switch(j[0]){case 1:f.push(G),C.push(_.yytext),t.push(_.yylloc),f.push(j[1]),G=null,Yt=_.yyleng,s=_.yytext,Y=_.yylineno,lt=_.yylloc;break;case 2:if(n1=this.productions_[j[1]][1],v1.$=C[C.length-n1],v1._$={first_line:t[t.length-(n1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(n1||1)].first_column,last_column:t[t.length-1].last_column},xe&&(v1._$.range=[t[t.length-(n1||1)].range[0],t[t.length-1].range[1]]),ht=this.performAction.apply(v1,[s,Yt,Y,d1.yy,j[1],C,t].concat(_e)),typeof ht<"u")return ht;n1&&(f=f.slice(0,-1*n1*2),C=C.slice(0,-1*n1),t=t.slice(0,-1*n1)),f.push(this.productions_[j[1]][0]),C.push(v1.$),t.push(v1._$),zt=N1[f[f.length-2]][f[f.length-1]],f.push(zt);break;case 3:return!0}}return!0}},Ce=function(){var f1={EOF:1,parseError:function(o,f){if(this.yy.parser)this.yy.parser.parseError(o,f);else throw new Error(o)},setInput:function(a,o){return this.yy=o||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var o=a.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var o=a.length,f=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===r.length?this.yylloc.first_column:0)+r[r.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),o=new Array(a.length+1).join("-");return a+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/flowDiagram-66a62f08-UGVc-n6K.js b/starter/src/main/resources/templates/notebase/assets/flowDiagram-66a62f08-BrH7mvTN.js similarity index 97% rename from deploy/server/notebase/assets/flowDiagram-66a62f08-UGVc-n6K.js rename to starter/src/main/resources/templates/notebase/assets/flowDiagram-66a62f08-BrH7mvTN.js index 8692a6cd03..c84eef6c85 100644 --- a/deploy/server/notebase/assets/flowDiagram-66a62f08-UGVc-n6K.js +++ b/starter/src/main/resources/templates/notebase/assets/flowDiagram-66a62f08-BrH7mvTN.js @@ -1,4 +1,4 @@ -import{p as Lt,f as V}from"./flowDb-956e92f1-AKrTXLR1.js";import{h as S,f as tt,G as _t}from"./graph-CNSoCPH1.js";import{h as x,n as U,o as Y,p as et,c as G,r as rt,j as at,l as R,q as z,t as Et}from"./mermaid.core-BajzCmnv.js";import{u as Tt,r as Nt,p as At,l as Ct,d as M}from"./layout-Cg9I2QIy.js";import{a as N,b as nt,i as st,c as E,e as it,d as ot,f as It,g as Bt,s as Mt}from"./styles-c10674c1-DZh7AwrX.js";import{l as Dt}from"./line-CH9gKq5B.js";import"./index-CLWgAZNI.js";import"./index-3862675e-C5iJKLK2.js";import"./clone-CJLsyeCN.js";import"./edges-e0da2a9e-121Kky2V.js";import"./createText-2e5e7dd3-CXwUql3o.js";import"./channel--_OxL60w.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function Rt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Gt(r,e){return fetch(r,e).then(Rt)}function Pt(r){return(e,t)=>Gt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Ut=Pt("image/svg+xml"),H={normal:Wt,vee:Vt,undirected:zt};function $t(r){H=r}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Yt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Ht(r,e){for(var t=r.append("text"),n=Xt(e.label).split(` +import{p as Lt,f as V}from"./flowDb-956e92f1-_Zo9VT9Z.js";import{h as S,f as tt,G as _t}from"./graph-Cryfb0BU.js";import{h as x,n as U,o as Y,p as et,c as G,r as rt,j as at,l as R,q as z,t as Et}from"./mermaid.core-DacimPk4.js";import{u as Tt,r as Nt,p as At,l as Ct,d as M}from"./layout-DPudLDYQ.js";import{a as N,b as nt,i as st,c as E,e as it,d as ot,f as It,g as Bt,s as Mt}from"./styles-c10674c1-BMcOXXdB.js";import{l as Dt}from"./line-Dno7JaPM.js";import"./index-bOgutTC1.js";import"./index-3862675e-BtvAzWCw.js";import"./clone-CVBlNrV8.js";import"./edges-e0da2a9e---EYFhqg.js";import"./createText-2e5e7dd3-sebYv4r1.js";import"./channel-CFSrZVj_.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function Rt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Gt(r,e){return fetch(r,e).then(Rt)}function Pt(r){return(e,t)=>Gt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Ut=Pt("image/svg+xml"),H={normal:Wt,vee:Vt,undirected:zt};function $t(r){H=r}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Yt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Ht(r,e){for(var t=r.append("text"),n=Xt(e.label).split(` `),a=0;a0}function T(r,e,t){var n=r.x,a=r.y,s=[],i=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;e.forEach(function(p){i=Math.min(i,p.x),o=Math.min(o,p.y)});for(var c=n-r.width/2-i,d=a-r.height/2-o,l=0;l1&&s.sort(function(p,y){var f=p.x-t.x,g=p.y-t.y,k=Math.sqrt(f*f+g*g),I=y.x-t.x,_=y.y-t.y,$=Math.sqrt(I*I+_*_);return k<$?-1:k===$?0:1}),s[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",r),r)}function Z(r,e){var t=r.x,n=r.y,a=e.x-t,s=e.y-n,i=r.width/2,o=r.height/2,c,d;return Math.abs(s)*i>Math.abs(a)*o?(s<0&&(o=-o),c=s===0?0:o*a/s,d=o):(a<0&&(i=-i),c=i,d=a===0?0:i*s/a),{x:t+c,y:n+d}}var K={rect:oe,ellipse:le,circle:ce,diamond:de};function ie(r){K=r}function oe(r,e,t){var n=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(a){return Z(t,a)},n}function le(r,e,t){var n=e.width/2,a=e.height/2,s=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",n).attr("ry",a);return t.intersect=function(i){return ct(t,n,a,i)},s}function ce(r,e,t){var n=Math.max(e.width,e.height)/2,a=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",n);return t.intersect=function(s){return ne(t,n,s)},a}function de(r,e,t){var n=e.width*Math.SQRT2/2,a=e.height*Math.SQRT2/2,s=[{x:0,y:-a},{x:-n,y:0},{x:0,y:a},{x:n,y:0}],i=r.insert("polygon",":first-child").attr("points",s.map(function(o){return o.x+","+o.y}).join(" "));return t.intersect=function(o){return T(t,s,o)},i}function he(){var r=function(e,t){pe(t);var n=D(e,"output"),a=D(n,"clusters"),s=D(n,"edgePaths"),i=F(D(n,"edgeLabels"),t),o=Q(D(n,"nodes"),t,K);Ct(t),ae(o,t),re(i,t),q(s,t,H);var c=X(a,t);ee(c,t),ve(t)};return r.createNodes=function(e){return arguments.length?(te(e),r):Q},r.createClusters=function(e){return arguments.length?(Ft(e),r):X},r.createEdgeLabels=function(e){return arguments.length?(qt(e),r):F},r.createEdgePaths=function(e){return arguments.length?(Qt(e),r):q},r.shapes=function(e){return arguments.length?(ie(e),r):K},r.arrows=function(e){return arguments.length?($t(e),r):H},r}var ue={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},fe={arrowhead:"normal",curve:U};function pe(r){r.nodes().forEach(function(e){var t=r.node(e);!S(t,"label")&&!r.children(e).length&&(t.label=e),S(t,"paddingX")&&M(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),S(t,"paddingY")&&M(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),S(t,"padding")&&M(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),M(t,ue),tt(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(n){t[n]=Number(t[n])}),S(t,"width")&&(t._prevWidth=t.width),S(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);S(t,"label")||(t.label=""),M(t,fe)})}function ve(r){tt(r.nodes(),function(e){var t=r.node(e);S(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,S(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function D(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function dt(r,e,t){const n=e.width,a=e.height,s=(n+a)*.9,i=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}],o=A(r,s,s,i);return t.intersect=function(c){return T(t,i,c)},o}function ht(r,e,t){const a=e.height,s=a/4,i=e.width+2*s,o=[{x:s,y:0},{x:i-s,y:0},{x:i,y:-a/2},{x:i-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],c=A(r,i,a,o);return t.intersect=function(d){return T(t,o,d)},c}function ut(r,e,t){const n=e.width,a=e.height,s=[{x:-a/2,y:0},{x:n,y:0},{x:n,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ft(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function pt(r,e,t){const n=e.width,a=e.height,s=[{x:2*a/6,y:0},{x:n+a/6,y:0},{x:n-2*a/6,y:-a},{x:-a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function vt(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n+2*a/6,y:0},{x:n-a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function gt(r,e,t){const n=e.width,a=e.height,s=[{x:a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:-2*a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function yt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n+a/2,y:0},{x:n,y:-a/2},{x:n+a/2,y:-a},{x:0,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function wt(r,e,t){const n=e.height,a=e.width+n/4,s=r.insert("rect",":first-child").attr("rx",n/2).attr("ry",n/2).attr("x",-a/2).attr("y",-n/2).attr("width",a).attr("height",n);return t.intersect=function(i){return Z(t,i)},s}function mt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n,y:0},{x:n,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function xt(r,e,t){const n=e.width,a=n/2,s=a/(2.5+n/50),i=e.height+s,o="M 0,"+s+" a "+a+","+s+" 0,0,0 "+n+" 0 a "+a+","+s+" 0,0,0 "+-n+" 0 l 0,"+i+" a "+a+","+s+" 0,0,0 "+n+" 0 l 0,"+-i,c=r.attr("label-offset-y",s).insert("path",":first-child").attr("d",o).attr("transform","translate("+-n/2+","+-(i/2+s)+")");return t.intersect=function(d){const l=Z(t,d),v=l.x-t.x;if(a!=0&&(Math.abs(v)t.height/2-s)){let h=s*s*(1-v*v/(a*a));h!=0&&(h=Math.sqrt(h)),h=s-h,d.y-t.y>0&&(h=-h),l.y+=h}return l},c}function ge(r){r.shapes().question=dt,r.shapes().hexagon=ht,r.shapes().stadium=wt,r.shapes().subroutine=mt,r.shapes().cylinder=xt,r.shapes().rect_left_inv_arrow=ut,r.shapes().lean_right=ft,r.shapes().lean_left=pt,r.shapes().trapezoid=vt,r.shapes().inv_trapezoid=gt,r.shapes().rect_right_inv_arrow=yt}function ye(r){r({question:dt}),r({hexagon:ht}),r({stadium:wt}),r({subroutine:mt}),r({cylinder:xt}),r({rect_left_inv_arrow:ut}),r({lean_right:ft}),r({lean_left:pt}),r({trapezoid:vt}),r({inv_trapezoid:gt}),r({rect_right_inv_arrow:yt})}function A(r,e,t,n){return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const we={addToRender:ge,addToRenderV2:ye},bt={},me=function(r){const e=Object.keys(r);for(const t of e)bt[t]=r[t]},kt=async function(r,e,t,n,a,s){const i=n?n.select(`[id="${t}"]`):x(`[id="${t}"]`),o=a||document,c=Object.keys(r);for(const d of c){const l=r[d];let v="default";l.classes.length>0&&(v=l.classes.join(" "));const h=Y(l.styles);let u=l.text!==void 0?l.text:l.id,p;if(et(G().flowchart.htmlLabels)){const g={label:await rt(u.replace(/fa[blrs]?:fa-[\w-]+/g,k=>``),G())};p=nt(i,g).node(),p.parentNode.removeChild(p)}else{const g=o.createElementNS("http://www.w3.org/2000/svg","text");g.setAttribute("style",h.labelStyle.replace("color:","fill:"));const k=u.split(at.lineBreakRegex);for(const I of k){const _=o.createElementNS("http://www.w3.org/2000/svg","tspan");_.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),_.setAttribute("dy","1em"),_.setAttribute("x","1"),_.textContent=I,g.appendChild(_)}p=g}let y=0,f="";switch(l.type){case"round":y=5,f="rect";break;case"square":f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"odd":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"odd_right":f="rect_left_inv_arrow";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"group":f="rect";break;default:f="rect"}R.warn("Adding node",l.id,l.domId),e.setNode(s.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:h.labelStyle,shape:f,label:p,rx:y,ry:y,class:v,style:h.style,id:s.db.lookUpDomId(l.id)})}},St=async function(r,e,t){let n=0,a,s;if(r.defaultStyle!==void 0){const i=Y(r.defaultStyle);a=i.style,s=i.labelStyle}for(const i of r){n++;const o="L-"+i.start+"-"+i.end,c="LS-"+i.start,d="LE-"+i.end,l={};i.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let v="",h="";if(i.style!==void 0){const u=Y(i.style);v=u.style,h=u.labelStyle}else switch(i.stroke){case"normal":v="fill:none",a!==void 0&&(v=a),s!==void 0&&(h=s);break;case"dotted":v="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":v=" stroke-width: 3.5px;fill:none";break}l.style=v,l.labelStyle=h,i.interpolate!==void 0?l.curve=z(i.interpolate,U):r.defaultInterpolate!==void 0?l.curve=z(r.defaultInterpolate,U):l.curve=z(bt.curve,U),i.text===void 0?i.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",et(G().flowchart.htmlLabels)?(l.labelType="html",l.label=`${await rt(i.text.replace(/fa[blrs]?:fa-[\w-]+/g,u=>``),G())}`):(l.labelType="text",l.label=i.text.replace(at.lineBreakRegex,` `),i.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=o,l.class=c+" "+d,l.minlen=i.length||1,e.setEdge(t.db.lookUpDomId(i.start),t.db.lookUpDomId(i.end),l,n)}},xe=function(r,e){return R.info("Extracting classes"),e.db.getClasses()},be=async function(r,e,t,n){R.info("Drawing flowchart");const{securityLevel:a,flowchart:s}=G();let i;a==="sandbox"&&(i=x("#i"+e));const o=a==="sandbox"?x(i.nodes()[0].contentDocument.body):x("body"),c=a==="sandbox"?i.nodes()[0].contentDocument:document;let d=n.db.getDirection();d===void 0&&(d="TD");const l=s.nodeSpacing||50,v=s.rankSpacing||50,h=new _t({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:l,ranksep:v,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let u;const p=n.db.getSubGraphs();for(let w=p.length-1;w>=0;w--)u=p[w],n.db.addVertex(u.id,u.title,"group",void 0,u.classes);const y=n.db.getVertices();R.warn("Get vertices",y);const f=n.db.getEdges();let g=0;for(g=p.length-1;g>=0;g--){u=p[g],Mt("cluster").append("text");for(let w=0;w{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,ke.setConf(r.flowchart),V.clear(),V.setGen("gen-1")}};export{Pe as diagram}; diff --git a/starter/src/main/resources/templates/notebase/assets/flowDiagram-v2-96b9c2cf-2GL1AVRC.js b/starter/src/main/resources/templates/notebase/assets/flowDiagram-v2-96b9c2cf-2GL1AVRC.js deleted file mode 100644 index b14060309b..0000000000 --- a/starter/src/main/resources/templates/notebase/assets/flowDiagram-v2-96b9c2cf-2GL1AVRC.js +++ /dev/null @@ -1 +0,0 @@ -import{p as e,f as o}from"./flowDb-956e92f1-AKrTXLR1.js";import{f as t,g as a}from"./styles-c10674c1-DZh7AwrX.js";import{u as i}from"./mermaid.core-BajzCmnv.js";import"./graph-CNSoCPH1.js";import"./layout-Cg9I2QIy.js";import"./index-CLWgAZNI.js";import"./index-3862675e-C5iJKLK2.js";import"./clone-CJLsyeCN.js";import"./edges-e0da2a9e-121Kky2V.js";import"./createText-2e5e7dd3-CXwUql3o.js";import"./line-CH9gKq5B.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./channel--_OxL60w.js";const n={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{n as diagram}; diff --git a/starter/src/main/resources/templates/notebase/assets/flowDiagram-v2-96b9c2cf-jrOiDbEz.js b/starter/src/main/resources/templates/notebase/assets/flowDiagram-v2-96b9c2cf-jrOiDbEz.js new file mode 100644 index 0000000000..ff8a713394 --- /dev/null +++ b/starter/src/main/resources/templates/notebase/assets/flowDiagram-v2-96b9c2cf-jrOiDbEz.js @@ -0,0 +1 @@ +import{p as e,f as o}from"./flowDb-956e92f1-_Zo9VT9Z.js";import{f as t,g as a}from"./styles-c10674c1-BMcOXXdB.js";import{u as i}from"./mermaid.core-DacimPk4.js";import"./graph-Cryfb0BU.js";import"./layout-DPudLDYQ.js";import"./index-bOgutTC1.js";import"./index-3862675e-BtvAzWCw.js";import"./clone-CVBlNrV8.js";import"./edges-e0da2a9e---EYFhqg.js";import"./createText-2e5e7dd3-sebYv4r1.js";import"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./channel-CFSrZVj_.js";const n={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{n as diagram}; diff --git a/starter/src/main/resources/templates/notebase/assets/flowchart-elk-definition-4a651766-DLndsX9w.js b/starter/src/main/resources/templates/notebase/assets/flowchart-elk-definition-4a651766-Yv2tsz_U.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/flowchart-elk-definition-4a651766-DLndsX9w.js rename to starter/src/main/resources/templates/notebase/assets/flowchart-elk-definition-4a651766-Yv2tsz_U.js index 5d26b7c4af..69b1a9f65a 100644 --- a/starter/src/main/resources/templates/notebase/assets/flowchart-elk-definition-4a651766-DLndsX9w.js +++ b/starter/src/main/resources/templates/notebase/assets/flowchart-elk-definition-4a651766-Yv2tsz_U.js @@ -1,4 +1,4 @@ -import{d as xNe,p as FNe}from"./flowDb-956e92f1-AKrTXLR1.js";import{l as Ba,h as IO,V as xU,t as BNe,o as E0n,q as j0n,n as $U,j as RNe}from"./mermaid.core-BajzCmnv.js";import{i as KNe,a as _Ne,l as HNe,b as qNe,k as UNe,m as GNe}from"./edges-e0da2a9e-121Kky2V.js";import{Q as Nse,g as zNe}from"./index-CLWgAZNI.js";import{l as XNe}from"./line-CH9gKq5B.js";import"./createText-2e5e7dd3-CXwUql3o.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function NU(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Bse={exports:{}};(function(ct,_t){(function(Xt){ct.exports=Xt()})(function(){return function(){function Xt(gt,Sr,Di){function y(Ht,Jt){if(!Sr[Ht]){if(!gt[Ht]){var ze=typeof NU=="function"&&NU;if(!Jt&&ze)return ze(Ht,!0);if(Wt)return Wt(Ht,!0);var Yi=new Error("Cannot find module '"+Ht+"'");throw Yi.code="MODULE_NOT_FOUND",Yi}var Ri=Sr[Ht]={exports:{}};gt[Ht][0].call(Ri.exports,function(En){var hu=gt[Ht][1][En];return y(hu||En)},Ri,Ri.exports,Xt,gt,Sr,Di)}return Sr[Ht].exports}for(var Wt=typeof NU=="function"&&NU,Bu=0;Bu0&&arguments[0]!==void 0?arguments[0]:{},Yi=ze.defaultLayoutOptions,Ri=Yi===void 0?{}:Yi,En=ze.algorithms,hu=En===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:En,Qc=ze.workerFactory,Ru=ze.workerUrl;if(y(this,Ht),this.defaultLayoutOptions=Ri,this.initialized=!1,typeof Ru>"u"&&typeof Qc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Pr=Qc;typeof Ru<"u"&&typeof Qc>"u"&&(Pr=function(N1){return new Worker(N1)});var Cf=Pr(Ru);if(typeof Cf.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Bu(Cf),this.worker.postMessage({cmd:"register",algorithms:hu}).then(function(L1){return Jt.initialized=!0}).catch(console.err)}return Di(Ht,[{key:"layout",value:function(ze){var Yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ri=Yi.layoutOptions,En=Ri===void 0?this.defaultLayoutOptions:Ri,hu=Yi.logging,Qc=hu===void 0?!1:hu,Ru=Yi.measureExecutionTime,Pr=Ru===void 0?!1:Ru;return ze?this.worker.postMessage({cmd:"layout",graph:ze,layoutOptions:En,options:{logging:Qc,measureExecutionTime:Pr}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}]),Ht}();Sr.default=Wt;var Bu=function(){function Ht(Jt){var ze=this;if(y(this,Ht),Jt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Jt,this.worker.onmessage=function(Yi){setTimeout(function(){ze.receive(ze,Yi)},0)}}return Di(Ht,[{key:"postMessage",value:function(ze){var Yi=this.id||0;this.id=Yi+1,ze.id=Yi;var Ri=this;return new Promise(function(En,hu){Ri.resolvers[Yi]=function(Qc,Ru){Qc?(Ri.convertGwtStyleError(Qc),hu(Qc)):En(Ru)},Ri.worker.postMessage(ze)})}},{key:"receive",value:function(ze,Yi){var Ri=Yi.data,En=ze.resolvers[Ri.id];En&&(delete ze.resolvers[Ri.id],Ri.error?En(Ri.error):En(null,Ri.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(ze){if(ze){var Yi=ze.__java$exception;Yi&&(Yi.cause&&Yi.cause.backingJsObject&&(ze.cause=Yi.cause.backingJsObject,this.convertGwtStyleError(ze.cause)),delete ze.__java$exception)}}}]),Ht}()},{}],2:[function(Xt,gt,Sr){(function(Di){(function(){var y;typeof window<"u"?y=window:typeof Di<"u"?y=Di:typeof self<"u"&&(y=self);var Wt;function Bu(){}function Ht(){}function Jt(){}function ze(){}function Yi(){}function Ri(){}function En(){}function hu(){}function Qc(){}function Ru(){}function Pr(){}function Cf(){}function L1(){}function N1(){}function og(){}function V3(){}function $1(){}function ul(){}function C0n(){}function M0n(){}function J2(){}function F(){}function T0n(){}function mE(){}function A0n(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function FU(){}function D0n(){}function L0n(){}function N0n(){}function OO(){}function $0n(){}function x0n(){}function F0n(){}function DO(){}function B0n(){}function R0n(){}function BU(){}function K0n(){}function _0n(){}function yu(){}function ju(){}function Q2(){}function Y2(){}function H0n(){}function q0n(){}function U0n(){}function G0n(){}function RU(){}function Eu(){}function Z2(){}function np(){}function z0n(){}function X0n(){}function LO(){}function V0n(){}function W0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function nbn(){}function ebn(){}function tbn(){}function ibn(){}function rbn(){}function cbn(){}function ubn(){}function obn(){}function sbn(){}function fbn(){}function hbn(){}function lbn(){}function abn(){}function dbn(){}function bbn(){}function wbn(){}function gbn(){}function pbn(){}function mbn(){}function vbn(){}function kbn(){}function ybn(){}function jbn(){}function Ebn(){}function Cbn(){}function Mbn(){}function Tbn(){}function KU(){}function Abn(){}function Sbn(){}function Pbn(){}function Ibn(){}function NO(){}function $O(){}function vE(){}function Obn(){}function Dbn(){}function xO(){}function Lbn(){}function Nbn(){}function $bn(){}function kE(){}function xbn(){}function Fbn(){}function Bbn(){}function Rbn(){}function Kbn(){}function _bn(){}function Hbn(){}function qbn(){}function Ubn(){}function _U(){}function Gbn(){}function zbn(){}function HU(){}function Xbn(){}function Vbn(){}function Wbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function FO(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function bwn(){}function qU(){}function UU(){}function wwn(){}function gwn(){}function pwn(){}function mwn(){}function vwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Cwn(){}function Mwn(){}function Twn(){}function Awn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Dwn(){}function Lwn(){}function Nwn(){}function $wn(){}function xwn(){}function Fwn(){}function Bwn(){}function Rwn(){}function Kwn(){}function _wn(){}function Hwn(){}function qwn(){}function Uwn(){}function Gwn(){}function zwn(){}function Xwn(){}function Vwn(){}function Wwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function mgn(){}function vgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Cgn(){}function Mgn(){}function Tgn(){}function Agn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Dgn(){}function Lgn(){}function Ngn(){}function $gn(){}function xgn(){}function Fgn(){}function Bgn(){}function Rgn(){}function Kgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Vgn(){}function Wgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function GU(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function m2n(){}function v2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function C2n(){}function M2n(){}function T2n(){}function A2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function D2n(){}function L2n(){}function N2n(){}function $2n(){}function x2n(){}function F2n(){}function B2n(){}function R2n(){}function K2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function V2n(){}function W2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function mpn(){}function vpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Cpn(){}function Mpn(){}function zU(){}function Tpn(){}function Apn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Dpn(){}function Lpn(){}function Npn(){}function $pn(){}function XU(){}function xpn(){}function Fpn(){}function Bpn(){}function Rpn(){}function Kpn(){}function _pn(){}function VU(){}function WU(){}function Hpn(){}function JU(){}function QU(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Vpn(){}function Wpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function Zpn(){}function YU(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function m3n(){}function v3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function C3n(){}function M3n(){}function T3n(){}function A3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function D3n(){}function L3n(){}function N3n(){}function $3n(){}function x3n(){}function F3n(){}function B3n(){}function R3n(){}function K3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function V3n(){}function W3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function u4n(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function p4n(){}function m4n(){}function v4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function C4n(){}function M4n(){}function T4n(){}function A4n(){}function S4n(){}function P4n(){}function I4n(){}function O4n(){}function _se(){}function D4n(){}function L4n(){}function N4n(){}function $4n(){}function x4n(){}function F4n(){}function B4n(){}function R4n(){}function K4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function G4n(){}function z4n(){}function X4n(){}function V4n(){}function W4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function rmn(){}function BO(){}function RO(){}function cmn(){}function KO(){}function umn(){}function omn(){}function smn(){}function fmn(){}function hmn(){}function lmn(){}function amn(){}function dmn(){}function bmn(){}function wmn(){}function ZU(){}function gmn(){}function pmn(){}function mmn(){}function Hse(){}function vmn(){}function kmn(){}function ymn(){}function jmn(){}function Emn(){}function Cmn(){}function Mmn(){}function Ra(){}function Tmn(){}function ep(){}function nG(){}function Amn(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function Dmn(){}function Lmn(){}function Nmn(){}function $mn(){}function xmn(){}function Fmn(){}function Bmn(){}function Rmn(){}function Kmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function Gmn(){}function hn(){}function zmn(){}function Xmn(){}function Vmn(){}function Wmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function rvn(){}function _O(){}function cvn(){}function uvn(){}function ovn(){}function yE(){}function svn(){}function HO(){}function jE(){}function fvn(){}function eG(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function wvn(){}function EE(){}function gvn(){}function pvn(){}function CE(){}function mvn(){}function ME(){}function vvn(){}function tG(){}function kvn(){}function qO(){}function iG(){}function yvn(){}function jvn(){}function Evn(){}function Cvn(){}function qse(){}function Mvn(){}function Tvn(){}function Avn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Dvn(){}function Lvn(){}function Nvn(){}function W3(){}function UO(){}function $vn(){}function xvn(){}function Fvn(){}function Bvn(){}function Rvn(){}function Kvn(){}function _vn(){}function Hvn(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Vvn(){}function Wvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function p6n(){}function m6n(){}function v6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function C6n(){}function M6n(){}function T6n(){}function A6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function D6n(){}function L6n(){}function N6n(){}function $6n(){}function x6n(){}function F6n(){}function B6n(){}function R6n(){}function K6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function V6n(){}function W6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function p5n(){}function m5n(){}function v5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function C5n(){}function M5n(){}function T5n(){}function A5n(){}function rG(){}function S5n(){}function P5n(){}function GO(){n6()}function I5n(){u7()}function O5n(){aA()}function D5n(){Q$()}function L5n(){M5()}function N5n(){ann()}function $5n(){qs()}function x5n(){jZ()}function F5n(){zk()}function B5n(){o7()}function R5n(){$7()}function K5n(){aCn()}function _5n(){Hp()}function H5n(){KLn()}function q5n(){yQ()}function U5n(){SOn()}function G5n(){jQ()}function z5n(){pNn()}function X5n(){AOn()}function V5n(){cm()}function W5n(){nxn()}function J5n(){Z$n()}function Q5n(){EDn()}function Y5n(){exn()}function Z5n(){ca()}function n8n(){ZE()}function e8n(){ltn()}function t8n(){cn()}function i8n(){txn()}function r8n(){Pxn()}function c8n(){POn()}function u8n(){nKn()}function o8n(){IOn()}function s8n(){bUn()}function f8n(){qnn()}function h8n(){kl()}function l8n(){wBn()}function a8n(){lc()}function d8n(){ROn()}function b8n(){_p()}function w8n(){Men()}function g8n(){ua()}function p8n(){Ten()}function m8n(){Bf()}function v8n(){Qk()}function k8n(){EF()}function y8n(){Dx()}function cf(){wSn()}function j8n(){YM()}function E8n(){mA()}function cG(){qe()}function C8n(){NT()}function M8n(){YY()}function uG(){D$()}function oG(){KA()}function T8n(){Fen()}function sG(n){Jn(n)}function A8n(n){this.a=n}function TE(n){this.a=n}function S8n(n){this.a=n}function P8n(n){this.a=n}function I8n(n){this.a=n}function O8n(n){this.a=n}function D8n(n){this.a=n}function L8n(n){this.a=n}function fG(n){this.a=n}function hG(n){this.a=n}function N8n(n){this.a=n}function $8n(n){this.a=n}function zO(n){this.a=n}function x8n(n){this.a=n}function F8n(n){this.a=n}function XO(n){this.a=n}function VO(n){this.a=n}function B8n(n){this.a=n}function WO(n){this.a=n}function R8n(n){this.a=n}function K8n(n){this.a=n}function _8n(n){this.a=n}function lG(n){this.b=n}function H8n(n){this.c=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function G8n(n){this.a=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function V8n(n){this.a=n}function W8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function e9n(n){this.a=n}function aG(n){this.a=n}function dG(n){this.a=n}function AE(n){this.a=n}function z9(n){this.a=n}function Ka(){this.a=[]}function t9n(n,e){n.a=e}function Use(n,e){n.a=e}function Gse(n,e){n.b=e}function zse(n,e){n.b=e}function Xse(n,e){n.b=e}function bG(n,e){n.j=e}function Vse(n,e){n.g=e}function Wse(n,e){n.i=e}function Jse(n,e){n.c=e}function Qse(n,e){n.c=e}function Yse(n,e){n.d=e}function Zse(n,e){n.d=e}function _a(n,e){n.k=e}function nfe(n,e){n.c=e}function wG(n,e){n.c=e}function gG(n,e){n.a=e}function efe(n,e){n.a=e}function tfe(n,e){n.f=e}function ife(n,e){n.a=e}function rfe(n,e){n.b=e}function JO(n,e){n.d=e}function SE(n,e){n.i=e}function pG(n,e){n.o=e}function cfe(n,e){n.r=e}function ufe(n,e){n.a=e}function ofe(n,e){n.b=e}function i9n(n,e){n.e=e}function sfe(n,e){n.f=e}function mG(n,e){n.g=e}function ffe(n,e){n.e=e}function hfe(n,e){n.f=e}function lfe(n,e){n.f=e}function QO(n,e){n.a=e}function YO(n,e){n.b=e}function afe(n,e){n.n=e}function dfe(n,e){n.a=e}function bfe(n,e){n.c=e}function wfe(n,e){n.c=e}function gfe(n,e){n.c=e}function pfe(n,e){n.a=e}function mfe(n,e){n.a=e}function vfe(n,e){n.d=e}function kfe(n,e){n.d=e}function yfe(n,e){n.e=e}function jfe(n,e){n.e=e}function Efe(n,e){n.g=e}function Cfe(n,e){n.f=e}function Mfe(n,e){n.j=e}function Tfe(n,e){n.a=e}function Afe(n,e){n.a=e}function Sfe(n,e){n.b=e}function r9n(n){n.b=n.a}function c9n(n){n.c=n.d.d}function vG(n){this.a=n}function kG(n){this.a=n}function yG(n){this.a=n}function Ha(n){this.a=n}function qa(n){this.a=n}function X9(n){this.a=n}function u9n(n){this.a=n}function jG(n){this.a=n}function V9(n){this.a=n}function PE(n){this.a=n}function ol(n){this.a=n}function Sb(n){this.a=n}function o9n(n){this.a=n}function s9n(n){this.a=n}function ZO(n){this.b=n}function J3(n){this.b=n}function Q3(n){this.b=n}function nD(n){this.a=n}function f9n(n){this.a=n}function eD(n){this.c=n}function C(n){this.c=n}function h9n(n){this.c=n}function Xv(n){this.d=n}function EG(n){this.a=n}function Te(n){this.a=n}function l9n(n){this.a=n}function CG(n){this.a=n}function MG(n){this.a=n}function TG(n){this.a=n}function AG(n){this.a=n}function SG(n){this.a=n}function PG(n){this.a=n}function Y3(n){this.a=n}function a9n(n){this.a=n}function d9n(n){this.a=n}function Z3(n){this.a=n}function b9n(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function v9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function C9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function A9n(n){this.a=n}function S9n(n){this.a=n}function Vv(n){this.a=n}function P9n(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function D9n(n){this.a=n}function IE(n){this.a=n}function L9n(n){this.a=n}function N9n(n){this.a=n}function n4(n){this.a=n}function IG(n){this.a=n}function $9n(n){this.a=n}function x9n(n){this.a=n}function F9n(n){this.a=n}function B9n(n){this.a=n}function R9n(n){this.a=n}function K9n(n){this.a=n}function OG(n){this.a=n}function DG(n){this.a=n}function LG(n){this.a=n}function Wv(n){this.a=n}function OE(n){this.e=n}function e4(n){this.a=n}function _9n(n){this.a=n}function tp(n){this.a=n}function NG(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function U9n(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function V9n(n){this.a=n}function W9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function Y9n(n){this.a=n}function $G(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function v7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function C7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function A7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function D7n(n){this.a=n}function L7n(n){this.a=n}function N7n(n){this.a=n}function $7n(n){this.a=n}function x7n(n){this.a=n}function F7n(n){this.c=n}function B7n(n){this.b=n}function R7n(n){this.a=n}function K7n(n){this.a=n}function _7n(n){this.a=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function V7n(n){this.a=n}function W7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function lkn(n){this.a=n}function sl(n){this.a=n}function sg(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function vkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Ckn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Akn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Dkn(n){this.a=n}function Lkn(n){this.a=n}function Nkn(n){this.a=n}function $kn(n){this.a=n}function xkn(n){this.a=n}function Fkn(n){this.a=n}function DE(n){this.a=n}function Bkn(n){this.f=n}function Rkn(n){this.a=n}function Kkn(n){this.a=n}function _kn(n){this.a=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Vkn(n){this.a=n}function Wkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function ayn(n){this.a=n}function tD(n){this.a=n}function xG(n){this.a=n}function lt(n){this.b=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function gyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function vyn(n){this.a=n}function kyn(n){this.b=n}function yyn(n){this.a=n}function W9(n){this.a=n}function jyn(n){this.a=n}function Eyn(n){this.a=n}function FG(n){this.c=n}function LE(n){this.e=n}function NE(n){this.a=n}function $E(n){this.a=n}function iD(n){this.a=n}function Cyn(n){this.d=n}function Myn(n){this.a=n}function BG(n){this.a=n}function RG(n){this.a=n}function Wd(n){this.e=n}function Pfe(){this.a=0}function de(){Hu(this)}function Z(){pL(this)}function rD(){sIn(this)}function Tyn(){}function Jd(){this.c=Gdn}function Ayn(n,e){n.b+=e}function Ife(n,e){e.Wb(n)}function Ofe(n){return n.a}function Dfe(n){return n.a}function Lfe(n){return n.a}function Nfe(n){return n.a}function $fe(n){return n.a}function M(n){return n.e}function xfe(){return null}function Ffe(){return null}function Bfe(){Cz(),pLe()}function Rfe(n){n.b.Of(n.e)}function Syn(n){n.b=new CD}function Jv(n,e){n.b=e-n.b}function Qv(n,e){n.a=e-n.a}function Bn(n,e){n.push(e)}function Pyn(n,e){n.sort(e)}function Iyn(n,e){e.jd(n.a)}function Kfe(n,e){gi(e,n)}function _fe(n,e,t){n.Yd(t,e)}function J9(n,e){n.e=e,e.b=n}function KG(n){uh(),this.a=n}function Oyn(n){uh(),this.a=n}function Dyn(n){uh(),this.a=n}function cD(n){m0(),this.a=n}function Lyn(n){O4(),VK.le(n)}function _G(){_G=F,new de}function Ua(){YTn.call(this)}function HG(){YTn.call(this)}function qG(){Ua.call(this)}function uD(){Ua.call(this)}function Nyn(){Ua.call(this)}function Q9(){Ua.call(this)}function Cu(){Ua.call(this)}function ip(){Ua.call(this)}function Pe(){Ua.call(this)}function Bo(){Ua.call(this)}function $yn(){Ua.call(this)}function nc(){Ua.call(this)}function xyn(){Ua.call(this)}function Fyn(){this.a=this}function xE(){this.Bb|=256}function Byn(){this.b=new GMn}function Pb(n,e){n.length=e}function FE(n,e){nn(n.a,e)}function Hfe(n,e){bnn(n.c,e)}function qfe(n,e){fi(n.b,e)}function Ufe(n,e){uA(n.a,e)}function Gfe(n,e){cx(n.a,e)}function t4(n,e){it(n.e,e)}function rp(n){jA(n.c,n.b)}function zfe(n,e){n.kc().Nb(e)}function UG(n){this.a=B5e(n)}function ni(){this.a=new de}function Ryn(){this.a=new de}function GG(){this.a=new rCn}function BE(){this.a=new Z}function oD(){this.a=new Z}function zG(){this.a=new Z}function hs(){this.a=new cbn}function Ga(){this.a=new NLn}function XG(){this.a=new _U}function VG(){this.a=new TOn}function WG(){this.a=new BAn}function Kyn(){this.a=new Z}function _yn(){this.a=new Z}function Hyn(){this.a=new Z}function JG(){this.a=new Z}function qyn(){this.d=new Z}function Uyn(){this.a=new zOn}function Gyn(){this.a=new ni}function zyn(){this.a=new de}function Xyn(){this.b=new de}function Vyn(){this.b=new Z}function QG(){this.e=new Z}function Wyn(){this.a=new Z5n}function Jyn(){this.d=new Z}function Qyn(){QIn.call(this)}function Yyn(){QIn.call(this)}function Zyn(){Z.call(this)}function YG(){qG.call(this)}function ZG(){BE.call(this)}function njn(){qC.call(this)}function ejn(){JG.call(this)}function Yv(){Tyn.call(this)}function sD(){Yv.call(this)}function cp(){Tyn.call(this)}function nz(){cp.call(this)}function tjn(){rz.call(this)}function ijn(){rz.call(this)}function rjn(){rz.call(this)}function cjn(){cz.call(this)}function Zv(){svn.call(this)}function ez(){svn.call(this)}function Mu(){Ct.call(this)}function ujn(){yjn.call(this)}function ojn(){yjn.call(this)}function sjn(){de.call(this)}function fjn(){de.call(this)}function hjn(){de.call(this)}function fD(){cxn.call(this)}function ljn(){ni.call(this)}function ajn(){xE.call(this)}function hD(){BX.call(this)}function tz(){de.call(this)}function lD(){BX.call(this)}function aD(){de.call(this)}function djn(){de.call(this)}function iz(){ME.call(this)}function bjn(){iz.call(this)}function wjn(){ME.call(this)}function gjn(){rG.call(this)}function rz(){this.a=new ni}function pjn(){this.a=new de}function mjn(){this.a=new Z}function cz(){this.a=new de}function up(){this.a=new Ct}function vjn(){this.j=new Z}function kjn(){this.a=new mEn}function yjn(){this.a=new mvn}function uz(){this.a=new Z4n}function n6(){n6=F,KK=new Ht}function dD(){dD=F,_K=new Ejn}function bD(){bD=F,HK=new jjn}function jjn(){XO.call(this,"")}function Ejn(){XO.call(this,"")}function Cjn(n){S$n.call(this,n)}function Mjn(n){S$n.call(this,n)}function oz(n){fG.call(this,n)}function sz(n){XEn.call(this,n)}function Xfe(n){XEn.call(this,n)}function Vfe(n){sz.call(this,n)}function Wfe(n){sz.call(this,n)}function Jfe(n){sz.call(this,n)}function Tjn(n){zN.call(this,n)}function Ajn(n){zN.call(this,n)}function Sjn(n){uSn.call(this,n)}function Pjn(n){Oz.call(this,n)}function e6(n){WE.call(this,n)}function fz(n){WE.call(this,n)}function Ijn(n){WE.call(this,n)}function hz(n){mje.call(this,n)}function lz(n){hz.call(this,n)}function ec(n){APn.call(this,n)}function Ojn(n){ec.call(this,n)}function op(){z9.call(this,{})}function Djn(){Djn=F,dQn=new M0n}function RE(){RE=F,GK=new STn}function Ljn(){Ljn=F,oun=new Bu}function az(){az=F,sun=new N1}function KE(){KE=F,P8=new $1}function wD(n){b4(),this.a=n}function gD(n){RQ(),this.a=n}function Qd(n){nN(),this.f=n}function pD(n){nN(),this.f=n}function Njn(n){bSn(),this.a=n}function $jn(n){n.b=null,n.c=0}function Qfe(n,e){n.e=e,bqn(n,e)}function Yfe(n,e){n.a=e,cEe(n)}function mD(n,e,t){n.a[e.g]=t}function Zfe(n,e,t){kke(t,n,e)}function nhe(n,e){Wae(e.i,n.n)}function xjn(n,e){v6e(n).Cd(e)}function ehe(n,e){n.a.ec().Mc(e)}function Fjn(n,e){return n.g-e.g}function the(n,e){return n*n/e}function on(n){return Jn(n),n}function $(n){return Jn(n),n}function Y9(n){return Jn(n),n}function ihe(n){return new AE(n)}function rhe(n){return new qb(n)}function dz(n){return Jn(n),n}function che(n){return Jn(n),n}function _E(n){ec.call(this,n)}function Ir(n){ec.call(this,n)}function Bjn(n){ec.call(this,n)}function vD(n){APn.call(this,n)}function i4(n){ec.call(this,n)}function Gn(n){ec.call(this,n)}function Or(n){ec.call(this,n)}function Rjn(n){ec.call(this,n)}function sp(n){ec.call(this,n)}function Kl(n){ec.call(this,n)}function _l(n){ec.call(this,n)}function fp(n){ec.call(this,n)}function nh(n){ec.call(this,n)}function kD(n){ec.call(this,n)}function Le(n){ec.call(this,n)}function Ku(n){Jn(n),this.a=n}function bz(n){return ld(n),n}function t6(n){TW(n,n.length)}function i6(n){return n.b==n.c}function Ib(n){return!!n&&n.b}function uhe(n){return!!n&&n.k}function ohe(n){return!!n&&n.j}function she(n,e,t){n.c.Ef(e,t)}function Kjn(n,e){n.be(e),e.ae(n)}function hp(n){uh(),this.a=Se(n)}function yD(){this.a=Oe(Se(ur))}function _jn(){throw M(new Pe)}function fhe(){throw M(new Pe)}function wz(){throw M(new Pe)}function Hjn(){throw M(new Pe)}function hhe(){throw M(new Pe)}function lhe(){throw M(new Pe)}function HE(){HE=F,O4()}function Hl(){X9.call(this,"")}function r6(){X9.call(this,"")}function x1(){X9.call(this,"")}function lp(){X9.call(this,"")}function gz(n){Ir.call(this,n)}function pz(n){Ir.call(this,n)}function eh(n){Gn.call(this,n)}function r4(n){Q3.call(this,n)}function qjn(n){r4.call(this,n)}function jD(n){BC.call(this,n)}function ED(n){JX.call(this,n,0)}function CD(){sJ.call(this,12,3)}function T(n,e){return kOn(n,e)}function qE(n,e){return o$(n,e)}function ahe(n,e){return n.a-e.a}function dhe(n,e){return n.a-e.a}function bhe(n,e){return n.a-e.a}function whe(n,e){return e in n.a}function Ujn(n){return n.a?n.b:0}function ghe(n){return n.a?n.b:0}function phe(n,e,t){e.Cd(n.a[t])}function mhe(n,e,t){e.Pe(n.a[t])}function vhe(n,e){n.b=new rr(e)}function khe(n,e){return n.b=e,n}function Gjn(n,e){return n.c=e,n}function zjn(n,e){return n.f=e,n}function yhe(n,e){return n.g=e,n}function mz(n,e){return n.a=e,n}function vz(n,e){return n.f=e,n}function jhe(n,e){return n.k=e,n}function kz(n,e){return n.a=e,n}function Ehe(n,e){return n.e=e,n}function yz(n,e){return n.e=e,n}function Che(n,e){return n.f=e,n}function Mhe(n,e){n.b=!0,n.d=e}function The(n,e){return n.b-e.b}function Ahe(n,e){return n.g-e.g}function She(n,e){return n?0:e-1}function Xjn(n,e){return n?0:e-1}function Phe(n,e){return n?e-1:0}function Ihe(n,e){return n.s-e.s}function Ohe(n,e){return e.rg(n)}function Yd(n,e){return n.b=e,n}function UE(n,e){return n.a=e,n}function Zd(n,e){return n.c=e,n}function n0(n,e){return n.d=e,n}function e0(n,e){return n.e=e,n}function jz(n,e){return n.f=e,n}function c6(n,e){return n.a=e,n}function c4(n,e){return n.b=e,n}function u4(n,e){return n.c=e,n}function an(n,e){return n.c=e,n}function Sn(n,e){return n.b=e,n}function dn(n,e){return n.d=e,n}function bn(n,e){return n.e=e,n}function Dhe(n,e){return n.f=e,n}function wn(n,e){return n.g=e,n}function gn(n,e){return n.a=e,n}function pn(n,e){return n.i=e,n}function mn(n,e){return n.j=e,n}function Lhe(n,e){ca(),ic(e,n)}function Nhe(n,e,t){Jbe(n.a,e,t)}function GE(n){$L.call(this,n)}function Vjn(n){Z5e.call(this,n)}function Wjn(n){SIn.call(this,n)}function Ez(n){SIn.call(this,n)}function F1(n){S0.call(this,n)}function Jjn(n){CN.call(this,n)}function Qjn(n){CN.call(this,n)}function Yjn(){DX.call(this,"")}function Li(){this.a=0,this.b=0}function Zjn(){this.b=0,this.a=0}function nEn(n,e){n.b=0,Zb(n,e)}function eEn(n,e){return n.k=e,n}function $he(n,e){return n.j=e,n}function xhe(n,e){n.c=e,n.b=!0}function tEn(){tEn=F,TQn=Xke()}function B1(){B1=F,voe=rke()}function iEn(){iEn=F,Ti=gye()}function Cz(){Cz=F,Oa=z4()}function o4(){o4=F,Udn=cke()}function rEn(){rEn=F,ise=uke()}function Mz(){Mz=F,yc=tEe()}function uf(n){return n.e&&n.e()}function cEn(n){return n.l|n.m<<22}function uEn(n,e){return n.c._b(e)}function oEn(n,e){return rBn(n.b,e)}function MD(n){return n?n.d:null}function Fhe(n){return n?n.g:null}function Bhe(n){return n?n.i:null}function za(n){return ll(n),n.o}function fg(n,e){return n.a+=e,n}function TD(n,e){return n.a+=e,n}function ql(n,e){return n.a+=e,n}function t0(n,e){return n.a+=e,n}function Tz(n,e){for(;n.Bd(e););}function zE(n){this.a=new ap(n)}function sEn(){throw M(new Pe)}function fEn(){throw M(new Pe)}function hEn(){throw M(new Pe)}function lEn(){throw M(new Pe)}function aEn(){throw M(new Pe)}function dEn(){throw M(new Pe)}function Ul(n){this.a=new iN(n)}function bEn(){this.a=new K5(Rln)}function wEn(){this.b=new K5(rln)}function gEn(){this.a=new K5(f1n)}function pEn(){this.b=new K5(Fq)}function mEn(){this.b=new K5(Fq)}function XE(n){this.a=0,this.b=n}function Az(n){zGn(),ILe(this,n)}function s4(n){return z1(n),n.a}function Z9(n){return n.b!=n.d.c}function Sz(n,e){return n.d[e.p]}function vEn(n,e){return XTe(n,e)}function Pz(n,e,t){n.splice(e,t)}function hg(n,e){for(;n.Re(e););}function kEn(n){n.c?Dqn(n):Lqn(n)}function yEn(){throw M(new Pe)}function jEn(){throw M(new Pe)}function EEn(){throw M(new Pe)}function CEn(){throw M(new Pe)}function MEn(){throw M(new Pe)}function TEn(){throw M(new Pe)}function AEn(){throw M(new Pe)}function SEn(){throw M(new Pe)}function PEn(){throw M(new Pe)}function IEn(){throw M(new Pe)}function Rhe(){throw M(new nc)}function Khe(){throw M(new nc)}function n7(n){this.a=new OEn(n)}function OEn(n){Ume(this,n,jje())}function e7(n){return!n||oIn(n)}function t7(n){return Zf[n]!=-1}function _he(){cP!=0&&(cP=0),uP=-1}function DEn(){RK==null&&(RK=[])}function i7(n,e){Cg.call(this,n,e)}function f4(n,e){i7.call(this,n,e)}function LEn(n,e){this.a=n,this.b=e}function NEn(n,e){this.a=n,this.b=e}function $En(n,e){this.a=n,this.b=e}function xEn(n,e){this.a=n,this.b=e}function FEn(n,e){this.a=n,this.b=e}function BEn(n,e){this.a=n,this.b=e}function REn(n,e){this.a=n,this.b=e}function h4(n,e){this.e=n,this.d=e}function Iz(n,e){this.b=n,this.c=e}function KEn(n,e){this.b=n,this.a=e}function _En(n,e){this.b=n,this.a=e}function HEn(n,e){this.b=n,this.a=e}function qEn(n,e){this.b=n,this.a=e}function UEn(n,e){this.a=n,this.b=e}function AD(n,e){this.a=n,this.b=e}function GEn(n,e){this.a=n,this.f=e}function i0(n,e){this.g=n,this.i=e}function je(n,e){this.f=n,this.g=e}function zEn(n,e){this.b=n,this.c=e}function XEn(n){KX(n.dc()),this.c=n}function Hhe(n,e){this.a=n,this.b=e}function VEn(n,e){this.a=n,this.b=e}function WEn(n){this.a=u(Se(n),15)}function Oz(n){this.a=u(Se(n),15)}function JEn(n){this.a=u(Se(n),85)}function VE(n){this.b=u(Se(n),85)}function WE(n){this.b=u(Se(n),51)}function JE(){this.q=new y.Date}function SD(n,e){this.a=n,this.b=e}function QEn(n,e){return Zc(n.b,e)}function r7(n,e){return n.b.Hc(e)}function YEn(n,e){return n.b.Ic(e)}function ZEn(n,e){return n.b.Qc(e)}function nCn(n,e){return n.b.Hc(e)}function eCn(n,e){return n.c.uc(e)}function tCn(n,e){return rt(n.c,e)}function of(n,e){return n.a._b(e)}function iCn(n,e){return n>e&&e0}function ND(n,e){return Ec(n,e)<0}function vCn(n,e){return JL(n.a,e)}function ole(n,e){yOn.call(this,n,e)}function Bz(n){wN(),uSn.call(this,n)}function Rz(n,e){bPn(n,n.length,e)}function s7(n,e){HPn(n,n.length,e)}function d6(n,e){return n.a.get(e)}function kCn(n,e){return Zc(n.e,e)}function Kz(n){return Jn(n),!1}function _z(n){this.a=u(Se(n),229)}function cC(n){In.call(this,n,21)}function uC(n,e){je.call(this,n,e)}function $D(n,e){je.call(this,n,e)}function yCn(n,e){this.b=n,this.a=e}function oC(n,e){this.d=n,this.e=e}function jCn(n,e){this.a=n,this.b=e}function ECn(n,e){this.a=n,this.b=e}function CCn(n,e){this.a=n,this.b=e}function MCn(n,e){this.a=n,this.b=e}function bp(n,e){this.a=n,this.b=e}function TCn(n,e){this.b=n,this.a=e}function Hz(n,e){this.b=n,this.a=e}function qz(n,e){je.call(this,n,e)}function Uz(n,e){je.call(this,n,e)}function lg(n,e){je.call(this,n,e)}function xD(n,e){je.call(this,n,e)}function FD(n,e){je.call(this,n,e)}function BD(n,e){je.call(this,n,e)}function sC(n,e){je.call(this,n,e)}function Gz(n,e){this.b=n,this.a=e}function fC(n,e){je.call(this,n,e)}function zz(n,e){this.b=n,this.a=e}function hC(n,e){je.call(this,n,e)}function ACn(n,e){this.b=n,this.a=e}function Xz(n,e){je.call(this,n,e)}function RD(n,e){je.call(this,n,e)}function f7(n,e){je.call(this,n,e)}function b6(n,e,t){n.splice(e,0,t)}function sle(n,e,t){n.Mb(t)&&e.Cd(t)}function fle(n,e,t){e.Pe(n.a.Ye(t))}function hle(n,e,t){e.Dd(n.a.Ze(t))}function lle(n,e,t){e.Cd(n.a.Kb(t))}function ale(n,e){return Au(n.c,e)}function dle(n,e){return Au(n.e,e)}function lC(n,e){je.call(this,n,e)}function aC(n,e){je.call(this,n,e)}function w6(n,e){je.call(this,n,e)}function Vz(n,e){je.call(this,n,e)}function ei(n,e){je.call(this,n,e)}function dC(n,e){je.call(this,n,e)}function SCn(n,e){this.a=n,this.b=e}function PCn(n,e){this.a=n,this.b=e}function ICn(n,e){this.a=n,this.b=e}function OCn(n,e){this.a=n,this.b=e}function DCn(n,e){this.a=n,this.b=e}function LCn(n,e){this.a=n,this.b=e}function NCn(n,e){this.b=n,this.a=e}function $Cn(n,e){this.b=n,this.a=e}function Wz(n,e){this.b=n,this.a=e}function d4(n,e){this.c=n,this.d=e}function xCn(n,e){this.e=n,this.d=e}function FCn(n,e){this.a=n,this.b=e}function BCn(n,e){this.a=n,this.b=e}function RCn(n,e){this.a=n,this.b=e}function KCn(n,e){this.b=n,this.a=e}function _Cn(n,e){this.b=e,this.c=n}function bC(n,e){je.call(this,n,e)}function h7(n,e){je.call(this,n,e)}function KD(n,e){je.call(this,n,e)}function Jz(n,e){je.call(this,n,e)}function g6(n,e){je.call(this,n,e)}function _D(n,e){je.call(this,n,e)}function HD(n,e){je.call(this,n,e)}function l7(n,e){je.call(this,n,e)}function Qz(n,e){je.call(this,n,e)}function qD(n,e){je.call(this,n,e)}function p6(n,e){je.call(this,n,e)}function Yz(n,e){je.call(this,n,e)}function m6(n,e){je.call(this,n,e)}function v6(n,e){je.call(this,n,e)}function Db(n,e){je.call(this,n,e)}function UD(n,e){je.call(this,n,e)}function GD(n,e){je.call(this,n,e)}function Zz(n,e){je.call(this,n,e)}function a7(n,e){je.call(this,n,e)}function ag(n,e){je.call(this,n,e)}function zD(n,e){je.call(this,n,e)}function wC(n,e){je.call(this,n,e)}function d7(n,e){je.call(this,n,e)}function Lb(n,e){je.call(this,n,e)}function gC(n,e){je.call(this,n,e)}function nX(n,e){je.call(this,n,e)}function XD(n,e){je.call(this,n,e)}function VD(n,e){je.call(this,n,e)}function WD(n,e){je.call(this,n,e)}function JD(n,e){je.call(this,n,e)}function QD(n,e){je.call(this,n,e)}function YD(n,e){je.call(this,n,e)}function ZD(n,e){je.call(this,n,e)}function HCn(n,e){this.b=n,this.a=e}function eX(n,e){je.call(this,n,e)}function qCn(n,e){this.a=n,this.b=e}function UCn(n,e){this.a=n,this.b=e}function GCn(n,e){this.a=n,this.b=e}function tX(n,e){je.call(this,n,e)}function iX(n,e){je.call(this,n,e)}function zCn(n,e){this.a=n,this.b=e}function ble(n,e){return k4(),e!=n}function b7(n){return oe(n.a),n.b}function nL(n){return yCe(n,n.c),n}function XCn(){return tEn(),new TQn}function VCn(){VC(),this.a=new kV}function WCn(){OA(),this.a=new ni}function JCn(){NN(),this.b=new ni}function QCn(n,e){this.b=n,this.d=e}function YCn(n,e){this.a=n,this.b=e}function ZCn(n,e){this.a=n,this.b=e}function nMn(n,e){this.a=n,this.b=e}function eMn(n,e){this.b=n,this.a=e}function rX(n,e){je.call(this,n,e)}function cX(n,e){je.call(this,n,e)}function pC(n,e){je.call(this,n,e)}function u0(n,e){je.call(this,n,e)}function eL(n,e){je.call(this,n,e)}function mC(n,e){je.call(this,n,e)}function uX(n,e){je.call(this,n,e)}function oX(n,e){je.call(this,n,e)}function w7(n,e){je.call(this,n,e)}function sX(n,e){je.call(this,n,e)}function tL(n,e){je.call(this,n,e)}function vC(n,e){je.call(this,n,e)}function iL(n,e){je.call(this,n,e)}function rL(n,e){je.call(this,n,e)}function cL(n,e){je.call(this,n,e)}function uL(n,e){je.call(this,n,e)}function fX(n,e){je.call(this,n,e)}function oL(n,e){je.call(this,n,e)}function hX(n,e){je.call(this,n,e)}function g7(n,e){je.call(this,n,e)}function sL(n,e){je.call(this,n,e)}function lX(n,e){je.call(this,n,e)}function p7(n,e){je.call(this,n,e)}function aX(n,e){je.call(this,n,e)}function tMn(n,e){this.b=n,this.a=e}function iMn(n,e){this.b=n,this.a=e}function rMn(n,e){this.b=n,this.a=e}function cMn(n,e){this.b=n,this.a=e}function dX(n,e){this.a=n,this.b=e}function uMn(n,e){this.a=n,this.b=e}function oMn(n,e){this.a=n,this.b=e}function V(n,e){this.a=n,this.b=e}function k6(n,e){je.call(this,n,e)}function m7(n,e){je.call(this,n,e)}function wp(n,e){je.call(this,n,e)}function y6(n,e){je.call(this,n,e)}function v7(n,e){je.call(this,n,e)}function fL(n,e){je.call(this,n,e)}function kC(n,e){je.call(this,n,e)}function j6(n,e){je.call(this,n,e)}function hL(n,e){je.call(this,n,e)}function yC(n,e){je.call(this,n,e)}function dg(n,e){je.call(this,n,e)}function k7(n,e){je.call(this,n,e)}function E6(n,e){je.call(this,n,e)}function C6(n,e){je.call(this,n,e)}function y7(n,e){je.call(this,n,e)}function jC(n,e){je.call(this,n,e)}function bg(n,e){je.call(this,n,e)}function lL(n,e){je.call(this,n,e)}function sMn(n,e){je.call(this,n,e)}function EC(n,e){je.call(this,n,e)}function fMn(n,e){this.a=n,this.b=e}function hMn(n,e){this.a=n,this.b=e}function lMn(n,e){this.a=n,this.b=e}function aMn(n,e){this.a=n,this.b=e}function dMn(n,e){this.a=n,this.b=e}function bMn(n,e){this.a=n,this.b=e}function bi(n,e){this.a=n,this.b=e}function wMn(n,e){this.a=n,this.b=e}function gMn(n,e){this.a=n,this.b=e}function pMn(n,e){this.a=n,this.b=e}function mMn(n,e){this.a=n,this.b=e}function vMn(n,e){this.a=n,this.b=e}function kMn(n,e){this.a=n,this.b=e}function yMn(n,e){this.b=n,this.a=e}function jMn(n,e){this.b=n,this.a=e}function EMn(n,e){this.b=n,this.a=e}function CMn(n,e){this.b=n,this.a=e}function MMn(n,e){this.a=n,this.b=e}function TMn(n,e){this.a=n,this.b=e}function CC(n,e){je.call(this,n,e)}function AMn(n,e){this.a=n,this.b=e}function SMn(n,e){this.a=n,this.b=e}function gp(n,e){je.call(this,n,e)}function PMn(n,e){this.f=n,this.c=e}function bX(n,e){return Au(n.g,e)}function wle(n,e){return Au(e.b,n)}function IMn(n,e){return wx(n.a,e)}function gle(n,e){return-n.b.af(e)}function ple(n,e){n&&Xe(hE,n,e)}function wX(n,e){n.i=null,kT(n,e)}function mle(n,e,t){yKn(e,oF(n,t))}function vle(n,e,t){yKn(e,oF(n,t))}function kle(n,e){VMe(n.a,u(e,58))}function OMn(n,e){U4e(n.a,u(e,12))}function MC(n,e){this.a=n,this.b=e}function DMn(n,e){this.a=n,this.b=e}function LMn(n,e){this.a=n,this.b=e}function NMn(n,e){this.a=n,this.b=e}function $Mn(n,e){this.a=n,this.b=e}function xMn(n,e){this.d=n,this.b=e}function FMn(n,e){this.e=n,this.a=e}function j7(n,e){this.b=n,this.c=e}function gX(n,e){this.i=n,this.g=e}function pX(n,e){this.d=n,this.e=e}function yle(n,e){cme(new ne(n),e)}function TC(n){return Rk(n.c,n.b)}function Kr(n){return n?n.md():null}function x(n){return n??null}function Ai(n){return typeof n===nB}function Nb(n){return typeof n===i3}function $b(n){return typeof n===dtn}function o0(n,e){return Ec(n,e)==0}function AC(n,e){return Ec(n,e)>=0}function M6(n,e){return Ec(n,e)!=0}function SC(n,e){return jve(n.Kc(),e)}function _1(n,e){return n.Rd().Xb(e)}function BMn(n){return eo(n),n.d.gc()}function PC(n){return F6(n==null),n}function T6(n,e){return n.a+=""+e,n}function Er(n,e){return n.a+=""+e,n}function A6(n,e){return n.a+=""+e,n}function Dc(n,e){return n.a+=""+e,n}function Be(n,e){return n.a+=""+e,n}function mX(n,e){return n.a+=""+e,n}function jle(n){return""+(Jn(n),n)}function RMn(n){Hu(this),f5(this,n)}function KMn(){oJ(),dW.call(this)}function _Mn(n,e){mW.call(this,n,e)}function HMn(n,e){mW.call(this,n,e)}function IC(n,e){mW.call(this,n,e)}function ir(n,e){xt(n,e,n.c.b,n.c)}function wg(n,e){xt(n,e,n.a,n.a.a)}function vX(n){return Ln(n,0),null}function qMn(){this.b=0,this.a=!1}function UMn(){this.b=0,this.a=!1}function GMn(){this.b=new ap(Qb(12))}function zMn(){zMn=F,kYn=Ce(jx())}function XMn(){XMn=F,HZn=Ce(iqn())}function VMn(){VMn=F,lre=Ce(xxn())}function kX(){kX=F,_G(),fun=new de}function sf(n){return n.a=0,n.b=0,n}function WMn(n,e){return n.a=e.g+1,n}function aL(n,e){Kb.call(this,n,e)}function Mn(n,e){Dt.call(this,n,e)}function gg(n,e){gX.call(this,n,e)}function JMn(n,e){T7.call(this,n,e)}function dL(n,e){Y4.call(this,n,e)}function Ue(n,e){iC(),Xe(yO,n,e)}function QMn(n,e){n.q.setTime(id(e))}function Ele(n){y.clearTimeout(n)}function Cle(n){return Se(n),new S6(n)}function YMn(n,e){return x(n)===x(e)}function ZMn(n,e){return n.a.a.a.cc(e)}function bL(n,e){return qo(n.a,0,e)}function yX(n){return Awe(u(n,74))}function pp(n){return wi((Jn(n),n))}function Mle(n){return wi((Jn(n),n))}function nTn(n){return Yc(n.l,n.m,n.h)}function jX(n,e){return jc(n.a,e.a)}function Tle(n,e){return KPn(n.a,e.a)}function Ale(n,e){return bt(n.a,e.a)}function th(n,e){return n.indexOf(e)}function Sle(n,e){return n.j[e.p]==2}function s0(n,e){return n==e?0:n?1:-1}function OC(n){return n<10?"0"+n:""+n}function Vr(n){return typeof n===dtn}function Ple(n){return n==rb||n==Iw}function Ile(n){return n==rb||n==Pw}function eTn(n,e){return jc(n.g,e.g)}function EX(n){return qr(n.b.b,n,0)}function tTn(){rM.call(this,0,0,0,0)}function ih(){CG.call(this,new Ql)}function CX(n,e){F4(n,0,n.length,e)}function Ole(n,e){return nn(n.a,e),e}function Dle(n,e){return xs(),e.a+=n}function Lle(n,e){return xs(),e.a+=n}function Nle(n,e){return xs(),e.c+=n}function $le(n,e){return nn(n.c,e),n}function MX(n,e){return Mo(n.a,e),n}function iTn(n){this.a=XCn(),this.b=n}function rTn(n){this.a=XCn(),this.b=n}function rr(n){this.a=n.a,this.b=n.b}function S6(n){this.a=n,GO.call(this)}function cTn(n){this.a=n,GO.call(this)}function mp(){Ho.call(this,0,0,0,0)}function DC(n){return Mo(new ii,n)}function uTn(n){return jM(u(n,123))}function fo(n){return n.vh()&&n.wh()}function pg(n){return n!=Jf&&n!=Sa}function hl(n){return n==Br||n==Xr}function mg(n){return n==us||n==Vf}function oTn(n){return n==S2||n==A2}function xle(n,e){return jc(n.g,e.g)}function sTn(n,e){return new Y4(e,n)}function Fle(n,e){return new Y4(e,n)}function TX(n){return rbe(n.b.Kc(),n.a)}function wL(n,e){um(n,e),G4(n,n.D)}function gL(n,e,t){aT(n,e),lT(n,t)}function vg(n,e,t){I0(n,e),P0(n,t)}function Ro(n,e,t){eu(n,e),tu(n,t)}function E7(n,e,t){_4(n,e),q4(n,t)}function C7(n,e,t){H4(n,e),U4(n,t)}function fTn(n,e,t){sV.call(this,n,e,t)}function AX(n){PMn.call(this,n,!0)}function hTn(){uC.call(this,"Tail",3)}function lTn(){uC.call(this,"Head",1)}function H1(n){dh(),mve.call(this,n)}function f0(n){rM.call(this,n,n,n,n)}function pL(n){n.c=K(ki,Fn,1,0,5,1)}function SX(n){return n.b&&xF(n),n.a}function PX(n){return n.b&&xF(n),n.c}function Ble(n,e){qf||(n.b=e)}function Rle(n,e){return n[n.length]=e}function Kle(n,e){return n[n.length]=e}function _le(n,e){return Yb(e,Af(n))}function Hle(n,e){return Yb(e,Af(n))}function qle(n,e){return pT(dN(n.d),e)}function Ule(n,e){return pT(dN(n.g),e)}function Gle(n,e){return pT(dN(n.j),e)}function Ni(n,e){Dt.call(this,n.b,e)}function zle(n,e){ve(Sc(n.a),DOn(e))}function Xle(n,e){ve(no(n.a),LOn(e))}function Vle(n,e,t){Ro(t,t.i+n,t.j+e)}function aTn(n,e,t){$t(n.c[e.g],e.g,t)}function Wle(n,e,t){u(n.c,71).Gi(e,t)}function mL(n,e,t){return $t(n,e,t),t}function dTn(n){nu(n.Sf(),new D9n(n))}function kg(n){return n!=null?mt(n):0}function Jle(n){return n==null?0:mt(n)}function P6(n){nt(),Wd.call(this,n)}function bTn(n){this.a=n,qV.call(this,n)}function Mf(){Mf=F,y.Math.log(2)}function Ko(){Ko=F,rl=(pCn(),Moe)}function wTn(){wTn=F,YH=new j5(aU)}function Ie(){Ie=F,new gTn,new Z}function gTn(){new de,new de,new de}function Qle(){throw M(new Kl(QJn))}function Yle(){throw M(new Kl(QJn))}function Zle(){throw M(new Kl(YJn))}function n1e(){throw M(new Kl(YJn))}function vL(n){this.a=n,VE.call(this,n)}function kL(n){this.a=n,VE.call(this,n)}function pTn(n,e){m0(),this.a=n,this.b=e}function e1e(n,e){Se(e),Tg(n).Jc(new Ru)}function Yt(n,e){QL(n.c,n.c.length,e)}function tc(n){return n.ae?1:0}function OX(n,e){return Ec(n,e)>0?n:e}function Yc(n,e,t){return{l:n,m:e,h:t}}function t1e(n,e){n.a!=null&&OMn(e,n.a)}function i1e(n){Zi(n,null),Ii(n,null)}function r1e(n,e,t){return Xe(n.g,t,e)}function yg(n,e,t){return nZ(e,t,n.c)}function c1e(n,e,t){return Xe(n.k,t,e)}function u1e(n,e,t){return GOe(n,e,t),t}function o1e(n,e){return ko(),e.n.b+=n}function vTn(n){nJ.call(this),this.b=n}function DX(n){vV.call(this),this.a=n}function kTn(){uC.call(this,"Range",2)}function LC(n){this.b=n,this.a=new Z}function yTn(n){this.b=new $bn,this.a=n}function jTn(n){n.a=new OO,n.c=new OO}function ETn(n){n.a=new de,n.d=new de}function CTn(n){$N(n,null),xN(n,null)}function MTn(n,e){return XOe(n.a,e,null)}function s1e(n,e){return Xe(n.a,e.a,e)}function Ki(n){return new V(n.a,n.b)}function LX(n){return new V(n.c,n.d)}function f1e(n){return new V(n.c,n.d)}function I6(n,e){return cOe(n.c,n.b,e)}function O(n,e){return n!=null&&Tx(n,e)}function yL(n,e){return Yve(n.Kc(),e)!=-1}function NC(n){return n.Ob()?n.Pb():null}function h1e(n){this.b=(Dn(),new eD(n))}function NX(n){this.a=n,de.call(this)}function TTn(){T7.call(this,null,null)}function ATn(){_C.call(this,null,null)}function STn(){je.call(this,"INSTANCE",0)}function PTn(){LZ(),this.a=new K5(Ion)}function ITn(n){return hh(n,0,n.length)}function l1e(n,e){return new VTn(n.Kc(),e)}function $X(n,e){return n.a.Bc(e)!=null}function OTn(n,e){me(n),n.Gc(u(e,15))}function a1e(n,e,t){n.c.bd(e,u(t,136))}function d1e(n,e,t){n.c.Ui(e,u(t,136))}function DTn(n,e){n.c&&(tW(e),rOn(e))}function b1e(n,e){n.q.setHours(e),G5(n,e)}function w1e(n,e){a0(e,n.a.a.a,n.a.a.b)}function g1e(n,e,t,i){$t(n.a[e.g],t.g,i)}function jL(n,e,t){return n.a[e.g][t.g]}function p1e(n,e){return n.e[e.c.p][e.p]}function m1e(n,e){return n.c[e.c.p][e.p]}function Tf(n,e){return n.a[e.c.p][e.p]}function v1e(n,e){return n.j[e.p]=IMe(e)}function EL(n,e){return n.a.Bc(e)!=null}function k1e(n,e){return $(R(e.a))<=n}function y1e(n,e){return $(R(e.a))>=n}function j1e(n,e){return RJ(n.f,e.Pg())}function vp(n,e){return n.a*e.a+n.b*e.b}function E1e(n,e){return n.a0?e/(n*n):e*100}function V1e(n,e){return n>0?e*e/n:e*e*100}function xb(n,e){return u(Lf(n.a,e),34)}function W1e(n,e){return ca(),Pn(n,e.e,e)}function J1e(n,e,t){return nC(),t.Mg(n,e)}function Q1e(n){return kl(),n.e.a+n.f.a/2}function Y1e(n,e,t){return kl(),t.e.a-n*e}function Z1e(n){return kl(),n.e.b+n.f.b/2}function nae(n,e,t){return kl(),t.e.b-n*e}function sAn(n){n.d=new cAn(n),n.e=new de}function fAn(){this.a=new C0,this.b=new C0}function hAn(n){this.c=n,this.a=1,this.b=1}function lAn(n){YF(),Syn(this),this.Ff(n)}function eae(n,e,t){YM(),n.pf(e)&&t.Cd(n)}function tae(n,e,t){return nn(e,jBn(n,t))}function a0(n,e,t){return n.a+=e,n.b+=t,n}function iae(n,e,t){return n.a*=e,n.b*=t,n}function ZX(n,e){return n.a=e.a,n.b=e.b,n}function HC(n){return n.a=-n.a,n.b=-n.b,n}function N6(n,e,t){return n.a-=e,n.b-=t,n}function aAn(n){Ct.call(this),c5(this,n)}function dAn(){je.call(this,"GROW_TREE",0)}function bAn(){je.call(this,"POLYOMINO",0)}function lo(n,e,t){Iu.call(this,n,e,t,2)}function rae(n,e,t){k5(Sc(n.a),e,DOn(t))}function wAn(n,e){a6(),T7.call(this,n,e)}function nV(n,e){Gl(),_C.call(this,n,e)}function gAn(n,e){Gl(),nV.call(this,n,e)}function pAn(n,e){Gl(),_C.call(this,n,e)}function cae(n,e){return n.c.Fc(u(e,136))}function uae(n,e,t){k5(no(n.a),e,LOn(t))}function mAn(n){this.c=n,eu(n,0),tu(n,0)}function PL(n,e){Ko(),oM.call(this,n,e)}function vAn(n,e){Ko(),PL.call(this,n,e)}function eV(n,e){Ko(),PL.call(this,n,e)}function tV(n,e){Ko(),oM.call(this,n,e)}function kAn(n,e){Ko(),eV.call(this,n,e)}function yAn(n,e){Ko(),tV.call(this,n,e)}function jAn(n,e){Ko(),oM.call(this,n,e)}function oae(n,e,t){return e.zl(n.e,n.c,t)}function sae(n,e,t){return e.Al(n.e,n.c,t)}function iV(n,e,t){return qA(ak(n,e),t)}function IL(n,e){return na(n.e,u(e,54))}function fae(n){return n==null?null:NDe(n)}function hae(n){return n==null?null:Aje(n)}function lae(n){return n==null?null:Jr(n)}function aae(n){return n==null?null:Jr(n)}function un(n){return F6(n==null||Nb(n)),n}function R(n){return F6(n==null||$b(n)),n}function Oe(n){return F6(n==null||Ai(n)),n}function ll(n){n.o==null&&cMe(n)}function rV(n){if(!n)throw M(new Q9)}function dae(n){if(!n)throw M(new uD)}function oe(n){if(!n)throw M(new nc)}function Fb(n){if(!n)throw M(new Cu)}function EAn(n){if(!n)throw M(new Bo)}function m4(){m4=F,aE=new ujn,new ojn}function Mg(){Mg=F,O2=new lt("root")}function cV(){cxn.call(this),this.Bb|=hr}function bae(n,e){this.d=n,c9n(this),this.b=e}function uV(n,e){i$.call(this,n),this.a=e}function oV(n,e){i$.call(this,n),this.a=e}function sV(n,e,t){VM.call(this,n,e,t,null)}function CAn(n,e,t){VM.call(this,n,e,t,null)}function P7(n,e){this.c=n,h4.call(this,n,e)}function $6(n,e){this.a=n,P7.call(this,n,e)}function fV(n){this.q=new y.Date(id(n))}function MAn(n){return n>8?0:n+1}function TAn(n,e){qf||nn(n.a,e)}function wae(n,e){return o7(),Q4(e.d.i,n)}function gae(n,e){return Hp(),new tUn(e,n)}function pae(n,e,t){return n.Ne(e,t)<=0?t:e}function mae(n,e,t){return n.Ne(e,t)<=0?e:t}function vae(n,e){return u(Lf(n.b,e),143)}function kae(n,e){return u(Lf(n.c,e),233)}function OL(n){return u(sn(n.a,n.b),294)}function AAn(n){return new V(n.c,n.d+n.a)}function SAn(n){return Jn(n),n?1231:1237}function PAn(n){return ko(),oTn(u(n,203))}function Bb(){Bb=F,ron=yn((go(),Gd))}function yae(n,e){e.a?MCe(n,e):EL(n.a,e.b)}function I7(n,e,t){++n.j,n.tj(),t$(n,e,t)}function IAn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function OAn(n,e,t){var i;i=n.fd(e),i.Rb(t)}function hV(n,e,t){return t=So(n,e,6,t),t}function lV(n,e,t){return t=So(n,e,3,t),t}function aV(n,e,t){return t=So(n,e,9,t),t}function ch(n,e){return X7(e,xtn),n.f=e,n}function dV(n,e){return(e&et)%n.d.length}function DAn(n,e,t){return zen(n.c,n.b,e,t)}function LAn(n,e){this.c=n,S0.call(this,e)}function NAn(n,e){this.a=n,kyn.call(this,e)}function O7(n,e){this.a=n,kyn.call(this,e)}function Dt(n,e){lt.call(this,n),this.a=e}function bV(n,e){FG.call(this,n),this.a=e}function DL(n,e){FG.call(this,n),this.a=e}function jae(n){VY.call(this,0,0),this.f=n}function $An(n,e,t){return n.a+=hh(e,0,t),n}function D7(n){return!n.a&&(n.a=new C0n),n.a}function wV(n,e){var t;return t=n.e,n.e=e,t}function gV(n,e){var t;return t=e,!!n.Fe(t)}function Eae(n,e){return _n(),n==e?0:n?1:-1}function Rb(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function L7(n){n.b?L7(n.b):n.f.c.zc(n.e,n.d)}function xAn(n){Hu(n.e),n.d.b=n.d,n.d.a=n.d}function Cae(n,e,t){Xa(),t9n(n,e.Ve(n.a,t))}function pV(n,e,t){return Pp(n,u(e,22),t)}function $s(n,e){return qE(new Array(e),n)}function Mae(n){return Ae(U1(n,32))^Ae(n)}function LL(n){return String.fromCharCode(n)}function Tae(n){return n==null?null:n.message}function Aae(n,e,t){return n.apply(e,t)}function Sae(n,e){var t;t=n[DB],t.call(n,e)}function Pae(n,e){var t;t=n[DB],t.call(n,e)}function Iae(n,e){return o7(),!Q4(e.d.i,n)}function mV(n,e,t,i){rM.call(this,n,e,t,i)}function FAn(){qC.call(this),this.a=new Li}function vV(){this.n=new Li,this.o=new Li}function BAn(){this.b=new Li,this.c=new Z}function RAn(){this.a=new Z,this.b=new Z}function KAn(){this.a=new _U,this.b=new Byn}function kV(){this.b=new Ql,this.a=new Ql}function _An(){this.b=new ni,this.a=new ni}function HAn(){this.b=new de,this.a=new de}function qAn(){this.b=new wEn,this.a=new H3n}function UAn(){this.a=new n8n,this.b=new Lpn}function GAn(){this.a=new Z,this.d=new Z}function qC(){this.n=new cp,this.i=new mp}function zAn(n){this.a=(Co(n,mw),new Gc(n))}function XAn(n){this.a=(Co(n,mw),new Gc(n))}function Oae(n){return n<100?null:new F1(n)}function Dae(n,e){return n.n.a=(Jn(e),e+10)}function Lae(n,e){return n.n.a=(Jn(e),e+10)}function Nae(n,e){return e==n||km(TA(e),n)}function VAn(n,e){return Xe(n.a,e,"")==null}function $ae(n,e){var t;return t=e.qi(n.a),t}function tt(n,e){return n.a+=e.a,n.b+=e.b,n}function mi(n,e){return n.a-=e.a,n.b-=e.b,n}function xae(n){return Pb(n.j.c,0),n.a=-1,n}function yV(n,e,t){return t=So(n,e,11,t),t}function Fae(n,e,t){t!=null&&mT(e,Fx(n,t))}function Bae(n,e,t){t!=null&&vT(e,Fx(n,t))}function jp(n,e,t,i){q.call(this,n,e,t,i)}function jV(n,e,t,i){q.call(this,n,e,t,i)}function WAn(n,e,t,i){jV.call(this,n,e,t,i)}function JAn(n,e,t,i){bM.call(this,n,e,t,i)}function NL(n,e,t,i){bM.call(this,n,e,t,i)}function EV(n,e,t,i){bM.call(this,n,e,t,i)}function QAn(n,e,t,i){NL.call(this,n,e,t,i)}function CV(n,e,t,i){NL.call(this,n,e,t,i)}function Nn(n,e,t,i){EV.call(this,n,e,t,i)}function YAn(n,e,t,i){CV.call(this,n,e,t,i)}function ZAn(n,e,t,i){jW.call(this,n,e,t,i)}function Kb(n,e){Ir.call(this,k8+n+Td+e)}function MV(n,e){return n.jk().wi().ri(n,e)}function TV(n,e){return n.jk().wi().ti(n,e)}function nSn(n,e){return Jn(n),x(n)===x(e)}function An(n,e){return Jn(n),x(n)===x(e)}function Rae(n,e){return n.b.Bd(new ECn(n,e))}function Kae(n,e){return n.b.Bd(new CCn(n,e))}function eSn(n,e){return n.b.Bd(new MCn(n,e))}function _ae(n,e){return n.e=u(n.d.Kb(e),159)}function AV(n,e,t){return n.lastIndexOf(e,t)}function Hae(n,e,t){return bt(n[e.a],n[t.a])}function qae(n,e){return U(e,(cn(),Cj),n)}function Uae(n,e){return jc(e.a.d.p,n.a.d.p)}function Gae(n,e){return jc(n.a.d.p,e.a.d.p)}function zae(n,e){return bt(n.c-n.s,e.c-e.s)}function Xae(n,e){return bt(n.b.e.a,e.b.e.a)}function Vae(n,e){return bt(n.c.e.a,e.c.e.a)}function tSn(n){return n.c?qr(n.c.a,n,0):-1}function Ep(n){return n==Ud||n==tl||n==qc}function SV(n,e){this.c=n,oN.call(this,n,e)}function iSn(n,e,t){this.a=n,JX.call(this,e,t)}function rSn(n){this.c=n,IC.call(this,Ey,0)}function cSn(n,e,t){this.c=e,this.b=t,this.a=n}function N7(n){k4(),this.d=n,this.a=new Eg}function uSn(n){uh(),this.a=(Dn(),new r4(n))}function Wae(n,e){hl(n.f)?QCe(n,e):Sye(n,e)}function oSn(n,e){sbe.call(this,n,n.length,e)}function Jae(n,e){qf||e&&(n.d=e)}function sSn(n,e){return O(e,15)&&xqn(n.c,e)}function Qae(n,e,t){return u(n.c,71).Wk(e,t)}function UC(n,e,t){return u(n.c,71).Xk(e,t)}function Yae(n,e,t){return oae(n,u(e,343),t)}function PV(n,e,t){return sae(n,u(e,343),t)}function Zae(n,e,t){return PKn(n,u(e,343),t)}function fSn(n,e,t){return _ye(n,u(e,343),t)}function x6(n,e){return e==null?null:tw(n.b,e)}function IV(n){return $b(n)?(Jn(n),n):n.ue()}function GC(n){return!isNaN(n)&&!isFinite(n)}function $L(n){jTn(this),vo(this),Bi(this,n)}function _u(n){pL(this),zV(this.c,0,n.Pc())}function _o(n,e,t){this.a=n,this.b=e,this.c=t}function hSn(n,e,t){this.a=n,this.b=e,this.c=t}function lSn(n,e,t){this.d=n,this.b=t,this.a=e}function aSn(n){this.a=n,fl(),vc(Date.now())}function dSn(n){bo(n.a),GJ(n.c,n.b),n.b=null}function xL(){xL=F,Oun=new $0n,AQn=new x0n}function bSn(){bSn=F,Ioe=K(ki,Fn,1,0,5,1)}function wSn(){wSn=F,Voe=K(ki,Fn,1,0,5,1)}function OV(){OV=F,Woe=K(ki,Fn,1,0,5,1)}function uh(){uh=F,new KG((Dn(),Dn(),sr))}function nde(n){return B4(),Ee((yNn(),IQn),n)}function ede(n){return Gu(),Ee((lNn(),xQn),n)}function tde(n){return YT(),Ee((JDn(),HQn),n)}function ide(n){return cT(),Ee((QDn(),qQn),n)}function rde(n){return NA(),Ee((Jxn(),UQn),n)}function cde(n){return bf(),Ee((fNn(),XQn),n)}function ude(n){return Uu(),Ee((sNn(),WQn),n)}function ode(n){return bu(),Ee((hNn(),QQn),n)}function sde(n){return VA(),Ee((zMn(),kYn),n)}function fde(n){return N0(),Ee((ENn(),jYn),n)}function hde(n){return Vp(),Ee((MNn(),CYn),n)}function lde(n){return A5(),Ee((CNn(),AYn),n)}function ade(n){return YE(),Ee((jDn(),SYn),n)}function dde(n){return uT(),Ee((YDn(),GYn),n)}function bde(n){return i5(),Ee((aNn(),pZn),n)}function wde(n){return Vi(),Ee((u$n(),yZn),n)}function gde(n){return nm(),Ee((ANn(),TZn),n)}function pde(n){return dd(),Ee((TNn(),DZn),n)}function DV(n,e){if(!n)throw M(new Gn(e))}function v4(n){if(!n)throw M(new Or(btn))}function FL(n,e){if(n!=e)throw M(new Bo)}function gSn(n,e,t){this.a=n,this.b=e,this.c=t}function LV(n,e,t){this.a=n,this.b=e,this.c=t}function pSn(n,e,t){this.a=n,this.b=e,this.c=t}function zC(n,e,t){this.b=n,this.a=e,this.c=t}function NV(n,e,t){this.b=n,this.c=e,this.a=t}function $V(n,e,t){this.a=n,this.b=e,this.c=t}function XC(n,e,t){this.e=e,this.b=n,this.d=t}function mSn(n,e,t){this.b=n,this.a=e,this.c=t}function mde(n,e,t){return Xa(),n.a.Yd(e,t),e}function BL(n){var e;return e=new ubn,e.e=n,e}function xV(n){var e;return e=new qyn,e.b=n,e}function $7(){$7=F,CP=new sgn,MP=new fgn}function VC(){VC=F,XZn=new xgn,zZn=new Fgn}function xs(){xs=F,YZn=new G2n,ZZn=new z2n}function vde(n){return D0(),Ee((qLn(),fne),n)}function kde(n){return tr(),Ee((XMn(),HZn),n)}function yde(n){return OT(),Ee((PNn(),GZn),n)}function jde(n){return $f(),Ee((SNn(),tne),n)}function Ede(n){return ow(),Ee((o$n(),rne),n)}function Cde(n){return DA(),Ee(($xn(),hne),n)}function Mde(n){return Yp(),Ee((D$n(),lne),n)}function Tde(n){return QM(),Ee((cLn(),ane),n)}function Ade(n){return u5(),Ee((_Ln(),dne),n)}function Sde(n){return bT(),Ee((HLn(),bne),n)}function Pde(n){return o1(),Ee((s$n(),wne),n)}function Ide(n){return pk(),Ee((eLn(),gne),n)}function Ode(n){return jm(),Ee(($$n(),jne),n)}function Dde(n){return pr(),Ee((aFn(),Ene),n)}function Lde(n){return Z4(),Ee((GLn(),Cne),n)}function Nde(n){return vl(),Ee((zLn(),Tne),n)}function $de(n){return KM(),Ee((nLn(),Ane),n)}function xde(n){return Jk(),Ee((N$n(),yne),n)}function Fde(n){return hd(),Ee((ULn(),mne),n)}function Bde(n){return vA(),Ee((L$n(),vne),n)}function Rde(n){return hk(),Ee((tLn(),kne),n)}function Kde(n){return Yo(),Ee((h$n(),Sne),n)}function _de(n){return a1(),Ee((Xxn(),Yte),n)}function Hde(n){return g5(),Ee((XLn(),Zte),n)}function qde(n){return cw(),Ee((INn(),nie),n)}function Ude(n){return T5(),Ee((f$n(),eie),n)}function Gde(n){return gs(),Ee((dFn(),tie),n)}function zde(n){return lh(),Ee((ONn(),iie),n)}function Xde(n){return wk(),Ee((iLn(),rie),n)}function Vde(n){return gr(),Ee((JLn(),uie),n)}function Wde(n){return ST(),Ee((VLn(),oie),n)}function Jde(n){return d5(),Ee((WLn(),sie),n)}function Qde(n){return om(),Ee((QLn(),fie),n)}function Yde(n){return dT(),Ee((YLn(),hie),n)}function Zde(n){return DT(),Ee((ZLn(),lie),n)}function n0e(n){return O0(),Ee((oNn(),Aie),n)}function e0e(n){return n5(),Ee((rLn(),Die),n)}function t0e(n){return sh(),Ee((sLn(),Rie),n)}function i0e(n){return Sf(),Ee((fLn(),_ie),n)}function r0e(n){return lf(),Ee((hLn(),tre),n)}function c0e(n){return M0(),Ee((lLn(),fre),n)}function u0e(n){return Qp(),Ee((BNn(),hre),n)}function o0e(n){return q5(),Ee((VMn(),lre),n)}function s0e(n){return b5(),Ee((nNn(),are),n)}function f0e(n){return w5(),Ee((FNn(),$re),n)}function h0e(n){return FM(),Ee((uLn(),xre),n)}function l0e(n){return yT(),Ee((oLn(),_re),n)}function a0e(n){return wA(),Ee((l$n(),qre),n)}function d0e(n){return Ok(),Ee((eNn(),Gre),n)}function b0e(n){return ZM(),Ee((aLn(),Ure),n)}function w0e(n){return sA(),Ee((xNn(),lce),n)}function g0e(n){return AT(),Ee((tNn(),ace),n)}function p0e(n){return XT(),Ee((iNn(),dce),n)}function m0e(n){return rA(),Ee((rNn(),wce),n)}function v0e(n){return _T(),Ee((cNn(),mce),n)}function k0e(n){return GM(),Ee((dLn(),Rce),n)}function y0e(n){return V4(),Ee((ZDn(),_Zn),n)}function j0e(n){return Vn(),Ee((x$n(),xZn),n)}function E0e(n){return nT(),Ee((uNn(),Kce),n)}function C0e(n){return N$(),Ee((bLn(),_ce),n)}function M0e(n){return R5(),Ee((a$n(),qce),n)}function T0e(n){return eC(),Ee((IDn(),Gce),n)}function A0e(n){return Fk(),Ee((bNn(),Uce),n)}function S0e(n){return tC(),Ee((ODn(),Xce),n)}function P0e(n){return ck(),Ee((wLn(),Vce),n)}function I0e(n){return Yk(),Ee((d$n(),Wce),n)}function O0e(n){return f6(),Ee((DDn(),lue),n)}function D0e(n){return Ak(),Ee((gLn(),aue),n)}function L0e(n){return gf(),Ee((w$n(),mue),n)}function N0e(n){return l1(),Ee((Lxn(),kue),n)}function $0e(n){return Rh(),Ee((F$n(),yue),n)}function x0e(n){return wd(),Ee((B$n(),Aue),n)}function F0e(n){return ci(),Ee((b$n(),zue),n)}function B0e(n){return Nf(),Ee((wNn(),Xue),n)}function R0e(n){return El(),Ee((RNn(),Vue),n)}function K0e(n){return pA(),Ee((R$n(),Wue),n)}function _0e(n){return jl(),Ee((dNn(),Que),n)}function H0e(n){return To(),Ee((KNn(),Zue),n)}function q0e(n){return lw(),Ee((Wxn(),noe),n)}function U0e(n){return Fg(),Ee((g$n(),eoe),n)}function G0e(n){return Oi(),Ee((K$n(),toe),n)}function z0e(n){return zu(),Ee((_$n(),ioe),n)}function X0e(n){return tn(),Ee((p$n(),roe),n)}function V0e(n){return go(),Ee((_Nn(),foe),n)}function W0e(n){return io(),Ee((Vxn(),hoe),n)}function J0e(n){return Gp(),Ee((gNn(),loe),n)}function Q0e(n,e){return Jn(n),n+(Jn(e),e)}function Y0e(n){return RL(),Ee((pLn(),aoe),n)}function Z0e(n){return qT(),Ee((HNn(),doe),n)}function nbe(n){return LT(),Ee((qNn(),goe),n)}function k4(){k4=F,tln=(tn(),Wn),II=Zn}function RL(){RL=F,vdn=new VSn,kdn=new LPn}function ebe(n){return!n.e&&(n.e=new Z),n.e}function KL(n,e){this.c=n,this.a=e,this.b=e-n}function vSn(n,e,t){this.a=n,this.b=e,this.c=t}function _L(n,e,t){this.a=n,this.b=e,this.c=t}function FV(n,e,t){this.a=n,this.b=e,this.c=t}function BV(n,e,t){this.a=n,this.b=e,this.c=t}function kSn(n,e,t){this.a=n,this.b=e,this.c=t}function ySn(n,e,t){this.a=n,this.b=e,this.c=t}function Xl(n,e,t){this.e=n,this.a=e,this.c=t}function jSn(n,e,t){Ko(),tJ.call(this,n,e,t)}function HL(n,e,t){Ko(),RW.call(this,n,e,t)}function RV(n,e,t){Ko(),RW.call(this,n,e,t)}function KV(n,e,t){Ko(),RW.call(this,n,e,t)}function ESn(n,e,t){Ko(),HL.call(this,n,e,t)}function _V(n,e,t){Ko(),HL.call(this,n,e,t)}function CSn(n,e,t){Ko(),_V.call(this,n,e,t)}function MSn(n,e,t){Ko(),RV.call(this,n,e,t)}function TSn(n,e,t){Ko(),KV.call(this,n,e,t)}function qL(n){rM.call(this,n.d,n.c,n.a,n.b)}function HV(n){rM.call(this,n.d,n.c,n.a,n.b)}function qV(n){this.d=n,c9n(this),this.b=nwe(n.d)}function tbe(n){return Cm(),Ee((Nxn(),Poe),n)}function x7(n,e){return Se(n),Se(e),new NEn(n,e)}function Cp(n,e){return Se(n),Se(e),new RSn(n,e)}function ibe(n,e){return Se(n),Se(e),new KSn(n,e)}function rbe(n,e){return Se(n),Se(e),new qEn(n,e)}function UL(n){return oe(n.b!=0),Xo(n,n.a.a)}function cbe(n){return oe(n.b!=0),Xo(n,n.c.b)}function ube(n){return!n.c&&(n.c=new W3),n.c}function y4(n){var e;return e=new Z,b$(e,n),e}function obe(n){var e;return e=new ni,b$(e,n),e}function ASn(n){var e;return e=new GG,A$(e,n),e}function F7(n){var e;return e=new Ct,A$(e,n),e}function u(n,e){return F6(n==null||Tx(n,e)),n}function sbe(n,e,t){TPn.call(this,e,t),this.a=n}function SSn(n,e){this.c=n,this.b=e,this.a=!1}function PSn(){this.a=";,;",this.b="",this.c=""}function ISn(n,e,t){this.b=n,_Mn.call(this,e,t)}function UV(n,e,t){this.c=n,oC.call(this,e,t)}function GV(n,e,t){d4.call(this,n,e),this.b=t}function zV(n,e,t){Bnn(t,0,n,e,t.length,!1)}function Lh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function XV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function fbe(n,e){e&&(n.b=e,n.a=(z1(e),e.a))}function B7(n,e){if(!n)throw M(new Gn(e))}function Mp(n,e){if(!n)throw M(new Or(e))}function VV(n,e){if(!n)throw M(new Bjn(e))}function hbe(n,e){return ZE(),jc(n.d.p,e.d.p)}function lbe(n,e){return kl(),bt(n.e.b,e.e.b)}function abe(n,e){return kl(),bt(n.e.a,e.e.a)}function dbe(n,e){return jc(GSn(n.d),GSn(e.d))}function WC(n,e){return e&&vM(n,e.d)?e:null}function bbe(n,e){return e==(tn(),Wn)?n.c:n.d}function WV(n){return Q1(dwe(Vr(n)?ds(n):n))}function wbe(n){return new V(n.c+n.b,n.d+n.a)}function OSn(n){return n!=null&&!lx(n,N9,$9)}function gbe(n,e){return(fBn(n)<<4|fBn(e))&ui}function DSn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function JV(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function QV(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function pbe(n,e){var t;return t=n.c,PQ(n,e),t}function YV(n,e){return e<0?n.g=-1:n.g=e,n}function JC(n,e){return Mme(n),n.a*=e,n.b*=e,n}function LSn(n,e,t){A$n.call(this,e,t),this.d=n}function R7(n,e,t){pX.call(this,n,e),this.c=t}function QC(n,e,t){pX.call(this,n,e),this.c=t}function ZV(n){OV(),ME.call(this),this.ci(n)}function NSn(){$4(),Bwe.call(this,(R1(),Ss))}function $Sn(n){return nt(),new Nh(0,n)}function xSn(){xSn=F,AU=(Dn(),new nD(IK))}function YC(){YC=F,new hZ((bD(),HK),(dD(),_K))}function FSn(){FSn=F,pun=K(Gi,J,17,256,0,1)}function BSn(){this.b=$(R(rn((qs(),y_))))}function GL(n){this.b=n,this.a=Wa(this.b.a).Od()}function RSn(n,e){this.b=n,this.a=e,GO.call(this)}function KSn(n,e){this.a=n,this.b=e,GO.call(this)}function _Sn(n,e,t){this.a=n,gg.call(this,e,t)}function HSn(n,e,t){this.a=n,gg.call(this,e,t)}function j4(n,e,t){var i;i=new qb(t),df(n,e,i)}function nW(n,e,t){var i;return i=n[e],n[e]=t,i}function ZC(n){var e;return e=n.slice(),o$(e,n)}function nM(n){var e;return e=n.n,n.a.b+e.d+e.a}function qSn(n){var e;return e=n.n,n.e.b+e.d+e.a}function eW(n){var e;return e=n.n,n.e.a+e.b+e.c}function tW(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function xe(n,e){return xt(n,e,n.c.b,n.c),!0}function mbe(n){return n.a?n.a:vN(n)}function vbe(n){return Lp(),Kh(n)==At(ia(n))}function kbe(n){return Lp(),ia(n)==At(Kh(n))}function d0(n,e){return O5(n,new d4(e.a,e.b))}function ybe(n,e){return yM(),Nx(n,e),new lIn(n,e)}function jbe(n,e){return n.c=e)throw M(new YG)}function _b(n,e){return $k(n,(Jn(e),new a9n(e)))}function Ap(n,e){return $k(n,(Jn(e),new d9n(e)))}function SPn(n,e,t){return VLe(n,u(e,12),u(t,12))}function PPn(n){return Ou(),u(n,12).g.c.length!=0}function IPn(n){return Ou(),u(n,12).e.c.length!=0}function uwe(n,e){return Hp(),bt(e.a.o.a,n.a.o.a)}function owe(n,e){e.Bb&kc&&!n.a.o&&(n.a.o=e)}function swe(n,e){e.Ug("General 'Rotator",1),jDe(n)}function fwe(n,e,t){e.qf(t,$(R(ee(n.b,t)))*n.a)}function OPn(n,e,t){return Xg(),W4(n,e)&&W4(n,t)}function _6(n){return zu(),!n.Hc(Fl)&&!n.Hc(Pa)}function hwe(n){return n.e?qJ(n.e):null}function H6(n){return Vr(n)?""+n:$qn(n)}function yW(n){var e;for(e=n;e.f;)e=e.f;return e}function lwe(n,e,t){return $t(e,0,oW(e[0],t[0])),e}function Vl(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function q(n,e,t,i){ti.call(this,n,e,t),this.b=i}function Ci(n,e,t,i,r){c$.call(this,n,e,t,i,r,-1)}function q6(n,e,t,i,r){ok.call(this,n,e,t,i,r,-1)}function bM(n,e,t,i){R7.call(this,n,e,t),this.b=i}function DPn(n){PMn.call(this,n,!1),this.a=!1}function LPn(){sMn.call(this,"LOOKAHEAD_LAYOUT",1)}function NPn(n){this.b=n,kp.call(this,n),RTn(this)}function $Pn(n){this.b=n,A7.call(this,n),KTn(this)}function Hb(n,e,t){this.a=n,jp.call(this,e,t,5,6)}function jW(n,e,t,i){this.b=n,ti.call(this,e,t,i)}function xPn(n,e){this.b=n,H8n.call(this,n.b),this.a=e}function FPn(n){this.a=kRn(n.a),this.b=new _u(n.b)}function EW(n,e){m0(),Hhe.call(this,n,FT(new Ku(e)))}function wM(n,e){return nt(),new BW(n,e,0)}function rN(n,e){return nt(),new BW(6,n,e)}function _i(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function Zc(n,e){return Ai(e)?AN(n,e):!!wr(n.f,e)}function cN(n,e){return e.Vh()?na(n.b,u(e,54)):e}function awe(n,e){return An(n.substr(0,e.length),e)}function $h(n){return new te(new UX(n.a.length,n.a))}function gM(n){return new V(n.c+n.b/2,n.d+n.a/2)}function dwe(n){return Yc(~n.l&ro,~n.m&ro,~n.h&Il)}function uN(n){return typeof n===vy||typeof n===eB}function Hu(n){n.f=new iTn(n),n.i=new rTn(n),++n.g}function BPn(n){if(!n)throw M(new nc);return n.d}function Sp(n){var e;return e=a5(n),oe(e!=null),e}function bwe(n){var e;return e=I5e(n),oe(e!=null),e}function C4(n,e){var t;return t=n.a.gc(),BJ(e,t),t-e}function fi(n,e){var t;return t=n.a.zc(e,n),t==null}function _7(n,e){return n.a.zc(e,(_n(),wa))==null}function CW(n){return new Tn(null,vwe(n,n.length))}function MW(n,e,t){return cGn(n,u(e,42),u(t,176))}function Pp(n,e,t){return Ks(n.a,e),nW(n.b,e.g,t)}function wwe(n,e,t){E4(t,n.a.c.length),Go(n.a,t,e)}function B(n,e,t,i){xFn(e,t,n.length),gwe(n,e,t,i)}function gwe(n,e,t,i){var r;for(r=e;r0?y.Math.log(n/e):-100}function KPn(n,e){return Ec(n,e)<0?-1:Ec(n,e)>0?1:0}function H7(n,e){OTn(n,O(e,160)?e:u(e,2036).Rl())}function PW(n,e){if(n==null)throw M(new sp(e))}function vwe(n,e){return yme(e,n.length),new XSn(n,e)}function IW(n,e){return e?Bi(n,e):!1}function kwe(){return RE(),S(T(uQn,1),G,549,0,[GK])}function G6(n){return n.e==0?n:new Qa(-n.e,n.d,n.a)}function ywe(n,e){return bt(n.c.c+n.c.b,e.c.c+e.c.b)}function q7(n,e){xt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function _Pn(n,e){return n.c?_Pn(n.c,e):nn(n.b,e),n}function jwe(n,e,t){var i;return i=Jb(n,e),qN(n,e,t),i}function HPn(n,e,t){var i;for(i=0;i=n.g}function $t(n,e,t){return dae(t==null||oPe(n,t)),n[e]=t}function $W(n,e){return zn(e,n.length+1),n.substr(e)}function gN(n,e){for(Jn(e);n.c=n?new Dz:Gme(n-1)}function Hi(n){return!n.a&&n.c?n.c.b:n.a}function KW(n){return O(n,616)?n:new oOn(n)}function z1(n){n.c?z1(n.c):(ea(n),n.d=!0)}function V6(n){n.c?n.c.$e():(n.d=!0,fTe(n))}function sIn(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function fIn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function _we(n,e){var t;t=n.Ih(e),t>=0?n.ki(t):Pnn(n,e)}function hIn(n,e){n.c<0||n.b.b0;)n=n<<1|(n<0?1:0);return n}function mIn(n,e){var t;return t=new Lc(n),Bn(e.c,t),t}function vIn(n,e){n.u.Hc((zu(),Fl))&&zEe(n,e),h4e(n,e)}function mc(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function Cr(n,e){return JL(n.a,e)?n.b[u(e,22).g]:null}function nge(){return YE(),S(T(oon,1),G,489,0,[b_])}function ege(){return eC(),S(T($1n,1),G,490,0,[Bq])}function tge(){return tC(),S(T(zce,1),G,558,0,[Rq])}function ige(){return f6(),S(T(tan,1),G,539,0,[Hj])}function jM(n){return!n.n&&(n.n=new q(Ar,n,1,7)),n.n}function mN(n){return!n.c&&(n.c=new q(Qu,n,9,9)),n.c}function UW(n){return!n.c&&(n.c=new Nn(he,n,5,8)),n.c}function rge(n){return!n.b&&(n.b=new Nn(he,n,4,7)),n.b}function U7(n){return n.j.c.length=0,zW(n.c),xae(n.a),n}function P4(n){return n.e==rv&&jfe(n,Y8e(n.g,n.b)),n.e}function G7(n){return n.f==rv&&Cfe(n,q7e(n.g,n.b)),n.f}function Ve(n,e,t,i){return Hxn(n,e,t,!1),BT(n,i),n}function kIn(n,e){this.b=n,oN.call(this,n,e),RTn(this)}function yIn(n,e){this.b=n,SV.call(this,n,e),KTn(this)}function W6(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function GW(n,e){this.b=n,this.c=e,this.a=new dp(this.b)}function Xi(n,e){return zn(e,n.length),n.charCodeAt(e)}function cge(n,e){DY(n,$(yl(e,"x")),$(yl(e,"y")))}function uge(n,e){DY(n,$(yl(e,"x")),$(yl(e,"y")))}function ut(n,e){return ea(n),new Tn(n,new tQ(e,n.a))}function _r(n,e){return ea(n),new Tn(n,new _J(e,n.a))}function Ub(n,e){return ea(n),new uV(n,new ILn(e,n.a))}function EM(n,e){return ea(n),new oV(n,new OLn(e,n.a))}function oge(n,e){return new GIn(u(Se(n),50),u(Se(e),50))}function sge(n,e){return bt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function jIn(n,e,t){t.a?tu(n,e.b-n.f/2):eu(n,e.a-n.g/2)}function fge(n,e){return bt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function hge(n,e){return $z(),bt((Jn(n),n),(Jn(e),e))}function lge(n){return n!=null&&r7(jO,n.toLowerCase())}function zW(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Tg(n){var e;return e=n.b,!e&&(n.b=e=new N8n(n)),e}function vN(n){var e;return e=Wme(n),e||null}function EIn(n,e){var t,i;return t=n/e,i=wi(t),t>i&&++i,i}function age(n,e,t){var i;i=u(n.d.Kb(t),159),i&&i.Nb(e)}function dge(n,e,t){wIe(n.a,t),zve(t),xCe(n.b,t),$Ie(e,t)}function CM(n,e,t,i){this.a=n,this.c=e,this.b=t,this.d=i}function XW(n,e,t,i){this.c=n,this.b=e,this.a=t,this.d=i}function CIn(n,e,t,i){this.c=n,this.b=e,this.d=t,this.a=i}function Ho(n,e,t,i){this.c=n,this.d=e,this.b=t,this.a=i}function MIn(n,e,t,i){this.a=n,this.d=e,this.c=t,this.b=i}function kN(n,e,t,i){this.a=n,this.e=e,this.d=t,this.c=i}function TIn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function yN(n,e,t){this.a=ktn,this.d=n,this.b=e,this.c=t}function Op(n,e,t,i){je.call(this,n,e),this.a=t,this.b=i}function AIn(n,e){this.d=(Jn(n),n),this.a=16449,this.c=e}function SIn(n){this.a=new Z,this.e=K(ye,J,53,n,0,2)}function bge(n){n.Ug("No crossing minimization",1),n.Vg()}function PIn(){ec.call(this,"There is no more element.")}function IIn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function OIn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function Za(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function DIn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function LIn(n,e,t,i){Ko(),DLn.call(this,e,t,i),this.a=n}function NIn(n,e,t,i){Ko(),DLn.call(this,e,t,i),this.a=n}function jN(n,e,t){var i,r;return i=utn(n),r=e.ti(t,i),r}function al(n){var e,t;return t=(e=new Jd,e),K4(t,n),t}function EN(n){var e,t;return t=(e=new Jd,e),fnn(t,n),t}function wge(n,e){var t;return t=ee(n.f,e),HQ(e,t),null}function $In(n){return!n.b&&(n.b=new q(Vt,n,12,3)),n.b}function xIn(n){return F6(n==null||uN(n)&&n.Tm!==J2),n}function MM(n){return n.n&&(n.e!==Fzn&&n.je(),n.j=null),n}function I4(n){if(eo(n.d),n.d.d!=n.c)throw M(new Bo)}function VW(n){return oe(n.b0&&bKn(this)}function FIn(n,e){this.a=n,bae.call(this,n,u(n.d,15).fd(e))}function gge(n,e){return bt(Su(n)*ao(n),Su(e)*ao(e))}function pge(n,e){return bt(Su(n)*ao(n),Su(e)*ao(e))}function mge(n){return _0(n)&&on(un(z(n,(cn(),Nd))))}function vge(n,e){return Pn(n,u(v(e,(cn(),Cv)),17),e)}function kge(n,e){return u(v(n,(W(),T3)),15).Fc(e),e}function WW(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function BIn(n,e,t,i){this.b=n,this.c=i,IC.call(this,e,t)}function yge(n,e,t){n.i=0,n.e=0,e!=t&&yFn(n,e,t)}function jge(n,e,t){n.i=0,n.e=0,e!=t&&jFn(n,e,t)}function Ege(n,e,t){return s6(),J5e(u(ee(n.e,e),529),t)}function Dp(n){var e;return e=n.f,e||(n.f=new h4(n,n.c))}function RIn(n,e){return xg(n.j,e.s,e.c)+xg(e.e,n.s,n.c)}function KIn(n,e){n.e&&!n.e.a&&(Ayn(n.e,e),KIn(n.e,e))}function _In(n,e){n.d&&!n.d.a&&(Ayn(n.d,e),_In(n.d,e))}function Cge(n,e){return-bt(Su(n)*ao(n),Su(e)*ao(e))}function Mge(n){return u(n.ld(),149).Pg()+":"+Jr(n.md())}function HIn(){tF(this,new oG),this.wb=(G1(),Hn),o4()}function qIn(n){this.b=new Z,hi(this.b,this.b),this.a=n}function JW(n,e){new Ct,this.a=new Mu,this.b=n,this.c=e}function j0(){j0=F,Pun=new FU,ZK=new FU,Iun=new D0n}function Dn(){Dn=F,sr=new A0n,Wh=new P0n,hP=new I0n}function QW(){QW=F,RQn=new nbn,_Qn=new aW,KQn=new ebn}function Lp(){Lp=F,mP=new Z,m_=new de,p_=new Z}function TM(n,e){if(n==null)throw M(new sp(e));return n}function AM(n){return!n.a&&(n.a=new q(Qe,n,10,11)),n.a}function ft(n){return!n.q&&(n.q=new q(As,n,11,10)),n.q}function _(n){return!n.s&&(n.s=new q(ku,n,21,17)),n.s}function Tge(n){return Se(n),IRn(new te(re(n.a.Kc(),new En)))}function Age(n,e){return wo(n),wo(e),Fjn(u(n,22),u(e,22))}function nd(n,e,t){var i,r;i=IV(t),r=new AE(i),df(n,e,r)}function MN(n,e,t,i,r,c){ok.call(this,n,e,t,i,r,c?-2:-1)}function UIn(n,e,t,i){pX.call(this,e,t),this.b=n,this.a=i}function GIn(n,e){Vfe.call(this,new iN(n)),this.a=n,this.b=e}function YW(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Sge(n){xs();var e;e=u(n.g,10),e.n.a=n.d.c+e.d.b}function O4(){O4=F;var n,e;e=!$8e(),n=new V3,VK=e?new og:n}function TN(n){return Dn(),O(n,59)?new jD(n):new BC(n)}function SM(n){return O(n,16)?new B6(u(n,16)):obe(n.Kc())}function Pge(n){return new HTn(n,n.e.Rd().gc()*n.c.Rd().gc())}function Ige(n){return new qTn(n,n.e.Rd().gc()*n.c.Rd().gc())}function ZW(n){return n&&n.hashCode?n.hashCode():l0(n)}function AN(n,e){return e==null?!!wr(n.f,null):zbe(n.i,e)}function Oge(n,e){var t;return t=$X(n.a,e),t&&(e.d=null),t}function zIn(n,e,t){return n.f?n.f.ef(e,t):!1}function z7(n,e,t,i){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i)}function SN(n,e,t,i){$t(n.c[e.g],e.g,t),$t(n.b[e.g],e.g,i)}function Dge(n,e,t){return $(R(t.a))<=n&&$(R(t.b))>=e}function XIn(n,e){this.g=n,this.d=S(T(Qh,1),b1,10,0,[e])}function VIn(n){this.c=n,this.b=new Ul(u(Se(new tbn),50))}function WIn(n){this.c=n,this.b=new Ul(u(Se(new ewn),50))}function JIn(n){this.b=n,this.a=new Ul(u(Se(new Nbn),50))}function QIn(){this.b=new ni,this.d=new Ct,this.e=new ZG}function nJ(){this.c=new Li,this.d=new Li,this.e=new Li}function E0(){this.a=new Mu,this.b=(Co(3,mw),new Gc(3))}function Wl(n,e){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e}function PM(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function YIn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function ZIn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function X1(n,e,t,i,r,c,s){return new GN(n.e,e,t,i,r,c,s)}function Lge(n,e,t){return t>=0&&An(n.substr(t,e.length),e)}function nOn(n,e){return O(e,149)&&An(n.b,u(e,149).Pg())}function Nge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}function eOn(n,e){var t;return t=n.b.Qc(e),WDn(t,n.b.gc()),t}function X7(n,e){if(n==null)throw M(new sp(e));return n}function Hr(n){return n.u||(Zu(n),n.u=new NAn(n,n)),n.u}function PN(n){this.a=(Dn(),O(n,59)?new jD(n):new BC(n))}function au(n){var e;return e=u(Un(n,16),29),e||n.ii()}function IM(n,e){var t;return t=za(n.Rm),e==null?t:t+": "+e}function qo(n,e,t){return Fi(e,t,n.length),n.substr(e,t-e)}function tOn(n,e){qC.call(this),lQ(this),this.a=n,this.c=e}function $ge(n){n&&IM(n,n.ie())}function xge(n){HE(),y.setTimeout(function(){throw n},0)}function Fge(){return YT(),S(T(Bun,1),G,436,0,[o_,Fun])}function Bge(){return cT(),S(T(Kun,1),G,435,0,[Run,s_])}function Rge(){return uT(),S(T(bon,1),G,432,0,[v_,vP])}function Kge(){return V4(),S(T(KZn,1),G,517,0,[dj,L_])}function _ge(){return KM(),S(T(Qsn,1),G,429,0,[fH,Jsn])}function Hge(){return pk(),S(T($sn,1),G,428,0,[WP,Nsn])}function qge(){return QM(),S(T(Asn,1),G,431,0,[Tsn,V_])}function Uge(){return wk(),S(T(qhn,1),G,430,0,[UH,GH])}function Gge(){return n5(),S(T(Oie,1),G,531,0,[r9,i9])}function zge(){return yT(),S(T(Rln,1),G,501,0,[RI,D2])}function Xge(){return sh(),S(T(Bie,1),G,523,0,[mb,y1])}function Vge(){return Sf(),S(T(Kie,1),G,522,0,[Rd,zf])}function Wge(){return lf(),S(T(ere,1),G,528,0,[zw,ja])}function Jge(){return hk(),S(T(Bsn,1),G,488,0,[Fsn,QP])}function Qge(){return GM(),S(T(S1n,1),G,491,0,[$q,A1n])}function Yge(){return N$(),S(T(N1n,1),G,492,0,[D1n,L1n])}function Zge(){return FM(),S(T(Bln,1),G,433,0,[dq,Fln])}function n2e(){return ZM(),S(T(_ln,1),G,434,0,[Kln,vq])}function e2e(){return M0(),S(T(sre,1),G,465,0,[Ea,P2])}function t2e(){return ck(),S(T(x1n,1),G,438,0,[Kq,JI])}function i2e(){return Ak(),S(T(ran,1),G,437,0,[YI,ian])}function r2e(){return RL(),S(T(dO,1),G,347,0,[vdn,kdn])}function OM(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function V7(n){return n.b.b==0?n.a.sf():UL(n.b)}function c2e(n){if(n.p!=5)throw M(new Cu);return Ae(n.f)}function u2e(n){if(n.p!=5)throw M(new Cu);return Ae(n.k)}function eJ(n){return x(n.a)===x((D$(),CU))&&rOe(n),n.a}function o2e(n,e){n.b=e,n.c>0&&n.b>0&&(n.g=cM(n.c,n.b,n.a))}function s2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=cM(n.c,n.b,n.a))}function iOn(n,e){ufe(this,new V(n.a,n.b)),ofe(this,F7(e))}function C0(){Wfe.call(this,new ap(Qb(12))),KX(!0),this.a=2}function IN(n,e,t){nt(),Wd.call(this,n),this.b=e,this.a=t}function tJ(n,e,t){Ko(),LE.call(this,e),this.a=n,this.b=t}function rOn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function f2e(n){return n.b==0?null:(oe(n.b!=0),Xo(n,n.a.a))}function Nc(n,e){return e==null?Kr(wr(n.f,null)):d6(n.i,e)}function cOn(n,e,t,i,r){return new rF(n,(B4(),i_),e,t,i,r)}function DM(n,e){return zDn(e),Lme(n,K(ye,Ke,28,e,15,1),e)}function LM(n,e){return TM(n,"set1"),TM(e,"set2"),new VEn(n,e)}function h2e(n,e){var t=XK[n.charCodeAt(0)];return t??n}function uOn(n,e){var t,i;return t=e,i=new DO,LGn(n,t,i),i.d}function ON(n,e,t,i){var r;r=new FAn,e.a[t.g]=r,Pp(n.b,i,r)}function l2e(n,e){var t;return t=Ime(n.f,e),tt(HC(t),n.f.d)}function W7(n){var e;_me(n.a),dTn(n.a),e=new IE(n.a),HY(e)}function a2e(n,e){_qn(n,!0),nu(n.e.Rf(),new NV(n,!0,e))}function d2e(n,e){return Lp(),n==At(Kh(e))||n==At(ia(e))}function b2e(n,e){return kl(),u(v(e,(lc(),Sh)),17).a==n}function wi(n){return Math.max(Math.min(n,et),-2147483648)|0}function oOn(n){this.a=u(Se(n),277),this.b=(Dn(),new XX(n))}function sOn(n,e,t){this.i=new Z,this.b=n,this.g=e,this.a=t}function iJ(n,e,t){this.a=new Z,this.e=n,this.f=e,this.c=t}function NM(n,e,t){this.c=new Z,this.e=n,this.f=e,this.b=t}function fOn(n){qC.call(this),lQ(this),this.a=n,this.c=!0}function w2e(n){function e(){}return e.prototype=n||{},new e}function g2e(n){if(n.Ae())return null;var e=n.n;return rP[e]}function J7(n){return n.Db>>16!=3?null:u(n.Cb,27)}function Af(n){return n.Db>>16!=9?null:u(n.Cb,27)}function hOn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function M0(){M0=F,Ea=new cX(s3,0),P2=new cX(f3,1)}function sh(){sh=F,mb=new tX(f3,0),y1=new tX(s3,1)}function Sf(){Sf=F,Rd=new iX(_B,0),zf=new iX("UP",1)}function lOn(){lOn=F,oQn=Ce((RE(),S(T(uQn,1),G,549,0,[GK])))}function aOn(n){var e;return e=new zE(Qb(n.length)),eY(e,n),e}function dOn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function p2e(n,e){return Zxn(n,e)?(W$n(n),!0):!1}function dl(n,e){if(e==null)throw M(new ip);return F8e(n,e)}function Q7(n,e){var t;t=n.q.getHours(),n.q.setDate(e),G5(n,t)}function rJ(n,e,t){var i;i=n.Ih(e),i>=0?n.bi(i,t):ten(n,e,t)}function bOn(n,e){var t;return t=n.Ih(e),t>=0?n.Wh(t):hF(n,e)}function wOn(n,e){var t;for(Se(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function DN(n,e,t){var i;i=vFn(n,e,t),n.b=new ET(i.c.length)}function Ag(n,e,t){$M(),n&&Xe(yU,n,e),n&&Xe(hE,n,t)}function m2e(n,e){return VC(),_n(),u(e.a,17).a0}function cJ(n){var e;return e=n.d,e=n.bj(n.f),ve(n,e),e.Ob()}function gOn(n,e){var t;return t=new fW(e),_Kn(t,n),new _u(t)}function y2e(n){if(n.p!=0)throw M(new Cu);return M6(n.f,0)}function j2e(n){if(n.p!=0)throw M(new Cu);return M6(n.k,0)}function pOn(n){return n.Db>>16!=7?null:u(n.Cb,241)}function D4(n){return n.Db>>16!=6?null:u(n.Cb,241)}function mOn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function At(n){return n.Db>>16!=11?null:u(n.Cb,27)}function Gb(n){return n.Db>>16!=17?null:u(n.Cb,29)}function vOn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function uJ(n){var e;return ea(n),e=new ni,ut(n,new M9n(e))}function kOn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function E2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),G5(n,t)}function yOn(n,e){xC(this),this.f=e,this.g=n,MM(this),this.je()}function jOn(n,e){this.a=n,this.c=Ki(this.a),this.b=new PM(e)}function EOn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new _u(t))}function COn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new _u(t))}function MOn(n){this.a=n,this.b=K(Sie,J,2043,n.e.length,0,2)}function TOn(){this.a=new ih,this.e=new ni,this.g=0,this.i=0}function $M(){$M=F,yU=new de,hE=new de,ple(MQn,new wvn)}function AOn(){AOn=F,aie=Pu(new ii,(Vi(),zr),(tr(),bj))}function oJ(){oJ=F,die=Pu(new ii,(Vi(),zr),(tr(),bj))}function SOn(){SOn=F,wie=Pu(new ii,(Vi(),zr),(tr(),bj))}function POn(){POn=F,Lie=Re(new ii,(Vi(),zr),(tr(),x8))}function ko(){ko=F,xie=Re(new ii,(Vi(),zr),(tr(),x8))}function IOn(){IOn=F,Fie=Re(new ii,(Vi(),zr),(tr(),x8))}function NN(){NN=F,Hie=Re(new ii,(Vi(),zr),(tr(),x8))}function J6(n,e,t,i,r,c){return new ml(n.e,e,n.Lj(),t,i,r,c)}function Dr(n,e,t){return e==null?Vc(n.f,null,t):$0(n.i,e,t)}function Zi(n,e){n.c&&du(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function $i(n,e){n.c&&du(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function ic(n,e){n.i&&du(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Ii(n,e){n.d&&du(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function $N(n,e){n.a&&du(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function xN(n,e){n.b&&du(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function OOn(n,e){$we(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68).b}function C2e(n,e){return bt(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}function M2e(n,e){return bt(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}function T2e(n){return Y$(),_n(),u(n.a,86).d.e!=0}function xM(n,e){O(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,e)}function FN(n,e){O(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,e)}function A2e(n,e){LY(n,e),O(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2)}function S2e(n,e){var t,i;t=e.c,i=t!=null,i&&Ip(n,new qb(e.c))}function DOn(n){var e,t;return t=(o4(),e=new Jd,e),K4(t,n),t}function LOn(n){var e,t;return t=(o4(),e=new Jd,e),K4(t,n),t}function NOn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function P2e(n,e,t){return nn(n.a,(yM(),Nx(e,t),new i0(e,t))),n}function $c(n,e){return dr(),a$(e)?new eM(e,n):new j7(e,n)}function Y7(n){return dh(),Ec(n,0)>=0?ta(n):G6(ta(n1(n)))}function I2e(n){var e;return e=u(ZC(n.b),9),new _o(n.a,e,n.c)}function $On(n,e){var t;return t=u(tw(Dp(n.a),e),16),t?t.gc():0}function xOn(n,e,t){var i;oBn(e,t,n.c.length),i=t-e,Pz(n.c,e,i)}function Jl(n,e,t){oBn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Np(n){this.c=new Ct,this.b=n.b,this.d=n.c,this.a=n.a}function BN(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function ed(n,e,t,i){this.c=n,this.d=i,$N(this,e),xN(this,t)}function sJ(n,e){Xfe.call(this,new ap(Qb(n))),Co(e,Ozn),this.a=e}function FOn(n,e,t){return new rF(n,(B4(),t_),null,!1,e,t)}function BOn(n,e,t){return new rF(n,(B4(),r_),e,t,null,!1)}function O2e(){return Gu(),S(T(xr,1),G,108,0,[xun,Yr,Aw])}function D2e(){return bu(),S(T(JQn,1),G,472,0,[vf,pa,zs])}function L2e(){return Uu(),S(T(VQn,1),G,471,0,[Mh,ga,Gs])}function N2e(){return bf(),S(T(Sw,1),G,237,0,[bc,Wc,wc])}function $2e(){return i5(),S(T(Pon,1),G,391,0,[E_,j_,C_])}function x2e(){return D0(),S(T(R_,1),G,372,0,[ub,ma,cb])}function F2e(){return u5(),S(T(Psn,1),G,322,0,[B8,pj,Ssn])}function B2e(){return bT(),S(T(Osn,1),G,351,0,[Isn,VP,W_])}function R2e(){return hd(),S(T(pne,1),G,460,0,[Y_,mv,p2])}function K2e(){return Z4(),S(T(sH,1),G,299,0,[uH,oH,mj])}function _2e(){return vl(),S(T(Mne,1),G,311,0,[vj,v2,E3])}function H2e(){return g5(),S(T(Lhn,1),G,390,0,[FH,Dhn,MI])}function q2e(){return gr(),S(T(cie,1),G,463,0,[n9,Vu,Jc])}function U2e(){return ST(),S(T(zhn,1),G,387,0,[Uhn,zH,Ghn])}function G2e(){return d5(),S(T(Xhn,1),G,349,0,[VH,XH,Ij])}function z2e(){return om(),S(T(Whn,1),G,350,0,[WH,Vhn,e9])}function X2e(){return dT(),S(T(Yhn,1),G,352,0,[Qhn,JH,Jhn])}function V2e(){return DT(),S(T(Zhn,1),G,388,0,[QH,Ov,Gw])}function W2e(){return O0(),S(T(Tie,1),G,464,0,[Oj,t9,PI])}function Pf(n){return cc(S(T(Ei,1),J,8,0,[n.i.n,n.n,n.a]))}function J2e(){return b5(),S(T(gln,1),G,392,0,[wln,nq,Lj])}function ROn(){ROn=F,Fre=Pu(new ii,(Qp(),u9),(q5(),uln))}function FM(){FM=F,dq=new uX("DFS",0),Fln=new uX("BFS",1)}function KOn(n,e,t){var i;i=new E3n,i.b=e,i.a=t,++e.b,nn(n.d,i)}function Q2e(n,e,t){var i;i=new rr(t.d),tt(i,n),DY(e,i.a,i.b)}function Y2e(n,e){LTn(n,Ae(vi(w0(e,24),YA)),Ae(vi(e,YA)))}function zb(n,e){if(n<0||n>e)throw M(new Ir(Ptn+n+Itn+e))}function Ln(n,e){if(n<0||n>=e)throw M(new Ir(Ptn+n+Itn+e))}function zn(n,e){if(n<0||n>=e)throw M(new gz(Ptn+n+Itn+e))}function In(n,e){this.b=(Jn(n),n),this.a=e&vw?e:e|64|wh}function fJ(n){var e;return ea(n),e=(j0(),j0(),ZK),fT(n,e)}function Z2e(n,e,t){var i;return i=V5(n,e,!1),i.b<=e&&i.a<=t}function npe(){return nT(),S(T(O1n,1),G,439,0,[xq,I1n,P1n])}function epe(){return _T(),S(T(a1n,1),G,394,0,[l1n,Oq,h1n])}function tpe(){return XT(),S(T(f1n,1),G,445,0,[Bj,qI,Mq])}function ipe(){return rA(),S(T(bce,1),G,456,0,[Tq,Sq,Aq])}function rpe(){return Ok(),S(T(Uln,1),G,393,0,[KI,Hln,qln])}function cpe(){return AT(),S(T(s1n,1),G,300,0,[Cq,o1n,u1n])}function upe(){return jl(),S(T(ldn,1),G,346,0,[uO,M1,M9])}function ope(){return Fk(),S(T(Fq,1),G,444,0,[XI,VI,WI])}function spe(){return Nf(),S(T(Zan,1),G,278,0,[Bv,Jw,Rv])}function fpe(){return Gp(),S(T(mdn,1),G,280,0,[pdn,Yw,aO])}function T0(n){return Se(n),O(n,16)?new _u(u(n,16)):y4(n.Kc())}function hJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return Q1(ewe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hf(n,e){return Q1(twe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function RN(n,e){return Q1(iwe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hpe(n,e){var t;return t=(Jn(n),n).g,rV(!!t),Jn(e),t(e)}function _On(n,e){var t,i;return i=C4(n,e),t=n.a.fd(i),new zEn(n,t)}function lpe(n){return n.Db>>16!=6?null:u(dF(n),241)}function ape(n){if(n.p!=2)throw M(new Cu);return Ae(n.f)&ui}function dpe(n){if(n.p!=2)throw M(new Cu);return Ae(n.k)&ui}function E(n){return oe(n.ai?1:0}function GOn(n,e){var t,i;return t=s$(e),i=t,u(ee(n.c,i),17).a}function KN(n,e,t){var i;i=n.d[e.p],n.d[e.p]=n.d[t.p],n.d[t.p]=i}function Cpe(n,e,t){var i;n.n&&e&&t&&(i=new uvn,nn(n.e,i))}function _N(n,e){if(fi(n.a,e),e.d)throw M(new ec(nXn));e.d=n}function dJ(n,e){this.a=new Z,this.d=new Z,this.f=n,this.c=e}function zOn(){this.c=new PTn,this.a=new $Ln,this.b=new Xyn,lCn()}function XOn(){qp(),this.b=new de,this.a=new de,this.c=new Z}function VOn(n,e,t){this.d=n,this.j=e,this.e=t,this.o=-1,this.p=3}function WOn(n,e,t){this.d=n,this.k=e,this.f=t,this.o=-1,this.p=5}function JOn(n,e,t,i,r,c){dQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function QOn(n,e,t,i,r,c){bQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function YOn(n,e,t,i,r,c){OJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function ZOn(n,e,t,i,r,c){pQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function nDn(n,e,t,i,r,c){DJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function eDn(n,e,t,i,r,c){wQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function tDn(n,e,t,i,r,c){gQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function iDn(n,e,t,i,r,c){LJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function rDn(n,e,t,i){LE.call(this,t),this.b=n,this.c=e,this.d=i}function cDn(n,e){this.f=n,this.a=($4(),MO),this.c=MO,this.b=e}function uDn(n,e){this.g=n,this.d=($4(),TO),this.a=TO,this.b=e}function bJ(n,e){!n.c&&(n.c=new Rt(n,0)),HA(n.c,(at(),F9),e)}function Mpe(n,e){return oMe(n,e,O(e,102)&&(u(e,19).Bb&hr)!=0)}function Tpe(n,e){return KPn(vc(n.q.getTime()),vc(e.q.getTime()))}function oDn(n){return XL(n.e.Rd().gc()*n.c.Rd().gc(),16,new O8n(n))}function Ape(n){return!!n.u&&Sc(n.u.a).i!=0&&!(n.n&&Ix(n.n))}function Spe(n){return!!n.a&&no(n.a.a).i!=0&&!(n.b&&Ox(n.b))}function wJ(n,e){return e==0?!!n.o&&n.o.f!=0:Cx(n,e)}function Ppe(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Hc(t)}function sDn(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Mc(t)}function fDn(n,e){var t;return t=1-e,n.a[t]=jT(n.a[t],t),jT(n,e)}function hDn(n,e){var t,i;return i=vi(n,mr),t=Fs(e,32),hf(t,i)}function lDn(n,e,t){var i;i=(Se(n),new _u(n)),O7e(new EOn(i,e,t))}function Z7(n,e,t){var i;i=(Se(n),new _u(n)),D7e(new COn(i,e,t))}function fc(n,e,t,i,r,c){return Hxn(n,e,t,c),CY(n,i),MY(n,r),n}function aDn(n,e,t,i){return n.a+=""+qo(e==null?gu:Jr(e),t,i),n}function xi(n,e){this.a=n,Xv.call(this,n),zb(e,n.gc()),this.b=e}function dDn(n){this.a=K(ki,Fn,1,QQ(y.Math.max(8,n))<<1,5,1)}function nk(n){return u(xf(n,K(Qh,b1,10,n.c.length,0,1)),199)}function fh(n){return u(xf(n,K(O_,rR,18,n.c.length,0,1)),483)}function bDn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function Q6(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function wDn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function Ipe(n,e,t){n.a=e,n.c=t,n.b.a.$b(),vo(n.d),Pb(n.e.a.c,0)}function gDn(n,e){var t;n.e=new uz,t=aw(e),Yt(t,n.c),Iqn(n,t,0)}function ri(n,e,t,i){var r;r=new nG,r.a=e,r.b=t,r.c=i,xe(n.a,r)}function Q(n,e,t,i){var r;r=new nG,r.a=e,r.b=t,r.c=i,xe(n.b,r)}function pDn(n,e,t){if(n<0||et)throw M(new Ir(qje(n,e,t)))}function ek(n,e){if(n<0||n>=e)throw M(new Ir(kEe(n,e)));return n}function Ope(n){if(!("stack"in n))try{throw n}catch{}return n}function Sg(n){return s6(),O(n.g,10)?u(n.g,10):null}function Dpe(n){return Tg(n).dc()?!1:(e1e(n,new Pr),!0)}function id(n){var e;return Vr(n)?(e=n,e==-0?0:e):X4e(n)}function mDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function vDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function kDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function gJ(n){var e;return z1(n),e=new L0n,hg(n.a,new j9n(e)),e}function pJ(){var n,e,t;return e=(t=(n=new Jd,n),t),nn(n0n,e),e}function BM(n){var e;return z1(n),e=new N0n,hg(n.a,new E9n(e)),e}function Lpe(n,e){return n.a<=n.b?(e.Dd(n.a++),!0):!1}function yDn(n){P$.call(this,n,(B4(),e_),null,!1,null,!1)}function jDn(){jDn=F,SYn=Ce((YE(),S(T(oon,1),G,489,0,[b_])))}function EDn(){EDn=F,eln=wIn(Y(1),Y(4)),nln=wIn(Y(1),Y(2))}function Npe(n,e){return new _L(e,N6(Ki(e.e),n,n),(_n(),!0))}function RM(n){return new Gc((Co(n,cB),oT(nr(nr(5,n),n/10|0))))}function $pe(n){return XL(n.e.Rd().gc()*n.c.Rd().gc(),273,new I8n(n))}function CDn(n){return u(xf(n,K(FZn,DXn,12,n.c.length,0,1)),2042)}function xpe(n){return ko(),!fr(n)&&!(!fr(n)&&n.c.i.c==n.d.i.c)}function Fpe(n,e){return _p(),u(v(e,(lc(),I2)),17).a>=n.gc()}function Y6(n,e){vLe(e,n),JV(n.d),JV(u(v(n,(cn(),mI)),214))}function HN(n,e){kLe(e,n),QV(n.d),QV(u(v(n,(cn(),mI)),214))}function Bpe(n,e,t){n.d&&du(n.d.e,n),n.d=e,n.d&&b0(n.d.e,t,n)}function Rpe(n,e,t){return t.f.c.length>0?MW(n.a,e,t):MW(n.b,e,t)}function Kpe(n,e,t){var i;i=i9e();try{return Aae(n,e,t)}finally{D3e(i)}}function A0(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.pe()),i}function Z6(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.se()),i}function L4(n,e){var t,i;return t=Jb(n,e),i=null,t&&(i=t.se()),i}function bl(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=gnn(t)),i}function _pe(n,e,t){var i;return i=wm(t),FA(n.g,i,e),FA(n.i,e,t),e}function mJ(n,e,t){this.d=new $7n(this),this.e=n,this.i=e,this.f=t}function MDn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function TDn(n,e,t,i){ETn(this),this.c=n,this.e=e,this.f=t,this.b=i}function vJ(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function ADn(n,e,t,i){return O(t,59)?new iAn(n,e,t,i):new vW(n,e,t,i)}function N4(n){return O(n,16)?u(n,16).dc():!n.Kc().Ob()}function SDn(n){if(n.e.g!=n.b)throw M(new Bo);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function kJ(n,e){Jn(e),$t(n.a,n.c,e),n.c=n.c+1&n.a.length-1,JRn(n)}function V1(n,e){Jn(e),n.b=n.b-1&n.a.length-1,$t(n.a,n.b,e),JRn(n)}function PDn(n){var e;e=n.Gh(),this.a=O(e,71)?u(e,71).Ii():e.Kc()}function Hpe(n){return new In(Ame(u(n.a.md(),16).gc(),n.a.ld()),16)}function IDn(){IDn=F,Gce=Ce((eC(),S(T($1n,1),G,490,0,[Bq])))}function ODn(){ODn=F,Xce=Ce((tC(),S(T(zce,1),G,558,0,[Rq])))}function DDn(){DDn=F,lue=Ce((f6(),S(T(tan,1),G,539,0,[Hj])))}function qpe(){return dd(),S(T(Lon,1),G,389,0,[Ow,Don,P_,I_])}function Upe(){return B4(),S(T(lP,1),G,304,0,[e_,t_,i_,r_])}function Gpe(){return Vp(),S(T(EYn,1),G,332,0,[uj,cj,oj,sj])}function zpe(){return A5(),S(T(TYn,1),G,406,0,[fj,wP,gP,hj])}function Xpe(){return N0(),S(T(yYn,1),G,417,0,[rj,ij,a_,d_])}function Vpe(){return nm(),S(T(MZn,1),G,416,0,[rb,Iw,Pw,a2])}function Wpe(){return $f(),S(T(ene,1),G,421,0,[j3,lv,av,B_])}function Jpe(){return OT(),S(T(UZn,1),G,371,0,[F_,HP,qP,wj])}function Qpe(){return cw(),S(T(RH,1),G,203,0,[TI,BH,S2,A2])}function Ype(){return lh(),S(T(Hhn,1),G,284,0,[k1,_hn,HH,qH])}function Zpe(n){var e;return n.j==(tn(),ae)&&(e=mHn(n),Au(e,Zn))}function n3e(n,e){var t;t=e.a,Zi(t,e.c.d),Ii(t,e.d.d),nw(t.a,n.n)}function yJ(n,e){var t;return t=u(Lf(n.b,e),67),!t&&(t=new Ct),t}function xp(n){return s6(),O(n.g,154)?u(n.g,154):null}function e3e(n){n.a=null,n.e=null,Pb(n.b.c,0),Pb(n.f.c,0),n.c=null}function KM(){KM=F,fH=new Zz(qm,0),Jsn=new Zz("TOP_LEFT",1)}function n5(){n5=F,r9=new eX("UPPER",0),i9=new eX("LOWER",1)}function t3e(n,e){return vp(new V(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function LDn(n,e){return u(ho(_b(u(ot(n.k,e),15).Oc(),b2)),113)}function NDn(n,e){return u(ho(Ap(u(ot(n.k,e),15).Oc(),b2)),113)}function i3e(){return Qp(),S(T(rln,1),G,405,0,[LI,c9,u9,o9])}function r3e(){return w5(),S(T(xln,1),G,353,0,[aq,BI,lq,hq])}function c3e(){return sA(),S(T(c1n,1),G,354,0,[Eq,i1n,r1n,t1n])}function u3e(){return go(),S(T(I9,1),G,386,0,[rE,Gd,iE,Qw])}function o3e(){return To(),S(T(Yue,1),G,291,0,[nE,nl,Ta,Zj])}function s3e(){return El(),S(T(aU,1),G,223,0,[lU,Yj,Kv,F3])}function f3e(){return qT(),S(T(Cdn,1),G,320,0,[wU,ydn,Edn,jdn])}function h3e(){return LT(),S(T(woe,1),G,415,0,[gU,Tdn,Mdn,Adn])}function l3e(n){return $M(),Zc(yU,n)?u(ee(yU,n),341).Qg():null}function Uo(n,e,t){return e<0?hF(n,t):u(t,69).wk().Bk(n,n.hi(),e)}function a3e(n,e,t){var i;return i=wm(t),FA(n.j,i,e),Xe(n.k,e,t),e}function d3e(n,e,t){var i;return i=wm(t),FA(n.d,i,e),Xe(n.e,e,t),e}function $Dn(n){var e,t;return e=(B1(),t=new HO,t),n&&AA(e,n),e}function jJ(n){var e;return e=n.aj(n.i),n.i>0&&Ic(n.g,0,e,0,n.i),e}function xDn(n,e){var t;for(t=n.j.c.length;t>24}function w3e(n){if(n.p!=1)throw M(new Cu);return Ae(n.k)<<24>>24}function g3e(n){if(n.p!=7)throw M(new Cu);return Ae(n.k)<<16>>16}function p3e(n){if(n.p!=7)throw M(new Cu);return Ae(n.f)<<16>>16}function Pg(n,e){return e.e==0||n.e==0?O8:(Am(),vF(n,e))}function RDn(n,e){return x(e)===x(n)?"(this Map)":e==null?gu:Jr(e)}function m3e(n,e,t){return tN(R(Kr(wr(n.f,e))),R(Kr(wr(n.f,t))))}function v3e(n,e,t){var i;i=u(ee(n.g,t),60),nn(n.a.c,new bi(e,i))}function KDn(n,e,t){n.i=0,n.e=0,e!=t&&(jFn(n,e,t),yFn(n,e,t))}function k3e(n,e,t,i,r){var c;c=yMe(r,t,i),nn(e,dEe(r,c)),rje(n,r,e)}function EJ(n,e,t,i,r){this.i=n,this.a=e,this.e=t,this.j=i,this.f=r}function _Dn(n,e){nJ.call(this),this.a=n,this.b=e,nn(this.a.b,this)}function HDn(n){this.b=new de,this.c=new de,this.d=new de,this.a=n}function qDn(n,e){var t;return t=new lp,n.Gd(t),t.a+="..",e.Hd(t),t.a}function UDn(n,e){var t;for(t=e;t;)a0(n,t.i,t.j),t=At(t);return n}function GDn(n,e,t){var i;return i=wm(t),Xe(n.b,i,e),Xe(n.c,e,t),e}function wl(n){var e;for(e=0;n.Ob();)n.Pb(),e=nr(e,1);return oT(e)}function Fh(n,e){dr();var t;return t=u(n,69).vk(),kje(t,e),t.xl(e)}function y3e(n,e,t){if(t){var i=t.oe();n.a[e]=i(t)}else delete n.a[e]}function CJ(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+fa),G5(n,t)}function j3e(n,e){return u(e==null?Kr(wr(n.f,null)):d6(n.i,e),288)}function MJ(n,e){return n==(Vn(),zt)&&e==zt?4:n==zt||e==zt?8:32}function _M(n,e,t){return RA(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function E3e(n,e,t){return Om(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function C3e(n,e,t){return bMe(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function TJ(n){n.b!=n.c&&(n.a=K(ki,Fn,1,8,5,1),n.b=0,n.c=0)}function e5(n){return oe(n.a=0&&n.a[t]===e[t];t--);return t<0}function HM(n){var e;return n?new fW(n):(e=new ih,A$(e,n),e)}function O3e(n,e){var t,i;i=!1;do t=lFn(n,e),i=i|t;while(t);return i}function D3e(n){n&&rme((az(),sun)),--cP,n&&uP!=-1&&(Ele(uP),uP=-1)}function qM(n){nnn(),LTn(this,Ae(vi(w0(n,24),YA)),Ae(vi(n,YA)))}function JDn(){JDn=F,HQn=Ce((YT(),S(T(Bun,1),G,436,0,[o_,Fun])))}function QDn(){QDn=F,qQn=Ce((cT(),S(T(Kun,1),G,435,0,[Run,s_])))}function YDn(){YDn=F,GYn=Ce((uT(),S(T(bon,1),G,432,0,[v_,vP])))}function ZDn(){ZDn=F,_Zn=Ce((V4(),S(T(KZn,1),G,517,0,[dj,L_])))}function nLn(){nLn=F,Ane=Ce((KM(),S(T(Qsn,1),G,429,0,[fH,Jsn])))}function eLn(){eLn=F,gne=Ce((pk(),S(T($sn,1),G,428,0,[WP,Nsn])))}function tLn(){tLn=F,kne=Ce((hk(),S(T(Bsn,1),G,488,0,[Fsn,QP])))}function iLn(){iLn=F,rie=Ce((wk(),S(T(qhn,1),G,430,0,[UH,GH])))}function rLn(){rLn=F,Die=Ce((n5(),S(T(Oie,1),G,531,0,[r9,i9])))}function cLn(){cLn=F,ane=Ce((QM(),S(T(Asn,1),G,431,0,[Tsn,V_])))}function uLn(){uLn=F,xre=Ce((FM(),S(T(Bln,1),G,433,0,[dq,Fln])))}function oLn(){oLn=F,_re=Ce((yT(),S(T(Rln,1),G,501,0,[RI,D2])))}function sLn(){sLn=F,Rie=Ce((sh(),S(T(Bie,1),G,523,0,[mb,y1])))}function fLn(){fLn=F,_ie=Ce((Sf(),S(T(Kie,1),G,522,0,[Rd,zf])))}function hLn(){hLn=F,tre=Ce((lf(),S(T(ere,1),G,528,0,[zw,ja])))}function lLn(){lLn=F,fre=Ce((M0(),S(T(sre,1),G,465,0,[Ea,P2])))}function aLn(){aLn=F,Ure=Ce((ZM(),S(T(_ln,1),G,434,0,[Kln,vq])))}function dLn(){dLn=F,Rce=Ce((GM(),S(T(S1n,1),G,491,0,[$q,A1n])))}function bLn(){bLn=F,_ce=Ce((N$(),S(T(N1n,1),G,492,0,[D1n,L1n])))}function wLn(){wLn=F,Vce=Ce((ck(),S(T(x1n,1),G,438,0,[Kq,JI])))}function gLn(){gLn=F,aue=Ce((Ak(),S(T(ran,1),G,437,0,[YI,ian])))}function pLn(){pLn=F,aoe=Ce((RL(),S(T(dO,1),G,347,0,[vdn,kdn])))}function L3e(){return ci(),S(T(E9,1),G,88,0,[Wf,Xr,Br,Vf,us])}function N3e(){return tn(),S(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])}function $3e(n,e,t){return u(e==null?Vc(n.f,null,t):$0(n.i,e,t),288)}function x3e(n){return(n.k==(Vn(),zt)||n.k==Zt)&&kt(n,(W(),H8))}function XN(n){return n.c&&n.d?aJ(n.c)+"->"+aJ(n.d):"e_"+l0(n)}function qi(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function F3e(n,e){var t;t=new op,nd(t,"x",e.a),nd(t,"y",e.b),Ip(n,t)}function B3e(n,e){var t;t=new op,nd(t,"x",e.a),nd(t,"y",e.b),Ip(n,t)}function mLn(n,e){var t;for(t=e;t;)a0(n,-t.i,-t.j),t=At(t);return n}function SJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Go(n,e,t){var i;return i=(Ln(e,n.c.length),n.c[e]),n.c[e]=t,i}function PJ(n,e,t){n.a.c.length=0,fOe(n,e,t),n.a.c.length==0||xSe(n,e)}function tk(n){n.i=0,s7(n.b,null),s7(n.c,null),n.a=null,n.e=null,++n.g}function UM(){UM=F,qf=!0,DQn=!1,LQn=!1,$Qn=!1,NQn=!1}function VN(n){UM(),!qf&&(this.c=n,this.e=!0,this.a=new Z)}function vLn(n,e){this.c=0,this.b=e,HMn.call(this,n,17493),this.a=this.c}function kLn(n){jzn(),Syn(this),this.a=new Ct,sY(this,n),xe(this.a,n)}function yLn(){pL(this),this.b=new V(St,St),this.a=new V(li,li)}function GM(){GM=F,$q=new fX(cin,0),A1n=new fX("TARGET_WIDTH",1)}function Ig(n,e){return(ea(n),s4(new Tn(n,new tQ(e,n.a)))).Bd(v3)}function R3e(){return Vi(),S(T(Ion,1),G,367,0,[Xs,Jh,Oc,Kc,zr])}function K3e(){return ow(),S(T(ine,1),G,375,0,[gj,zP,XP,GP,UP])}function _3e(){return o1(),S(T(Lsn,1),G,348,0,[J_,Dsn,Q_,pv,gv])}function H3e(){return T5(),S(T($hn,1),G,323,0,[Nhn,KH,_H,Y8,Z8])}function q3e(){return Yo(),S(T(hfn,1),G,171,0,[Ej,U8,ka,G8,xw])}function U3e(){return wA(),S(T(Hre,1),G,368,0,[pq,bq,mq,wq,gq])}function G3e(){return R5(),S(T(Hce,1),G,373,0,[L2,D3,g9,w9,_j])}function z3e(){return Yk(),S(T(K1n,1),G,324,0,[F1n,_q,R1n,Hq,B1n])}function X3e(){return gf(),S(T(Zh,1),G,170,0,[xn,pi,Ph,Kd,E1])}function V3e(){return Fg(),S(T(A9,1),G,256,0,[Aa,eE,adn,T9,ddn])}function W3e(n){return HE(),function(){return Kpe(n,this,arguments)}}function fr(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function IJ(n,e){return O(e,143)?An(n.c,u(e,143).c):!1}function Zu(n){return n.t||(n.t=new myn(n),k5(new Njn(n),0,n.t)),n.t}function jLn(n){this.b=n,ne.call(this,n),this.a=u(Un(this.b.a,4),129)}function ELn(n){this.b=n,yp.call(this,n),this.a=u(Un(this.b.a,4),129)}function Bs(n,e,t,i,r){LLn.call(this,e,i,r),this.c=n,this.b=t}function OJ(n,e,t,i,r){VOn.call(this,e,i,r),this.c=n,this.a=t}function DJ(n,e,t,i,r){WOn.call(this,e,i,r),this.c=n,this.a=t}function LJ(n,e,t,i,r){LLn.call(this,e,i,r),this.c=n,this.a=t}function WN(n,e){var t;return t=u(Lf(n.d,e),23),t||u(Lf(n.e,e),23)}function CLn(n,e){var t,i;return t=e.ld(),i=n.Fe(t),!!i&&mc(i.e,e.md())}function MLn(n,e){var t;return t=e.ld(),new i0(t,n.e.pc(t,u(e.md(),16)))}function J3e(n,e){var t;return t=n.a.get(e),t??K(ki,Fn,1,0,5,1)}function TLn(n){var e;return e=n.length,An(Yn.substr(Yn.length-e,e),n)}function fe(n){if(pe(n))return n.c=n.a,n.a.Pb();throw M(new nc)}function NJ(n,e){return e==0||n.e==0?n:e>0?wqn(n,e):RBn(n,-e)}function Fp(n,e){return e==0||n.e==0?n:e>0?RBn(n,e):wqn(n,-e)}function $J(n){ole.call(this,n==null?gu:Jr(n),O(n,82)?u(n,82):null)}function ALn(n){var e;return n.c||(e=n.r,O(e,90)&&(n.c=u(e,29))),n.c}function JN(n){var e;return e=new E0,Ur(e,n),U(e,(cn(),Fr),null),e}function SLn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Vn(),Zt)&&t.k==Zt}function QN(n){var e,t,i;return e=n&ro,t=n>>22&ro,i=n<0?Il:0,Yc(e,t,i)}function Q3e(n){var e,t,i,r;for(t=n,i=0,r=t.length;i=0?n.Lh(i,t,!0):H0(n,e,t)}function Z3e(n,e,t){return bt(vp(pm(n),Ki(e.b)),vp(pm(n),Ki(t.b)))}function n4e(n,e,t){return bt(vp(pm(n),Ki(e.e)),vp(pm(n),Ki(t.e)))}function e4e(n,e){return y.Math.min(W1(e.a,n.d.d.c),W1(e.b,n.d.d.c))}function ik(n,e){n._i(n.i+1),O6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function t5(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function PLn(n,e,t){var i;i=new NX(n.a),f5(i,n.a.a),Vc(i.f,e,t),n.a.a=i}function xJ(n,e,t,i){var r;for(r=0;re)throw M(new Ir(Mnn(n,e,"index")));return n}function Yl(n,e){var t;return t=(Ln(e,n.c.length),n.c[e]),Pz(n.c,e,1),t}function RJ(n,e){var t,i;return t=(Jn(n),n),i=(Jn(e),e),t==i?0:te.p?-1:0}function FLn(n){var e;return n.a||(e=n.r,O(e,156)&&(n.a=u(e,156))),n.a}function o4e(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].gd(t),136),i.md()}function s4e(n){var e,t;return e=n.ld(),t=u(n.md(),16),x7(t.Nc(),new L8n(e))}function BLn(n,e){return Zc(n.a,e)?(Bp(n.a,e),!0):!1}function Rp(n,e,t){return ek(e,n.e.Rd().gc()),ek(t,n.c.Rd().gc()),n.a[e][t]}function XM(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function VM(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function rk(){this.b=new Ct,this.a=new Ct,this.b=new Ct,this.a=new Ct}function $4(){$4=F;var n,e;MO=(o4(),e=new xE,e),TO=(n=new fD,n)}function f4e(n){var e;return ea(n),e=new ISn(n,n.a.e,n.a.d|4),new uV(n,e)}function RLn(n){var e;for(z1(n),e=0;n.a.Bd(new W0n);)e=nr(e,1);return e}function WM(n,e){return Jn(e),n.c=0,"Initial capacity must not be negative")}function JM(){JM=F,p9=new lt("org.eclipse.elk.labels.labelManager")}function KLn(){KLn=F,ysn=new Dt("separateLayerConnections",(OT(),F_))}function lf(){lf=F,zw=new rX("REGULAR",0),ja=new rX("CRITICAL",1)}function ck(){ck=F,Kq=new lX("FIXED",0),JI=new lX("CENTER_NODE",1)}function QM(){QM=F,Tsn=new Jz("QUADRATIC",0),V_=new Jz("SCANLINE",1)}function _Ln(){_Ln=F,dne=Ce((u5(),S(T(Psn,1),G,322,0,[B8,pj,Ssn])))}function HLn(){HLn=F,bne=Ce((bT(),S(T(Osn,1),G,351,0,[Isn,VP,W_])))}function qLn(){qLn=F,fne=Ce((D0(),S(T(R_,1),G,372,0,[ub,ma,cb])))}function ULn(){ULn=F,mne=Ce((hd(),S(T(pne,1),G,460,0,[Y_,mv,p2])))}function GLn(){GLn=F,Cne=Ce((Z4(),S(T(sH,1),G,299,0,[uH,oH,mj])))}function zLn(){zLn=F,Tne=Ce((vl(),S(T(Mne,1),G,311,0,[vj,v2,E3])))}function XLn(){XLn=F,Zte=Ce((g5(),S(T(Lhn,1),G,390,0,[FH,Dhn,MI])))}function VLn(){VLn=F,oie=Ce((ST(),S(T(zhn,1),G,387,0,[Uhn,zH,Ghn])))}function WLn(){WLn=F,sie=Ce((d5(),S(T(Xhn,1),G,349,0,[VH,XH,Ij])))}function JLn(){JLn=F,uie=Ce((gr(),S(T(cie,1),G,463,0,[n9,Vu,Jc])))}function QLn(){QLn=F,fie=Ce((om(),S(T(Whn,1),G,350,0,[WH,Vhn,e9])))}function YLn(){YLn=F,hie=Ce((dT(),S(T(Yhn,1),G,352,0,[Qhn,JH,Jhn])))}function ZLn(){ZLn=F,lie=Ce((DT(),S(T(Zhn,1),G,388,0,[QH,Ov,Gw])))}function nNn(){nNn=F,are=Ce((b5(),S(T(gln,1),G,392,0,[wln,nq,Lj])))}function eNn(){eNn=F,Gre=Ce((Ok(),S(T(Uln,1),G,393,0,[KI,Hln,qln])))}function tNn(){tNn=F,ace=Ce((AT(),S(T(s1n,1),G,300,0,[Cq,o1n,u1n])))}function iNn(){iNn=F,dce=Ce((XT(),S(T(f1n,1),G,445,0,[Bj,qI,Mq])))}function rNn(){rNn=F,wce=Ce((rA(),S(T(bce,1),G,456,0,[Tq,Sq,Aq])))}function cNn(){cNn=F,mce=Ce((_T(),S(T(a1n,1),G,394,0,[l1n,Oq,h1n])))}function uNn(){uNn=F,Kce=Ce((nT(),S(T(O1n,1),G,439,0,[xq,I1n,P1n])))}function oNn(){oNn=F,Aie=Ce((O0(),S(T(Tie,1),G,464,0,[Oj,t9,PI])))}function sNn(){sNn=F,WQn=Ce((Uu(),S(T(VQn,1),G,471,0,[Mh,ga,Gs])))}function fNn(){fNn=F,XQn=Ce((bf(),S(T(Sw,1),G,237,0,[bc,Wc,wc])))}function hNn(){hNn=F,QQn=Ce((bu(),S(T(JQn,1),G,472,0,[vf,pa,zs])))}function lNn(){lNn=F,xQn=Ce((Gu(),S(T(xr,1),G,108,0,[xun,Yr,Aw])))}function aNn(){aNn=F,pZn=Ce((i5(),S(T(Pon,1),G,391,0,[E_,j_,C_])))}function dNn(){dNn=F,Que=Ce((jl(),S(T(ldn,1),G,346,0,[uO,M1,M9])))}function bNn(){bNn=F,Uce=Ce((Fk(),S(T(Fq,1),G,444,0,[XI,VI,WI])))}function wNn(){wNn=F,Xue=Ce((Nf(),S(T(Zan,1),G,278,0,[Bv,Jw,Rv])))}function gNn(){gNn=F,loe=Ce((Gp(),S(T(mdn,1),G,280,0,[pdn,Yw,aO])))}function Df(n,e){return!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),wx(n.o,e)}function h4e(n,e){var t;n.C&&(t=u(Cr(n.b,e),127).n,t.d=n.C.d,t.a=n.C.a)}function UJ(n){var e,t,i,r;r=n.d,e=n.a,t=n.b,i=n.c,n.d=t,n.a=i,n.b=r,n.c=e}function l4e(n){return!n.g&&(n.g=new CE),!n.g.b&&(n.g.b=new byn(n)),n.g.b}function uk(n){return!n.g&&(n.g=new CE),!n.g.c&&(n.g.c=new pyn(n)),n.g.c}function a4e(n){return!n.g&&(n.g=new CE),!n.g.d&&(n.g.d=new wyn(n)),n.g.d}function d4e(n){return!n.g&&(n.g=new CE),!n.g.a&&(n.g.a=new gyn(n)),n.g.a}function b4e(n,e,t,i){return t&&(i=t.Rh(e,Ot(t.Dh(),n.c.uk()),null,i)),i}function w4e(n,e,t,i){return t&&(i=t.Th(e,Ot(t.Dh(),n.c.uk()),null,i)),i}function e$(n,e,t,i){var r;return r=K(ye,Ke,28,e+1,15,1),vPe(r,n,e,t,i),r}function K(n,e,t,i,r,c){var s;return s=_Rn(r,i),r!=10&&S(T(n,c),e,t,r,s),s}function g4e(n,e,t){var i,r;for(r=new Y4(e,n),i=0;it||e=0?n.Lh(t,!0,!0):H0(n,e,!0)}function L4e(n,e,t){var i;return i=vFn(n,e,t),n.b=new ET(i.c.length),den(n,i)}function N4e(n){if(n.b<=0)throw M(new nc);return--n.b,n.a-=n.c.c,Y(n.a)}function $4e(n){var e;if(!n.a)throw M(new PIn);return e=n.a,n.a=At(n.a),e}function x4e(n){for(;!n.a;)if(!eSn(n.c,new C9n(n)))return!1;return!0}function Kp(n){var e;return Se(n),O(n,204)?(e=u(n,204),e):new _8n(n)}function F4e(n){YM(),u(n.of((qe(),Ww)),181).Fc((zu(),tE)),n.qf(sU,null)}function YM(){YM=F,wue=new Emn,pue=new Cmn,gue=M6e((qe(),sU),wue,Ma,pue)}function ZM(){ZM=F,Kln=new sX("LEAF_NUMBER",0),vq=new sX("NODE_SIZE",1)}function u$(n){n.a=K(ye,Ke,28,n.b+1,15,1),n.c=K(ye,Ke,28,n.b,15,1),n.d=0}function B4e(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new GV(e.c,e.d,n.d)),n.b=e.d)}function nQ(n,e){if(n.g==null||e>=n.i)throw M(new aL(e,n.i));return n.g[e]}function kNn(n,e,t){if(rm(n,t),t!=null&&!n.fk(t))throw M(new uD);return t}function o$(n,e){return gk(e)!=10&&S(wo(e),e.Sm,e.__elementTypeId$,gk(e),n),n}function F4(n,e,t,i){var r;i=(j0(),i||Pun),r=n.slice(e,t),Tnn(r,n,e,t,-e,i)}function zo(n,e,t,i,r){return e<0?H0(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function R4e(n,e){return bt($(R(v(n,(W(),fb)))),$(R(v(e,fb))))}function yNn(){yNn=F,IQn=Ce((B4(),S(T(lP,1),G,304,0,[e_,t_,i_,r_])))}function B4(){B4=F,e_=new uC("All",0),t_=new lTn,i_=new kTn,r_=new hTn}function Uu(){Uu=F,Mh=new FD(s3,0),ga=new FD(qm,1),Gs=new FD(f3,2)}function jNn(){jNn=F,KA(),s0n=St,mse=li,f0n=new V9(St),vse=new V9(li)}function ENn(){ENn=F,jYn=Ce((N0(),S(T(yYn,1),G,417,0,[rj,ij,a_,d_])))}function CNn(){CNn=F,AYn=Ce((A5(),S(T(TYn,1),G,406,0,[fj,wP,gP,hj])))}function MNn(){MNn=F,CYn=Ce((Vp(),S(T(EYn,1),G,332,0,[uj,cj,oj,sj])))}function TNn(){TNn=F,DZn=Ce((dd(),S(T(Lon,1),G,389,0,[Ow,Don,P_,I_])))}function ANn(){ANn=F,TZn=Ce((nm(),S(T(MZn,1),G,416,0,[rb,Iw,Pw,a2])))}function SNn(){SNn=F,tne=Ce(($f(),S(T(ene,1),G,421,0,[j3,lv,av,B_])))}function PNn(){PNn=F,GZn=Ce((OT(),S(T(UZn,1),G,371,0,[F_,HP,qP,wj])))}function INn(){INn=F,nie=Ce((cw(),S(T(RH,1),G,203,0,[TI,BH,S2,A2])))}function ONn(){ONn=F,iie=Ce((lh(),S(T(Hhn,1),G,284,0,[k1,_hn,HH,qH])))}function hk(){hk=F,Fsn=new Yz(kh,0),QP=new Yz("IMPROVE_STRAIGHTNESS",1)}function DNn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Rp(n,i,t)}function LNn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)L(n,e);return jJ(n)}function eQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function NNn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function K4e(n){return O(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function _4e(n){return O(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function $Nn(n,e){if(e.a)throw M(new ec(nXn));fi(n.a,e),e.a=n,!n.j&&(n.j=e)}function tQ(n,e){IC.call(this,e.zd(),e.yd()&-16449),Jn(n),this.a=n,this.c=e}function H4e(n,e){return new _L(e,a0(Ki(e.e),e.f.a+n,e.f.b+n),(_n(),!1))}function q4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function U4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function xNn(){xNn=F,lce=Ce((sA(),S(T(c1n,1),G,354,0,[Eq,i1n,r1n,t1n])))}function FNn(){FNn=F,$re=Ce((w5(),S(T(xln,1),G,353,0,[aq,BI,lq,hq])))}function BNn(){BNn=F,hre=Ce((Qp(),S(T(rln,1),G,405,0,[LI,c9,u9,o9])))}function RNn(){RNn=F,Vue=Ce((El(),S(T(aU,1),G,223,0,[lU,Yj,Kv,F3])))}function KNn(){KNn=F,Zue=Ce((To(),S(T(Yue,1),G,291,0,[nE,nl,Ta,Zj])))}function _Nn(){_Nn=F,foe=Ce((go(),S(T(I9,1),G,386,0,[rE,Gd,iE,Qw])))}function HNn(){HNn=F,doe=Ce((qT(),S(T(Cdn,1),G,320,0,[wU,ydn,Edn,jdn])))}function qNn(){qNn=F,goe=Ce((LT(),S(T(woe,1),G,415,0,[gU,Tdn,Mdn,Adn])))}function nT(){nT=F,xq=new oL(mVn,0),I1n=new oL(Crn,1),P1n=new oL(kh,2)}function Wb(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new AW(n,e,i)}function UNn(n,e){var t;return t=u(Bp(n.e,e),400),t?(tW(t),t.e):null}function du(n,e){var t;return t=qr(n,e,0),t==-1?!1:(Yl(n,t),!0)}function GNn(n,e,t){var i;return z1(n),i=new LO,i.a=e,n.a.Nb(new TCn(i,t)),i.a}function G4e(n){var e;return z1(n),e=K(Pi,Tr,28,0,15,1),hg(n.a,new y9n(e)),e}function iQ(n){var e;if(!E$(n))throw M(new nc);return n.e=1,e=n.d,n.d=null,e}function n1(n){var e;return Vr(n)&&(e=0-n,!isNaN(e))?e:Q1(tm(n))}function qr(n,e,t){for(;t=0?tA(n,t,!0,!0):H0(n,e,!0)}function cQ(n){var e;return e=cd(Un(n,32)),e==null&&(iu(n),e=cd(Un(n,32))),e}function uQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function QNn(n,e){con=new kE,MYn=e,L8=n,u(L8.b,68),XJ(L8,con,null),aGn(L8)}function i5(){i5=F,E_=new RD("XY",0),j_=new RD("X",1),C_=new RD("Y",2)}function bu(){bu=F,vf=new BD("TOP",0),pa=new BD(qm,1),zs=new BD(Ftn,2)}function vl(){vl=F,vj=new GD(kh,0),v2=new GD("TOP",1),E3=new GD(Ftn,2)}function wk(){wk=F,UH=new nX("INPUT_ORDER",0),GH=new nX("PORT_DEGREE",1)}function R4(){R4=F,hun=Yc(ro,ro,524287),bQn=Yc(0,0,Ty),lun=QN(1),QN(2),aun=QN(0)}function a$(n){var e;return n.d!=n.r&&(e=ws(n),n.e=!!e&&e.lk()==bJn,n.d=e),n.e}function d$(n,e,t){var i;return i=n.g[e],O6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function rT(n,e){var t;return t=n.dd(e),t>=0?(n.gd(t),!0):!1}function b$(n,e){var t;for(Se(n),Se(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Lf(n,e){var t;return t=u(ee(n.e,e),400),t?(DTn(n,t),t.e):null}function YNn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function Jb(n,e){var t=n.a[e],i=(K$(),WK)[typeof t];return i?i(t):wY(typeof t)}function rc(n,e){var t,i;return ea(n),i=new _J(e,n.a),t=new rSn(i),new Tn(n,t)}function w$(n){var e;return e=n.b.c.length==0?null:sn(n.b,0),e!=null&&M$(n,0),e}function W4e(n,e){var t,i,r;r=e.c.i,t=u(ee(n.f,r),60),i=t.d.c-t.e.c,BQ(e.a,i,0)}function oQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t0&&arguments[0]!==void 0?arguments[0]:{},Yi=ze.defaultLayoutOptions,Ri=Yi===void 0?{}:Yi,En=ze.algorithms,hu=En===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:En,Qc=ze.workerFactory,Ru=ze.workerUrl;if(y(this,Ht),this.defaultLayoutOptions=Ri,this.initialized=!1,typeof Ru>"u"&&typeof Qc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Pr=Qc;typeof Ru<"u"&&typeof Qc>"u"&&(Pr=function(N1){return new Worker(N1)});var Cf=Pr(Ru);if(typeof Cf.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Bu(Cf),this.worker.postMessage({cmd:"register",algorithms:hu}).then(function(L1){return Jt.initialized=!0}).catch(console.err)}return Di(Ht,[{key:"layout",value:function(ze){var Yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ri=Yi.layoutOptions,En=Ri===void 0?this.defaultLayoutOptions:Ri,hu=Yi.logging,Qc=hu===void 0?!1:hu,Ru=Yi.measureExecutionTime,Pr=Ru===void 0?!1:Ru;return ze?this.worker.postMessage({cmd:"layout",graph:ze,layoutOptions:En,options:{logging:Qc,measureExecutionTime:Pr}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}]),Ht}();Sr.default=Wt;var Bu=function(){function Ht(Jt){var ze=this;if(y(this,Ht),Jt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Jt,this.worker.onmessage=function(Yi){setTimeout(function(){ze.receive(ze,Yi)},0)}}return Di(Ht,[{key:"postMessage",value:function(ze){var Yi=this.id||0;this.id=Yi+1,ze.id=Yi;var Ri=this;return new Promise(function(En,hu){Ri.resolvers[Yi]=function(Qc,Ru){Qc?(Ri.convertGwtStyleError(Qc),hu(Qc)):En(Ru)},Ri.worker.postMessage(ze)})}},{key:"receive",value:function(ze,Yi){var Ri=Yi.data,En=ze.resolvers[Ri.id];En&&(delete ze.resolvers[Ri.id],Ri.error?En(Ri.error):En(null,Ri.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(ze){if(ze){var Yi=ze.__java$exception;Yi&&(Yi.cause&&Yi.cause.backingJsObject&&(ze.cause=Yi.cause.backingJsObject,this.convertGwtStyleError(ze.cause)),delete ze.__java$exception)}}}]),Ht}()},{}],2:[function(Xt,gt,Sr){(function(Di){(function(){var y;typeof window<"u"?y=window:typeof Di<"u"?y=Di:typeof self<"u"&&(y=self);var Wt;function Bu(){}function Ht(){}function Jt(){}function ze(){}function Yi(){}function Ri(){}function En(){}function hu(){}function Qc(){}function Ru(){}function Pr(){}function Cf(){}function L1(){}function N1(){}function og(){}function V3(){}function $1(){}function ul(){}function C0n(){}function M0n(){}function J2(){}function F(){}function T0n(){}function mE(){}function A0n(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function FU(){}function D0n(){}function L0n(){}function N0n(){}function OO(){}function $0n(){}function x0n(){}function F0n(){}function DO(){}function B0n(){}function R0n(){}function BU(){}function K0n(){}function _0n(){}function yu(){}function ju(){}function Q2(){}function Y2(){}function H0n(){}function q0n(){}function U0n(){}function G0n(){}function RU(){}function Eu(){}function Z2(){}function np(){}function z0n(){}function X0n(){}function LO(){}function V0n(){}function W0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function nbn(){}function ebn(){}function tbn(){}function ibn(){}function rbn(){}function cbn(){}function ubn(){}function obn(){}function sbn(){}function fbn(){}function hbn(){}function lbn(){}function abn(){}function dbn(){}function bbn(){}function wbn(){}function gbn(){}function pbn(){}function mbn(){}function vbn(){}function kbn(){}function ybn(){}function jbn(){}function Ebn(){}function Cbn(){}function Mbn(){}function Tbn(){}function KU(){}function Abn(){}function Sbn(){}function Pbn(){}function Ibn(){}function NO(){}function $O(){}function vE(){}function Obn(){}function Dbn(){}function xO(){}function Lbn(){}function Nbn(){}function $bn(){}function kE(){}function xbn(){}function Fbn(){}function Bbn(){}function Rbn(){}function Kbn(){}function _bn(){}function Hbn(){}function qbn(){}function Ubn(){}function _U(){}function Gbn(){}function zbn(){}function HU(){}function Xbn(){}function Vbn(){}function Wbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function FO(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function bwn(){}function qU(){}function UU(){}function wwn(){}function gwn(){}function pwn(){}function mwn(){}function vwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Cwn(){}function Mwn(){}function Twn(){}function Awn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Dwn(){}function Lwn(){}function Nwn(){}function $wn(){}function xwn(){}function Fwn(){}function Bwn(){}function Rwn(){}function Kwn(){}function _wn(){}function Hwn(){}function qwn(){}function Uwn(){}function Gwn(){}function zwn(){}function Xwn(){}function Vwn(){}function Wwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function mgn(){}function vgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Cgn(){}function Mgn(){}function Tgn(){}function Agn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Dgn(){}function Lgn(){}function Ngn(){}function $gn(){}function xgn(){}function Fgn(){}function Bgn(){}function Rgn(){}function Kgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Vgn(){}function Wgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function GU(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function m2n(){}function v2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function C2n(){}function M2n(){}function T2n(){}function A2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function D2n(){}function L2n(){}function N2n(){}function $2n(){}function x2n(){}function F2n(){}function B2n(){}function R2n(){}function K2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function V2n(){}function W2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function mpn(){}function vpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Cpn(){}function Mpn(){}function zU(){}function Tpn(){}function Apn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Dpn(){}function Lpn(){}function Npn(){}function $pn(){}function XU(){}function xpn(){}function Fpn(){}function Bpn(){}function Rpn(){}function Kpn(){}function _pn(){}function VU(){}function WU(){}function Hpn(){}function JU(){}function QU(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Vpn(){}function Wpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function Zpn(){}function YU(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function m3n(){}function v3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function C3n(){}function M3n(){}function T3n(){}function A3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function D3n(){}function L3n(){}function N3n(){}function $3n(){}function x3n(){}function F3n(){}function B3n(){}function R3n(){}function K3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function V3n(){}function W3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function u4n(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function p4n(){}function m4n(){}function v4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function C4n(){}function M4n(){}function T4n(){}function A4n(){}function S4n(){}function P4n(){}function I4n(){}function O4n(){}function _se(){}function D4n(){}function L4n(){}function N4n(){}function $4n(){}function x4n(){}function F4n(){}function B4n(){}function R4n(){}function K4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function G4n(){}function z4n(){}function X4n(){}function V4n(){}function W4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function rmn(){}function BO(){}function RO(){}function cmn(){}function KO(){}function umn(){}function omn(){}function smn(){}function fmn(){}function hmn(){}function lmn(){}function amn(){}function dmn(){}function bmn(){}function wmn(){}function ZU(){}function gmn(){}function pmn(){}function mmn(){}function Hse(){}function vmn(){}function kmn(){}function ymn(){}function jmn(){}function Emn(){}function Cmn(){}function Mmn(){}function Ra(){}function Tmn(){}function ep(){}function nG(){}function Amn(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function Dmn(){}function Lmn(){}function Nmn(){}function $mn(){}function xmn(){}function Fmn(){}function Bmn(){}function Rmn(){}function Kmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function Gmn(){}function hn(){}function zmn(){}function Xmn(){}function Vmn(){}function Wmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function rvn(){}function _O(){}function cvn(){}function uvn(){}function ovn(){}function yE(){}function svn(){}function HO(){}function jE(){}function fvn(){}function eG(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function wvn(){}function EE(){}function gvn(){}function pvn(){}function CE(){}function mvn(){}function ME(){}function vvn(){}function tG(){}function kvn(){}function qO(){}function iG(){}function yvn(){}function jvn(){}function Evn(){}function Cvn(){}function qse(){}function Mvn(){}function Tvn(){}function Avn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Dvn(){}function Lvn(){}function Nvn(){}function W3(){}function UO(){}function $vn(){}function xvn(){}function Fvn(){}function Bvn(){}function Rvn(){}function Kvn(){}function _vn(){}function Hvn(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Vvn(){}function Wvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function p6n(){}function m6n(){}function v6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function C6n(){}function M6n(){}function T6n(){}function A6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function D6n(){}function L6n(){}function N6n(){}function $6n(){}function x6n(){}function F6n(){}function B6n(){}function R6n(){}function K6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function V6n(){}function W6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function p5n(){}function m5n(){}function v5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function C5n(){}function M5n(){}function T5n(){}function A5n(){}function rG(){}function S5n(){}function P5n(){}function GO(){n6()}function I5n(){u7()}function O5n(){aA()}function D5n(){Q$()}function L5n(){M5()}function N5n(){ann()}function $5n(){qs()}function x5n(){jZ()}function F5n(){zk()}function B5n(){o7()}function R5n(){$7()}function K5n(){aCn()}function _5n(){Hp()}function H5n(){KLn()}function q5n(){yQ()}function U5n(){SOn()}function G5n(){jQ()}function z5n(){pNn()}function X5n(){AOn()}function V5n(){cm()}function W5n(){nxn()}function J5n(){Z$n()}function Q5n(){EDn()}function Y5n(){exn()}function Z5n(){ca()}function n8n(){ZE()}function e8n(){ltn()}function t8n(){cn()}function i8n(){txn()}function r8n(){Pxn()}function c8n(){POn()}function u8n(){nKn()}function o8n(){IOn()}function s8n(){bUn()}function f8n(){qnn()}function h8n(){kl()}function l8n(){wBn()}function a8n(){lc()}function d8n(){ROn()}function b8n(){_p()}function w8n(){Men()}function g8n(){ua()}function p8n(){Ten()}function m8n(){Bf()}function v8n(){Qk()}function k8n(){EF()}function y8n(){Dx()}function cf(){wSn()}function j8n(){YM()}function E8n(){mA()}function cG(){qe()}function C8n(){NT()}function M8n(){YY()}function uG(){D$()}function oG(){KA()}function T8n(){Fen()}function sG(n){Jn(n)}function A8n(n){this.a=n}function TE(n){this.a=n}function S8n(n){this.a=n}function P8n(n){this.a=n}function I8n(n){this.a=n}function O8n(n){this.a=n}function D8n(n){this.a=n}function L8n(n){this.a=n}function fG(n){this.a=n}function hG(n){this.a=n}function N8n(n){this.a=n}function $8n(n){this.a=n}function zO(n){this.a=n}function x8n(n){this.a=n}function F8n(n){this.a=n}function XO(n){this.a=n}function VO(n){this.a=n}function B8n(n){this.a=n}function WO(n){this.a=n}function R8n(n){this.a=n}function K8n(n){this.a=n}function _8n(n){this.a=n}function lG(n){this.b=n}function H8n(n){this.c=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function G8n(n){this.a=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function V8n(n){this.a=n}function W8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function e9n(n){this.a=n}function aG(n){this.a=n}function dG(n){this.a=n}function AE(n){this.a=n}function z9(n){this.a=n}function Ka(){this.a=[]}function t9n(n,e){n.a=e}function Use(n,e){n.a=e}function Gse(n,e){n.b=e}function zse(n,e){n.b=e}function Xse(n,e){n.b=e}function bG(n,e){n.j=e}function Vse(n,e){n.g=e}function Wse(n,e){n.i=e}function Jse(n,e){n.c=e}function Qse(n,e){n.c=e}function Yse(n,e){n.d=e}function Zse(n,e){n.d=e}function _a(n,e){n.k=e}function nfe(n,e){n.c=e}function wG(n,e){n.c=e}function gG(n,e){n.a=e}function efe(n,e){n.a=e}function tfe(n,e){n.f=e}function ife(n,e){n.a=e}function rfe(n,e){n.b=e}function JO(n,e){n.d=e}function SE(n,e){n.i=e}function pG(n,e){n.o=e}function cfe(n,e){n.r=e}function ufe(n,e){n.a=e}function ofe(n,e){n.b=e}function i9n(n,e){n.e=e}function sfe(n,e){n.f=e}function mG(n,e){n.g=e}function ffe(n,e){n.e=e}function hfe(n,e){n.f=e}function lfe(n,e){n.f=e}function QO(n,e){n.a=e}function YO(n,e){n.b=e}function afe(n,e){n.n=e}function dfe(n,e){n.a=e}function bfe(n,e){n.c=e}function wfe(n,e){n.c=e}function gfe(n,e){n.c=e}function pfe(n,e){n.a=e}function mfe(n,e){n.a=e}function vfe(n,e){n.d=e}function kfe(n,e){n.d=e}function yfe(n,e){n.e=e}function jfe(n,e){n.e=e}function Efe(n,e){n.g=e}function Cfe(n,e){n.f=e}function Mfe(n,e){n.j=e}function Tfe(n,e){n.a=e}function Afe(n,e){n.a=e}function Sfe(n,e){n.b=e}function r9n(n){n.b=n.a}function c9n(n){n.c=n.d.d}function vG(n){this.a=n}function kG(n){this.a=n}function yG(n){this.a=n}function Ha(n){this.a=n}function qa(n){this.a=n}function X9(n){this.a=n}function u9n(n){this.a=n}function jG(n){this.a=n}function V9(n){this.a=n}function PE(n){this.a=n}function ol(n){this.a=n}function Sb(n){this.a=n}function o9n(n){this.a=n}function s9n(n){this.a=n}function ZO(n){this.b=n}function J3(n){this.b=n}function Q3(n){this.b=n}function nD(n){this.a=n}function f9n(n){this.a=n}function eD(n){this.c=n}function C(n){this.c=n}function h9n(n){this.c=n}function Xv(n){this.d=n}function EG(n){this.a=n}function Te(n){this.a=n}function l9n(n){this.a=n}function CG(n){this.a=n}function MG(n){this.a=n}function TG(n){this.a=n}function AG(n){this.a=n}function SG(n){this.a=n}function PG(n){this.a=n}function Y3(n){this.a=n}function a9n(n){this.a=n}function d9n(n){this.a=n}function Z3(n){this.a=n}function b9n(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function v9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function C9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function A9n(n){this.a=n}function S9n(n){this.a=n}function Vv(n){this.a=n}function P9n(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function D9n(n){this.a=n}function IE(n){this.a=n}function L9n(n){this.a=n}function N9n(n){this.a=n}function n4(n){this.a=n}function IG(n){this.a=n}function $9n(n){this.a=n}function x9n(n){this.a=n}function F9n(n){this.a=n}function B9n(n){this.a=n}function R9n(n){this.a=n}function K9n(n){this.a=n}function OG(n){this.a=n}function DG(n){this.a=n}function LG(n){this.a=n}function Wv(n){this.a=n}function OE(n){this.e=n}function e4(n){this.a=n}function _9n(n){this.a=n}function tp(n){this.a=n}function NG(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function U9n(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function V9n(n){this.a=n}function W9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function Y9n(n){this.a=n}function $G(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function v7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function C7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function A7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function D7n(n){this.a=n}function L7n(n){this.a=n}function N7n(n){this.a=n}function $7n(n){this.a=n}function x7n(n){this.a=n}function F7n(n){this.c=n}function B7n(n){this.b=n}function R7n(n){this.a=n}function K7n(n){this.a=n}function _7n(n){this.a=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function V7n(n){this.a=n}function W7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function lkn(n){this.a=n}function sl(n){this.a=n}function sg(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function vkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Ckn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Akn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Dkn(n){this.a=n}function Lkn(n){this.a=n}function Nkn(n){this.a=n}function $kn(n){this.a=n}function xkn(n){this.a=n}function Fkn(n){this.a=n}function DE(n){this.a=n}function Bkn(n){this.f=n}function Rkn(n){this.a=n}function Kkn(n){this.a=n}function _kn(n){this.a=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Vkn(n){this.a=n}function Wkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function ayn(n){this.a=n}function tD(n){this.a=n}function xG(n){this.a=n}function lt(n){this.b=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function gyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function vyn(n){this.a=n}function kyn(n){this.b=n}function yyn(n){this.a=n}function W9(n){this.a=n}function jyn(n){this.a=n}function Eyn(n){this.a=n}function FG(n){this.c=n}function LE(n){this.e=n}function NE(n){this.a=n}function $E(n){this.a=n}function iD(n){this.a=n}function Cyn(n){this.d=n}function Myn(n){this.a=n}function BG(n){this.a=n}function RG(n){this.a=n}function Wd(n){this.e=n}function Pfe(){this.a=0}function de(){Hu(this)}function Z(){pL(this)}function rD(){sIn(this)}function Tyn(){}function Jd(){this.c=Gdn}function Ayn(n,e){n.b+=e}function Ife(n,e){e.Wb(n)}function Ofe(n){return n.a}function Dfe(n){return n.a}function Lfe(n){return n.a}function Nfe(n){return n.a}function $fe(n){return n.a}function M(n){return n.e}function xfe(){return null}function Ffe(){return null}function Bfe(){Cz(),pLe()}function Rfe(n){n.b.Of(n.e)}function Syn(n){n.b=new CD}function Jv(n,e){n.b=e-n.b}function Qv(n,e){n.a=e-n.a}function Bn(n,e){n.push(e)}function Pyn(n,e){n.sort(e)}function Iyn(n,e){e.jd(n.a)}function Kfe(n,e){gi(e,n)}function _fe(n,e,t){n.Yd(t,e)}function J9(n,e){n.e=e,e.b=n}function KG(n){uh(),this.a=n}function Oyn(n){uh(),this.a=n}function Dyn(n){uh(),this.a=n}function cD(n){m0(),this.a=n}function Lyn(n){O4(),VK.le(n)}function _G(){_G=F,new de}function Ua(){YTn.call(this)}function HG(){YTn.call(this)}function qG(){Ua.call(this)}function uD(){Ua.call(this)}function Nyn(){Ua.call(this)}function Q9(){Ua.call(this)}function Cu(){Ua.call(this)}function ip(){Ua.call(this)}function Pe(){Ua.call(this)}function Bo(){Ua.call(this)}function $yn(){Ua.call(this)}function nc(){Ua.call(this)}function xyn(){Ua.call(this)}function Fyn(){this.a=this}function xE(){this.Bb|=256}function Byn(){this.b=new GMn}function Pb(n,e){n.length=e}function FE(n,e){nn(n.a,e)}function Hfe(n,e){bnn(n.c,e)}function qfe(n,e){fi(n.b,e)}function Ufe(n,e){uA(n.a,e)}function Gfe(n,e){cx(n.a,e)}function t4(n,e){it(n.e,e)}function rp(n){jA(n.c,n.b)}function zfe(n,e){n.kc().Nb(e)}function UG(n){this.a=B5e(n)}function ni(){this.a=new de}function Ryn(){this.a=new de}function GG(){this.a=new rCn}function BE(){this.a=new Z}function oD(){this.a=new Z}function zG(){this.a=new Z}function hs(){this.a=new cbn}function Ga(){this.a=new NLn}function XG(){this.a=new _U}function VG(){this.a=new TOn}function WG(){this.a=new BAn}function Kyn(){this.a=new Z}function _yn(){this.a=new Z}function Hyn(){this.a=new Z}function JG(){this.a=new Z}function qyn(){this.d=new Z}function Uyn(){this.a=new zOn}function Gyn(){this.a=new ni}function zyn(){this.a=new de}function Xyn(){this.b=new de}function Vyn(){this.b=new Z}function QG(){this.e=new Z}function Wyn(){this.a=new Z5n}function Jyn(){this.d=new Z}function Qyn(){QIn.call(this)}function Yyn(){QIn.call(this)}function Zyn(){Z.call(this)}function YG(){qG.call(this)}function ZG(){BE.call(this)}function njn(){qC.call(this)}function ejn(){JG.call(this)}function Yv(){Tyn.call(this)}function sD(){Yv.call(this)}function cp(){Tyn.call(this)}function nz(){cp.call(this)}function tjn(){rz.call(this)}function ijn(){rz.call(this)}function rjn(){rz.call(this)}function cjn(){cz.call(this)}function Zv(){svn.call(this)}function ez(){svn.call(this)}function Mu(){Ct.call(this)}function ujn(){yjn.call(this)}function ojn(){yjn.call(this)}function sjn(){de.call(this)}function fjn(){de.call(this)}function hjn(){de.call(this)}function fD(){cxn.call(this)}function ljn(){ni.call(this)}function ajn(){xE.call(this)}function hD(){BX.call(this)}function tz(){de.call(this)}function lD(){BX.call(this)}function aD(){de.call(this)}function djn(){de.call(this)}function iz(){ME.call(this)}function bjn(){iz.call(this)}function wjn(){ME.call(this)}function gjn(){rG.call(this)}function rz(){this.a=new ni}function pjn(){this.a=new de}function mjn(){this.a=new Z}function cz(){this.a=new de}function up(){this.a=new Ct}function vjn(){this.j=new Z}function kjn(){this.a=new mEn}function yjn(){this.a=new mvn}function uz(){this.a=new Z4n}function n6(){n6=F,KK=new Ht}function dD(){dD=F,_K=new Ejn}function bD(){bD=F,HK=new jjn}function jjn(){XO.call(this,"")}function Ejn(){XO.call(this,"")}function Cjn(n){S$n.call(this,n)}function Mjn(n){S$n.call(this,n)}function oz(n){fG.call(this,n)}function sz(n){XEn.call(this,n)}function Xfe(n){XEn.call(this,n)}function Vfe(n){sz.call(this,n)}function Wfe(n){sz.call(this,n)}function Jfe(n){sz.call(this,n)}function Tjn(n){zN.call(this,n)}function Ajn(n){zN.call(this,n)}function Sjn(n){uSn.call(this,n)}function Pjn(n){Oz.call(this,n)}function e6(n){WE.call(this,n)}function fz(n){WE.call(this,n)}function Ijn(n){WE.call(this,n)}function hz(n){mje.call(this,n)}function lz(n){hz.call(this,n)}function ec(n){APn.call(this,n)}function Ojn(n){ec.call(this,n)}function op(){z9.call(this,{})}function Djn(){Djn=F,dQn=new M0n}function RE(){RE=F,GK=new STn}function Ljn(){Ljn=F,oun=new Bu}function az(){az=F,sun=new N1}function KE(){KE=F,P8=new $1}function wD(n){b4(),this.a=n}function gD(n){RQ(),this.a=n}function Qd(n){nN(),this.f=n}function pD(n){nN(),this.f=n}function Njn(n){bSn(),this.a=n}function $jn(n){n.b=null,n.c=0}function Qfe(n,e){n.e=e,bqn(n,e)}function Yfe(n,e){n.a=e,cEe(n)}function mD(n,e,t){n.a[e.g]=t}function Zfe(n,e,t){kke(t,n,e)}function nhe(n,e){Wae(e.i,n.n)}function xjn(n,e){v6e(n).Cd(e)}function ehe(n,e){n.a.ec().Mc(e)}function Fjn(n,e){return n.g-e.g}function the(n,e){return n*n/e}function on(n){return Jn(n),n}function $(n){return Jn(n),n}function Y9(n){return Jn(n),n}function ihe(n){return new AE(n)}function rhe(n){return new qb(n)}function dz(n){return Jn(n),n}function che(n){return Jn(n),n}function _E(n){ec.call(this,n)}function Ir(n){ec.call(this,n)}function Bjn(n){ec.call(this,n)}function vD(n){APn.call(this,n)}function i4(n){ec.call(this,n)}function Gn(n){ec.call(this,n)}function Or(n){ec.call(this,n)}function Rjn(n){ec.call(this,n)}function sp(n){ec.call(this,n)}function Kl(n){ec.call(this,n)}function _l(n){ec.call(this,n)}function fp(n){ec.call(this,n)}function nh(n){ec.call(this,n)}function kD(n){ec.call(this,n)}function Le(n){ec.call(this,n)}function Ku(n){Jn(n),this.a=n}function bz(n){return ld(n),n}function t6(n){TW(n,n.length)}function i6(n){return n.b==n.c}function Ib(n){return!!n&&n.b}function uhe(n){return!!n&&n.k}function ohe(n){return!!n&&n.j}function she(n,e,t){n.c.Ef(e,t)}function Kjn(n,e){n.be(e),e.ae(n)}function hp(n){uh(),this.a=Se(n)}function yD(){this.a=Oe(Se(ur))}function _jn(){throw M(new Pe)}function fhe(){throw M(new Pe)}function wz(){throw M(new Pe)}function Hjn(){throw M(new Pe)}function hhe(){throw M(new Pe)}function lhe(){throw M(new Pe)}function HE(){HE=F,O4()}function Hl(){X9.call(this,"")}function r6(){X9.call(this,"")}function x1(){X9.call(this,"")}function lp(){X9.call(this,"")}function gz(n){Ir.call(this,n)}function pz(n){Ir.call(this,n)}function eh(n){Gn.call(this,n)}function r4(n){Q3.call(this,n)}function qjn(n){r4.call(this,n)}function jD(n){BC.call(this,n)}function ED(n){JX.call(this,n,0)}function CD(){sJ.call(this,12,3)}function T(n,e){return kOn(n,e)}function qE(n,e){return o$(n,e)}function ahe(n,e){return n.a-e.a}function dhe(n,e){return n.a-e.a}function bhe(n,e){return n.a-e.a}function whe(n,e){return e in n.a}function Ujn(n){return n.a?n.b:0}function ghe(n){return n.a?n.b:0}function phe(n,e,t){e.Cd(n.a[t])}function mhe(n,e,t){e.Pe(n.a[t])}function vhe(n,e){n.b=new rr(e)}function khe(n,e){return n.b=e,n}function Gjn(n,e){return n.c=e,n}function zjn(n,e){return n.f=e,n}function yhe(n,e){return n.g=e,n}function mz(n,e){return n.a=e,n}function vz(n,e){return n.f=e,n}function jhe(n,e){return n.k=e,n}function kz(n,e){return n.a=e,n}function Ehe(n,e){return n.e=e,n}function yz(n,e){return n.e=e,n}function Che(n,e){return n.f=e,n}function Mhe(n,e){n.b=!0,n.d=e}function The(n,e){return n.b-e.b}function Ahe(n,e){return n.g-e.g}function She(n,e){return n?0:e-1}function Xjn(n,e){return n?0:e-1}function Phe(n,e){return n?e-1:0}function Ihe(n,e){return n.s-e.s}function Ohe(n,e){return e.rg(n)}function Yd(n,e){return n.b=e,n}function UE(n,e){return n.a=e,n}function Zd(n,e){return n.c=e,n}function n0(n,e){return n.d=e,n}function e0(n,e){return n.e=e,n}function jz(n,e){return n.f=e,n}function c6(n,e){return n.a=e,n}function c4(n,e){return n.b=e,n}function u4(n,e){return n.c=e,n}function an(n,e){return n.c=e,n}function Sn(n,e){return n.b=e,n}function dn(n,e){return n.d=e,n}function bn(n,e){return n.e=e,n}function Dhe(n,e){return n.f=e,n}function wn(n,e){return n.g=e,n}function gn(n,e){return n.a=e,n}function pn(n,e){return n.i=e,n}function mn(n,e){return n.j=e,n}function Lhe(n,e){ca(),ic(e,n)}function Nhe(n,e,t){Jbe(n.a,e,t)}function GE(n){$L.call(this,n)}function Vjn(n){Z5e.call(this,n)}function Wjn(n){SIn.call(this,n)}function Ez(n){SIn.call(this,n)}function F1(n){S0.call(this,n)}function Jjn(n){CN.call(this,n)}function Qjn(n){CN.call(this,n)}function Yjn(){DX.call(this,"")}function Li(){this.a=0,this.b=0}function Zjn(){this.b=0,this.a=0}function nEn(n,e){n.b=0,Zb(n,e)}function eEn(n,e){return n.k=e,n}function $he(n,e){return n.j=e,n}function xhe(n,e){n.c=e,n.b=!0}function tEn(){tEn=F,TQn=Xke()}function B1(){B1=F,voe=rke()}function iEn(){iEn=F,Ti=gye()}function Cz(){Cz=F,Oa=z4()}function o4(){o4=F,Udn=cke()}function rEn(){rEn=F,ise=uke()}function Mz(){Mz=F,yc=tEe()}function uf(n){return n.e&&n.e()}function cEn(n){return n.l|n.m<<22}function uEn(n,e){return n.c._b(e)}function oEn(n,e){return rBn(n.b,e)}function MD(n){return n?n.d:null}function Fhe(n){return n?n.g:null}function Bhe(n){return n?n.i:null}function za(n){return ll(n),n.o}function fg(n,e){return n.a+=e,n}function TD(n,e){return n.a+=e,n}function ql(n,e){return n.a+=e,n}function t0(n,e){return n.a+=e,n}function Tz(n,e){for(;n.Bd(e););}function zE(n){this.a=new ap(n)}function sEn(){throw M(new Pe)}function fEn(){throw M(new Pe)}function hEn(){throw M(new Pe)}function lEn(){throw M(new Pe)}function aEn(){throw M(new Pe)}function dEn(){throw M(new Pe)}function Ul(n){this.a=new iN(n)}function bEn(){this.a=new K5(Rln)}function wEn(){this.b=new K5(rln)}function gEn(){this.a=new K5(f1n)}function pEn(){this.b=new K5(Fq)}function mEn(){this.b=new K5(Fq)}function XE(n){this.a=0,this.b=n}function Az(n){zGn(),ILe(this,n)}function s4(n){return z1(n),n.a}function Z9(n){return n.b!=n.d.c}function Sz(n,e){return n.d[e.p]}function vEn(n,e){return XTe(n,e)}function Pz(n,e,t){n.splice(e,t)}function hg(n,e){for(;n.Re(e););}function kEn(n){n.c?Dqn(n):Lqn(n)}function yEn(){throw M(new Pe)}function jEn(){throw M(new Pe)}function EEn(){throw M(new Pe)}function CEn(){throw M(new Pe)}function MEn(){throw M(new Pe)}function TEn(){throw M(new Pe)}function AEn(){throw M(new Pe)}function SEn(){throw M(new Pe)}function PEn(){throw M(new Pe)}function IEn(){throw M(new Pe)}function Rhe(){throw M(new nc)}function Khe(){throw M(new nc)}function n7(n){this.a=new OEn(n)}function OEn(n){Ume(this,n,jje())}function e7(n){return!n||oIn(n)}function t7(n){return Zf[n]!=-1}function _he(){cP!=0&&(cP=0),uP=-1}function DEn(){RK==null&&(RK=[])}function i7(n,e){Cg.call(this,n,e)}function f4(n,e){i7.call(this,n,e)}function LEn(n,e){this.a=n,this.b=e}function NEn(n,e){this.a=n,this.b=e}function $En(n,e){this.a=n,this.b=e}function xEn(n,e){this.a=n,this.b=e}function FEn(n,e){this.a=n,this.b=e}function BEn(n,e){this.a=n,this.b=e}function REn(n,e){this.a=n,this.b=e}function h4(n,e){this.e=n,this.d=e}function Iz(n,e){this.b=n,this.c=e}function KEn(n,e){this.b=n,this.a=e}function _En(n,e){this.b=n,this.a=e}function HEn(n,e){this.b=n,this.a=e}function qEn(n,e){this.b=n,this.a=e}function UEn(n,e){this.a=n,this.b=e}function AD(n,e){this.a=n,this.b=e}function GEn(n,e){this.a=n,this.f=e}function i0(n,e){this.g=n,this.i=e}function je(n,e){this.f=n,this.g=e}function zEn(n,e){this.b=n,this.c=e}function XEn(n){KX(n.dc()),this.c=n}function Hhe(n,e){this.a=n,this.b=e}function VEn(n,e){this.a=n,this.b=e}function WEn(n){this.a=u(Se(n),15)}function Oz(n){this.a=u(Se(n),15)}function JEn(n){this.a=u(Se(n),85)}function VE(n){this.b=u(Se(n),85)}function WE(n){this.b=u(Se(n),51)}function JE(){this.q=new y.Date}function SD(n,e){this.a=n,this.b=e}function QEn(n,e){return Zc(n.b,e)}function r7(n,e){return n.b.Hc(e)}function YEn(n,e){return n.b.Ic(e)}function ZEn(n,e){return n.b.Qc(e)}function nCn(n,e){return n.b.Hc(e)}function eCn(n,e){return n.c.uc(e)}function tCn(n,e){return rt(n.c,e)}function of(n,e){return n.a._b(e)}function iCn(n,e){return n>e&&e0}function ND(n,e){return Ec(n,e)<0}function vCn(n,e){return JL(n.a,e)}function ole(n,e){yOn.call(this,n,e)}function Bz(n){wN(),uSn.call(this,n)}function Rz(n,e){bPn(n,n.length,e)}function s7(n,e){HPn(n,n.length,e)}function d6(n,e){return n.a.get(e)}function kCn(n,e){return Zc(n.e,e)}function Kz(n){return Jn(n),!1}function _z(n){this.a=u(Se(n),229)}function cC(n){In.call(this,n,21)}function uC(n,e){je.call(this,n,e)}function $D(n,e){je.call(this,n,e)}function yCn(n,e){this.b=n,this.a=e}function oC(n,e){this.d=n,this.e=e}function jCn(n,e){this.a=n,this.b=e}function ECn(n,e){this.a=n,this.b=e}function CCn(n,e){this.a=n,this.b=e}function MCn(n,e){this.a=n,this.b=e}function bp(n,e){this.a=n,this.b=e}function TCn(n,e){this.b=n,this.a=e}function Hz(n,e){this.b=n,this.a=e}function qz(n,e){je.call(this,n,e)}function Uz(n,e){je.call(this,n,e)}function lg(n,e){je.call(this,n,e)}function xD(n,e){je.call(this,n,e)}function FD(n,e){je.call(this,n,e)}function BD(n,e){je.call(this,n,e)}function sC(n,e){je.call(this,n,e)}function Gz(n,e){this.b=n,this.a=e}function fC(n,e){je.call(this,n,e)}function zz(n,e){this.b=n,this.a=e}function hC(n,e){je.call(this,n,e)}function ACn(n,e){this.b=n,this.a=e}function Xz(n,e){je.call(this,n,e)}function RD(n,e){je.call(this,n,e)}function f7(n,e){je.call(this,n,e)}function b6(n,e,t){n.splice(e,0,t)}function sle(n,e,t){n.Mb(t)&&e.Cd(t)}function fle(n,e,t){e.Pe(n.a.Ye(t))}function hle(n,e,t){e.Dd(n.a.Ze(t))}function lle(n,e,t){e.Cd(n.a.Kb(t))}function ale(n,e){return Au(n.c,e)}function dle(n,e){return Au(n.e,e)}function lC(n,e){je.call(this,n,e)}function aC(n,e){je.call(this,n,e)}function w6(n,e){je.call(this,n,e)}function Vz(n,e){je.call(this,n,e)}function ei(n,e){je.call(this,n,e)}function dC(n,e){je.call(this,n,e)}function SCn(n,e){this.a=n,this.b=e}function PCn(n,e){this.a=n,this.b=e}function ICn(n,e){this.a=n,this.b=e}function OCn(n,e){this.a=n,this.b=e}function DCn(n,e){this.a=n,this.b=e}function LCn(n,e){this.a=n,this.b=e}function NCn(n,e){this.b=n,this.a=e}function $Cn(n,e){this.b=n,this.a=e}function Wz(n,e){this.b=n,this.a=e}function d4(n,e){this.c=n,this.d=e}function xCn(n,e){this.e=n,this.d=e}function FCn(n,e){this.a=n,this.b=e}function BCn(n,e){this.a=n,this.b=e}function RCn(n,e){this.a=n,this.b=e}function KCn(n,e){this.b=n,this.a=e}function _Cn(n,e){this.b=e,this.c=n}function bC(n,e){je.call(this,n,e)}function h7(n,e){je.call(this,n,e)}function KD(n,e){je.call(this,n,e)}function Jz(n,e){je.call(this,n,e)}function g6(n,e){je.call(this,n,e)}function _D(n,e){je.call(this,n,e)}function HD(n,e){je.call(this,n,e)}function l7(n,e){je.call(this,n,e)}function Qz(n,e){je.call(this,n,e)}function qD(n,e){je.call(this,n,e)}function p6(n,e){je.call(this,n,e)}function Yz(n,e){je.call(this,n,e)}function m6(n,e){je.call(this,n,e)}function v6(n,e){je.call(this,n,e)}function Db(n,e){je.call(this,n,e)}function UD(n,e){je.call(this,n,e)}function GD(n,e){je.call(this,n,e)}function Zz(n,e){je.call(this,n,e)}function a7(n,e){je.call(this,n,e)}function ag(n,e){je.call(this,n,e)}function zD(n,e){je.call(this,n,e)}function wC(n,e){je.call(this,n,e)}function d7(n,e){je.call(this,n,e)}function Lb(n,e){je.call(this,n,e)}function gC(n,e){je.call(this,n,e)}function nX(n,e){je.call(this,n,e)}function XD(n,e){je.call(this,n,e)}function VD(n,e){je.call(this,n,e)}function WD(n,e){je.call(this,n,e)}function JD(n,e){je.call(this,n,e)}function QD(n,e){je.call(this,n,e)}function YD(n,e){je.call(this,n,e)}function ZD(n,e){je.call(this,n,e)}function HCn(n,e){this.b=n,this.a=e}function eX(n,e){je.call(this,n,e)}function qCn(n,e){this.a=n,this.b=e}function UCn(n,e){this.a=n,this.b=e}function GCn(n,e){this.a=n,this.b=e}function tX(n,e){je.call(this,n,e)}function iX(n,e){je.call(this,n,e)}function zCn(n,e){this.a=n,this.b=e}function ble(n,e){return k4(),e!=n}function b7(n){return oe(n.a),n.b}function nL(n){return yCe(n,n.c),n}function XCn(){return tEn(),new TQn}function VCn(){VC(),this.a=new kV}function WCn(){OA(),this.a=new ni}function JCn(){NN(),this.b=new ni}function QCn(n,e){this.b=n,this.d=e}function YCn(n,e){this.a=n,this.b=e}function ZCn(n,e){this.a=n,this.b=e}function nMn(n,e){this.a=n,this.b=e}function eMn(n,e){this.b=n,this.a=e}function rX(n,e){je.call(this,n,e)}function cX(n,e){je.call(this,n,e)}function pC(n,e){je.call(this,n,e)}function u0(n,e){je.call(this,n,e)}function eL(n,e){je.call(this,n,e)}function mC(n,e){je.call(this,n,e)}function uX(n,e){je.call(this,n,e)}function oX(n,e){je.call(this,n,e)}function w7(n,e){je.call(this,n,e)}function sX(n,e){je.call(this,n,e)}function tL(n,e){je.call(this,n,e)}function vC(n,e){je.call(this,n,e)}function iL(n,e){je.call(this,n,e)}function rL(n,e){je.call(this,n,e)}function cL(n,e){je.call(this,n,e)}function uL(n,e){je.call(this,n,e)}function fX(n,e){je.call(this,n,e)}function oL(n,e){je.call(this,n,e)}function hX(n,e){je.call(this,n,e)}function g7(n,e){je.call(this,n,e)}function sL(n,e){je.call(this,n,e)}function lX(n,e){je.call(this,n,e)}function p7(n,e){je.call(this,n,e)}function aX(n,e){je.call(this,n,e)}function tMn(n,e){this.b=n,this.a=e}function iMn(n,e){this.b=n,this.a=e}function rMn(n,e){this.b=n,this.a=e}function cMn(n,e){this.b=n,this.a=e}function dX(n,e){this.a=n,this.b=e}function uMn(n,e){this.a=n,this.b=e}function oMn(n,e){this.a=n,this.b=e}function V(n,e){this.a=n,this.b=e}function k6(n,e){je.call(this,n,e)}function m7(n,e){je.call(this,n,e)}function wp(n,e){je.call(this,n,e)}function y6(n,e){je.call(this,n,e)}function v7(n,e){je.call(this,n,e)}function fL(n,e){je.call(this,n,e)}function kC(n,e){je.call(this,n,e)}function j6(n,e){je.call(this,n,e)}function hL(n,e){je.call(this,n,e)}function yC(n,e){je.call(this,n,e)}function dg(n,e){je.call(this,n,e)}function k7(n,e){je.call(this,n,e)}function E6(n,e){je.call(this,n,e)}function C6(n,e){je.call(this,n,e)}function y7(n,e){je.call(this,n,e)}function jC(n,e){je.call(this,n,e)}function bg(n,e){je.call(this,n,e)}function lL(n,e){je.call(this,n,e)}function sMn(n,e){je.call(this,n,e)}function EC(n,e){je.call(this,n,e)}function fMn(n,e){this.a=n,this.b=e}function hMn(n,e){this.a=n,this.b=e}function lMn(n,e){this.a=n,this.b=e}function aMn(n,e){this.a=n,this.b=e}function dMn(n,e){this.a=n,this.b=e}function bMn(n,e){this.a=n,this.b=e}function bi(n,e){this.a=n,this.b=e}function wMn(n,e){this.a=n,this.b=e}function gMn(n,e){this.a=n,this.b=e}function pMn(n,e){this.a=n,this.b=e}function mMn(n,e){this.a=n,this.b=e}function vMn(n,e){this.a=n,this.b=e}function kMn(n,e){this.a=n,this.b=e}function yMn(n,e){this.b=n,this.a=e}function jMn(n,e){this.b=n,this.a=e}function EMn(n,e){this.b=n,this.a=e}function CMn(n,e){this.b=n,this.a=e}function MMn(n,e){this.a=n,this.b=e}function TMn(n,e){this.a=n,this.b=e}function CC(n,e){je.call(this,n,e)}function AMn(n,e){this.a=n,this.b=e}function SMn(n,e){this.a=n,this.b=e}function gp(n,e){je.call(this,n,e)}function PMn(n,e){this.f=n,this.c=e}function bX(n,e){return Au(n.g,e)}function wle(n,e){return Au(e.b,n)}function IMn(n,e){return wx(n.a,e)}function gle(n,e){return-n.b.af(e)}function ple(n,e){n&&Xe(hE,n,e)}function wX(n,e){n.i=null,kT(n,e)}function mle(n,e,t){yKn(e,oF(n,t))}function vle(n,e,t){yKn(e,oF(n,t))}function kle(n,e){VMe(n.a,u(e,58))}function OMn(n,e){U4e(n.a,u(e,12))}function MC(n,e){this.a=n,this.b=e}function DMn(n,e){this.a=n,this.b=e}function LMn(n,e){this.a=n,this.b=e}function NMn(n,e){this.a=n,this.b=e}function $Mn(n,e){this.a=n,this.b=e}function xMn(n,e){this.d=n,this.b=e}function FMn(n,e){this.e=n,this.a=e}function j7(n,e){this.b=n,this.c=e}function gX(n,e){this.i=n,this.g=e}function pX(n,e){this.d=n,this.e=e}function yle(n,e){cme(new ne(n),e)}function TC(n){return Rk(n.c,n.b)}function Kr(n){return n?n.md():null}function x(n){return n??null}function Ai(n){return typeof n===nB}function Nb(n){return typeof n===i3}function $b(n){return typeof n===dtn}function o0(n,e){return Ec(n,e)==0}function AC(n,e){return Ec(n,e)>=0}function M6(n,e){return Ec(n,e)!=0}function SC(n,e){return jve(n.Kc(),e)}function _1(n,e){return n.Rd().Xb(e)}function BMn(n){return eo(n),n.d.gc()}function PC(n){return F6(n==null),n}function T6(n,e){return n.a+=""+e,n}function Er(n,e){return n.a+=""+e,n}function A6(n,e){return n.a+=""+e,n}function Dc(n,e){return n.a+=""+e,n}function Be(n,e){return n.a+=""+e,n}function mX(n,e){return n.a+=""+e,n}function jle(n){return""+(Jn(n),n)}function RMn(n){Hu(this),f5(this,n)}function KMn(){oJ(),dW.call(this)}function _Mn(n,e){mW.call(this,n,e)}function HMn(n,e){mW.call(this,n,e)}function IC(n,e){mW.call(this,n,e)}function ir(n,e){xt(n,e,n.c.b,n.c)}function wg(n,e){xt(n,e,n.a,n.a.a)}function vX(n){return Ln(n,0),null}function qMn(){this.b=0,this.a=!1}function UMn(){this.b=0,this.a=!1}function GMn(){this.b=new ap(Qb(12))}function zMn(){zMn=F,kYn=Ce(jx())}function XMn(){XMn=F,HZn=Ce(iqn())}function VMn(){VMn=F,lre=Ce(xxn())}function kX(){kX=F,_G(),fun=new de}function sf(n){return n.a=0,n.b=0,n}function WMn(n,e){return n.a=e.g+1,n}function aL(n,e){Kb.call(this,n,e)}function Mn(n,e){Dt.call(this,n,e)}function gg(n,e){gX.call(this,n,e)}function JMn(n,e){T7.call(this,n,e)}function dL(n,e){Y4.call(this,n,e)}function Ue(n,e){iC(),Xe(yO,n,e)}function QMn(n,e){n.q.setTime(id(e))}function Ele(n){y.clearTimeout(n)}function Cle(n){return Se(n),new S6(n)}function YMn(n,e){return x(n)===x(e)}function ZMn(n,e){return n.a.a.a.cc(e)}function bL(n,e){return qo(n.a,0,e)}function yX(n){return Awe(u(n,74))}function pp(n){return wi((Jn(n),n))}function Mle(n){return wi((Jn(n),n))}function nTn(n){return Yc(n.l,n.m,n.h)}function jX(n,e){return jc(n.a,e.a)}function Tle(n,e){return KPn(n.a,e.a)}function Ale(n,e){return bt(n.a,e.a)}function th(n,e){return n.indexOf(e)}function Sle(n,e){return n.j[e.p]==2}function s0(n,e){return n==e?0:n?1:-1}function OC(n){return n<10?"0"+n:""+n}function Vr(n){return typeof n===dtn}function Ple(n){return n==rb||n==Iw}function Ile(n){return n==rb||n==Pw}function eTn(n,e){return jc(n.g,e.g)}function EX(n){return qr(n.b.b,n,0)}function tTn(){rM.call(this,0,0,0,0)}function ih(){CG.call(this,new Ql)}function CX(n,e){F4(n,0,n.length,e)}function Ole(n,e){return nn(n.a,e),e}function Dle(n,e){return xs(),e.a+=n}function Lle(n,e){return xs(),e.a+=n}function Nle(n,e){return xs(),e.c+=n}function $le(n,e){return nn(n.c,e),n}function MX(n,e){return Mo(n.a,e),n}function iTn(n){this.a=XCn(),this.b=n}function rTn(n){this.a=XCn(),this.b=n}function rr(n){this.a=n.a,this.b=n.b}function S6(n){this.a=n,GO.call(this)}function cTn(n){this.a=n,GO.call(this)}function mp(){Ho.call(this,0,0,0,0)}function DC(n){return Mo(new ii,n)}function uTn(n){return jM(u(n,123))}function fo(n){return n.vh()&&n.wh()}function pg(n){return n!=Jf&&n!=Sa}function hl(n){return n==Br||n==Xr}function mg(n){return n==us||n==Vf}function oTn(n){return n==S2||n==A2}function xle(n,e){return jc(n.g,e.g)}function sTn(n,e){return new Y4(e,n)}function Fle(n,e){return new Y4(e,n)}function TX(n){return rbe(n.b.Kc(),n.a)}function wL(n,e){um(n,e),G4(n,n.D)}function gL(n,e,t){aT(n,e),lT(n,t)}function vg(n,e,t){I0(n,e),P0(n,t)}function Ro(n,e,t){eu(n,e),tu(n,t)}function E7(n,e,t){_4(n,e),q4(n,t)}function C7(n,e,t){H4(n,e),U4(n,t)}function fTn(n,e,t){sV.call(this,n,e,t)}function AX(n){PMn.call(this,n,!0)}function hTn(){uC.call(this,"Tail",3)}function lTn(){uC.call(this,"Head",1)}function H1(n){dh(),mve.call(this,n)}function f0(n){rM.call(this,n,n,n,n)}function pL(n){n.c=K(ki,Fn,1,0,5,1)}function SX(n){return n.b&&xF(n),n.a}function PX(n){return n.b&&xF(n),n.c}function Ble(n,e){qf||(n.b=e)}function Rle(n,e){return n[n.length]=e}function Kle(n,e){return n[n.length]=e}function _le(n,e){return Yb(e,Af(n))}function Hle(n,e){return Yb(e,Af(n))}function qle(n,e){return pT(dN(n.d),e)}function Ule(n,e){return pT(dN(n.g),e)}function Gle(n,e){return pT(dN(n.j),e)}function Ni(n,e){Dt.call(this,n.b,e)}function zle(n,e){ve(Sc(n.a),DOn(e))}function Xle(n,e){ve(no(n.a),LOn(e))}function Vle(n,e,t){Ro(t,t.i+n,t.j+e)}function aTn(n,e,t){$t(n.c[e.g],e.g,t)}function Wle(n,e,t){u(n.c,71).Gi(e,t)}function mL(n,e,t){return $t(n,e,t),t}function dTn(n){nu(n.Sf(),new D9n(n))}function kg(n){return n!=null?mt(n):0}function Jle(n){return n==null?0:mt(n)}function P6(n){nt(),Wd.call(this,n)}function bTn(n){this.a=n,qV.call(this,n)}function Mf(){Mf=F,y.Math.log(2)}function Ko(){Ko=F,rl=(pCn(),Moe)}function wTn(){wTn=F,YH=new j5(aU)}function Ie(){Ie=F,new gTn,new Z}function gTn(){new de,new de,new de}function Qle(){throw M(new Kl(QJn))}function Yle(){throw M(new Kl(QJn))}function Zle(){throw M(new Kl(YJn))}function n1e(){throw M(new Kl(YJn))}function vL(n){this.a=n,VE.call(this,n)}function kL(n){this.a=n,VE.call(this,n)}function pTn(n,e){m0(),this.a=n,this.b=e}function e1e(n,e){Se(e),Tg(n).Jc(new Ru)}function Yt(n,e){QL(n.c,n.c.length,e)}function tc(n){return n.ae?1:0}function OX(n,e){return Ec(n,e)>0?n:e}function Yc(n,e,t){return{l:n,m:e,h:t}}function t1e(n,e){n.a!=null&&OMn(e,n.a)}function i1e(n){Zi(n,null),Ii(n,null)}function r1e(n,e,t){return Xe(n.g,t,e)}function yg(n,e,t){return nZ(e,t,n.c)}function c1e(n,e,t){return Xe(n.k,t,e)}function u1e(n,e,t){return GOe(n,e,t),t}function o1e(n,e){return ko(),e.n.b+=n}function vTn(n){nJ.call(this),this.b=n}function DX(n){vV.call(this),this.a=n}function kTn(){uC.call(this,"Range",2)}function LC(n){this.b=n,this.a=new Z}function yTn(n){this.b=new $bn,this.a=n}function jTn(n){n.a=new OO,n.c=new OO}function ETn(n){n.a=new de,n.d=new de}function CTn(n){$N(n,null),xN(n,null)}function MTn(n,e){return XOe(n.a,e,null)}function s1e(n,e){return Xe(n.a,e.a,e)}function Ki(n){return new V(n.a,n.b)}function LX(n){return new V(n.c,n.d)}function f1e(n){return new V(n.c,n.d)}function I6(n,e){return cOe(n.c,n.b,e)}function O(n,e){return n!=null&&Tx(n,e)}function yL(n,e){return Yve(n.Kc(),e)!=-1}function NC(n){return n.Ob()?n.Pb():null}function h1e(n){this.b=(Dn(),new eD(n))}function NX(n){this.a=n,de.call(this)}function TTn(){T7.call(this,null,null)}function ATn(){_C.call(this,null,null)}function STn(){je.call(this,"INSTANCE",0)}function PTn(){LZ(),this.a=new K5(Ion)}function ITn(n){return hh(n,0,n.length)}function l1e(n,e){return new VTn(n.Kc(),e)}function $X(n,e){return n.a.Bc(e)!=null}function OTn(n,e){me(n),n.Gc(u(e,15))}function a1e(n,e,t){n.c.bd(e,u(t,136))}function d1e(n,e,t){n.c.Ui(e,u(t,136))}function DTn(n,e){n.c&&(tW(e),rOn(e))}function b1e(n,e){n.q.setHours(e),G5(n,e)}function w1e(n,e){a0(e,n.a.a.a,n.a.a.b)}function g1e(n,e,t,i){$t(n.a[e.g],t.g,i)}function jL(n,e,t){return n.a[e.g][t.g]}function p1e(n,e){return n.e[e.c.p][e.p]}function m1e(n,e){return n.c[e.c.p][e.p]}function Tf(n,e){return n.a[e.c.p][e.p]}function v1e(n,e){return n.j[e.p]=IMe(e)}function EL(n,e){return n.a.Bc(e)!=null}function k1e(n,e){return $(R(e.a))<=n}function y1e(n,e){return $(R(e.a))>=n}function j1e(n,e){return RJ(n.f,e.Pg())}function vp(n,e){return n.a*e.a+n.b*e.b}function E1e(n,e){return n.a0?e/(n*n):e*100}function V1e(n,e){return n>0?e*e/n:e*e*100}function xb(n,e){return u(Lf(n.a,e),34)}function W1e(n,e){return ca(),Pn(n,e.e,e)}function J1e(n,e,t){return nC(),t.Mg(n,e)}function Q1e(n){return kl(),n.e.a+n.f.a/2}function Y1e(n,e,t){return kl(),t.e.a-n*e}function Z1e(n){return kl(),n.e.b+n.f.b/2}function nae(n,e,t){return kl(),t.e.b-n*e}function sAn(n){n.d=new cAn(n),n.e=new de}function fAn(){this.a=new C0,this.b=new C0}function hAn(n){this.c=n,this.a=1,this.b=1}function lAn(n){YF(),Syn(this),this.Ff(n)}function eae(n,e,t){YM(),n.pf(e)&&t.Cd(n)}function tae(n,e,t){return nn(e,jBn(n,t))}function a0(n,e,t){return n.a+=e,n.b+=t,n}function iae(n,e,t){return n.a*=e,n.b*=t,n}function ZX(n,e){return n.a=e.a,n.b=e.b,n}function HC(n){return n.a=-n.a,n.b=-n.b,n}function N6(n,e,t){return n.a-=e,n.b-=t,n}function aAn(n){Ct.call(this),c5(this,n)}function dAn(){je.call(this,"GROW_TREE",0)}function bAn(){je.call(this,"POLYOMINO",0)}function lo(n,e,t){Iu.call(this,n,e,t,2)}function rae(n,e,t){k5(Sc(n.a),e,DOn(t))}function wAn(n,e){a6(),T7.call(this,n,e)}function nV(n,e){Gl(),_C.call(this,n,e)}function gAn(n,e){Gl(),nV.call(this,n,e)}function pAn(n,e){Gl(),_C.call(this,n,e)}function cae(n,e){return n.c.Fc(u(e,136))}function uae(n,e,t){k5(no(n.a),e,LOn(t))}function mAn(n){this.c=n,eu(n,0),tu(n,0)}function PL(n,e){Ko(),oM.call(this,n,e)}function vAn(n,e){Ko(),PL.call(this,n,e)}function eV(n,e){Ko(),PL.call(this,n,e)}function tV(n,e){Ko(),oM.call(this,n,e)}function kAn(n,e){Ko(),eV.call(this,n,e)}function yAn(n,e){Ko(),tV.call(this,n,e)}function jAn(n,e){Ko(),oM.call(this,n,e)}function oae(n,e,t){return e.zl(n.e,n.c,t)}function sae(n,e,t){return e.Al(n.e,n.c,t)}function iV(n,e,t){return qA(ak(n,e),t)}function IL(n,e){return na(n.e,u(e,54))}function fae(n){return n==null?null:NDe(n)}function hae(n){return n==null?null:Aje(n)}function lae(n){return n==null?null:Jr(n)}function aae(n){return n==null?null:Jr(n)}function un(n){return F6(n==null||Nb(n)),n}function R(n){return F6(n==null||$b(n)),n}function Oe(n){return F6(n==null||Ai(n)),n}function ll(n){n.o==null&&cMe(n)}function rV(n){if(!n)throw M(new Q9)}function dae(n){if(!n)throw M(new uD)}function oe(n){if(!n)throw M(new nc)}function Fb(n){if(!n)throw M(new Cu)}function EAn(n){if(!n)throw M(new Bo)}function m4(){m4=F,aE=new ujn,new ojn}function Mg(){Mg=F,O2=new lt("root")}function cV(){cxn.call(this),this.Bb|=hr}function bae(n,e){this.d=n,c9n(this),this.b=e}function uV(n,e){i$.call(this,n),this.a=e}function oV(n,e){i$.call(this,n),this.a=e}function sV(n,e,t){VM.call(this,n,e,t,null)}function CAn(n,e,t){VM.call(this,n,e,t,null)}function P7(n,e){this.c=n,h4.call(this,n,e)}function $6(n,e){this.a=n,P7.call(this,n,e)}function fV(n){this.q=new y.Date(id(n))}function MAn(n){return n>8?0:n+1}function TAn(n,e){qf||nn(n.a,e)}function wae(n,e){return o7(),Q4(e.d.i,n)}function gae(n,e){return Hp(),new tUn(e,n)}function pae(n,e,t){return n.Ne(e,t)<=0?t:e}function mae(n,e,t){return n.Ne(e,t)<=0?e:t}function vae(n,e){return u(Lf(n.b,e),143)}function kae(n,e){return u(Lf(n.c,e),233)}function OL(n){return u(sn(n.a,n.b),294)}function AAn(n){return new V(n.c,n.d+n.a)}function SAn(n){return Jn(n),n?1231:1237}function PAn(n){return ko(),oTn(u(n,203))}function Bb(){Bb=F,ron=yn((go(),Gd))}function yae(n,e){e.a?MCe(n,e):EL(n.a,e.b)}function I7(n,e,t){++n.j,n.tj(),t$(n,e,t)}function IAn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function OAn(n,e,t){var i;i=n.fd(e),i.Rb(t)}function hV(n,e,t){return t=So(n,e,6,t),t}function lV(n,e,t){return t=So(n,e,3,t),t}function aV(n,e,t){return t=So(n,e,9,t),t}function ch(n,e){return X7(e,xtn),n.f=e,n}function dV(n,e){return(e&et)%n.d.length}function DAn(n,e,t){return zen(n.c,n.b,e,t)}function LAn(n,e){this.c=n,S0.call(this,e)}function NAn(n,e){this.a=n,kyn.call(this,e)}function O7(n,e){this.a=n,kyn.call(this,e)}function Dt(n,e){lt.call(this,n),this.a=e}function bV(n,e){FG.call(this,n),this.a=e}function DL(n,e){FG.call(this,n),this.a=e}function jae(n){VY.call(this,0,0),this.f=n}function $An(n,e,t){return n.a+=hh(e,0,t),n}function D7(n){return!n.a&&(n.a=new C0n),n.a}function wV(n,e){var t;return t=n.e,n.e=e,t}function gV(n,e){var t;return t=e,!!n.Fe(t)}function Eae(n,e){return _n(),n==e?0:n?1:-1}function Rb(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function L7(n){n.b?L7(n.b):n.f.c.zc(n.e,n.d)}function xAn(n){Hu(n.e),n.d.b=n.d,n.d.a=n.d}function Cae(n,e,t){Xa(),t9n(n,e.Ve(n.a,t))}function pV(n,e,t){return Pp(n,u(e,22),t)}function $s(n,e){return qE(new Array(e),n)}function Mae(n){return Ae(U1(n,32))^Ae(n)}function LL(n){return String.fromCharCode(n)}function Tae(n){return n==null?null:n.message}function Aae(n,e,t){return n.apply(e,t)}function Sae(n,e){var t;t=n[DB],t.call(n,e)}function Pae(n,e){var t;t=n[DB],t.call(n,e)}function Iae(n,e){return o7(),!Q4(e.d.i,n)}function mV(n,e,t,i){rM.call(this,n,e,t,i)}function FAn(){qC.call(this),this.a=new Li}function vV(){this.n=new Li,this.o=new Li}function BAn(){this.b=new Li,this.c=new Z}function RAn(){this.a=new Z,this.b=new Z}function KAn(){this.a=new _U,this.b=new Byn}function kV(){this.b=new Ql,this.a=new Ql}function _An(){this.b=new ni,this.a=new ni}function HAn(){this.b=new de,this.a=new de}function qAn(){this.b=new wEn,this.a=new H3n}function UAn(){this.a=new n8n,this.b=new Lpn}function GAn(){this.a=new Z,this.d=new Z}function qC(){this.n=new cp,this.i=new mp}function zAn(n){this.a=(Co(n,mw),new Gc(n))}function XAn(n){this.a=(Co(n,mw),new Gc(n))}function Oae(n){return n<100?null:new F1(n)}function Dae(n,e){return n.n.a=(Jn(e),e+10)}function Lae(n,e){return n.n.a=(Jn(e),e+10)}function Nae(n,e){return e==n||km(TA(e),n)}function VAn(n,e){return Xe(n.a,e,"")==null}function $ae(n,e){var t;return t=e.qi(n.a),t}function tt(n,e){return n.a+=e.a,n.b+=e.b,n}function mi(n,e){return n.a-=e.a,n.b-=e.b,n}function xae(n){return Pb(n.j.c,0),n.a=-1,n}function yV(n,e,t){return t=So(n,e,11,t),t}function Fae(n,e,t){t!=null&&mT(e,Fx(n,t))}function Bae(n,e,t){t!=null&&vT(e,Fx(n,t))}function jp(n,e,t,i){q.call(this,n,e,t,i)}function jV(n,e,t,i){q.call(this,n,e,t,i)}function WAn(n,e,t,i){jV.call(this,n,e,t,i)}function JAn(n,e,t,i){bM.call(this,n,e,t,i)}function NL(n,e,t,i){bM.call(this,n,e,t,i)}function EV(n,e,t,i){bM.call(this,n,e,t,i)}function QAn(n,e,t,i){NL.call(this,n,e,t,i)}function CV(n,e,t,i){NL.call(this,n,e,t,i)}function Nn(n,e,t,i){EV.call(this,n,e,t,i)}function YAn(n,e,t,i){CV.call(this,n,e,t,i)}function ZAn(n,e,t,i){jW.call(this,n,e,t,i)}function Kb(n,e){Ir.call(this,k8+n+Td+e)}function MV(n,e){return n.jk().wi().ri(n,e)}function TV(n,e){return n.jk().wi().ti(n,e)}function nSn(n,e){return Jn(n),x(n)===x(e)}function An(n,e){return Jn(n),x(n)===x(e)}function Rae(n,e){return n.b.Bd(new ECn(n,e))}function Kae(n,e){return n.b.Bd(new CCn(n,e))}function eSn(n,e){return n.b.Bd(new MCn(n,e))}function _ae(n,e){return n.e=u(n.d.Kb(e),159)}function AV(n,e,t){return n.lastIndexOf(e,t)}function Hae(n,e,t){return bt(n[e.a],n[t.a])}function qae(n,e){return U(e,(cn(),Cj),n)}function Uae(n,e){return jc(e.a.d.p,n.a.d.p)}function Gae(n,e){return jc(n.a.d.p,e.a.d.p)}function zae(n,e){return bt(n.c-n.s,e.c-e.s)}function Xae(n,e){return bt(n.b.e.a,e.b.e.a)}function Vae(n,e){return bt(n.c.e.a,e.c.e.a)}function tSn(n){return n.c?qr(n.c.a,n,0):-1}function Ep(n){return n==Ud||n==tl||n==qc}function SV(n,e){this.c=n,oN.call(this,n,e)}function iSn(n,e,t){this.a=n,JX.call(this,e,t)}function rSn(n){this.c=n,IC.call(this,Ey,0)}function cSn(n,e,t){this.c=e,this.b=t,this.a=n}function N7(n){k4(),this.d=n,this.a=new Eg}function uSn(n){uh(),this.a=(Dn(),new r4(n))}function Wae(n,e){hl(n.f)?QCe(n,e):Sye(n,e)}function oSn(n,e){sbe.call(this,n,n.length,e)}function Jae(n,e){qf||e&&(n.d=e)}function sSn(n,e){return O(e,15)&&xqn(n.c,e)}function Qae(n,e,t){return u(n.c,71).Wk(e,t)}function UC(n,e,t){return u(n.c,71).Xk(e,t)}function Yae(n,e,t){return oae(n,u(e,343),t)}function PV(n,e,t){return sae(n,u(e,343),t)}function Zae(n,e,t){return PKn(n,u(e,343),t)}function fSn(n,e,t){return _ye(n,u(e,343),t)}function x6(n,e){return e==null?null:tw(n.b,e)}function IV(n){return $b(n)?(Jn(n),n):n.ue()}function GC(n){return!isNaN(n)&&!isFinite(n)}function $L(n){jTn(this),vo(this),Bi(this,n)}function _u(n){pL(this),zV(this.c,0,n.Pc())}function _o(n,e,t){this.a=n,this.b=e,this.c=t}function hSn(n,e,t){this.a=n,this.b=e,this.c=t}function lSn(n,e,t){this.d=n,this.b=t,this.a=e}function aSn(n){this.a=n,fl(),vc(Date.now())}function dSn(n){bo(n.a),GJ(n.c,n.b),n.b=null}function xL(){xL=F,Oun=new $0n,AQn=new x0n}function bSn(){bSn=F,Ioe=K(ki,Fn,1,0,5,1)}function wSn(){wSn=F,Voe=K(ki,Fn,1,0,5,1)}function OV(){OV=F,Woe=K(ki,Fn,1,0,5,1)}function uh(){uh=F,new KG((Dn(),Dn(),sr))}function nde(n){return B4(),Ee((yNn(),IQn),n)}function ede(n){return Gu(),Ee((lNn(),xQn),n)}function tde(n){return YT(),Ee((JDn(),HQn),n)}function ide(n){return cT(),Ee((QDn(),qQn),n)}function rde(n){return NA(),Ee((Jxn(),UQn),n)}function cde(n){return bf(),Ee((fNn(),XQn),n)}function ude(n){return Uu(),Ee((sNn(),WQn),n)}function ode(n){return bu(),Ee((hNn(),QQn),n)}function sde(n){return VA(),Ee((zMn(),kYn),n)}function fde(n){return N0(),Ee((ENn(),jYn),n)}function hde(n){return Vp(),Ee((MNn(),CYn),n)}function lde(n){return A5(),Ee((CNn(),AYn),n)}function ade(n){return YE(),Ee((jDn(),SYn),n)}function dde(n){return uT(),Ee((YDn(),GYn),n)}function bde(n){return i5(),Ee((aNn(),pZn),n)}function wde(n){return Vi(),Ee((u$n(),yZn),n)}function gde(n){return nm(),Ee((ANn(),TZn),n)}function pde(n){return dd(),Ee((TNn(),DZn),n)}function DV(n,e){if(!n)throw M(new Gn(e))}function v4(n){if(!n)throw M(new Or(btn))}function FL(n,e){if(n!=e)throw M(new Bo)}function gSn(n,e,t){this.a=n,this.b=e,this.c=t}function LV(n,e,t){this.a=n,this.b=e,this.c=t}function pSn(n,e,t){this.a=n,this.b=e,this.c=t}function zC(n,e,t){this.b=n,this.a=e,this.c=t}function NV(n,e,t){this.b=n,this.c=e,this.a=t}function $V(n,e,t){this.a=n,this.b=e,this.c=t}function XC(n,e,t){this.e=e,this.b=n,this.d=t}function mSn(n,e,t){this.b=n,this.a=e,this.c=t}function mde(n,e,t){return Xa(),n.a.Yd(e,t),e}function BL(n){var e;return e=new ubn,e.e=n,e}function xV(n){var e;return e=new qyn,e.b=n,e}function $7(){$7=F,CP=new sgn,MP=new fgn}function VC(){VC=F,XZn=new xgn,zZn=new Fgn}function xs(){xs=F,YZn=new G2n,ZZn=new z2n}function vde(n){return D0(),Ee((qLn(),fne),n)}function kde(n){return tr(),Ee((XMn(),HZn),n)}function yde(n){return OT(),Ee((PNn(),GZn),n)}function jde(n){return $f(),Ee((SNn(),tne),n)}function Ede(n){return ow(),Ee((o$n(),rne),n)}function Cde(n){return DA(),Ee(($xn(),hne),n)}function Mde(n){return Yp(),Ee((D$n(),lne),n)}function Tde(n){return QM(),Ee((cLn(),ane),n)}function Ade(n){return u5(),Ee((_Ln(),dne),n)}function Sde(n){return bT(),Ee((HLn(),bne),n)}function Pde(n){return o1(),Ee((s$n(),wne),n)}function Ide(n){return pk(),Ee((eLn(),gne),n)}function Ode(n){return jm(),Ee(($$n(),jne),n)}function Dde(n){return pr(),Ee((aFn(),Ene),n)}function Lde(n){return Z4(),Ee((GLn(),Cne),n)}function Nde(n){return vl(),Ee((zLn(),Tne),n)}function $de(n){return KM(),Ee((nLn(),Ane),n)}function xde(n){return Jk(),Ee((N$n(),yne),n)}function Fde(n){return hd(),Ee((ULn(),mne),n)}function Bde(n){return vA(),Ee((L$n(),vne),n)}function Rde(n){return hk(),Ee((tLn(),kne),n)}function Kde(n){return Yo(),Ee((h$n(),Sne),n)}function _de(n){return a1(),Ee((Xxn(),Yte),n)}function Hde(n){return g5(),Ee((XLn(),Zte),n)}function qde(n){return cw(),Ee((INn(),nie),n)}function Ude(n){return T5(),Ee((f$n(),eie),n)}function Gde(n){return gs(),Ee((dFn(),tie),n)}function zde(n){return lh(),Ee((ONn(),iie),n)}function Xde(n){return wk(),Ee((iLn(),rie),n)}function Vde(n){return gr(),Ee((JLn(),uie),n)}function Wde(n){return ST(),Ee((VLn(),oie),n)}function Jde(n){return d5(),Ee((WLn(),sie),n)}function Qde(n){return om(),Ee((QLn(),fie),n)}function Yde(n){return dT(),Ee((YLn(),hie),n)}function Zde(n){return DT(),Ee((ZLn(),lie),n)}function n0e(n){return O0(),Ee((oNn(),Aie),n)}function e0e(n){return n5(),Ee((rLn(),Die),n)}function t0e(n){return sh(),Ee((sLn(),Rie),n)}function i0e(n){return Sf(),Ee((fLn(),_ie),n)}function r0e(n){return lf(),Ee((hLn(),tre),n)}function c0e(n){return M0(),Ee((lLn(),fre),n)}function u0e(n){return Qp(),Ee((BNn(),hre),n)}function o0e(n){return q5(),Ee((VMn(),lre),n)}function s0e(n){return b5(),Ee((nNn(),are),n)}function f0e(n){return w5(),Ee((FNn(),$re),n)}function h0e(n){return FM(),Ee((uLn(),xre),n)}function l0e(n){return yT(),Ee((oLn(),_re),n)}function a0e(n){return wA(),Ee((l$n(),qre),n)}function d0e(n){return Ok(),Ee((eNn(),Gre),n)}function b0e(n){return ZM(),Ee((aLn(),Ure),n)}function w0e(n){return sA(),Ee((xNn(),lce),n)}function g0e(n){return AT(),Ee((tNn(),ace),n)}function p0e(n){return XT(),Ee((iNn(),dce),n)}function m0e(n){return rA(),Ee((rNn(),wce),n)}function v0e(n){return _T(),Ee((cNn(),mce),n)}function k0e(n){return GM(),Ee((dLn(),Rce),n)}function y0e(n){return V4(),Ee((ZDn(),_Zn),n)}function j0e(n){return Vn(),Ee((x$n(),xZn),n)}function E0e(n){return nT(),Ee((uNn(),Kce),n)}function C0e(n){return N$(),Ee((bLn(),_ce),n)}function M0e(n){return R5(),Ee((a$n(),qce),n)}function T0e(n){return eC(),Ee((IDn(),Gce),n)}function A0e(n){return Fk(),Ee((bNn(),Uce),n)}function S0e(n){return tC(),Ee((ODn(),Xce),n)}function P0e(n){return ck(),Ee((wLn(),Vce),n)}function I0e(n){return Yk(),Ee((d$n(),Wce),n)}function O0e(n){return f6(),Ee((DDn(),lue),n)}function D0e(n){return Ak(),Ee((gLn(),aue),n)}function L0e(n){return gf(),Ee((w$n(),mue),n)}function N0e(n){return l1(),Ee((Lxn(),kue),n)}function $0e(n){return Rh(),Ee((F$n(),yue),n)}function x0e(n){return wd(),Ee((B$n(),Aue),n)}function F0e(n){return ci(),Ee((b$n(),zue),n)}function B0e(n){return Nf(),Ee((wNn(),Xue),n)}function R0e(n){return El(),Ee((RNn(),Vue),n)}function K0e(n){return pA(),Ee((R$n(),Wue),n)}function _0e(n){return jl(),Ee((dNn(),Que),n)}function H0e(n){return To(),Ee((KNn(),Zue),n)}function q0e(n){return lw(),Ee((Wxn(),noe),n)}function U0e(n){return Fg(),Ee((g$n(),eoe),n)}function G0e(n){return Oi(),Ee((K$n(),toe),n)}function z0e(n){return zu(),Ee((_$n(),ioe),n)}function X0e(n){return tn(),Ee((p$n(),roe),n)}function V0e(n){return go(),Ee((_Nn(),foe),n)}function W0e(n){return io(),Ee((Vxn(),hoe),n)}function J0e(n){return Gp(),Ee((gNn(),loe),n)}function Q0e(n,e){return Jn(n),n+(Jn(e),e)}function Y0e(n){return RL(),Ee((pLn(),aoe),n)}function Z0e(n){return qT(),Ee((HNn(),doe),n)}function nbe(n){return LT(),Ee((qNn(),goe),n)}function k4(){k4=F,tln=(tn(),Wn),II=Zn}function RL(){RL=F,vdn=new VSn,kdn=new LPn}function ebe(n){return!n.e&&(n.e=new Z),n.e}function KL(n,e){this.c=n,this.a=e,this.b=e-n}function vSn(n,e,t){this.a=n,this.b=e,this.c=t}function _L(n,e,t){this.a=n,this.b=e,this.c=t}function FV(n,e,t){this.a=n,this.b=e,this.c=t}function BV(n,e,t){this.a=n,this.b=e,this.c=t}function kSn(n,e,t){this.a=n,this.b=e,this.c=t}function ySn(n,e,t){this.a=n,this.b=e,this.c=t}function Xl(n,e,t){this.e=n,this.a=e,this.c=t}function jSn(n,e,t){Ko(),tJ.call(this,n,e,t)}function HL(n,e,t){Ko(),RW.call(this,n,e,t)}function RV(n,e,t){Ko(),RW.call(this,n,e,t)}function KV(n,e,t){Ko(),RW.call(this,n,e,t)}function ESn(n,e,t){Ko(),HL.call(this,n,e,t)}function _V(n,e,t){Ko(),HL.call(this,n,e,t)}function CSn(n,e,t){Ko(),_V.call(this,n,e,t)}function MSn(n,e,t){Ko(),RV.call(this,n,e,t)}function TSn(n,e,t){Ko(),KV.call(this,n,e,t)}function qL(n){rM.call(this,n.d,n.c,n.a,n.b)}function HV(n){rM.call(this,n.d,n.c,n.a,n.b)}function qV(n){this.d=n,c9n(this),this.b=nwe(n.d)}function tbe(n){return Cm(),Ee((Nxn(),Poe),n)}function x7(n,e){return Se(n),Se(e),new NEn(n,e)}function Cp(n,e){return Se(n),Se(e),new RSn(n,e)}function ibe(n,e){return Se(n),Se(e),new KSn(n,e)}function rbe(n,e){return Se(n),Se(e),new qEn(n,e)}function UL(n){return oe(n.b!=0),Xo(n,n.a.a)}function cbe(n){return oe(n.b!=0),Xo(n,n.c.b)}function ube(n){return!n.c&&(n.c=new W3),n.c}function y4(n){var e;return e=new Z,b$(e,n),e}function obe(n){var e;return e=new ni,b$(e,n),e}function ASn(n){var e;return e=new GG,A$(e,n),e}function F7(n){var e;return e=new Ct,A$(e,n),e}function u(n,e){return F6(n==null||Tx(n,e)),n}function sbe(n,e,t){TPn.call(this,e,t),this.a=n}function SSn(n,e){this.c=n,this.b=e,this.a=!1}function PSn(){this.a=";,;",this.b="",this.c=""}function ISn(n,e,t){this.b=n,_Mn.call(this,e,t)}function UV(n,e,t){this.c=n,oC.call(this,e,t)}function GV(n,e,t){d4.call(this,n,e),this.b=t}function zV(n,e,t){Bnn(t,0,n,e,t.length,!1)}function Lh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function XV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function fbe(n,e){e&&(n.b=e,n.a=(z1(e),e.a))}function B7(n,e){if(!n)throw M(new Gn(e))}function Mp(n,e){if(!n)throw M(new Or(e))}function VV(n,e){if(!n)throw M(new Bjn(e))}function hbe(n,e){return ZE(),jc(n.d.p,e.d.p)}function lbe(n,e){return kl(),bt(n.e.b,e.e.b)}function abe(n,e){return kl(),bt(n.e.a,e.e.a)}function dbe(n,e){return jc(GSn(n.d),GSn(e.d))}function WC(n,e){return e&&vM(n,e.d)?e:null}function bbe(n,e){return e==(tn(),Wn)?n.c:n.d}function WV(n){return Q1(dwe(Vr(n)?ds(n):n))}function wbe(n){return new V(n.c+n.b,n.d+n.a)}function OSn(n){return n!=null&&!lx(n,N9,$9)}function gbe(n,e){return(fBn(n)<<4|fBn(e))&ui}function DSn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function JV(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function QV(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function pbe(n,e){var t;return t=n.c,PQ(n,e),t}function YV(n,e){return e<0?n.g=-1:n.g=e,n}function JC(n,e){return Mme(n),n.a*=e,n.b*=e,n}function LSn(n,e,t){A$n.call(this,e,t),this.d=n}function R7(n,e,t){pX.call(this,n,e),this.c=t}function QC(n,e,t){pX.call(this,n,e),this.c=t}function ZV(n){OV(),ME.call(this),this.ci(n)}function NSn(){$4(),Bwe.call(this,(R1(),Ss))}function $Sn(n){return nt(),new Nh(0,n)}function xSn(){xSn=F,AU=(Dn(),new nD(IK))}function YC(){YC=F,new hZ((bD(),HK),(dD(),_K))}function FSn(){FSn=F,pun=K(Gi,J,17,256,0,1)}function BSn(){this.b=$(R(rn((qs(),y_))))}function GL(n){this.b=n,this.a=Wa(this.b.a).Od()}function RSn(n,e){this.b=n,this.a=e,GO.call(this)}function KSn(n,e){this.a=n,this.b=e,GO.call(this)}function _Sn(n,e,t){this.a=n,gg.call(this,e,t)}function HSn(n,e,t){this.a=n,gg.call(this,e,t)}function j4(n,e,t){var i;i=new qb(t),df(n,e,i)}function nW(n,e,t){var i;return i=n[e],n[e]=t,i}function ZC(n){var e;return e=n.slice(),o$(e,n)}function nM(n){var e;return e=n.n,n.a.b+e.d+e.a}function qSn(n){var e;return e=n.n,n.e.b+e.d+e.a}function eW(n){var e;return e=n.n,n.e.a+e.b+e.c}function tW(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function xe(n,e){return xt(n,e,n.c.b,n.c),!0}function mbe(n){return n.a?n.a:vN(n)}function vbe(n){return Lp(),Kh(n)==At(ia(n))}function kbe(n){return Lp(),ia(n)==At(Kh(n))}function d0(n,e){return O5(n,new d4(e.a,e.b))}function ybe(n,e){return yM(),Nx(n,e),new lIn(n,e)}function jbe(n,e){return n.c=e)throw M(new YG)}function _b(n,e){return $k(n,(Jn(e),new a9n(e)))}function Ap(n,e){return $k(n,(Jn(e),new d9n(e)))}function SPn(n,e,t){return VLe(n,u(e,12),u(t,12))}function PPn(n){return Ou(),u(n,12).g.c.length!=0}function IPn(n){return Ou(),u(n,12).e.c.length!=0}function uwe(n,e){return Hp(),bt(e.a.o.a,n.a.o.a)}function owe(n,e){e.Bb&kc&&!n.a.o&&(n.a.o=e)}function swe(n,e){e.Ug("General 'Rotator",1),jDe(n)}function fwe(n,e,t){e.qf(t,$(R(ee(n.b,t)))*n.a)}function OPn(n,e,t){return Xg(),W4(n,e)&&W4(n,t)}function _6(n){return zu(),!n.Hc(Fl)&&!n.Hc(Pa)}function hwe(n){return n.e?qJ(n.e):null}function H6(n){return Vr(n)?""+n:$qn(n)}function yW(n){var e;for(e=n;e.f;)e=e.f;return e}function lwe(n,e,t){return $t(e,0,oW(e[0],t[0])),e}function Vl(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function q(n,e,t,i){ti.call(this,n,e,t),this.b=i}function Ci(n,e,t,i,r){c$.call(this,n,e,t,i,r,-1)}function q6(n,e,t,i,r){ok.call(this,n,e,t,i,r,-1)}function bM(n,e,t,i){R7.call(this,n,e,t),this.b=i}function DPn(n){PMn.call(this,n,!1),this.a=!1}function LPn(){sMn.call(this,"LOOKAHEAD_LAYOUT",1)}function NPn(n){this.b=n,kp.call(this,n),RTn(this)}function $Pn(n){this.b=n,A7.call(this,n),KTn(this)}function Hb(n,e,t){this.a=n,jp.call(this,e,t,5,6)}function jW(n,e,t,i){this.b=n,ti.call(this,e,t,i)}function xPn(n,e){this.b=n,H8n.call(this,n.b),this.a=e}function FPn(n){this.a=kRn(n.a),this.b=new _u(n.b)}function EW(n,e){m0(),Hhe.call(this,n,FT(new Ku(e)))}function wM(n,e){return nt(),new BW(n,e,0)}function rN(n,e){return nt(),new BW(6,n,e)}function _i(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function Zc(n,e){return Ai(e)?AN(n,e):!!wr(n.f,e)}function cN(n,e){return e.Vh()?na(n.b,u(e,54)):e}function awe(n,e){return An(n.substr(0,e.length),e)}function $h(n){return new te(new UX(n.a.length,n.a))}function gM(n){return new V(n.c+n.b/2,n.d+n.a/2)}function dwe(n){return Yc(~n.l&ro,~n.m&ro,~n.h&Il)}function uN(n){return typeof n===vy||typeof n===eB}function Hu(n){n.f=new iTn(n),n.i=new rTn(n),++n.g}function BPn(n){if(!n)throw M(new nc);return n.d}function Sp(n){var e;return e=a5(n),oe(e!=null),e}function bwe(n){var e;return e=I5e(n),oe(e!=null),e}function C4(n,e){var t;return t=n.a.gc(),BJ(e,t),t-e}function fi(n,e){var t;return t=n.a.zc(e,n),t==null}function _7(n,e){return n.a.zc(e,(_n(),wa))==null}function CW(n){return new Tn(null,vwe(n,n.length))}function MW(n,e,t){return cGn(n,u(e,42),u(t,176))}function Pp(n,e,t){return Ks(n.a,e),nW(n.b,e.g,t)}function wwe(n,e,t){E4(t,n.a.c.length),Go(n.a,t,e)}function B(n,e,t,i){xFn(e,t,n.length),gwe(n,e,t,i)}function gwe(n,e,t,i){var r;for(r=e;r0?y.Math.log(n/e):-100}function KPn(n,e){return Ec(n,e)<0?-1:Ec(n,e)>0?1:0}function H7(n,e){OTn(n,O(e,160)?e:u(e,2036).Rl())}function PW(n,e){if(n==null)throw M(new sp(e))}function vwe(n,e){return yme(e,n.length),new XSn(n,e)}function IW(n,e){return e?Bi(n,e):!1}function kwe(){return RE(),S(T(uQn,1),G,549,0,[GK])}function G6(n){return n.e==0?n:new Qa(-n.e,n.d,n.a)}function ywe(n,e){return bt(n.c.c+n.c.b,e.c.c+e.c.b)}function q7(n,e){xt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function _Pn(n,e){return n.c?_Pn(n.c,e):nn(n.b,e),n}function jwe(n,e,t){var i;return i=Jb(n,e),qN(n,e,t),i}function HPn(n,e,t){var i;for(i=0;i=n.g}function $t(n,e,t){return dae(t==null||oPe(n,t)),n[e]=t}function $W(n,e){return zn(e,n.length+1),n.substr(e)}function gN(n,e){for(Jn(e);n.c=n?new Dz:Gme(n-1)}function Hi(n){return!n.a&&n.c?n.c.b:n.a}function KW(n){return O(n,616)?n:new oOn(n)}function z1(n){n.c?z1(n.c):(ea(n),n.d=!0)}function V6(n){n.c?n.c.$e():(n.d=!0,fTe(n))}function sIn(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function fIn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function _we(n,e){var t;t=n.Ih(e),t>=0?n.ki(t):Pnn(n,e)}function hIn(n,e){n.c<0||n.b.b0;)n=n<<1|(n<0?1:0);return n}function mIn(n,e){var t;return t=new Lc(n),Bn(e.c,t),t}function vIn(n,e){n.u.Hc((zu(),Fl))&&zEe(n,e),h4e(n,e)}function mc(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function Cr(n,e){return JL(n.a,e)?n.b[u(e,22).g]:null}function nge(){return YE(),S(T(oon,1),G,489,0,[b_])}function ege(){return eC(),S(T($1n,1),G,490,0,[Bq])}function tge(){return tC(),S(T(zce,1),G,558,0,[Rq])}function ige(){return f6(),S(T(tan,1),G,539,0,[Hj])}function jM(n){return!n.n&&(n.n=new q(Ar,n,1,7)),n.n}function mN(n){return!n.c&&(n.c=new q(Qu,n,9,9)),n.c}function UW(n){return!n.c&&(n.c=new Nn(he,n,5,8)),n.c}function rge(n){return!n.b&&(n.b=new Nn(he,n,4,7)),n.b}function U7(n){return n.j.c.length=0,zW(n.c),xae(n.a),n}function P4(n){return n.e==rv&&jfe(n,Y8e(n.g,n.b)),n.e}function G7(n){return n.f==rv&&Cfe(n,q7e(n.g,n.b)),n.f}function Ve(n,e,t,i){return Hxn(n,e,t,!1),BT(n,i),n}function kIn(n,e){this.b=n,oN.call(this,n,e),RTn(this)}function yIn(n,e){this.b=n,SV.call(this,n,e),KTn(this)}function W6(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function GW(n,e){this.b=n,this.c=e,this.a=new dp(this.b)}function Xi(n,e){return zn(e,n.length),n.charCodeAt(e)}function cge(n,e){DY(n,$(yl(e,"x")),$(yl(e,"y")))}function uge(n,e){DY(n,$(yl(e,"x")),$(yl(e,"y")))}function ut(n,e){return ea(n),new Tn(n,new tQ(e,n.a))}function _r(n,e){return ea(n),new Tn(n,new _J(e,n.a))}function Ub(n,e){return ea(n),new uV(n,new ILn(e,n.a))}function EM(n,e){return ea(n),new oV(n,new OLn(e,n.a))}function oge(n,e){return new GIn(u(Se(n),50),u(Se(e),50))}function sge(n,e){return bt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function jIn(n,e,t){t.a?tu(n,e.b-n.f/2):eu(n,e.a-n.g/2)}function fge(n,e){return bt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function hge(n,e){return $z(),bt((Jn(n),n),(Jn(e),e))}function lge(n){return n!=null&&r7(jO,n.toLowerCase())}function zW(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Tg(n){var e;return e=n.b,!e&&(n.b=e=new N8n(n)),e}function vN(n){var e;return e=Wme(n),e||null}function EIn(n,e){var t,i;return t=n/e,i=wi(t),t>i&&++i,i}function age(n,e,t){var i;i=u(n.d.Kb(t),159),i&&i.Nb(e)}function dge(n,e,t){wIe(n.a,t),zve(t),xCe(n.b,t),$Ie(e,t)}function CM(n,e,t,i){this.a=n,this.c=e,this.b=t,this.d=i}function XW(n,e,t,i){this.c=n,this.b=e,this.a=t,this.d=i}function CIn(n,e,t,i){this.c=n,this.b=e,this.d=t,this.a=i}function Ho(n,e,t,i){this.c=n,this.d=e,this.b=t,this.a=i}function MIn(n,e,t,i){this.a=n,this.d=e,this.c=t,this.b=i}function kN(n,e,t,i){this.a=n,this.e=e,this.d=t,this.c=i}function TIn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function yN(n,e,t){this.a=ktn,this.d=n,this.b=e,this.c=t}function Op(n,e,t,i){je.call(this,n,e),this.a=t,this.b=i}function AIn(n,e){this.d=(Jn(n),n),this.a=16449,this.c=e}function SIn(n){this.a=new Z,this.e=K(ye,J,53,n,0,2)}function bge(n){n.Ug("No crossing minimization",1),n.Vg()}function PIn(){ec.call(this,"There is no more element.")}function IIn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function OIn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function Za(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function DIn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function LIn(n,e,t,i){Ko(),DLn.call(this,e,t,i),this.a=n}function NIn(n,e,t,i){Ko(),DLn.call(this,e,t,i),this.a=n}function jN(n,e,t){var i,r;return i=utn(n),r=e.ti(t,i),r}function al(n){var e,t;return t=(e=new Jd,e),K4(t,n),t}function EN(n){var e,t;return t=(e=new Jd,e),fnn(t,n),t}function wge(n,e){var t;return t=ee(n.f,e),HQ(e,t),null}function $In(n){return!n.b&&(n.b=new q(Vt,n,12,3)),n.b}function xIn(n){return F6(n==null||uN(n)&&n.Tm!==J2),n}function MM(n){return n.n&&(n.e!==Fzn&&n.je(),n.j=null),n}function I4(n){if(eo(n.d),n.d.d!=n.c)throw M(new Bo)}function VW(n){return oe(n.b0&&bKn(this)}function FIn(n,e){this.a=n,bae.call(this,n,u(n.d,15).fd(e))}function gge(n,e){return bt(Su(n)*ao(n),Su(e)*ao(e))}function pge(n,e){return bt(Su(n)*ao(n),Su(e)*ao(e))}function mge(n){return _0(n)&&on(un(z(n,(cn(),Nd))))}function vge(n,e){return Pn(n,u(v(e,(cn(),Cv)),17),e)}function kge(n,e){return u(v(n,(W(),T3)),15).Fc(e),e}function WW(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function BIn(n,e,t,i){this.b=n,this.c=i,IC.call(this,e,t)}function yge(n,e,t){n.i=0,n.e=0,e!=t&&yFn(n,e,t)}function jge(n,e,t){n.i=0,n.e=0,e!=t&&jFn(n,e,t)}function Ege(n,e,t){return s6(),J5e(u(ee(n.e,e),529),t)}function Dp(n){var e;return e=n.f,e||(n.f=new h4(n,n.c))}function RIn(n,e){return xg(n.j,e.s,e.c)+xg(e.e,n.s,n.c)}function KIn(n,e){n.e&&!n.e.a&&(Ayn(n.e,e),KIn(n.e,e))}function _In(n,e){n.d&&!n.d.a&&(Ayn(n.d,e),_In(n.d,e))}function Cge(n,e){return-bt(Su(n)*ao(n),Su(e)*ao(e))}function Mge(n){return u(n.ld(),149).Pg()+":"+Jr(n.md())}function HIn(){tF(this,new oG),this.wb=(G1(),Hn),o4()}function qIn(n){this.b=new Z,hi(this.b,this.b),this.a=n}function JW(n,e){new Ct,this.a=new Mu,this.b=n,this.c=e}function j0(){j0=F,Pun=new FU,ZK=new FU,Iun=new D0n}function Dn(){Dn=F,sr=new A0n,Wh=new P0n,hP=new I0n}function QW(){QW=F,RQn=new nbn,_Qn=new aW,KQn=new ebn}function Lp(){Lp=F,mP=new Z,m_=new de,p_=new Z}function TM(n,e){if(n==null)throw M(new sp(e));return n}function AM(n){return!n.a&&(n.a=new q(Qe,n,10,11)),n.a}function ft(n){return!n.q&&(n.q=new q(As,n,11,10)),n.q}function _(n){return!n.s&&(n.s=new q(ku,n,21,17)),n.s}function Tge(n){return Se(n),IRn(new te(re(n.a.Kc(),new En)))}function Age(n,e){return wo(n),wo(e),Fjn(u(n,22),u(e,22))}function nd(n,e,t){var i,r;i=IV(t),r=new AE(i),df(n,e,r)}function MN(n,e,t,i,r,c){ok.call(this,n,e,t,i,r,c?-2:-1)}function UIn(n,e,t,i){pX.call(this,e,t),this.b=n,this.a=i}function GIn(n,e){Vfe.call(this,new iN(n)),this.a=n,this.b=e}function YW(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Sge(n){xs();var e;e=u(n.g,10),e.n.a=n.d.c+e.d.b}function O4(){O4=F;var n,e;e=!$8e(),n=new V3,VK=e?new og:n}function TN(n){return Dn(),O(n,59)?new jD(n):new BC(n)}function SM(n){return O(n,16)?new B6(u(n,16)):obe(n.Kc())}function Pge(n){return new HTn(n,n.e.Rd().gc()*n.c.Rd().gc())}function Ige(n){return new qTn(n,n.e.Rd().gc()*n.c.Rd().gc())}function ZW(n){return n&&n.hashCode?n.hashCode():l0(n)}function AN(n,e){return e==null?!!wr(n.f,null):zbe(n.i,e)}function Oge(n,e){var t;return t=$X(n.a,e),t&&(e.d=null),t}function zIn(n,e,t){return n.f?n.f.ef(e,t):!1}function z7(n,e,t,i){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i)}function SN(n,e,t,i){$t(n.c[e.g],e.g,t),$t(n.b[e.g],e.g,i)}function Dge(n,e,t){return $(R(t.a))<=n&&$(R(t.b))>=e}function XIn(n,e){this.g=n,this.d=S(T(Qh,1),b1,10,0,[e])}function VIn(n){this.c=n,this.b=new Ul(u(Se(new tbn),50))}function WIn(n){this.c=n,this.b=new Ul(u(Se(new ewn),50))}function JIn(n){this.b=n,this.a=new Ul(u(Se(new Nbn),50))}function QIn(){this.b=new ni,this.d=new Ct,this.e=new ZG}function nJ(){this.c=new Li,this.d=new Li,this.e=new Li}function E0(){this.a=new Mu,this.b=(Co(3,mw),new Gc(3))}function Wl(n,e){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e}function PM(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function YIn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function ZIn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function X1(n,e,t,i,r,c,s){return new GN(n.e,e,t,i,r,c,s)}function Lge(n,e,t){return t>=0&&An(n.substr(t,e.length),e)}function nOn(n,e){return O(e,149)&&An(n.b,u(e,149).Pg())}function Nge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}function eOn(n,e){var t;return t=n.b.Qc(e),WDn(t,n.b.gc()),t}function X7(n,e){if(n==null)throw M(new sp(e));return n}function Hr(n){return n.u||(Zu(n),n.u=new NAn(n,n)),n.u}function PN(n){this.a=(Dn(),O(n,59)?new jD(n):new BC(n))}function au(n){var e;return e=u(Un(n,16),29),e||n.ii()}function IM(n,e){var t;return t=za(n.Rm),e==null?t:t+": "+e}function qo(n,e,t){return Fi(e,t,n.length),n.substr(e,t-e)}function tOn(n,e){qC.call(this),lQ(this),this.a=n,this.c=e}function $ge(n){n&&IM(n,n.ie())}function xge(n){HE(),y.setTimeout(function(){throw n},0)}function Fge(){return YT(),S(T(Bun,1),G,436,0,[o_,Fun])}function Bge(){return cT(),S(T(Kun,1),G,435,0,[Run,s_])}function Rge(){return uT(),S(T(bon,1),G,432,0,[v_,vP])}function Kge(){return V4(),S(T(KZn,1),G,517,0,[dj,L_])}function _ge(){return KM(),S(T(Qsn,1),G,429,0,[fH,Jsn])}function Hge(){return pk(),S(T($sn,1),G,428,0,[WP,Nsn])}function qge(){return QM(),S(T(Asn,1),G,431,0,[Tsn,V_])}function Uge(){return wk(),S(T(qhn,1),G,430,0,[UH,GH])}function Gge(){return n5(),S(T(Oie,1),G,531,0,[r9,i9])}function zge(){return yT(),S(T(Rln,1),G,501,0,[RI,D2])}function Xge(){return sh(),S(T(Bie,1),G,523,0,[mb,y1])}function Vge(){return Sf(),S(T(Kie,1),G,522,0,[Rd,zf])}function Wge(){return lf(),S(T(ere,1),G,528,0,[zw,ja])}function Jge(){return hk(),S(T(Bsn,1),G,488,0,[Fsn,QP])}function Qge(){return GM(),S(T(S1n,1),G,491,0,[$q,A1n])}function Yge(){return N$(),S(T(N1n,1),G,492,0,[D1n,L1n])}function Zge(){return FM(),S(T(Bln,1),G,433,0,[dq,Fln])}function n2e(){return ZM(),S(T(_ln,1),G,434,0,[Kln,vq])}function e2e(){return M0(),S(T(sre,1),G,465,0,[Ea,P2])}function t2e(){return ck(),S(T(x1n,1),G,438,0,[Kq,JI])}function i2e(){return Ak(),S(T(ran,1),G,437,0,[YI,ian])}function r2e(){return RL(),S(T(dO,1),G,347,0,[vdn,kdn])}function OM(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function V7(n){return n.b.b==0?n.a.sf():UL(n.b)}function c2e(n){if(n.p!=5)throw M(new Cu);return Ae(n.f)}function u2e(n){if(n.p!=5)throw M(new Cu);return Ae(n.k)}function eJ(n){return x(n.a)===x((D$(),CU))&&rOe(n),n.a}function o2e(n,e){n.b=e,n.c>0&&n.b>0&&(n.g=cM(n.c,n.b,n.a))}function s2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=cM(n.c,n.b,n.a))}function iOn(n,e){ufe(this,new V(n.a,n.b)),ofe(this,F7(e))}function C0(){Wfe.call(this,new ap(Qb(12))),KX(!0),this.a=2}function IN(n,e,t){nt(),Wd.call(this,n),this.b=e,this.a=t}function tJ(n,e,t){Ko(),LE.call(this,e),this.a=n,this.b=t}function rOn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function f2e(n){return n.b==0?null:(oe(n.b!=0),Xo(n,n.a.a))}function Nc(n,e){return e==null?Kr(wr(n.f,null)):d6(n.i,e)}function cOn(n,e,t,i,r){return new rF(n,(B4(),i_),e,t,i,r)}function DM(n,e){return zDn(e),Lme(n,K(ye,Ke,28,e,15,1),e)}function LM(n,e){return TM(n,"set1"),TM(e,"set2"),new VEn(n,e)}function h2e(n,e){var t=XK[n.charCodeAt(0)];return t??n}function uOn(n,e){var t,i;return t=e,i=new DO,LGn(n,t,i),i.d}function ON(n,e,t,i){var r;r=new FAn,e.a[t.g]=r,Pp(n.b,i,r)}function l2e(n,e){var t;return t=Ime(n.f,e),tt(HC(t),n.f.d)}function W7(n){var e;_me(n.a),dTn(n.a),e=new IE(n.a),HY(e)}function a2e(n,e){_qn(n,!0),nu(n.e.Rf(),new NV(n,!0,e))}function d2e(n,e){return Lp(),n==At(Kh(e))||n==At(ia(e))}function b2e(n,e){return kl(),u(v(e,(lc(),Sh)),17).a==n}function wi(n){return Math.max(Math.min(n,et),-2147483648)|0}function oOn(n){this.a=u(Se(n),277),this.b=(Dn(),new XX(n))}function sOn(n,e,t){this.i=new Z,this.b=n,this.g=e,this.a=t}function iJ(n,e,t){this.a=new Z,this.e=n,this.f=e,this.c=t}function NM(n,e,t){this.c=new Z,this.e=n,this.f=e,this.b=t}function fOn(n){qC.call(this),lQ(this),this.a=n,this.c=!0}function w2e(n){function e(){}return e.prototype=n||{},new e}function g2e(n){if(n.Ae())return null;var e=n.n;return rP[e]}function J7(n){return n.Db>>16!=3?null:u(n.Cb,27)}function Af(n){return n.Db>>16!=9?null:u(n.Cb,27)}function hOn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function M0(){M0=F,Ea=new cX(s3,0),P2=new cX(f3,1)}function sh(){sh=F,mb=new tX(f3,0),y1=new tX(s3,1)}function Sf(){Sf=F,Rd=new iX(_B,0),zf=new iX("UP",1)}function lOn(){lOn=F,oQn=Ce((RE(),S(T(uQn,1),G,549,0,[GK])))}function aOn(n){var e;return e=new zE(Qb(n.length)),eY(e,n),e}function dOn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function p2e(n,e){return Zxn(n,e)?(W$n(n),!0):!1}function dl(n,e){if(e==null)throw M(new ip);return F8e(n,e)}function Q7(n,e){var t;t=n.q.getHours(),n.q.setDate(e),G5(n,t)}function rJ(n,e,t){var i;i=n.Ih(e),i>=0?n.bi(i,t):ten(n,e,t)}function bOn(n,e){var t;return t=n.Ih(e),t>=0?n.Wh(t):hF(n,e)}function wOn(n,e){var t;for(Se(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function DN(n,e,t){var i;i=vFn(n,e,t),n.b=new ET(i.c.length)}function Ag(n,e,t){$M(),n&&Xe(yU,n,e),n&&Xe(hE,n,t)}function m2e(n,e){return VC(),_n(),u(e.a,17).a0}function cJ(n){var e;return e=n.d,e=n.bj(n.f),ve(n,e),e.Ob()}function gOn(n,e){var t;return t=new fW(e),_Kn(t,n),new _u(t)}function y2e(n){if(n.p!=0)throw M(new Cu);return M6(n.f,0)}function j2e(n){if(n.p!=0)throw M(new Cu);return M6(n.k,0)}function pOn(n){return n.Db>>16!=7?null:u(n.Cb,241)}function D4(n){return n.Db>>16!=6?null:u(n.Cb,241)}function mOn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function At(n){return n.Db>>16!=11?null:u(n.Cb,27)}function Gb(n){return n.Db>>16!=17?null:u(n.Cb,29)}function vOn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function uJ(n){var e;return ea(n),e=new ni,ut(n,new M9n(e))}function kOn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function E2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),G5(n,t)}function yOn(n,e){xC(this),this.f=e,this.g=n,MM(this),this.je()}function jOn(n,e){this.a=n,this.c=Ki(this.a),this.b=new PM(e)}function EOn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new _u(t))}function COn(n,e,t){this.a=e,this.c=n,this.b=(Se(t),new _u(t))}function MOn(n){this.a=n,this.b=K(Sie,J,2043,n.e.length,0,2)}function TOn(){this.a=new ih,this.e=new ni,this.g=0,this.i=0}function $M(){$M=F,yU=new de,hE=new de,ple(MQn,new wvn)}function AOn(){AOn=F,aie=Pu(new ii,(Vi(),zr),(tr(),bj))}function oJ(){oJ=F,die=Pu(new ii,(Vi(),zr),(tr(),bj))}function SOn(){SOn=F,wie=Pu(new ii,(Vi(),zr),(tr(),bj))}function POn(){POn=F,Lie=Re(new ii,(Vi(),zr),(tr(),x8))}function ko(){ko=F,xie=Re(new ii,(Vi(),zr),(tr(),x8))}function IOn(){IOn=F,Fie=Re(new ii,(Vi(),zr),(tr(),x8))}function NN(){NN=F,Hie=Re(new ii,(Vi(),zr),(tr(),x8))}function J6(n,e,t,i,r,c){return new ml(n.e,e,n.Lj(),t,i,r,c)}function Dr(n,e,t){return e==null?Vc(n.f,null,t):$0(n.i,e,t)}function Zi(n,e){n.c&&du(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function $i(n,e){n.c&&du(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function ic(n,e){n.i&&du(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Ii(n,e){n.d&&du(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function $N(n,e){n.a&&du(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function xN(n,e){n.b&&du(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function OOn(n,e){$we(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68).b}function C2e(n,e){return bt(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}function M2e(n,e){return bt(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}function T2e(n){return Y$(),_n(),u(n.a,86).d.e!=0}function xM(n,e){O(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,e)}function FN(n,e){O(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,e)}function A2e(n,e){LY(n,e),O(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2)}function S2e(n,e){var t,i;t=e.c,i=t!=null,i&&Ip(n,new qb(e.c))}function DOn(n){var e,t;return t=(o4(),e=new Jd,e),K4(t,n),t}function LOn(n){var e,t;return t=(o4(),e=new Jd,e),K4(t,n),t}function NOn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function P2e(n,e,t){return nn(n.a,(yM(),Nx(e,t),new i0(e,t))),n}function $c(n,e){return dr(),a$(e)?new eM(e,n):new j7(e,n)}function Y7(n){return dh(),Ec(n,0)>=0?ta(n):G6(ta(n1(n)))}function I2e(n){var e;return e=u(ZC(n.b),9),new _o(n.a,e,n.c)}function $On(n,e){var t;return t=u(tw(Dp(n.a),e),16),t?t.gc():0}function xOn(n,e,t){var i;oBn(e,t,n.c.length),i=t-e,Pz(n.c,e,i)}function Jl(n,e,t){oBn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Np(n){this.c=new Ct,this.b=n.b,this.d=n.c,this.a=n.a}function BN(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function ed(n,e,t,i){this.c=n,this.d=i,$N(this,e),xN(this,t)}function sJ(n,e){Xfe.call(this,new ap(Qb(n))),Co(e,Ozn),this.a=e}function FOn(n,e,t){return new rF(n,(B4(),t_),null,!1,e,t)}function BOn(n,e,t){return new rF(n,(B4(),r_),e,t,null,!1)}function O2e(){return Gu(),S(T(xr,1),G,108,0,[xun,Yr,Aw])}function D2e(){return bu(),S(T(JQn,1),G,472,0,[vf,pa,zs])}function L2e(){return Uu(),S(T(VQn,1),G,471,0,[Mh,ga,Gs])}function N2e(){return bf(),S(T(Sw,1),G,237,0,[bc,Wc,wc])}function $2e(){return i5(),S(T(Pon,1),G,391,0,[E_,j_,C_])}function x2e(){return D0(),S(T(R_,1),G,372,0,[ub,ma,cb])}function F2e(){return u5(),S(T(Psn,1),G,322,0,[B8,pj,Ssn])}function B2e(){return bT(),S(T(Osn,1),G,351,0,[Isn,VP,W_])}function R2e(){return hd(),S(T(pne,1),G,460,0,[Y_,mv,p2])}function K2e(){return Z4(),S(T(sH,1),G,299,0,[uH,oH,mj])}function _2e(){return vl(),S(T(Mne,1),G,311,0,[vj,v2,E3])}function H2e(){return g5(),S(T(Lhn,1),G,390,0,[FH,Dhn,MI])}function q2e(){return gr(),S(T(cie,1),G,463,0,[n9,Vu,Jc])}function U2e(){return ST(),S(T(zhn,1),G,387,0,[Uhn,zH,Ghn])}function G2e(){return d5(),S(T(Xhn,1),G,349,0,[VH,XH,Ij])}function z2e(){return om(),S(T(Whn,1),G,350,0,[WH,Vhn,e9])}function X2e(){return dT(),S(T(Yhn,1),G,352,0,[Qhn,JH,Jhn])}function V2e(){return DT(),S(T(Zhn,1),G,388,0,[QH,Ov,Gw])}function W2e(){return O0(),S(T(Tie,1),G,464,0,[Oj,t9,PI])}function Pf(n){return cc(S(T(Ei,1),J,8,0,[n.i.n,n.n,n.a]))}function J2e(){return b5(),S(T(gln,1),G,392,0,[wln,nq,Lj])}function ROn(){ROn=F,Fre=Pu(new ii,(Qp(),u9),(q5(),uln))}function FM(){FM=F,dq=new uX("DFS",0),Fln=new uX("BFS",1)}function KOn(n,e,t){var i;i=new E3n,i.b=e,i.a=t,++e.b,nn(n.d,i)}function Q2e(n,e,t){var i;i=new rr(t.d),tt(i,n),DY(e,i.a,i.b)}function Y2e(n,e){LTn(n,Ae(vi(w0(e,24),YA)),Ae(vi(e,YA)))}function zb(n,e){if(n<0||n>e)throw M(new Ir(Ptn+n+Itn+e))}function Ln(n,e){if(n<0||n>=e)throw M(new Ir(Ptn+n+Itn+e))}function zn(n,e){if(n<0||n>=e)throw M(new gz(Ptn+n+Itn+e))}function In(n,e){this.b=(Jn(n),n),this.a=e&vw?e:e|64|wh}function fJ(n){var e;return ea(n),e=(j0(),j0(),ZK),fT(n,e)}function Z2e(n,e,t){var i;return i=V5(n,e,!1),i.b<=e&&i.a<=t}function npe(){return nT(),S(T(O1n,1),G,439,0,[xq,I1n,P1n])}function epe(){return _T(),S(T(a1n,1),G,394,0,[l1n,Oq,h1n])}function tpe(){return XT(),S(T(f1n,1),G,445,0,[Bj,qI,Mq])}function ipe(){return rA(),S(T(bce,1),G,456,0,[Tq,Sq,Aq])}function rpe(){return Ok(),S(T(Uln,1),G,393,0,[KI,Hln,qln])}function cpe(){return AT(),S(T(s1n,1),G,300,0,[Cq,o1n,u1n])}function upe(){return jl(),S(T(ldn,1),G,346,0,[uO,M1,M9])}function ope(){return Fk(),S(T(Fq,1),G,444,0,[XI,VI,WI])}function spe(){return Nf(),S(T(Zan,1),G,278,0,[Bv,Jw,Rv])}function fpe(){return Gp(),S(T(mdn,1),G,280,0,[pdn,Yw,aO])}function T0(n){return Se(n),O(n,16)?new _u(u(n,16)):y4(n.Kc())}function hJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return Q1(ewe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hf(n,e){return Q1(twe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function RN(n,e){return Q1(iwe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hpe(n,e){var t;return t=(Jn(n),n).g,rV(!!t),Jn(e),t(e)}function _On(n,e){var t,i;return i=C4(n,e),t=n.a.fd(i),new zEn(n,t)}function lpe(n){return n.Db>>16!=6?null:u(dF(n),241)}function ape(n){if(n.p!=2)throw M(new Cu);return Ae(n.f)&ui}function dpe(n){if(n.p!=2)throw M(new Cu);return Ae(n.k)&ui}function E(n){return oe(n.ai?1:0}function GOn(n,e){var t,i;return t=s$(e),i=t,u(ee(n.c,i),17).a}function KN(n,e,t){var i;i=n.d[e.p],n.d[e.p]=n.d[t.p],n.d[t.p]=i}function Cpe(n,e,t){var i;n.n&&e&&t&&(i=new uvn,nn(n.e,i))}function _N(n,e){if(fi(n.a,e),e.d)throw M(new ec(nXn));e.d=n}function dJ(n,e){this.a=new Z,this.d=new Z,this.f=n,this.c=e}function zOn(){this.c=new PTn,this.a=new $Ln,this.b=new Xyn,lCn()}function XOn(){qp(),this.b=new de,this.a=new de,this.c=new Z}function VOn(n,e,t){this.d=n,this.j=e,this.e=t,this.o=-1,this.p=3}function WOn(n,e,t){this.d=n,this.k=e,this.f=t,this.o=-1,this.p=5}function JOn(n,e,t,i,r,c){dQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function QOn(n,e,t,i,r,c){bQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function YOn(n,e,t,i,r,c){OJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function ZOn(n,e,t,i,r,c){pQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function nDn(n,e,t,i,r,c){DJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function eDn(n,e,t,i,r,c){wQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function tDn(n,e,t,i,r,c){gQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function iDn(n,e,t,i,r,c){LJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function rDn(n,e,t,i){LE.call(this,t),this.b=n,this.c=e,this.d=i}function cDn(n,e){this.f=n,this.a=($4(),MO),this.c=MO,this.b=e}function uDn(n,e){this.g=n,this.d=($4(),TO),this.a=TO,this.b=e}function bJ(n,e){!n.c&&(n.c=new Rt(n,0)),HA(n.c,(at(),F9),e)}function Mpe(n,e){return oMe(n,e,O(e,102)&&(u(e,19).Bb&hr)!=0)}function Tpe(n,e){return KPn(vc(n.q.getTime()),vc(e.q.getTime()))}function oDn(n){return XL(n.e.Rd().gc()*n.c.Rd().gc(),16,new O8n(n))}function Ape(n){return!!n.u&&Sc(n.u.a).i!=0&&!(n.n&&Ix(n.n))}function Spe(n){return!!n.a&&no(n.a.a).i!=0&&!(n.b&&Ox(n.b))}function wJ(n,e){return e==0?!!n.o&&n.o.f!=0:Cx(n,e)}function Ppe(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Hc(t)}function sDn(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Mc(t)}function fDn(n,e){var t;return t=1-e,n.a[t]=jT(n.a[t],t),jT(n,e)}function hDn(n,e){var t,i;return i=vi(n,mr),t=Fs(e,32),hf(t,i)}function lDn(n,e,t){var i;i=(Se(n),new _u(n)),O7e(new EOn(i,e,t))}function Z7(n,e,t){var i;i=(Se(n),new _u(n)),D7e(new COn(i,e,t))}function fc(n,e,t,i,r,c){return Hxn(n,e,t,c),CY(n,i),MY(n,r),n}function aDn(n,e,t,i){return n.a+=""+qo(e==null?gu:Jr(e),t,i),n}function xi(n,e){this.a=n,Xv.call(this,n),zb(e,n.gc()),this.b=e}function dDn(n){this.a=K(ki,Fn,1,QQ(y.Math.max(8,n))<<1,5,1)}function nk(n){return u(xf(n,K(Qh,b1,10,n.c.length,0,1)),199)}function fh(n){return u(xf(n,K(O_,rR,18,n.c.length,0,1)),483)}function bDn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function Q6(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function wDn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function Ipe(n,e,t){n.a=e,n.c=t,n.b.a.$b(),vo(n.d),Pb(n.e.a.c,0)}function gDn(n,e){var t;n.e=new uz,t=aw(e),Yt(t,n.c),Iqn(n,t,0)}function ri(n,e,t,i){var r;r=new nG,r.a=e,r.b=t,r.c=i,xe(n.a,r)}function Q(n,e,t,i){var r;r=new nG,r.a=e,r.b=t,r.c=i,xe(n.b,r)}function pDn(n,e,t){if(n<0||et)throw M(new Ir(qje(n,e,t)))}function ek(n,e){if(n<0||n>=e)throw M(new Ir(kEe(n,e)));return n}function Ope(n){if(!("stack"in n))try{throw n}catch{}return n}function Sg(n){return s6(),O(n.g,10)?u(n.g,10):null}function Dpe(n){return Tg(n).dc()?!1:(e1e(n,new Pr),!0)}function id(n){var e;return Vr(n)?(e=n,e==-0?0:e):X4e(n)}function mDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function vDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function kDn(n,e){return O(e,44)?xx(n.a,u(e,44)):!1}function gJ(n){var e;return z1(n),e=new L0n,hg(n.a,new j9n(e)),e}function pJ(){var n,e,t;return e=(t=(n=new Jd,n),t),nn(n0n,e),e}function BM(n){var e;return z1(n),e=new N0n,hg(n.a,new E9n(e)),e}function Lpe(n,e){return n.a<=n.b?(e.Dd(n.a++),!0):!1}function yDn(n){P$.call(this,n,(B4(),e_),null,!1,null,!1)}function jDn(){jDn=F,SYn=Ce((YE(),S(T(oon,1),G,489,0,[b_])))}function EDn(){EDn=F,eln=wIn(Y(1),Y(4)),nln=wIn(Y(1),Y(2))}function Npe(n,e){return new _L(e,N6(Ki(e.e),n,n),(_n(),!0))}function RM(n){return new Gc((Co(n,cB),oT(nr(nr(5,n),n/10|0))))}function $pe(n){return XL(n.e.Rd().gc()*n.c.Rd().gc(),273,new I8n(n))}function CDn(n){return u(xf(n,K(FZn,DXn,12,n.c.length,0,1)),2042)}function xpe(n){return ko(),!fr(n)&&!(!fr(n)&&n.c.i.c==n.d.i.c)}function Fpe(n,e){return _p(),u(v(e,(lc(),I2)),17).a>=n.gc()}function Y6(n,e){vLe(e,n),JV(n.d),JV(u(v(n,(cn(),mI)),214))}function HN(n,e){kLe(e,n),QV(n.d),QV(u(v(n,(cn(),mI)),214))}function Bpe(n,e,t){n.d&&du(n.d.e,n),n.d=e,n.d&&b0(n.d.e,t,n)}function Rpe(n,e,t){return t.f.c.length>0?MW(n.a,e,t):MW(n.b,e,t)}function Kpe(n,e,t){var i;i=i9e();try{return Aae(n,e,t)}finally{D3e(i)}}function A0(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.pe()),i}function Z6(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.se()),i}function L4(n,e){var t,i;return t=Jb(n,e),i=null,t&&(i=t.se()),i}function bl(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=gnn(t)),i}function _pe(n,e,t){var i;return i=wm(t),FA(n.g,i,e),FA(n.i,e,t),e}function mJ(n,e,t){this.d=new $7n(this),this.e=n,this.i=e,this.f=t}function MDn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function TDn(n,e,t,i){ETn(this),this.c=n,this.e=e,this.f=t,this.b=i}function vJ(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function ADn(n,e,t,i){return O(t,59)?new iAn(n,e,t,i):new vW(n,e,t,i)}function N4(n){return O(n,16)?u(n,16).dc():!n.Kc().Ob()}function SDn(n){if(n.e.g!=n.b)throw M(new Bo);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function kJ(n,e){Jn(e),$t(n.a,n.c,e),n.c=n.c+1&n.a.length-1,JRn(n)}function V1(n,e){Jn(e),n.b=n.b-1&n.a.length-1,$t(n.a,n.b,e),JRn(n)}function PDn(n){var e;e=n.Gh(),this.a=O(e,71)?u(e,71).Ii():e.Kc()}function Hpe(n){return new In(Ame(u(n.a.md(),16).gc(),n.a.ld()),16)}function IDn(){IDn=F,Gce=Ce((eC(),S(T($1n,1),G,490,0,[Bq])))}function ODn(){ODn=F,Xce=Ce((tC(),S(T(zce,1),G,558,0,[Rq])))}function DDn(){DDn=F,lue=Ce((f6(),S(T(tan,1),G,539,0,[Hj])))}function qpe(){return dd(),S(T(Lon,1),G,389,0,[Ow,Don,P_,I_])}function Upe(){return B4(),S(T(lP,1),G,304,0,[e_,t_,i_,r_])}function Gpe(){return Vp(),S(T(EYn,1),G,332,0,[uj,cj,oj,sj])}function zpe(){return A5(),S(T(TYn,1),G,406,0,[fj,wP,gP,hj])}function Xpe(){return N0(),S(T(yYn,1),G,417,0,[rj,ij,a_,d_])}function Vpe(){return nm(),S(T(MZn,1),G,416,0,[rb,Iw,Pw,a2])}function Wpe(){return $f(),S(T(ene,1),G,421,0,[j3,lv,av,B_])}function Jpe(){return OT(),S(T(UZn,1),G,371,0,[F_,HP,qP,wj])}function Qpe(){return cw(),S(T(RH,1),G,203,0,[TI,BH,S2,A2])}function Ype(){return lh(),S(T(Hhn,1),G,284,0,[k1,_hn,HH,qH])}function Zpe(n){var e;return n.j==(tn(),ae)&&(e=mHn(n),Au(e,Zn))}function n3e(n,e){var t;t=e.a,Zi(t,e.c.d),Ii(t,e.d.d),nw(t.a,n.n)}function yJ(n,e){var t;return t=u(Lf(n.b,e),67),!t&&(t=new Ct),t}function xp(n){return s6(),O(n.g,154)?u(n.g,154):null}function e3e(n){n.a=null,n.e=null,Pb(n.b.c,0),Pb(n.f.c,0),n.c=null}function KM(){KM=F,fH=new Zz(qm,0),Jsn=new Zz("TOP_LEFT",1)}function n5(){n5=F,r9=new eX("UPPER",0),i9=new eX("LOWER",1)}function t3e(n,e){return vp(new V(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function LDn(n,e){return u(ho(_b(u(ot(n.k,e),15).Oc(),b2)),113)}function NDn(n,e){return u(ho(Ap(u(ot(n.k,e),15).Oc(),b2)),113)}function i3e(){return Qp(),S(T(rln,1),G,405,0,[LI,c9,u9,o9])}function r3e(){return w5(),S(T(xln,1),G,353,0,[aq,BI,lq,hq])}function c3e(){return sA(),S(T(c1n,1),G,354,0,[Eq,i1n,r1n,t1n])}function u3e(){return go(),S(T(I9,1),G,386,0,[rE,Gd,iE,Qw])}function o3e(){return To(),S(T(Yue,1),G,291,0,[nE,nl,Ta,Zj])}function s3e(){return El(),S(T(aU,1),G,223,0,[lU,Yj,Kv,F3])}function f3e(){return qT(),S(T(Cdn,1),G,320,0,[wU,ydn,Edn,jdn])}function h3e(){return LT(),S(T(woe,1),G,415,0,[gU,Tdn,Mdn,Adn])}function l3e(n){return $M(),Zc(yU,n)?u(ee(yU,n),341).Qg():null}function Uo(n,e,t){return e<0?hF(n,t):u(t,69).wk().Bk(n,n.hi(),e)}function a3e(n,e,t){var i;return i=wm(t),FA(n.j,i,e),Xe(n.k,e,t),e}function d3e(n,e,t){var i;return i=wm(t),FA(n.d,i,e),Xe(n.e,e,t),e}function $Dn(n){var e,t;return e=(B1(),t=new HO,t),n&&AA(e,n),e}function jJ(n){var e;return e=n.aj(n.i),n.i>0&&Ic(n.g,0,e,0,n.i),e}function xDn(n,e){var t;for(t=n.j.c.length;t>24}function w3e(n){if(n.p!=1)throw M(new Cu);return Ae(n.k)<<24>>24}function g3e(n){if(n.p!=7)throw M(new Cu);return Ae(n.k)<<16>>16}function p3e(n){if(n.p!=7)throw M(new Cu);return Ae(n.f)<<16>>16}function Pg(n,e){return e.e==0||n.e==0?O8:(Am(),vF(n,e))}function RDn(n,e){return x(e)===x(n)?"(this Map)":e==null?gu:Jr(e)}function m3e(n,e,t){return tN(R(Kr(wr(n.f,e))),R(Kr(wr(n.f,t))))}function v3e(n,e,t){var i;i=u(ee(n.g,t),60),nn(n.a.c,new bi(e,i))}function KDn(n,e,t){n.i=0,n.e=0,e!=t&&(jFn(n,e,t),yFn(n,e,t))}function k3e(n,e,t,i,r){var c;c=yMe(r,t,i),nn(e,dEe(r,c)),rje(n,r,e)}function EJ(n,e,t,i,r){this.i=n,this.a=e,this.e=t,this.j=i,this.f=r}function _Dn(n,e){nJ.call(this),this.a=n,this.b=e,nn(this.a.b,this)}function HDn(n){this.b=new de,this.c=new de,this.d=new de,this.a=n}function qDn(n,e){var t;return t=new lp,n.Gd(t),t.a+="..",e.Hd(t),t.a}function UDn(n,e){var t;for(t=e;t;)a0(n,t.i,t.j),t=At(t);return n}function GDn(n,e,t){var i;return i=wm(t),Xe(n.b,i,e),Xe(n.c,e,t),e}function wl(n){var e;for(e=0;n.Ob();)n.Pb(),e=nr(e,1);return oT(e)}function Fh(n,e){dr();var t;return t=u(n,69).vk(),kje(t,e),t.xl(e)}function y3e(n,e,t){if(t){var i=t.oe();n.a[e]=i(t)}else delete n.a[e]}function CJ(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+fa),G5(n,t)}function j3e(n,e){return u(e==null?Kr(wr(n.f,null)):d6(n.i,e),288)}function MJ(n,e){return n==(Vn(),zt)&&e==zt?4:n==zt||e==zt?8:32}function _M(n,e,t){return RA(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function E3e(n,e,t){return Om(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function C3e(n,e,t){return bMe(n,e,t,O(e,102)&&(u(e,19).Bb&hr)!=0)}function TJ(n){n.b!=n.c&&(n.a=K(ki,Fn,1,8,5,1),n.b=0,n.c=0)}function e5(n){return oe(n.a=0&&n.a[t]===e[t];t--);return t<0}function HM(n){var e;return n?new fW(n):(e=new ih,A$(e,n),e)}function O3e(n,e){var t,i;i=!1;do t=lFn(n,e),i=i|t;while(t);return i}function D3e(n){n&&rme((az(),sun)),--cP,n&&uP!=-1&&(Ele(uP),uP=-1)}function qM(n){nnn(),LTn(this,Ae(vi(w0(n,24),YA)),Ae(vi(n,YA)))}function JDn(){JDn=F,HQn=Ce((YT(),S(T(Bun,1),G,436,0,[o_,Fun])))}function QDn(){QDn=F,qQn=Ce((cT(),S(T(Kun,1),G,435,0,[Run,s_])))}function YDn(){YDn=F,GYn=Ce((uT(),S(T(bon,1),G,432,0,[v_,vP])))}function ZDn(){ZDn=F,_Zn=Ce((V4(),S(T(KZn,1),G,517,0,[dj,L_])))}function nLn(){nLn=F,Ane=Ce((KM(),S(T(Qsn,1),G,429,0,[fH,Jsn])))}function eLn(){eLn=F,gne=Ce((pk(),S(T($sn,1),G,428,0,[WP,Nsn])))}function tLn(){tLn=F,kne=Ce((hk(),S(T(Bsn,1),G,488,0,[Fsn,QP])))}function iLn(){iLn=F,rie=Ce((wk(),S(T(qhn,1),G,430,0,[UH,GH])))}function rLn(){rLn=F,Die=Ce((n5(),S(T(Oie,1),G,531,0,[r9,i9])))}function cLn(){cLn=F,ane=Ce((QM(),S(T(Asn,1),G,431,0,[Tsn,V_])))}function uLn(){uLn=F,xre=Ce((FM(),S(T(Bln,1),G,433,0,[dq,Fln])))}function oLn(){oLn=F,_re=Ce((yT(),S(T(Rln,1),G,501,0,[RI,D2])))}function sLn(){sLn=F,Rie=Ce((sh(),S(T(Bie,1),G,523,0,[mb,y1])))}function fLn(){fLn=F,_ie=Ce((Sf(),S(T(Kie,1),G,522,0,[Rd,zf])))}function hLn(){hLn=F,tre=Ce((lf(),S(T(ere,1),G,528,0,[zw,ja])))}function lLn(){lLn=F,fre=Ce((M0(),S(T(sre,1),G,465,0,[Ea,P2])))}function aLn(){aLn=F,Ure=Ce((ZM(),S(T(_ln,1),G,434,0,[Kln,vq])))}function dLn(){dLn=F,Rce=Ce((GM(),S(T(S1n,1),G,491,0,[$q,A1n])))}function bLn(){bLn=F,_ce=Ce((N$(),S(T(N1n,1),G,492,0,[D1n,L1n])))}function wLn(){wLn=F,Vce=Ce((ck(),S(T(x1n,1),G,438,0,[Kq,JI])))}function gLn(){gLn=F,aue=Ce((Ak(),S(T(ran,1),G,437,0,[YI,ian])))}function pLn(){pLn=F,aoe=Ce((RL(),S(T(dO,1),G,347,0,[vdn,kdn])))}function L3e(){return ci(),S(T(E9,1),G,88,0,[Wf,Xr,Br,Vf,us])}function N3e(){return tn(),S(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])}function $3e(n,e,t){return u(e==null?Vc(n.f,null,t):$0(n.i,e,t),288)}function x3e(n){return(n.k==(Vn(),zt)||n.k==Zt)&&kt(n,(W(),H8))}function XN(n){return n.c&&n.d?aJ(n.c)+"->"+aJ(n.d):"e_"+l0(n)}function qi(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function F3e(n,e){var t;t=new op,nd(t,"x",e.a),nd(t,"y",e.b),Ip(n,t)}function B3e(n,e){var t;t=new op,nd(t,"x",e.a),nd(t,"y",e.b),Ip(n,t)}function mLn(n,e){var t;for(t=e;t;)a0(n,-t.i,-t.j),t=At(t);return n}function SJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Go(n,e,t){var i;return i=(Ln(e,n.c.length),n.c[e]),n.c[e]=t,i}function PJ(n,e,t){n.a.c.length=0,fOe(n,e,t),n.a.c.length==0||xSe(n,e)}function tk(n){n.i=0,s7(n.b,null),s7(n.c,null),n.a=null,n.e=null,++n.g}function UM(){UM=F,qf=!0,DQn=!1,LQn=!1,$Qn=!1,NQn=!1}function VN(n){UM(),!qf&&(this.c=n,this.e=!0,this.a=new Z)}function vLn(n,e){this.c=0,this.b=e,HMn.call(this,n,17493),this.a=this.c}function kLn(n){jzn(),Syn(this),this.a=new Ct,sY(this,n),xe(this.a,n)}function yLn(){pL(this),this.b=new V(St,St),this.a=new V(li,li)}function GM(){GM=F,$q=new fX(cin,0),A1n=new fX("TARGET_WIDTH",1)}function Ig(n,e){return(ea(n),s4(new Tn(n,new tQ(e,n.a)))).Bd(v3)}function R3e(){return Vi(),S(T(Ion,1),G,367,0,[Xs,Jh,Oc,Kc,zr])}function K3e(){return ow(),S(T(ine,1),G,375,0,[gj,zP,XP,GP,UP])}function _3e(){return o1(),S(T(Lsn,1),G,348,0,[J_,Dsn,Q_,pv,gv])}function H3e(){return T5(),S(T($hn,1),G,323,0,[Nhn,KH,_H,Y8,Z8])}function q3e(){return Yo(),S(T(hfn,1),G,171,0,[Ej,U8,ka,G8,xw])}function U3e(){return wA(),S(T(Hre,1),G,368,0,[pq,bq,mq,wq,gq])}function G3e(){return R5(),S(T(Hce,1),G,373,0,[L2,D3,g9,w9,_j])}function z3e(){return Yk(),S(T(K1n,1),G,324,0,[F1n,_q,R1n,Hq,B1n])}function X3e(){return gf(),S(T(Zh,1),G,170,0,[xn,pi,Ph,Kd,E1])}function V3e(){return Fg(),S(T(A9,1),G,256,0,[Aa,eE,adn,T9,ddn])}function W3e(n){return HE(),function(){return Kpe(n,this,arguments)}}function fr(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function IJ(n,e){return O(e,143)?An(n.c,u(e,143).c):!1}function Zu(n){return n.t||(n.t=new myn(n),k5(new Njn(n),0,n.t)),n.t}function jLn(n){this.b=n,ne.call(this,n),this.a=u(Un(this.b.a,4),129)}function ELn(n){this.b=n,yp.call(this,n),this.a=u(Un(this.b.a,4),129)}function Bs(n,e,t,i,r){LLn.call(this,e,i,r),this.c=n,this.b=t}function OJ(n,e,t,i,r){VOn.call(this,e,i,r),this.c=n,this.a=t}function DJ(n,e,t,i,r){WOn.call(this,e,i,r),this.c=n,this.a=t}function LJ(n,e,t,i,r){LLn.call(this,e,i,r),this.c=n,this.a=t}function WN(n,e){var t;return t=u(Lf(n.d,e),23),t||u(Lf(n.e,e),23)}function CLn(n,e){var t,i;return t=e.ld(),i=n.Fe(t),!!i&&mc(i.e,e.md())}function MLn(n,e){var t;return t=e.ld(),new i0(t,n.e.pc(t,u(e.md(),16)))}function J3e(n,e){var t;return t=n.a.get(e),t??K(ki,Fn,1,0,5,1)}function TLn(n){var e;return e=n.length,An(Yn.substr(Yn.length-e,e),n)}function fe(n){if(pe(n))return n.c=n.a,n.a.Pb();throw M(new nc)}function NJ(n,e){return e==0||n.e==0?n:e>0?wqn(n,e):RBn(n,-e)}function Fp(n,e){return e==0||n.e==0?n:e>0?RBn(n,e):wqn(n,-e)}function $J(n){ole.call(this,n==null?gu:Jr(n),O(n,82)?u(n,82):null)}function ALn(n){var e;return n.c||(e=n.r,O(e,90)&&(n.c=u(e,29))),n.c}function JN(n){var e;return e=new E0,Ur(e,n),U(e,(cn(),Fr),null),e}function SLn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Vn(),Zt)&&t.k==Zt}function QN(n){var e,t,i;return e=n&ro,t=n>>22&ro,i=n<0?Il:0,Yc(e,t,i)}function Q3e(n){var e,t,i,r;for(t=n,i=0,r=t.length;i=0?n.Lh(i,t,!0):H0(n,e,t)}function Z3e(n,e,t){return bt(vp(pm(n),Ki(e.b)),vp(pm(n),Ki(t.b)))}function n4e(n,e,t){return bt(vp(pm(n),Ki(e.e)),vp(pm(n),Ki(t.e)))}function e4e(n,e){return y.Math.min(W1(e.a,n.d.d.c),W1(e.b,n.d.d.c))}function ik(n,e){n._i(n.i+1),O6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function t5(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function PLn(n,e,t){var i;i=new NX(n.a),f5(i,n.a.a),Vc(i.f,e,t),n.a.a=i}function xJ(n,e,t,i){var r;for(r=0;re)throw M(new Ir(Mnn(n,e,"index")));return n}function Yl(n,e){var t;return t=(Ln(e,n.c.length),n.c[e]),Pz(n.c,e,1),t}function RJ(n,e){var t,i;return t=(Jn(n),n),i=(Jn(e),e),t==i?0:te.p?-1:0}function FLn(n){var e;return n.a||(e=n.r,O(e,156)&&(n.a=u(e,156))),n.a}function o4e(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].gd(t),136),i.md()}function s4e(n){var e,t;return e=n.ld(),t=u(n.md(),16),x7(t.Nc(),new L8n(e))}function BLn(n,e){return Zc(n.a,e)?(Bp(n.a,e),!0):!1}function Rp(n,e,t){return ek(e,n.e.Rd().gc()),ek(t,n.c.Rd().gc()),n.a[e][t]}function XM(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function VM(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function rk(){this.b=new Ct,this.a=new Ct,this.b=new Ct,this.a=new Ct}function $4(){$4=F;var n,e;MO=(o4(),e=new xE,e),TO=(n=new fD,n)}function f4e(n){var e;return ea(n),e=new ISn(n,n.a.e,n.a.d|4),new uV(n,e)}function RLn(n){var e;for(z1(n),e=0;n.a.Bd(new W0n);)e=nr(e,1);return e}function WM(n,e){return Jn(e),n.c=0,"Initial capacity must not be negative")}function JM(){JM=F,p9=new lt("org.eclipse.elk.labels.labelManager")}function KLn(){KLn=F,ysn=new Dt("separateLayerConnections",(OT(),F_))}function lf(){lf=F,zw=new rX("REGULAR",0),ja=new rX("CRITICAL",1)}function ck(){ck=F,Kq=new lX("FIXED",0),JI=new lX("CENTER_NODE",1)}function QM(){QM=F,Tsn=new Jz("QUADRATIC",0),V_=new Jz("SCANLINE",1)}function _Ln(){_Ln=F,dne=Ce((u5(),S(T(Psn,1),G,322,0,[B8,pj,Ssn])))}function HLn(){HLn=F,bne=Ce((bT(),S(T(Osn,1),G,351,0,[Isn,VP,W_])))}function qLn(){qLn=F,fne=Ce((D0(),S(T(R_,1),G,372,0,[ub,ma,cb])))}function ULn(){ULn=F,mne=Ce((hd(),S(T(pne,1),G,460,0,[Y_,mv,p2])))}function GLn(){GLn=F,Cne=Ce((Z4(),S(T(sH,1),G,299,0,[uH,oH,mj])))}function zLn(){zLn=F,Tne=Ce((vl(),S(T(Mne,1),G,311,0,[vj,v2,E3])))}function XLn(){XLn=F,Zte=Ce((g5(),S(T(Lhn,1),G,390,0,[FH,Dhn,MI])))}function VLn(){VLn=F,oie=Ce((ST(),S(T(zhn,1),G,387,0,[Uhn,zH,Ghn])))}function WLn(){WLn=F,sie=Ce((d5(),S(T(Xhn,1),G,349,0,[VH,XH,Ij])))}function JLn(){JLn=F,uie=Ce((gr(),S(T(cie,1),G,463,0,[n9,Vu,Jc])))}function QLn(){QLn=F,fie=Ce((om(),S(T(Whn,1),G,350,0,[WH,Vhn,e9])))}function YLn(){YLn=F,hie=Ce((dT(),S(T(Yhn,1),G,352,0,[Qhn,JH,Jhn])))}function ZLn(){ZLn=F,lie=Ce((DT(),S(T(Zhn,1),G,388,0,[QH,Ov,Gw])))}function nNn(){nNn=F,are=Ce((b5(),S(T(gln,1),G,392,0,[wln,nq,Lj])))}function eNn(){eNn=F,Gre=Ce((Ok(),S(T(Uln,1),G,393,0,[KI,Hln,qln])))}function tNn(){tNn=F,ace=Ce((AT(),S(T(s1n,1),G,300,0,[Cq,o1n,u1n])))}function iNn(){iNn=F,dce=Ce((XT(),S(T(f1n,1),G,445,0,[Bj,qI,Mq])))}function rNn(){rNn=F,wce=Ce((rA(),S(T(bce,1),G,456,0,[Tq,Sq,Aq])))}function cNn(){cNn=F,mce=Ce((_T(),S(T(a1n,1),G,394,0,[l1n,Oq,h1n])))}function uNn(){uNn=F,Kce=Ce((nT(),S(T(O1n,1),G,439,0,[xq,I1n,P1n])))}function oNn(){oNn=F,Aie=Ce((O0(),S(T(Tie,1),G,464,0,[Oj,t9,PI])))}function sNn(){sNn=F,WQn=Ce((Uu(),S(T(VQn,1),G,471,0,[Mh,ga,Gs])))}function fNn(){fNn=F,XQn=Ce((bf(),S(T(Sw,1),G,237,0,[bc,Wc,wc])))}function hNn(){hNn=F,QQn=Ce((bu(),S(T(JQn,1),G,472,0,[vf,pa,zs])))}function lNn(){lNn=F,xQn=Ce((Gu(),S(T(xr,1),G,108,0,[xun,Yr,Aw])))}function aNn(){aNn=F,pZn=Ce((i5(),S(T(Pon,1),G,391,0,[E_,j_,C_])))}function dNn(){dNn=F,Que=Ce((jl(),S(T(ldn,1),G,346,0,[uO,M1,M9])))}function bNn(){bNn=F,Uce=Ce((Fk(),S(T(Fq,1),G,444,0,[XI,VI,WI])))}function wNn(){wNn=F,Xue=Ce((Nf(),S(T(Zan,1),G,278,0,[Bv,Jw,Rv])))}function gNn(){gNn=F,loe=Ce((Gp(),S(T(mdn,1),G,280,0,[pdn,Yw,aO])))}function Df(n,e){return!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),wx(n.o,e)}function h4e(n,e){var t;n.C&&(t=u(Cr(n.b,e),127).n,t.d=n.C.d,t.a=n.C.a)}function UJ(n){var e,t,i,r;r=n.d,e=n.a,t=n.b,i=n.c,n.d=t,n.a=i,n.b=r,n.c=e}function l4e(n){return!n.g&&(n.g=new CE),!n.g.b&&(n.g.b=new byn(n)),n.g.b}function uk(n){return!n.g&&(n.g=new CE),!n.g.c&&(n.g.c=new pyn(n)),n.g.c}function a4e(n){return!n.g&&(n.g=new CE),!n.g.d&&(n.g.d=new wyn(n)),n.g.d}function d4e(n){return!n.g&&(n.g=new CE),!n.g.a&&(n.g.a=new gyn(n)),n.g.a}function b4e(n,e,t,i){return t&&(i=t.Rh(e,Ot(t.Dh(),n.c.uk()),null,i)),i}function w4e(n,e,t,i){return t&&(i=t.Th(e,Ot(t.Dh(),n.c.uk()),null,i)),i}function e$(n,e,t,i){var r;return r=K(ye,Ke,28,e+1,15,1),vPe(r,n,e,t,i),r}function K(n,e,t,i,r,c){var s;return s=_Rn(r,i),r!=10&&S(T(n,c),e,t,r,s),s}function g4e(n,e,t){var i,r;for(r=new Y4(e,n),i=0;it||e=0?n.Lh(t,!0,!0):H0(n,e,!0)}function L4e(n,e,t){var i;return i=vFn(n,e,t),n.b=new ET(i.c.length),den(n,i)}function N4e(n){if(n.b<=0)throw M(new nc);return--n.b,n.a-=n.c.c,Y(n.a)}function $4e(n){var e;if(!n.a)throw M(new PIn);return e=n.a,n.a=At(n.a),e}function x4e(n){for(;!n.a;)if(!eSn(n.c,new C9n(n)))return!1;return!0}function Kp(n){var e;return Se(n),O(n,204)?(e=u(n,204),e):new _8n(n)}function F4e(n){YM(),u(n.of((qe(),Ww)),181).Fc((zu(),tE)),n.qf(sU,null)}function YM(){YM=F,wue=new Emn,pue=new Cmn,gue=M6e((qe(),sU),wue,Ma,pue)}function ZM(){ZM=F,Kln=new sX("LEAF_NUMBER",0),vq=new sX("NODE_SIZE",1)}function u$(n){n.a=K(ye,Ke,28,n.b+1,15,1),n.c=K(ye,Ke,28,n.b,15,1),n.d=0}function B4e(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new GV(e.c,e.d,n.d)),n.b=e.d)}function nQ(n,e){if(n.g==null||e>=n.i)throw M(new aL(e,n.i));return n.g[e]}function kNn(n,e,t){if(rm(n,t),t!=null&&!n.fk(t))throw M(new uD);return t}function o$(n,e){return gk(e)!=10&&S(wo(e),e.Sm,e.__elementTypeId$,gk(e),n),n}function F4(n,e,t,i){var r;i=(j0(),i||Pun),r=n.slice(e,t),Tnn(r,n,e,t,-e,i)}function zo(n,e,t,i,r){return e<0?H0(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function R4e(n,e){return bt($(R(v(n,(W(),fb)))),$(R(v(e,fb))))}function yNn(){yNn=F,IQn=Ce((B4(),S(T(lP,1),G,304,0,[e_,t_,i_,r_])))}function B4(){B4=F,e_=new uC("All",0),t_=new lTn,i_=new kTn,r_=new hTn}function Uu(){Uu=F,Mh=new FD(s3,0),ga=new FD(qm,1),Gs=new FD(f3,2)}function jNn(){jNn=F,KA(),s0n=St,mse=li,f0n=new V9(St),vse=new V9(li)}function ENn(){ENn=F,jYn=Ce((N0(),S(T(yYn,1),G,417,0,[rj,ij,a_,d_])))}function CNn(){CNn=F,AYn=Ce((A5(),S(T(TYn,1),G,406,0,[fj,wP,gP,hj])))}function MNn(){MNn=F,CYn=Ce((Vp(),S(T(EYn,1),G,332,0,[uj,cj,oj,sj])))}function TNn(){TNn=F,DZn=Ce((dd(),S(T(Lon,1),G,389,0,[Ow,Don,P_,I_])))}function ANn(){ANn=F,TZn=Ce((nm(),S(T(MZn,1),G,416,0,[rb,Iw,Pw,a2])))}function SNn(){SNn=F,tne=Ce(($f(),S(T(ene,1),G,421,0,[j3,lv,av,B_])))}function PNn(){PNn=F,GZn=Ce((OT(),S(T(UZn,1),G,371,0,[F_,HP,qP,wj])))}function INn(){INn=F,nie=Ce((cw(),S(T(RH,1),G,203,0,[TI,BH,S2,A2])))}function ONn(){ONn=F,iie=Ce((lh(),S(T(Hhn,1),G,284,0,[k1,_hn,HH,qH])))}function hk(){hk=F,Fsn=new Yz(kh,0),QP=new Yz("IMPROVE_STRAIGHTNESS",1)}function DNn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Rp(n,i,t)}function LNn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)L(n,e);return jJ(n)}function eQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function NNn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function K4e(n){return O(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function _4e(n){return O(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function $Nn(n,e){if(e.a)throw M(new ec(nXn));fi(n.a,e),e.a=n,!n.j&&(n.j=e)}function tQ(n,e){IC.call(this,e.zd(),e.yd()&-16449),Jn(n),this.a=n,this.c=e}function H4e(n,e){return new _L(e,a0(Ki(e.e),e.f.a+n,e.f.b+n),(_n(),!1))}function q4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function U4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function xNn(){xNn=F,lce=Ce((sA(),S(T(c1n,1),G,354,0,[Eq,i1n,r1n,t1n])))}function FNn(){FNn=F,$re=Ce((w5(),S(T(xln,1),G,353,0,[aq,BI,lq,hq])))}function BNn(){BNn=F,hre=Ce((Qp(),S(T(rln,1),G,405,0,[LI,c9,u9,o9])))}function RNn(){RNn=F,Vue=Ce((El(),S(T(aU,1),G,223,0,[lU,Yj,Kv,F3])))}function KNn(){KNn=F,Zue=Ce((To(),S(T(Yue,1),G,291,0,[nE,nl,Ta,Zj])))}function _Nn(){_Nn=F,foe=Ce((go(),S(T(I9,1),G,386,0,[rE,Gd,iE,Qw])))}function HNn(){HNn=F,doe=Ce((qT(),S(T(Cdn,1),G,320,0,[wU,ydn,Edn,jdn])))}function qNn(){qNn=F,goe=Ce((LT(),S(T(woe,1),G,415,0,[gU,Tdn,Mdn,Adn])))}function nT(){nT=F,xq=new oL(mVn,0),I1n=new oL(Crn,1),P1n=new oL(kh,2)}function Wb(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new AW(n,e,i)}function UNn(n,e){var t;return t=u(Bp(n.e,e),400),t?(tW(t),t.e):null}function du(n,e){var t;return t=qr(n,e,0),t==-1?!1:(Yl(n,t),!0)}function GNn(n,e,t){var i;return z1(n),i=new LO,i.a=e,n.a.Nb(new TCn(i,t)),i.a}function G4e(n){var e;return z1(n),e=K(Pi,Tr,28,0,15,1),hg(n.a,new y9n(e)),e}function iQ(n){var e;if(!E$(n))throw M(new nc);return n.e=1,e=n.d,n.d=null,e}function n1(n){var e;return Vr(n)&&(e=0-n,!isNaN(e))?e:Q1(tm(n))}function qr(n,e,t){for(;t=0?tA(n,t,!0,!0):H0(n,e,!0)}function cQ(n){var e;return e=cd(Un(n,32)),e==null&&(iu(n),e=cd(Un(n,32))),e}function uQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function QNn(n,e){con=new kE,MYn=e,L8=n,u(L8.b,68),XJ(L8,con,null),aGn(L8)}function i5(){i5=F,E_=new RD("XY",0),j_=new RD("X",1),C_=new RD("Y",2)}function bu(){bu=F,vf=new BD("TOP",0),pa=new BD(qm,1),zs=new BD(Ftn,2)}function vl(){vl=F,vj=new GD(kh,0),v2=new GD("TOP",1),E3=new GD(Ftn,2)}function wk(){wk=F,UH=new nX("INPUT_ORDER",0),GH=new nX("PORT_DEGREE",1)}function R4(){R4=F,hun=Yc(ro,ro,524287),bQn=Yc(0,0,Ty),lun=QN(1),QN(2),aun=QN(0)}function a$(n){var e;return n.d!=n.r&&(e=ws(n),n.e=!!e&&e.lk()==bJn,n.d=e),n.e}function d$(n,e,t){var i;return i=n.g[e],O6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function rT(n,e){var t;return t=n.dd(e),t>=0?(n.gd(t),!0):!1}function b$(n,e){var t;for(Se(n),Se(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Lf(n,e){var t;return t=u(ee(n.e,e),400),t?(DTn(n,t),t.e):null}function YNn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function Jb(n,e){var t=n.a[e],i=(K$(),WK)[typeof t];return i?i(t):wY(typeof t)}function rc(n,e){var t,i;return ea(n),i=new _J(e,n.a),t=new rSn(i),new Tn(n,t)}function w$(n){var e;return e=n.b.c.length==0?null:sn(n.b,0),e!=null&&M$(n,0),e}function W4e(n,e){var t,i,r;r=e.c.i,t=u(ee(n.f,r),60),i=t.d.c-t.e.c,BQ(e.a,i,0)}function oQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t=0;)++e[0]}function J4e(n,e){eu(n,e==null||GC((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Q4e(n,e){tu(n,e==null||GC((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Y4e(n,e){I0(n,e==null||GC((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Z4e(n,e){P0(n,e==null||GC((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function nme(n,e,t){return vp(new V(t.e.a+t.f.a/2,t.e.b+t.f.b/2),n)==(Jn(e),e)}function eme(n,e){return O(e,102)&&u(e,19).Bb&hr?new dL(e,n):new Y4(e,n)}function tme(n,e){return O(e,102)&&u(e,19).Bb&hr?new dL(e,n):new Y4(e,n)}function gk(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function e$n(n,e){return e==(xL(),xL(),AQn)?n.toLocaleLowerCase():n.toLowerCase()}function t$n(n){if(!n.e)throw M(new nc);return n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function sQ(n){if(!n.c)throw M(new nc);return n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function i$n(n){var e;for(++n.a,e=n.c.a.length;n.an.a[i]&&(i=t);return i}function r$n(n){var e;return e=u(v(n,(W(),ob)),313),e?e.a==n:!1}function c$n(n){var e;return e=u(v(n,(W(),ob)),313),e?e.i==n:!1}function u$n(){u$n=F,yZn=Ce((Vi(),S(T(Ion,1),G,367,0,[Xs,Jh,Oc,Kc,zr])))}function o$n(){o$n=F,rne=Ce((ow(),S(T(ine,1),G,375,0,[gj,zP,XP,GP,UP])))}function s$n(){s$n=F,wne=Ce((o1(),S(T(Lsn,1),G,348,0,[J_,Dsn,Q_,pv,gv])))}function f$n(){f$n=F,eie=Ce((T5(),S(T($hn,1),G,323,0,[Nhn,KH,_H,Y8,Z8])))}function h$n(){h$n=F,Sne=Ce((Yo(),S(T(hfn,1),G,171,0,[Ej,U8,ka,G8,xw])))}function l$n(){l$n=F,qre=Ce((wA(),S(T(Hre,1),G,368,0,[pq,bq,mq,wq,gq])))}function a$n(){a$n=F,qce=Ce((R5(),S(T(Hce,1),G,373,0,[L2,D3,g9,w9,_j])))}function d$n(){d$n=F,Wce=Ce((Yk(),S(T(K1n,1),G,324,0,[F1n,_q,R1n,Hq,B1n])))}function b$n(){b$n=F,zue=Ce((ci(),S(T(E9,1),G,88,0,[Wf,Xr,Br,Vf,us])))}function w$n(){w$n=F,mue=Ce((gf(),S(T(Zh,1),G,170,0,[xn,pi,Ph,Kd,E1])))}function g$n(){g$n=F,eoe=Ce((Fg(),S(T(A9,1),G,256,0,[Aa,eE,adn,T9,ddn])))}function p$n(){p$n=F,roe=Ce((tn(),S(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])))}function cT(){cT=F,Run=new Uz("BY_SIZE",0),s_=new Uz("BY_SIZE_AND_SHAPE",1)}function uT(){uT=F,v_=new Xz("EADES",0),vP=new Xz("FRUCHTERMAN_REINGOLD",1)}function pk(){pk=F,WP=new Qz("READING_DIRECTION",0),Nsn=new Qz("ROTATION",1)}function r5(){r5=F,PZn=new rwn,IZn=new own,AZn=new swn,SZn=new uwn,OZn=new fwn}function m$n(n){this.b=new Z,this.a=new Z,this.c=new Z,this.d=new Z,this.e=n}function v$n(n){this.g=n,this.f=new Z,this.a=y.Math.min(this.g.c.c,this.g.d.c)}function k$n(n,e,t){qC.call(this),lQ(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function sme(n,e,t){var i,r;for(r=new C(t);r.a=0&&e0?e-1:e,eEn($he(U$n(YV(new up,t),n.n),n.j),n.k)}function Nr(n){var e,t;t=(e=new hD,e),ve((!n.q&&(n.q=new q(As,n,11,10)),n.q),t)}function fQ(n){return(n.i&2?"interface ":n.i&1?"":"class ")+(ll(n),n.o)}function oT(n){return Ec(n,et)>0?et:Ec(n,Wi)<0?Wi:Ae(n)}function Qb(n){return n<3?(Co(n,$zn),n+1):n=-.01&&n.a<=Kf&&(n.a=0),n.b>=-.01&&n.b<=Kf&&(n.b=0),n}function Og(n){Xg();var e,t;for(t=Arn,e=0;et&&(t=n[e]);return t}function C$n(n,e){var t;if(t=oy(n.Dh(),e),!t)throw M(new Gn(da+e+sK));return t}function Yb(n,e){var t;for(t=n;At(t);)if(t=At(t),t==e)return!0;return!1}function vme(n,e){var t,i,r;for(i=e.a.ld(),t=u(e.a.md(),16).gc(),r=0;rn||n>e)throw M(new pz("fromIndex: 0, toIndex: "+n+Mtn+e))}function S0(n){if(n<0)throw M(new Gn("Illegal Capacity: "+n));this.g=this.aj(n)}function hQ(n,e){return Mf(),Rs(sa),y.Math.abs(n-e)<=sa||n==e||isNaN(n)&&isNaN(e)}function m$(n,e){var t,i,r,c;for(i=n.d,r=0,c=i.length;r0&&(n.a/=e,n.b/=e),n}function jo(n){var e;return n.w?n.w:(e=lpe(n),e&&!e.Vh()&&(n.w=e),e)}function K4(n,e){var t,i;i=n.a,t=w5e(n,e,null),i!=e&&!n.e&&(t=Nm(n,e,t)),t&&t.oj()}function P$n(n,e,t){var i,r;i=e;do r=$(n.p[i.p])+t,n.p[i.p]=r,i=n.a[i.p];while(i!=e)}function I$n(n,e,t){var i=function(){return n.apply(i,arguments)};return e.apply(i,t),i}function Tme(n){var e;return n==null?null:(e=u(n,195),Bye(e,e.length))}function L(n,e){if(n.g==null||e>=n.i)throw M(new aL(e,n.i));return n.Wi(e,n.g[e])}function Ame(n,e){Dn();var t,i;for(i=new Z,t=0;t=14&&e<=16))),n}function Ee(n,e){var t;return Jn(e),t=n[":"+e],B7(!!t,"Enum constant undefined: "+e),t}function we(n,e,t,i,r,c){var s;return s=bN(n,e),G$n(t,s),s.i=r?8:0,s.f=i,s.e=r,s.g=c,s}function dQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=n,this.a=t}function bQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=n,this.a=t}function wQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=n,this.a=t}function gQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=n,this.a=t}function pQ(n,e,t,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=n,this.a=t}function z$n(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r=0))throw M(new Gn("tolerance ("+n+") must be >= 0"));return n}function V$n(n,e){var t;return O(e,44)?n.c.Mc(e):(t=wx(n,e),VT(n,e),t)}function Mr(n,e,t){return ad(n,e),zc(n,t),e1(n,0),Zb(n,1),u1(n,!0),c1(n,!0),n}function vk(n,e){var t;if(t=n.gc(),e<0||e>t)throw M(new Kb(e,t));return new SV(n,e)}function wT(n,e){n.b=y.Math.max(n.b,e.d),n.e+=e.r+(n.a.c.length==0?0:n.c),nn(n.a,e)}function W$n(n){Fb(n.c>=0),_8e(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function gT(n){var e,t;for(t=n.c.Cc().Kc();t.Ob();)e=u(t.Pb(),16),e.$b();n.c.$b(),n.d=0}function Fme(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;i=0}function CQ(n,e){n.r>0&&n.c0&&n.g!=0&&CQ(n.i,e/n.r*n.i.d))}function MQ(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,1,t,n.c))}function y$(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,4,t,n.c))}function X4(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,2,t,n.k))}function j$(n,e){var t;t=n.D,n.D=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,2,t,n.D))}function mT(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,8,t,n.f))}function vT(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,7,t,n.i))}function TQ(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,8,t,n.a))}function AQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,0,t,n.b))}function SQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,0,t,n.b))}function PQ(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,1,t,n.c))}function IQ(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,1,t,n.d))}function Ume(n,e,t){var i;n.b=e,n.a=t,i=(n.a&512)==512?new gjn:new rG,n.c=rAe(i,n.b,n.a)}function oxn(n,e){return Sl(n.e,e)?(dr(),a$(e)?new eM(e,n):new j7(e,n)):new $Mn(e,n)}function Gme(n){var e,t;return 0>n?new Dz:(e=n+1,t=new vLn(e,n),new oV(null,t))}function zme(n,e){Dn();var t;return t=new ap(1),Ai(n)?Dr(t,n,e):Vc(t.f,n,e),new eD(t)}function Xme(n,e){var t,i;return t=n.c,i=e.e[n.p],i>0?u(sn(t.a,i-1),10):null}function Vme(n,e){var t,i;return t=n.o+n.p,i=e.o+e.p,te?(e<<=1,e>0?e:Y5):e}function E$(n){switch(_X(n.e!=3),n.e){case 2:return!1;case 0:return!0}return i4e(n)}function fxn(n,e){var t;return O(e,8)?(t=u(e,8),n.a==t.a&&n.b==t.b):!1}function Jme(n,e){var t;t=new kE,u(e.b,68),u(e.b,68),u(e.b,68),nu(e.a,new BV(n,t,e))}function hxn(n,e){var t,i;for(i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),Vk(n,t.ld(),t.md())}function OQ(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,11,t,n.d))}function kT(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,13,t,n.j))}function DQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,1,21,t,n.b))}function Qme(n,e){(UM(),qf?null:e.c).length==0&&TAn(e,new BU),Dr(n.a,qf?null:e.c,e)}function Yme(n,e){e.Ug("Hierarchical port constraint processing",1),g9e(n),xLe(n),e.Vg()}function D0(){D0=F,ub=new KD("START",0),ma=new KD("MIDDLE",1),cb=new KD("END",2)}function yT(){yT=F,RI=new oX("P1_NODE_PLACEMENT",0),D2=new oX("P2_EDGE_ROUTING",1)}function J1(){J1=F,y3=new lt(Jtn),jP=new lt(MXn),$8=new lt(TXn),lj=new lt(AXn)}function L0(n){var e;return FL(n.f.g,n.d),oe(n.b),n.c=n.a,e=u(n.a.Pb(),44),n.b=GQ(n),e}function LQ(n){var e;return n.b==null?(Gl(),Gl(),dE):(e=n.ul()?n.tl():n.sl(),e)}function lxn(n,e){var t;return t=e==null?-1:qr(n.b,e,0),t<0?!1:(M$(n,t),!0)}function Ks(n,e){var t;return Jn(e),t=e.g,n.b[t]?!1:($t(n.b,t,e),++n.c,!0)}function jT(n,e){var t,i;return t=1-e,i=n.a[t],n.a[t]=i.a[e],i.a[e]=n,n.b=!0,i.b=!1,i}function Zme(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),272),n.b=!0,fi(n.e,t),t.b=n}function nve(n,e){var t,i;return t=u(v(n,(cn(),Hw)),8),i=u(v(e,Hw),8),bt(t.b,i.b)}function C$(n,e,t){var i,r,c;return c=e>>5,r=e&31,i=vi(U1(n.n[t][c],Ae(Fs(r,1))),3),i}function axn(n,e,t){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i0?1:0:(!n.c&&(n.c=Y7(vc(n.f))),n.c).e}function yxn(n,e){e?n.B==null&&(n.B=n.D,n.D=null):n.B!=null&&(n.D=n.B,n.B=null)}function rve(n,e){return nm(),n==rb&&e==Iw||n==Iw&&e==rb||n==a2&&e==Pw||n==Pw&&e==a2}function cve(n,e){return nm(),n==rb&&e==Pw||n==rb&&e==a2||n==Iw&&e==a2||n==Iw&&e==Pw}function jxn(n,e){return Mf(),Rs(Kf),y.Math.abs(0-e)<=Kf||e==0||isNaN(0)&&isNaN(e)?0:n/e}function Exn(n,e){return $(R(ho($k(_r(new Tn(null,new In(n.c.b,16)),new I7n(n)),e))))}function FQ(n,e){return $(R(ho($k(_r(new Tn(null,new In(n.c.b,16)),new P7n(n)),e))))}function uve(){return pr(),S(T(cH,1),G,259,0,[ZP,cs,K8,nI,yv,m2,_8,vv,kv,eI])}function ove(){return gs(),S(T(Khn,1),G,243,0,[AI,Sj,Pj,Fhn,Bhn,xhn,Rhn,SI,pb,Uw])}function sve(n,e){var t;e.Ug("General Compactor",1),t=d8e(u(z(n,(ua(),yq)),393)),t.Cg(n)}function fve(n,e){var t,i;return t=u(z(n,(ua(),_I)),17),i=u(z(e,_I),17),jc(t.a,i.a)}function BQ(n,e,t){var i,r;for(r=ge(n,0);r.b!=r.d.c;)i=u(be(r),8),i.a+=e,i.b+=t;return n}function o5(n,e,t){var i;for(i=n.b[t&n.f];i;i=i.b)if(t==i.a&&oh(e,i.g))return i;return null}function s5(n,e,t){var i;for(i=n.c[t&n.f];i;i=i.d)if(t==i.f&&oh(e,i.i))return i;return null}function hve(n,e,t){var i,r,c;for(i=0,r=0;r>>31;i!=0&&(n[t]=i)}function P$(n,e,t,i,r,c){var s;this.c=n,s=new Z,pZ(n,s,e,n.b,t,i,r,c),this.a=new xi(s,0)}function Cxn(){this.c=new XE(0),this.b=new XE(Trn),this.d=new XE(lVn),this.a=new XE(QB)}function Vo(n,e,t,i,r,c,s){je.call(this,n,e),this.d=t,this.e=i,this.c=r,this.b=c,this.a=If(s)}function Ut(n,e,t,i,r,c,s,f,h,l,a,d,g){return P_n(n,e,t,i,r,c,s,f,h,l,a,d,g),sx(n,!1),n}function lve(n){return n.b.c.i.k==(Vn(),Zt)?u(v(n.b.c.i,(W(),st)),12):n.b.c}function Mxn(n){return n.b.d.i.k==(Vn(),Zt)?u(v(n.b.d.i,(W(),st)),12):n.b.d}function ave(n){var e;return e=BM(n),o0(e.a,0)?(QE(),QE(),SQn):(QE(),new uAn(e.b))}function I$(n){var e;return e=gJ(n),o0(e.a,0)?(Ob(),Ob(),n_):(Ob(),new AL(e.b))}function O$(n){var e;return e=gJ(n),o0(e.a,0)?(Ob(),Ob(),n_):(Ob(),new AL(e.c))}function Txn(n){switch(n.g){case 2:return tn(),Wn;case 4:return tn(),Zn;default:return n}}function Axn(n){switch(n.g){case 1:return tn(),ae;case 3:return tn(),Xn;default:return n}}function Sxn(n){switch(n.g){case 0:return new hmn;case 1:return new lmn;default:return null}}function Hp(){Hp=F,x_=new Dt("edgelabelcenterednessanalysis.includelabel",(_n(),wa))}function RQ(){RQ=F,Mie=ah(WMn(Re(Re(new ii,(Vi(),Oc),(tr(),NP)),Kc,PP),zr),LP)}function Pxn(){Pxn=F,Pie=ah(WMn(Re(Re(new ii,(Vi(),Oc),(tr(),NP)),Kc,PP),zr),LP)}function D$(){D$=F,x9=new ljn,CU=S(T(ku,1),s2,179,0,[]),Joe=S(T(As,1),Gcn,62,0,[])}function V4(){V4=F,dj=new Vz("TO_INTERNAL_LTR",0),L_=new Vz("TO_INPUT_DIRECTION",1)}function Ou(){Ou=F,Ron=new wwn,Fon=new gwn,Bon=new pwn,xon=new mwn,Kon=new vwn,_on=new kwn}function dve(n,e){e.Ug(HXn,1),HY(Qhe(new IE((o6(),new kN(n,!1,!1,new qU))))),e.Vg()}function bve(n,e,t){t.Ug("DFS Treeifying phase",1),O8e(n,e),PTe(n,e),n.a=null,n.b=null,t.Vg()}function kk(n,e){return _n(),Ai(n)?RJ(n,Oe(e)):$b(n)?tN(n,R(e)):Nb(n)?rwe(n,un(e)):n.Fd(e)}function f5(n,e){var t,i;for(Jn(e),i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),n.zc(t.ld(),t.md())}function wve(n,e,t){var i;for(i=t.Kc();i.Ob();)if(!_M(n,e,i.Pb()))return!1;return!0}function gve(n,e,t,i,r){var c;return t&&(c=Ot(e.Dh(),n.c),r=t.Rh(e,-1-(c==-1?i:c),null,r)),r}function pve(n,e,t,i,r){var c;return t&&(c=Ot(e.Dh(),n.c),r=t.Th(e,-1-(c==-1?i:c),null,r)),r}function Ixn(n){var e;if(n.b==-2){if(n.e==0)e=-1;else for(e=0;n.a[e]==0;e++);n.b=e}return n.b}function mve(n){if(Jn(n),n.length==0)throw M(new eh("Zero length BigInteger"));ESe(this,n)}function KQ(n){this.i=n.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),n.Qc(this.g))}function Oxn(n,e,t){this.g=n,this.d=e,this.e=t,this.a=new Z,IEe(this),Dn(),Yt(this.a,null)}function _Q(n,e){e.q=n,n.d=y.Math.max(n.d,e.r),n.b+=e.d+(n.a.c.length==0?0:n.c),nn(n.a,e)}function W4(n,e){var t,i,r,c;return r=n.c,t=n.c+n.b,c=n.d,i=n.d+n.a,e.a>r&&e.ac&&e.br?t=r:zn(e,t+1),n.a=qo(n.a,0,e)+(""+i)+$W(n.a,t)}function Kxn(n,e){n.a=nr(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d=nr(n.d,e)}function Mve(n,e){return e1||n.Ob())return++n.a,n.g=0,e=n.i,n.Ob(),e;throw M(new nc)}function Uxn(n){switch(n.a.g){case 1:return new WCn;case 3:return new WRn;default:return new s8n}}function qQ(n,e){switch(e){case 1:return!!n.n&&n.n.i!=0;case 2:return n.k!=null}return wJ(n,e)}function vc(n){return Ay>22),r=n.h+e.h+(i>>22),Yc(t&ro,i&ro,r&Il)}function Yxn(n,e){var t,i,r;return t=n.l-e.l,i=n.m-e.m+(t>>22),r=n.h-e.h+(i>>22),Yc(t&ro,i&ro,r&Il)}function zve(n){var e,t;for(RDe(n),t=new C(n.d);t.ai)throw M(new Kb(e,i));return n.Si()&&(t=gOn(n,t)),n.Ei(e,t)}function em(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)Rg(n,c,s)||xA(n,c,s,!0,!1)}function u6e(n){Xg();var e,t,i;for(t=K(Ei,J,8,2,0,1),i=0,e=0;e<2;e++)i+=.5,t[e]=Z9e(i,n);return t}function tm(n){var e,t,i;return e=~n.l+1&ro,t=~n.m+(e==0?1:0)&ro,i=~n.h+(e==0&&t==0?1:0)&Il,Yc(e,t,i)}function QQ(n){var e;if(n<0)return Wi;if(n==0)return 0;for(e=Y5;!(e&n);e>>=1);return e}function R$(n,e,t){return n>=128?!1:n<64?M6(vi(Fs(1,n),t),0):M6(vi(Fs(1,n-64),e),0)}function Pk(n,e,t){return t==null?(!n.q&&(n.q=new de),Bp(n.q,e)):(!n.q&&(n.q=new de),Xe(n.q,e,t)),n}function U(n,e,t){return t==null?(!n.q&&(n.q=new de),Bp(n.q,e)):(!n.q&&(n.q=new de),Xe(n.q,e,t)),n}function fFn(n){var e,t;return t=new zM,Ur(t,n),U(t,(J1(),y3),n),e=new de,$Pe(n,t,e),fDe(n,t,e),t}function hFn(n){var e,t;return e=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f,t=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d,e||t}function lFn(n,e){var t,i,r,c;for(t=!1,i=n.a[e].length,c=0;c=0,"Negative initial capacity"),B7(e>=0,"Non-positive load factor"),Hu(this)}function s6e(n,e,t,i,r){var c,s;if(s=n.length,c=t.length,e<0||i<0||r<0||e+r>s||i+r>c)throw M(new qG)}function eY(n,e){Dn();var t,i,r,c,s;for(s=!1,i=e,r=0,c=i.length;r1||e>=0&&n.b<3)}function H$(n){var e,t,i;e=~n.l+1&ro,t=~n.m+(e==0?1:0)&ro,i=~n.h+(e==0&&t==0?1:0)&Il,n.l=e,n.m=t,n.h=i}function rY(n){Dn();var e,t,i;for(i=1,t=n.Kc();t.Ob();)e=t.Pb(),i=31*i+(e!=null?mt(e):0),i=i|0;return i}function d6e(n,e,t,i,r){var c;return c=Xnn(n,e),t&&H$(c),r&&(n=u7e(n,e),i?ba=tm(n):ba=Yc(n.l,n.m,n.h)),c}function yFn(n,e,t){n.g=uF(n,e,(tn(),Zn),n.b),n.d=uF(n,t,Zn,n.b),!(n.g.c==0||n.d.c==0)&&YKn(n)}function jFn(n,e,t){n.g=uF(n,e,(tn(),Wn),n.j),n.d=uF(n,t,Wn,n.j),!(n.g.c==0||n.d.c==0)&&YKn(n)}function cY(n,e){switch(e){case 7:return!!n.e&&n.e.i!=0;case 8:return!!n.d&&n.d.i!=0}return qY(n,e)}function b6e(n,e){switch(e.g){case 0:O(n.b,641)||(n.b=new Rxn);break;case 1:O(n.b,642)||(n.b=new BSn)}}function EFn(n){switch(n.g){case 0:return new gmn;default:throw M(new Gn(xS+(n.f!=null?n.f:""+n.g)))}}function CFn(n){switch(n.g){case 0:return new wmn;default:throw M(new Gn(xS+(n.f!=null?n.f:""+n.g)))}}function w6e(n,e,t){return!s4(ut(new Tn(null,new In(n.c,16)),new Z3(new hMn(e,t)))).Bd((Xa(),v3))}function MFn(n,e){return vp(pm(u(v(e,(lc(),vb)),88)),new V(n.c.e.a-n.b.e.a,n.c.e.b-n.b.e.b))<=0}function g6e(n,e){for(;n.g==null&&!n.c?cJ(n):n.g==null||n.i!=0&&u(n.g[n.i-1],51).Ob();)kle(e,CA(n))}function ld(n){var e,t;for(t=new C(n.a.b);t.ai?1:0}function v6e(n){return nn(n.c,(qp(),bue)),hQ(n.a,$(R(rn((bx(),EI)))))?new tvn:new $kn(n)}function k6e(n){for(;!n.d||!n.d.Ob();)if(n.b&&!i6(n.b))n.d=u(Sp(n.b),51);else return null;return n.d}function oY(n){switch(n.g){case 1:return lVn;default:case 2:return 0;case 3:return QB;case 4:return Trn}}function y6e(){nt();var n;return IU||(n=_1e(oa("M",!0)),n=uM(oa("M",!1),n),IU=n,IU)}function LT(){LT=F,gU=new CC("ELK",0),Tdn=new CC("JSON",1),Mdn=new CC("DOT",2),Adn=new CC("SVG",3)}function d5(){d5=F,VH=new WD("STACKED",0),XH=new WD("REVERSE_STACKED",1),Ij=new WD("SEQUENCED",2)}function b5(){b5=F,wln=new eL(kh,0),nq=new eL("MIDDLE_TO_MIDDLE",1),Lj=new eL("AVOID_OVERLAP",2)}function cm(){cm=F,Esn=new Ygn,Csn=new Zgn,JZn=new Jgn,WZn=new n2n,VZn=new Qgn,jsn=(Jn(VZn),new O0n)}function NT(){NT=F,hdn=new f0(15),Jue=new Ni((qe(),C1),hdn),C9=N3,udn=Pue,odn=Hd,fdn=K2,sdn=Vw}function Lg(n,e){var t,i,r,c,s;for(i=e,r=0,c=i.length;r=n.b.c.length||(fY(n,2*e+1),t=2*e+2,t0&&(e.Cd(t),t.i&&E5e(t))}function hY(n,e,t){var i;for(i=t-1;i>=0&&n[i]===e[i];i--);return i<0?0:ND(vi(n[i],mr),vi(e[i],mr))?-1:1}function SFn(n,e,t){var i,r;this.g=n,this.c=e,this.a=this,this.d=this,r=sxn(t),i=K(sQn,Cy,227,r,0,1),this.b=i}function X$(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)if(Rg(n,c,s))return!0;return!1}function A6e(n,e){var t,i;for(i=n.Zb().Cc().Kc();i.Ob();)if(t=u(i.Pb(),16),t.Hc(e))return!0;return!1}function PFn(n,e,t){var i,r,c,s;for(Jn(t),s=!1,c=n.fd(e),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),s=!0;return s}function V$(n,e){var t,i;return i=u(Un(n.a,4),129),t=K(jU,MK,424,e,0,1),i!=null&&Ic(i,0,t,0,i.length),t}function IFn(n,e){var t;return t=new jF((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,e),n.e!=null||(t.c=n),t}function S6e(n,e){var t;return n===e?!0:O(e,85)?(t=u(e,85),dnn(Wa(n),t.vc())):!1}function OFn(n,e,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),44),n.Be(e,i.md()))return!0;return!1}function DFn(n,e,t){return n.d[e.p][t.p]||(O9e(n,e,t),n.d[e.p][t.p]=!0,n.d[t.p][e.p]=!0),n.a[e.p][t.p]}function P6e(n,e){var t;return!n||n==e||!kt(e,(W(),sb))?!1:(t=u(v(e,(W(),sb)),10),t!=n)}function W$(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.$l()}}function LFn(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n._l()}}function NFn(n){yOn.call(this,"The given string does not match the expected format for individual spacings.",n)}function I6e(n,e){var t;e.Ug("Min Size Preprocessing",1),t=jnn(n),ht(n,(_h(),a9),t.a),ht(n,UI,t.b),e.Vg()}function O6e(n){var e,t,i;for(e=0,i=K(Ei,J,8,n.b,0,1),t=ge(n,0);t.b!=t.d.c;)i[e++]=u(be(t),8);return i}function J$(n,e,t){var i,r,c;for(i=new Ct,c=ge(t,0);c.b!=c.d.c;)r=u(be(c),8),xe(i,new rr(r));PFn(n,e,i)}function D6e(n,e){var t;return t=nr(n,e),ND(RN(n,e),0)|AC(RN(n,t),0)?t:nr(Ey,RN(U1(t,63),1))}function L6e(n,e){var t,i;return t=u(n.d.Bc(e),16),t?(i=n.e.hc(),i.Gc(t),n.e.d-=t.gc(),t.$b(),i):null}function $Fn(n){var e;if(e=n.a.c.length,e>0)return E4(e-1,n.a.c.length),Yl(n.a,e-1);throw M(new $yn)}function xFn(n,e,t){if(n>e)throw M(new Gn(ZA+n+Qzn+e));if(n<0||e>t)throw M(new pz(ZA+n+Stn+e+Mtn+t))}function um(n,e){n.D==null&&n.B!=null&&(n.D=n.B,n.B=null),j$(n,e==null?null:(Jn(e),e)),n.C&&n.hl(null)}function N6e(n,e){var t;t=rn((bx(),EI))!=null&&e.Sg()!=null?$(R(e.Sg()))/$(R(rn(EI))):1,Xe(n.b,e,t)}function lY(n,e){var t,i;if(i=n.c[e],i!=0)for(n.c[e]=0,n.d-=i,t=e+1;tPS?n-t>PS:t-n>PS}function XFn(n,e){var t;for(t=0;tr&&(EKn(e.q,r),i=t!=e.q.d)),i}function VFn(n,e){var t,i,r,c,s,f,h,l;return h=e.i,l=e.j,i=n.f,r=i.i,c=i.j,s=h-r,f=l-c,t=y.Math.sqrt(s*s+f*f),t}function pY(n,e){var t,i;return i=WT(n),i||(t=(UF(),$Hn(e)),i=new Cyn(t),ve(i.El(),n)),i}function Lk(n,e){var t,i;return t=u(n.c.Bc(e),16),t?(i=n.hc(),i.Gc(t),n.d-=t.gc(),t.$b(),n.mc(i)):n.jc()}function G6e(n,e){var t,i;for(i=to(n.d,1)!=0,t=!0;t;)t=!1,t=e.c.mg(e.e,i),t=t|sy(n,e,i,!1),i=!i;$Q(n)}function WFn(n,e,t,i){var r,c;n.a=e,c=i?0:1,n.f=(r=new s_n(n.c,n.a,t,c),new Kqn(t,n.a,r,n.e,n.b,n.c==(O0(),t9)))}function xT(n){var e;return oe(n.a!=n.b),e=n.d.a[n.a],EAn(n.b==n.d.c&&e!=null),n.c=n.a,n.a=n.a+1&n.d.a.length-1,e}function JFn(n){var e;if(n.c!=0)return n.c;for(e=0;e=n.c.b:n.a<=n.c.b))throw M(new nc);return e=n.a,n.a+=n.c.c,++n.b,Y(e)}function ex(n){var e;return e=new DX(n.a),Ur(e,n),U(e,(W(),st),n),e.o.a=n.g,e.o.b=n.f,e.n.a=n.i,e.n.b=n.j,e}function tx(n){return(tn(),mu).Hc(n.j)?$(R(v(n,(W(),jv)))):cc(S(T(Ei,1),J,8,0,[n.i.n,n.n,n.a])).b}function X6e(n){var e;return e=DC(Cie),u(v(n,(W(),Hc)),21).Hc((pr(),yv))&&Re(e,(Vi(),Oc),(tr(),FP)),e}function V6e(n){var e,t,i,r;for(r=new ni,i=new C(n);i.a=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function Z6e(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function na(n,e){var t,i,r,c;return c=(r=n?WT(n):null,O_n((i=e,r&&r.Gl(),i))),c==e&&(t=WT(n),t&&t.Gl()),c}function QFn(n,e,t){var i,r;return r=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,0,r,e),t?t.nj(i):t=i),t}function YFn(n,e,t){var i,r;return r=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,3,r,e),t?t.nj(i):t=i),t}function vY(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,1,r,e),t?t.nj(i):t=i),t}function ZFn(n){var e,t;if(n!=null)for(t=0;t=i||e-129&&n<128?(FSn(),e=n+128,t=pun[e],!t&&(t=pun[e]=new vG(n)),t):new vG(n)}function sm(n){var e,t;return n>-129&&n<128?(nPn(),e=n+128,t=yun[e],!t&&(t=yun[e]=new yG(n)),t):new yG(n)}function tBn(n,e){var t;n.a.c.length>0&&(t=u(sn(n.a,n.a.c.length-1),579),sY(t,e))||nn(n.a,new kLn(e))}function c5e(n){xs();var e,t;e=n.d.c-n.e.c,t=u(n.g,154),nu(t.b,new p7n(e)),nu(t.c,new m7n(e)),qi(t.i,new v7n(e))}function iBn(n){var e;return e=new x1,e.a+="VerticalSegment ",Dc(e,n.e),e.a+=" ",Be(e,RX(new yD,new C(n.k))),e.a}function ix(n,e){var t,i,r;for(t=0,r=uc(n,e).Kc();r.Ob();)i=u(r.Pb(),12),t+=v(i,(W(),Xu))!=null?1:0;return t}function xg(n,e,t){var i,r,c;for(i=0,c=ge(n,0);c.b!=c.d.c&&(r=$(R(be(c))),!(r>t));)r>=e&&++i;return i}function rBn(n,e){Se(n);try{return n._b(e)}catch(t){if(t=It(t),O(t,212)||O(t,169))return!1;throw M(t)}}function yY(n,e){Se(n);try{return n.Hc(e)}catch(t){if(t=It(t),O(t,212)||O(t,169))return!1;throw M(t)}}function u5e(n,e){Se(n);try{return n.Mc(e)}catch(t){if(t=It(t),O(t,212)||O(t,169))return!1;throw M(t)}}function tw(n,e){Se(n);try{return n.xc(e)}catch(t){if(t=It(t),O(t,212)||O(t,169))return null;throw M(t)}}function o5e(n,e){Se(n);try{return n.Bc(e)}catch(t){if(t=It(t),O(t,212)||O(t,169))return null;throw M(t)}}function p5(n,e){switch(e.g){case 2:case 1:return uc(n,e);case 3:case 4:return Qo(uc(n,e))}return Dn(),Dn(),sr}function m5(n){var e;return n.Db&64?_s(n):(e=new ls(_s(n)),e.a+=" (name: ",Er(e,n.zb),e.a+=")",e.a)}function s5e(n){var e;return e=u(Lf(n.c.c,""),233),e||(e=new Np(u4(c4(new ep,""),"Other")),s1(n.c.c,"",e)),e}function jY(n,e,t){var i,r;return r=n.sb,n.sb=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,4,r,e),t?t.nj(i):t=i),t}function EY(n,e,t){var i,r;return r=n.r,n.r=e,n.Db&4&&!(n.Db&1)&&(i=new Ci(n,1,8,r,n.r),t?t.nj(i):t=i),t}function f5e(n,e,t){var i,r;return i=new ml(n.e,4,13,(r=e.c,r||(On(),Yf)),null,f1(n,e),!1),t?t.nj(i):t=i,t}function h5e(n,e,t){var i,r;return i=new ml(n.e,3,13,null,(r=e.c,r||(On(),Yf)),f1(n,e),!1),t?t.nj(i):t=i,t}function r1(n,e){var t,i;return t=u(e,691),i=t.el(),!i&&t.fl(i=O(e,90)?new xMn(n,u(e,29)):new cDn(n,u(e,156))),i}function Nk(n,e,t){var i;n._i(n.i+1),i=n.Zi(e,t),e!=n.i&&Ic(n.g,e,n.g,e+1,n.i-e),$t(n.g,e,i),++n.i,n.Mi(e,t),n.Ni()}function l5e(n,e){var t;return e.a&&(t=e.a.a.length,n.a?Be(n.a,n.b):n.a=new mo(n.d),aDn(n.a,e.a,e.d.length,t)),n}function a5e(n,e){var t;n.c=e,n.a=p8e(e),n.a<54&&(n.f=(t=e.d>1?hDn(e.a[0],e.a[1]):hDn(e.a[0],0),id(e.e>0?t:n1(t))))}function $k(n,e){var t;return t=new LO,n.a.Bd(t)?(b4(),new wD(Jn(GNn(n,t.a,e)))):(z1(n),b4(),b4(),Dun)}function cBn(n,e){var t;n.c.length!=0&&(t=u(xf(n,K(Qh,b1,10,n.c.length,0,1)),199),CX(t,new rgn),Y_n(t,e))}function uBn(n,e){var t;n.c.length!=0&&(t=u(xf(n,K(Qh,b1,10,n.c.length,0,1)),199),CX(t,new cgn),Y_n(t,e))}function rt(n,e){return Ai(n)?An(n,e):$b(n)?nSn(n,e):Nb(n)?(Jn(n),x(n)===x(e)):pW(n)?n.Fb(e):hW(n)?YMn(n,e):hJ(n,e)}function Wo(n,e,t){if(e<0)Pnn(n,t);else{if(!t.rk())throw M(new Gn(da+t.xe()+p8));u(t,69).wk().Ek(n,n.hi(),e)}}function oBn(n,e,t){if(n<0||e>t)throw M(new Ir(ZA+n+Stn+e+", size: "+t));if(n>e)throw M(new Gn(ZA+n+Qzn+e))}function sBn(n){var e;return n.Db&64?_s(n):(e=new ls(_s(n)),e.a+=" (source: ",Er(e,n.d),e.a+=")",e.a)}function fBn(n){return n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function d5e(n){VA();var e,t,i,r;for(t=jx(),i=0,r=t.length;i=0?ta(n):G6(ta(n1(n))))}function aBn(n,e,t,i,r,c){this.e=new Z,this.f=(gr(),n9),nn(this.e,n),this.d=e,this.a=t,this.b=i,this.f=r,this.c=c}function g5e(n,e,t){n.n=Va(xa,[J,SB],[376,28],14,[t,wi(y.Math.ceil(e/32))],2),n.o=e,n.p=t,n.j=e-1>>1,n.k=t-1>>1}function dBn(n){return n-=n>>1&1431655765,n=(n>>2&858993459)+(n&858993459),n=(n>>4)+n&252645135,n+=n>>8,n+=n>>16,n&63}function bBn(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)if(t=u(ce(i),142),x(e)===x(t))return!0;return!1}function p5e(n,e,t){var i,r,c;return c=(r=Mm(n.b,e),r),c&&(i=u(qA(ak(n,c),""),29),i)?Qnn(n,i,e,t):null}function rx(n,e,t){var i,r,c;return c=(r=Mm(n.b,e),r),c&&(i=u(qA(ak(n,c),""),29),i)?Ynn(n,i,e,t):null}function m5e(n,e){var t;if(t=Dg(n.i,e),t==null)throw M(new nh("Node did not exist in input."));return HQ(e,t),null}function v5e(n,e){var t;if(t=oy(n,e),O(t,331))return u(t,35);throw M(new Gn(da+e+"' is not a valid attribute"))}function k5(n,e,t){var i;if(i=n.gc(),e>i)throw M(new Kb(e,i));if(n.Si()&&n.Hc(t))throw M(new Gn(Vy));n.Gi(e,t)}function k5e(n,e){e.Ug("Sort end labels",1),qt(ut(rc(new Tn(null,new In(n.b,16)),new Hwn),new qwn),new Uwn),e.Vg()}function ci(){ci=F,Wf=new v7(i8,0),Xr=new v7(f3,1),Br=new v7(s3,2),Vf=new v7(_B,3),us=new v7("UP",4)}function Fk(){Fk=F,XI=new sL("P1_STRUCTURE",0),VI=new sL("P2_PROCESSING_ORDER",1),WI=new sL("P3_EXECUTION",2)}function wBn(){wBn=F,Rre=ah(ah(l6(ah(ah(l6(Re(new ii,(Qp(),c9),(q5(),ZH)),u9),lln),dln),o9),oln),bln)}function y5e(n){switch(u(v(n,(W(),Od)),311).g){case 1:U(n,Od,(vl(),E3));break;case 2:U(n,Od,(vl(),v2))}}function j5e(n){switch(n){case 0:return new rjn;case 1:return new tjn;case 2:return new ijn;default:throw M(new Q9)}}function gBn(n){switch(n.g){case 2:return Xr;case 1:return Br;case 4:return Vf;case 3:return us;default:return Wf}}function AY(n,e){switch(n.b.g){case 0:case 1:return e;case 2:case 3:return new Ho(e.d,0,e.a,e.b);default:return null}}function SY(n){switch(n.g){case 1:return Wn;case 2:return Xn;case 3:return Zn;case 4:return ae;default:return sc}}function Bk(n){switch(n.g){case 1:return ae;case 2:return Wn;case 3:return Xn;case 4:return Zn;default:return sc}}function RT(n){switch(n.g){case 1:return Zn;case 2:return ae;case 3:return Wn;case 4:return Xn;default:return sc}}function PY(n,e,t,i){switch(e){case 1:return!n.n&&(n.n=new q(Ar,n,1,7)),n.n;case 2:return n.k}return yZ(n,e,t,i)}function y5(n,e,t){var i,r;return n.Pj()?(r=n.Qj(),i=lF(n,e,t),n.Jj(n.Ij(7,Y(t),i,e,r)),i):lF(n,e,t)}function cx(n,e){var t,i,r;n.d==null?(++n.e,--n.f):(r=e.ld(),t=e.Bi(),i=(t&et)%n.d.length,o4e(n,i,RHn(n,i,t,r)))}function fm(n,e){var t;t=(n.Bb&Us)!=0,e?n.Bb|=Us:n.Bb&=-1025,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,10,t,e))}function hm(n,e){var t;t=(n.Bb&vw)!=0,e?n.Bb|=vw:n.Bb&=-4097,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,12,t,e))}function lm(n,e){var t;t=(n.Bb&$u)!=0,e?n.Bb|=$u:n.Bb&=-8193,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,15,t,e))}function am(n,e){var t;t=(n.Bb&Tw)!=0,e?n.Bb|=Tw:n.Bb&=-2049,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,11,t,e))}function E5e(n){var e;n.g&&(e=n.c.kg()?n.f:n.a,len(e.a,n.o,!0),len(e.a,n.o,!1),U(n.o,(cn(),Kt),(Oi(),Ud)))}function C5e(n){var e;if(!n.a)throw M(new Or("Cannot offset an unassigned cut."));e=n.c-n.b,n.b+=e,_In(n,e),KIn(n,e)}function M5e(n,e){var t;if(t=ee(n.k,e),t==null)throw M(new nh("Port did not exist in input."));return HQ(e,t),null}function T5e(n){var e,t;for(t=xHn(jo(n)).Kc();t.Ob();)if(e=Oe(t.Pb()),U5(n,e))return A3e((mCn(),Boe),e);return null}function pBn(n){var e,t;for(t=n.p.a.ec().Kc();t.Ob();)if(e=u(t.Pb(),218),e.f&&n.b[e.c]<-1e-10)return e;return null}function A5e(n){var e,t;for(t=Ya(new x1,91),e=!0;n.Ob();)e||(t.a+=ur),e=!1,Dc(t,n.Pb());return(t.a+="]",t).a}function S5e(n){var e,t,i;for(e=new Z,i=new C(n.b);i.ae?1:n==e?n==0?bt(1/n,1/e):0:isNaN(n)?isNaN(e)?0:1:-1}function I5e(n){var e;return e=n.a[n.c-1&n.a.length-1],e==null?null:(n.c=n.c-1&n.a.length-1,$t(n.a,n.c,null),e)}function O5e(n){var e,t,i;for(i=0,t=n.length,e=0;e=1?Xr:Vf):t}function $5e(n){switch(u(v(n,(cn(),$l)),223).g){case 1:return new Ppn;case 3:return new Npn;default:return new Spn}}function ea(n){if(n.c)ea(n.c);else if(n.d)throw M(new Or("Stream already terminated, can't be modified or used"))}function $0(n,e,t){var i;return i=n.a.get(e),n.a.set(e,t===void 0?null:t),i===void 0?(++n.c,++n.b.g):++n.d,i}function x5e(n,e,t){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),Mk(t,u(sn(e,i.p),16)))return i;return null}function OY(n,e,t){var i;return i=0,e&&(mg(n.a)?i+=e.f.a/2:i+=e.f.b/2),t&&(mg(n.a)?i+=t.f.a/2:i+=t.f.b/2),i}function F5e(n,e,t){var i;i=t,!i&&(i=YV(new up,0)),i.Ug(PXn,2),jRn(n.b,e,i.eh(1)),YIe(n,e,i.eh(1)),eLe(e,i.eh(1)),i.Vg()}function DY(n,e,t){var i,r;return i=(B1(),r=new yE,r),aT(i,e),lT(i,t),n&&ve((!n.a&&(n.a=new ti(xo,n,5)),n.a),i),i}function ox(n){var e;return n.Db&64?_s(n):(e=new ls(_s(n)),e.a+=" (identifier: ",Er(e,n.k),e.a+=")",e.a)}function sx(n,e){var t;t=(n.Bb&kc)!=0,e?n.Bb|=kc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,18,t,e))}function LY(n,e){var t;t=(n.Bb&kc)!=0,e?n.Bb|=kc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,18,t,e))}function dm(n,e){var t;t=(n.Bb&wh)!=0,e?n.Bb|=wh:n.Bb&=-16385,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,16,t,e))}function NY(n,e){var t;t=(n.Bb&hr)!=0,e?n.Bb|=hr:n.Bb&=-65537,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,20,t,e))}function $Y(n){var e;return e=K(fs,gh,28,2,15,1),n-=hr,e[0]=(n>>10)+Sy&ui,e[1]=(n&1023)+56320&ui,hh(e,0,e.length)}function B5e(n){var e;return e=sw(n),e>34028234663852886e22?St:e<-34028234663852886e22?li:e}function nr(n,e){var t;return Vr(n)&&Vr(e)&&(t=n+e,Ay"+td(e.c):"e_"+mt(e),n.b&&n.c?td(n.b)+"->"+td(n.c):"e_"+mt(n))}function _5e(n,e){return An(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e),n.b&&n.c?td(n.b)+"->"+td(n.c):"e_"+mt(n))}function x0(n,e){return Mf(),Rs(sa),y.Math.abs(n-e)<=sa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:s0(isNaN(n),isNaN(e))}function El(){El=F,lU=new kC(i8,0),Yj=new kC("POLYLINE",1),Kv=new kC("ORTHOGONAL",2),F3=new kC("SPLINES",3)}function _T(){_T=F,l1n=new uL("ASPECT_RATIO_DRIVEN",0),Oq=new uL("MAX_SCALE_DRIVEN",1),h1n=new uL("AREA_DRIVEN",2)}function H5e(n,e,t){var i;try{l6e(n,e,t)}catch(r){throw r=It(r),O(r,606)?(i=r,M(new $J(i))):M(r)}return e}function q5e(n){var e,t,i;for(t=0,i=n.length;te&&i.Ne(n[c-1],n[c])>0;--c)s=n[c],$t(n,c,n[c-1]),$t(n,c-1,s)}function vn(n,e){var t,i,r,c,s;if(t=e.f,s1(n.c.d,t,e),e.g!=null)for(r=e.g,c=0,s=r.length;ce){wDn(t);break}}q7(t,e)}function X5e(n,e){var t,i,r;i=Sg(e),r=$(R(rw(i,(cn(),Vs)))),t=y.Math.max(0,r/2-.5),I5(e,t,1),nn(n,new NCn(e,t))}function V5e(n,e,t){var i;t.Ug("Straight Line Edge Routing",1),t.dh(e,xrn),i=u(z(e,(Mg(),O2)),27),iGn(n,i),t.dh(e,DS)}function xY(n,e){n.n.c.length==0&&nn(n.n,new NM(n.s,n.t,n.i)),nn(n.b,e),gZ(u(sn(n.n,n.n.c.length-1),209),e),RUn(n,e)}function j5(n){var e;this.a=(e=u(n.e&&n.e(),9),new _o(e,u($s(e,e.length),9),0)),this.b=K(ki,Fn,1,this.a.a.length,5,1)}function Jr(n){var e;return Array.isArray(n)&&n.Tm===J2?za(wo(n))+"@"+(e=mt(n)>>>0,e.toString(16)):n.toString()}function W5e(n,e){return n.h==Ty&&n.m==0&&n.l==0?(e&&(ba=Yc(0,0,0)),nTn((R4(),lun))):(e&&(ba=Yc(n.l,n.m,n.h)),Yc(0,0,0))}function J5e(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function yBn(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function FY(n,e,t,i){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return PY(n,e,t,i)}function HT(n,e){if(e==n.d)return n.e;if(e==n.e)return n.d;throw M(new Gn("Node "+e+" not part of edge "+n))}function Q5e(n,e){var t;if(t=oy(n.Dh(),e),O(t,102))return u(t,19);throw M(new Gn(da+e+"' is not a valid reference"))}function Jo(n,e,t,i){if(e<0)ten(n,t,i);else{if(!t.rk())throw M(new Gn(da+t.xe()+p8));u(t,69).wk().Ck(n,n.hi(),e,i)}}function eo(n){var e;if(n.b){if(eo(n.b),n.b.d!=n.c)throw M(new Bo)}else n.d.dc()&&(e=u(n.f.c.xc(n.e),16),e&&(n.d=e))}function Y5e(n){Bb();var e,t,i,r;for(e=n.o.b,i=u(u(ot(n.r,(tn(),ae)),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r=t.e,r.b+=e}function Z5e(n){var e,t,i;for(this.a=new ih,i=new C(n);i.a=r)return e.c+t;return e.c+e.b.gc()}function e8e(n,e){m4();var t,i,r,c;for(i=LNn(n),r=e,F4(i,0,i.length,r),t=0;t0&&(i+=r,++t);return t>1&&(i+=n.d*(t-1)),i}function i8e(n){var e,t,i,r,c;return c=enn(n),t=e7(n.c),i=!t,i&&(r=new Ka,df(c,"knownLayouters",r),e=new lyn(r),qi(n.c,e)),c}function KY(n){var e,t,i;for(i=new Hl,i.a+="[",e=0,t=n.gc();e0&&(zn(e-1,n.length),n.charCodeAt(e-1)==58)&&!lx(n,N9,$9))}function _Y(n,e){var t;return x(n)===x(e)?!0:O(e,92)?(t=u(e,92),n.e==t.e&&n.d==t.d&&I3e(n,t.a)):!1}function zp(n){switch(tn(),n.g){case 4:return Xn;case 1:return Zn;case 3:return ae;case 2:return Wn;default:return sc}}function o8e(n){var e,t;if(n.b)return n.b;for(t=qf?null:n.d;t;){if(e=qf?null:t.b,e)return e;t=qf?null:t.d}return a4(),$un}function HY(n){var e,t,i;for(i=$(R(n.a.of((qe(),iO)))),t=new C(n.a.Sf());t.a>5,e=n&31,i=K(ye,Ke,28,t+1,15,1),i[t]=1<3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}function Ot(n,e){var t,i,r;if(t=(n.i==null&&bh(n),n.i),i=e.Lj(),i!=-1){for(r=t.length;i=0;--i)for(e=t[i],r=0;r>1,this.k=e-1>>1}function j8e(n){YM(),u(n.of((qe(),Ma)),181).Hc((io(),hO))&&(u(n.of(Ww),181).Fc((zu(),B3)),u(n.of(Ma),181).Mc(hO))}function SBn(n){var e,t;e=n.d==(Yp(),dv),t=GZ(n),e&&!t||!e&&t?U(n.a,(cn(),Th),(Rh(),Uj)):U(n.a,(cn(),Th),(Rh(),qj))}function bx(){bx=F,nC(),EI=(cn(),gb),Qte=If(S(T(Xq,1),Ern,149,0,[Tj,Vs,M2,wb,qw,IH,Av,Sv,OH,J8,C2,Bd,T2]))}function E8e(n,e){var t;return t=u(Wr(n,qu(new ju,new yu,new Eu,S(T(xr,1),G,108,0,[(Gu(),Yr)]))),15),t.Qc(WSn(t.gc()))}function PBn(n,e){var t,i;if(i=new Y3(n.a.ad(e,!0)),i.a.gc()<=1)throw M(new ip);return t=i.a.ec().Kc(),t.Pb(),u(t.Pb(),40)}function C8e(n,e,t){var i,r;return i=$(n.p[e.i.p])+$(n.d[e.i.p])+e.n.b+e.a.b,r=$(n.p[t.i.p])+$(n.d[t.i.p])+t.n.b+t.a.b,r-i}function WY(n,e){var t;return n.i>0&&(e.lengthn.i&&$t(e,n.i,null),e}function UT(n){var e;return n.Db&64?m5(n):(e=new ls(m5(n)),e.a+=" (instanceClassName: ",Er(e,n.D),e.a+=")",e.a)}function GT(n){var e,t,i,r;for(r=0,t=0,i=n.length;t0?(n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=RHn(n,r,i,e),t!=-1):!1}function IBn(n,e){var t,i;n.a=nr(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d+=e,t=e-n.f,i=n.e+t,n.f=i-n.e-t,n.e=i}function JY(n,e){switch(e){case 3:P0(n,0);return;case 4:I0(n,0);return;case 5:eu(n,0);return;case 6:tu(n,0);return}kY(n,e)}function F0(n,e){switch(e.g){case 1:return Cp(n.j,(Ou(),Fon));case 2:return Cp(n.j,(Ou(),Ron));default:return Dn(),Dn(),sr}}function QY(n){m0();var e;switch(e=n.Pc(),e.length){case 0:return qK;case 1:return new VL(Se(e[0]));default:return new PN(q5e(e))}}function OBn(n,e){n.Xj();try{n.d.bd(n.e++,e),n.f=n.d.j,n.g=-1}catch(t){throw t=It(t),O(t,77)?M(new Bo):M(t)}}function gx(){gx=F,TU=new Tvn,zdn=new Avn,Xdn=new Svn,Vdn=new Pvn,Wdn=new Ivn,Jdn=new Ovn,Qdn=new Dvn,Ydn=new Lvn,Zdn=new Nvn}function zT(n,e){kX();var t,i;return t=D7((KE(),KE(),P8)),i=null,e==t&&(i=u(Nc(fun,n),624)),i||(i=new JPn(n),e==t&&Dr(fun,n,i)),i}function DBn(n){cw();var e;return(n.q?n.q:(Dn(),Dn(),Wh))._b((cn(),db))?e=u(v(n,db),203):e=u(v(Hi(n),W8),203),e}function rw(n,e){var t,i;return i=null,kt(n,(cn(),yI))&&(t=u(v(n,yI),96),t.pf(e)&&(i=t.of(e))),i==null&&(i=v(Hi(n),e)),i}function LBn(n,e){var t,i,r;return O(e,44)?(t=u(e,44),i=t.ld(),r=tw(n.Rc(),i),oh(r,t.md())&&(r!=null||n.Rc()._b(i))):!1}function wf(n,e){var t,i,r;return n.f>0&&(n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=xnn(n,r,i,e),t)?t.md():null}function Xc(n,e,t){var i,r,c;return n.Pj()?(i=n.i,c=n.Qj(),Nk(n,i,e),r=n.Ij(3,null,e,i,c),t?t.nj(r):t=r):Nk(n,n.i,e),t}function T8e(n,e,t){var i,r;return i=new ml(n.e,4,10,(r=e.c,O(r,90)?u(r,29):(On(),Ps)),null,f1(n,e),!1),t?t.nj(i):t=i,t}function A8e(n,e,t){var i,r;return i=new ml(n.e,3,10,null,(r=e.c,O(r,90)?u(r,29):(On(),Ps)),f1(n,e),!1),t?t.nj(i):t=i,t}function NBn(n){Bb();var e;return e=new rr(u(n.e.of((qe(),K2)),8)),n.B.Hc((io(),Hv))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function ta(n){dh();var e,t;return t=Ae(n),e=Ae(U1(n,32)),e!=0?new HOn(t,e):t>10||t<0?new gl(1,t):kQn[t]}function Kk(n,e){var t;return Vr(n)&&Vr(e)&&(t=n%e,Ay=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function Hk(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.Ne(e,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function L8e(n,e,t,i){var r,c,s;return r=!1,xOe(n.f,t,i)&&(e9e(n.f,n.a[e][t],n.a[e][i]),c=n.a[e],s=c[i],c[i]=c[t],c[t]=s,r=!0),r}function BBn(n,e,t){var i,r,c,s;for(r=u(ee(n.b,t),183),i=0,s=new C(e.j);s.a>5,e&=31,r=n.d+t+(e==0?0:1),i=K(ye,Ke,28,r,15,1),Oye(i,n.a,t,e),c=new Qa(n.e,r,i),Q6(c),c}function N8e(n,e){var t,i,r;for(i=new te(re(Qt(n).a.Kc(),new En));pe(i);)if(t=u(fe(i),18),r=t.d.i,r.c==e)return!1;return!0}function nZ(n,e,t){var i,r,c,s,f;return s=n.k,f=e.k,i=t[s.g][f.g],r=R(rw(n,i)),c=R(rw(e,i)),y.Math.max((Jn(r),r),(Jn(c),c))}function $8e(){return Error.stackTraceLimit>0?(y.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function x8e(n,e){return Mf(),Mf(),Rs(sa),(y.Math.abs(n-e)<=sa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:s0(isNaN(n),isNaN(e)))>0}function eZ(n,e){return Mf(),Mf(),Rs(sa),(y.Math.abs(n-e)<=sa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:s0(isNaN(n),isNaN(e)))<0}function KBn(n,e){return Mf(),Mf(),Rs(sa),(y.Math.abs(n-e)<=sa||n==e||isNaN(n)&&isNaN(e)?0:ne?1:s0(isNaN(n),isNaN(e)))<=0}function mx(n,e){for(var t=0;!e[t]||e[t]=="";)t++;for(var i=e[t++];t0&&this.b>0&&(this.g=cM(this.c,this.b,this.a))}function F8e(n,e){var t=n.a,i;e=String(e),t.hasOwnProperty(e)&&(i=t[e]);var r=(K$(),WK)[typeof i],c=r?r(i):wY(typeof i);return c}function wm(n){var e,t,i;if(i=null,e=Eh in n.a,t=!e,t)throw M(new nh("Every element must have an id."));return i=Zp(dl(n,Eh)),i}function B0(n){var e,t;for(t=a_n(n),e=null;n.c==2;)Ye(n),e||(e=(nt(),nt(),new P6(2)),pd(e,t),t=e),t.Jm(a_n(n));return t}function VT(n,e){var t,i,r;return n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=xnn(n,r,i,e),t?(V$n(n,t),t.md()):null}function XBn(n,e){return n.e>e.e?1:n.ee.d?n.e:n.d=48&&n<48+y.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function B8e(n,e){if(e.c==n)return e.d;if(e.d==n)return e.c;throw M(new Gn("Input edge is not connected to the input port."))}function R8e(n){if(JT(nv,n))return _n(),ov;if(JT(cK,n))return _n(),wa;throw M(new Gn("Expecting true or false"))}function rZ(n){switch(typeof n){case nB:return t1(n);case dtn:return pp(n);case i3:return SAn(n);default:return n==null?0:l0(n)}}function ah(n,e){if(n.a<0)throw M(new Or("Did not call before(...) or after(...) before calling add(...)."));return YX(n,n.a,e),n}function cZ(n){return $M(),O(n,162)?u(ee(hE,MQn),295).Rg(n):Zc(hE,wo(n))?u(ee(hE,wo(n)),295).Rg(n):null}function iu(n){var e,t;return n.Db&32||(t=(e=u(Un(n,16),29),se(e||n.ii())-se(n.ii())),t!=0&&Xp(n,32,K(ki,Fn,1,t,5,1))),n}function Xp(n,e,t){var i;n.Db&e?t==null?jCe(n,e):(i=Rx(n,e),i==-1?n.Eb=t:$t(cd(n.Eb),i,t)):t!=null&>e(n,e,t)}function K8e(n,e,t,i){var r,c;e.c.length!=0&&(r=$Me(t,i),c=xEe(e),qt(fT(new Tn(null,new In(c,1)),new L3n),new MIn(n,t,r,i)))}function _8e(n,e){var t,i,r,c;return i=n.a.length-1,t=e-n.b&i,c=n.c-e&i,r=n.c-n.b&i,EAn(t=c?(R6e(n,e),-1):(B6e(n,e),1)}function WT(n){var e,t,i;if(i=n.Jh(),!i)for(e=0,t=n.Ph();t;t=t.Ph()){if(++e>PB)return t.Qh();if(i=t.Jh(),i||t==n)break}return i}function WBn(n,e){var t;return x(e)===x(n)?!0:!O(e,21)||(t=u(e,21),t.gc()!=n.gc())?!1:n.Ic(t)}function H8e(n,e){return n.ee.e?1:n.fe.f?1:mt(n)-mt(e)}function JT(n,e){return Jn(n),e==null?!1:An(n,e)?!0:n.length==e.length&&An(n.toLowerCase(),e.toLowerCase())}function Ml(n){var e,t;return Ec(n,-129)>0&&Ec(n,128)<0?(ZSn(),e=Ae(n)+128,t=mun[e],!t&&(t=mun[e]=new kG(n)),t):new kG(n)}function dd(){dd=F,Ow=new aC(kh,0),Don=new aC("INSIDE_PORT_SIDE_GROUPS",1),P_=new aC("GROUP_MODEL_ORDER",2),I_=new aC(tin,3)}function q8e(n){var e;return n.b||xhe(n,(e=$ae(n.e,n.a),!e||!An(cK,wf((!e.b&&(e.b=new lo((On(),ar),pc,e)),e.b),"qualified")))),n.c}function U8e(n,e){var t,i;for(t=(zn(e,n.length),n.charCodeAt(e)),i=e+1;i2e3&&(hQn=n,uP=y.setTimeout(_he,10))),cP++==0?(ime((az(),sun)),!0):!1}function r9e(n,e,t){var i;(DQn?(o8e(n),!0):LQn||$Qn?(a4(),!0):NQn&&(a4(),!1))&&(i=new aSn(e),i.b=t,aje(n,i))}function kx(n,e){var t;t=!n.A.Hc((go(),Gd))||n.q==(Oi(),qc),n.u.Hc((zu(),Fl))?t?XDe(n,e):UGn(n,e):n.u.Hc(Pa)&&(t?dDe(n,e):czn(n,e))}function eRn(n){var e;x(z(n,(qe(),B2)))===x((jl(),uO))&&(At(n)?(e=u(z(At(n),B2),346),ht(n,B2,e)):ht(n,B2,M9))}function c9e(n){var e,t;return kt(n.d.i,(cn(),Cv))?(e=u(v(n.c.i,Cv),17),t=u(v(n.d.i,Cv),17),jc(e.a,t.a)>0):!1}function tRn(n,e,t){return new Ho(y.Math.min(n.a,e.a)-t/2,y.Math.min(n.b,e.b)-t/2,y.Math.abs(n.a-e.a)+t,y.Math.abs(n.b-e.b)+t)}function iRn(n){var e;this.d=new Z,this.j=new Li,this.g=new Li,e=n.g.b,this.f=u(v(Hi(e),(cn(),Do)),88),this.e=$(R(nA(e,qw)))}function rRn(n){this.d=new Z,this.e=new Ql,this.c=K(ye,Ke,28,(tn(),S(T(lr,1),Mc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.b=n}function sZ(n,e,t){var i;switch(i=t[n.g][e],n.g){case 1:case 3:return new V(0,i);case 2:case 4:return new V(i,0);default:return null}}function cRn(n,e,t){var i,r;r=u(V7(e.f),205);try{r.rf(n,t),hIn(e.f,r)}catch(c){throw c=It(c),O(c,103)?(i=c,M(i)):M(c)}}function uRn(n,e,t){var i,r,c,s,f,h;return i=null,f=Zen(z4(),e),c=null,f&&(r=null,h=Qen(f,t),s=null,h!=null&&(s=n.qf(f,h)),r=s,c=r),i=c,i}function yx(n,e,t,i){var r;if(r=n.length,e>=r)return r;for(e=e>0?e:0;ei&&$t(e,i,null),e}function oRn(n,e){var t,i;for(i=n.a.length,e.lengthi&&$t(e,i,null),e}function gm(n,e){var t,i;if(++n.j,e!=null&&(t=(i=n.a.Cb,O(i,99)?u(i,99).th():null),hCe(e,t))){Xp(n.a,4,t);return}Xp(n.a,4,u(e,129))}function u9e(n){var e;if(n==null)return null;if(e=lMe(Fc(n,!0)),e==null)throw M(new kD("Invalid hexBinary value: '"+n+"'"));return e}function QT(n,e,t){var i;e.a.length>0&&(nn(n.b,new SSn(e.a,t)),i=e.a.length,0i&&(e.a+=ITn(K(fs,gh,28,-i,15,1))))}function sRn(n,e,t){var i,r,c;if(!t[e.d])for(t[e.d]=!0,r=new C($g(e));r.a=n.b>>1)for(i=n.c,t=n.b;t>e;--t)i=i.b;else for(i=n.a.a,t=0;t=0?n.Wh(r):hF(n,i)):t<0?hF(n,i):u(i,69).wk().Bk(n,n.hi(),t)}function aRn(n){var e,t,i;for(i=(!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),n.o),t=i.c.Kc();t.e!=t.i.gc();)e=u(t.Yj(),44),e.md();return uk(i)}function rn(n){var e;if(O(n.a,4)){if(e=cZ(n.a),e==null)throw M(new Or(NVn+n.b+"'. "+LVn+(ll(lE),lE.k)+bcn));return e}else return n.a}function b9e(n,e){var t,i;if(n.j.length!=e.j.length)return!1;for(t=0,i=n.j.length;t=64&&e<128&&(r=hf(r,Fs(1,e-64)));return r}function nA(n,e){var t,i;return i=null,kt(n,(qe(),$3))&&(t=u(v(n,$3),96),t.pf(e)&&(i=t.of(e))),i==null&&Hi(n)&&(i=v(Hi(n),e)),i}function w9e(n,e){var t;return t=u(v(n,(cn(),Fr)),75),yL(e,LZn)?t?vo(t):(t=new Mu,U(n,Fr,t)):t&&U(n,Fr,null),t}function M5(){M5=F,aon=(qe(),qan),g_=Ean,DYn=$2,lon=C1,xYn=(aA(),Uun),$Yn=Hun,FYn=zun,NYn=_un,LYn=(Q$(),son),w_=PYn,hon=IYn,pP=OYn}function eA(n){switch($z(),this.c=new Z,this.d=n,n.g){case 0:case 2:this.a=qW(Oon),this.b=St;break;case 3:case 1:this.a=Oon,this.b=li}}function g9e(n){var e;Ep(u(v(n,(cn(),Kt)),101))&&(e=n.b,nHn((Ln(0,e.c.length),u(e.c[0],30))),nHn(u(sn(e,e.c.length-1),30)))}function p9e(n,e){e.Ug("Self-Loop post-processing",1),qt(ut(ut(rc(new Tn(null,new In(n.b,16)),new s2n),new f2n),new h2n),new l2n),e.Vg()}function dRn(n,e,t){var i,r;if(n.c)eu(n.c,n.c.i+e),tu(n.c,n.c.j+t);else for(r=new C(n.b);r.a=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}n.C&&(t.b=n.C.b,t.c=n.C.c)}function T5(){T5=F,Nhn=new d7(Crn,0),KH=new d7(sR,1),_H=new d7("LINEAR_SEGMENTS",2),Y8=new d7("BRANDES_KOEPF",3),Z8=new d7(sVn,4)}function A5(){A5=F,fj=new hC(eS,0),wP=new hC(HB,1),gP=new hC(qB,2),hj=new hC(UB,3),fj.a=!1,wP.a=!0,gP.a=!1,hj.a=!0}function Vp(){Vp=F,uj=new fC(eS,0),cj=new fC(HB,1),oj=new fC(qB,2),sj=new fC(UB,3),uj.a=!1,cj.a=!0,oj.a=!1,sj.a=!0}function Wp(n,e,t,i){var r;return t>=0?n.Sh(e,t,i):(n.Ph()&&(i=(r=n.Fh(),r>=0?n.Ah(i):n.Ph().Th(n,-1-r,null,i))),n.Ch(e,t,i))}function fZ(n,e){switch(e){case 7:!n.e&&(n.e=new Nn(Vt,n,7,4)),me(n.e);return;case 8:!n.d&&(n.d=new Nn(Vt,n,8,5)),me(n.d);return}JY(n,e)}function ht(n,e,t){return t==null?(!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),VT(n.o,e)):(!n.o&&(n.o=new Iu((Cc(),il),T1,n,0)),Vk(n.o,e,t)),n}function pRn(n,e){Dn();var t,i,r,c;for(t=n,c=e,O(n,21)&&!O(e,21)&&(t=e,c=n),r=t.Kc();r.Ob();)if(i=r.Pb(),c.Hc(i))return!1;return!0}function j9e(n,e,t,i){if(e.at.b)return!0}return!1}function Tx(n,e){return Ai(n)?!!iQn[e]:n.Sm?!!n.Sm[e]:$b(n)?!!tQn[e]:Nb(n)?!!eQn[e]:!1}function E9e(n){var e;e=n.a;do e=u(fe(new te(re(ji(e).a.Kc(),new En))),18).c.i,e.k==(Vn(),Mi)&&n.b.Fc(e);while(e.k==(Vn(),Mi));n.b=Qo(n.b)}function mRn(n,e){var t,i,r;for(r=n,i=new te(re(ji(e).a.Kc(),new En));pe(i);)t=u(fe(i),18),t.c.i.c&&(r=y.Math.max(r,t.c.i.c.p));return r}function C9e(n,e){var t,i,r;for(r=0,i=u(u(ot(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.d+t.b.Mf().b+t.d.a,i.Ob()&&(r+=n.w);return r}function M9e(n,e){var t,i,r;for(r=0,i=u(u(ot(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.b+t.b.Mf().a+t.d.c,i.Ob()&&(r+=n.w);return r}function vRn(n){var e,t,i,r;if(i=0,r=aw(n),r.c.length==0)return 1;for(t=new C(r);t.a=0?n.Lh(s,t,!0):H0(n,c,t)):u(c,69).wk().yk(n,n.hi(),r,t,i)}function P9e(n,e,t,i){var r,c;c=e.pf((qe(),R2))?u(e.of(R2),21):n.j,r=d5e(c),r!=(VA(),l_)&&(t&&!tZ(r)||bnn(aMe(n,r,i),e))}function I9e(n){switch(n.g){case 1:return N0(),rj;case 3:return N0(),ij;case 2:return N0(),d_;case 4:return N0(),a_;default:return null}}function O9e(n,e,t){if(n.e)switch(n.b){case 1:yge(n.c,e,t);break;case 0:jge(n.c,e,t)}else KDn(n.c,e,t);n.a[e.p][t.p]=n.c.i,n.a[t.p][e.p]=n.c.e}function kRn(n){var e,t;if(n==null)return null;for(t=K(Qh,J,199,n.length,0,2),e=0;e=0)return r;if(n.ol()){for(i=0;i=r)throw M(new Kb(e,r));if(n.Si()&&(i=n.dd(t),i>=0&&i!=e))throw M(new Gn(Vy));return n.Xi(e,t)}function hZ(n,e){if(this.a=u(Se(n),253),this.b=u(Se(e),253),n.Ed(e)>0||n==(dD(),_K)||e==(bD(),HK))throw M(new Gn("Invalid range: "+qDn(n,e)))}function yRn(n){var e,t;for(this.b=new Z,this.c=n,this.a=!1,t=new C(n.a);t.a0),(e&-e)==e)return wi(e*to(n,31)*4656612873077393e-25);do t=to(n,31),i=t%e;while(t-i+(e-1)<0);return wi(i)}function F9e(n,e,t){switch(t.g){case 1:n.a=e.a/2,n.b=0;break;case 2:n.a=e.a,n.b=e.b/2;break;case 3:n.a=e.a/2,n.b=e.b;break;case 4:n.a=0,n.b=e.b/2}}function qk(n,e,t,i){var r,c;for(r=e;r1&&(c=L9e(n,e)),c}function CRn(n){var e;return e=$(R(z(n,(qe(),Qj))))*y.Math.sqrt((!n.a&&(n.a=new q(Qe,n,10,11)),n.a).i),new V(e,e/$(R(z(n,rO))))}function Sx(n){var e;return n.f&&n.f.Vh()&&(e=u(n.f,54),n.f=u(na(n,e),84),n.f!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,9,8,e,n.f))),n.f}function Px(n){var e;return n.i&&n.i.Vh()&&(e=u(n.i,54),n.i=u(na(n,e),84),n.i!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,9,7,e,n.i))),n.i}function br(n){var e;return n.b&&n.b.Db&64&&(e=n.b,n.b=u(na(n,e),19),n.b!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Ci(n,9,21,e,n.b))),n.b}function uA(n,e){var t,i,r;n.d==null?(++n.e,++n.f):(i=e.Bi(),uTe(n,n.f+1),r=(i&et)%n.d.length,t=n.d[r],!t&&(t=n.d[r]=n.dk()),t.Fc(e),++n.f)}function dZ(n,e,t){var i;return e.tk()?!1:e.Ik()!=-2?(i=e.ik(),i==null?t==null:rt(i,t)):e.qk()==n.e.Dh()&&t==null}function oA(){var n;Co(16,$zn),n=sxn(16),this.b=K(UK,Cy,303,n,0,1),this.c=K(UK,Cy,303,n,0,1),this.a=null,this.e=null,this.i=0,this.f=n-1,this.g=0}function Tl(n){vV.call(this),this.k=(Vn(),zt),this.j=(Co(6,mw),new Gc(6)),this.b=(Co(2,mw),new Gc(2)),this.d=new sD,this.f=new nz,this.a=n}function R9e(n){var e,t;n.c.length<=1||(e=Sqn(n,(tn(),ae)),w_n(n,u(e.a,17).a,u(e.b,17).a),t=Sqn(n,Wn),w_n(n,u(t.a,17).a,u(t.b,17).a))}function K9e(n,e,t){var i,r;for(r=n.a.b,i=r.c.length;i102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function Nx(n,e){if(n==null)throw M(new sp("null key in entry: null="+e));if(e==null)throw M(new sp("null value in entry: "+n+"=null"))}function q9e(n,e){for(var t,i;n.Ob();)if(!e.Ob()||(t=n.Pb(),i=e.Pb(),!(x(t)===x(i)||t!=null&&rt(t,i))))return!1;return!e.Ob()}function ARn(n,e){var t;return t=S(T(Pi,1),Tr,28,15,[Z$(n.a[0],e),Z$(n.a[1],e),Z$(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function SRn(n,e){var t;return t=S(T(Pi,1),Tr,28,15,[$T(n.a[0],e),$T(n.a[1],e),$T(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function wZ(n,e,t){Ep(u(v(e,(cn(),Kt)),101))||(PJ(n,e,h1(e,t)),PJ(n,e,h1(e,(tn(),ae))),PJ(n,e,h1(e,Xn)),Dn(),Yt(e.j,new N7n(n)))}function PRn(n){var e,t;for(n.c||sOe(n),t=new Mu,e=new C(n.a),E(e);e.a0&&(zn(0,e.length),e.charCodeAt(0)==43)?(zn(1,e.length+1),e.substr(1)):e))}function i7e(n){var e;return n==null?null:new H1((e=Fc(n,!0),e.length>0&&(zn(0,e.length),e.charCodeAt(0)==43)?(zn(1,e.length+1),e.substr(1)):e))}function pZ(n,e,t,i,r,c,s,f){var h,l;i&&(h=i.a[0],h&&pZ(n,e,t,h,r,c,s,f),qx(n,t,i.d,r,c,s,f)&&e.Fc(i),l=i.a[1],l&&pZ(n,e,t,l,r,c,s,f))}function Rg(n,e,t){try{return o0(C$(n,e,t),1)}catch(i){throw i=It(i),O(i,333)?M(new Ir(GB+n.o+"*"+n.p+zB+e+ur+t+XB)):M(i)}}function NRn(n,e,t){try{return o0(C$(n,e,t),0)}catch(i){throw i=It(i),O(i,333)?M(new Ir(GB+n.o+"*"+n.p+zB+e+ur+t+XB)):M(i)}}function $Rn(n,e,t){try{return o0(C$(n,e,t),2)}catch(i){throw i=It(i),O(i,333)?M(new Ir(GB+n.o+"*"+n.p+zB+e+ur+t+XB)):M(i)}}function xRn(n,e){if(n.g==-1)throw M(new Cu);n.Xj();try{n.d.hd(n.g,e),n.f=n.d.j}catch(t){throw t=It(t),O(t,77)?M(new Bo):M(t)}}function r7e(n){var e,t,i,r,c;for(i=new C(n.b);i.ac&&$t(e,c,null),e}function c7e(n,e){var t,i;if(i=n.gc(),e==null){for(t=0;t0&&(h+=r),l[a]=s,s+=f*(h+i)}function BRn(n){var e,t,i;for(i=n.f,n.n=K(Pi,Tr,28,i,15,1),n.d=K(Pi,Tr,28,i,15,1),e=0;e0?n.c:0),++r;n.b=i,n.d=c}function qRn(n,e){var t;return t=S(T(Pi,1),Tr,28,15,[aZ(n,(bf(),bc),e),aZ(n,Wc,e),aZ(n,wc,e)]),n.f&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function d7e(n,e,t){var i;try{xA(n,e+n.j,t+n.k,!1,!0)}catch(r){throw r=It(r),O(r,77)?(i=r,M(new Ir(i.g+iS+e+ur+t+")."))):M(r)}}function b7e(n,e,t){var i;try{xA(n,e+n.j,t+n.k,!0,!1)}catch(r){throw r=It(r),O(r,77)?(i=r,M(new Ir(i.g+iS+e+ur+t+")."))):M(r)}}function URn(n){var e;kt(n,(cn(),ab))&&(e=u(v(n,ab),21),e.Hc((lw(),Js))?(e.Mc(Js),e.Fc(Qs)):e.Hc(Qs)&&(e.Mc(Qs),e.Fc(Js)))}function GRn(n){var e;kt(n,(cn(),ab))&&(e=u(v(n,ab),21),e.Hc((lw(),Zs))?(e.Mc(Zs),e.Fc(Cs)):e.Hc(Cs)&&(e.Mc(Cs),e.Fc(Zs)))}function Kx(n,e,t,i){var r,c,s,f;return n.a==null&&gje(n,e),s=e.b.j.c.length,c=t.d.p,f=i.d.p,r=f-1,r<0&&(r=s-1),c<=r?n.a[r]-n.a[c]:n.a[s-1]-n.a[c]+n.a[r]}function w7e(n){var e,t;if(!n.b)for(n.b=RM(u(n.f,27).kh().i),t=new ne(u(n.f,27).kh());t.e!=t.i.gc();)e=u(ce(t),135),nn(n.b,new pD(e));return n.b}function g7e(n){var e,t;if(!n.e)for(n.e=RM(mN(u(n.f,27)).i),t=new ne(mN(u(n.f,27)));t.e!=t.i.gc();)e=u(ce(t),123),nn(n.e,new Bkn(e));return n.e}function zRn(n){var e,t;if(!n.a)for(n.a=RM(AM(u(n.f,27)).i),t=new ne(AM(u(n.f,27)));t.e!=t.i.gc();)e=u(ce(t),27),nn(n.a,new ML(n,e));return n.a}function K0(n){var e;if(!n.C&&(n.D!=null||n.B!=null))if(e=iDe(n),e)n.hl(e);else try{n.hl(null)}catch(t){if(t=It(t),!O(t,63))throw M(t)}return n.C}function p7e(n){switch(n.q.g){case 5:gKn(n,(tn(),Xn)),gKn(n,ae);break;case 4:mGn(n,(tn(),Xn)),mGn(n,ae);break;default:y_n(n,(tn(),Xn)),y_n(n,ae)}}function m7e(n){switch(n.q.g){case 5:pKn(n,(tn(),Zn)),pKn(n,Wn);break;case 4:vGn(n,(tn(),Zn)),vGn(n,Wn);break;default:j_n(n,(tn(),Zn)),j_n(n,Wn)}}function Kg(n,e){var t,i,r;for(r=new Li,i=n.Kc();i.Ob();)t=u(i.Pb(),36),Sm(t,r.a,0),r.a+=t.f.a+e,r.b=y.Math.max(r.b,t.f.b);return r.b>0&&(r.b+=e),r}function hA(n,e){var t,i,r;for(r=new Li,i=n.Kc();i.Ob();)t=u(i.Pb(),36),Sm(t,0,r.b),r.b+=t.f.b+e,r.a=y.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=e),r}function XRn(n){var e,t,i;for(i=et,t=new C(n.a);t.a>16==6?n.Cb.Th(n,5,jf,e):(i=br(u($n((t=u(Un(n,16),29),t||n.ii()),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function v7e(n){O4();var e=n.e;if(e&&e.stack){var t=e.stack,i=e+` `;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(` diff --git a/deploy/server/notebase/assets/ganttDiagram-c361ad54-XfGTrVgm.js b/starter/src/main/resources/templates/notebase/assets/ganttDiagram-c361ad54-CWs-elUl.js similarity index 99% rename from deploy/server/notebase/assets/ganttDiagram-c361ad54-XfGTrVgm.js rename to starter/src/main/resources/templates/notebase/assets/ganttDiagram-c361ad54-CWs-elUl.js index 7280b9d322..3cbd2980c3 100644 --- a/deploy/server/notebase/assets/ganttDiagram-c361ad54-XfGTrVgm.js +++ b/starter/src/main/resources/templates/notebase/assets/ganttDiagram-c361ad54-CWs-elUl.js @@ -1,4 +1,4 @@ -import{H as Re,I as ze,R as Be,J as qe,K as bn,L as $t,M as vn,c as wt,s as xn,g as wn,A as Cn,B as Dn,b as Mn,a as _n,C as Sn,m as Un,l as Xt,h as Rt,i as Fn,j as En,y as An}from"./mermaid.core-BajzCmnv.js";import{m as K,y as In,z as Ln,A as Yn}from"./index-CLWgAZNI.js";import{b as Wn,t as _e,c as Nn,a as Hn,l as On}from"./linear-DTRuWJOk.js";import{i as Vn}from"./init-Gi6I4Gst.js";function Pn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function zn(t){return t}var Bt=1,te=2,ue=3,zt=4,Se=1e-6;function Bn(t){return"translate("+t+",0)"}function qn(t){return"translate(0,"+t+")"}function Zn(t){return e=>+t(e)}function Xn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function jn(){return!this.__axis}function Ze(t,e){var n=[],r=null,i=null,s=6,a=6,D=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,x=t===Bt||t===zt?-1:1,T=t===zt||t===te?"x":"y",I=t===Bt||t===ue?Bn:qn;function w(y){var R=r??(e.ticks?e.ticks.apply(e,n):e.domain()),E=i??(e.tickFormat?e.tickFormat.apply(e,n):zn),tt=Math.max(s,0)+D,nt=e.range(),et=+nt[0]+S,q=+nt[nt.length-1]+S,Z=(e.bandwidth?Xn:Zn)(e.copy(),S),$=y.selection?y.selection():y,p=$.selectAll(".domain").data([null]),O=$.selectAll(".tick").data(R,e).order(),k=O.exit(),U=O.enter().append("g").attr("class","tick"),_=O.select("line"),b=O.select("text");p=p.merge(p.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(U),_=_.merge(U.append("line").attr("stroke","currentColor").attr(T+"2",x*s)),b=b.merge(U.append("text").attr("fill","currentColor").attr(T,x*tt).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),y!==$&&(p=p.transition(y),O=O.transition(y),_=_.transition(y),b=b.transition(y),k=k.transition(y).attr("opacity",Se).attr("transform",function(c){return isFinite(c=Z(c))?I(c+S):this.getAttribute("transform")}),U.attr("opacity",Se).attr("transform",function(c){var d=this.parentNode.__axis;return I((d&&isFinite(d=d(c))?d:Z(c))+S)})),k.remove(),p.attr("d",t===zt||t===te?a?"M"+x*a+","+et+"H"+S+"V"+q+"H"+x*a:"M"+S+","+et+"V"+q:a?"M"+et+","+x*a+"V"+S+"H"+q+"V"+x*a:"M"+et+","+S+"H"+q),O.attr("opacity",1).attr("transform",function(c){return I(Z(c)+S)}),_.attr(T+"2",x*s),b.attr(T,x*tt).text(E),$.filter(jn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===zt?"end":"middle"),$.each(function(){this.__axis=Z})}return w.scale=function(y){return arguments.length?(e=y,w):e},w.ticks=function(){return n=Array.from(arguments),w},w.tickArguments=function(y){return arguments.length?(n=y==null?[]:Array.from(y),w):n.slice()},w.tickValues=function(y){return arguments.length?(r=y==null?null:Array.from(y),w):r&&r.slice()},w.tickFormat=function(y){return arguments.length?(i=y,w):i},w.tickSize=function(y){return arguments.length?(s=a=+y,w):s},w.tickSizeInner=function(y){return arguments.length?(s=+y,w):s},w.tickSizeOuter=function(y){return arguments.length?(a=+y,w):a},w.tickPadding=function(y){return arguments.length?(D=+y,w):D},w.offset=function(y){return arguments.length?(S=+y,w):S},w}function Qn(t){return Ze(Bt,t)}function Jn(t){return Ze(ue,t)}const Gn=Math.PI/180,Kn=180/Math.PI,jt=18,Xe=.96422,je=1,Qe=.82521,Je=4/29,Ct=6/29,Ge=3*Ct*Ct,$n=Ct*Ct*Ct;function Ke(t){if(t instanceof st)return new st(t.l,t.a,t.b,t.opacity);if(t instanceof ct)return $e(t);t instanceof Be||(t=bn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/je),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/Xe),a=ee((.0139322*e+.0971045*n+.7141733*r)/Qe)),new st(116*i-16,500*(s-i),200*(i-a),t.opacity)}function tr(t,e,n,r){return arguments.length===1?Ke(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Re(st,tr,ze(qe,{brighter(t){return new st(this.l+jt*(t??1),this.a,this.b,this.opacity)},darker(t){return new st(this.l-jt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Xe*ne(e),t=je*ne(t),n=Qe*ne(n),new Be(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>$n?Math.pow(t,1/3):t/Ge+Je}function ne(t){return t>Ct?t*t*t:Ge*(t-Je)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function er(t){if(t instanceof ct)return new ct(t.h,t.c,t.l,t.opacity);if(t instanceof st||(t=Ke(t)),t.a===0&&t.b===0)return new ct(NaN,0(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),D=i.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,D)=>{const S=[];if(s=i.ceil(s),D=D==null?1:Math.floor(D),!(s0))return S;let x;do S.push(x=new Date(+s)),e(s,D),t(s);while(xj(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,D)=>{if(a>=a)if(D<0)for(;++D<=0;)for(;e(a,-1),!s(a););else for(;--D>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Mt=j(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Mt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?j(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Mt);Mt.range;const lt=1e3,rt=lt*60,ut=rt*60,ft=ut*24,ye=ft*7,Ue=ft*30,oe=ft*365,dt=j(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getUTCSeconds());dt.range;const It=j(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());It.range;const sr=j(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());sr.range;const Lt=j(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getHours());Lt.range;const ar=j(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCHours());ar.range;const yt=j(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/ft,t=>t.getDate()-1);yt.range;const ke=j(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>t.getUTCDate()-1);ke.range;const or=j(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>Math.floor(t/ft));or.range;function Tt(t){return j(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/ye)}const Nt=Tt(0),Yt=Tt(1),tn=Tt(2),en=Tt(3),kt=Tt(4),nn=Tt(5),rn=Tt(6);Nt.range;Yt.range;tn.range;en.range;kt.range;nn.range;rn.range;function bt(t){return j(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ye)}const sn=bt(0),Qt=bt(1),cr=bt(2),lr=bt(3),_t=bt(4),ur=bt(5),fr=bt(6);sn.range;Qt.range;cr.range;lr.range;_t.range;ur.range;fr.range;const Wt=j(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Wt.range;const hr=j(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());hr.range;const ht=j(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ht.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:j(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});ht.range;const pt=j(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:j(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function dr(t,e,n,r,i,s){const a=[[dt,1,lt],[dt,5,5*lt],[dt,15,15*lt],[dt,30,30*lt],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ut],[i,3,3*ut],[i,6,6*ut],[i,12,12*ut],[r,1,ft],[r,2,2*ft],[n,1,ye],[e,1,Ue],[e,3,3*Ue],[t,1,oe]];function D(x,T,I){const w=Ttt).right(a,w);if(y===a.length)return t.every(_e(x/oe,T/oe,I));if(y===0)return Mt.every(Math.max(_e(x,T,I),1));const[R,E]=a[w/a[y-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(H=le(Ft(l.y,0,1)),B=H.getUTCDay(),H=B>4||B===0?Qt.ceil(H):Qt(H),H=ke.offset(H,(l.V-1)*7),l.y=H.getUTCFullYear(),l.m=H.getUTCMonth(),l.d=H.getUTCDate()+(l.w+6)%7):(H=ce(Ft(l.y,0,1)),B=H.getDay(),H=B>4||B===0?Yt.ceil(H):Yt(H),H=yt.offset(H,(l.V-1)*7),l.y=H.getFullYear(),l.m=H.getMonth(),l.d=H.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),B="Z"in l?le(Ft(l.y,0,1)).getUTCDay():ce(Ft(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(B+5)%7:l.w+l.U*7-(B+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function k(g,F,v,l){for(var V=0,H=F.length,B=v.length,Q,G;V=B)return-1;if(Q=F.charCodeAt(V++),Q===37){if(Q=F.charAt(V++),G=$[Q in Fe?F.charAt(V++):Q],!G||(l=G(g,v,l))<0)return-1}else if(Q!=v.charCodeAt(l++))return-1}return l}function U(g,F,v){var l=x.exec(F.slice(v));return l?(g.p=T.get(l[0].toLowerCase()),v+l[0].length):-1}function _(g,F,v){var l=y.exec(F.slice(v));return l?(g.w=R.get(l[0].toLowerCase()),v+l[0].length):-1}function b(g,F,v){var l=I.exec(F.slice(v));return l?(g.w=w.get(l[0].toLowerCase()),v+l[0].length):-1}function c(g,F,v){var l=nt.exec(F.slice(v));return l?(g.m=et.get(l[0].toLowerCase()),v+l[0].length):-1}function d(g,F,v){var l=E.exec(F.slice(v));return l?(g.m=tt.get(l[0].toLowerCase()),v+l[0].length):-1}function m(g,F,v){return k(g,e,F,v)}function u(g,F,v){return k(g,n,F,v)}function C(g,F,v){return k(g,r,F,v)}function o(g){return a[g.getDay()]}function z(g){return s[g.getDay()]}function h(g){return S[g.getMonth()]}function f(g){return D[g.getMonth()]}function M(g){return i[+(g.getHours()>=12)]}function P(g){return 1+~~(g.getMonth()/3)}function L(g){return a[g.getUTCDay()]}function W(g){return s[g.getUTCDay()]}function A(g){return S[g.getUTCMonth()]}function N(g){return D[g.getUTCMonth()]}function mt(g){return i[+(g.getUTCHours()>=12)]}function gt(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var F=p(g+="",q);return F.toString=function(){return g},F},parse:function(g){var F=O(g+="",!1);return F.toString=function(){return g},F},utcFormat:function(g){var F=p(g+="",Z);return F.toString=function(){return g},F},utcParse:function(g){var F=O(g+="",!0);return F.toString=function(){return g},F}}}var Fe={"-":"",_:" ",0:"0"},J=/^\s*\d+/,kr=/^%/,pr=/[\\^$*+?|[\]().{}]/g;function Y(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function br(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function vr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function xr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=J.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Dr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Mr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function _r(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ie(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Sr(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Le(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=J.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ir(t,e,n){var r=kr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lr(t,e,n){var r=J.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=J.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ye(t,e){return Y(t.getDate(),e,2)}function Wr(t,e){return Y(t.getHours(),e,2)}function Nr(t,e){return Y(t.getHours()%12||12,e,2)}function Hr(t,e){return Y(1+yt.count(ht(t),t),e,3)}function an(t,e){return Y(t.getMilliseconds(),e,3)}function Or(t,e){return an(t,e)+"000"}function Vr(t,e){return Y(t.getMonth()+1,e,2)}function Pr(t,e){return Y(t.getMinutes(),e,2)}function Rr(t,e){return Y(t.getSeconds(),e,2)}function zr(t){var e=t.getDay();return e===0?7:e}function Br(t,e){return Y(Nt.count(ht(t)-1,t),e,2)}function on(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function qr(t,e){return t=on(t),Y(kt.count(ht(t),t)+(ht(t).getDay()===4),e,2)}function Zr(t){return t.getDay()}function Xr(t,e){return Y(Yt.count(ht(t)-1,t),e,2)}function jr(t,e){return Y(t.getFullYear()%100,e,2)}function Qr(t,e){return t=on(t),Y(t.getFullYear()%100,e,2)}function Jr(t,e){return Y(t.getFullYear()%1e4,e,4)}function Gr(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),Y(t.getFullYear()%1e4,e,4)}function Kr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Y(e/60|0,"0",2)+Y(e%60,"0",2)}function We(t,e){return Y(t.getUTCDate(),e,2)}function $r(t,e){return Y(t.getUTCHours(),e,2)}function ti(t,e){return Y(t.getUTCHours()%12||12,e,2)}function ei(t,e){return Y(1+ke.count(pt(t),t),e,3)}function cn(t,e){return Y(t.getUTCMilliseconds(),e,3)}function ni(t,e){return cn(t,e)+"000"}function ri(t,e){return Y(t.getUTCMonth()+1,e,2)}function ii(t,e){return Y(t.getUTCMinutes(),e,2)}function si(t,e){return Y(t.getUTCSeconds(),e,2)}function ai(t){var e=t.getUTCDay();return e===0?7:e}function oi(t,e){return Y(sn.count(pt(t)-1,t),e,2)}function ln(t){var e=t.getUTCDay();return e>=4||e===0?_t(t):_t.ceil(t)}function ci(t,e){return t=ln(t),Y(_t.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function li(t){return t.getUTCDay()}function ui(t,e){return Y(Qt.count(pt(t)-1,t),e,2)}function fi(t,e){return Y(t.getUTCFullYear()%100,e,2)}function hi(t,e){return t=ln(t),Y(t.getUTCFullYear()%100,e,2)}function di(t,e){return Y(t.getUTCFullYear()%1e4,e,4)}function mi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?_t(t):_t.ceil(t),Y(t.getUTCFullYear()%1e4,e,4)}function gi(){return"+0000"}function Ne(){return"%"}function He(t){return+t}function Oe(t){return Math.floor(+t/1e3)}var xt,Jt;yi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function yi(t){return xt=yr(t),Jt=xt.format,xt.parse,xt.utcFormat,xt.utcParse,xt}function ki(t){return new Date(t)}function pi(t){return t instanceof Date?+t:+new Date(+t)}function un(t,e,n,r,i,s,a,D,S,x){var T=Nn(),I=T.invert,w=T.domain,y=x(".%L"),R=x(":%S"),E=x("%I:%M"),tt=x("%I %p"),nt=x("%a %d"),et=x("%b %d"),q=x("%B"),Z=x("%Y");function $(p){return(S(p)"u"&&(A.yylloc={});var gt=A.yylloc;o.push(gt);var g=A.options&&A.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function F(){var at;return at=u.pop()||A.lex()||L,typeof at!="number"&&(at instanceof Array&&(u=at,at=u.pop()),at=d.symbols_[at]||at),at}for(var v,l,V,H,B={},Q,G,Ut,Pt;;){if(l=m[m.length-1],this.defaultActions[l]?V=this.defaultActions[l]:((v===null||typeof v>"u")&&(v=F()),V=z[l]&&z[l][v]),typeof V>"u"||!V.length||!V[0]){var Kt="";Pt=[];for(Q in z[l])this.terminals_[Q]&&Q>P&&Pt.push("'"+this.terminals_[Q]+"'");A.showPosition?Kt="Parse error on line "+(f+1)+`: +import{H as Re,I as ze,R as Be,J as qe,K as bn,L as $t,M as vn,c as wt,s as xn,g as wn,A as Cn,B as Dn,b as Mn,a as _n,C as Sn,m as Un,l as Xt,h as Rt,i as Fn,j as En,y as An}from"./mermaid.core-DacimPk4.js";import{m as K,y as In,z as Ln,A as Yn}from"./index-bOgutTC1.js";import{b as Wn,t as _e,c as Nn,a as Hn,l as On}from"./linear-3xwamwH4.js";import{i as Vn}from"./init-Gi6I4Gst.js";function Pn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function zn(t){return t}var Bt=1,te=2,ue=3,zt=4,Se=1e-6;function Bn(t){return"translate("+t+",0)"}function qn(t){return"translate(0,"+t+")"}function Zn(t){return e=>+t(e)}function Xn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function jn(){return!this.__axis}function Ze(t,e){var n=[],r=null,i=null,s=6,a=6,D=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,x=t===Bt||t===zt?-1:1,T=t===zt||t===te?"x":"y",I=t===Bt||t===ue?Bn:qn;function w(y){var R=r??(e.ticks?e.ticks.apply(e,n):e.domain()),E=i??(e.tickFormat?e.tickFormat.apply(e,n):zn),tt=Math.max(s,0)+D,nt=e.range(),et=+nt[0]+S,q=+nt[nt.length-1]+S,Z=(e.bandwidth?Xn:Zn)(e.copy(),S),$=y.selection?y.selection():y,p=$.selectAll(".domain").data([null]),O=$.selectAll(".tick").data(R,e).order(),k=O.exit(),U=O.enter().append("g").attr("class","tick"),_=O.select("line"),b=O.select("text");p=p.merge(p.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(U),_=_.merge(U.append("line").attr("stroke","currentColor").attr(T+"2",x*s)),b=b.merge(U.append("text").attr("fill","currentColor").attr(T,x*tt).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),y!==$&&(p=p.transition(y),O=O.transition(y),_=_.transition(y),b=b.transition(y),k=k.transition(y).attr("opacity",Se).attr("transform",function(c){return isFinite(c=Z(c))?I(c+S):this.getAttribute("transform")}),U.attr("opacity",Se).attr("transform",function(c){var d=this.parentNode.__axis;return I((d&&isFinite(d=d(c))?d:Z(c))+S)})),k.remove(),p.attr("d",t===zt||t===te?a?"M"+x*a+","+et+"H"+S+"V"+q+"H"+x*a:"M"+S+","+et+"V"+q:a?"M"+et+","+x*a+"V"+S+"H"+q+"V"+x*a:"M"+et+","+S+"H"+q),O.attr("opacity",1).attr("transform",function(c){return I(Z(c)+S)}),_.attr(T+"2",x*s),b.attr(T,x*tt).text(E),$.filter(jn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===zt?"end":"middle"),$.each(function(){this.__axis=Z})}return w.scale=function(y){return arguments.length?(e=y,w):e},w.ticks=function(){return n=Array.from(arguments),w},w.tickArguments=function(y){return arguments.length?(n=y==null?[]:Array.from(y),w):n.slice()},w.tickValues=function(y){return arguments.length?(r=y==null?null:Array.from(y),w):r&&r.slice()},w.tickFormat=function(y){return arguments.length?(i=y,w):i},w.tickSize=function(y){return arguments.length?(s=a=+y,w):s},w.tickSizeInner=function(y){return arguments.length?(s=+y,w):s},w.tickSizeOuter=function(y){return arguments.length?(a=+y,w):a},w.tickPadding=function(y){return arguments.length?(D=+y,w):D},w.offset=function(y){return arguments.length?(S=+y,w):S},w}function Qn(t){return Ze(Bt,t)}function Jn(t){return Ze(ue,t)}const Gn=Math.PI/180,Kn=180/Math.PI,jt=18,Xe=.96422,je=1,Qe=.82521,Je=4/29,Ct=6/29,Ge=3*Ct*Ct,$n=Ct*Ct*Ct;function Ke(t){if(t instanceof st)return new st(t.l,t.a,t.b,t.opacity);if(t instanceof ct)return $e(t);t instanceof Be||(t=bn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/je),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/Xe),a=ee((.0139322*e+.0971045*n+.7141733*r)/Qe)),new st(116*i-16,500*(s-i),200*(i-a),t.opacity)}function tr(t,e,n,r){return arguments.length===1?Ke(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Re(st,tr,ze(qe,{brighter(t){return new st(this.l+jt*(t??1),this.a,this.b,this.opacity)},darker(t){return new st(this.l-jt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Xe*ne(e),t=je*ne(t),n=Qe*ne(n),new Be(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>$n?Math.pow(t,1/3):t/Ge+Je}function ne(t){return t>Ct?t*t*t:Ge*(t-Je)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function er(t){if(t instanceof ct)return new ct(t.h,t.c,t.l,t.opacity);if(t instanceof st||(t=Ke(t)),t.a===0&&t.b===0)return new ct(NaN,0(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),D=i.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,D)=>{const S=[];if(s=i.ceil(s),D=D==null?1:Math.floor(D),!(s0))return S;let x;do S.push(x=new Date(+s)),e(s,D),t(s);while(xj(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,D)=>{if(a>=a)if(D<0)for(;++D<=0;)for(;e(a,-1),!s(a););else for(;--D>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Mt=j(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Mt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?j(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Mt);Mt.range;const lt=1e3,rt=lt*60,ut=rt*60,ft=ut*24,ye=ft*7,Ue=ft*30,oe=ft*365,dt=j(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getUTCSeconds());dt.range;const It=j(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());It.range;const sr=j(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());sr.range;const Lt=j(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getHours());Lt.range;const ar=j(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCHours());ar.range;const yt=j(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/ft,t=>t.getDate()-1);yt.range;const ke=j(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>t.getUTCDate()-1);ke.range;const or=j(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ft,t=>Math.floor(t/ft));or.range;function Tt(t){return j(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/ye)}const Nt=Tt(0),Yt=Tt(1),tn=Tt(2),en=Tt(3),kt=Tt(4),nn=Tt(5),rn=Tt(6);Nt.range;Yt.range;tn.range;en.range;kt.range;nn.range;rn.range;function bt(t){return j(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ye)}const sn=bt(0),Qt=bt(1),cr=bt(2),lr=bt(3),_t=bt(4),ur=bt(5),fr=bt(6);sn.range;Qt.range;cr.range;lr.range;_t.range;ur.range;fr.range;const Wt=j(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Wt.range;const hr=j(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());hr.range;const ht=j(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ht.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:j(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});ht.range;const pt=j(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:j(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function dr(t,e,n,r,i,s){const a=[[dt,1,lt],[dt,5,5*lt],[dt,15,15*lt],[dt,30,30*lt],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ut],[i,3,3*ut],[i,6,6*ut],[i,12,12*ut],[r,1,ft],[r,2,2*ft],[n,1,ye],[e,1,Ue],[e,3,3*Ue],[t,1,oe]];function D(x,T,I){const w=Ttt).right(a,w);if(y===a.length)return t.every(_e(x/oe,T/oe,I));if(y===0)return Mt.every(Math.max(_e(x,T,I),1));const[R,E]=a[w/a[y-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(H=le(Ft(l.y,0,1)),B=H.getUTCDay(),H=B>4||B===0?Qt.ceil(H):Qt(H),H=ke.offset(H,(l.V-1)*7),l.y=H.getUTCFullYear(),l.m=H.getUTCMonth(),l.d=H.getUTCDate()+(l.w+6)%7):(H=ce(Ft(l.y,0,1)),B=H.getDay(),H=B>4||B===0?Yt.ceil(H):Yt(H),H=yt.offset(H,(l.V-1)*7),l.y=H.getFullYear(),l.m=H.getMonth(),l.d=H.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),B="Z"in l?le(Ft(l.y,0,1)).getUTCDay():ce(Ft(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(B+5)%7:l.w+l.U*7-(B+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function k(g,F,v,l){for(var V=0,H=F.length,B=v.length,Q,G;V=B)return-1;if(Q=F.charCodeAt(V++),Q===37){if(Q=F.charAt(V++),G=$[Q in Fe?F.charAt(V++):Q],!G||(l=G(g,v,l))<0)return-1}else if(Q!=v.charCodeAt(l++))return-1}return l}function U(g,F,v){var l=x.exec(F.slice(v));return l?(g.p=T.get(l[0].toLowerCase()),v+l[0].length):-1}function _(g,F,v){var l=y.exec(F.slice(v));return l?(g.w=R.get(l[0].toLowerCase()),v+l[0].length):-1}function b(g,F,v){var l=I.exec(F.slice(v));return l?(g.w=w.get(l[0].toLowerCase()),v+l[0].length):-1}function c(g,F,v){var l=nt.exec(F.slice(v));return l?(g.m=et.get(l[0].toLowerCase()),v+l[0].length):-1}function d(g,F,v){var l=E.exec(F.slice(v));return l?(g.m=tt.get(l[0].toLowerCase()),v+l[0].length):-1}function m(g,F,v){return k(g,e,F,v)}function u(g,F,v){return k(g,n,F,v)}function C(g,F,v){return k(g,r,F,v)}function o(g){return a[g.getDay()]}function z(g){return s[g.getDay()]}function h(g){return S[g.getMonth()]}function f(g){return D[g.getMonth()]}function M(g){return i[+(g.getHours()>=12)]}function P(g){return 1+~~(g.getMonth()/3)}function L(g){return a[g.getUTCDay()]}function W(g){return s[g.getUTCDay()]}function A(g){return S[g.getUTCMonth()]}function N(g){return D[g.getUTCMonth()]}function mt(g){return i[+(g.getUTCHours()>=12)]}function gt(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var F=p(g+="",q);return F.toString=function(){return g},F},parse:function(g){var F=O(g+="",!1);return F.toString=function(){return g},F},utcFormat:function(g){var F=p(g+="",Z);return F.toString=function(){return g},F},utcParse:function(g){var F=O(g+="",!0);return F.toString=function(){return g},F}}}var Fe={"-":"",_:" ",0:"0"},J=/^\s*\d+/,kr=/^%/,pr=/[\\^$*+?|[\]().{}]/g;function Y(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function br(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function vr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function xr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=J.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Dr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Mr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function _r(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ie(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Sr(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Le(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=J.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ir(t,e,n){var r=kr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lr(t,e,n){var r=J.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=J.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ye(t,e){return Y(t.getDate(),e,2)}function Wr(t,e){return Y(t.getHours(),e,2)}function Nr(t,e){return Y(t.getHours()%12||12,e,2)}function Hr(t,e){return Y(1+yt.count(ht(t),t),e,3)}function an(t,e){return Y(t.getMilliseconds(),e,3)}function Or(t,e){return an(t,e)+"000"}function Vr(t,e){return Y(t.getMonth()+1,e,2)}function Pr(t,e){return Y(t.getMinutes(),e,2)}function Rr(t,e){return Y(t.getSeconds(),e,2)}function zr(t){var e=t.getDay();return e===0?7:e}function Br(t,e){return Y(Nt.count(ht(t)-1,t),e,2)}function on(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function qr(t,e){return t=on(t),Y(kt.count(ht(t),t)+(ht(t).getDay()===4),e,2)}function Zr(t){return t.getDay()}function Xr(t,e){return Y(Yt.count(ht(t)-1,t),e,2)}function jr(t,e){return Y(t.getFullYear()%100,e,2)}function Qr(t,e){return t=on(t),Y(t.getFullYear()%100,e,2)}function Jr(t,e){return Y(t.getFullYear()%1e4,e,4)}function Gr(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),Y(t.getFullYear()%1e4,e,4)}function Kr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Y(e/60|0,"0",2)+Y(e%60,"0",2)}function We(t,e){return Y(t.getUTCDate(),e,2)}function $r(t,e){return Y(t.getUTCHours(),e,2)}function ti(t,e){return Y(t.getUTCHours()%12||12,e,2)}function ei(t,e){return Y(1+ke.count(pt(t),t),e,3)}function cn(t,e){return Y(t.getUTCMilliseconds(),e,3)}function ni(t,e){return cn(t,e)+"000"}function ri(t,e){return Y(t.getUTCMonth()+1,e,2)}function ii(t,e){return Y(t.getUTCMinutes(),e,2)}function si(t,e){return Y(t.getUTCSeconds(),e,2)}function ai(t){var e=t.getUTCDay();return e===0?7:e}function oi(t,e){return Y(sn.count(pt(t)-1,t),e,2)}function ln(t){var e=t.getUTCDay();return e>=4||e===0?_t(t):_t.ceil(t)}function ci(t,e){return t=ln(t),Y(_t.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function li(t){return t.getUTCDay()}function ui(t,e){return Y(Qt.count(pt(t)-1,t),e,2)}function fi(t,e){return Y(t.getUTCFullYear()%100,e,2)}function hi(t,e){return t=ln(t),Y(t.getUTCFullYear()%100,e,2)}function di(t,e){return Y(t.getUTCFullYear()%1e4,e,4)}function mi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?_t(t):_t.ceil(t),Y(t.getUTCFullYear()%1e4,e,4)}function gi(){return"+0000"}function Ne(){return"%"}function He(t){return+t}function Oe(t){return Math.floor(+t/1e3)}var xt,Jt;yi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function yi(t){return xt=yr(t),Jt=xt.format,xt.parse,xt.utcFormat,xt.utcParse,xt}function ki(t){return new Date(t)}function pi(t){return t instanceof Date?+t:+new Date(+t)}function un(t,e,n,r,i,s,a,D,S,x){var T=Nn(),I=T.invert,w=T.domain,y=x(".%L"),R=x(":%S"),E=x("%I:%M"),tt=x("%I %p"),nt=x("%a %d"),et=x("%b %d"),q=x("%B"),Z=x("%Y");function $(p){return(S(p)"u"&&(A.yylloc={});var gt=A.yylloc;o.push(gt);var g=A.options&&A.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function F(){var at;return at=u.pop()||A.lex()||L,typeof at!="number"&&(at instanceof Array&&(u=at,at=u.pop()),at=d.symbols_[at]||at),at}for(var v,l,V,H,B={},Q,G,Ut,Pt;;){if(l=m[m.length-1],this.defaultActions[l]?V=this.defaultActions[l]:((v===null||typeof v>"u")&&(v=F()),V=z[l]&&z[l][v]),typeof V>"u"||!V.length||!V[0]){var Kt="";Pt=[];for(Q in z[l])this.terminals_[Q]&&Q>P&&Pt.push("'"+this.terminals_[Q]+"'");A.showPosition?Kt="Parse error on line "+(f+1)+`: `+A.showPosition()+` Expecting `+Pt.join(", ")+", got '"+(this.terminals_[v]||v)+"'":Kt="Parse error on line "+(f+1)+": Unexpected "+(v==L?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(Kt,{text:A.match,token:this.terminals_[v]||v,line:A.yylineno,loc:gt,expected:Pt})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+l+", token: "+v);switch(V[0]){case 1:m.push(v),C.push(A.yytext),o.push(A.yylloc),m.push(V[1]),v=null,M=A.yyleng,h=A.yytext,f=A.yylineno,gt=A.yylloc;break;case 2:if(G=this.productions_[V[1]][1],B.$=C[C.length-G],B._$={first_line:o[o.length-(G||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(G||1)].first_column,last_column:o[o.length-1].last_column},g&&(B._$.range=[o[o.length-(G||1)].range[0],o[o.length-1].range[1]]),H=this.performAction.apply(B,[h,M,f,N.yy,V[1],C,o].concat(W)),typeof H<"u")return H;G&&(m=m.slice(0,-1*G*2),C=C.slice(0,-1*G),o=o.slice(0,-1*G)),m.push(this.productions_[V[1]][0]),C.push(B.$),o.push(B._$),Ut=z[m[m.length-2]][m[m.length-1]],m.push(Ut);break;case 3:return!0}}return!0}},U=function(){var b={EOF:1,parseError:function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},setInput:function(c,d){return this.yy=d||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},unput:function(c){var d=c.length,m=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(c){this.unput(this.match.slice(c))},pastInput:function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/gitGraphDiagram-72cf32ee-KzmtmPZb.js b/starter/src/main/resources/templates/notebase/assets/gitGraphDiagram-72cf32ee-CkF7aqy_.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/gitGraphDiagram-72cf32ee-KzmtmPZb.js rename to starter/src/main/resources/templates/notebase/assets/gitGraphDiagram-72cf32ee-CkF7aqy_.js index 6748821016..ed059ee556 100644 --- a/starter/src/main/resources/templates/notebase/assets/gitGraphDiagram-72cf32ee-KzmtmPZb.js +++ b/starter/src/main/resources/templates/notebase/assets/gitGraphDiagram-72cf32ee-CkF7aqy_.js @@ -1,4 +1,4 @@ -import{c as C,s as vt,g as Ct,a as Ot,b as Pt,A as Gt,B as At,l as B,j as D,C as St,h as It,y as Nt,F as Ht,G as Bt}from"./mermaid.core-BajzCmnv.js";import"./index-CLWgAZNI.js";var mt=function(){var r=function(A,o,u,d){for(u=u||{},d=A.length;d--;u[A[d]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],p=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],x=[7,13,19,21,23,24,26,28,31,37,40],y=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],R=[1,42],_=[1,41],b=[7,13,29,32,35,38,47],f=[1,55],k=[1,56],g=[1,57],E=[7,13,32,35,42,47],z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,d,s,T,t,X){var e=t.length-1;switch(T){case 2:return t[e];case 3:return t[e-1];case 4:return s.setDirection(t[e-3]),t[e-1];case 6:s.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:s.checkout(t[e]);break;case 22:s.branch(t[e]);break;case 23:s.branch(t[e-2],t[e]);break;case 24:s.cherryPick(t[e],"",void 0);break;case 25:s.cherryPick(t[e-2],"",void 0,t[e]);break;case 26:s.cherryPick(t[e-2],"",t[e]);break;case 27:s.cherryPick(t[e-4],"",t[e],t[e-2]);break;case 28:s.cherryPick(t[e-4],"",t[e-2],t[e]);break;case 29:s.cherryPick(t[e],"",t[e-2]);break;case 30:s.cherryPick(t[e],"","");break;case 31:s.cherryPick(t[e-2],"","");break;case 32:s.cherryPick(t[e-4],"","",t[e-2]);break;case 33:s.cherryPick(t[e-4],"","",t[e]);break;case 34:s.cherryPick(t[e-2],"",t[e-4],t[e]);break;case 35:s.cherryPick(t[e-2],"","",t[e]);break;case 36:s.merge(t[e],"","","");break;case 37:s.merge(t[e-2],t[e],"","");break;case 38:s.merge(t[e-2],"",t[e],"");break;case 39:s.merge(t[e-2],"","",t[e]);break;case 40:s.merge(t[e-4],t[e],"",t[e-2]);break;case 41:s.merge(t[e-4],"",t[e],t[e-2]);break;case 42:s.merge(t[e-4],"",t[e-2],t[e]);break;case 43:s.merge(t[e-4],t[e-2],t[e],"");break;case 44:s.merge(t[e-4],t[e-2],"",t[e]);break;case 45:s.merge(t[e-4],t[e],t[e-2],"");break;case 46:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 47:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 48:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 49:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 50:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 51:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 52:s.commit(t[e]);break;case 53:s.commit("","",s.commitType.NORMAL,t[e]);break;case 54:s.commit("","",t[e],"");break;case 55:s.commit("","",t[e],t[e-2]);break;case 56:s.commit("","",t[e-2],t[e]);break;case 57:s.commit("",t[e],s.commitType.NORMAL,"");break;case 58:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 59:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 60:s.commit("",t[e-2],t[e],"");break;case 61:s.commit("",t[e],t[e-2],"");break;case 62:s.commit("",t[e-4],t[e-2],t[e]);break;case 63:s.commit("",t[e-4],t[e],t[e-2]);break;case 64:s.commit("",t[e-2],t[e-4],t[e]);break;case 65:s.commit("",t[e],t[e-4],t[e-2]);break;case 66:s.commit("",t[e],t[e-2],t[e-4]);break;case 67:s.commit("",t[e-2],t[e],t[e-4]);break;case 68:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 69:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 70:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 71:s.commit(t[e-2],"",t[e],"");break;case 72:s.commit(t[e],"",t[e-2],"");break;case 73:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 74:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 75:s.commit(t[e-4],"",t[e-2],t[e]);break;case 76:s.commit(t[e-4],"",t[e],t[e-2]);break;case 77:s.commit(t[e-2],"",t[e-4],t[e]);break;case 78:s.commit(t[e],"",t[e-4],t[e-2]);break;case 79:s.commit(t[e],"",t[e-2],t[e-4]);break;case 80:s.commit(t[e-2],"",t[e],t[e-4]);break;case 81:s.commit(t[e-4],t[e],t[e-2],"");break;case 82:s.commit(t[e-4],t[e-2],t[e],"");break;case 83:s.commit(t[e-2],t[e],t[e-4],"");break;case 84:s.commit(t[e],t[e-2],t[e-4],"");break;case 85:s.commit(t[e],t[e-4],t[e-2],"");break;case 86:s.commit(t[e-2],t[e-4],t[e],"");break;case 87:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 88:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 89:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 90:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 91:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 92:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 93:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 94:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 95:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 96:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 97:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 98:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 99:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 100:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 101:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 102:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 103:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 104:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 105:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 106:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 107:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 108:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 109:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 110:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 111:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 112:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 113:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 114:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 115:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 116:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 117:this.$="";break;case 118:this.$=t[e];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:p},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:p},{8:[1,15]},r(x,[2,9],{11:16,12:[1,17]}),r(y,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:p},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(y,[2,7]),{1:[2,3]},{7:[1,36]},r(x,[2,10]),{4:37,7:l,13:h,47:i},r(x,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:R,46:_},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:R,46:_},{32:[1,50],35:[1,51]},{27:52,33:R,46:_},{1:[2,4]},r(x,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(b,[2,122]),r(b,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:k,45:g},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(E,[2,119]),r(E,[2,120]),r(E,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:k,45:g},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:k,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:k,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:k,45:g},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:k,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:k,45:g},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:k,45:g},{33:[1,148]},{39:149,43:f,44:k,45:g},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:k,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:k,45:g},{33:[1,162]},{39:163,43:f,44:k,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:k,45:g},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:k,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:k,45:g},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:k,45:g},{33:[1,215]},{39:216,43:f,44:k,45:g},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:k,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:k,45:g},{33:[1,229]},{39:230,43:f,44:k,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:k,45:g},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(u.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=u,d}},parse:function(o){var u=this,d=[0],s=[],T=[null],t=[],X=this.table,e="",rt=0,ft=0,wt=2,pt=1,Lt=t.slice.call(arguments,1),O=Object.create(this.lexer),F={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(F.yy[ct]=this.yy[ct]);O.setInput(o,F.yy),F.yy.lexer=O,F.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var ot=O.yylloc;t.push(ot);var Rt=O.options&&O.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var q;return q=s.pop()||O.lex()||pt,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=u.symbols_[q]||q),q}for(var N,K,V,lt,J={},it,j,bt,st;;){if(K=d[d.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((N===null||typeof N>"u")&&(N=Mt()),V=X[K]&&X[K][N]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>wt&&st.push("'"+this.terminals_[it]+"'");O.showPosition?ht="Parse error on line "+(rt+1)+`: +import{c as C,s as vt,g as Ct,a as Ot,b as Pt,A as Gt,B as At,l as B,j as D,C as St,h as It,y as Nt,F as Ht,G as Bt}from"./mermaid.core-DacimPk4.js";import"./index-bOgutTC1.js";var mt=function(){var r=function(A,o,u,d){for(u=u||{},d=A.length;d--;u[A[d]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],p=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],x=[7,13,19,21,23,24,26,28,31,37,40],y=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],R=[1,42],_=[1,41],b=[7,13,29,32,35,38,47],f=[1,55],k=[1,56],g=[1,57],E=[7,13,32,35,42,47],z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,d,s,T,t,X){var e=t.length-1;switch(T){case 2:return t[e];case 3:return t[e-1];case 4:return s.setDirection(t[e-3]),t[e-1];case 6:s.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:s.checkout(t[e]);break;case 22:s.branch(t[e]);break;case 23:s.branch(t[e-2],t[e]);break;case 24:s.cherryPick(t[e],"",void 0);break;case 25:s.cherryPick(t[e-2],"",void 0,t[e]);break;case 26:s.cherryPick(t[e-2],"",t[e]);break;case 27:s.cherryPick(t[e-4],"",t[e],t[e-2]);break;case 28:s.cherryPick(t[e-4],"",t[e-2],t[e]);break;case 29:s.cherryPick(t[e],"",t[e-2]);break;case 30:s.cherryPick(t[e],"","");break;case 31:s.cherryPick(t[e-2],"","");break;case 32:s.cherryPick(t[e-4],"","",t[e-2]);break;case 33:s.cherryPick(t[e-4],"","",t[e]);break;case 34:s.cherryPick(t[e-2],"",t[e-4],t[e]);break;case 35:s.cherryPick(t[e-2],"","",t[e]);break;case 36:s.merge(t[e],"","","");break;case 37:s.merge(t[e-2],t[e],"","");break;case 38:s.merge(t[e-2],"",t[e],"");break;case 39:s.merge(t[e-2],"","",t[e]);break;case 40:s.merge(t[e-4],t[e],"",t[e-2]);break;case 41:s.merge(t[e-4],"",t[e],t[e-2]);break;case 42:s.merge(t[e-4],"",t[e-2],t[e]);break;case 43:s.merge(t[e-4],t[e-2],t[e],"");break;case 44:s.merge(t[e-4],t[e-2],"",t[e]);break;case 45:s.merge(t[e-4],t[e],t[e-2],"");break;case 46:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 47:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 48:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 49:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 50:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 51:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 52:s.commit(t[e]);break;case 53:s.commit("","",s.commitType.NORMAL,t[e]);break;case 54:s.commit("","",t[e],"");break;case 55:s.commit("","",t[e],t[e-2]);break;case 56:s.commit("","",t[e-2],t[e]);break;case 57:s.commit("",t[e],s.commitType.NORMAL,"");break;case 58:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 59:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 60:s.commit("",t[e-2],t[e],"");break;case 61:s.commit("",t[e],t[e-2],"");break;case 62:s.commit("",t[e-4],t[e-2],t[e]);break;case 63:s.commit("",t[e-4],t[e],t[e-2]);break;case 64:s.commit("",t[e-2],t[e-4],t[e]);break;case 65:s.commit("",t[e],t[e-4],t[e-2]);break;case 66:s.commit("",t[e],t[e-2],t[e-4]);break;case 67:s.commit("",t[e-2],t[e],t[e-4]);break;case 68:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 69:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 70:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 71:s.commit(t[e-2],"",t[e],"");break;case 72:s.commit(t[e],"",t[e-2],"");break;case 73:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 74:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 75:s.commit(t[e-4],"",t[e-2],t[e]);break;case 76:s.commit(t[e-4],"",t[e],t[e-2]);break;case 77:s.commit(t[e-2],"",t[e-4],t[e]);break;case 78:s.commit(t[e],"",t[e-4],t[e-2]);break;case 79:s.commit(t[e],"",t[e-2],t[e-4]);break;case 80:s.commit(t[e-2],"",t[e],t[e-4]);break;case 81:s.commit(t[e-4],t[e],t[e-2],"");break;case 82:s.commit(t[e-4],t[e-2],t[e],"");break;case 83:s.commit(t[e-2],t[e],t[e-4],"");break;case 84:s.commit(t[e],t[e-2],t[e-4],"");break;case 85:s.commit(t[e],t[e-4],t[e-2],"");break;case 86:s.commit(t[e-2],t[e-4],t[e],"");break;case 87:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 88:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 89:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 90:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 91:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 92:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 93:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 94:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 95:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 96:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 97:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 98:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 99:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 100:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 101:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 102:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 103:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 104:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 105:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 106:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 107:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 108:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 109:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 110:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 111:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 112:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 113:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 114:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 115:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 116:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 117:this.$="";break;case 118:this.$=t[e];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:p},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:p},{8:[1,15]},r(x,[2,9],{11:16,12:[1,17]}),r(y,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:p},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(y,[2,7]),{1:[2,3]},{7:[1,36]},r(x,[2,10]),{4:37,7:l,13:h,47:i},r(x,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:R,46:_},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:R,46:_},{32:[1,50],35:[1,51]},{27:52,33:R,46:_},{1:[2,4]},r(x,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(b,[2,122]),r(b,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:k,45:g},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(E,[2,119]),r(E,[2,120]),r(E,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:k,45:g},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:k,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:k,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:k,45:g},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:k,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:k,45:g},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:k,45:g},{33:[1,148]},{39:149,43:f,44:k,45:g},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:k,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:k,45:g},{33:[1,162]},{39:163,43:f,44:k,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:k,45:g},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:k,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:k,45:g},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:k,45:g},{33:[1,215]},{39:216,43:f,44:k,45:g},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:k,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:k,45:g},{33:[1,229]},{39:230,43:f,44:k,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:k,45:g},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(u.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=u,d}},parse:function(o){var u=this,d=[0],s=[],T=[null],t=[],X=this.table,e="",rt=0,ft=0,wt=2,pt=1,Lt=t.slice.call(arguments,1),O=Object.create(this.lexer),F={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(F.yy[ct]=this.yy[ct]);O.setInput(o,F.yy),F.yy.lexer=O,F.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var ot=O.yylloc;t.push(ot);var Rt=O.options&&O.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var q;return q=s.pop()||O.lex()||pt,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=u.symbols_[q]||q),q}for(var N,K,V,lt,J={},it,j,bt,st;;){if(K=d[d.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((N===null||typeof N>"u")&&(N=Mt()),V=X[K]&&X[K][N]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>wt&&st.push("'"+this.terminals_[it]+"'");O.showPosition?ht="Parse error on line "+(rt+1)+`: `+O.showPosition()+` Expecting `+st.join(", ")+", got '"+(this.terminals_[N]||N)+"'":ht="Parse error on line "+(rt+1)+": Unexpected "+(N==pt?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(ht,{text:O.match,token:this.terminals_[N]||N,line:O.yylineno,loc:ot,expected:st})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+N);switch(V[0]){case 1:d.push(N),T.push(O.yytext),t.push(O.yylloc),d.push(V[1]),N=null,ft=O.yyleng,e=O.yytext,rt=O.yylineno,ot=O.yylloc;break;case 2:if(j=this.productions_[V[1]][1],J.$=T[T.length-j],J._$={first_line:t[t.length-(j||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(j||1)].first_column,last_column:t[t.length-1].last_column},Rt&&(J._$.range=[t[t.length-(j||1)].range[0],t[t.length-1].range[1]]),lt=this.performAction.apply(J,[e,ft,rt,F.yy,V[1],T,t].concat(Lt)),typeof lt<"u")return lt;j&&(d=d.slice(0,-1*j*2),T=T.slice(0,-1*j),t=t.slice(0,-1*j)),d.push(this.productions_[V[1]][0]),T.push(J.$),t.push(J._$),bt=X[d[d.length-2]][d[d.length-1]],d.push(bt);break;case 3:return!0}}return!0}},M=function(){var A={EOF:1,parseError:function(u,d){if(this.yy.parser)this.yy.parser.parseError(u,d);else throw new Error(u)},setInput:function(o,u){return this.yy=u||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var u=o.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var u=o.length,d=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===s.length?this.yylloc.first_column:0)+s[s.length-d.length].length-d[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),u=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/graph-CNSoCPH1.js b/starter/src/main/resources/templates/notebase/assets/graph-Cryfb0BU.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/graph-CNSoCPH1.js rename to starter/src/main/resources/templates/notebase/assets/graph-Cryfb0BU.js index 4c989f0696..205a24c5e8 100644 --- a/starter/src/main/resources/templates/notebase/assets/graph-CNSoCPH1.js +++ b/starter/src/main/resources/templates/notebase/assets/graph-Cryfb0BU.js @@ -1 +1 @@ -import{l as qe,S as m,H as Ze,U as re,f as y,e as Te,R as Xe,h as q,T as P,j as Je,V as I,d as Qe,k as Ee,W as G,G as X,X as We,Y as me,Z as ze,$ as D,O as Oe,B as ve,a0 as Ve,a1 as ke,a2 as en,N as nn,a3 as rn,L as tn,K as we,I as sn,E as an,a4 as un,P as R,w as te}from"./index-CLWgAZNI.js";import{an as fn,ao as C,ap as on,aq as j,ar as ie}from"./mermaid.core-BajzCmnv.js";var dn="__lodash_hash_undefined__";function hn(e){return this.__data__.set(e,dn),this}function ln(e){return this.__data__.has(e)}function S(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new qe;++nu))return!1;var g=s.get(e),l=s.get(n);if(g&&l)return g==n&&l==e;var o=-1,h=!0,A=r&_n?new S:void 0;for(s.set(e,n),s.set(n,e);++o-1}var Jn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qn=/^\w*$/;function k(e,n){if(y(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||V(e)?!0:Qn.test(e)||!Jn.test(e)||n!=null&&e in Object(n)}var Wn=500;function zn(e){var n=on(e,function(t){return r.size===Wn&&r.clear(),t}),r=n.cache;return n}var Vn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kn=/\\(\\)?/g,er=zn(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Vn,function(r,t,i,s){n.push(i?s.replace(kn,"$1"):t||r)}),n});function nr(e){return e==null?"":Ne(e)}function Re(e,n){return y(e)?e:k(e,n)?[e]:er(nr(e))}var rr=1/0;function U(e){if(typeof e=="string"||V(e))return e;var n=e+"";return n=="0"&&1/e==-rr?"-0":n}function Me(e,n){n=Re(n,e);for(var r=0,t=n.length;e!=null&&r=Ht){var g=Kt(e);if(g)return J(g);a=!1,i=$e,f=new S}else f=u;e:for(;++t1?i.setNode(s,r):i.setNode(s)}),this}setNode(n,r){return E(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=w,this._children[n]={},this._children[w][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return E(this._nodes,n)}removeNode(n){var r=this;if(E(this._nodes,n)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],v(this.children(n),function(i){r.setParent(i)}),delete this._children[n]),v(T(this._in[n]),t),delete this._in[n],delete this._preds[n],v(T(this._out[n]),t),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if($(r))r=w;else{r+="";for(var t=r;!$(t);t=this.parent(t))if(t===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var r=this._parent[n];if(r!==w)return r}}children(n){if($(n)&&(n=w),this._isCompound){var r=this._children[n];if(r)return T(r)}else{if(n===w)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var r=this._preds[n];if(r)return T(r)}successors(n){var r=this._sucs[n];if(r)return T(r)}neighbors(n){var r=this.predecessors(n);if(r)return qt(r,this.successors(n))}isLeaf(n){var r;return this.isDirected()?r=this.successors(n):r=this.neighbors(n),r.length===0}filterNodes(n){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;v(this._nodes,function(a,u){n(u)&&r.setNode(u,a)}),v(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,t.edge(a))});var i={};function s(a){var u=t.parent(a);return u===void 0||r.hasNode(u)?(i[a]=u,u):u in i?i[u]:s(u)}return this._isCompound&&v(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(n){return te(n)||(n=R(n)),this._defaultEdgeLabelFn=n,this}edgeCount(){return this._edgeCount}edges(){return H(this._edgeObjs)}setPath(n,r){var t=this,i=arguments;return jt(n,function(s,a){return i.length>1?t.setEdge(s,a,r):t.setEdge(s,a),a}),this}setEdge(){var n,r,t,i,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(n=a.v,r=a.w,t=a.name,arguments.length===2&&(i=arguments[1],s=!0)):(n=a,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),n=""+n,r=""+r,$(t)||(t=""+t);var u=L(this._isDirected,n,r,t);if(E(this._edgeLabels,u))return s&&(this._edgeLabels[u]=i),this;if(!$(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(r),this._edgeLabels[u]=s?i:this._defaultEdgeLabelFn(n,r,t);var f=Xt(this._isDirected,n,r,t);return n=f.v,r=f.w,Object.freeze(f),this._edgeObjs[u]=f,ye(this._preds[r],n),ye(this._sucs[n],r),this._in[r][u]=f,this._out[n][u]=f,this._edgeCount++,this}edge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t);return this._edgeLabels[i]}hasEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t);return E(this._edgeLabels,i)}removeEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t),s=this._edgeObjs[i];return s&&(n=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Ae(this._preds[r],n),Ae(this._sucs[n],r),delete this._in[r][i],delete this._out[n][i],this._edgeCount--),this}inEdges(n,r){var t=this._in[n];if(t){var i=H(t);return r?x(i,function(s){return s.v===r}):i}}outEdges(n,r){var t=this._out[n];if(t){var i=H(t);return r?x(i,function(s){return s.w===r}):i}}nodeEdges(n,r){var t=this.inEdges(n,r);if(t)return t.concat(this.outEdges(n,r))}}Ye.prototype._nodeCount=0;Ye.prototype._edgeCount=0;function ye(e,n){e[n]?e[n]++:e[n]=1}function Ae(e,n){--e[n]||delete e[n]}function L(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}return i+be+s+be+($(t)?Zt:t)}function Xt(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}var u={v:i,w:s};return t&&(u.name=t),u}function Y(e,n){return L(e,n.v,n.w,n.name)}export{Ye as G,V as a,sr as b,K as c,He as d,Hn as e,v as f,ee as g,E as h,$ as i,Se as j,T as k,Ft as l,St as m,Re as n,Me as o,vt as p,nr as q,x as r,jt as s,U as t,H as v}; +import{l as qe,S as m,H as Ze,U as re,f as y,e as Te,R as Xe,h as q,T as P,j as Je,V as I,d as Qe,k as Ee,W as G,G as X,X as We,Y as me,Z as ze,$ as D,O as Oe,B as ve,a0 as Ve,a1 as ke,a2 as en,N as nn,a3 as rn,L as tn,K as we,I as sn,E as an,a4 as un,P as R,w as te}from"./index-bOgutTC1.js";import{an as fn,ao as C,ap as on,aq as j,ar as ie}from"./mermaid.core-DacimPk4.js";var dn="__lodash_hash_undefined__";function hn(e){return this.__data__.set(e,dn),this}function ln(e){return this.__data__.has(e)}function S(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new qe;++nu))return!1;var g=s.get(e),l=s.get(n);if(g&&l)return g==n&&l==e;var o=-1,h=!0,A=r&_n?new S:void 0;for(s.set(e,n),s.set(n,e);++o-1}var Jn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qn=/^\w*$/;function k(e,n){if(y(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||V(e)?!0:Qn.test(e)||!Jn.test(e)||n!=null&&e in Object(n)}var Wn=500;function zn(e){var n=on(e,function(t){return r.size===Wn&&r.clear(),t}),r=n.cache;return n}var Vn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kn=/\\(\\)?/g,er=zn(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Vn,function(r,t,i,s){n.push(i?s.replace(kn,"$1"):t||r)}),n});function nr(e){return e==null?"":Ne(e)}function Re(e,n){return y(e)?e:k(e,n)?[e]:er(nr(e))}var rr=1/0;function U(e){if(typeof e=="string"||V(e))return e;var n=e+"";return n=="0"&&1/e==-rr?"-0":n}function Me(e,n){n=Re(n,e);for(var r=0,t=n.length;e!=null&&r=Ht){var g=Kt(e);if(g)return J(g);a=!1,i=$e,f=new S}else f=u;e:for(;++t1?i.setNode(s,r):i.setNode(s)}),this}setNode(n,r){return E(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=w,this._children[n]={},this._children[w][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return E(this._nodes,n)}removeNode(n){var r=this;if(E(this._nodes,n)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],v(this.children(n),function(i){r.setParent(i)}),delete this._children[n]),v(T(this._in[n]),t),delete this._in[n],delete this._preds[n],v(T(this._out[n]),t),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if($(r))r=w;else{r+="";for(var t=r;!$(t);t=this.parent(t))if(t===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var r=this._parent[n];if(r!==w)return r}}children(n){if($(n)&&(n=w),this._isCompound){var r=this._children[n];if(r)return T(r)}else{if(n===w)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var r=this._preds[n];if(r)return T(r)}successors(n){var r=this._sucs[n];if(r)return T(r)}neighbors(n){var r=this.predecessors(n);if(r)return qt(r,this.successors(n))}isLeaf(n){var r;return this.isDirected()?r=this.successors(n):r=this.neighbors(n),r.length===0}filterNodes(n){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;v(this._nodes,function(a,u){n(u)&&r.setNode(u,a)}),v(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,t.edge(a))});var i={};function s(a){var u=t.parent(a);return u===void 0||r.hasNode(u)?(i[a]=u,u):u in i?i[u]:s(u)}return this._isCompound&&v(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(n){return te(n)||(n=R(n)),this._defaultEdgeLabelFn=n,this}edgeCount(){return this._edgeCount}edges(){return H(this._edgeObjs)}setPath(n,r){var t=this,i=arguments;return jt(n,function(s,a){return i.length>1?t.setEdge(s,a,r):t.setEdge(s,a),a}),this}setEdge(){var n,r,t,i,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(n=a.v,r=a.w,t=a.name,arguments.length===2&&(i=arguments[1],s=!0)):(n=a,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),n=""+n,r=""+r,$(t)||(t=""+t);var u=L(this._isDirected,n,r,t);if(E(this._edgeLabels,u))return s&&(this._edgeLabels[u]=i),this;if(!$(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(r),this._edgeLabels[u]=s?i:this._defaultEdgeLabelFn(n,r,t);var f=Xt(this._isDirected,n,r,t);return n=f.v,r=f.w,Object.freeze(f),this._edgeObjs[u]=f,ye(this._preds[r],n),ye(this._sucs[n],r),this._in[r][u]=f,this._out[n][u]=f,this._edgeCount++,this}edge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t);return this._edgeLabels[i]}hasEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t);return E(this._edgeLabels,i)}removeEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):L(this._isDirected,n,r,t),s=this._edgeObjs[i];return s&&(n=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Ae(this._preds[r],n),Ae(this._sucs[n],r),delete this._in[r][i],delete this._out[n][i],this._edgeCount--),this}inEdges(n,r){var t=this._in[n];if(t){var i=H(t);return r?x(i,function(s){return s.v===r}):i}}outEdges(n,r){var t=this._out[n];if(t){var i=H(t);return r?x(i,function(s){return s.w===r}):i}}nodeEdges(n,r){var t=this.inEdges(n,r);if(t)return t.concat(this.outEdges(n,r))}}Ye.prototype._nodeCount=0;Ye.prototype._edgeCount=0;function ye(e,n){e[n]?e[n]++:e[n]=1}function Ae(e,n){--e[n]||delete e[n]}function L(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}return i+be+s+be+($(t)?Zt:t)}function Xt(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}var u={v:i,w:s};return t&&(u.name=t),u}function Y(e,n){return L(e,n.v,n.w,n.name)}export{Ye as G,V as a,sr as b,K as c,He as d,Hn as e,v as f,ee as g,E as h,$ as i,Se as j,T as k,Ft as l,St as m,Re as n,Me as o,vt as p,nr as q,x as r,jt as s,U as t,H as v}; diff --git a/deploy/server/notebase/assets/index-3862675e-C5iJKLK2.js b/starter/src/main/resources/templates/notebase/assets/index-3862675e-BtvAzWCw.js similarity index 96% rename from deploy/server/notebase/assets/index-3862675e-C5iJKLK2.js rename to starter/src/main/resources/templates/notebase/assets/index-3862675e-BtvAzWCw.js index 308a3b9e2f..dc03ce333d 100644 --- a/deploy/server/notebase/assets/index-3862675e-C5iJKLK2.js +++ b/starter/src/main/resources/templates/notebase/assets/index-3862675e-BtvAzWCw.js @@ -1 +1 @@ -import{i as N,G as A}from"./graph-CNSoCPH1.js";import{m as $,l as H}from"./layout-Cg9I2QIy.js";import{c as V}from"./clone-CJLsyeCN.js";import{i as U,u as W,s as _,a as q,b as z,g as D,p as O,c as K,d as Q,e as Y,f as Z,h as J,j as p}from"./edges-e0da2a9e-121Kky2V.js";import{l as s,c as T,p as S,h as L}from"./mermaid.core-BajzCmnv.js";import{a as I}from"./createText-2e5e7dd3-CXwUql3o.js";function m(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:tt(e),edges:et(e)};return N(e.graph())||(t.value=V(e.graph())),t}function tt(e){return $(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return N(n)||(i.value=n),N(r)||(i.parent=r),i})}function et(e){return $(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return N(t.name)||(r.name=t.name),N(n)||(r.value=n),r})}let l={},g={},R={};const nt=()=>{g={},R={},l={}},B=(e,t)=>(s.trace("In isDescendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),it=(e,t)=>(s.info("Descendants of ",t," is ",g[t]),s.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||B(e.v,t)||B(e.w,t)||g[t].includes(e.w):(s.debug("Tilt, ",t,",not in descendants"),!1)),P=(e,t,n,r)=>{s.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),s.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(a=>{if(t.children(a).length>0)P(a,t,n,r);else{const d=t.node(a);s.info("cp ",a," to ",r," with parent ",e),n.setNode(a,d),r!==t.parent(a)&&(s.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(s.debug("Setting parent",a,e),n.setParent(a,e)):(s.info("In copy ",e,"root",r,"data",t.node(e),r),s.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const u=t.edges(a);s.debug("Copying Edges",u),u.forEach(f=>{s.info("Edge",f);const h=t.edge(f.v,f.w,f.name);s.info("Edge data",h,r);try{it(f,r)?(s.info("Copying as ",f.v,f.w,h,f.name),n.setEdge(f.v,f.w,h,f.name),s.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):s.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",r," clusterId:",e)}catch(w){s.error(w)}})}s.debug("Removing node",a),t.removeNode(a)})},k=(e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)R[i]=e,r=[...r,...k(i,t)];return r},C=(e,t)=>{s.trace("Searching",e);const n=t.children(e);if(s.trace("Searching children of id ",e,n),n.length<1)return s.trace("This is a valid node",e),e;for(const r of n){const i=C(r,t);if(i)return s.trace("Found replacement for",e," => ",i),i}},X=e=>!l[e]||!l[e].externalConnections?e:l[e]?l[e].id:e,st=(e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(s.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),g[n]=k(n,e),l[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),i=e.edges();r.length>0?(s.debug("Cluster identified",n,g),i.forEach(a=>{if(a.v!==n&&a.w!==n){const d=B(a.v,n),u=B(a.w,n);d^u&&(s.warn("Edge: ",a," leaves cluster ",n),s.warn("Descendants of XXX ",n,": ",g[n]),l[n].externalConnections=!0)}})):s.debug("Not a cluster ",n,g)});for(let n of Object.keys(l)){const r=l[n].id,i=e.parent(r);i!==n&&l[i]&&!l[i].externalConnections&&(l[n].id=i)}e.edges().forEach(function(n){const r=e.edge(n);s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(s.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l[n.v]," --- ",l[n.w]),l[n.v]&&l[n.w]&&l[n.v]===l[n.w]){s.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const u=structuredClone(r),f=structuredClone(r);u.label="",u.arrowTypeEnd="none",f.label="",u.fromCluster=n.v,f.toCluster=n.v,e.setEdge(i,d,u,n.name+"-cyclic-special"),e.setEdge(d,a,f,n.name+"-cyclic-special")}else if(l[n.v]||l[n.w]){if(s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const d=e.parent(i);l[d].externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){const d=e.parent(a);l[d].externalConnections=!0,r.toCluster=n.w}s.warn("Fix Replacing with XXX",i,a,n.name),e.setEdge(i,a,r,n.name)}}),s.warn("Adjusted Graph",m(e)),F(e,0),s.trace(l)},F=(e,t)=>{if(s.warn("extractor - ",t,m(e),e.children("D")),t>10){s.error("Bailing out");return}let n=e.nodes(),r=!1;for(const i of n){const a=e.children(i);r=r||a.length>0}if(!r){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",n,t);for(const i of n)if(s.debug("Extracting node",i,l,l[i]&&!l[i].externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!l[i])s.debug("Not a cluster",i,t);else if(!l[i].externalConnections&&e.children(i)&&e.children(i).length>0){s.warn("Cluster without external connections, without a parent and with children",i,t);let d=e.graph().rankdir==="TB"?"LR":"TB";l[i]&&l[i].clusterData&&l[i].clusterData.dir&&(d=l[i].clusterData.dir,s.warn("Fixing dir",l[i].clusterData.dir,d));const u=new A({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",m(e)),P(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:l[i].clusterData,labelText:l[i].labelText,graph:u}),s.warn("New graph after copy node: (",i,")",m(u)),s.debug("Old graph after copy",m(e))}else s.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!l[i].externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),s.debug(l);n=e.nodes(),s.warn("New list of nodes",n);for(const i of n){const a=e.node(i);s.warn(" Now next level",i,a),a.clusterNode&&F(a.graph,t+1)}},G=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const i=e.children(r),a=G(e,i);n=[...n,...a]}),n},rt=e=>G(e,e.children()),at=(e,t)=>{s.info("Creating subgraph rect for ",t.id,t);const n=T(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),i=r.insert("rect",":first-child"),a=S(n.flowchart.htmlLabels),d=r.insert("g").attr("class","cluster-label"),u=t.labelType==="markdown"?I(d,t.labelText,{style:t.labelStyle,useHtmlLabels:a}):d.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}const h=0*t.padding,w=h/2,x=t.width<=f.width+h?f.width+h:t.width;t.width<=f.width+h?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-x/2).attr("y",t.y-t.height/2-w).attr("width",x).attr("height",t.height+h);const{subGraphTitleTopMargin:v}=D(n);a?d.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+v})`):d.attr("transform",`translate(${t.x}, ${t.y-t.height/2+v})`);const y=i.node().getBBox();return t.width=y.width,t.height=y.height,t.intersect=function(c){return p(t,c)},r},ct=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(u){return p(t,u)},n},ot=(e,t)=>{const n=T(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),i=r.insert("rect",":first-child"),a=r.insert("g").attr("class","cluster-label"),d=r.append("rect"),u=a.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}f=u.getBBox();const h=0*t.padding,w=h/2,x=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(f.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,i.attr("class","outer").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w).attr("width",x+h).attr("height",t.height+h),d.attr("class","inner").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w+f.height-1).attr("width",x+h).attr("height",t.height+h-f.height-3);const{subGraphTitleTopMargin:v}=D(n);a.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(S(n.flowchart.htmlLabels)?5:3)+v})`);const y=i.node().getBBox();return t.height=y.height,t.intersect=function(c){return p(t,c)},r},lt=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(u){return p(t,u)},n},ft={rect:at,roundedWithTitle:ot,noteGroup:ct,divider:lt};let j={};const dt=(e,t)=>{s.trace("Inserting cluster");const n=t.shape||"rect";j[t.id]=ft[n](e,t)},ut=()=>{j={}},M=async(e,t,n,r,i,a)=>{s.info("Graph in recursive render: XXX",m(t),i);const d=t.graph().rankdir;s.trace("Dir in recursive render - dir:",d);const u=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));const f=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),w=u.insert("g").attr("class","edgeLabels"),x=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(c){const o=t.node(c);if(i!==void 0){const b=JSON.parse(JSON.stringify(i.clusterData));s.info("Setting data for cluster XXX (",c,") ",b,i),t.setNode(i.id,b),t.parent(c)||(s.trace("Setting parent",c,i.id),t.setParent(c,i.id,b))}if(s.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){s.info("Cluster identified",c,o.width,t.node(c));const b=await M(x,o.graph,n,r,t.node(c),a),E=b.elem;W(o,E),o.diff=b.diff||0,s.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),_(E,o),s.warn("Recursive render complete ",E,o)}else t.children(c).length>0?(s.info("Cluster - the non recursive path XXX",c,o.id,o,t),s.info(C(o.id,t)),l[o.id]={id:C(o.id,t),node:o}):(s.info("Node - the non recursive path",c,o.id,o),await q(x,t.node(c),d))})),t.edges().forEach(function(c){const o=t.edge(c.v,c.w,c.name);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),s.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),s.info("Fix",l,"ids:",c.v,c.w,"Translating: ",l[c.v],l[c.w]),z(w,o)}),t.edges().forEach(function(c){s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),H(t),s.info("Graph after layout:",m(t));let v=0;const{subGraphTitleTotalMargin:y}=D(a);return rt(t).forEach(function(c){const o=t.node(c);s.info("Position "+c+": "+JSON.stringify(t.node(c))),s.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=y,O(o)):t.children(c).length>0?(o.height+=y,dt(f,o),l[o.id].node=o):(o.y+=y/2,O(o))}),t.edges().forEach(function(c){const o=t.edge(c);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o),o.points.forEach(E=>E.y+=y/2);const b=K(h,c,o,l,n,t,r);Q(o,b)}),t.nodes().forEach(function(c){const o=t.node(c);s.info(c,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:u,diff:v}},bt=async(e,t,n,r,i)=>{U(e,n,r,i),Y(),Z(),ut(),nt(),s.warn("Graph at first:",JSON.stringify(m(t))),st(t),s.warn("Graph after:",JSON.stringify(m(t)));const a=T();await M(e,t,r,i,void 0,a)};export{bt as r}; +import{i as N,G as A}from"./graph-Cryfb0BU.js";import{m as $,l as H}from"./layout-DPudLDYQ.js";import{c as V}from"./clone-CVBlNrV8.js";import{i as U,u as W,s as _,a as q,b as z,g as D,p as O,c as K,d as Q,e as Y,f as Z,h as J,j as p}from"./edges-e0da2a9e---EYFhqg.js";import{l as s,c as T,p as S,h as L}from"./mermaid.core-DacimPk4.js";import{a as I}from"./createText-2e5e7dd3-sebYv4r1.js";function m(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:tt(e),edges:et(e)};return N(e.graph())||(t.value=V(e.graph())),t}function tt(e){return $(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return N(n)||(i.value=n),N(r)||(i.parent=r),i})}function et(e){return $(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return N(t.name)||(r.name=t.name),N(n)||(r.value=n),r})}let l={},g={},R={};const nt=()=>{g={},R={},l={}},B=(e,t)=>(s.trace("In isDescendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),it=(e,t)=>(s.info("Descendants of ",t," is ",g[t]),s.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||B(e.v,t)||B(e.w,t)||g[t].includes(e.w):(s.debug("Tilt, ",t,",not in descendants"),!1)),P=(e,t,n,r)=>{s.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),s.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(a=>{if(t.children(a).length>0)P(a,t,n,r);else{const d=t.node(a);s.info("cp ",a," to ",r," with parent ",e),n.setNode(a,d),r!==t.parent(a)&&(s.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(s.debug("Setting parent",a,e),n.setParent(a,e)):(s.info("In copy ",e,"root",r,"data",t.node(e),r),s.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const u=t.edges(a);s.debug("Copying Edges",u),u.forEach(f=>{s.info("Edge",f);const h=t.edge(f.v,f.w,f.name);s.info("Edge data",h,r);try{it(f,r)?(s.info("Copying as ",f.v,f.w,h,f.name),n.setEdge(f.v,f.w,h,f.name),s.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):s.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",r," clusterId:",e)}catch(w){s.error(w)}})}s.debug("Removing node",a),t.removeNode(a)})},k=(e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)R[i]=e,r=[...r,...k(i,t)];return r},C=(e,t)=>{s.trace("Searching",e);const n=t.children(e);if(s.trace("Searching children of id ",e,n),n.length<1)return s.trace("This is a valid node",e),e;for(const r of n){const i=C(r,t);if(i)return s.trace("Found replacement for",e," => ",i),i}},X=e=>!l[e]||!l[e].externalConnections?e:l[e]?l[e].id:e,st=(e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(s.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),g[n]=k(n,e),l[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),i=e.edges();r.length>0?(s.debug("Cluster identified",n,g),i.forEach(a=>{if(a.v!==n&&a.w!==n){const d=B(a.v,n),u=B(a.w,n);d^u&&(s.warn("Edge: ",a," leaves cluster ",n),s.warn("Descendants of XXX ",n,": ",g[n]),l[n].externalConnections=!0)}})):s.debug("Not a cluster ",n,g)});for(let n of Object.keys(l)){const r=l[n].id,i=e.parent(r);i!==n&&l[i]&&!l[i].externalConnections&&(l[n].id=i)}e.edges().forEach(function(n){const r=e.edge(n);s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(s.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l[n.v]," --- ",l[n.w]),l[n.v]&&l[n.w]&&l[n.v]===l[n.w]){s.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const u=structuredClone(r),f=structuredClone(r);u.label="",u.arrowTypeEnd="none",f.label="",u.fromCluster=n.v,f.toCluster=n.v,e.setEdge(i,d,u,n.name+"-cyclic-special"),e.setEdge(d,a,f,n.name+"-cyclic-special")}else if(l[n.v]||l[n.w]){if(s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const d=e.parent(i);l[d].externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){const d=e.parent(a);l[d].externalConnections=!0,r.toCluster=n.w}s.warn("Fix Replacing with XXX",i,a,n.name),e.setEdge(i,a,r,n.name)}}),s.warn("Adjusted Graph",m(e)),F(e,0),s.trace(l)},F=(e,t)=>{if(s.warn("extractor - ",t,m(e),e.children("D")),t>10){s.error("Bailing out");return}let n=e.nodes(),r=!1;for(const i of n){const a=e.children(i);r=r||a.length>0}if(!r){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",n,t);for(const i of n)if(s.debug("Extracting node",i,l,l[i]&&!l[i].externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!l[i])s.debug("Not a cluster",i,t);else if(!l[i].externalConnections&&e.children(i)&&e.children(i).length>0){s.warn("Cluster without external connections, without a parent and with children",i,t);let d=e.graph().rankdir==="TB"?"LR":"TB";l[i]&&l[i].clusterData&&l[i].clusterData.dir&&(d=l[i].clusterData.dir,s.warn("Fixing dir",l[i].clusterData.dir,d));const u=new A({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",m(e)),P(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:l[i].clusterData,labelText:l[i].labelText,graph:u}),s.warn("New graph after copy node: (",i,")",m(u)),s.debug("Old graph after copy",m(e))}else s.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!l[i].externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),s.debug(l);n=e.nodes(),s.warn("New list of nodes",n);for(const i of n){const a=e.node(i);s.warn(" Now next level",i,a),a.clusterNode&&F(a.graph,t+1)}},G=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const i=e.children(r),a=G(e,i);n=[...n,...a]}),n},rt=e=>G(e,e.children()),at=(e,t)=>{s.info("Creating subgraph rect for ",t.id,t);const n=T(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),i=r.insert("rect",":first-child"),a=S(n.flowchart.htmlLabels),d=r.insert("g").attr("class","cluster-label"),u=t.labelType==="markdown"?I(d,t.labelText,{style:t.labelStyle,useHtmlLabels:a}):d.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}const h=0*t.padding,w=h/2,x=t.width<=f.width+h?f.width+h:t.width;t.width<=f.width+h?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-x/2).attr("y",t.y-t.height/2-w).attr("width",x).attr("height",t.height+h);const{subGraphTitleTopMargin:v}=D(n);a?d.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+v})`):d.attr("transform",`translate(${t.x}, ${t.y-t.height/2+v})`);const y=i.node().getBBox();return t.width=y.width,t.height=y.height,t.intersect=function(c){return p(t,c)},r},ct=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(u){return p(t,u)},n},ot=(e,t)=>{const n=T(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),i=r.insert("rect",":first-child"),a=r.insert("g").attr("class","cluster-label"),d=r.append("rect"),u=a.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}f=u.getBBox();const h=0*t.padding,w=h/2,x=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(f.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,i.attr("class","outer").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w).attr("width",x+h).attr("height",t.height+h),d.attr("class","inner").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w+f.height-1).attr("width",x+h).attr("height",t.height+h-f.height-3);const{subGraphTitleTopMargin:v}=D(n);a.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(S(n.flowchart.htmlLabels)?5:3)+v})`);const y=i.node().getBBox();return t.height=y.height,t.intersect=function(c){return p(t,c)},r},lt=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(u){return p(t,u)},n},ft={rect:at,roundedWithTitle:ot,noteGroup:ct,divider:lt};let j={};const dt=(e,t)=>{s.trace("Inserting cluster");const n=t.shape||"rect";j[t.id]=ft[n](e,t)},ut=()=>{j={}},M=async(e,t,n,r,i,a)=>{s.info("Graph in recursive render: XXX",m(t),i);const d=t.graph().rankdir;s.trace("Dir in recursive render - dir:",d);const u=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));const f=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),w=u.insert("g").attr("class","edgeLabels"),x=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(c){const o=t.node(c);if(i!==void 0){const b=JSON.parse(JSON.stringify(i.clusterData));s.info("Setting data for cluster XXX (",c,") ",b,i),t.setNode(i.id,b),t.parent(c)||(s.trace("Setting parent",c,i.id),t.setParent(c,i.id,b))}if(s.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){s.info("Cluster identified",c,o.width,t.node(c));const b=await M(x,o.graph,n,r,t.node(c),a),E=b.elem;W(o,E),o.diff=b.diff||0,s.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),_(E,o),s.warn("Recursive render complete ",E,o)}else t.children(c).length>0?(s.info("Cluster - the non recursive path XXX",c,o.id,o,t),s.info(C(o.id,t)),l[o.id]={id:C(o.id,t),node:o}):(s.info("Node - the non recursive path",c,o.id,o),await q(x,t.node(c),d))})),t.edges().forEach(function(c){const o=t.edge(c.v,c.w,c.name);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),s.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),s.info("Fix",l,"ids:",c.v,c.w,"Translating: ",l[c.v],l[c.w]),z(w,o)}),t.edges().forEach(function(c){s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),H(t),s.info("Graph after layout:",m(t));let v=0;const{subGraphTitleTotalMargin:y}=D(a);return rt(t).forEach(function(c){const o=t.node(c);s.info("Position "+c+": "+JSON.stringify(t.node(c))),s.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=y,O(o)):t.children(c).length>0?(o.height+=y,dt(f,o),l[o.id].node=o):(o.y+=y/2,O(o))}),t.edges().forEach(function(c){const o=t.edge(c);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o),o.points.forEach(E=>E.y+=y/2);const b=K(h,c,o,l,n,t,r);Q(o,b)}),t.nodes().forEach(function(c){const o=t.node(c);s.info(c,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:u,diff:v}},bt=async(e,t,n,r,i)=>{U(e,n,r,i),Y(),Z(),ut(),nt(),s.warn("Graph at first:",JSON.stringify(m(t))),st(t),s.warn("Graph after:",JSON.stringify(m(t)));const a=T();await M(e,t,r,i,void 0,a)};export{bt as r}; diff --git a/starter/src/main/resources/templates/notebase/assets/index-D2q_syzD.js b/starter/src/main/resources/templates/notebase/assets/index-CVIZTd-d.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/index-D2q_syzD.js rename to starter/src/main/resources/templates/notebase/assets/index-CVIZTd-d.js index 482092a8cb..90c420f522 100644 --- a/starter/src/main/resources/templates/notebase/assets/index-D2q_syzD.js +++ b/starter/src/main/resources/templates/notebase/assets/index-CVIZTd-d.js @@ -1,4 +1,4 @@ -import{g as xl}from"./index-CLWgAZNI.js";function ul(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],a=typeof t;(a==="object"||a==="function")&&!Object.isFrozen(t)&&ul(t)}),n}class yr{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function pl(n){return n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function _e(n,...e){const t=Object.create(null);for(const a in n)t[a]=n[a];return e.forEach(function(a){for(const r in a)t[r]=a[r]}),t}const Pl="",hr=n=>!!n.scope,wl=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((a,r)=>`${a}${"_".repeat(r+1)}`)].join(" ")}return`${e}${n}`};class kl{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=pl(e)}openNode(e){if(!hr(e))return;const t=wl(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){hr(e)&&(this.buffer+=Pl)}value(){return this.buffer}span(e){this.buffer+=``}}const Dr=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class _r{constructor(){this.rootNode=Dr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=Dr({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(a=>this._walk(e,a)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{_r._collapse(t)}))}}class Ul extends _r{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const a=e.root;t&&(a.scope=`language:${t}`),this.add(a)}toHTML(){return new kl(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Oe(n){return n?typeof n=="string"?n:n.source:null}function ml(n){return me("(?=",n,")")}function Fl(n){return me("(?:",n,")*")}function Bl(n){return me("(?:",n,")?")}function me(...n){return n.map(t=>Oe(t)).join("")}function Gl(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function dr(...n){return"("+(Gl(n).capture?"":"?:")+n.map(a=>Oe(a)).join("|")+")"}function El(n){return new RegExp(n.toString()+"|").exec("").length-1}function Yl(n,e){const t=n&&n.exec(e);return t&&t.index===0}const ql=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ur(n,{joinWith:e}){let t=0;return n.map(a=>{t+=1;const r=t;let i=Oe(a),s="";for(;i.length>0;){const o=ql.exec(i);if(!o){s+=i;break}s+=i.substring(0,o.index),i=i.substring(o.index+o[0].length),o[0][0]==="\\"&&o[1]?s+="\\"+String(Number(o[1])+r):(s+=o[0],o[0]==="("&&t++)}return s}).map(a=>`(${a})`).join(e)}const Hl=/\b\B/,gl="[a-zA-Z]\\w*",pr="[a-zA-Z_]\\w*",Sl="\\b\\d+(\\.\\d+)?",Tl="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",bl="\\b(0b[01]+)",Vl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zl=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=me(e,/.*\b/,n.binary,/\b.*/)),_e({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,a)=>{t.index!==0&&a.ignoreMatch()}},n)},Ie={begin:"\\\\[\\s\\S]",relevance:0},Wl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ie]},Kl={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ie]},$l={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},De=function(n,e,t={}){const a=_e({scope:"comment",begin:n,end:e,contains:[]},t);a.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=dr("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return a.contains.push({begin:me(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a},Ql=De("//","$"),Xl=De("/\\*","\\*/"),Zl=De("#","$"),Jl={scope:"number",begin:Sl,relevance:0},jl={scope:"number",begin:Tl,relevance:0},ec={scope:"number",begin:bl,relevance:0},tc={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ie,{begin:/\[/,end:/\]/,relevance:0,contains:[Ie]}]},nc={scope:"title",begin:gl,relevance:0},ac={scope:"title",begin:pr,relevance:0},rc={begin:"\\.\\s*"+pr,relevance:0},ic=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var ye=Object.freeze({__proto__:null,APOS_STRING_MODE:Wl,BACKSLASH_ESCAPE:Ie,BINARY_NUMBER_MODE:ec,BINARY_NUMBER_RE:bl,COMMENT:De,C_BLOCK_COMMENT_MODE:Xl,C_LINE_COMMENT_MODE:Ql,C_NUMBER_MODE:jl,C_NUMBER_RE:Tl,END_SAME_AS_BEGIN:ic,HASH_COMMENT_MODE:Zl,IDENT_RE:gl,MATCH_NOTHING_RE:Hl,METHOD_GUARD:rc,NUMBER_MODE:Jl,NUMBER_RE:Sl,PHRASAL_WORDS_MODE:$l,QUOTE_STRING_MODE:Kl,REGEXP_MODE:tc,RE_STARTERS_RE:Vl,SHEBANG:zl,TITLE_MODE:nc,UNDERSCORE_IDENT_RE:pr,UNDERSCORE_TITLE_MODE:ac});function oc(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function sc(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function lc(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=oc,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function cc(n,e){Array.isArray(n.illegal)&&(n.illegal=dr(...n.illegal))}function _c(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function dc(n,e){n.relevance===void 0&&(n.relevance=1)}const uc=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(a=>{delete n[a]}),n.keywords=t.keywords,n.begin=me(t.beforeMatch,ml(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},pc=["of","and","for","in","not","or","if","then","parent","list","value"],mc="keyword";function Rl(n,e,t=mc){const a=Object.create(null);return typeof n=="string"?r(t,n.split(" ")):Array.isArray(n)?r(t,n):Object.keys(n).forEach(function(i){Object.assign(a,Rl(n[i],e,i))}),a;function r(i,s){e&&(s=s.map(o=>o.toLowerCase())),s.forEach(function(o){const l=o.split("|");a[l[0]]=[i,Ec(l[0],l[1])]})}}function Ec(n,e){return e?Number(e):gc(n)?0:1}function gc(n){return pc.includes(n.toLowerCase())}const Mr={},pe=n=>{console.error(n)},Lr=(n,...e)=>{console.log(`WARN: ${n}`,...e)},be=(n,e)=>{Mr[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),Mr[`${n}/${e}`]=!0)},he=new Error;function fl(n,e,{key:t}){let a=0;const r=n[t],i={},s={};for(let o=1;o<=e.length;o++)s[o+a]=r[o],i[o+a]=!0,a+=El(e[o-1]);n[t]=s,n[t]._emit=i,n[t]._multi=!0}function Sc(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw pe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),he;if(typeof n.beginScope!="object"||n.beginScope===null)throw pe("beginScope must be object"),he;fl(n,n.begin,{key:"beginScope"}),n.begin=ur(n.begin,{joinWith:""})}}function Tc(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw pe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),he;if(typeof n.endScope!="object"||n.endScope===null)throw pe("endScope must be object"),he;fl(n,n.end,{key:"endScope"}),n.end=ur(n.end,{joinWith:""})}}function bc(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function Rc(n){bc(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Sc(n),Tc(n)}function fc(n){function e(s,o){return new RegExp(Oe(s),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(o?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(o,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,o]),this.matchAt+=El(o)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const o=this.regexes.map(l=>l[1]);this.matcherRe=e(ur(o,{joinWith:"|"}),!0),this.lastIndex=0}exec(o){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(o);if(!l)return null;const _=l.findIndex((d,p)=>p>0&&d!==void 0),c=this.matchIndexes[_];return l.splice(0,_),Object.assign(l,c)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(o){if(this.multiRegexes[o])return this.multiRegexes[o];const l=new t;return this.rules.slice(o).forEach(([_,c])=>l.addRule(_,c)),l.compile(),this.multiRegexes[o]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(o,l){this.rules.push([o,l]),l.type==="begin"&&this.count++}exec(o){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let _=l.exec(o);if(this.resumingScanAtSamePosition()&&!(_&&_.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,_=c.exec(o)}return _&&(this.regexIndex+=_.position+1,this.regexIndex===this.count&&this.considerAll()),_}}function r(s){const o=new a;return s.contains.forEach(l=>o.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&o.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&o.addRule(s.illegal,{type:"illegal"}),o}function i(s,o){const l=s;if(s.isCompiled)return l;[sc,_c,Rc,uc].forEach(c=>c(s,o)),n.compilerExtensions.forEach(c=>c(s,o)),s.__beforeBegin=null,[lc,cc,dc].forEach(c=>c(s,o)),s.isCompiled=!0;let _=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),_=s.keywords.$pattern,delete s.keywords.$pattern),_=_||/\w+/,s.keywords&&(s.keywords=Rl(s.keywords,n.case_insensitive)),l.keywordPatternRe=e(_,!0),o&&(s.begin||(s.begin=/\B|\b/),l.beginRe=e(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=e(l.end)),l.terminatorEnd=Oe(l.end)||"",s.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+o.terminatorEnd)),s.illegal&&(l.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(c){return Cc(c==="self"?s:c)})),s.contains.forEach(function(c){i(c,l)}),s.starts&&i(s.starts,o),l.matcher=r(l),l}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=_e(n.classNameAliases||{}),i(n)}function Cl(n){return n?n.endsWithParent||Cl(n.starts):!1}function Cc(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return _e(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:Cl(n)?_e(n,{starts:n.starts?_e(n.starts):null}):Object.isFrozen(n)?_e(n):n}var Nc="11.11.1";class Oc extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Le=pl,xr=_e,Pr=Symbol("nomatch"),Ic=7,Nl=function(n){const e=Object.create(null),t=Object.create(null),a=[];let r=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let o={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ul};function l(T){return o.noHighlightRe.test(T)}function _(T){let O=T.className+" ";O+=T.parentNode?T.parentNode.className:"";const M=o.languageDetectRe.exec(O);if(M){const w=v(M[1]);return w||(Lr(i.replace("{}",M[1])),Lr("Falling back to no-highlight mode for this block.",T)),w?M[1]:"no-highlight"}return O.split(/\s+/).find(w=>l(w)||v(w))}function c(T,O,M){let w="",B="";typeof O=="object"?(w=T,M=O.ignoreIllegals,B=O.language):(be("10.7.0","highlight(lang, code, ...args) has been deprecated."),be("10.7.0",`Please use highlight(code, options) instead. +import{g as xl}from"./index-bOgutTC1.js";function ul(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],a=typeof t;(a==="object"||a==="function")&&!Object.isFrozen(t)&&ul(t)}),n}class yr{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function pl(n){return n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function _e(n,...e){const t=Object.create(null);for(const a in n)t[a]=n[a];return e.forEach(function(a){for(const r in a)t[r]=a[r]}),t}const Pl="",hr=n=>!!n.scope,wl=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((a,r)=>`${a}${"_".repeat(r+1)}`)].join(" ")}return`${e}${n}`};class kl{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=pl(e)}openNode(e){if(!hr(e))return;const t=wl(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){hr(e)&&(this.buffer+=Pl)}value(){return this.buffer}span(e){this.buffer+=``}}const Dr=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class _r{constructor(){this.rootNode=Dr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=Dr({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(a=>this._walk(e,a)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{_r._collapse(t)}))}}class Ul extends _r{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const a=e.root;t&&(a.scope=`language:${t}`),this.add(a)}toHTML(){return new kl(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Oe(n){return n?typeof n=="string"?n:n.source:null}function ml(n){return me("(?=",n,")")}function Fl(n){return me("(?:",n,")*")}function Bl(n){return me("(?:",n,")?")}function me(...n){return n.map(t=>Oe(t)).join("")}function Gl(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function dr(...n){return"("+(Gl(n).capture?"":"?:")+n.map(a=>Oe(a)).join("|")+")"}function El(n){return new RegExp(n.toString()+"|").exec("").length-1}function Yl(n,e){const t=n&&n.exec(e);return t&&t.index===0}const ql=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ur(n,{joinWith:e}){let t=0;return n.map(a=>{t+=1;const r=t;let i=Oe(a),s="";for(;i.length>0;){const o=ql.exec(i);if(!o){s+=i;break}s+=i.substring(0,o.index),i=i.substring(o.index+o[0].length),o[0][0]==="\\"&&o[1]?s+="\\"+String(Number(o[1])+r):(s+=o[0],o[0]==="("&&t++)}return s}).map(a=>`(${a})`).join(e)}const Hl=/\b\B/,gl="[a-zA-Z]\\w*",pr="[a-zA-Z_]\\w*",Sl="\\b\\d+(\\.\\d+)?",Tl="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",bl="\\b(0b[01]+)",Vl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zl=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=me(e,/.*\b/,n.binary,/\b.*/)),_e({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,a)=>{t.index!==0&&a.ignoreMatch()}},n)},Ie={begin:"\\\\[\\s\\S]",relevance:0},Wl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ie]},Kl={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ie]},$l={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},De=function(n,e,t={}){const a=_e({scope:"comment",begin:n,end:e,contains:[]},t);a.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=dr("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return a.contains.push({begin:me(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a},Ql=De("//","$"),Xl=De("/\\*","\\*/"),Zl=De("#","$"),Jl={scope:"number",begin:Sl,relevance:0},jl={scope:"number",begin:Tl,relevance:0},ec={scope:"number",begin:bl,relevance:0},tc={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ie,{begin:/\[/,end:/\]/,relevance:0,contains:[Ie]}]},nc={scope:"title",begin:gl,relevance:0},ac={scope:"title",begin:pr,relevance:0},rc={begin:"\\.\\s*"+pr,relevance:0},ic=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var ye=Object.freeze({__proto__:null,APOS_STRING_MODE:Wl,BACKSLASH_ESCAPE:Ie,BINARY_NUMBER_MODE:ec,BINARY_NUMBER_RE:bl,COMMENT:De,C_BLOCK_COMMENT_MODE:Xl,C_LINE_COMMENT_MODE:Ql,C_NUMBER_MODE:jl,C_NUMBER_RE:Tl,END_SAME_AS_BEGIN:ic,HASH_COMMENT_MODE:Zl,IDENT_RE:gl,MATCH_NOTHING_RE:Hl,METHOD_GUARD:rc,NUMBER_MODE:Jl,NUMBER_RE:Sl,PHRASAL_WORDS_MODE:$l,QUOTE_STRING_MODE:Kl,REGEXP_MODE:tc,RE_STARTERS_RE:Vl,SHEBANG:zl,TITLE_MODE:nc,UNDERSCORE_IDENT_RE:pr,UNDERSCORE_TITLE_MODE:ac});function oc(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function sc(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function lc(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=oc,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function cc(n,e){Array.isArray(n.illegal)&&(n.illegal=dr(...n.illegal))}function _c(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function dc(n,e){n.relevance===void 0&&(n.relevance=1)}const uc=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(a=>{delete n[a]}),n.keywords=t.keywords,n.begin=me(t.beforeMatch,ml(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},pc=["of","and","for","in","not","or","if","then","parent","list","value"],mc="keyword";function Rl(n,e,t=mc){const a=Object.create(null);return typeof n=="string"?r(t,n.split(" ")):Array.isArray(n)?r(t,n):Object.keys(n).forEach(function(i){Object.assign(a,Rl(n[i],e,i))}),a;function r(i,s){e&&(s=s.map(o=>o.toLowerCase())),s.forEach(function(o){const l=o.split("|");a[l[0]]=[i,Ec(l[0],l[1])]})}}function Ec(n,e){return e?Number(e):gc(n)?0:1}function gc(n){return pc.includes(n.toLowerCase())}const Mr={},pe=n=>{console.error(n)},Lr=(n,...e)=>{console.log(`WARN: ${n}`,...e)},be=(n,e)=>{Mr[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),Mr[`${n}/${e}`]=!0)},he=new Error;function fl(n,e,{key:t}){let a=0;const r=n[t],i={},s={};for(let o=1;o<=e.length;o++)s[o+a]=r[o],i[o+a]=!0,a+=El(e[o-1]);n[t]=s,n[t]._emit=i,n[t]._multi=!0}function Sc(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw pe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),he;if(typeof n.beginScope!="object"||n.beginScope===null)throw pe("beginScope must be object"),he;fl(n,n.begin,{key:"beginScope"}),n.begin=ur(n.begin,{joinWith:""})}}function Tc(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw pe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),he;if(typeof n.endScope!="object"||n.endScope===null)throw pe("endScope must be object"),he;fl(n,n.end,{key:"endScope"}),n.end=ur(n.end,{joinWith:""})}}function bc(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function Rc(n){bc(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Sc(n),Tc(n)}function fc(n){function e(s,o){return new RegExp(Oe(s),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(o?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(o,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,o]),this.matchAt+=El(o)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const o=this.regexes.map(l=>l[1]);this.matcherRe=e(ur(o,{joinWith:"|"}),!0),this.lastIndex=0}exec(o){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(o);if(!l)return null;const _=l.findIndex((d,p)=>p>0&&d!==void 0),c=this.matchIndexes[_];return l.splice(0,_),Object.assign(l,c)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(o){if(this.multiRegexes[o])return this.multiRegexes[o];const l=new t;return this.rules.slice(o).forEach(([_,c])=>l.addRule(_,c)),l.compile(),this.multiRegexes[o]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(o,l){this.rules.push([o,l]),l.type==="begin"&&this.count++}exec(o){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let _=l.exec(o);if(this.resumingScanAtSamePosition()&&!(_&&_.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,_=c.exec(o)}return _&&(this.regexIndex+=_.position+1,this.regexIndex===this.count&&this.considerAll()),_}}function r(s){const o=new a;return s.contains.forEach(l=>o.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&o.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&o.addRule(s.illegal,{type:"illegal"}),o}function i(s,o){const l=s;if(s.isCompiled)return l;[sc,_c,Rc,uc].forEach(c=>c(s,o)),n.compilerExtensions.forEach(c=>c(s,o)),s.__beforeBegin=null,[lc,cc,dc].forEach(c=>c(s,o)),s.isCompiled=!0;let _=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),_=s.keywords.$pattern,delete s.keywords.$pattern),_=_||/\w+/,s.keywords&&(s.keywords=Rl(s.keywords,n.case_insensitive)),l.keywordPatternRe=e(_,!0),o&&(s.begin||(s.begin=/\B|\b/),l.beginRe=e(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=e(l.end)),l.terminatorEnd=Oe(l.end)||"",s.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+o.terminatorEnd)),s.illegal&&(l.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(c){return Cc(c==="self"?s:c)})),s.contains.forEach(function(c){i(c,l)}),s.starts&&i(s.starts,o),l.matcher=r(l),l}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=_e(n.classNameAliases||{}),i(n)}function Cl(n){return n?n.endsWithParent||Cl(n.starts):!1}function Cc(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return _e(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:Cl(n)?_e(n,{starts:n.starts?_e(n.starts):null}):Object.isFrozen(n)?_e(n):n}var Nc="11.11.1";class Oc extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Le=pl,xr=_e,Pr=Symbol("nomatch"),Ic=7,Nl=function(n){const e=Object.create(null),t=Object.create(null),a=[];let r=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let o={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ul};function l(T){return o.noHighlightRe.test(T)}function _(T){let O=T.className+" ";O+=T.parentNode?T.parentNode.className:"";const M=o.languageDetectRe.exec(O);if(M){const w=v(M[1]);return w||(Lr(i.replace("{}",M[1])),Lr("Falling back to no-highlight mode for this block.",T)),w?M[1]:"no-highlight"}return O.split(/\s+/).find(w=>l(w)||v(w))}function c(T,O,M){let w="",B="";typeof O=="object"?(w=T,M=O.ignoreIllegals,B=O.language):(be("10.7.0","highlight(lang, code, ...args) has been deprecated."),be("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),B=T,w=O),M===void 0&&(M=!0);const Q={code:w,language:B};X("before:highlight",Q);const ne=Q.result?Q.result:d(Q.language,Q.code,M);return ne.code=Q.code,X("after:highlight",ne),ne}function d(T,O,M,w){const B=Object.create(null);function Q(N,y){return N.keywords[y]}function ne(){if(!x.keywords){te.addText(Y);return}let N=0;x.keywordPatternRe.lastIndex=0;let y=x.keywordPatternRe.exec(Y),P="";for(;y;){P+=Y.substring(N,y.index);const U=oe.case_insensitive?y[0].toLowerCase():y[0],Z=Q(x,U);if(Z){const[se,Ce]=Z;if(te.addText(P),P="",B[U]=(B[U]||0)+1,B[U]<=Ic&&(ue+=Ce),se.startsWith("_"))P+=y[0];else{const Ae=oe.classNameAliases[se]||se;H(y[0],Ae)}}else P+=y[0];N=x.keywordPatternRe.lastIndex,y=x.keywordPatternRe.exec(Y)}P+=Y.substring(N),te.addText(P)}function ae(){if(Y==="")return;let N=null;if(typeof x.subLanguage=="string"){if(!e[x.subLanguage]){te.addText(Y);return}N=d(x.subLanguage,Y,!0,fe[x.subLanguage]),fe[x.subLanguage]=N._top}else N=E(Y,x.subLanguage.length?x.subLanguage:null);x.relevance>0&&(ue+=N.relevance),te.__addSublanguage(N._emitter,N.language)}function z(){x.subLanguage!=null?ae():ne(),Y=""}function H(N,y){N!==""&&(te.startScope(y),te.addText(N),te.endScope())}function J(N,y){let P=1;const U=y.length-1;for(;P<=U;){if(!N._emit[P]){P++;continue}const Z=oe.classNameAliases[N[P]]||N[P],se=y[P];Z?H(se,Z):(Y=se,ne(),Y=""),P++}}function V(N,y){return N.scope&&typeof N.scope=="string"&&te.openNode(oe.classNameAliases[N.scope]||N.scope),N.beginScope&&(N.beginScope._wrap?(H(Y,oe.classNameAliases[N.beginScope._wrap]||N.beginScope._wrap),Y=""):N.beginScope._multi&&(J(N.beginScope,y),Y="")),x=Object.create(N,{parent:{value:x}}),x}function G(N,y,P){let U=Yl(N.endRe,P);if(U){if(N["on:end"]){const Z=new yr(N);N["on:end"](y,Z),Z.isMatchIgnored&&(U=!1)}if(U){for(;N.endsParent&&N.parent;)N=N.parent;return N}}if(N.endsWithParent)return G(N.parent,y,P)}function K(N){return x.matcher.regexIndex===0?(Y+=N[0],1):(ce=!0,0)}function j(N){const y=N[0],P=N.rule,U=new yr(P),Z=[P.__beforeBegin,P["on:begin"]];for(const se of Z)if(se&&(se(N,U),U.isMatchIgnored))return K(y);return P.skip?Y+=y:(P.excludeBegin&&(Y+=y),z(),!P.returnBegin&&!P.excludeBegin&&(Y=y)),V(P,N),P.returnBegin?0:y.length}function ee(N){const y=N[0],P=O.substring(N.index),U=G(x,N,P);if(!U)return Pr;const Z=x;x.endScope&&x.endScope._wrap?(z(),H(y,x.endScope._wrap)):x.endScope&&x.endScope._multi?(z(),J(x.endScope,N)):Z.skip?Y+=y:(Z.returnEnd||Z.excludeEnd||(Y+=y),z(),Z.excludeEnd&&(Y=y));do x.scope&&te.closeNode(),!x.skip&&!x.subLanguage&&(ue+=x.relevance),x=x.parent;while(x!==U.parent);return U.starts&&V(U.starts,N),Z.returnEnd?0:y.length}function re(){const N=[];for(let y=x;y!==oe;y=y.parent)y.scope&&N.unshift(y.scope);N.forEach(y=>te.openNode(y))}let ie={};function Ee(N,y){const P=y&&y[0];if(Y+=N,P==null)return z(),0;if(ie.type==="begin"&&y.type==="end"&&ie.index===y.index&&P===""){if(Y+=O.slice(y.index,y.index+1),!r){const U=new Error(`0 width match regex (${T})`);throw U.languageName=T,U.badRule=ie.rule,U}return 1}if(ie=y,y.type==="begin")return j(y);if(y.type==="illegal"&&!M){const U=new Error('Illegal lexeme "'+P+'" for mode "'+(x.scope||"")+'"');throw U.mode=x,U}else if(y.type==="end"){const U=ee(y);if(U!==Pr)return U}if(y.type==="illegal"&&P==="")return Y+=` `,1;if(Se>1e5&&Se>y.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Y+=P,P.length}const oe=v(T);if(!oe)throw pe(i.replace("{}",T)),new Error('Unknown language: "'+T+'"');const ge=fc(oe);let de="",x=w||ge;const fe={},te=new o.__emitter(o);re();let Y="",ue=0,le=0,Se=0,ce=!1;try{if(oe.__emitTokens)oe.__emitTokens(O,te);else{for(x.matcher.considerAll();;){Se++,ce?ce=!1:x.matcher.considerAll(),x.matcher.lastIndex=le;const N=x.matcher.exec(O);if(!N)break;const y=O.substring(le,N.index),P=Ee(y,N);le=N.index+P}Ee(O.substring(le))}return te.finalize(),de=te.toHTML(),{language:T,value:de,relevance:ue,illegal:!1,_emitter:te,_top:x}}catch(N){if(N.message&&N.message.includes("Illegal"))return{language:T,value:Le(O),illegal:!0,relevance:0,_illegalBy:{message:N.message,index:le,context:O.slice(le-100,le+100),mode:N.mode,resultSoFar:de},_emitter:te};if(r)return{language:T,value:Le(O),illegal:!1,relevance:0,errorRaised:N,_emitter:te,_top:x};throw N}}function p(T){const O={value:Le(T),illegal:!1,relevance:0,_top:s,_emitter:new o.__emitter(o)};return O._emitter.addText(T),O}function E(T,O){O=O||o.languages||Object.keys(e);const M=p(T),w=O.filter(v).filter(k).map(z=>d(z,T,!1));w.unshift(M);const B=w.sort((z,H)=>{if(z.relevance!==H.relevance)return H.relevance-z.relevance;if(z.language&&H.language){if(v(z.language).supersetOf===H.language)return 1;if(v(H.language).supersetOf===z.language)return-1}return 0}),[Q,ne]=B,ae=Q;return ae.secondBest=ne,ae}function m(T,O,M){const w=O&&t[O]||M;T.classList.add("hljs"),T.classList.add(`language-${w}`)}function S(T){let O=null;const M=_(T);if(l(M))return;if(X("before:highlightElement",{el:T,language:M}),T.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",T);return}if(T.children.length>0&&(o.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(T)),o.throwUnescapedHTML))throw new Oc("One of your code blocks includes unescaped HTML.",T.innerHTML);O=T;const w=O.textContent,B=M?c(w,{language:M,ignoreIllegals:!0}):E(w);T.innerHTML=B.value,T.dataset.highlighted="yes",m(T,M,B.language),T.result={language:B.language,re:B.relevance,relevance:B.relevance},B.secondBest&&(T.secondBest={language:B.secondBest.language,relevance:B.secondBest.relevance}),X("after:highlightElement",{el:T,result:B,text:w})}function g(T){o=xr(o,T)}const b=()=>{A(),be("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function R(){A(),be("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let f=!1;function A(){function T(){A()}if(document.readyState==="loading"){f||window.addEventListener("DOMContentLoaded",T,!1),f=!0;return}document.querySelectorAll(o.cssSelector).forEach(S)}function I(T,O){let M=null;try{M=O(n)}catch(w){if(pe("Language definition for '{}' could not be registered.".replace("{}",T)),r)pe(w);else throw w;M=s}M.name||(M.name=T),e[T]=M,M.rawDefinition=O.bind(null,n),M.aliases&&L(M.aliases,{languageName:T})}function C(T){delete e[T];for(const O of Object.keys(t))t[O]===T&&delete t[O]}function h(){return Object.keys(e)}function v(T){return T=(T||"").toLowerCase(),e[T]||e[t[T]]}function L(T,{languageName:O}){typeof T=="string"&&(T=[T]),T.forEach(M=>{t[M.toLowerCase()]=O})}function k(T){const O=v(T);return O&&!O.disableAutodetect}function D(T){T["before:highlightBlock"]&&!T["before:highlightElement"]&&(T["before:highlightElement"]=O=>{T["before:highlightBlock"](Object.assign({block:O.el},O))}),T["after:highlightBlock"]&&!T["after:highlightElement"]&&(T["after:highlightElement"]=O=>{T["after:highlightBlock"](Object.assign({block:O.el},O))})}function F(T){D(T),a.push(T)}function $(T){const O=a.indexOf(T);O!==-1&&a.splice(O,1)}function X(T,O){const M=T;a.forEach(function(w){w[M]&&w[M](O)})}function q(T){return be("10.7.0","highlightBlock will be removed entirely in v12.0"),be("10.7.0","Please use highlightElement now."),S(T)}Object.assign(n,{highlight:c,highlightAuto:E,highlightAll:A,highlightElement:S,highlightBlock:q,configure:g,initHighlighting:b,initHighlightingOnLoad:R,registerLanguage:I,unregisterLanguage:C,listLanguages:h,getLanguage:v,registerAliases:L,autoDetection:k,inherit:xr,addPlugin:F,removePlugin:$}),n.debugMode=function(){r=!1},n.safeMode=function(){r=!0},n.versionString=Nc,n.regex={concat:me,lookahead:ml,either:dr,optional:Bl,anyNumberOfTimes:Fl};for(const T in ye)typeof ye[T]=="object"&&ul(ye[T]);return Object.assign(n,ye),n},Re=Nl({});Re.newInstance=()=>Nl({});var Ac=Re;Re.HighlightJS=Re;Re.default=Re;var xe,wr;function vc(){if(wr)return xe;wr=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",i="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",l="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",E="разделительстраниц разделительстрок символтабуляции "+"ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон "+"acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища "+"wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",B="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля "+"автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы "+"виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента "+"авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных "+"использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц "+"отображениевремениэлементовпланировщика "+"типфайлаформатированногодокумента "+"обходрезультатазапроса типзаписизапроса "+"видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов "+"доступкфайлу режимдиалогавыборафайла режимоткрытияфайла "+"типизмеренияпостроителязапроса "+"видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений "+"wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson "+"видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных "+"важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения "+"режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации "+"расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии "+"кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip "+"звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp "+"направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса "+"httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений "+"важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",ae="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",z="null истина ложь неопределено",H=e.inherit(e.NUMBER_MODE),J={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},V={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},G={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},K=e.inherit(e.C_LINE_COMMENT_MODE),j={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,keyword:i+l},contains:[K]},ee={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},re={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:"знач",literal:z},contains:[H,J,V]},K]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:i,built_in:E,class:B,type:ae,literal:z},contains:[j,re,K,ee,H,J,V,G]}}return xe=n,xe}var Pe,kr;function yc(){if(kr)return Pe;kr=1;function n(e){const t=e.regex,a=/^[a-zA-Z][a-zA-Z0-9-]*/,r=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],i=e.COMMENT(/;/,/$/),s={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},o={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},l={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},_={scope:"symbol",match:/%[si](?=".*")/},c={scope:"attribute",match:t.concat(a,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:r,contains:[{scope:"operator",match:/=\/?/},c,i,s,o,l,_,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return Pe=n,Pe}var we,Ur;function hc(){if(Ur)return we;Ur=1;function n(e){const t=e.regex,a=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:t.concat(/"/,t.either(...a)),end:/"/,keywords:a,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return we=n,we}var ke,Fr;function Dc(){if(Fr)return ke;Fr=1;function n(e){const t=e.regex,a=/[a-zA-Z_$][a-zA-Z0-9_$]*/,r=t.concat(a,t.concat("(\\.",a,")*")),i=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,s={className:"rest_arg",begin:/[.]{3}/,end:a,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s]},{begin:t.concat(/:\s*/,i)}]},e.METHOD_GUARD],illegal:/#/}}return ke=n,ke}var Ue,Br;function Mc(){if(Br)return Ue;Br=1;function n(e){const t="\\d(_|\\d)*",a="[eE][-+]?"+t,r=t+"(\\."+t+")?("+a+")?",i="\\w+",o="\\b("+(t+"#"+i+"(\\."+i+")?#("+a+")?")+"|"+r+")",l="[A-Za-z](_?[A-Za-z0-9.])*",_=`[]\\{\\}%#'"`,c=e.COMMENT("--","$"),d={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:_,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:l,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[c,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:o,relevance:0},{className:"symbol",begin:"'"+l},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:_},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[c,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:_},d,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:_}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:_},d]}}return Ue=n,Ue}var Fe,Gr;function Lc(){if(Gr)return Fe;Gr=1;function n(e){const t={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},a={className:"symbol",begin:"[a-zA-Z0-9_]+@"},r={className:"keyword",begin:"<",end:">",contains:[t,a]};return t.contains=[r],a.contains=[r],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},t,a,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return Fe=n,Fe}var Be,Yr;function xc(){if(Yr)return Be;Yr=1;function n(e){const t={className:"number",begin:/[$%]\d+/},a={className:"number",begin:/\b\d+/},r={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},i={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[r,i,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},r,a,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return Be=n,Be}var Ge,qr;function Pc(){if(qr)return Ge;qr=1;function n(e){const t=e.regex,a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,a]},i=e.COMMENT(/--/,/$/),s=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",i]}),o=[i,s,e.HASH_COMMENT_MODE],l=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],_=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[a,e.C_NUMBER_MODE,{className:"built_in",begin:t.concat(/\b/,t.either(..._),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:t.concat(/\b/,t.either(...l),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,r]},...o],illegal:/\/\/|->|=>|\[\[/}}return Ge=n,Ge}var Ye,Hr;function wc(){if(Hr)return Ye;Hr=1;function n(e){const t=e.regex,a="[A-Za-z_][0-9A-Za-z_]*",r={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","of","return","switch","try","var","void","while"],literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","DistanceToCoordinate","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureInFilter","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","FilterBySubtypeCode","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","KnowledgeGraphByPortalItem","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","MeasureToCoordinate","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","PointToCoordinate","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","QueryGraph","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeFilename","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When|0","Within","Year|0"]},i=["aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","graph","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","userInput","value","variables","view"],s={className:"symbol",begin:"\\$"+t.either(...i)},o={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},l={className:"subst",begin:"\\$\\{",end:"\\}",keywords:r,contains:[]},_={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,l]};l.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,o,e.REGEXP_MODE];const c=l.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:r,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,o,{begin:/[{,]\s*/,relevance:0,contains:[{begin:a+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:a,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+a+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:a},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:c}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:a}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:c}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return Ye=n,Ye}var qe,Vr;function kc(){if(Vr)return qe;Vr=1;function n(t){const a=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",l="(?!struct)("+i+"|"+a.optional(s)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",_={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},E={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},m={className:"title",begin:a.optional(s)+t.IDENT_RE,relevance:0},S=a.optional(s)+t.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],R=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],f=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:b,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:R},h={className:"function.dispatch",relevance:0,keywords:{_hint:f},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},v=[h,E,_,r,t.C_BLOCK_COMMENT_MODE,p,d],L={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:v.concat([{begin:/\(/,end:/\)/,keywords:C,contains:v.concat(["self"]),relevance:0}]),relevance:0},k={className:"function",begin:"("+l+"[\\*&\\s]+)+"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:C,relevance:0},{begin:S,returnBegin:!0,contains:[m],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[d,p]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,d,p,_,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,d,p,_]}]},_,r,t.C_BLOCK_COMMENT_MODE,E]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"",keywords:C,contains:["self",_]},{begin:t.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function e(t){const a={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=n(t),i=r.keywords;return i.type=[...i.type,...a.type],i.literal=[...i.literal,...a.literal],i.built_in=[...i.built_in,...a.built_in],i._hints=a._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}return qe=e,qe}var He,zr;function Uc(){if(zr)return He;zr=1;function n(e){const t={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},t,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return He=n,He}var Ve,Wr;function Fc(){if(Wr)return Ve;Wr=1;function n(e){const t=e.regex,a=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(s,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"string"}),_=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[s,_,l,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[s,o,_,l]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[_]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Ve=n,Ve}var ze,Kr;function Bc(){if(Kr)return ze;Kr=1;function n(e){const t=e.regex,a={begin:"^'{3,}[ \\t]*$",relevance:10},r=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:t.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],s=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:t.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],o={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},l={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},l,o,...r,...i,...s,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},a,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return ze=n,ze}var We,$r;function Gc(){if($r)return We;$r=1;function n(e){const t=e.regex,a=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],r=["get","set","args","call"];return{name:"AspectJ",keywords:a,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:a.concat(r),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:a,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:a.concat(r),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:a,excludeEnd:!0,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:a,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return We=n,We}var Ke,Qr;function Yc(){if(Qr)return Ke;Qr=1;function n(e){const t={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return Ke=n,Ke}var $e,Xr;function qc(){if(Xr)return $e;Xr=1;function n(e){const t="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",a=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],r="True False And Null Not Or Default",i="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",s={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},o={begin:"\\$[A-z0-9_]+"},l={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},_={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},c={className:"meta",begin:"#",end:"$",keywords:{keyword:a},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[l,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},l,s]},d={className:"symbol",begin:"@[A-z0-9_]+"},p={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[o,l,_]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:t,built_in:i,literal:r},contains:[s,o,l,_,c,d,p]}}return $e=n,$e}var Qe,Zr;function Hc(){if(Zr)return Qe;Zr=1;function n(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return Qe=n,Qe}var Xe,Jr;function Vc(){if(Jr)return Xe;Jr=1;function n(e){const t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:a},contains:[t,r,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return Xe=n,Xe}var Ze,jr;function zc(){if(jr)return Ze;jr=1;function n(e){const t=e.UNDERSCORE_IDENT_RE,s={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},o={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s};return{name:"X++",aliases:["x++"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},o]}}return Ze=n,Ze}var Je,ei;function Wc(){if(ei)return Je;ei=1;function n(e){const t=e.regex,a={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[a]}]};Object.assign(a,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},s=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},l={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,i]};i.contains.push(l);const _={match:/\\"/},c={className:"string",begin:/'/,end:/'/},d={match:/\\'/},p={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,a]},E=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],m=e.SHEBANG({binary:`(${E.join("|")})`,relevance:10}),S={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},g=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],b=["true","false"],R={match:/(\/[a-z._-]+)+/},f=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],A=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],I=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],C=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:g,literal:b,built_in:[...f,...A,"set","shopt",...I,...C]},contains:[m,e.SHEBANG(),S,p,s,o,R,l,_,c,d,a]}}return Je=n,Je}var je,ti;function Kc(){if(ti)return je;ti=1;function n(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[{scope:"string",begin:/"/,end:/"|$/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return je=n,je}var et,ni;function $c(){if(ni)return et;ni=1;function n(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin://},{begin:/::=/,end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}return et=n,et}var tt,ai;function Qc(){if(ai)return tt;ai=1;function n(e){const t={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[t]},t]}}return tt=n,tt}var nt,ri;function Xc(){if(ri)return nt;ri=1;function n(e){const t=e.regex,a=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},m=t.optional(i)+e.IDENT_RE+"\\s*\\(",b={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},R=[p,l,a,e.C_BLOCK_COMMENT_MODE,d,c],f={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:R.concat([{begin:/\(/,end:/\)/,keywords:b,contains:R.concat(["self"]),relevance:0}]),relevance:0},A={begin:"("+o+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:b,relevance:0},{begin:m,returnBegin:!0,contains:[e.inherit(E,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,c,d,l,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,c,d,l]}]},l,a,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C",aliases:["h"],keywords:b,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:p,strings:c,keywords:b}}}return nt=n,nt}var at,ii;function Zc(){if(ii)return at;ii=1;function n(e){const t=e.regex,a=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],r="false true",i=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],s={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"string",begin:/(#\d+)+/},l={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},_={className:"string",begin:'"',end:'"'},c={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:a,contains:[s,o,e.NUMBER_MODE]},...i]},d=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],p={match:[/OBJECT/,/\s+/,t.either(...d),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:a,literal:r},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},s,o,l,_,e.NUMBER_MODE,p,c]}}return at=n,at}var rt,oi;function Jc(){if(oi)return rt;oi=1;function n(e){const t=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],a=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],r=["true","false"],i={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:t,type:a,literal:r},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},i]}}return rt=n,rt}var it,si;function jc(){if(si)return it;si=1;function n(e){const t=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],a=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],r=["doc","by","license","see","throws","tagged"],i={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},s=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[i]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return i.contains=s,{name:"Ceylon",keywords:{keyword:t.concat(a),meta:r},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(s)}}return it=n,it}var ot,li;function e_(){if(li)return ot;li=1;function n(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return ot=n,ot}var st,ci;function t_(){if(ci)return st;ci=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&'",a="[#]?["+t+"]["+t+"0-9/;:$#]*",r="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",i={$pattern:a,built_in:r+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},s={begin:a,relevance:0},o={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},l={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},_={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d={scope:"punctuation",match:/,/,relevance:0},p=e.COMMENT(";","$",{relevance:0}),E={className:"literal",begin:/\b(true|false|nil)\b/},m={begin:"\\[|(#::?"+a+")?\\{",end:"[\\]\\}]",relevance:0},S={className:"symbol",begin:"[:]{1,2}"+a},g={begin:"\\(",end:"\\)"},b={endsWithParent:!0,relevance:0},R={keywords:i,className:"name",begin:a,relevance:0,starts:b},f=[d,g,l,_,c,p,S,m,o,E,s],A={beginKeywords:r,keywords:{$pattern:a,keyword:r},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:a,relevance:0,excludeEnd:!0,endsParent:!0}].concat(f)};return g.contains=[A,R,b],b.contains=f,m.contains=f,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[d,g,l,_,c,p,S,m,o,E]}}return st=n,st}var lt,_i;function n_(){if(_i)return lt;_i=1;function n(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return lt=n,lt}var ct,di;function a_(){if(di)return ct;di=1;function n(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return ct=n,ct}var _t,ui;function r_(){if(ui)return _t;ui=1;const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],e=["true","false","null","undefined","NaN","Infinity"],t=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],a=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=[].concat(r,t,a);function s(o){const l=["npm","print"],_=["yes","no","on","off"],c=["then","unless","until","loop","by","when","and","or","is","isnt","not"],d=["var","const","let","function","static"],p=I=>C=>!I.includes(C),E={keyword:n.concat(c).filter(p(d)),literal:e.concat(_),built_in:i.concat(l)},m="[A-Za-z$_][0-9A-Za-z$_]*",S={className:"subst",begin:/#\{/,end:/\}/,keywords:E},g=[o.BINARY_NUMBER_MODE,o.inherit(o.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,S]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,S]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[S,o.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+m},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];S.contains=g;const b=o.inherit(o.TITLE_MODE,{begin:m}),R="(\\(.*\\)\\s*)?\\B[-=]>",f={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:E,contains:["self"].concat(g)}]},A={variants:[{match:[/class\s+/,m,/\s+extends\s+/,m]},{match:[/class\s+/,m]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:E};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:E,illegal:/\/\*/,contains:[...g,o.COMMENT("###","###"),o.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+m+"\\s*=\\s*"+R,end:"[-=]>",returnBegin:!0,contains:[b,f]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:R,end:"[-=]>",returnBegin:!0,contains:[f]}]},A,{begin:m+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return _t=s,_t}var dt,pi;function i_(){if(pi)return dt;pi=1;function n(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return dt=n,dt}var ut,mi;function o_(){if(mi)return ut;mi=1;function n(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}return ut=n,ut}var pt,Ei;function s_(){if(Ei)return pt;Ei=1;function n(e){const t=e.regex,a=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",l={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},m=t.optional(i)+e.IDENT_RE+"\\s*\\(",S=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],R=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],I={type:g,keyword:S,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},C={className:"function.dispatch",relevance:0,keywords:{_hint:R},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},h=[C,p,l,a,e.C_BLOCK_COMMENT_MODE,d,c],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:I,contains:h.concat([{begin:/\(/,end:/\)/,keywords:I,contains:h.concat(["self"]),relevance:0}]),relevance:0},L={className:"function",begin:"("+o+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:I,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:I,relevance:0},{begin:m,returnBegin:!0,contains:[E],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,c,d,l,{begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,c,d,l]}]},l,a,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:I,illegal:"",keywords:I,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:I},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return pt=n,pt}var mt,gi;function l_(){if(gi)return mt;gi=1;function n(e){const t="primitive rsc_template",a="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:t,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+a.split(" ").join("|")+")\\s+",keywords:a,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}return mt=n,mt}var Et,Si;function c_(){if(Si)return Et;Si=1;function n(e){const t="(_?[ui](8|16|32|64|128))?",a="(_?f(32|64))?",r="[a-zA-Z_]\\w*[!?=]?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",s="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",o={$pattern:r,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},l={className:"subst",begin:/#\{/,end:/\}/,keywords:o},_={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},c={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:o};function d(R,f){const A=[{begin:R,end:f}];return A[0].contains=A,A}const p={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:d("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},E={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%q<",end:">",contains:d("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},m={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},S={className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"%r\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%r<",end:">",contains:d("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},g={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},b=[c,p,E,S,m,g,_,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[p,{begin:i}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+a+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return l.contains=b,c.contains=b.slice(1),{name:"Crystal",aliases:["cr"],keywords:o,contains:b}}return Et=n,Et}var gt,Ti;function __(){if(Ti)return gt;Ti=1;function n(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],a=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(s),built_in:t,literal:r},l=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),_={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},p=e.inherit(d,{illegal:/\n/}),E={className:"subst",begin:/\{/,end:/\}/,keywords:o},m=e.inherit(E,{illegal:/\n/}),S={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,m]},g={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},E]},b=e.inherit(g,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},m]});E.contains=[g,S,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.C_BLOCK_COMMENT_MODE],m.contains=[b,S,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const R={variants:[c,g,S,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},A=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",I={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},R,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},l,f,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,f,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+A+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:a.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,f],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[R,_,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},I]}}return gt=n,gt}var St,bi;function d_(){if(bi)return St;bi=1;function n(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return St=n,St}var Tt,Ri;function u_(){if(Ri)return Tt;Ri=1;const n=_=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:_.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:_.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...e,...t],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function l(_){const c=_.regex,d=n(_),p={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},E="and or not only",m=/@-?\w[\w]*(-\w+)*/,S="[a-zA-Z-][a-zA-Z0-9_-]*",g=[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[d.BLOCK_COMMENT,p,d.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+S,relevance:0},d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[d.BLOCK_COMMENT,d.HEXCOLOR,d.IMPORTANT,d.CSS_NUMBER_MODE,...g,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...g,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},d.FUNCTION_DISPATCH]},{begin:c.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:m},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:E,attribute:r.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...g,d.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b"}]}}return Tt=l,Tt}var bt,fi;function p_(){if(fi)return bt;fi=1;function n(e){const t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},a="(0|[1-9][\\d_]*)",r="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",i="0[bB][01_]+",s="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",o="0[xX]"+s,l="([eE][+-]?"+r+")",_="("+r+"(\\.\\d*|"+l+")|\\d+\\."+r+"|\\."+a+l+"?)",c="(0[xX]("+s+"\\."+s+"|\\.?"+s+")[pP][+-]?"+r+")",d="("+a+"|"+i+"|"+o+")",p="("+c+"|"+_+")",E=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,m={className:"number",begin:"\\b"+d+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},S={className:"number",begin:"\\b("+p+"([fF]|L|i|[fF]i|Li)?|"+d+"(i|[fF]i|Li))",relevance:0},g={className:"string",begin:"'("+E+"|.)",end:"'",illegal:"."},R={className:"string",begin:'"',contains:[{begin:E,relevance:0}],end:'"[cwd]?'},f={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},A={className:"string",begin:"`",end:"`[cwd]?"},I={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},C={className:"string",begin:'q"\\{',end:'\\}"'},h={className:"meta",begin:"^#!",end:"$",relevance:5},v={className:"meta",begin:"#(line)",end:"$",relevance:5},L={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},k=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,k,I,R,f,A,C,S,m,g,h,v,L]}}return bt=n,bt}var Rt,Ci;function m_(){if(Ci)return Rt;Ci=1;function n(e){const t=e.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},l=/[A-Za-z][A-Za-z0-9+.-]*/,_={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,l,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=e.inherit(c,{contains:[]}),E=e.inherit(d,{contains:[]});c.contains.push(E),d.contains.push(p);let m=[a,_];return[c,d,p,E].forEach(R=>{R.contains=R.contains.concat(m)}),m=m.concat(c,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:m},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:m}]}]},a,s,c,d,{className:"quote",begin:"^>\\s+",contains:m,end:"$"},i,r,_,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Rt=n,Rt}var ft,Ni;function E_(){if(Ni)return ft;Ni=1;function n(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},a={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},r={className:"number",relevance:0,variants:[{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/},{match:/\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/}]},i={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,a]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,a]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,a]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,a]}]};a.contains=[r,i];const s=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=s.map(c=>`${c}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:s.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[i,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},r,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return ft=n,ft}var Ct,Oi;function g_(){if(Oi)return Ct;Oi=1;function n(e){const t=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],a=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"number",relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},o={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},l={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},_={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[i,o,r].concat(a)},r].concat(a)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,o,s,l,_,r].concat(a)}}return Ct=n,Ct}var Nt,Ii;function S_(){if(Ii)return Nt;Ii=1;function n(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return Nt=n,Nt}var Ot,Ai;function T_(){if(Ai)return Ot;Ai=1;function n(e){const t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[t]}]}}return Ot=n,Ot}var It,vi;function b_(){if(vi)return It;vi=1;function n(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return It=n,It}var At,yi;function R_(){if(yi)return At;yi=1;function n(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i={className:"variable",begin:/&[a-z\d_]*\b/},s={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},o={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},l={className:"params",relevance:0,begin:"<",end:">",contains:[a,i]},_={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},c={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},d={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},p={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},E={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[c,i,s,o,_,p,d,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,t,r,E,{begin:e.IDENT_RE+"::",keywords:""}]}}return ht=n,ht}var Dt,Li;function O_(){if(Li)return Dt;Li=1;function n(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}return Dt=n,Dt}var Mt,xi;function I_(){if(xi)return Mt;xi=1;function n(e){const t=e.COMMENT(/\(\*/,/\*\)/),a={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},i={begin:/=/,end:/[.;]/,contains:[t,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,a,i]}}return Mt=n,Mt}var Lt,Pi;function A_(){if(Pi)return Lt;Pi=1;function n(e){const t=e.regex,a="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",o={$pattern:a,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},l={className:"subst",begin:/#\{/,end:/\}/,keywords:o},_={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},d={match:/\\[\s\S]/,scope:"char.escape",relevance:0},p=`[/|([{<"']`,E=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],m=C=>({scope:"char.escape",begin:t.concat(/\\/,C),relevance:0}),S={className:"string",begin:"~[a-z](?="+p+")",contains:E.map(C=>e.inherit(C,{contains:[m(C.end),d,l]}))},g={className:"string",begin:"~[A-Z](?="+p+")",contains:E.map(C=>e.inherit(C,{contains:[m(C.end)]}))},b={className:"regex",variants:[{begin:"~r(?="+p+")",contains:E.map(C=>e.inherit(C,{end:t.concat(C.end,/[uismxfU]{0,7}/),contains:[m(C.end),d,l]}))},{begin:"~R(?="+p+")",contains:E.map(C=>e.inherit(C,{end:t.concat(C.end,/[uismxfU]{0,7}/),contains:[m(C.end)]}))}]},R={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},f={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},A=e.inherit(f,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),I=[R,b,g,S,e.HASH_COMMENT_MODE,A,f,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[R,{begin:r}],relevance:0},{className:"symbol",begin:a+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},_,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return l.contains=I,{name:"Elixir",aliases:["ex","exs"],keywords:o,contains:I}}return Lt=n,Lt}var xt,wi;function v_(){if(wi)return xt;wi=1;function n(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},a={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},r={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},i={begin:/\{/,end:/\}/,contains:r.contains},s={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[a,r,i,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},s,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,a,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}return xt=n,xt}var Pt,ki;function y_(){if(ki)return Pt;ki=1;function n(e){const t=e.regex,a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},l={className:"doctag",begin:"@[A-Za-z]+"},_={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[l]}),e.COMMENT("^=begin","^=end",{contains:[l],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:o},p={className:"string",contains:[e.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,d]})]}]},E="[1-9](_?[0-9])*|0",m="[0-9](_?[0-9])*",S={className:"number",relevance:0,variants:[{begin:`\\b(${E})(\\.(${m}))?([eE][+-]?(${m})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},g={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},h=[p,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[g]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[p,{begin:a}],relevance:0},S,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(_,c),relevance:0}].concat(_,c);d.contains=h,g.contains=h;const D=[{begin:/^\s*=>/,starts:{end:"$",contains:h}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:h}}];return c.unshift(_),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(D).concat(c).concat(h)}}return Pt=n,Pt}var wt,Ui;function h_(){if(Ui)return wt;Ui=1;function n(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return wt=n,wt}var kt,Fi;function D_(){if(Fi)return kt;Fi=1;function n(e){const t=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:t.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return kt=n,kt}var Ut,Bi;function M_(){if(Bi)return Ut;Bi=1;function n(e){const t="[a-z'][a-zA-Z0-9_']*",a="("+t+":"+t+"|"+t+")",r={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor maybe else",literal:"false true"},i=e.COMMENT("%","$"),s={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},o={begin:"fun\\s+"+t+"/\\d+"},l={begin:a+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:a,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},_={begin:/\{/,end:/\}/,relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},d={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},p={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},E={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},m={scope:"string",match:/"""("*)(?!")[\s\S]*?"""\1/},S={scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{match:/~\w?"""("*)(?!")[\s\S]*?"""\1/},{begin:/~\w?\(/,end:/\)/},{begin:/~\w?\[/,end:/\]/},{begin:/~\w?{/,end:/}/},{begin:/~\w?/},{begin:/~\w?\//,end:/\//},{begin:/~\w?\|/,end:/\|/},{begin:/~\w?'/,end:/'/},{begin:/~\w?"/,end:/"/},{begin:/~\w?`/,end:/`/},{begin:/~\w?#/,end:/#/}]},g={beginKeywords:"fun receive if try case maybe",end:"end",keywords:r};g.contains=[i,o,e.inherit(e.APOS_STRING_MODE,{className:""}),g,l,S,m,e.QUOTE_STRING_MODE,s,_,c,d,p,E];const b=[i,o,g,l,S,m,e.QUOTE_STRING_MODE,s,_,c,d,p,E];l.contains[1].contains=b,_.contains=b,p.contains[1].contains=b;const R=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-moduledoc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec","-on_load","-nifs"],f={className:"params",begin:"\\(",end:"\\)",contains:b};return{name:"Erlang",aliases:["erl"],keywords:r,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[f,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:r,contains:b}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:R.map(A=>`${A}|1.5`).join(" ")},contains:[f,S,m,e.QUOTE_STRING_MODE]},s,S,m,e.QUOTE_STRING_MODE,p,c,d,_,E,{begin:/\.$/}]}}return Ut=n,Ut}var Ft,Gi;function L_(){if(Gi)return Ft;Gi=1;function n(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ARRAYTOTEXT","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","BYCOL","BYROW","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CHOOSECOLS","CHOOSEROWS","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DROP","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPAND","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE","F.DIST","FDIST","F.DIST.RT","FILTER","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HSTACK","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGE","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISOMITTED","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LAMBDA","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LET","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MAKEARRAY","MAP","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDB","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDARRAY","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REDUCE","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SCAN","SEARCH","SEARCHB","SEC","SECH","SECOND","SEQUENCE","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SORT","SORTBY","SQRT","SQRTPI","SQL.REQUEST","STANDARDIZE","STOCKHISTORY","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TAKE","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTAFTER","TEXTBEFORE","TEXTJOIN","TEXTSPLIT","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TOCOL","TOROW","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UNIQUE","UPPER","VALUE","VALUETOTEXT","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","VSTACK","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","WRAPCOLS","WRAPROWS","XIRR","XLOOKUP","XMATCH","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return Ft=n,Ft}var Bt,Yi;function x_(){if(Yi)return Bt;Yi=1;function n(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return Bt=n,Bt}var Gt,qi;function P_(){if(qi)return Gt;qi=1;function n(e){const t={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},a={className:"string",variants:[{begin:'"',end:'"'}]},i={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t,a,i,e.C_NUMBER_MODE]}}return Gt=n,Gt}var Yt,Hi;function w_(){if(Hi)return Yt;Hi=1;function n(e){const t=e.regex,a={className:"params",begin:"\\(",end:"\\)"},r={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},i=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,s,i)},{begin:t.concat(/\b\d+/,s,i)},{begin:t.concat(/\.\d+/,s,i)}],relevance:0},l={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,a]},_={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[_,l,{begin:/^C\s*=(?!=)/,relevance:0},r,o]}}return Yt=n,Yt}var qt,Vi;function k_(){if(Vi)return qt;Vi=1;function n(o){return new RegExp(o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function e(o){return o?typeof o=="string"?o:o.source:null}function t(o){return a("(?=",o,")")}function a(...o){return o.map(_=>e(_)).join("")}function r(o){const l=o[o.length-1];return typeof l=="object"&&l.constructor===Object?(o.splice(o.length-1,1),l):{}}function i(...o){return"("+(r(o).capture?"":"?:")+o.map(c=>e(c)).join("|")+")"}function s(o){const l=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],_={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},c=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],d=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],p=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],E=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],S={keyword:l,literal:d,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":p},b={variants:[o.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),o.C_LINE_COMMENT_MODE]},R=/[a-zA-Z_](\w|')*/,f={scope:"variable",begin:/``/,end:/``/},A=/\B('|\^)/,I={scope:"symbol",variants:[{match:a(A,/``.*?``/)},{match:a(A,o.UNDERSCORE_IDENT_RE)}],relevance:0},C=function({includeEqual:H}){let J;H?J="!%&*+-/<=>@^|~?":J="!%&*+-/<>@^|~?";const V=Array.from(J),G=a("[",...V.map(n),"]"),K=i(G,/\./),j=a(K,t(K)),ee=i(a(j,K,"*"),a(G,"+"));return{scope:"operator",match:i(ee,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},h=C({includeEqual:!0}),v=C({includeEqual:!1}),L=function(H,J){return{begin:a(H,t(a(/\s*/,i(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:J,end:t(i(/\n/,/=/)),relevance:0,keywords:o.inherit(S,{type:E}),contains:[b,I,o.inherit(f,{scope:null}),v]}},k=L(/:/,"operator"),D=L(/\bof\b/,"keyword"),F={begin:[/(^|\s+)/,/type/,/\s+/,R],beginScope:{2:"keyword",4:"title.class"},end:t(/\(|=|$/),keywords:S,contains:[b,o.inherit(f,{scope:null}),I,{scope:"operator",match:/<|>/},k]},$={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},X={begin:[/^\s*/,a(/#/,i(...c)),/\b/],beginScope:{2:"meta"},end:t(/\s|$/)},q={variants:[o.BINARY_NUMBER_MODE,o.C_NUMBER_MODE]},T={scope:"string",begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE]},O={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},o.BACKSLASH_ESCAPE]},M={scope:"string",begin:/"""/,end:/"""/,relevance:2},w={scope:"subst",begin:/\{/,end:/\}/,keywords:S},B={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},o.BACKSLASH_ESCAPE,w]},Q={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},o.BACKSLASH_ESCAPE,w]},ne={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},w],relevance:2},ae={scope:"string",match:a(/'/,i(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return w.contains=[Q,B,O,T,ae,_,b,f,k,$,X,q,I,h],{name:"F#",aliases:["fs","f#"],keywords:S,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[_,{variants:[ne,Q,B,M,O,T,ae]},b,f,F,{scope:"meta",begin:/\[\]/,relevance:2,contains:[f,M,O,T,ae,q]},D,k,$,X,q,I,h]}}return qt=s,qt}var Ht,zi;function U_(){if(zi)return Ht;zi=1;function n(e){const t=e.regex,a={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},r={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},s={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},o={begin:"/",end:"/",keywords:a,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},l=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,_={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[s,o,{className:"comment",begin:t.concat(l,t.anyNumberOfTimes(t.concat(/[ ]+/,l))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:a,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,_]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[_]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},r,i]},e.C_NUMBER_MODE,i]}}return Ht=n,Ht}var Vt,Wi;function F_(){if(Wi)return Vt;Wi=1;function n(e){const t={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},a=e.COMMENT("@","@"),r={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a]},i={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},s=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,i]}],o={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},l=function(E,m,S){const g=e.inherit({className:"function",beginKeywords:E,end:m,excludeEnd:!0,contains:[].concat(s)},{});return g.contains.push(o),g.contains.push(e.C_NUMBER_MODE),g.contains.push(e.C_BLOCK_COMMENT_MODE),g.contains.push(a),g},_={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},c={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},d={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},_,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},p={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,_,d,c,"self"]};return d.contains.push(p),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,c,r,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},l("proc keyword",";"),l("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,a,p]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},d,i]}}return Vt=n,Vt}var zt,Ki;function B_(){if(Ki)return zt;Ki=1;function n(e){const t=e.regex,a={$pattern:/[A-Z]+|%/,keyword:["THEN","ELSE","ENDIF","IF","GOTO","DO","WHILE","WH","END","CALL","SUB","ENDSUB","EQ","NE","LT","GT","LE","GE","AND","OR","XOR","%"],built_in:["ATAN","ABS","ACOS","ASIN","COS","EXP","FIX","FUP","ROUND","LN","SIN","SQRT","TAN","EXISTS"]},r=/\b/;function i(m,S){if(m.index===0)return;const g=m.input[m.index-1];g>="0"&&g<="9"||g!=="_"&&S.ignoreMatch()}const s=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,o=/[GM]\s*\d+(\.\d+)?/,l=/T\s*\d+/,_=/O\s*\d+/,c=/O<.+>/,d=/[ABCUVWXYZ]\s*/,p=/[FHIJKPQRS]\s*/,E=[e.COMMENT(/\(/,/\)/),e.COMMENT(/;/,/$/),e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{scope:"title.function",variants:[{match:t.concat(r,o)},{begin:o,"on:begin":i},{match:t.concat(r,l)},{begin:l,"on:begin":i}]},{scope:"symbol",variants:[{match:t.concat(r,_)},{begin:_,"on:begin":i},{match:t.concat(r,c)},{begin:c,"on:begin":i},{match:/\*\s*\d+\s*$/}]},{scope:"operator",match:/^N\s*\d+/},{scope:"variable",match:/-?#\s*\d+/},{scope:"property",variants:[{match:t.concat(r,d,s)},{begin:t.concat(d,s),"on:begin":i}]},{scope:"params",variants:[{match:t.concat(r,p,s)},{begin:t.concat(p,s),"on:begin":i}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,disableAutodetect:!0,keywords:a,contains:E}}return zt=n,zt}var Wt,$i;function G_(){if($i)return Wt;$i=1;function n(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}return Wt=n,Wt}var Kt,Qi;function Y_(){if(Qi)return Kt;Qi=1;function n(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return Kt=n,Kt}var $t,Xi;function q_(){if(Xi)return $t;Xi=1;function n(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","new","not","or","repeat","return","static","switch","then","until","var","while","with","xor"],built_in:["abs","alarm_get","alarm_set","angle_difference","animcurve_channel_evaluate","animcurve_channel_new","animcurve_create","animcurve_destroy","animcurve_exists","animcurve_get","animcurve_get_channel","animcurve_get_channel_index","animcurve_point_new","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_all","array_any","array_concat","array_contains","array_contains_ext","array_copy","array_copy_while","array_create","array_create_ext","array_delete","array_equals","array_filter","array_filter_ext","array_find_index","array_first","array_foreach","array_get","array_get_index","array_insert","array_intersection","array_last","array_length","array_map","array_map_ext","array_pop","array_push","array_reduce","array_resize","array_reverse","array_reverse_ext","array_set","array_shuffle","array_shuffle_ext","array_sort","array_union","array_unique","array_unique_ext","asset_add_tags","asset_clear_tags","asset_get_ids","asset_get_index","asset_get_tags","asset_get_type","asset_has_any_tag","asset_has_tags","asset_remove_tags","audio_bus_clear_emitters","audio_bus_create","audio_bus_get_emitters","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_effect_create","audio_emitter_bus","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_bus","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_get_assets","audio_group_get_gain","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_pause_all","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_sound","audio_play_sound_at","audio_play_sound_ext","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_audio_group","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_loop","audio_sound_get_loop_end","audio_sound_get_loop_start","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_is_playable","audio_sound_length","audio_sound_loop","audio_sound_loop_end","audio_sound_loop_start","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_paused","audio_sync_group_is_playing","audio_system_is_available","audio_system_is_initialised","base64_decode","base64_encode","bool","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_compress","buffer_copy","buffer_copy_from_vertex_buffer","buffer_copy_stride","buffer_crc32","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_decompress","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_set_used_size","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","call_cancel","call_later","camera_apply","camera_copy_transforms","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","db_to_lin","dbg_add_font_glyphs","dbg_button","dbg_checkbox","dbg_color","dbg_colour","dbg_drop_down","dbg_same_line","dbg_section","dbg_section_delete","dbg_section_exists","dbg_slider","dbg_slider_int","dbg_sprite","dbg_text","dbg_text_input","dbg_view","dbg_view_delete","dbg_view_exists","dbg_watch","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_frequency","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_drawevent","draw_enable_skeleton_blendmodes","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_enable_skeleton_blendmodes","draw_get_font","draw_get_halign","draw_get_lighting","draw_get_swf_aa_level","draw_get_valign","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_circle_precision","draw_set_color","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_to_mp_grid","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_is_list","ds_list_is_map","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_is_list","ds_map_is_map","ds_map_keys_to_array","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_values_to_array","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","effect_create_depth","effect_create_layer","environment_get_variable","event_inherited","event_perform","event_perform_async","event_perform_object","event_user","exception_unhandled_handler","exp","extension_exists","extension_get_option_count","extension_get_option_names","extension_get_option_value","extension_get_options","extension_get_version","external_call","external_define","external_free","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_cache_glyph","font_delete","font_enable_effects","font_enable_sdf","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_info","font_get_italic","font_get_last","font_get_name","font_get_sdf_enabled","font_get_sdf_spread","font_get_size","font_get_texture","font_get_uvs","font_replace_sprite","font_replace_sprite_ext","font_sdf_spread","font_set_cache_size","frac","fx_create","fx_get_name","fx_get_parameter","fx_get_parameter_names","fx_get_parameters","fx_get_single_layer","fx_set_parameter","fx_set_parameters","fx_set_single_layer","game_change","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_get_guid","gamepad_get_mapping","gamepad_get_option","gamepad_hat_count","gamepad_hat_value","gamepad_is_connected","gamepad_is_supported","gamepad_remove_mapping","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_option","gamepad_set_vibration","gamepad_test_mapping","gc_collect","gc_enable","gc_get_stats","gc_get_target_frame_time","gc_is_enabled","gc_target_frame_time","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gif_add_surface","gif_open","gif_save","gif_save_buffer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_depth","gpu_get_fog","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_depth","gpu_set_fog","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","handle_parse","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_get_request_crossorigin","http_post_string","http_request","http_set_request_crossorigin","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","instanceof","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_callable","is_debug_overlay_open","is_handle","is_infinity","is_instanceof","is_int32","is_int64","is_keyboard_used_debug_overlay","is_method","is_mouse_over_debug_overlay","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","json_decode","json_encode","json_parse","json_stringify","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_clear_fx","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_enable_fx","layer_exists","layer_force_draw_depth","layer_fx_is_enabled","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_fx","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_sequence_angle","layer_sequence_create","layer_sequence_destroy","layer_sequence_exists","layer_sequence_get_angle","layer_sequence_get_headdir","layer_sequence_get_headpos","layer_sequence_get_instance","layer_sequence_get_length","layer_sequence_get_sequence","layer_sequence_get_speedscale","layer_sequence_get_x","layer_sequence_get_xscale","layer_sequence_get_y","layer_sequence_get_yscale","layer_sequence_headdir","layer_sequence_headpos","layer_sequence_is_finished","layer_sequence_is_paused","layer_sequence_pause","layer_sequence_play","layer_sequence_speedscale","layer_sequence_x","layer_sequence_xscale","layer_sequence_y","layer_sequence_yscale","layer_set_fx","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","lin_to_db","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","method","method_call","method_get_index","method_get_self","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_and_collide","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","nameof","network_connect","network_connect_async","network_connect_raw","network_connect_raw_async","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_check_permission","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","os_request_permission","os_set_orientation_lock","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_delay","part_emitter_destroy","part_emitter_destroy_all","part_emitter_enable","part_emitter_exists","part_emitter_interval","part_emitter_region","part_emitter_relative","part_emitter_stream","part_particles_burst","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_angle","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_color","part_system_colour","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_info","part_system_get_layer","part_system_global_space","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_size_x","part_type_size_y","part_type_speed","part_type_sprite","part_type_step","part_type_subimage","particle_exists","particle_get_info","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","ref_create","rollback_chat","rollback_create_game","rollback_define_extra_network_latency","rollback_define_input","rollback_define_input_frame_delay","rollback_define_mock_input","rollback_define_player","rollback_display_events","rollback_get_info","rollback_get_input","rollback_get_player_prefs","rollback_join_game","rollback_leave_game","rollback_set_player_prefs","rollback_start_game","rollback_sync_on_frame","rollback_use_late_join","rollback_use_manual_start","rollback_use_player_prefs","rollback_use_random_input","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_info","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_camera","room_set_height","room_set_persistent","room_set_view_enabled","room_set_viewport","room_set_width","round","scheduler_resolution_get","scheduler_resolution_set","screen_save","screen_save_part","script_execute","script_execute_ext","script_exists","script_get_name","sequence_create","sequence_destroy","sequence_exists","sequence_get","sequence_get_objects","sequence_instance_override_object","sequence_keyframe_new","sequence_keyframedata_new","sequence_track_new","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_f_buffer","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_message_ext","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_event_frames","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_get_position","skeleton_animation_is_finished","skeleton_animation_is_looping","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_animation_set_position","skeleton_attachment_create","skeleton_attachment_create_color","skeleton_attachment_create_colour","skeleton_attachment_destroy","skeleton_attachment_exists","skeleton_attachment_get","skeleton_attachment_replace","skeleton_attachment_replace_color","skeleton_attachment_replace_colour","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_list","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_find_slot","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_create","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_alpha_get","skeleton_slot_color_get","skeleton_slot_color_set","skeleton_slot_colour_get","skeleton_slot_colour_set","skeleton_slot_data","skeleton_slot_data_instance","skeleton_slot_list","sprite_add","sprite_add_ext","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_mode","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_info","sprite_get_name","sprite_get_nineslice","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_nineslice_create","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_bbox","sprite_set_bbox_mode","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_nineslice","sprite_set_offset","sprite_set_speed","sqr","sqrt","static_get","static_set","string","string_byte_at","string_byte_length","string_char_at","string_concat","string_concat_ext","string_copy","string_count","string_delete","string_digits","string_ends_with","string_ext","string_foreach","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_join","string_join_ext","string_last_pos","string_last_pos_ext","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_pos_ext","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_split","string_split_ext","string_starts_with","string_trim","string_trim_end","string_trim_start","string_upper","string_width","string_width_ext","struct_exists","struct_foreach","struct_get","struct_get_from_hash","struct_get_names","struct_names_count","struct_remove","struct_set","struct_set_from_hash","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_format_is_supported","surface_free","surface_get_depth_disable","surface_get_format","surface_get_height","surface_get_target","surface_get_target_ext","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tag_get_asset_ids","tag_get_assets","tan","texture_debug_messages","texture_flush","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_is_ready","texture_prefetch","texture_set_stage","texturegroup_get_fonts","texturegroup_get_names","texturegroup_get_sprites","texturegroup_get_status","texturegroup_get_textures","texturegroup_get_tilesets","texturegroup_load","texturegroup_set_mode","texturegroup_unload","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_height","tilemap_set_mask","tilemap_set_width","tilemap_tileset","tilemap_x","tilemap_y","tileset_get_info","tileset_get_name","tileset_get_texture","tileset_get_uvs","time_bpm_to_seconds","time_seconds_to_bpm","time_source_create","time_source_destroy","time_source_exists","time_source_get_children","time_source_get_parent","time_source_get_period","time_source_get_reps_completed","time_source_get_reps_remaining","time_source_get_state","time_source_get_time_remaining","time_source_get_units","time_source_pause","time_source_reconfigure","time_source_reset","time_source_resume","time_source_start","time_source_stop","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","uwp_device_touchscreen_available","uwp_livetile_badge_clear","uwp_livetile_badge_notification","uwp_livetile_notification_begin","uwp_livetile_notification_end","uwp_livetile_notification_expiry","uwp_livetile_notification_image_add","uwp_livetile_notification_secondary_begin","uwp_livetile_notification_tag","uwp_livetile_notification_template_add","uwp_livetile_notification_text_add","uwp_livetile_queue_enable","uwp_livetile_tile_clear","uwp_secondarytile_badge_clear","uwp_secondarytile_badge_notification","uwp_secondarytile_delete","uwp_secondarytile_pin","uwp_secondarytile_tile_clear","variable_clone","variable_get_hash","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_names_count","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_format_get_info","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_submit_ext","vertex_texcoord","vertex_ubyte4","vertex_update_buffer_from_buffer","vertex_update_buffer_from_vertex","video_close","video_draw","video_enable_loop","video_get_duration","video_get_format","video_get_position","video_get_status","video_get_volume","video_is_looping","video_open","video_pause","video_resume","video_seek_to","video_set_volume","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","wallpaper_set_config","wallpaper_set_subscriptions","weak_ref_alive","weak_ref_any_alive","weak_ref_create","window_center","window_device","window_enable_borderless_fullscreen","window_get_borderless_fullscreen","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_showborder","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_delta_x","window_mouse_get_delta_y","window_mouse_get_locked","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_mouse_set_locked","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_showborder","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_tile_background_color","winphone_tile_background_colour","zip_add_file","zip_create","zip_save","zip_unzip","zip_unzip_async"],symbol:["AudioEffect","AudioEffectType","AudioLFOType","GM_build_date","GM_build_type","GM_is_sandboxed","GM_project_filename","GM_runtime_version","GM_version","NaN","_GMFILE_","_GMFUNCTION_","_GMLINE_","alignmentH","alignmentV","all","animcurvetype_bezier","animcurvetype_catmullrom","animcurvetype_linear","asset_animationcurve","asset_font","asset_object","asset_path","asset_room","asset_script","asset_sequence","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3D","audio_bus_main","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_exponent_distance_scaled","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_inverse_distance_scaled","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_stereo","bboxkind_diamond","bboxkind_ellipse","bboxkind_precise","bboxkind_rectangular","bboxmode_automatic","bboxmode_fullimage","bboxmode_manual","bm_add","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_grow","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","c_aqua","c_black","c_blue","c_dkgray","c_dkgrey","c_fuchsia","c_gray","c_green","c_grey","c_lime","c_ltgray","c_ltgrey","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cache_directory","characterSpacing","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","coreColor","coreColour","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","dropShadowEnabled","dropShadowEnabled","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","effectsEnabled","effectsEnabled","ev_alarm","ev_animation_end","ev_animation_event","ev_animation_update","ev_async_audio_playback","ev_async_audio_playback_ended","ev_async_audio_recording","ev_async_dialog","ev_async_push_notification","ev_async_save_load","ev_async_save_load","ev_async_social","ev_async_system_event","ev_async_web","ev_async_web_cloud","ev_async_web_iap","ev_async_web_image_load","ev_async_web_networking","ev_async_web_steam","ev_audio_playback","ev_audio_playback_ended","ev_audio_recording","ev_boundary","ev_boundary_view0","ev_boundary_view1","ev_boundary_view2","ev_boundary_view3","ev_boundary_view4","ev_boundary_view5","ev_boundary_view6","ev_boundary_view7","ev_broadcast_message","ev_cleanup","ev_collision","ev_create","ev_destroy","ev_dialog_async","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_normal","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_outside_view0","ev_outside_view1","ev_outside_view2","ev_outside_view3","ev_outside_view4","ev_outside_view5","ev_outside_view6","ev_outside_view7","ev_pre_create","ev_push_notification","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_social","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_system_event","ev_trigger","ev_user0","ev_user1","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_web_async","ev_web_cloud","ev_web_iap","ev_web_image_load","ev_web_networking","ev_web_sound_load","ev_web_steam","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_none","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","false","frameSizeX","frameSizeY","gamespeed_fps","gamespeed_microseconds","global","glowColor","glowColour","glowEnabled","glowEnabled","glowEnd","glowStart","gp_axis_acceleration_x","gp_axis_acceleration_y","gp_axis_acceleration_z","gp_axis_angular_velocity_x","gp_axis_angular_velocity_y","gp_axis_angular_velocity_z","gp_axis_orientation_w","gp_axis_orientation_x","gp_axis_orientation_y","gp_axis_orientation_z","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","infinity","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sequence","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","lineSpacing","m_axisx","m_axisx_gui","m_axisy","m_axisy_gui","m_scroll_down","m_scroll_up","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mb_side1","mb_side2","mip_markedonly","mip_off","mip_on","network_config_avoid_time_wait","network_config_connect_timeout","network_config_disable_multicast","network_config_disable_reliable_udp","network_config_enable_multicast","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_config_websocket_protocol","network_connect_active","network_connect_blocking","network_connect_nonblocking","network_connect_none","network_connect_passive","network_send_binary","network_send_text","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_socket_ws","network_socket_wss","network_type_connect","network_type_data","network_type_disconnect","network_type_down","network_type_non_blocking_connect","network_type_up","network_type_up_failed","nineslice_blank","nineslice_bottom","nineslice_center","nineslice_centre","nineslice_hide","nineslice_left","nineslice_mirror","nineslice_repeat","nineslice_right","nineslice_stretch","nineslice_top","noone","of_challenge_lose","of_challenge_tie","of_challenge_win","os_android","os_gdk","os_gxgames","os_ios","os_linux","os_macosx","os_operagx","os_permission_denied","os_permission_denied_dont_request","os_permission_granted","os_ps3","os_ps4","os_ps5","os_psvita","os_switch","os_tvos","os_unknown","os_uwp","os_win8native","os_windows","os_winphone","os_xboxone","os_xboxseriesxs","other","outlineColor","outlineColour","outlineDist","outlineEnabled","outlineEnabled","paragraphSpacing","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pointer_invalid","pointer_null","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_mode_burst","ps_mode_stream","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","rollback_chat_message","rollback_connect_error","rollback_connect_info","rollback_connected_to_peer","rollback_connection_rejected","rollback_disconnected_from_peer","rollback_end_game","rollback_game_full","rollback_game_info","rollback_game_interrupted","rollback_game_resumed","rollback_high_latency","rollback_player_prefs","rollback_protocol_rejected","rollback_synchronized_with_peer","rollback_synchronizing_with_peer","self","seqaudiokey_loop","seqaudiokey_oneshot","seqdir_left","seqdir_right","seqinterpolation_assign","seqinterpolation_lerp","seqplay_loop","seqplay_oneshot","seqplay_pingpong","seqtextkey_bottom","seqtextkey_center","seqtextkey_justify","seqtextkey_left","seqtextkey_middle","seqtextkey_right","seqtextkey_top","seqtracktype_audio","seqtracktype_bool","seqtracktype_clipmask","seqtracktype_clipmask_mask","seqtracktype_clipmask_subject","seqtracktype_color","seqtracktype_colour","seqtracktype_empty","seqtracktype_graphic","seqtracktype_group","seqtracktype_instance","seqtracktype_message","seqtracktype_moment","seqtracktype_particlesystem","seqtracktype_real","seqtracktype_sequence","seqtracktype_spriteframes","seqtracktype_string","seqtracktype_text","shadowColor","shadowColour","shadowOffsetX","shadowOffsetY","shadowSoftness","sprite_add_ext_error_cancelled","sprite_add_ext_error_decompressfailed","sprite_add_ext_error_loadfailed","sprite_add_ext_error_setupfailed","sprite_add_ext_error_spritenotfound","sprite_add_ext_error_unknown","spritespeed_framespergameframe","spritespeed_framespersecond","surface_r16float","surface_r32float","surface_r8unorm","surface_rg8unorm","surface_rgba16float","surface_rgba32float","surface_rgba4unorm","surface_rgba8unorm","texturegroup_status_fetched","texturegroup_status_loaded","texturegroup_status_loading","texturegroup_status_unloaded","tf_anisotropic","tf_linear","tf_point","thickness","tile_flip","tile_index_mask","tile_mirror","tile_rotate","time_source_expire_after","time_source_expire_nearest","time_source_game","time_source_global","time_source_state_active","time_source_state_initial","time_source_state_paused","time_source_state_stopped","time_source_units_frames","time_source_units_seconds","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","tm_systemtiming","true","ty_real","ty_string","undefined","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","video_format_rgba","video_format_yuv","video_status_closed","video_status_paused","video_status_playing","video_status_preparing","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f10","vk_f11","vk_f12","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up","wallpaper_config","wallpaper_subscription_data","wrap"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","colour?ColourTrack","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","drawn_by_sequence","event_action","event_data","event_number","event_object","event_type","font_texture_page_size","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gravity","gravity_direction","health","hspeed","iap_data","id","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","in_collision_tree","in_sequence","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","longMessage","managed","mask_index","message","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","player_avatar_sprite","player_avatar_url","player_id","player_local","player_type","player_user_id","program_directory","rollback_api_server","rollback_confirmed_frame","rollback_current_frame","rollback_event_id","rollback_event_param","rollback_game_running","room","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","script","sequence_instance","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","stacktrace","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_camera","view_current","view_enabled","view_hport","view_surface_id","view_visible","view_wport","view_xport","view_yport","visible","vspeed","webgl_enabled","working_directory","x","xprevious","xstart","y","yprevious","ystart"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return $t=n,$t}var Qt,Zi;function H_(){if(Zi)return Qt;Zi=1;function n(e){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return en=n,en}var tn,ao;function Q_(){if(ao)return tn;ao=1;function n(e){const t=e.regex,a={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},r={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},i=/""|"[^"]+"/,s=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,l=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,_=/(\.|\/)/,c=t.either(i,s,o,l),d=t.concat(t.optional(/\.|\.\/|\//),c,t.anyNumberOfTimes(t.concat(_,c))),p=t.concat("(",o,"|",l,")(?==)"),E={begin:d},m=e.inherit(E,{keywords:r}),S={begin:/\(/,end:/\)/},g={className:"attr",begin:p,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,m,S]}}},b={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},R={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,b,g,m,S],returnEnd:!0},f=e.inherit(E,{className:"name",keywords:a,starts:e.inherit(R,{end:/\)/})});S.contains=[f];const A=e.inherit(E,{keywords:a,className:"name",starts:e.inherit(R,{end:/\}\}/})}),I=e.inherit(E,{keywords:a,className:"name"}),C=e.inherit(E,{className:"name",keywords:a,starts:e.inherit(R,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[A],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[I]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[A]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[I]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[C]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[C]}]}}return tn=n,tn}var nn,ro;function X_(){if(ro)return nn;ro=1;function n(e){const t="([0-9]_*)+",a="([0-9a-fA-F]_*)+",r="([01]_*)+",i="([0-7]_*)+",_="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",c={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},d={className:"meta",begin:/\{-#/,end:/#-\}/},p={className:"meta",begin:"^#",end:"$"},E={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},m={begin:"\\(",end:"\\)",illegal:'"',contains:[d,p,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),c]},S={begin:/\{/,end:/\}/,contains:m.contains},g={className:"number",relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${a})(\\.(${a}))?([pP][+-]?(${t}))?\\b`},{match:`\\b0[oO](${i})\\b`},{match:`\\b0[bB](${r})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[m,c],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[m,c],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[E,m,c]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[d,E,m,S,c]},{beginKeywords:"default",end:"$",contains:[E,m,c]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,c]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[E,e.QUOTE_STRING_MODE,c]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},d,p,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,g,E,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${_}--+|--+(?!-)${_}`},c,{begin:"->|<-"}]}}return nn=n,nn}var an,io;function Z_(){if(io)return an;io=1;function n(e){const t="[a-zA-Z_$][a-zA-Z0-9_$]*",a=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:a,relevance:0},{className:"variable",begin:"\\$"+t},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",beginKeywords:"new",end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[e.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+e.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}return an=n,an}var rn,oo;function J_(){if(oo)return rn;oo=1;function n(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}return rn=n,rn}var on,so;function j_(){if(so)return on;so=1;function n(e){const t=e.regex,a="HTTP/([32]|1\\.[01])",r=/[A-Za-z][A-Za-z0-9-]*/,i={className:"attribute",begin:t.concat("^",r,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},s=[i,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+a+" \\d{3})",end:/$/,contains:[{className:"meta",begin:a},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},{begin:"(?=^[A-Z]+ (.*?) "+a+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:a},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},e.inherit(i,{relevance:0})]}}return on=n,on}var sn,lo;function ed(){if(lo)return sn;lo=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&#'",a="["+t+"]["+t+"0-9/;:]*",r={$pattern:a,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},i="[-+]?\\d+(\\.\\d+)?",s={begin:a,relevance:0},o={className:"number",begin:i,relevance:0},l=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),_=e.COMMENT(";","$",{relevance:0}),c={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},d={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},p={className:"comment",begin:"\\^"+a},E=e.COMMENT("\\^\\{","\\}"),m={className:"symbol",begin:"[:]{1,2}"+a},S={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},b={className:"name",relevance:0,keywords:r,begin:a,starts:g},R=[S,l,p,E,_,m,d,o,c,s];return S.contains=[e.COMMENT("comment",""),b,g],g.contains=R,d.contains=R,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),S,l,p,E,_,m,d,o,c]}}return sn=n,sn}var ln,co;function td(){if(co)return ln;co=1;function n(e){const t="\\[",a="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:t,end:a}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:t,end:a,contains:["self"]}]}}return ln=n,ln}var cn,_o;function nd(){if(_o)return cn;_o=1;function n(e){const t=e.regex,a={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},l={begin:/\[/,end:/\]/,contains:[r,s,i,o,a,"self"],relevance:0},_=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,d=/'[^']*'/,p=t.either(_,c,d),E=t.concat(p,"(\\s*\\.\\s*",p,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:E,className:"attr",starts:{end:/$/,contains:[r,l,s,i,o,a]}}]}}return cn=n,cn}var _n,uo;function ad(){if(uo)return _n;uo=1;function n(e){const t=e.regex,a={className:"params",begin:"\\(",end:"\\)"},r=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,s={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,i,r)},{begin:t.concat(/\b\d+/,i,r)},{begin:t.concat(/\.\d+/,i,r)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,a]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),s]}}return _n=n,_n}var dn,po;function rd(){if(po)return dn;po=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",a="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",r="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",H="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",Ol="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",Il="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",Al="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",vl="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",yl=H+Ol,hl=Al,Dl="null true false nil ",fr={className:"number",begin:e.NUMBER_RE,relevance:0},Cr={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Nr={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},Ml={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Nr]},Ll={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Nr]},Or={variants:[Ml,Ll]},ve={$pattern:t,keyword:r,built_in:yl,class:hl,literal:Dl},Me={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:ve,relevance:0},Ir={className:"type",begin:":[ \\t]*("+vl.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},Ar={className:"variable",keywords:ve,begin:t,relevance:0,contains:[Ir,Me]},vr=a+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:ve,illegal:"\\$|\\?|%|,|;$|~|#|@|r(s,o,l-1))}function i(s){const o=s.regex,l="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",_=l+r("(?:<"+l+"~~~(?:\\s*,\\s*"+l+"~~~)*>)?",/~~~/g,2),m={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},S={className:"meta",begin:"@"+l,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},g={className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[s.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:m,illegal:/<\/|#/,contains:[s.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[s.BACKSLASH_ESCAPE]},s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[o.concat(/(?!else)/,l),/\s+/,l,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,l],className:{1:"keyword",3:"title.class"},contains:[g,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+_+"\\s+)",s.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:m,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[S,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,a,s.C_BLOCK_COMMENT_MODE]},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},a,S]}}return un=i,un}var pn,Eo;function od(){if(Eo)return pn;Eo=1;const n="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],t=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],r=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(i,a,r);function l(_){const c=_.regex,d=(V,{after:G})=>{const K="",end:""},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,S={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(V,G)=>{const K=V[0].length+V.index,j=V.input[K];if(j==="<"||j===","){G.ignoreMatch();return}j===">"&&(d(V,{after:K})||G.ignoreMatch());let ee;const re=V.input.substring(K);if(ee=re.match(/^\s*=/)){G.ignoreMatch();return}if((ee=re.match(/^\s+extends\s+/))&&ee.index===0){G.ignoreMatch();return}}},g={$pattern:n,keyword:e,literal:t,built_in:o,"variable.language":s},b="[0-9](_?[0-9])*",R=`\\.(${b})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",A={className:"number",variants:[{begin:`(\\b(${f})((${R})|\\.)?|(${R}))[eE][+-]?(${b})\\b`},{begin:`\\b(${f})\\b((${R})\\b|\\.)?|(${R})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},I={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},C={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,I],subLanguage:"xml"}},h={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,I],subLanguage:"css"}},v={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,I],subLanguage:"graphql"}},L={className:"string",begin:"`",end:"`",contains:[_.BACKSLASH_ESCAPE,I]},D={className:"comment",variants:[_.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:p+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),_.C_BLOCK_COMMENT_MODE,_.C_LINE_COMMENT_MODE]},F=[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,C,h,v,L,{match:/\$\d+/},A];I.contains=F.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(F)});const $=[].concat(D,I.contains),X=$.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat($)}]),q={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:X},T={variants:[{match:[/class/,/\s+/,p,/\s+/,/extends/,/\s+/,c.concat(p,"(",c.concat(/\./,p),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,p],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:c.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...r]}},M={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},w={variants:[{match:[/function/,/\s+/,p,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[q],illegal:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Q(V){return c.concat("(?!",V.join("|"),")")}const ne={match:c.concat(/\b/,Q([...i,"super","import"].map(V=>`${V}\\s*\\(`)),p,c.lookahead(/\s*\(/)),className:"title.function",relevance:0},ae={begin:c.concat(/\./,c.lookahead(c.concat(p,/(?![0-9A-Za-z$_(])/))),end:p,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},z={match:[/get|set/,/\s+/,p,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},q]},H="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+_.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,p,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead(H)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[q]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:X,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[_.SHEBANG({label:"shebang",binary:"node",relevance:5}),M,_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,C,h,v,L,D,{match:/\$\d+/},A,O,{scope:"attr",match:p+c.lookahead(":"),relevance:0},J,{begin:"("+_.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,_.REGEXP_MODE,{className:"function",begin:H,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:_.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:X}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:E.begin,end:E.end},{match:m},{begin:S.begin,"on:begin":S.isTrulyOpeningTag,end:S.end}],subLanguage:"xml",contains:[{begin:S.begin,end:S.end,skip:!0,contains:["self"]}]}]},w,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+_.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[q,_.inherit(_.TITLE_MODE,{begin:p,className:"title.function"})]},{match:/\.\.\./,relevance:0},ae,{match:"\\$"+p,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[q]},ne,B,T,z,{match:/\$[(.]/}]}}return pn=l,pn}var mn,go;function sd(){if(go)return mn;go=1;function n(e){const a={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},r={className:"function",begin:/:[\w\-.]+/,relevance:0},i={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},s={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,s,r,i,a]}}return mn=n,mn}var En,So;function ld(){if(So)return En;So=1;function n(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,a,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return En=n,En}var gn,To;function cd(){if(To)return gn;To=1;function n(e){const t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",s={$pattern:t,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},o={keywords:s,illegal:/<\//},l={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},_={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},c={className:"subst",begin:/\$\(/,end:/\)/,keywords:s},d={className:"variable",begin:"\\$"+t},p={className:"string",contains:[e.BACKSLASH_ESCAPE,c,d],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},E={className:"string",contains:[e.BACKSLASH_ESCAPE,c,d],begin:"`",end:"`"},m={className:"meta",begin:"@"+t},S={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return o.name="Julia",o.contains=[l,_,p,E,m,S,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],c.contains=o.contains,o}return gn=n,gn}var Sn,bo;function _d(){if(bo)return Sn;bo=1;function n(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return Sn=n,Sn}var Tn,Ro;function dd(){if(Ro)return Tn;Ro=1;var n="[0-9](_*[0-9])*",e=`\\.(${n})`,t="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${n})((${e})|\\.)?|(${e}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${t})\\.?|(${t})?\\.(${t}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${t})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function r(i){const s={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},o={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},l={className:"symbol",begin:i.UNDERSCORE_IDENT_RE+"@"},_={className:"subst",begin:/\$\{/,end:/\}/,contains:[i.C_NUMBER_MODE]},c={className:"variable",begin:"\\$"+i.UNDERSCORE_IDENT_RE},d={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[c,_]},{begin:"'",end:"'",illegal:/\n/,contains:[i.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[i.BACKSLASH_ESCAPE,c,_]}]};_.contains.push(d);const p={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+i.UNDERSCORE_IDENT_RE+")?"},E={className:"meta",begin:"@"+i.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[i.inherit(d,{className:"string"}),"self"]}]},m=a,S=i.COMMENT("/\\*","\\*/",{contains:[i.C_BLOCK_COMMENT_MODE]}),g={variants:[{className:"type",begin:i.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},b=g;return b.variants[1].contains=[g],g.variants[1].contains=[b],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[i.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),i.C_LINE_COMMENT_MODE,S,o,l,p,E,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:i.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[i.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[g,i.C_LINE_COMMENT_MODE,S],relevance:0},i.C_LINE_COMMENT_MODE,S,p,E,d,i.C_NUMBER_MODE]},S]},{begin:[/class|interface|trait/,/\s+/,i.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},i.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},p,E]},d,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` `},m]}}return Tn=r,Tn}var bn,fo;function ud(){if(fo)return bn;fo=1;function n(e){const t="[a-zA-Z_][\\w.]*",a="<\\?(lasso(script)?|=)",r="\\]|\\?>",i={$pattern:t+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},s=e.COMMENT("",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},l={className:"meta",begin:"\\[/noprocess|"+a},_={className:"symbol",begin:"'"+t+"'"},c=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+t},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:t,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+t,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[_]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:t+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[|"+a,returnEnd:!0,relevance:0,contains:[s]}},o,l,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[noprocess\\]|"+a,returnEnd:!0,contains:[s]}},o,l].concat(c)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(c)}}return bn=n,bn}var Rn,Co;function pd(){if(Co)return Rn;Co=1;function n(e){const a=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(D=>D+"(?![a-zA-Z@:_])")),r=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(D=>D+"(?![a-zA-Z:_])").join("|")),i=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],s=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],o={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:a},{endsParent:!0,begin:r},{endsParent:!0,variants:s},{endsParent:!0,relevance:0,variants:i}]},l={className:"params",relevance:0,begin:/#+\d?/},_={variants:s},c={className:"built_in",relevance:0,begin:/[$&^_]/},d={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},p=e.COMMENT("%","$",{relevance:0}),E=[o,l,_,c,d,p],m={begin:/\{/,end:/\}/,relevance:0,contains:["self",...E]},S=e.inherit(m,{relevance:0,endsParent:!0,contains:[m,...E]}),g={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[m,...E]},b={begin:/\s+/,relevance:0},R=[S],f=[g],A=function(D,F){return{contains:[b],starts:{relevance:0,contains:D,starts:F}}},I=function(D,F){return{begin:"\\\\"+D+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+D},relevance:0,contains:[b],starts:F}},C=function(D,F){return e.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+D+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},A(R,F))},h=(D="string")=>e.END_SAME_AS_BEGIN({className:D,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),v=function(D){return{className:"string",end:"(?=\\\\end\\{"+D+"\\})"}},L=(D="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:D,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),k=[...["verb","lstinline"].map(D=>I(D,{contains:[h()]})),I("mint",A(R,{contains:[h()]})),I("mintinline",A(R,{contains:[L(),h()]})),I("url",{contains:[L("link"),L("link")]}),I("hyperref",{contains:[L("link")]}),I("href",A(f,{contains:[L("link")]})),...[].concat(...["","\\*"].map(D=>[C("verbatim"+D,v("verbatim"+D)),C("filecontents"+D,A(R,v("filecontents"+D))),...["","B","L"].map(F=>C(F+"Verbatim"+D,A(f,v(F+"Verbatim"+D))))])),C("minted",A(f,A(R,v("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...k,...E]}}return Rn=n,Rn}var fn,No;function md(){if(No)return fn;No=1;function n(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}return fn=n,fn}var Cn,Oo;function Ed(){if(Oo)return Cn;Oo=1;function n(e){const t=/([A-Za-z_][A-Za-z_0-9]*)?/,r={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},i={match:[t,/(?=\()/],scope:{1:"keyword"},contains:[r]};return r.contains.unshift(i),{name:"Leaf",contains:[{match:[/#+/,t,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[r]},{match:[/#+/,t,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return Cn=n,Cn}var Nn,Io;function gd(){if(Io)return Nn;Io=1;const n=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...e,...t],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),l=i.concat(s).sort().reverse();function _(c){const d=n(c),p=l,E="and or not only",m="[\\w-]+",S="("+m+"|@\\{"+m+"\\})",g=[],b=[],R=function($){return{className:"string",begin:"~?"+$+".*?"+$}},f=function($,X,q){return{className:$,begin:X,relevance:q}},A={$pattern:/[a-z-]+/,keyword:E,attribute:r.join(" ")},I={begin:"\\(",end:"\\)",contains:b,keywords:A,relevance:0};b.push(c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,R("'"),R('"'),d.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},d.HEXCOLOR,I,f("variable","@@?"+m,10),f("variable","@\\{"+m+"\\}"),f("built_in","~?`[^`]*?`"),{className:"attribute",begin:m+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},d.IMPORTANT,{beginKeywords:"and not"},d.FUNCTION_DISPATCH);const C=b.concat({begin:/\{/,end:/\}/,contains:g}),h={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(b)},v={begin:S+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:b}}]},L={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:A,returnEnd:!0,contains:b,relevance:0}},k={className:"variable",variants:[{begin:"@"+m+"\\s*:",relevance:15},{begin:"@"+m}],starts:{end:"[;}]",returnEnd:!0,contains:C}},D={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:S,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,h,f("keyword","all\\b"),f("variable","@\\{"+m+"\\}"),{begin:"\\b("+a.join("|")+")\\b",className:"selector-tag"},d.CSS_NUMBER_MODE,f("selector-tag",S,0),f("selector-id","#"+S),f("selector-class","\\."+S,0),f("selector-tag","&",0),d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+s.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:C},{begin:"!important"},d.FUNCTION_DISPATCH]},F={begin:m+`:(:)?(${p.join("|")})`,returnBegin:!0,contains:[D]};return g.push(c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,L,k,F,v,D,h,d.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:g}}return Nn=_,Nn}var On,Ao;function Sd(){if(Ao)return On;Ao=1;function n(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",a="\\|[^]*?\\|",r="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",i={className:"literal",begin:"\\b(t{1}|nil)\\b"},s={className:"number",variants:[{begin:r,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+r+" +"+r,end:"\\)"}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),_={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+t},d={begin:t,relevance:0},p={begin:a},m={contains:[s,o,_,c,{begin:"\\(",end:"\\)",contains:["self",i,o,s,d]},d],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+a}]},S={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},g={begin:"\\(\\s*",end:"\\)"},b={endsWithParent:!0,relevance:0};return g.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:a}]},b],b.contains=[m,S,g,i,s,o,l,_,c,p,d],{name:"Lisp",illegal:/\S/,contains:[s,e.SHEBANG(),i,o,l,m,S,g,d]}}return On=n,On}var In,vo;function Td(){if(vo)return In;vo=1;function n(e){const t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},a=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],r=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),i=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[i,r],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r].concat(a),illegal:";$|^\\[|^=|&|\\{"}}return In=n,In}var An,yo;function bd(){if(yo)return An;yo=1;const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],e=["true","false","null","undefined","NaN","Infinity"],t=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],a=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=[].concat(r,t,a);function s(o){const l=["npm","print"],_=["yes","no","on","off","it","that","void"],c=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],d={keyword:n.concat(c),literal:e.concat(_),built_in:i.concat(l)},p="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",E=o.inherit(o.TITLE_MODE,{begin:p}),m={className:"subst",begin:/#\{/,end:/\}/,keywords:d},S={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:d},g=[o.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,m,S]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,m,S]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[m,o.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+p},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];m.contains=g;const b={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:d,contains:["self"].concat(g)}]},R={begin:"(#=>|=>|\\|>>|-?->|!->)"},f={variants:[{match:[/class\s+/,p,/\s+extends\s+/,p]},{match:[/class\s+/,p]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:d};return{name:"LiveScript",aliases:["ls"],keywords:d,illegal:/\/\*/,contains:g.concat([o.COMMENT("\\/\\*","\\*\\/"),o.HASH_COMMENT_MODE,R,{className:"function",contains:[E,b],returnBegin:!0,variants:[{begin:"("+p+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+p+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+p+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},f,{begin:p+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return An=s,An}var vn,ho;function Rd(){if(ho)return vn;ho=1;function n(e){const t=e.regex,a=/([-a-zA-Z$._][\w$.-]*)/,r={className:"type",begin:/\bi\d+(?=\s|\b)/},i={className:"operator",relevance:0,begin:/=/},s={className:"punctuation",relevance:0,begin:/,/},o={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},l={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},_={className:"variable",variants:[{begin:t.concat(/%/,a)},{begin:/%\d+/},{begin:/#\d+/}]},c={className:"title",variants:[{begin:t.concat(/@/,a)},{begin:/@\d+/},{begin:t.concat(/!/,a)},{begin:t.concat(/!\d+/,a)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:{keyword:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},contains:[r,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},c,s,i,_,l,o]}}return vn=n,vn}var yn,Do;function fd(){if(Do)return yn;Do=1;function n(e){const a={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},r={className:"number",relevance:0,begin:e.C_NUMBER_RE},i={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},s={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[a,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},r,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},s,i,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return yn=n,yn}var hn,Mo;function Cd(){if(Mo)return hn;Mo=1;function n(e){const t="\\[=*\\[",a="\\]=*\\]",r={begin:t,end:a,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,a,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:a,contains:[r],relevance:5}])}}return hn=n,hn}var Dn,Lo;function Nd(){if(Lo)return Dn;Lo=1;function n(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{S.has(h[0])||v.ignoreMatch()}},{className:"symbol",relevance:0,begin:m}]},b={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},R={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},f={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},A={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},I={className:"brace",relevance:0,begin:/[[\](){}]/},C={className:"message-name",relevance:0,begin:a.concat("::",m)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[t.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),f,A,C,g,b,t.QUOTE_STRING_MODE,E,R,I]}}return Mn=e,Mn}var Ln,Po;function Id(){if(Po)return Ln;Po=1;function n(e){const t="('|\\.')+",a={relevance:0,contains:[{begin:t}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:a},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+t,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:a},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:a},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:a},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}return Ln=n,Ln}var xn,wo;function Ad(){if(wo)return xn;wo=1;function n(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return xn=n,xn}var Pn,ko;function vd(){if(ko)return Pn;ko=1;function n(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:""},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},a,e.C_BLOCK_COMMENT_MODE,r,e.NUMBER_MODE,i,s,{begin:/:-/},{begin:/\.$/}]}}return wn=n,wn}var kn,Fo;function hd(){if(Fo)return kn;Fo=1;function n(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return kn=n,kn}var Un,Bo;function Dd(){if(Bo)return Un;Bo=1;function n(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}return Un=n,Un}var Fn,Go;function Md(){if(Go)return Fn;Go=1;function n(e){const t=e.regex,a=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:a.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},l={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},_={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[l]},c={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[e.BACKSLASH_ESCAPE,s,_],p=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],E=(g,b,R="\\1")=>{const f=R==="\\1"?R:t.concat(R,b);return t.concat(t.concat("(?:",g,")"),b,/(?:\\.|[^\\\/])*?/,f,/(?:\\.|[^\\\/])*?/,R,r)},m=(g,b,R)=>t.concat(t.concat("(?:",g,")"),b,/(?:\\.|[^\\\/])*?/,R,r),S=[_,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},c,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:E("s|tr|y",t.either(...p,{capture:!0}))},{begin:E("s|tr|y","\\(","\\)")},{begin:E("s|tr|y","\\[","\\]")},{begin:E("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:m("(?:m|qr)?",/\//,/\//)},{begin:m("m|qr",t.either(...p,{capture:!0}),/\1/)},{begin:m("m|qr",/\(/,/\)/)},{begin:m("m|qr",/\[/,/\]/)},{begin:m("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l,c]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=S,o.contains=S,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:S}}return Fn=n,Fn}var Bn,Yo;function Ld(){if(Yo)return Bn;Yo=1;function n(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return Bn=n,Bn}var Gn,qo;function xd(){if(qo)return Gn;qo=1;function n(e){const t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},a={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},r={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),a,r,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}return Gn=n,Gn}var Yn,Ho;function Pd(){if(Ho)return Yn;Ho=1;function n(e){const t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},a="[A-Za-z$_][0-9A-Za-z$_]*",r={className:"subst",begin:/#\{/,end:/\}/,keywords:t},i=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];r.contains=i;const s=e.inherit(e.TITLE_MODE,{begin:a}),o="(\\(.*\\)\\s*)?\\B[-=]>",l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(i)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:i.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+a+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[s,l]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[l]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[s]},s]},{className:"name",begin:a+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return Yn=n,Yn}var qn,Vo;function wd(){if(Vo)return qn;Vo=1;function n(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}return qn=n,qn}var Hn,zo;function kd(){if(zo)return Hn;zo=1;function n(e){const t={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},a={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},r={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},i={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),i,r,t,a]}}return Hn=n,Hn}var Vn,Wo;function Ud(){if(Wo)return Vn;Wo=1;function n(e){const t=e.regex,a={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},i={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[a]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},a]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:i.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return Vn=n,Vn}var zn,Ko;function Fd(){if(Ko)return zn;Ko=1;function n(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","concept","const","continue","converter","defer","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}return zn=n,zn}var Wn,$o;function Bd(){if($o)return Wn;$o=1;function n(e){const t=e.regex,a={keyword:["assert","else","if","in","inherit","let","or","rec","then","with"],literal:["true","false","null"],built_in:["abort","baseNameOf","builtins","derivation","derivationStrict","dirOf","fetchGit","fetchMercurial","fetchTarball","fetchTree","fromTOML","import","isNull","map","placeholder","removeAttrs","scopedImport","throw","toString"]},r={scope:"built_in",match:t.either(...["abort","add","addDrvOutputDependencies","addErrorContext","all","any","appendContext","attrNames","attrValues","baseNameOf","bitAnd","bitOr","bitXor","break","builtins","catAttrs","ceil","compareVersions","concatLists","concatMap","concatStringsSep","convertHash","currentSystem","currentTime","deepSeq","derivation","derivationStrict","dirOf","div","elem","elemAt","false","fetchGit","fetchMercurial","fetchTarball","fetchTree","fetchurl","filter","filterSource","findFile","flakeRefToString","floor","foldl'","fromJSON","fromTOML","functionArgs","genList","genericClosure","getAttr","getContext","getEnv","getFlake","groupBy","hasAttr","hasContext","hashFile","hashString","head","import","intersectAttrs","isAttrs","isBool","isFloat","isFunction","isInt","isList","isNull","isPath","isString","langVersion","length","lessThan","listToAttrs","map","mapAttrs","match","mul","nixPath","nixVersion","null","parseDrvName","parseFlakeRef","partition","path","pathExists","placeholder","readDir","readFile","readFileType","removeAttrs","replaceStrings","scopedImport","seq","sort","split","splitVersion","storeDir","storePath","stringLength","sub","substring","tail","throw","toFile","toJSON","toPath","toString","toXML","trace","traceVerbose","true","tryEval","typeOf","unsafeDiscardOutputDependency","unsafeDiscardStringContext","unsafeGetAttrPos","warn","zipAttrsWith"].map(h=>`builtins\\.${h}`)),relevance:10},i="[A-Za-z_][A-Za-z0-9_'-]*",s={scope:"symbol",match:new RegExp(`<${i}(/${i})*>`)},o="[A-Za-z0-9_\\+\\.-]+",l={scope:"symbol",match:new RegExp(`(\\.\\.|\\.|~)?/(${o})?(/${o})*(?=[\\s;])`)},_=t.either("==","=","\\+\\+","\\+","<=","<\\|","<",">=",">","->","//","/","!=","!","\\|\\|","\\|>","\\?","\\*","&&"),c={scope:"operator",match:t.concat(_,/(?!-)/),relevance:0},d={scope:"number",match:new RegExp(`${e.NUMBER_RE}(?!-)`),relevance:0},p={variants:[{scope:"operator",beforeMatch:/\s/,begin:/-(?!>)/},{begin:[new RegExp(`${e.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:"number",2:"operator"}},{begin:[_,/-/,/(?!>)/],beginScope:{1:"operator",2:"operator"}}],relevance:0},E={beforeMatch:/(^|\{|;)\s*/,begin:new RegExp(`${i}(\\.${i})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:"attr",match:new RegExp(`${i}(\\.${i})*(?=\\s*=)`),relevance:.2}]},m={scope:"char.escape",match:/\\\$/},S={scope:"char.escape",match:/''\$/},g={scope:"subst",begin:/\$\{/,end:/\}/,keywords:a},b={scope:"char.escape",match:/'''/},R={scope:"char.escape",match:/\\(?!\$)./},f={scope:"string",variants:[{begin:"''",end:"''",contains:[S,g,b,R]},{begin:'"',end:'"',contains:[m,g,R]}]},A={scope:"params",match:new RegExp(`${i}\\s*:(?=\\s)`)},I=[d,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),r,f,s,l,A,E,p,c];g.contains=I;const C=[{scope:"meta.prompt",match:/^nix-repl>(?=\s)/,relevance:10},{scope:"meta",beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}];return{name:"Nix",aliases:["nixos"],keywords:a,contains:I.concat(C)}}return Wn=n,Wn}var Kn,Qo;function Gd(){if(Qo)return Kn;Qo=1;function n(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Kn=n,Kn}var $n,Xo;function Yd(){if(Xo)return $n;Xo=1;function n(e){const t=e.regex,a=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],r=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],i=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],s={className:"variable.constant",begin:t.concat(/\$/,t.either(...a))},o={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},l={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},_={className:"variable",begin:/\$+\([\w^.:!-]+\)/},c={className:"params",begin:t.either(...r)},d={className:"keyword",begin:t.concat(/!/,t.either(...i))},p={className:"char.escape",begin:/\$(\\[nrt]|\$)/},E={className:"title.function",begin:/\w+::\w+/},m={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[p,s,o,l,_]},S=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],g=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],b={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},f={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:S,literal:g},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),f,b,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},m,d,o,l,_,c,E,e.NUMBER_MODE]}}return $n=n,$n}var Qn,Zo;function qd(){if(Zo)return Qn;Zo=1;function n(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,l={"variable.language":["this","super"],$pattern:a,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},_={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:l,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+_.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:_,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return Qn=n,Qn}var Xn,Jo;function Hd(){if(Jo)return Xn;Jo=1;function n(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return Xn=n,Xn}var Zn,jo;function Vd(){if(jo)return Zn;jo=1;function n(e){const t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},a={className:"literal",begin:"false|true|PI|undef"},r={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},o={className:"params",begin:"\\(",end:"\\)",contains:["self",r,i,t,a]},l={begin:"[*!#%]",relevance:0},_={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[o,e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,s,i,t,l,_]}}return Zn=n,Zn}var Jn,es;function zd(){if(es)return Jn;es=1;function n(e){const t={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},a=e.COMMENT(/\{/,/\}/,{relevance:0}),r=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),i={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},s={className:"string",begin:"(#\\d+)+"},o={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[i,s]},a,r]},l={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[a,r,e.C_LINE_COMMENT_MODE,i,s,e.NUMBER_MODE,o,l]}}return Jn=n,Jn}var jn,ts;function Wd(){if(ts)return jn;ts=1;function n(e){const t=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}return jn=n,jn}var ea,ns;function Kd(){if(ns)return ea;ns=1;function n(e){const t={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},a={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,t,a]}}return ea=n,ea}var ta,as;function $d(){if(as)return ta;as=1;function n(e){const t=e.COMMENT("--","$"),a="[a-zA-Z_][a-zA-Z_0-9$]*",r="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="<<\\s*"+a+"\\s*>>",s="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",o="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",l="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",_="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",c=_.trim().split(" ").map(function(g){return g.split("|")[0]}).join("|"),d="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",p="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",E="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",S="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(g){return g.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:s+l+o,built_in:d+p+E},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+S+")\\s*\\("},{begin:"\\.("+c+")\\b"},{begin:"\\b("+c+")\\s+PATH\\b",keywords:{keyword:"PATH",type:_.replace("PATH ","")}},{className:"type",begin:"\\b("+c+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:r,end:r,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:i,relevance:10}]}}return ta=n,ta}var na,rs;function Qd(){if(rs)return na;rs=1;function n(e){const t=e.regex,a=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),s=t.concat(/[A-Z]+/,a),o={scope:"variable",match:"\\$+"+r},l={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},_={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(_)}),p={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(_),"on:begin":(q,T)=>{T.data._beginMatch=q[1]||q[2]},"on:end":(q,T)=>{T.data._beginMatch!==q[1]&&T.ignoreMatch()}},E=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),m=`[ diff --git a/starter/src/main/resources/templates/notebase/assets/index-CLWgAZNI.js b/starter/src/main/resources/templates/notebase/assets/index-bOgutTC1.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/index-CLWgAZNI.js rename to starter/src/main/resources/templates/notebase/assets/index-bOgutTC1.js index ecdd7c7bd2..f808388801 100644 --- a/starter/src/main/resources/templates/notebase/assets/index-CLWgAZNI.js +++ b/starter/src/main/resources/templates/notebase/assets/index-bOgutTC1.js @@ -79,7 +79,7 @@ var Wbe;function En(){return Wbe.apply(null,arguments)}function Hje(e){Wbe=e}fun [`+o+"] ";for(a in arguments[0])pi(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];r.push(i)}Ybe(e+` Arguments: `+Array.prototype.slice.call(r).join("")+` `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var _te={};function Kbe(e,t){En.deprecationHandler!=null&&En.deprecationHandler(e,t),_te[e]||(Ybe(t),_te[e]=!0)}En.suppressDeprecationWarnings=!1;En.deprecationHandler=null;function Gf(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function zje(e){var t,n;for(n in e)pi(e,n)&&(t=e[n],Gf(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Rj(e,t){var n=Im({},e),r;for(r in t)pi(t,r)&&(sv(e[r])&&sv(t[r])?(n[r]={},Im(n[r],e[r]),Im(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)pi(e,r)&&!pi(t,r)&&sv(e[r])&&(n[r]=Im({},n[r]));return n}function cW(e){e!=null&&this.set(e)}var Ij;Object.keys?Ij=Object.keys:Ij=function(e){var t,n=[];for(t in e)pi(e,t)&&n.push(t);return n};var Vje={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Gje(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Gf(r)?r.call(t,n):r}function $f(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var uW=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,sR=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,J8={},by={};function or(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(by[e]=i),t&&(by[t[0]]=function(){return $f(i.apply(this,arguments),t[1],t[2])}),n&&(by[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Wje(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function qje(e){var t=e.match(uW),n,r;for(n=0,r=t.length;n=0&&sR.test(e);)e=e.replace(sR,r),sR.lastIndex=0,n-=1;return e}var Yje={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Kje(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(uW).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Qje="Invalid date";function Xje(){return this._invalidDate}var Zje="%d",Jje=/\d{1,2}/;function eHe(e){return this._ordinal.replace("%d",e)}var tHe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function nHe(e,t,n,r){var i=this._relativeTime[n];return Gf(i)?i(e,t,n,r):i.replace(/%d/i,e)}function rHe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Gf(n)?n(t):n.replace(/%s/i,t)}var Ste={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Tu(e){return typeof e=="string"?Ste[e]||Ste[e.toLowerCase()]:void 0}function dW(e){var t={},n,r;for(r in e)pi(e,r)&&(n=Tu(r),n&&(t[n]=e[r]));return t}var iHe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function oHe(e){var t=[],n;for(n in e)pi(e,n)&&t.push({unit:n,priority:iHe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Xbe=/\d/,Rc=/\d\d/,Zbe=/\d{3}/,fW=/\d{4}/,MP=/[+-]?\d{6}/,fo=/\d\d?/,Jbe=/\d\d\d\d?/,eye=/\d\d\d\d\d\d?/,kP=/\d{1,3}/,pW=/\d{1,4}/,PP=/[+-]?\d{1,6}/,cS=/\d+/,DP=/[+-]?\d+/,aHe=/Z|[+-]\d\d:?\d\d/gi,$P=/Z|[+-]\d\d(?::?\d\d)?/gi,sHe=/[+-]?\d+(\.\d{1,3})?/,Kx=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,uS=/^[1-9]\d?/,hW=/^([1-9]\d|\d)/,oM;oM={};function jn(e,t,n){oM[e]=Gf(t)?t:function(r,i){return r&&n?n:t}}function lHe(e,t){return pi(oM,e)?oM[e](t._strict,t._locale):new RegExp(cHe(e))}function cHe(e){return Wp(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function Wp(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Xc(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Wr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Xc(t)),n}var Aj={};function $i(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),oh(t)&&(r=function(o,a){a[t]=Wr(o)}),i=e.length,n=0;n68?1900:2e3)};var tye=dS("FullYear",!0);function pHe(){return LP(this.year())}function dS(e,t){return function(n){return n!=null?(nye(this,e,n),En.updateOffset(this,t),this):mT(this,e)}}function mT(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function nye(e,t,n){var r,i,o,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!LP(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function hHe(e){return e=Tu(e),Gf(this[e])?this[e]():this}function mHe(e,t){if(typeof e=="object"){e=dW(e);var n=oHe(e),r,i=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function gT(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function aM(e,t,n){var r=7+t-n,i=(7+gT(e,0,r).getUTCDay()-t)%7;return-i+r-1}function lye(e,t,n,r,i){var o=(7+n-r)%7,a=aM(e,r,i),s=1+7*(t-1)+o+a,l,c;return s<=0?(l=e-1,c=iw(l)+s):s>iw(e)?(l=e+1,c=s-iw(e)):(l=e,c=s),{year:l,dayOfYear:c}}function vT(e,t,n){var r=aM(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+qp(a,t,n)):i>qp(e.year(),t,n)?(o=i-qp(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function qp(e,t,n){var r=aM(e,t,n),i=aM(e+1,t,n);return(iw(e)-r+i)/7}or("w",["ww",2],"wo","week");or("W",["WW",2],"Wo","isoWeek");jn("w",fo,uS);jn("ww",fo,Rc);jn("W",fo,uS);jn("WW",fo,Rc);Qx(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Wr(e)});function RHe(e){return vT(e,this._week.dow,this._week.doy).week}var IHe={dow:0,doy:6};function AHe(){return this._week.dow}function NHe(){return this._week.doy}function MHe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function kHe(e){var t=vT(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}or("d",0,"do","day");or("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});or("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});or("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});or("e",0,0,"weekday");or("E",0,0,"isoWeekday");jn("d",fo);jn("e",fo);jn("E",fo);jn("dd",function(e,t){return t.weekdaysMinRegex(e)});jn("ddd",function(e,t){return t.weekdaysShortRegex(e)});jn("dddd",function(e,t){return t.weekdaysRegex(e)});Qx(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Nr(n).invalidWeekday=e});Qx(["d","e","E"],function(e,t,n,r){t[r]=Wr(e)});function PHe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function DHe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function gW(e,t){return e.slice(t,7).concat(e.slice(0,t))}var $He="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),cye="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),LHe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),FHe=Kx,BHe=Kx,jHe=Kx;function HHe(e,t){var n=Sd(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?gW(n,this._week.dow):e?n[e.day()]:n}function UHe(e){return e===!0?gW(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function zHe(e){return e===!0?gW(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function VHe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Vf([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=Xo.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=Xo.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=Xo.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=Xo.call(this._weekdaysParse,a),i!==-1||(i=Xo.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=Xo.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=Xo.call(this._shortWeekdaysParse,a),i!==-1||(i=Xo.call(this._weekdaysParse,a),i!==-1)?i:(i=Xo.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=Xo.call(this._minWeekdaysParse,a),i!==-1||(i=Xo.call(this._weekdaysParse,a),i!==-1)?i:(i=Xo.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function GHe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return VHe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Vf([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function WHe(e){if(!this.isValid())return e!=null?this:NaN;var t=mT(this,"Day");return e!=null?(e=PHe(e,this.localeData()),this.add(e-t,"d")):t}function qHe(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function YHe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=DHe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function KHe(e){return this._weekdaysParseExact?(pi(this,"_weekdaysRegex")||vW.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(pi(this,"_weekdaysRegex")||(this._weekdaysRegex=FHe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function QHe(e){return this._weekdaysParseExact?(pi(this,"_weekdaysRegex")||vW.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(pi(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=BHe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function XHe(e){return this._weekdaysParseExact?(pi(this,"_weekdaysRegex")||vW.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(pi(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=jHe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function vW(){function e(u,d){return d.length-u.length}var t=[],n=[],r=[],i=[],o,a,s,l,c;for(o=0;o<7;o++)a=Vf([2e3,1]).day(o),s=Wp(this.weekdaysMin(a,"")),l=Wp(this.weekdaysShort(a,"")),c=Wp(this.weekdays(a,"")),t.push(s),n.push(l),r.push(c),i.push(s),i.push(l),i.push(c);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function bW(){return this.hours()%12||12}function ZHe(){return this.hours()||24}or("H",["HH",2],0,"hour");or("h",["hh",2],0,bW);or("k",["kk",2],0,ZHe);or("hmm",0,0,function(){return""+bW.apply(this)+$f(this.minutes(),2)});or("hmmss",0,0,function(){return""+bW.apply(this)+$f(this.minutes(),2)+$f(this.seconds(),2)});or("Hmm",0,0,function(){return""+this.hours()+$f(this.minutes(),2)});or("Hmmss",0,0,function(){return""+this.hours()+$f(this.minutes(),2)+$f(this.seconds(),2)});function uye(e,t){or(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}uye("a",!0);uye("A",!1);function dye(e,t){return t._meridiemParse}jn("a",dye);jn("A",dye);jn("H",fo,hW);jn("h",fo,uS);jn("k",fo,uS);jn("HH",fo,Rc);jn("hh",fo,Rc);jn("kk",fo,Rc);jn("hmm",Jbe);jn("hmmss",eye);jn("Hmm",Jbe);jn("Hmmss",eye);$i(["H","HH"],Ea);$i(["k","kk"],function(e,t,n){var r=Wr(e);t[Ea]=r===24?0:r});$i(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});$i(["h","hh"],function(e,t,n){t[Ea]=Wr(e),Nr(n).bigHour=!0});$i("hmm",function(e,t,n){var r=e.length-2;t[Ea]=Wr(e.substr(0,r)),t[rd]=Wr(e.substr(r)),Nr(n).bigHour=!0});$i("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ea]=Wr(e.substr(0,r)),t[rd]=Wr(e.substr(r,2)),t[Up]=Wr(e.substr(i)),Nr(n).bigHour=!0});$i("Hmm",function(e,t,n){var r=e.length-2;t[Ea]=Wr(e.substr(0,r)),t[rd]=Wr(e.substr(r))});$i("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ea]=Wr(e.substr(0,r)),t[rd]=Wr(e.substr(r,2)),t[Up]=Wr(e.substr(i))});function JHe(e){return(e+"").toLowerCase().charAt(0)==="p"}var eUe=/[ap]\.?m?\.?/i,tUe=dS("Hours",!0);function nUe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var fye={calendar:Vje,longDateFormat:Yje,invalidDate:Qje,ordinal:Zje,dayOfMonthOrdinalParse:Jje,relativeTime:tHe,months:vHe,monthsShort:rye,week:IHe,weekdays:$He,weekdaysMin:LHe,weekdaysShort:cye,meridiemParse:eUe},mo={},AE={},bT;function rUe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=FP(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&rUe(o,r)>=n-1)break;n--}t++}return bT}function oUe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function FP(e){var t=null,n;if(mo[e]===void 0&&typeof module<"u"&&module&&module.exports&&oUe(e))try{t=bT._abbr,n=require,n("./locale/"+e),tg(t)}catch{mo[e]=null}return mo[e]}function tg(e,t){var n;return e&&(fl(t)?n=_h(e):n=yW(e,t),n?bT=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),bT._abbr}function yW(e,t){if(t!==null){var n,r=fye;if(t.abbr=e,mo[e]!=null)Kbe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=mo[e]._config;else if(t.parentLocale!=null)if(mo[t.parentLocale]!=null)r=mo[t.parentLocale]._config;else if(n=FP(t.parentLocale),n!=null)r=n._config;else return AE[t.parentLocale]||(AE[t.parentLocale]=[]),AE[t.parentLocale].push({name:e,config:t}),null;return mo[e]=new cW(Rj(r,t)),AE[e]&&AE[e].forEach(function(i){yW(i.name,i.config)}),tg(e),mo[e]}else return delete mo[e],null}function aUe(e,t){if(t!=null){var n,r,i=fye;mo[e]!=null&&mo[e].parentLocale!=null?mo[e].set(Rj(mo[e]._config,t)):(r=FP(e),r!=null&&(i=r._config),t=Rj(i,t),r==null&&(t.abbr=e),n=new cW(t),n.parentLocale=mo[e],mo[e]=n),tg(e)}else mo[e]!=null&&(mo[e].parentLocale!=null?(mo[e]=mo[e].parentLocale,e===tg()&&tg(e)):mo[e]!=null&&delete mo[e]);return mo[e]}function _h(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return bT;if(!Sd(e)){if(t=FP(e),t)return t;e=[e]}return iUe(e)}function sUe(){return Ij(mo)}function _W(e){var t,n=e._a;return n&&Nr(e).overflow===-2&&(t=n[Hp]<0||n[Hp]>11?Hp:n[gf]<1||n[gf]>mW(n[Os],n[Hp])?gf:n[Ea]<0||n[Ea]>24||n[Ea]===24&&(n[rd]!==0||n[Up]!==0||n[$1]!==0)?Ea:n[rd]<0||n[rd]>59?rd:n[Up]<0||n[Up]>59?Up:n[$1]<0||n[$1]>999?$1:-1,Nr(e)._overflowDayOfYear&&(tgf)&&(t=gf),Nr(e)._overflowWeeks&&t===-1&&(t=dHe),Nr(e)._overflowWeekday&&t===-1&&(t=fHe),Nr(e).overflow=t),e}var lUe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cUe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,uUe=/Z|[+-]\d\d(?::?\d\d)?/,lR=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],e$=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],dUe=/^\/?Date\((-?\d+)/i,fUe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,pUe={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function pye(e){var t,n,r=e._i,i=lUe.exec(r)||cUe.exec(r),o,a,s,l,c=lR.length,u=e$.length;if(i){for(Nr(e).iso=!0,t=0,n=c;tiw(a)||e._dayOfYear===0)&&(Nr(e)._overflowDayOfYear=!0),n=gT(a,0,e._dayOfYear),e._a[Hp]=n.getUTCMonth(),e._a[gf]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Ea]===24&&e._a[rd]===0&&e._a[Up]===0&&e._a[$1]===0&&(e._nextDay=!0,e._a[Ea]=0),e._d=(e._useUTC?gT:OHe).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ea]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(Nr(e).weekdayMismatch=!0)}}function SUe(e){var t,n,r,i,o,a,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=xb(t.GG,e._a[Os],vT(co(),1,4).year),r=xb(t.W,1),i=xb(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=vT(co(),o,a),n=xb(t.gg,e._a[Os],c.year),r=xb(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>qp(n,o,a)?Nr(e)._overflowWeeks=!0:l!=null?Nr(e)._overflowWeekday=!0:(s=lye(n,r,i,o,a),e._a[Os]=s.year,e._dayOfYear=s.dayOfYear)}En.ISO_8601=function(){};En.RFC_2822=function(){};function EW(e){if(e._f===En.ISO_8601){pye(e);return}if(e._f===En.RFC_2822){hye(e);return}e._a=[],Nr(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,c,u;for(i=Qbe(e._f,e._locale).match(uW)||[],u=i.length,n=0;n0&&Nr(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),by[o]?(r?Nr(e).empty=!1:Nr(e).unusedTokens.push(o),uHe(o,r,e)):e._strict&&!r&&Nr(e).unusedTokens.push(o);Nr(e).charsLeftOver=s-l,t.length>0&&Nr(e).unusedInput.push(t),e._a[Ea]<=12&&Nr(e).bigHour===!0&&e._a[Ea]>0&&(Nr(e).bigHour=void 0),Nr(e).parsedDateParts=e._a.slice(0),Nr(e).meridiem=e._meridiem,e._a[Ea]=EUe(e._locale,e._a[Ea],e._meridiem),c=Nr(e).era,c!==null&&(e._a[Os]=e._locale.erasConvertYear(c,e._a[Os])),SW(e),_W(e)}function EUe(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function CUe(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(l===0){Nr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:NP()});function vye(e,t){var n,r;if(t.length===1&&Sd(t[0])&&(t=t[0]),!t.length)return co();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function VUe(){if(!fl(this._isDSTShifted))return this._isDSTShifted;var e={},t;return lW(e,this),e=mye(e),e._a?(t=e._isUTC?Vf(e._a):co(e._a),this._isDSTShifted=this.isValid()&&DUe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function GUe(){return this.isValid()?!this._isUTC:!1}function WUe(){return this.isValid()?this._isUTC:!1}function yye(){return this.isValid()?this._isUTC&&this._offset===0:!1}var qUe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,YUe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function $d(e,t){var n=e,r=null,i,o,a;return yA(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:oh(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=qUe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Wr(r[gf])*i,h:Wr(r[Ea])*i,m:Wr(r[rd])*i,s:Wr(r[Up])*i,ms:Wr(Nj(r[$1]*1e3))*i}):(r=YUe.exec(e))?(i=r[1]==="-"?-1:1,n={y:e1(r[2],i),M:e1(r[3],i),w:e1(r[4],i),d:e1(r[5],i),h:e1(r[6],i),m:e1(r[7],i),s:e1(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=KUe(co(n.from),co(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new BP(n),yA(e)&&pi(e,"_locale")&&(o._locale=e._locale),yA(e)&&pi(e,"_isValid")&&(o._isValid=e._isValid),o}$d.fn=BP.prototype;$d.invalid=PUe;function e1(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Cte(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function KUe(e,t){var n;return e.isValid()&&t.isValid()?(t=wW(t,e),e.isBefore(t)?n=Cte(e,t):(n=Cte(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function _ye(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(Kbe(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=$d(n,r),Sye(this,i,e),this}}function Sye(e,t,n,r){var i=t._milliseconds,o=Nj(t._days),a=Nj(t._months);e.isValid()&&(r=r??!0,a&&oye(e,mT(e,"Month")+a*n),o&&nye(e,"Date",mT(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&En.updateOffset(e,o||a))}var QUe=_ye(1,"add"),XUe=_ye(-1,"subtract");function Eye(e){return typeof e=="string"||e instanceof String}function ZUe(e){return Ed(e)||qx(e)||Eye(e)||oh(e)||eze(e)||JUe(e)||e===null||e===void 0}function JUe(e){var t=sv(e)&&!aW(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,a=r.length;for(i=0;in.valueOf():n.valueOf()9999?bA(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Gf(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",bA(n,"Z")):bA(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function hze(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+i+o)}function mze(e){e||(e=this.isUtc()?En.defaultFormatUtc:En.defaultFormat);var t=bA(this,e);return this.localeData().postformat(t)}function gze(e,t){return this.isValid()&&(Ed(e)&&e.isValid()||co(e).isValid())?$d({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vze(e){return this.from(co(),e)}function bze(e,t){return this.isValid()&&(Ed(e)&&e.isValid()||co(e).isValid())?$d({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function yze(e){return this.to(co(),e)}function Cye(e){var t;return e===void 0?this._locale._abbr:(t=_h(e),t!=null&&(this._locale=t),this)}var wye=wu("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Tye(){return this._locale}var sM=1e3,yy=60*sM,lM=60*yy,xye=(365*400+97)*24*lM;function _y(e,t){return(e%t+t)%t}function Oye(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-xye:new Date(e,t,n).valueOf()}function Rye(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-xye:Date.UTC(e,t,n)}function _ze(e){var t,n;if(e=Tu(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Rye:Oye,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=_y(t+(this._isUTC?0:this.utcOffset()*yy),lM);break;case"minute":t=this._d.valueOf(),t-=_y(t,yy);break;case"second":t=this._d.valueOf(),t-=_y(t,sM);break}return this._d.setTime(t),En.updateOffset(this,!0),this}function Sze(e){var t,n;if(e=Tu(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Rye:Oye,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=lM-_y(t+(this._isUTC?0:this.utcOffset()*yy),lM)-1;break;case"minute":t=this._d.valueOf(),t+=yy-_y(t,yy)-1;break;case"second":t=this._d.valueOf(),t+=sM-_y(t,sM)-1;break}return this._d.setTime(t),En.updateOffset(this,!0),this}function Eze(){return this._d.valueOf()-(this._offset||0)*6e4}function Cze(){return Math.floor(this.valueOf()/1e3)}function wze(){return new Date(this.valueOf())}function Tze(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xze(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Oze(){return this.isValid()?this.toISOString():null}function Rze(){return sW(this)}function Ize(){return Im({},Nr(this))}function Aze(){return Nr(this).overflow}function Nze(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}or("N",0,0,"eraAbbr");or("NN",0,0,"eraAbbr");or("NNN",0,0,"eraAbbr");or("NNNN",0,0,"eraName");or("NNNNN",0,0,"eraNarrow");or("y",["y",1],"yo","eraYear");or("y",["yy",2],0,"eraYear");or("y",["yyy",3],0,"eraYear");or("y",["yyyy",4],0,"eraYear");jn("N",TW);jn("NN",TW);jn("NNN",TW);jn("NNNN",Uze);jn("NNNNN",zze);$i(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Nr(n).era=i:Nr(n).invalidEra=e});jn("y",cS);jn("yy",cS);jn("yyy",cS);jn("yyyy",cS);jn("yo",Vze);$i(["y","yy","yyy","yyyy"],Os);$i(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Os]=n._locale.eraYearOrdinalParse(e,i):t[Os]=parseInt(e,10)});function Mze(e,t){var n,r,i,o=this._eras||_h("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function Pze(e,t){var n=e.since<=e.until?1:-1;return t===void 0?En(e.since).year():En(e.since).year()+(t-e.offset)*n}function Dze(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),Xze.call(this,e,t,n,r,i))}function Xze(e,t,n,r,i){var o=lye(e,t,n,r,i),a=gT(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}or("Q",0,"Qo","quarter");jn("Q",Xbe);$i("Q",function(e,t){t[Hp]=(Wr(e)-1)*3});function Zze(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}or("D",["DD",2],"Do","date");jn("D",fo,uS);jn("DD",fo,Rc);jn("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});$i(["D","DD"],gf);$i("Do",function(e,t){t[gf]=Wr(e.match(fo)[0])});var Aye=dS("Date",!0);or("DDD",["DDDD",3],"DDDo","dayOfYear");jn("DDD",kP);jn("DDDD",Zbe);$i(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Wr(e)});function Jze(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}or("m",["mm",2],0,"minute");jn("m",fo,hW);jn("mm",fo,Rc);$i(["m","mm"],rd);var eVe=dS("Minutes",!1);or("s",["ss",2],0,"second");jn("s",fo,hW);jn("ss",fo,Rc);$i(["s","ss"],Up);var tVe=dS("Seconds",!1);or("S",0,0,function(){return~~(this.millisecond()/100)});or(0,["SS",2],0,function(){return~~(this.millisecond()/10)});or(0,["SSS",3],0,"millisecond");or(0,["SSSS",4],0,function(){return this.millisecond()*10});or(0,["SSSSS",5],0,function(){return this.millisecond()*100});or(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});or(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});or(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});or(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});jn("S",kP,Xbe);jn("SS",kP,Rc);jn("SSS",kP,Zbe);var Am,Nye;for(Am="SSSS";Am.length<=9;Am+="S")jn(Am,cS);function nVe(e,t){t[$1]=Wr(("0."+e)*1e3)}for(Am="S";Am.length<=9;Am+="S")$i(Am,nVe);Nye=dS("Milliseconds",!1);or("z",0,0,"zoneAbbr");or("zz",0,0,"zoneName");function rVe(){return this._isUTC?"UTC":""}function iVe(){return this._isUTC?"Coordinated Universal Time":""}var fn=Yx.prototype;fn.add=QUe;fn.calendar=rze;fn.clone=ize;fn.diff=dze;fn.endOf=Sze;fn.format=mze;fn.from=gze;fn.fromNow=vze;fn.to=bze;fn.toNow=yze;fn.get=hHe;fn.invalidAt=Aze;fn.isAfter=oze;fn.isBefore=aze;fn.isBetween=sze;fn.isSame=lze;fn.isSameOrAfter=cze;fn.isSameOrBefore=uze;fn.isValid=Rze;fn.lang=wye;fn.locale=Cye;fn.localeData=Tye;fn.max=RUe;fn.min=OUe;fn.parsingFlags=Ize;fn.set=mHe;fn.startOf=_ze;fn.subtract=XUe;fn.toArray=Tze;fn.toObject=xze;fn.toDate=wze;fn.toISOString=pze;fn.inspect=hze;typeof Symbol<"u"&&Symbol.for!=null&&(fn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});fn.toJSON=Oze;fn.toString=fze;fn.unix=Cze;fn.valueOf=Eze;fn.creationData=Nze;fn.eraName=Dze;fn.eraNarrow=$ze;fn.eraAbbr=Lze;fn.eraYear=Fze;fn.year=tye;fn.isLeapYear=pHe;fn.weekYear=Gze;fn.isoWeekYear=Wze;fn.quarter=fn.quarters=Zze;fn.month=aye;fn.daysInMonth=wHe;fn.week=fn.weeks=MHe;fn.isoWeek=fn.isoWeeks=kHe;fn.weeksInYear=Kze;fn.weeksInWeekYear=Qze;fn.isoWeeksInYear=qze;fn.isoWeeksInISOWeekYear=Yze;fn.date=Aye;fn.day=fn.days=WHe;fn.weekday=qHe;fn.isoWeekday=YHe;fn.dayOfYear=Jze;fn.hour=fn.hours=tUe;fn.minute=fn.minutes=eVe;fn.second=fn.seconds=tVe;fn.millisecond=fn.milliseconds=Nye;fn.utcOffset=LUe;fn.utc=BUe;fn.local=jUe;fn.parseZone=HUe;fn.hasAlignedHourOffset=UUe;fn.isDST=zUe;fn.isLocal=GUe;fn.isUtcOffset=WUe;fn.isUtc=yye;fn.isUTC=yye;fn.zoneAbbr=rVe;fn.zoneName=iVe;fn.dates=wu("dates accessor is deprecated. Use date instead.",Aye);fn.months=wu("months accessor is deprecated. Use month instead",aye);fn.years=wu("years accessor is deprecated. Use year instead",tye);fn.zone=wu("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",FUe);fn.isDSTShifted=wu("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",VUe);function oVe(e){return co(e*1e3)}function aVe(){return co.apply(null,arguments).parseZone()}function Mye(e){return e}var hi=cW.prototype;hi.calendar=Gje;hi.longDateFormat=Kje;hi.invalidDate=Xje;hi.ordinal=eHe;hi.preparse=Mye;hi.postformat=Mye;hi.relativeTime=nHe;hi.pastFuture=rHe;hi.set=zje;hi.eras=Mze;hi.erasParse=kze;hi.erasConvertYear=Pze;hi.erasAbbrRegex=jze;hi.erasNameRegex=Bze;hi.erasNarrowRegex=Hze;hi.months=_He;hi.monthsShort=SHe;hi.monthsParse=CHe;hi.monthsRegex=xHe;hi.monthsShortRegex=THe;hi.week=RHe;hi.firstDayOfYear=NHe;hi.firstDayOfWeek=AHe;hi.weekdays=HHe;hi.weekdaysMin=zHe;hi.weekdaysShort=UHe;hi.weekdaysParse=GHe;hi.weekdaysRegex=KHe;hi.weekdaysShortRegex=QHe;hi.weekdaysMinRegex=XHe;hi.isPM=JHe;hi.meridiem=nUe;function cM(e,t,n,r){var i=_h(),o=Vf().set(r,t);return i[n](o,e)}function kye(e,t,n){if(oh(e)&&(t=e,e=void 0),e=e||"",t!=null)return cM(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=cM(e,r,n,"month");return i}function OW(e,t,n,r){typeof e=="boolean"?(oh(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,oh(t)&&(n=t,t=void 0),t=t||"");var i=_h(),o=e?i._week.dow:0,a,s=[];if(n!=null)return cM(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=cM(t,(a+o)%7,r,"day");return s}function sVe(e,t){return kye(e,t,"months")}function lVe(e,t){return kye(e,t,"monthsShort")}function cVe(e,t,n){return OW(e,t,n,"weekdays")}function uVe(e,t,n){return OW(e,t,n,"weekdaysShort")}function dVe(e,t,n){return OW(e,t,n,"weekdaysMin")}tg("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Wr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});En.lang=wu("moment.lang is deprecated. Use moment.locale instead.",tg);En.langData=wu("moment.langData is deprecated. Use moment.localeData instead.",_h);var ap=Math.abs;function fVe(){var e=this._data;return this._milliseconds=ap(this._milliseconds),this._days=ap(this._days),this._months=ap(this._months),e.milliseconds=ap(e.milliseconds),e.seconds=ap(e.seconds),e.minutes=ap(e.minutes),e.hours=ap(e.hours),e.months=ap(e.months),e.years=ap(e.years),this}function Pye(e,t,n,r){var i=$d(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function pVe(e,t){return Pye(this,e,t,1)}function hVe(e,t){return Pye(this,e,t,-1)}function wte(e){return e<0?Math.floor(e):Math.ceil(e)}function mVe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=wte(kj(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Xc(e/1e3),r.seconds=i%60,o=Xc(i/60),r.minutes=o%60,a=Xc(o/60),r.hours=a%24,t+=Xc(a/24),l=Xc(Dye(t)),n+=l,t-=wte(kj(l)),s=Xc(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Dye(e){return e*4800/146097}function kj(e){return e*146097/4800}function gVe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Tu(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Dye(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(kj(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Sh(e){return function(){return this.as(e)}}var $ye=Sh("ms"),vVe=Sh("s"),bVe=Sh("m"),yVe=Sh("h"),_Ve=Sh("d"),SVe=Sh("w"),EVe=Sh("M"),CVe=Sh("Q"),wVe=Sh("y"),TVe=$ye;function xVe(){return $d(this)}function OVe(e){return e=Tu(e),this.isValid()?this[e+"s"]():NaN}function v0(e){return function(){return this.isValid()?this._data[e]:NaN}}var RVe=v0("milliseconds"),IVe=v0("seconds"),AVe=v0("minutes"),NVe=v0("hours"),MVe=v0("days"),kVe=v0("months"),PVe=v0("years");function DVe(){return Xc(this.days()/7)}var Rp=Math.round,Jb={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function $Ve(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function LVe(e,t,n,r){var i=$d(e).abs(),o=Rp(i.as("s")),a=Rp(i.as("m")),s=Rp(i.as("h")),l=Rp(i.as("d")),c=Rp(i.as("M")),u=Rp(i.as("w")),d=Rp(i.as("y")),f=o<=n.ss&&["s",o]||o0,f[4]=r,$Ve.apply(null,f)}function FVe(e){return e===void 0?Rp:typeof e=="function"?(Rp=e,!0):!1}function BVe(e,t){return Jb[e]===void 0?!1:t===void 0?Jb[e]:(Jb[e]=t,e==="s"&&(Jb.ss=t-1),!0)}function jVe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Jb,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Jb,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=LVe(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var t$=Math.abs;function W0(e){return(e>0)-(e<0)||+e}function HP(){if(!this.isValid())return this.localeData().invalidDate();var e=t$(this._milliseconds)/1e3,t=t$(this._days),n=t$(this._months),r,i,o,a,s=this.asSeconds(),l,c,u,d;return s?(r=Xc(e/60),i=Xc(r/60),e%=60,r%=60,o=Xc(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=W0(this._months)!==W0(s)?"-":"",u=W0(this._days)!==W0(s)?"-":"",d=W0(this._milliseconds)!==W0(s)?"-":"",l+"P"+(o?c+o+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+a+"S":"")):"P0D"}var ri=BP.prototype;ri.isValid=kUe;ri.abs=fVe;ri.add=pVe;ri.subtract=hVe;ri.as=gVe;ri.asMilliseconds=$ye;ri.asSeconds=vVe;ri.asMinutes=bVe;ri.asHours=yVe;ri.asDays=_Ve;ri.asWeeks=SVe;ri.asMonths=EVe;ri.asQuarters=CVe;ri.asYears=wVe;ri.valueOf=TVe;ri._bubble=mVe;ri.clone=xVe;ri.get=OVe;ri.milliseconds=RVe;ri.seconds=IVe;ri.minutes=AVe;ri.hours=NVe;ri.days=MVe;ri.weeks=DVe;ri.months=kVe;ri.years=PVe;ri.humanize=jVe;ri.toISOString=HP;ri.toString=HP;ri.toJSON=HP;ri.locale=Cye;ri.localeData=Tye;ri.toIsoString=wu("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",HP);ri.lang=wye;or("X",0,0,"unix");or("x",0,0,"valueOf");jn("x",DP);jn("X",sHe);$i("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});$i("x",function(e,t,n){n._d=new Date(Wr(e))});//! moment.js -En.version="2.30.1";Hje(co);En.fn=fn;En.min=IUe;En.max=AUe;En.now=NUe;En.utc=Vf;En.unix=oVe;En.months=sVe;En.isDate=qx;En.locale=tg;En.invalid=NP;En.duration=$d;En.isMoment=Ed;En.weekdays=cVe;En.parseZone=aVe;En.localeData=_h;En.isDuration=yA;En.monthsShort=lVe;En.weekdaysMin=dVe;En.defineLocale=yW;En.updateLocale=aUe;En.locales=sUe;En.weekdaysShort=uVe;En.normalizeUnits=Tu;En.relativeTimeRounding=FVe;En.relativeTimeThreshold=BVe;En.calendarFormat=nze;En.prototype=fn;En.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let cR;const HVe=new Uint8Array(16);function UVe(){if(!cR&&(cR=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!cR))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cR(HVe)}const qa=[];for(let e=0;e<256;++e)qa.push((e+256).toString(16).slice(1));function zVe(e,t=0){return qa[e[t+0]]+qa[e[t+1]]+qa[e[t+2]]+qa[e[t+3]]+"-"+qa[e[t+4]]+qa[e[t+5]]+"-"+qa[e[t+6]]+qa[e[t+7]]+"-"+qa[e[t+8]]+qa[e[t+9]]+"-"+qa[e[t+10]]+qa[e[t+11]]+qa[e[t+12]]+qa[e[t+13]]+qa[e[t+14]]+qa[e[t+15]]}const VVe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Tte={randomUUID:VVe};function GVe(e,t,n){if(Tte.randomUUID&&!t&&!e)return Tte.randomUUID();e=e||{};const r=e.random||(e.rng||UVe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,zVe(r)}const WVe="1.0.2";function qVe(){return WVe}function YVe(){const e=localStorage.getItem(iA);(e===null||e==="true")&&new Audio(zLe).play()}function KVe(){return En().format("YYYY-MM-DD HH:mm:ss")}function UP(){return GVe().replaceAll(/-/g,"")}function q0(e){return e.endsWith("/")?e.slice(0,-1):e}function xte(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function QVe(e){if(KLe===e||QLe===e||XLe===e||ZLe===e||JLe===e)return!0}function XVe(e){return e===fT||e===pT}function ZVe(e){return e===fT||e===pT}function JVe(e){return e.startsWith(a6e)}function Lye(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}function eGe(){return["undo","redo","brush","eraser","|","bold","italic","underline","strike","link","code","hr","todo","emoji","font-color","|","image","video","attachment","quote","code-block","table"]}const $l=Oc()(Md(kd(Pd(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:CLe}))),id=Oc()(Md(kd(Pd((e,t)=>({threads:[],queuingThreads:[],currentThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},currentQueuingThread:{uid:"",user:{uid:"",nickname:"",avatar:""}},threadResult:{data:{content:[],last:!0}},showQueueButton:!1,showQueueList:!1,showRightPanel:!1,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{},addThread(n){var i,o;if(n.state===tee)return t().addQueuingThread(n),0;if(t().threads.some(a=>a.topic===n.topic))if(((i=t().currentThread)==null?void 0:i.topic)===""||((o=t().currentThread)==null?void 0:o.topic)!==n.topic){for(let a=0;aa.topic!==n.topic)]}),n.unreadCount}else{const a=t().threads.map(s=>s.topic===n.topic?(n.top=s.top,n.mute=s.mute,n.unread=s.unread,n.agent=s.agent,n):s);return e({threads:a}),0}else return n.unreadCount=1,e({threads:[n,...t().threads]}),n.unreadCount},addThreadWithMessage(n,r){var s,l;if(r.type===YLe)return t().addQueuingThread(n),0;const i=t().threads.some(c=>c.topic===n.topic),o=!XVe(r.type);if(ZVe(r.type)&&(n.state=nee),i)if(((s=t().currentThread)==null?void 0:s.topic)===""||((l=t().currentThread)==null?void 0:l.topic)!==n.topic){for(let c=0;cc.topic!==n.topic)]}),n.unreadCount}else{const c=t().threads.map(u=>u.topic===n.topic?(n.top=u.top,n.mute=u.mute,n.unread=u.unread,n.agent=u.agent,n):u);return e({threads:c}),0}else return o&&(n.unreadCount=1),e({threads:[n,...t().threads]}),n.unreadCount},addQueuingThread(n){t().queuingThreads.some(i=>i.topic===n.topic)||e({queuingThreads:[n,...t().queuingThreads]})},updateThreadContent(n,r){let i=null;const o=t().threads.map(a=>a.topic===n?(i={...a,unreadCount:a.unreadCount+1,content:r},i):a);return e({threads:o}),i},updateThreadStatus(n,r){let i=null;const o=t().threads.map(a=>a.topic===n?(i={...a,state:r},i):a);return e({threads:o}),i},removeThread(n){e({threads:[...t().threads.filter(r=>(r==null?void 0:r.uid)!==(n==null?void 0:n.uid))]})},closeThread(n){const r=t().threads.map(i=>i.topic===n?{...i,state:nee}:i);e({threads:r})},addThreads(n){for(let r=0;ra.topic===i.topic))e({threads:[...t().threads,i]});else{const a=t().threads.map(s=>s.topic===i.topic?{...i,unreadCount:s.unreadCount}:s);e({threads:a})}}},setThreads(n){e(r=>{r.threads=n})},setQueuingThreads(n){e(r=>{r.queuingThreads=n})},setCurrentThread(n){e(o=>{o.showQueueList=!1});const r={...n,unreadCount:0},i=t().threads.map(o=>o.topic===r.topic?r:o);e(o=>{o.currentThread=r,o.threads=i})},setCurrentQueuingThread(n){e(r=>{r.currentQueuingThread=n})},setThreadResult(n){e(r=>{r.threadResult=n})},getUnreadCount(){return t().threads.reduce((n,r)=>{var i;return r.unreadCount>0&&r.topic!==((i=t().currentThread)==null?void 0:i.topic)?n+r.unreadCount:n},0)},setShowQueueButton(n){e(r=>{r.showQueueButton=n})},setShowQueueList(n){e(r=>{r.showQueueList=n,r.showRightPanel=!1})},setShowRightPanel(n){e(r=>{r.showRightPanel=n})},resetThreads(){e(n=>{n.threads=[],n.queuingThreads=[],n.currentThread={uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},n.currentQueuingThread={uid:"",user:{uid:"",nickname:"",avatar:""}},n.threadResult={data:{content:[],last:!0}},n.showQueueButton=!1,n.showQueueList=!1,n.showRightPanel=!1})},setLoading:n=>e({loading:n}),setError:n=>e({error:n}),setSearchText:n=>e({searchText:n}),setFilter:(n,r)=>e(i=>{i.filters[n]=r}),clearFilters:()=>e({filters:{}}),refreshThreads:async()=>{const{currentOrg:n}=$l.getState();if(n!=null&&n.uid){const{threadService:r}=await oW(async()=>{const{threadService:i}=await import("./threadService-CYtUfoLW.js");return{threadService:i}},[]);await r.loadThreads(n.uid)}},setPagination:n=>e({pagination:n})})),{name:ILe}))),Eh=Oc()(Md(kd(Pd((e,t)=>({messageList:[],addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===dT){const o=t().messageList.findIndex(a=>a.type===dT&&a.uid===n.uid);if(o!==-1){const a=[...t().messageList];a[o].content+=n.content,e({messageList:a});return}}const i=t().messageList.findIndex(o=>o.uid===n.uid);if(i!==-1){const o=[...t().messageList];o[i]=n,e({messageList:o})}}else{const i=t().messageList[t().messageList.length-1];if(i&&n.type===GF&&i.type===GF){const o=t().messageList.findIndex(s=>s.uid===i.uid),a=[...t().messageList];a[o]=n,e({messageList:a})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let o=0;ol.uid===a.uid)||r.unshift(a)}const i=[...r,...t().messageList].sort((o,a)=>{const s=En(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=En(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",i),e({messageList:i})},updateMessageStatus(n,r){const i=t().messageList.findIndex(o=>o.uid===n);if(i!==-1){const o=[...t().messageList];o[i].status=r,e({messageList:o})}},updateMessage(n){const r=t().messageList.findIndex(i=>i.uid===n.uid);if(r!==-1){const i=[...t().messageList];i[r].content=n.content,e({messageList:i})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i.splice(r,1),e({messageList:i})}},recallMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i[r].type=vve,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const o=En(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),a=En(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return o-a});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:TLe}))),xa=Oc()(Md(kd(Pd((e,t)=>({userInfo:{uid:"",nickname:"",avatar:""},deviceUid:"",setUserInfo:n=>{e({userInfo:n})},setDeviceUid(n){e({deviceUid:n})},resetUserInfo(){e({userInfo:{uid:t().userInfo.uid,nickname:"",avatar:""}})}})),{name:OLe}))),b0=Oc()(Md(kd(Pd((e,t)=>({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""},insertAgent(n){e(r=>{r.agentResult.data.content.unshift(n)})},updateAgent(n){e(r=>{const i=r.agentResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i[o]=n:console.warn(`Agent with uid ${n.uid} not found.`)})},deleteAgent(n){e(r=>{const i=r.agentResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i.splice(o,1):console.warn(`Agent with uid ${n.uid} not found.`)})},setAgentResult:n=>{e({agentResult:n})},setAgentInfo(n){e({agentInfo:n})},deleteAgentInfo(n){const r=t().agentResult.data.content,i=r.findIndex(o=>o.uid===n);i!==-1?e({agentResult:{...t().agentResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Agent not found in cache:",n),t().agentInfo.uid===n&&e({agentInfo:{uid:"",orgUid:""}})},resetAgentInfo(){e({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""}})}})),{name:NLe})));var Fye={exports:{}};/*! +En.version="2.30.1";Hje(co);En.fn=fn;En.min=IUe;En.max=AUe;En.now=NUe;En.utc=Vf;En.unix=oVe;En.months=sVe;En.isDate=qx;En.locale=tg;En.invalid=NP;En.duration=$d;En.isMoment=Ed;En.weekdays=cVe;En.parseZone=aVe;En.localeData=_h;En.isDuration=yA;En.monthsShort=lVe;En.weekdaysMin=dVe;En.defineLocale=yW;En.updateLocale=aUe;En.locales=sUe;En.weekdaysShort=uVe;En.normalizeUnits=Tu;En.relativeTimeRounding=FVe;En.relativeTimeThreshold=BVe;En.calendarFormat=nze;En.prototype=fn;En.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let cR;const HVe=new Uint8Array(16);function UVe(){if(!cR&&(cR=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!cR))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cR(HVe)}const qa=[];for(let e=0;e<256;++e)qa.push((e+256).toString(16).slice(1));function zVe(e,t=0){return qa[e[t+0]]+qa[e[t+1]]+qa[e[t+2]]+qa[e[t+3]]+"-"+qa[e[t+4]]+qa[e[t+5]]+"-"+qa[e[t+6]]+qa[e[t+7]]+"-"+qa[e[t+8]]+qa[e[t+9]]+"-"+qa[e[t+10]]+qa[e[t+11]]+qa[e[t+12]]+qa[e[t+13]]+qa[e[t+14]]+qa[e[t+15]]}const VVe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Tte={randomUUID:VVe};function GVe(e,t,n){if(Tte.randomUUID&&!t&&!e)return Tte.randomUUID();e=e||{};const r=e.random||(e.rng||UVe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,zVe(r)}const WVe="1.0.2";function qVe(){return WVe}function YVe(){const e=localStorage.getItem(iA);(e===null||e==="true")&&new Audio(zLe).play()}function KVe(){return En().format("YYYY-MM-DD HH:mm:ss")}function UP(){return GVe().replaceAll(/-/g,"")}function q0(e){return e.endsWith("/")?e.slice(0,-1):e}function xte(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function QVe(e){if(KLe===e||QLe===e||XLe===e||ZLe===e||JLe===e)return!0}function XVe(e){return e===fT||e===pT}function ZVe(e){return e===fT||e===pT}function JVe(e){return e.startsWith(a6e)}function Lye(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}function eGe(){return["undo","redo","brush","eraser","|","bold","italic","underline","strike","link","code","hr","todo","emoji","font-color","|","image","video","attachment","quote","code-block","table"]}const $l=Oc()(Md(kd(Pd(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:CLe}))),id=Oc()(Md(kd(Pd((e,t)=>({threads:[],queuingThreads:[],currentThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},currentQueuingThread:{uid:"",user:{uid:"",nickname:"",avatar:""}},threadResult:{data:{content:[],last:!0}},showQueueButton:!1,showQueueList:!1,showRightPanel:!1,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{},addThread(n){var i,o;if(n.state===tee)return t().addQueuingThread(n),0;if(t().threads.some(a=>a.topic===n.topic))if(((i=t().currentThread)==null?void 0:i.topic)===""||((o=t().currentThread)==null?void 0:o.topic)!==n.topic){for(let a=0;aa.topic!==n.topic)]}),n.unreadCount}else{const a=t().threads.map(s=>s.topic===n.topic?(n.top=s.top,n.mute=s.mute,n.unread=s.unread,n.agent=s.agent,n):s);return e({threads:a}),0}else return n.unreadCount=1,e({threads:[n,...t().threads]}),n.unreadCount},addThreadWithMessage(n,r){var s,l;if(r.type===YLe)return t().addQueuingThread(n),0;const i=t().threads.some(c=>c.topic===n.topic),o=!XVe(r.type);if(ZVe(r.type)&&(n.state=nee),i)if(((s=t().currentThread)==null?void 0:s.topic)===""||((l=t().currentThread)==null?void 0:l.topic)!==n.topic){for(let c=0;cc.topic!==n.topic)]}),n.unreadCount}else{const c=t().threads.map(u=>u.topic===n.topic?(n.top=u.top,n.mute=u.mute,n.unread=u.unread,n.agent=u.agent,n):u);return e({threads:c}),0}else return o&&(n.unreadCount=1),e({threads:[n,...t().threads]}),n.unreadCount},addQueuingThread(n){t().queuingThreads.some(i=>i.topic===n.topic)||e({queuingThreads:[n,...t().queuingThreads]})},updateThreadContent(n,r){let i=null;const o=t().threads.map(a=>a.topic===n?(i={...a,unreadCount:a.unreadCount+1,content:r},i):a);return e({threads:o}),i},updateThreadStatus(n,r){let i=null;const o=t().threads.map(a=>a.topic===n?(i={...a,state:r},i):a);return e({threads:o}),i},removeThread(n){e({threads:[...t().threads.filter(r=>(r==null?void 0:r.uid)!==(n==null?void 0:n.uid))]})},closeThread(n){const r=t().threads.map(i=>i.topic===n?{...i,state:nee}:i);e({threads:r})},addThreads(n){for(let r=0;ra.topic===i.topic))e({threads:[...t().threads,i]});else{const a=t().threads.map(s=>s.topic===i.topic?{...i,unreadCount:s.unreadCount}:s);e({threads:a})}}},setThreads(n){e(r=>{r.threads=n})},setQueuingThreads(n){e(r=>{r.queuingThreads=n})},setCurrentThread(n){e(o=>{o.showQueueList=!1});const r={...n,unreadCount:0},i=t().threads.map(o=>o.topic===r.topic?r:o);e(o=>{o.currentThread=r,o.threads=i})},setCurrentQueuingThread(n){e(r=>{r.currentQueuingThread=n})},setThreadResult(n){e(r=>{r.threadResult=n})},getUnreadCount(){return t().threads.reduce((n,r)=>{var i;return r.unreadCount>0&&r.topic!==((i=t().currentThread)==null?void 0:i.topic)?n+r.unreadCount:n},0)},setShowQueueButton(n){e(r=>{r.showQueueButton=n})},setShowQueueList(n){e(r=>{r.showQueueList=n,r.showRightPanel=!1})},setShowRightPanel(n){e(r=>{r.showRightPanel=n})},resetThreads(){e(n=>{n.threads=[],n.queuingThreads=[],n.currentThread={uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},n.currentQueuingThread={uid:"",user:{uid:"",nickname:"",avatar:""}},n.threadResult={data:{content:[],last:!0}},n.showQueueButton=!1,n.showQueueList=!1,n.showRightPanel=!1})},setLoading:n=>e({loading:n}),setError:n=>e({error:n}),setSearchText:n=>e({searchText:n}),setFilter:(n,r)=>e(i=>{i.filters[n]=r}),clearFilters:()=>e({filters:{}}),refreshThreads:async()=>{const{currentOrg:n}=$l.getState();if(n!=null&&n.uid){const{threadService:r}=await oW(async()=>{const{threadService:i}=await import("./threadService-Bmr3Oiaf.js");return{threadService:i}},[]);await r.loadThreads(n.uid)}},setPagination:n=>e({pagination:n})})),{name:ILe}))),Eh=Oc()(Md(kd(Pd((e,t)=>({messageList:[],addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===dT){const o=t().messageList.findIndex(a=>a.type===dT&&a.uid===n.uid);if(o!==-1){const a=[...t().messageList];a[o].content+=n.content,e({messageList:a});return}}const i=t().messageList.findIndex(o=>o.uid===n.uid);if(i!==-1){const o=[...t().messageList];o[i]=n,e({messageList:o})}}else{const i=t().messageList[t().messageList.length-1];if(i&&n.type===GF&&i.type===GF){const o=t().messageList.findIndex(s=>s.uid===i.uid),a=[...t().messageList];a[o]=n,e({messageList:a})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let o=0;ol.uid===a.uid)||r.unshift(a)}const i=[...r,...t().messageList].sort((o,a)=>{const s=En(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=En(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",i),e({messageList:i})},updateMessageStatus(n,r){const i=t().messageList.findIndex(o=>o.uid===n);if(i!==-1){const o=[...t().messageList];o[i].status=r,e({messageList:o})}},updateMessage(n){const r=t().messageList.findIndex(i=>i.uid===n.uid);if(r!==-1){const i=[...t().messageList];i[r].content=n.content,e({messageList:i})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i.splice(r,1),e({messageList:i})}},recallMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i[r].type=vve,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const o=En(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),a=En(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return o-a});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:TLe}))),xa=Oc()(Md(kd(Pd((e,t)=>({userInfo:{uid:"",nickname:"",avatar:""},deviceUid:"",setUserInfo:n=>{e({userInfo:n})},setDeviceUid(n){e({deviceUid:n})},resetUserInfo(){e({userInfo:{uid:t().userInfo.uid,nickname:"",avatar:""}})}})),{name:OLe}))),b0=Oc()(Md(kd(Pd((e,t)=>({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""},insertAgent(n){e(r=>{r.agentResult.data.content.unshift(n)})},updateAgent(n){e(r=>{const i=r.agentResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i[o]=n:console.warn(`Agent with uid ${n.uid} not found.`)})},deleteAgent(n){e(r=>{const i=r.agentResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i.splice(o,1):console.warn(`Agent with uid ${n.uid} not found.`)})},setAgentResult:n=>{e({agentResult:n})},setAgentInfo(n){e({agentInfo:n})},deleteAgentInfo(n){const r=t().agentResult.data.content,i=r.findIndex(o=>o.uid===n);i!==-1?e({agentResult:{...t().agentResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Agent not found in cache:",n),t().agentInfo.uid===n&&e({agentInfo:{uid:"",orgUid:""}})},resetAgentInfo(){e({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""}})}})),{name:NLe})));var Fye={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames @@ -761,7 +761,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var R3=xr.default;Object.defineProperty(vd,"__esModule",{value:!0});vd.default=Lqt;vd.unitless=vd.ignore=vd.getComputedToken=void 0;var Aqt=R3(p),Nqt=Dg,Mqt=R3(T3),gce=Mf,kqt=R3(jf),GAe=R3(rQ),vce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,o=vce(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=(0,GAe.default)(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=vce(c,["theme"]);let f=d;u&&(f=iQ(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=f}),a};vd.getComputedToken=iQ;function Lqt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=Aqt.default.useContext(gce.DesignTokenContext),o=`${Mqt.default}-${t||""}`,a=n||gce.defaultTheme,[s,l,c]=(0,Nqt.useCacheToken)(a,[kqt.default,e],{salt:o,override:r,getComputedToken:iQ,formatToken:GAe.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Pqt,ignore:Dqt,preserve:$qt}});return[a,c,t?l:"",s,i]}var og={},xo={};Object.defineProperty(xo,"__esModule",{value:!0});xo.textEllipsis=xo.resetIcon=xo.resetComponent=xo.operationUnit=xo.genLinkStyle=xo.genIconStyle=xo.genFocusStyle=xo.genFocusOutline=xo.genCommonStyle=xo.clearFix=void 0;var Fqt=Dg;xo.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const Bqt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}};xo.resetComponent=Bqt;const WAe=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});xo.resetIcon=WAe;const jqt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});xo.clearFix=jqt;const Hqt=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}});xo.genLinkStyle=Hqt;const Uqt=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}};xo.genCommonStyle=Uqt;const qAe=(e,t)=>({outline:`${(0,Fqt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});xo.genFocusOutline=qAe;const YAe=(e,t)=>({"&:focus-visible":Object.assign({},qAe(e,t))});xo.genFocusStyle=YAe;const zqt=e=>({[`.${e}`]:Object.assign(Object.assign({},WAe()),{[`.${e} .${e}-icon`]:{display:"block"}})});xo.genIconStyle=zqt;const Vqt=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},YAe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});xo.operationUnit=Vqt;var Gqt=oa.default;Object.defineProperty(og,"__esModule",{value:!0});og.genSubStyleComponent=og.genStyleHooks=og.genComponentStyleHook=void 0;var bce=p,Wqt=zAe,QL=sc,XL=xo,yce=Gqt(vd);const{genStyleHooks:qqt,genComponentStyleHook:Yqt,genSubStyleComponent:Kqt}=(0,Wqt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,bce.useContext)(QL.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,yce.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,bce.useContext)(QL.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,XL.genLinkStyle)(e)},(0,XL.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:QL.defaultIconPrefixCls)]},getCommonStyle:XL.genCommonStyle,getCompUnitless:()=>yce.unitless});og.genSubStyleComponent=Kqt;og.genComponentStyleHook=Yqt;og.genStyleHooks=qqt;var oQ={};Object.defineProperty(oQ,"__esModule",{value:!0});oQ.default=Xqt;var Qqt=nQ;function Xqt(e,t){return Qqt.PresetColors.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}var I3={},Zqt=xr.default;Object.defineProperty(I3,"__esModule",{value:!0});I3.default=void 0;var Jqt=Dg,eYt=xo,tYt=Zqt(vd);const nYt=(e,t)=>{const[n,r]=(0,tYt.default)();return(0,Jqt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,eYt.genIconStyle)(e)])};I3.default=nYt;(function(e){var t=xr.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DesignTokenContext",{enumerable:!0,get:function(){return u.DesignTokenContext}}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return i.PresetColors}}),Object.defineProperty(e,"calc",{enumerable:!0,get:function(){return r.genCalc}}),Object.defineProperty(e,"defaultConfig",{enumerable:!0,get:function(){return u.defaultConfig}}),Object.defineProperty(e,"genComponentStyleHook",{enumerable:!0,get:function(){return s.genComponentStyleHook}}),Object.defineProperty(e,"genPresetColor",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"genStyleHooks",{enumerable:!0,get:function(){return s.genStyleHooks}}),Object.defineProperty(e,"genSubStyleComponent",{enumerable:!0,get:function(){return s.genSubStyleComponent}}),Object.defineProperty(e,"getLineHeight",{enumerable:!0,get:function(){return o.getLineHeight}}),Object.defineProperty(e,"mergeToken",{enumerable:!0,get:function(){return r.mergeToken}}),Object.defineProperty(e,"statistic",{enumerable:!0,get:function(){return r.statistic}}),Object.defineProperty(e,"statisticToken",{enumerable:!0,get:function(){return r.statisticToken}}),Object.defineProperty(e,"useResetIconStyle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useStyleRegister",{enumerable:!0,get:function(){return n.useStyleRegister}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return a.default}});var n=Dg,r=zAe,i=nQ,o=eO,a=t(vd),s=og,l=t(oQ),c=t(I3),u=Mf})(nE);var A3={},rYt=oa.default;Object.defineProperty(A3,"__esModule",{value:!0});A3.default=void 0;var iYt=rYt(p);const oYt=Object.assign({},iYt),{useId:_ce}=oYt,aYt=()=>"",sYt=typeof _ce>"u"?aYt:_ce;A3.default=sYt;var aQ=xr.default;Object.defineProperty(tQ,"__esModule",{value:!0});tQ.default=fYt;var lYt=aQ(p3),cYt=aQ(C3),uYt=su,Sce=nE,dYt=aQ(A3);function fYt(e,t,n){var r;(0,uYt.devUseWarning)("ConfigProvider");const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},Sce.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Sce.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=(0,dYt.default)();return(0,lYt.default)(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(f=>{c[f]=Object.assign(Object.assign({},c[f]),e.components[f])});const u=`css-var-${a.replace(/:/g,"")}`,d=((s=i.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:d})},[i,o],(s,l)=>s.some((c,u)=>{const d=l[u];return!(0,cYt.default)(c,d,!0)}))}var sQ={};const pYt=Nx(DYe);var hYt=oa.default;Object.defineProperty(sQ,"__esModule",{value:!0});sQ.default=vYt;var Ece=hYt(p),mYt=pYt,gYt=nE;function vYt(e){const{children:t}=e,[,n]=(0,gYt.useToken)(),{motion:r}=n,i=Ece.useRef(!1);return i.current=i.current||r===!1,i.current?Ece.createElement(mYt.Provider,{motion:r},t):t}var N3={},bYt=oa.default;Object.defineProperty(N3,"__esModule",{value:!0});N3.default=void 0;bYt(p);N3.default=()=>null;var KAe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=nE})(KAe);(function(e){"use client";var t=xr.default,n=oa.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return g.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return g.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return g.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return g.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return g.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var r=n(p),i=Dg,o=t(JS),a=t(p3),s=h3,l=n(su),c=t(m3),u=n(DAe),d=t(tE),f=t(u0),h=Mf,m=t(jf),g=sc,v=S3,y=Xv,b=t(E3),_=t(tQ),E=t(sQ),w=t(N3),S=n(Zv),C=t(KAe),T=function(q,H){var z={};for(var J in q)Object.prototype.hasOwnProperty.call(q,J)&&H.indexOf(J)<0&&(z[J]=q[J]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,J=Object.getOwnPropertySymbols(q);teH.endsWith("Color"))}const I=q=>{const{prefixCls:H,iconPrefixCls:z,theme:J,holderRender:te}=q;H!==void 0&&(O=H),z!==void 0&&(N=z),"holderRender"in q&&(M=te),J&&(B(J)?(0,v.registerTheme)(F(),J):A=J)},k=()=>({getPrefixCls:(q,H)=>H||(q?`${F()}-${q}`:F()),getIconPrefixCls:P,getRootPrefixCls:()=>O||F(),getTheme:()=>A,holderRender:M});e.globalConfig=k;const U=q=>{const{children:H,csp:z,autoInsertSpaceInButton:J,alert:te,anchor:ae,form:K,locale:Q,componentSize:oe,direction:ge,space:fe,splitter:ue,virtual:le,dropdownMatchSelectWidth:ve,popupMatchSelectWidth:ne,popupOverflow:pe,legacyLocale:be,parentContext:Re,iconPrefixCls:Se,theme:Ce,componentDisabled:ye,segmented:he,statistic:_e,spin:Oe,calendar:De,carousel:Y,cascader:$,collapse:V,typography:ie,checkbox:me,descriptions:se,divider:Be,drawer:Ve,skeleton:re,steps:Me,image:je,layout:ke,list:Ge,mentions:Ue,modal:qe,progress:At,result:at,slider:pt,breadcrumb:Ct,menu:bt,pagination:Vt,input:Tt,textArea:Ot,empty:Ut,badge:ze,radio:Ye,rate:He,switch:Ze,transfer:yt,avatar:_t,message:Bt,tag:Nt,table:vt,card:ht,tabs:kt,timeline:Et,timePicker:Yt,upload:ct,notification:Rt,tree:Ht,colorPicker:wt,datePicker:St,rangePicker:jt,flex:Pe,wave:Pt,dropdown:rt,warning:Mt,tour:It,tooltip:xn,popover:Hn,popconfirm:R,floatButtonGroup:L,variant:Z,inputNumber:xe,treeSelect:Le}=q,et=r.useCallback((on,an)=>{const{prefixCls:Gn}=q;if(an)return an;const _r=Gn||Re.getPrefixCls("");return on?`${_r}-${on}`:_r},[Re.getPrefixCls,q.prefixCls]),Lt=Se||Re.iconPrefixCls||g.defaultIconPrefixCls,pn=z||Re.csp;(0,C.default)(Lt,pn);const Fn=(0,_.default)(Ce,Re.theme,{prefixCls:et("")}),Xr={csp:pn,autoInsertSpaceInButton:J,alert:te,anchor:ae,locale:Q||be,direction:ge,space:fe,splitter:ue,virtual:le,popupMatchSelectWidth:ne??ve,popupOverflow:pe,getPrefixCls:et,iconPrefixCls:Lt,theme:Fn,segmented:he,statistic:_e,spin:Oe,calendar:De,carousel:Y,cascader:$,collapse:V,typography:ie,checkbox:me,descriptions:se,divider:Be,drawer:Ve,skeleton:re,steps:Me,image:je,input:Tt,textArea:Ot,layout:ke,list:Ge,mentions:Ue,modal:qe,progress:At,result:at,slider:pt,breadcrumb:Ct,menu:bt,pagination:Vt,empty:Ut,badge:ze,radio:Ye,rate:He,switch:Ze,transfer:yt,avatar:_t,message:Bt,tag:Nt,table:vt,card:ht,tabs:kt,timeline:Et,timePicker:Yt,upload:ct,notification:Rt,tree:Ht,colorPicker:wt,datePicker:St,rangePicker:jt,flex:Pe,wave:Pt,dropdown:rt,warning:Mt,tour:It,tooltip:xn,popover:Hn,popconfirm:R,floatButtonGroup:L,variant:Z,inputNumber:xe,treeSelect:Le},$r=Object.assign({},Re);Object.keys(Xr).forEach(on=>{Xr[on]!==void 0&&($r[on]=Xr[on])}),x.forEach(on=>{const an=q[on];an&&($r[on]=an)}),typeof J<"u"&&($r.button=Object.assign({autoInsertSpace:J},$r.button));const bi=(0,a.default)(()=>$r,$r,(on,an)=>{const Gn=Object.keys(on),_r=Object.keys(an);return Gn.length!==_r.length||Gn.some(oi=>on[oi]!==an[oi])}),Sr=r.useMemo(()=>({prefixCls:Lt,csp:pn}),[Lt,pn]);let ln=r.createElement(r.Fragment,null,r.createElement(w.default,{dropdownMatchSelectWidth:ve}),H);const _n=r.useMemo(()=>{var on,an,Gn,_r;return(0,s.merge)(((on=f.default.Form)===null||on===void 0?void 0:on.defaultValidateMessages)||{},((Gn=(an=bi.locale)===null||an===void 0?void 0:an.Form)===null||Gn===void 0?void 0:Gn.defaultValidateMessages)||{},((_r=bi.form)===null||_r===void 0?void 0:_r.validateMessages)||{},(K==null?void 0:K.validateMessages)||{})},[bi,K==null?void 0:K.validateMessages]);Object.keys(_n).length>0&&(ln=r.createElement(c.default.Provider,{value:_n},ln)),Q&&(ln=r.createElement(u.default,{locale:Q,_ANT_MARK__:u.ANT_MARK},ln)),(Lt||pn)&&(ln=r.createElement(o.default.Provider,{value:Sr},ln)),oe&&(ln=r.createElement(S.SizeContextProvider,{size:oe},ln)),ln=r.createElement(E.default,null,ln);const Er=r.useMemo(()=>{const on=Fn||{},{algorithm:an,token:Gn,components:_r,cssVar:oi}=on,Zi=T(on,["algorithm","token","components","cssVar"]),nr=an&&(!Array.isArray(an)||an.length>0)?(0,i.createTheme)(an):h.defaultTheme,Fi={};Object.entries(_r||{}).forEach(dn=>{let[wn,Mn]=dn;const Qn=Object.assign({},Mn);"algorithm"in Qn&&(Qn.algorithm===!0?Qn.theme=nr:(Array.isArray(Qn.algorithm)||typeof Qn.algorithm=="function")&&(Qn.theme=(0,i.createTheme)(Qn.algorithm)),delete Qn.algorithm),Fi[wn]=Qn});const Zn=Object.assign(Object.assign({},m.default),Gn);return Object.assign(Object.assign({},Zi),{theme:nr,token:Zn,components:Fi,override:Object.assign({override:Zn},Fi),cssVar:oi})},[Fn]);return Ce&&(ln=r.createElement(h.DesignTokenContext.Provider,{value:Er},ln)),bi.warning&&(ln=r.createElement(l.WarningContext.Provider,{value:bi.warning},ln)),ye!==void 0&&(ln=r.createElement(y.DisabledContextProvider,{disabled:ye},ln)),r.createElement(g.ConfigContext.Provider,{value:bi},ln)},D=q=>{const H=r.useContext(g.ConfigContext),z=r.useContext(d.default);return r.createElement(U,Object.assign({parentContext:H,legacyLocale:z},q))};D.ConfigContext=g.ConfigContext,D.SizeContext=S.default,D.config=I,D.useConfig=b.default,Object.defineProperty(D,"SizeContext",{get:()=>S.default}),e.default=D})(WK);var nO={},yYt=oa.default;Object.defineProperty(nO,"__esModule",{value:!0});nO.LayoutContext=void 0;var _Yt=yYt(p);nO.LayoutContext=_Yt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var lQ={},cQ={},uQ={},SYt=xr.default;Object.defineProperty(uQ,"__esModule",{value:!0});uQ.default=xYt;var EYt=SYt(d0),CYt=Symbol.for("react.element"),wYt=Symbol.for("react.transitional.element"),TYt=Symbol.for("react.fragment");function xYt(e){return e&&(0,EYt.default)(e)==="object"&&(e.$$typeof===CYt||e.$$typeof===wYt)&&e.type===TYt}var QAe=xr.default;Object.defineProperty(cQ,"__esModule",{value:!0});cQ.default=cz;var OYt=QAe(uQ),RYt=QAe(p);function cz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return RYt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(cz(r)):(0,OYt.default)(r)&&r.props?n=n.concat(cz(r.props.children,t)):n.push(r))}),n}var k_={},uz={exports:{}},M3={},dQ={};Object.defineProperty(dQ,"__esModule",{value:!0});var IYt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};dQ.default=IYt;var AYt=oa.default,fQ=xr.default;Object.defineProperty(M3,"__esModule",{value:!0});M3.default=void 0;var NYt=fQ(VD),XAe=AYt(p),MYt=fQ(dQ),kYt=fQ(ZS),PYt=function(t,n){return XAe.createElement(kYt.default,(0,NYt.default)({},t,{ref:n,icon:MYt.default}))},DYt=XAe.forwardRef(PYt);M3.default=DYt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(M3);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(uz,uz.exports);var $Yt=uz.exports,dz={exports:{}},k3={},pQ={};Object.defineProperty(pQ,"__esModule",{value:!0});var LYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};pQ.default=LYt;var FYt=oa.default,hQ=xr.default;Object.defineProperty(k3,"__esModule",{value:!0});k3.default=void 0;var BYt=hQ(VD),ZAe=FYt(p),jYt=hQ(pQ),HYt=hQ(ZS),UYt=function(t,n){return ZAe.createElement(HYt.default,(0,BYt.default)({},t,{ref:n,icon:jYt.default}))},zYt=ZAe.forwardRef(UYt);k3.default=zYt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(k3);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(dz,dz.exports);var VYt=dz.exports,fz={exports:{}},P3={},mQ={};Object.defineProperty(mQ,"__esModule",{value:!0});var GYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};mQ.default=GYt;var WYt=oa.default,gQ=xr.default;Object.defineProperty(P3,"__esModule",{value:!0});P3.default=void 0;var qYt=gQ(VD),JAe=WYt(p),YYt=gQ(mQ),KYt=gQ(ZS),QYt=function(t,n){return JAe.createElement(KYt.default,(0,qYt.default)({},t,{ref:n,icon:YYt.default}))},XYt=JAe.forwardRef(QYt);P3.default=XYt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(P3);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(fz,fz.exports);var ZYt=fz.exports,D3={},Qp={};Object.defineProperty(Qp,"__esModule",{value:!0});Qp.prepareComponentToken=Qp.default=Qp.DEPRECATED_TOKENS=void 0;var JYt=Dg,eKt=nE;const tKt=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:a,color:s,lineHeight:(0,JYt.unit)(o),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},eNe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}};Qp.prepareComponentToken=eNe;const nKt=Qp.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Qp.default=(0,eKt.genStyleHooks)("Layout",e=>[tKt(e)],eNe,{deprecatedTokens:nKt});Object.defineProperty(D3,"__esModule",{value:!0});D3.default=void 0;var XE=Dg,Cce=Qp,rKt=nE;const iKt=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:h,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:(0,XE.unit)(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,XE.unit)(f)} ${(0,XE.unit)(f)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,XE.unit)(f)} 0 0 ${(0,XE.unit)(f)}`}}},"&-light":{background:h,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};D3.default=(0,rKt.genStyleHooks)(["Layout","Sider"],e=>[iKt(e)],Cce.prepareComponentToken,{deprecatedTokens:Cce.DEPRECATED_TOKENS});var rE=xr.default,oKt=oa.default;Object.defineProperty(k_,"__esModule",{value:!0});k_.default=k_.SiderContext=void 0;var _p=oKt(p),Zl=_p,aKt=rE($Yt),wce=rE(VYt),Tce=rE(ZYt),xce=rE(zP),sKt=rE(f3),lKt=WK,cKt=nO,uKt=rE(D3),dKt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i!Number.isNaN(Number.parseFloat(e))&&isFinite(e),pKt=k_.SiderContext=Zl.createContext({}),hKt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),mKt=Zl.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=dKt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,_p.useContext)(cKt.LayoutContext),[_,E]=(0,_p.useState)("collapsed"in e?e.collapsed:a),[w,S]=(0,_p.useState)(!1);(0,_p.useEffect)(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const C=(Q,oe)=>{"collapsed"in e||E(Q),g==null||g(Q,oe)},{getPrefixCls:T,direction:x}=(0,_p.useContext)(lKt.ConfigContext),O=T("layout-sider",n),[N,A,M]=(0,uKt.default)(O),F=(0,_p.useRef)(null);F.current=Q=>{S(Q.matches),v==null||v(Q.matches),_!==Q.matches&&C(Q.matches,"responsive")},(0,_p.useEffect)(()=>{function Q(ge){return F.current(ge)}let oe;if(typeof window<"u"){const{matchMedia:ge}=window;if(ge&&m&&m in Oce){oe=ge(`screen and (max-width: ${Oce[m]})`);try{oe.addEventListener("change",Q)}catch{oe.addListener(Q)}Q(oe)}}return()=>{try{oe==null||oe.removeEventListener("change",Q)}catch{oe==null||oe.removeListener(Q)}}},[m]),(0,_p.useEffect)(()=>{const Q=hKt("ant-sider-");return b.addSider(Q),()=>b.removeSider(Q)},[]);const P=()=>{C(!_,"clickTrigger")},B=(0,sKt.default)(y,["collapsed"]),I=_?f:d,k=fKt(I)?`${I}px`:String(I),U=parseFloat(String(f||0))===0?Zl.createElement("span",{onClick:P,className:(0,xce.default)(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:h},i||Zl.createElement(aKt.default,null)):null,D=x==="rtl"==!u,z={expanded:D?Zl.createElement(Tce.default,null):Zl.createElement(wce.default,null),collapsed:D?Zl.createElement(wce.default,null):Zl.createElement(Tce.default,null)}[_?"collapsed":"expanded"],J=i!==null?U||Zl.createElement("div",{className:`${O}-trigger`,onClick:P,style:{width:k}},i||z):null,te=Object.assign(Object.assign({},l),{flex:`0 0 ${k}`,maxWidth:k,minWidth:k,width:k}),ae=(0,xce.default)(O,`${O}-${s}`,{[`${O}-collapsed`]:!!_,[`${O}-has-trigger`]:c&&i!==null&&!U,[`${O}-below`]:!!w,[`${O}-zero-width`]:parseFloat(k)===0},r,A,M),K=Zl.useMemo(()=>({siderCollapsed:_}),[_]);return N(Zl.createElement(pKt.Provider,{value:K},Zl.createElement("aside",Object.assign({className:ae},B,{style:te,ref:t}),Zl.createElement("div",{className:`${O}-children`},o),c||w&&U?J:null)))});k_.default=mKt;var tNe=xr.default;Object.defineProperty(lQ,"__esModule",{value:!0});lQ.default=bKt;var gKt=tNe(cQ),vKt=tNe(k_);function bKt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,gKt.default)(t).some(i=>i.type===vKt.default)}var $3,L3,yKt=oa.default,rO=xr.default;Object.defineProperty(zp,"__esModule",{value:!0});zp.default=zp.Header=L3=zp.Footer=$3=zp.Content=void 0;var _Kt=rO(IAe),qc=yKt(p),nNe=rO(zP),SKt=rO(f3),pz=WK,EKt=nO,CKt=rO(lQ),rNe=rO(Qp),iNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iqc.forwardRef((a,s)=>qc.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const vQ=qc.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=iNe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=qc.useContext(pz.ConfigContext),l=s("layout",n),[c,u,d]=(0,rNe.default)(l),f=r?`${l}-${r}`:l;return c(qc.createElement(o,Object.assign({className:(0,nNe.default)(n||f,i,u,d),ref:t},a)))}),wKt=qc.forwardRef((e,t)=>{const{direction:n}=qc.useContext(pz.ConfigContext),[r,i]=qc.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,f=iNe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=(0,SKt.default)(f,["suffixCls"]),{getPrefixCls:m,layout:g}=qc.useContext(pz.ConfigContext),v=m("layout",o),y=(0,CKt.default)(r,l,c),[b,_,E]=(0,rNe.default)(v),w=(0,nNe.default)(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,a,s,_,E),S=qc.useMemo(()=>({siderHook:{addSider:C=>{i(T=>[].concat((0,_Kt.default)(T),[C]))},removeSider:C=>{i(T=>T.filter(x=>x!==C))}}}),[]);return b(qc.createElement(EKt.LayoutContext.Provider,{value:S},qc.createElement(u,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},g==null?void 0:g.style),d)},h),l)))}),TKt=F3({tagName:"div",displayName:"Layout"})(wKt);zp.Header=F3({suffixCls:"header",tagName:"header",displayName:"Header"})(vQ);L3=zp.Footer=F3({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(vQ);$3=zp.Content=F3({suffixCls:"content",tagName:"main",displayName:"Content"})(vQ);zp.default=TKt;function iO(){const{isDarkMode:e}=FG(),{token:t}=_s.useToken(),n={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},r=260,i={borderBottom:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},o={borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},a={minHeight:120,overflowY:"auto"},s={height:20,fontSize:12,backgroundColor:t.colorBgContainer,color:t.colorText};return{leftSiderStyle:n,leftSiderWidth:r,headerStyle:i,rightSiderStyle:o,contentStyle:a,footerStyle:s}}const{Header:xKt,Sider:OKt,Content:RKt}=uo,oNe=()=>{const e=vi();p.useContext(As);const t=Ia(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:i,contentStyle:o}=iO(),[a,s]=p.useState([]);p.useEffect(()=>{const c=[{label:e.formatMessage({id:"setting.menu.title",defaultMessage:"设置"}),key:"setting",children:[{label:e.formatMessage({id:"setting.menu.profile",defaultMessage:"个人信息"}),key:"profile"},{label:e.formatMessage({id:"setting.menu.basic",defaultMessage:"基本设置"}),key:"basic"}]}];s(c)},[e]);const l=c=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),c),t("/setting/"+c.key)};return j.jsxs(uo,{children:[j.jsx(OKt,{style:r,width:i,children:j.jsx(Bd,{mode:"inline",onClick:l,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:a})}),j.jsxs(uo,{children:[j.jsx(xKt,{style:n,children:e.formatMessage({id:"menu.dashboard.mine"})}),j.jsx(RKt,{style:o,children:j.jsx(ED,{})})]})]})},aNe=()=>{const e=Ia(),{userInfo:t}=IY(),{translateString:n}=Mc(),{mode:r}=p.useContext(As),[i,o]=p.useState(""),[a,s]=p.useState(""),[l,c]=p.useState(""),u=()=>{e("/setting")};return p.useEffect(()=>{o(n(t==null?void 0:t.nickname)),s(n(t==null?void 0:t.description)),c(t==null?void 0:t.avatar)},[r,t]),j.jsx(j.Fragment,{children:j.jsx(bu,{title:i,content:a,placement:"rightBottom",children:j.jsx(j.Fragment,{children:j.jsx(xh,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function bQ(){const e=Fx(b=>b.accessToken),t=xa(b=>b.userInfo),n=b0(b=>b.agentInfo),r=d3(),[i,o]=p.useState(!1),{showNotification:a}=GK(),{translateString:s}=Mc();Eh(b=>b.addMessage),id(b=>b.updateThreadContent),p.useContext(As),p.useRef(!1);const l=id(b=>b.threads),[c,u]=p.useState(l),d=p.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!$_t()&&r&&e&&g()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",r," accessToken:",e)},[r,e]),f=async()=>{},h=p.useRef(n==null?void 0:n.uid),m=p.useCallback(()=>{if(!i&&e)return setInterval(async()=>{h.current?f():console.log("useMqtt autoPingMessage currentUidRef.current:",h.current)},1e4);console.log("useMqtt autoPingMessage isNetworkOnline:",r," accessToken:",e)},[i,e,t,n]),g=()=>{console.log("useMqtt doConnect"),P_t({uid:t.uid,username:t.username,accessToken:e})},v=()=>{console.log("useMqtt useEffect doDisconnect"),mL()},y=b=>{var _,E;(b==null?void 0:b.type)!==fT&&((_=b==null?void 0:b.user)==null?void 0:_.uid)!==(t==null?void 0:t.uid)&&((E=b==null?void 0:b.user)==null?void 0:E.uid)!==(n==null?void 0:n.uid)&&(YVe(),console.log("playAudio"))};return p.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?g():mL()},[r]),p.useEffect(()=>{if(n!=null&&n.uid){h.current=n==null?void 0:n.uid;const b=m();return()=>{clearInterval(b)}}else h.current=null},[n]),p.useEffect(()=>{console.log("useMqtt useEffect accessToken"),g();const b=d();return()=>{mL(),clearInterval(b)}},[e,t]),p.useEffect(()=>{console.log("useMqtt threads change"),u(l)},[l]),p.useEffect(()=>{const b=function(_){if(console.log("useMqtt handleNewMessage",_),_.type===dT||_.type===vve||_.type===GF||_.type===fT||_.type===pT)return;const E=_.threadTopic,w=c.find(S=>S.topic===E);w?w.mute?console.log("useMqtt matchingThread muted",E):(console.log("useMqtt matchingThread no mute",E),a(s(JO),s(JO)),y(_)):(console.log("useMqtt matchingThread no"),a(s(JO),s(JO)),y(_))};return vr.on(uT,b),()=>{vr.off(uT)}},[c]),p.useEffect(()=>{console.log("useMqtt useEffect");const b=function(){console.log("handleMqttConnected"),o(!0)},_=function(){console.log("handleMqttDisconnected"),o(!1)};return vr.on(DF,b),vr.on(LF,_),vr.on(FF,_),vr.on($F,_),vr.on(BF,_),vr.on(jF,_),()=>{console.log("un - useEffect mqttDisconnect"),vr.off(DF),vr.off(LF),vr.off(FF),vr.off($F),vr.off(BF),vr.off(jF)}},[]),{doConnect:g,doDisconnect:v,isMqttConnected:i}}const sNe=Oc()(Md(kd(Pd((e,t)=>({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}},addNewfriend(n){console.log("addNewfriend",n)},addDevice(n){var r;if(n.type===gve){const i=t().devices.some(o=>o.device.uid===n.device.uid);e(i?{devices:[n,...t().devices.filter(o=>o.device.uid!==n.device.uid)]}:{devices:[n,...t().devices]}),((r=t().currentContact.device)==null?void 0:r.uid)===n.device.uid&&e({currentContact:n})}},addGroup(n){console.log("addGroup",n)},addChannel(n){console.log("addChannel",n)},addMember(n){if(n.type===kLe){const r=t().members.some(i=>i.member.uid===n.member.uid);e(r?{members:[n,...t().members.filter(i=>i.member.uid!==n.member.uid)]}:{members:[...t().members,n]})}},addFriend(n){console.log("addFriend",n)},setCurrentContact:n=>{e({currentContact:n})},setMemberSelf:n=>{e({memberSelf:n})},resetContactInfo(){e({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}}})}})),{name:xLe})));function lNe(){console.log("useElectronApi");const e=Ia(),t=xa(r=>r.userInfo),n=sNe(r=>r.addDevice);p.useEffect(()=>(console.log("useElectronApi useEffect"),ja?(window.electronAPI.loginSuccess(),window.electronAPI.onNewWindowCreated(r=>{console.log("Dashboard onNewWindowCreated content:",r),e("/enlarge",{state:{content:r}})}),window.electronAPI.onMulticastMessage(r=>{const i=JSON.parse(r);if(i.user.uid!==t.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",r);const o={type:gve,device:i.device,user:i.user,createdAt:i.createdAt};n(o)}}),window.electronAPI.onWebSocketMessage(r=>{console.log("Dashboard onWebSocketMessage content:",r)}),window.electronAPI.onHttpMessage(r=>{console.log("Dashboard onHttpMessage content:",r)}),window.electronAPI.onNotificationMessage(r=>{if(console.log("Dashboard onNotificationMessage content:",r),r.type===mLe){Wt.success("截图成功");const i=r.data;vr.emit(SLe,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),ja?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const IKt=Oc()(Md(kd(Pd((e,t)=>({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},setCurrentMember(n){e({currentMember:n})},setMemberSelf(n){e({memberSelf:n})},setMemberResult:n=>{e({memberResult:n})},resetMembers:()=>e({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}}})})),{name:wLe}))),cNe=Oc()(Md(kd(Pd((e,t)=>({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""},insertWorkgroup(n){e(r=>{r.workgroupResult.data.content.unshift(n)})},updateWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i[o]=n:console.warn(`Workgroup with uid ${n.uid} not found.`)})},deleteWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i.splice(o,1):console.warn(`Workgroup with uid ${n.uid} not found.`)})},setWorkgroupResult:n=>{e({workgroupResult:n})},setWorkgroupInfo(n){e({workgroupInfo:n})},deleteWorkgroupInfo(n){const r=t().workgroupResult.data.content,i=r.findIndex(o=>o.uid===n);i!==-1?e({workgroupResult:{...t().workgroupResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Workgroup not found in cache:",n),t().workgroupInfo.uid===n&&e({workgroupInfo:{uid:"",orgUid:""}})},resetWorkgroupInfo(){e({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""}})}})),{name:MLe}))),AKt=()=>{const e=$l(u=>u.deleteOrg),t=id(u=>u.resetThreads),n=Eh(u=>u.resetMessageList),r=IKt(u=>u.resetMembers),i=Fx(u=>u.removeAccessToken),o=xa(u=>u.resetUserInfo),a=sNe(u=>u.resetContactInfo),s=b0(u=>u.resetAgentInfo),l=cNe(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),i(),o(),a(),s(),l()}}};function uNe(){console.log("useEventBus");const{clearStorage:e}=AKt(),{doDisconnect:t}=bQ(),{setPingLoading:n}=p.useContext(As),r=p.useCallback(async()=>{try{const i=await JGt();console.log("logout result:",i.data),n(!1),t(),e(),q_t()}catch(i){console.log("logout error:",i)}},[]);return p.useEffect(()=>{console.log("useEventBus useEffect");const i=function(o){console.log("token过期,强制刷新登录",o),vr.off(Zm,i),r()};return vr.on(Zm,i),()=>{console.log("un - useEffect mqttDisconnect"),vr.off(Zm)}},[]),{doLogout:r}}const NKt=()=>{const e=vi(),{doLogout:t}=uNe(),{isLoggedIn:n,locale:r,changeLocale:i,mode:o,changeMode:a,handleUpdateAgentStatus:s}=p.useContext(As),{agentInfo:l}=b0(h=>({agentInfo:h.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:j.jsx(dY,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[u,d]=p.useState(c);p.useEffect(()=>{if(d(c),l.uid!==""&&o===kv){console.log("agentInfo changed",l);const h=[...c],m={key:"status",label:e.formatMessage({id:"menu.agent.status",defaultMessage:"Agent Status"}),type:"group",children:[{key:cee,icon:l.status===cee?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:uee,icon:l.status===uee?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:N8,icon:l.status===N8?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},g=h[0].children,v=g.findIndex(y=>y.key===m.key);v!==-1?g[v]=m:g.splice(0,0,m),h[0].children=g,d(h)}},[l,r,o]);const f=async h=>{console.log("click",h.key),h.key==="logout"?t():h.key==="zh-cn"||h.key==="zh-tw"||h.key==="en"?i(h.key):h.key===vy||h.key===kv||h.key===XN?(console.log("mode",h.key),a(h.key)):(console.log("status"),h.key===N8&&Ho.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(h.key))};return j.jsx(j.Fragment,{children:n?j.jsx(j.Fragment,{children:j.jsx(Bd,{inlineCollapsed:!0,onClick:f,style:{width:64,height:34},mode:"inline",items:u})}):j.jsx(j.Fragment,{})})};async function MKt(e){return Lr("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:wr}})}const dNe=()=>{const[e,t]=p.useState([]),n=new R2e;p.useEffect(()=>{(async()=>{try{const s=await n.getAllMessages();t(s)}catch(s){console.error("Error fetching messages from IndexedDB:",s)}})()},[]);const r=async a=>{try{await n.createMessage(a);const s=await n.getAllMessages();console.log("useIndexedDB createMessage newMessages: ",s),t(s)}catch(s){console.error("Error creating message in IndexedDB:",s)}},i=async(a,s)=>{try{await n.updateMessage(a,s);const l=await n.getAllMessages();t(l)}catch(l){console.error("Error updating message in IndexedDB:",l)}},o=async a=>{try{await n.deleteMessage(a);const s=await n.getAllMessages();t(s)}catch(s){console.error("Error deleting message in IndexedDB:",s)}};return p.useEffect(()=>{console.log("useIndexedDB useEffect");const a=function(s){console.log("useIndexedDB handleNewMessage",s),r(s)};return vr.on(uT,a),()=>{console.log("useIndexedDB useEffect return"),vr.off(uT,a)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:o}};async function fNe(){return Lr("/api/v1/user/profile",{method:"GET",params:{client:wr}})}async function pNe(e){return Lr("/api/v1/user/update",{method:"POST",data:{...e,client:wr}})}async function kKt(e){return Lr("/api/v1/user/change/password",{method:"POST",data:{...e,client:wr}})}async function hNe(e){return Lr("/api/v1/user/change/email",{method:"POST",data:{...e,client:wr}})}async function mNe(e){return Lr("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:wr}})}const PKt=()=>{const e=vi(),{locale:t,changeLocale:n}=p.useContext(As),r=[{key:"lang",icon:j.jsx(Gmt,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=o=>{const a=o.key;n(a)};return j.jsx(Bd,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})};var Cl=function(){return Cl=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?Da(iE,--_u):0,D_--,ua===10&&(D_=1,j3--),ua}function bd(){return ua=_u2||mz(ua)>3?"":" "}function WKt(e,t){for(;--t&&bd()&&!(ua<48||ua>102||ua>57&&ua<65||ua>70&&ua<97););return U3(e,QA()+(t<6&&gv()==32&&bd()==32))}function gz(e){for(;bd();)switch(ua){case e:return _u;case 34:case 39:e!==34&&e!==39&&gz(ua);break;case 40:e===41&&gz(e);break;case 92:bd();break}return _u}function qKt(e,t){for(;bd()&&e+ua!==57;)if(e+ua===84&&gv()===47)break;return"/*"+U3(t,_u-1)+"*"+_Q(e===47?e:bd())}function YKt(e){for(;!mz(gv());)bd();return U3(e,_u)}function KKt(e){return VKt(XA("",null,null,null,[""],e=zKt(e),0,[0],e))}function XA(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,m=0,g=1,v=1,y=1,b=0,_="",E=i,w=o,S=r,C=_;v;)switch(m=b,b=bd()){case 40:if(m!=108&&Da(C,d-1)==58){KA(C+=kr(ZL(b),"&","&\f"),"&\f",bNe(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:C+=ZL(b);break;case 9:case 10:case 13:case 32:C+=GKt(m);break;case 92:C+=WKt(QA()-1,7);continue;case 47:switch(gv()){case 42:case 47:BC(QKt(qKt(bd(),QA()),t,n,l),l);break;default:C+="/"}break;case 123*g:s[c++]=ff(C)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:y==-1&&(C=kr(C,/\f/g,"")),h>0&&ff(C)-d&&BC(h>32?Ace(C+";",r,n,d-1,l):Ace(kr(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(BC(S=Ice(C,t,n,c,u,i,s,_,E=[],w=[],d,o),o),b===123)if(u===0)XA(C,t,S,S,E,o,d,s,w);else switch(f===99&&Da(C,3)===110?100:f){case 100:case 108:case 109:case 115:XA(e,S,S,r&&BC(Ice(e,S,S,0,0,i,s,_,i,E=[],d,w),w),i,w,d,s,r?E:w);break;default:XA(C,S,S,S,[""],w,0,s,w)}}c=u=h=0,g=y=1,_=C="",d=a;break;case 58:d=1+ff(C),h=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&UKt()==125)continue}switch(C+=_Q(b),b*g){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(ff(C)-1)*y,y=1;break;case 64:gv()===45&&(C+=ZL(bd())),f=gv(),u=d=ff(_=C+=YKt(QA())),b++;break;case 45:m===45&&ff(C)==2&&(g=0)}}return o}function Ice(e,t,n,r,i,o,a,s,l,c,u,d){for(var f=i-1,h=i===0?o:[""],m=_Ne(h),g=0,v=0,y=0;g0?h[b]+" "+_:kr(_,/&\f/g,h[b])))&&(l[y++]=E);return H3(e,t,n,i===0?B3:s,l,c,u,d)}function QKt(e,t,n,r){return H3(e,t,n,gNe,_Q(HKt()),P_(e,2,-2),0,r)}function Ace(e,t,n,r,i){return H3(e,t,n,yQ,P_(e,0,r),P_(e,r+1,-1),r,i)}function ENe(e,t,n){switch(BKt(e,t)){case 5103:return _i+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _i+e+e;case 4789:return _w+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _i+e+_w+e+no+e+e;case 5936:switch(Da(e,t+11)){case 114:return _i+e+no+kr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _i+e+no+kr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _i+e+no+kr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return _i+e+no+e+e;case 6165:return _i+e+no+"flex-"+e+e;case 5187:return _i+e+kr(e,/(\w+).+(:[^]+)/,_i+"box-$1$2"+no+"flex-$1$2")+e;case 5443:return _i+e+no+"flex-item-"+kr(e,/flex-|-self/g,"")+(Ap(e,/flex-|baseline/)?"":no+"grid-row-"+kr(e,/flex-|-self/g,""))+e;case 4675:return _i+e+no+"flex-line-pack"+kr(e,/align-content|flex-|-self/g,"")+e;case 5548:return _i+e+no+kr(e,"shrink","negative")+e;case 5292:return _i+e+no+kr(e,"basis","preferred-size")+e;case 6060:return _i+"box-"+kr(e,"-grow","")+_i+e+no+kr(e,"grow","positive")+e;case 4554:return _i+kr(e,/([^-])(transform)/g,"$1"+_i+"$2")+e;case 6187:return kr(kr(kr(e,/(zoom-|grab)/,_i+"$1"),/(image-set)/,_i+"$1"),e,"")+e;case 5495:case 3959:return kr(e,/(image-set\([^]*)/,_i+"$1$`$1");case 4968:return kr(kr(e,/(.+:)(flex-)?(.*)/,_i+"box-pack:$3"+no+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_i+e+e;case 4200:if(!Ap(e,/flex-|baseline/))return no+"grid-column-align"+P_(e,t)+e;break;case 2592:case 3360:return no+kr(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Ap(r.props,/grid-\w+-end/)})?~KA(e+(n=n[t].value),"span",0)?e:no+kr(e,"-start","")+e+no+"grid-row-span:"+(~KA(n,"span",0)?Ap(n,/\d+/):+Ap(n,/\d+/)-+Ap(e,/\d+/))+";":no+kr(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Ap(r.props,/grid-\w+-start/)})?e:no+kr(kr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return kr(e,/(.+)-inline(.+)/,_i+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ff(e)-1-t>6)switch(Da(e,t+1)){case 109:if(Da(e,t+4)!==45)break;case 102:return kr(e,/(.+:)(.+)-([^]+)/,"$1"+_i+"$2-$3$1"+_w+(Da(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~KA(e,"stretch",0)?ENe(kr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return kr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,s,l,c){return no+i+":"+o+c+(a?no+i+"-span:"+(s?l:+l-+o)+c:"")+e});case 4949:if(Da(e,t+6)===121)return kr(e,":",":"+_i)+e;break;case 6444:switch(Da(e,Da(e,14)===45?18:11)){case 120:return kr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_i+(Da(e,14)===45?"inline-":"")+"box$3$1"+_i+"$2$3$1"+no+"$2box$3")+e;case 100:return kr(e,":",":"+no)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return kr(e,"scroll-","scroll-snap-")+e}return e}function Ik(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case yQ:e.return=ENe(e.value,e.length,n);return;case vNe:return Ik([nm(e,{value:kr(e.value,"@","@"+_i)})],r);case B3:if(e.length)return jKt(n=e.props,function(i){switch(Ap(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":db(nm(e,{props:[kr(i,/:(read-\w+)/,":"+_w+"$1")]})),db(nm(e,{props:[i]})),hz(e,{props:Rce(n,r)});break;case"::placeholder":db(nm(e,{props:[kr(i,/:(plac\w+)/,":"+_i+"input-$1")]})),db(nm(e,{props:[kr(i,/:(plac\w+)/,":"+_w+"$1")]})),db(nm(e,{props:[kr(i,/:(plac\w+)/,no+"input-$1")]})),db(nm(e,{props:[i]})),hz(e,{props:Rce(n,r)});break}return""})}}var tQt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ec={npm_package_dependencies_emoji_mart:"^5.6.0",npm_package_dependencies_use_debounce:"^10.0.1",ELECTRON_MIRROR:"http://npm.taobao.org/mirrors/electron/",NVM_INC:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/include/node",npm_package_devDependencies_prettier:"3.2.5",npm_package_devDependencies_electron_builder:"24.13.3",npm_package_scripts_build_mac_dmg:"tsc && vite build --mode prod && electron-builder --mac --config electron-builder-mac-dmg.yml",npm_package_dependencies_ts_protoc_gen:"^0.15.0",TERM_PROGRAM:"vscode",rvm_bin_path:"/Users/ningjinpeng/.rvm/bin",npm_package_dependencies__bytemd_plugin_breaks:"^1.21.0",npm_package_dependencies_cheerio:"^1.0.0",NODE:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",npm_config_version_git_tag:"true",npm_package_homepage:"https://github.com/bytedesk/bytedesk#readme",npm_package_scripts_release_mac:"sh cicd/scripts/build-upload-mac.sh",npm_package_dependencies_axios:"^1.6.5",npm_package_dependencies_moment:"^2.30.1",npm_package_devDependencies_typescript:"^5.1.6",npm_package_devDependencies_vite_plugin_pwa:"^0.20.1",PYENV_ROOT:"/Users/ningjinpeng/.pyenv",NVM_CD_FLAGS:"-q",GEM_HOME:"/Users/ningjinpeng/.gem/ruby",INIT_CWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase",npm_package_scripts_build_mac_mas:"tsc && vite build --mode prod && electron-builder --mac --config electron-builder-mac-mas.yml",npm_package_devDependencies_jest:"^29.7.0",npm_package_devDependencies_vite:"^5.0.10",TERM:"xterm-256color",SHELL:"/bin/zsh",npm_config_shamefully_hoist:"true",npm_package_dependencies__emotion_styled:"11.11.5",npm_package_dependencies_react_infinite_scroll_component:"^6.1.0",HOMEBREW_BOTTLE_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles",HOMEBREW_API_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api",npm_package_dependencies__ant_design_pro_provider:"^2.15.2",TMPDIR:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/",HOMEBREW_REPOSITORY:"/opt/homebrew",npm_config_init_license:"MIT",npm_package_dependencies__ant_design_x:"^1.0.5",npm_package_dependencies__langchain_community:"^0.2.28",npm_package_dependencies_socket_io:"^4.7.5",npm_package_locales_en_productName:"ByteDesk",npm_package_dependencies_debug:"^4.3.7",npm_package_dependencies_dompurify:"^3.0.9",npm_package_devDependencies__vitejs_plugin_react:"^4.0.4",TERM_PROGRAM_VERSION:"1.98.2",npm_package_scripts_dev:"vite --host --mode dev",npm_package_dependencies_express_rate_limit:"^7.2.0",npm_package_dependencies_uuid:"^9.0.1",ZDOTDIR:"/Users/ningjinpeng",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",MallocNanoZone:"0",npm_package_scripts_build_linux:"tsc && vite build --mode prod && electron-builder --linux --config electron-builder-linux.yml",npm_config_registry:"https://registry.npmmirror.com/",npm_package_private:"true",npm_package_repository_url:"git+https://github.com/bytedesk/bytedesk.git",npm_package_dependencies__ant_design_icons:"^5.6.1",npm_package_dependencies__tanstack_react_query_devtools:"^5.21.0",npm_package_dependencies_bowser:"^2.11.0",npm_package_dependencies_react_dom:"^18.2.0",PNPM_HOME:"/Users/ningjinpeng/Library/pnpm",npm_package_dependencies__ant_design_cssinjs:"^1.22.0",npm_package_dependencies_dayjs:"^1.11.11",npm_package_dependencies_react_dropzone:"^14.2.3",npm_package_readmeFilename:"README.md",OBJC_DISABLE_INITIALIZE_FORK_SAFETY:"YES",npm_package_description:"对话即服务",npm_package_debug_env_VITE_DEV_SERVER_URL:"http://127.0.0.1:9005/",npm_package_devDependencies__testing_library_react:"^14.2.2",npm_package_devDependencies_ajv:"^8.17.1",USER:"ningjinpeng",NVM_DIR:"/Users/ningjinpeng/.nvm",npm_package_license:"GNU",npm_package_devDependencies__types_react:"^18.2.20",npm_package_dependencies_intersection_observer:"^0.12.2",npm_package_dependencies_react_helmet_async:"^2.0.4",COMMAND_MODE:"unix2003",npm_package_scripts_release_open:"sh cicd/scripts/build-open.sh",npm_package_dependencies_aieditor:"^1.0.13",npm_package_dependencies_bytemd:"^1.21.0",npm_package_scripts_release_mas:"sh cicd/scripts/build-mac-mas.sh",npm_package_dependencies_xgplayer:"^3.0.13",rvm_path:"/Users/ningjinpeng/.rvm",HOMEBREW_INSTALL_FROM_API:"1",HOMEBREW_CORE_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",FLUTTER_ROOT:"/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/flutter",npm_package_dependencies_react_virtuoso:"^4.7.1",npm_package_dependencies_zustand:"^4.4.7",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.yibVKLTnXr/Listeners",npm_package_dependencies__bytemd_plugin_gemoji:"^1.21.0",npm_package_dependencies_highlight_js:"^11.11.1",npm_package_devDependencies__types_express:"^4.17.21",npm_package_devDependencies__types_jest:"^29.5.12",npm_package_devDependencies_less:"^4.2.0",npm_package_devDependencies_postcss:"^8.4.31",VSCODE_PROFILE_INITIALIZED:"1",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",PUB_HOSTED_URL:"https://pub.flutter-io.cn",npm_package_scripts_e2e:"playwright test",npm_execpath:"/usr/local/lib/node_modules/yarn/bin/yarn.js",npm_package_scripts_build_open:"tsc && vite build --mode open",npm_package_dependencies__bytemd_react:"^1.21.0",npm_package_author_name:"weiyuai.cn",npm_package_dependencies_react_use:"^17.5.0",npm_package_devDependencies__electron_osx_sign:"^1.3.1",npm_package_devDependencies__types_react_dom:"^18.2.7",npm_package_dependencies__bytemd_plugin_gfm:"^1.21.0",npm_package_dependencies_peerjs:"^1.5.2",npm_package_devDependencies_styled_components:"^6.1.13",rvm_prefix:"/Users/ningjinpeng",npm_package_scripts_build_web:"tsc && vite build --mode web",npm_package_dependencies__emoji_mart_react:"^1.1.1",npm_package_dependencies_immer:"^10.1.1",npm_config_argv:'{"remain":[],"cooked":["run","build:open"],"original":["build:open"]}',PATH:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/yarn--1742863227464-0.9857400098158955:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase/node_modules/.bin:/Users/ningjinpeng/.config/yarn/link/node_modules/.bin:/Users/ningjinpeng/.yarn/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/usr/local/bin",npm_package_scripts_release_web:"sh cicd/scripts/build-upload.sh",npm_package_dependencies__ant_design_use_emotion_css:"1.0.4",npm_package_dependencies_electron_context_menu:"^3.6.1",npm_config_auto_install_peers:"true",npm_package_dependencies_react_contexify:"^6.0.0",npm_package_dependencies_systeminformation:"^5.22.3",npm_package_devDependencies_ts_jest:"^29.1.2",USER_ZDOTDIR:"/Users/ningjinpeng",__CFBundleIdentifier:"com.microsoft.VSCode",npm_package_dependencies_electron_screenshots:"^0.5.26",npm_package_devDependencies_tailwindcss:"^3.3.3",PWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase",npm_config_nodeLinker:"node-modules",npm_package_bugs_url:"https://github.com/bytedesk/bytedesk/issues",npm_package_scripts_preview:"vite preview --host",npm_package_dependencies__bytemd_plugin_frontmatter:"^1.21.0",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home",FLUTTER_STORAGE_BASE_URL:"https://storage.flutter-io.cn",npm_package_dependencies_date_fns:"^3.3.1",npm_package_dependencies_ua_parser_js:"^1.0.37",npm_lifecycle_event:"build:open",npm_package_name:"notebase",npm_package_repository_type:"git",npm_package_dependencies_react_intl:"^6.8.9",LANG:"zh_CN.UTF-8",LOCAL_GIT_DIRECTORY:"/Applications/GitHub Desktop.app/Contents/Resources/app/git",npm_package_scripts_build_win:"tsc && vite build --mode prod && electron-builder --win --config electron-builder-windows.yml",npm_package_scripts_pree2e:"vite build --mode=test",npm_package_dependencies_file_saver:"^2.0.5",npm_package_devDependencies_vite_plugin_electron_renderer:"^0.14.5",npm_config_version_commit_hooks:"true",npm_package_scripts_start:"vite --host --mode dev",npm_package_scripts_build:"tsc && vite build --mode prod && electron-builder",npm_package_scripts_release_win:"sh cicd/scripts/build-upload-win.sh",NODE_PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/bin/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/node_modules",npm_package_dependencies_menubar:"^9.4.0",npm_package_dependencies_react_router_dom:"^6.21.2",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XPC_FLAGS:"0x0",npm_config_bin_links:"true",npm_package_dependencies__bytemd_plugin_highlight:"^1.21.0",npm_package_dependencies__types_ua_parser_js:"^0.7.39",npm_config_electron_mirror:"https://npmmirror.com/mirrors/electron/",npm_package_engines_node:">=20",npm_package_main:"dist-electron/main/index.js",npm_package_dependencies__tanstack_react_query:"^5.20.5",npm_package_dependencies_dexie:"^4.0.7",npm_package_version:"1.0.2",npm_package_dependencies__emotion_react:"11.11.4",npm_package_dependencies_node_json_db:"^2.3.1",npm_package_dependencies_winston:"^3.11.0",npm_package_dependencies_ws:"^8.16.0",XPC_SERVICE_NAME:"0",npm_package_devDependencies_autoprefixer:"^10.4.16",VSCODE_INJECTION:"1",rvm_version:"1.29.12 (latest)",npm_package_type:"module",SHLVL:"4",PYENV_SHELL:"zsh",HOME:"/Users/ningjinpeng",npm_package_dependencies_react_markdown:"^9.0.1",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",HOMEBREW_BREW_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",npm_config_strict_ssl:"true",npm_config_save_prefix:"^",npm_package_dependencies_dotenv:"^16.4.5",npm_package_dependencies_mitt:"^3.0.1",npm_package_dependencies_openai:"^4.56.0",npm_config_version_git_message:"v%s",npm_package_dependencies__emoji_mart_data:"^1.2.1",npm_package_devDependencies_cross_env:"^7.0.3",HOMEBREW_PREFIX:"/opt/homebrew",npm_package_dependencies__bytemd_plugin_mermaid:"^1.21.0",npm_package_dependencies_react_photo_view:"^1.2.6",npm_package_devDependencies__types_web_bluetooth:"^0.0.20",npm_package_dependencies_unique_names_generator:"^4.7.1",YARN_WRAP_OUTPUT:"false",LOGNAME:"ningjinpeng",npm_package_locales_zh_CN_productName:"微语",npm_lifecycle_script:"tsc && vite build --mode open",npm_package_author_email:"270580156@qq.com",npm_package_dependencies_lodash_es:"^4.17.21",VSCODE_GIT_IPC_HANDLE:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/vscode-git-7f4d23a467.sock",npm_package_scripts_release_linux:"sh cicd/scripts/build-upload-linux.sh",npm_package_dependencies_react:"^18.2.0",npm_package_dependencies_mqtt:"^5.2.0",NVM_BIN:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin",BUN_INSTALL:"/Users/ningjinpeng/.bun",npm_config_user_agent:"yarn/1.22.17 npm/? node/v20.0.0 darwin arm64",npm_config_ignore_scripts:"",npm_config_version_git_sign:"",npm_package_dependencies_node_cmd:"^5.0.0",npm_package_dependencies_text_search_engine:"^1.1.0",npm_package_devDependencies__electron_notarize:"^2.5.0",npm_package_dependencies_socket_io_client:"^4.7.5",npm_package_devDependencies__playwright_test:"^1.37.1",npm_package_devDependencies__types_node:"^20.12.3",VSCODE_GIT_ASKPASS_NODE:"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)",GIT_ASKPASS:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",npm_package_dependencies_express:"^4.18.3",npm_config_ignore_optional:"",npm_config_init_version:"1.0.0",npm_package_scripts_build_quanjing:"tsc && vite build --mode quanjing",npm_package_dependencies_antd:"^5.23.2",npm_package_dependencies_langchain:"^0.2.16",npm_package_dependencies__ant_design_compatible:"^5.1.4",npm_package_dependencies_antd_img_crop:"^4.23.0",npm_package_dependencies_electron_updater:"^6.1.1",npm_package_devDependencies_vite_plugin_electron:"^0.28.0",npm_package_dependencies__dicebear_collection:"^8.0.1",npm_package_dependencies__types_file_saver:"^2.0.7",npm_package_devDependencies_electron:"^33.2.0",npm_package_locales_zh_CN_description:"对话即服务",npm_config_version_tag_prefix:"v",npm_package_dependencies__ant_design_pro_components:"^2.6.28",npm_package_dependencies__dicebear_core:"^8.0.1",npm_package_dependencies_dexie_react_hooks:"^1.1.7",npm_package_devDependencies__testing_library_jest_dom:"^6.4.2",npm_package_locales_en_description:"Chat as a Service",npm_node_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",COLORTERM:"truecolor",NODE_ENV:"production"},$_=typeof process<"u"&&ec!==void 0&&(ec.REACT_APP_SC_ATTR||ec.SC_ATTR)||"data-styled",CNe="active",wNe="data-styled-version",z3="6.1.13",SQ=`/*!sc*/ + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var R3=xr.default;Object.defineProperty(vd,"__esModule",{value:!0});vd.default=Lqt;vd.unitless=vd.ignore=vd.getComputedToken=void 0;var Aqt=R3(p),Nqt=Dg,Mqt=R3(T3),gce=Mf,kqt=R3(jf),GAe=R3(rQ),vce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,o=vce(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=(0,GAe.default)(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=vce(c,["theme"]);let f=d;u&&(f=iQ(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=f}),a};vd.getComputedToken=iQ;function Lqt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=Aqt.default.useContext(gce.DesignTokenContext),o=`${Mqt.default}-${t||""}`,a=n||gce.defaultTheme,[s,l,c]=(0,Nqt.useCacheToken)(a,[kqt.default,e],{salt:o,override:r,getComputedToken:iQ,formatToken:GAe.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Pqt,ignore:Dqt,preserve:$qt}});return[a,c,t?l:"",s,i]}var og={},xo={};Object.defineProperty(xo,"__esModule",{value:!0});xo.textEllipsis=xo.resetIcon=xo.resetComponent=xo.operationUnit=xo.genLinkStyle=xo.genIconStyle=xo.genFocusStyle=xo.genFocusOutline=xo.genCommonStyle=xo.clearFix=void 0;var Fqt=Dg;xo.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const Bqt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}};xo.resetComponent=Bqt;const WAe=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});xo.resetIcon=WAe;const jqt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});xo.clearFix=jqt;const Hqt=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}});xo.genLinkStyle=Hqt;const Uqt=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}};xo.genCommonStyle=Uqt;const qAe=(e,t)=>({outline:`${(0,Fqt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});xo.genFocusOutline=qAe;const YAe=(e,t)=>({"&:focus-visible":Object.assign({},qAe(e,t))});xo.genFocusStyle=YAe;const zqt=e=>({[`.${e}`]:Object.assign(Object.assign({},WAe()),{[`.${e} .${e}-icon`]:{display:"block"}})});xo.genIconStyle=zqt;const Vqt=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},YAe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});xo.operationUnit=Vqt;var Gqt=oa.default;Object.defineProperty(og,"__esModule",{value:!0});og.genSubStyleComponent=og.genStyleHooks=og.genComponentStyleHook=void 0;var bce=p,Wqt=zAe,QL=sc,XL=xo,yce=Gqt(vd);const{genStyleHooks:qqt,genComponentStyleHook:Yqt,genSubStyleComponent:Kqt}=(0,Wqt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,bce.useContext)(QL.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,yce.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,bce.useContext)(QL.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,XL.genLinkStyle)(e)},(0,XL.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:QL.defaultIconPrefixCls)]},getCommonStyle:XL.genCommonStyle,getCompUnitless:()=>yce.unitless});og.genSubStyleComponent=Kqt;og.genComponentStyleHook=Yqt;og.genStyleHooks=qqt;var oQ={};Object.defineProperty(oQ,"__esModule",{value:!0});oQ.default=Xqt;var Qqt=nQ;function Xqt(e,t){return Qqt.PresetColors.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}var I3={},Zqt=xr.default;Object.defineProperty(I3,"__esModule",{value:!0});I3.default=void 0;var Jqt=Dg,eYt=xo,tYt=Zqt(vd);const nYt=(e,t)=>{const[n,r]=(0,tYt.default)();return(0,Jqt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,eYt.genIconStyle)(e)])};I3.default=nYt;(function(e){var t=xr.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DesignTokenContext",{enumerable:!0,get:function(){return u.DesignTokenContext}}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return i.PresetColors}}),Object.defineProperty(e,"calc",{enumerable:!0,get:function(){return r.genCalc}}),Object.defineProperty(e,"defaultConfig",{enumerable:!0,get:function(){return u.defaultConfig}}),Object.defineProperty(e,"genComponentStyleHook",{enumerable:!0,get:function(){return s.genComponentStyleHook}}),Object.defineProperty(e,"genPresetColor",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"genStyleHooks",{enumerable:!0,get:function(){return s.genStyleHooks}}),Object.defineProperty(e,"genSubStyleComponent",{enumerable:!0,get:function(){return s.genSubStyleComponent}}),Object.defineProperty(e,"getLineHeight",{enumerable:!0,get:function(){return o.getLineHeight}}),Object.defineProperty(e,"mergeToken",{enumerable:!0,get:function(){return r.mergeToken}}),Object.defineProperty(e,"statistic",{enumerable:!0,get:function(){return r.statistic}}),Object.defineProperty(e,"statisticToken",{enumerable:!0,get:function(){return r.statisticToken}}),Object.defineProperty(e,"useResetIconStyle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useStyleRegister",{enumerable:!0,get:function(){return n.useStyleRegister}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return a.default}});var n=Dg,r=zAe,i=nQ,o=eO,a=t(vd),s=og,l=t(oQ),c=t(I3),u=Mf})(nE);var A3={},rYt=oa.default;Object.defineProperty(A3,"__esModule",{value:!0});A3.default=void 0;var iYt=rYt(p);const oYt=Object.assign({},iYt),{useId:_ce}=oYt,aYt=()=>"",sYt=typeof _ce>"u"?aYt:_ce;A3.default=sYt;var aQ=xr.default;Object.defineProperty(tQ,"__esModule",{value:!0});tQ.default=fYt;var lYt=aQ(p3),cYt=aQ(C3),uYt=su,Sce=nE,dYt=aQ(A3);function fYt(e,t,n){var r;(0,uYt.devUseWarning)("ConfigProvider");const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},Sce.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Sce.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=(0,dYt.default)();return(0,lYt.default)(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(f=>{c[f]=Object.assign(Object.assign({},c[f]),e.components[f])});const u=`css-var-${a.replace(/:/g,"")}`,d=((s=i.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:d})},[i,o],(s,l)=>s.some((c,u)=>{const d=l[u];return!(0,cYt.default)(c,d,!0)}))}var sQ={};const pYt=Nx(DYe);var hYt=oa.default;Object.defineProperty(sQ,"__esModule",{value:!0});sQ.default=vYt;var Ece=hYt(p),mYt=pYt,gYt=nE;function vYt(e){const{children:t}=e,[,n]=(0,gYt.useToken)(),{motion:r}=n,i=Ece.useRef(!1);return i.current=i.current||r===!1,i.current?Ece.createElement(mYt.Provider,{motion:r},t):t}var N3={},bYt=oa.default;Object.defineProperty(N3,"__esModule",{value:!0});N3.default=void 0;bYt(p);N3.default=()=>null;var KAe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=nE})(KAe);(function(e){"use client";var t=xr.default,n=oa.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return g.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return g.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return g.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return g.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return g.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var r=n(p),i=Dg,o=t(JS),a=t(p3),s=h3,l=n(su),c=t(m3),u=n(DAe),d=t(tE),f=t(u0),h=Mf,m=t(jf),g=sc,v=S3,y=Xv,b=t(E3),_=t(tQ),E=t(sQ),w=t(N3),S=n(Zv),C=t(KAe),T=function(q,H){var z={};for(var J in q)Object.prototype.hasOwnProperty.call(q,J)&&H.indexOf(J)<0&&(z[J]=q[J]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,J=Object.getOwnPropertySymbols(q);teH.endsWith("Color"))}const I=q=>{const{prefixCls:H,iconPrefixCls:z,theme:J,holderRender:te}=q;H!==void 0&&(O=H),z!==void 0&&(N=z),"holderRender"in q&&(M=te),J&&(B(J)?(0,v.registerTheme)(F(),J):A=J)},k=()=>({getPrefixCls:(q,H)=>H||(q?`${F()}-${q}`:F()),getIconPrefixCls:P,getRootPrefixCls:()=>O||F(),getTheme:()=>A,holderRender:M});e.globalConfig=k;const U=q=>{const{children:H,csp:z,autoInsertSpaceInButton:J,alert:te,anchor:ae,form:K,locale:Q,componentSize:oe,direction:ge,space:fe,splitter:ue,virtual:le,dropdownMatchSelectWidth:ve,popupMatchSelectWidth:ne,popupOverflow:pe,legacyLocale:be,parentContext:Re,iconPrefixCls:Se,theme:Ce,componentDisabled:ye,segmented:he,statistic:_e,spin:Oe,calendar:De,carousel:Y,cascader:$,collapse:V,typography:ie,checkbox:me,descriptions:se,divider:Be,drawer:Ve,skeleton:re,steps:Me,image:je,layout:ke,list:Ge,mentions:Ue,modal:qe,progress:At,result:at,slider:pt,breadcrumb:Ct,menu:bt,pagination:Vt,input:Tt,textArea:Ot,empty:Ut,badge:ze,radio:Ye,rate:He,switch:Ze,transfer:yt,avatar:_t,message:Bt,tag:Nt,table:vt,card:ht,tabs:kt,timeline:Et,timePicker:Yt,upload:ct,notification:Rt,tree:Ht,colorPicker:wt,datePicker:St,rangePicker:jt,flex:Pe,wave:Pt,dropdown:rt,warning:Mt,tour:It,tooltip:xn,popover:Hn,popconfirm:R,floatButtonGroup:L,variant:Z,inputNumber:xe,treeSelect:Le}=q,et=r.useCallback((on,an)=>{const{prefixCls:Gn}=q;if(an)return an;const _r=Gn||Re.getPrefixCls("");return on?`${_r}-${on}`:_r},[Re.getPrefixCls,q.prefixCls]),Lt=Se||Re.iconPrefixCls||g.defaultIconPrefixCls,pn=z||Re.csp;(0,C.default)(Lt,pn);const Fn=(0,_.default)(Ce,Re.theme,{prefixCls:et("")}),Xr={csp:pn,autoInsertSpaceInButton:J,alert:te,anchor:ae,locale:Q||be,direction:ge,space:fe,splitter:ue,virtual:le,popupMatchSelectWidth:ne??ve,popupOverflow:pe,getPrefixCls:et,iconPrefixCls:Lt,theme:Fn,segmented:he,statistic:_e,spin:Oe,calendar:De,carousel:Y,cascader:$,collapse:V,typography:ie,checkbox:me,descriptions:se,divider:Be,drawer:Ve,skeleton:re,steps:Me,image:je,input:Tt,textArea:Ot,layout:ke,list:Ge,mentions:Ue,modal:qe,progress:At,result:at,slider:pt,breadcrumb:Ct,menu:bt,pagination:Vt,empty:Ut,badge:ze,radio:Ye,rate:He,switch:Ze,transfer:yt,avatar:_t,message:Bt,tag:Nt,table:vt,card:ht,tabs:kt,timeline:Et,timePicker:Yt,upload:ct,notification:Rt,tree:Ht,colorPicker:wt,datePicker:St,rangePicker:jt,flex:Pe,wave:Pt,dropdown:rt,warning:Mt,tour:It,tooltip:xn,popover:Hn,popconfirm:R,floatButtonGroup:L,variant:Z,inputNumber:xe,treeSelect:Le},$r=Object.assign({},Re);Object.keys(Xr).forEach(on=>{Xr[on]!==void 0&&($r[on]=Xr[on])}),x.forEach(on=>{const an=q[on];an&&($r[on]=an)}),typeof J<"u"&&($r.button=Object.assign({autoInsertSpace:J},$r.button));const bi=(0,a.default)(()=>$r,$r,(on,an)=>{const Gn=Object.keys(on),_r=Object.keys(an);return Gn.length!==_r.length||Gn.some(oi=>on[oi]!==an[oi])}),Sr=r.useMemo(()=>({prefixCls:Lt,csp:pn}),[Lt,pn]);let ln=r.createElement(r.Fragment,null,r.createElement(w.default,{dropdownMatchSelectWidth:ve}),H);const _n=r.useMemo(()=>{var on,an,Gn,_r;return(0,s.merge)(((on=f.default.Form)===null||on===void 0?void 0:on.defaultValidateMessages)||{},((Gn=(an=bi.locale)===null||an===void 0?void 0:an.Form)===null||Gn===void 0?void 0:Gn.defaultValidateMessages)||{},((_r=bi.form)===null||_r===void 0?void 0:_r.validateMessages)||{},(K==null?void 0:K.validateMessages)||{})},[bi,K==null?void 0:K.validateMessages]);Object.keys(_n).length>0&&(ln=r.createElement(c.default.Provider,{value:_n},ln)),Q&&(ln=r.createElement(u.default,{locale:Q,_ANT_MARK__:u.ANT_MARK},ln)),(Lt||pn)&&(ln=r.createElement(o.default.Provider,{value:Sr},ln)),oe&&(ln=r.createElement(S.SizeContextProvider,{size:oe},ln)),ln=r.createElement(E.default,null,ln);const Er=r.useMemo(()=>{const on=Fn||{},{algorithm:an,token:Gn,components:_r,cssVar:oi}=on,Zi=T(on,["algorithm","token","components","cssVar"]),nr=an&&(!Array.isArray(an)||an.length>0)?(0,i.createTheme)(an):h.defaultTheme,Fi={};Object.entries(_r||{}).forEach(dn=>{let[wn,Mn]=dn;const Qn=Object.assign({},Mn);"algorithm"in Qn&&(Qn.algorithm===!0?Qn.theme=nr:(Array.isArray(Qn.algorithm)||typeof Qn.algorithm=="function")&&(Qn.theme=(0,i.createTheme)(Qn.algorithm)),delete Qn.algorithm),Fi[wn]=Qn});const Zn=Object.assign(Object.assign({},m.default),Gn);return Object.assign(Object.assign({},Zi),{theme:nr,token:Zn,components:Fi,override:Object.assign({override:Zn},Fi),cssVar:oi})},[Fn]);return Ce&&(ln=r.createElement(h.DesignTokenContext.Provider,{value:Er},ln)),bi.warning&&(ln=r.createElement(l.WarningContext.Provider,{value:bi.warning},ln)),ye!==void 0&&(ln=r.createElement(y.DisabledContextProvider,{disabled:ye},ln)),r.createElement(g.ConfigContext.Provider,{value:bi},ln)},D=q=>{const H=r.useContext(g.ConfigContext),z=r.useContext(d.default);return r.createElement(U,Object.assign({parentContext:H,legacyLocale:z},q))};D.ConfigContext=g.ConfigContext,D.SizeContext=S.default,D.config=I,D.useConfig=b.default,Object.defineProperty(D,"SizeContext",{get:()=>S.default}),e.default=D})(WK);var nO={},yYt=oa.default;Object.defineProperty(nO,"__esModule",{value:!0});nO.LayoutContext=void 0;var _Yt=yYt(p);nO.LayoutContext=_Yt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var lQ={},cQ={},uQ={},SYt=xr.default;Object.defineProperty(uQ,"__esModule",{value:!0});uQ.default=xYt;var EYt=SYt(d0),CYt=Symbol.for("react.element"),wYt=Symbol.for("react.transitional.element"),TYt=Symbol.for("react.fragment");function xYt(e){return e&&(0,EYt.default)(e)==="object"&&(e.$$typeof===CYt||e.$$typeof===wYt)&&e.type===TYt}var QAe=xr.default;Object.defineProperty(cQ,"__esModule",{value:!0});cQ.default=cz;var OYt=QAe(uQ),RYt=QAe(p);function cz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return RYt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(cz(r)):(0,OYt.default)(r)&&r.props?n=n.concat(cz(r.props.children,t)):n.push(r))}),n}var k_={},uz={exports:{}},M3={},dQ={};Object.defineProperty(dQ,"__esModule",{value:!0});var IYt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};dQ.default=IYt;var AYt=oa.default,fQ=xr.default;Object.defineProperty(M3,"__esModule",{value:!0});M3.default=void 0;var NYt=fQ(VD),XAe=AYt(p),MYt=fQ(dQ),kYt=fQ(ZS),PYt=function(t,n){return XAe.createElement(kYt.default,(0,NYt.default)({},t,{ref:n,icon:MYt.default}))},DYt=XAe.forwardRef(PYt);M3.default=DYt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(M3);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(uz,uz.exports);var $Yt=uz.exports,dz={exports:{}},k3={},pQ={};Object.defineProperty(pQ,"__esModule",{value:!0});var LYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};pQ.default=LYt;var FYt=oa.default,hQ=xr.default;Object.defineProperty(k3,"__esModule",{value:!0});k3.default=void 0;var BYt=hQ(VD),ZAe=FYt(p),jYt=hQ(pQ),HYt=hQ(ZS),UYt=function(t,n){return ZAe.createElement(HYt.default,(0,BYt.default)({},t,{ref:n,icon:jYt.default}))},zYt=ZAe.forwardRef(UYt);k3.default=zYt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(k3);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(dz,dz.exports);var VYt=dz.exports,fz={exports:{}},P3={},mQ={};Object.defineProperty(mQ,"__esModule",{value:!0});var GYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};mQ.default=GYt;var WYt=oa.default,gQ=xr.default;Object.defineProperty(P3,"__esModule",{value:!0});P3.default=void 0;var qYt=gQ(VD),JAe=WYt(p),YYt=gQ(mQ),KYt=gQ(ZS),QYt=function(t,n){return JAe.createElement(KYt.default,(0,qYt.default)({},t,{ref:n,icon:YYt.default}))},XYt=JAe.forwardRef(QYt);P3.default=XYt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(P3);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(fz,fz.exports);var ZYt=fz.exports,D3={},Qp={};Object.defineProperty(Qp,"__esModule",{value:!0});Qp.prepareComponentToken=Qp.default=Qp.DEPRECATED_TOKENS=void 0;var JYt=Dg,eKt=nE;const tKt=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:a,color:s,lineHeight:(0,JYt.unit)(o),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},eNe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}};Qp.prepareComponentToken=eNe;const nKt=Qp.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Qp.default=(0,eKt.genStyleHooks)("Layout",e=>[tKt(e)],eNe,{deprecatedTokens:nKt});Object.defineProperty(D3,"__esModule",{value:!0});D3.default=void 0;var XE=Dg,Cce=Qp,rKt=nE;const iKt=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:h,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:(0,XE.unit)(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,XE.unit)(f)} ${(0,XE.unit)(f)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,XE.unit)(f)} 0 0 ${(0,XE.unit)(f)}`}}},"&-light":{background:h,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};D3.default=(0,rKt.genStyleHooks)(["Layout","Sider"],e=>[iKt(e)],Cce.prepareComponentToken,{deprecatedTokens:Cce.DEPRECATED_TOKENS});var rE=xr.default,oKt=oa.default;Object.defineProperty(k_,"__esModule",{value:!0});k_.default=k_.SiderContext=void 0;var _p=oKt(p),Zl=_p,aKt=rE($Yt),wce=rE(VYt),Tce=rE(ZYt),xce=rE(zP),sKt=rE(f3),lKt=WK,cKt=nO,uKt=rE(D3),dKt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i!Number.isNaN(Number.parseFloat(e))&&isFinite(e),pKt=k_.SiderContext=Zl.createContext({}),hKt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),mKt=Zl.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=dKt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,_p.useContext)(cKt.LayoutContext),[_,E]=(0,_p.useState)("collapsed"in e?e.collapsed:a),[w,S]=(0,_p.useState)(!1);(0,_p.useEffect)(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const C=(Q,oe)=>{"collapsed"in e||E(Q),g==null||g(Q,oe)},{getPrefixCls:T,direction:x}=(0,_p.useContext)(lKt.ConfigContext),O=T("layout-sider",n),[N,A,M]=(0,uKt.default)(O),F=(0,_p.useRef)(null);F.current=Q=>{S(Q.matches),v==null||v(Q.matches),_!==Q.matches&&C(Q.matches,"responsive")},(0,_p.useEffect)(()=>{function Q(ge){return F.current(ge)}let oe;if(typeof window<"u"){const{matchMedia:ge}=window;if(ge&&m&&m in Oce){oe=ge(`screen and (max-width: ${Oce[m]})`);try{oe.addEventListener("change",Q)}catch{oe.addListener(Q)}Q(oe)}}return()=>{try{oe==null||oe.removeEventListener("change",Q)}catch{oe==null||oe.removeListener(Q)}}},[m]),(0,_p.useEffect)(()=>{const Q=hKt("ant-sider-");return b.addSider(Q),()=>b.removeSider(Q)},[]);const P=()=>{C(!_,"clickTrigger")},B=(0,sKt.default)(y,["collapsed"]),I=_?f:d,k=fKt(I)?`${I}px`:String(I),U=parseFloat(String(f||0))===0?Zl.createElement("span",{onClick:P,className:(0,xce.default)(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:h},i||Zl.createElement(aKt.default,null)):null,D=x==="rtl"==!u,z={expanded:D?Zl.createElement(Tce.default,null):Zl.createElement(wce.default,null),collapsed:D?Zl.createElement(wce.default,null):Zl.createElement(Tce.default,null)}[_?"collapsed":"expanded"],J=i!==null?U||Zl.createElement("div",{className:`${O}-trigger`,onClick:P,style:{width:k}},i||z):null,te=Object.assign(Object.assign({},l),{flex:`0 0 ${k}`,maxWidth:k,minWidth:k,width:k}),ae=(0,xce.default)(O,`${O}-${s}`,{[`${O}-collapsed`]:!!_,[`${O}-has-trigger`]:c&&i!==null&&!U,[`${O}-below`]:!!w,[`${O}-zero-width`]:parseFloat(k)===0},r,A,M),K=Zl.useMemo(()=>({siderCollapsed:_}),[_]);return N(Zl.createElement(pKt.Provider,{value:K},Zl.createElement("aside",Object.assign({className:ae},B,{style:te,ref:t}),Zl.createElement("div",{className:`${O}-children`},o),c||w&&U?J:null)))});k_.default=mKt;var tNe=xr.default;Object.defineProperty(lQ,"__esModule",{value:!0});lQ.default=bKt;var gKt=tNe(cQ),vKt=tNe(k_);function bKt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,gKt.default)(t).some(i=>i.type===vKt.default)}var $3,L3,yKt=oa.default,rO=xr.default;Object.defineProperty(zp,"__esModule",{value:!0});zp.default=zp.Header=L3=zp.Footer=$3=zp.Content=void 0;var _Kt=rO(IAe),qc=yKt(p),nNe=rO(zP),SKt=rO(f3),pz=WK,EKt=nO,CKt=rO(lQ),rNe=rO(Qp),iNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iqc.forwardRef((a,s)=>qc.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const vQ=qc.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=iNe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=qc.useContext(pz.ConfigContext),l=s("layout",n),[c,u,d]=(0,rNe.default)(l),f=r?`${l}-${r}`:l;return c(qc.createElement(o,Object.assign({className:(0,nNe.default)(n||f,i,u,d),ref:t},a)))}),wKt=qc.forwardRef((e,t)=>{const{direction:n}=qc.useContext(pz.ConfigContext),[r,i]=qc.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,f=iNe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=(0,SKt.default)(f,["suffixCls"]),{getPrefixCls:m,layout:g}=qc.useContext(pz.ConfigContext),v=m("layout",o),y=(0,CKt.default)(r,l,c),[b,_,E]=(0,rNe.default)(v),w=(0,nNe.default)(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,a,s,_,E),S=qc.useMemo(()=>({siderHook:{addSider:C=>{i(T=>[].concat((0,_Kt.default)(T),[C]))},removeSider:C=>{i(T=>T.filter(x=>x!==C))}}}),[]);return b(qc.createElement(EKt.LayoutContext.Provider,{value:S},qc.createElement(u,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},g==null?void 0:g.style),d)},h),l)))}),TKt=F3({tagName:"div",displayName:"Layout"})(wKt);zp.Header=F3({suffixCls:"header",tagName:"header",displayName:"Header"})(vQ);L3=zp.Footer=F3({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(vQ);$3=zp.Content=F3({suffixCls:"content",tagName:"main",displayName:"Content"})(vQ);zp.default=TKt;function iO(){const{isDarkMode:e}=FG(),{token:t}=_s.useToken(),n={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},r=260,i={borderBottom:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},o={borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},a={minHeight:120,overflowY:"auto"},s={height:20,fontSize:12,backgroundColor:t.colorBgContainer,color:t.colorText};return{leftSiderStyle:n,leftSiderWidth:r,headerStyle:i,rightSiderStyle:o,contentStyle:a,footerStyle:s}}const{Header:xKt,Sider:OKt,Content:RKt}=uo,oNe=()=>{const e=vi();p.useContext(As);const t=Ia(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:i,contentStyle:o}=iO(),[a,s]=p.useState([]);p.useEffect(()=>{const c=[{label:e.formatMessage({id:"setting.menu.title",defaultMessage:"设置"}),key:"setting",children:[{label:e.formatMessage({id:"setting.menu.profile",defaultMessage:"个人信息"}),key:"profile"},{label:e.formatMessage({id:"setting.menu.basic",defaultMessage:"基本设置"}),key:"basic"}]}];s(c)},[e]);const l=c=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),c),t("/setting/"+c.key)};return j.jsxs(uo,{children:[j.jsx(OKt,{style:r,width:i,children:j.jsx(Bd,{mode:"inline",onClick:l,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:a})}),j.jsxs(uo,{children:[j.jsx(xKt,{style:n,children:e.formatMessage({id:"menu.dashboard.mine"})}),j.jsx(RKt,{style:o,children:j.jsx(ED,{})})]})]})},aNe=()=>{const e=Ia(),{userInfo:t}=IY(),{translateString:n}=Mc(),{mode:r}=p.useContext(As),[i,o]=p.useState(""),[a,s]=p.useState(""),[l,c]=p.useState(""),u=()=>{e("/setting")};return p.useEffect(()=>{o(n(t==null?void 0:t.nickname)),s(n(t==null?void 0:t.description)),c(t==null?void 0:t.avatar)},[r,t]),j.jsx(j.Fragment,{children:j.jsx(bu,{title:i,content:a,placement:"rightBottom",children:j.jsx(j.Fragment,{children:j.jsx(xh,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function bQ(){const e=Fx(b=>b.accessToken),t=xa(b=>b.userInfo),n=b0(b=>b.agentInfo),r=d3(),[i,o]=p.useState(!1),{showNotification:a}=GK(),{translateString:s}=Mc();Eh(b=>b.addMessage),id(b=>b.updateThreadContent),p.useContext(As),p.useRef(!1);const l=id(b=>b.threads),[c,u]=p.useState(l),d=p.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!$_t()&&r&&e&&g()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",r," accessToken:",e)},[r,e]),f=async()=>{},h=p.useRef(n==null?void 0:n.uid),m=p.useCallback(()=>{if(!i&&e)return setInterval(async()=>{h.current?f():console.log("useMqtt autoPingMessage currentUidRef.current:",h.current)},1e4);console.log("useMqtt autoPingMessage isNetworkOnline:",r," accessToken:",e)},[i,e,t,n]),g=()=>{console.log("useMqtt doConnect"),P_t({uid:t.uid,username:t.username,accessToken:e})},v=()=>{console.log("useMqtt useEffect doDisconnect"),mL()},y=b=>{var _,E;(b==null?void 0:b.type)!==fT&&((_=b==null?void 0:b.user)==null?void 0:_.uid)!==(t==null?void 0:t.uid)&&((E=b==null?void 0:b.user)==null?void 0:E.uid)!==(n==null?void 0:n.uid)&&(YVe(),console.log("playAudio"))};return p.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?g():mL()},[r]),p.useEffect(()=>{if(n!=null&&n.uid){h.current=n==null?void 0:n.uid;const b=m();return()=>{clearInterval(b)}}else h.current=null},[n]),p.useEffect(()=>{console.log("useMqtt useEffect accessToken"),g();const b=d();return()=>{mL(),clearInterval(b)}},[e,t]),p.useEffect(()=>{console.log("useMqtt threads change"),u(l)},[l]),p.useEffect(()=>{const b=function(_){if(console.log("useMqtt handleNewMessage",_),_.type===dT||_.type===vve||_.type===GF||_.type===fT||_.type===pT)return;const E=_.threadTopic,w=c.find(S=>S.topic===E);w?w.mute?console.log("useMqtt matchingThread muted",E):(console.log("useMqtt matchingThread no mute",E),a(s(JO),s(JO)),y(_)):(console.log("useMqtt matchingThread no"),a(s(JO),s(JO)),y(_))};return vr.on(uT,b),()=>{vr.off(uT)}},[c]),p.useEffect(()=>{console.log("useMqtt useEffect");const b=function(){console.log("handleMqttConnected"),o(!0)},_=function(){console.log("handleMqttDisconnected"),o(!1)};return vr.on(DF,b),vr.on(LF,_),vr.on(FF,_),vr.on($F,_),vr.on(BF,_),vr.on(jF,_),()=>{console.log("un - useEffect mqttDisconnect"),vr.off(DF),vr.off(LF),vr.off(FF),vr.off($F),vr.off(BF),vr.off(jF)}},[]),{doConnect:g,doDisconnect:v,isMqttConnected:i}}const sNe=Oc()(Md(kd(Pd((e,t)=>({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}},addNewfriend(n){console.log("addNewfriend",n)},addDevice(n){var r;if(n.type===gve){const i=t().devices.some(o=>o.device.uid===n.device.uid);e(i?{devices:[n,...t().devices.filter(o=>o.device.uid!==n.device.uid)]}:{devices:[n,...t().devices]}),((r=t().currentContact.device)==null?void 0:r.uid)===n.device.uid&&e({currentContact:n})}},addGroup(n){console.log("addGroup",n)},addChannel(n){console.log("addChannel",n)},addMember(n){if(n.type===kLe){const r=t().members.some(i=>i.member.uid===n.member.uid);e(r?{members:[n,...t().members.filter(i=>i.member.uid!==n.member.uid)]}:{members:[...t().members,n]})}},addFriend(n){console.log("addFriend",n)},setCurrentContact:n=>{e({currentContact:n})},setMemberSelf:n=>{e({memberSelf:n})},resetContactInfo(){e({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}}})}})),{name:xLe})));function lNe(){console.log("useElectronApi");const e=Ia(),t=xa(r=>r.userInfo),n=sNe(r=>r.addDevice);p.useEffect(()=>(console.log("useElectronApi useEffect"),ja?(window.electronAPI.loginSuccess(),window.electronAPI.onNewWindowCreated(r=>{console.log("Dashboard onNewWindowCreated content:",r),e("/enlarge",{state:{content:r}})}),window.electronAPI.onMulticastMessage(r=>{const i=JSON.parse(r);if(i.user.uid!==t.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",r);const o={type:gve,device:i.device,user:i.user,createdAt:i.createdAt};n(o)}}),window.electronAPI.onWebSocketMessage(r=>{console.log("Dashboard onWebSocketMessage content:",r)}),window.electronAPI.onHttpMessage(r=>{console.log("Dashboard onHttpMessage content:",r)}),window.electronAPI.onNotificationMessage(r=>{if(console.log("Dashboard onNotificationMessage content:",r),r.type===mLe){Wt.success("截图成功");const i=r.data;vr.emit(SLe,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),ja?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const IKt=Oc()(Md(kd(Pd((e,t)=>({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},setCurrentMember(n){e({currentMember:n})},setMemberSelf(n){e({memberSelf:n})},setMemberResult:n=>{e({memberResult:n})},resetMembers:()=>e({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}}})})),{name:wLe}))),cNe=Oc()(Md(kd(Pd((e,t)=>({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""},insertWorkgroup(n){e(r=>{r.workgroupResult.data.content.unshift(n)})},updateWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i[o]=n:console.warn(`Workgroup with uid ${n.uid} not found.`)})},deleteWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i.splice(o,1):console.warn(`Workgroup with uid ${n.uid} not found.`)})},setWorkgroupResult:n=>{e({workgroupResult:n})},setWorkgroupInfo(n){e({workgroupInfo:n})},deleteWorkgroupInfo(n){const r=t().workgroupResult.data.content,i=r.findIndex(o=>o.uid===n);i!==-1?e({workgroupResult:{...t().workgroupResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Workgroup not found in cache:",n),t().workgroupInfo.uid===n&&e({workgroupInfo:{uid:"",orgUid:""}})},resetWorkgroupInfo(){e({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""}})}})),{name:MLe}))),AKt=()=>{const e=$l(u=>u.deleteOrg),t=id(u=>u.resetThreads),n=Eh(u=>u.resetMessageList),r=IKt(u=>u.resetMembers),i=Fx(u=>u.removeAccessToken),o=xa(u=>u.resetUserInfo),a=sNe(u=>u.resetContactInfo),s=b0(u=>u.resetAgentInfo),l=cNe(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),i(),o(),a(),s(),l()}}};function uNe(){console.log("useEventBus");const{clearStorage:e}=AKt(),{doDisconnect:t}=bQ(),{setPingLoading:n}=p.useContext(As),r=p.useCallback(async()=>{try{const i=await JGt();console.log("logout result:",i.data),n(!1),t(),e(),q_t()}catch(i){console.log("logout error:",i)}},[]);return p.useEffect(()=>{console.log("useEventBus useEffect");const i=function(o){console.log("token过期,强制刷新登录",o),vr.off(Zm,i),r()};return vr.on(Zm,i),()=>{console.log("un - useEffect mqttDisconnect"),vr.off(Zm)}},[]),{doLogout:r}}const NKt=()=>{const e=vi(),{doLogout:t}=uNe(),{isLoggedIn:n,locale:r,changeLocale:i,mode:o,changeMode:a,handleUpdateAgentStatus:s}=p.useContext(As),{agentInfo:l}=b0(h=>({agentInfo:h.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:j.jsx(dY,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[u,d]=p.useState(c);p.useEffect(()=>{if(d(c),l.uid!==""&&o===kv){console.log("agentInfo changed",l);const h=[...c],m={key:"status",label:e.formatMessage({id:"menu.agent.status",defaultMessage:"Agent Status"}),type:"group",children:[{key:cee,icon:l.status===cee?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:uee,icon:l.status===uee?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:N8,icon:l.status===N8?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},g=h[0].children,v=g.findIndex(y=>y.key===m.key);v!==-1?g[v]=m:g.splice(0,0,m),h[0].children=g,d(h)}},[l,r,o]);const f=async h=>{console.log("click",h.key),h.key==="logout"?t():h.key==="zh-cn"||h.key==="zh-tw"||h.key==="en"?i(h.key):h.key===vy||h.key===kv||h.key===XN?(console.log("mode",h.key),a(h.key)):(console.log("status"),h.key===N8&&Ho.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(h.key))};return j.jsx(j.Fragment,{children:n?j.jsx(j.Fragment,{children:j.jsx(Bd,{inlineCollapsed:!0,onClick:f,style:{width:64,height:34},mode:"inline",items:u})}):j.jsx(j.Fragment,{})})};async function MKt(e){return Lr("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:wr}})}const dNe=()=>{const[e,t]=p.useState([]),n=new R2e;p.useEffect(()=>{(async()=>{try{const s=await n.getAllMessages();t(s)}catch(s){console.error("Error fetching messages from IndexedDB:",s)}})()},[]);const r=async a=>{try{await n.createMessage(a);const s=await n.getAllMessages();console.log("useIndexedDB createMessage newMessages: ",s),t(s)}catch(s){console.error("Error creating message in IndexedDB:",s)}},i=async(a,s)=>{try{await n.updateMessage(a,s);const l=await n.getAllMessages();t(l)}catch(l){console.error("Error updating message in IndexedDB:",l)}},o=async a=>{try{await n.deleteMessage(a);const s=await n.getAllMessages();t(s)}catch(s){console.error("Error deleting message in IndexedDB:",s)}};return p.useEffect(()=>{console.log("useIndexedDB useEffect");const a=function(s){console.log("useIndexedDB handleNewMessage",s),r(s)};return vr.on(uT,a),()=>{console.log("useIndexedDB useEffect return"),vr.off(uT,a)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:o}};async function fNe(){return Lr("/api/v1/user/profile",{method:"GET",params:{client:wr}})}async function pNe(e){return Lr("/api/v1/user/update",{method:"POST",data:{...e,client:wr}})}async function kKt(e){return Lr("/api/v1/user/change/password",{method:"POST",data:{...e,client:wr}})}async function hNe(e){return Lr("/api/v1/user/change/email",{method:"POST",data:{...e,client:wr}})}async function mNe(e){return Lr("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:wr}})}const PKt=()=>{const e=vi(),{locale:t,changeLocale:n}=p.useContext(As),r=[{key:"lang",icon:j.jsx(Gmt,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?j.jsx(Yp,{}):j.jsx(j.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=o=>{const a=o.key;n(a)};return j.jsx(Bd,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})};var Cl=function(){return Cl=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?Da(iE,--_u):0,D_--,ua===10&&(D_=1,j3--),ua}function bd(){return ua=_u2||mz(ua)>3?"":" "}function WKt(e,t){for(;--t&&bd()&&!(ua<48||ua>102||ua>57&&ua<65||ua>70&&ua<97););return U3(e,QA()+(t<6&&gv()==32&&bd()==32))}function gz(e){for(;bd();)switch(ua){case e:return _u;case 34:case 39:e!==34&&e!==39&&gz(ua);break;case 40:e===41&&gz(e);break;case 92:bd();break}return _u}function qKt(e,t){for(;bd()&&e+ua!==57;)if(e+ua===84&&gv()===47)break;return"/*"+U3(t,_u-1)+"*"+_Q(e===47?e:bd())}function YKt(e){for(;!mz(gv());)bd();return U3(e,_u)}function KKt(e){return VKt(XA("",null,null,null,[""],e=zKt(e),0,[0],e))}function XA(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,m=0,g=1,v=1,y=1,b=0,_="",E=i,w=o,S=r,C=_;v;)switch(m=b,b=bd()){case 40:if(m!=108&&Da(C,d-1)==58){KA(C+=kr(ZL(b),"&","&\f"),"&\f",bNe(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:C+=ZL(b);break;case 9:case 10:case 13:case 32:C+=GKt(m);break;case 92:C+=WKt(QA()-1,7);continue;case 47:switch(gv()){case 42:case 47:BC(QKt(qKt(bd(),QA()),t,n,l),l);break;default:C+="/"}break;case 123*g:s[c++]=ff(C)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:y==-1&&(C=kr(C,/\f/g,"")),h>0&&ff(C)-d&&BC(h>32?Ace(C+";",r,n,d-1,l):Ace(kr(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(BC(S=Ice(C,t,n,c,u,i,s,_,E=[],w=[],d,o),o),b===123)if(u===0)XA(C,t,S,S,E,o,d,s,w);else switch(f===99&&Da(C,3)===110?100:f){case 100:case 108:case 109:case 115:XA(e,S,S,r&&BC(Ice(e,S,S,0,0,i,s,_,i,E=[],d,w),w),i,w,d,s,r?E:w);break;default:XA(C,S,S,S,[""],w,0,s,w)}}c=u=h=0,g=y=1,_=C="",d=a;break;case 58:d=1+ff(C),h=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&UKt()==125)continue}switch(C+=_Q(b),b*g){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(ff(C)-1)*y,y=1;break;case 64:gv()===45&&(C+=ZL(bd())),f=gv(),u=d=ff(_=C+=YKt(QA())),b++;break;case 45:m===45&&ff(C)==2&&(g=0)}}return o}function Ice(e,t,n,r,i,o,a,s,l,c,u,d){for(var f=i-1,h=i===0?o:[""],m=_Ne(h),g=0,v=0,y=0;g0?h[b]+" "+_:kr(_,/&\f/g,h[b])))&&(l[y++]=E);return H3(e,t,n,i===0?B3:s,l,c,u,d)}function QKt(e,t,n,r){return H3(e,t,n,gNe,_Q(HKt()),P_(e,2,-2),0,r)}function Ace(e,t,n,r,i){return H3(e,t,n,yQ,P_(e,0,r),P_(e,r+1,-1),r,i)}function ENe(e,t,n){switch(BKt(e,t)){case 5103:return _i+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _i+e+e;case 4789:return _w+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _i+e+_w+e+no+e+e;case 5936:switch(Da(e,t+11)){case 114:return _i+e+no+kr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _i+e+no+kr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _i+e+no+kr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return _i+e+no+e+e;case 6165:return _i+e+no+"flex-"+e+e;case 5187:return _i+e+kr(e,/(\w+).+(:[^]+)/,_i+"box-$1$2"+no+"flex-$1$2")+e;case 5443:return _i+e+no+"flex-item-"+kr(e,/flex-|-self/g,"")+(Ap(e,/flex-|baseline/)?"":no+"grid-row-"+kr(e,/flex-|-self/g,""))+e;case 4675:return _i+e+no+"flex-line-pack"+kr(e,/align-content|flex-|-self/g,"")+e;case 5548:return _i+e+no+kr(e,"shrink","negative")+e;case 5292:return _i+e+no+kr(e,"basis","preferred-size")+e;case 6060:return _i+"box-"+kr(e,"-grow","")+_i+e+no+kr(e,"grow","positive")+e;case 4554:return _i+kr(e,/([^-])(transform)/g,"$1"+_i+"$2")+e;case 6187:return kr(kr(kr(e,/(zoom-|grab)/,_i+"$1"),/(image-set)/,_i+"$1"),e,"")+e;case 5495:case 3959:return kr(e,/(image-set\([^]*)/,_i+"$1$`$1");case 4968:return kr(kr(e,/(.+:)(flex-)?(.*)/,_i+"box-pack:$3"+no+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_i+e+e;case 4200:if(!Ap(e,/flex-|baseline/))return no+"grid-column-align"+P_(e,t)+e;break;case 2592:case 3360:return no+kr(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Ap(r.props,/grid-\w+-end/)})?~KA(e+(n=n[t].value),"span",0)?e:no+kr(e,"-start","")+e+no+"grid-row-span:"+(~KA(n,"span",0)?Ap(n,/\d+/):+Ap(n,/\d+/)-+Ap(e,/\d+/))+";":no+kr(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Ap(r.props,/grid-\w+-start/)})?e:no+kr(kr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return kr(e,/(.+)-inline(.+)/,_i+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ff(e)-1-t>6)switch(Da(e,t+1)){case 109:if(Da(e,t+4)!==45)break;case 102:return kr(e,/(.+:)(.+)-([^]+)/,"$1"+_i+"$2-$3$1"+_w+(Da(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~KA(e,"stretch",0)?ENe(kr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return kr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,s,l,c){return no+i+":"+o+c+(a?no+i+"-span:"+(s?l:+l-+o)+c:"")+e});case 4949:if(Da(e,t+6)===121)return kr(e,":",":"+_i)+e;break;case 6444:switch(Da(e,Da(e,14)===45?18:11)){case 120:return kr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_i+(Da(e,14)===45?"inline-":"")+"box$3$1"+_i+"$2$3$1"+no+"$2box$3")+e;case 100:return kr(e,":",":"+no)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return kr(e,"scroll-","scroll-snap-")+e}return e}function Ik(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case yQ:e.return=ENe(e.value,e.length,n);return;case vNe:return Ik([nm(e,{value:kr(e.value,"@","@"+_i)})],r);case B3:if(e.length)return jKt(n=e.props,function(i){switch(Ap(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":db(nm(e,{props:[kr(i,/:(read-\w+)/,":"+_w+"$1")]})),db(nm(e,{props:[i]})),hz(e,{props:Rce(n,r)});break;case"::placeholder":db(nm(e,{props:[kr(i,/:(plac\w+)/,":"+_i+"input-$1")]})),db(nm(e,{props:[kr(i,/:(plac\w+)/,":"+_w+"$1")]})),db(nm(e,{props:[kr(i,/:(plac\w+)/,no+"input-$1")]})),db(nm(e,{props:[i]})),hz(e,{props:Rce(n,r)});break}return""})}}var tQt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ec={npm_package_dependencies_emoji_mart:"^5.6.0",npm_package_dependencies_use_debounce:"^10.0.1",ELECTRON_MIRROR:"http://npm.taobao.org/mirrors/electron/",NVM_INC:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/include/node",npm_package_devDependencies_prettier:"3.2.5",npm_package_devDependencies_electron_builder:"24.13.3",npm_package_scripts_build_mac_dmg:"tsc && vite build --mode prod && electron-builder --mac --config electron-builder-mac-dmg.yml",npm_package_dependencies_ts_protoc_gen:"^0.15.0",TERM_PROGRAM:"vscode",rvm_bin_path:"/Users/ningjinpeng/.rvm/bin",npm_package_dependencies__bytemd_plugin_breaks:"^1.21.0",npm_package_dependencies_cheerio:"^1.0.0",NODE:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",npm_config_version_git_tag:"true",npm_package_homepage:"https://github.com/bytedesk/bytedesk#readme",npm_package_scripts_release_mac:"sh cicd/scripts/build-upload-mac.sh",npm_package_dependencies_axios:"^1.6.5",npm_package_dependencies_moment:"^2.30.1",npm_package_devDependencies_typescript:"^5.1.6",npm_package_devDependencies_vite_plugin_pwa:"^0.20.1",PYENV_ROOT:"/Users/ningjinpeng/.pyenv",NVM_CD_FLAGS:"-q",GEM_HOME:"/Users/ningjinpeng/.gem/ruby",INIT_CWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase",npm_package_scripts_build_mac_mas:"tsc && vite build --mode prod && electron-builder --mac --config electron-builder-mac-mas.yml",npm_package_devDependencies_jest:"^29.7.0",npm_package_devDependencies_vite:"^5.0.10",TERM:"xterm-256color",SHELL:"/bin/zsh",npm_config_shamefully_hoist:"true",npm_package_dependencies__emotion_styled:"11.11.5",npm_package_dependencies_react_infinite_scroll_component:"^6.1.0",HOMEBREW_BOTTLE_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles",HOMEBREW_API_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api",npm_package_dependencies__ant_design_pro_provider:"^2.15.2",TMPDIR:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/",HOMEBREW_REPOSITORY:"/opt/homebrew",npm_config_init_license:"MIT",npm_package_dependencies__ant_design_x:"^1.0.5",npm_package_dependencies__langchain_community:"^0.2.28",npm_package_dependencies_socket_io:"^4.7.5",npm_package_locales_en_productName:"ByteDesk",npm_package_dependencies_debug:"^4.3.7",npm_package_dependencies_dompurify:"^3.0.9",npm_package_devDependencies__vitejs_plugin_react:"^4.0.4",TERM_PROGRAM_VERSION:"1.98.2",npm_package_scripts_dev:"vite --host --mode dev",npm_package_dependencies_express_rate_limit:"^7.2.0",npm_package_dependencies_uuid:"^9.0.1",ZDOTDIR:"/Users/ningjinpeng",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",MallocNanoZone:"0",npm_package_scripts_build_linux:"tsc && vite build --mode prod && electron-builder --linux --config electron-builder-linux.yml",npm_config_registry:"https://registry.npmmirror.com/",npm_package_private:"true",npm_package_repository_url:"git+https://github.com/bytedesk/bytedesk.git",npm_package_dependencies__ant_design_icons:"^5.6.1",npm_package_dependencies__tanstack_react_query_devtools:"^5.21.0",npm_package_dependencies_bowser:"^2.11.0",npm_package_dependencies_react_dom:"^18.2.0",PNPM_HOME:"/Users/ningjinpeng/Library/pnpm",npm_package_dependencies__ant_design_cssinjs:"^1.22.0",npm_package_dependencies_dayjs:"^1.11.11",npm_package_dependencies_react_dropzone:"^14.2.3",npm_package_readmeFilename:"README.md",OBJC_DISABLE_INITIALIZE_FORK_SAFETY:"YES",npm_package_description:"对话即服务",npm_package_debug_env_VITE_DEV_SERVER_URL:"http://127.0.0.1:9005/",npm_package_devDependencies__testing_library_react:"^14.2.2",npm_package_devDependencies_ajv:"^8.17.1",USER:"ningjinpeng",NVM_DIR:"/Users/ningjinpeng/.nvm",npm_package_license:"GNU",npm_package_devDependencies__types_react:"^18.2.20",npm_package_dependencies_intersection_observer:"^0.12.2",npm_package_dependencies_react_helmet_async:"^2.0.4",COMMAND_MODE:"unix2003",npm_package_scripts_release_open:"sh cicd/scripts/build-open.sh",npm_package_dependencies_aieditor:"^1.0.13",npm_package_dependencies_bytemd:"^1.21.0",npm_package_scripts_release_mas:"sh cicd/scripts/build-mac-mas.sh",npm_package_dependencies_xgplayer:"^3.0.13",rvm_path:"/Users/ningjinpeng/.rvm",HOMEBREW_INSTALL_FROM_API:"1",HOMEBREW_CORE_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",FLUTTER_ROOT:"/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/flutter",npm_package_dependencies_react_virtuoso:"^4.7.1",npm_package_dependencies_zustand:"^4.4.7",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.zLKVH3rvH7/Listeners",npm_package_dependencies__bytemd_plugin_gemoji:"^1.21.0",npm_package_dependencies_highlight_js:"^11.11.1",npm_package_devDependencies__types_express:"^4.17.21",npm_package_devDependencies__types_jest:"^29.5.12",npm_package_devDependencies_less:"^4.2.0",npm_package_devDependencies_postcss:"^8.4.31",VSCODE_PROFILE_INITIALIZED:"1",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",PUB_HOSTED_URL:"https://pub.flutter-io.cn",npm_package_scripts_e2e:"playwright test",npm_execpath:"/usr/local/lib/node_modules/yarn/bin/yarn.js",npm_package_scripts_build_open:"tsc && vite build --mode open",npm_package_dependencies__bytemd_react:"^1.21.0",npm_package_author_name:"weiyuai.cn",npm_package_dependencies_react_use:"^17.5.0",npm_package_devDependencies__electron_osx_sign:"^1.3.1",npm_package_devDependencies__types_react_dom:"^18.2.7",npm_package_dependencies__bytemd_plugin_gfm:"^1.21.0",npm_package_dependencies_peerjs:"^1.5.2",npm_package_devDependencies_styled_components:"^6.1.13",rvm_prefix:"/Users/ningjinpeng",npm_package_scripts_build_web:"tsc && vite build --mode web",npm_package_dependencies__emoji_mart_react:"^1.1.1",npm_package_dependencies_immer:"^10.1.1",npm_config_argv:'{"remain":[],"cooked":["run","build:open"],"original":["build:open"]}',PATH:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/yarn--1742995750350-0.6319152823611585:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase/node_modules/.bin:/Users/ningjinpeng/.config/yarn/link/node_modules/.bin:/Users/ningjinpeng/.yarn/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/usr/local/bin",npm_package_scripts_release_web:"sh cicd/scripts/build-upload.sh",npm_package_dependencies__ant_design_use_emotion_css:"1.0.4",npm_package_dependencies_electron_context_menu:"^3.6.1",npm_config_auto_install_peers:"true",npm_package_dependencies_react_contexify:"^6.0.0",npm_package_dependencies_systeminformation:"^5.22.3",npm_package_devDependencies_ts_jest:"^29.1.2",USER_ZDOTDIR:"/Users/ningjinpeng",__CFBundleIdentifier:"com.microsoft.VSCode",npm_package_dependencies_electron_screenshots:"^0.5.26",npm_package_devDependencies_tailwindcss:"^3.3.3",PWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase",npm_config_nodeLinker:"node-modules",npm_package_bugs_url:"https://github.com/bytedesk/bytedesk/issues",npm_package_scripts_preview:"vite preview --host",npm_package_dependencies__bytemd_plugin_frontmatter:"^1.21.0",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home",FLUTTER_STORAGE_BASE_URL:"https://storage.flutter-io.cn",npm_package_dependencies_date_fns:"^3.3.1",npm_package_dependencies_ua_parser_js:"^1.0.37",npm_lifecycle_event:"build:open",npm_package_name:"notebase",npm_package_repository_type:"git",npm_package_dependencies_react_intl:"^6.8.9",LANG:"zh_CN.UTF-8",LOCAL_GIT_DIRECTORY:"/Applications/GitHub Desktop.app/Contents/Resources/app/git",npm_package_scripts_build_win:"tsc && vite build --mode prod && electron-builder --win --config electron-builder-windows.yml",npm_package_scripts_pree2e:"vite build --mode=test",npm_package_dependencies_file_saver:"^2.0.5",npm_package_devDependencies_vite_plugin_electron_renderer:"^0.14.5",npm_config_version_commit_hooks:"true",npm_package_scripts_start:"vite --host --mode dev",npm_package_scripts_build:"tsc && vite build --mode prod && electron-builder",npm_package_scripts_release_win:"sh cicd/scripts/build-upload-win.sh",NODE_PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/bin/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/node_modules",npm_package_dependencies_menubar:"^9.4.0",npm_package_dependencies_react_router_dom:"^6.21.2",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XPC_FLAGS:"0x0",npm_config_bin_links:"true",npm_package_dependencies__bytemd_plugin_highlight:"^1.21.0",npm_package_dependencies__types_ua_parser_js:"^0.7.39",npm_config_electron_mirror:"https://npmmirror.com/mirrors/electron/",npm_package_engines_node:">=20",npm_package_main:"dist-electron/main/index.js",npm_package_dependencies__tanstack_react_query:"^5.20.5",npm_package_dependencies_dexie:"^4.0.7",npm_package_version:"1.0.2",npm_package_dependencies__emotion_react:"11.11.4",npm_package_dependencies_node_json_db:"^2.3.1",npm_package_dependencies_winston:"^3.11.0",npm_package_dependencies_ws:"^8.16.0",XPC_SERVICE_NAME:"0",npm_package_devDependencies_autoprefixer:"^10.4.16",VSCODE_INJECTION:"1",rvm_version:"1.29.12 (latest)",npm_package_type:"module",SHLVL:"4",PYENV_SHELL:"zsh",HOME:"/Users/ningjinpeng",npm_package_dependencies_react_markdown:"^9.0.1",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",HOMEBREW_BREW_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",npm_config_strict_ssl:"true",npm_config_save_prefix:"^",npm_package_dependencies_dotenv:"^16.4.5",npm_package_dependencies_mitt:"^3.0.1",npm_package_dependencies_openai:"^4.56.0",npm_config_version_git_message:"v%s",npm_package_dependencies__emoji_mart_data:"^1.2.1",npm_package_devDependencies_cross_env:"^7.0.3",HOMEBREW_PREFIX:"/opt/homebrew",npm_package_dependencies__bytemd_plugin_mermaid:"^1.21.0",npm_package_dependencies_react_photo_view:"^1.2.6",npm_package_devDependencies__types_web_bluetooth:"^0.0.20",npm_package_dependencies_unique_names_generator:"^4.7.1",YARN_WRAP_OUTPUT:"false",LOGNAME:"ningjinpeng",npm_package_locales_zh_CN_productName:"微语",npm_lifecycle_script:"tsc && vite build --mode open",npm_package_author_email:"270580156@qq.com",npm_package_dependencies_lodash_es:"^4.17.21",VSCODE_GIT_IPC_HANDLE:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/vscode-git-7f4d23a467.sock",npm_package_scripts_release_linux:"sh cicd/scripts/build-upload-linux.sh",npm_package_dependencies_react:"^18.2.0",npm_package_dependencies_mqtt:"^5.2.0",NVM_BIN:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin",BUN_INSTALL:"/Users/ningjinpeng/.bun",npm_config_user_agent:"yarn/1.22.17 npm/? node/v20.0.0 darwin arm64",npm_config_ignore_scripts:"",npm_config_version_git_sign:"",npm_package_dependencies_node_cmd:"^5.0.0",npm_package_dependencies_text_search_engine:"^1.1.0",npm_package_devDependencies__electron_notarize:"^2.5.0",npm_package_dependencies_socket_io_client:"^4.7.5",npm_package_devDependencies__playwright_test:"^1.37.1",npm_package_devDependencies__types_node:"^20.12.3",VSCODE_GIT_ASKPASS_NODE:"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)",GIT_ASKPASS:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",npm_package_dependencies_express:"^4.18.3",npm_config_ignore_optional:"",npm_config_init_version:"1.0.0",npm_package_scripts_build_quanjing:"tsc && vite build --mode quanjing",npm_package_dependencies_antd:"^5.23.2",npm_package_dependencies_langchain:"^0.2.16",npm_package_dependencies__ant_design_compatible:"^5.1.4",npm_package_dependencies_antd_img_crop:"^4.23.0",npm_package_dependencies_electron_updater:"^6.1.1",npm_package_devDependencies_vite_plugin_electron:"^0.28.0",npm_package_dependencies__dicebear_collection:"^8.0.1",npm_package_dependencies__types_file_saver:"^2.0.7",npm_package_devDependencies_electron:"^33.2.0",npm_package_locales_zh_CN_description:"对话即服务",npm_config_version_tag_prefix:"v",npm_package_dependencies__ant_design_pro_components:"^2.6.28",npm_package_dependencies__dicebear_core:"^8.0.1",npm_package_dependencies_dexie_react_hooks:"^1.1.7",npm_package_devDependencies__testing_library_jest_dom:"^6.4.2",npm_package_locales_en_description:"Chat as a Service",npm_node_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",COLORTERM:"truecolor",NODE_ENV:"production"},$_=typeof process<"u"&&ec!==void 0&&(ec.REACT_APP_SC_ATTR||ec.SC_ATTR)||"data-styled",CNe="active",wNe="data-styled-version",z3="6.1.13",SQ=`/*!sc*/ `,Ak=typeof window<"u"&&"HTMLElement"in window,nQt=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&ec!==void 0&&ec.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&ec.REACT_APP_SC_DISABLE_SPEEDY!==""?ec.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&ec.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&ec!==void 0&&ec.SC_DISABLE_SPEEDY!==void 0&&ec.SC_DISABLE_SPEEDY!==""&&ec.SC_DISABLE_SPEEDY!=="false"&&ec.SC_DISABLE_SPEEDY),V3=Object.freeze([]),L_=Object.freeze({});function rQt(e,t,n){return n===void 0&&(n=L_),e.theme!==n.theme&&e.theme||t||n.theme}var TNe=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),iQt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,oQt=/(^-|-$)/g;function Nce(e){return e.replace(iQt,"-").replace(oQt,"")}var aQt=/(a)(d)/gi,XR=52,Mce=function(e){return String.fromCharCode(e+(e>25?39:97))};function vz(e){var t,n="";for(t=Math.abs(e);t>XR;t=t/XR|0)n=Mce(t%XR)+n;return(Mce(t%XR)+n).replace(aQt,"$1-$2")}var JL,xNe=5381,ry=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ONe=function(e){return ry(xNe,e)};function sQt(e){return vz(ONe(e)>>>0)}function lQt(e){return e.displayName||e.name||"Component"}function e6(e){return typeof e=="string"&&!0}var RNe=typeof Symbol=="function"&&Symbol.for,INe=RNe?Symbol.for("react.memo"):60115,cQt=RNe?Symbol.for("react.forward_ref"):60112,uQt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},dQt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ANe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},fQt=((JL={})[cQt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},JL[INe]=ANe,JL);function kce(e){return("type"in(t=e)&&t.type.$$typeof)===INe?ANe:"$$typeof"in e?fQt[e.$$typeof]:uQt;var t}var pQt=Object.defineProperty,hQt=Object.getOwnPropertyNames,Pce=Object.getOwnPropertySymbols,mQt=Object.getOwnPropertyDescriptor,gQt=Object.getPrototypeOf,Dce=Object.prototype;function NNe(e,t,n){if(typeof t!="string"){if(Dce){var r=gQt(t);r&&r!==Dce&&NNe(e,r,n)}var i=hQt(t);Pce&&(i=i.concat(Pce(t)));for(var o=kce(e),a=kce(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var vQt=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw oO(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=i;a=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,a=i;a=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(v+="".concat(y,","))}),l+="".concat(m).concat(g,'{content:"').concat(v,'"}').concat(SQ)},u=0;u0?".".concat(t):f},u=l.slice();u.push(function(f){f.type===B3&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(RQt,n).replace(r,c))}),a.prefix&&u.push(eQt),u.push(XKt);var d=function(f,h,m,g){h===void 0&&(h=""),m===void 0&&(m=""),g===void 0&&(g="&"),t=g,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var v=f.replace(IQt,""),y=KKt(m||h?"".concat(m," ").concat(h," { ").concat(v," }"):v);a.namespace&&(y=PNe(y,a.namespace));var b=[];return Ik(y,ZKt(u.concat(JKt(function(_){return b.push(_)})))),b};return d.hash=l.length?l.reduce(function(f,h){return h.name||oO(15),ry(f,h.name)},xNe).toString():"",d}var NQt=new kNe,yz=AQt(),DNe=ce.createContext({shouldForwardProp:void 0,styleSheet:NQt,stylis:yz});DNe.Consumer;ce.createContext(void 0);function Bce(){return p.useContext(DNe)}var MQt=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=yz);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,CQ(this,function(){throw oO(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=yz),this.name+t.hash},e}(),kQt=function(e){return e>="A"&&e<="Z"};function jce(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,a)){var s=r(o,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,s)}i=G1(i,a),this.staticRulesId=a}else{for(var l=ry(this.baseHash,r.hash),c="",u=0;u>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(c,".".concat(h),void 0,this.componentId)),i=G1(i,h)}}return i},e}(),FNe=ce.createContext(void 0);FNe.Consumer;var t6={};function LQt(e,t,n){var r=EQ(e),i=e,o=!e6(e),a=t.attrs,s=a===void 0?V3:a,l=t.componentId,c=l===void 0?function(E,w){var S=typeof E!="string"?"sc":Nce(E);t6[S]=(t6[S]||0)+1;var C="".concat(S,"-").concat(sQt(z3+S+t6[S]));return w?"".concat(w,"-").concat(C):C}(t.displayName,t.parentComponentId):l,u=t.displayName,d=u===void 0?function(E){return e6(E)?"styled.".concat(E):"Styled(".concat(lQt(E),")")}(e):u,f=t.displayName&&t.componentId?"".concat(Nce(t.displayName),"-").concat(t.componentId):t.componentId||c,h=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,m=t.shouldForwardProp;if(r&&i.shouldForwardProp){var g=i.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;m=function(E,w){return g(E,w)&&v(E,w)}}else m=g}var y=new $Qt(n,f,r?i.componentStyle:void 0);function b(E,w){return function(S,C,T){var x=S.attrs,O=S.componentStyle,N=S.defaultProps,A=S.foldedComponentIds,M=S.styledComponentId,F=S.target,P=ce.useContext(FNe),B=Bce(),I=S.shouldForwardProp||B.shouldForwardProp,k=rQt(C,P,N)||L_,U=function(te,ae,K){for(var Q,oe=Cl(Cl({},ae),{className:void 0,theme:K}),ge=0;ge{const[o]=Dr.useForm(),a=$l(l=>l.currentOrg);p.useEffect(()=>{t&&n?o.setFieldsValue({name:n==null?void 0:n.name,description:n==null?void 0:n.description,type:n==null?void 0:n.type}):o.setFieldsValue({type:eg})},[o,t,n]);const s=async()=>{try{const l=await o.validateFields();if(console.log("values:",l),t&&n){const c={...l,orgUid:a==null?void 0:a.uid,uid:n==null?void 0:n.uid},u=await HNe(c);if(console.log("updateKbase response:",u.data),u.data.code===200)return Wt.success("知识库更新成功"),i(),!0}else{const c={...l,orgUid:a==null?void 0:a.uid},u=await jNe(c);return console.log("createKbase response:",u.data),u.data.code===200?(Wt.success("知识库创建成功"),i(),!0):(Wt.error(u.data.message),!1)}}catch(l){return console.error("Create space failed:",l),Wt.error("创建知识库失败"),!1}};return j.jsx(Wo,{title:"创建知识库",open:e,onOk:s,onCancel:r,children:j.jsxs(Dr,{form:o,submitter:!1,children:[j.jsx(ci,{name:"name",label:"知识库名称",placeholder:"请输入知识库名称",rules:[{required:!0,message:"请输入知识库名称"}]}),j.jsx(XS,{name:"description",label:"知识库描述",placeholder:"请输入知识库描述",rules:[{required:!0,message:"请输入知识库描述"}],fieldProps:{rows:4}}),j.jsx(zD.Group,{name:"type",label:"知识库类型",rules:[{required:!0,message:"请选择知识库类型"}],options:[{label:"帮助文档",value:s6e},{label:"私有知识库",value:eg}]})]})})},$g=Oc(e=>({kbases:[],currentKbase:null,setKbases:t=>e({kbases:t}),setCurrentKbase:t=>e({currentKbase:t}),fetchKbases:async t=>{const r=await BQt({pageNumber:0,pageSize:10,type:eg,orgUid:t,queryNotebase:!0});console.log("queryKbasesByOrg response",r.data),r.data.code===200?e({kbases:r.data.data.content||[]}):Wt.error(r.data.message)},toggleStarKbase:t=>e(n=>({kbases:n.kbases.map(r=>r.uid===t?{...r,favorite:!r.favorite}:r)})),createKbase:async t=>{const n={...t,type:eg,queryNotebase:!0},r=await jNe(n);console.log("createKbase response",r.data),r.data.code===200?e(i=>({kbases:[...i.kbases,t]})):Wt.error(r.data.message)},updateKbase:async t=>{const n={...t,type:eg,queryNotebase:!0},r=await HNe(n);console.log("updateKbase response",r.data),r.data.code===200?Wt.success("更新成功"):Wt.error(r.data.message)},deleteKbase:async t=>{const r=await HQt({uid:t});console.log("deleteKbase response",r.data),r.data.code===200?Wt.success("删除成功"):Wt.error(r.data.message)},fetchKbaseDetail:async t=>{const r=await jQt({uid:t});if(console.log("queryKbaseDetail response",r.data),r.data.code===200)e({currentKbase:r.data.data});else throw new Error("KBASE.KbaseResponse not found")}})),{Title:UQt,Paragraph:zQt}=I2,VQt=Po(Z5)` .ant-card-body { height: 120px; @@ -1514,7 +1514,7 @@ ${Pr("ai-append")} `))}function l(h,m,g,v){const y=g.enter("tableCell"),b=g.enter("phrasing"),_=S3e(h,g,{...v,before:o,after:o});return b(),y(),_}function c(h,m){return COn(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function u(h,m,g){const v=h.children;let y=-1;const b=[],_=m.enter("table");for(;++y-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(d,f,h){return f?(h?"":" ".repeat(a))+d:(h?o:o+" ".repeat(a-o.length))+d}}const DOn={exit:{taskListCheckValueChecked:Cme,taskListCheckValueUnchecked:Cme,paragraph:LOn}},$On={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:FOn}};function Cme(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function LOn(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o',CheckCorrect:'',InsertTable:''},UOn="Strikethrough",zOn="text",VOn="Table",GOn="Heading",WOn="Task list",qOn="todo",YOn={strike:UOn,strikeText:zOn,table:VOn,tableHeading:GOn,task:WOn,taskText:qOn};function KOn({locale:e,...t}={}){const n={...YOn,...e};return{remark:r=>r.use(HOn,t),actions:[{title:n.strike,icon:I7.Strikethrough,cheatsheet:`~~${n.strikeText}~~`,handler:{type:"action",click({wrapText:r,editor:i}){r("~~"),i.focus()}}},{title:n.task,icon:I7.CheckCorrect,cheatsheet:`- [ ] ${n.taskText}`,handler:{type:"action",click({replaceLines:r,editor:i}){r(o=>"- [ ] "+o),i.focus()}}},{title:n.table,icon:I7.InsertTable,handler:{type:"action",click({editor:r,appendBlock:i,codemirror:o}){const{line:a}=i(`| ${n.tableHeading} | | | --- | --- | | | | -`);r.setSelection(o.Pos(a,2),o.Pos(a,2+n.tableHeading.length)),r.focus()}}}]}}function QOn({init:e}={}){let t;return{viewerEffect({markdownBody:n}){(async()=>{const r=n.querySelectorAll("pre>code");r.length!==0&&(t||(t=await oW(()=>import("./index-D2q_syzD.js"),[]).then(i=>i.default),e&&await e(t)),r.forEach(i=>{t.highlightElement(i)}))})()}}}const XOn={ChartGraph:''},ZOn="Entity relationship diagram",JOn="Flow chart",eRn="Gantt chart",tRn="Mermaid diagrams",nRn="Mindmaps",rRn="Pie chart",iRn="Sequence diagram",oRn="State diagram",aRn="Timeline",sRn="User journey diagram",lRn={class:"Class diagram",er:ZOn,flowchart:JOn,gantt:eRn,mermaid:tRn,mindmap:nRn,pie:rRn,sequence:iRn,state:oRn,timeline:aRn,uj:sRn};function cRn({locale:e,...t}={}){const n={...lRn,...e};let r;const i=[{title:n.flowchart,code:`graph TD +`);r.setSelection(o.Pos(a,2),o.Pos(a,2+n.tableHeading.length)),r.focus()}}}]}}function QOn({init:e}={}){let t;return{viewerEffect({markdownBody:n}){(async()=>{const r=n.querySelectorAll("pre>code");r.length!==0&&(t||(t=await oW(()=>import("./index-CVIZTd-d.js"),[]).then(i=>i.default),e&&await e(t)),r.forEach(i=>{t.highlightElement(i)}))})()}}}const XOn={ChartGraph:''},ZOn="Entity relationship diagram",JOn="Flow chart",eRn="Gantt chart",tRn="Mermaid diagrams",nRn="Mindmaps",rRn="Pie chart",iRn="Sequence diagram",oRn="State diagram",aRn="Timeline",sRn="User journey diagram",lRn={class:"Class diagram",er:ZOn,flowchart:JOn,gantt:eRn,mermaid:tRn,mindmap:nRn,pie:rRn,sequence:iRn,state:oRn,timeline:aRn,uj:sRn};function cRn({locale:e,...t}={}){const n={...lRn,...e};let r;const i=[{title:n.flowchart,code:`graph TD Start --> Stop`},{title:n.sequence,code:`sequenceDiagram Alice->>John: Hello John, how are you? John-->>Alice: Great! @@ -1579,7 +1579,7 @@ another task : 24d`},{title:n.pie,code:`pie title Pets adopted by volunteer : Google 2005 : Youtube 2006 : Twitter - `}];return{viewerEffect({markdownBody:o}){(async()=>{const a=o.querySelectorAll("pre>code.language-mermaid");a.length!==0&&(r||(r=await oW(()=>import("./mermaid.core-BajzCmnv.js").then(s=>s.au),[]).then(s=>s.default),t&&r.initialize(t)),a.forEach((s,l)=>{const c=s.parentElement,u=s.innerText,d=document.createElement("div");d.classList.add("bytemd-mermaid"),d.style.lineHeight="initial",c.replaceWith(d),r.render(`bytemd-mermaid-${Date.now()}-${l}`,u,d).then(f=>{d.innerHTML=f.svg}).catch(f=>{})}))})()},actions:[{title:n.mermaid,icon:XOn.ChartGraph,cheatsheet:"```mermaid",handler:{type:"dropdown",actions:i.map(({title:o,code:a})=>({title:o,handler:{type:"action",click({editor:s,appendBlock:l,codemirror:c}){const{line:u}=l("```mermaid\n"+a+"\n```");s.setSelection(c.Pos(u+1,0),c.Pos(u+a.split(` + `}];return{viewerEffect({markdownBody:o}){(async()=>{const a=o.querySelectorAll("pre>code.language-mermaid");a.length!==0&&(r||(r=await oW(()=>import("./mermaid.core-DacimPk4.js").then(s=>s.au),[]).then(s=>s.default),t&&r.initialize(t)),a.forEach((s,l)=>{const c=s.parentElement,u=s.innerText,d=document.createElement("div");d.classList.add("bytemd-mermaid"),d.style.lineHeight="initial",c.replaceWith(d),r.render(`bytemd-mermaid-${Date.now()}-${l}`,u,d).then(f=>{d.innerHTML=f.svg}).catch(f=>{})}))})()},actions:[{title:n.mermaid,icon:XOn.ChartGraph,cheatsheet:"```mermaid",handler:{type:"dropdown",actions:i.map(({title:o,code:a})=>({title:o,handler:{type:"action",click({editor:s,appendBlock:l,codemirror:c}){const{line:u}=l("```mermaid\n"+a+"\n```");s.setSelection(c.Pos(u+1,0),c.Pos(u+a.split(` `).length)),s.focus()}}})),...n}}]}}function Ox(e){"@babel/helpers - typeof";return Ox=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ox(e)}function wme(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function NV(e){for(var t=1;t a, & > span":{paddingInlineEnd:s,fontSize:o,lineHeight:d},"&-name":{color:h,fontSize:i,transition:"color ".concat(g),"> *":{color:h,"&:hover":{color:h}}},"&-time":{color:m,whiteSpace:"nowrap",cursor:"auto"}},"&-detail p":{whiteSpace:"pre-wrap",marginBlock:0}}),"".concat(n,"-actions"),{marginTop:l,marginBottom:0,paddingInlineStart:0,"> li":{display:"inline-block",color:h,"> span":{marginInlineEnd:l,color:h,fontSize:o,cursor:"pointer",transition:"color ".concat(g),userSelect:"none","&:hover":{color:f}}}}),"".concat(n,"-nested"),{marginInlineStart:44})))};function pRn(e){var t=_s.useToken(),n=t.theme,r=t.token,i=t.hashId,o=p.useContext($n.ConfigContext),a=o.iconPrefixCls;return[d_({theme:n,token:r,hashId:i,path:["compatible","Comment",e,a]},function(){var s=NV({componentCls:".".concat(e)},r);return[fRn(s)]}),i]}function Rx(e){"@babel/helpers - typeof";return Rx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rx(e)}var hRn=["actions","author","avatar","children","className","content","prefixCls","datetime"];function MV(){return MV=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wRn(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var TRn=$n.ConfigContext,xRn=function(t){var n=t.actions,r=t.author,i=t.avatar,o=t.children,a=t.className,s=t.content,l=t.prefixCls,c=t.datetime,u=CRn(t,hRn),d=p.useContext(TRn),f=d.getPrefixCls,h=d.direction,m=function(O,N){return p.createElement("div",{className:Te("".concat(O,"-nested"))},N)},g=f("comment",l),v=pRn(g),y=bRn(v,2),b=y[0],_=y[1],E=i?p.createElement("div",{className:"".concat(g,"-avatar")},typeof i=="string"?p.createElement("img",{src:i,alt:"comment-avatar"}):i):null,w=n&&n.length?p.createElement("ul",{className:"".concat(g,"-actions")},n.map(function(x,O){return p.createElement("li",{key:"action-".concat(O)},x)})):null,S=(r||c)&&p.createElement("div",{className:"".concat(g,"-content-author")},r&&p.createElement("span",{className:"".concat(g,"-content-author-name")},r),c&&p.createElement("span",{className:"".concat(g,"-content-author-time")},c)),C=p.createElement("div",{className:"".concat(g,"-content")},S,p.createElement("div",{className:"".concat(g,"-content-detail")},s),w),T=Te(g,mRn({},"".concat(g,"-rtl"),h==="rtl"),a,_);return b(p.createElement("div",MV({},u,{className:T}),p.createElement("div",{className:"".concat(g,"-inner")},E,C),o?m(g,o):null))};async function ORn(e){return Lr("/api/v1/comment/query/org",{method:"GET",params:{...e,client:wr}})}async function RRn(e){return Lr("/api/v1/comment/create",{method:"POST",data:{...e,client:wr}})}async function IRn(e){return Lr("/api/v1/comment/delete",{method:"POST",data:{...e,client:wr}})}const{TextArea:ARn}=Ki,NRn=Po.div` .ant-comment-content-detail { diff --git a/deploy/server/notebase/assets/infoDiagram-f8f76790-DFiIBbny.js b/starter/src/main/resources/templates/notebase/assets/infoDiagram-f8f76790-grTWIixK.js similarity index 98% rename from deploy/server/notebase/assets/infoDiagram-f8f76790-DFiIBbny.js rename to starter/src/main/resources/templates/notebase/assets/infoDiagram-f8f76790-grTWIixK.js index 994e3ebb92..426a17a22a 100644 --- a/deploy/server/notebase/assets/infoDiagram-f8f76790-DFiIBbny.js +++ b/starter/src/main/resources/templates/notebase/assets/infoDiagram-f8f76790-grTWIixK.js @@ -1,4 +1,4 @@ -import{l as Y,N as D,i as M}from"./mermaid.core-BajzCmnv.js";import"./index-CLWgAZNI.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,j=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>j&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`: +import{l as Y,N as D,i as M}from"./mermaid.core-DacimPk4.js";import"./index-bOgutTC1.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,j=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>j&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`: `+o.showPosition()+` Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(v+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(h[1]),l=null,L=o.yyleng,P=o.yytext,v=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],_.$=r[r.length-c],_._$={first_line:i[i.length-(c||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(c||1)].first_column,last_column:i[i.length-1].last_column},z&&(_._$.range=[i[i.length-(c||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(_,[P,L,v,p.yy,h[1],r,i].concat(R)),typeof w<"u")return w;c&&(n=n.slice(0,-1*c*2),r=r.slice(0,-1*c),i=i.slice(0,-1*c)),n.push(this.productions_[h[1]][0]),r.push(_.$),i.push(_._$),F=d[n[n.length-2]][n[n.length-1]],n.push(F);break;case 3:return!0}}return!0}},k=function(){var u={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/journeyDiagram-49397b02-D3yzpSN_.js b/starter/src/main/resources/templates/notebase/assets/journeyDiagram-49397b02-Bv4S8x0v.js similarity index 98% rename from starter/src/main/resources/templates/notebase/assets/journeyDiagram-49397b02-D3yzpSN_.js rename to starter/src/main/resources/templates/notebase/assets/journeyDiagram-49397b02-Bv4S8x0v.js index 69ee1f4383..36f685a63f 100644 --- a/starter/src/main/resources/templates/notebase/assets/journeyDiagram-49397b02-D3yzpSN_.js +++ b/starter/src/main/resources/templates/notebase/assets/journeyDiagram-49397b02-Bv4S8x0v.js @@ -1,4 +1,4 @@ -import{c as A,A as yt,B as ft,s as dt,g as pt,b as gt,a as mt,C as xt,h as W,i as kt}from"./mermaid.core-BajzCmnv.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-08f97a94-Cb_6H50Z.js";import"./index-CLWgAZNI.js";import{a as Q}from"./arc-DCwD3PI6.js";import"./path-CbwjOpE9.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var T;return T=u.pop()||x.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,E,b,O,C={},N,$,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`: +import{c as A,A as yt,B as ft,s as dt,g as pt,b as gt,a as mt,C as xt,h as W,i as kt}from"./mermaid.core-DacimPk4.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-08f97a94-CD3fOJ0l.js";import"./index-bOgutTC1.js";import{a as Q}from"./arc-UQ4BAf3M.js";import"./path-CbwjOpE9.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var T;return T=u.pop()||x.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,E,b,O,C={},N,$,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`: `+x.showPosition()+` Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":q="Parse error on line "+(R+1)+": Unexpected "+(_==J?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(q,{text:x.match,token:this.terminals_[_]||_,line:x.yylineno,loc:Y,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),d.push(x.yytext),o.push(x.yylloc),a.push(b[1]),_=null,Z=x.yyleng,k=x.yytext,R=x.yylineno,Y=x.yylloc;break;case 2:if($=this.productions_[b[1]][1],C.$=d[d.length-$],C._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},ht&&(C._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),O=this.performAction.apply(C,[k,Z,R,S.yy,b[1],d,o].concat(ct)),typeof O<"u")return O;$&&(a=a.slice(0,-1*$*2),d=d.slice(0,-1*$),o=o.slice(0,-1*$)),a.push(this.productions_[b[1]][0]),d.push(C.$),o.push(C._$),K=w[a[a.length-2]][a[a.length-1]],a.push(K);break;case 3:return!0}}return!0}},m=function(){var p={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(s,r){return this.yy=r||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var r=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),r=new Array(s.length+1).join("-");return s+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/layout-Cg9I2QIy.js b/starter/src/main/resources/templates/notebase/assets/layout-DPudLDYQ.js similarity index 99% rename from deploy/server/notebase/assets/layout-Cg9I2QIy.js rename to starter/src/main/resources/templates/notebase/assets/layout-DPudLDYQ.js index decb6079c7..853fe25a5c 100644 --- a/deploy/server/notebase/assets/layout-Cg9I2QIy.js +++ b/starter/src/main/resources/templates/notebase/assets/layout-DPudLDYQ.js @@ -1 +1 @@ -import{a as F,b as gn,c as zn,d as L,k as Xn,e as Hn,g as Un,j as P,l as xn,m as En,n as kn,t as Jn,o as yn,p as Kn,q as jn,f as s,G as x,h as w,i as g,r as M,v as y,s as Y}from"./graph-CNSoCPH1.js";import{B as A,C as Zn,D as Qn,E as Nn,F as B,G as Ln,H as ne,e as _n,f as K,I as ee,J as re,K as j,L as te,N as Cn,O as ie,P as ae,n as U}from"./index-CLWgAZNI.js";var oe=/\s/;function ue(n){for(var e=n.length;e--&&oe.test(n.charAt(e)););return e}var de=/^\s+/;function fe(n){return n&&n.slice(0,ue(n)+1).replace(de,"")}var un=NaN,se=/^[-+]0x[0-9a-f]+$/i,ce=/^0b[01]+$/i,he=/^0o[0-7]+$/i,le=parseInt;function ve(n){if(typeof n=="number")return n;if(F(n))return un;if(A(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=A(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=fe(n);var r=ce.test(n);return r||he.test(n)?le(n.slice(2),r?2:8):se.test(n)?un:+n}var dn=1/0,pe=17976931348623157e292;function S(n){if(!n)return n===0?n:0;if(n=ve(n),n===dn||n===-dn){var e=n<0?-1:1;return e*pe}return n===n?n:0}function we(n){var e=S(n),r=e%1;return e===e?r?e-r:e:0}function _(n){var e=n==null?0:n.length;return e?gn(n):[]}function me(n){return Zn(Qn(n,void 0,_),n+"")}var be=1,ge=4;function xe(n){return zn(n,be|ge)}var In=Object.prototype,Ee=In.hasOwnProperty,ke=Nn(function(n,e){n=Object(n);var r=-1,t=e.length,i=t>2?e[2]:void 0;for(i&&B(e[0],e[1],i)&&(t=1);++r-1?i[o?e[a]:a]:void 0}}var Ne=Math.max;function Le(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:we(r);return i<0&&(i=Ne(t+i,0)),Hn(n,L(e),i)}var Z=ye(Le);function Rn(n,e){var r=-1,t=_n(n)?Array(n.length):[];return Un(n,function(i,o,a){t[++r]=e(i,o,a)}),t}function m(n,e){var r=K(n)?P:Rn;return r(n,L(e))}function _e(n,e){return n==null?n:ee(n,xn(e),Ln)}function Ce(n,e){return n&&En(n,xn(e))}function Ie(n,e){return n>e}function Tn(n,e){return ne||o&&a&&d&&!u&&!f||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!f&&n=u)return d;var f=r[t];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Se(n,e,r){e.length?e=P(e,function(o){return K(o)?function(a){return yn(a,o.length===1?o[0]:o)}:o}):e=[j];var t=-1;e=P(e,ie(L));var i=Rn(n,function(o,a,u){var d=P(e,function(f){return f(o)});return{criteria:d,index:++t,value:o}});return Me(i,function(o,a){return Pe(o,a,r)})}function Fe(n,e){return Te(n,e,function(r,t){return Kn(n,t)})}var V=me(function(n,e){return n==null?{}:Fe(n,e)}),Ae=Math.ceil,Be=Math.max;function Ge(n,e,r,t){for(var i=-1,o=Be(Ae((e-n)/(r||1)),0),a=Array(o);o--;)a[++i]=n,n+=r;return a}function Ve(n){return function(e,r,t){return t&&typeof t!="number"&&B(e,r,t)&&(r=t=void 0),e=S(e),r===void 0?(r=e,e=0):r=S(r),t=t===void 0?e1&&B(n,e[0],e[1])?e=[]:r>2&&B(e[0],e[1],e[2])&&(e=[e[0]]),Se(n,gn(e),[])}),Ye=0;function en(n){var e=++Ye;return jn(n)+e}function De(n,e,r){for(var t=-1,i=n.length,o=e.length,a={};++t0;--u)if(a=e[u].dequeue(),a){t=t.concat(q(n,e,r,a,!0));break}}}return t}function q(n,e,r,t,i){var o=i?[]:void 0;return s(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,J(e,r,d)}),s(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,J(e,r,f)}),n.removeNode(t.v),o}function Ue(n,e){var r=new x,t=0,i=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var o=N(i+t+3).map(function(){return new qe}),a=t+1;return s(r.nodes(),function(u){J(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function J(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function Je(n){var e=n.graph().acyclicer==="greedy"?Xe(n,r(n)):Ke(n);s(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,en("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function Ke(n){var e=[],r={},t={};function i(o){w(t,o)||(t[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):i(a.w)}),delete r[o])}return s(n.nodes(),i),e}function je(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function C(n,e,r,t){var i;do i=en(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function Ze(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function Mn(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function sn(n,e){var r=n.x,t=n.y,i=e.x-r,o=e.y-t,a=n.width/2,u=n.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,f=u):(i<0&&(a=-a),d=a,f=a*o/i),{x:r+d,y:t+f}}function $(n){var e=m(N(On(n)+1),function(){return[]});return s(n.nodes(),function(r){var t=n.node(r),i=t.rank;g(i)||(e[i][t.order]=r)}),e}function Qe(n){var e=R(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var t=n.node(r);w(t,"rank")&&(t.rank-=e)})}function nr(n){var e=R(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%i!==0?--t:t&&s(o,function(u){n.node(u).rank+=t})})}function cn(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),C(n,"border",i,e)}function On(n){return E(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function er(n,e){var r={lhs:[],rhs:[]};return s(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function rr(n,e){return e()}function tr(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&s(t,e),w(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;oa.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===vn(n,n.node(c.v),u)&&d!==vn(n,n.node(c.w),u)});return nn(f,function(c){return T(e,c)})}function Dn(n,e,r,t){var i=r.v,o=r.w;n.removeEdge(i,o),n.setEdge(t.v,t.w,{}),an(n),tn(n,e),br(n,e)}function br(n,e){var r=Z(n.nodes(),function(i){return!e.node(i).parent}),t=wr(n,r);t=t.slice(1),s(t,function(i){var o=n.node(i).parent,a=e.edge(i,o),u=!1;a||(a=e.edge(o,i),u=!0),e.node(i).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function gr(n,e,r){return n.hasEdge(e,r)}function vn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function xr(n){switch(n.graph().ranker){case"network-simplex":pn(n);break;case"tight-tree":kr(n);break;case"longest-path":Er(n);break;default:pn(n)}}var Er=rn;function kr(n){rn(n),Sn(n)}function pn(n){k(n)}function yr(n){var e=C(n,"root",{},"_root"),r=Nr(n),t=E(y(r))-1,i=2*t+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=i});var o=Lr(n)+1;s(n.children(),function(a){$n(n,e,i,o,t,r,a)}),n.graph().nodeRankFactor=i}function $n(n,e,r,t,i,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=cn(n,"_bt"),f=cn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){$n(n,e,r,t,i,o,h);var l=n.node(h),v=l.borderTop?l.borderTop:h,p=l.borderBottom?l.borderBottom:h,b=l.borderTop?t:2*t,I=v!==p?1:i-o[a]+1;n.setEdge(d,v,{weight:b,minlen:I,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:I,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:i+o[a]})}function Nr(n){var e={};function r(t,i){var o=n.children(t);o&&o.length&&s(o,function(a){r(a,i+1)}),e[t]=i}return s(n.children(),function(t){r(t,1)}),e}function Lr(n){return Y(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function _r(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Cr(n,e,r){var t={},i;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function Ir(n,e,r){var t=Rr(n),i=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=i.edge(f,o),h=g(c)?0:c.weight;i.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),i}function Rr(n){for(var e;n.hasNode(e=en("_root")););return e}function Tr(n,e){for(var r=0,t=1;t0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function Or(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),t=E(m(r,function(u){return n.node(u).rank})),i=m(N(t+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);i[d.rank].push(u),s(n.successors(u),o)}}var a=O(r,function(u){return n.node(u).rank});return s(a,o),i}function Pr(n,e){return m(e,function(r){var t=n.inEdges(r);if(t.length){var i=Y(t,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Sr(n,e){var r={};s(n,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};g(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),s(e.edges(),function(i){var o=r[i.v],a=r[i.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=M(r,function(i){return!i.indegree});return Fr(t)}function Fr(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Ar(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var i=n.pop();e.push(i),s(i.in.reverse(),r(i)),s(i.out,t(i))}return m(M(e,function(o){return!o.merged}),function(o){return V(o,["vs","i","barycenter","weight"])})}function Ar(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function Br(n,e){var r=er(n,function(c){return w(c,"barycenter")}),t=r.lhs,i=O(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;t.sort(Gr(!!e)),d=wn(o,i,d),s(t,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=wn(o,i,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function wn(n,e,r){for(var t;e.length&&(t=G(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Gr(n){return function(e,r){return e.barycenterr.barycenter?1:n?r.i-e.i:e.i-r.i}}function qn(n,e,r,t){var i=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=M(i,function(p){return p!==a&&p!==u}));var f=Pr(n,i);s(f,function(p){if(n.children(p.v).length){var b=qn(n,p.v,r,t);d[p.v]=b,w(b,"barycenter")&&Yr(p,b)}});var c=Sr(f,r);Vr(c,d);var h=Br(c,t);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var l=n.node(n.predecessors(a)[0]),v=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+v.order)/(h.weight+2),h.weight+=2}return h}function Vr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function Yr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function Dr(n){var e=On(n),r=mn(n,N(1,e+1),"inEdges"),t=mn(n,N(e-1,-1,-1),"outEdges"),i=Or(n);bn(n,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){$r(u%2?r:t,u%4>=2),i=$(n);var f=Tr(n,i);fa||u>e[d].lim));for(f=d,d=t;(d=n.parent(d))!==f;)o.push(d);return{path:i.concat(o.reverse()),lca:f}}function zr(n){var e={},r=0;function t(i){var o=r;s(n.children(i),t),e[i]={low:o,lim:r++}}return s(n.children(),t),e}function Xr(n,e){var r={};function t(i,o){var a=0,u=0,d=i.length,f=G(o);return s(o,function(c,h){var l=Ur(n,c),v=l?n.node(l).order:d;(l||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var I=n.node(b),on=I.order;(onf)&&Wn(r,l,c)})})}function i(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var l=n.predecessors(c);l.length&&(d=n.node(l[0]).order,t(a,f,h,u,d),f=h,u=d)}t(a,f,a.length,d,o.length)}),a}return Y(e,i),r}function Ur(n,e){if(n.node(e).dummy)return Z(n.predecessors(e),function(r){return n.node(r).dummy})}function Wn(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function Jr(n,e,r){if(e>r){var t=e;e=r,r=t}return w(n[e],r)}function Kr(n,e,r,t){var i={},o={},a={};return s(e,function(u){s(u,function(d,f){i[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=t(f);if(c.length){c=O(c,function(b){return a[b]});for(var h=(c.length-1)/2,l=Math.floor(h),v=Math.ceil(h);l<=v;++l){var p=c[l];o[f]===f&&d2?e[2]:void 0;for(i&&B(e[0],e[1],i)&&(t=1);++r-1?i[o?e[a]:a]:void 0}}var Ne=Math.max;function Le(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:we(r);return i<0&&(i=Ne(t+i,0)),Hn(n,L(e),i)}var Z=ye(Le);function Rn(n,e){var r=-1,t=_n(n)?Array(n.length):[];return Un(n,function(i,o,a){t[++r]=e(i,o,a)}),t}function m(n,e){var r=K(n)?P:Rn;return r(n,L(e))}function _e(n,e){return n==null?n:ee(n,xn(e),Ln)}function Ce(n,e){return n&&En(n,xn(e))}function Ie(n,e){return n>e}function Tn(n,e){return ne||o&&a&&d&&!u&&!f||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!f&&n=u)return d;var f=r[t];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Se(n,e,r){e.length?e=P(e,function(o){return K(o)?function(a){return yn(a,o.length===1?o[0]:o)}:o}):e=[j];var t=-1;e=P(e,ie(L));var i=Rn(n,function(o,a,u){var d=P(e,function(f){return f(o)});return{criteria:d,index:++t,value:o}});return Me(i,function(o,a){return Pe(o,a,r)})}function Fe(n,e){return Te(n,e,function(r,t){return Kn(n,t)})}var V=me(function(n,e){return n==null?{}:Fe(n,e)}),Ae=Math.ceil,Be=Math.max;function Ge(n,e,r,t){for(var i=-1,o=Be(Ae((e-n)/(r||1)),0),a=Array(o);o--;)a[++i]=n,n+=r;return a}function Ve(n){return function(e,r,t){return t&&typeof t!="number"&&B(e,r,t)&&(r=t=void 0),e=S(e),r===void 0?(r=e,e=0):r=S(r),t=t===void 0?e1&&B(n,e[0],e[1])?e=[]:r>2&&B(e[0],e[1],e[2])&&(e=[e[0]]),Se(n,gn(e),[])}),Ye=0;function en(n){var e=++Ye;return jn(n)+e}function De(n,e,r){for(var t=-1,i=n.length,o=e.length,a={};++t0;--u)if(a=e[u].dequeue(),a){t=t.concat(q(n,e,r,a,!0));break}}}return t}function q(n,e,r,t,i){var o=i?[]:void 0;return s(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,J(e,r,d)}),s(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,J(e,r,f)}),n.removeNode(t.v),o}function Ue(n,e){var r=new x,t=0,i=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var o=N(i+t+3).map(function(){return new qe}),a=t+1;return s(r.nodes(),function(u){J(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function J(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function Je(n){var e=n.graph().acyclicer==="greedy"?Xe(n,r(n)):Ke(n);s(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,en("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function Ke(n){var e=[],r={},t={};function i(o){w(t,o)||(t[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):i(a.w)}),delete r[o])}return s(n.nodes(),i),e}function je(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function C(n,e,r,t){var i;do i=en(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function Ze(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function Mn(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function sn(n,e){var r=n.x,t=n.y,i=e.x-r,o=e.y-t,a=n.width/2,u=n.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,f=u):(i<0&&(a=-a),d=a,f=a*o/i),{x:r+d,y:t+f}}function $(n){var e=m(N(On(n)+1),function(){return[]});return s(n.nodes(),function(r){var t=n.node(r),i=t.rank;g(i)||(e[i][t.order]=r)}),e}function Qe(n){var e=R(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var t=n.node(r);w(t,"rank")&&(t.rank-=e)})}function nr(n){var e=R(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%i!==0?--t:t&&s(o,function(u){n.node(u).rank+=t})})}function cn(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),C(n,"border",i,e)}function On(n){return E(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function er(n,e){var r={lhs:[],rhs:[]};return s(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function rr(n,e){return e()}function tr(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&s(t,e),w(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;oa.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===vn(n,n.node(c.v),u)&&d!==vn(n,n.node(c.w),u)});return nn(f,function(c){return T(e,c)})}function Dn(n,e,r,t){var i=r.v,o=r.w;n.removeEdge(i,o),n.setEdge(t.v,t.w,{}),an(n),tn(n,e),br(n,e)}function br(n,e){var r=Z(n.nodes(),function(i){return!e.node(i).parent}),t=wr(n,r);t=t.slice(1),s(t,function(i){var o=n.node(i).parent,a=e.edge(i,o),u=!1;a||(a=e.edge(o,i),u=!0),e.node(i).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function gr(n,e,r){return n.hasEdge(e,r)}function vn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function xr(n){switch(n.graph().ranker){case"network-simplex":pn(n);break;case"tight-tree":kr(n);break;case"longest-path":Er(n);break;default:pn(n)}}var Er=rn;function kr(n){rn(n),Sn(n)}function pn(n){k(n)}function yr(n){var e=C(n,"root",{},"_root"),r=Nr(n),t=E(y(r))-1,i=2*t+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=i});var o=Lr(n)+1;s(n.children(),function(a){$n(n,e,i,o,t,r,a)}),n.graph().nodeRankFactor=i}function $n(n,e,r,t,i,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=cn(n,"_bt"),f=cn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){$n(n,e,r,t,i,o,h);var l=n.node(h),v=l.borderTop?l.borderTop:h,p=l.borderBottom?l.borderBottom:h,b=l.borderTop?t:2*t,I=v!==p?1:i-o[a]+1;n.setEdge(d,v,{weight:b,minlen:I,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:I,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:i+o[a]})}function Nr(n){var e={};function r(t,i){var o=n.children(t);o&&o.length&&s(o,function(a){r(a,i+1)}),e[t]=i}return s(n.children(),function(t){r(t,1)}),e}function Lr(n){return Y(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function _r(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Cr(n,e,r){var t={},i;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function Ir(n,e,r){var t=Rr(n),i=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=i.edge(f,o),h=g(c)?0:c.weight;i.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),i}function Rr(n){for(var e;n.hasNode(e=en("_root")););return e}function Tr(n,e){for(var r=0,t=1;t0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function Or(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),t=E(m(r,function(u){return n.node(u).rank})),i=m(N(t+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);i[d.rank].push(u),s(n.successors(u),o)}}var a=O(r,function(u){return n.node(u).rank});return s(a,o),i}function Pr(n,e){return m(e,function(r){var t=n.inEdges(r);if(t.length){var i=Y(t,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Sr(n,e){var r={};s(n,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};g(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),s(e.edges(),function(i){var o=r[i.v],a=r[i.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=M(r,function(i){return!i.indegree});return Fr(t)}function Fr(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Ar(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var i=n.pop();e.push(i),s(i.in.reverse(),r(i)),s(i.out,t(i))}return m(M(e,function(o){return!o.merged}),function(o){return V(o,["vs","i","barycenter","weight"])})}function Ar(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function Br(n,e){var r=er(n,function(c){return w(c,"barycenter")}),t=r.lhs,i=O(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;t.sort(Gr(!!e)),d=wn(o,i,d),s(t,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=wn(o,i,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function wn(n,e,r){for(var t;e.length&&(t=G(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Gr(n){return function(e,r){return e.barycenterr.barycenter?1:n?r.i-e.i:e.i-r.i}}function qn(n,e,r,t){var i=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=M(i,function(p){return p!==a&&p!==u}));var f=Pr(n,i);s(f,function(p){if(n.children(p.v).length){var b=qn(n,p.v,r,t);d[p.v]=b,w(b,"barycenter")&&Yr(p,b)}});var c=Sr(f,r);Vr(c,d);var h=Br(c,t);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var l=n.node(n.predecessors(a)[0]),v=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+v.order)/(h.weight+2),h.weight+=2}return h}function Vr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function Yr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function Dr(n){var e=On(n),r=mn(n,N(1,e+1),"inEdges"),t=mn(n,N(e-1,-1,-1),"outEdges"),i=Or(n);bn(n,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){$r(u%2?r:t,u%4>=2),i=$(n);var f=Tr(n,i);fa||u>e[d].lim));for(f=d,d=t;(d=n.parent(d))!==f;)o.push(d);return{path:i.concat(o.reverse()),lca:f}}function zr(n){var e={},r=0;function t(i){var o=r;s(n.children(i),t),e[i]={low:o,lim:r++}}return s(n.children(),t),e}function Xr(n,e){var r={};function t(i,o){var a=0,u=0,d=i.length,f=G(o);return s(o,function(c,h){var l=Ur(n,c),v=l?n.node(l).order:d;(l||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var I=n.node(b),on=I.order;(onf)&&Wn(r,l,c)})})}function i(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var l=n.predecessors(c);l.length&&(d=n.node(l[0]).order,t(a,f,h,u,d),f=h,u=d)}t(a,f,a.length,d,o.length)}),a}return Y(e,i),r}function Ur(n,e){if(n.node(e).dummy)return Z(n.predecessors(e),function(r){return n.node(r).dummy})}function Wn(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function Jr(n,e,r){if(e>r){var t=e;e=r,r=t}return w(n[e],r)}function Kr(n,e,r,t){var i={},o={},a={};return s(e,function(u){s(u,function(d,f){i[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=t(f);if(c.length){c=O(c,function(b){return a[b]});for(var h=(c.length-1)/2,l=Math.floor(h),v=Math.ceil(h);l<=v;++l){var p=c[l];o[f]===f&&dt?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function Q(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o>>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=Q(F),dn=sn.right;Q(ln).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=gn?10:f>=yn?5:f>=Mn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function jn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function Pn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var zn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=zn.exec(n)))throw new Error("invalid format: "+n);var t;return new X({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=X.prototype;function X(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}X.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $n(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Fn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function U(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const W={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:bn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>U(n*100,t),r:U,s:Fn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function _(n){return n}var H=Array.prototype.map,J=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rn(n){var t=n.grouping===void 0||n.thousands===void 0?_:jn(H.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?_:Pn(H.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,S=h.symbol,k=h.zero,b=h.width,T=h.comma,w=h.precision,B=h.trim,d=h.type;d==="n"?(T=!0,d="g"):W[d]||(w===void 0&&(w=12),B=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",G=W[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function O(m){var N=en,g=on,x,V,j;if(d==="c")g=G(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:G(Math.abs(m),w),B&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?J[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,V=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return O.toString=function(){return h+""},O}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,S=Math.pow(10,-y),k=J[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;En({thousands:",",grouping:[3],currency:["$",""]});function En(n){return $=Rn(n),tn=$.format,rn=$.formatPrefix,$}function Dn(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function In(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function Ln(n){return function(){return n}}function qn(n){return+n}var K=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Ln(isNaN(t)?NaN:.5)}function Cn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Xn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?Bn:Xn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,qn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=Sn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Vn(){return On()(A,A)}function Yn(n,t,e,r){var i=wn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=In(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Dn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Yn(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Un(){var n=Vn();return n.copy=function(){return Gn(n,Un())},cn.apply(n,arguments),Zn(n)}export{Gn as a,Q as b,Vn as c,Un as l,wn as t}; +import{W as un,X as I,Y,Z,_ as fn}from"./mermaid.core-DacimPk4.js";import{i as cn}from"./init-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:nt?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function Q(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o>>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=Q(F),dn=sn.right;Q(ln).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=gn?10:f>=yn?5:f>=Mn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function jn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function Pn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var zn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=zn.exec(n)))throw new Error("invalid format: "+n);var t;return new X({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=X.prototype;function X(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}X.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $n(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Fn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function U(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const W={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:bn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>U(n*100,t),r:U,s:Fn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function _(n){return n}var H=Array.prototype.map,J=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rn(n){var t=n.grouping===void 0||n.thousands===void 0?_:jn(H.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?_:Pn(H.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,S=h.symbol,k=h.zero,b=h.width,T=h.comma,w=h.precision,B=h.trim,d=h.type;d==="n"?(T=!0,d="g"):W[d]||(w===void 0&&(w=12),B=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",G=W[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function O(m){var N=en,g=on,x,V,j;if(d==="c")g=G(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:G(Math.abs(m),w),B&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?J[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,V=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return O.toString=function(){return h+""},O}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,S=Math.pow(10,-y),k=J[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;En({thousands:",",grouping:[3],currency:["$",""]});function En(n){return $=Rn(n),tn=$.format,rn=$.formatPrefix,$}function Dn(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function In(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function Ln(n){return function(){return n}}function qn(n){return+n}var K=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Ln(isNaN(t)?NaN:.5)}function Cn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Xn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?Bn:Xn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,qn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=Sn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Vn(){return On()(A,A)}function Yn(n,t,e,r){var i=wn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=In(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Dn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Yn(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Un(){var n=Vn();return n.copy=function(){return Gn(n,Un())},cn.apply(n,arguments),Zn(n)}export{Gn as a,Q as b,Vn as c,Un as l,wn as t}; diff --git a/starter/src/main/resources/templates/notebase/assets/mermaid.core-BajzCmnv.js b/starter/src/main/resources/templates/notebase/assets/mermaid.core-DacimPk4.js similarity index 98% rename from starter/src/main/resources/templates/notebase/assets/mermaid.core-BajzCmnv.js rename to starter/src/main/resources/templates/notebase/assets/mermaid.core-DacimPk4.js index edca66f9a9..86f7aa4833 100644 --- a/starter/src/main/resources/templates/notebase/assets/mermaid.core-BajzCmnv.js +++ b/starter/src/main/resources/templates/notebase/assets/mermaid.core-DacimPk4.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/c4Diagram-3d4e48cf-CGakpSmd.js","assets/svgDrawCommon-08f97a94-Cb_6H50Z.js","assets/index-CLWgAZNI.js","assets/index-DltfDjaU.css","assets/flowDiagram-66a62f08-UGVc-n6K.js","assets/flowDb-956e92f1-AKrTXLR1.js","assets/graph-CNSoCPH1.js","assets/layout-Cg9I2QIy.js","assets/styles-c10674c1-DZh7AwrX.js","assets/index-3862675e-C5iJKLK2.js","assets/clone-CJLsyeCN.js","assets/edges-e0da2a9e-121Kky2V.js","assets/createText-2e5e7dd3-CXwUql3o.js","assets/line-CH9gKq5B.js","assets/array-BKyUJesY.js","assets/path-CbwjOpE9.js","assets/channel--_OxL60w.js","assets/flowDiagram-v2-96b9c2cf-2GL1AVRC.js","assets/erDiagram-9861fffd-DqfFxAvA.js","assets/gitGraphDiagram-72cf32ee-KzmtmPZb.js","assets/ganttDiagram-c361ad54-XfGTrVgm.js","assets/linear-DTRuWJOk.js","assets/init-Gi6I4Gst.js","assets/infoDiagram-f8f76790-DFiIBbny.js","assets/pieDiagram-8a3498a8-EafKsBAO.js","assets/arc-DCwD3PI6.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-120e2f19-8vv_6TNi.js","assets/xychartDiagram-e933f94c--91O5qLe.js","assets/requirementDiagram-deff3bca-C7te2cZt.js","assets/sequenceDiagram-704730f1-SW2l45_G.js","assets/classDiagram-70f12bd4-BwtI_QSR.js","assets/styles-9a916d00-BHajR6jW.js","assets/classDiagram-v2-f2320105-CNrZSAbx.js","assets/stateDiagram-587899a1-Cq6WQ8Vn.js","assets/styles-6aaf32cf-CNcbqEDz.js","assets/stateDiagram-v2-d93cdb3a-BwNs18zh.js","assets/journeyDiagram-49397b02-D3yzpSN_.js","assets/flowchart-elk-definition-4a651766-DLndsX9w.js","assets/timeline-definition-85554ec2-CvJeyBUi.js","assets/mindmap-definition-fc14e90a-CRNQVvtP.js","assets/sankeyDiagram-04a897e0-ySFe1tss.js","assets/Tableau10-B-NsZVaP.js","assets/blockDiagram-38ab4fdb-Drr0MnjZ.js"])))=>i.map(i=>d[i]); -import{o as Ua,i as Mo,b as Si,c as wi,t as le,d as Io,M as cr,e as Ya,f as Va,h as ja,j as Ga,k as Xa,l as Oo,m as Ka,n as Za,s as Qa,p as Ja,q as tl,_ as I}from"./index-CLWgAZNI.js";var el=Ua(Object.keys,Object),il=Object.prototype,rl=il.hasOwnProperty;function nl(t){if(!Mo(t))return el(t);var e=[];for(var i in Object(t))rl.call(t,i)&&i!="constructor"&&e.push(i);return e}var ur=Si(wi,"DataView"),dr=Si(wi,"Promise"),fr=Si(wi,"Set"),pr=Si(wi,"WeakMap"),En="[object Map]",ol="[object Object]",Mn="[object Promise]",In="[object Set]",On="[object WeakMap]",Dn="[object DataView]",sl=le(ur),al=le(cr),ll=le(dr),hl=le(fr),cl=le(pr),Ot=Io;(ur&&Ot(new ur(new ArrayBuffer(1)))!=Dn||cr&&Ot(new cr)!=En||dr&&Ot(dr.resolve())!=Mn||fr&&Ot(new fr)!=In||pr&&Ot(new pr)!=On)&&(Ot=function(t){var e=Io(t),i=e==ol?t.constructor:void 0,r=i?le(i):"";if(r)switch(r){case sl:return Dn;case al:return En;case ll:return Mn;case hl:return In;case cl:return On}return e});var ul="[object Map]",dl="[object Set]",fl=Object.prototype,pl=fl.hasOwnProperty;function Zi(t){if(t==null)return!0;if(Ya(t)&&(Va(t)||typeof t=="string"||typeof t.splice=="function"||ja(t)||Ga(t)||Xa(t)))return!t.length;var e=Ot(t);if(e==ul||e==dl)return!t.size;if(Mo(t))return!nl(t).length;for(var i in t)if(pl.call(t,i))return!1;return!0}var gl="Expected a function";function Re(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(gl);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(Re.Cache||Oo),i}Re.Cache=Oo;function ml(t){for(var e=[],i=1;ii.map(i=>d[i]); +import{o as Ua,i as Mo,b as Si,c as wi,t as le,d as Io,M as cr,e as Ya,f as Va,h as ja,j as Ga,k as Xa,l as Oo,m as Ka,n as Za,s as Qa,p as Ja,q as tl,_ as I}from"./index-bOgutTC1.js";var el=Ua(Object.keys,Object),il=Object.prototype,rl=il.hasOwnProperty;function nl(t){if(!Mo(t))return el(t);var e=[];for(var i in Object(t))rl.call(t,i)&&i!="constructor"&&e.push(i);return e}var ur=Si(wi,"DataView"),dr=Si(wi,"Promise"),fr=Si(wi,"Set"),pr=Si(wi,"WeakMap"),En="[object Map]",ol="[object Object]",Mn="[object Promise]",In="[object Set]",On="[object WeakMap]",Dn="[object DataView]",sl=le(ur),al=le(cr),ll=le(dr),hl=le(fr),cl=le(pr),Ot=Io;(ur&&Ot(new ur(new ArrayBuffer(1)))!=Dn||cr&&Ot(new cr)!=En||dr&&Ot(dr.resolve())!=Mn||fr&&Ot(new fr)!=In||pr&&Ot(new pr)!=On)&&(Ot=function(t){var e=Io(t),i=e==ol?t.constructor:void 0,r=i?le(i):"";if(r)switch(r){case sl:return Dn;case al:return En;case ll:return Mn;case hl:return In;case cl:return On}return e});var ul="[object Map]",dl="[object Set]",fl=Object.prototype,pl=fl.hasOwnProperty;function Zi(t){if(t==null)return!0;if(Ya(t)&&(Va(t)||typeof t=="string"||typeof t.splice=="function"||ja(t)||Ga(t)||Xa(t)))return!t.length;var e=Ot(t);if(e==ul||e==dl)return!t.size;if(Mo(t))return!nl(t).length;for(var i in t)if(pl.call(t,i))return!1;return!0}var gl="Expected a function";function Re(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(gl);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(Re.Cache||Oo),i}Re.Cache=Oo;function ml(t){for(var e=[],i=1;i `:`
      ${r}
      `).join("").replace(Sr,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:po()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(//g,""))},zr={getRows:kd,sanitizeText:De,sanitizeTextOrArray:wd,hasBreaks:Bd,splitBreaks:Ad,lineBreakRegex:ze,removeScript:Bs,getUrl:Fd,evaluate:Ls,getMax:Ed,getMin:Md},j=(t,e)=>e?f(t,{s:-40,l:10}):f(t,{s:-40,l:-10}),Ii="#ffffff",Oi="#f2f2f2";let Nd=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||f(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||f(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||j(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||j(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||j(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||_(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||_(this.tertiaryColor),this.lineColor=this.lineColor||_(this.background),this.arrowheadColor=this.arrowheadColor||_(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?S(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||S(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||_(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||b(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||f(this.primaryColor,{h:30}),this.cScale4=this.cScale4||f(this.primaryColor,{h:60}),this.cScale5=this.cScale5||f(this.primaryColor,{h:90}),this.cScale6=this.cScale6||f(this.primaryColor,{h:120}),this.cScale7=this.cScale7||f(this.primaryColor,{h:150}),this.cScale8=this.cScale8||f(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||f(this.primaryColor,{h:270}),this.cScale10=this.cScale10||f(this.primaryColor,{h:300}),this.cScale11=this.cScale11||f(this.primaryColor,{h:330}),this.darkMode)for(let g=0;g{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Rd=t=>{const e=new Nd;return e.calculate(t),e};let Pd=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=b(this.primaryColor,16),this.tertiaryColor=f(this.primaryColor,{h:-160}),this.primaryBorderColor=_(this.background),this.secondaryBorderColor=j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=j(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=b(_("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Be(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=S("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=S(this.sectionBkgColor,10),this.taskBorderColor=Be(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Be(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;this.secondBkg=b(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=b(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=b(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=f(this.primaryColor,{h:64}),this.fillType3=f(this.secondaryColor,{h:64}),this.fillType4=f(this.primaryColor,{h:-64}),this.fillType5=f(this.secondaryColor,{h:-64}),this.fillType6=f(this.primaryColor,{h:128}),this.fillType7=f(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||f(this.primaryColor,{h:30}),this.cScale4=this.cScale4||f(this.primaryColor,{h:60}),this.cScale5=this.cScale5||f(this.primaryColor,{h:90}),this.cScale6=this.cScale6||f(this.primaryColor,{h:120}),this.cScale7=this.cScale7||f(this.primaryColor,{h:150}),this.cScale8=this.cScale8||f(this.primaryColor,{h:210}),this.cScale9=this.cScale9||f(this.primaryColor,{h:270}),this.cScale10=this.cScale10||f(this.primaryColor,{h:300}),this.cScale11=this.cScale11||f(this.primaryColor,{h:330});for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const qd=t=>{const e=new Pd;return e.calculate(t),e};let $d=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=f(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=f(this.primaryColor,{h:-160}),this.primaryBorderColor=j(this.primaryColor,this.darkMode),this.secondaryBorderColor=j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=j(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Be(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||f(this.primaryColor,{h:30}),this.cScale4=this.cScale4||f(this.primaryColor,{h:60}),this.cScale5=this.cScale5||f(this.primaryColor,{h:90}),this.cScale6=this.cScale6||f(this.primaryColor,{h:120}),this.cScale7=this.cScale7||f(this.primaryColor,{h:150}),this.cScale8=this.cScale8||f(this.primaryColor,{h:210}),this.cScale9=this.cScale9||f(this.primaryColor,{h:270}),this.cScale10=this.cScale10||f(this.primaryColor,{h:300}),this.cScale11=this.cScale11||f(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||S(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||S(this.tertiaryColor,40);for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const zd=t=>{const e=new $d;return e.calculate(t),e};let Wd=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=b("#cde498",10),this.primaryBorderColor=j(this.primaryColor,this.darkMode),this.secondaryBorderColor=j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=j(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.primaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;this.actorBorder=S(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||f(this.primaryColor,{h:30}),this.cScale4=this.cScale4||f(this.primaryColor,{h:60}),this.cScale5=this.cScale5||f(this.primaryColor,{h:90}),this.cScale6=this.cScale6||f(this.primaryColor,{h:120}),this.cScale7=this.cScale7||f(this.primaryColor,{h:150}),this.cScale8=this.cScale8||f(this.primaryColor,{h:210}),this.cScale9=this.cScale9||f(this.primaryColor,{h:270}),this.cScale10=this.cScale10||f(this.primaryColor,{h:300}),this.cScale11=this.cScale11||f(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||S(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||S(this.tertiaryColor,40);for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Hd=t=>{const e=new Wd;return e.calculate(t),e};class Ud{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=b(this.contrast,55),this.background="#ffffff",this.tertiaryColor=f(this.primaryColor,{h:-160}),this.primaryBorderColor=j(this.primaryColor,this.darkMode),this.secondaryBorderColor=j(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=j(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,u,p;this.secondBkg=b(this.contrast,55),this.border2=this.contrast,this.actorBorder=b(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let h=0;h{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const Yd=t=>{const e=new Ud;return e.calculate(t),e},wt={base:{getThemeVariables:Rd},dark:{getThemeVariables:qd},default:{getThemeVariables:zd},forest:{getThemeVariables:Hd},neutral:{getThemeVariables:Yd}},vt={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Fs={...vt,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:wt.default.getThemeVariables(),sequence:{...vt.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...vt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...vt.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...vt.pie,useWidth:984},xyChart:{...vt.xyChart,useWidth:void 0},requirement:{...vt.requirement,useWidth:void 0},gitGraph:{...vt.gitGraph,useMaxWidth:!1},sankey:{...vt.sankey,useMaxWidth:!1}},Es=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Es(t[r],"")]:[...i,e+r],[]),Vd=new Set(Es(Fs,"")),jd=Fs,mi=t=>{if(k.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>mi(e));return}for(const e of Object.keys(t)){if(k.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Vd.has(e)||t[e]==null){k.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){k.debug("sanitizing object",e),mi(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(k.debug("sanitizing css option",e),t[e]=Gd(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}k.debug("After sanitization",t)}},Gd=t=>{let e=0,i=0;for(const r of t){if(e{for(const{id:e,detector:i,loader:r}of t)Ds(e,i,r)},Ds=(t,e,i)=>{ne[t]?k.error(`Detector with key ${t} already exists`):ne[t]={detector:e,loader:i},k.debug(`Detector with key ${t} added${i?" with loader":""}`)},Kd=t=>ne[t].loader,wr=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>wr(t,o,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=wr(t[o],e[o],{depth:i-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},W=wr,Zd="​",Qd={curveBasis:Ou,curveBasisClosed:Du,curveBasisOpen:Nu,curveBumpX:Mu,curveBumpY:Iu,curveBundle:Ru,curveCardinalClosed:qu,curveCardinalOpen:$u,curveCardinal:Pu,curveCatmullRomClosed:Wu,curveCatmullRomOpen:Hu,curveCatmullRom:zu,curveLinear:Eu,curveLinearClosed:Uu,curveMonotoneX:Yu,curveMonotoneY:Vu,curveNatural:ju,curveStep:Gu,curveStepAfter:Ku,curveStepBefore:Xu},Jd=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,tf=function(t,e){const i=Ns(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const s=i.map(a=>a.args);mi(s),r=W(r,[...s])}else r=i.args;if(!r)return;let n=Di(t,e);const o="config";return r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o]),r},Ns=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${Jd.source})(?=[}][%]{2}).* -`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),k.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=Ae.exec(t))!==null;)if(r.index===Ae.lastIndex&&Ae.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return k.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},ef=function(t){return t.replace(Ae,"")},rf=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function nf(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Qd[i]??e}function of(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Do.sanitizeUrl(i):i}const sf=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s{i+=Rs(n,e),e=n});const r=i/2;return Wr(t,r)}function lf(t){return t.length===1?t[0]:af(t)}const mo=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Wr=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=Rs(n,i);if(o=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:mo((1-s)*i.x+s*n.x,5),y:mo((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},hf=(t,e,i)=>{k.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Wr(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function cf(t,e,i){const r=structuredClone(i);k.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Wr(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function uf(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let _o=0;const df=()=>(_o++,"id-"+Math.random().toString(36).substr(2,12)+"-"+_o);function ff(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;nff(t.length),gf=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},mf=function(t,e){const i=e.text.replace(zr.lineBreakRegex," "),[,r]=Ur(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},_f=Re((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
      "},i),zr.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=_i(`${s} `,i),c=_i(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:g}=yf(s,e,"-",i);n.push(o,...h),o=g}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),yf=Re((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(_i(c,r)>=e){const p=l+1,h=n.length===p,g=`${c}${i}`;o.push(h?c:g),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Cf(t,e){return Hr(t,e).height}function _i(t,e){return Hr(t,e).width}const Hr=Re((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Ur(i),s=["sans-serif",r],a=t.split(zr.lineBreakRegex),l=[],c=ot("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let g=0;const y={width:0,height:0,lineHeight:0};for(const w of a){const v=gf();v.text=w||Zd;const E=mf(u,v).style("font-size",o).style("font-weight",n).style("font-family",h),B=(E._groups||E)[0][0].getBBox();if(B.width===0&&B.height===0)throw new Error("svg element not in render tree");y.width=Math.round(Math.max(y.width,B.width)),g=Math.round(B.height),y.height+=g,y.lineHeight=Math.round(Math.max(y.lineHeight,g))}l.push(y)}u.remove();const p=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[p]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class xf{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let ti;const bf=function(t){return ti=ti||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ti.innerHTML=t,unescape(ti.textContent)};function Ps(t){return"str"in t}const Tf=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Ur=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function qs(t,e){return Za({},t,e)}const Le={assignWithDepth:W,wrapLabel:_f,calculateTextHeight:Cf,calculateTextWidth:_i,calculateTextDimensions:Hr,cleanAndMerge:qs,detectInit:tf,detectDirective:Ns,isSubstringInArray:rf,interpolateToCurve:nf,calcLabelPosition:lf,calcCardinalityPosition:hf,calcTerminalLabelPosition:cf,formatUrl:of,getStylesFromArray:uf,generateId:df,random:pf,runFunc:sf,entityDecode:bf,insertTitle:Tf,parseFontSize:Ur,InitIDGenerator:xf},kf=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},vf=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},yo="10.9.3",oe=Object.freeze(jd);let K=W({},oe),$s,se=[],Fe=W({},oe);const Ni=(t,e)=>{let i=W({},t),r={};for(const n of e)Hs(n),r=W(r,n);if(i=W(i,r),r.theme&&r.theme in wt){const n=W({},$s),o=W(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in wt&&(i.themeVariables=wt[i.theme].getThemeVariables(o))}return Fe=i,Us(Fe),Fe},Sf=t=>(K=W({},oe),K=W(K,t),t.theme&&wt[t.theme]&&(K.themeVariables=wt[t.theme].getThemeVariables(t.themeVariables)),Ni(K,se),K),wf=t=>{$s=W({},t)},Bf=t=>(K=W(K,t),Ni(K,se),K),zs=()=>W({},K),Ws=t=>(Us(t),W(Fe,t),_t()),_t=()=>W({},Fe),Hs=t=>{t&&(["secure",...K.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(k.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Hs(t[e])}))},Af=t=>{mi(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),se.push(t),Ni(K,se)},yi=(t=K)=>{se=[],Ni(t,se)},Lf={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Co={},Ff=t=>{Co[t]||(k.warn(Lf[t]),Co[t]=!0)},Us=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Ff("LAZY_LOAD_DEPRECATED")},Ys="c4",Ef=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),Mf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./c4Diagram-3d4e48cf-CGakpSmd.js");return{diagram:e}},__vite__mapDeps([0,1,2,3]));return{id:Ys,diagram:t}},If={id:Ys,detector:Ef,loader:Mf},Of=If,Vs="flowchart",Df=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},Nf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowDiagram-66a62f08-UGVc-n6K.js");return{diagram:e}},__vite__mapDeps([4,5,6,2,3,7,8,9,10,11,12,13,14,15,16]));return{id:Vs,diagram:t}},Rf={id:Vs,detector:Df,loader:Nf},Pf=Rf,js="flowchart-v2",qf=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},$f=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowDiagram-v2-96b9c2cf-2GL1AVRC.js");return{diagram:e}},__vite__mapDeps([17,5,8,6,2,3,9,7,10,11,12,13,14,15,16]));return{id:js,diagram:t}},zf={id:js,detector:qf,loader:$f},Wf=zf,Gs="er",Hf=t=>/^\s*erDiagram/.test(t),Uf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./erDiagram-9861fffd-DqfFxAvA.js");return{diagram:e}},__vite__mapDeps([18,6,2,3,7,13,14,15]));return{id:Gs,diagram:t}},Yf={id:Gs,detector:Hf,loader:Uf},Vf=Yf,Xs="gitGraph",jf=t=>/^\s*gitGraph/.test(t),Gf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./gitGraphDiagram-72cf32ee-KzmtmPZb.js");return{diagram:e}},__vite__mapDeps([19,2,3]));return{id:Xs,diagram:t}},Xf={id:Xs,detector:jf,loader:Gf},Kf=Xf,Ks="gantt",Zf=t=>/^\s*gantt/.test(t),Qf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./ganttDiagram-c361ad54-XfGTrVgm.js");return{diagram:e}},__vite__mapDeps([20,2,3,21,22]));return{id:Ks,diagram:t}},Jf={id:Ks,detector:Zf,loader:Qf},tp=Jf,Zs="info",ep=t=>/^\s*info/.test(t),ip=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./infoDiagram-f8f76790-DFiIBbny.js");return{diagram:e}},__vite__mapDeps([23,2,3]));return{id:Zs,diagram:t}},rp={id:Zs,detector:ep,loader:ip},Qs="pie",np=t=>/^\s*pie/.test(t),op=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./pieDiagram-8a3498a8-EafKsBAO.js");return{diagram:e}},__vite__mapDeps([24,2,3,25,15,26,22,14]));return{id:Qs,diagram:t}},sp={id:Qs,detector:np,loader:op},Js="quadrantChart",ap=t=>/^\s*quadrantChart/.test(t),lp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./quadrantDiagram-120e2f19-8vv_6TNi.js");return{diagram:e}},__vite__mapDeps([27,2,3,21,22]));return{id:Js,diagram:t}},hp={id:Js,detector:ap,loader:lp},cp=hp,ta="xychart",up=t=>/^\s*xychart-beta/.test(t),dp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./xychartDiagram-e933f94c--91O5qLe.js");return{diagram:e}},__vite__mapDeps([28,12,2,3,22,26,21,13,14,15]));return{id:ta,diagram:t}},fp={id:ta,detector:up,loader:dp},pp=fp,ea="requirement",gp=t=>/^\s*requirement(Diagram)?/.test(t),mp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./requirementDiagram-deff3bca-C7te2cZt.js");return{diagram:e}},__vite__mapDeps([29,6,2,3,7,13,14,15]));return{id:ea,diagram:t}},_p={id:ea,detector:gp,loader:mp},yp=_p,ia="sequence",Cp=t=>/^\s*sequenceDiagram/.test(t),xp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./sequenceDiagram-704730f1-SW2l45_G.js");return{diagram:e}},__vite__mapDeps([30,1,2,3]));return{id:ia,diagram:t}},bp={id:ia,detector:Cp,loader:xp},Tp=bp,ra="class",kp=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},vp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./classDiagram-70f12bd4-BwtI_QSR.js");return{diagram:e}},__vite__mapDeps([31,32,6,2,3,7,13,14,15]));return{id:ra,diagram:t}},Sp={id:ra,detector:kp,loader:vp},wp=Sp,na="classDiagram",Bp=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Ap=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./classDiagram-v2-f2320105-CNrZSAbx.js");return{diagram:e}},__vite__mapDeps([33,32,6,2,3,9,7,10,11,12,13,14,15]));return{id:na,diagram:t}},Lp={id:na,detector:Bp,loader:Ap},Fp=Lp,oa="state",Ep=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},Mp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./stateDiagram-587899a1-Cq6WQ8Vn.js");return{diagram:e}},__vite__mapDeps([34,35,6,2,3,7,13,14,15]));return{id:oa,diagram:t}},Ip={id:oa,detector:Ep,loader:Mp},Op=Ip,sa="stateDiagram",Dp=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},Np=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./stateDiagram-v2-d93cdb3a-BwNs18zh.js");return{diagram:e}},__vite__mapDeps([36,35,6,2,3,9,7,10,11,12,13,14,15]));return{id:sa,diagram:t}},Rp={id:sa,detector:Dp,loader:Np},Pp=Rp,aa="journey",qp=t=>/^\s*journey/.test(t),$p=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./journeyDiagram-49397b02-D3yzpSN_.js");return{diagram:e}},__vite__mapDeps([37,1,2,3,25,15]));return{id:aa,diagram:t}},zp={id:aa,detector:qp,loader:$p},Wp=zp,Hp=function(t,e){for(let i of e)t.attr(i[0],i[1])},Up=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},la=function(t,e,i,r){const n=Up(e,i,r);Hp(t,n)},Yp=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;k.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;k.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,k.info(`Calculated bounds: ${a}x${l}`),la(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},si={},Vp=(t,e,i)=>{let r="";return t in si&&si[t]?r=si[t](i):k.warn(`No theme found for ${t}`),` & { +`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),k.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=Ae.exec(t))!==null;)if(r.index===Ae.lastIndex&&Ae.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return k.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},ef=function(t){return t.replace(Ae,"")},rf=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function nf(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Qd[i]??e}function of(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Do.sanitizeUrl(i):i}const sf=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s{i+=Rs(n,e),e=n});const r=i/2;return Wr(t,r)}function lf(t){return t.length===1?t[0]:af(t)}const mo=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Wr=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=Rs(n,i);if(o=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:mo((1-s)*i.x+s*n.x,5),y:mo((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},hf=(t,e,i)=>{k.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Wr(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function cf(t,e,i){const r=structuredClone(i);k.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Wr(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function uf(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let _o=0;const df=()=>(_o++,"id-"+Math.random().toString(36).substr(2,12)+"-"+_o);function ff(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;nff(t.length),gf=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},mf=function(t,e){const i=e.text.replace(zr.lineBreakRegex," "),[,r]=Ur(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},_f=Re((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
      "},i),zr.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=_i(`${s} `,i),c=_i(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:g}=yf(s,e,"-",i);n.push(o,...h),o=g}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),yf=Re((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(_i(c,r)>=e){const p=l+1,h=n.length===p,g=`${c}${i}`;o.push(h?c:g),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Cf(t,e){return Hr(t,e).height}function _i(t,e){return Hr(t,e).width}const Hr=Re((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Ur(i),s=["sans-serif",r],a=t.split(zr.lineBreakRegex),l=[],c=ot("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let g=0;const y={width:0,height:0,lineHeight:0};for(const w of a){const v=gf();v.text=w||Zd;const E=mf(u,v).style("font-size",o).style("font-weight",n).style("font-family",h),B=(E._groups||E)[0][0].getBBox();if(B.width===0&&B.height===0)throw new Error("svg element not in render tree");y.width=Math.round(Math.max(y.width,B.width)),g=Math.round(B.height),y.height+=g,y.lineHeight=Math.round(Math.max(y.lineHeight,g))}l.push(y)}u.remove();const p=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[p]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class xf{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let ti;const bf=function(t){return ti=ti||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ti.innerHTML=t,unescape(ti.textContent)};function Ps(t){return"str"in t}const Tf=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Ur=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function qs(t,e){return Za({},t,e)}const Le={assignWithDepth:W,wrapLabel:_f,calculateTextHeight:Cf,calculateTextWidth:_i,calculateTextDimensions:Hr,cleanAndMerge:qs,detectInit:tf,detectDirective:Ns,isSubstringInArray:rf,interpolateToCurve:nf,calcLabelPosition:lf,calcCardinalityPosition:hf,calcTerminalLabelPosition:cf,formatUrl:of,getStylesFromArray:uf,generateId:df,random:pf,runFunc:sf,entityDecode:bf,insertTitle:Tf,parseFontSize:Ur,InitIDGenerator:xf},kf=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},vf=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},yo="10.9.3",oe=Object.freeze(jd);let K=W({},oe),$s,se=[],Fe=W({},oe);const Ni=(t,e)=>{let i=W({},t),r={};for(const n of e)Hs(n),r=W(r,n);if(i=W(i,r),r.theme&&r.theme in wt){const n=W({},$s),o=W(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in wt&&(i.themeVariables=wt[i.theme].getThemeVariables(o))}return Fe=i,Us(Fe),Fe},Sf=t=>(K=W({},oe),K=W(K,t),t.theme&&wt[t.theme]&&(K.themeVariables=wt[t.theme].getThemeVariables(t.themeVariables)),Ni(K,se),K),wf=t=>{$s=W({},t)},Bf=t=>(K=W(K,t),Ni(K,se),K),zs=()=>W({},K),Ws=t=>(Us(t),W(Fe,t),_t()),_t=()=>W({},Fe),Hs=t=>{t&&(["secure",...K.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(k.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Hs(t[e])}))},Af=t=>{mi(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),se.push(t),Ni(K,se)},yi=(t=K)=>{se=[],Ni(t,se)},Lf={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Co={},Ff=t=>{Co[t]||(k.warn(Lf[t]),Co[t]=!0)},Us=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Ff("LAZY_LOAD_DEPRECATED")},Ys="c4",Ef=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),Mf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./c4Diagram-3d4e48cf-CFkKbH2w.js");return{diagram:e}},__vite__mapDeps([0,1,2,3]));return{id:Ys,diagram:t}},If={id:Ys,detector:Ef,loader:Mf},Of=If,Vs="flowchart",Df=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},Nf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowDiagram-66a62f08-BrH7mvTN.js");return{diagram:e}},__vite__mapDeps([4,5,6,2,3,7,8,9,10,11,12,13,14,15,16]));return{id:Vs,diagram:t}},Rf={id:Vs,detector:Df,loader:Nf},Pf=Rf,js="flowchart-v2",qf=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},$f=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowDiagram-v2-96b9c2cf-jrOiDbEz.js");return{diagram:e}},__vite__mapDeps([17,5,8,6,2,3,9,7,10,11,12,13,14,15,16]));return{id:js,diagram:t}},zf={id:js,detector:qf,loader:$f},Wf=zf,Gs="er",Hf=t=>/^\s*erDiagram/.test(t),Uf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./erDiagram-9861fffd-BcE67OC0.js");return{diagram:e}},__vite__mapDeps([18,6,2,3,7,13,14,15]));return{id:Gs,diagram:t}},Yf={id:Gs,detector:Hf,loader:Uf},Vf=Yf,Xs="gitGraph",jf=t=>/^\s*gitGraph/.test(t),Gf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./gitGraphDiagram-72cf32ee-CkF7aqy_.js");return{diagram:e}},__vite__mapDeps([19,2,3]));return{id:Xs,diagram:t}},Xf={id:Xs,detector:jf,loader:Gf},Kf=Xf,Ks="gantt",Zf=t=>/^\s*gantt/.test(t),Qf=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./ganttDiagram-c361ad54-CWs-elUl.js");return{diagram:e}},__vite__mapDeps([20,2,3,21,22]));return{id:Ks,diagram:t}},Jf={id:Ks,detector:Zf,loader:Qf},tp=Jf,Zs="info",ep=t=>/^\s*info/.test(t),ip=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./infoDiagram-f8f76790-grTWIixK.js");return{diagram:e}},__vite__mapDeps([23,2,3]));return{id:Zs,diagram:t}},rp={id:Zs,detector:ep,loader:ip},Qs="pie",np=t=>/^\s*pie/.test(t),op=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./pieDiagram-8a3498a8-Cto3ORfA.js");return{diagram:e}},__vite__mapDeps([24,2,3,25,15,26,22,14]));return{id:Qs,diagram:t}},sp={id:Qs,detector:np,loader:op},Js="quadrantChart",ap=t=>/^\s*quadrantChart/.test(t),lp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./quadrantDiagram-120e2f19-CK36s5Eb.js");return{diagram:e}},__vite__mapDeps([27,2,3,21,22]));return{id:Js,diagram:t}},hp={id:Js,detector:ap,loader:lp},cp=hp,ta="xychart",up=t=>/^\s*xychart-beta/.test(t),dp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./xychartDiagram-e933f94c-DcCVCk7Y.js");return{diagram:e}},__vite__mapDeps([28,12,2,3,22,26,21,13,14,15]));return{id:ta,diagram:t}},fp={id:ta,detector:up,loader:dp},pp=fp,ea="requirement",gp=t=>/^\s*requirement(Diagram)?/.test(t),mp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./requirementDiagram-deff3bca-DjgxaJC8.js");return{diagram:e}},__vite__mapDeps([29,6,2,3,7,13,14,15]));return{id:ea,diagram:t}},_p={id:ea,detector:gp,loader:mp},yp=_p,ia="sequence",Cp=t=>/^\s*sequenceDiagram/.test(t),xp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./sequenceDiagram-704730f1-C7R7HoPG.js");return{diagram:e}},__vite__mapDeps([30,1,2,3]));return{id:ia,diagram:t}},bp={id:ia,detector:Cp,loader:xp},Tp=bp,ra="class",kp=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},vp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./classDiagram-70f12bd4-i-AU2IWv.js");return{diagram:e}},__vite__mapDeps([31,32,6,2,3,7,13,14,15]));return{id:ra,diagram:t}},Sp={id:ra,detector:kp,loader:vp},wp=Sp,na="classDiagram",Bp=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Ap=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./classDiagram-v2-f2320105-BaXoILhn.js");return{diagram:e}},__vite__mapDeps([33,32,6,2,3,9,7,10,11,12,13,14,15]));return{id:na,diagram:t}},Lp={id:na,detector:Bp,loader:Ap},Fp=Lp,oa="state",Ep=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},Mp=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./stateDiagram-587899a1-C-uCmOEE.js");return{diagram:e}},__vite__mapDeps([34,35,6,2,3,7,13,14,15]));return{id:oa,diagram:t}},Ip={id:oa,detector:Ep,loader:Mp},Op=Ip,sa="stateDiagram",Dp=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},Np=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./stateDiagram-v2-d93cdb3a-CIX6Pzhs.js");return{diagram:e}},__vite__mapDeps([36,35,6,2,3,9,7,10,11,12,13,14,15]));return{id:sa,diagram:t}},Rp={id:sa,detector:Dp,loader:Np},Pp=Rp,aa="journey",qp=t=>/^\s*journey/.test(t),$p=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./journeyDiagram-49397b02-Bv4S8x0v.js");return{diagram:e}},__vite__mapDeps([37,1,2,3,25,15]));return{id:aa,diagram:t}},zp={id:aa,detector:qp,loader:$p},Wp=zp,Hp=function(t,e){for(let i of e)t.attr(i[0],i[1])},Up=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},la=function(t,e,i,r){const n=Up(e,i,r);Hp(t,n)},Yp=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;k.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;k.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,k.info(`Calculated bounds: ${a}x${l}`),la(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},si={},Vp=(t,e,i)=>{let r="";return t in si&&si[t]?r=si[t](i):k.warn(`No theme found for ${t}`),` & { font-family: ${i.fontFamily}; font-size: ${i.fontSize}; fill: ${i.textColor} @@ -62,7 +62,7 @@ import{o as Ua,i as Mo,b as Si,c as wi,t as le,d as Io,M as cr,e as Ya,f as Va,h ${e} `},jp=(t,e)=>{e!==void 0&&(si[t]=e)},Gp=Vp;let Yr="",Vr="",jr="";const Gr=t=>De(t,_t()),Xp=()=>{Yr="",jr="",Vr=""},Kp=t=>{Yr=Gr(t).replace(/^\s+/g,"")},Zp=()=>Yr,Qp=t=>{jr=Gr(t).replace(/\n\s+/g,` `)},Jp=()=>jr,tg=t=>{Vr=Gr(t)},eg=()=>Vr,ig=Object.freeze(Object.defineProperty({__proto__:null,clear:Xp,getAccDescription:Jp,getAccTitle:Zp,getDiagramTitle:eg,setAccDescription:Qp,setAccTitle:Kp,setDiagramTitle:tg},Symbol.toStringTag,{value:"Module"})),rg=k,ng=$r,Xr=_t,A_=Ws,L_=oe,og=t=>De(t,Xr()),sg=Yp,ag=()=>ig,Ci={},xi=(t,e,i)=>{var r;if(Ci[t])throw new Error(`Diagram ${t} already registered.`);Ci[t]=e,i&&Ds(t,i),jp(t,e.styles),(r=e.injectUtils)==null||r.call(e,rg,ng,Xr,og,sg,ag(),()=>{})},Kr=t=>{if(t in Ci)return Ci[t];throw new lg(t)};class lg extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const hg=t=>{var e;const{securityLevel:i}=Xr();let r=ot("body");if(i==="sandbox"){const s=((e=ot(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=ot(s.body)}return r.select(`#${t}`)},cg=(t,e,i)=>{k.debug(`rendering svg for syntax error -`);const r=hg(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),la(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},ha={draw:cg},ug=ha,dg={db:{},renderer:ha,parser:{parser:{yy:{}},parse:()=>{}}},fg=dg,ca="flowchart-elk",pg=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},gg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowchart-elk-definition-4a651766-DLndsX9w.js");return{diagram:e}},__vite__mapDeps([38,5,11,12,2,3,13,14,15]));return{id:ca,diagram:t}},mg={id:ca,detector:pg,loader:gg},_g=mg,ua="timeline",yg=t=>/^\s*timeline/.test(t),Cg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./timeline-definition-85554ec2-CvJeyBUi.js");return{diagram:e}},__vite__mapDeps([39,2,3,25,15]));return{id:ua,diagram:t}},xg={id:ua,detector:yg,loader:Cg},bg=xg,da="mindmap",Tg=t=>/^\s*mindmap/.test(t),kg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./mindmap-definition-fc14e90a-CRNQVvtP.js");return{diagram:e}},__vite__mapDeps([40,2,3,12]));return{id:da,diagram:t}},vg={id:da,detector:Tg,loader:kg},Sg=vg,fa="sankey",wg=t=>/^\s*sankey-beta/.test(t),Bg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./sankeyDiagram-04a897e0-ySFe1tss.js");return{diagram:e}},__vite__mapDeps([41,2,3,26,22,42]));return{id:fa,diagram:t}},Ag={id:fa,detector:wg,loader:Bg},Lg=Ag,pa="block",Fg=t=>/^\s*block-beta/.test(t),Eg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./blockDiagram-38ab4fdb-Drr0MnjZ.js");return{diagram:e}},__vite__mapDeps([43,10,6,2,3,11,12,13,14,15,26,22,16,42]));return{id:pa,diagram:t}},Mg={id:pa,detector:Fg,loader:Eg},Ig=Mg;let xo=!1;const Zr=()=>{xo||(xo=!0,xi("error",fg,t=>t.toLowerCase().trim()==="error"),xi("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Os(Of,Fp,wp,Vf,tp,rp,sp,yp,Tp,_g,Wf,Pf,Sg,bg,Kf,Pp,Op,Wp,cp,Lg,pp,Ig))};class ga{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=kf(e),this.text+=` +`);const r=hg(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),la(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},ha={draw:cg},ug=ha,dg={db:{},renderer:ha,parser:{parser:{yy:{}},parse:()=>{}}},fg=dg,ca="flowchart-elk",pg=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},gg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./flowchart-elk-definition-4a651766-Yv2tsz_U.js");return{diagram:e}},__vite__mapDeps([38,5,11,12,2,3,13,14,15]));return{id:ca,diagram:t}},mg={id:ca,detector:pg,loader:gg},_g=mg,ua="timeline",yg=t=>/^\s*timeline/.test(t),Cg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./timeline-definition-85554ec2-CQ7c8ExM.js");return{diagram:e}},__vite__mapDeps([39,2,3,25,15]));return{id:ua,diagram:t}},xg={id:ua,detector:yg,loader:Cg},bg=xg,da="mindmap",Tg=t=>/^\s*mindmap/.test(t),kg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./mindmap-definition-fc14e90a-CQPy3eoX.js");return{diagram:e}},__vite__mapDeps([40,2,3,12]));return{id:da,diagram:t}},vg={id:da,detector:Tg,loader:kg},Sg=vg,fa="sankey",wg=t=>/^\s*sankey-beta/.test(t),Bg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./sankeyDiagram-04a897e0-BWGVYAbc.js");return{diagram:e}},__vite__mapDeps([41,2,3,26,22,42]));return{id:fa,diagram:t}},Ag={id:fa,detector:wg,loader:Bg},Lg=Ag,pa="block",Fg=t=>/^\s*block-beta/.test(t),Eg=async()=>{const{diagram:t}=await I(async()=>{const{diagram:e}=await import("./blockDiagram-38ab4fdb-NQHR76N-.js");return{diagram:e}},__vite__mapDeps([43,10,6,2,3,11,12,13,14,15,26,22,16,42]));return{id:pa,diagram:t}},Mg={id:pa,detector:Fg,loader:Eg},Ig=Mg;let xo=!1;const Zr=()=>{xo||(xo=!0,xi("error",fg,t=>t.toLowerCase().trim()==="error"),xi("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Os(Of,Fp,wp,Vf,tp,rp,sp,yp,Tp,_g,Wf,Pf,Sg,bg,Kf,Pp,Op,Wp,cp,Lg,pp,Ig))};class ga{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=kf(e),this.text+=` `;const r=_t();try{this.type=Di(e,r)}catch(o){this.type="error",this.detectError=o}const n=Kr(this.type);k.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,o;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const s=_t();(r=this.init)==null||r.call(this,s),this.metadata.title&&((o=(n=this.db).setDiagramTitle)==null||o.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const Og=async(t,e={})=>{const i=Di(t,_t());try{Kr(i)}catch{const n=Kd(i);if(!n)throw new Is(`Diagram ${i} not found.`);const{id:o,diagram:s}=await n();xi(o,s)}return new ga(t,e)};let bo=[];const Dg=()=>{bo.forEach(t=>{t()}),bo=[]},Ng="graphics-document document";function Rg(t,e){t.attr("role",Ng),e!==""&&t.attr("aria-roledescription",e)}function Pg(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const qg=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function ma(t){return typeof t>"u"||t===null}function $g(t){return typeof t=="object"&&t!==null}function zg(t){return Array.isArray(t)?t:ma(t)?[]:[t]}function Wg(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;ia&&(o=" ... ",e=r-a+o.length),i-r>a&&(s=" ...",i=r+a-s.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+s,pos:r-e+o.length}}function ar(t,e){return V.repeat(" ",e-t.length)+t}function Zg(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o,s=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,p=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=sr(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),p),a=V.repeat(" ",e.indent)+ar((t.line-l+1).toString(),u)+" | "+c.str+` diff --git a/starter/src/main/resources/templates/notebase/assets/mindmap-definition-fc14e90a-CRNQVvtP.js b/starter/src/main/resources/templates/notebase/assets/mindmap-definition-fc14e90a-CQPy3eoX.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/mindmap-definition-fc14e90a-CRNQVvtP.js rename to starter/src/main/resources/templates/notebase/assets/mindmap-definition-fc14e90a-CQPy3eoX.js index 07e66aeeef..4b7576562e 100644 --- a/starter/src/main/resources/templates/notebase/assets/mindmap-definition-fc14e90a-CRNQVvtP.js +++ b/starter/src/main/resources/templates/notebase/assets/mindmap-definition-fc14e90a-CQPy3eoX.js @@ -1,4 +1,4 @@ -import{l as Sr,c as Ai,N as Pu,t as Nu,P as hn,d as dn,h as Mu,a6 as ku,a7 as Bu,a8 as Fu,T as Gu}from"./mermaid.core-BajzCmnv.js";import{Q as Li,g as zu}from"./index-CLWgAZNI.js";import{a as _u}from"./createText-2e5e7dd3-CXwUql3o.js";function We(t){"@babel/helpers - typeof";return We=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(t)}function fr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vu(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,a=new Array(e);rt.length)&&(e=t.length);for(var r=0,a=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,o;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return i=l.done,l},e:function(l){s=!0,o=l},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(s)throw o}}}}var $e=typeof window>"u"?null:window,is=$e?$e.navigator:null;$e&&$e.document;var qu=We(""),Lo=We({}),Ku=We(function(){}),Zu=typeof HTMLElement>"u"?"undefined":We(HTMLElement),Oa=function(e){return e&&e.instanceString&&Ve(e.instanceString)?e.instanceString():null},ce=function(e){return e!=null&&We(e)==qu},Ve=function(e){return e!=null&&We(e)===Ku},Me=function(e){return!xt(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},Ae=function(e){return e!=null&&We(e)===Lo&&!Me(e)&&e.constructor===Object},Qu=function(e){return e!=null&&We(e)===Lo},re=function(e){return e!=null&&We(e)===We(1)&&!isNaN(e)},Ju=function(e){return re(e)&&Math.floor(e)===e},gn=function(e){if(Zu!=="undefined")return e!=null&&e instanceof HTMLElement},xt=function(e){return Pa(e)||Ro(e)},Pa=function(e){return Oa(e)==="collection"&&e._private.single},Ro=function(e){return Oa(e)==="collection"&&!e._private.single},Ii=function(e){return Oa(e)==="core"},Io=function(e){return Oa(e)==="stylesheet"},ju=function(e){return Oa(e)==="event"},ar=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},ef=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},tf=function(e){return Ae(e)&&re(e.x1)&&re(e.x2)&&re(e.y1)&&re(e.y2)},rf=function(e){return Qu(e)&&Ve(e.then)},af=function(){return is&&is.userAgent.match(/msie|trident|edge/i)},wa=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],s=0;sr?1:0},cf=function(e,r){return-1*Po(e,r)},he=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r1&&(p-=1),p<1/6?d+(g-d)*6*p:p<1/2?g:p<2/3?d+(g-d)*(2/3-p)*6:d}var c=new RegExp("^"+of+"$").exec(e);if(c){if(a=parseInt(c[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(c[2]),n<0||n>100||(n=n/100,i=parseFloat(c[3]),i<0||i>100)||(i=i/100,s=c[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(n===0)o=l=u=Math.round(i*255);else{var h=i<.5?i*(1+n):i+n-i*n,v=2*i-h;o=Math.round(255*f(v,h,a+1/3)),l=Math.round(255*f(v,h,a)),u=Math.round(255*f(v,h,a-1/3))}r=[o,l,u,s]}return r},df=function(e){var r,a=new RegExp("^"+nf+"$").exec(e);if(a){r=[];for(var n=[],i=1;i<=3;i++){var s=a[i];if(s[s.length-1]==="%"&&(n[i]=!0),s=parseFloat(s),n[i]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=n[1]||n[2]||n[3],l=n[1]&&n[2]&&n[3];if(o&&!l)return;var u=a[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;r.push(u)}}return r},gf=function(e){return pf[e.toLowerCase()]},No=function(e){return(Me(e)?e:null)||gf(e)||vf(e)||df(e)||hf(e)},pf={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Mo=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i=e||w<0||c&&x>=i}function y(){var D=Xn();if(p(D))return b(D);o=setTimeout(y,g(D))}function b(D){return o=void 0,h&&a?v(D):(a=n=void 0,s)}function m(){o!==void 0&&clearTimeout(o),u=0,a=l=n=o=void 0}function E(){return o===void 0?s:b(Xn())}function C(){var D=Xn(),w=p(D);if(a=arguments,n=this,l=D,w){if(o===void 0)return d(l);if(c)return clearTimeout(o),o=setTimeout(y,e),v(l)}return o===void 0&&(o=setTimeout(y,e)),s}return C.cancel=m,C.flush=E,C}var Ma=ec,Wn=$e?$e.performance:null,Go=Wn&&Wn.now?function(){return Wn.now()}:function(){return Date.now()},tc=function(){if($e){if($e.requestAnimationFrame)return function(t){$e.requestAnimationFrame(t)};if($e.mozRequestAnimationFrame)return function(t){$e.mozRequestAnimationFrame(t)};if($e.webkitRequestAnimationFrame)return function(t){$e.webkitRequestAnimationFrame(t)};if($e.msRequestAnimationFrame)return function(t){$e.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(Go())},1e3/60)}}(),pn=function(e){return tc(e)},Xt=Go,kr=9261,zo=65599,va=5381,_o=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kr,a=r,n;n=e.next(),!n.done;)a=a*zo+n.value|0;return a},Ea=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kr;return r*zo+e|0},xa=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:va;return(r<<5)+r+e|0},rc=function(e,r){return e*2097152+r},Qt=function(e){return e[0]*2097152+e[1]},Ya=function(e,r){return[Ea(e[0],r[0]),xa(e[1],r[1])]},ac=function(e,r){var a={value:0,done:!1},n=0,i=e.length,s={next:function(){return n=0;n--)e[n]===r&&e.splice(n,1)},Mi=function(e){e.splice(0,e.length)},fc=function(e,r){for(var a=0;a"u"?"undefined":We(Set))!==vc?Set:hc,Rn=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!Ii(e)){_e("An element must have a core reference and parameters set");return}var n=r.group;if(n==null&&(r.data&&r.data.source!=null&&r.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){_e("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?n==="edges":!!r.pannable,active:!1,classes:new Xr,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();i.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];Me(r.classes)?u=r.classes:ce(r.classes)&&(u=r.classes.split(/\s+/));for(var f=0,c=u.length;fb?1:0},f=function(y,b,m,E,C){var D;if(m==null&&(m=0),C==null&&(C=a),m<0)throw new Error("lo must be non-negative");for(E==null&&(E=y.length);mS;0<=S?T++:T--)x.push(T);return x}).apply(this).reverse(),w=[],E=0,C=D.length;EA;0<=A?++x:--x)L.push(s(y,m));return L},g=function(y,b,m,E){var C,D,w;for(E==null&&(E=a),C=y[m];m>b;){if(w=m-1>>1,D=y[w],E(C,D)<0){y[m]=D,m=w;continue}break}return y[m]=C},p=function(y,b,m){var E,C,D,w,x;for(m==null&&(m=a),C=y.length,x=b,D=y[b],E=2*b+1;E0;){var D=b.pop(),w=p(D),x=D.id();if(h[x]=w,w!==1/0)for(var T=D.neighborhood().intersect(d),S=0;S0)for(M.unshift(k);c[z];){var F=c[z];M.unshift(F.edge),M.unshift(F.node),B=F.node,z=B.id()}return o.spawn(M)}}}},yc={kruskal:function(e){e=e||function(m){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,s=new Array(i),o=a,l=function(E){for(var C=0;C0;){if(C(),w++,E===f){for(var x=[],T=i,S=f,A=y[S];x.unshift(T),A!=null&&x.unshift(A),T=p[S],T!=null;)S=T.id(),A=y[S];return{found:!0,distance:c[E],path:this.spawn(x),steps:w}}v[E]=!0;for(var L=m._private.edges,I=0;IA&&(d[S]=A,b[S]=T,m[S]=C),!i){var L=T*f+x;!i&&d[L]>A&&(d[L]=A,b[L]=x,m[L]=C)}}}for(var I=0;I1&&arguments[1]!==void 0?arguments[1]:s,pe=m(ue),ye=[],de=pe;;){if(de==null)return r.spawn();var me=b(de),xe=me.edge,De=me.pred;if(ye.unshift(de[0]),de.same(le)&&ye.length>0)break;xe!=null&&ye.unshift(xe),de=De}return l.spawn(ye)},D=0;D=0;f--){var c=u[f],h=c[1],v=c[2];(r[h]===o&&r[v]===l||r[h]===l&&r[v]===o)&&u.splice(f,1)}for(var d=0;dn;){var i=Math.floor(Math.random()*r.length);r=Dc(i,e,r),a--}return r},Sc={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(M){return M.isLoop()});var i=a.length,s=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/Cc);if(i<2){_e("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],f=0;f1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,s=r;s1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(r,a):(a0&&e.splice(0,r));for(var o=0,l=e.length-1;l>=0;l--){var u=e[l];s?isFinite(u)||(e[l]=-1/0,o++):e.splice(l,1)}i&&e.sort(function(h,v){return h-v});var f=e.length,c=Math.floor(f/2);return f%2!==0?e[c+1+o]:(e[c-1+o]+e[c+o])/2},Pc=function(e){return Math.PI*e/180},$a=function(e,r){return Math.atan2(r,e)-Math.PI/2},ki=Math.log2||function(t){return Math.log(t)/Math.log(2)},Wo=function(e){return e>0?1:e<0?-1:0},Er=function(e,r){return Math.sqrt(gr(e,r))},gr=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},Nc=function(e){for(var r=e.length,a=0,n=0;n=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},kc=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Bc=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Fc=function(e,r,a){return{x1:e.x1+r,x2:e.x2+r,y1:e.y1+a,y2:e.y2+a,w:e.w,h:e.h}},qo=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},Gc=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},an=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},nn=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,s;if(r.length===1)a=n=i=s=r[0];else if(r.length===2)a=i=r[0],s=n=r[1];else if(r.length===4){var o=je(r,4);a=o[0],n=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},hs=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},Bi=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},Yr=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},zc=function(e,r){return Yr(e,r.x,r.y)},Ko=function(e,r){return Yr(e,r.x1,r.y1)&&Yr(e,r.x2,r.y2)},Zo=function(e,r,a,n,i,s,o){var l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",u=l==="auto"?xr(i,s):l,f=i/2,c=s/2;u=Math.min(u,f,c);var h=u!==f,v=u!==c,d;if(h){var g=a-f+u-o,p=n-c-o,y=a+f-u+o,b=p;if(d=er(e,r,a,n,g,p,y,b,!1),d.length>0)return d}if(v){var m=a+f+o,E=n-c+u-o,C=m,D=n+c-u+o;if(d=er(e,r,a,n,m,E,C,D,!1),d.length>0)return d}if(h){var w=a-f+u-o,x=n+c+o,T=a+f-u+o,S=x;if(d=er(e,r,a,n,w,x,T,S,!1),d.length>0)return d}if(v){var A=a-f-o,L=n-c+u-o,I=A,R=n+c-u+o;if(d=er(e,r,a,n,A,L,I,R,!1),d.length>0)return d}var P;{var N=a-f+u,k=n-c+u;if(P=ha(e,r,a,n,N,k,u+o),P.length>0&&P[0]<=N&&P[1]<=k)return[P[0],P[1]]}{var M=a+f-u,B=n-c+u;if(P=ha(e,r,a,n,M,B,u+o),P.length>0&&P[0]>=M&&P[1]<=B)return[P[0],P[1]]}{var z=a+f-u,F=n+c-u;if(P=ha(e,r,a,n,z,F,u+o),P.length>0&&P[0]>=z&&P[1]>=F)return[P[0],P[1]]}{var G=a-f+u,H=n+c-u;if(P=ha(e,r,a,n,G,H,u+o),P.length>0&&P[0]<=G&&P[1]>=H)return[P[0],P[1]]}return[]},_c=function(e,r,a,n,i,s,o){var l=o,u=Math.min(a,i),f=Math.max(a,i),c=Math.min(n,s),h=Math.max(n,s);return u-l<=e&&e<=f+l&&c-l<=r&&r<=h+l},Vc=function(e,r,a,n,i,s,o,l,u){var f={x1:Math.min(a,o,i)-u,x2:Math.max(a,o,i)+u,y1:Math.min(n,l,s)-u,y2:Math.max(n,l,s)+u};return!(ef.x2||rf.y2)},Uc=function(e,r,a,n){a-=n;var i=r*r-4*e*a;if(i<0)return[];var s=Math.sqrt(i),o=2*e,l=(-r+s)/o,u=(-r-s)/o;return[l,u]},Yc=function(e,r,a,n,i){var s=1e-5;e===0&&(e=s),r/=e,a/=e,n/=e;var o,l,u,f,c,h,v,d;if(l=(3*a-r*r)/9,u=-(27*n)+r*(9*a-2*(r*r)),u/=54,o=l*l*l+u*u,i[1]=0,v=r/3,o>0){c=u+Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),h=u-Math.sqrt(o),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),i[0]=-v+c+h,v+=(c+h)/2,i[4]=i[2]=-v,v=Math.sqrt(3)*(-h+c)/2,i[3]=v,i[5]=-v;return}if(i[5]=i[3]=0,o===0){d=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-v+2*d,i[4]=i[2]=-(d+v);return}l=-l,f=l*l*l,f=Math.acos(u/Math.sqrt(f)),d=2*Math.sqrt(l),i[0]=-v+d*Math.cos(f/3),i[2]=-v+d*Math.cos((f+2*Math.PI)/3),i[4]=-v+d*Math.cos((f+4*Math.PI)/3)},$c=function(e,r,a,n,i,s,o,l){var u=1*a*a-4*a*i+2*a*o+4*i*i-4*i*o+o*o+n*n-4*n*s+2*n*l+4*s*s-4*s*l+l*l,f=1*9*a*i-3*a*a-3*a*o-6*i*i+3*i*o+9*n*s-3*n*n-3*n*l-6*s*s+3*s*l,c=1*3*a*a-6*a*i+a*o-a*e+2*i*i+2*i*e-o*e+3*n*n-6*n*s+n*l-n*r+2*s*s+2*s*r-l*r,h=1*a*i-a*a+a*e-i*e+n*s-n*n+n*r-s*r,v=[];Yc(u,f,c,h,v);for(var d=1e-7,g=[],p=0;p<6;p+=2)Math.abs(v[p+1])=0&&v[p]<=1&&g.push(v[p]);g.push(1),g.push(0);for(var y=-1,b,m,E,C=0;C=0?Eu?(e-i)*(e-i)+(r-s)*(r-s):f-h},pt=function(e,r,a){for(var n,i,s,o,l,u=0,f=0;f=e&&e>=s||n<=e&&e<=s)l=(e-n)/(s-n)*(o-i)+i,l>r&&u++;else continue;return u%2!==0},Wt=function(e,r,a,n,i,s,o,l,u){var f=new Array(a.length),c;l[0]!=null?(c=Math.atan(l[1]/l[0]),l[0]<0?c=c+Math.PI/2:c=-c-Math.PI/2):c=l;for(var h=Math.cos(-c),v=Math.sin(-c),d=0;d0){var p=bn(f,-u);g=mn(p)}else g=f;return pt(e,r,g)},Xc=function(e,r,a,n,i,s,o,l){for(var u=new Array(a.length*2),f=0;f=0&&p<=1&&b.push(p),y>=0&&y<=1&&b.push(y),b.length===0)return[];var m=b[0]*l[0]+e,E=b[0]*l[1]+r;if(b.length>1){if(b[0]==b[1])return[m,E];var C=b[1]*l[0]+e,D=b[1]*l[1]+r;return[m,E,C,D]}else return[m,E]},Kn=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},er=function(e,r,a,n,i,s,o,l,u){var f=e-i,c=a-e,h=o-i,v=r-s,d=n-r,g=l-s,p=h*v-g*f,y=c*v-d*f,b=g*c-h*d;if(b!==0){var m=p/b,E=y/b,C=.001,D=0-C,w=1+C;return D<=m&&m<=w&&D<=E&&E<=w?[e+m*c,r+m*d]:u?[e+m*c,r+m*d]:[]}else return p===0||y===0?Kn(e,a,o)===o?[o,l]:Kn(e,a,i)===i?[i,s]:Kn(i,o,a)===a?[a,n]:[]:[]},Da=function(e,r,a,n,i,s,o,l){var u=[],f,c=new Array(a.length),h=!0;s==null&&(h=!1);var v;if(h){for(var d=0;d0){var g=bn(c,-l);v=mn(g)}else v=c}else v=a;for(var p,y,b,m,E=0;E2){for(var d=[f[0],f[1]],g=Math.pow(d[0]-e,2)+Math.pow(d[1]-r,2),p=1;pf&&(f=E)},get:function(m){return u[m]}},h=0;h0?N=P.edgesTo(R)[0]:N=R.edgesTo(P)[0];var k=n(N);R=R.id(),x[R]>x[L]+k&&(x[R]=x[L]+k,T.nodes.indexOf(R)<0?T.push(R):T.updateItem(R),w[R]=0,D[R]=[]),x[R]==x[L]+k&&(w[R]=w[R]+w[L],D[R].push(L))}else for(var M=0;M0;){for(var G=C.pop(),H=0;H0&&o.push(a[l]);o.length!==0&&i.push(n.collection(o))}return i},lv=function(e,r){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:cv,o=n,l,u,f=0;f=2?ia(e,r,a,0,ms,vv):ia(e,r,a,0,ys)},squaredEuclidean:function(e,r,a){return ia(e,r,a,0,ms)},manhattan:function(e,r,a){return ia(e,r,a,0,ys)},max:function(e,r,a){return ia(e,r,a,-1/0,hv)}};$r["squared-euclidean"]=$r.squaredEuclidean;$r.squaredeuclidean=$r.squaredEuclidean;function On(t,e,r,a,n,i){var s;return Ve(t)?s=t:s=$r[t]||$r.euclidean,e===0&&Ve(t)?s(n,i):s(e,r,a,n,i)}var dv=et({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Gi=function(e){return dv(e)},wn=function(e,r,a,n,i){var s=i!=="kMedoids",o=s?function(c){return a[c]}:function(c){return n[c](a)},l=function(h){return n[h](r)},u=a,f=r;return On(e,n.length,o,l,u,f)},Zn=function(e,r,a){for(var n=a.length,i=new Array(n),s=new Array(n),o=new Array(r),l=null,u=0;ua)return!1}return!0},yv=function(e,r,a){for(var n=0;no&&(o=r[u][f],l=f);i[l].push(e[u])}for(var c=0;c=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var d=r[s],g=r[n[s]],p;i.mode==="dendrogram"?p={left:d,right:g,key:d.key}:p={value:d.value.concat(g.value),key:d.key},e[d.index]=p,e.splice(g.index,1),r[d.key]=p;for(var y=0;ya[g.key][b.key]&&(l=a[g.key][b.key])):i.linkage==="max"?(l=a[d.key][b.key],a[d.key][b.key]0&&n.push(i);return n},Cs=function(e,r,a){for(var n=[],i=0;io&&(s=u,o=r[i*e+u])}s>0&&n.push(s)}for(var f=0;fu&&(l=f,u=c)}a[i]=s[l]}return n=Cs(e,r,a),n},Ds=function(e){for(var r=this.cy(),a=this.nodes(),n=Ov(e),i={},s=0;s=A?(L=A,A=R,I=P):R>L&&(L=R);for(var N=0;N0?1:0;w[T%n.minIterations*o+G]=H,F+=H}if(F>0&&(T>=n.minIterations-1||T==n.maxIterations-1)){for(var X=0,K=0;K1||D>1)&&(o=!0),c[m]=[],b.outgoers().forEach(function(x){x.isEdge()&&c[m].push(x.id())})}else h[m]=[void 0,b.target().id()]}):s.forEach(function(b){var m=b.id();if(b.isNode()){var E=b.degree(!0);E%2&&(l?u?o=!0:u=m:l=m),c[m]=[],b.connectedEdges().forEach(function(C){return c[m].push(C.id())})}else h[m]=[b.source().id(),b.target().id()]});var v={found:!1,trail:void 0};if(o)return v;if(u&&l)if(i){if(f&&u!=f)return v;f=u}else{if(f&&u!=f&&l!=f)return v;f||(f=u)}else f||(f=s[0].id());var d=function(m){for(var E=m,C=[m],D,w,x;c[E].length;)D=c[E].shift(),w=h[D][0],x=h[D][1],E!=x?(c[x]=c[x].filter(function(T){return T!=D}),E=x):!i&&E!=w&&(c[w]=c[w].filter(function(T){return T!=D}),E=w),C.unshift(D),C.unshift(E);return C},g=[],p=[];for(p=d(f);p.length!=1;)c[p[0]].length==0?(g.unshift(s.getElementById(p.shift())),g.unshift(s.getElementById(p.shift()))):p=d(p.shift()).concat(p);g.unshift(s.getElementById(p.shift()));for(var y in c)if(c[y].length)return v;return v.found=!0,v.trail=this.spawn(g,!0),v}},Wa=function(){var e=this,r={},a=0,n=0,i=[],s=[],o={},l=function(h,v){for(var d=s.length-1,g=[],p=e.spawn();s[d].x!=h||s[d].y!=v;)g.push(s.pop().edge),d--;g.push(s.pop().edge),g.forEach(function(y){var b=y.connectedNodes().intersection(e);p.merge(y),b.forEach(function(m){var E=m.id(),C=m.connectedEdges().intersection(e);p.merge(m),r[E].cutVertex?p.merge(C.filter(function(D){return D.isLoop()})):p.merge(C)})}),i.push(p)},u=function c(h,v,d){h===d&&(n+=1),r[v]={id:a,low:a++,cutVertex:!1};var g=e.getElementById(v).connectedEdges().intersection(e);if(g.size()===0)i.push(e.spawn(e.getElementById(v)));else{var p,y,b,m;g.forEach(function(E){p=E.source().id(),y=E.target().id(),b=p===v?y:p,b!==d&&(m=E.id(),o[m]||(o[m]=!0,s.push({x:v,y:b,edge:E})),b in r?r[v].low=Math.min(r[v].low,r[b].id):(c(h,b,v),r[v].low=Math.min(r[v].low,r[b].low),r[v].id<=r[b].low&&(r[v].cutVertex=!0,l(v,b))))})}};e.forEach(function(c){if(c.isNode()){var h=c.id();h in r||(n=0,u(h,h),r[h].cutVertex=n>1)}});var f=Object.keys(r).filter(function(c){return r[c].cutVertex}).map(function(c){return e.getElementById(c)});return{cut:e.spawn(f),components:i}},zv={hopcroftTarjanBiconnected:Wa,htbc:Wa,htb:Wa,hopcroftTarjanBiconnectedComponents:Wa},qa=function(){var e=this,r={},a=0,n=[],i=[],s=e.spawn(e),o=function l(u){i.push(u),r[u]={index:a,low:a++,explored:!1};var f=e.getElementById(u).connectedEdges().intersection(e);if(f.forEach(function(g){var p=g.target().id();p!==u&&(p in r||l(p),r[p].explored||(r[u].low=Math.min(r[u].low,r[p].low)))}),r[u].index===r[u].low){for(var c=e.spawn();;){var h=i.pop();if(c.merge(e.getElementById(h)),r[h].low=r[u].index,r[h].explored=!0,h===u)break}var v=c.edgesWith(c),d=c.merge(v);n.push(d),s=s.difference(d)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in r||o(u)}}),{cut:s,components:n}},_v={tarjanStronglyConnected:qa,tsc:qa,tscc:qa,tarjanStronglyConnectedComponents:qa},al={};[Ta,pc,yc,bc,Ec,Tc,Sc,Qc,zr,_r,vi,fv,Tv,Rv,Bv,Gv,zv,_v].forEach(function(t){he(al,t)});/*! diff --git a/deploy/server/notebase/assets/pieDiagram-8a3498a8-EafKsBAO.js b/starter/src/main/resources/templates/notebase/assets/pieDiagram-8a3498a8-Cto3ORfA.js similarity index 99% rename from deploy/server/notebase/assets/pieDiagram-8a3498a8-EafKsBAO.js rename to starter/src/main/resources/templates/notebase/assets/pieDiagram-8a3498a8-Cto3ORfA.js index 9ba1979aa6..72ae70f312 100644 --- a/deploy/server/notebase/assets/pieDiagram-8a3498a8-EafKsBAO.js +++ b/starter/src/main/resources/templates/notebase/assets/pieDiagram-8a3498a8-Cto3ORfA.js @@ -1,4 +1,4 @@ -import{O as H,P as at,A as lt,B as ot,s as ct,g as ht,b as ut,a as yt,C as ft,d as pt,c as et,l as it,Q as gt,N as dt,T as mt,i as _t}from"./mermaid.core-BajzCmnv.js";import"./index-CLWgAZNI.js";import{a as tt}from"./arc-DCwD3PI6.js";import{o as xt}from"./ordinal-Cboi1Yqb.js";import{a as kt}from"./array-BKyUJesY.js";import{c as F}from"./path-CbwjOpE9.js";import"./init-Gi6I4Gst.js";function vt(e,u){return ue?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,$=null,p=F(0),g=F(H),A=F(0);function y(a){var l,d=(a=kt(a)).length,m,I,T=0,_=new Array(d),v=new Array(d),c=+p.apply(this,arguments),E=Math.min(H,Math.max(-H,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs(E)/d,A.apply(this,arguments)),b=w*(E<0?-1:1),t;for(l=0;l0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):$!=null&&_.sort(function(i,n){return $(a[i],a[n])}),l=0,I=T?(E-d*b)/T:0;l0?t*I:0)+b,v[m]={data:a[m],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return y.value=function(a){return arguments.length?(e=typeof a=="function"?a:F(+a),y):e},y.sortValues=function(a){return arguments.length?(u=a,$=null,y):u},y.sort=function(a){return arguments.length?($=a,u=null,y):$},y.startAngle=function(a){return arguments.length?(p=typeof a=="function"?a:F(+a),y):p},y.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:F(+a),y):g},y.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:F(+a),y):A},y}var J=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],$=[1,4],p=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],y=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],m=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],E={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,P){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:$,21:p,22:g},{1:[3]},{3:7,4:2,5:u,20:$,21:p,22:g},e(A,y,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,y,{6:18}),e(A,[2,5]),{4:19,20:$,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],P=this.table,x="",f=0,V=0,R=2,M=1,U=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var Q=h.yylloc;s.push(Q);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,Z,z={},j,D,X,W;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=P[L]&&P[L][k]),typeof S>"u"||!S.length||!S[0]){var q="";W=[];for(j in P[L])this.terminals_[j]&&j>R&&W.push("'"+this.terminals_[j]+"'");h.showPosition?q="Parse error on line "+(f+1)+`: +import{O as H,P as at,A as lt,B as ot,s as ct,g as ht,b as ut,a as yt,C as ft,d as pt,c as et,l as it,Q as gt,N as dt,T as mt,i as _t}from"./mermaid.core-DacimPk4.js";import"./index-bOgutTC1.js";import{a as tt}from"./arc-UQ4BAf3M.js";import{o as xt}from"./ordinal-Cboi1Yqb.js";import{a as kt}from"./array-BKyUJesY.js";import{c as F}from"./path-CbwjOpE9.js";import"./init-Gi6I4Gst.js";function vt(e,u){return ue?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,$=null,p=F(0),g=F(H),A=F(0);function y(a){var l,d=(a=kt(a)).length,m,I,T=0,_=new Array(d),v=new Array(d),c=+p.apply(this,arguments),E=Math.min(H,Math.max(-H,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs(E)/d,A.apply(this,arguments)),b=w*(E<0?-1:1),t;for(l=0;l0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):$!=null&&_.sort(function(i,n){return $(a[i],a[n])}),l=0,I=T?(E-d*b)/T:0;l0?t*I:0)+b,v[m]={data:a[m],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return y.value=function(a){return arguments.length?(e=typeof a=="function"?a:F(+a),y):e},y.sortValues=function(a){return arguments.length?(u=a,$=null,y):u},y.sort=function(a){return arguments.length?($=a,u=null,y):$},y.startAngle=function(a){return arguments.length?(p=typeof a=="function"?a:F(+a),y):p},y.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:F(+a),y):g},y.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:F(+a),y):A},y}var J=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],$=[1,4],p=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],y=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],m=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],E={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,P){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:$,21:p,22:g},{1:[3]},{3:7,4:2,5:u,20:$,21:p,22:g},e(A,y,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,y,{6:18}),e(A,[2,5]),{4:19,20:$,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],P=this.table,x="",f=0,V=0,R=2,M=1,U=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var Q=h.yylloc;s.push(Q);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,Z,z={},j,D,X,W;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=P[L]&&P[L][k]),typeof S>"u"||!S.length||!S[0]){var q="";W=[];for(j in P[L])this.terminals_[j]&&j>R&&W.push("'"+this.terminals_[j]+"'");h.showPosition?q="Parse error on line "+(f+1)+`: `+h.showPosition()+` Expecting `+W.join(", ")+", got '"+(this.terminals_[k]||k)+"'":q="Parse error on line "+(f+1)+": Unexpected "+(k==M?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(q,{text:h.match,token:this.terminals_[k]||k,line:h.yylineno,loc:Q,expected:W})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+k);switch(S[0]){case 1:n.push(k),o.push(h.yytext),s.push(h.yylloc),n.push(S[1]),k=null,V=h.yyleng,x=h.yytext,f=h.yylineno,Q=h.yylloc;break;case 2:if(D=this.productions_[S[1]][1],z.$=o[o.length-D],z._$={first_line:s[s.length-(D||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(D||1)].first_column,last_column:s[s.length-1].last_column},st&&(z._$.range=[s[s.length-(D||1)].range[0],s[s.length-1].range[1]]),Z=this.performAction.apply(z,[x,V,f,N.yy,S[1],o,s].concat(U)),typeof Z<"u")return Z;D&&(n=n.slice(0,-1*D*2),o=o.slice(0,-1*D),s=s.slice(0,-1*D)),n.push(this.productions_[S[1]][0]),o.push(z.$),s.push(z._$),X=P[n[n.length-2]][n[n.length-1]],n.push(X);break;case 3:return!0}}return!0}},O=function(){var b={EOF:1,parseError:function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw new Error(i)},setInput:function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var i=t.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var i=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/quadrantDiagram-120e2f19-8vv_6TNi.js b/starter/src/main/resources/templates/notebase/assets/quadrantDiagram-120e2f19-CK36s5Eb.js similarity index 99% rename from deploy/server/notebase/assets/quadrantDiagram-120e2f19-8vv_6TNi.js rename to starter/src/main/resources/templates/notebase/assets/quadrantDiagram-120e2f19-CK36s5Eb.js index 7bcaac3989..ca35519b30 100644 --- a/deploy/server/notebase/assets/quadrantDiagram-120e2f19-8vv_6TNi.js +++ b/starter/src/main/resources/templates/notebase/assets/quadrantDiagram-120e2f19-CK36s5Eb.js @@ -1,4 +1,4 @@ -import{U as vt,c as yt,P as D,l as ot,s as Lt,g as Ct,A as zt,B as bt,a as Et,b as Dt,C as It,h as gt,i as Bt,d as wt}from"./mermaid.core-BajzCmnv.js";import"./index-CLWgAZNI.js";import{l as mt}from"./linear-DTRuWJOk.js";import"./init-Gi6I4Gst.js";var pt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],m=[1,33],_=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:o.addPoint(a[u-3],a[u-1],a[u]);break;case 18:o.setXAxisLeftText(a[u-2]),o.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",o.setXAxisLeftText(a[u-1]);break;case 20:o.setXAxisLeftText(a[u]);break;case 21:o.setYAxisBottomText(a[u-2]),o.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",o.setYAxisBottomText(a[u-1]);break;case 23:o.setYAxisBottomText(a[u]);break;case 24:o.setQuadrant1Text(a[u]);break;case 25:o.setQuadrant2Text(a[u]);break;case 26:o.setQuadrant3Text(a[u]);break;case 27:o.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=o.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,_t,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`: +import{U as vt,c as yt,P as D,l as ot,s as Lt,g as Ct,A as zt,B as bt,a as Et,b as Dt,C as It,h as gt,i as Bt,d as wt}from"./mermaid.core-DacimPk4.js";import"./index-bOgutTC1.js";import{l as mt}from"./linear-3xwamwH4.js";import"./init-Gi6I4Gst.js";var pt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],m=[1,33],_=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:o.addPoint(a[u-3],a[u-1],a[u]);break;case 18:o.setXAxisLeftText(a[u-2]),o.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",o.setXAxisLeftText(a[u-1]);break;case 20:o.setXAxisLeftText(a[u]);break;case 21:o.setYAxisBottomText(a[u-2]),o.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",o.setYAxisBottomText(a[u-1]);break;case 23:o.setYAxisBottomText(a[u]);break;case 24:o.setQuadrant1Text(a[u]);break;case 25:o.setQuadrant2Text(a[u]);break;case 26:o.setQuadrant3Text(a[u]);break;case 27:o.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=o.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,_t,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`: `+E.showPosition()+` Expecting `+lt.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ft="Parse error on line "+(st+1)+": Unexpected "+(W==Tt?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ft,{text:E.match,token:this.terminals_[W]||W,line:E.yylineno,loc:ut,expected:lt})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+W);switch(H[0]){case 1:l.push(W),q.push(E.yytext),a.push(E.yylloc),l.push(H[1]),W=null,qt=E.yyleng,u=E.yytext,st=E.yylineno,ut=E.yylloc;break;case 2:if($=this.productions_[H[1]][1],tt.$=q[q.length-$],tt._$={first_line:a[a.length-($||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-($||1)].first_column,last_column:a[a.length-1].last_column},Ft&&(tt._$.range=[a[a.length-($||1)].range[0],a[a.length-1].range[1]]),xt=this.performAction.apply(tt,[u,qt,st,Z.yy,H[1],q,a].concat(kt)),typeof xt<"u")return xt;$&&(l=l.slice(0,-1*$*2),q=q.slice(0,-1*$),a=a.slice(0,-1*$)),l.push(this.productions_[H[1]][0]),q.push(tt.$),a.push(tt._$),_t=et[l[l.length-2]][l[l.length-1]],l.push(_t);break;case 3:return!0}}return!0}},At=function(){var K={EOF:1,parseError:function(r,l){if(this.yy.parser)this.yy.parser.parseError(r,l);else throw new Error(r)},setInput:function(n,r){return this.yy=r||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var r=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var q=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===o.length?this.yylloc.first_column:0)+o[o.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/requirementDiagram-deff3bca-C7te2cZt.js b/starter/src/main/resources/templates/notebase/assets/requirementDiagram-deff3bca-DjgxaJC8.js similarity index 98% rename from starter/src/main/resources/templates/notebase/assets/requirementDiagram-deff3bca-C7te2cZt.js rename to starter/src/main/resources/templates/notebase/assets/requirementDiagram-deff3bca-DjgxaJC8.js index 91d943aaca..8828f493ac 100644 --- a/starter/src/main/resources/templates/notebase/assets/requirementDiagram-deff3bca-C7te2cZt.js +++ b/starter/src/main/resources/templates/notebase/assets/requirementDiagram-deff3bca-DjgxaJC8.js @@ -1,4 +1,4 @@ -import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,C as Pe,h as oe,i as Ye,j as ke}from"./mermaid.core-BajzCmnv.js";import{G as Ue}from"./graph-CNSoCPH1.js";import{l as Be}from"./layout-Cg9I2QIy.js";import"./index-CLWgAZNI.js";import{l as Qe}from"./line-CH9gKq5B.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],ge=[1,51],Ee=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),E=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);E.setInput(i,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var se=E.yylloc;s.push(se);var Oe=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||E.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");E.showPosition?le="Parse error on line "+(Z+1)+`: +import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,C as Pe,h as oe,i as Ye,j as ke}from"./mermaid.core-DacimPk4.js";import{G as Ue}from"./graph-Cryfb0BU.js";import{l as Be}from"./layout-DPudLDYQ.js";import"./index-bOgutTC1.js";import{l as Qe}from"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],ge=[1,51],Ee=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),E=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);E.setInput(i,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var se=E.yylloc;s.push(se);var Oe=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||E.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");E.showPosition?le="Parse error on line "+(Z+1)+`: `+E.showPosition()+` Expecting `+te.join(", ")+", got '"+(this.terminals_[I]||I)+"'":le="Parse error on line "+(Z+1)+": Unexpected "+(I==Ie?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(le,{text:E.match,token:this.terminals_[I]||I,line:E.yylineno,loc:se,expected:te})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+I);switch(S[0]){case 1:a.push(I),f.push(E.yytext),s.push(E.yylloc),a.push(S[1]),I=null,me=E.yyleng,_=E.yytext,Z=E.yylineno,se=E.yylloc;break;case 2:if(w=this.productions_[S[1]][1],Q.$=f[f.length-w],Q._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},Oe&&(Q._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),ae=this.performAction.apply(Q,[_,me,Z,L.yy,S[1],f,s].concat(qe)),typeof ae<"u")return ae;w&&(a=a.slice(0,-1*w*2),f=f.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[S[1]][0]),f.push(Q.$),s.push(Q._$),be=W[a[a.length-2]][a[a.length-1]],a.push(be);break;case 3:return!0}}return!0}},$e=function(){var V={EOF:1,parseError:function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},setInput:function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var n=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/sankeyDiagram-04a897e0-ySFe1tss.js b/starter/src/main/resources/templates/notebase/assets/sankeyDiagram-04a897e0-BWGVYAbc.js similarity index 99% rename from deploy/server/notebase/assets/sankeyDiagram-04a897e0-ySFe1tss.js rename to starter/src/main/resources/templates/notebase/assets/sankeyDiagram-04a897e0-BWGVYAbc.js index d3ab38e76c..92b410ae9a 100644 --- a/deploy/server/notebase/assets/sankeyDiagram-04a897e0-ySFe1tss.js +++ b/starter/src/main/resources/templates/notebase/assets/sankeyDiagram-04a897e0-BWGVYAbc.js @@ -1,4 +1,4 @@ -import{c as rt,g as mt,s as kt,a as _t,b as xt,B as vt,A as bt,C as wt,j as St,a4 as Lt,h as G,t as Et}from"./mermaid.core-BajzCmnv.js";import"./index-CLWgAZNI.js";import{o as At}from"./ordinal-Cboi1Yqb.js";import{s as Tt}from"./Tableau10-B-NsZVaP.js";import"./init-Gi6I4Gst.js";function ot(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s=u)&&(s=u)}return s}function yt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function Mt(t){return t.target.depth}function Nt(t){return t.depth}function Ct(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Pt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Mt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return H(t.source,n.source)||t.index-n.index}function at(t,n){return H(t.target,n.target)||t.index-n.index}function H(t,n){return t.y0-n.y0}function J(t){return t.value}function It(t){return t.index}function $t(t){return t.nodes}function Ot(t){return t.links}function ct(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ut({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function jt(){let t=0,n=0,s=1,a=1,u=24,_=8,g,p=It,i=dt,o,c,m=$t,b=Ot,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(p=typeof e=="function"?e:Y(e),x):p},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=g=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:Y(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=ct(l,k)),typeof v!="object"&&(v=r.target=ct(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function N({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function I({nodes:e}){const f=ot(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function j(e){const f=yt(e,l=>(a-n-(l.length-1)*g)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+g)/(l.length+1);for(let r=0;rl.length)-1)),j(f);for(let l=0;l0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),C(k,l)}}function O(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,z=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,z+=F}if(!(z>0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),C(k,l)}}function C(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-g,l-1,f),P(e,h.y1+g,l+1,f),d(e,a,e.length-1,f),P(e,n,0,f)}function P(e,f,l,h){for(;l1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+g}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(at);for(const{target:{targetLinks:l}}of e)l.sort(lt)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(at),l.sort(lt)}function T(e,f){let l=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var tt=Math.PI,et=2*tt,D=1e-6,zt=et-D;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gt(){return new nt}nt.prototype=gt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,g=this._y1,p=s-t,i=a-n,o=_-t,c=g-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>D)if(!(Math.abs(c*p-i*o)>D)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-g,x=p*p+i*i,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(m),N=u*Math.tan((tt-Math.acos((x+m-E)/(2*L*A)))/2),I=N/A,j=N/L;Math.abs(I-1)>D&&(this._+="L"+(t+I*o)+","+(n+I*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+j*p)+","+(this._y1=n+j*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var g=s*Math.cos(a),p=s*Math.sin(a),i=t+g,o=n+p,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%et+et),m>zt?this._+="A"+s+","+s+",0,1,"+c+","+(t-g)+","+(n-p)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>D&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Dt(t){return t[0]}function Bt(t){return t[1]}var Vt=Array.prototype.slice;function Rt(t){return t.source}function Ut(t){return t.target}function Wt(t){var n=Rt,s=Ut,a=Dt,u=Bt,_=null;function g(){var p,i=Vt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=p=gt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),p)return _=null,p+""||null}return g.source=function(p){return arguments.length?(n=p,g):n},g.target=function(p){return arguments.length?(s=p,g):s},g.x=function(p){return arguments.length?(a=typeof p=="function"?p:ht(+p),g):a},g.y=function(p){return arguments.length?(u=typeof p=="function"?p:ht(+p),g):u},g.context=function(p){return arguments.length?(_=p??null,g):_},g}function Ft(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Gt(){return Wt(Ft)}function Yt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Xt(){return Gt().source(Yt).target(Ht)}var it=function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,j=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(M.yy[O]=this.yy[O]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var P=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,$,T,V,e={},f,l,h,r;;){if($=c[c.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),T=x[$]&&x[$][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[$])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`: +import{c as rt,g as mt,s as kt,a as _t,b as xt,B as vt,A as bt,C as wt,j as St,a4 as Lt,h as G,t as Et}from"./mermaid.core-DacimPk4.js";import"./index-bOgutTC1.js";import{o as At}from"./ordinal-Cboi1Yqb.js";import{s as Tt}from"./Tableau10-B-NsZVaP.js";import"./init-Gi6I4Gst.js";function ot(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s=u)&&(s=u)}return s}function yt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function Mt(t){return t.target.depth}function Nt(t){return t.depth}function Ct(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Pt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Mt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return H(t.source,n.source)||t.index-n.index}function at(t,n){return H(t.target,n.target)||t.index-n.index}function H(t,n){return t.y0-n.y0}function J(t){return t.value}function It(t){return t.index}function $t(t){return t.nodes}function Ot(t){return t.links}function ct(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ut({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function jt(){let t=0,n=0,s=1,a=1,u=24,_=8,g,p=It,i=dt,o,c,m=$t,b=Ot,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(p=typeof e=="function"?e:Y(e),x):p},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=g=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:Y(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=ct(l,k)),typeof v!="object"&&(v=r.target=ct(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function N({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function I({nodes:e}){const f=ot(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function j(e){const f=yt(e,l=>(a-n-(l.length-1)*g)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+g)/(l.length+1);for(let r=0;rl.length)-1)),j(f);for(let l=0;l0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),C(k,l)}}function O(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,z=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,z+=F}if(!(z>0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),C(k,l)}}function C(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-g,l-1,f),P(e,h.y1+g,l+1,f),d(e,a,e.length-1,f),P(e,n,0,f)}function P(e,f,l,h){for(;l1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+g}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(at);for(const{target:{targetLinks:l}}of e)l.sort(lt)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(at),l.sort(lt)}function T(e,f){let l=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var tt=Math.PI,et=2*tt,D=1e-6,zt=et-D;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gt(){return new nt}nt.prototype=gt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,g=this._y1,p=s-t,i=a-n,o=_-t,c=g-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>D)if(!(Math.abs(c*p-i*o)>D)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-g,x=p*p+i*i,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(m),N=u*Math.tan((tt-Math.acos((x+m-E)/(2*L*A)))/2),I=N/A,j=N/L;Math.abs(I-1)>D&&(this._+="L"+(t+I*o)+","+(n+I*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+j*p)+","+(this._y1=n+j*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var g=s*Math.cos(a),p=s*Math.sin(a),i=t+g,o=n+p,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%et+et),m>zt?this._+="A"+s+","+s+",0,1,"+c+","+(t-g)+","+(n-p)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>D&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Dt(t){return t[0]}function Bt(t){return t[1]}var Vt=Array.prototype.slice;function Rt(t){return t.source}function Ut(t){return t.target}function Wt(t){var n=Rt,s=Ut,a=Dt,u=Bt,_=null;function g(){var p,i=Vt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=p=gt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),p)return _=null,p+""||null}return g.source=function(p){return arguments.length?(n=p,g):n},g.target=function(p){return arguments.length?(s=p,g):s},g.x=function(p){return arguments.length?(a=typeof p=="function"?p:ht(+p),g):a},g.y=function(p){return arguments.length?(u=typeof p=="function"?p:ht(+p),g):u},g.context=function(p){return arguments.length?(_=p??null,g):_},g}function Ft(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Gt(){return Wt(Ft)}function Yt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Xt(){return Gt().source(Yt).target(Ht)}var it=function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,j=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(M.yy[O]=this.yy[O]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var P=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,$,T,V,e={},f,l,h,r;;){if($=c[c.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),T=x[$]&&x[$][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[$])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`: `+S.showPosition()+` Expecting `+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":k="Parse error on line "+(L+1)+": Unexpected "+(w==I?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(k,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:C,expected:r})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+w);switch(T[0]){case 1:c.push(w),b.push(S.yytext),y.push(S.yylloc),c.push(T[1]),w=null,A=S.yyleng,E=S.yytext,L=S.yylineno,C=S.yylloc;break;case 2:if(l=this.productions_[T[1]][1],e.$=b[b.length-l],e._$={first_line:y[y.length-(l||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(l||1)].first_column,last_column:y[y.length-1].last_column},P&&(e._$.range=[y[y.length-(l||1)].range[0],y[y.length-1].range[1]]),V=this.performAction.apply(e,[E,A,L,M.yy,T[1],b,y].concat(j)),typeof V<"u")return V;l&&(c=c.slice(0,-1*l*2),b=b.slice(0,-1*l),y=y.slice(0,-1*l)),c.push(this.productions_[T[1]][0]),b.push(e.$),y.push(e._$),h=x[c[c.length-2]][c[c.length-1]],c.push(h);break;case 3:return!0}}return!0}},_=function(){var p={EOF:1,parseError:function(o,c){if(this.yy.parser)this.yy.parser.parseError(o,c);else throw new Error(o)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===m.length?this.yylloc.first_column:0)+m[m.length-c.length].length-c[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/sequenceDiagram-704730f1-SW2l45_G.js b/starter/src/main/resources/templates/notebase/assets/sequenceDiagram-704730f1-C7R7HoPG.js similarity index 99% rename from deploy/server/notebase/assets/sequenceDiagram-704730f1-SW2l45_G.js rename to starter/src/main/resources/templates/notebase/assets/sequenceDiagram-704730f1-C7R7HoPG.js index dfef01cdad..af695aeed9 100644 --- a/deploy/server/notebase/assets/sequenceDiagram-704730f1-SW2l45_G.js +++ b/starter/src/main/resources/templates/notebase/assets/sequenceDiagram-704730f1-C7R7HoPG.js @@ -1,4 +1,4 @@ -import{g as we,B as ve,A as _e,c as st,s as $t,b as ke,a as Pe,C as Le,l as X,d as At,j as v,e as Ie,h as Lt,i as Ae,y as B,$ as nt,a0 as wt,m as te,r as ee,V as Bt,T as se,a1 as Ne}from"./mermaid.core-BajzCmnv.js";import{d as Se,a as Me,g as Nt,b as zt,c as Re,e as Ce}from"./svgDrawCommon-08f97a94-Cb_6H50Z.js";import"./index-CLWgAZNI.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],c=[1,3],s=[1,4],i=[2,4],a=[1,9],o=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],U=[1,38],F=[1,39],W=[1,41],Z=[1,42],K=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Gt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:U,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Gt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:U,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:U,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Gt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Xt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var G,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((G===null||typeof G>"u")&&(G=me()),et=Et[ut]&&Et[ut][G]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`: +import{g as we,B as ve,A as _e,c as st,s as $t,b as ke,a as Pe,C as Le,l as X,d as At,j as v,e as Ie,h as Lt,i as Ae,y as B,$ as nt,a0 as wt,m as te,r as ee,V as Bt,T as se,a1 as Ne}from"./mermaid.core-DacimPk4.js";import{d as Se,a as Me,g as Nt,b as zt,c as Re,e as Ce}from"./svgDrawCommon-08f97a94-CD3fOJ0l.js";import"./index-bOgutTC1.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],c=[1,3],s=[1,4],i=[2,4],a=[1,9],o=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],U=[1,38],F=[1,39],W=[1,41],Z=[1,42],K=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Gt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:U,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Gt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:U,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:U,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Gt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Xt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var G,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((G===null||typeof G>"u")&&(G=me()),et=Et[ut]&&Et[ut][G]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`: `+Y.showPosition()+` Expecting `+Pt.join(", ")+", got '"+(this.terminals_[G]||G)+"'":Ot="Parse error on line "+(_t+1)+": Unexpected "+(G==Jt?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(Ot,{text:Y.match,token:this.terminals_[G]||G,line:Y.yylineno,loc:Dt,expected:Pt})}if(et[0]instanceof Array&&et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ut+", token: "+G);switch(et[0]){case 1:L.push(G),M.push(Y.yytext),h.push(Y.yylloc),L.push(et[1]),G=null,Xt=Y.yyleng,d=Y.yytext,_t=Y.yylineno,Dt=Y.yylloc;break;case 2:if(ct=this.productions_[et[1]][1],yt.$=M[M.length-ct],yt._$={first_line:h[h.length-(ct||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(ct||1)].first_column,last_column:h[h.length-1].last_column},Ee&&(yt._$.range=[h[h.length-(ct||1)].range[0],h[h.length-1].range[1]]),Vt=this.performAction.apply(yt,[d,Xt,_t,pt.yy,et[1],M,h].concat(be)),typeof Vt<"u")return Vt;ct&&(L=L.slice(0,-1*ct*2),M=M.slice(0,-1*ct),h=h.slice(0,-1*ct)),L.push(this.productions_[et[1]][0]),M.push(yt.$),h.push(yt._$),Zt=Et[L[L.length-2]][L[L.length-1]],L.push(Zt);break;case 3:return!0}}return!0}},ye=function(){var dt={EOF:1,parseError:function(k,L){if(this.yy.parser)this.yy.parser.parseError(k,L);else throw new Error(k)},setInput:function(w,k){return this.yy=k||this.yy||{},this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var k=w.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},unput:function(w){var k=w.length,L=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),L.length-1&&(this.yylineno-=L.length-1);var M=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:L?(L.length===b.length?this.yylloc.first_column:0)+b[b.length-L.length].length-L[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),k=new Array(w.length+1).join("-");return w+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/stateDiagram-587899a1-Cq6WQ8Vn.js b/starter/src/main/resources/templates/notebase/assets/stateDiagram-587899a1-C-uCmOEE.js similarity index 97% rename from starter/src/main/resources/templates/notebase/assets/stateDiagram-587899a1-Cq6WQ8Vn.js rename to starter/src/main/resources/templates/notebase/assets/stateDiagram-587899a1-C-uCmOEE.js index 1944197bc5..9fbeb9e52e 100644 --- a/starter/src/main/resources/templates/notebase/assets/stateDiagram-587899a1-Cq6WQ8Vn.js +++ b/starter/src/main/resources/templates/notebase/assets/stateDiagram-587899a1-C-uCmOEE.js @@ -1 +1 @@ -import{p as P,d as N,s as W}from"./styles-6aaf32cf-CNcbqEDz.js";import{c as t,h as H,l as b,i as R,j as T,D as v,y as U}from"./mermaid.core-BajzCmnv.js";import{G as C}from"./graph-CNSoCPH1.js";import{l as F}from"./layout-Cg9I2QIy.js";import"./index-CLWgAZNI.js";import{l as $}from"./line-CH9gKq5B.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(l){a||(o(p,l,r),r=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();i.doc,l=a-c,x>p&&(l=(p-d)/2+c),Math.abs(a-m.x)p&&(l=a-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",a+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
      ");p=p.replace(/\n/g,"
      ");const a=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",i+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&j(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const D=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(v),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(i.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},K=function(){},Q=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},V=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);Q(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,a,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;R(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,i,o,c,s,g,p)=>{const a=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let E=w.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),D(i,a.edge(n),a.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:K,draw:V},lt={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{lt as diagram}; +import{p as P,d as N,s as W}from"./styles-6aaf32cf-CyH9-6AO.js";import{c as t,h as H,l as b,i as R,j as T,D as v,y as U}from"./mermaid.core-DacimPk4.js";import{G as C}from"./graph-Cryfb0BU.js";import{l as F}from"./layout-DPudLDYQ.js";import"./index-bOgutTC1.js";import{l as $}from"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(l){a||(o(p,l,r),r=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();i.doc,l=a-c,x>p&&(l=(p-d)/2+c),Math.abs(a-m.x)p&&(l=a-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",a+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
      ");p=p.replace(/\n/g,"
      ");const a=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",i+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&j(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const D=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(v),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(i.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},K=function(){},Q=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},V=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);Q(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,a,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;R(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,i,o,c,s,g,p)=>{const a=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let E=w.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),D(i,a.edge(n),a.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:K,draw:V},lt={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{lt as diagram}; diff --git a/starter/src/main/resources/templates/notebase/assets/stateDiagram-v2-d93cdb3a-BwNs18zh.js b/starter/src/main/resources/templates/notebase/assets/stateDiagram-v2-d93cdb3a-CIX6Pzhs.js similarity index 90% rename from starter/src/main/resources/templates/notebase/assets/stateDiagram-v2-d93cdb3a-BwNs18zh.js rename to starter/src/main/resources/templates/notebase/assets/stateDiagram-v2-d93cdb3a-CIX6Pzhs.js index 37e9f7b635..a0ead1e8b3 100644 --- a/starter/src/main/resources/templates/notebase/assets/stateDiagram-v2-d93cdb3a-BwNs18zh.js +++ b/starter/src/main/resources/templates/notebase/assets/stateDiagram-v2-d93cdb3a-CIX6Pzhs.js @@ -1 +1 @@ -import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-6aaf32cf-CNcbqEDz.js";import{G as tt}from"./graph-CNSoCPH1.js";import{l as E,c as g,h as x,y as et,i as ot,j as w}from"./mermaid.core-BajzCmnv.js";import{r as st}from"./index-3862675e-C5iJKLK2.js";import"./index-CLWgAZNI.js";import"./layout-Cg9I2QIy.js";import"./clone-CJLsyeCN.js";import"./edges-e0da2a9e-121Kky2V.js";import"./createText-2e5e7dd3-CXwUql3o.js";import"./line-CH9gKq5B.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,U="transition",St="note",Tt="note-edge",pt=`${U} ${Tt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,V="parent",Y="note",At="state",N="----",ht=`${N}${Y}`,M=`${N}${V}`,m="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let T=h;e.start===!0&&(T=nt),e.start===!1&&(T=it),e.type!==H&&(T=e.type),y[o]||(y[o]={id:o,shape:T,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const p={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(p.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,Y),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,V),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,p),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:m,labelStyle:"",classes:pt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,p)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:m,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:U};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Vt as diagram}; +import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-6aaf32cf-CyH9-6AO.js";import{G as tt}from"./graph-Cryfb0BU.js";import{l as E,c as g,h as x,y as et,i as ot,j as w}from"./mermaid.core-DacimPk4.js";import{r as st}from"./index-3862675e-BtvAzWCw.js";import"./index-bOgutTC1.js";import"./layout-DPudLDYQ.js";import"./clone-CVBlNrV8.js";import"./edges-e0da2a9e---EYFhqg.js";import"./createText-2e5e7dd3-sebYv4r1.js";import"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,U="transition",St="note",Tt="note-edge",pt=`${U} ${Tt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,V="parent",Y="note",At="state",N="----",ht=`${N}${Y}`,M=`${N}${V}`,m="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let T=h;e.start===!0&&(T=nt),e.start===!1&&(T=it),e.type!==H&&(T=e.type),y[o]||(y[o]={id:o,shape:T,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const p={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(p.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,Y),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,V),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,p),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:m,labelStyle:"",classes:pt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,p)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:m,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:U};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Vt as diagram}; diff --git a/deploy/server/notebase/assets/styles-6aaf32cf-CNcbqEDz.js b/starter/src/main/resources/templates/notebase/assets/styles-6aaf32cf-CyH9-6AO.js similarity index 99% rename from deploy/server/notebase/assets/styles-6aaf32cf-CNcbqEDz.js rename to starter/src/main/resources/templates/notebase/assets/styles-6aaf32cf-CyH9-6AO.js index 0955e8c05e..e3db0a7d5a 100644 --- a/deploy/server/notebase/assets/styles-6aaf32cf-CNcbqEDz.js +++ b/starter/src/main/resources/templates/notebase/assets/styles-6aaf32cf-CyH9-6AO.js @@ -1,4 +1,4 @@ -import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,A as Xt,B as Kt,l as D,j as ot,C as Wt,a2 as Jt}from"./mermaid.core-BajzCmnv.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var A=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");A=st[0],O=[O,st[1]]}this.$={stmt:"state",id:A,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",A=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),v={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(v.yy[dt]=this.yy[dt]);S.setInput(r,v.yy),v.yy.lexer=S,v.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(A+1)+`: +import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,A as Xt,B as Kt,l as D,j as ot,C as Wt,a2 as Jt}from"./mermaid.core-DacimPk4.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var A=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");A=st[0],O=[O,st[1]]}this.$={stmt:"state",id:A,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",A=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),v={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(v.yy[dt]=this.yy[dt]);S.setInput(r,v.yy),v.yy.lexer=S,v.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(A+1)+`: `+S.showPosition()+` Expecting `+rt.join(", ")+", got '"+(this.terminals_[_]||_)+"'":St="Parse error on line "+(A+1)+": Unexpected "+(_==B?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(St,{text:S.match,token:this.terminals_[_]||_,line:S.yylineno,loc:yt,expected:rt})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+_);switch(m[0]){case 1:i.push(_),p.push(S.yytext),e.push(S.yylloc),i.push(m[1]),_=null,O=S.yyleng,l=S.yytext,A=S.yylineno,yt=S.yylloc;break;case 2:if(b=this.productions_[m[1]][1],N.$=p[p.length-b],N._$={first_line:e[e.length-(b||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(b||1)].first_column,last_column:e[e.length-1].last_column},Gt&&(N._$.range=[e[e.length-(b||1)].range[0],e[e.length-1].range[1]]),pt=this.performAction.apply(N,[l,O,A,v.yy,m[1],p,e].concat(ft)),typeof pt<"u")return pt;b&&(i=i.slice(0,-1*b*2),p=p.slice(0,-1*b),e=e.slice(0,-1*b)),i.push(this.productions_[m[1]][0]),p.push(N.$),e.push(N._$),Ct=$[i[i.length-2]][i[i.length-1]],i.push(Ct);break;case 3:return!0}}return!0}},Yt=function(){var C={EOF:1,parseError:function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},setInput:function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var n=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===o.length?this.yylloc.first_column:0)+o[o.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/styles-9a916d00-BHajR6jW.js b/starter/src/main/resources/templates/notebase/assets/styles-9a916d00-DJJSKZVB.js similarity index 99% rename from deploy/server/notebase/assets/styles-9a916d00-BHajR6jW.js rename to starter/src/main/resources/templates/notebase/assets/styles-9a916d00-DJJSKZVB.js index d12cda685d..a6d5e99d36 100644 --- a/deploy/server/notebase/assets/styles-9a916d00-BHajR6jW.js +++ b/starter/src/main/resources/templates/notebase/assets/styles-9a916d00-DJJSKZVB.js @@ -1,4 +1,4 @@ -import{s as ut,g as rt,a as at,b as lt,c as F,A as ct,B as ot,j as v,C as ht,l as At,y as We,h as z,d as pt,E as Re}from"./mermaid.core-BajzCmnv.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],g=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ge=[1,27],ke=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],k=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],j=[1,57],Q=[1,58],X=[1,59],H=[1,60],De=[1,61],Be=[1,62],W=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be}),{37:[1,63]},e(W,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:k},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:k},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:k}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:k},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:k},{49:85,57:54,58:55,59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:j,61:Q,62:X,63:H}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:k},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,61],{57:120,59:Y,60:j,61:Q,62:X,63:H}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(W,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:k},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(W,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(W,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,je,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`: +import{s as ut,g as rt,a as at,b as lt,c as F,A as ct,B as ot,j as v,C as ht,l as At,y as We,h as z,d as pt,E as Re}from"./mermaid.core-DacimPk4.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],g=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ge=[1,27],ke=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],k=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],j=[1,57],Q=[1,58],X=[1,59],H=[1,60],De=[1,61],Be=[1,62],W=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be}),{37:[1,63]},e(W,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:k},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:k},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:k}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:k},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:k},{49:85,57:54,58:55,59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:j,61:Q,62:X,63:H}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:k},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,61],{57:120,59:Y,60:j,61:Q,62:X,63:H}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(W,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:k},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(W,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(W,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,je,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`: `+b.showPosition()+` Expecting `+oe.join(", ")+", got '"+(this.terminals_[T]||T)+"'":Ie="Parse error on line "+(le+1)+": Unexpected "+(T==Ye?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(Ie,{text:b.match,token:this.terminals_[T]||T,line:b.yylineno,loc:xe,expected:oe})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+T);switch(y[0]){case 1:h.push(T),f.push(b.yytext),t.push(b.yylloc),h.push(y[1]),T=null,Ke=b.yyleng,s=b.yytext,le=b.yylineno,xe=b.yylloc;break;case 2:if(N=this.productions_[y[1]][1],P.$=f[f.length-N],P._$={first_line:t[t.length-(N||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(N||1)].first_column,last_column:t[t.length-1].last_column},it&&(P._$.range=[t[t.length-(N||1)].range[0],t[t.length-1].range[1]]),Oe=this.performAction.apply(P,[s,Ke,le,I.yy,y[1],f,t].concat(st)),typeof Oe<"u")return Oe;N&&(h=h.slice(0,-1*N*2),f=f.slice(0,-1*N),t=t.slice(0,-1*N)),h.push(this.productions_[y[1]][0]),f.push(P.$),t.push(P._$),je=U[h[h.length-2]][h[h.length-1]],h.push(je);break;case 3:return!0}}return!0}},et=function(){var x={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(u,a){return this.yy=a||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var a=u.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var a=u.length,h=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===n.length?this.yylloc.first_column:0)+n[n.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),a=new Array(u.length+1).join("-");return u+this.upcomingInput()+` diff --git a/deploy/server/notebase/assets/styles-c10674c1-DZh7AwrX.js b/starter/src/main/resources/templates/notebase/assets/styles-c10674c1-BMcOXXdB.js similarity index 97% rename from deploy/server/notebase/assets/styles-c10674c1-DZh7AwrX.js rename to starter/src/main/resources/templates/notebase/assets/styles-c10674c1-BMcOXXdB.js index 450b6e892b..6538254461 100644 --- a/deploy/server/notebase/assets/styles-c10674c1-DZh7AwrX.js +++ b/starter/src/main/resources/templates/notebase/assets/styles-c10674c1-BMcOXXdB.js @@ -1,4 +1,4 @@ -import{G as R}from"./graph-CNSoCPH1.js";import{S as z,v as F,x as j,o as A,l as g,p as U,c as S,j as G,r as q,q as E,n as L,h as C,y as H,t as K,z as W}from"./mermaid.core-BajzCmnv.js";import{r as X}from"./index-3862675e-C5iJKLK2.js";import{v as J,w as Q}from"./index-CLWgAZNI.js";import{c as Y}from"./channel--_OxL60w.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([j(e)],F)}function be(e,l){return!!e.children(l).length}function fe(e){return N(e.v)+":"+N(e.w)+":"+N(e.name)}var O=/:/g;function N(e){return e?String(e).replace(O,"\\:"):""}function ee(e,l){l&&e.attr("style",l)}function ue(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function we(e,l){var c=l.graph();if(J(c)){var a=c.transition;if(Q(a))return a(e)}return e}function te(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}ee(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const P={},re=function(e){const l=Object.keys(e);for(const c of l)P[c]=e[c]},V=async function(e,l,c,a,i,d){const u=a.select(`[id="${c}"]`),n=Object.keys(e);for(const p of n){const r=e[p];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const w=A(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(U(S().flowchart.htmlLabels))s=te(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const _=t.split(G.lineBreakRegex);for(const $ of _){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=$,k.appendChild(v)}s=k}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}const T=await q(t,S());l.setNode(r.id,{labelStyle:w.labelStyle,shape:o,labelText:T,labelType:r.labelType,rx:b,ry:b,class:y,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:S().flowchart.padding}),g.info("setNode",{labelStyle:w.labelStyle,labelType:r.labelType,shape:o,labelText:T,rx:b,ry:b,class:y,style:w.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:S().flowchart.padding})}},M=async function(e,l,c){g.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=A(e.defaultStyle);d=n.style,u=n.labelStyle}for(const n of e){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,g.info("abc78 new entry",p,i[p])):(i[p]++,g.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];g.info("abc78 new link id to be used is",p,r,i[p]);const y="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=A(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=E(n.interpolate,L):e.defaultInterpolate!==void 0?t.curve=E(e.defaultInterpolate,L):t.curve=E(P.curve,L),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await q(n.text.replace(G.lineBreakRegex,` +import{G as R}from"./graph-Cryfb0BU.js";import{S as z,v as F,x as j,o as A,l as g,p as U,c as S,j as G,r as q,q as E,n as L,h as C,y as H,t as K,z as W}from"./mermaid.core-DacimPk4.js";import{r as X}from"./index-3862675e-BtvAzWCw.js";import{v as J,w as Q}from"./index-bOgutTC1.js";import{c as Y}from"./channel-CFSrZVj_.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([j(e)],F)}function be(e,l){return!!e.children(l).length}function fe(e){return N(e.v)+":"+N(e.w)+":"+N(e.name)}var O=/:/g;function N(e){return e?String(e).replace(O,"\\:"):""}function ee(e,l){l&&e.attr("style",l)}function ue(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function we(e,l){var c=l.graph();if(J(c)){var a=c.transition;if(Q(a))return a(e)}return e}function te(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}ee(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const P={},re=function(e){const l=Object.keys(e);for(const c of l)P[c]=e[c]},V=async function(e,l,c,a,i,d){const u=a.select(`[id="${c}"]`),n=Object.keys(e);for(const p of n){const r=e[p];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const w=A(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(U(S().flowchart.htmlLabels))s=te(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const _=t.split(G.lineBreakRegex);for(const $ of _){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=$,k.appendChild(v)}s=k}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}const T=await q(t,S());l.setNode(r.id,{labelStyle:w.labelStyle,shape:o,labelText:T,labelType:r.labelType,rx:b,ry:b,class:y,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:S().flowchart.padding}),g.info("setNode",{labelStyle:w.labelStyle,labelType:r.labelType,shape:o,labelText:T,rx:b,ry:b,class:y,style:w.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:S().flowchart.padding})}},M=async function(e,l,c){g.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=A(e.defaultStyle);d=n.style,u=n.labelStyle}for(const n of e){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,g.info("abc78 new entry",p,i[p])):(i[p]++,g.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];g.info("abc78 new link id to be used is",p,r,i[p]);const y="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=A(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=E(n.interpolate,L):e.defaultInterpolate!==void 0?t.curve=E(e.defaultInterpolate,L):t.curve=E(P.curve,L),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await q(n.text.replace(G.lineBreakRegex,` `),S()),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=r,t.classes="flowchart-link "+y+" "+w,l.setEdge(n.start,n.end,t,a)}},le=function(e,l){return l.db.getClasses()},ae=async function(e,l,c,a){g.info("Drawing flowchart");let i=a.db.getDirection();i===void 0&&(i="TD");const{securityLevel:d,flowchart:u}=S(),n=u.nodeSpacing||50,p=u.rankSpacing||50;let r;d==="sandbox"&&(r=C("#i"+l));const y=d==="sandbox"?C(r.nodes()[0].contentDocument.body):C("body"),w=d==="sandbox"?r.nodes()[0].contentDocument:document,t=new R({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:n,ranksep:p,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let s;const b=a.db.getSubGraphs();g.info("Subgraphs - ",b);for(let f=b.length-1;f>=0;f--)s=b[f],g.info("Subgraph - ",s),a.db.addVertex(s.id,{text:s.title,type:s.labelType},"group",void 0,s.classes,s.dir);const o=a.db.getVertices(),T=a.db.getEdges();g.info("Edges",T);let k=0;for(k=b.length-1;k>=0;k--){s=b[k],Z("cluster").append("text");for(let f=0;f{const c=Y,a=c(e,"r"),i=c(e,"g"),d=c(e,"b");return W(a,i,d,l)},ne=e=>`.label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; diff --git a/starter/src/main/resources/templates/notebase/assets/svgDrawCommon-08f97a94-Cb_6H50Z.js b/starter/src/main/resources/templates/notebase/assets/svgDrawCommon-08f97a94-CD3fOJ0l.js similarity index 95% rename from starter/src/main/resources/templates/notebase/assets/svgDrawCommon-08f97a94-Cb_6H50Z.js rename to starter/src/main/resources/templates/notebase/assets/svgDrawCommon-08f97a94-CD3fOJ0l.js index 7fed33956c..ef2aab69ed 100644 --- a/starter/src/main/resources/templates/notebase/assets/svgDrawCommon-08f97a94-Cb_6H50Z.js +++ b/starter/src/main/resources/templates/notebase/assets/svgDrawCommon-08f97a94-CD3fOJ0l.js @@ -1 +1 @@ -import{a3 as o,m as i}from"./mermaid.core-BajzCmnv.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,m as b,y as c,l as d,h as e,d as f,g}; +import{a3 as o,m as i}from"./mermaid.core-DacimPk4.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,m as b,y as c,l as d,h as e,d as f,g}; diff --git a/starter/src/main/resources/templates/notebase/assets/threadService-CYtUfoLW.js b/starter/src/main/resources/templates/notebase/assets/threadService-Bmr3Oiaf.js similarity index 94% rename from starter/src/main/resources/templates/notebase/assets/threadService-CYtUfoLW.js rename to starter/src/main/resources/templates/notebase/assets/threadService-Bmr3Oiaf.js index 5f777f5fa4..29db4a9f5a 100644 --- a/starter/src/main/resources/templates/notebase/assets/threadService-CYtUfoLW.js +++ b/starter/src/main/resources/templates/notebase/assets/threadService-Bmr3Oiaf.js @@ -1 +1 @@ -import{r as T,u as n,a as h}from"./index-CLWgAZNI.js";async function y(t){return T("/api/v1/thread/query",{method:"GET",params:{...t}})}const b={async loadThreads(t,s=3){const{setLoading:o,setError:d,setThreads:i,searchText:c,pagination:a,setPagination:l}=n.getState(),p=h.getState().currentOrg,g=async u=>{try{o(!0),d(null);const r={orgUid:p.uid,pageNumber:a.pageNumber,pageSize:a.pageSize};c&&(r.searchText=c);const e=await y(r);if(console.log("queryThreads response",r,e.data),e.data.code===200){if(l({...a,total:e.data.data.totalElements,pageNumber:e.data.data.last?a.pageNumber:a.pageNumber+1}),a.pageNumber===0)i(e.data.data.content);else{const{threads:S}=n.getState();i([...S,...e.data.data.content])}const{setThreadResult:m}=n.getState();m(e.data)}else throw new Error(e.data.message)}catch(r){if(usetTimeout(e,1e3)),g(u+1);d(r instanceof Error?r.message:"Failed to load threads")}finally{o(!1)}};return g(1)},async resetAndLoad(){const{setPagination:t}=n.getState(),s=h.getState().currentOrg;return t({pageNumber:0,pageSize:100,total:0}),this.loadThreads(s.uid)},async loadThreadsWithFilters(t){const{setFilter:s}=n.getState();return Object.entries(t).forEach(([o,d])=>{s(o,d)}),this.resetAndLoad()}};export{b as threadService}; +import{r as T,u as n,a as h}from"./index-bOgutTC1.js";async function y(t){return T("/api/v1/thread/query",{method:"GET",params:{...t}})}const b={async loadThreads(t,s=3){const{setLoading:o,setError:d,setThreads:i,searchText:c,pagination:a,setPagination:l}=n.getState(),p=h.getState().currentOrg,g=async u=>{try{o(!0),d(null);const r={orgUid:p.uid,pageNumber:a.pageNumber,pageSize:a.pageSize};c&&(r.searchText=c);const e=await y(r);if(console.log("queryThreads response",r,e.data),e.data.code===200){if(l({...a,total:e.data.data.totalElements,pageNumber:e.data.data.last?a.pageNumber:a.pageNumber+1}),a.pageNumber===0)i(e.data.data.content);else{const{threads:S}=n.getState();i([...S,...e.data.data.content])}const{setThreadResult:m}=n.getState();m(e.data)}else throw new Error(e.data.message)}catch(r){if(usetTimeout(e,1e3)),g(u+1);d(r instanceof Error?r.message:"Failed to load threads")}finally{o(!1)}};return g(1)},async resetAndLoad(){const{setPagination:t}=n.getState(),s=h.getState().currentOrg;return t({pageNumber:0,pageSize:100,total:0}),this.loadThreads(s.uid)},async loadThreadsWithFilters(t){const{setFilter:s}=n.getState();return Object.entries(t).forEach(([o,d])=>{s(o,d)}),this.resetAndLoad()}};export{b as threadService}; diff --git a/starter/src/main/resources/templates/notebase/assets/timeline-definition-85554ec2-CvJeyBUi.js b/starter/src/main/resources/templates/notebase/assets/timeline-definition-85554ec2-CQ7c8ExM.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/timeline-definition-85554ec2-CvJeyBUi.js rename to starter/src/main/resources/templates/notebase/assets/timeline-definition-85554ec2-CQ7c8ExM.js index f6989f06c4..fe839d3fad 100644 --- a/starter/src/main/resources/templates/notebase/assets/timeline-definition-85554ec2-CvJeyBUi.js +++ b/starter/src/main/resources/templates/notebase/assets/timeline-definition-85554ec2-CQ7c8ExM.js @@ -1,4 +1,4 @@ -import{a5 as ft,C as gt,c as mt,l as E,h as G,t as xt,a6 as _t,a7 as bt,a8 as kt}from"./mermaid.core-BajzCmnv.js";import"./index-CLWgAZNI.js";import{a as D}from"./arc-DCwD3PI6.js";import"./path-CbwjOpE9.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],l=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,o,$){var x=o.length-1;switch(u){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 15:d.addTask(o[x],0,""),this.$=o[x];break;case 16:d.addEvent(o[x].substr(2)),this.$=o[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],o=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=o.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;o.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var b,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=z()),S=$[L]&&$[L][b]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`: +import{a5 as ft,C as gt,c as mt,l as E,h as G,t as xt,a6 as _t,a7 as bt,a8 as kt}from"./mermaid.core-DacimPk4.js";import"./index-bOgutTC1.js";import{a as D}from"./arc-UQ4BAf3M.js";import"./path-CbwjOpE9.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],l=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,o,$){var x=o.length-1;switch(u){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 15:d.addTask(o[x],0,""),this.$=o[x];break;case 16:d.addEvent(o[x].substr(2)),this.$=o[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],o=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=o.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;o.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var b,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=z()),S=$[L]&&$[L][b]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`: `+k.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[b]||b)+"'":J="Parse error on line "+(T+1)+": Unexpected "+(b==A?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(J,{text:k.match,token:this.terminals_[b]||b,line:k.yylineno,loc:I,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+b);switch(S[0]){case 1:c.push(b),u.push(k.yytext),o.push(k.yylloc),c.push(S[1]),b=null,W=k.yyleng,x=k.yytext,T=k.yylineno,I=k.yylloc;break;case 2:if(N=this.productions_[S[1]][1],R.$=u[u.length-N],R._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},P&&(R._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),Z=this.performAction.apply(R,[x,W,T,w.yy,S[1],u,o].concat(B)),typeof Z<"u")return Z;N&&(c=c.slice(0,-1*N*2),u=u.slice(0,-1*N),o=o.slice(0,-1*N)),c.push(this.productions_[S[1]][0]),u.push(R.$),o.push(R._$),Y=$[c[c.length-2]][c[c.length-1]],c.push(Y);break;case 3:return!0}}return!0}},_=function(){var g={EOF:1,parseError:function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw new Error(r)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/assets/xychartDiagram-e933f94c--91O5qLe.js b/starter/src/main/resources/templates/notebase/assets/xychartDiagram-e933f94c-DcCVCk7Y.js similarity index 99% rename from starter/src/main/resources/templates/notebase/assets/xychartDiagram-e933f94c--91O5qLe.js rename to starter/src/main/resources/templates/notebase/assets/xychartDiagram-e933f94c-DcCVCk7Y.js index 5f07ce5971..84c3e51df5 100644 --- a/starter/src/main/resources/templates/notebase/assets/xychartDiagram-e933f94c--91O5qLe.js +++ b/starter/src/main/resources/templates/notebase/assets/xychartDiagram-e933f94c-DcCVCk7Y.js @@ -1,4 +1,4 @@ -import{U as zt,V as ot,Q as wt,P as Ft,s as Nt,g as Xt,A as Yt,B as St,a as Ht,b as $t,C as Ut,l as Ct,N as qt,i as jt,d as Gt}from"./mermaid.core-BajzCmnv.js";import{c as Qt}from"./createText-2e5e7dd3-CXwUql3o.js";import"./index-CLWgAZNI.js";import{i as Kt}from"./init-Gi6I4Gst.js";import{o as Zt}from"./ordinal-Cboi1Yqb.js";import{l as ft}from"./linear-DTRuWJOk.js";import{l as pt}from"./line-CH9gKq5B.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Wt=k.options&&k.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,W,v,it,O={},q,M,dt,j;;){if(W=u[u.length-1],this.defaultActions[W]?v=this.defaultActions[W]:((D===null||typeof D>"u")&&(D=Ot()),v=F[W]&&F[W][D]),typeof v>"u"||!v.length||!v[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`: +import{U as zt,V as ot,Q as wt,P as Ft,s as Nt,g as Xt,A as Yt,B as St,a as Ht,b as $t,C as Ut,l as Ct,N as qt,i as jt,d as Gt}from"./mermaid.core-DacimPk4.js";import{c as Qt}from"./createText-2e5e7dd3-sebYv4r1.js";import"./index-bOgutTC1.js";import{i as Kt}from"./init-Gi6I4Gst.js";import{o as Zt}from"./ordinal-Cboi1Yqb.js";import{l as ft}from"./linear-3xwamwH4.js";import{l as pt}from"./line-Dno7JaPM.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Wt=k.options&&k.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,W,v,it,O={},q,M,dt,j;;){if(W=u[u.length-1],this.defaultActions[W]?v=this.defaultActions[W]:((D===null||typeof D>"u")&&(D=Ot()),v=F[W]&&F[W][D]),typeof v>"u"||!v.length||!v[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`: `+k.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[D]||D)+"'":et="Parse error on line "+(U+1)+": Unexpected "+(D==xt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(et,{text:k.match,token:this.terminals_[D]||D,line:k.yylineno,loc:tt,expected:j})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+D);switch(v[0]){case 1:u.push(D),b.push(k.yytext),a.push(k.yylloc),u.push(v[1]),D=null,gt=k.yyleng,x=k.yytext,U=k.yylineno,tt=k.yylloc;break;case 2:if(M=this.productions_[v[1]][1],O.$=b[b.length-M],O._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},Wt&&(O._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),it=this.performAction.apply(O,[x,gt,U,B.yy,v[1],b,a].concat(Bt)),typeof it<"u")return it;M&&(u=u.slice(0,-1*M*2),b=b.slice(0,-1*M),a=a.slice(0,-1*M)),u.push(this.productions_[v[1]][0]),b.push(O.$),a.push(O._$),dt=F[u[u.length-2]][u[u.length-1]],u.push(dt);break;case 3:return!0}}return!0}},It=function(){var V={EOF:1,parseError:function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},setInput:function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var l=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===g.length?this.yylloc.first_column:0)+g[g.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/starter/src/main/resources/templates/notebase/index.html b/starter/src/main/resources/templates/notebase/index.html index 9e2c2f2dcd..534af050c2 100644 --- a/starter/src/main/resources/templates/notebase/index.html +++ b/starter/src/main/resources/templates/notebase/index.html @@ -7,7 +7,7 @@ 微语 - +